text: if (self.CavalryLogger) { CavalryLogger.start_js(["NmsYb"]); }
  
  __d("ChromecastScannerEnum",[],(function(a,b,c,d,e,f){e.exports={INIT:"init",CAST:"cast",ERROR:"error",NEW_SESSION:"new_session",RECEIVER_STATUS_CHANGED:"receiver_status_changed",SESSION_REQUESTED:"session_requested",SESSION_CANCELLED:"session_cancelled",SESSION_STARTED:"session_started",SESSION_DISCONNECTING:"session_disconnecting",SESSION_DISCONNECTED:"session_disconnected"}}),null);
  __d("ChromecastSessionEnum",[],(function(a,b,c,d,e,f){e.exports={ERROR:"error",DISCONNECTING:"disconnecting",DISCONNECTED:"disconnected",VIDEO_LOADING:"video_loading",VIDEO_LOADED:"video_loaded",VIDEO_PLAYING:"video_playing",VIDEO_PAUSED:"video_paused",VIDEO_SEEK:"video_seek"}}),null);
  __d("ChromecastAPI",["Promise","regeneratorRuntime"],(function(a,b,c,d,e,f){__p&&__p();var g=["pkedcjkdefgpdelpbcmbmeomcjbeemfm","boadgeojelhgndaghljhdicfkmllpafd","dliochdbjfkdbacpmhlcpmleaejidimm","hfaagokkkhdbgiakmmlclaapfelnkoah","fmfcbgogabcbclcofgocippekhfcmgfj","enhhojjnijigcajfphajepfemndkmdlo"],h=null;c={};e.exports=c;c.getSenderAPI=function(){__p&&__p();if(h)return h;if(!a.chrome){h=b("Promise").reject(new Error("Browser not supported"));return h}if(a.chrome.cast&&a.chrome.cast.isAvailable){h=b("Promise").resolve(a.chrome.cast);return h}h=b("Promise").resolve().then(function(){return i()}).then(function(c){return new(b("Promise"))(function(b,d){a.chrome.cast=a.chrome.cast||{};a.chrome.cast.extensionId=c;a.__onGCastApiAvailable=function(c,e){e?d(e):b(a.chrome.cast)};var e=document.createElement("script");e.onerror=d;e.src=k(c);(document.head||document.documentElement).appendChild(e)})});return h};function i(){__p&&__p();var a,c,d;return b("regeneratorRuntime").async(function(e){__p&&__p();while(1)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<g.length)){e.next=11;break}c=g[a];e.next=5;return b("regeneratorRuntime").awrap(j(c));case 5:d=e.sent;if(!d){e.next=8;break}return e.abrupt("return",c);case 8:a++;e.next=1;break;case 11:return e.abrupt("return",null);case 12:case"end":return e.stop()}},null,this)}function j(a){__p&&__p();return b("regeneratorRuntime").async(function(c){__p&&__p();while(1)switch(c.prev=c.next){case 0:return c.abrupt("return",new(b("Promise"))(function(b,c){c=k(a);var d=new XMLHttpRequest();d.onreadystatechange=function(){d.readyState===4&&b(d.status===200)};d.onerror=function(){b(!1)};d.open("GET",c,!0);d.send()}));case 1:case"end":return c.stop()}},null,this)}function k(a){return"chrome-extension://"+a+"/cast_sender.js"}}),null);
  __d("ChromecastSession",["invariant","regeneratorRuntime","Promise","ChromecastAPI","ChromecastSessionEnum","EventEmitter"],(function(a,b,c,d,e,f,g){__p&&__p();var h=b("ChromecastAPI").getSenderAPI;a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(b,c,d){var e;e=a.call(this)||this;e.$ChromecastSession1=b;e.$ChromecastSession2=e.$ChromecastSession5.bind(babelHelpers.assertThisInitialized(e));e.$ChromecastSession3=c;e.$ChromecastSession4=d;d.addMessageListener(e.$ChromecastSession3,e.$ChromecastSession2);return e}var d=c.prototype;d.destroy=function(){var a=this.$ChromecastSession4;a&&a.removeMessageListener(this.$ChromecastSession3,this.$ChromecastSession2);this.removeAllListeners()};d.isCasting=function(){return!!this.$ChromecastSession4};d.isPlaying=function(){var a;return b("regeneratorRuntime").async(function(c){while(1)switch(c.prev=c.next){case 0:c.next=2;return b("regeneratorRuntime").awrap(h());case 2:a=c.sent;return c.abrupt("return",!!(this.$ChromecastSession4&&this.$ChromecastSession4.media&&this.$ChromecastSession4.media[0]&&this.$ChromecastSession4.media[0].playerState===a.media.PlayerState.PLAYING));case 4:case"end":return c.stop()}},null,this)};d.hasMedia=function(){return!!(this.$ChromecastSession4&&this.$ChromecastSession4.media&&this.$ChromecastSession4.media[0])};d.disconnect=function(){__p&&__p();var a=this;return b("regeneratorRuntime").async(function(c){__p&&__p();while(1)switch(c.prev=c.next){case 0:this.emit(b("ChromecastSessionEnum").DISCONNECTING);c.prev=1;c.next=4;return b("regeneratorRuntime").awrap(new(b("Promise"))(function(b,c){a.$ChromecastSession4?a.$ChromecastSession4.stop(b,c):b()}));case 4:c.next=10;break;case 6:c.prev=6;c.t0=c["catch"](1);this.emit(b("ChromecastSessionEnum").ERROR,c.t0);throw c.t0;case 10:c.prev=10;this.$ChromecastSession4=null;this.emit(b("ChromecastSessionEnum").DISCONNECTED);this.removeAllListeners();return c.finish(10);case 15:case"end":return c.stop()}},null,this,[[1,6,10,15]])};d.loadVideo=function(a,c,d){__p&&__p();var e=this,f,i;return b("regeneratorRuntime").async(function(j){__p&&__p();while(1)switch(j.prev=j.next){case 0:j.prev=0;j.next=3;return b("regeneratorRuntime").awrap(h());case 3:f=j.sent;i=this.$ChromecastSession4;c||(c="video/mp4");j.next=8;return b("regeneratorRuntime").awrap(new(b("Promise"))(function(h,j){__p&&__p();i||g(0,4266);e.emit(b("ChromecastSessionEnum").VIDEO_LOADING);var k=new f.media.MediaInfo(a,c);k.streamType=f.media.StreamType.BUFFERED;k=new f.media.LoadRequest(k);k.autoplay=!0;d&&(k.currentTime=d);i.loadMedia(k,function(a){var c=function c(){a.removeUpdateListener(c),e.emit(b("ChromecastSessionEnum").VIDEO_LOADED),h()};a.addUpdateListener(c)},j)}));case 8:this.emit(b("ChromecastSessionEnum").VIDEO_PLAYING);j.next=15;break;case 11:j.prev=11;j.t0=j["catch"](0);this.emit(b("ChromecastSessionEnum").ERROR,j.t0);throw j.t0;case 15:case"end":return j.stop()}},null,this,[[0,11]])};d.playVideo=function(){__p&&__p();var a,c;return b("regeneratorRuntime").async(function(d){__p&&__p();while(1)switch(d.prev=d.next){case 0:d.prev=0;d.next=3;return b("regeneratorRuntime").awrap(h());case 3:a=d.sent;c=this.$ChromecastSession4;d.next=7;return b("regeneratorRuntime").awrap(new(b("Promise"))(function(b,d){c||g(0,4267);c.media&&c.media[0]||g(0,4268);var e=new a.media.PlayRequest();c.media[0].play(e,b,d)}));case 7:this.emit(b("ChromecastSessionEnum").VIDEO_PLAYING);d.next=14;break;case 10:d.prev=10;d.t0=d["catch"](0);this.emit(b("ChromecastSessionEnum").ERROR,d.t0);throw d.t0;case 14:case"end":return d.stop()}},null,this,[[0,10]])};d.pauseVideo=function(){__p&&__p();var a,c;return b("regeneratorRuntime").async(function(d){__p&&__p();while(1)switch(d.prev=d.next){case 0:d.prev=0;d.next=3;return b("regeneratorRuntime").awrap(h());case 3:a=d.sent;c=this.$ChromecastSession4;d.next=7;return b("regeneratorRuntime").awrap(new(b("Promise"))(function(b,d){c||g(0,4269);c.media&&c.media[0]||g(0,4270);var e=new a.media.PauseRequest();c.media[0].pause(e,b,d)}));case 7:this.emit(b("ChromecastSessionEnum").VIDEO_PAUSED);d.next=14;break;case 10:d.prev=10;d.t0=d["catch"](0);this.emit(b("ChromecastSessionEnum").ERROR,d.t0);throw d.t0;case 14:case"end":return d.stop()}},null,this,[[0,10]])};d.seekVideo=function(a){__p&&__p();var c,d;return b("regeneratorRuntime").async(function(e){__p&&__p();while(1)switch(e.prev=e.next){case 0:e.prev=0;e.next=3;return b("regeneratorRuntime").awrap(h());case 3:c=e.sent;d=this.$ChromecastSession4;e.next=7;return b("regeneratorRuntime").awrap(new(b("Promise"))(function(b,e){d||g(0,4271);d.media&&d.media[0]||g(0,4272);var f=new c.media.SeekRequest();f.currentTime=a;d.media[0].seek(f,b,e)}));case 7:this.emit(b("ChromecastSessionEnum").VIDEO_PLAYING);e.next=14;break;case 10:e.prev=10;e.t0=e["catch"](0);this.emit(b("ChromecastSessionEnum").ERROR,e.t0);throw e.t0;case 14:case"end":return e.stop()}},null,this,[[0,10]])};d.getVolume=function(){var a=this.$ChromecastSession6();return a?a.level:null};d.setVolume=function(a){__p&&__p();var c;return b("regeneratorRuntime").async(function(d){__p&&__p();while(1)switch(d.prev=d.next){case 0:d.prev=0;c=this.$ChromecastSession4;d.next=4;return b("regeneratorRuntime").awrap(new(b("Promise"))(function(b,d){c||g(0,4273),c.setReceiverVolumeLevel(a,b,d)}));case 4:d.next=10;break;case 6:d.prev=6;d.t0=d["catch"](0);this.emit(b("ChromecastSessionEnum").ERROR,d.t0);throw d.t0;case 10:case"end":return d.stop()}},null,this,[[0,6]])};d.isMuted=function(){var a=this.$ChromecastSession6();return a?a.muted:null};d.mute=function(){return b("regeneratorRuntime").async(function(a){while(1)switch(a.prev=a.next){case 0:a.next=2;return b("regeneratorRuntime").awrap(this.$ChromecastSession7(!0));case 2:case"end":return a.stop()}},null,this)};d.unmute=function(){return b("regeneratorRuntime").async(function(a){while(1)switch(a.prev=a.next){case 0:a.next=2;return b("regeneratorRuntime").awrap(this.$ChromecastSession7(!1));case 2:case"end":return a.stop()}},null,this)};d.sendMessage=function(a){__p&&__p();var c=this;return b("regeneratorRuntime").async(function(d){__p&&__p();while(1)switch(d.prev=d.next){case 0:d.prev=0;d.next=3;return b("regeneratorRuntime").awrap(new(b("Promise"))(function(b,d){var e=c.$ChromecastSession4;e||g(0,4274);e.sendMessage(c.$ChromecastSession3,a,b,d)}));case 3:d.next=9;break;case 5:d.prev=5;d.t0=d["catch"](0);this.emit(b("ChromecastSessionEnum").ERROR,d.t0);throw d.t0;case 9:case"end":return d.stop()}},null,this,[[0,5]])};d.$ChromecastSession6=function(){return this.$ChromecastSession4&&this.$ChromecastSession4.receiver&&this.$ChromecastSession4.receiver.volume};d.$ChromecastSession7=function(a){__p&&__p();var c;return b("regeneratorRuntime").async(function(d){__p&&__p();while(1)switch(d.prev=d.next){case 0:d.prev=0;c=this.$ChromecastSession4;d.next=4;return b("regeneratorRuntime").awrap(new(b("Promise"))(function(b,d){c||g(0,4275),c.setReceiverMuted(a,b,d)}));case 4:d.next=10;break;case 6:d.prev=6;d.t0=d["catch"](0);this.emit(b("ChromecastSessionEnum").ERROR,d.t0);throw d.t0;case 10:case"end":return d.stop()}},null,this,[[0,6]])};d.getVideoTime=function(){var a=null,b=this.$ChromecastSession4&&this.$ChromecastSession4.media[0];b&&(a=b.getEstimatedTime());return a};d.$ChromecastSession5=function(a,b){a===this.$ChromecastSession3?this.emit("message",b):this.emit("invalid_message",{namespace:a,message:b})};return c}(b("EventEmitter"));e.exports=a}),null);
  __d("ConnectedTVTypedLogger",["Banzai","GeneratedLoggerUtils","nullthrows"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(){__p&&__p();function a(){this.$1={}}var c=a.prototype;c.log=function(){b("GeneratedLoggerUtils").log("ctv_proxy:ConnectedTVLoggerConfig",this.$1,b("Banzai").BASIC)};c.logVital=function(){b("GeneratedLoggerUtils").log("ctv_proxy:ConnectedTVLoggerConfig",this.$1,b("Banzai").VITAL)};c.logImmediately=function(){b("GeneratedLoggerUtils").log("ctv_proxy:ConnectedTVLoggerConfig",this.$1,{signal:!0})};c.clear=function(){this.$1={};return this};c.getData=function(){return babelHelpers["extends"]({},this.$1)};c.updateData=function(a){this.$1=babelHelpers["extends"]({},this.$1,a);return this};c.setAccessToken=function(a){this.$1.access_token=a;return this};c.setActionMethod=function(a){this.$1.action_method=a;return this};c.setActionSurface=function(a){this.$1.action_surface=a;return this};c.setActionTarget=function(a){this.$1.action_target=a;return this};c.setCampaignID=function(a){this.$1.campaign_id=a;return this};c.setCastActivityName=function(a){this.$1.cast_activity_name=a;return this};c.setCastClientAppID=function(a){this.$1.cast_client_app_id=a;return this};c.setCastClientAppVersion=function(a){this.$1.cast_client_app_version=a;return this};c.setCastClientSeqNum=function(a){this.$1.cast_client_seq_num=a;return this};c.setCastClientTimeMs=function(a){this.$1.cast_client_time_ms=a;return this};c.setCastDeviceCount=function(a){this.$1.cast_device_count=a;return this};c.setCastSessionID=function(a){this.$1.cast_session_id=a;return this};c.setCastingDeviceType=function(a){this.$1.casting_device_type=a;return this};c.setChainingDepthLevel=function(a){this.$1.chaining_depth_level=a;return this};c.setClientSessionStartTimeMs=function(a){this.$1.client_session_start_time_ms=a;return this};c.setClientVideoBandwidth=function(a){this.$1.client_video_bandwidth=a;return this};c.setDeviceUniqueID=function(a){this.$1.device_unique_id=a;return this};c.setDurationMs=function(a){this.$1.duration_ms=a;return this};c.setErrorDetails=function(a){this.$1.error_details=a;return this};c.setErrorMessage=function(a){this.$1.error_message=a;return this};c.setEvent=function(a){this.$1.event=a;return this};c.setEventDescription=function(a){this.$1.event_description=a;return this};c.setExperience=function(a){this.$1.experience=a;return this};c.setExperienceView=function(a){this.$1.experience_view=a;return this};c.setExternalLogID=function(a){this.$1.external_log_id=a;return this};c.setExternalLogType=function(a){this.$1.external_log_type=a;return this};c.setGraphqlQueryName=function(a){this.$1.graphql_query_name=a;return this};c.setInitialCast=function(a){this.$1.initial_cast=a;return this};c.setInitialLogin=function(a){this.$1.initial_login=a;return this};c.setIsAppVisible=function(a){this.$1.is_app_visible=a;return this};c.setIsFirstLoadAfterInstall=function(a){this.$1.is_first_load_after_install=a;return this};c.setIsGoogleCastBg=function(a){this.$1.is_google_cast_bg=a;return this};c.setIsShowVideo=function(a){this.$1.is_show_video=a;return this};c.setManufacturer=function(a){this.$1.manufacturer=a;return this};c.setMemorySize=function(a){this.$1.memory_size=a;return this};c.setMinCountNumFetched=function(a){this.$1.min_count_num_fetched=a;return this};c.setModelName=function(a){this.$1.model_name=a;return this};c.setMostRecentSenderUserAgent=function(a){this.$1.most_recent_sender_user_agent=a;return this};c.setNumDynamicSections=function(a){this.$1.num_dynamic_sections=a;return this};c.setOsVersion=function(a){this.$1.os_version=a;return this};c.setOwnerID=function(a){this.$1.owner_id=a;return this};c.setOwnerType=function(a){this.$1.owner_type=a;return this};c.setPerfTimeMs=function(a){this.$1.perf_time_ms=a;return this};c.setPersonalizedDynamicOrder=function(a){this.$1.personalized_dynamic_order=a;return this};c.setPlaybackIsLiveStreaming=function(a){this.$1.playback_is_live_streaming=a;return this};c.setPlayerFormat=function(a){this.$1.player_format=a;return this};c.setPlayerOrigin=function(a){this.$1.player_origin=a;return this};c.setPlayerSuborigin=function(a){this.$1.player_suborigin=a;return this};c.setPlayerVersion=function(a){this.$1.player_version=a;return this};c.setPositionInChannel=function(a){this.$1.position_in_channel=a;return this};c.setPreviousState=function(a){this.$1.previous_state=a;return this};c.setPreviousTvSessionID=function(a){this.$1.previous_tv_session_id=a;return this};c.setProjection=function(a){this.$1.projection=a;return this};c.setReferer=function(a){this.$1.referer=a;return this};c.setRetryCount=function(a){this.$1.retry_count=a;return this};c.setSectionTypeOverride=function(a){this.$1.section_type_override=a;return this};c.setSessionFailureCode=function(a){this.$1.session_failure_code=a;return this};c.setSessionFailureDescription=function(a){this.$1.session_failure_description=a;return this};c.setShowVideoType=function(a){this.$1.show_video_type=a;return this};c.setStallCount=function(a){this.$1.stall_count=a;return this};c.setStallTimeForStartMs=function(a){this.$1.stall_time_for_start_ms=a;return this};c.setStallTimeMs=function(a){this.$1.stall_time_ms=a;return this};c.setStoryID=function(a){this.$1.story_id=a;return this};c.setStreamingFormat=function(a){this.$1.streaming_format=a;return this};c.setTabType=function(a){this.$1.tab_type=a;return this};c.setThirdPartyAppID=function(a){this.$1.third_party_app_id=a;return this};c.setTime=function(a){this.$1.time=a;return this};c.setTvAppVersion=function(a){this.$1.tv_app_version=a;return this};c.setTvSeqNum=function(a){this.$1.tv_seq_num=a;return this};c.setTvSessionID=function(a){this.$1.tv_session_id=a;return this};c.setTvTimeMs=function(a){this.$1.tv_time_ms=a;return this};c.setVC=function(a){this.$1.vc=a;return this};c.setVideoChannelID=function(a){this.$1.video_channel_id=a;return this};c.setVideoIDOverride=function(a){this.$1.video_id_override=a;return this};c.setViewCount=function(a){this.$1.view_count=a;return this};c.setViewCount100=function(a){this.$1.view_count_100=a;return this};c.setViewCount10s=function(a){this.$1.view_count_10s=a;return this};c.setViewCount15s=function(a){this.$1.view_count_15s=a;return this};c.setViewCount30s=function(a){this.$1.view_count_30s=a;return this};c.setViewCount75=function(a){this.$1.view_count_75=a;return this};c.setViewCount95=function(a){this.$1.view_count_95=a;return this};c.setViewportDuration=function(a){this.$1.viewport_duration=a;return this};c.setVoiceOverEnabled=function(a){this.$1.voice_over_enabled=a;return this};c.setWatchTimeChannelMs=function(a){this.$1.watch_time_channel_ms=a;return this};c.setWatchTimeFullScreenMs=function(a){this.$1.watch_time_full_screen_ms=a;return this};c.setWatchTimeInlineMs=function(a){this.$1.watch_time_inline_ms=a;return this};c.setWatchTimeMs=function(a){this.$1.watch_time_ms=a;return this};c.setWeight=function(a){this.$1.weight=a;return this};c.updateExtraData=function(a){a=b("nullthrows")(b("GeneratedLoggerUtils").serializeMap(a));b("GeneratedLoggerUtils").checkExtraDataFieldNames(a,g);this.$1=babelHelpers["extends"]({},this.$1,a);return this};c.addToExtraData=function(a,b){var c={};c[a]=b;return this.updateExtraData(c)};return a}();var g={access_token:!0,action_method:!0,action_surface:!0,action_target:!0,campaign_id:!0,cast_activity_name:!0,cast_client_app_id:!0,cast_client_app_version:!0,cast_client_seq_num:!0,cast_client_time_ms:!0,cast_device_count:!0,cast_session_id:!0,casting_device_type:!0,chaining_depth_level:!0,client_session_start_time_ms:!0,client_video_bandwidth:!0,device_unique_id:!0,duration_ms:!0,error_details:!0,error_message:!0,event:!0,event_description:!0,experience:!0,experience_view:!0,external_log_id:!0,external_log_type:!0,graphql_query_name:!0,initial_cast:!0,initial_login:!0,is_app_visible:!0,is_first_load_after_install:!0,is_google_cast_bg:!0,is_show_video:!0,manufacturer:!0,memory_size:!0,min_count_num_fetched:!0,model_name:!0,most_recent_sender_user_agent:!0,num_dynamic_sections:!0,os_version:!0,owner_id:!0,owner_type:!0,perf_time_ms:!0,personalized_dynamic_order:!0,playback_is_live_streaming:!0,player_format:!0,player_origin:!0,player_suborigin:!0,player_version:!0,position_in_channel:!0,previous_state:!0,previous_tv_session_id:!0,projection:!0,referer:!0,retry_count:!0,section_type_override:!0,session_failure_code:!0,session_failure_description:!0,show_video_type:!0,stall_count:!0,stall_time_for_start_ms:!0,stall_time_ms:!0,story_id:!0,streaming_format:!0,tab_type:!0,third_party_app_id:!0,time:!0,tv_app_version:!0,tv_seq_num:!0,tv_session_id:!0,tv_time_ms:!0,vc:!0,video_channel_id:!0,video_id_override:!0,view_count:!0,view_count_100:!0,view_count_10s:!0,view_count_15s:!0,view_count_30s:!0,view_count_75:!0,view_count_95:!0,viewport_duration:!0,voice_over_enabled:!0,watch_time_channel_ms:!0,watch_time_full_screen_ms:!0,watch_time_inline_ms:!0,watch_time_ms:!0,weight:!0};e.exports=a}),null);
  __d("ChromecastScanner",["regeneratorRuntime","Promise","ChromecastAPI","ChromecastScannerEnum","ChromecastSession","ChromecastSessionEnum","ConnectedTVTypedLogger","EventEmitter","emptyFunction","performanceAbsoluteNow"],(function(a,b,c,d,e,f){__p&&__p();var g,h=b("ChromecastAPI").getSenderAPI,i=3*60*1e3;a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);c.getInstance=function(a,d,e){var f;return b("regeneratorRuntime").async(function(g){while(1)switch(g.prev=g.next){case 0:f=new c(a,d,e);g.next=3;return b("regeneratorRuntime").awrap(f.ready());case 3:return g.abrupt("return",f);case 4:case"end":return g.stop()}},null,this)};function c(b,c,d){__p&&__p();var e;e=a.call(this)||this;e.$ChromecastScanner1=b||null;e.$ChromecastScanner2=c||null;e.$ChromecastScanner3=d||!1;e.$ChromecastScanner6=!1;e.$ChromecastScanner4=!1;e.$ChromecastScanner5=!1;e.$ChromecastScanner7=new Set();e.$ChromecastScanner8=e.$ChromecastScanner9();return e}var d=c.prototype;d.$ChromecastScanner9=function(){__p&&__p();var a;return b("regeneratorRuntime").async(function(c){__p&&__p();while(1)switch(c.prev=c.next){case 0:c.next=2;return b("regeneratorRuntime").awrap(h());case 2:a=c.sent;this.$ChromecastScanner5=!0;this.$ChromecastScanner5&&this.$ChromecastScanner1===null&&(this.$ChromecastScanner1=a.media.DEFAULT_MEDIA_RECEIVER_APP_ID);c.prev=5;c.next=8;return b("regeneratorRuntime").awrap(this.$ChromecastScanner10());case 8:this.emit(b("ChromecastScannerEnum").INIT);if(!this.$ChromecastScanner3){c.next=12;break}c.next=12;return b("regeneratorRuntime").awrap(this.scanForReceivers());case 12:c.next=18;break;case 14:c.prev=14;c.t0=c["catch"](5);this.emit(b("ChromecastScannerEnum").ERROR,c.t0);throw c.t0;case 18:case"end":return c.stop()}},null,this,[[5,14]])};d.ready=function(){return b("regeneratorRuntime").async(function(a){while(1)switch(a.prev=a.next){case 0:a.next=2;return b("regeneratorRuntime").awrap(this.$ChromecastScanner8);case 2:case"end":return a.stop()}},null,this)};d.destroy=function(){this.removeAllListeners(),this.$ChromecastScanner7.forEach(function(a){return a.destroy()})};d.hasSupport=function(){return this.$ChromecastScanner5};d.hasFoundReceiver=function(){return this.$ChromecastScanner6};d.scanForReceivers=function(){__p&&__p();var a=this,c,d;return b("regeneratorRuntime").async(function(e){__p&&__p();while(1)switch(e.prev=e.next){case 0:if(!this.$ChromecastScanner4){e.next=2;break}return e.abrupt("return");case 2:this.$ChromecastScanner4=!0;e.next=5;return b("regeneratorRuntime").awrap(h());case 5:c=e.sent;d=new(b("Promise"))(function(d,e){var f=function(c){c=a.$ChromecastScanner11(c);a.emit(b("ChromecastScannerEnum").SESSION_STARTED,c)},g=function(e){a.$ChromecastScanner6=e===c.ReceiverAvailability.AVAILABLE,a.emit(b("ChromecastScannerEnum").RECEIVER_STATUS_CHANGED,{foundReceiver:a.$ChromecastScanner6}),d()};f=new c.ApiConfig(new c.SessionRequest(a.$ChromecastScanner1),f,g,c.AutoJoinPolicy.ORIGIN_SCOPED,c.DefaultActionPolicy.CAST_THIS_TAB);c.initialize(f,b("emptyFunction"),e)});d=d["catch"](function(c){a.$ChromecastScanner4=!1;a.emit(b("ChromecastScannerEnum").ERROR,c);throw c});e.next=10;return b("regeneratorRuntime").awrap(d);case 10:case"end":return e.stop()}},null,this)};d.getSession=function(){__p&&__p();var a=this,c,d,e;return b("regeneratorRuntime").async(function(f){__p&&__p();while(1)switch(f.prev=f.next){case 0:if(this.$ChromecastScanner6){f.next=2;break}throw new Error("No receivers found");case 2:this.emit(b("ChromecastScannerEnum").SESSION_REQUESTED);c=this.$ChromecastScanner12();c["catch"](function(c){a.emit(b("ChromecastScannerEnum").SESSION_CANCELLED);a.emit(b("ChromecastScannerEnum").SESSION_DISCONNECTED);throw c});f.next=7;return b("regeneratorRuntime").awrap(c);case 7:d=f.sent;e=this.$ChromecastScanner11(d);this.$ChromecastScanner7.add(e);this.emit(b("ChromecastScannerEnum").SESSION_STARTED,e);return f.abrupt("return",e);case 12:case"end":return f.stop()}},null,this)};d.$ChromecastScanner12=function(){__p&&__p();var a=this,c,d;return b("regeneratorRuntime").async(function(e){__p&&__p();while(1)switch(e.prev=e.next){case 0:e.next=2;return b("regeneratorRuntime").awrap(h());case 2:c=e.sent;e.next=5;return b("regeneratorRuntime").awrap(new(b("Promise"))(function(d,e){new(b("ConnectedTVTypedLogger"))().setEvent("sender_session_requested").log();var f=(g||(g=b("performanceAbsoluteNow")))(),h=new c.SessionRequest(a.$ChromecastScanner1,[c.Capability.VIDEO_OUT,c.Capability.AUDIO_OUT],i);c.requestSession(function(a){new(b("ConnectedTVTypedLogger"))().setEvent("sender_session_started").setPerfTimeMs(Math.floor((g||(g=b("performanceAbsoluteNow")))()-f)).log();return d(a)},function(a){new(b("ConnectedTVTypedLogger"))().setEvent("sender_session_failed").setSessionFailureCode(a.code).setSessionFailureDescription(a.description).setPerfTimeMs(Math.floor((g||(g=b("performanceAbsoluteNow")))()-f)).log();return e(a)},h)}));case 5:d=e.sent;return e.abrupt("return",d);case 7:case"end":return e.stop()}},null,this)};d.$ChromecastScanner11=function(a){var c=this,d=new(b("ChromecastSession"))(this.$ChromecastScanner1||"",this.$ChromecastScanner2||"",a);d.addListener(b("ChromecastSessionEnum").DISCONNECTING,function(){c.emit(b("ChromecastScannerEnum").SESSION_DISCONNECTING,d)});d.addListener(b("ChromecastSessionEnum").DISCONNECTED,function(){c.emit(b("ChromecastScannerEnum").SESSION_DISCONNECTED,d),c.$ChromecastScanner7["delete"](d)});d.addListener(b("ChromecastSessionEnum").ERROR,function(a){c.emit(b("ChromecastScannerEnum").ERROR,a)});return d};d.$ChromecastScanner10=function(){__p&&__p();var a=this,c;return b("regeneratorRuntime").async(function(d){__p&&__p();while(1)switch(d.prev=d.next){case 0:d.next=2;return b("regeneratorRuntime").awrap(h());case 2:c=d.sent,c.addReceiverActionListener(function(d,e){switch(e){case c.ReceiverAction.CAST:a.emit(b("ChromecastScannerEnum").CAST,d);break;case c.ReceiverAction.STOP:a.$ChromecastScanner7.forEach(function(a){return a.disconnect()});break}});case 4:case"end":return d.stop()}},null,this)};return c}(b("EventEmitter"));e.exports=a}),null);
  __d("CastingExperienceManager",["invariant","regeneratorRuntime","Promise","ChromecastConfig","ChromecastScanner","ChromecastScannerEnum","EventEmitter","Random","SubscriptionsHandler","WebStorage","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h,i=(h||b("WebStorage")).getLocalStorage(),j=null;a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){__p&&__p();var d;d=a.call(this)||this;d.$CastingExperienceManager5=new(b("ChromecastScanner"))(b("ChromecastConfig").APP_ID,b("ChromecastConfig").NAMESPACE,b("ChromecastConfig").AUTO_SCAN);d.$CastingExperienceManager2=null;d.$CastingExperienceManager1=!1;d.$CastingExperienceManager4=0;d.$CastingExperienceManager7=null;d.$CastingExperienceManager10=new Map();var e=new(b("SubscriptionsHandler"))();e.addSubscriptions(d.$CastingExperienceManager5.addListener(b("ChromecastScannerEnum").RECEIVER_STATUS_CHANGED,function(a){return d.$CastingExperienceManager11(a)}),d.$CastingExperienceManager5.addListener(b("ChromecastScannerEnum").SESSION_DISCONNECTED,function(){return d.$CastingExperienceManager12()}),d.$CastingExperienceManager5.addListener(b("ChromecastScannerEnum").SESSION_STARTED,function(a){return d.$CastingExperienceManager13(a)}),d.$CastingExperienceManager5.addListener(b("ChromecastScannerEnum").SESSION_DISCONNECTED,function(){return d.$CastingExperienceManager14()}),d.$CastingExperienceManager5.addListener(b("ChromecastScannerEnum").ERROR,function(a){return d.$CastingExperienceManager15(a)}));d.$CastingExperienceManager8=d.$CastingExperienceManager5.ready();b("promiseDone")(d.$CastingExperienceManager8.then(function(){d.$CastingExperienceManager2=!0,d.$CastingExperienceManager1=!0,d.emit(c.READY)},function(a){d.$CastingExperienceManager2=!1,e.release(),d.emit(c.NOT_SUPPORTED,a)}));return d}c.getInstance=function(){j||(j=new c());return j};var d=c.prototype;d.ready=function(){return b("regeneratorRuntime").async(function(a){while(1)switch(a.prev=a.next){case 0:a.next=2;return b("regeneratorRuntime").awrap(this.$CastingExperienceManager8);case 2:case"end":return a.stop()}},null,this)};d.getLastError=function(){return this.$CastingExperienceManager3};d.hasSupport=function(){return this.$CastingExperienceManager2};d.hasFoundReceiver=function(){return this.$CastingExperienceManager5.hasFoundReceiver()};d.getSession=function(){__p&&__p();var a;return b("regeneratorRuntime").async(function(d){__p&&__p();while(1)switch(d.prev=d.next){case 0:d.next=2;return b("regeneratorRuntime").awrap(this.ready());case 2:if(!this.$CastingExperienceManager6){d.next=4;break}return d.abrupt("return",this.$CastingExperienceManager6);case 4:this.$CastingExperienceManager9||(this.$CastingExperienceManager9=this.$CastingExperienceManager16());a=null;d.prev=6;d.next=9;return b("regeneratorRuntime").awrap(this.$CastingExperienceManager9);case 9:a=d.sent;d.next=16;break;case 12:d.prev=12;d.t0=d["catch"](6);this.emit(c.ERROR,d.t0);throw d.t0;case 16:d.prev=16;this.$CastingExperienceManager9=null;return d.finish(16);case 19:return d.abrupt("return",a);case 20:case"end":return d.stop()}},null,this,[[6,12,16,19]])};d.$CastingExperienceManager16=function(){__p&&__p();var a;return b("regeneratorRuntime").async(function(c){while(1)switch(c.prev=c.next){case 0:c.next=2;return b("regeneratorRuntime").awrap(this.$CastingExperienceManager5.getSession());case 2:a=c.sent;this.$CastingExperienceManager6||(this.$CastingExperienceManager6=a);return c.abrupt("return",this.$CastingExperienceManager6);case 5:case"end":return c.stop()}},null,this)};d.isRequestingSession=function(){return!!this.$CastingExperienceManager9};d.getSessionKey=function(){var a=null;i&&(a=i.getItem("CastingSessionKey"));a||(a=b("Random").uint32().toString(16),i&&i.setItem("CastingSessionKey",a));return a};d.isCasting=function(a){var b=!!this.$CastingExperienceManager6&&this.$CastingExperienceManager6.isCasting();b&&a&&(b=!!this.$CastingExperienceManager7&&this.$CastingExperienceManager7.indexOf(a)>=0);return b};d.startCasting=function(a,c,d){__p&&__p();var e,f,g;return b("regeneratorRuntime").async(function(h){__p&&__p();while(1)switch(h.prev=h.next){case 0:if(this.isCasting(a)){h.next=13;break}e=null;if(!(b("ChromecastConfig").VERSION_LAUNCH_MESSAGE&&d)){h.next=8;break}h.next=5;return b("regeneratorRuntime").awrap(this.sendVersionLaunch(a,c,d));case 5:e=h.sent;h.next=11;break;case 8:h.next=10;return b("regeneratorRuntime").awrap(this.sendLaunch(a));case 10:e=h.sent;case 11:(f=e,g=f.target),this.$CastingExperienceManager7=g;case 13:case"end":return h.stop()}},null,this)};d.stopCasting=function(){__p&&__p();var a;return b("regeneratorRuntime").async(function(c){__p&&__p();while(1)switch(c.prev=c.next){case 0:if(!this.isCasting()){c.next=6;break}c.next=3;return b("regeneratorRuntime").awrap(this.getSession());case 3:a=c.sent;c.next=6;return b("regeneratorRuntime").awrap(a.disconnect());case 6:this.$CastingExperienceManager17();case 7:case"end":return c.stop()}},null,this)};d.$CastingExperienceManager17=function(){this.$CastingExperienceManager6=null,this.$CastingExperienceManager7=null};d.getTarget=function(){__p&&__p();var a,c;return b("regeneratorRuntime").async(function(d){__p&&__p();while(1)switch(d.prev=d.next){case 0:if(this.$CastingExperienceManager7){d.next=10;break}d.next=3;return b("regeneratorRuntime").awrap(this.getSession());case 3:d.next=5;return b("regeneratorRuntime").awrap(this.sendVersion());case 5:a=d.sent;c=a.currently_running_experience;if(c){d.next=9;break}throw new Error("Session has no target");case 9:this.$CastingExperienceManager7=c;case 10:return d.abrupt("return",this.$CastingExperienceManager7);case 11:case"end":return d.stop()}},null,this)};d.setVolume=function(a){this.isCasting()&&(this.$CastingExperienceManager6&&this.$CastingExperienceManager6.setVolume(a))};d.mute=function(){this.isCasting()&&(this.$CastingExperienceManager6&&this.$CastingExperienceManager6.mute())};d.unmute=function(){this.isCasting()&&(this.$CastingExperienceManager6&&this.$CastingExperienceManager6.unmute())};d.isFeedbackEnabled=function(){__p&&__p();var a,c;return b("regeneratorRuntime").async(function(d){while(1)switch(d.prev=d.next){case 0:d.next=2;return b("regeneratorRuntime").awrap(this.getExperienceState());case 2:a=d.sent;c=a.feedback_disabled;return d.abrupt("return",!!c);case 5:case"end":return d.stop()}},null,this)};d.setFeedbackEnabled=function(a){__p&&__p();var c;return b("regeneratorRuntime").async(function(d){__p&&__p();while(1)switch(d.prev=d.next){case 0:if(this.isCasting()){d.next=2;break}return d.abrupt("return");case 2:c=a?"turn_on_feedback":"turn_off_feedback";d.next=5;return b("regeneratorRuntime").awrap(this.sendCommand(c));case 5:case"end":return d.stop()}},null,this)};d.sendMessage=function(a,c,d){__p&&__p();var e,f;return b("regeneratorRuntime").async(function(h){__p&&__p();while(1)switch(h.prev=h.next){case 0:h.next=2;return b("regeneratorRuntime").awrap(this.getSession());case 2:e=h.sent;e||g(0,4274);f={target:a,type:c,data:d,num:this.$CastingExperienceManager4+=2,timestamp:Date.now()};h.next=7;return b("regeneratorRuntime").awrap(e.sendMessage(f));case 7:return h.abrupt("return",{msgNum:f.num});case 8:case"end":return h.stop()}},null,this)};d.receiveMessage=function(a){__p&&__p();var c;return b("regeneratorRuntime").async(function(d){__p&&__p();while(1)switch(d.prev=d.next){case 0:d.next=2;return b("regeneratorRuntime").awrap(this.getSession());case 2:c=d.sent;c||g(0,4763);return d.abrupt("return",new(b("Promise"))(function(b,d){var e=c.addListener("message",function(c){try{c=JSON.parse(c);var f=!a||a(c);f&&(e.remove(),b(c))}catch(a){e.remove(),d(a)}})}));case 5:case"end":return d.stop()}},null,this)};d.sendVersion=function(){__p&&__p();var a,d,e,f;return b("regeneratorRuntime").async(function(h){__p&&__p();while(1)switch(h.prev=h.next){case 0:a=this.getSessionKey();h.next=3;return b("regeneratorRuntime").awrap(this.sendMessage("version","version_request",{version:c.VERSION,client_cast_session:a}));case 3:d=h.sent;e=d.msgNum;h.next=7;return b("regeneratorRuntime").awrap(this.receiveMessage(function(a){return a.response_num===e}));case 7:f=h.sent;f.type==="version_response"||g(0,4764);f.data||g(0,4765);return h.abrupt("return",f.data);case 11:case"end":return h.stop()}},null,this)};d.sendLaunch=function(a){__p&&__p();var c,d,e;return b("regeneratorRuntime").async(function(f){__p&&__p();while(1)switch(f.prev=f.next){case 0:f.next=2;return b("regeneratorRuntime").awrap(this.sendMessage("experience","launch",{name:a}));case 2:c=f.sent;d=c.msgNum;f.next=6;return b("regeneratorRuntime").awrap(this.receiveMessage(function(a){return a.response_num===d}));case 6:e=f.sent;e.type==="launch_response"||g(0,4766);return f.abrupt("return",e.data);case 9:case"end":return f.stop()}},null,this)};d.sendVersionLaunch=function(a,d,e){__p&&__p();var f,h,i,j;return b("regeneratorRuntime").async(function(k){__p&&__p();while(1)switch(k.prev=k.next){case 0:f=this.getSessionKey();k.next=3;return b("regeneratorRuntime").awrap(this.sendMessage("version_launch","version_launch",{version:c.VERSION,client_cast_session:f,name:a,params:d,payload:e}));case 3:h=k.sent;i=h.msgNum;k.next=7;return b("regeneratorRuntime").awrap(this.receiveMessage(function(a){return a.response_num===i}));case 7:j=k.sent;j.type==="version_launch_response"||g(0,4767);return k.abrupt("return",j.data);case 10:case"end":return k.stop()}},null,this)};d.sendCommand=function(a,d,e){__p&&__p();var f,h,i,j;return b("regeneratorRuntime").async(function(k){__p&&__p();while(1)switch(k.prev=k.next){case 0:k.next=2;return b("regeneratorRuntime").awrap(this.getTarget());case 2:f=k.sent;k.next=5;return b("regeneratorRuntime").awrap(this.sendMessage(f,"experience_command",{cmd:a,params:d,payload:e}));case 5:h=k.sent;i=h.msgNum;k.next=9;return b("regeneratorRuntime").awrap(this.receiveMessage(function(a){return a.response_num===i}));case 9:j=k.sent;j.type==="command_result"||g(0,4768);a==="stop_showing_photo"&&this.emit(c.STOP_VIEW);return k.abrupt("return",j.data);case 13:case"end":return k.stop()}},null,this)};d.getExperienceState=function(a){__p&&__p();var c=this,d,e,f;return b("regeneratorRuntime").async(function(g){while(1)switch(g.prev=g.next){case 0:d=a||"";e=this.$CastingExperienceManager10.get(d);e||(e=this.$CastingExperienceManager18(a),this.$CastingExperienceManager10.set(d,e),f=function(){return c.$CastingExperienceManager10["delete"](d)},b("promiseDone")(e.then(f,f)));return g.abrupt("return",e);case 4:case"end":return g.stop()}},null,this)};d.$CastingExperienceManager18=function(a){__p&&__p();var c,d,e;return b("regeneratorRuntime").async(function(f){__p&&__p();while(1)switch(f.prev=f.next){case 0:if(a){f.next=4;break}f.next=3;return b("regeneratorRuntime").awrap(this.getTarget());case 3:a=f.sent;case 4:f.next=6;return b("regeneratorRuntime").awrap(this.sendMessage(a,"get_experience_state",{}));case 6:c=f.sent;d=c.msgNum;f.next=10;return b("regeneratorRuntime").awrap(this.receiveMessage(function(a){return a.response_num===d}));case 10:e=f.sent;e.type==="experience_state"||g(0,4769);return f.abrupt("return",e.data);case 13:case"end":return f.stop()}},null,this)};d.$CastingExperienceManager11=function(a){a=a.foundReceiver;this.emit(c.RECEIVER_STATUS_CHANGED,!!a)};d.$CastingExperienceManager12=function(){this.$CastingExperienceManager17(),this.emit(c.RECEIVER_DISCONNECTED)};d.$CastingExperienceManager13=function(a){__p&&__p();var d=this,e,f,g,h;return b("regeneratorRuntime").async(function(i){__p&&__p();while(1)switch(i.prev=i.next){case 0:this.$CastingExperienceManager6=a;e="extension";this.$CastingExperienceManager9&&(e="site");i.next=5;return b("regeneratorRuntime").awrap(this.sendVersion());case 5:f=i.sent;g=f.success;h=f.currently_running_experience;if(g){i.next=10;break}throw new Error("Failed to sync versions with session");case 10:h&&(this.$CastingExperienceManager7=h),this.emit(c.SESSION_STARTED,{session:a,source:e,success:g,target:this.$CastingExperienceManager7}),a.addListener("message",function(a){try{a=JSON.parse(a);d.$CastingExperienceManager19(a)}catch(a){d.emit(c.ERROR,a)}});case 13:case"end":return i.stop()}},null,this)};d.$CastingExperienceManager14=function(){var a=this.$CastingExperienceManager6;this.$CastingExperienceManager17();this.emit(c.SESSION_DISCONNECTED,a)};d.$CastingExperienceManager19=function(a){this.emit(c.SESSION_MESSAGE,a),a.type==="experience_ended"&&(this.$CastingExperienceManager7=null,this.emit(c.EXPERIENCE_ENDED))};d.$CastingExperienceManager15=function(a){this.$CastingExperienceManager3=a,this.emit(c.ERROR,a)};return c}(b("EventEmitter"));a.VERSION="1.2.0";a.RECEIVER_STATUS_CHANGED="receiverstatuschanged";a.RECEIVER_DISCONNECTED="receiverdisconnected";a.SESSION_STARTED="sessionstarted";a.SESSION_MESSAGE="sessionmessage";a.SESSION_DISCONNECTED="sessiondisconnected";a.EXPERIENCE_ENDED="experienceended";a.ERROR="error";a.NOT_SUPPORTED="notsupported";a.READY="ready";a.STOP_VIEW="stopview";e.exports=a}),null);
  __d("XCastingVideoPayloadAsyncController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/cast/async/video/payload/",{})}),null);
  __d("VideoCastingComponent",["cx","invariant","regeneratorRuntime","Promise","Arbiter","AsyncRequest","CastingExperienceManager","ChromecastConfig","CSS","FunnelLogger","Random","ScriptPath","StreamingReactionsTrayEvents","SubscriptionsHandler","XCastingVideoPayloadAsyncController","collectDataAttributes","promiseDone"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();var i="WWW_VIDEOS_CASTING_FUNNEL";a=function(){__p&&__p();function a(a,c){__p&&__p();var d=this,e;this.$1=b("ChromecastConfig").EXPERIENCE_NAME;this.$2=(e=b("CastingExperienceManager")).getInstance();this.$3=a;this.$4=!1;this.$5=!1;this.$6=!1;this.$7=null;this.$9=null;this.$13=null;this.$8=c;this.$10=new(b("SubscriptionsHandler"))();b("CSS").addClass(this.$3.getVideoNode(),"_1_d1");a.registerOption("casting","isSupported",function(){return d.$2.hasSupport()});a.registerOption("casting","hasFoundReceiver",function(){return d.$2.hasFoundReceiver()});a.registerOption("casting","isCasting",function(){return d.$4},function(a){return b("promiseDone")(d.$14(a))});a.registerOption("casting","isPlaying",function(){return d.$6},function(a){return b("promiseDone")(d.$15(a))});a.registerOption("casting","lastError",function(){return d.$2.getLastError()});this.$10.addSubscriptions(this.$2.addListener(e.RECEIVER_STATUS_CHANGED,function(a){return b("promiseDone")(d.$16(a))}),this.$2.addListener(e.RECEIVER_DISCONNECTED,function(){return b("promiseDone")(d.$17())}),this.$2.addListener(e.SESSION_DISCONNECTED,function(){return b("promiseDone")(d.$17())}),this.$2.addListener(e.EXPERIENCE_ENDED,function(){return b("promiseDone")(d.$17())}),this.$2.addListener(e.NOT_SUPPORTED,function(){return b("promiseDone")(d.$18())}),this.$2.addListener(e.READY,function(){return b("promiseDone")(d.$19())}),this.$2.addListener(e.SESSION_MESSAGE,function(a){return b("promiseDone")(d.$20(a))}),this.$2.addListener(e.ERROR,function(a){return b("promiseDone")(d.$21(a))}),this.$3.addListener("seekEnd",function(a){a=a.position;d.$3.isLiveVideo()||b("promiseDone")(d.$22(a))}),this.$3.addListener("muteVideo",function(){b("promiseDone")(d.$23())}),this.$3.addListener("unmuteVideo",function(){b("promiseDone")(d.$24())}),this.$3.addListener("changeVolume",function(a){a=a.volume;b("promiseDone")(d.$25(a))}),this.$3.addListener("stateChange",function(){d.$3.isState("destroyed")&&d.destroy(),d.$3.isState("playing")&&b("promiseDone")(d.$26())}),b("Arbiter").subscribe(b("StreamingReactionsTrayEvents").HideChannelViewDetails,function(){return b("promiseDone")(d.$27(!0))}),b("Arbiter").subscribe(b("StreamingReactionsTrayEvents").ShowChannelViewDetails,function(){return b("promiseDone")(d.$27(!1))}))}var c=a.prototype;c.destroy=function(){this.$10.release()};c.$28=function(a){a in b("FunnelLogger")||h(0,2601);this.$11||(this.$11=b("Random").uint32(),b("FunnelLogger").startFunnel(i,this.$11));for(var c=arguments.length,d=new Array(c>1?c-1:0),e=1;e<c;e++)d[e-1]=arguments[e];b("FunnelLogger")[a].apply(b("FunnelLogger"),[i,this.$11].concat(d))};c.$29=function(){return b("regeneratorRuntime").async(function(a){while(1)switch(a.prev=a.next){case 0:this.$7||(this.$7=this.$30());a.next=3;return b("regeneratorRuntime").awrap(this.$7);case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}},null,this)};c.$30=function(){__p&&__p();var a,c,d;return b("regeneratorRuntime").async(function(e){__p&&__p();while(1)switch(e.prev=e.next){case 0:a=b("XCastingVideoPayloadAsyncController").getURIBuilder().getURI();c=this.$31();e.next=4;return b("regeneratorRuntime").awrap(new(b("Promise"))(function(d,e){new(b("AsyncRequest"))().setURI(a).setMethod("POST").setData(c).setErrorHandler(function(a){return e(new Error(a.errorDescription))}).setHandler(function(a){return d(a.getPayload())}).send()}));case 4:d=e.sent;return e.abrupt("return",d);case 6:case"end":return e.stop()}},null,this)};c.$31=function(){var a=babelHelpers["extends"]({},this.$8,{video_id:this.$3.getVideoID(),is_ad:this.$3.isAd(),script_path:b("ScriptPath").getScriptPath()}),c=this.$3.getVideoChannelID();c&&(a.video_channel_id=c);c=this.$3.getPlayerOrigin();c&&(a.player_origin=c);c=this.$3.getPlayerSuborigin();c&&(a.player_suborigin=c);c=b("collectDataAttributes")(this.$3.getRootNode(),["ft"]);c&&c.ft&&(a.tracking_codes=[JSON.stringify(c.ft)]);return a};c.$14=function(a){__p&&__p();return b("regeneratorRuntime").async(function(c){__p&&__p();while(1)switch(c.prev=c.next){case 0:this.$3.logEvent("chromecast_button_clicked");if(!a){c.next=19;break}this.$4=!0;this.$3.emit("casting/castingStateChange",this.$4);this.$3.isState("playing")&&this.$3.pause("user_initiated");c.prev=5;this.$28("appendAction","cast_attempted");c.next=9;return b("regeneratorRuntime").awrap(this.$32());case 9:this.$28("appendAction","cast_started");c.next=17;break;case 12:c.prev=12,c.t0=c["catch"](5),this.$28("appendAction","cast_failed"),this.$4=!1,this.$3.emit("casting/castingStateChange",this.$4);case 17:c.next=23;break;case 19:this.$4=!1;this.$3.emit("casting/castingStateChange",this.$4);c.next=23;return b("regeneratorRuntime").awrap(this.$33());case 23:case"end":return c.stop()}},null,this,[[5,12]])};c.$32=function(){__p&&__p();var a,c,d,e,f,g,h,i,j,k,l,m,n;return b("regeneratorRuntime").async(function(o){__p&&__p();while(1)switch(o.prev=o.next){case 0:this.$3.pause("user_initiated");a=this.$3.getCurrentTimePosition();this.$13=a;c=this.$29();d=this.$2.isCasting(this.$1);if(d){o.next=21;break}this.$28("appendAction","session_requested");if(!b("ChromecastConfig").VERSION_LAUNCH_MESSAGE){o.next=18;break}o.next=10;return b("regeneratorRuntime").awrap(b("Promise").all([c,this.$2.getSession()]));case 10:e=o.sent;f=e[0];o.next=14;return b("regeneratorRuntime").awrap(this.$34(!0));case 14:o.next=16;return b("regeneratorRuntime").awrap(this.$2.startCasting(this.$1,{position:a},f));case 16:o.next=20;break;case 18:o.next=20;return b("regeneratorRuntime").awrap(this.$2.startCasting(this.$1));case 20:this.$28("appendAction","session_started");case 21:o.next=23;return b("regeneratorRuntime").awrap(this.$34(!0));case 23:o.next=25;return b("regeneratorRuntime").awrap(this.$2.getSession());case 25:g=o.sent;h=g.getVolume();!g.isMuted()&&h&&(this.$3.unmute(),this.$3.setVolume(h));if(!(!d&&b("ChromecastConfig").VERSION_LAUNCH_MESSAGE)){o.next=30;break}return o.abrupt("return");case 30:o.next=32;return b("regeneratorRuntime").awrap(this.$35());case 32:i=o.sent;j=!!i.playing_video_id;k=this.$9&&i.playing_video_id===this.$9;if(!(!j||!k)){o.next=42;break}o.next=38;return b("regeneratorRuntime").awrap(c);case 38:l=o.sent;this.$28("appendAction","request_next_video");o.next=42;return b("regeneratorRuntime").awrap(this.$36(l));case 42:if(!(!j||k)){o.next=51;break}this.$28("appendAction","request_playing");o.next=46;return b("regeneratorRuntime").awrap(this.$37(a));case 46:m=o.sent;this.$28("appendAction","playing");this.$9=m.reference_id;o.next=60;break;case 51:this.$9=null;this.$28("appendAction","request_skip");o.next=55;return b("regeneratorRuntime").awrap(this.$38());case 55:o.next=57;return b("regeneratorRuntime").awrap(this.$39(a));case 57:n=o.sent,this.$28("appendAction","playing"),this.$9=n.reference_id;case 60:case"end":return o.stop()}},null,this)};c.$33=function(){__p&&__p();return b("regeneratorRuntime").async(function(a){__p&&__p();while(1)switch(a.prev=a.next){case 0:if(!this.$6){a.next=4;break}a.next=3;return b("regeneratorRuntime").awrap(this.$40());case 3:this.$6=!1;case 4:a.next=6;return b("regeneratorRuntime").awrap(this.$41());case 6:case"end":return a.stop()}},null,this)};c.$15=function(a){__p&&__p();return b("regeneratorRuntime").async(function(c){__p&&__p();while(1)switch(c.prev=c.next){case 0:if(!a){c.next=5;break}c.next=3;return b("regeneratorRuntime").awrap(this.$37());case 3:c.next=7;break;case 5:c.next=7;return b("regeneratorRuntime").awrap(this.$42());case 7:this.$6=a,this.$3.emit("casting/playStateChange",this.$6);case 9:case"end":return c.stop()}},null,this)};c.$34=function(a){return b("regeneratorRuntime").async(function(c){while(1)switch(c.prev=c.next){case 0:b("CSS").conditionClass(this.$3.getVideoNode(),"_1_d3",a);case 1:case"end":return c.stop()}},null,this)};c.$43=function(a){return b("regeneratorRuntime").async(function(b){while(1)switch(b.prev=b.next){case 0:typeof a!=="number"&&(a=this.$13),this.$3.seek(a);case 2:case"end":return b.stop()}},null,this)};c.$27=function(a){return b("regeneratorRuntime").async(function(c){while(1)switch(c.prev=c.next){case 0:c.next=2;return b("regeneratorRuntime").awrap(this.$2.setFeedbackEnabled(!a));case 2:this.$5=a;case 3:case"end":return c.stop()}},null,this)};c.$41=function(){__p&&__p();return b("regeneratorRuntime").async(function(a){__p&&__p();while(1)switch(a.prev=a.next){case 0:this.$6&&(this.$6=!1,this.$3.emit("casting/playStateChange",this.$6));this.$4&&(this.$4=!1,this.$3.emit("casting/castingStateChange",this.$4));if(!(typeof this.$13==="number")){a.next=5;break}a.next=5;return b("regeneratorRuntime").awrap(this.$43());case 5:a.next=7;return b("regeneratorRuntime").awrap(this.$34(!1));case 7:case"end":return a.stop()}},null,this)};c.$20=function(a){__p&&__p();return b("regeneratorRuntime").async(function(c){__p&&__p();while(1)switch(c.prev=c.next){case 0:if(!this.$4){c.next=4;break}if(!(a.type==="status_update")){c.next=4;break}c.next=4;return b("regeneratorRuntime").awrap(this.$44(a.data));case 4:case"end":return c.stop()}},null,this)};c.$44=function(a){__p&&__p();var c;return b("regeneratorRuntime").async(function(d){__p&&__p();while(1)switch(d.prev=d.next){case 0:if(!(this.$9&&this.$9!==a.reference_id)){d.next=4;break}d.next=3;return b("regeneratorRuntime").awrap(this.$41());case 3:return d.abrupt("return");case 4:c=a.state==="play",c!==this.$6&&(this.$6=c,this.$3.emit("casting/playStateChange",this.$6)),a.position>0&&(this.$13=a.position,this.$3.emit("casting/updateStatus",{position:a.position}));case 7:case"end":return d.stop()}},null,this)};c.$22=function(a){__p&&__p();return b("regeneratorRuntime").async(function(c){__p&&__p();while(1)switch(c.prev=c.next){case 0:if(this.$4){c.next=2;break}return c.abrupt("return");case 2:c.next=4;return b("regeneratorRuntime").awrap(this.$39(a));case 4:if(this.$6){c.next=7;break}c.next=7;return b("regeneratorRuntime").awrap(this.$15(!0));case 7:case"end":return c.stop()}},null,this)};c.$25=function(a){__p&&__p();return b("regeneratorRuntime").async(function(b){while(1)switch(b.prev=b.next){case 0:if(this.$4){b.next=2;break}return b.abrupt("return");case 2:this.$2.setVolume(a);case 3:case"end":return b.stop()}},null,this)};c.$23=function(){__p&&__p();return b("regeneratorRuntime").async(function(a){while(1)switch(a.prev=a.next){case 0:if(this.$4){a.next=2;break}return a.abrupt("return");case 2:this.$2.mute();case 3:case"end":return a.stop()}},null,this)};c.$24=function(){__p&&__p();return b("regeneratorRuntime").async(function(a){while(1)switch(a.prev=a.next){case 0:if(this.$4){a.next=2;break}return a.abrupt("return");case 2:this.$2.unmute();case 3:case"end":return a.stop()}},null,this)};c.$16=function(a){var c;return b("regeneratorRuntime").async(function(b){while(1)switch(b.prev=b.next){case 0:a&&this.$28("appendActionIfNew","found_receiver"),this.$3.logEvent("chromecast_availability_checked",(c={player:this.$3.getPlayerVersion(),cast_button_visible:a,connection:null,raw_client_time:Date.now()/1e3},c.chromecast_receiver_available=a,c)),this.$3.emit("casting/receiverStateChange",a);case 3:case"end":return b.stop()}},null,this)};c.$17=function(){return b("regeneratorRuntime").async(function(a){while(1)switch(a.prev=a.next){case 0:this.$28("appendAction","session_disconnected");a.next=3;return b("regeneratorRuntime").awrap(this.$41());case 3:case"end":return a.stop()}},null,this)};c.$19=function(){return b("regeneratorRuntime").async(function(a){while(1)switch(a.prev=a.next){case 0:this.$3.emit("casting/supportStateChange");case 1:case"end":return a.stop()}},null,this)};c.$18=function(){return b("regeneratorRuntime").async(function(a){while(1)switch(a.prev=a.next){case 0:this.$3.logEvent("chromecast_not_supported"),this.$3.emit("casting/notSupported");case 2:case"end":return a.stop()}},null,this)};c.$26=function(){__p&&__p();return b("regeneratorRuntime").async(function(a){__p&&__p();while(1)switch(a.prev=a.next){case 0:if(!this.$4){a.next=9;break}this.$3.pause("user_initiated");if(!this.$6){a.next=7;break}a.next=5;return b("regeneratorRuntime").awrap(this.$42());case 5:a.next=9;break;case 7:a.next=9;return b("regeneratorRuntime").awrap(this.$37());case 9:case"end":return a.stop()}},null,this)};c.$36=function(a){var c;return b("regeneratorRuntime").async(function(d){while(1)switch(d.prev=d.next){case 0:d.next=2;return b("regeneratorRuntime").awrap(this.$2.sendCommand("next_video",{feedback_disabled:this.$5},a));case 2:c=d.sent;return d.abrupt("return",c);case 4:case"end":return d.stop()}},null,this)};c.$37=function(a){var c;return b("regeneratorRuntime").async(function(d){while(1)switch(d.prev=d.next){case 0:d.next=2;return b("regeneratorRuntime").awrap(this.$2.sendCommand("play_video",{position:a}));case 2:c=d.sent;return d.abrupt("return",c);case 4:case"end":return d.stop()}},null,this)};c.$42=function(){var a;return b("regeneratorRuntime").async(function(c){while(1)switch(c.prev=c.next){case 0:c.next=2;return b("regeneratorRuntime").awrap(this.$2.sendCommand("pause_video"));case 2:a=c.sent;return c.abrupt("return",a);case 4:case"end":return c.stop()}},null,this)};c.$39=function(a){var c;return b("regeneratorRuntime").async(function(d){while(1)switch(d.prev=d.next){case 0:d.next=2;return b("regeneratorRuntime").awrap(this.$2.sendCommand("seek_video",{position:a}));case 2:c=d.sent;return d.abrupt("return",c);case 4:case"end":return d.stop()}},null,this)};c.$38=function(){var a;return b("regeneratorRuntime").async(function(c){while(1)switch(c.prev=c.next){case 0:c.next=2;return b("regeneratorRuntime").awrap(this.$2.sendCommand("skip_video"));case 2:a=c.sent;return c.abrupt("return",a);case 4:case"end":return c.stop()}},null,this)};c.$40=function(){var a;return b("regeneratorRuntime").async(function(c){while(1)switch(c.prev=c.next){case 0:c.next=2;return b("regeneratorRuntime").awrap(this.$2.sendCommand("stop_video"));case 2:a=c.sent;return c.abrupt("return",a);case 4:case"end":return c.stop()}},null,this)};c.$35=function(){var a;return b("regeneratorRuntime").async(function(c){while(1)switch(c.prev=c.next){case 0:c.next=2;return b("regeneratorRuntime").awrap(this.$2.getExperienceState());case 2:a=c.sent;return c.abrupt("return",a.experience_specific_state);case 4:case"end":return c.stop()}},null,this)};c.$21=function(a){return b("regeneratorRuntime").async(function(b){while(1)switch(b.prev=b.next){case 0:this.$12=a,this.$3.emit("casting/error",a);case 2:case"end":return b.stop()}},null,this)};return a}();e.exports=a}),null);