'use strict';var h,aa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},ba="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,ca=function(){ca=function(){};ba.Symbol||(ba.Symbol=da)},da=function(){var a=0;return function(b){return"jscomp_symbol_"+(b||"")+a++}}(),fa=function(){ca();var a=ba.Symbol.iterator;a||(a=ba.Symbol.iterator=ba.Symbol("iterator"));"function"!=
typeof Array.prototype[a]&&aa(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return ea(this)}});fa=function(){}},ea=function(a){var b=0;return ia(function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}})},ia=function(a){fa();a={next:a};a[ba.Symbol.iterator]=function(){return this};return a},ja=function(a){fa();var b=a[Symbol.iterator];return b?b.call(a):ea(a)},ka="function"==typeof Object.create?Object.create:function(a){var b=function(){};b.prototype=a;return new b},la;
if("function"==typeof Object.setPrototypeOf)la=Object.setPrototypeOf;else{var ma;a:{var na={sk:!0},oa={};try{oa.__proto__=na;ma=oa.sk;break a}catch(a){}ma=!1}la=ma?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
var pa=la,qa=function(a,b){a.prototype=ka(b.prototype);a.prototype.constructor=a;if(pa)pa(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.aa=b.prototype},k=function(a){if(!(a instanceof Array)){a=ja(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a},ra=ra||{},sa=this,m=function(a){return void 0!==a},ta=function(a){return"string"==typeof a},ua=function(a){return"boolean"==
typeof a},n=function(a){return"number"==typeof a},va=function(a,b){a=a.split(".");b=b||sa;for(var c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b},wa=function(){},xa=function(a){a.Bf=void 0;a.ja=function(){return a.Bf?a.Bf:a.Bf=new a}},ya=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=
typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==b&&"undefined"==typeof a.call)return"object";return b},za=function(a){return null===a},Aa=function(a){return"array"==ya(a)},Ba=function(a){var b=ya(a);return"array"==b||"object"==b&&"number"==typeof a.length},
Ca=function(a){return"function"==ya(a)},Da=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b},Fa=function(a){null!==a&&"removeAttribute"in a&&a.removeAttribute(Ea);try{delete a[Ea]}catch(b){}},Ea="closure_uid_"+(1E9*Math.random()>>>0),Ga=0,Ha=function(a,b,c){return a.call.apply(a.bind,arguments)},Ia=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,
d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}},p=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?p=Ha:p=Ia;return p.apply(null,arguments)},Ja=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}},Ka=Date.now||function(){return+new Date},q=function(a,b){a=a.split(".");var c=sa;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&
(d=a.shift());)!a.length&&m(b)?c[d]=b:c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}},t=function(a,b){function c(){}c.prototype=b.prototype;a.aa=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.as=function(a,c,f){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];return b.prototype[c].apply(a,d)}};var chrome=chrome||window.chrome||{};chrome.cast=chrome.cast||{};chrome.cast.media=chrome.cast.media||{};var mojo={};var Ma=function(){return Promise.reject(Error("Not implemented"))};var Na=function(a){this.a=a},Pa=function(a){var b=Oa.get(a);b||(b=new Na(a),Oa.set(a,b));return b},Sa=function(a){a.level>=Qa&&Ra.forEach(function(b){return b(a)})};Na.prototype.log=function(a,b,c){if(!(a<Qa)){"function"==typeof b&&(b=b());b=b.replace(Ta,"[Redacted URL]");b=b.replace(Ua,"[Redacted domain/email]");var d={G:this.a,level:a,time:Date.now(),message:b,Sb:c};Ra.forEach(function(a){return a(d)})}};Na.prototype.error=function(a,b){this.log(3,a,b)};var v=function(a,b,c){a.log(2,b,c)};
Na.prototype.info=function(a,b){this.log(1,a,b)};var w=function(a,b,c){a.log(0,b,c)},Wa=function(a){a=Va.indexOf(a);return-1==a?0:a},Xa=function(a){return 600>=a?0:850>=a?1:950>=a?2:3},Ra=[],Oa=new Map,Va=["FINE","INFO","WARNING","SEVERE"],Ua=/(([\w.+-]+@)|((www|m|mail|ftp)[.]))[\w.-]+[.][\w-]{2,4}/gi,Ta=/(data:|https?:\/\/)\S+/gi,Qa=1;var Ya=function(a){this.b=a;this.f=Date.now()},Za=function(a,b){null!=b&&(a+="_"+b);return a};Ya.prototype.a=function(a){$a(Za(this.b,a),Date.now()-this.f)};var $a=function(a,b){0>b&&(v(ab,"Timing analytics event with negative time"),b=0);1E4<b&&(b=1E4);try{chrome.metricsPrivate.recordTime(a,b)}catch(c){v(ab,"Failed to record time "+b+" in "+a)}},ab=Pa("mr.Timing"),bb=function(a){Ya.call(this,a)};qa(bb,Ya);
bb.prototype.a=function(a){a=Za(this.b,a);var b=Date.now()-this.f;if(0>b)v(cb,"Timing analytics event with negative time");else{1E4>b&&(b=1E4);18E4<b&&(b=18E4);try{chrome.metricsPrivate.recordMediumTime(a,b)}catch(c){v(cb,"Failed to record time "+b+" in "+a)}}};var cb=Pa("mr.MediumTiming"),db=function(a){Ya.call(this,a)};qa(db,Ya);
db.prototype.a=function(a){a=Za(this.b,a);var b=Date.now()-this.f;if(0>b)v(eb,"Timing analytics event with negative time");else{18E4>b&&(b=18E4);36E5<b&&(b=36E5);try{chrome.metricsPrivate.recordLongTime(a,b)}catch(c){v(eb,"Failed to record time "+b+" in "+a)}}};
var eb=Pa("mr.LongTiming"),fb=Pa("mr.Analytics"),hb=function(a){try{chrome.metricsPrivate.recordUserAction(a)}catch(b){v(fb,"Failed to record event "+a)}},ib=function(a,b,c){var d,e=0,f;for(f in c)e++,c[f]==b&&(d=f);if(d){c={metricName:a,type:"histogram-linear",min:1,max:e,buckets:e+1};try{chrome.metricsPrivate.recordValue(c,b)}catch(g){v(fb,"Failed to record enum value "+d+" ("+b+") in "+a,g)}}else fb.error("Unknown analytics value, "+b+" for histogram, "+a,Error())},jb=function(a,b){try{if(0>b)throw Error("Invalid count for "+
a+": "+b);100<b&&v(fb,"Small count for "+a+" exceeded limits: "+b,Error());chrome.metricsPrivate.recordSmallCount(a,b)}catch(c){v(fb,"Failed to record small count "+a+" ("+b+")",c)}};var kb=function(){var a=this;this.a=new Promise(function(b,c){a.f=b;a.b=c})};kb.prototype.resolve=function(a){this.f(a)};kb.prototype.reject=function(a){this.b(a)};var lb=function(a,b){return a.toLowerCase()==b.toLowerCase()},mb=function(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&1<c.length;)d+=c.shift()+e.shift();return d+c.join("%s")},nb=function(a){return/^[\s\xa0]*$/.test(a)},ob=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},pb=/&/g,qb=/</g,rb=/>/g,sb=/"/g,tb=/'/g,ub=/\x00/g,vb=/[\x00&<>"']/,wb=String.prototype.repeat?function(a,b){return a.repeat(b)}:
function(a,b){return Array(b+1).join(a)},xb=function(a,b){a=m(void 0)?a.toFixed(void 0):String(a);var c=a.indexOf(".");-1==c&&(c=a.length);return wb("0",Math.max(0,b-c))+a},yb=function(a){return null==a?"":String(a)},zb=function(a){return Array.prototype.join.call(arguments,"")},Ab=function(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Ka()).toString(36)},Cb=function(a,b){var c=0;a=ob(String(a)).split(".");b=ob(String(b)).split(".");for(var d=
Math.max(a.length,b.length),e=0;0==c&&e<d;e++){var f=a[e]||"",g=b[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""];if(0==f[0].length&&0==g[0].length)break;c=Bb(0==f[1].length?0:parseInt(f[1],10),0==g[1].length?0:parseInt(g[1],10))||Bb(0==f[2].length,0==g[2].length)||Bb(f[2],g[2]);f=f[3];g=g[3]}while(0==c)}return c},Bb=function(a,b){return a<b?-1:a>b?1:0},Db=function(a,b,c){a=a.split(b);for(var d=[];0<c&&a.length;)d.push(a.shift()),c--;a.length&&d.push(a.join(b));
return d};var Eb=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,Eb);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};t(Eb,Error);Eb.prototype.name="CustomError";var Fb;var Gb=function(a,b){b.unshift(a);Eb.call(this,mb.apply(null,b));b.shift()};t(Gb,Eb);Gb.prototype.name="AssertionError";var Hb=function(a,b){throw new Gb("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1));},Ib=function(a,b,c){if(!ua(a)){var d=[ya(a),a],e="Assertion failed";b?(e+=": "+b,d=Array.prototype.slice.call(arguments,2)):e+=": Expected boolean but got %s: %s.";throw new Gb(""+e,d||[]);}return a};var Jb=function(a){return a[a.length-1]},Kb=Array.prototype.indexOf?function(a,b,c){return Array.prototype.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(ta(a))return ta(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},x=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=ta(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Lb=function(a,b){for(var c=ta(a)?
a.split(""):a,d=a.length-1;0<=d;--d)d in c&&b.call(void 0,c[d],d,a)},Mb=Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,g=ta(a)?a.split(""):a,l=0;l<d;l++)if(l in g){var r=g[l];b.call(c,r,l,a)&&(e[f++]=r)}return e},Nb=Array.prototype.map?function(a,b,c){return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=ta(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e},Ob=Array.prototype.reduce?
function(a,b,c,d){d&&(b=p(b,d));return Array.prototype.reduce.call(a,b,c)}:function(a,b,c,d){var e=c;x(a,function(c,g){e=b.call(d,e,c,g,a)});return e},Pb=Array.prototype.some?function(a,b,c){return Array.prototype.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=ta(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return!0;return!1},Qb=Array.prototype.every?function(a,b,c){return Array.prototype.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=ta(a)?a.split(""):a,f=0;f<d;f++)if(f in
e&&!b.call(c,e[f],f,a))return!1;return!0},Sb=function(a,b,c){b=Rb(a,b,c);return 0>b?null:ta(a)?a.charAt(b):a[b]},Rb=function(a,b,c){for(var d=a.length,e=ta(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1},Tb=function(a,b,c){a:{for(var d=ta(a)?a.split(""):a,e=a.length-1;0<=e;e--)if(e in d&&b.call(c,d[e],e,a)){b=e;break a}b=-1}return 0>b?null:ta(a)?a.charAt(b):a[b]},Ub=function(a,b){return 0<=Kb(a,b)},Vb=function(a){if(!Aa(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=
0},Wb=function(a,b){Ub(a,b)||a.push(b)},Yb=function(a,b,c){var d;2==arguments.length||0>(d=Kb(a,c))?a.push(b):Xb(a,d,0,b)},$b=function(a,b){b=Kb(a,b);var c;(c=0<=b)&&Zb(a,b);return c},Zb=function(a,b){return 1==Array.prototype.splice.call(a,b,1).length},ac=function(a,b,c){b=Rb(a,b,c);return 0<=b?(Zb(a,b),!0):!1},bc=function(a,b){var c=0;Lb(a,function(d,e){b.call(void 0,d,e,a)&&Zb(a,e)&&c++})},cc=function(a){return Array.prototype.concat.apply([],arguments)},dc=function(a){return Array.prototype.concat.apply([],
arguments)},y=function(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]},ec=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(Ba(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var g=0;g<f;g++)a[e+g]=d[g]}else a.push(d)}},Xb=function(a,b,c,d){Array.prototype.splice.apply(a,fc(arguments,1))},fc=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)},gc=function(a,b){b=b||a;for(var c=
{},d=0,e=0;e<a.length;){var f=a[e++];var g=f;g=Da(g)?"o"+(g[Ea]||(g[Ea]=++Ga)):(typeof g).charAt(0)+g;Object.prototype.hasOwnProperty.call(c,g)||(c[g]=!0,b[d++]=f)}b.length=d},ic=function(a,b){a.sort(b||hc)},jc=function(a,b){var c=hc;ic(a,function(a,e){return c(b(a),b(e))})},kc=function(a){jc(a,function(a){return a.t})},mc=function(a,b,c){if(!Ba(a)||!Ba(b)||a.length!=b.length)return!1;var d=a.length;c=c||lc;for(var e=0;e<d;e++)if(!c(a[e],b[e]))return!1;return!0},hc=function(a,b){return a>b?1:a<b?
-1:0},lc=function(a,b){return a===b},nc=function(a,b,c){var d={};x(a,function(e,f){d[b.call(c,e,f,a)]=e});return d};var oc=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},pc=function(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c},qc=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1},rc=function(a){var b=0,c;for(c in a)b++;return b},sc=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},tc=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b},uc=function(a,b){return null!==a&&b in a},vc=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1},wc=
function(a){for(var b in a)return!1;return!0},yc=function(a,b){var c={ta:xc(),ih:!1};return b in a?a[b]:a[b]=c},zc=function(a){var b={},c;for(c in a)b[c]=a[c];return b},Bc=function(a){var b=ya(a);if("object"==b||"array"==b){if(Ca(a.clone))return a.clone();b="array"==b?[]:{};for(var c in a)b[c]=Bc(a[c]);return b}return a},Cc=function(a){var b={},c;for(c in a)b[a[c]]=c;return b},Dc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),Ec=function(a,
b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<Dc.length;f++)c=Dc[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var Fc=function(a,b,c){this.f=a;this.l=b;this.g=c;this.a=0;this.b=[]};Fc.prototype.send=function(a,b,c,d){var e=void 0===d?{}:d;d=void 0===e.timeoutMillis?this.l:e.timeoutMillis;var f=void 0===e.Jh?this.g:e.Jh,g=void 0===e.headers?null:e.headers;e=void 0===e.responseType?"":e.responseType;a={ta:new kb,url:a,method:b,headers:g,responseType:e,body:c,timeoutMillis:d,Kh:f};this.a<this.f?Gc(this,a):this.b.push(a);return a.ta.a};
var Hc=function(a){if(0<a.b.length&&a.a<a.f){var b=a.b.shift();Gc(a,b)}},Gc=function(a,b){a.a++;b.Kh--;Ic(b).then(function(c){b.ta.resolve(c);a.a--;Hc(a)},function(c){0==b.Kh?b.ta.reject(c):a.b.push(b);a.a--;Hc(a)})},Ic=function(a){return new Promise(function(b,c){var d=new XMLHttpRequest;d.onreadystatechange=function(){d.readyState==XMLHttpRequest.DONE&&b(d)};d.timeout=a.timeoutMillis;d.ontimeout=function(){c(Error("Timed out"))};d.open(a.method,a.url,!0);null==a.headers?d.setRequestHeader("Content-Type",
"application/x-www-form-urlencoded;charset=utf-8"):a.headers.forEach(function(a){return d.setRequestHeader(a[0],a[1])});d.responseType=a.responseType;d.send(a.body)})};var Kc=function(){this.a="";this.b=Jc};Kc.prototype.qc=!0;Kc.prototype.Vc=function(){return this.a};Kc.prototype.toString=function(){return"Const{"+this.a+"}"};var Jc={},Lc=function(a){var b=new Kc;b.a=a;return b};Lc("");var Nc=function(){this.a=Mc};Nc.prototype.qc=!0;var Mc={};Nc.prototype.Vc=function(){return""};Nc.prototype.toString=function(){return"SafeScript{}"};var Oc=function(a){if(a instanceof Nc&&a.constructor===Nc&&a.a===Mc)return"";Hb("expected object of type SafeScript, got '"+a+"' of type "+ya(a));return"type_error:SafeScript"};var Pc=/[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]/,Sc=/^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u06ef\u06fa-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]/,Tc=/^http:\/\/.*/,Uc=/\s+/,Vc=/[\d\u06f0-\u06f9]/;var Xc=function(){this.a="";this.b=Wc};Xc.prototype.qc=!0;Xc.prototype.Vc=function(){return this.a};Xc.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var Yc=function(a){if(a instanceof Xc&&a.constructor===Xc&&a.b===Wc)return a.a;Hb("expected object of type TrustedResourceUrl, got '"+a+"' of type "+ya(a));return"type_error:TrustedResourceUrl"},Wc={},Zc=function(a){var b=new Xc;b.a=a;return b};var ad=function(){this.a=$c};ad.prototype.qc=!0;ad.prototype.Vc=function(){return""};ad.prototype.toString=function(){return"SafeUrl{}"};var bd=function(a){if(a instanceof ad&&a.constructor===ad&&a.a===$c)return"";Hb("expected object of type SafeUrl, got '"+a+"' of type "+ya(a));return"type_error:SafeUrl"},$c={};var dd=function(){this.a=cd};dd.prototype.qc=!0;var cd={};dd.prototype.Vc=function(){return""};dd.prototype.toString=function(){return"SafeStyle{}"};var ed=function(a){if(a instanceof dd&&a.constructor===dd&&a.a===cd)return"";Hb("expected object of type SafeStyle, got '"+a+"' of type "+ya(a));return"type_error:SafeStyle"};var fd;a:{var gd=sa.navigator;if(gd){var hd=gd.userAgent;if(hd){fd=hd;break a}}fd=""}var id=function(a){return-1!=fd.indexOf(a)};var jd=function(){return(id("Chrome")||id("CriOS"))&&!id("Edge")};var nd=function(){this.a="";this.b=kd;this.zd=null};nd.prototype.qc=!0;nd.prototype.Vc=function(){return this.a};nd.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var od=function(a){if(a instanceof nd&&a.constructor===nd&&a.b===kd)return a.a;Hb("expected object of type SafeHtml, got '"+a+"' of type "+ya(a));return"type_error:SafeHtml"},kd={},pd=function(a){var b=new nd;b.a=a;b.zd=0};pd("<!DOCTYPE html>");pd("");pd("<br>");var qd=function(){return id("iPhone")&&!id("iPod")&&!id("iPad")},rd=function(){return qd()||id("iPad")||id("iPod")};var sd=function(a,b,c){this.v=a;this.f=0<b?b:10;this.u=0<c?c:1;this.l=1;this.h=0;this.g=!1;this.a=this.b=null};sd.prototype.start=function(){if(null!=this.a)return Promise.reject(Error("Cannot call Retry.start more than once."));this.a=new kb;this.m();return this.a.a};sd.prototype.m=function(){var a=this;this.b=null;this.g||(this.h++,this.v().then(function(b){td(a);a.a.resolve(b)},function(){a.h>=a.u?(td(a),a.a.reject(Error("Max attempts reached"))):(a.b=setTimeout(a.m.bind(a),a.f),a.f*=a.l)}))};
var ud=function(a,b){a.l=b;return a};sd.prototype.abort=function(){td(this);this.a.reject(Error("abort"))};var td=function(a){null!=a.b&&(clearTimeout(a.b),a.b=null);a.g=!0};var vd=function(a){vd[" "](a);return a};vd[" "]=wa;var wd=function(a,b){try{return vd(a[b]),!0}catch(c){}return!1},yd=function(a,b){var c=xd;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};var zd=function(){return sa.navigator||null},Ad=id("Opera"),Bd=id("Trident")||id("MSIE"),Cd=id("Edge"),Dd=id("Gecko")&&!(-1!=fd.toLowerCase().indexOf("webkit")&&!id("Edge"))&&!(id("Trident")||id("MSIE"))&&!id("Edge"),Ed=-1!=fd.toLowerCase().indexOf("webkit")&&!id("Edge"),Fd=Ed&&id("Mobile"),Gd=zd(),Hd=Gd&&Gd.platform||"",Id=id("Macintosh"),Jd=id("Windows"),Kd=id("Linux")||id("CrOS"),Md=id("Android"),Nd=qd(),Od=id("iPad"),Pd=id("iPod"),Qd=function(){var a=sa.document;return a?a.documentMode:void 0},
Rd;a:{var Sd="",Td=function(){var a=fd;if(Dd)return/rv\:([^\);]+)(\)|;)/.exec(a);if(Cd)return/Edge\/([\d\.]+)/.exec(a);if(Bd)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(Ed)return/WebKit\/(\S+)/.exec(a);if(Ad)return/(?:Version)[ \/]?(\S+)/.exec(a)}();Td&&(Sd=Td?Td[1]:"");if(Bd){var Ud=Qd();if(null!=Ud&&Ud>parseFloat(Sd)){Rd=String(Ud);break a}}Rd=Sd}var Vd=Rd,xd={},Wd=function(a){return yd(a,function(){return 0<=Cb(Vd,a)})},Xd;var Yd=sa.document;
Xd=Yd&&Bd?Qd()||("CSS1Compat"==Yd.compatMode?parseInt(Vd,10):5):void 0;var Zd=function(a,b,c){this.source=a;this.type=b;this.message=c};var ae=function(a,b,c){null==$d&&($d=new Fc(1,3E5,1));var d="https://crash.corp.google.com/samples?stbtiq="+b,e="http://"+a+":8008/setup/send_log_report";$d.send(e,"POST",JSON.stringify({uuid:b}),{headers:[["Content-Type","application/json"]]}).then(function(a){200==a.status?c("ok",d):c("error","Unable to POST to "+e+", "+("error = "+a.status))},function(a){c("error",String(a))});return d},de=function(a){var b=new be;if("string"!==typeof a)return Promise.resolve(b);null==ce&&(ce=new Fc(1,3E3,1));
return ce.send("http://"+a+":8008/setup/eureka_info","GET",void 0,{responseType:"text"}).then(function(a){a=JSON.parse(a.responseText);"cast_build_revision"in a?b.a=String(a.cast_build_revision):"build_version"in a&&(b.a=String(a.build_version));"connected"in a&&(b.g="true"==String(a.connected));"ethernet_connected"in a&&(b.b="true"==String(a.ethernet_connected));"has_update"in a&&(b.f="true"==String(a.has_update));"uptime"in a&&(a=Number(a.uptime),Number.isFinite(a)&&(b.l=a))}).catch(function(a){v(Pa("mr.DongleUtils"),
"Unable to fetch/parse setup info.",a)}).then(function(){return b})},be=function(){this.l=this.f=this.b=this.g=this.a=null},$d=null,ce=null;var ee=!Dd&&!Bd||Bd&&9<=Number(Xd)||Dd&&Wd("1.9.1");Bd&&Wd("9");var fe=function(a,b){this.width=a;this.height=b};h=fe.prototype;h.clone=function(){return new fe(this.width,this.height)};h.toString=function(){return"("+this.width+" x "+this.height+")"};h.Vg=function(){return this.width*this.height};h.aspectRatio=function(){return this.width/this.height};h.rb=function(){return!this.Vg()};h.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
h.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};h.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};var ge={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"},he=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new fe(a.clientWidth,a.clientHeight)},ie=function(a){return a?a.parentWindow||a.defaultView:window},je=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document},
ke=function(a,b){if("textContent"in a)a.textContent=b;else if(3==a.nodeType)a.data=String(b);else if(a.firstChild&&3==a.firstChild.nodeType){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=String(b)}else{for(var c;c=a.firstChild;)a.removeChild(c);a.appendChild(je(a).createTextNode(String(b)))}},le=function(a){this.a=a||sa.document||document};
le.prototype.setProperties=function(a,b){oc(b,function(b,d){b&&b.qc&&(b=b.Vc());"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:ge.hasOwnProperty(d)?a.setAttribute(ge[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})};le.prototype.getChildren=function(a){return ee&&void 0!=a.children?a.children:Mb(a.childNodes,function(a){return 1==a.nodeType})};le.prototype.isElement=function(a){return Da(a)&&1==a.nodeType};
le.prototype.contains=function(a,b){if(!a||!b)return!1;if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};
