(function(){'use strict';var f,aa="function"==typeof Object.create?Object.create:function(a){var b=function(){};b.prototype=a;return new b},ba;if("function"==typeof Object.setPrototypeOf)ba=Object.setPrototypeOf;else{var ca;a:{var da={Db:!0},ea={};try{ea.__proto__=da;ca=ea.Db;break a}catch(a){}ca=!1}ba=ca?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
var fa=ba,ha="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},h="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,ia=function(){ia=function(){};h.Symbol||(h.Symbol=ja)},ja=function(){var a=0;return function(b){return"jscomp_symbol_"+(b||"")+a++}}(),la=function(){ia();var a=h.Symbol.iterator;a||(a=h.Symbol.iterator=h.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&
ha(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return ka(this)}});la=function(){}},ka=function(a){var b=0;return ma(function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}})},ma=function(a){la();a={next:a};a[h.Symbol.iterator]=function(){return this};return a},na=function(a){la();var b=a[Symbol.iterator];return b?b.call(a):ka(a)},l=this,m=function(a){return"string"==typeof a},oa=function(){},qa=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},ra=function(a){var b=qa(a);return"array"==b||"object"==b&&"number"==typeof a.length},sa="closure_uid_"+(1E9*Math.random()>>>0),ta=0,ua=function(a,b,c){return a.call.apply(a.bind,arguments)},va=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=ua:p=va;return p.apply(null,arguments)},q=function(a,b){a=a.split(".");var c=l;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};var chrome=chrome||window.chrome||{};chrome.cast=chrome.cast||{};chrome.cast.media=chrome.cast.media||{};chrome.cast.VERSION=[1,2];q("chrome.cast.VERSION",chrome.cast.VERSION);chrome.cast.nc=!0;q("chrome.cast.usingPresentationApi",chrome.cast.nc);chrome.cast.Error=function(a,b,c){this.code=a;this.description=b||null;this.details=c||null};q("chrome.cast.Error",chrome.cast.Error);chrome.cast.pb=function(a){this.platform=a;this.packageId=this.url=null};q("chrome.cast.SenderApplication",chrome.cast.pb);chrome.cast.Image=function(a){this.url=a;this.width=this.height=null};q("chrome.cast.Image",chrome.cast.Image);
chrome.cast.Volume=function(a,b){this.level=void 0!==a?a:null;this.muted=void 0!==b?b:null};q("chrome.cast.Volume",chrome.cast.Volume);var wa=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},xa=/&/g,ya=/</g,za=/>/g,Aa=/"/g,Ba=/'/g,Ca=/\x00/g,Da=/[\x00&<>"']/,Fa=function(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var c=l.document.createElement("div");return a.replace(Ea,function(a,e){var d=b[a];if(d)return d;"#"==e.charAt(0)&&(e=Number("0"+e.substr(1)),isNaN(e)||(d=String.fromCharCode(e)));d||(c.innerHTML=a+" ",d=c.firstChild.nodeValue.slice(0,-1));return b[a]=
d})},Ga=function(a){return a.replace(/&([^;]+);/g,function(a,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return"#"!=c.charAt(0)||(c=Number("0"+c.substr(1)),isNaN(c))?a:String.fromCharCode(c)}})},Ea=/&([^;\s<&]+);?/g,Ha=function(a,b){return a<b?-1:a>b?1:0};chrome.cast.ha={CUSTOM_CONTROLLER_SCOPED:"custom_controller_scoped",TAB_AND_ORIGIN_SCOPED:"tab_and_origin_scoped",ORIGIN_SCOPED:"origin_scoped",PAGE_SCOPED:"page_scoped"};q("chrome.cast.AutoJoinPolicy",chrome.cast.ha);chrome.cast.ja={CREATE_SESSION:"create_session",CAST_THIS_TAB:"cast_this_tab"};q("chrome.cast.DefaultActionPolicy",chrome.cast.ja);chrome.cast.U={VIDEO_OUT:"video_out",AUDIO_OUT:"audio_out",VIDEO_IN:"video_in",AUDIO_IN:"audio_in",MULTIZONE_GROUP:"multizone_group"};
q("chrome.cast.Capability",chrome.cast.U);chrome.cast.v={CANCEL:"cancel",TIMEOUT:"timeout",API_NOT_INITIALIZED:"api_not_initialized",INVALID_PARAMETER:"invalid_parameter",EXTENSION_NOT_COMPATIBLE:"extension_not_compatible",EXTENSION_MISSING:"extension_missing",RECEIVER_UNAVAILABLE:"receiver_unavailable",SESSION_ERROR:"session_error",CHANNEL_ERROR:"channel_error",LOAD_MEDIA_FAILED:"load_media_failed"};q("chrome.cast.ErrorCode",chrome.cast.v);chrome.cast.M={AVAILABLE:"available",UNAVAILABLE:"unavailable"};
q("chrome.cast.ReceiverAvailability",chrome.cast.M);chrome.cast.qb={CHROME:"chrome",IOS:"ios",ANDROID:"android"};q("chrome.cast.SenderPlatform",chrome.cast.qb);chrome.cast.sa={CAST:"cast",DIAL:"dial",HANGOUT:"hangout",CUSTOM:"custom"};q("chrome.cast.ReceiverType",chrome.cast.sa);chrome.cast.Ra={RUNNING:"running",STOPPED:"stopped",ERROR:"error"};q("chrome.cast.DialAppState",chrome.cast.Ra);chrome.cast.lb={CAST:"cast",STOP:"stop"};q("chrome.cast.ReceiverAction",chrome.cast.lb);
chrome.cast.G={CONNECTED:"connected",DISCONNECTED:"disconnected",STOPPED:"stopped"};q("chrome.cast.SessionStatus",chrome.cast.G);chrome.cast.Bb={ATTENUATION:"attenuation",FIXED:"fixed",MASTER:"master"};q("chrome.cast.VolumeControlType",chrome.cast.Bb);chrome.cast.Na=function(a,b,c,d,e){this.sessionRequest=a;this.sessionListener=b;this.receiverListener=c;this.autoJoinPolicy=d||chrome.cast.ha.TAB_AND_ORIGIN_SCOPED;this.defaultActionPolicy=e||chrome.cast.ja.CREATE_SESSION;this.customDialLaunchCallback=null;this.invisibleSender=!1;this.additionalSessionRequests=[]};q("chrome.cast.ApiConfig",chrome.cast.Na);chrome.cast.Ua=function(a,b){this.appName=a;this.launchParameter=b||null};q("chrome.cast.DialRequest",chrome.cast.Ua);
chrome.cast.Sa=function(a,b,c){this.receiver=a;this.appState=b;this.extraData=c||null};q("chrome.cast.DialLaunchData",chrome.cast.Sa);chrome.cast.Ta=function(a,b){this.doLaunch=a;this.launchParameter=b||null};q("chrome.cast.DialLaunchResponse",chrome.cast.Ta);chrome.cast.rb=function(a,b,c){this.appId=a;this.capabilities="array"==qa(b)?b:[chrome.cast.U.VIDEO_OUT,chrome.cast.U.AUDIO_OUT];this.requestSessionTimeout=c||chrome.cast.timeout.requestSession;this.dialRequest=this.language=null};
q("chrome.cast.SessionRequest",chrome.cast.rb);
chrome.cast.kb=function(a,b,c,d){this.label=a;a=b;Da.test(a)&&(-1!=a.indexOf("&")&&(a=a.replace(xa,"&amp;")),-1!=a.indexOf("<")&&(a=a.replace(ya,"&lt;")),-1!=a.indexOf(">")&&(a=a.replace(za,"&gt;")),-1!=a.indexOf('"')&&(a=a.replace(Aa,"&quot;")),-1!=a.indexOf("'")&&(a=a.replace(Ba,"&#39;")),-1!=a.indexOf("\x00")&&(a=a.replace(Ca,"&#0;")));this.friendlyName=a;this.capabilities=c||[];this.volume=d||null;this.receiverType=chrome.cast.sa.CAST;this.displayStatus=this.isActiveInput=null};
q("chrome.cast.Receiver",chrome.cast.kb);chrome.cast.mb=function(a,b){this.statusText=a;this.appImages=b;this.showStop=null};q("chrome.cast.ReceiverDisplayStatus",chrome.cast.mb);chrome.cast.va=function(){this.requestSession=6E4;this.sendCustomMessage=this.setReceiverVolume=this.stopSession=this.leaveSession=3E3};q("chrome.cast.Timeout",chrome.cast.va);chrome.cast.timeout=new chrome.cast.va;q("chrome.cast.timeout",chrome.cast.timeout);chrome.cast.Ma="auto-join";chrome.cast.fb="cast-session_";chrome.cast.media.ab={PAUSE:"pause",SEEK:"seek",STREAM_VOLUME:"stream_volume",STREAM_MUTE:"stream_mute"};q("chrome.cast.media.MediaCommand",chrome.cast.media.ab);chrome.cast.media.s={GENERIC:0,MOVIE:1,TV_SHOW:2,MUSIC_TRACK:3,PHOTO:4};q("chrome.cast.media.MetadataType",chrome.cast.media.s);chrome.cast.media.F={IDLE:"IDLE",PLAYING:"PLAYING",PAUSED:"PAUSED",BUFFERING:"BUFFERING"};q("chrome.cast.media.PlayerState",chrome.cast.media.F);
chrome.cast.media.V={OFF:"REPEAT_OFF",ALL:"REPEAT_ALL",SINGLE:"REPEAT_SINGLE",ALL_AND_SHUFFLE:"REPEAT_ALL_AND_SHUFFLE"};q("chrome.cast.media.RepeatMode",chrome.cast.media.V);chrome.cast.media.nb={PLAYBACK_START:"PLAYBACK_START",PLAYBACK_PAUSE:"PLAYBACK_PAUSE"};q("chrome.cast.media.ResumeState",chrome.cast.media.nb);chrome.cast.media.ua={BUFFERED:"BUFFERED",LIVE:"LIVE",OTHER:"OTHER"};q("chrome.cast.media.StreamType",chrome.cast.media.ua);
chrome.cast.media.Ya={CANCELLED:"CANCELLED",INTERRUPTED:"INTERRUPTED",FINISHED:"FINISHED",ERROR:"ERROR"};q("chrome.cast.media.IdleReason",chrome.cast.media.Ya);chrome.cast.media.zb={TEXT:"TEXT",AUDIO:"AUDIO",VIDEO:"VIDEO"};q("chrome.cast.media.TrackType",chrome.cast.media.zb);chrome.cast.media.wb={SUBTITLES:"SUBTITLES",CAPTIONS:"CAPTIONS",DESCRIPTIONS:"DESCRIPTIONS",CHAPTERS:"CHAPTERS",METADATA:"METADATA"};q("chrome.cast.media.TextTrackType",chrome.cast.media.wb);
chrome.cast.media.sb={NONE:"NONE",OUTLINE:"OUTLINE",DROP_SHADOW:"DROP_SHADOW",RAISED:"RAISED",DEPRESSED:"DEPRESSED"};q("chrome.cast.media.TextTrackEdgeType",chrome.cast.media.sb);chrome.cast.media.xb={NONE:"NONE",NORMAL:"NORMAL",ROUNDED_CORNERS:"ROUNDED_CORNERS"};q("chrome.cast.media.TextTrackWindowType",chrome.cast.media.xb);
chrome.cast.media.tb={SANS_SERIF:"SANS_SERIF",MONOSPACED_SANS_SERIF:"MONOSPACED_SANS_SERIF",SERIF:"SERIF",MONOSPACED_SERIF:"MONOSPACED_SERIF",CASUAL:"CASUAL",CURSIVE:"CURSIVE",SMALL_CAPITALS:"SMALL_CAPITALS"};q("chrome.cast.media.TextTrackFontGenericFamily",chrome.cast.media.tb);chrome.cast.media.ub={NORMAL:"NORMAL",BOLD:"BOLD",BOLD_ITALIC:"BOLD_ITALIC",ITALIC:"ITALIC"};q("chrome.cast.media.TextTrackFontStyle",chrome.cast.media.ub);chrome.cast.media.ka=function(){this.customData=null};q("chrome.cast.media.GetStatusRequest",chrome.cast.media.ka);chrome.cast.media.la=function(){this.customData=null};q("chrome.cast.media.PauseRequest",chrome.cast.media.la);chrome.cast.media.ma=function(){this.customData=null};q("chrome.cast.media.PlayRequest",chrome.cast.media.ma);chrome.cast.media.ob=function(){this.customData=this.resumeState=this.currentTime=null};q("chrome.cast.media.SeekRequest",chrome.cast.media.ob);
chrome.cast.media.ta=function(){this.customData=null};q("chrome.cast.media.StopRequest",chrome.cast.media.ta);chrome.cast.media.Cb=function(a){this.volume=a;this.customData=null};q("chrome.cast.media.VolumeRequest",chrome.cast.media.Cb);chrome.cast.media.Za=function(a){this.type="LOAD";this.requestId=0;this.sessionId=null;this.media=a;this.activeTrackIds=null;this.autoplay=!0;this.customData=this.currentTime=null};q("chrome.cast.media.LoadRequest",chrome.cast.media.Za);
chrome.cast.media.hb=function(a){this.type="PRECACHE";this.requestId=0;this.precacheData=a};chrome.cast.media.Va=function(a,b){this.requestId=0;this.activeTrackIds=a||null;this.textTrackStyle=b||null};q("chrome.cast.media.EditTracksInfoRequest",chrome.cast.media.Va);chrome.cast.media.Xa=function(){this.metadataType=this.type=chrome.cast.media.s.GENERIC;this.releaseDate=this.releaseYear=this.images=this.subtitle=this.title=null};q("chrome.cast.media.GenericMediaMetadata",chrome.cast.media.Xa);
chrome.cast.media.cb=function(){this.metadataType=this.type=chrome.cast.media.s.MOVIE;this.releaseDate=this.releaseYear=this.images=this.subtitle=this.studio=this.title=null};q("chrome.cast.media.MovieMediaMetadata",chrome.cast.media.cb);chrome.cast.media.Ab=function(){this.metadataType=this.type=chrome.cast.media.s.TV_SHOW;this.originalAirdate=this.releaseYear=this.images=this.episode=this.episodeNumber=this.season=this.seasonNumber=this.episodeTitle=this.title=this.seriesTitle=null};
q("chrome.cast.media.TvShowMediaMetadata",chrome.cast.media.Ab);chrome.cast.media.eb=function(){this.metadataType=this.type=chrome.cast.media.s.MUSIC_TRACK;this.releaseDate=this.releaseYear=this.images=this.discNumber=this.trackNumber=this.artistName=this.songName=this.composer=this.artist=this.albumArtist=this.title=this.albumName=null};q("chrome.cast.media.MusicTrackMediaMetadata",chrome.cast.media.eb);
chrome.cast.media.gb=function(){this.metadataType=this.type=chrome.cast.media.s.PHOTO;this.creationDateTime=this.height=this.width=this.longitude=this.latitude=this.images=this.location=this.artist=this.title=null};q("chrome.cast.media.PhotoMediaMetadata",chrome.cast.media.gb);chrome.cast.media.bb=function(a,b){this.contentId=a;this.streamType=chrome.cast.media.ua.BUFFERED;this.contentType=b;this.customData=this.textTrackStyle=this.tracks=this.duration=this.metadata=null};
q("chrome.cast.media.MediaInfo",chrome.cast.media.bb);chrome.cast.media.oa=function(a){this.itemId=null;this.media=a;this.autoplay=!0;this.startTime=0;this.playbackDuration=null;this.preloadTime=0;this.customData=this.activeTrackIds=null};q("chrome.cast.media.QueueItem",chrome.cast.media.oa);chrome.cast.media.Qa="CC1AD845";q("chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID",chrome.cast.media.Qa);chrome.cast.media.timeout={};chrome.cast.media.timeout.load=0;q("chrome.cast.media.timeout.load",chrome.cast.media.timeout.load);
chrome.cast.media.timeout.O=0;q("chrome.cast.media.timeout.getStatus",chrome.cast.media.timeout.O);chrome.cast.media.timeout.play=0;q("chrome.cast.media.timeout.play",chrome.cast.media.timeout.play);chrome.cast.media.timeout.pause=0;q("chrome.cast.media.timeout.pause",chrome.cast.media.timeout.pause);chrome.cast.media.timeout.seek=0;q("chrome.cast.media.timeout.seek",chrome.cast.media.timeout.seek);chrome.cast.media.timeout.stop=0;q("chrome.cast.media.timeout.stop",chrome.cast.media.timeout.stop);
chrome.cast.media.timeout.S=0;q("chrome.cast.media.timeout.setVolume",chrome.cast.media.timeout.S);chrome.cast.media.timeout.N=0;q("chrome.cast.media.timeout.editTracksInfo",chrome.cast.media.timeout.N);chrome.cast.media.timeout.o=0;q("chrome.cast.media.timeout.queue",chrome.cast.media.timeout.o);chrome.cast.media.yb=function(a,b){this.trackId=a;this.trackContentType=this.trackContentId=null;this.type=b;this.customData=this.subtype=this.language=this.name=null};q("chrome.cast.media.Track",chrome.cast.media.yb);
chrome.cast.media.vb=function(){this.customData=this.fontStyle=this.fontGenericFamily=this.fontFamily=this.fontScale=this.windowRoundedCornerRadius=this.windowColor=this.windowType=this.edgeColor=this.edgeType=this.backgroundColor=this.foregroundColor=null};q("chrome.cast.media.TextTrackStyle",chrome.cast.media.vb);chrome.cast.media.ib=function(a){this.type="QUEUE_LOAD";this.sessionId=this.requestId=null;this.items=a;this.startIndex=0;this.repeatMode=chrome.cast.media.V.OFF;this.customData=null};
q("chrome.cast.media.QueueLoadRequest",chrome.cast.media.ib);chrome.cast.media.na=function(a){this.type="QUEUE_INSERT";this.sessionId=this.requestId=null;this.items=a;this.customData=this.insertBefore=null};q("chrome.cast.media.QueueInsertItemsRequest",chrome.cast.media.na);chrome.cast.media.jb=function(a){this.type="QUEUE_UPDATE";this.sessionId=this.requestId=null;this.items=a;this.customData=null};q("chrome.cast.media.QueueUpdateItemsRequest",chrome.cast.media.jb);
chrome.cast.media.L=function(){this.type="QUEUE_UPDATE";this.customData=this.jump=this.currentItemId=this.sessionId=this.requestId=null};q("chrome.cast.media.QueueJumpRequest",chrome.cast.media.L);chrome.cast.media.ra=function(){this.type="QUEUE_UPDATE";this.customData=this.repeatMode=this.sessionId=this.requestId=null};q("chrome.cast.media.QueueSetPropertiesRequest",chrome.cast.media.ra);
chrome.cast.media.pa=function(a){this.type="QUEUE_REMOVE";this.sessionId=this.requestId=null;this.itemIds=a;this.customData=null};q("chrome.cast.media.QueueRemoveItemsRequest",chrome.cast.media.pa);chrome.cast.media.qa=function(a){this.type="QUEUE_REORDER";this.sessionId=this.requestId=null;this.itemIds=a;this.customData=this.insertBefore=null};q("chrome.cast.media.QueueReorderItemsRequest",chrome.cast.media.qa);var r=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=m(a)?a.split(""):a,g=0;g<d;g++)g in e&&b.call(c,e[g],g,a)},Ia=function(a,b){for(var c=a.length,d=m(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return e;return-1},Ja=function(a){return Array.prototype.concat.apply([],arguments)},Ka=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[]};chrome.cast.media.b=function(a,b){this.sessionId=a;this.mediaSessionId=b;this.media=null;this.playbackRate=1;this.playerState=chrome.cast.media.F.IDLE;this.currentTime=0;this.g=-1;this.supportedMediaCommands=[];this.volume=new chrome.cast.Volume;this.items=this.preloadedItemId=this.loadingItemId=this.currentItemId=this.customData=this.activeTrackIds=this.idleReason=null;this.repeatMode=chrome.cast.media.V.OFF;this.c=!1;this.a=[]};q("chrome.cast.media.Media",chrome.cast.media.b);
chrome.cast.media.b.prototype.O=function(a,b,c){a||(a=new chrome.cast.media.ka);t.a(this,"MEDIA_GET_STATUS",a,b,c,chrome.cast.media.timeout.O)};chrome.cast.media.b.prototype.getStatus=chrome.cast.media.b.prototype.O;chrome.cast.media.b.prototype.play=function(a,b,c){this.Aa(t,a,b,c)};chrome.cast.media.b.prototype.play=chrome.cast.media.b.prototype.play;chrome.cast.media.b.prototype.Aa=function(a,b,c,d){b||(b=new chrome.cast.media.ma);a.a(this,"PLAY",b,c,d,chrome.cast.media.timeout.play)};
chrome.cast.media.b.prototype.playWithContext=chrome.cast.media.b.prototype.Aa;chrome.cast.media.b.prototype.pause=function(a,b,c){this.za(t,a,b,c)};chrome.cast.media.b.prototype.pause=chrome.cast.media.b.prototype.pause;chrome.cast.media.b.prototype.za=function(a,b,c,d){b||(b=new chrome.cast.media.la);a.a(this,"PAUSE",b,c,d,chrome.cast.media.timeout.pause)};chrome.cast.media.b.prototype.pauseWithContext=chrome.cast.media.b.prototype.za;
chrome.cast.media.b.prototype.seek=function(a,b,c){t.a(this,"SEEK",a,b,c,chrome.cast.media.timeout.seek)};chrome.cast.media.b.prototype.seek=chrome.cast.media.b.prototype.seek;chrome.cast.media.b.prototype.stop=function(a,b,c){a||(a=new chrome.cast.media.ta);t.a(this,"STOP_MEDIA",a,b,c,chrome.cast.media.timeout.stop)};chrome.cast.media.b.prototype.stop=chrome.cast.media.b.prototype.stop;chrome.cast.media.b.prototype.S=function(a,b,c){t.a(this,"MEDIA_SET_VOLUME",a,b,c,chrome.cast.media.timeout.S)};
chrome.cast.media.b.prototype.setVolume=chrome.cast.media.b.prototype.S;chrome.cast.media.b.prototype.N=function(a,b,c){t.a(this,"EDIT_TRACKS_INFO",a,b,c,chrome.cast.media.timeout.N)};chrome.cast.media.b.prototype.editTracksInfo=chrome.cast.media.b.prototype.N;chrome.cast.media.b.prototype.Sb=function(a,b,c){t.a(this,"QUEUE_INSERT",a,b,c,chrome.cast.media.timeout.o)};chrome.cast.media.b.prototype.queueInsertItems=chrome.cast.media.b.prototype.Sb;
chrome.cast.media.b.prototype.Rb=function(a,b,c){t.a(this,"QUEUE_INSERT",new chrome.cast.media.na([a]),b,c,chrome.cast.media.timeout.o)};chrome.cast.media.b.prototype.queueAppendItem=chrome.cast.media.b.prototype.Rb;chrome.cast.media.b.prototype.cc=function(a,b,c){t.a(this,"QUEUE_UPDATE",a,b,c,chrome.cast.media.timeout.o)};chrome.cast.media.b.prototype.queueUpdateItems=chrome.cast.media.b.prototype.cc;
chrome.cast.media.b.prototype.Xb=function(a,b){var c=new chrome.cast.media.L;c.jump=-1;t.a(this,"QUEUE_UPDATE",c,a,b,chrome.cast.media.timeout.o)};chrome.cast.media.b.prototype.queuePrev=chrome.cast.media.b.prototype.Xb;chrome.cast.media.b.prototype.Wb=function(a,b){var c=new chrome.cast.media.L;c.jump=1;t.a(this,"QUEUE_UPDATE",c,a,b,chrome.cast.media.timeout.o)};chrome.cast.media.b.prototype.queueNext=chrome.cast.media.b.prototype.Wb;
chrome.cast.media.b.prototype.Tb=function(a,b,c){if(!(0>La(this,a))){var d=new chrome.cast.media.L;d.currentItemId=a;t.a(this,"QUEUE_UPDATE",d,b,c,chrome.cast.media.timeout.o)}};chrome.cast.media.b.prototype.queueJumpToItem=chrome.cast.media.b.prototype.Tb;chrome.cast.media.b.prototype.bc=function(a,b,c){var d=new chrome.cast.media.ra;d.repeatMode=a;t.a(this,"QUEUE_UPDATE",d,b,c,chrome.cast.media.timeout.o)};chrome.cast.media.b.prototype.queueSetRepeatMode=chrome.cast.media.b.prototype.bc;
chrome.cast.media.b.prototype.Zb=function(a,b,c){t.a(this,"QUEUE_REMOVE",a,b,c,chrome.cast.media.timeout.o)};chrome.cast.media.b.prototype.queueRemoveItems=chrome.cast.media.b.prototype.Zb;chrome.cast.media.b.prototype.Yb=function(a,b,c){0>La(this,a)||t.a(this,"QUEUE_REMOVE",new chrome.cast.media.pa([a]),b,c,chrome.cast.media.timeout.o)};chrome.cast.media.b.prototype.queueRemoveItem=chrome.cast.media.b.prototype.Yb;chrome.cast.media.b.prototype.ac=function(a,b,c){t.a(this,"QUEUE_REORDER",a,b,c,chrome.cast.media.timeout.o)};
chrome.cast.media.b.prototype.queueReorderItems=chrome.cast.media.b.prototype.ac;chrome.cast.media.b.prototype.Vb=function(a,b,c,d){var e=La(this,a);if(!(0>e))if(0>b)d&&d(new chrome.cast.Error(chrome.cast.v.INVALID_PARAMETER));else if(e==b)c&&c();else{var g=null;b=b>e?b+1:b;b<this.items.length&&(g=this.items[b]);a=new chrome.cast.media.qa([a]);a.insertBefore=g?g.itemId:null;t.a(this,"QUEUE_REORDER",a,c,d,chrome.cast.media.timeout.o)}};chrome.cast.media.b.prototype.queueMoveItemToNewIndex=chrome.cast.media.b.prototype.Vb;
chrome.cast.media.b.prototype.mc=function(a){return-1<this.supportedMediaCommands.indexOf(a)};chrome.cast.media.b.prototype.supportsCommand=chrome.cast.media.b.prototype.mc;chrome.cast.media.b.prototype.Kb=function(){if(this.playerState==chrome.cast.media.F.PLAYING&&0<=this.g){var a=this.currentTime+(Date.now()-this.g)/1E3*this.playbackRate;this.media&&null!=this.media.duration&&a>this.media.duration&&(a=this.media.duration);0>a&&(a=0);return a}return this.currentTime};
chrome.cast.media.b.prototype.getEstimatedTime=chrome.cast.media.b.prototype.Kb;chrome.cast.media.b.prototype.Y=function(a){this.H(t,a)};chrome.cast.media.b.prototype.addUpdateListener=chrome.cast.media.b.prototype.Y;chrome.cast.media.b.prototype.H=function(a,b){a.Fb(this,b)};chrome.cast.media.b.prototype.addUpdateListenerWithContext=chrome.cast.media.b.prototype.H;chrome.cast.media.b.prototype.ba=function(a){this.K(t,a)};chrome.cast.media.b.prototype.removeUpdateListener=chrome.cast.media.b.prototype.ba;
chrome.cast.media.b.prototype.K=function(a,b){t.ec(this,b)};chrome.cast.media.b.prototype.removeUpdateListenerWithContext=chrome.cast.media.b.prototype.K;var La=function(a,b){return Ia(a.items,function(a){return a.itemId==b})};var t=null;var Ma=function(a,b,c){this.sessionId=a;this.namespaceName=b;this.message=c};var Na=function(a,b){this.type="SET_VOLUME";this.requestId=0;this.volume=a;this.expectedVolume=b||null};var Oa=function(a){this.type="STOP";this.requestId=0;this.sessionId=a||null};chrome.cast.f=function(a,b,c,d,e){this.sessionId=a;this.appId=b;this.displayName=c;this.statusText=null;this.appImages=d;this.receiver=e;this.senderApps=[];this.namespaces=[];this.media=[];this.status=chrome.cast.G.CONNECTED;this.transportId=""};q("chrome.cast.Session",chrome.cast.f);chrome.cast.f.prototype.lc=function(a,b,c){this.Ha(t,a,b,c)};chrome.cast.f.prototype.setReceiverVolumeLevel=chrome.cast.f.prototype.lc;
chrome.cast.f.prototype.Ha=function(a,b,c,d){b=new Na(new chrome.cast.Volume(b,null),this.receiver.volume);a.setReceiverVolume(this.sessionId,b,c,d)};chrome.cast.f.prototype.setReceiverVolumeLevelWithContext=chrome.cast.f.prototype.Ha;chrome.cast.f.prototype.kc=function(a,b,c){this.Ga(0,a,b,c)};chrome.cast.f.prototype.setReceiverMuted=chrome.cast.f.prototype.kc;
chrome.cast.f.prototype.Ga=function(a,b,c,d){a=new Na(new chrome.cast.Volume(null,b),this.receiver.volume);t.setReceiverVolume(this.sessionId,a,c,d)};chrome.cast.f.prototype.setReceiverMutedWithContext=chrome.cast.f.prototype.Ga;chrome.cast.f.prototype.Mb=function(a,b){t.leaveSession(this.sessionId,a,b)};chrome.cast.f.prototype.leave=chrome.cast.f.prototype.Mb;chrome.cast.f.prototype.stop=function(a,b){this.Ja(t,a,b)};chrome.cast.f.prototype.stop=chrome.cast.f.prototype.stop;
chrome.cast.f.prototype.Ja=function(a,b,c){a.Ea(new Oa(this.sessionId),b,c,chrome.cast.timeout.stopSession)};chrome.cast.f.prototype.stopWithContext=chrome.cast.f.prototype.Ja;chrome.cast.f.prototype.sendMessage=function(a,b,c,d){this.Fa(t,a,b,c,d)};chrome.cast.f.prototype.sendMessage=chrome.cast.f.prototype.sendMessage;chrome.cast.f.prototype.Fa=function(a,b,c,d,e){a.hc(new Ma(this.sessionId,b,c),d,e)};chrome.cast.f.prototype.sendMessageWithContext=chrome.cast.f.prototype.Fa;
chrome.cast.f.prototype.Y=function(a){this.H(t,a)};chrome.cast.f.prototype.addUpdateListener=chrome.cast.f.prototype.Y;chrome.cast.f.prototype.H=function(a,b){a.Hb(this.sessionId,b)};chrome.cast.f.prototype.addUpdateListenerWithContext=chrome.cast.f.prototype.H;chrome.cast.f.prototype.ba=function(a){this.K(t,a)};chrome.cast.f.prototype.removeUpdateListener=chrome.cast.f.prototype.ba;chrome.cast.f.prototype.K=function(a,b){a.gc(this.sessionId,b)};
chrome.cast.f.prototype.removeUpdateListenerWithContext=chrome.cast.f.prototype.K;chrome.cast.f.prototype.Gb=function(a,b){this.xa(t,a,b)};chrome.cast.f.prototype.addMessageListener=chrome.cast.f.prototype.Gb;chrome.cast.f.prototype.xa=function(a,b,c){a.Eb(this.sessionId,b,c)};chrome.cast.f.prototype.addMessageListenerWithContext=chrome.cast.f.prototype.xa;chrome.cast.f.prototype.W=function(a){this.wa(t,a)};chrome.cast.f.prototype.addMediaListener=chrome.cast.f.prototype.W;
chrome.cast.f.prototype.wa=function(a,b){a.W(this.sessionId,b)};chrome.cast.f.prototype.addMediaListenerWithContext=chrome.cast.f.prototype.wa;chrome.cast.f.prototype.Z=function(a){this.Ba(t,a)};chrome.cast.f.prototype.removeMediaListener=chrome.cast.f.prototype.Z;chrome.cast.f.prototype.Ba=function(a,b){a.Z(this.sessionId,b)};chrome.cast.f.prototype.removeMediaListenerWithContext=chrome.cast.f.prototype.Ba;chrome.cast.f.prototype.fc=function(a,b){this.Ca(t,a,b)};
chrome.cast.f.prototype.removeMessageListener=chrome.cast.f.prototype.fc;chrome.cast.f.prototype.Ca=function(a,b,c){a.dc(this.sessionId,b,c)};chrome.cast.f.prototype.removeMessageListenerWithContext=chrome.cast.f.prototype.Ca;chrome.cast.f.prototype.Nb=function(a,b,c){a.sessionId=this.sessionId;t.ia(a,"LOAD",b,c)};chrome.cast.f.prototype.loadMedia=chrome.cast.f.prototype.Nb;chrome.cast.f.prototype.Ub=function(a,b,c){a.sessionId=this.sessionId;t.ia(a,"QUEUE_LOAD",b,c)};
chrome.cast.f.prototype.queueLoad=chrome.cast.f.prototype.Ub;var Pa=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};var v="StopIteration"in l?l.StopIteration:{message:"StopIteration",stack:""},w=function(){};w.prototype.next=function(){throw v;};w.prototype.w=function(){return this};
var Qa=function(a){if(a instanceof w)return a;if("function"==typeof a.w)return a.w(!1);if(ra(a)){var b=0,c=new w;c.next=function(){for(;;){if(b>=a.length)throw v;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");},x=function(a,b){if(ra(a))try{r(a,b,void 0)}catch(c){if(c!==v)throw c;}else{a=Qa(a);try{for(;;)b.call(void 0,a.next(),void 0,a)}catch(c){if(c!==v)throw c;}}};var y=function(a,b){this.c={};this.a=[];this.h=this.g=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a){if(a instanceof y)d=a.I(),c=a.u();else{c=[];var e=0;for(d in a)c[e++]=d;d=c;c=Pa(a)}for(e=0;e<d.length;e++)this.set(d[e],c[e])}};y.prototype.u=function(){z(this);for(var a=[],b=0;b<this.a.length;b++)a.push(this.c[this.a[b]]);return a};y.prototype.I=function(){z(this);return this.a.concat()};
y.prototype.clear=function(){this.c={};this.h=this.g=this.a.length=0};y.prototype.remove=function(a){return A(this.c,a)?(delete this.c[a],this.g--,this.h++,this.a.length>2*this.g&&z(this),!0):!1};var z=function(a){if(a.g!=a.a.length){for(var b=0,c=0;b<a.a.length;){var d=a.a[b];A(a.c,d)&&(a.a[c++]=d);b++}a.a.length=c}if(a.g!=a.a.length){var e={};for(c=b=0;b<a.a.length;)d=a.a[b],A(e,d)||(a.a[c++]=d,e[d]=1),b++;a.a.length=c}};y.prototype.get=function(a,b){return A(this.c,a)?this.c[a]:b};
y.prototype.set=function(a,b){A(this.c,a)||(this.g++,this.a.push(a),this.h++);this.c[a]=b};y.prototype.forEach=function(a,b){for(var c=this.I(),d=0;d<c.length;d++){var e=c[d],g=this.get(e);a.call(b,g,e,this)}};y.prototype.w=function(a){z(this);var b=0,c=this.h,d=this,e=new w;e.next=function(){if(c!=d.h)throw Error("The map has changed since the iterator was created");if(b>=d.a.length)throw v;var e=d.a[b++];return a?e:d.c[e]};return e};
var A=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var B=function(a,b){this.requestId=a;this.h=b;this.Ka=null};B.prototype.c=function(){};var Ra=function(){this.a=new y},Sa=function(a,b){a.a.set(b.requestId,b);b.Ka=setTimeout(function(){a.a.remove(b.requestId);b.c()},b.h)},Ta=function(a,b){var c=a.a.get(b);if(!c)return null;clearTimeout(c.Ka);a.a.remove(b);return c};var C;a:{var Ua=l.navigator;if(Ua){var Va=Ua.userAgent;if(Va){C=Va;break a}}C=""}var D=function(a){return-1!=C.indexOf(a)};var E=function(){this.c=this.c;this.j=this.j};E.prototype.c=!1;var Xa=function(a,b){var c=Wa;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};var Ya=D("Opera"),F=D("Trident")||D("MSIE"),Za=D("Edge"),G=D("Gecko")&&!(-1!=C.toLowerCase().indexOf("webkit")&&!D("Edge"))&&!(D("Trident")||D("MSIE"))&&!D("Edge"),H=-1!=C.toLowerCase().indexOf("webkit")&&!D("Edge"),$a;
a:{var ab="",bb=function(){var a=C;if(G)return/rv\:([^\);]+)(\)|;)/.exec(a);if(Za)return/Edge\/([\d\.]+)/.exec(a);if(F)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(H)return/WebKit\/(\S+)/.exec(a);if(Ya)return/(?:Version)[ \/]?(\S+)/.exec(a)}();bb&&(ab=bb?bb[1]:"");if(F){var I,cb=l.document;I=cb?cb.documentMode:void 0;if(null!=I&&I>parseFloat(ab)){$a=String(I);break a}}$a=ab}
var db=$a,Wa={},J=function(a){return Xa(a,function(){for(var b=0,c=wa(String(db)).split("."),d=wa(String(a)).split("."),e=Math.max(c.length,d.length),g=0;0==b&&g<e;g++){var k=c[g]||"",n=d[g]||"";do{k=/(\d*)(\D*)(.*)/.exec(k)||["","","",""];n=/(\d*)(\D*)(.*)/.exec(n)||["","","",""];if(0==k[0].length&&0==n[0].length)break;b=Ha(0==k[1].length?0:parseInt(k[1],10),0==n[1].length?0:parseInt(n[1],10))||Ha(0==k[2].length,0==n[2].length)||Ha(k[2],n[2]);k=k[3];n=n[3]}while(0==b)}return 0<=b})};F&&J("9");!H||J("528");G&&J("1.9b")||F&&J("8")||Ya&&J("9.5")||H&&J("528");G&&!J("8")||F&&J("9");var K=function(a,b,c){E.call(this);this.i=null!=c?p(a,c):a;this.h=b;this.g=p(this.Pb,this);this.a=[]};(function(){function a(){}a.prototype=E.prototype;K.a=E.prototype;K.prototype=new a;K.prototype.constructor=K;K.c=function(a,c,d){for(var b=Array(arguments.length-2),g=2;g<arguments.length;g++)b[g-2]=arguments[g];return E.prototype[c].apply(a,b)}})();f=K.prototype;f.D=!1;f.J=0;f.C=null;f.Jb=function(a){this.a=arguments;this.C||this.J?this.D=!0:eb(this)};
f.stop=function(){this.C&&(l.clearTimeout(this.C),this.C=null,this.D=!1,this.a=[])};f.pause=function(){this.J++};f.resume=function(){this.J--;this.J||!this.D||this.C||(this.D=!1,eb(this))};f.Pb=function(){this.C=null;this.D&&!this.J&&(this.D=!1,eb(this))};var eb=function(a){var b=a.g;var c=a.h;if("function"!=qa(b))if(b&&"function"==typeof b.handleEvent)b=p(b.handleEvent,b);else throw Error("Invalid listener argument");b=2147483647<Number(c)?-1:l.setTimeout(b,c||0);a.C=b;a.i.apply(null,a.a)};var fb=D("Safari")&&!((D("Chrome")||D("CriOS"))&&!D("Edge")||D("Coast")||D("Opera")||D("Edge")||D("Silk")||D("Android"))&&!(D("iPhone")&&!D("iPod")&&!D("iPad")||D("iPad")||D("iPod"));var L=null,gb=G||H&&!fb||Ya||"function"==typeof l.btoa,hb=function(a){if(gb)var b=l.btoa(a);else{b=[];for(var c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);255<e&&(b[c++]=e&255,e>>=8);b[c++]=e}if(!L)for(L={},a=0;65>a;a++)L[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(a);a=L;c=[];for(d=0;d<b.length;d+=3){var g=b[d],k=(e=d+1<b.length)?b[d+1]:0,n=d+2<b.length,u=n?b[d+2]:0,pa=g>>2;g=(g&3)<<4|k>>4;k=(k&15)<<2|u>>6;u&=63;n||(u=64,e||(k=64));c.push(a[pa],a[g],a[k],a[u])}b=
c.join("")}return b};var ib=function(a){if(a.u&&"function"==typeof a.u)return a.u();if(m(a))return a.split("");if(ra(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Pa(a)};var jb=function(a){this.a=new y;if(a){a=ib(a);for(var b=a.length,c=0;c<b;c++)this.add(a[c])}},kb=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+(a[sa]||(a[sa]=++ta)):b.substr(0,1)+a};f=jb.prototype;f.add=function(a){this.a.set(kb(a),a)};f.removeAll=function(a){a=ib(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c])};f.remove=function(a){return this.a.remove(kb(a))};f.clear=function(){this.a.clear()};f.contains=function(a){a=kb(a);return A(this.a.c,a)};f.u=function(){return this.a.u()};
f.w=function(){return this.a.w(!1)};var lb=function(a){this.a=a},nb=function(a){var b=mb.get(a);b||(b=new lb(a),mb.set(a,b));return b};lb.prototype.log=function(a,b,c){if(!(1>a)){"function"==typeof b&&(b=b());b=b.replace(ob,"[Redacted URL]");b=b.replace(pb,"[Redacted domain/email]");var d={pc:this.a,level:a,time:Date.now(),message:b,oc:c};qb.forEach(function(a){return a(d)})}};lb.prototype.error=function(a,b){this.log(3,a,b)};
var rb=function(a){M.log(1,a,void 0)},qb=[],mb=new Map,pb=/(([\w.+-]+@)|((www|m|mail|ftp)[.]))[\w.-]+[.][\w-]{2,4}/gi,ob=/(data:|https?:\/\/)\S+/gi;var N=function(a,b,c,d){B.call(this,a,d||6E5);this.g=b;this.a=c};N.prototype=aa(B.prototype);N.prototype.constructor=N;if(fa)fa(N,B);else for(var O in B)if("prototype"!=O)if(Object.defineProperties){var sb=Object.getOwnPropertyDescriptor(B,O);sb&&Object.defineProperty(N,O,sb)}else N[O]=B[O];N.a=B.prototype;N.prototype.c=function(){this.a(new chrome.cast.Error(chrome.cast.v.TIMEOUT))};var P=function(a,b,c,d){this.type=a;this.message=b;this.sequenceNumber=void 0!==c?c:-1;this.timeoutMillis=d||0;this.clientId=""};var Q=function(a,b){this.g=a;this.c=b||String(Date.now())+String(Math.floor(1E5*Math.random()));this.a=null},tb=function(a,b){if(!a.a)return R.error("No active session"),"No active session";b.clientId=a.c;b=JSON.stringify(b);if(32768<b.length)return R.error("Message length over limit"),"Message length over limit";R.log(0,"Send "+b,void 0);a.a.send(b);return null};Q.prototype.connect=function(a){this.a=a;this.a.onmessage=p(this.h,this);tb(this,new P("client_connect",this.c))};
Q.prototype.disconnect=function(){this.a.close();this.a=null};Q.prototype.h=function(a){R.log(0,"Receive "+a.data,void 0);a=JSON.parse(a.data);if(a.clientId==this.c)this.g.onMessage(a)};var R=nb("mr.cast.ExtensionMessenger");var ub=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,vb=function(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),e=null;if(0<=d){var g=a[c].substring(0,d);e=a[c].substring(d+1)}else g=a[c];b(g,e?decodeURIComponent(e.replace(/\+/g," ")):"")}}};var wb=function(a,b){this.h=this.j=this.c="";this.i=null;this.l=this.m="";this.a=!1;if(a instanceof wb){this.a=void 0!==b?b:a.a;xb(this,a.c);this.j=a.j;yb(this,a.h);zb(this,a.i);Ab(this,a.m);b=a.g;var c=new S;c.g=b.g;b.a&&(c.a=new y(b.a),c.c=b.c);Bb(this,c);Cb(this,a.l)}else a&&(c=String(a).match(ub))?(this.a=!!b,xb(this,c[1]||"",!0),this.j=T(c[2]||""),yb(this,c[3]||"",!0),zb(this,c[4]),Ab(this,c[5]||"",!0),Bb(this,c[6]||"",!0),Cb(this,c[7]||"",!0)):(this.a=!!b,this.g=new S(null,0,this.a))};
wb.prototype.toString=function(){var a=[],b=this.c;b&&a.push(U(b,Db,!0),":");var c=this.h;if(c||"file"==b)a.push("//"),(b=this.j)&&a.push(U(b,Db,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.i,null!=c&&a.push(":",String(c));if(c=this.m)this.h&&"/"!=c.charAt(0)&&a.push("/"),a.push(U(c,"/"==c.charAt(0)?Eb:Fb,!0));(c=this.g.toString())&&a.push("?",c);(c=this.l)&&a.push("#",U(c,Gb));return a.join("")};
var xb=function(a,b,c){a.c=c?T(b,!0):b;a.c&&(a.c=a.c.replace(/:$/,""))},yb=function(a,b,c){a.h=c?T(b,!0):b},zb=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.i=b}else a.i=null},Ab=function(a,b,c){a.m=c?T(b,!0):b},Bb=function(a,b,c){b instanceof S?(a.g=b,Hb(a.g,a.a)):(c||(b=U(b,Ib)),a.g=new S(b,0,a.a))},Cb=function(a,b,c){a.l=c?T(b):b},T=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},U=function(a,b,c){return m(a)?(a=encodeURI(a).replace(b,
Jb),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},Jb=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},Db=/[#\/\?@]/g,Fb=/[\#\?:]/g,Eb=/[\#\?]/g,Ib=/[\#\?@]/g,Gb=/#/g,S=function(a,b,c){this.c=this.a=null;this.g=a||null;this.h=!!c},V=function(a){a.a||(a.a=new y,a.c=0,a.g&&vb(a.g,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))};
S.prototype.add=function(a,b){V(this);this.g=null;a=W(this,a);var c=this.a.get(a);c||this.a.set(a,c=[]);c.push(b);this.c+=1;return this};S.prototype.remove=function(a){V(this);a=W(this,a);return A(this.a.c,a)?(this.g=null,this.c-=this.a.get(a).length,this.a.remove(a)):!1};S.prototype.clear=function(){this.a=this.g=null;this.c=0};var Kb=function(a,b){V(a);b=W(a,b);return A(a.a.c,b)};f=S.prototype;
f.forEach=function(a,b){V(this);this.a.forEach(function(c,d){r(c,function(c){a.call(b,c,d,this)},this)},this)};f.I=function(){V(this);for(var a=this.a.u(),b=this.a.I(),c=[],d=0;d<b.length;d++)for(var e=a[d],g=0;g<e.length;g++)c.push(b[d]);return c};f.u=function(a){V(this);var b=[];if(m(a))Kb(this,a)&&(b=Ja(b,this.a.get(W(this,a))));else{a=this.a.u();for(var c=0;c<a.length;c++)b=Ja(b,a[c])}return b};
f.set=function(a,b){V(this);this.g=null;a=W(this,a);Kb(this,a)&&(this.c-=this.a.get(a).length);this.a.set(a,[b]);this.c+=1;return this};f.get=function(a,b){a=a?this.u(a):[];return 0<a.length?String(a[0]):b};f.toString=function(){if(this.g)return this.g;if(!this.a)return"";for(var a=[],b=this.a.I(),c=0;c<b.length;c++){var d=b[c],e=encodeURIComponent(String(d));d=this.u(d);for(var g=0;g<d.length;g++){var k=e;""!==d[g]&&(k+="="+encodeURIComponent(String(d[g])));a.push(k)}}return this.g=a.join("&")};
var W=function(a,b){b=String(b);a.h&&(b=b.toLowerCase());return b},Hb=function(a,b){b&&!a.h&&(V(a),a.g=null,a.a.forEach(function(a,b){var c=b.toLowerCase();b!=c&&(this.remove(b),this.remove(c),0<a.length&&(this.g=null,this.a.set(W(this,c),Ka(a)),this.c+=a.length))},a));a.h=b};var Lb=function(a,b,c){this.g=a;this.c=b;this.a=c},Mb=function(a){var b="cast-dial:"+a.g,c=new URLSearchParams;a.c&&c.set("dialPostData",a.c);a.a&&c.set("clientId",a.a);(a=c.toString())&&(b+="?"+a);return b};var Nb=function(a,b,c,d,e,g,k,n,u,pa){this.A=a;this.a=b||null;this.c=c||null;this.i=d||null;this.j=void 0!==e?e:null;this.l=g||null;this.m=k||null;this.B=n||!1;this.h=u||null;this.g=pa||null},Pb=function(a){if(!window.localStorage||!window.localStorage.useNewCastPresentationUrls)return[Ob(a)];var b=a.A.map(function(b){var c="cast:"+b.appId,e=new URLSearchParams;b.capabilities&&0<b.capabilities.length&&e.set("capabilities",b.capabilities.join(","));a.a&&e.set("clientId",a.a);a.c&&e.set("autoJoinPolicy",
a.c);a.i&&e.set("defaultActionPolicy",a.i);null!=a.j&&e.set("launchTimeout",String(a.j));a.B&&e.set("invisibleSender","true");a.h&&(e.set("broadcastNamespace",a.h),e.set("broadcastId",String(Math.random())));a.g&&e.set("broadcastMessage",encodeURIComponent(JSON.stringify(a.g)));return c+"?"+e.toString()});a.l&&b.push(Mb(new Lb(a.l,a.m,a.a)));return b},Ob=function(a){var b=new wb;xb(b,"https");yb(b,"google.com");Ab(b,"/cast");var c=[];r(a.A,function(a){var b="__castAppId__="+a.appId;a.capabilities&&
0<a.capabilities.length&&(b=b+"("+a.capabilities.join(","),b+=")");c.push(b)});a.a&&c.push("__castClientId__="+a.a);a.c&&c.push("__castAutoJoinPolicy__="+a.c);a.i&&c.push("__castDefaultActionPolicy__="+a.i);null!=a.j&&c.push("__castLaunchTimeout__="+a.j);a.l&&c.push("__dialAppName__="+a.l);a.m&&c.push("__dialPostData__="+a.m);a.B&&c.push("__castInvisibleSender__=true");a.h&&(c.push("__castBroadcastNamespace__="+a.h),c.push("__castBroadcastId__="+Math.random()));a.g&&c.push("__castBroadcastMessage__="+
encodeURIComponent(JSON.stringify(a.g)));Cb(b,c.join("/"));return b.toString()};var Qb=function(){this.a={};this.c={}},Rb=function(a,b,c){var d=a.a[b];return d?(d.status=c,d.media.forEach(function(b){delete a.c[b.sessionId+"#"+b.mediaSessionId]}),delete a.a[b],!0):!1},Tb=function(a,b){var c=a.a[b.sessionId];if(c)return c.statusText=b.statusText,c.namespaces=b.namespaces||[],c.receiver.volume=b.receiver.volume,c;c=new chrome.cast.f(b.sessionId,b.appId,b.displayName,b.appImages,b.receiver);for(var d in b)"media"==d?c.media=b.media.map(function(b){b=Sb(a,b);b.h=!1;b.c=!0;return b}):
b.hasOwnProperty(d)&&(c[d]=b[d]);return a.a[b.sessionId]=c},Sb=function(a,b){var c=b.sessionId+"#"+b.mediaSessionId,d=a.c[c];d||(d=new chrome.cast.media.b(b.sessionId,b.mediaSessionId),a.c[c]=d,(a=a.a[b.sessionId])&&a.media.push(d));a=d;a.currentItemId=null;a.loadingItemId=null;a.preloadedItemId=null;for(var e in b)"items"!=e&&b.hasOwnProperty(e)&&("volume"==e?(a.volume.level=b.volume.level,a.volume.muted=b.volume.muted):a[e]=b[e]);e=na(["idleReason","extendedStatus"]);for(c=e.next();!c.done;c=e.next())c=
c.value,b.hasOwnProperty(c)||(a[c]=null);"currentTime"in b&&(a.g=Date.now());if(a.playerState==chrome.cast.media.F.IDLE&&null==a.loadingItemId)a.currentItemId=null,a.loadingItemId=null,a.preloadedItemId=null,a.items=null;else if(b.hasOwnProperty("items")&&b.items){e=[];var g=a.items;c={};if(g)for(var k=0;k<g.length;k++)c[g[k].itemId]=k;b=na(b.items);for(g=b.next();!g.done;g=b.next()){g=g.value;if(!g.media){k=g.itemId;var n=a.items?a.items[c[k]]:null;n&&n.media?g.media=n.media:k==a.currentItemId&&
a.media&&(g.media=a.media)}e.push(Ub(g))}a.items=e}return d},Vb=function(a,b){delete a.c[b.sessionId+"#"+b.mediaSessionId];if(a=a.a[b.sessionId])b=a.media.indexOf(b),-1!=b&&a.media.splice(b,1)},Ub=function(a){var b=new chrome.cast.media.oa(a.media),c;for(c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b};var X=function(){this.l=new Q(this);this.c=null;this.T=new Qb;this.h=0;this.fa=new Ra;this.m=new y;this.ga=!1;this.j=new y;this.B=new y;this.R=[];this.Pa=this.Ib.bind(this);this.g=null;this.A=0;this.i=null;this.Oa=new K(this.Wa,200,this);this.La=null},Wb=function(a){var b=new chrome.cast.Error(chrome.cast.v.INVALID_PARAMETER,"Already requesting session");a&&a(b)},Y=function(a,b,c,d){c&&Sa(a.fa,c);void 0!==d?b.sequenceNumber=d:(b.sequenceNumber=a.h,a.h=(a.h+1)%9007199254740992);d=tb(a.l,b);c&&d&&(a=
Ta(a.fa,b.sequenceNumber),b=new chrome.cast.Error(chrome.cast.v.INVALID_PARAMETER,d),(a=a.a)&&a(b))};
X.prototype.P=function(a,b){var c=this;t=this;this.c||(this.c=a,a.invisibleSender||(a=new PresentationRequest(Xb(this)),a.getAvailability().then(function(a){a.onchange=function(){c.ga=!!a.value;c.c.receiverListener(a.value?chrome.cast.M.AVAILABLE:chrome.cast.M.UNAVAILABLE)};a.onchange()},function(){c.c.receiverListener(chrome.cast.M.AVAILABLE)}),a.onconnectionavailable=function(a){Yb(c,a.connection)},this.La=(l.navigator||null).presentation.defaultRequest=a,a.reconnect(chrome.cast.Ma).then(function(a){Yb(c,
a)},oa)));b&&b(void 0)};X.prototype.da=function(a){a.navigator.presentation.defaultRequest=this.La};
var Yb=function(a,b,c){c=void 0===c?null:c;b.onclose=function(b){a.g=null;switch(b.reason){case "closed":Zb(a,chrome.cast.G.DISCONNECTED);break;case "error":c&&(b=new chrome.cast.Error(chrome.cast.v.SESSION_ERROR),c&&c(b))}};b.onterminate=function(){Zb(a,chrome.cast.G.STOPPED)};"connected"==b.state?a.l.connect(b):b.onconnect=function(){a.l.connect(b)}},bc=function(a){var b=Z;$b.has(a.type)?b.ga&&(b.i?(a.sessionId=b.i,ac(b,null,a.type,a,function(){rb("Send Broadcast directly succeeded")},function(a){M.error("Send Broadcast directly failed with code "+
a.code)})):b.Oa.Jb(Xb(b,void 0,"urn:x-cast:com.google.cast.media",a))):M.error("Unsupported broadcast message type - "+a.type)};X.prototype.Wa=function(a){rb("Broadcast request "+a);(a=(new PresentationRequest(a)).getAvailability())?a.then(function(){rb("Broadcast succeeded")},function(){M.log(2,"Broadcast failed",void 0)}):M.error("presentationRequest.getAvailability return undefined")};
X.prototype.requestSession=function(a,b,c){var d=this;this.g?Wb(b):(c=Xb(this,c),this.g=a,(new PresentationRequest(c)).start().then(function(a){Yb(d,a,b)}).catch(function(a){d.g=null;a=new chrome.cast.Error("AbortError"==a.name||"NotAllowedError"==a.name?chrome.cast.v.CANCEL:chrome.cast.v.SESSION_ERROR);b&&b(a)}))};
var Xb=function(a,b,c,d){var e=null,g=null,k=b||a.c.sessionRequest,n=k.dialRequest;n&&(e=n.appName,(g=n.launchParameter)&&!g.match(cc)&&(g=hb(g)));var u=[];u.push({appId:k.appId,capabilities:k.capabilities});b||r(a.c.additionalSessionRequests,function(a){u.push({appId:a.appId,capabilities:a.capabilities})});return Pb(new Nb(u,a.l.c,a.c.autoJoinPolicy,a.c.defaultActionPolicy,k.requestSessionTimeout,e,g,a.c.invisibleSender,c,d))};
X.prototype.ia=function(a,b,c,d){var e=this;this.A++;ac(this,null,b,a,function(a){e.A--;a.c=!0;c&&c(a)},function(a){e.A--;d(a)},chrome.cast.media.timeout.load)};X.prototype.a=function(a,b,c,d,e,g){var k=this;ac(this,a,b,c,function(a){k.ya(a);d&&d(void 0)},e,g)};
var ac=function(a,b,c,d,e,g,k){d.type=c;null!=b&&(d.mediaSessionId=b.mediaSessionId,d.sessionId=b.sessionId);a.Ea(d,function(a){a.status&&1==a.status.length?e&&e(a.status[0]):(a=new chrome.cast.Error(chrome.cast.v.SESSION_ERROR),g&&g(a))},g,k)};f=X.prototype;f.setReceiverVolume=function(a,b,c,d){b.sessionId=a;Y(this,new P("v2_message",b,void 0,chrome.cast.timeout.setReceiverVolume),new N(this.h,c,d,chrome.cast.timeout.sendCustomMessage))};
f.ca=function(a){var b=this;(new PresentationRequest(Xb(this))).reconnect(chrome.cast.fb+a).then(function(a){Yb(b,a)},oa)};f.leaveSession=function(a,b,c){Y(this,new P("leave_session",a,void 0,chrome.cast.timeout.leaveSession),new N(this.h,b,c,chrome.cast.timeout.leaveSession))};f.hc=function(a,b,c){Y(this,new P("app_message",a,void 0,chrome.cast.timeout.sendCustomMessage),new N(this.h,b,c,chrome.cast.timeout.sendCustomMessage))};
f.Ea=function(a,b,c,d){Y(this,new P("v2_message",a,void 0,d),new N(this.h,b,c,d))};var dc=function(a,b,c){var d=a.get(b);d||(d=new jb,a.set(b,d));d.add(c)};f=X.prototype;f.Hb=function(a,b){dc(this.m,a,b)};f.gc=function(a,b){(a=this.m.get(a))&&a.remove(b)};f.X=function(a){this.R.push(a)};f.aa=function(a){a=this.R.indexOf(a);0<=a&&this.R.splice(a,1)};f.Eb=function(a,b,c){var d=this.j.get(a);d||(d=new y,this.j.set(a,d));a=d.get(b);a||(a=new jb,d.set(b,a));a.add(c)};
f.dc=function(a,b,c){(a=this.j.get(a))&&(b=a.get(b))&&b.remove(c)};f.W=function(a,b){dc(this.B,a,b)};f.Z=function(a,b){(a=this.B.get(a))&&a.remove(b)};f.Fb=function(a,b){-1==a.a.indexOf(b)&&a.a.push(b)};f.ec=function(a,b){b=a.a.indexOf(b);-1!=b&&a.a.splice(b,1)};f.ya=function(a){if(a.c){var b=a.playerState!=chrome.cast.media.F.IDLE||null!=a.loadingItemId;a.a.forEach(function(a){a(b)});b||Vb(this.T,a)}else if(!(0<this.A)){a.c=!0;var c=this.B.get(a.sessionId);c&&x(c.w(),function(b){b(a)})}};
f.Ib=function(a){return Sb(this.T,a)};var Zb=function(a,b){if(a.i){var c=a.i;a.i=null;a.l.disconnect();var d=b!=chrome.cast.G.STOPPED;Rb(a.T,c,b)&&(a.j.remove(c),a.B.remove(c),b=a.m.get(c))&&(a.m.remove(c),x(b.w(),function(a){a(d)}))}};
X.prototype.onMessage=function(a){switch(a.type){case "new_session":case "update_session":a.message=Tb(this.T,a.message);break;case "v2_message":var b=a.message;b&&"MEDIA_STATUS"==b.type&&b.status&&(b.status=b.status.map(this.Pa))}if(b=Ta(this.fa,a.sequenceNumber))"error"==a.type?(b=b.a)&&b(a.message):(b=b.g)&&b(a.message);if(b=a.message)switch(a.type){case "receiver_action":ec(this,b);break;case "new_session":this.i=b.sessionId;this.g?(this.g(b),this.g=null):this.c&&this.c.sessionListener(b);break;
case "update_session":fc(this,b);break;case "app_message":gc(this,b);break;case "v2_message":"MEDIA_STATUS"==b.type&&b.status.forEach(this.ya.bind(this));break;case "custom_dial_launch":hc(this,a.sequenceNumber,b)}};
var fc=function(a,b){(a=a.m.get(b.sessionId))&&x(a.w(),function(a){a(!0)})},ec=function(a,b){a.R.forEach(function(a){a(b.receiver,b.action)})},gc=function(a,b){(a=a.j.get(b.sessionId))&&(a=a.get(b.namespaceName))&&x(a.w(),function(a){a(b.namespaceName,b.message)})},ic=function(a,b,c){Y(a,new P("custom_dial_launch",c,void 0,chrome.cast.timeout.sendCustomMessage),null,b)},hc=function(a,b,c){a.c.customDialLaunchCallback?a.c.customDialLaunchCallback(c).then(function(c){ic(a,b,c)},function(){ic(a,b)}):
ic(a,b)},cc=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,$b=new Set(["PRECACHE"]),Z=new X,M=nb("mr.cast.Api");chrome.cast.P=function(a,b,c){Z.P(a,b,c)};q("chrome.cast.initialize",chrome.cast.P);chrome.cast.Lb=function(a,b,c){var d=new X;d.P(a,b,c);return d};q("chrome.cast.initializeWithContext",chrome.cast.Lb);chrome.cast.da=function(a){Z.da(a)};q("chrome.cast.setPageContext",chrome.cast.da);chrome.cast.requestSession=function(a,b,c){Z.requestSession(a,b,c)};q("chrome.cast.requestSession",chrome.cast.requestSession);chrome.cast.Qb=function(a){bc(new chrome.cast.media.hb(a))};q("chrome.cast.precache",chrome.cast.Qb);
chrome.cast.ca=function(a){chrome.cast.Da(Z,a)};q("chrome.cast.requestSessionById",chrome.cast.ca);chrome.cast.Da=function(a,b){a.ca(b)};q("chrome.cast.requestSessionByIdWithContext",chrome.cast.Da);chrome.cast.X=function(a){Z.X(a)};q("chrome.cast.addReceiverActionListener",chrome.cast.X);chrome.cast.aa=function(a){Z.aa(a)};q("chrome.cast.removeReceiverActionListener",chrome.cast.aa);chrome.cast.Ob=function(){};q("chrome.cast.logMessage",chrome.cast.Ob);chrome.cast.ic=function(a,b){b()};
q("chrome.cast.setCustomReceivers",chrome.cast.ic);chrome.cast.jc=function(a,b){b()};q("chrome.cast.setReceiverDisplayStatus",chrome.cast.jc);chrome.cast.unescape=function(a){return-1!=a.indexOf("&")?"document"in l?Fa(a):Ga(a):a};q("chrome.cast.unescape",chrome.cast.unescape);chrome.cast.isAvailable=!1;q("chrome.cast.isAvailable",chrome.cast.isAvailable);chrome.cast.Ia=!1;
chrome.cast.ea=function(){if(!chrome.cast.Ia){chrome.cast.Ia=!0;chrome.cast.isAvailable=!0;var a=window.__onGCastApiAvailable;a&&"function"==typeof a&&a(!0)}};"complete"==document.readyState?chrome.cast.ea():(window.addEventListener("load",chrome.cast.ea,!1),window.addEventListener("DOMContentLoaded",chrome.cast.ea,!1));}).call(this);
(function(){'use strict';var b,m=m||{};m.scope={};var n=n||{};n.global=this;n.ra=function(a){return void 0!==a};n.K=function(a){return"string"==typeof a};n.Sb=function(a){return"boolean"==typeof a};n.Cb=function(a){return"number"==typeof a};n.zc=function(a,c,d){a=a.split(".");d=d||n.global;a[0]in d||!d.execScript||d.execScript("var "+a[0]);for(var e;a.length&&(e=a.shift());)!a.length&&n.ra(c)?d[e]=c:d[e]&&d[e]!==Object.prototype[e]?d=d[e]:d=d[e]={}};n.define=function(a,c){n.zc(a,c)};n.Ca=!0;n.ql="en";n.rc=!0;
n.Dg=!1;n.xf=!n.Ca;n.rd=!1;n.rp=function(a){if(n.Ic())throw Error("goog.provide can not be used within a goog.module.");n.Td(a)};n.Td=function(a,c){n.zc(a,c)};n.Og=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/;
n.Pc=function(a){if(!n.K(a)||!a||-1==a.search(n.Og))throw Error("Invalid module identifier");if(!n.Ic())throw Error("Module "+a+" has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.");if(n.ga.Qc)throw Error("goog.module may only be called once per module.");
n.ga.Qc=a};n.Pc.get=function(){return null};n.Pc.b=function(){return null};n.ga=null;n.Ic=function(){return null!=n.ga};n.Pc.vc=function(){n.ga.vc=!0};n.Vc=function(a){if(n.xf)throw a=a||"",Error("Importing test-only code into non-debug environment"+(a?": "+a:"."));};n.Un=function(){};n.ne=function(a){a=a.split(".");for(var c=n.global,d=0;d<a.length;d++)if(c=c[a[d]],!n.ii(c))return null;return c};n.lo=function(a,c){c=c||n.global;for(var d in a)c[d]=a[d]};
n.Pm=function(a,c,d,e){if(n.od){var f;a=a.replace(/\\/g,"/");var g=n.ea;e&&"boolean"!==typeof e||(e=e?{module:"goog"}:{});for(var h=0;f=c[h];h++)g.Db[f]=a,g.Lc[a]=e;for(e=0;c=d[e];e++)a in g.ab||(g.ab[a]={}),g.ab[a][c]=!0}};n.kq=!1;n.Ek=!0;n.Ai=function(a){n.global.console&&n.global.console.error(a)};n.Ap=function(){};n.Ia="";n.Xa=function(){};n.Nm=function(){throw Error("unimplemented abstract method");};
n.Qg=function(){var a=chrome.cast.a.C.Nd;a.kb=void 0;a.ie=function(){if(a.kb)return a.kb;n.Ca&&(n.we[n.we.length]=a);return a.kb=new a}};n.we=[];n.Of=!0;n.Ag=n.Ca;n.zi={};n.od=!1;n.Od="detect";n.Fg="transpile.js";
n.od&&(n.ea={Lc:{},Db:{},ab:{},lf:{},bd:{},Nb:{}},n.te=function(){var a=n.global.document;return null!=a&&"write"in a},n.ph=function(){if(n.ra(n.global.nd)&&n.K(n.global.nd))n.Ia=n.global.nd;else if(n.te()){var a=n.global.document,c=a.currentScript;a=c?[c]:a.getElementsByTagName("SCRIPT");for(c=a.length-1;0<=c;--c){var d=a[c].src,e=d.lastIndexOf("?");e=-1==e?d.length:e;if("base.js"==d.substr(e-7,7)){n.Ia=d.substr(0,e-7);break}}}},n.Fc=function(a,c){(n.global.Sj||n.xj)(a,c)&&(n.ea.bd[a]=!0)},n.Nf=
!(n.global.atob||!n.global.document||!n.global.document.all),n.Xe=!1,n.gi=function(a,c,d){n.Fc("",'goog.retrieveAndExec_("'+a+'", '+c+", "+d+");")},n.Tc=[],n.oq=function(a,c){return n.Of&&n.ra(n.global.JSON)?"goog.loadModule("+n.global.JSON.stringify(c+"\n//# sourceURL="+a+"\n")+");":'goog.loadModule(function(exports) {"use strict";'+c+"\n;return exports});\n//# sourceURL="+a+"\n"},n.yi=function(){var a=n.Tc.length;if(0<a){var c=n.Tc;n.Tc=[];for(var d=0;d<a;d++)n.Re(c[d])}n.Xe=!1},n.Xo=function(a){n.Be(a)&&
n.Rg(a)&&n.Re(n.Ia+n.Cc(a))},n.Be=function(a){var c=(a=n.Cc(a))&&n.ea.Lc[a]||{},d=c.lang||"es3";return a&&("goog"==c.module||n.Ue(d))?n.Ia+a in n.ea.Nb:!1},n.Rg=function(a){if((a=n.Cc(a))&&a in n.ea.ab)for(var c in n.ea.ab[a])if(!n.si(c)&&!n.Be(c))return!1;return!0},n.Re=function(a){if(a in n.ea.Nb){var c=n.ea.Nb[a];delete n.ea.Nb[a];n.Vh(c)}},n.To=function(){},n.wj=function(a){n.global.document.write('<script type="text/javascript" src="'+a+'">\x3c/script>')},n.Sg=function(a){var c=n.global.document,
d=c.createElement("script");d.type="text/javascript";d.src=a;d.defer=!1;d.async=!1;c.head.appendChild(d)},n.xj=function(a,c){if(n.te()){var d=n.global.document;if(!n.rd&&"complete"==d.readyState){if(/\bdeps.js$/.test(a))return!1;throw Error('Cannot write "'+a+'" after document load');}void 0===c?n.Nf?(n.Xe=!0,c=" onreadystatechange='goog.onScriptLoad_(this, "+ ++n.Ne+")' ",d.write('<script type="text/javascript" src="'+a+'"'+c+">\x3c/script>")):n.rd?n.Sg(a):n.wj(a):d.write('<script type="text/javascript">'+
n.Ri(c)+"\x3c/script>");return!0}return!1},n.Ri=function(a){return a.replace(/<\/(SCRIPT)/ig,"\\x3c/$1")},n.Ue=function(a){if("always"==n.Od)return!0;if("never"==n.Od)return!1;n.Xb||(n.Xb=n.gh());if(a in n.Xb)return n.Xb[a];throw Error("Unknown language mode: "+a);},n.Xb=null,n.Ne=0,n.kp=function(a,c){"complete"==a.readyState&&n.Ne==c&&n.yi();return!0},n.pq=function(a){function c(a){if(!(a in f.bd||a in f.lf)){f.lf[a]=!0;if(a in f.ab)for(var g in f.ab[a])if(!n.si(g))if(g in f.Db)c(f.Db[g]);else throw Error("Undefined nameToPath for "+
g);a in e||(e[a]=!0,d.push(a))}}var d=[],e={},f=n.ea;c(a);for(a=0;a<d.length;a++){var g=d[a];n.ea.bd[g]=!0}var h=n.ga;n.ga=null;for(a=0;a<d.length;a++)if(g=d[a]){var k=f.Lc[g]||{},l=n.Ue(k.lang||"es3");"goog"==k.module||l?n.gi(n.Ia+g,"goog"==k.module,l):n.Fc(n.Ia+g)}else throw n.ga=h,Error("Undefined script input");n.ga=h},n.Cc=function(a){return a in n.ea.Db?n.ea.Db[a]:null},n.ph(),n.global.Tj||n.Fc(n.Ia+"deps.js"));n.Ec=null;
n.uj=function(){if(null==n.Ec){try{var a=!eval('"use strict";let x = 1; function f() { return typeof x; };f() == "number";')}catch(c){a=!1}n.Ec=a}return n.Ec};n.vj=function(a){return"(function(){"+a+"\n;})();\n"};
n.So=function(a){var c=n.ga;try{n.ga={Qc:void 0,vc:!1};if(n.ya(a))var d=a.call(void 0,{});else if(n.K(a))n.uj()&&(a=n.vj(a)),d=n.xi.call(void 0,a);else throw Error("Invalid module definition");var e=n.ga.Qc;if(!n.K(e)||!e)throw Error('Invalid module name "'+e+'"');n.ga.vc?n.Td(e,d):n.Ag&&Object.seal&&"object"==typeof d&&null!=d&&Object.seal(d);n.zi[e]=d}finally{n.ga=c}};n.xi=function(a){eval(a);return{}};
n.ep=function(a){a=a.split("/");for(var c=0;c<a.length;)"."==a[c]?a.splice(c,1):c&&".."==a[c]&&a[c-1]&&".."!=a[c-1]?a.splice(--c,2):c++;return a.join("/")};n.wi=function(a){if(n.global.vf)return n.global.vf(a);try{var c=new n.global.XMLHttpRequest;c.open("get",a,!1);c.send();return 0==c.status||200==c.status?c.responseText:null}catch(d){return null}};n.Bp=function(){};
n.bq=function(a,c){var d=n.global.$jscomp;d||(n.global.$jscomp=d={});var e=d.ad;if(!e){var f=n.Ia+n.Fg,g=n.wi(f);if(g){eval(g+"\n//# sourceURL="+f);if(n.global.$gwtExport&&n.global.$gwtExport.$jscomp&&!n.global.$gwtExport.$jscomp.transpile)throw Error('The transpiler did not properly export the "transpile" method. $gwtExport: '+JSON.stringify(n.global.$gwtExport));n.global.$jscomp.ad=n.global.$gwtExport.$jscomp.transpile;d=n.global.$jscomp;e=d.ad}}if(!e){var h=" requires transpilation but no transpiler was found.";
h+=' Please add "//javascript/closure:transpiler" as a data dependency to ensure it is included.';e=d.ad=function(a,c){n.Ai(c+h);return a}}return e(a,c)};
n.la=function(a){var c=typeof a;if("object"==c)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return c;var d=Object.prototype.toString.call(a);if("[object Window]"==d)return"object";if("[object Array]"==d||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==d||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==c&&"undefined"==typeof a.call)return"object";return c};n.Ie=function(a){return null===a};n.ii=function(a){return null!=a};n.isArray=function(a){return"array"==n.la(a)};n.qa=function(a){var c=n.la(a);return"array"==c||"object"==c&&"number"==typeof a.length};n.xo=function(a){return n.za(a)&&"function"==typeof a.getFullYear};n.ya=function(a){return"function"==n.la(a)};n.za=function(a){var c=typeof a;return"object"==c&&null!=a||"function"==c};
n.yb=function(a){return a[n.Ra]||(a[n.Ra]=++n.pj)};n.ei=function(a){return!!a[n.Ra]};n.bf=function(a){null!==a&&"removeAttribute"in a&&a.removeAttribute(n.Ra);try{delete a[n.Ra]}catch(c){}};n.Ra="closure_uid_"+(1E9*Math.random()>>>0);n.pj=0;n.bo=n.yb;n.wp=n.bf;n.dh=function(a){var c=n.la(a);if("object"==c||"array"==c){if(a.clone)return a.clone();c="array"==c?[]:{};for(var d in a)c[d]=n.dh(a[d]);return c}return a};n.Wg=function(a,c,d){return a.call.apply(a.bind,arguments)};
n.Vg=function(a,c,d){if(!a)throw Error();if(2<arguments.length){var e=Array.prototype.slice.call(arguments,2);return function(){var d=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(d,e);return a.apply(c,d)}}return function(){return a.apply(c,arguments)}};n.bind=function(a,c,d){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?n.bind=n.Wg:n.bind=n.Vg;return n.bind.apply(null,arguments)};
n.Ze=function(a,c){var d=Array.prototype.slice.call(arguments,1);return function(){var c=d.slice();c.push.apply(c,arguments);return a.apply(this,c)}};n.Yo=function(a,c){for(var d in c)a[d]=c[d]};n.now=n.rc&&Date.now||function(){return+new Date};
n.Vh=function(a){if(n.global.execScript)n.global.execScript(a,"JavaScript");else if(n.global.eval){if(null==n.Ob)if(n.global.eval("var _evalTest_ = 1;"),"undefined"!=typeof n.global._evalTest_){try{delete n.global._evalTest_}catch(e){}n.Ob=!0}else n.Ob=!1;if(n.Ob)n.global.eval(a);else{var c=n.global.document,d=c.createElement("SCRIPT");d.type="text/javascript";d.defer=!1;d.appendChild(c.createTextNode(a));c.body.appendChild(d);c.body.removeChild(d)}}else throw Error("goog.globalEval not available");
};n.Ob=null;n.Zn=function(a,c){if("."==String(a).charAt(0))throw Error('className passed in goog.getCssName must not start with ".". You passed: '+a);var d=function(a){return n.Wd[a]||a},e=function(a){a=a.split("-");for(var c=[],e=0;e<a.length;e++)c.push(d(a[e]));return c.join("-")};e=n.Wd?"BY_WHOLE"==n.ih?d:e:function(a){return a};a=c?a+"-"+e(c):e(a);return n.global.uf?n.global.uf(a):a};n.Fp=function(a,c){n.Wd=a;n.ih=c};
n.eo=function(a,c){c&&(a=a.replace(/\{\$([^}]+)}/g,function(a,e){return null!=c&&e in c?c[e]:a}));return a};n.fo=function(a){return a};n.F=function(a,c){n.zc(a,c,void 0)};n.w=function(a,c,d){a[c]=d};n.Va=function(a,c){function d(){}d.prototype=c.prototype;a.bb=c.prototype;a.prototype=new d;a.prototype.constructor=a;a.Ug=function(a,d,g){for(var e=Array(arguments.length-2),f=2;f<arguments.length;f++)e[f-2]=arguments[f];return c.prototype[d].apply(a,e)}};
n.Ug=function(a,c,d){var e=arguments.callee.caller;if(n.Dg||n.Ca&&!e)throw Error("arguments.caller not defined.  goog.base() cannot be used with strict mode code. See http://www.ecma-international.org/ecma-262/5.1/#sec-C");if(e.bb){for(var f=Array(arguments.length-1),g=1;g<arguments.length;g++)f[g-1]=arguments[g];return e.bb.constructor.apply(a,f)}f=Array(arguments.length-2);for(g=2;g<arguments.length;g++)f[g-2]=arguments[g];g=!1;for(var h=a.constructor;h;h=h.bb&&h.bb.constructor)if(h.prototype[c]===
e)g=!0;else if(g)return h.prototype[c].apply(a,f);if(a[c]===e)return a.constructor.prototype[c].apply(a,f);throw Error("goog.base called from a method of one name to a method of a different name");};n.scope=function(a){if(n.Ic())throw Error("goog.scope is not supported within a goog.module.");a.call(n.global)};
n.ia=function(a,c){var d=c.constructor,e=c.kj;d&&d!=Object.prototype.constructor||(d=function(){throw Error("cannot instantiate an interface (no constructor defined).");});d=n.ia.D(d,a);a&&n.Va(d,a);delete c.constructor;delete c.kj;n.ia.l(d.prototype,c);null!=e&&(e instanceof Function?e(d):n.ia.l(d,e));return d};n.ia.v=n.Ca;
n.ia.D=function(a,c){if(!n.ia.v)return a;var d=!n.ia.I(c),e=function(){var c=a.apply(this,arguments)||this;c[n.Ra]=c[n.Ra];this.constructor===e&&d&&Object.seal instanceof Function&&Object.seal(c);return c};return e};n.ia.I=function(a){return a&&a.prototype&&a.prototype[n.Hg]};n.ia.b="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
n.ia.l=function(a,c){for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d]);for(var e=0;e<n.ia.b.length;e++)d=n.ia.b[e],Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])};n.Up=function(){};n.Hg="goog_defineClass_legacy_unsealable";
n.gh=function(){function a(a,c){e?d[a]=!0:c()?d[a]=!1:e=d[a]=!0}function c(a){try{return!!eval(a)}catch(h){return!1}}var d={es3:!1},e=!1,f=n.global.navigator&&n.global.navigator.userAgent?n.global.navigator.userAgent:"";a("es5",function(){return c("[1,].length==1")});a("es6",function(){var a=f.match(/Edge\/(\d+)(\.\d)*/i);return a&&15>Number(a[1])?!1:c('(()=>{"use strict";class X{constructor(){if(new.target!=String)throw 1;this.x=42}}let q=Reflect.construct(X,[],String);if(q.x!=42||!(q instanceof String))throw 1;for(const a of[2,3]){if(a==2)continue;function f(z={a}){let a=0;return z.a}{function f(){return 0;}}return f()==3}})()')});
a("es6-impl",function(){return!0});a("es7",function(){return c("2 ** 2 == 4")});a("es8",function(){return c("async () => 1, true")});return d};var chrome=chrome||{};chrome.cast=chrome.cast||{};chrome.cast.a={};n.F("chrome.cast.games",chrome.cast.a);chrome.cast.a.eb="urn:x-cast:com.google.cast.games";n.w(chrome.cast.a,"NAMESPACE",chrome.cast.a.eb);chrome.cast.a.qc="1.0.0";n.w(chrome.cast.a,"SDK_VERSION_NUMBER",chrome.cast.a.qc);chrome.cast.a.yd={UNKNOWN:0,LOADING:1,RUNNING:2,PAUSED:3,SHOWING_INFO_SCREEN:4};n.w(chrome.cast.a,"GameplayState",chrome.cast.a.yd);chrome.cast.a.zd={UNKNOWN:0,OPEN:1,CLOSED:2};n.w(chrome.cast.a,"LobbyState",chrome.cast.a.zd);chrome.cast.a.Ea={INVALID_REQUEST:"invalid_request",NOT_ALLOWED:"not_allowed",INCORRECT_VERSION:"incorrect_version",TOO_MANY_PLAYERS:"too_many_players",ec:"cast_error"};n.w(chrome.cast.a,"GameManagerErrorCode",chrome.cast.a.Ea);chrome.cast.a.C={};chrome.cast.a.C.oa={SUCCESS:0,INVALID_REQUEST:1,NOT_ALLOWED:2,INCORRECT_VERSION:3,TOO_MANY_PLAYERS:4};
chrome.cast.a.C.oa.Bh=function(a){switch(a){case chrome.cast.a.C.oa.INVALID_REQUEST:return chrome.cast.a.Ea.INVALID_REQUEST;case chrome.cast.a.C.oa.NOT_ALLOWED:return chrome.cast.a.Ea.NOT_ALLOWED;case chrome.cast.a.C.oa.INCORRECT_VERSION:return chrome.cast.a.Ea.INCORRECT_VERSION;case chrome.cast.a.C.oa.TOO_MANY_PLAYERS:return chrome.cast.a.Ea.TOO_MANY_PLAYERS;default:throw Error("Cannot get error code for status code "+a);}};chrome.cast.a.C.Jf=function(){this.type=chrome.cast.a.C.sb.GAME_MANAGER_PROCESSED_RESULT;this.requestId=0;this.playerId="";this.playerToken=null;this.statusCode=chrome.cast.a.C.oa.SUCCESS;this.errorDescription="";this.gameplayState=chrome.cast.a.yd.UNKNOWN;this.lobbyState=chrome.cast.a.zd.UNKNOWN;this.players=[];this.gameData=null;this.gameStatusText="";this.extraMessageData=this.gameManagerConfig=null};n.F("chrome.cast.games.internal.GameManagerMessage",chrome.cast.a.C.Jf);
chrome.cast.a.C.sb={UNKNOWN:0,GAME_MANAGER_PROCESSED_RESULT:1,GAME_MESSAGE:2};n.F("chrome.cast.games.internal.GameManagerMessageType",chrome.cast.a.C.sb);chrome.cast.a.PlayerState={UNKNOWN:0,DROPPED:1,QUIT:2,AVAILABLE:3,READY:4,IDLE:5,PLAYING:6};n.w(chrome.cast.a,"PlayerState",chrome.cast.a.PlayerState);chrome.cast.a.C.Nd=function(){this.b=1E3*Math.floor(1E5*Math.random())};n.Qg();chrome.cast.a.C.ba={UNKNOWN:0,Dd:1,wg:2,tg:3,ug:4,vg:5,Ff:6,GAME_MESSAGE:7,ic:1100};n.F("chrome.cast.games.internal.GameManagerRequestType",chrome.cast.a.C.ba);chrome.cast.a.C.wd=function(){this.type=chrome.cast.a.C.ba.UNKNOWN;var a=chrome.cast.a.C.Nd.ie(),c=a.b++;0==c&&(c=a.b++);this.requestId=c;this.playerId="";this.extraMessageData=this.playerToken=null};
chrome.cast.a.C.ba.Ch=function(a){var c=chrome.cast.a.PlayerState,d=chrome.cast.a.C.ba;switch(a){case c.QUIT:return d.vg;case c.AVAILABLE:return d.Dd;case c.READY:return d.wg;case c.IDLE:return d.tg;case c.PLAYING:return d.ug;default:throw Error("No mapping to a game manager request type for player state: "+a);}};chrome.cast.a.rb=function(a,c,d,e){this.errorCode=a;this.errorDescription=c;this.result=d;this.castError=e};n.w(chrome.cast.a,"GameManagerError",chrome.cast.a.rb);chrome.cast.a.kc=function(a,c,d){this.playerId=a;this.requestId=c;this.extraMessageData=d};n.w(chrome.cast.a,"GameManagerResult",chrome.cast.a.kc);n.debug={};n.debug.Error=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,n.debug.Error);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a))};n.Va(n.debug.Error,Error);n.debug.Error.prototype.name="CustomError";n.Zd={};n.Zd.jg={zf:1,Fj:2,TEXT:3,Pj:4,Hk:5,Gk:6,Sl:7,Uj:8,ik:9,kk:10,jk:11,Hl:12};n.g={};n.g.pd=!1;n.g.Df=!1;n.g.Ig={hg:"\u00a0"};n.g.startsWith=function(a,c){return 0==a.lastIndexOf(c,0)};n.g.endsWith=function(a,c){var d=a.length-c.length;return 0<=d&&a.indexOf(c,d)==d};n.g.pn=function(a,c){return 0==n.g.Sd(c,a.substr(0,c.length))};n.g.nn=function(a,c){return 0==n.g.Sd(c,a.substr(a.length-c.length,c.length))};n.g.on=function(a,c){return a.toLowerCase()==c.toLowerCase()};
n.g.lj=function(a,c){for(var d=a.split("%s"),e="",f=Array.prototype.slice.call(arguments,1);f.length&&1<d.length;)e+=d.shift()+f.shift();return e+d.join("%s")};n.g.vn=function(a){return a.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")};n.g.Hc=function(a){return/^[\s\xa0]*$/.test(a)};n.g.Ao=function(a){return 0==a.length};n.g.Bb=n.g.Hc;n.g.ji=function(a){return n.g.Hc(n.g.Bi(a))};n.g.zo=n.g.ji;n.g.vo=function(a){return!/[^\t\n\r ]/.test(a)};n.g.so=function(a){return!/[^a-zA-Z]/.test(a)};
n.g.Ho=function(a){return!/[^0-9]/.test(a)};n.g.to=function(a){return!/[^a-zA-Z0-9]/.test(a)};n.g.Ko=function(a){return" "==a};n.g.Lo=function(a){return 1==a.length&&" "<=a&&"~">=a||"\u0080"<=a&&"\ufffd">=a};n.g.Sp=function(a){return a.replace(/(\r\n|\r|\n)+/g," ")};n.g.ln=function(a){return a.replace(/(\r\n|\r|\n)/g,"\n")};n.g.gp=function(a){return a.replace(/\xa0|\s/g," ")};n.g.fp=function(a){return a.replace(/\xa0|[ \t]+/g," ")};
n.g.un=function(a){return a.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")};n.g.trim=n.rc&&String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};n.g.trimLeft=function(a){return a.replace(/^[\s\xa0]+/,"")};n.g.trimRight=function(a){return a.replace(/[\s\xa0]+$/,"")};n.g.Sd=function(a,c){a=String(a).toLowerCase();c=String(c).toLowerCase();return a<c?-1:a==c?0:1};
n.g.Ve=function(a,c,d){if(a==c)return 0;if(!a)return-1;if(!c)return 1;for(var e=a.toLowerCase().match(d),f=c.toLowerCase().match(d),g=Math.min(e.length,f.length),h=0;h<g;h++){d=e[h];var k=f[h];if(d!=k)return a=parseInt(d,10),!isNaN(a)&&(c=parseInt(k,10),!isNaN(c)&&a-c)?a-c:d<k?-1:1}return e.length!=f.length?e.length-f.length:a<c?-1:1};n.g.po=function(a,c){return n.g.Ve(a,c,/\d+|\D+/g)};n.g.sh=function(a,c){return n.g.Ve(a,c,/\d+|\.\d+|\D+/g)};n.g.ip=n.g.sh;n.g.jq=function(a){return encodeURIComponent(String(a))};
n.g.iq=function(a){return decodeURIComponent(a.replace(/\+/g," "))};n.g.Ji=function(a,c){return a.replace(/(\r\n|\r|\n)/g,c?"<br />":"<br>")};
n.g.se=function(a){if(!n.g.pf.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(n.g.qf,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(n.g.Pf,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(n.g.Gf,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(n.g.zg,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(n.g.Cg,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(n.g.ig,"&#0;"));n.g.pd&&-1!=a.indexOf("e")&&(a=a.replace(n.g.Af,"&#101;"));return a};n.g.qf=/&/g;n.g.Pf=/</g;n.g.Gf=/>/g;n.g.zg=/"/g;n.g.Cg=/'/g;n.g.ig=/\x00/g;n.g.Af=/e/g;
n.g.pf=n.g.pd?/[\x00&<>"'e]/:/[\x00&<>"']/;n.g.hf=function(a){return n.g.contains(a,"&")?!n.g.Df&&"document"in n.global?n.g.jf(a):n.g.qj(a):a};n.g.eq=function(a,c){return n.g.contains(a,"&")?n.g.jf(a,c):a};
n.g.jf=function(a,c){var d={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var e=c?c.createElement("div"):n.global.document.createElement("div");return a.replace(n.g.Kf,function(a,c){var f=d[a];if(f)return f;"#"==c.charAt(0)&&(c=Number("0"+c.substr(1)),isNaN(c)||(f=String.fromCharCode(c)));f||(e.innerHTML=a+" ",f=e.firstChild.nodeValue.slice(0,-1));return d[a]=f})};
n.g.qj=function(a){return a.replace(/&([^;]+);/g,function(a,d){switch(d){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return"#"!=d.charAt(0)||(d=Number("0"+d.substr(1)),isNaN(d))?a:String.fromCharCode(d)}})};n.g.Kf=/&([^;\s<&]+);?/g;n.g.mq=function(a,c){return n.g.Ji(a.replace(/  /g," &#160;"),c)};n.g.op=function(a){return a.replace(/(^|[\n ]) /g,"$1"+n.g.Ig.hg)};
n.g.Tp=function(a,c){for(var d=c.length,e=0;e<d;e++){var f=1==d?c:c.charAt(e);if(a.charAt(0)==f&&a.charAt(a.length-1)==f)return a.substring(1,a.length-1)}return a};n.g.truncate=function(a,c,d){d&&(a=n.g.hf(a));a.length>c&&(a=a.substring(0,c-3)+"...");d&&(a=n.g.se(a));return a};n.g.cq=function(a,c,d,e){d&&(a=n.g.hf(a));e&&a.length>c?(e>c&&(e=c),a=a.substring(0,c-e)+"..."+a.substring(a.length-e)):a.length>c&&(e=Math.floor(c/2),a=a.substring(0,e+c%2)+"..."+a.substring(a.length-e));d&&(a=n.g.se(a));return a};
n.g.Xc={"\x00":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\","<":"<"};n.g.Tb={"'":"\\'"};n.g.quote=function(a){a=String(a);for(var c=['"'],d=0;d<a.length;d++){var e=a.charAt(d),f=e.charCodeAt(0);c[d+1]=n.g.Xc[e]||(31<f&&127>f?e:n.g.ae(e))}c.push('"');return c.join("")};n.g.Pn=function(a){for(var c=[],d=0;d<a.length;d++)c[d]=n.g.ae(a.charAt(d));return c.join("")};
n.g.ae=function(a){if(a in n.g.Tb)return n.g.Tb[a];if(a in n.g.Xc)return n.g.Tb[a]=n.g.Xc[a];var c=a.charCodeAt(0);if(31<c&&127>c)var d=a;else{if(256>c){if(d="\\x",16>c||256<c)d+="0"}else d="\\u",4096>c&&(d+="0");d+=c.toString(16).toUpperCase()}return n.g.Tb[a]=d};n.g.contains=function(a,c){return-1!=a.indexOf(c)};n.g.ah=function(){return n.g.contains(n.c.userAgent.B.jb().toLowerCase(),"webkit")};n.g.Dn=function(a,c){return a&&c?a.split(c).length-1:0};
n.g.Za=function(a,c,d){var e=a;0<=c&&c<a.length&&0<d&&(e=a.substr(0,c)+a.substr(c+d,a.length-c-d));return e};n.g.remove=function(a,c){return a.replace(c,"")};n.g.removeAll=function(a,c){c=new RegExp(n.g.Uc(c),"g");return a.replace(c,"")};n.g.zp=function(a,c,d){c=new RegExp(n.g.Uc(c),"g");return a.replace(c,d.replace(/\$/g,"$$$$"))};n.g.Uc=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
n.g.repeat=String.prototype.repeat?function(a,c){return a.repeat(c)}:function(a,c){return Array(c+1).join(a)};n.g.mp=function(a,c,d){a=n.ra(d)?a.toFixed(d):String(a);d=a.indexOf(".");-1==d&&(d=a.length);return n.g.repeat("0",Math.max(0,c-d))+a};n.g.Bi=function(a){return null==a?"":String(a)};n.g.hn=function(a){return Array.prototype.join.call(arguments,"")};n.g.ho=function(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^n.now()).toString(36)};
n.g.ub=function(a,c){var d=0;a=n.g.trim(String(a)).split(".");c=n.g.trim(String(c)).split(".");for(var e=Math.max(a.length,c.length),f=0;0==d&&f<e;f++){var g=a[f]||"",h=c[f]||"";do{g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""];h=/(\d*)(\D*)(.*)/.exec(h)||["","","",""];if(0==g[0].length&&0==h[0].length)break;d=n.g.uc(0==g[1].length?0:parseInt(g[1],10),0==h[1].length?0:parseInt(h[1],10))||n.g.uc(0==g[2].length,0==h[2].length)||n.g.uc(g[2],h[2]);g=g[3];h=h[3]}while(0==d)}return d};
n.g.uc=function(a,c){return a<c?-1:a>c?1:0};n.g.no=function(a){for(var c=0,d=0;d<a.length;++d)c=31*c+a.charCodeAt(d)>>>0;return c};n.g.sj=2147483648*Math.random()|0;n.g.Gn=function(){return"goog_"+n.g.sj++};n.g.Yp=function(a){var c=Number(a);return 0==c&&n.g.Hc(a)?NaN:c};n.g.Fo=function(a){return/^[a-z]+([A-Z][a-z]*)*$/.test(a)};n.g.Mo=function(a){return/^([A-Z][a-z]*)+$/.test(a)};n.g.Xp=function(a){return String(a).replace(/\-([a-z])/g,function(a,d){return d.toUpperCase()})};
n.g.Zp=function(a){return String(a).replace(/([A-Z])/g,"-$1").toLowerCase()};n.g.aq=function(a,c){c=n.K(c)?n.g.Uc(c):"\\s";return a.replace(new RegExp("(^"+(c?"|["+c+"]+":"")+")([a-z])","g"),function(a,c,f){return c+f.toUpperCase()})};n.g.mn=function(a){return String(a.charAt(0)).toUpperCase()+String(a.substr(1)).toLowerCase()};n.g.parseInt=function(a){isFinite(a)&&(a=String(a));return n.K(a)?/^\s*-?0x/i.test(a)?parseInt(a,16):parseInt(a,10):NaN};
n.g.Np=function(a,c,d){a=a.split(c);for(var e=[];0<d&&a.length;)e.push(a.shift()),d--;a.length&&e.push(a.join(c));return e};n.g.Po=function(a,c){if(c)"string"==typeof c&&(c=[c]);else return a;for(var d=-1,e=0;e<c.length;e++)if(""!=c[e]){var f=a.lastIndexOf(c[e]);f>d&&(d=f)}return-1==d?a:a.slice(d+1)};
n.g.Ln=function(a,c){var d=[],e=[];if(a==c)return 0;if(!a.length||!c.length)return Math.max(a.length,c.length);for(var f=0;f<c.length+1;f++)d[f]=f;for(f=0;f<a.length;f++){e[0]=f+1;for(var g=0;g<c.length;g++)e[g+1]=Math.min(e[g]+1,d[g+1]+1,d[g]+Number(a[f]!=c[g]));for(g=0;g<d.length;g++)d[g]=e[g]}return e[c.length]};n.j={};n.j.ma=n.Ca;n.j.Hb=function(a,c){c.unshift(a);n.debug.Error.call(this,n.g.lj.apply(null,c));c.shift()};n.Va(n.j.Hb,n.debug.Error);n.j.Hb.prototype.name="AssertionError";n.j.wf=function(a){throw a;};n.j.yc=n.j.wf;n.j.xa=function(a,c,d,e){var f="Assertion failed";if(d){f+=": "+d;var g=e}else a&&(f+=": "+a,g=c);a=new n.j.Hb(""+f,g||[]);n.j.yc(a)};n.j.Gp=function(a){n.j.ma&&(n.j.yc=a)};n.j.assert=function(a,c,d){n.j.ma&&!a&&n.j.xa("",null,c,Array.prototype.slice.call(arguments,2));return a};
n.j.Pb=function(a,c){n.j.ma&&n.j.yc(new n.j.Hb("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1)))};n.j.Zm=function(a,c,d){n.j.ma&&!n.Cb(a)&&n.j.xa("Expected number but got %s: %s.",[n.la(a),a],c,Array.prototype.slice.call(arguments,2));return a};n.j.cn=function(a,c,d){n.j.ma&&!n.K(a)&&n.j.xa("Expected string but got %s: %s.",[n.la(a),a],c,Array.prototype.slice.call(arguments,2));return a};
n.j.Xm=function(a,c,d){n.j.ma&&!n.ya(a)&&n.j.xa("Expected function but got %s: %s.",[n.la(a),a],c,Array.prototype.slice.call(arguments,2));return a};n.j.an=function(a,c,d){n.j.ma&&!n.za(a)&&n.j.xa("Expected object but got %s: %s.",[n.la(a),a],c,Array.prototype.slice.call(arguments,2));return a};n.j.Um=function(a,c,d){n.j.ma&&!n.isArray(a)&&n.j.xa("Expected array but got %s: %s.",[n.la(a),a],c,Array.prototype.slice.call(arguments,2));return a};
n.j.Vm=function(a,c,d){n.j.ma&&!n.Sb(a)&&n.j.xa("Expected boolean but got %s: %s.",[n.la(a),a],c,Array.prototype.slice.call(arguments,2));return a};n.j.Wm=function(a,c,d){!n.j.ma||n.za(a)&&a.nodeType==n.Zd.jg.zf||n.j.xa("Expected Element but got %s: %s.",[n.la(a),a],c,Array.prototype.slice.call(arguments,2));return a};n.j.Ym=function(a,c,d,e){!n.j.ma||a instanceof c||n.j.xa("Expected instanceof %s but got %s.",[n.j.re(c),n.j.re(a)],d,Array.prototype.slice.call(arguments,3));return a};
n.j.bn=function(){for(var a in Object.prototype)n.j.Pb(a+" should not be enumerable in Object.prototype.")};n.j.re=function(a){return a instanceof Function?a.displayName||a.name||"unknown type name":a instanceof Object?a.constructor.displayName||a.constructor.name||Object.prototype.toString.call(a):null===a?"null":typeof a};n.f={};n.ua=n.rc;n.f.ta=!1;n.f.Oi=function(a){return a[a.length-1]};n.f.Oo=n.f.Oi;n.f.indexOf=n.ua&&(n.f.ta||Array.prototype.indexOf)?function(a,c,d){return Array.prototype.indexOf.call(a,c,d)}:function(a,c,d){d=null==d?0:0>d?Math.max(0,a.length+d):d;if(n.K(a))return n.K(c)&&1==c.length?a.indexOf(c,d):-1;for(;d<a.length;d++)if(d in a&&a[d]===c)return d;return-1};
n.f.lastIndexOf=n.ua&&(n.f.ta||Array.prototype.lastIndexOf)?function(a,c,d){return Array.prototype.lastIndexOf.call(a,c,null==d?a.length-1:d)}:function(a,c,d){d=null==d?a.length-1:d;0>d&&(d=Math.max(0,a.length+d));if(n.K(a))return n.K(c)&&1==c.length?a.lastIndexOf(c,d):-1;for(;0<=d;d--)if(d in a&&a[d]===c)return d;return-1};
n.f.forEach=n.ua&&(n.f.ta||Array.prototype.forEach)?function(a,c,d){Array.prototype.forEach.call(a,c,d)}:function(a,c,d){for(var e=a.length,f=n.K(a)?a.split(""):a,g=0;g<e;g++)g in f&&c.call(d,f[g],g,a)};n.f.ee=function(a,c){for(var d=n.K(a)?a.split(""):a,e=a.length-1;0<=e;--e)e in d&&c.call(void 0,d[e],e,a)};
n.f.filter=n.ua&&(n.f.ta||Array.prototype.filter)?function(a,c,d){return Array.prototype.filter.call(a,c,d)}:function(a,c,d){for(var e=a.length,f=[],g=0,h=n.K(a)?a.split(""):a,k=0;k<e;k++)if(k in h){var l=h[k];c.call(d,l,k,a)&&(f[g++]=l)}return f};n.f.map=n.ua&&(n.f.ta||Array.prototype.map)?function(a,c,d){return Array.prototype.map.call(a,c,d)}:function(a,c,d){for(var e=a.length,f=Array(e),g=n.K(a)?a.split(""):a,h=0;h<e;h++)h in g&&(f[h]=c.call(d,g[h],h,a));return f};
n.f.reduce=n.ua&&(n.f.ta||Array.prototype.reduce)?function(a,c,d,e){e&&(c=n.bind(c,e));return Array.prototype.reduce.call(a,c,d)}:function(a,c,d,e){var f=d;n.f.forEach(a,function(d,h){f=c.call(e,f,d,h,a)});return f};n.f.reduceRight=n.ua&&(n.f.ta||Array.prototype.reduceRight)?function(a,c,d,e){e&&(c=n.bind(c,e));return Array.prototype.reduceRight.call(a,c,d)}:function(a,c,d,e){var f=d;n.f.ee(a,function(d,h){f=c.call(e,f,d,h,a)});return f};
n.f.some=n.ua&&(n.f.ta||Array.prototype.some)?function(a,c,d){return Array.prototype.some.call(a,c,d)}:function(a,c,d){for(var e=a.length,f=n.K(a)?a.split(""):a,g=0;g<e;g++)if(g in f&&c.call(d,f[g],g,a))return!0;return!1};n.f.every=n.ua&&(n.f.ta||Array.prototype.every)?function(a,c,d){return Array.prototype.every.call(a,c,d)}:function(a,c,d){for(var e=a.length,f=n.K(a)?a.split(""):a,g=0;g<e;g++)if(g in f&&!c.call(d,f[g],g,a))return!1;return!0};
n.f.count=function(a,c,d){var e=0;n.f.forEach(a,function(a,g,h){c.call(d,a,g,h)&&++e},d);return e};n.f.find=function(a,c,d){c=n.f.findIndex(a,c,d);return 0>c?null:n.K(a)?a.charAt(c):a[c]};n.f.findIndex=function(a,c,d){for(var e=a.length,f=n.K(a)?a.split(""):a,g=0;g<e;g++)if(g in f&&c.call(d,f[g],g,a))return g;return-1};n.f.Sn=function(a,c,d){c=n.f.qh(a,c,d);return 0>c?null:n.K(a)?a.charAt(c):a[c]};
n.f.qh=function(a,c,d){for(var e=n.K(a)?a.split(""):a,f=a.length-1;0<=f;f--)if(f in e&&c.call(d,e[f],f,a))return f;return-1};n.f.contains=function(a,c){return 0<=n.f.indexOf(a,c)};n.f.Bb=function(a){return 0==a.length};n.f.clear=function(a){if(!n.isArray(a))for(var c=a.length-1;0<=c;c--)delete a[c];a.length=0};n.f.insert=function(a,c){n.f.contains(a,c)||a.push(c)};n.f.ve=function(a,c,d){n.f.splice(a,d,0,c)};n.f.oo=function(a,c,d){n.Ze(n.f.splice,a,d,0).apply(null,c)};
n.f.insertBefore=function(a,c,d){var e;2==arguments.length||0>(e=n.f.indexOf(a,d))?a.push(c):n.f.ve(a,c,e)};n.f.remove=function(a,c){c=n.f.indexOf(a,c);var d;(d=0<=c)&&n.f.Za(a,c);return d};n.f.yp=function(a,c){c=n.f.lastIndexOf(a,c);return 0<=c?(n.f.Za(a,c),!0):!1};n.f.Za=function(a,c){return 1==Array.prototype.splice.call(a,c,1).length};n.f.xp=function(a,c,d){c=n.f.findIndex(a,c,d);return 0<=c?(n.f.Za(a,c),!0):!1};
n.f.vp=function(a,c,d){var e=0;n.f.ee(a,function(f,g){c.call(d,f,g,a)&&n.f.Za(a,g)&&e++});return e};n.f.concat=function(a){return Array.prototype.concat.apply([],arguments)};n.f.join=function(a){return Array.prototype.concat.apply([],arguments)};n.f.Pa=function(a){var c=a.length;if(0<c){for(var d=Array(c),e=0;e<c;e++)d[e]=a[e];return d}return[]};n.f.clone=n.f.Pa;
n.f.extend=function(a,c){for(var d=1;d<arguments.length;d++){var e=arguments[d];if(n.qa(e)){var f=a.length||0,g=e.length||0;a.length=f+g;for(var h=0;h<g;h++)a[f+h]=e[h]}else a.push(e)}};n.f.splice=function(a,c,d,e){return Array.prototype.splice.apply(a,n.f.slice(arguments,1))};n.f.slice=function(a,c,d){return 2>=arguments.length?Array.prototype.slice.call(a,c):Array.prototype.slice.call(a,c,d)};
n.f.Ti=function(a,c){c=c||a;for(var d={},e=0,f=0;f<a.length;){var g=a[f++];var h=g;h=n.za(h)?"o"+n.yb(h):(typeof h).charAt(0)+h;Object.prototype.hasOwnProperty.call(d,h)||(d[h]=!0,c[e++]=g)}c.length=e};n.f.Qd=function(a,c,d){return n.f.Rd(a,d||n.f.Ja,!1,c)};n.f.fn=function(a,c,d){return n.f.Rd(a,c,!0,void 0,d)};n.f.Rd=function(a,c,d,e,f){for(var g=0,h=a.length,k;g<h;){var l=g+h>>1,q;d?q=c.call(f,a[l],l,a):q=c(e,a[l]);0<q?g=l+1:(h=l,k=!q)}return k?g:~g};n.f.sort=function(a,c){a.sort(c||n.f.Ja)};
n.f.Op=function(a,c){for(var d=Array(a.length),e=0;e<a.length;e++)d[e]={index:e,value:a[e]};var f=c||n.f.Ja;n.f.sort(d,function(a,c){return f(a.value,c.value)||a.index-c.index});for(e=0;e<a.length;e++)a[e]=d[e].value};n.f.jj=function(a,c,d){var e=d||n.f.Ja;n.f.sort(a,function(a,d){return e(c(a),c(d))})};n.f.Mp=function(a,c,d){n.f.jj(a,function(a){return a[c]},d)};n.f.Ke=function(a){for(var c=n.f.Ja,d=1;d<a.length;d++)if(0<c(a[d-1],a[d]))return!1;return!0};
n.f.ja=function(a,c,d){if(!n.qa(a)||!n.qa(c)||a.length!=c.length)return!1;var e=a.length;d=d||n.f.Xd;for(var f=0;f<e;f++)if(!d(a[f],c[f]))return!1;return!0};n.f.yn=function(a,c,d){d=d||n.f.Ja;for(var e=Math.min(a.length,c.length),f=0;f<e;f++){var g=d(a[f],c[f]);if(0!=g)return g}return n.f.Ja(a.length,c.length)};n.f.Ja=function(a,c){return a>c?1:a<c?-1:0};n.f.ro=function(a,c){return-n.f.Ja(a,c)};n.f.Xd=function(a,c){return a===c};
n.f.dn=function(a,c,d){d=n.f.Qd(a,c,d);return 0>d?(n.f.ve(a,c,-(d+1)),!0):!1};n.f.en=function(a,c,d){c=n.f.Qd(a,c,d);return 0<=c?n.f.Za(a,c):!1};n.f.gn=function(a,c,d){for(var e={},f=0;f<a.length;f++){var g=a[f],h=c.call(d,g,f,a);n.ra(h)&&(e[h]||(e[h]=[])).push(g)}return e};n.f.nj=function(a,c,d){var e={};n.f.forEach(a,function(f,g){e[c.call(d,f,g,a)]=f});return e};
n.f.Wb=function(a,c,d){var e=[],f=0,g=a;d=d||1;void 0!==c&&(f=a,g=c);if(0>d*(g-f))return[];if(0<d)for(a=f;a<g;a+=d)e.push(a);else for(a=f;a>g;a+=d)e.push(a);return e};n.f.repeat=function(a,c){for(var d=[],e=0;e<c;e++)d[e]=a;return d};n.f.flatten=function(a){for(var c=[],d=0;d<arguments.length;d++){var e=arguments[d];if(n.isArray(e))for(var f=0;f<e.length;f+=8192){var g=n.f.slice(e,f,f+8192);g=n.f.flatten.apply(null,g);for(var h=0;h<g.length;h++)c.push(g[h])}else c.push(e)}return c};
n.f.rotate=function(a,c){a.length&&(c%=a.length,0<c?Array.prototype.unshift.apply(a,a.splice(-c,c)):0>c&&Array.prototype.push.apply(a,a.splice(0,-c)));return a};n.f.ap=function(a,c,d){c=Array.prototype.splice.call(a,c,1);Array.prototype.splice.call(a,d,0,c[0])};
n.f.nf=function(a){if(!arguments.length)return[];for(var c=[],d=arguments[0].length,e=1;e<arguments.length;e++)arguments[e].length<d&&(d=arguments[e].length);for(e=0;e<d;e++){for(var f=[],g=0;g<arguments.length;g++)f.push(arguments[g][e]);c.push(f)}return c};n.f.Lp=function(a,c){c=c||Math.random;for(var d=a.length-1;0<d;d--){var e=Math.floor(c()*(d+1)),f=a[d];a[d]=a[e];a[e]=f}};n.f.Cn=function(a,c){var d=[];n.f.forEach(c,function(c){d.push(a[c])});return d};
n.f.Bn=function(a,c,d){return n.f.concat.apply([],n.f.map(a,c,d))};n.debug.Ka={};n.debug.Ka.Pg=function(a,c,d){a[n.debug.Ka.Ib]||(a[n.debug.Ka.Ib]={});a[n.debug.Ka.Ib][c]=d};n.debug.Ka.ao=function(a){return a[n.debug.Ka.Ib]||{}};n.debug.Ka.Ib="__closure__error__context__984382";n.c={};n.c.userAgent={};n.c.userAgent.B={};n.c.userAgent.B.le=function(){var a=n.c.userAgent.B.Kh();return a&&(a=a.userAgent)?a:""};n.c.userAgent.B.Kh=function(){return n.global.navigator};n.c.userAgent.B.kf=n.c.userAgent.B.le();n.c.userAgent.B.Jp=function(a){n.c.userAgent.B.kf=a||n.c.userAgent.B.le()};n.c.userAgent.B.jb=function(){return n.c.userAgent.B.kf};n.c.userAgent.B.J=function(a){return n.g.contains(n.c.userAgent.B.jb(),a)};n.c.userAgent.B.Hi=function(){return n.g.ah()};
n.c.userAgent.B.be=function(a){for(var c=/(\w[\w ]+)\/([^\s]+)\s*(?:\((.*?)\))?/g,d=[],e;e=c.exec(a);)d.push([e[1],e[2],e[3]||void 0]);return d};n.object={};n.object.is=function(a,c){return a===c?0!==a||1/a===1/c:a!==a&&c!==c};n.object.forEach=function(a,c,d){for(var e in a)c.call(d,a[e],e,a)};n.object.filter=function(a,c,d){var e={},f;for(f in a)c.call(d,a[f],f,a)&&(e[f]=a[f]);return e};n.object.map=function(a,c,d){var e={},f;for(f in a)e[f]=c.call(d,a[f],f,a);return e};n.object.some=function(a,c,d){for(var e in a)if(c.call(d,a[e],e,a))return!0;return!1};n.object.every=function(a,c,d){for(var e in a)if(!c.call(d,a[e],e,a))return!1;return!0};
n.object.ge=function(a){var c=0,d;for(d in a)c++;return c};n.object.Xn=function(a){for(var c in a)return c};n.object.Yn=function(a){for(var c in a)return a[c]};n.object.contains=function(a,c){return n.object.Ud(a,c)};n.object.Oa=function(a){var c=[],d=0,e;for(e in a)c[d++]=a[e];return c};n.object.Ua=function(a){var c=[],d=0,e;for(e in a)c[d++]=e;return c};n.object.ko=function(a,c){var d=n.qa(c),e=d?c:arguments;for(d=d?0:1;d<e.length;d++){if(null==a)return;a=a[e[d]]}return a};
n.object.wb=function(a,c){return null!==a&&c in a};n.object.Ud=function(a,c){for(var d in a)if(a[d]==c)return!0;return!1};n.object.rh=function(a,c,d){for(var e in a)if(c.call(d,a[e],e,a))return e};n.object.Tn=function(a,c,d){return(c=n.object.rh(a,c,d))&&a[c]};n.object.Bb=function(a){for(var c in a)return!1;return!0};n.object.clear=function(a){for(var c in a)delete a[c]};n.object.remove=function(a,c){var d;(d=c in a)&&delete a[c];return d};
n.object.add=function(a,c,d){if(null!==a&&c in a)throw Error('The object already contains the key "'+c+'"');n.object.set(a,c,d)};n.object.get=function(a,c,d){return null!==a&&c in a?a[c]:d};n.object.set=function(a,c,d){a[c]=d};n.object.Ip=function(a,c,d){return c in a?a[c]:a[c]=d};n.object.Kp=function(a,c,d){if(c in a)return a[c];d=d();return a[c]=d};n.object.ja=function(a,c){for(var d in a)if(!(d in c)||a[d]!==c[d])return!1;for(d in c)if(!(d in a))return!1;return!0};
n.object.clone=function(a){var c={},d;for(d in a)c[d]=a[d];return c};n.object.tj=function(a){var c=n.la(a);if("object"==c||"array"==c){if(n.ya(a.clone))return a.clone();c="array"==c?[]:{};for(var d in a)c[d]=n.object.tj(a[d]);return c}return a};n.object.oj=function(a){var c={},d;for(d in a)c[a[d]]=d;return c};n.object.Md="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
n.object.extend=function(a,c){for(var d,e,f=1;f<arguments.length;f++){e=arguments[f];for(d in e)a[d]=e[d];for(var g=0;g<n.object.Md.length;g++)d=n.object.Md[g],Object.prototype.hasOwnProperty.call(e,d)&&(a[d]=e[d])}};n.object.create=function(a){var c=arguments.length;if(1==c&&n.isArray(arguments[0]))return n.object.create.apply(null,arguments[0]);if(c%2)throw Error("Uneven number of arguments");for(var d={},e=0;e<c;e+=2)d[arguments[e]]=arguments[e+1];return d};
n.object.hh=function(a){var c=arguments.length;if(1==c&&n.isArray(arguments[0]))return n.object.hh.apply(null,arguments[0]);for(var d={},e=0;e<c;e++)d[arguments[e]]=!0;return d};n.object.Fn=function(a){var c=a;Object.isFrozen&&!Object.isFrozen(a)&&(c=Object.create(a),Object.freeze(c));return c};n.object.Co=function(a){return!!Object.isFrozen&&Object.isFrozen(a)};
n.object.Wn=function(a,c,d){if(!a)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return n.object.Ua(a);for(var e={};a&&(a!==Object.prototype||c)&&(a!==Function.prototype||d);){for(var f=Object.getOwnPropertyNames(a),g=0;g<f.length;g++)e[f[g]]=!0;a=Object.getPrototypeOf(a)}return n.object.Ua(e)};n.c.userAgent.browser={};n.c.userAgent.browser.Pe=function(){return n.c.userAgent.B.J("Opera")};n.c.userAgent.browser.Fi=function(){return n.c.userAgent.B.J("Trident")||n.c.userAgent.B.J("MSIE")};n.c.userAgent.browser.Oc=function(){return n.c.userAgent.B.J("Edge")};n.c.userAgent.browser.Ei=function(){return n.c.userAgent.B.J("Firefox")};
n.c.userAgent.browser.Qe=function(){return n.c.userAgent.B.J("Safari")&&!(n.c.userAgent.browser.Mc()||n.c.userAgent.browser.Nc()||n.c.userAgent.browser.Pe()||n.c.userAgent.browser.Oc()||n.c.userAgent.browser.Je()||n.c.userAgent.B.J("Android"))};n.c.userAgent.browser.Nc=function(){return n.c.userAgent.B.J("Coast")};
n.c.userAgent.browser.Gi=function(){return(n.c.userAgent.B.J("iPad")||n.c.userAgent.B.J("iPhone"))&&!n.c.userAgent.browser.Qe()&&!n.c.userAgent.browser.Mc()&&!n.c.userAgent.browser.Nc()&&n.c.userAgent.B.J("AppleWebKit")};n.c.userAgent.browser.Mc=function(){return(n.c.userAgent.B.J("Chrome")||n.c.userAgent.B.J("CriOS"))&&!n.c.userAgent.browser.Oc()};
n.c.userAgent.browser.Di=function(){return n.c.userAgent.B.J("Android")&&!(n.c.userAgent.browser.ze()||n.c.userAgent.browser.ki()||n.c.userAgent.browser.Jc()||n.c.userAgent.browser.Je())};n.c.userAgent.browser.Jc=n.c.userAgent.browser.Pe;n.c.userAgent.browser.Ce=n.c.userAgent.browser.Fi;n.c.userAgent.browser.lb=n.c.userAgent.browser.Oc;n.c.userAgent.browser.ki=n.c.userAgent.browser.Ei;n.c.userAgent.browser.Jo=n.c.userAgent.browser.Qe;n.c.userAgent.browser.wo=n.c.userAgent.browser.Nc;
n.c.userAgent.browser.Eo=n.c.userAgent.browser.Gi;n.c.userAgent.browser.ze=n.c.userAgent.browser.Mc;n.c.userAgent.browser.uo=n.c.userAgent.browser.Di;n.c.userAgent.browser.Je=function(){return n.c.userAgent.B.J("Silk")};
n.c.userAgent.browser.zb=function(){function a(a){a=n.f.find(a,e);return d[a]||""}var c=n.c.userAgent.B.jb();if(n.c.userAgent.browser.Ce())return n.c.userAgent.browser.Fh(c);c=n.c.userAgent.B.be(c);var d={};n.f.forEach(c,function(a){d[a[0]]=a[1]});var e=n.Ze(n.object.wb,d);return n.c.userAgent.browser.Jc()?a(["Version","Opera"]):n.c.userAgent.browser.lb()?a(["Edge"]):n.c.userAgent.browser.ze()?a(["Chrome","CriOS"]):(c=c[2])&&c[1]||""};
n.c.userAgent.browser.fa=function(a){return 0<=n.g.ub(n.c.userAgent.browser.zb(),a)};n.c.userAgent.browser.Fh=function(a){var c=/rv: *([\d\.]*)/.exec(a);if(c&&c[1])return c[1];c="";var d=/MSIE +([\d\.]+)/.exec(a);if(d&&d[1])if(a=/Trident\/(\d.\d)/.exec(a),"7.0"==d[1])if(a&&a[1])switch(a[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=d[1];return c};n.c.userAgent.U={};n.c.userAgent.U.Io=function(){return n.c.userAgent.B.J("Presto")};n.c.userAgent.U.ti=function(){return n.c.userAgent.B.J("Trident")||n.c.userAgent.B.J("MSIE")};n.c.userAgent.U.lb=function(){return n.c.userAgent.B.J("Edge")};n.c.userAgent.U.Le=function(){return n.c.userAgent.B.Hi()&&!n.c.userAgent.U.lb()};n.c.userAgent.U.li=function(){return n.c.userAgent.B.J("Gecko")&&!n.c.userAgent.U.Le()&&!n.c.userAgent.U.ti()&&!n.c.userAgent.U.lb()};
n.c.userAgent.U.zb=function(){var a=n.c.userAgent.B.jb();if(a){a=n.c.userAgent.B.be(a);var c=n.c.userAgent.U.zh(a);if(c)return"Gecko"==c[0]?n.c.userAgent.U.Th(a):c[1];a=a[0];var d;if(a&&(d=a[2])&&(d=/Trident\/([^\s;]+)/.exec(d)))return d[1]}return""};n.c.userAgent.U.zh=function(a){if(!n.c.userAgent.U.lb())return a[1];for(var c=0;c<a.length;c++){var d=a[c];if("Edge"==d[0])return d}};n.c.userAgent.U.fa=function(a){return 0<=n.g.ub(n.c.userAgent.U.zb(),a)};
n.c.userAgent.U.Th=function(a){return(a=n.f.find(a,function(a){return"Firefox"==a[0]}))&&a[1]||""};n.c.userAgent.platform={};n.c.userAgent.platform.xe=function(){return n.c.userAgent.B.J("Android")};n.c.userAgent.platform.Ge=function(){return n.c.userAgent.B.J("iPod")};n.c.userAgent.platform.Fe=function(){return n.c.userAgent.B.J("iPhone")&&!n.c.userAgent.B.J("iPod")&&!n.c.userAgent.B.J("iPad")};n.c.userAgent.platform.Ee=function(){return n.c.userAgent.B.J("iPad")};n.c.userAgent.platform.De=function(){return n.c.userAgent.platform.Fe()||n.c.userAgent.platform.Ee()||n.c.userAgent.platform.Ge()};
n.c.userAgent.platform.He=function(){return n.c.userAgent.B.J("Macintosh")};n.c.userAgent.platform.oi=function(){return n.c.userAgent.B.J("Linux")};n.c.userAgent.platform.Me=function(){return n.c.userAgent.B.J("Windows")};n.c.userAgent.platform.Ae=function(){return n.c.userAgent.B.J("CrOS")};
n.c.userAgent.platform.zb=function(){var a=n.c.userAgent.B.jb(),c="";n.c.userAgent.platform.Me()?(c=/Windows (?:NT|Phone) ([0-9.]+)/,c=(a=c.exec(a))?a[1]:"0.0"):n.c.userAgent.platform.De()?(c=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,c=(a=c.exec(a))&&a[1].replace(/_/g,".")):n.c.userAgent.platform.He()?(c=/Mac OS X ([0-9_.]+)/,c=(a=c.exec(a))?a[1].replace(/_/g,"."):"10"):n.c.userAgent.platform.xe()?(c=/Android\s+([^\);]+)(\)|;)/,c=(a=c.exec(a))&&a[1]):n.c.userAgent.platform.Ae()&&(c=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,
c=(a=c.exec(a))&&a[1]);return c||""};n.c.userAgent.platform.fa=function(a){return 0<=n.g.ub(n.c.userAgent.platform.zb(),a)};n.sa={};n.sa.object=function(a,c){return c};n.sa.Wc=function(a){n.sa.Wc[" "](a);return a};n.sa.Wc[" "]=n.Xa;n.sa.Zg=function(a){try{return n.sa.Wc(a.nodeName),!0}catch(c){}return!1};n.sa.cache=function(a,c,d,e){e=e?e(c):c;return Object.prototype.hasOwnProperty.call(a,e)?a[e]:a[e]=d(c)};n.userAgent={};n.userAgent.fd=!1;n.userAgent.dd=!1;n.userAgent.ed=!1;n.userAgent.kd=!1;n.userAgent.cc=!1;n.userAgent.jd=!1;n.userAgent.rf=!1;n.userAgent.qb=n.userAgent.fd||n.userAgent.dd||n.userAgent.ed||n.userAgent.cc||n.userAgent.kd||n.userAgent.jd;n.userAgent.Sh=function(){return n.c.userAgent.B.jb()};n.userAgent.me=function(){return n.global.navigator||null};n.userAgent.pc=n.userAgent.qb?n.userAgent.jd:n.c.userAgent.browser.Jc();n.userAgent.ha=n.userAgent.qb?n.userAgent.fd:n.c.userAgent.browser.Ce();
n.userAgent.qd=n.userAgent.qb?n.userAgent.dd:n.c.userAgent.U.lb();n.userAgent.Ck=n.userAgent.qd||n.userAgent.ha;n.userAgent.Jb=n.userAgent.qb?n.userAgent.ed:n.c.userAgent.U.li();n.userAgent.Sa=n.userAgent.qb?n.userAgent.kd||n.userAgent.cc:n.c.userAgent.U.Le();n.userAgent.ri=function(){return n.userAgent.Sa&&n.c.userAgent.B.J("Mobile")};n.userAgent.xl=n.userAgent.cc||n.userAgent.ri();n.userAgent.cm=n.userAgent.Sa;n.userAgent.jh=function(){var a=n.userAgent.me();return a&&a.platform||""};
n.userAgent.Pl=n.userAgent.jh();n.userAgent.hd=!1;n.userAgent.ld=!1;n.userAgent.gd=!1;n.userAgent.md=!1;n.userAgent.cd=!1;n.userAgent.ac=!1;n.userAgent.Zb=!1;n.userAgent.bc=!1;n.userAgent.va=n.userAgent.hd||n.userAgent.ld||n.userAgent.gd||n.userAgent.md||n.userAgent.cd||n.userAgent.ac||n.userAgent.Zb||n.userAgent.bc;n.userAgent.tl=n.userAgent.va?n.userAgent.hd:n.c.userAgent.platform.He();n.userAgent.Lm=n.userAgent.va?n.userAgent.ld:n.c.userAgent.platform.Me();
n.userAgent.ni=function(){return n.c.userAgent.platform.oi()||n.c.userAgent.platform.Ae()};n.userAgent.il=n.userAgent.va?n.userAgent.gd:n.userAgent.ni();n.userAgent.vi=function(){var a=n.userAgent.me();return!!a&&n.g.contains(a.appVersion||"","X11")};n.userAgent.Mm=n.userAgent.va?n.userAgent.md:n.userAgent.vi();n.userAgent.ANDROID=n.userAgent.va?n.userAgent.cd:n.c.userAgent.platform.xe();n.userAgent.cl=n.userAgent.va?n.userAgent.ac:n.c.userAgent.platform.Fe();
n.userAgent.bl=n.userAgent.va?n.userAgent.Zb:n.c.userAgent.platform.Ee();n.userAgent.dl=n.userAgent.va?n.userAgent.bc:n.c.userAgent.platform.Ge();n.userAgent.IOS=n.userAgent.va?n.userAgent.ac||n.userAgent.Zb||n.userAgent.bc:n.c.userAgent.platform.De();n.userAgent.kh=function(){var a="",c=n.userAgent.Uh();c&&(a=c?c[1]:"");return n.userAgent.ha&&(c=n.userAgent.he(),null!=c&&c>parseFloat(a))?String(c):a};
n.userAgent.Uh=function(){var a=n.userAgent.Sh();if(n.userAgent.Jb)return/rv\:([^\);]+)(\)|;)/.exec(a);if(n.userAgent.qd)return/Edge\/([\d\.]+)/.exec(a);if(n.userAgent.ha)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(n.userAgent.Sa)return/WebKit\/(\S+)/.exec(a);if(n.userAgent.pc)return/(?:Version)[ \/]?(\S+)/.exec(a)};n.userAgent.he=function(){var a=n.global.document;return a?a.documentMode:void 0};n.userAgent.VERSION=n.userAgent.kh();n.userAgent.compare=function(a,c){return n.g.ub(a,c)};
n.userAgent.ui={};n.userAgent.fa=function(a){return n.userAgent.rf||n.sa.cache(n.userAgent.ui,a,function(){return 0<=n.g.ub(n.userAgent.VERSION,a)})};n.userAgent.No=n.userAgent.fa;n.userAgent.Gc=function(a){return Number(n.userAgent.yf)>=a};n.userAgent.yo=n.userAgent.Gc;var p;var t=n.global.document;p=t&&n.userAgent.ha?n.userAgent.he()||("CSS1Compat"==t.compatMode?parseInt(n.userAgent.VERSION,10):5):void 0;n.userAgent.yf=p;n.debug.aa=n.Ca;n.debug.td=!1;n.debug.qn=function(a,c,d){d=d||n.global;var e=d.onerror,f=!!c;n.userAgent.Sa&&!n.userAgent.fa("535.3")&&(f=!f);d.onerror=function(c,d,k,l,q){e&&e(c,d,k,l,q);a({message:c,fileName:d,line:k,tn:l,error:q});return f}};n.debug.nh=function(a,c){if("undefined"==typeof a)return"undefined";if(null==a)return"NULL";var d=[],e;for(e in a)if(c||!n.ya(a[e])){var f=e+" = ";try{f+=a[e]}catch(g){f+="*** "+g+" ***"}d.push(f)}return d.join("\n")};
n.debug.Jn=function(a,c){var d=[],e=[],f={},g=function(a,k){var h=k+"  ";try{if(n.ra(a))if(n.Ie(a))d.push("NULL");else if(n.K(a))d.push('"'+a.replace(/\n/g,"\n"+k)+'"');else if(n.ya(a))d.push(String(a).replace(/\n/g,"\n"+k));else if(n.za(a)){n.ei(a)||e.push(a);var q=n.yb(a);if(f[q])d.push("*** reference loop detected (id="+q+") ***");else{f[q]=!0;d.push("{");for(var u in a)if(c||!n.ya(a[u]))d.push("\n"),d.push(h),d.push(u+" = "),g(a[u],h);d.push("\n"+k+"}");delete f[q]}}else d.push(a);else d.push("undefined")}catch(Q){d.push("*** "+
Q+" ***")}};g(a,"");for(a=0;a<e.length;a++)n.bf(e[a]);return d.join("")};n.debug.oh=function(a){for(var c=[],d=0;d<a.length;d++)n.isArray(a[d])?c.push(n.debug.oh(a[d])):c.push(a[d]);return"[ "+c.join(", ")+" ]"};
n.debug.cp=function(a){var c=n.ne("window.location.href");if(n.K(a))return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:c,stack:"Not available"};var d=!1;try{var e=a.lineNumber||a.line||"Not available"}catch(g){e="Not available",d=!0}try{var f=a.fileName||a.filename||a.sourceURL||n.global.$googDebugFname||c}catch(g){f="Not available",d=!0}return!d&&a.lineNumber&&a.fileName&&a.stack&&a.message&&a.name?a:{message:a.message||"Not available",name:a.name||"UnknownError",lineNumber:e,
fileName:f,stack:a.stack||"Not available"}};n.debug.xc=function(a,c){a instanceof Error||(a=Error(a),Error.captureStackTrace&&Error.captureStackTrace(a,n.debug.xc));a.stack||(a.stack=n.debug.pe(n.debug.xc));if(c){for(var d=0;a["message"+d];)++d;a["message"+d]=String(c)}return a};n.debug.Mn=function(a,c){a=n.debug.xc(a);if(c)for(var d in c)n.debug.Ka.Pg(a,d,c[d]);return a};
n.debug.Rh=function(a){if(!n.debug.td){var c=n.debug.ke(n.debug.Rh);if(c)return c}c=[];for(var d=arguments.callee.caller,e=0;d&&(!a||e<a);){c.push(n.debug.getFunctionName(d));c.push("()\n");try{d=d.caller}catch(f){c.push("[exception trying to get caller]\n");break}e++;if(e>=n.debug.Ad){c.push("[...long stack...]");break}}a&&e>=a?c.push("[...reached max depth limit...]"):c.push("[end]");return c.join("")};n.debug.Ad=50;
n.debug.ke=function(a){var c=Error();if(Error.captureStackTrace)return Error.captureStackTrace(c,a),String(c.stack);try{throw c;}catch(d){c=d}return(a=c.stack)?String(a):null};n.debug.pe=function(a){var c;n.debug.td||(c=n.debug.ke(a||n.debug.pe));c||(c=n.debug.qe(a||arguments.callee.caller,[]));return c};
n.debug.qe=function(a,c){var d=[];if(n.f.contains(c,a))d.push("[...circular reference...]");else if(a&&c.length<n.debug.Ad){d.push(n.debug.getFunctionName(a)+"(");for(var e=a.arguments,f=0;e&&f<e.length;f++){0<f&&d.push(", ");var g=e[f];switch(typeof g){case "object":g=g?"object":"null";break;case "string":break;case "number":g=String(g);break;case "boolean":g=g?"true":"false";break;case "function":g=(g=n.debug.getFunctionName(g))?g:"[fn]";break;default:g=typeof g}40<g.length&&(g=g.substr(0,40)+"...");
d.push(g)}c.push(a);d.push(")\n");try{d.push(n.debug.qe(a.caller,c))}catch(h){d.push("[exception trying to get caller]\n")}}else a?d.push("[...long stack...]"):d.push("[end]");return d.join("")};n.debug.Hp=function(a){n.debug.de=a};n.debug.getFunctionName=function(a){if(n.debug.gb[a])return n.debug.gb[a];if(n.debug.de){var c=n.debug.de(a);if(c)return n.debug.gb[a]=c}a=String(a);n.debug.gb[a]||(c=/function ([^\(]+)/.exec(a),n.debug.gb[a]=c?c[1]:"[Anonymous]");return n.debug.gb[a]};
n.debug.Wo=function(a){return a.replace(/ /g,"[_]").replace(/\f/g,"[f]").replace(/\n/g,"[n]\n").replace(/\r/g,"[r]").replace(/\t/g,"[t]")};n.debug.Cp=function(a){return a instanceof Function?a.displayName||a.name||"unknown type name":a instanceof Object?a.constructor.displayName||a.constructor.name||Object.prototype.toString.call(a):null===a?"null":typeof a};n.debug.gb={};n.debug.uh=n.Ca&&Object.freeze||function(a){return a};n.debug.freeze=function(a){return n.debug.uh(a)};n.debug.Ha=function(a,c,d,e,f){"number"==typeof f||n.debug.Ha.b++;e||n.now();this.l=c;delete this.b};n.debug.Ha.prototype.b=null;n.debug.Ha.l=!0;n.debug.Ha.b=0;n.debug.Ha.prototype.getMessage=function(){return this.l};n.debug.Ga=function(){this.clear()};n.debug.Ga.ie=function(){n.debug.Ga.kb||(n.debug.Ga.kb=new n.debug.Ga);return n.debug.Ga.kb};n.debug.Ga.b=0;n.debug.Ga.l=function(){return!1};n.debug.Ga.prototype.clear=function(){};n.debug.o=function(a){this.I=a;this.b=this.D=this.l=this.v=null};n.debug.o.Lb="";n.debug.o.l=!0;n.debug.o.A=function(a,c){this.name=a;this.value=c};n.debug.o.A.prototype.toString=function(){return this.name};n.debug.o.A.Ba=new n.debug.o.A("OFF",Infinity);n.debug.o.A.nb=new n.debug.o.A("SHOUT",1200);n.debug.o.A.D=new n.debug.o.A("SEVERE",1E3);n.debug.o.A.Y=new n.debug.o.A("WARNING",900);n.debug.o.A.P=new n.debug.o.A("INFO",800);n.debug.o.A.l=new n.debug.o.A("CONFIG",700);
n.debug.o.A.I=new n.debug.o.A("FINE",500);n.debug.o.A.Wa=new n.debug.o.A("FINER",400);n.debug.o.A.Ya=new n.debug.o.A("FINEST",300);n.debug.o.A.ALL=new n.debug.o.A("ALL",0);n.debug.o.A.v=[n.debug.o.A.Ba,n.debug.o.A.nb,n.debug.o.A.D,n.debug.o.A.Y,n.debug.o.A.P,n.debug.o.A.l,n.debug.o.A.I,n.debug.o.A.Wa,n.debug.o.A.Ya,n.debug.o.A.ALL];n.debug.o.A.b=null;n.debug.o.A.Aa=function(){n.debug.o.A.b={};for(var a=0,c;c=n.debug.o.A.v[a];a++)n.debug.o.A.b[c.value]=c,n.debug.o.A.b[c.name]=c};
n.debug.o.A.Gb=function(a){n.debug.o.A.b||n.debug.o.A.Aa();return n.debug.o.A.b[a]||null};n.debug.o.A.lq=function(a){n.debug.o.A.b||n.debug.o.A.Aa();if(a in n.debug.o.A.b)return n.debug.o.A.b[a];for(var c=0;c<n.debug.o.A.v.length;++c){var d=n.debug.o.A.v[c];if(d.value<=a)return d}return null};n.debug.o.ib=function(a){return n.debug.N.ib(a)};n.debug.o.b=function(a){var c=n.global.console;c&&c.timeStamp&&c.timeStamp(a);(c=n.global.msWriteProfilerMark)&&c(a)};
n.debug.o.prototype.Pd=function(a){n.debug.aa&&(this.b||(this.b=[]),this.b.push(a))};n.debug.o.prototype.af=function(a){if(n.debug.aa){var c=this.b;return!!c&&n.f.remove(c,a)}return!1};n.debug.o.prototype.getChildren=function(){this.D||(this.D={});return this.D};var v=function(a){if(!n.debug.aa)return n.debug.o.A.Ba;if(a.l)return a.l;if(a.v)return v(a.v);n.j.Pb("Root logger has no level set.");return null};b=n.debug.o.prototype;
b.log=function(a,c,d){if(n.debug.aa&&n.debug.aa&&a.value>=v(this).value)for(n.ya(c)&&(c=c()),a=new n.debug.Ha(a,String(c),this.I),d&&(a.b=d),n.debug.o.b("log:"+a.getMessage()),d=this;d;){var e=d,f=a;if(e.b)for(var g=0;c=e.b[g];g++)c(f);d=d.v}};b.mf=function(a,c){n.debug.aa&&this.log(n.debug.o.A.Y,a,c)};b.info=function(a,c){n.debug.aa&&this.log(n.debug.o.A.P,a,c)};b.config=function(a,c){n.debug.aa&&this.log(n.debug.o.A.l,a,c)};b.ce=function(a,c){n.debug.aa&&this.log(n.debug.o.A.I,a,c)};n.debug.N={};
n.debug.N.Vb={};n.debug.N.Fb=null;n.debug.N.initialize=function(){if(!n.debug.N.Fb){n.debug.N.Fb=new n.debug.o(n.debug.o.Lb);n.debug.N.Vb[n.debug.o.Lb]=n.debug.N.Fb;var a=n.debug.o.A.l;n.debug.aa&&(n.debug.N.Fb.l=a)}};n.debug.N.co=function(){return n.debug.N.Vb};n.debug.N.Qh=function(){n.debug.N.initialize();return n.debug.N.Fb};n.debug.N.ib=function(a){n.debug.N.initialize();return n.debug.N.Vb[a]||n.debug.N.fh(a)};
n.debug.N.En=function(a){return function(c){var d=a||n.debug.N.Qh();n.debug.aa&&d.log(n.debug.o.A.D,"Error: "+c.message+" ("+c.fileName+" @ Line: "+c.line+")",void 0)}};n.debug.N.fh=function(a){var c=new n.debug.o(a),d=a.lastIndexOf("."),e=a.substr(d+1);d=n.debug.N.ib(a.substr(0,d));d.getChildren()[e]=c;c.v=d;return n.debug.N.Vb[a]=c};n.log={};n.log.Da=n.debug.aa;n.log.Lb=n.debug.o.Lb;n.log.o=n.debug.o;n.log.A=n.debug.o.A;n.log.Ha=n.debug.Ha;n.log.ib=function(a,c){return n.log.Da?(a=n.debug.N.ib(a),c&&a&&n.debug.aa&&(a.l=c),a):null};n.log.Pd=function(a,c){n.log.Da&&a&&a.Pd(c)};n.log.af=function(a,c){return n.log.Da&&a?a.af(c):!1};n.log.log=function(a,c,d,e){n.log.Da&&a&&a.log(c,d,e)};n.log.error=function(a,c,d){n.log.Da&&a&&n.debug.aa&&a.log(n.debug.o.A.D,c,d)};n.log.mf=function(a,c,d){n.log.Da&&a&&a.mf(c,d)};
n.log.info=function(a,c,d){n.log.Da&&a&&a.info(c,d)};n.log.ce=function(a,c,d){n.log.Da&&a&&a.ce(c,d)};n.H={};n.H.vb=function(a){return function(){return a}};n.H.Kk=n.H.vb(!1);n.H.Am=n.H.vb(!0);n.H.Il=n.H.vb(null);n.H.identity=function(a){return a};n.H.error=function(a){return function(){throw Error(a);}};n.H.Pb=function(a){return function(){throw a;}};n.H.lock=function(a,c){c=c||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,c))}};n.H.hp=function(a){return function(){return arguments[a]}};
n.H.np=function(a,c){var d=Array.prototype.slice.call(arguments,1);return function(){var c=Array.prototype.slice.call(arguments);c.push.apply(c,d);return a.apply(this,c)}};n.H.nq=function(a,c){return n.H.hj(a,n.H.vb(c))};n.H.On=function(a,c){return function(d){return c?a==d:a===d}};n.H.zn=function(a,c){var d=arguments,e=d.length;return function(){var a;e&&(a=d[e-1].apply(this,arguments));for(var c=e-2;0<=c;c--)a=d[c].call(this,a);return a}};
n.H.hj=function(a){var c=arguments,d=c.length;return function(){for(var a,f=0;f<d;f++)a=c[f].apply(this,arguments);return a}};n.H.Qm=function(a){var c=arguments,d=c.length;return function(){for(var a=0;a<d;a++)if(!c[a].apply(this,arguments))return!1;return!0}};n.H.lp=function(a){var c=arguments,d=c.length;return function(){for(var a=0;a<d;a++)if(c[a].apply(this,arguments))return!0;return!1}};n.H.Li=function(a){return function(){return!a.apply(this,arguments)}};
n.H.create=function(a,c){var d=function(){};d.prototype=a.prototype;d=new d;a.apply(d,Array.prototype.slice.call(arguments,1));return d};n.H.sf=!0;n.H.jn=function(a){var c=!1,d;return function(){if(!n.H.sf)return a();c||(d=a(),c=!0);return d}};n.H.once=function(a){var c=a;return function(){if(c){var a=c;c=null;a()}}};n.H.In=function(a,c,d){var e=0;return function(f){n.global.clearTimeout(e);var g=arguments;e=n.global.setTimeout(function(){a.apply(d,g)},c)}};
n.H.Wp=function(a,c,d){var e=0,f=!1,g=[],h=function(){e=0;f&&(f=!1,k())},k=function(){e=n.global.setTimeout(h,c);a.apply(d,g)};return function(a){g=arguments;e?f=!0:k()}};n.H.up=function(a,c,d){var e=0,f=function(){e=0};return function(g){e||(e=n.global.setTimeout(f,c),a.apply(d,arguments))}};n.G={};n.G.tp=function(a){return Math.floor(Math.random()*a)};n.G.fq=function(a,c){return a+Math.random()*(c-a)};n.G.sn=function(a,c,d){return Math.min(Math.max(a,c),d)};n.G.Se=function(a,c){a%=c;return 0>a*c?a+c:a};n.G.Qo=function(a,c,d){return a+d*(c-a)};n.G.bp=function(a,c,d){return Math.abs(a-c)<=(d||1E-6)};n.G.Yc=function(a){return n.G.Se(a,360)};n.G.Pp=function(a){return n.G.Se(a,2*Math.PI)};n.G.gf=function(a){return a*Math.PI/180};n.G.mj=function(a){return 180*a/Math.PI};
n.G.Sm=function(a,c){return c*Math.cos(n.G.gf(a))};n.G.Tm=function(a,c){return c*Math.sin(n.G.gf(a))};n.G.angle=function(a,c,d,e){return n.G.Yc(n.G.mj(Math.atan2(e-c,d-a)))};n.G.Rm=function(a,c){a=n.G.Yc(c)-n.G.Yc(a);180<a?a-=360:-180>=a&&(a=360+a);return a};n.G.sign=function(a){return 0<a?1:0>a?-1:a};
n.G.Vo=function(a,c,d,e){d=d||function(a,c){return a==c};e=e||function(c){return a[c]};for(var f=a.length,g=c.length,h=[],k=0;k<f+1;k++)h[k]=[],h[k][0]=0;for(var l=0;l<g+1;l++)h[0][l]=0;for(k=1;k<=f;k++)for(l=1;l<=g;l++)d(a[k-1],c[l-1])?h[k][l]=h[k-1][l-1]+1:h[k][l]=Math.max(h[k-1][l],h[k][l-1]);var q=[];k=f;for(l=g;0<k&&0<l;)d(a[k-1],c[l-1])?(q.unshift(e(k-1,l-1)),k--,l--):h[k-1][l]>h[k][l-1]?k--:l--;return q};n.G.ff=function(a){return n.f.reduce(arguments,function(a,d){return a+d},0)};
n.G.Tg=function(a){return n.G.ff.apply(null,arguments)/arguments.length};n.G.Ui=function(a){var c=arguments.length;if(2>c)return 0;var d=n.G.Tg.apply(null,arguments);return n.G.ff.apply(null,n.f.map(arguments,function(a){return Math.pow(a-d,2)}))/(c-1)};n.G.Qp=function(a){return Math.sqrt(n.G.Ui.apply(null,arguments))};n.G.Do=function(a){return isFinite(a)&&0==a%1};n.G.Bo=function(a){return isFinite(a)};n.G.Go=function(a){return 0==a&&0>1/a};
n.G.Uo=function(a){if(0<a){var c=Math.round(Math.log(a)*Math.LOG10E);return c-(parseFloat("1e"+c)>a?1:0)}return 0==a?-Infinity:NaN};n.G.Ep=function(a,c){return Math.floor(a+(c||2E-15))};n.G.Dp=function(a,c){return Math.ceil(a-(c||2E-15))};n.i={};n.i.X="StopIteration"in n.global?n.global.StopIteration:{message:"StopIteration",stack:""};n.i.Iterator=function(){};n.i.Iterator.prototype.b=function(){throw n.i.X;};n.i.Iterator.prototype.tc=function(){return this};n.i.R=function(a){if(a instanceof n.i.Iterator)return a;if("function"==typeof a.tc)return a.tc(!1);if(n.qa(a)){var c=0,d=new n.i.Iterator;d.b=function(){for(;;){if(c>=a.length)throw n.i.X;if(c in a)return a[c++];c++}};return d}throw Error("Not implemented");};
n.i.forEach=function(a,c,d){if(n.qa(a))try{n.f.forEach(a,c,d)}catch(e){if(e!==n.i.X)throw e;}else{a=n.i.R(a);try{for(;;)c.call(d,a.b(),void 0,a)}catch(e){if(e!==n.i.X)throw e;}}};n.i.filter=function(a,c,d){var e=n.i.R(a);a=new n.i.Iterator;a.b=function(){for(;;){var a=e.b();if(c.call(d,a,void 0,e))return a}};return a};n.i.Rn=function(a,c,d){return n.i.filter(a,n.H.Li(c),d)};
n.i.Wb=function(a,c,d){var e=0,f=a,g=d||1;1<arguments.length&&(e=a,f=c);if(0==g)throw Error("Range step argument must not be zero");var h=new n.i.Iterator;h.b=function(){if(0<g&&e>=f||0>g&&e<=f)throw n.i.X;var a=e;e+=g;return a};return h};n.i.join=function(a,c){return n.i.Pa(a).join(c)};n.i.map=function(a,c,d){var e=n.i.R(a);a=new n.i.Iterator;a.b=function(){var a=e.b();return c.call(d,a,void 0,e)};return a};n.i.reduce=function(a,c,d,e){var f=d;n.i.forEach(a,function(a){f=c.call(e,f,a)});return f};
n.i.some=function(a,c,d){a=n.i.R(a);try{for(;;)if(c.call(d,a.b(),void 0,a))return!0}catch(e){if(e!==n.i.X)throw e;}return!1};n.i.every=function(a,c,d){a=n.i.R(a);try{for(;;)if(!c.call(d,a.b(),void 0,a))return!1}catch(e){if(e!==n.i.X)throw e;}return!0};n.i.rn=function(a){return n.i.bh(arguments)};n.i.bh=function(a){var c=n.i.R(a);a=new n.i.Iterator;var d=null;a.b=function(){for(;;){if(null==d){var a=c.b();d=n.i.R(a)}try{return d.b()}catch(f){if(f!==n.i.X)throw f;d=null}}};return a};
n.i.Kn=function(a,c,d){var e=n.i.R(a);a=new n.i.Iterator;var f=!0;a.b=function(){for(;;){var a=e.b();if(!f||!c.call(d,a,void 0,e))return f=!1,a}};return a};n.i.Vp=function(a,c,d){var e=n.i.R(a);a=new n.i.Iterator;a.b=function(){var a=e.b();if(c.call(d,a,void 0,e))return a;throw n.i.X;};return a};n.i.Pa=function(a){if(n.qa(a))return n.f.Pa(a);a=n.i.R(a);var c=[];n.i.forEach(a,function(a){c.push(a)});return c};
n.i.ja=function(a,c,d){a=n.i.yj({},a,c);var e=d||n.f.Xd;return n.i.every(a,function(a){return e(a[0],a[1])})};n.i.Ki=function(a){try{n.i.R(a).b()}catch(c){if(c!=n.i.X)throw c;}};
n.i.product=function(a){if(n.f.some(arguments,function(a){return!a.length})||!arguments.length)return new n.i.Iterator;var c=new n.i.Iterator,d=arguments,e=n.f.repeat(0,d.length);c.b=function(){if(e){for(var a=n.f.map(e,function(a,c){return d[c][a]}),c=e.length-1;0<=c;c--){if(e[c]<d[c].length-1){e[c]++;break}if(0==c){e=null;break}e[c]=0}return a}throw n.i.X;};return c};
n.i.Hn=function(a){var c=n.i.R(a),d=[],e=0;a=new n.i.Iterator;var f=!1;a.b=function(){var a=null;if(!f)try{return a=c.b(),d.push(a),a}catch(h){if(h!=n.i.X||n.f.Bb(d))throw h;f=!0}a=d[e];e=(e+1)%d.length;return a};return a};n.i.count=function(a,c){var d=a||0,e=n.ra(c)?c:1;a=new n.i.Iterator;a.b=function(){var a=d;d+=e;return a};return a};n.i.repeat=function(a){var c=new n.i.Iterator;c.b=n.H.vb(a);return c};n.i.Om=function(a){var c=n.i.R(a),d=0;a=new n.i.Iterator;a.b=function(){return d+=c.b()};return a};
n.i.nf=function(a){var c=arguments,d=new n.i.Iterator;if(0<c.length){var e=n.f.map(c,n.i.R);d.b=function(){return n.f.map(e,function(a){return a.b()})}}return d};n.i.yj=function(a,c){var d=n.f.slice(arguments,1),e=new n.i.Iterator;if(0<d.length){var f=n.f.map(d,n.i.R);e.b=function(){var c=!1,d=n.f.map(f,function(d){try{var e=d.b();c=!0}catch(q){if(q!==n.i.X)throw q;e=a}return e});if(!c)throw n.i.X;return d}}return e};n.i.An=function(a,c){var d=n.i.R(c);return n.i.filter(a,function(){return!!d.b()})};
n.i.lc=function(a,c){this.D=n.i.R(a);this.I=c||n.H.identity};n.Va(n.i.lc,n.i.Iterator);n.i.lc.prototype.b=function(){for(;this.l==this.P;)this.v=this.D.b(),this.l=this.I(this.v);for(var a=this.P=this.l,c=this.P,d=[];this.l==c;){d.push(this.v);try{this.v=this.D.b()}catch(e){if(e!==n.i.X)throw e;break}this.l=this.I(this.v)}return[a,d]};n.i.mo=function(a,c){return new n.i.lc(a,c)};
n.i.Rp=function(a,c,d){var e=n.i.R(a);a=new n.i.Iterator;a.b=function(){var a=n.i.Pa(e.b());return c.apply(d,n.f.concat(a,void 0,e))};return a};n.i.tee=function(a,c){var d=n.i.R(a),e=n.f.map(n.f.Wb(n.Cb(c)?c:2),function(){return[]}),f=function(){var a=d.b();n.f.forEach(e,function(c){c.push(a)})};return n.f.map(e,function(a){var c=new n.i.Iterator;c.b=function(){n.f.Bb(a)&&f();return a.shift()};return c})};n.i.Nn=function(a,c){return n.i.nf(n.i.count(c),a)};
n.i.limit=function(a,c){var d=n.i.R(a);a=new n.i.Iterator;var e=c;a.b=function(){if(0<e--)return d.b();throw n.i.X;};return a};n.i.eh=function(a,c){for(a=n.i.R(a);0<c--;)n.i.Ki(a);return a};n.i.slice=function(a,c,d){a=n.i.eh(a,c);n.Cb(d)&&(a=n.i.limit(a,d-c));return a};n.i.Wh=function(a){var c=[];n.f.Ti(a,c);return a.length!=c.length};n.i.Pi=function(a,c){a=n.i.Pa(a);c=n.f.repeat(a,n.Cb(c)?c:a.length);c=n.i.product.apply(void 0,c);return n.i.filter(c,function(a){return!n.i.Wh(a)})};
n.i.wn=function(a,c){function d(a){return e[a]}var e=n.i.Pa(a);a=n.i.Wb(e.length);c=n.i.Pi(a,c);var f=n.i.filter(c,function(a){return n.f.Ke(a)});c=new n.i.Iterator;c.b=function(){return n.f.map(f.b(),d)};return c};n.i.xn=function(a,c){function d(a){return e[a]}var e=n.i.Pa(a);a=n.f.Wb(e.length);c=n.f.repeat(a,c);c=n.i.product.apply(void 0,c);var f=n.i.filter(c,function(a){return n.f.Ke(a)});c=new n.i.Iterator;c.b=function(){return n.f.map(f.b(),d)};return c};n.M={};n.M.Map=function(a,c){this.W={};this.b=[];this.v=this.l=0;var d=arguments.length;if(1<d){if(d%2)throw Error("Uneven number of arguments");for(var e=0;e<d;e+=2)this.set(arguments[e],arguments[e+1])}else if(a){a instanceof n.M.Map?(d=a.Ua(),e=a.Oa()):(d=n.object.Ua(a),e=n.object.Oa(a));for(var f=0;f<d.length;f++)this.set(d[f],e[f])}};b=n.M.Map.prototype;b.ge=function(){return this.l};b.Oa=function(){w(this);for(var a=[],c=0;c<this.b.length;c++)a.push(this.W[this.b[c]]);return a};
b.Ua=function(){w(this);return this.b.concat()};b.wb=function(a){return n.M.Map.b(this.W,a)};b.Ud=function(a){for(var c=0;c<this.b.length;c++){var d=this.b[c];if(n.M.Map.b(this.W,d)&&this.W[d]==a)return!0}return!1};b.ja=function(a,c){if(this===a)return!0;if(this.l!=a.ge())return!1;c=c||n.M.Map.l;w(this);for(var d,e=0;d=this.b[e];e++)if(!c(this.get(d),a.get(d)))return!1;return!0};n.M.Map.l=function(a,c){return a===c};n.M.Map.prototype.Bb=function(){return 0==this.l};
n.M.Map.prototype.clear=function(){this.W={};this.v=this.l=this.b.length=0};n.M.Map.prototype.remove=function(a){return n.M.Map.b(this.W,a)?(delete this.W[a],this.l--,this.v++,this.b.length>2*this.l&&w(this),!0):!1};var w=function(a){if(a.l!=a.b.length){for(var c=0,d=0;c<a.b.length;){var e=a.b[c];n.M.Map.b(a.W,e)&&(a.b[d++]=e);c++}a.b.length=d}if(a.l!=a.b.length){var f={};for(d=c=0;c<a.b.length;)e=a.b[c],n.M.Map.b(f,e)||(a.b[d++]=e,f[e]=1),c++;a.b.length=d}};b=n.M.Map.prototype;
b.get=function(a,c){return n.M.Map.b(this.W,a)?this.W[a]:c};b.set=function(a,c){n.M.Map.b(this.W,a)||(this.l++,this.b.push(a),this.v++);this.W[a]=c};b.forEach=function(a,c){for(var d=this.Ua(),e=0;e<d.length;e++){var f=d[e],g=this.get(f);a.call(c,g,f,this)}};b.clone=function(){return new n.M.Map(this)};b.oj=function(){for(var a=new n.M.Map,c=0;c<this.b.length;c++){var d=this.b[c];a.set(this.W[d],d)}return a};b.nj=function(){w(this);for(var a={},c=0;c<this.b.length;c++){var d=this.b[c];a[d]=this.W[d]}return a};
b.tc=function(a){w(this);var c=0,d=this.v,e=this,f=new n.i.Iterator;f.b=function(){if(d!=e.v)throw Error("The map has changed since the iterator was created");if(c>=e.b.length)throw n.i.X;var f=e.b[c++];return a?f:e.W[f]};return f};n.M.Map.b=function(a,c){return Object.prototype.hasOwnProperty.call(a,c)};chrome.cast.a.C.Fa=function(a){this.P=a;this.Ba=n.log.ib("chrome.cast.games.internal.GameManagerSession");this.D=null;this.Ya=new n.M.Map;this.b=new n.M.Map;this.v=new n.M.Map;this.l=new n.M.Map;this.Wa=new n.M.Map;this.Aa=this.I=this.Y=null;this.P.addMessageListener(chrome.cast.a.eb,n.bind(this.nb,this))};chrome.cast.a.C.Fa.b=6E4;
chrome.cast.a.C.Fa.prototype.wa=function(){this.P.removeMessageListener(chrome.cast.a.eb,n.bind(this.nb,this));for(var a=this.v.Ua(),c=0;c<a.length;c++)x(this,a[c]);this.I=this.Y=null};
var y=function(a,c,d){var e=new chrome.cast.a.C.wd;e.type=chrome.cast.a.C.ba.ic;if(!e.requestId)throw Error("Missing requestId field from request.");if(!c)throw Error("No success callback provided.");a.D=c;c=n.Xa;d&&(a.b.set(e.requestId,d),c=function(a){d(new chrome.cast.a.rb(chrome.cast.a.Ea.ec,a.description,null,a));x(this,e.requestId)}.bind(a));var f=n.global.setTimeout(n.bind(a.Gb,a,e.requestId),6E4);a.v.set(e.requestId,f);a.l.set(e.requestId,e.type);a.P.sendMessage(chrome.cast.a.eb,e,n.Xa,c)},
z=function(a,c,d,e,f,g){if(d==chrome.cast.a.C.ba.UNKNOWN)throw Error("Cannot send an UNKNOWN game manager request.");if(!c&&d!=chrome.cast.a.C.ba.Dd&&d!=chrome.cast.a.C.ba.ic)throw Error("Missing player ID for game manager request type:"+d);var h=new chrome.cast.a.C.wd;h.type=d;h.playerId=c?c:"";h.playerToken=a.Wa.get(h.playerId,null);h.extraMessageData=e;if(!h.requestId)throw Error("Missing requestId field from request");f&&a.Ya.set(h.requestId,f);c=n.Xa;g&&(a.b.set(h.requestId,g),c=function(a){g(new chrome.cast.a.rb(chrome.cast.a.Ea.ec,
a.description,null,a));x(this,h.requestId)}.bind(a));h.type!=chrome.cast.a.C.ba.GAME_MESSAGE&&(d=n.global.setTimeout(n.bind(a.Gb,a,h.requestId),6E4),a.v.set(h.requestId,d));a.l.set(h.requestId,h.type);a.P.sendMessage(chrome.cast.a.eb,h,n.Xa,c)};chrome.cast.a.C.Fa.prototype.na=function(){return this.Aa};n.w(chrome.cast.a.C.Fa.prototype,"getLastUsedPlayerId",chrome.cast.a.C.Fa.prototype.na);
chrome.cast.a.C.Fa.prototype.nb=function(a,c){if(a!=chrome.cast.a.eb)throw Error("Incoming message has unexpected namespace: "+a);a=JSON.parse(c);c=a.type;if(c!=chrome.cast.a.C.sb.GAME_MANAGER_PROCESSED_RESULT&&c!=chrome.cast.a.C.sb.GAME_MESSAGE)n.log.error(this.Ba,"Ignoring message, type is not GAME_MANAGER_PROCESSED_RESULT or  GAME_MESSAGE Type: "+c);else if(a.gameManagerConfig&&a.gameManagerConfig.version!=chrome.cast.a.qc&&(a.statusCode=chrome.cast.a.C.oa.INCORRECT_VERSION,a.errorDescription=
"Incorrect version of the GameManager SDK. Sender: "+chrome.cast.a.qc+"Receiver: "+a.gameManagerConfig.version),a.statusCode!=chrome.cast.a.C.oa.SUCCESS)if(c=a.requestId,this.b.wb(c)){var d=this.b.get(c),e=new chrome.cast.a.kc(a.playerId,a.requestId,a.extraMessageData),f=chrome.cast.a.C.oa.Bh(a.statusCode);d(new chrome.cast.a.rb(f,a.errorDescription,e,null));x(this,c)}else n.log.info(this.Ba,"Ignoring error message, no callback for request ID: "+c);else{c=a.playerId;d=a.playerToken;c&&d&&this.Wa.set(c,
d);this.Y&&this.Y(a);if(a.requestId)if(this.Aa=c||this.Aa,c=a.requestId,d=this.l.get(c),e=this.Ya.get(a.requestId),x(this,c),d==chrome.cast.a.C.ba.ic){if(!this.D)throw Error("Got a response for a GET_GAME_MANAGER_CONFIG request but no initialization callback was set.");this.D();this.D=null}else e?e(new chrome.cast.a.kc(a.playerId,a.requestId,a.extraMessageData)):n.log.info(this.Ba,"Ignoring message, no callback for request ID: "+c);this.I&&this.I()}};
chrome.cast.a.C.Fa.prototype.Gb=function(a){var c=this.l.get(a);c="Did not receive a response to player request within a time period. request ID="+a+" request type ="+c;if(this.b.wb(a)){var d=this.b.get(a),e=new chrome.cast.Error(chrome.cast.ErrorCode.TIMEOUT,c,null);d(new chrome.cast.a.rb(chrome.cast.a.Ea.ec,c,null,e));x(this,a)}else throw Error(c);};var x=function(a,c){a.Ya.remove(c);a.b.remove(c);var d=a.v.get(c);n.global.clearTimeout(d);a.v.remove(c);a.l.remove(c)};n.debug.V={};n.debug.Jk=function(){};n.debug.V.mb=[];n.debug.V.Rc=[];n.debug.V.Te=!1;n.debug.V.register=function(a){n.debug.V.mb[n.debug.V.mb.length]=a;if(n.debug.V.Te)for(var c=n.debug.V.Rc,d=0;d<c.length;d++)a(n.bind(c[d].b,c[d]))};n.debug.V.Zo=function(a){n.debug.V.Te=!0;for(var c=n.bind(a.b,a),d=0;d<n.debug.V.mb.length;d++)n.debug.V.mb[d](c);n.debug.V.Rc.push(a)};n.debug.V.hq=function(a){var c=n.debug.V.Rc;a=n.bind(a.l,a);for(var d=0;d<n.debug.V.mb.length;d++)n.debug.V.mb[d](a);c.length--};n.lh={};n.lh.Xk=function(){};n.O=function(){0!=n.O.l.OFF&&(n.O.b[n.yb(this)]=this);this.b=this.b;this.l=this.l};n.O.l={OFF:0,sg:1,al:2};n.O.D=0;n.O.v=!0;n.O.b={};n.O.P=function(){var a=[],c;for(c in n.O.b)n.O.b.hasOwnProperty(c)&&a.push(n.O.b[Number(c)]);return a};n.O.I=function(){n.O.b={}};n.O.prototype.b=!1;n.O.prototype.isDisposed=function(){return this.b};
n.O.prototype.wa=function(){if(!this.b&&(this.b=!0,this.wc(),0!=n.O.l.OFF)){var a=n.yb(this);if(0==n.O.l.sg&&!n.O.b.hasOwnProperty(a))throw Error(this+" did not call the goog.Disposable base constructor or was disposed of after a clearUndisposedObjects call");delete n.O.b[a]}};n.O.prototype.wc=function(){if(this.l)for(;this.l.length;)this.l.shift()()};n.O.isDisposed=function(a){return a&&"function"==typeof a.isDisposed?a.isDisposed():!1};n.wa=function(a){a&&"function"==typeof a.wa&&a.wa()};
n.mh=function(a){for(var c=0,d=arguments.length;c<d;++c){var e=arguments[c];n.qa(e)?n.mh.apply(null,e):n.wa(e)}};n.events={};m.scope.Si=function(a){return a()};
n.events.Qa={Uk:!n.userAgent.ha||n.userAgent.Gc(9),mc:!n.userAgent.ha||n.userAgent.Gc(9),Bg:n.userAgent.ha&&!n.userAgent.fa("9"),Tk:!n.userAgent.Sa||n.userAgent.fa("528"),Sk:n.userAgent.Jb&&n.userAgent.fa("1.9b")||n.userAgent.ha&&n.userAgent.fa("8")||n.userAgent.pc&&n.userAgent.fa("9.5")||n.userAgent.Sa&&n.userAgent.fa("528"),Wk:n.userAgent.Jb&&!n.userAgent.fa("8")||n.userAgent.ha&&!n.userAgent.fa("9"),ym:"ontouchstart"in n.global||!!(n.global.document&&document.documentElement&&"ontouchstart"in document.documentElement)||
!(!n.global.navigator||!n.global.navigator.maxTouchPoints&&!n.global.navigator.msMaxTouchPoints),xg:"PointerEvent"in n.global,gg:"MSPointerEvent"in n.global&&!(!n.global.navigator||!n.global.navigator.msPointerEnabled),qg:(0,m.scope.Si)(function(){if(!n.global.addEventListener||!Object.defineProperty)return!1;var a=!1,c=Object.defineProperty({},"passive",{get:function(){a=!0}});n.global.addEventListener("test",n.Xa,c);n.global.removeEventListener("test",n.Xa,c);return a})};n.events.sd=function(a){this.id=a};n.events.sd.prototype.toString=function(){return this.id};n.events.Event=function(a,c){this.type=a instanceof n.events.sd?String(a):a;this.b=this.target=c;this.l=!1;this.cf=!0};n.events.Event.prototype.I=function(){this.l=!0};n.events.Event.prototype.D=function(){this.cf=!1};n.events.Event.l=function(a){a.I()};n.events.Event.b=function(a){a.D()};n.events.Qb=function(a){return n.userAgent.Sa?"webkit"+a:n.userAgent.pc?"o"+a.toLowerCase():a.toLowerCase()};
n.events.L={Rj:"click",bm:"rightclick",ek:"dblclick",Tf:"mousedown",Xf:"mouseup",Cd:"mouseover",Bd:"mouseout",Wf:"mousemove",Uf:"mouseenter",Vf:"mouseleave",hm:"selectionchange",im:"selectstart",Km:"wheel",fl:"keypress",el:"keydown",gl:"keyup",Mj:"blur",Mk:"focus",fk:"deactivate",Nk:n.userAgent.ha?"focusin":"DOMFocusIn",Ok:n.userAgent.ha?"focusout":"DOMFocusOut",Qj:"change",Xl:"reset",gm:"select",qm:"submit",Yk:"input",Tl:"propertychange",zk:"dragstart",uk:"drag",wk:"dragenter",yk:"dragover",xk:"dragleave",
Ak:"drop",vk:"dragend",xm:"touchstart",wm:"touchmove",vm:"touchend",um:"touchcancel",Lj:"beforeunload",Zj:"consolemessage",ak:"contextmenu",gk:"devicemotion",hk:"deviceorientation",nk:"DOMContentLoaded",ERROR:"error",Vk:"help",LOAD:"load",rl:"losecapture",Ll:"orientationchange",Wl:"readystatechange",Yl:"resize",dm:"scroll",Bm:"unload",Nj:"canplay",Oj:"canplaythrough",Bk:"durationchange",Dk:"emptied",Fk:"ended",ll:"loadeddata",ml:"loadedmetadata",PAUSE:"pause",Ql:"play",PLAYING:"playing",Vl:"ratechange",
em:"seeked",fm:"seeking",nm:"stalled",rm:"suspend",tm:"timeupdate",Im:"volumechange",Jm:"waiting",mm:"sourceopen",lm:"sourceended",km:"sourceclosed",zj:"abort",Dm:"update",Gm:"updatestart",Em:"updateend",Rk:"hashchange",Ml:"pagehide",Nl:"pageshow",Rl:"popstate",ck:"copy",Ol:"paste",dk:"cut",Gj:"beforecopy",Hj:"beforecut",Jj:"beforepaste",Kl:"online",Jl:"offline",ul:"message",Yj:"connect",Zk:"install",Aj:"activate",Lk:"fetch",Pk:"foreignfetch",vl:"messageerror",om:"statechange",Fm:"updatefound",bk:"controllerchange",
Ej:n.events.Qb("AnimationStart"),Cj:n.events.Qb("AnimationEnd"),Dj:n.events.Qb("AnimationIteration"),zm:n.events.Qb("TransitionEnd"),Fd:"pointerdown",Ld:"pointerup",Ed:"pointercancel",Id:"pointermove",Kd:"pointerover",Jd:"pointerout",Gd:"pointerenter",Hd:"pointerleave",Qk:"gotpointercapture",sl:"lostpointercapture",yl:"MSGestureChange",zl:"MSGestureEnd",Al:"MSGestureHold",Bl:"MSGestureStart",Cl:"MSGestureTap",Dl:"MSGotPointerCapture",El:"MSInertiaStart",Fl:"MSLostPointerCapture",Yf:"MSPointerCancel",
Zf:"MSPointerDown",ag:"MSPointerEnter",Gl:"MSPointerHover",bg:"MSPointerLeave",cg:"MSPointerMove",dg:"MSPointerOut",eg:"MSPointerOver",fg:"MSPointerUp",TEXT:"text",sm:n.userAgent.ha?"textinput":"textInput",Wj:"compositionstart",Xj:"compositionupdate",Vj:"compositionend",Ij:"beforeinput",Ik:"exit",jl:"loadabort",kl:"loadcommit",nl:"loadredirect",ol:"loadstart",pl:"loadstop",Zl:"responsive",jm:"sizechanged",Cm:"unresponsive",Hm:"visibilitychange",pm:"storage",tk:"DOMSubtreeModified",pk:"DOMNodeInserted",
rk:"DOMNodeRemoved",sk:"DOMNodeRemovedFromDocument",qk:"DOMNodeInsertedIntoDocument",lk:"DOMAttrModified",mk:"DOMCharacterDataModified",Kj:"beforeprint",Bj:"afterprint"};n.events.Na=function(a,c,d){return n.events.Qa.xg?a:n.events.Qa.gg?c:d};
n.events.Ul={Fd:n.events.Na(n.events.L.Fd,n.events.L.Zf,n.events.L.Tf),Ld:n.events.Na(n.events.L.Ld,n.events.L.fg,n.events.L.Xf),Ed:n.events.Na(n.events.L.Ed,n.events.L.Yf,"mousecancel"),Id:n.events.Na(n.events.L.Id,n.events.L.cg,n.events.L.Wf),Kd:n.events.Na(n.events.L.Kd,n.events.L.eg,n.events.L.Cd),Jd:n.events.Na(n.events.L.Jd,n.events.L.dg,n.events.L.Bd),Gd:n.events.Na(n.events.L.Gd,n.events.L.ag,n.events.L.Uf),Hd:n.events.Na(n.events.L.Hd,n.events.L.bg,n.events.L.Vf)};n.events.S=function(a,c){n.events.Event.call(this,a?a.type:"");this.relatedTarget=this.b=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.pointerId=0;this.pointerType="";this.v=null;a&&this.init(a,c)};n.Va(n.events.S,n.events.Event);n.events.S.P={hl:0,wl:1,am:2};n.events.S.b={Sf:"mouse",rg:"pen",Eg:"touch"};n.events.S.l=n.debug.freeze([1,4,2]);n.events.S.I=n.events.S.l;
n.events.S.v=n.debug.freeze({2:n.events.S.b.Eg,3:n.events.S.b.rg,4:n.events.S.b.Sf});
n.events.S.prototype.init=function(a,c){var d=this.type=a.type,e=a.changedTouches?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.b=c;(c=a.relatedTarget)?n.userAgent.Jb&&(n.sa.Zg(c)||(c=null)):d==n.events.L.Cd?c=a.fromElement:d==n.events.L.Bd&&(c=a.toElement);this.relatedTarget=c;n.Ie(e)?(this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:
e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0);this.button=a.button;this.key=a.key||"";this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType=n.events.S.D(a);this.v=a;a.defaultPrevented&&this.D()};n.events.S.prototype.I=function(){n.events.S.bb.I.call(this);this.v.stopPropagation?this.v.stopPropagation():this.v.cancelBubble=!0};
n.events.S.prototype.D=function(){n.events.S.bb.D.call(this);var a=this.v;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,n.events.Qa.Bg)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(c){}};n.events.S.D=function(a){return n.K(a.pointerType)?a.pointerType:n.events.S.v[a.pointerType]||""};n.events.Z=function(){};n.events.Z.l="closure_listenable_"+(1E6*Math.random()|0);n.events.Z.v=function(){n.events.EventTarget.prototype[n.events.Z.l]=!0};n.events.Z.b=function(a){return!(!a||!a[n.events.Z.l])};n.events.Kb=function(){};n.events.Kb.b=0;n.events.Kb.l=function(){return++n.events.Kb.b};n.events.Listener=function(a,c,d,e,f,g){this.listener=a;this.proxy=c;this.src=d;this.type=e;this.capture=!!f;this.Rb=g;this.key=n.events.Kb.l();this.removed=this.Mb=!1};n.events.Listener.b=!1;var A=function(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.Rb=null};n.events.da=function(a){this.src=a;this.b={};this.l=0};n.events.da.prototype.add=function(a,c,d,e,f){var g=a.toString();a=this.b[g];a||(a=this.b[g]=[],this.l++);var h=n.events.da.b(a,c,e,f);-1<h?(c=a[h],d||(c.Mb=!1)):(c=new n.events.Listener(c,null,this.src,g,!!e,f),c.Mb=d,a.push(c));return c};
n.events.da.prototype.remove=function(a,c,d,e){a=a.toString();if(!(a in this.b))return!1;var f=this.b[a];c=n.events.da.b(f,c,d,e);return-1<c?(A(f[c]),n.f.Za(f,c),0==f.length&&(delete this.b[a],this.l--),!0):!1};var B=function(a,c){var d=c.type;if(!(d in a.b))return!1;var e=n.f.remove(a.b[d],c);e&&(A(c),0==a.b[d].length&&(delete a.b[d],a.l--));return e};
n.events.da.prototype.removeAll=function(a){a=a&&a.toString();var c=0,d;for(d in this.b)if(!a||d==a){for(var e=this.b[d],f=0;f<e.length;f++)++c,A(e[f]);delete this.b[d];this.l--}return c};n.events.da.prototype.xb=function(a,c){a=this.b[a.toString()];var d=[];if(a)for(var e=0;e<a.length;++e){var f=a[e];f.capture==c&&d.push(f)}return d};n.events.da.prototype.hb=function(a,c,d,e){a=this.b[a.toString()];var f=-1;a&&(f=n.events.da.b(a,c,d,e));return-1<f?a[f]:null};
n.events.da.prototype.hasListener=function(a,c){var d=n.ra(a),e=d?a.toString():"",f=n.ra(c);return n.object.some(this.b,function(a){for(var g=0;g<a.length;++g)if(!(d&&a[g].type!=e||f&&a[g].capture!=c))return!0;return!1})};n.events.da.b=function(a,c,d,e){for(var f=0;f<a.length;++f){var g=a[f];if(!g.removed&&g.listener==c&&g.capture==!!d&&g.Rb==e)return f}return-1};n.events.nc="closure_lm_"+(1E6*Math.random()|0);n.events.Mi="on";n.events.Sc={};n.events.fc={kg:0,lg:1,mg:2};n.events.dc=2;n.events.Kc=0;n.events.listen=function(a,c,d,e,f){if(e&&e.once)return n.events.Ub(a,c,d,e,f);if(n.isArray(c)){for(var g=0;g<c.length;g++)n.events.listen(a,c[g],d,e,f);return null}d=n.events.Yb(d);return n.events.Z.b(a)?a.listen(c,d,n.za(e)?!!e.capture:!!e,f):n.events.Oe(a,c,d,!1,e,f)};
n.events.Oe=function(a,c,d,e,f,g){if(!c)throw Error("Invalid event type");var h=n.za(f)?!!f.capture:!!f;if(h&&!n.events.Qa.mc){if(n.events.dc==n.events.fc.kg)return n.j.Pb("Can not register capture listener in IE8-."),null;if(n.events.dc==n.events.fc.lg)return null}var k=n.events.Ma(a);k||(a[n.events.nc]=k=new n.events.da(a));d=k.add(c,d,e,h,g);if(d.proxy)return d;e=n.events.Ph();d.proxy=e;e.src=a;e.listener=d;if(a.addEventListener)n.events.Qa.qg||(f=h),void 0===f&&(f=!1),a.addEventListener(c.toString(),
e,f);else if(a.attachEvent)a.attachEvent(n.events.oe(c.toString()),e);else throw Error("addEventListener and attachEvent are unavailable.");n.events.Kc++;return d};n.events.Ph=function(){var a=n.events.Ab,c=n.events.Qa.mc?function(d){return a.call(c.src,c.listener,d)}:function(d){d=a.call(c.src,c.listener,d);if(!d)return d};return c};
n.events.Ub=function(a,c,d,e,f){if(n.isArray(c)){for(var g=0;g<c.length;g++)n.events.Ub(a,c[g],d,e,f);return null}d=n.events.Yb(d);return n.events.Z.b(a)?a.Ub(c,d,n.za(e)?!!e.capture:!!e,f):n.events.Oe(a,c,d,!0,e,f)};n.events.Ro=function(a,c,d,e,f){c.listen(a,d,e,f)};
n.events.ob=function(a,c,d,e,f){if(n.isArray(c)){for(var g=0;g<c.length;g++)n.events.ob(a,c[g],d,e,f);return null}e=n.za(e)?!!e.capture:!!e;d=n.events.Yb(d);if(n.events.Z.b(a))return a.ob(c,d,e,f);if(!a)return!1;if(a=n.events.Ma(a))if(c=a.hb(c,d,e,f))return n.events.pb(c);return!1};
n.events.pb=function(a){if(n.Cb(a)||!a||a.removed)return!1;var c=a.src;if(n.events.Z.b(c))return c.pb(a);var d=a.type,e=a.proxy;c.removeEventListener?c.removeEventListener(d,e,a.capture):c.detachEvent&&c.detachEvent(n.events.oe(d),e);n.events.Kc--;(d=n.events.Ma(c))?(B(d,a),0==d.l&&(d.src=null,c[n.events.nc]=null)):A(a);return!0};n.events.gq=function(a,c,d,e,f){c.ob(a,d,e,f)};
n.events.removeAll=function(a,c){if(!a)return 0;if(n.events.Z.b(a))return a.ka?a.ka.removeAll(c):0;a=n.events.Ma(a);if(!a)return 0;var d=0;c=c&&c.toString();for(var e in a.b)if(!c||e==c)for(var f=a.b[e].concat(),g=0;g<f.length;++g)n.events.pb(f[g])&&++d;return d};n.events.xb=function(a,c,d){return n.events.Z.b(a)?a.xb(c,d):a?(a=n.events.Ma(a))?a.xb(c,d):[]:[]};n.events.hb=function(a,c,d,e,f){d=n.events.Yb(d);e=!!e;return n.events.Z.b(a)?a.hb(c,d,e,f):a?(a=n.events.Ma(a))?a.hb(c,d,e,f):null:null};
n.events.hasListener=function(a,c,d){if(n.events.Z.b(a))return a.hasListener(c,d);a=n.events.Ma(a);return!!a&&a.hasListener(c,d)};n.events.nh=function(a){var c=[],d;for(d in a)a[d]&&a[d].id?c.push(d+" = "+a[d]+" ("+a[d].id+")"):c.push(d+" = "+a[d]);return c.join("\n")};n.events.oe=function(a){return a in n.events.Sc?n.events.Sc[a]:n.events.Sc[a]=n.events.Mi+a};n.events.fb=function(a,c,d,e){return n.events.Z.b(a)?a.fb(c,d,e):n.events.Bc(a,c,d,e)};
n.events.Bc=function(a,c,d,e){var f=!0;if(a=n.events.Ma(a))if(c=a.b[c.toString()])for(c=c.concat(),a=0;a<c.length;a++){var g=c[a];g&&g.capture==d&&!g.removed&&(g=n.events.Ac(g,e),f=f&&!1!==g)}return f};n.events.Ac=function(a,c){var d=a.listener,e=a.Rb||a.src;a.Mb&&n.events.pb(a);return d.call(e,c)};n.events.io=function(){return n.events.Kc};n.events.dispatchEvent=function(a,c){return a.dispatchEvent(c)};n.events.pp=function(a){n.events.Ab=a.qp(n.events.Ab)};
n.events.Ab=function(a,c){if(a.removed)return!0;if(!n.events.Qa.mc){var d=c||n.ne("window.event");c=new n.events.S(d,this);var e=!0;if(n.events.dc==n.events.fc.mg){if(!n.events.pi(d)){n.events.Ci(d);d=[];for(var f=c.b;f;f=f.parentNode)d.push(f);a=a.type;for(f=d.length-1;!c.l&&0<=f;f--){c.b=d[f];var g=n.events.Bc(d[f],a,!0,c);e=e&&g}for(f=0;!c.l&&f<d.length;f++)c.b=d[f],g=n.events.Bc(d[f],a,!1,c),e=e&&g}}else e=n.events.Ac(a,c);return e}return n.events.Ac(a,new n.events.S(c,this))};
n.events.Ci=function(a){var c=!1;if(0==a.keyCode)try{a.keyCode=-1;return}catch(d){c=!0}if(c||void 0==a.returnValue)a.returnValue=!0};n.events.pi=function(a){return 0>a.keyCode||void 0!=a.returnValue};n.events.rj=0;n.events.jo=function(a){return a+"_"+n.events.rj++};n.events.Ma=function(a){a=a[n.events.nc];return a instanceof n.events.da?a:null};n.events.oc="__closure_events_fn_"+(1E9*Math.random()>>>0);
n.events.Yb=function(a){if(n.ya(a))return a;a[n.events.oc]||(a[n.events.oc]=function(c){return a.handleEvent(c)});return a[n.events.oc]};n.debug.V.register(function(a){n.events.Ab=a(n.events.Ab)});n.events.EventTarget=function(){n.O.call(this);this.ka=new n.events.da(this);this.D=this;this.v=null};n.Va(n.events.EventTarget,n.O);n.events.Z.v();n.events.EventTarget.l=1E3;b=n.events.EventTarget.prototype;b.addEventListener=function(a,c,d,e){n.events.listen(this,a,c,d,e)};b.removeEventListener=function(a,c,d,e){n.events.ob(this,a,c,d,e)};b.dispatchEvent=function(a){var c,d=this.v;if(d)for(c=[];d;d=d.v)c.push(d);return n.events.EventTarget.b(this.D,a,c)};
b.wc=function(){n.events.EventTarget.bb.wc.call(this);this.ka&&this.ka.removeAll(void 0);this.v=null};b.listen=function(a,c,d,e){return this.ka.add(String(a),c,!1,d,e)};b.Ub=function(a,c,d,e){return this.ka.add(String(a),c,!0,d,e)};b.ob=function(a,c,d,e){return this.ka.remove(String(a),c,d,e)};b.pb=function(a){return B(this.ka,a)};
b.fb=function(a,c,d){a=this.ka.b[String(a)];if(!a)return!0;a=a.concat();for(var e=!0,f=0;f<a.length;++f){var g=a[f];if(g&&!g.removed&&g.capture==c){var h=g.listener,k=g.Rb||g.src;g.Mb&&this.pb(g);e=!1!==h.call(k,d)&&e}}return e&&0!=d.cf};b.xb=function(a,c){return this.ka.xb(String(a),c)};b.hb=function(a,c,d,e){return this.ka.hb(String(a),c,d,e)};b.hasListener=function(a,c){return this.ka.hasListener(n.ra(a)?String(a):void 0,c)};
n.events.EventTarget.b=function(a,c,d){var e=c.type||c;if(n.K(c))c=new n.events.Event(c,a);else if(c instanceof n.events.Event)c.target=c.target||a;else{var f=c;c=new n.events.Event(e,a);n.object.extend(c,f)}f=!0;if(d)for(var g=d.length-1;!c.l&&0<=g;g--){var h=c.b=d[g];f=h.fb(e,!0,c)&&f}c.l||(h=c.b=a,f=h.fb(e,!0,c)&&f,c.l||(f=h.fb(e,!1,c)&&f));if(d)for(g=0;!c.l&&g<d.length;g++)h=c.b=d[g],f=h.fb(e,!1,c)&&f;return f};n.Vc("goog.testing.stacktrace");n.h={};n.h.m={};n.h.m.cb=function(a,c,d,e){this.l=a;this.b=c;this.v=d;this.D=e};var C=function(a){return!a.b||"[object Object]"==a.l},D=function(a){var c=n.h.m.fi,d=n.h.m.Ii;d=[a.l?c(a.l)+".":"",a.b?c(d(a.b)):"anonymous",a.v?" [as "+c(d(a.v))+"]":""];a.D&&(d.push(" at "),d.push(c(a.D)));return d.join("")};n.h.m.Qf=20;n.h.m.Rf=5E5;n.h.m.ca="[a-zA-Z_$][\\w$]*";n.h.m.Jg="(?: \\[as ("+n.h.m.ca+")\\])?";
n.h.m.Kg="(?:((?:new )?(?:\\[object Object\\]|"+n.h.m.ca+"(?:\\."+n.h.m.ca+")*))\\.)?";n.h.m.Mg="(?:new )?(?:"+n.h.m.ca+"|<anonymous>)";n.h.m.Lg=" "+n.h.m.Kg+"("+n.h.m.Mg+")"+n.h.m.Jg;n.h.m.sc="((?:http|https|file)://[^\\s)]+|javascript:.*)";n.h.m.tf=" (?:\\(unknown source\\)|\\(native\\)|\\((.+)\\)|(.+))";n.h.m.Ng=new RegExp("^    at(?:"+n.h.m.Lg+")?"+n.h.m.tf+"$");n.h.m.Bf="("+n.h.m.ca+"(?:\\."+n.h.m.ca+")*)?(\\(.*\\))?@";n.h.m.Cf=new RegExp("^"+n.h.m.Bf+"(?::0|"+n.h.m.sc+")$");
n.h.m.ng="<anonymous function(?:\\: (?:("+n.h.m.ca+"(?:\\."+n.h.m.ca+")*)\\.)?("+n.h.m.ca+"))?>";n.h.m.og="(?:(?:("+n.h.m.ca+")|"+n.h.m.ng+")(\\(.*\\)))?@";n.h.m.pg=new RegExp("^"+n.h.m.og+n.h.m.sc+"?$");n.h.m.Ef=new RegExp("^function ("+n.h.m.ca+")");n.h.m.Lf="("+n.h.m.ca+"(?:\\."+n.h.m.ca+")*(?:\\s+\\w+)*)";n.h.m.Mf=new RegExp("^   at "+n.h.m.Lf+"\\s*\\((eval code:[^)]*|Unknown script code:[^)]*|"+n.h.m.sc+")\\)?$");
n.h.m.th=function(){for(var a=[],c=arguments.callee.caller,d=0;c&&d<n.h.m.Qf;){var e=Function.prototype.toString.call(c).match(n.h.m.Ef);a.push(new n.h.m.cb("",e?e[1]:"","",""));try{c=c.caller}catch(f){break}d++}return a};
n.h.m.Ni=function(a){var c=a.match(n.h.m.Ng);return c?new n.h.m.cb(c[1]||"",c[2]||"",c[3]||"",c[4]||c[5]||c[6]||""):a.length>n.h.m.Rf?null:(c=a.match(n.h.m.Cf))?new n.h.m.cb("",c[1]||"","",c[3]||""):(c=a.match(n.h.m.pg))?new n.h.m.cb(c[2]||"",c[1]||c[3]||"","",c[5]||""):(c=a.match(n.h.m.Mf))?new n.h.m.cb("",c[1]||"","",c[2]||""):null};n.h.m.ij=function(a){n.h.m.Yd=a};n.h.m.Ii=function(a){return n.h.m.Yd?n.h.m.Yd(a):a};
n.h.m.fi=function(a){return a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")};n.h.m.fe=function(a){for(var c=a.length-1;a[c]&&C(a[c]);)c--;for(var d=-1,e=0;e<a.length;e++)if(a[e]&&"_assert"==a[e].b){d=e;break}var f=[];for(e=d+1;e<=c;e++)f.push("> "),a[e]?f.push(D(a[e])):f.push("(unknown)"),f.push("\n");return f.join("")};n.h.m.Ye=function(a){a=a.replace(/\s*$/,"").split("\n");for(var c=[],d=0;d<a.length;d++)c.push(n.h.m.Ni(a[d]));return c};
n.h.m.kn=function(a){a=n.h.m.Ye(a);return n.h.m.fe(a)};n.h.m.Jh=function(){var a=Error();if(a.stack)return a.stack;try{null.x()}catch(c){return c.stack}return""};n.h.m.get=function(){var a=n.h.m.Jh(),c;a?n.isArray(a)?c=n.h.m.Xg(a):c=n.h.m.Ye(a):c=n.h.m.th();return n.h.m.fe(c)};n.h.m.Xg=function(a){for(var c=[],d=0;d<a.length;d++){var e=a[d],f=e.getFunctionName()||"unknown",g=e.getFileName();e=g?g+":"+e.getLineNumber()+":"+e.getColumnNumber():"unknown";c.push(new n.h.m.cb("",f,"",e))}return c};
n.F("setDeobfuscateFunctionName",n.h.m.ij);n.Vc();n.h.tb=function(a,c){this.mi=!0;this.message=(a?a:"")+(a&&c?"\n":"")+(c?c:"");n.h.m.get();this.comment=a||null;Error.captureStackTrace?Error.captureStackTrace(this,n.h.tb):this.stack=Error().stack||""};n.Va(n.h.tb,Error);n.h.tb.prototype.toString=function(){return this.message};n.h.j={};n.Vc();var E=function(a,c){return a==c},F=function(a,c){return a.toString()===c.toString()},G={String:E,Number:E,Boolean:E,Date:function(a,c){return a.getTime()==c.getTime()},RegExp:F,Function:F};n.h.j.We=function(a,c,d){return Math.abs(a-c)<=d};n.h.j.Qi={Number:n.h.j.We};
var _trueTypeOf=function(a){var c=typeof a;try{switch(c){case "object":if(null==a){c="null";break}case "function":switch(a.constructor){case (new String("")).constructor:c="String";break;case (new Boolean(!0)).constructor:c="Boolean";break;case (new Number(0)).constructor:c="Number";break;case [].constructor:c="Array";break;case RegExp().constructor:c="RegExp";break;case (new Date).constructor:c="Date";break;case Function:c="Function";break;default:var d=a.constructor.toString().match(/function\s*([^( ]+)\(/);
d&&(c=d[1])}}}catch(e){}finally{c=c.substr(0,1).toUpperCase()+c.substr(1)}return c},_displayStringForValue=function(a){try{var c="<"+String(a)+">"}catch(d){c="<toString failed: "+d.message+">"}null!==a&&void 0!==a&&(c+=" ("+_trueTypeOf(a)+")");return c},H=function(a){n.h.j.Eb("Call to fail()",a)},I=function(a,c){return c.length==a+1?c[0]:null},J=function(a,c,d){return d.length==c+1?d[a]:d[a-1]},_validateArguments=function(a,c){_assert(null,c.length==a||c.length==a+1&&n.K(c[0]),"Incorrect arguments passed to assert function")},
_getCurrentTestCase=function(){return n.h.Gg?n.h.Gg.Vn():(n.global.console&&n.global.console.error("Missing goog.testing.TestCase, add /* @suppress {extraRequire} */goog.require('goog.testing.TestCase'"),null)},_assert=function(a,c,d){c||n.h.j.Eb(a,d)};
n.h.j.La=function(a,c){var d=_displayStringForValue(a),e=_displayStringForValue(c);d=["Expected",d,"but was",e].join(40<d.length||40<e.length?"\n":" ");if("string"==typeof a&&"string"==typeof c){e=Math.min(a.length,c.length);for(var f=0;f<e&&a.charAt(f)==c.charAt(f);)f++;for(var g=0;g<e&&a.charAt(a.length-g-1)==c.charAt(c.length-g-1);)g++;f+g>e&&(g=0);if(2<f||2<g)e=function(a){var c=Math.max(0,f-2),d=Math.min(a.length,a.length-(g-2));return(0<c?"...":"")+a.substring(c,d)+(d<a.length?"...":"")},a=
e(a),c=e(c),d+="\nDifference was at position "+f+". "+["Expected","["+a+"]","vs. actual","["+c+"]"].join(40<a.length||40<c.length?"\n":" ")}return d};
var K=function(a,c){_validateArguments(1,arguments);var d=I(1,arguments),e=J(1,1,arguments);_assert(d,n.Sb(e),"Bad argument to assert(boolean)");_assert(d,e,"Call to assert(boolean) with false")},L=function(a,c){_validateArguments(1,arguments);var d=I(1,arguments),e=J(1,1,arguments);_assert(d,n.Sb(e),"Bad argument to assertTrue(boolean)");_assert(d,e,"Call to assertTrue(boolean) with false")},M=function(a,c,d){_validateArguments(2,arguments);var e=J(1,2,arguments),f=J(2,2,arguments);_assert(I(2,arguments),
e===f,n.h.j.La(e,f))},N=function(a,c){_validateArguments(1,arguments);_assert(I(1,arguments),null!==J(1,1,arguments),"Expected not to be "+_displayStringForValue(null))},O=function(a,c){_validateArguments(1,arguments);_assert(I(1,arguments),void 0!==J(1,1,arguments),"Expected not to be "+_displayStringForValue(void 0))};n.h.j.Yg=function(a){var c=n.global.G_testRunner,d=c.logTestFailure;try{c.logTestFailure=void 0,a()}finally{c.logTestFailure=d}};n.h.j.gc=null;n.h.j.hc="";
n.h.j.Ta=function(a,c,d){function e(a,c,d){for(var e=0;e<h.length;++e){var q=h[e]===a,l=k[e]===c;if(q||l){q&&l||g.push("Asymmetric cycle detected at "+d);return}}h.push(a);k.push(c);f(a,c,d);h.pop();k.pop()}function f(a,c,d){if(a!==c){var f=_trueTypeOf(a),h=_trueTypeOf(c);if(f==h){var k="Array"==f,q=l(f,a,c);if(q!=n.h.j.gc)q!=n.h.j.hc&&g.push(d+": "+q);else if(k&&a.length!=c.length)g.push(d+": Expected "+a.length+"-element array but got a "+c.length+"-element array");else if("String"==f)a!=c&&g.push(d+
': Expected String "'+a+'" but got "'+c+'"');else{var u=d+(k?"[%s]":d?".%s":"%s");if("undefined"!=typeof Map&&a instanceof Map||"undefined"!=typeof Set&&a instanceof Set)a.forEach(function(a,f){c.has(f)?c.get&&e(a,c.get(f),u.replace("%s",f)):g.push(f+" not present in actual "+(d||h))}),c.forEach(function(c,e){a.has(e)||g.push(e+" not present in expected "+(d||f))});else if(a.__iterator__)n.ya(a.ja)?a.ja(c)||g.push("equals() returned false for "+(d||f)):a.W?e(a.W,c.W,u.replace("%s","map_")):g.push("unable to check "+
(d||f)+" for equality: it has an iterator we do not know how to handle. please add an equals method");else{for(var r in a)k&&n.h.j.ye(r)||(r in c?e(a[r],c[r],u.replace("%s",r)):g.push("property "+r+" not present in actual "+(d||h)));for(r in c)k&&n.h.j.ye(r)||r in a||g.push("property "+r+" not present in expected "+(d||f));if(k)for(r=0;r<a.length;r++)e(a[r],c[r],u.replace("%s",String(r)))}}}else g.push(d+" "+n.h.j.La(a,c))}}var g=[],h=[],k=[],l=d||function(a,c,d){return(a=G[a])?a(c,d)?n.h.j.hc:n.h.j.La(c,
d):n.h.j.gc};e(a,c,"");return 0==g.length?null:n.h.j.La(a,c)+"\n   "+g.join("\n   ")};var P=function(a,c,d){_validateArguments(2,arguments);var e=I(2,arguments)?I(2,arguments):"",f=n.h.j.Ta(J(1,2,arguments),J(2,2,arguments));_assert(e,!f,f)},R=function(a,c,d,e){_validateArguments(3,arguments);var f=J(1,3,arguments),g=J(2,3,arguments),h=J(3,3,arguments);_assert(I(3,arguments),n.h.j.We(f,g,h),"Expected "+f+", but got "+g+" which was more than "+h+" away")};
n.h.j.Zc=function(a){for(var c=[],d=0;d<a.length;d++)c[d]=a[d];return c};n.h.j.ue=function(a,c){if(a.indexOf)return a.indexOf(c);for(var d=0;d<a.length;d++)if(a[d]===c)return d;return-1};n.h.j.Vd=function(a,c){return-1!=n.h.j.ue(a,c)};var S=function(a){var c=document.createElement("DIV");c.innerHTML=a;return c.innerHTML.replace(/^\s+|\s+$/g,"")};
n.h.j.Eb=function(a,c){a=new n.h.tb(a,c);if(c=_getCurrentTestCase())c.sp(a);else throw n.global.console.error("Failed to save thrown exception: no test case is installed."),a;};n.h.j.ye=function(a){return(a|0)==a};n.F("fail",H);n.F("assert",K);
n.F("assertThrows",function(a,c){_validateArguments(1,arguments);var d=J(1,1,arguments),e=I(1,arguments);_assert(e,"function"==typeof d,"Argument passed to assertThrows is not a function");try{d()}catch(f){return f&&n.K(f.stacktrace)&&n.K(f.message)&&(d=f.message.length-f.stacktrace.length,f.message.indexOf(f.stacktrace,d)==d&&(f.message=f.message.substr(0,d-14))),d=_getCurrentTestCase(),f&&f.isJsUnitException&&d&&d.Qn&&n.h.j.Eb(e,"Function passed to assertThrows caught a JsUnitException (usually from an assert or call to fail()). If this is expected, use assertThrowsJsUnitException instead."),
f}n.h.j.Eb(e,"No exception thrown from function passed to assertThrows")});n.F("assertNotThrows",function(a,c){_validateArguments(1,arguments);var d=I(1,arguments),e=J(1,1,arguments);_assert(d,"function"==typeof e,"Argument passed to assertNotThrows is not a function");try{return e()}catch(f){n.h.j.Eb((d?d+"\n":"")+"A non expected exception was thrown from function passed to assertNotThrows",f.stack||f.stacktrace||f.toString())}});
n.F("assertThrowsJsUnitException",function(a,c){try{n.h.j.Yg(a)}catch(d){return(a=_getCurrentTestCase())?a.qo(d):n.global.console.error("Failed to remove expected exception: no test case is installed."),d.mi||H("Expected a JsUnitException"),"undefined"!=typeof c&&d.message!=c&&H("Expected message ["+c+"] but got ["+d.message+"]"),d}a="Expected a failure";"undefined"!=typeof c&&(a+=": "+c);throw new n.h.tb(a);});n.F("assertTrue",L);
n.F("assertFalse",function(a,c){_validateArguments(1,arguments);var d=I(1,arguments),e=J(1,1,arguments);_assert(d,n.Sb(e),"Bad argument to assertFalse(boolean)");_assert(d,!e,"Call to assertFalse(boolean) with true")});n.F("assertEquals",M);n.F("assertNotEquals",function(a,c,d){_validateArguments(2,arguments);var e=J(2,2,arguments);_assert(I(2,arguments),J(1,2,arguments)!==e,"Expected not to be "+_displayStringForValue(e))});
n.F("assertNull",function(a,c){_validateArguments(1,arguments);var d=J(1,1,arguments);_assert(I(1,arguments),null===d,n.h.j.La(null,d))});n.F("assertNotNull",N);n.F("assertUndefined",function(a,c){_validateArguments(1,arguments);var d=J(1,1,arguments);_assert(I(1,arguments),void 0===d,n.h.j.La(void 0,d))});n.F("assertNotUndefined",O);n.F("assertNotNullNorUndefined",function(a,c){_validateArguments(1,arguments);N.apply(null,arguments);O.apply(null,arguments)});
n.F("assertNonEmptyString",function(a,c){_validateArguments(1,arguments);var d=J(1,1,arguments);_assert(I(1,arguments),void 0!==d&&null!==d&&"string"==typeof d&&""!==d,"Expected non-empty string but was "+_displayStringForValue(d))});n.F("assertNaN",function(a,c){_validateArguments(1,arguments);_assert(I(1,arguments),isNaN(J(1,1,arguments)),"Expected NaN")});n.F("assertNotNaN",function(a,c){_validateArguments(1,arguments);_assert(I(1,arguments),!isNaN(J(1,1,arguments)),"Expected not NaN")});
n.F("assertObjectEquals",P);n.F("assertObjectRoughlyEquals",function(a,c,d,e){_validateArguments(3,arguments);var f=J(3,3,arguments),g=I(3,arguments)?I(3,arguments):"",h=n.h.j.Ta(J(1,3,arguments),J(2,3,arguments),function(a,c,d){return(a=n.h.j.Qi[a])?a(c,d,f)?n.h.j.hc:n.h.j.La(c,d)+" which was more than "+f+" away":n.h.j.gc});_assert(g,!h,h)});
n.F("assertObjectNotEquals",function(a,c,d){_validateArguments(2,arguments);var e=I(2,arguments)?I(2,arguments):"",f=n.h.j.Ta(J(1,2,arguments),J(2,2,arguments));_assert(e,f,"Objects should not be equal")});
n.F("assertArrayEquals",function(a,c,d){_validateArguments(2,arguments);var e=J(1,2,arguments),f=J(2,2,arguments),g=I(2,arguments)?I(2,arguments):"",h=_trueTypeOf(e);_assert(g,"Array"==h,"Expected an array for assertArrayEquals but found a "+h);h=_trueTypeOf(f);_assert(g,"Array"==h,"Expected an array for assertArrayEquals but found a "+h);P(g,Array.prototype.concat.call(e),Array.prototype.concat.call(f))});
n.F("assertElementsEquals",function(a,c,d){_validateArguments(2,arguments);var e=J(1,2,arguments),f=J(2,2,arguments),g=I(2,arguments)?I(2,arguments):"";if(e){M("length mismatch: "+g,e.length,f.length);for(var h=0;h<e.length;++h)M("mismatch at index "+h+": "+g,e[h],f[h])}else K(g,!f)});
n.F("assertElementsRoughlyEqual",function(a,c,d,e){_validateArguments(3,arguments);var f=J(1,3,arguments),g=J(2,3,arguments),h=J(3,3,arguments),k=I(3,arguments)?I(3,arguments):"";if(f){M("length mismatch: "+k,f.length,g.length);for(var l=0;l<f.length;++l)R(k,f[l],g[l],h)}else K(k,!g)});
n.F("assertSameElements",function(a,c,d){_validateArguments(2,arguments);var e=J(1,2,arguments),f=J(2,2,arguments),g=I(2,arguments);L("Bad arguments to assertSameElements(opt_message, expected: ArrayLike, actual: ArrayLike)",n.qa(e)&&n.qa(f));e=n.h.j.Zc(e);f=n.h.j.Zc(f);_assert(g,e.length==f.length,"Expected "+e.length+" elements: ["+e+"], got "+f.length+" elements: ["+f+"]");for(var h=n.h.j.Zc(e),k=0;k<f.length;k++){var l=n.h.j.ue(h,f[k]);_assert(g,-1!=l,"Expected ["+e+"], got ["+f+"]");h.splice(l,
1)}});n.F("assertEvaluatesToTrue",function(a,c){_validateArguments(1,arguments);J(1,1,arguments)||_assert(I(1,arguments),!1,"Expected to evaluate to true")});n.F("assertEvaluatesToFalse",function(a,c){_validateArguments(1,arguments);J(1,1,arguments)&&_assert(I(1,arguments),!1,"Expected to evaluate to false")});n.F("assertHTMLEquals",function(a,c,d){_validateArguments(2,arguments);var e=J(2,2,arguments),f=S(J(1,2,arguments));e=S(e);_assert(I(2,arguments),f===e,n.h.j.La(f,e))});
n.F("assertHashEquals",function(a,c,d){_validateArguments(2,arguments);var e=J(1,2,arguments),f=J(2,2,arguments),g=I(2,arguments),h;for(h in e)_assert(g,h in f,"Expected hash had key "+h+" that was not found"),_assert(g,e[h]==f[h],"Value for key "+h+" mismatch - expected = "+e[h]+", actual = "+f[h]);for(h in f)_assert(g,h in e,"Actual hash had key "+h+" that was not expected")});n.F("assertRoughlyEquals",R);
n.F("assertContains",function(a,c,d){_validateArguments(2,arguments);var e=J(1,2,arguments),f=J(2,2,arguments);_assert(I(2,arguments),n.h.j.Vd(f,e),"Expected '"+f+"' to contain '"+e+"'")});n.F("assertNotContains",function(a,c,d){_validateArguments(2,arguments);var e=J(1,2,arguments),f=J(2,2,arguments);_assert(I(2,arguments),!n.h.j.Vd(f,e),"Expected '"+f+"' not to contain '"+e+"'")});
n.F("assertRegExp",function(a,c,d){_validateArguments(2,arguments);var e=J(1,2,arguments),f=J(2,2,arguments);"string"==typeof e&&(e=new RegExp(e));_assert(I(2,arguments),e.test(f),"Expected '"+f+"' to match RegExp "+e.toString())});chrome.cast.a.jc={UNKNOWN:"unknown",STATE_CHANGED:"state_changed",GAME_MESSAGE_RECEIVED:"game_message_received"};n.w(chrome.cast.a,"GameManagerEventType",chrome.cast.a.jc);chrome.cast.a.If=function(){};n.w(chrome.cast.a,"GameManagerEvent",chrome.cast.a.If);chrome.cast.a.xd=function(a,c){this.type=chrome.cast.a.jc.STATE_CHANGED;this.currentState=a;this.previousState=c};n.w(chrome.cast.a,"GameManagerStateChangedEvent",chrome.cast.a.xd);
chrome.cast.a.ud=function(a,c){this.type=chrome.cast.a.jc.GAME_MESSAGE_RECEIVED;this.playerId=a;this.gameMessage=c};n.w(chrome.cast.a,"GameManagerGameMessageReceivedEvent",chrome.cast.a.ud);chrome.cast.a.vd=function(a){this.gameManagerClient=a};n.w(chrome.cast.a,"GameManagerInstanceResult",chrome.cast.a.vd);chrome.cast.a.u=function(a,c,d,e,f,g,h){this.P=a;this.Y=c;this.I=d;this.D=e;this.l=f;this.v=g;this.b=new n.M.Map;for(a=0;a<h.length;a++)c=h[a],this.b.set(c.l,c)};n.w(chrome.cast.a,"GameManagerState",chrome.cast.a.u);chrome.cast.a.u.prototype.vh=function(){return this.P};n.w(chrome.cast.a.u.prototype,"getApplicationName",chrome.cast.a.u.prototype.vh);chrome.cast.a.u.prototype.Ih=function(){return this.Y};n.w(chrome.cast.a.u.prototype,"getMaxPlayers",chrome.cast.a.u.prototype.Ih);
chrome.cast.a.u.prototype.Hh=function(){return this.I};n.w(chrome.cast.a.u.prototype,"getLobbyState",chrome.cast.a.u.prototype.Hh);chrome.cast.a.u.prototype.Eh=function(){return this.D};n.w(chrome.cast.a.u.prototype,"getGameplayState",chrome.cast.a.u.prototype.Eh);chrome.cast.a.u.prototype.Ah=function(){return this.l};n.w(chrome.cast.a.u.prototype,"getGameData",chrome.cast.a.u.prototype.Ah);chrome.cast.a.u.prototype.Dh=function(){return this.v};n.w(chrome.cast.a.u.prototype,"getGameStatusText",chrome.cast.a.u.prototype.Dh);
chrome.cast.a.u.prototype.Dc=function(){return this.b.Oa()};n.w(chrome.cast.a.u.prototype,"getPlayers",chrome.cast.a.u.prototype.Dc);chrome.cast.a.u.prototype.pa=function(a){return this.b.get(a,null)};n.w(chrome.cast.a.u.prototype,"getPlayer",chrome.cast.a.u.prototype.pa);chrome.cast.a.u.prototype.yh=function(){for(var a=[],c=this.b.Oa(),d=0;d<c.length;d++){var e=c[d];e.v&&a.push(e)}return a};n.w(chrome.cast.a.u.prototype,"getControllablePlayers",chrome.cast.a.u.prototype.yh);
chrome.cast.a.u.prototype.xh=function(){for(var a=[],c=this.b.Oa(),d=0;d<c.length;d++){var e=c[d];e.isConnected()&&a.push(e)}return a};n.w(chrome.cast.a.u.prototype,"getConnectedPlayers",chrome.cast.a.u.prototype.xh);chrome.cast.a.u.prototype.wh=function(){for(var a=[],c=this.b.Oa(),d=0;d<c.length;d++){var e=c[d];e.isConnected()&&e.v&&a.push(e)}return a};n.w(chrome.cast.a.u.prototype,"getConnectedControllablePlayers",chrome.cast.a.u.prototype.wh);
chrome.cast.a.u.prototype.Oh=function(a){for(var c=[],d=this.b.Oa(),e=0;e<d.length;e++){var f=d[e];f.b==a&&c.push(f)}return c};n.w(chrome.cast.a.u.prototype,"getPlayersInState",chrome.cast.a.u.prototype.Oh);chrome.cast.a.u.prototype.ai=function(a){return this.I!=a.I};n.w(chrome.cast.a.u.prototype,"hasLobbyStateChanged",chrome.cast.a.u.prototype.ai);chrome.cast.a.u.prototype.Zh=function(a){return this.D!=a.D};n.w(chrome.cast.a.u.prototype,"hasGameplayStateChanged",chrome.cast.a.u.prototype.Zh);
chrome.cast.a.u.prototype.Xh=function(a){return null!=n.h.j.Ta(this.l,a.l)};n.w(chrome.cast.a.u.prototype,"hasGameDataChanged",chrome.cast.a.u.prototype.Xh);chrome.cast.a.u.prototype.Yh=function(a){return this.v!=a.v};n.w(chrome.cast.a.u.prototype,"hasGameStatusTextChanged",chrome.cast.a.u.prototype.Yh);chrome.cast.a.u.prototype.bi=function(a,c){var d=this.pa(a);a=c.pa(a);return null==d&&null==a?!1:null!=d&&null!=a?!d.ja(a):!0};n.w(chrome.cast.a.u.prototype,"hasPlayerChanged",chrome.cast.a.u.prototype.bi);
chrome.cast.a.u.prototype.di=function(a,c){var d=this.pa(a);a=c.pa(a);return null==d&&null==a?!1:null!=d&&null!=a?d.b!=a.b:!0};n.w(chrome.cast.a.u.prototype,"hasPlayerStateChanged",chrome.cast.a.u.prototype.di);chrome.cast.a.u.prototype.ci=function(a,c){var d=this.pa(a);a=c.pa(a);return null==d&&null==a?!1:null!=d&&null!=a?null!=n.h.j.Ta(d.D,a.D):!0};n.w(chrome.cast.a.u.prototype,"hasPlayerDataChanged",chrome.cast.a.u.prototype.ci);
chrome.cast.a.u.prototype.je=function(a){for(var c=[],d=this.Dc(),e=0;e<d.length;e++){var f=d[e],g=a.pa(f.l);null!=g&&f.ja(g)||c.push(f.l)}a=a.Dc();for(e=0;e<a.length;e++)g=a[e],f=this.pa(g.l),null!=f||n.f.contains(c,g.l)||c.push(g.l);return c};n.w(chrome.cast.a.u.prototype,"getListOfChangedPlayers",chrome.cast.a.u.prototype.je);chrome.cast.a.u.prototype.ja=function(a){return this.P==a.P&&this.Y==a.Y&&this.I==a.I&&this.D==a.D&&this.v==a.v&&0==this.je(a).length&&!n.h.j.Ta(this.l,a.l)};
n.w(chrome.cast.a.u.prototype,"equals",chrome.cast.a.u.prototype.ja);chrome.cast.a.T=function(a,c,d,e){this.l=a;this.b=c;this.D=d;this.v=e};n.w(chrome.cast.a,"PlayerInfo",chrome.cast.a.T);chrome.cast.a.T.prototype.Mh=function(){return this.l};n.w(chrome.cast.a.T.prototype,"getPlayerId",chrome.cast.a.T.prototype.Mh);chrome.cast.a.T.prototype.Nh=function(){return this.b};n.w(chrome.cast.a.T.prototype,"getPlayerState",chrome.cast.a.T.prototype.Nh);chrome.cast.a.T.prototype.Lh=function(){return this.D};n.w(chrome.cast.a.T.prototype,"getPlayerData",chrome.cast.a.T.prototype.Lh);
chrome.cast.a.T.prototype.hi=function(){return this.v};n.w(chrome.cast.a.T.prototype,"isControllable",chrome.cast.a.T.prototype.hi);chrome.cast.a.T.prototype.isConnected=function(){return this.b==chrome.cast.a.PlayerState.IDLE||this.b==chrome.cast.a.PlayerState.AVAILABLE||this.b==chrome.cast.a.PlayerState.PLAYING||this.b==chrome.cast.a.PlayerState.READY};n.w(chrome.cast.a.T.prototype,"isConnected",chrome.cast.a.T.prototype.isConnected);
chrome.cast.a.T.prototype.ja=function(a){return this.l==a.l&&this.b==a.b&&this.v==a.v&&!n.h.j.Ta(this.D,a.D)};n.w(chrome.cast.a.T.prototype,"equals",chrome.cast.a.T.prototype.ja);chrome.cast.a.s=function(a){this.b=new chrome.cast.a.C.Fa(a);this.D=new n.events.EventTarget;this.I=this.l=this.v=null;this.Ba=this.Aa=!1;this.Wa=n.bind(this.nb,this);this.Ya=n.bind(this.Gb,this);this.Y=this.P=null;a=this.b;var c=this.Ya;a.Y=this.Wa;a.I=c};n.w(chrome.cast.a,"GameManagerClient",chrome.cast.a.s);chrome.cast.a.s.Gh=function(a,c,d){T(new chrome.cast.a.s(a),c,d)};n.w(chrome.cast.a.s,"getInstanceFor",chrome.cast.a.s.Gh);
var T=function(a,c,d){if(a.Aa)throw Error("Attempted to initialize the GameManagerClient more than once.");if(a.isDisposed())throw Error("Attempted to initialize the GameManagerClient after it was disposed.");a.Aa=!0;y(a.b,function(){c(new chrome.cast.a.vd(a))},d)};chrome.cast.a.s.prototype.wa=function(){this.isDisposed()||(this.b.wa(),this.D.wa(),this.b=null,this.Ba=!0)};n.w(chrome.cast.a.s.prototype,"dispose",chrome.cast.a.s.prototype.wa);chrome.cast.a.s.prototype.isDisposed=function(){return this.Ba};
n.w(chrome.cast.a.s.prototype,"isDisposed",chrome.cast.a.s.prototype.isDisposed);chrome.cast.a.s.prototype.Xi=function(a,c,d){var e=this.b.na();U(this,e,chrome.cast.a.PlayerState.AVAILABLE,a,c,d)};n.w(chrome.cast.a.s.prototype,"sendPlayerAvailableRequest",chrome.cast.a.s.prototype.Xi);chrome.cast.a.s.prototype.Yi=function(a,c,d,e){U(this,a,chrome.cast.a.PlayerState.AVAILABLE,c,d,e)};n.w(chrome.cast.a.s.prototype,"sendPlayerAvailableRequestWithPlayerId",chrome.cast.a.s.prototype.Yi);
chrome.cast.a.s.prototype.fj=function(a,c,d){var e=this.b.na();if(!e)throw Error("Cannot send player request - no last used player ID found.To register a new player, use setPlayerAvailableRequest()");U(this,e,chrome.cast.a.PlayerState.READY,a,c,d)};n.w(chrome.cast.a.s.prototype,"sendPlayerReadyRequest",chrome.cast.a.s.prototype.fj);
chrome.cast.a.s.prototype.gj=function(a,c,d,e){if(!a)throw Error("Cannot send player request - no player ID provided.To register a new player, use setPlayerAvailableRequest()");U(this,a,chrome.cast.a.PlayerState.READY,c,d,e)};n.w(chrome.cast.a.s.prototype,"sendPlayerReadyRequestWithPlayerId",chrome.cast.a.s.prototype.gj);
chrome.cast.a.s.prototype.Zi=function(a,c,d){var e=this.b.na();if(!e)throw Error("Cannot send player request - no last used player ID found.To register a new player, use setPlayerAvailableRequest()");U(this,e,chrome.cast.a.PlayerState.IDLE,a,c,d)};n.w(chrome.cast.a.s.prototype,"sendPlayerIdleRequest",chrome.cast.a.s.prototype.Zi);
chrome.cast.a.s.prototype.aj=function(a,c,d,e){if(!a)throw Error("Cannot send player request - no player ID provided.To register a new player, use setPlayerAvailableRequest()");U(this,a,chrome.cast.a.PlayerState.IDLE,c,d,e)};n.w(chrome.cast.a.s.prototype,"sendPlayerIdleRequestWithPlayerId",chrome.cast.a.s.prototype.aj);
chrome.cast.a.s.prototype.bj=function(a,c,d){var e=this.b.na();if(!e)throw Error("Cannot send player request - no last used player ID found.To register a new player, use setPlayerAvailableRequest()");U(this,e,chrome.cast.a.PlayerState.PLAYING,a,c,d)};n.w(chrome.cast.a.s.prototype,"sendPlayerPlayingRequest",chrome.cast.a.s.prototype.bj);
chrome.cast.a.s.prototype.cj=function(a,c,d,e){if(!a)throw Error("Cannot send player request - no player ID provided.To register a new player, use setPlayerAvailableRequest()");U(this,a,chrome.cast.a.PlayerState.PLAYING,c,d,e)};n.w(chrome.cast.a.s.prototype,"sendPlayerPlayingRequestWithPlayerId",chrome.cast.a.s.prototype.cj);
chrome.cast.a.s.prototype.dj=function(a,c,d){var e=this.b.na();if(!e)throw Error("Cannot send player request - no last used player ID found.To register a new player, use setPlayerAvailableRequest()");U(this,e,chrome.cast.a.PlayerState.QUIT,a,c,d)};n.w(chrome.cast.a.s.prototype,"sendPlayerQuitRequest",chrome.cast.a.s.prototype.dj);
chrome.cast.a.s.prototype.ej=function(a,c,d,e){if(!a)throw Error("Cannot send player request - no player ID provided.To register a new player, use setPlayerAvailableRequest()");U(this,a,chrome.cast.a.PlayerState.QUIT,c,d,e)};n.w(chrome.cast.a.s.prototype,"sendPlayerQuitRequestWithPlayerId",chrome.cast.a.s.prototype.ej);var U=function(a,c,d,e,f,g){V(a);d=chrome.cast.a.C.ba.Ch(d);z(a.b,c,d,e,f,g)};
chrome.cast.a.s.prototype.Wi=function(a,c,d){var e=this.b.na();if(!e)throw Error("Cannot send game request - no last used player ID found.");this.ef(e,a,c,d)};n.w(chrome.cast.a.s.prototype,"sendGameRequest",chrome.cast.a.s.prototype.Wi);chrome.cast.a.s.prototype.ef=function(a,c,d,e){V(this);z(this.b,a,chrome.cast.a.C.ba.Ff,c,d,e)};n.w(chrome.cast.a.s.prototype,"sendGameRequestWithPlayerId",chrome.cast.a.s.prototype.ef);
chrome.cast.a.s.prototype.Vi=function(a){var c=this.b.na();if(!c)throw Error("Cannot send game message - no last used player ID found.");this.df(c,a)};n.w(chrome.cast.a.s.prototype,"sendGameMessage",chrome.cast.a.s.prototype.Vi);chrome.cast.a.s.prototype.df=function(a,c){V(this);z(this.b,a,chrome.cast.a.C.ba.GAME_MESSAGE,c,null,null)};n.w(chrome.cast.a.s.prototype,"sendGameMessageWithPlayerId",chrome.cast.a.s.prototype.df);chrome.cast.a.s.prototype.addEventListener=function(a,c){this.D.listen(a,c)};
n.w(chrome.cast.a.s.prototype,"addEventListener",chrome.cast.a.s.prototype.addEventListener);chrome.cast.a.s.prototype.removeEventListener=function(a,c){this.D.ob(a,c)};n.w(chrome.cast.a.s.prototype,"removeEventListener",chrome.cast.a.s.prototype.removeEventListener);chrome.cast.a.s.prototype.getCurrentState=function(){V(this);return this.l};n.w(chrome.cast.a.s.prototype,"getCurrentState",chrome.cast.a.s.prototype.getCurrentState);chrome.cast.a.s.prototype.na=function(){V(this);return this.b.na()};
n.w(chrome.cast.a.s.prototype,"getLastUsedPlayerId",chrome.cast.a.s.prototype.na);
chrome.cast.a.s.prototype.nb=function(a){if(a.statusCode!=chrome.cast.a.C.oa.SUCCESS)throw Error("Expecting a successful response message but got an error for request ID "+a.requestId);if(null!=this.v||a.gameManagerConfig)if(a.gameManagerConfig&&(this.v=a.gameManagerConfig),null!=this.v){this.I=this.l;for(var c=[],d=0;d<a.players.length;d++){var e=a.players[d],f=e.playerId;c.push(new chrome.cast.a.T(f,e.playerState,e.playerData,this.b.Wa.wb(f)))}this.l=new chrome.cast.a.u(this.v.applicationName,this.v.maxPlayers,
a.lobbyState,a.gameplayState,a.gameData,a.gameStatusText,c);c=this.l.pa(a.playerId);null!=c&&c.v&&a.type==chrome.cast.a.C.sb.GAME_MESSAGE&&(this.P=a.playerId,this.Y=a.extraMessageData)}};chrome.cast.a.s.prototype.Gb=function(){null==this.I||this.l.ja(this.I)||this.D.dispatchEvent(new chrome.cast.a.xd(this.l,this.I));null!=this.P&&null!=this.Y&&this.D.dispatchEvent(new chrome.cast.a.ud(this.P,this.Y));this.Y=this.P=this.I=null};
var V=function(a){if(null==a.v)throw Error("Attempted to perform an operation on the GameManagerClient before it was initialized.");if(a.isDisposed())throw Error("Attempted to perform an operation on the GameManagerClient after it was disposed.");};chrome.cast.a.C.Hf=function(){this.applicationName="[APPLICATION_NAME_NOT_SET]";this.maxPlayers=-1;this.version="[INVALID_VERSION]"};n.F("chrome.cast.games.internal.GameManagerConfig",chrome.cast.a.C.Hf);chrome.cast.a.C.yg=function(){this.playerId="";this.playerState=chrome.cast.a.PlayerState.UNKNOWN;this.playerData=null};n.F("chrome.cast.games.internal.PlayerInfoMessageComponent",chrome.cast.a.C.yg);}).call(this);
