text: (function(){'use strict';var f,aa="function"==typeof Object.create?Object.create:function(a){var b=function(){};b.prototype=a;return new b},h;if("function"==typeof Object.setPrototypeOf)h=Object.setPrototypeOf;else{var k;a:{var ba={Db:!0},ca={};try{ca.__proto__=ba;k=ca.Db;break a}catch(a){}k=!1}h=k?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
  var da=h,ea="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},m="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,fa=function(){fa=function(){};m.Symbol||(m.Symbol=ha)},ha=function(){var a=0;return function(b){return"jscomp_symbol_"+(b||"")+a++}}(),n=function(){fa();var a=m.Symbol.iterator;a||(a=m.Symbol.iterator=m.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&
  ea(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return ia(this)}});n=function(){}},ia=function(a){var b=0;return ja(function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}})},ja=function(a){n();a={next:a};a[m.Symbol.iterator]=function(){return this};return a},ka=function(a){n();var b=a[Symbol.iterator];return b?b.call(a):ia(a)},q=this,la=function(){},r=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},t=function(a){var b=
  r(a);return"array"==b||"object"==b&&"number"==typeof a.length},ma="closure_uid_"+(1E9*Math.random()>>>0),na=0,oa=function(a,b,c){return a.call.apply(a.bind,arguments)},pa=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)}},v=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?
  v=oa:v=pa;return v.apply(null,arguments)},w=function(a,b){a=a.split(".");var c=q;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},qa=function(a,b){function c(){}c.prototype=b.prototype;a.mc=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.pc=function(a,c,g){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];return b.prototype[c].apply(a,d)}};var chrome=chrome||window.chrome||{};chrome.cast=chrome.cast||{};chrome.cast.media=chrome.cast.media||{};chrome.cast.VERSION=[1,2];w("chrome.cast.VERSION",chrome.cast.VERSION);chrome.cast.oc=!0;w("chrome.cast.usingPresentationApi",chrome.cast.oc);chrome.cast.Error=function(a,b,c){this.code=a;this.description=b||null;this.details=c||null};w("chrome.cast.Error",chrome.cast.Error);chrome.cast.pb=function(a){this.platform=a;this.packageId=this.url=null};w("chrome.cast.SenderApplication",chrome.cast.pb);chrome.cast.Image=function(a){this.url=a;this.width=this.height=null};w("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};w("chrome.cast.Volume",chrome.cast.Volume);var ra=/&/g,sa=/</g,ta=/>/g,ua=/"/g,va=/'/g,wa=/\x00/g,xa=/[\x00&<>"']/,za=function(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var c=q.document.createElement("div");return a.replace(ya,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})},Aa=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)}})},ya=/&([^;\s<&]+);?/g;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"};w("chrome.cast.AutoJoinPolicy",chrome.cast.ha);chrome.cast.ja={CREATE_SESSION:"create_session",CAST_THIS_TAB:"cast_this_tab"};w("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"};
  w("chrome.cast.Capability",chrome.cast.U);chrome.cast.s={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"};w("chrome.cast.ErrorCode",chrome.cast.s);chrome.cast.M={AVAILABLE:"available",UNAVAILABLE:"unavailable"};
  w("chrome.cast.ReceiverAvailability",chrome.cast.M);chrome.cast.qb={CHROME:"chrome",IOS:"ios",ANDROID:"android"};w("chrome.cast.SenderPlatform",chrome.cast.qb);chrome.cast.sa={CAST:"cast",DIAL:"dial",HANGOUT:"hangout",CUSTOM:"custom"};w("chrome.cast.ReceiverType",chrome.cast.sa);chrome.cast.Ra={RUNNING:"running",STOPPED:"stopped",ERROR:"error"};w("chrome.cast.DialAppState",chrome.cast.Ra);chrome.cast.lb={CAST:"cast",STOP:"stop"};w("chrome.cast.ReceiverAction",chrome.cast.lb);
  chrome.cast.H={CONNECTED:"connected",DISCONNECTED:"disconnected",STOPPED:"stopped"};w("chrome.cast.SessionStatus",chrome.cast.H);chrome.cast.Bb={ATTENUATION:"attenuation",FIXED:"fixed",MASTER:"master"};w("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=[]};w("chrome.cast.ApiConfig",chrome.cast.Na);chrome.cast.Ua=function(a,b){this.appName=a;this.launchParameter=b||null};w("chrome.cast.DialRequest",chrome.cast.Ua);
  chrome.cast.Sa=function(a,b,c){this.receiver=a;this.appState=b;this.extraData=c||null};w("chrome.cast.DialLaunchData",chrome.cast.Sa);chrome.cast.Ta=function(a,b){this.doLaunch=a;this.launchParameter=b||null};w("chrome.cast.DialLaunchResponse",chrome.cast.Ta);chrome.cast.rb=function(a,b,c){this.appId=a;this.capabilities="array"==r(b)?b:[chrome.cast.U.VIDEO_OUT,chrome.cast.U.AUDIO_OUT];this.requestSessionTimeout=c||chrome.cast.timeout.requestSession;this.dialRequest=this.language=null};
  w("chrome.cast.SessionRequest",chrome.cast.rb);
  chrome.cast.kb=function(a,b,c,d){this.label=a;a=b;xa.test(a)&&(-1!=a.indexOf("&")&&(a=a.replace(ra,"&amp;")),-1!=a.indexOf("<")&&(a=a.replace(sa,"&lt;")),-1!=a.indexOf(">")&&(a=a.replace(ta,"&gt;")),-1!=a.indexOf('"')&&(a=a.replace(ua,"&quot;")),-1!=a.indexOf("'")&&(a=a.replace(va,"&#39;")),-1!=a.indexOf("\x00")&&(a=a.replace(wa,"&#0;")));this.friendlyName=a;this.capabilities=c||[];this.volume=d||null;this.receiverType=chrome.cast.sa.CAST;this.displayStatus=this.isActiveInput=null};
  w("chrome.cast.Receiver",chrome.cast.kb);chrome.cast.mb=function(a,b){this.statusText=a;this.appImages=b;this.showStop=null};w("chrome.cast.ReceiverDisplayStatus",chrome.cast.mb);chrome.cast.va=function(){this.requestSession=6E4;this.sendCustomMessage=this.setReceiverVolume=this.stopSession=this.leaveSession=3E3};w("chrome.cast.Timeout",chrome.cast.va);chrome.cast.timeout=new chrome.cast.va;w("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"};w("chrome.cast.media.MediaCommand",chrome.cast.media.ab);chrome.cast.media.l={GENERIC:0,MOVIE:1,TV_SHOW:2,MUSIC_TRACK:3,PHOTO:4};w("chrome.cast.media.MetadataType",chrome.cast.media.l);chrome.cast.media.G={IDLE:"IDLE",PLAYING:"PLAYING",PAUSED:"PAUSED",BUFFERING:"BUFFERING"};w("chrome.cast.media.PlayerState",chrome.cast.media.G);
  chrome.cast.media.V={OFF:"REPEAT_OFF",ALL:"REPEAT_ALL",SINGLE:"REPEAT_SINGLE",ALL_AND_SHUFFLE:"REPEAT_ALL_AND_SHUFFLE"};w("chrome.cast.media.RepeatMode",chrome.cast.media.V);chrome.cast.media.nb={PLAYBACK_START:"PLAYBACK_START",PLAYBACK_PAUSE:"PLAYBACK_PAUSE"};w("chrome.cast.media.ResumeState",chrome.cast.media.nb);chrome.cast.media.ua={BUFFERED:"BUFFERED",LIVE:"LIVE",OTHER:"OTHER"};w("chrome.cast.media.StreamType",chrome.cast.media.ua);
  chrome.cast.media.Ya={CANCELLED:"CANCELLED",INTERRUPTED:"INTERRUPTED",FINISHED:"FINISHED",ERROR:"ERROR"};w("chrome.cast.media.IdleReason",chrome.cast.media.Ya);chrome.cast.media.zb={TEXT:"TEXT",AUDIO:"AUDIO",VIDEO:"VIDEO"};w("chrome.cast.media.TrackType",chrome.cast.media.zb);chrome.cast.media.wb={SUBTITLES:"SUBTITLES",CAPTIONS:"CAPTIONS",DESCRIPTIONS:"DESCRIPTIONS",CHAPTERS:"CHAPTERS",METADATA:"METADATA"};w("chrome.cast.media.TextTrackType",chrome.cast.media.wb);
  chrome.cast.media.sb={NONE:"NONE",OUTLINE:"OUTLINE",DROP_SHADOW:"DROP_SHADOW",RAISED:"RAISED",DEPRESSED:"DEPRESSED"};w("chrome.cast.media.TextTrackEdgeType",chrome.cast.media.sb);chrome.cast.media.xb={NONE:"NONE",NORMAL:"NORMAL",ROUNDED_CORNERS:"ROUNDED_CORNERS"};w("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"};w("chrome.cast.media.TextTrackFontGenericFamily",chrome.cast.media.tb);chrome.cast.media.ub={NORMAL:"NORMAL",BOLD:"BOLD",BOLD_ITALIC:"BOLD_ITALIC",ITALIC:"ITALIC"};w("chrome.cast.media.TextTrackFontStyle",chrome.cast.media.ub);chrome.cast.media.ka=function(){this.customData=null};w("chrome.cast.media.GetStatusRequest",chrome.cast.media.ka);chrome.cast.media.la=function(){this.customData=null};w("chrome.cast.media.PauseRequest",chrome.cast.media.la);chrome.cast.media.ma=function(){this.customData=null};w("chrome.cast.media.PlayRequest",chrome.cast.media.ma);chrome.cast.media.ob=function(){this.customData=this.resumeState=this.currentTime=null};w("chrome.cast.media.SeekRequest",chrome.cast.media.ob);
  chrome.cast.media.ta=function(){this.customData=null};w("chrome.cast.media.StopRequest",chrome.cast.media.ta);chrome.cast.media.Cb=function(a){this.volume=a;this.customData=null};w("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};w("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};w("chrome.cast.media.EditTracksInfoRequest",chrome.cast.media.Va);chrome.cast.media.Xa=function(){this.metadataType=this.type=chrome.cast.media.l.GENERIC;this.releaseDate=this.releaseYear=this.images=this.subtitle=this.title=null};w("chrome.cast.media.GenericMediaMetadata",chrome.cast.media.Xa);
  chrome.cast.media.cb=function(){this.metadataType=this.type=chrome.cast.media.l.MOVIE;this.releaseDate=this.releaseYear=this.images=this.subtitle=this.studio=this.title=null};w("chrome.cast.media.MovieMediaMetadata",chrome.cast.media.cb);chrome.cast.media.Ab=function(){this.metadataType=this.type=chrome.cast.media.l.TV_SHOW;this.originalAirdate=this.releaseYear=this.images=this.episode=this.episodeNumber=this.season=this.seasonNumber=this.episodeTitle=this.title=this.seriesTitle=null};
  w("chrome.cast.media.TvShowMediaMetadata",chrome.cast.media.Ab);chrome.cast.media.eb=function(){this.metadataType=this.type=chrome.cast.media.l.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};w("chrome.cast.media.MusicTrackMediaMetadata",chrome.cast.media.eb);
  chrome.cast.media.gb=function(){this.metadataType=this.type=chrome.cast.media.l.PHOTO;this.creationDateTime=this.height=this.width=this.longitude=this.latitude=this.images=this.location=this.artist=this.title=null};w("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};
  w("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};w("chrome.cast.media.QueueItem",chrome.cast.media.oa);chrome.cast.media.Qa="CC1AD845";w("chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID",chrome.cast.media.Qa);chrome.cast.media.timeout={};chrome.cast.media.timeout.load=0;w("chrome.cast.media.timeout.load",chrome.cast.media.timeout.load);
  chrome.cast.media.timeout.O=0;w("chrome.cast.media.timeout.getStatus",chrome.cast.media.timeout.O);chrome.cast.media.timeout.play=0;w("chrome.cast.media.timeout.play",chrome.cast.media.timeout.play);chrome.cast.media.timeout.pause=0;w("chrome.cast.media.timeout.pause",chrome.cast.media.timeout.pause);chrome.cast.media.timeout.seek=0;w("chrome.cast.media.timeout.seek",chrome.cast.media.timeout.seek);chrome.cast.media.timeout.stop=0;w("chrome.cast.media.timeout.stop",chrome.cast.media.timeout.stop);
  chrome.cast.media.timeout.S=0;w("chrome.cast.media.timeout.setVolume",chrome.cast.media.timeout.S);chrome.cast.media.timeout.N=0;w("chrome.cast.media.timeout.editTracksInfo",chrome.cast.media.timeout.N);chrome.cast.media.timeout.j=0;w("chrome.cast.media.timeout.queue",chrome.cast.media.timeout.j);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};w("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};w("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};
  w("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};w("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};w("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};w("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};w("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};w("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};w("chrome.cast.media.QueueReorderItemsRequest",chrome.cast.media.qa);var Ba=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"==typeof a?a.split(""):a,g=0;g<d;g++)g in e&&b.call(c,e[g],g,a)},Ca=function(a,b){for(var c=a.length,d="string"==typeof 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};chrome.cast.media.a=function(a,b){this.sessionId=a;this.mediaSessionId=b;this.media=null;this.playbackRate=1;this.playerState=chrome.cast.media.G.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.f=!1;this.b=[]};w("chrome.cast.media.Media",chrome.cast.media.a);
  chrome.cast.media.a.prototype.O=function(a,b,c){a||(a=new chrome.cast.media.ka);x.b(this,"MEDIA_GET_STATUS",a,b,c,chrome.cast.media.timeout.O)};chrome.cast.media.a.prototype.getStatus=chrome.cast.media.a.prototype.O;chrome.cast.media.a.prototype.play=function(a,b,c){this.Aa(x,a,b,c)};chrome.cast.media.a.prototype.play=chrome.cast.media.a.prototype.play;chrome.cast.media.a.prototype.Aa=function(a,b,c,d){b||(b=new chrome.cast.media.ma);a.b(this,"PLAY",b,c,d,chrome.cast.media.timeout.play)};
  chrome.cast.media.a.prototype.playWithContext=chrome.cast.media.a.prototype.Aa;chrome.cast.media.a.prototype.pause=function(a,b,c){this.za(x,a,b,c)};chrome.cast.media.a.prototype.pause=chrome.cast.media.a.prototype.pause;chrome.cast.media.a.prototype.za=function(a,b,c,d){b||(b=new chrome.cast.media.la);a.b(this,"PAUSE",b,c,d,chrome.cast.media.timeout.pause)};chrome.cast.media.a.prototype.pauseWithContext=chrome.cast.media.a.prototype.za;
  chrome.cast.media.a.prototype.seek=function(a,b,c){x.b(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.ta);x.b(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.S=function(a,b,c){x.b(this,"MEDIA_SET_VOLUME",a,b,c,chrome.cast.media.timeout.S)};
  chrome.cast.media.a.prototype.setVolume=chrome.cast.media.a.prototype.S;chrome.cast.media.a.prototype.N=function(a,b,c){x.b(this,"EDIT_TRACKS_INFO",a,b,c,chrome.cast.media.timeout.N)};chrome.cast.media.a.prototype.editTracksInfo=chrome.cast.media.a.prototype.N;chrome.cast.media.a.prototype.Sb=function(a,b,c){x.b(this,"QUEUE_INSERT",a,b,c,chrome.cast.media.timeout.j)};chrome.cast.media.a.prototype.queueInsertItems=chrome.cast.media.a.prototype.Sb;
  chrome.cast.media.a.prototype.Rb=function(a,b,c){x.b(this,"QUEUE_INSERT",new chrome.cast.media.na([a]),b,c,chrome.cast.media.timeout.j)};chrome.cast.media.a.prototype.queueAppendItem=chrome.cast.media.a.prototype.Rb;chrome.cast.media.a.prototype.cc=function(a,b,c){x.b(this,"QUEUE_UPDATE",a,b,c,chrome.cast.media.timeout.j)};chrome.cast.media.a.prototype.queueUpdateItems=chrome.cast.media.a.prototype.cc;
  chrome.cast.media.a.prototype.Xb=function(a,b){var c=new chrome.cast.media.L;c.jump=-1;x.b(this,"QUEUE_UPDATE",c,a,b,chrome.cast.media.timeout.j)};chrome.cast.media.a.prototype.queuePrev=chrome.cast.media.a.prototype.Xb;chrome.cast.media.a.prototype.Wb=function(a,b){var c=new chrome.cast.media.L;c.jump=1;x.b(this,"QUEUE_UPDATE",c,a,b,chrome.cast.media.timeout.j)};chrome.cast.media.a.prototype.queueNext=chrome.cast.media.a.prototype.Wb;
  chrome.cast.media.a.prototype.Tb=function(a,b,c){if(!(0>y(this,a))){var d=new chrome.cast.media.L;d.currentItemId=a;x.b(this,"QUEUE_UPDATE",d,b,c,chrome.cast.media.timeout.j)}};chrome.cast.media.a.prototype.queueJumpToItem=chrome.cast.media.a.prototype.Tb;chrome.cast.media.a.prototype.bc=function(a,b,c){var d=new chrome.cast.media.ra;d.repeatMode=a;x.b(this,"QUEUE_UPDATE",d,b,c,chrome.cast.media.timeout.j)};chrome.cast.media.a.prototype.queueSetRepeatMode=chrome.cast.media.a.prototype.bc;
  chrome.cast.media.a.prototype.Zb=function(a,b,c){x.b(this,"QUEUE_REMOVE",a,b,c,chrome.cast.media.timeout.j)};chrome.cast.media.a.prototype.queueRemoveItems=chrome.cast.media.a.prototype.Zb;chrome.cast.media.a.prototype.Yb=function(a,b,c){0>y(this,a)||x.b(this,"QUEUE_REMOVE",new chrome.cast.media.pa([a]),b,c,chrome.cast.media.timeout.j)};chrome.cast.media.a.prototype.queueRemoveItem=chrome.cast.media.a.prototype.Yb;chrome.cast.media.a.prototype.ac=function(a,b,c){x.b(this,"QUEUE_REORDER",a,b,c,chrome.cast.media.timeout.j)};
  chrome.cast.media.a.prototype.queueReorderItems=chrome.cast.media.a.prototype.ac;chrome.cast.media.a.prototype.Vb=function(a,b,c,d){var e=y(this,a);if(!(0>e))if(0>b)d&&d(new chrome.cast.Error(chrome.cast.s.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;x.b(this,"QUEUE_REORDER",a,c,d,chrome.cast.media.timeout.j)}};chrome.cast.media.a.prototype.queueMoveItemToNewIndex=chrome.cast.media.a.prototype.Vb;
  chrome.cast.media.a.prototype.nc=function(a){return-1<this.supportedMediaCommands.indexOf(a)};chrome.cast.media.a.prototype.supportsCommand=chrome.cast.media.a.prototype.nc;chrome.cast.media.a.prototype.Kb=function(){if(this.playerState==chrome.cast.media.G.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.a.prototype.getEstimatedTime=chrome.cast.media.a.prototype.Kb;chrome.cast.media.a.prototype.Y=function(a){this.I(x,a)};chrome.cast.media.a.prototype.addUpdateListener=chrome.cast.media.a.prototype.Y;chrome.cast.media.a.prototype.I=function(a,b){a.Fb(this,b)};chrome.cast.media.a.prototype.addUpdateListenerWithContext=chrome.cast.media.a.prototype.I;chrome.cast.media.a.prototype.ba=function(a){this.K(x,a)};chrome.cast.media.a.prototype.removeUpdateListener=chrome.cast.media.a.prototype.ba;
  chrome.cast.media.a.prototype.K=function(a,b){x.ec(this,b)};chrome.cast.media.a.prototype.removeUpdateListenerWithContext=chrome.cast.media.a.prototype.K;var y=function(a,b){return Ca(a.items,function(a){return a.itemId==b})};var x=null;var Da=function(a,b,c){this.sessionId=a;this.namespaceName=b;this.message=c};var Ea=function(a,b){this.type="SET_VOLUME";this.requestId=0;this.volume=a;this.expectedVolume=b||null};var Fa=function(a){this.type="STOP";this.requestId=0;this.sessionId=a||null};chrome.cast.c=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.H.CONNECTED;this.transportId=""};w("chrome.cast.Session",chrome.cast.c);chrome.cast.c.prototype.lc=function(a,b,c){this.Ha(x,a,b,c)};chrome.cast.c.prototype.setReceiverVolumeLevel=chrome.cast.c.prototype.lc;
  chrome.cast.c.prototype.Ha=function(a,b,c,d){b=new Ea(new chrome.cast.Volume(b,null),this.receiver.volume);a.setReceiverVolume(this.sessionId,b,c,d)};chrome.cast.c.prototype.setReceiverVolumeLevelWithContext=chrome.cast.c.prototype.Ha;chrome.cast.c.prototype.kc=function(a,b,c){this.Ga(x,a,b,c)};chrome.cast.c.prototype.setReceiverMuted=chrome.cast.c.prototype.kc;
  chrome.cast.c.prototype.Ga=function(a,b,c,d){a=new Ea(new chrome.cast.Volume(null,b),this.receiver.volume);x.setReceiverVolume(this.sessionId,a,c,d)};chrome.cast.c.prototype.setReceiverMutedWithContext=chrome.cast.c.prototype.Ga;chrome.cast.c.prototype.Mb=function(a,b){x.leaveSession(this.sessionId,a,b)};chrome.cast.c.prototype.leave=chrome.cast.c.prototype.Mb;chrome.cast.c.prototype.stop=function(a,b){this.Ja(x,a,b)};chrome.cast.c.prototype.stop=chrome.cast.c.prototype.stop;
  chrome.cast.c.prototype.Ja=function(a,b,c){a.Ea(new Fa(this.sessionId),b,c,chrome.cast.timeout.stopSession)};chrome.cast.c.prototype.stopWithContext=chrome.cast.c.prototype.Ja;chrome.cast.c.prototype.sendMessage=function(a,b,c,d){this.Fa(x,a,b,c,d)};chrome.cast.c.prototype.sendMessage=chrome.cast.c.prototype.sendMessage;chrome.cast.c.prototype.Fa=function(a,b,c,d,e){a.hc(new Da(this.sessionId,b,c),d,e)};chrome.cast.c.prototype.sendMessageWithContext=chrome.cast.c.prototype.Fa;
  chrome.cast.c.prototype.Y=function(a){this.I(x,a)};chrome.cast.c.prototype.addUpdateListener=chrome.cast.c.prototype.Y;chrome.cast.c.prototype.I=function(a,b){a.Hb(this.sessionId,b)};chrome.cast.c.prototype.addUpdateListenerWithContext=chrome.cast.c.prototype.I;chrome.cast.c.prototype.ba=function(a){this.K(x,a)};chrome.cast.c.prototype.removeUpdateListener=chrome.cast.c.prototype.ba;chrome.cast.c.prototype.K=function(a,b){a.gc(this.sessionId,b)};
  chrome.cast.c.prototype.removeUpdateListenerWithContext=chrome.cast.c.prototype.K;chrome.cast.c.prototype.Gb=function(a,b){this.xa(x,a,b)};chrome.cast.c.prototype.addMessageListener=chrome.cast.c.prototype.Gb;chrome.cast.c.prototype.xa=function(a,b,c){a.Eb(this.sessionId,b,c)};chrome.cast.c.prototype.addMessageListenerWithContext=chrome.cast.c.prototype.xa;chrome.cast.c.prototype.W=function(a){this.wa(x,a)};chrome.cast.c.prototype.addMediaListener=chrome.cast.c.prototype.W;
  chrome.cast.c.prototype.wa=function(a,b){a.W(this.sessionId,b)};chrome.cast.c.prototype.addMediaListenerWithContext=chrome.cast.c.prototype.wa;chrome.cast.c.prototype.Z=function(a){this.Ba(x,a)};chrome.cast.c.prototype.removeMediaListener=chrome.cast.c.prototype.Z;chrome.cast.c.prototype.Ba=function(a,b){a.Z(this.sessionId,b)};chrome.cast.c.prototype.removeMediaListenerWithContext=chrome.cast.c.prototype.Ba;chrome.cast.c.prototype.fc=function(a,b){this.Ca(x,a,b)};
  chrome.cast.c.prototype.removeMessageListener=chrome.cast.c.prototype.fc;chrome.cast.c.prototype.Ca=function(a,b,c){a.dc(this.sessionId,b,c)};chrome.cast.c.prototype.removeMessageListenerWithContext=chrome.cast.c.prototype.Ca;chrome.cast.c.prototype.Nb=function(a,b,c){a.sessionId=this.sessionId;x.ia(a,"LOAD",b,c)};chrome.cast.c.prototype.loadMedia=chrome.cast.c.prototype.Nb;chrome.cast.c.prototype.Ub=function(a,b,c){a.sessionId=this.sessionId;x.ia(a,"QUEUE_LOAD",b,c)};
  chrome.cast.c.prototype.queueLoad=chrome.cast.c.prototype.Ub;var Ga=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};var z="StopIteration"in q?q.StopIteration:{message:"StopIteration",stack:""},A=function(){};A.prototype.next=function(){throw z;};A.prototype.u=function(){return this};
  var Ha=function(a){if(a instanceof A)return a;if("function"==typeof a.u)return a.u(!1);if(t(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){if(t(a))try{Ba(a,b,void 0)}catch(c){if(c!==z)throw c;}else{a=Ha(a);try{for(;;)b.call(void 0,a.next(),void 0,a)}catch(c){if(c!==z)throw c;}}};var C=function(a,b){this.b={};this.h=[];this.g=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 if(a){if(a instanceof C)D(a),d=a.h.concat(),c=a.B();else{c=[];var e=0;for(d in a)c[e++]=d;d=c;c=Ga(a)}for(e=0;e<d.length;e++)this.set(d[e],c[e])}};C.prototype.B=function(){D(this);for(var a=[],b=0;b<this.h.length;b++)a.push(this.b[this.h[b]]);return a};
  C.prototype.clear=function(){this.b={};this.g=this.f=this.h.length=0};C.prototype.remove=function(a){return E(this.b,a)?(delete this.b[a],this.f--,this.g++,this.h.length>2*this.f&&D(this),!0):!1};var D=function(a){if(a.f!=a.h.length){for(var b=0,c=0;b<a.h.length;){var d=a.h[b];E(a.b,d)&&(a.h[c++]=d);b++}a.h.length=c}if(a.f!=a.h.length){var e={};for(c=b=0;b<a.h.length;)d=a.h[b],E(e,d)||(a.h[c++]=d,e[d]=1),b++;a.h.length=c}};C.prototype.get=function(a,b){return E(this.b,a)?this.b[a]:b};
  C.prototype.set=function(a,b){E(this.b,a)||(this.f++,this.h.push(a),this.g++);this.b[a]=b};C.prototype.u=function(a){D(this);var b=0,c=this.g,d=this,e=new A;e.next=function(){if(c!=d.g)throw Error("The map has changed since the iterator was created");if(b>=d.h.length)throw z;var e=d.h[b++];return a?e:d.b[e]};return e};var E=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var F=function(a,b){this.requestId=a;this.i=b;this.Ka=null};F.prototype.f=function(){};var Ia=function(){this.b=new C},Ja=function(a,b){a.b.set(b.requestId,b);b.Ka=setTimeout(function(){a.b.remove(b.requestId);b.f()},b.i)},Ka=function(a,b){var c=a.b.get(b);if(!c)return null;clearTimeout(c.Ka);a.b.remove(b);return c};var G;a:{var La=q.navigator;if(La){var Ma=La.userAgent;if(Ma){G=Ma;break a}}G=""}var H=function(a){return-1!=G.indexOf(a)};var I=function(){this.f=this.f;this.o=this.o};I.prototype.f=!1;var Na=H("Opera"),Oa=H("Gecko")&&!(-1!=G.toLowerCase().indexOf("webkit")&&!H("Edge"))&&!(H("Trident")||H("MSIE"))&&!H("Edge"),Pa=-1!=G.toLowerCase().indexOf("webkit")&&!H("Edge");var J=function(a,b,c){I.call(this);this.m=null!=c?v(a,c):a;this.i=b;this.g=v(this.Pb,this);this.b=[]};qa(J,I);f=J.prototype;f.F=!1;f.J=0;f.A=null;f.Jb=function(a){this.b=arguments;this.A||this.J?this.F=!0:K(this)};f.stop=function(){this.A&&(q.clearTimeout(this.A),this.A=null,this.F=!1,this.b=[])};f.pause=function(){this.J++};f.resume=function(){this.J--;this.J||!this.F||this.A||(this.F=!1,K(this))};f.Pb=function(){this.A=null;this.F&&!this.J&&(this.F=!1,K(this))};
  var K=function(a){var b=a.g;var c=a.i;if("function"!=r(b))if(b&&"function"==typeof b.handleEvent)b=v(b.handleEvent,b);else throw Error("Invalid listener argument");b=2147483647<Number(c)?-1:q.setTimeout(b,c||0);a.A=b;a.m.apply(null,a.b)};var Qa=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 L=null,Ra=Oa||Pa&&!Qa||Na||"function"==typeof q.btoa,Sa=function(a){if(Ra)var b=q.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],l=(e=d+1<b.length)?b[d+1]:0,p=d+2<b.length,u=p?b[d+2]:0,X=g>>2;g=(g&3)<<4|l>>4;l=(l&15)<<2|u>>6;u&=63;p||(u=64,e||(l=64));c.push(a[X],a[g],a[l],a[u])}b=
  c.join("")}return b};var Ta=function(a){if(a.B&&"function"==typeof a.B)return a.B();if("string"==typeof a)return a.split("");if(t(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Ga(a)};var M=function(){this.b=new C},N=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+(a[ma]||(a[ma]=++na)):b.substr(0,1)+a};f=M.prototype;f.add=function(a){this.b.set(N(a),a)};f.removeAll=function(a){a=Ta(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c])};f.remove=function(a){return this.b.remove(N(a))};f.clear=function(){this.b.clear()};f.contains=function(a){a=N(a);return E(this.b.b,a)};f.B=function(){return this.b.B()};f.u=function(){return this.b.u(!1)};var Ua=function(a){this.b=a},Wa=function(a){var b=Va.get(a);b||(b=new Ua(a),Va.set(a,b));return b};Ua.prototype.log=function(a,b,c){if(!(1>a)){"function"==typeof b&&(b=b());b=b.replace(Xa,"[Redacted URL]");b=b.replace(Ya,"[Redacted domain/email]");var d={rc:this.b,level:a,time:Date.now(),message:b,qc:c};Za.forEach(function(a){return a(d)})}};Ua.prototype.error=function(a,b){this.log(3,a,b)};
  var $a=function(a){O.log(1,a,void 0)},Za=[],Va=new Map,Ya=/(([\w.+-]+@)|((www|m|mail|ftp)[.]))[\w.-]+[.][\w-]{2,4}/gi,Xa=/(data:|https?:\/\/)\S+/gi;var P=function(a,b,c,d){F.call(this,a,d||6E5);this.g=b;this.b=c};P.prototype=aa(F.prototype);P.prototype.constructor=P;if(da)da(P,F);else for(var Q in F)if("prototype"!=Q)if(Object.defineProperties){var ab=Object.getOwnPropertyDescriptor(F,Q);ab&&Object.defineProperty(P,Q,ab)}else P[Q]=F[Q];P.mc=F.prototype;P.prototype.f=function(){this.b(new chrome.cast.Error(chrome.cast.s.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){this.g=a;this.f=String(Date.now())+String(Math.floor(1E5*Math.random()));this.b=null},bb=function(a,b){if(!a.b)return T.error("No active session"),"No active session";b.clientId=a.f;b=JSON.stringify(b);if(32768<b.length)return T.error("Message length over limit"),"Message length over limit";T.log(0,"Send "+b,void 0);a.b.send(b);return null};S.prototype.connect=function(a){this.b=a;this.b.onmessage=v(this.i,this);bb(this,new R("client_connect",this.f))};
  S.prototype.disconnect=function(){this.b.close();this.b=null};S.prototype.i=function(a){T.log(0,"Receive "+a.data,void 0);a=JSON.parse(a.data);if(a.clientId==this.f)this.g.onMessage(a)};var T=Wa("mr.cast.ExtensionMessenger");var cb=function(a,b,c){this.g=a;this.f=b;this.b=c},db=function(a){var b="cast-dial:"+a.g,c=new URLSearchParams;a.f&&c.set("dialPostData",a.f);a.b&&c.set("clientId",a.b);(a=c.toString())&&(b+="?"+a);return b};var eb=function(a,b,c,d,e,g,l,p,u,X){this.w=a;this.b=b||null;this.f=c||null;this.m=d||null;this.o=void 0!==e?e:null;this.v=g||null;this.D=l||null;this.C=p||!1;this.i=u||null;this.g=X||null},fb=function(a){var b=a.w.map(function(b){var c="cast:"+b.appId,e=new URLSearchParams;b.capabilities&&0<b.capabilities.length&&e.set("capabilities",b.capabilities.join(","));a.b&&e.set("clientId",a.b);a.f&&e.set("autoJoinPolicy",a.f);a.m&&e.set("defaultActionPolicy",a.m);null!=a.o&&e.set("launchTimeout",String(a.o));
  a.C&&e.set("invisibleSender","true");a.i&&(e.set("broadcastNamespace",a.i),e.set("broadcastId",String(Math.random())));a.g&&e.set("broadcastMessage",encodeURIComponent(JSON.stringify(a.g)));return c+"?"+e.toString()});a.v&&b.push(db(new cb(a.v,a.D,a.b)));return b};var gb=function(){this.b={};this.f={}},hb=function(a,b,c){var d=a.b[b];return d?(d.status=c,d.media.forEach(function(b){delete a.f[b.sessionId+"#"+b.mediaSessionId]}),delete a.b[b],!0):!1},jb=function(a,b){var c=a.b[b.sessionId];if(c)return c.statusText=b.statusText,c.namespaces=b.namespaces||[],c.receiver.volume=b.receiver.volume,c;c=new chrome.cast.c(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=ib(a,b);b.i=!1;b.f=!0;return b}):
  b.hasOwnProperty(d)&&(c[d]=b[d]);return a.b[b.sessionId]=c},ib=function(a,b){var c=b.sessionId+"#"+b.mediaSessionId,d=a.f[c];d||(d=new chrome.cast.media.a(b.sessionId,b.mediaSessionId),a.f[c]=d,(a=a.b[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=ka(["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.G.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 l=0;l<g.length;l++)c[g[l].itemId]=l;b=ka(b.items);for(g=b.next();!g.done;g=b.next()){g=g.value;if(!g.media){l=g.itemId;var p=a.items?a.items[c[l]]:null;p&&p.media?g.media=p.media:l==a.currentItemId&&
  a.media&&(g.media=a.media)}e.push(kb(g))}a.items=e}return d},lb=function(a,b){delete a.f[b.sessionId+"#"+b.mediaSessionId];if(a=a.b[b.sessionId])b=a.media.indexOf(b),-1!=b&&a.media.splice(b,1)},kb=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 U=function(){this.v=new S(this);this.f=null;this.T=new gb;this.i=0;this.fa=new Ia;this.w=new C;this.ga=!1;this.o=new C;this.D=new C;this.R=[];this.Pa=this.Ib.bind(this);this.g=null;this.C=0;this.m=null;this.Oa=new J(this.Wa,200,this);this.La=null},mb=function(a){var b=new chrome.cast.Error(chrome.cast.s.INVALID_PARAMETER,"Already requesting session");a&&a(b)},V=function(a,b,c,d){c&&Ja(a.fa,c);void 0!==d?b.sequenceNumber=d:(b.sequenceNumber=a.i,a.i=(a.i+1)%9007199254740992);d=bb(a.v,b);c&&d&&(a=
  Ka(a.fa,b.sequenceNumber),b=new chrome.cast.Error(chrome.cast.s.INVALID_PARAMETER,d),(a=a.b)&&a(b))};
  U.prototype.P=function(a,b){var c=this;x=this;this.f||(this.f=a,a.invisibleSender||(a=new PresentationRequest(W(this)),a.getAvailability().then(function(a){a.onchange=function(){c.ga=!!a.value;c.f.receiverListener(a.value?chrome.cast.M.AVAILABLE:chrome.cast.M.UNAVAILABLE)};a.onchange()},function(){c.f.receiverListener(chrome.cast.M.AVAILABLE)}),a.onconnectionavailable=function(a){Y(c,a.connection)},this.La=(q.navigator||null).presentation.defaultRequest=a,a.reconnect(chrome.cast.Ma).then(function(a){Y(c,
  a)},la)));b&&b(void 0)};U.prototype.da=function(a){a.navigator.presentation.defaultRequest=this.La};
  var Y=function(a,b,c){c=void 0===c?null:c;b.onclose=function(b){a.g=null;switch(b.reason){case "closed":nb(a,chrome.cast.H.DISCONNECTED);break;case "error":c&&(b=new chrome.cast.Error(chrome.cast.s.SESSION_ERROR),c&&c(b))}};b.onterminate=function(){nb(a,chrome.cast.H.STOPPED)};"connected"==b.state?a.v.connect(b):b.onconnect=function(){a.v.connect(b)}},qb=function(a){var b=Z;ob.has(a.type)?b.ga&&(b.m?(a.sessionId=b.m,pb(b,null,a.type,a,function(){$a("Send Broadcast directly succeeded")},function(a){O.error("Send Broadcast directly failed with code "+
  a.code)})):b.Oa.Jb(W(b,void 0,"urn:x-cast:com.google.cast.media",a))):O.error("Unsupported broadcast message type - "+a.type)};U.prototype.Wa=function(a){$a("Broadcast request "+a);(a=(new PresentationRequest(a)).getAvailability())?a.then(function(){$a("Broadcast succeeded")},function(){O.log(2,"Broadcast failed",void 0)}):O.error("presentationRequest.getAvailability return undefined")};
  U.prototype.requestSession=function(a,b,c){var d=this;this.g?mb(b):(c=W(this,c),this.g=a,(new PresentationRequest(c)).start().then(function(a){Y(d,a,b)}).catch(function(a){d.g=null;a=new chrome.cast.Error("AbortError"==a.name||"NotAllowedError"==a.name?chrome.cast.s.CANCEL:chrome.cast.s.SESSION_ERROR);b&&b(a)}))};
  var W=function(a,b,c,d){var e=null,g=null,l=b||a.f.sessionRequest,p=l.dialRequest;p&&(e=p.appName,(g=p.launchParameter)&&!g.match(rb)&&(g=Sa(g)));var u=[];u.push({appId:l.appId,capabilities:l.capabilities});b||Ba(a.f.additionalSessionRequests,function(a){u.push({appId:a.appId,capabilities:a.capabilities})});return fb(new eb(u,a.v.f,a.f.autoJoinPolicy,a.f.defaultActionPolicy,l.requestSessionTimeout,e,g,a.f.invisibleSender,c,d))};
  U.prototype.ia=function(a,b,c,d){var e=this;this.C++;pb(this,null,b,a,function(a){e.C--;a.f=!0;c&&c(a)},function(a){e.C--;d(a)},chrome.cast.media.timeout.load)};U.prototype.b=function(a,b,c,d,e,g){var l=this;pb(this,a,b,c,function(a){l.ya(a);d&&d(void 0)},e,g)};
  var pb=function(a,b,c,d,e,g,l){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.s.SESSION_ERROR),g&&g(a))},g,l)};f=U.prototype;f.setReceiverVolume=function(a,b,c,d){b.sessionId=a;V(this,new R("v2_message",b,void 0,chrome.cast.timeout.setReceiverVolume),new P(this.i,c,d,chrome.cast.timeout.sendCustomMessage))};
  f.ca=function(a){var b=this;(new PresentationRequest(W(this))).reconnect(chrome.cast.fb+a).then(function(a){Y(b,a)},la)};f.leaveSession=function(a,b,c){V(this,new R("leave_session",a,void 0,chrome.cast.timeout.leaveSession),new P(this.i,b,c,chrome.cast.timeout.leaveSession))};f.hc=function(a,b,c){V(this,new R("app_message",a,void 0,chrome.cast.timeout.sendCustomMessage),new P(this.i,b,c,chrome.cast.timeout.sendCustomMessage))};
  f.Ea=function(a,b,c,d){V(this,new R("v2_message",a,void 0,d),new P(this.i,b,c,d))};var sb=function(a,b,c){var d=a.get(b);d||(d=new M,a.set(b,d));d.add(c)};f=U.prototype;f.Hb=function(a,b){sb(this.w,a,b)};f.gc=function(a,b){(a=this.w.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.o.get(a);d||(d=new C,this.o.set(a,d));a=d.get(b);a||(a=new M,d.set(b,a));a.add(c)};
  f.dc=function(a,b,c){(a=this.o.get(a))&&(b=a.get(b))&&b.remove(c)};f.W=function(a,b){sb(this.D,a,b)};f.Z=function(a,b){(a=this.D.get(a))&&a.remove(b)};f.Fb=function(a,b){-1==a.b.indexOf(b)&&a.b.push(b)};f.ec=function(a,b){b=a.b.indexOf(b);-1!=b&&a.b.splice(b,1)};f.ya=function(a){if(a.f){var b=a.playerState!=chrome.cast.media.G.IDLE||null!=a.loadingItemId;a.b.forEach(function(a){a(b)});b||lb(this.T,a)}else if(!(0<this.C)){a.f=!0;var c=this.D.get(a.sessionId);c&&B(c.u(),function(b){b(a)})}};
  f.Ib=function(a){return ib(this.T,a)};var nb=function(a,b){if(a.m){var c=a.m;a.m=null;a.v.disconnect();var d=b!=chrome.cast.H.STOPPED;hb(a.T,c,b)&&(a.o.remove(c),a.D.remove(c),b=a.w.get(c))&&(a.w.remove(c),B(b.u(),function(a){a(d)}))}};
  U.prototype.onMessage=function(a){switch(a.type){case "new_session":case "update_session":a.message=jb(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=Ka(this.fa,a.sequenceNumber))"error"==a.type?(b=b.b)&&b(a.message):(b=b.g)&&b(a.message);if(b=a.message)switch(a.type){case "receiver_action":tb(this,b);break;case "new_session":this.m=b.sessionId;this.g?(this.g(b),this.g=null):this.f&&this.f.sessionListener(b);break;
  case "update_session":ub(this,b);break;case "app_message":vb(this,b);break;case "v2_message":"MEDIA_STATUS"==b.type&&b.status.forEach(this.ya.bind(this));break;case "custom_dial_launch":wb(this,a.sequenceNumber,b)}};
  var ub=function(a,b){(a=a.w.get(b.sessionId))&&B(a.u(),function(a){a(!0)})},tb=function(a,b){a.R.forEach(function(a){a(b.receiver,b.action)})},vb=function(a,b){(a=a.o.get(b.sessionId))&&(a=a.get(b.namespaceName))&&B(a.u(),function(a){a(b.namespaceName,b.message)})},xb=function(a,b,c){V(a,new R("custom_dial_launch",c,void 0,chrome.cast.timeout.sendCustomMessage),null,b)},wb=function(a,b,c){a.f.customDialLaunchCallback?a.f.customDialLaunchCallback(c).then(function(c){xb(a,b,c)},function(){xb(a,b)}):
  xb(a,b)},rb=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,ob=new Set(["PRECACHE"]),Z=new U,O=Wa("mr.cast.Api");chrome.cast.P=function(a,b,c){Z.P(a,b,c)};w("chrome.cast.initialize",chrome.cast.P);chrome.cast.Lb=function(a,b,c){var d=new U;d.P(a,b,c);return d};w("chrome.cast.initializeWithContext",chrome.cast.Lb);chrome.cast.da=function(a){Z.da(a)};w("chrome.cast.setPageContext",chrome.cast.da);chrome.cast.requestSession=function(a,b,c){Z.requestSession(a,b,c)};w("chrome.cast.requestSession",chrome.cast.requestSession);chrome.cast.Qb=function(a){qb(new chrome.cast.media.hb(a))};w("chrome.cast.precache",chrome.cast.Qb);
  chrome.cast.ca=function(a){chrome.cast.Da(Z,a)};w("chrome.cast.requestSessionById",chrome.cast.ca);chrome.cast.Da=function(a,b){a.ca(b)};w("chrome.cast.requestSessionByIdWithContext",chrome.cast.Da);chrome.cast.X=function(a){Z.X(a)};w("chrome.cast.addReceiverActionListener",chrome.cast.X);chrome.cast.aa=function(a){Z.aa(a)};w("chrome.cast.removeReceiverActionListener",chrome.cast.aa);chrome.cast.Ob=function(){};w("chrome.cast.logMessage",chrome.cast.Ob);chrome.cast.ic=function(a,b){b()};
  w("chrome.cast.setCustomReceivers",chrome.cast.ic);chrome.cast.jc=function(a,b){b()};w("chrome.cast.setReceiverDisplayStatus",chrome.cast.jc);chrome.cast.unescape=function(a){return-1!=a.indexOf("&")?"document"in q?za(a):Aa(a):a};w("chrome.cast.unescape",chrome.cast.unescape);chrome.cast.isAvailable=!1;w("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);
  