(function() {'use strict';var e,aa=function(a,b){function c(){}c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a;for(var d in b)if(Object.defineProperties){var f=Object.getOwnPropertyDescriptor(b,d);f&&Object.defineProperty(a,d,f)}else a[d]=b[d]},g=this,k=function(a,b,c){a=a.split(".");c=c||g;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=c[d]?c[d]:c[d]={}:c[d]=b},ba=function(){},m=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},n=function(a){var b=m(a);return"array"==b||"object"==b&&"number"==typeof a.length},q=function(a){return"string"==typeof a},ca="closure_uid_"+(1E9*Math.random()>>>0),da=0,ea=function(a,b,c){return a.call.apply(a.bind,arguments)},fa=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)}},t=function(a,b,c){t=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ea:fa;return t.apply(null,arguments)},u=Date.now||function(){return+new Date},ga=function(a,b){function c(){}c.prototype=b.prototype;a.be=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.$d=function(a,c,h){for(var d=Array(arguments.length-2),f=2;f<arguments.length;f++)d[f-2]=arguments[f];return b.prototype[c].apply(a,d)}};var chrome=chrome||window.chrome||{};chrome.cast=chrome.cast||{};chrome.cast.media=chrome.cast.media||{};chrome.cast.VERSION=[1,2];k("chrome.cast.VERSION",chrome.cast.VERSION,void 0);chrome.cast.Zd=!0;k("chrome.cast.usingPresentationApi",chrome.cast.Zd,void 0);chrome.cast.Error=function(a,b,c){this.code=a;this.description=b||null;this.details=c||null};k("chrome.cast.Error",chrome.cast.Error,void 0);chrome.cast.rc=function(a){this.platform=a;this.packageId=this.url=null};k("chrome.cast.SenderApplication",chrome.cast.rc,void 0);chrome.cast.Image=function(a){this.url=a;this.width=this.height=null};
k("chrome.cast.Image",chrome.cast.Image,void 0);chrome.cast.Volume=function(a,b){this.level=void 0!==a?a:null;this.muted=void 0!==b?b:null};k("chrome.cast.Volume",chrome.cast.Volume,void 0);var ha=function(a,b){for(var c=a.split("%s"),d="",f=Array.prototype.slice.call(arguments,1);f.length&&1<c.length;)d+=c.shift()+f.shift();return d+c.join("%s")},ia=/&/g,ja=/</g,ka=/>/g,la=/"/g,ma=/'/g,na=/\x00/g,oa=/[\x00&<>"']/,qa=function(a,b){var c={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},d;d=b?b.createElement("div"):g.document.createElement("div");return a.replace(pa,function(a,b){var f=c[a];if(f)return f;"#"==b.charAt(0)&&(b=Number("0"+b.substr(1)),isNaN(b)||(f=String.fromCharCode(b)));
f||(d.innerHTML=a+" ",f=d.firstChild.nodeValue.slice(0,-1));return c[a]=f})},ra=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)}})},pa=/&([^;\s<&]+);?/g;chrome.cast.Va={CUSTOM_CONTROLLER_SCOPED:"custom_controller_scoped",TAB_AND_ORIGIN_SCOPED:"tab_and_origin_scoped",ORIGIN_SCOPED:"origin_scoped",PAGE_SCOPED:"page_scoped"};k("chrome.cast.AutoJoinPolicy",chrome.cast.Va,void 0);chrome.cast.Wa={CREATE_SESSION:"create_session",CAST_THIS_TAB:"cast_this_tab"};k("chrome.cast.DefaultActionPolicy",chrome.cast.Wa,void 0);chrome.cast.za={VIDEO_OUT:"video_out",AUDIO_OUT:"audio_out",VIDEO_IN:"video_in",AUDIO_IN:"audio_in",MULTIZONE_GROUP:"multizone_group"};
k("chrome.cast.Capability",chrome.cast.za,void 0);chrome.cast.u={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"};k("chrome.cast.ErrorCode",chrome.cast.u,void 0);chrome.cast.fa={AVAILABLE:"available",UNAVAILABLE:"unavailable"};
k("chrome.cast.ReceiverAvailability",chrome.cast.fa,void 0);chrome.cast.sc={CHROME:"chrome",IOS:"ios",ANDROID:"android"};k("chrome.cast.SenderPlatform",chrome.cast.sc,void 0);chrome.cast.fb={CAST:"cast",DIAL:"dial",HANGOUT:"hangout",CUSTOM:"custom"};k("chrome.cast.ReceiverType",chrome.cast.fb,void 0);chrome.cast.Xb={RUNNING:"running",STOPPED:"stopped",ERROR:"error"};k("chrome.cast.DialAppState",chrome.cast.Xb,void 0);chrome.cast.nc={CAST:"cast",STOP:"stop"};
k("chrome.cast.ReceiverAction",chrome.cast.nc,void 0);chrome.cast.T={CONNECTED:"connected",DISCONNECTED:"disconnected",STOPPED:"stopped"};k("chrome.cast.SessionStatus",chrome.cast.T,void 0);chrome.cast.Vb=function(a,b,c,d,f){this.sessionRequest=a;this.sessionListener=b;this.receiverListener=c;this.autoJoinPolicy=d||chrome.cast.Va.TAB_AND_ORIGIN_SCOPED;this.defaultActionPolicy=f||chrome.cast.Wa.CREATE_SESSION;this.customDialLaunchCallback=null;this.invisibleSender=!1;this.additionalSessionRequests=[]};k("chrome.cast.ApiConfig",chrome.cast.Vb,void 0);chrome.cast.$b=function(a,b){this.appName=a;this.launchParameter=b||null};k("chrome.cast.DialRequest",chrome.cast.$b,void 0);
chrome.cast.Yb=function(a,b,c){this.receiver=a;this.appState=b;this.extraData=c||null};k("chrome.cast.DialLaunchData",chrome.cast.Yb,void 0);chrome.cast.Zb=function(a,b){this.doLaunch=a;this.launchParameter=b||null};k("chrome.cast.DialLaunchResponse",chrome.cast.Zb,void 0);chrome.cast.tc=function(a,b,c){this.appId=a;this.capabilities="array"==m(b)?b:[chrome.cast.za.VIDEO_OUT,chrome.cast.za.AUDIO_OUT];this.requestSessionTimeout=c||chrome.cast.timeout.requestSession;this.dialRequest=this.language=null};
k("chrome.cast.SessionRequest",chrome.cast.tc,void 0);
chrome.cast.mc=function(a,b,c,d){this.label=a;a=b;oa.test(a)&&(-1!=a.indexOf("&")&&(a=a.replace(ia,"&amp;")),-1!=a.indexOf("<")&&(a=a.replace(ja,"&lt;")),-1!=a.indexOf(">")&&(a=a.replace(ka,"&gt;")),-1!=a.indexOf('"')&&(a=a.replace(la,"&quot;")),-1!=a.indexOf("'")&&(a=a.replace(ma,"&#39;")),-1!=a.indexOf("\x00")&&(a=a.replace(na,"&#0;")));this.friendlyName=a;this.capabilities=c||[];this.volume=d||null;this.receiverType=chrome.cast.fb.CAST;this.displayStatus=this.isActiveInput=null};
k("chrome.cast.Receiver",chrome.cast.mc,void 0);chrome.cast.oc=function(a,b){this.statusText=a;this.appImages=b;this.showStop=null};k("chrome.cast.ReceiverDisplayStatus",chrome.cast.oc,void 0);chrome.cast.ib=function(){this.requestSession=6E4;this.sendCustomMessage=this.setReceiverVolume=this.stopSession=this.leaveSession=3E3};k("chrome.cast.Timeout",chrome.cast.ib,void 0);chrome.cast.timeout=new chrome.cast.ib;k("chrome.cast.timeout",chrome.cast.timeout,void 0);chrome.cast.Ub="auto-join";
chrome.cast.ic="cast-session_";chrome.cast.media.ec={PAUSE:"pause",SEEK:"seek",STREAM_VOLUME:"stream_volume",STREAM_MUTE:"stream_mute"};k("chrome.cast.media.MediaCommand",chrome.cast.media.ec,void 0);chrome.cast.media.s={GENERIC:0,MOVIE:1,TV_SHOW:2,MUSIC_TRACK:3,PHOTO:4};k("chrome.cast.media.MetadataType",chrome.cast.media.s,void 0);chrome.cast.media.S={IDLE:"IDLE",PLAYING:"PLAYING",PAUSED:"PAUSED",BUFFERING:"BUFFERING"};k("chrome.cast.media.PlayerState",chrome.cast.media.S,void 0);
chrome.cast.media.Aa={OFF:"REPEAT_OFF",ALL:"REPEAT_ALL",SINGLE:"REPEAT_SINGLE",ALL_AND_SHUFFLE:"REPEAT_ALL_AND_SHUFFLE"};k("chrome.cast.media.RepeatMode",chrome.cast.media.Aa,void 0);chrome.cast.media.pc={PLAYBACK_START:"PLAYBACK_START",PLAYBACK_PAUSE:"PLAYBACK_PAUSE"};k("chrome.cast.media.ResumeState",chrome.cast.media.pc,void 0);chrome.cast.media.hb={BUFFERED:"BUFFERED",LIVE:"LIVE",OTHER:"OTHER"};k("chrome.cast.media.StreamType",chrome.cast.media.hb,void 0);
chrome.cast.media.cc={CANCELLED:"CANCELLED",INTERRUPTED:"INTERRUPTED",FINISHED:"FINISHED",ERROR:"ERROR"};k("chrome.cast.media.IdleReason",chrome.cast.media.cc,void 0);chrome.cast.media.Bc={TEXT:"TEXT",AUDIO:"AUDIO",VIDEO:"VIDEO"};k("chrome.cast.media.TrackType",chrome.cast.media.Bc,void 0);chrome.cast.media.yc={SUBTITLES:"SUBTITLES",CAPTIONS:"CAPTIONS",DESCRIPTIONS:"DESCRIPTIONS",CHAPTERS:"CHAPTERS",METADATA:"METADATA"};k("chrome.cast.media.TextTrackType",chrome.cast.media.yc,void 0);
chrome.cast.media.uc={NONE:"NONE",OUTLINE:"OUTLINE",DROP_SHADOW:"DROP_SHADOW",RAISED:"RAISED",DEPRESSED:"DEPRESSED"};k("chrome.cast.media.TextTrackEdgeType",chrome.cast.media.uc,void 0);chrome.cast.media.zc={NONE:"NONE",NORMAL:"NORMAL",ROUNDED_CORNERS:"ROUNDED_CORNERS"};k("chrome.cast.media.TextTrackWindowType",chrome.cast.media.zc,void 0);
chrome.cast.media.vc={SANS_SERIF:"SANS_SERIF",MONOSPACED_SANS_SERIF:"MONOSPACED_SANS_SERIF",SERIF:"SERIF",MONOSPACED_SERIF:"MONOSPACED_SERIF",CASUAL:"CASUAL",CURSIVE:"CURSIVE",SMALL_CAPITALS:"SMALL_CAPITALS"};k("chrome.cast.media.TextTrackFontGenericFamily",chrome.cast.media.vc,void 0);chrome.cast.media.wc={NORMAL:"NORMAL",BOLD:"BOLD",BOLD_ITALIC:"BOLD_ITALIC",ITALIC:"ITALIC"};k("chrome.cast.media.TextTrackFontStyle",chrome.cast.media.wc,void 0);chrome.cast.media.Xa=function(){this.customData=null};k("chrome.cast.media.GetStatusRequest",chrome.cast.media.Xa,void 0);chrome.cast.media.Ya=function(){this.customData=null};k("chrome.cast.media.PauseRequest",chrome.cast.media.Ya,void 0);chrome.cast.media.Za=function(){this.customData=null};k("chrome.cast.media.PlayRequest",chrome.cast.media.Za,void 0);chrome.cast.media.qc=function(){this.customData=this.resumeState=this.currentTime=null};k("chrome.cast.media.SeekRequest",chrome.cast.media.qc,void 0);
chrome.cast.media.gb=function(){this.customData=null};k("chrome.cast.media.StopRequest",chrome.cast.media.gb,void 0);chrome.cast.media.Dc=function(a){this.volume=a;this.customData=null};k("chrome.cast.media.VolumeRequest",chrome.cast.media.Dc,void 0);chrome.cast.media.dc=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};k("chrome.cast.media.LoadRequest",chrome.cast.media.dc,void 0);
chrome.cast.media.ac=function(a,b){this.requestId=0;this.activeTrackIds=a||null;this.textTrackStyle=b||null};k("chrome.cast.media.EditTracksInfoRequest",chrome.cast.media.ac,void 0);chrome.cast.media.bc=function(){this.metadataType=this.type=chrome.cast.media.s.GENERIC;this.releaseDate=this.releaseYear=this.images=this.subtitle=this.title=null};k("chrome.cast.media.GenericMediaMetadata",chrome.cast.media.bc,void 0);
chrome.cast.media.gc=function(){this.metadataType=this.type=chrome.cast.media.s.MOVIE;this.releaseDate=this.releaseYear=this.images=this.subtitle=this.studio=this.title=null};k("chrome.cast.media.MovieMediaMetadata",chrome.cast.media.gc,void 0);chrome.cast.media.Cc=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};
k("chrome.cast.media.TvShowMediaMetadata",chrome.cast.media.Cc,void 0);chrome.cast.media.hc=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};k("chrome.cast.media.MusicTrackMediaMetadata",chrome.cast.media.hc,void 0);
chrome.cast.media.jc=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};k("chrome.cast.media.PhotoMediaMetadata",chrome.cast.media.jc,void 0);chrome.cast.media.fc=function(a,b){this.contentId=a;this.streamType=chrome.cast.media.hb.BUFFERED;this.contentType=b;this.customData=this.textTrackStyle=this.tracks=this.duration=this.metadata=null};
k("chrome.cast.media.MediaInfo",chrome.cast.media.fc,void 0);chrome.cast.media.ab=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};k("chrome.cast.media.QueueItem",chrome.cast.media.ab,void 0);chrome.cast.media.Wb="CC1AD845";k("chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID",chrome.cast.media.Wb,void 0);chrome.cast.media.timeout={};
k("chrome.cast.media.timeout",chrome.cast.media.timeout,void 0);chrome.cast.media.timeout.load=0;chrome.cast.media.timeout.load=chrome.cast.media.timeout.load;chrome.cast.media.timeout.ja=0;chrome.cast.media.timeout.getStatus=chrome.cast.media.timeout.ja;chrome.cast.media.timeout.play=0;chrome.cast.media.timeout.play=chrome.cast.media.timeout.play;chrome.cast.media.timeout.pause=0;chrome.cast.media.timeout.pause=chrome.cast.media.timeout.pause;chrome.cast.media.timeout.seek=0;
chrome.cast.media.timeout.seek=chrome.cast.media.timeout.seek;chrome.cast.media.timeout.stop=0;chrome.cast.media.timeout.stop=chrome.cast.media.timeout.stop;chrome.cast.media.timeout.ya=0;chrome.cast.media.timeout.setVolume=chrome.cast.media.timeout.ya;chrome.cast.media.timeout.ia=0;chrome.cast.media.timeout.editTracksInfo=chrome.cast.media.timeout.ia;chrome.cast.media.timeout.o=0;chrome.cast.media.timeout.queue=chrome.cast.media.timeout.o;
chrome.cast.media.Ac=function(a,b){this.trackId=a;this.trackContentType=this.trackContentId=null;this.type=b;this.customData=this.subtype=this.language=this.name=null};k("chrome.cast.media.Track",chrome.cast.media.Ac,void 0);chrome.cast.media.xc=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};
k("chrome.cast.media.TextTrackStyle",chrome.cast.media.xc,void 0);chrome.cast.media.kc=function(a){this.type="QUEUE_LOAD";this.sessionId=this.requestId=null;this.items=a;this.startIndex=0;this.repeatMode=chrome.cast.media.Aa.OFF;this.customData=null};k("chrome.cast.media.QueueLoadRequest",chrome.cast.media.kc,void 0);chrome.cast.media.$a=function(a){this.type="QUEUE_INSERT";this.sessionId=this.requestId=null;this.items=a;this.customData=this.insertBefore=null};
k("chrome.cast.media.QueueInsertItemsRequest",chrome.cast.media.$a,void 0);chrome.cast.media.lc=function(a){this.type="QUEUE_UPDATE";this.sessionId=this.requestId=null;this.items=a;this.customData=null};k("chrome.cast.media.QueueUpdateItemsRequest",chrome.cast.media.lc,void 0);chrome.cast.media.ea=function(){this.type="QUEUE_UPDATE";this.customData=this.jump=this.currentItemId=this.sessionId=this.requestId=null};k("chrome.cast.media.QueueJumpRequest",chrome.cast.media.ea,void 0);
chrome.cast.media.eb=function(){this.type="QUEUE_UPDATE";this.customData=this.repeatMode=this.sessionId=this.requestId=null};k("chrome.cast.media.QueueSetPropertiesRequest",chrome.cast.media.eb,void 0);chrome.cast.media.bb=function(a){this.type="QUEUE_REMOVE";this.sessionId=this.requestId=null;this.itemIds=a;this.customData=null};k("chrome.cast.media.QueueRemoveItemsRequest",chrome.cast.media.bb,void 0);
chrome.cast.media.cb=function(a){this.type="QUEUE_REORDER";this.sessionId=this.requestId=null;this.itemIds=a;this.customData=this.insertBefore=null};k("chrome.cast.media.QueueReorderItemsRequest",chrome.cast.media.cb,void 0);var v=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,v);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};ga(v,Error);v.prototype.name="CustomError";var w=function(a,b){b.unshift(a);v.call(this,ha.apply(null,b));b.shift()};ga(w,v);w.prototype.name="AssertionError";var sa=function(a,b){throw new w("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1));};var x=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,f=q(a)?a.split(""):a,h=0;h<d;h++)h in f&&b.call(c,f[h],h,a)},ta=function(a,b,c){for(var d=a.length,f=q(a)?a.split(""):a,h=0;h<d;h++)if(h in f&&b.call(c,f[h],h,a))return h;return-1},ua=function(a){return Array.prototype.concat.apply(Array.prototype,arguments)},va=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.a=function(a,b){this.sessionId=a;this.mediaSessionId=b;this.media=null;this.playbackRate=1;this.playerState=chrome.cast.media.S.IDLE;this.currentTime=0;this.Ka=-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.Aa.OFF;this.ka=!1;this.ba=[]};k("chrome.cast.media.Media",chrome.cast.media.a,void 0);
chrome.cast.media.a.prototype.ja=function(a,b,c){a||(a=new chrome.cast.media.Xa);y.i(this,"MEDIA_GET_STATUS",a,b,c,chrome.cast.media.timeout.ja)};chrome.cast.media.a.prototype.getStatus=chrome.cast.media.a.prototype.ja;chrome.cast.media.a.prototype.play=function(a,b,c){this.Bb(y,a,b,c)};chrome.cast.media.a.prototype.play=chrome.cast.media.a.prototype.play;chrome.cast.media.a.prototype.Bb=function(a,b,c,d){b||(b=new chrome.cast.media.Za);a.i(this,"PLAY",b,c,d,chrome.cast.media.timeout.play)};
chrome.cast.media.a.prototype.playWithContext=chrome.cast.media.a.prototype.Bb;chrome.cast.media.a.prototype.pause=function(a,b,c){this.Ab(y,a,b,c)};chrome.cast.media.a.prototype.pause=chrome.cast.media.a.prototype.pause;chrome.cast.media.a.prototype.Ab=function(a,b,c,d){b||(b=new chrome.cast.media.Ya);a.i(this,"PAUSE",b,c,d,chrome.cast.media.timeout.pause)};chrome.cast.media.a.prototype.pauseWithContext=chrome.cast.media.a.prototype.Ab;
chrome.cast.media.a.prototype.seek=function(a,b,c){y.i(this,"SEEK",a,b,c,chrome.cast.media.timeout.seek)};chrome.cast.media.a.prototype.seek=chrome.cast.media.a.prototype.seek;chrome.cast.media.a.prototype.stop=function(a,b,c){a||(a=new chrome.cast.media.gb);y.i(this,"STOP_MEDIA",a,b,c,chrome.cast.media.timeout.stop)};chrome.cast.media.a.prototype.stop=chrome.cast.media.a.prototype.stop;chrome.cast.media.a.prototype.ya=function(a,b,c){y.i(this,"MEDIA_SET_VOLUME",a,b,c,chrome.cast.media.timeout.ya)};
chrome.cast.media.a.prototype.setVolume=chrome.cast.media.a.prototype.ya;chrome.cast.media.a.prototype.ia=function(a,b,c){y.i(this,"EDIT_TRACKS_INFO",a,b,c,chrome.cast.media.timeout.ia)};chrome.cast.media.a.prototype.editTracksInfo=chrome.cast.media.a.prototype.ia;chrome.cast.media.a.prototype.wd=function(a,b,c){y.i(this,"QUEUE_INSERT",a,b,c,chrome.cast.media.timeout.o)};chrome.cast.media.a.prototype.queueInsertItems=chrome.cast.media.a.prototype.wd;
chrome.cast.media.a.prototype.vd=function(a,b,c){y.i(this,"QUEUE_INSERT",new chrome.cast.media.$a([a]),b,c,chrome.cast.media.timeout.o)};chrome.cast.media.a.prototype.queueAppendItem=chrome.cast.media.a.prototype.vd;chrome.cast.media.a.prototype.Gd=function(a,b,c){y.i(this,"QUEUE_UPDATE",a,b,c,chrome.cast.media.timeout.o)};chrome.cast.media.a.prototype.queueUpdateItems=chrome.cast.media.a.prototype.Gd;
chrome.cast.media.a.prototype.Bd=function(a,b){var c=new chrome.cast.media.ea;c.jump=-1;y.i(this,"QUEUE_UPDATE",c,a,b,chrome.cast.media.timeout.o)};chrome.cast.media.a.prototype.queuePrev=chrome.cast.media.a.prototype.Bd;chrome.cast.media.a.prototype.Ad=function(a,b){var c=new chrome.cast.media.ea;c.jump=1;y.i(this,"QUEUE_UPDATE",c,a,b,chrome.cast.media.timeout.o)};chrome.cast.media.a.prototype.queueNext=chrome.cast.media.a.prototype.Ad;
chrome.cast.media.a.prototype.xd=function(a,b,c){if(!(0>this.Ha(a))){var d=new chrome.cast.media.ea;d.currentItemId=a;y.i(this,"QUEUE_UPDATE",d,b,c,chrome.cast.media.timeout.o)}};chrome.cast.media.a.prototype.queueJumpToItem=chrome.cast.media.a.prototype.xd;chrome.cast.media.a.prototype.Fd=function(a,b,c){var d=new chrome.cast.media.eb;d.repeatMode=a;y.i(this,"QUEUE_UPDATE",d,b,c,chrome.cast.media.timeout.o)};chrome.cast.media.a.prototype.queueSetRepeatMode=chrome.cast.media.a.prototype.Fd;
chrome.cast.media.a.prototype.Dd=function(a,b,c){y.i(this,"QUEUE_REMOVE",a,b,c,chrome.cast.media.timeout.o)};chrome.cast.media.a.prototype.queueRemoveItems=chrome.cast.media.a.prototype.Dd;chrome.cast.media.a.prototype.Cd=function(a,b,c){0>this.Ha(a)||y.i(this,"QUEUE_REMOVE",new chrome.cast.media.bb([a]),b,c,chrome.cast.media.timeout.o)};chrome.cast.media.a.prototype.queueRemoveItem=chrome.cast.media.a.prototype.Cd;chrome.cast.media.a.prototype.Ed=function(a,b,c){y.i(this,"QUEUE_REORDER",a,b,c,chrome.cast.media.timeout.o)};
chrome.cast.media.a.prototype.queueReorderItems=chrome.cast.media.a.prototype.Ed;chrome.cast.media.a.prototype.zd=function(a,b,c,d){var f=this.Ha(a);if(!(0>f))if(0>b)d&&d(new chrome.cast.Error(chrome.cast.u.INVALID_PARAMETER));else if(f==b)c&&c();else{var h=null;b=b>f?b+1:b;b<this.items.length&&(h=this.items[b]);a=new chrome.cast.media.cb([a]);a.insertBefore=h?h.itemId:null;y.i(this,"QUEUE_REORDER",a,c,d,chrome.cast.media.timeout.o)}};chrome.cast.media.a.prototype.queueMoveItemToNewIndex=chrome.cast.media.a.prototype.zd;
chrome.cast.media.a.prototype.Wd=function(a){return-1<this.supportedMediaCommands.indexOf(a)};chrome.cast.media.a.prototype.supportsCommand=chrome.cast.media.a.prototype.Wd;chrome.cast.media.a.prototype.Tc=function(){if(this.playerState==chrome.cast.media.S.PLAYING&&0<=this.Ka){var a=(u()-this.Ka)/1E3,a=this.currentTime+this.playbackRate*a;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.a.prototype.getEstimatedTime=chrome.cast.media.a.prototype.Tc;chrome.cast.media.a.prototype.Da=function(a){this.U(y,a)};chrome.cast.media.a.prototype.addUpdateListener=chrome.cast.media.a.prototype.Da;chrome.cast.media.a.prototype.U=function(a,b){a.Gc(this,b)};chrome.cast.media.a.prototype.addUpdateListenerWithContext=chrome.cast.media.a.prototype.U;chrome.cast.media.a.prototype.Na=function(a){this.Z(y,a)};chrome.cast.media.a.prototype.removeUpdateListener=chrome.cast.media.a.prototype.Na;
chrome.cast.media.a.prototype.Z=function(a,b){y.Jd(this,b)};chrome.cast.media.a.prototype.removeUpdateListenerWithContext=chrome.cast.media.a.prototype.Z;chrome.cast.media.a.prototype.Ha=function(a){return ta(this.items,function(b){return b.itemId==a})};var y=null;var wa=function(a,b,c){this.sessionId=a;this.namespaceName=b;this.message=c};var xa=function(a,b){this.type="SET_VOLUME";this.requestId=0;this.volume=a;this.expectedVolume=b||null};var ya=function(a){this.type="STOP";this.requestId=0;this.sessionId=a||null};chrome.cast.b=function(a,b,c,d,f){this.sessionId=a;this.appId=b;this.displayName=c;this.statusText=null;this.appImages=d;this.receiver=f;this.senderApps=[];this.namespaces=[];this.media=[];this.status=chrome.cast.T.CONNECTED;this.transportId=""};k("chrome.cast.Session",chrome.cast.b,void 0);chrome.cast.b.prototype.Td=function(a,b,c){this.Pb(y,a,b,c)};chrome.cast.b.prototype.setReceiverVolumeLevel=chrome.cast.b.prototype.Td;
chrome.cast.b.prototype.Pb=function(a,b,c,d){b=new xa(new chrome.cast.Volume(b,null),this.receiver.volume);a.setReceiverVolume(this.sessionId,b,c,d)};chrome.cast.b.prototype.setReceiverVolumeLevelWithContext=chrome.cast.b.prototype.Pb;chrome.cast.b.prototype.Sd=function(a,b,c){this.Ob(y,a,b,c)};chrome.cast.b.prototype.setReceiverMuted=chrome.cast.b.prototype.Sd;
chrome.cast.b.prototype.Ob=function(a,b,c,d){a=new xa(new chrome.cast.Volume(null,b),this.receiver.volume);y.setReceiverVolume(this.sessionId,a,c,d)};chrome.cast.b.prototype.setReceiverMutedWithContext=chrome.cast.b.prototype.Ob;chrome.cast.b.prototype.fd=function(a,b){y.leaveSession(this.sessionId,a,b)};chrome.cast.b.prototype.leave=chrome.cast.b.prototype.fd;chrome.cast.b.prototype.stop=function(a,b){this.Sb(y,a,b)};chrome.cast.b.prototype.stop=chrome.cast.b.prototype.stop;
chrome.cast.b.prototype.Sb=function(a,b,c){a.Ib(new ya(this.sessionId),b,c,chrome.cast.timeout.stopSession)};chrome.cast.b.prototype.stopWithContext=chrome.cast.b.prototype.Sb;chrome.cast.b.prototype.sendMessage=function(a,b,c,d){this.Lb(y,a,b,c,d)};chrome.cast.b.prototype.sendMessage=chrome.cast.b.prototype.sendMessage;chrome.cast.b.prototype.Lb=function(a,b,c,d,f){a.Nd(new wa(this.sessionId,b,c),d,f)};chrome.cast.b.prototype.sendMessageWithContext=chrome.cast.b.prototype.Lb;
chrome.cast.b.prototype.Da=function(a){this.U(y,a)};chrome.cast.b.prototype.addUpdateListener=chrome.cast.b.prototype.Da;chrome.cast.b.prototype.U=function(a,b){a.Jc(this.sessionId,b)};chrome.cast.b.prototype.addUpdateListenerWithContext=chrome.cast.b.prototype.U;chrome.cast.b.prototype.Na=function(a){this.Z(y,a)};chrome.cast.b.prototype.removeUpdateListener=chrome.cast.b.prototype.Na;chrome.cast.b.prototype.Z=function(a,b){a.Md(this.sessionId,b)};
chrome.cast.b.prototype.removeUpdateListenerWithContext=chrome.cast.b.prototype.Z;chrome.cast.b.prototype.Hc=function(a,b){this.kb(y,a,b)};chrome.cast.b.prototype.addMessageListener=chrome.cast.b.prototype.Hc;chrome.cast.b.prototype.kb=function(a,b,c){a.Ec(this.sessionId,b,c)};chrome.cast.b.prototype.addMessageListenerWithContext=chrome.cast.b.prototype.kb;chrome.cast.b.prototype.Ba=function(a){this.jb(y,a)};chrome.cast.b.prototype.addMediaListener=chrome.cast.b.prototype.Ba;
chrome.cast.b.prototype.jb=function(a,b){a.Ba(this.sessionId,b)};chrome.cast.b.prototype.addMediaListenerWithContext=chrome.cast.b.prototype.jb;chrome.cast.b.prototype.La=function(a){this.Db(y,a)};chrome.cast.b.prototype.removeMediaListener=chrome.cast.b.prototype.La;chrome.cast.b.prototype.Db=function(a,b){a.La(this.sessionId,b)};chrome.cast.b.prototype.removeMediaListenerWithContext=chrome.cast.b.prototype.Db;chrome.cast.b.prototype.Kd=function(a,b){this.Eb(y,a,b)};
chrome.cast.b.prototype.removeMessageListener=chrome.cast.b.prototype.Kd;chrome.cast.b.prototype.Eb=function(a,b,c){a.Hd(this.sessionId,b,c)};chrome.cast.b.prototype.removeMessageListenerWithContext=chrome.cast.b.prototype.Eb;chrome.cast.b.prototype.gd=function(a,b,c){a.sessionId=this.sessionId;y.Jb(a,"LOAD",b,c)};chrome.cast.b.prototype.loadMedia=chrome.cast.b.prototype.gd;chrome.cast.b.prototype.yd=function(a,b,c){a.sessionId=this.sessionId;y.Jb(a,"QUEUE_LOAD",b,c)};
chrome.cast.b.prototype.queueLoad=chrome.cast.b.prototype.yd;var z="StopIteration"in g?g.StopIteration:{message:"StopIteration",stack:""},A=function(){};A.prototype.next=function(){throw z;};A.prototype.v=function(){return this};
var za=function(a){if(a instanceof A)return a;if("function"==typeof a.v)return a.v(!1);if(n(a)){var b=0,c=new A;c.next=function(){for(;;){if(b>=a.length)throw z;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");},B=function(a,b,c){if(n(a))try{x(a,b,c)}catch(d){if(d!==z)throw d;}else{a=za(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(d){if(d!==z)throw d;}}};var Aa=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},Ba=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};var C=function(a,b){this.h={};this.g=[];this.da=this.f=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 a&&this.addAll(a)};e=C.prototype;e.l=function(){this.ga();for(var a=[],b=0;b<this.g.length;b++)a.push(this.h[this.g[b]]);return a};e.B=function(){this.ga();return this.g.concat()};e.J=function(a){return D(this.h,a)};e.clear=function(){this.h={};this.da=this.f=this.g.length=0};
e.remove=function(a){return D(this.h,a)?(delete this.h[a],this.f--,this.da++,this.g.length>2*this.f&&this.ga(),!0):!1};e.ga=function(){if(this.f!=this.g.length){for(var a=0,b=0;a<this.g.length;){var c=this.g[a];D(this.h,c)&&(this.g[b++]=c);a++}this.g.length=b}if(this.f!=this.g.length){for(var d={},b=a=0;a<this.g.length;)c=this.g[a],D(d,c)||(this.g[b++]=c,d[c]=1),a++;this.g.length=b}};e.get=function(a,b){return D(this.h,a)?this.h[a]:b};
e.set=function(a,b){D(this.h,a)||(this.f++,this.g.push(a),this.da++);this.h[a]=b};e.addAll=function(a){var b;a instanceof C?(b=a.B(),a=a.l()):(b=Ba(a),a=Aa(a));for(var c=0;c<b.length;c++)this.set(b[c],a[c])};e.forEach=function(a,b){for(var c=this.B(),d=0;d<c.length;d++){var f=c[d],h=this.get(f);a.call(b,h,f,this)}};e.clone=function(){return new C(this)};
e.v=function(a){this.ga();var b=0,c=this.da,d=this,f=new A;f.next=function(){if(c!=d.da)throw Error("The map has changed since the iterator was created");if(b>=d.g.length)throw z;var f=d.g[b++];return a?f:d.h[f]};return f};var D=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var E=function(a,b){this.requestId=a;this.Xd=b;this.Tb=null};E.prototype.zb=function(){};var F=function(){this.ra=new C};F.prototype.Ic=function(a){this.ra.set(a.requestId,a);a.Tb=setTimeout(this.sd.bind(this,a),a.Xd)};F.prototype.Fb=function(a){var b=this.ra.get(a);if(!b)return null;clearTimeout(b.Tb);this.ra.remove(a);return b};F.prototype.sd=function(a){this.ra.remove(a.requestId);a.zb()};var G;a:{var Ca=g.navigator;if(Ca){var Da=Ca.userAgent;if(Da){G=Da;break a}}G=""}var H=function(a){return-1!=G.indexOf(a)};var Ea=H("Opera"),Fa=-1!=G.toLowerCase().indexOf("webkit")&&!H("Edge");var Ga=H("Safari")&&!((H("Chrome")||H("CriOS"))&&!H("Edge")||H("Coast")||H("Opera")||H("Edge")||H("Silk")||H("Android"))&&!(H("iPhone")&&!H("iPod")&&!H("iPad")||H("iPad")||H("iPod"));var I=null,J=null,Ha=H("Gecko")&&!(-1!=G.toLowerCase().indexOf("webkit")&&!H("Edge"))&&!(H("Trident")||H("MSIE"))&&!H("Edge")||Fa&&!Ga||Ea||"function"==typeof g.btoa,Ia=function(a,b){var c;if(Ha&&!b)c=g.btoa(a);else{c=[];for(var d=0,f=0;f<a.length;f++){for(var h=a.charCodeAt(f);255<h;)c[d++]=h&255,h>>=8;c[d++]=h}if(!I)for(I={},J={},a=0;65>a;a++)I[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(a),J[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a);
b=b?J:I;a=[];for(d=0;d<c.length;d+=3){var l=c[d],p=(f=d+1<c.length)?c[d+1]:0,r=(h=d+2<c.length)?c[d+2]:0,Qa=l>>2,l=(l&3)<<4|p>>4,p=(p&15)<<2|r>>6,r=r&63;h||(r=64,f||(p=64));a.push(b[Qa],b[l],b[p],b[r])}c=a.join("")}return c};var K=function(a){if(a.l&&"function"==typeof a.l)return a.l();if(q(a))return a.split("");if(n(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Aa(a)},Ja=function(a,b,c){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,c);else if(n(a)||q(a))x(a,b,c);else{var d;if(a.B&&"function"==typeof a.B)d=a.B();else if(a.l&&"function"==typeof a.l)d=void 0;else if(n(a)||q(a)){d=[];for(var f=a.length,h=0;h<f;h++)d.push(h)}else d=Ba(a);for(var f=K(a),h=f.length,l=0;l<h;l++)b.call(c,f[l],
d&&d[l],a)}};var L=function(a){this.h=new C;a&&this.addAll(a)},M=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+(a[ca]||(a[ca]=++da)):b.substr(0,1)+a};e=L.prototype;e.add=function(a){this.h.set(M(a),a)};e.addAll=function(a){a=K(a);for(var b=a.length,c=0;c<b;c++)this.add(a[c])};e.removeAll=function(a){a=K(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c])};e.remove=function(a){return this.h.remove(M(a))};e.clear=function(){this.h.clear()};e.contains=function(a){return this.h.J(M(a))};e.l=function(){return this.h.l()};
e.clone=function(){return new L(this)};e.v=function(){return this.h.v(!1)};var N=function(a,b,c,d,f){this.reset(a,b,c,d,f)};N.prototype.P=0;N.prototype.rb=null;var Ka=0;N.prototype.reset=function(a,b,c,d,f){this.P="number"==typeof f?f:Ka++;d||u();this.Y=a;this.kd=b;delete this.rb};N.prototype.Pd=function(a){this.rb=a};N.prototype.Nb=function(a){this.Y=a};N.prototype.getMessage=function(){return this.kd};var La=function(a){this.xb=a;this.ub=this.Fa=this.Y=this.qa=null},O=function(a,b){this.name=a;this.value=b};O.prototype.toString=function(){return this.name};var Ma=new O("SEVERE",1E3),Na=new O("INFO",800),Oa=new O("CONFIG",700),Pa=new O("FINE",500);e=La.prototype;e.getName=function(){return this.xb};e.getParent=function(){return this.qa};e.getChildren=function(){this.Fa||(this.Fa={});return this.Fa};e.Nb=function(a){this.Y=a};
e.tb=function(){if(this.Y)return this.Y;if(this.qa)return this.qa.tb();sa("Root logger has no level set.");return null};e.cd=function(a){return a.value>=this.tb().value};e.log=function(a,b,c){this.cd(a)&&("function"==m(b)&&(b=b()),this.Qc(this.Uc(a,b,c)))};e.Uc=function(a,b,c){a=new N(a,String(b),this.xb);c&&a.Pd(c);return a};e.Rb=function(a,b){this.log(Ma,a,b)};e.info=function(a,b){this.log(Na,a,b)};e.config=function(a,b){this.log(Oa,a,b)};e.sb=function(a,b){this.log(Pa,a,b)};
e.Qc=function(a){var b="log:"+a.getMessage();g.console&&(g.console.timeStamp?g.console.timeStamp(b):g.console.markTimeline&&g.console.markTimeline(b));g.msWriteProfilerMark&&g.msWriteProfilerMark(b);for(b=this;b;)b.Lc(a),b=b.getParent()};e.Lc=function(a){if(this.ub)for(var b=0,c;c=this.ub[b];b++)c(a)};e.Qd=function(a){this.qa=a};e.Fc=function(a,b){this.getChildren()[a]=b};
var Ra={},P=null,Sa=function(a){P||(P=new La(""),Ra[""]=P,P.Nb(Oa));var b;if(!(b=Ra[a])){b=new La(a);var c=a.lastIndexOf("."),d=a.substr(c+1),c=Sa(a.substr(0,c));c.Fc(d,b);b.Qd(c);Ra[a]=b}return b};var Q=function(){this.Cb=u()};new Q;Q.prototype.set=function(a){this.Cb=a};Q.prototype.reset=function(){this.set(u())};Q.prototype.get=function(){return this.Cb};var Ta=function(a,b,c,d){E.call(this,a,d||6E5);this.Vd=b;this.Ga=c};aa(Ta,E);Ta.prototype.zb=function(){this.Ga(new chrome.cast.Error(chrome.cast.u.TIMEOUT))};var R=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 S=function(a,b){this.Mc=a;this.D=b||String(u())+String(Math.floor(1E5*Math.random()));this.I=null},Ua=S.prototype,Va=Sa("mr.cast.ExtensionMessenger");Ua.na=Va;S.prototype.Mb=function(a){if(!this.I){a="No active session";var b=this.na;b&&b.Rb(a,void 0);return a}a.clientId=this.D;a=JSON.stringify(a);if(32768<a.length)return a="Message length over limit",(b=this.na)&&b.Rb(a,void 0),a;(b=this.na)&&b.sb("Send "+a,void 0);this.I.send(a);return null};
S.prototype.connect=function(a){this.I=a;this.I.onmessage=t(this.od,this);this.Mb(new R("client_connect",this.D))};S.prototype.disconnect=function(){this.I.close();this.I=null};S.prototype.od=function(a){var b=this.na;b&&b.sb("Receive "+a.data,void 0);a=JSON.parse(a.data);if(a.clientId==this.D)this.Mc.onMessage(a)};var Wa=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,Xa=function(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),f,h=null;0<=d?(f=a[c].substring(0,d),h=a[c].substring(d+1)):f=a[c];b(f,h?decodeURIComponent(h.replace(/\+/g," ")):"")}}};var T=function(a,b){this.W=this.ca=this.C="";this.N=null;this.X=this.H="";this.m=this.ed=!1;var c;a instanceof T?(this.m=void 0!==b?b:a.m,this.xa(a.C),this.Ta(a.ca),this.ua(a.W),this.Ra(a.N),this.wa(a.H),this.Sa(a.w.clone()),this.va(a.X)):a&&(c=String(a).match(Wa))?(this.m=!!b,this.xa(c[1]||"",!0),this.Ta(c[2]||"",!0),this.ua(c[3]||"",!0),this.Ra(c[4]),this.wa(c[5]||"",!0),this.Sa(c[6]||"",!0),this.va(c[7]||"",!0)):(this.m=!!b,this.w=new U(null,null,this.m))};e=T.prototype;
e.toString=function(){var a=[],b=this.C;b&&a.push(V(b,Ya,!0),":");var c=this.W;if(c||"file"==b)a.push("//"),(b=this.ca)&&a.push(V(b,Ya,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.N,null!=c&&a.push(":",String(c));if(c=this.H)this.Ja()&&"/"!=c.charAt(0)&&a.push("/"),a.push(V(c,"/"==c.charAt(0)?Za:$a,!0));(c=this.Sc())&&a.push("?",c);(c=this.X)&&a.push("#",V(c,ab));return a.join("")};
e.resolve=function(a){var b=this.clone(),c=a.Yc();c?b.xa(a.C):c=a.Zc();c?b.Ta(a.ca):c=a.Ja();c?b.ua(a.W):c=a.Wc();var d=a.H;if(c)b.Ra(a.N);else if(c=a.vb()){if("/"!=d.charAt(0))if(this.Ja()&&!this.vb())d="/"+d;else{var f=b.H.lastIndexOf("/");-1!=f&&(d=b.H.substr(0,f+1)+d)}f=d;if(".."==f||"."==f)d="";else if(-1!=f.indexOf("./")||-1!=f.indexOf("/.")){for(var d=0==f.lastIndexOf("/",0),f=f.split("/"),h=[],l=0;l<f.length;){var p=f[l++];"."==p?d&&l==f.length&&h.push(""):".."==p?((1<h.length||1==h.length&&
""!=h[0])&&h.pop(),d&&l==f.length&&h.push("")):(h.push(p),d=!0)}d=h.join("/")}else d=f}c?b.wa(d):c=a.Xc();c?b.Sa(a.Rc()):c=a.Vc();c&&b.va(a.X);return b};e.clone=function(){return new T(this)};e.xa=function(a,b){this.F();if(this.C=b?W(a,!0):a)this.C=this.C.replace(/:$/,"");return this};e.Yc=function(){return!!this.C};e.Ta=function(a,b){this.F();this.ca=b?W(a):a;return this};e.Zc=function(){return!!this.ca};e.ua=function(a,b){this.F();this.W=b?W(a,!0):a;return this};e.Ja=function(){return!!this.W};
e.Ra=function(a){this.F();if(a){a=Number(a);if(isNaN(a)||0>a)throw Error("Bad port number "+a);this.N=a}else this.N=null;return this};e.Wc=function(){return null!=this.N};e.wa=function(a,b){this.F();this.H=b?W(a,!0):a;return this};e.vb=function(){return!!this.H};e.Xc=function(){return""!==this.w.toString()};e.Sa=function(a,b){this.F();a instanceof U?(this.w=a,this.w.Qa(this.m)):(b||(a=V(a,bb)),this.w=new U(a,null,this.m));return this};e.Sc=function(){return this.w.toString()};e.Rc=function(){return this.w.Yd()};
e.va=function(a,b){this.F();this.X=b?W(a):a;return this};e.Vc=function(){return!!this.X};e.F=function(){if(this.ed)throw Error("Tried to modify a read-only Uri");};e.Qa=function(a){this.m=a;this.w&&this.w.Qa(a);return this};
var W=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},V=function(a,b,c){return q(a)?(a=encodeURI(a).replace(b,cb),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},cb=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},Ya=/[#\/\?@]/g,$a=/[\#\?:]/g,Za=/[\#\?]/g,bb=/[\#\?@]/g,ab=/#/g,U=function(a,b,c){this.f=this.c=null;this.A=a||null;this.m=!!c};e=U.prototype;
e.G=function(){if(!this.c&&(this.c=new C,this.f=0,this.A)){var a=this;Xa(this.A,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)})}};e.add=function(a,b){this.G();this.M();a=this.L(a);var c=this.c.get(a);c||this.c.set(a,c=[]);c.push(b);this.f+=1;return this};e.remove=function(a){this.G();a=this.L(a);return this.c.J(a)?(this.M(),this.f-=this.c.get(a).length,this.c.remove(a)):!1};e.clear=function(){this.M();this.c=null;this.f=0};e.J=function(a){this.G();a=this.L(a);return this.c.J(a)};
e.B=function(){this.G();for(var a=this.c.l(),b=this.c.B(),c=[],d=0;d<b.length;d++)for(var f=a[d],h=0;h<f.length;h++)c.push(b[d]);return c};e.l=function(a){this.G();var b=[];if(q(a))this.J(a)&&(b=ua(b,this.c.get(this.L(a))));else{a=this.c.l();for(var c=0;c<a.length;c++)b=ua(b,a[c])}return b};e.set=function(a,b){this.G();this.M();a=this.L(a);this.J(a)&&(this.f-=this.c.get(a).length);this.c.set(a,[b]);this.f+=1;return this};e.get=function(a,b){a=a?this.l(a):[];return 0<a.length?String(a[0]):b};
e.Ud=function(a,b){this.remove(a);0<b.length&&(this.M(),this.c.set(this.L(a),va(b)),this.f+=b.length)};e.toString=function(){if(this.A)return this.A;if(!this.c)return"";for(var a=[],b=this.c.B(),c=0;c<b.length;c++)for(var d=b[c],f=encodeURIComponent(String(d)),d=this.l(d),h=0;h<d.length;h++){var l=f;""!==d[h]&&(l+="="+encodeURIComponent(String(d[h])));a.push(l)}return this.A=a.join("&")};e.Yd=function(){return W(this.toString())};e.M=function(){this.A=null};
e.clone=function(){var a=new U;a.A=this.A;this.c&&(a.c=this.c.clone(),a.f=this.f);return a};e.L=function(a){a=String(a);this.m&&(a=a.toLowerCase());return a};e.Qa=function(a){a&&!this.m&&(this.G(),this.M(),this.c.forEach(function(a,c){var b=c.toLowerCase();c!=b&&(this.remove(c),this.Ud(b,a))},this));this.m=a};e.extend=function(a){for(var b=0;b<arguments.length;b++)Ja(arguments[b],function(a,b){this.add(b,a)},this)};var db=function(a,b,c,d,f,h,l,p){this.Kc=a;this.D=b||null;this.mb=c||null;this.pb=d||null;this.wb=void 0!==f?f:null;this.lb=h||null;this.qb=l||null;this.ad=p||!1};
db.prototype.toString=function(){var a=new T;a.xa("https");a.ua("google.com");a.wa("/cast");var b=[];x(this.Kc,function(a){var c="__castAppId__="+a.appId;a.capabilities&&0<a.capabilities.length&&(c=c+"("+a.capabilities.join(","),c+=")");b.push(c)});this.D&&b.push("__castClientId__="+this.D);this.mb&&b.push("__castAutoJoinPolicy__="+this.mb);this.pb&&b.push("__castDefaultActionPolicy__="+this.pb);null!=this.wb&&b.push("__castLaunchTimeout__="+this.wb);this.lb&&b.push("__dialAppName__="+this.lb);this.qb&&
b.push("__dialPostData__="+this.qb);this.ad&&b.push("__castInvisibleSender__=true");a.va(b.join("/"));return a.toString()};var X=function(){this.R={};this.pa={}};X.prototype.Ld=function(a,b){var c=this.R[a];return c?(c.status=b,c.media.forEach(function(a){delete this.pa[a.sessionId+"#"+a.mediaSessionId]},this),delete this.R[a],!0):!1};
X.prototype.Pc=function(a){var b=this.R[a.sessionId];if(b)return b.statusText=a.statusText,b.namespaces=a.namespaces||[],b.receiver.volume=a.receiver.volume,b;var b=new chrome.cast.b(a.sessionId,a.appId,a.displayName,a.appImages,a.receiver),c;for(c in a)"media"==c?b.media=a.media.map(function(a){a=this.ob(a);a.ae=!1;a.ka=!0;return a}.bind(this)):a.hasOwnProperty(c)&&(b[c]=a[c]);return this.R[a.sessionId]=b};
X.prototype.ob=function(a){var b=a.sessionId+"#"+a.mediaSessionId,c=this.pa[b];c||(c=new chrome.cast.media.a(a.sessionId,a.mediaSessionId),this.pa[b]=c,(b=this.R[a.sessionId])&&b.media.push(c));b=c;b.currentItemId=null;b.loadingItemId=null;b.preloadedItemId=null;for(var d in a)"items"!=d&&a.hasOwnProperty(d)&&("volume"==d?(b.volume.level=a.volume.level,b.volume.muted=a.volume.muted):b[d]=a[d]);"currentTime"in a&&(b.Ka=u());if(b.playerState==chrome.cast.media.S.IDLE&&null==b.loadingItemId)b.currentItemId=
null,b.loadingItemId=null,b.preloadedItemId=null,b.items=null;else if(a.hasOwnProperty("items")&&a.items){d=[];var f=b.items,h={};if(f)for(var l=0;l<f.length;l++)h[f[l].itemId]=l;a=a.items;for(f=0;f<a.length;f++){l=a[f];if(!l.media){var p=l.itemId,r=b.items?b.items[h[p]]:null;r&&r.media?l.media=r.media:p==b.currentItemId&&b.media&&(l.media=b.media)}d.push(eb(l))}b.items=d}return c};
X.prototype.Id=function(a){delete this.pa[a.sessionId+"#"+a.mediaSessionId];var b=this.R[a.sessionId];b&&(a=b.media.indexOf(a),-1!=a&&b.media.splice(a,1))};var eb=function(a){var b=new chrome.cast.media.ab(a.media),c;for(c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b};var Y=function(){this.K=new S(this);this.j=null;this.ta=new X;this.P=0;this.Ea=new F;this.aa=new C;this.V=new C;this.oa=new C;this.sa=[];this.Nc=this.Oc.bind(this);this.O=null;this.ma=0},fb=function(a,b){a&&a(b)};e=Y.prototype;e.ha=function(a,b,c){return new Ta(this.P,a,b,c)};
e.$=function(a,b,c){b&&this.Ea.Ic(b);void 0!==c?a.sequenceNumber=c:(a.sequenceNumber=this.P,this.P=(this.P+1)%9007199254740992);c=this.K.Mb(a);b&&c&&(a=this.Ea.Fb(a.sequenceNumber),b=new chrome.cast.Error(chrome.cast.u.INVALID_PARAMETER,c),(a=a.Ga)&&a(b))};
e.la=function(a,b){var c=this;y=this;this.j||(this.j=a,a.invisibleSender||(a=new PresentationRequest(this.Ia()),a.getAvailability().then(function(a){a.onchange=function(){c.j.receiverListener(a.value?chrome.cast.fa.AVAILABLE:chrome.cast.fa.UNAVAILABLE)};a.onchange()},function(){c.j.receiverListener(chrome.cast.fa.AVAILABLE)}),a.onconnectionavailable=function(a){c.yb(a.connection)},(g.navigator||null).presentation.defaultRequest=a,a.reconnect(chrome.cast.Ub).then(function(a){c.K.connect(a)},ba)));
b&&b(void 0)};e.yb=function(a){this.K.connect(a)};
e.requestSession=function(a,b,c){var d=this;this.O?fb(b,new chrome.cast.Error(chrome.cast.u.INVALID_PARAMETER,"Already requesting session")):(c=this.Ia(c),this.O=a,(new PresentationRequest(c.toString())).start().then(function(a){d.yb(a);a.onclose=function(a){"error"==a.reason&&(a=new chrome.cast.Error(chrome.cast.u.SESSION_ERROR),b&&b(a))}}).catch(function(a){d.O=null;a=new chrome.cast.Error("AbortError"==a.name?chrome.cast.u.CANCEL:chrome.cast.u.SESSION_ERROR);b&&b(a)}))};
e.Ia=function(a){var b=null,c=null,d=a||this.j.sessionRequest,f=d.dialRequest;f&&(b=f.appName,(c=f.launchParameter)&&!c.match(gb)&&(c=Ia(c)));var h=[];h.push({appId:d.appId,capabilities:d.capabilities});a||x(this.j.additionalSessionRequests,function(a){h.push({appId:a.appId,capabilities:a.capabilities})});return(new db(h,this.K.D,this.j.autoJoinPolicy,this.j.defaultActionPolicy,d.requestSessionTimeout,b,c,this.j.invisibleSender)).toString()};
e.Jb=function(a,b,c,d){var f=this;this.ma++;this.Kb(null,b,a,function(a){f.ma--;a.ka=!0;c&&c(a)},function(a){f.ma--;d(a)},chrome.cast.media.timeout.load)};e.i=function(a,b,c,d,f,h){var l=this;this.Kb(a,b,c,function(a){l.nb(a);d&&d(void 0)},f,h)};e.Kb=function(a,b,c,d,f,h){c.type=b;null!=a&&(c.mediaSessionId=a.mediaSessionId,c.sessionId=a.sessionId);this.Ib(c,function(a){a.status&&1==a.status.length?d&&d(a.status[0]):(a=new chrome.cast.Error(chrome.cast.u.SESSION_ERROR),f&&f(a))},f,h)};
e.setReceiverVolume=function(a,b,c,d){b.sessionId=a;this.$(new R("v2_message",b,void 0,chrome.cast.timeout.setReceiverVolume),this.ha(c,d,chrome.cast.timeout.sendCustomMessage))};e.Oa=function(a){var b=this;(new PresentationRequest(this.Ia())).reconnect(chrome.cast.ic+a).then(function(a){b.K.connect(a)},ba)};e.leaveSession=function(a,b,c){this.$(new R("leave_session",a,void 0,chrome.cast.timeout.leaveSession),this.ha(b,c,chrome.cast.timeout.leaveSession))};
e.Nd=function(a,b,c){this.$(new R("app_message",a,void 0,chrome.cast.timeout.sendCustomMessage),this.ha(b,c,chrome.cast.timeout.sendCustomMessage))};e.Ib=function(a,b,c,d){this.$(new R("v2_message",a,void 0,d),this.ha(b,c,d))};var hb=function(a,b,c){var d=a.get(b);d||(d=new L,a.set(b,d));d.add(c)};e=Y.prototype;e.Jc=function(a,b){hb(this.aa,a,b)};e.Md=function(a,b){(a=this.aa.get(a))&&a.remove(b)};e.Ca=function(a){this.sa.push(a)};e.Ma=function(a){a=this.sa.indexOf(a);0<=a&&this.sa.splice(a,1)};
e.Ec=function(a,b,c){var d=this.V.get(a);d||(d=new C,this.V.set(a,d));a=d.get(b);a||(a=new L,d.set(b,a));a.add(c)};e.Hd=function(a,b,c){(a=this.V.get(a))&&(b=a.get(b))&&b.remove(c)};e.Ba=function(a,b){hb(this.oa,a,b)};e.La=function(a,b){(a=this.oa.get(a))&&a.remove(b)};e.Gc=function(a,b){-1==a.ba.indexOf(b)&&a.ba.push(b)};e.Jd=function(a,b){b=a.ba.indexOf(b);-1!=b&&a.ba.splice(b,1)};e.bd=function(a){var b=this.Ea.Fb(a.sequenceNumber);b&&(b="error"==a.type?b.Ga:b.Vd)&&b(a.message)};
e.dd=function(a){return a.playerState!=chrome.cast.media.S.IDLE||null!=a.loadingItemId};e.nb=function(a){if(a.ka){var b=this.dd(a);a.ba.forEach(function(a){a(b)});b||this.ta.Id(a)}else if(!(0<this.ma)){a.ka=!0;var c=this.oa.get(a.sessionId);c&&B(c.v(),function(b){b(a)})}};e.Oc=function(a){return this.ta.ob(a)};e.jd=function(a){switch(a.type){case "new_session":case "update_session":a.message=this.ta.Pc(a.message);break;case "v2_message":(a=a.message)&&"MEDIA_STATUS"==a.type&&a.status&&(a.status=a.status.map(this.Nc))}};
e.Gb=function(a,b){this.K.disconnect();var c=b!=chrome.cast.T.STOPPED;this.ta.Ld(a,b)&&(this.V.remove(a),this.oa.remove(a),b=this.aa.get(a))&&(this.aa.remove(a),B(b.v(),function(a){a(c)}))};
e.onMessage=function(a){this.jd(a);this.bd(a);var b=a.message;if(b)switch(a.type){case "receiver_action":this.qd(b);break;case "new_session":this.pd(b);break;case "update_session":this.td(b);break;case "disconnect_session":this.nd(b);break;case "remove_session":this.rd(b);break;case "app_message":this.ld(b);break;case "v2_message":this.ud(b);break;case "custom_dial_launch":this.md(a.sequenceNumber,b)}};e.pd=function(a){this.O?(this.O(a),this.O=null):this.j&&this.j.sessionListener(a)};
e.td=function(a){(a=this.aa.get(a.sessionId))&&B(a.v(),function(a){a(!0)})};e.qd=function(a){this.sa.forEach(function(b){b(a.receiver,a.action)},this)};e.nd=function(a){this.Gb(a,chrome.cast.T.DISCONNECTED)};e.rd=function(a){this.Gb(a,chrome.cast.T.STOPPED)};e.ld=function(a){var b=this.V.get(a.sessionId);b&&(b=b.get(a.namespaceName))&&B(b.v(),function(b){b(a.namespaceName,a.message)})};e.ud=function(a){"MEDIA_STATUS"==a.type&&a.status.forEach(this.nb.bind(this))};
e.Pa=function(a,b){this.$(new R("custom_dial_launch",b,void 0,chrome.cast.timeout.sendCustomMessage),null,a)};e.md=function(a,b){var c=this;this.j.customDialLaunchCallback?this.j.customDialLaunchCallback(b).then(function(b){c.Pa(a,b)},function(){c.Pa(a)}):this.Pa(a)};var gb=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Z=new Y;chrome.cast.la=function(a,b,c){Z.la(a,b,c)};k("chrome.cast.initialize",chrome.cast.la,void 0);chrome.cast.$c=function(a,b,c){var d=new Y;d.la(a,b,c);return d};k("chrome.cast.initializeWithContext",chrome.cast.$c,void 0);chrome.cast.requestSession=function(a,b,c){Z.requestSession(a,b,c)};k("chrome.cast.requestSession",chrome.cast.requestSession,void 0);chrome.cast.Oa=function(a){chrome.cast.Hb(Z,a)};k("chrome.cast.requestSessionById",chrome.cast.Oa,void 0);chrome.cast.Hb=function(a,b){a.Oa(b)};
k("chrome.cast.requestSessionByIdWithContext",chrome.cast.Hb,void 0);chrome.cast.Ca=function(a){Z.Ca(a)};k("chrome.cast.addReceiverActionListener",chrome.cast.Ca,void 0);chrome.cast.Ma=function(a){Z.Ma(a)};k("chrome.cast.removeReceiverActionListener",chrome.cast.Ma,void 0);chrome.cast.hd=function(){};k("chrome.cast.logMessage",chrome.cast.hd,void 0);chrome.cast.Od=function(a,b){b()};k("chrome.cast.setCustomReceivers",chrome.cast.Od,void 0);chrome.cast.Rd=function(a,b){b()};
k("chrome.cast.setReceiverDisplayStatus",chrome.cast.Rd,void 0);chrome.cast.unescape=function(a){return-1!=a.indexOf("&")?"document"in g?qa(a):ra(a):a};k("chrome.cast.unescape",chrome.cast.unescape,void 0);chrome.cast.isAvailable=!1;k("chrome.cast.isAvailable",chrome.cast.isAvailable,void 0);chrome.cast.Qb=!1;chrome.cast.Ua=function(){if(!chrome.cast.Qb){chrome.cast.Qb=!0;chrome.cast.isAvailable=!0;var a=window.__onGCastApiAvailable;a&&"function"==typeof a&&a(!0)}};
"complete"==document.readyState?chrome.cast.Ua():(window.addEventListener("load",chrome.cast.Ua,!1),window.addEventListener("DOMContentLoaded",chrome.cast.Ua,!1));}).call(window);
