










/**** (c) Valve Corporation. Use is governed by the terms of the Steam Subscriber Agreement http://store.steampowered.com/subscriber_agreement/. 
****/
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{"/4Qd":function(e,t,r){},"3sYe":function(e,t,r){e.exports={BroadcastChat:"broadcastchat_BroadcastChat_3URK7",ChatEntry:"broadcastchat_ChatEntry_3soy-",ChatPanel:"broadcastchat_ChatPanel_2ZCAI",ChatMessages:"broadcastchat_ChatMessages_3M5L0",EmoticonContainer:"broadcastchat_EmoticonContainer_1wa4o",ChatSend:"broadcastchat_ChatSend_3JUnD",ChatBox:"broadcastchat_ChatBox_2qfgS",ChatControls:"broadcastchat_ChatControls_1TekO",MessageChat:"broadcastchat_MessageChat_22PB4",MessageName:"broadcastchat_MessageName_BJe6C",MessageContents:"broadcastchat_MessageContents_PNYZa",EmoticonsOnly:"broadcastchat_EmoticonsOnly_gFjH8",MessageNotification:"broadcastchat_MessageNotification_3Xb4_",MessageError:"broadcastchat_MessageError_8MzyW",minHeightZero:"broadcastchat_minHeightZero_r7HLM",ChatLoginButton:"broadcastchat_ChatLoginButton_2TAQo",RateLimitProgressBarContainer:"broadcastchat_RateLimitProgressBarContainer_JPqUG",RateLimitProgressBar:"broadcastchat_RateLimitProgressBar_1EcVK",TimedProgressBarContainer:"broadcastchat_TimedProgressBarContainer_39xGj",wrapper:"broadcastchat_wrapper_2vz6R",pie:"broadcastchat_pie_1k4dS",spinner:"broadcastchat_spinner_3nRh5",rota:"broadcastchat_rota_1xXh6",filler:"broadcastchat_filler_3Eegk",fill:"broadcastchat_fill_2tyuX",mask:"broadcastchat_mask_1V4Ke",FlairContainer:"broadcastchat_FlairContainer_166wp"}},"5znp":function(e,t,r){e.exports={FriendsListInsetShadowCtn:"insetshadow_FriendsListInsetShadowCtn_1qeW3",FriendListInsetShadowTop:"insetshadow_FriendListInsetShadowTop_1osHa",FriendListInsetShadowBottom:"insetshadow_FriendListInsetShadowBottom_2OoTJ"}},FdXL:function(e,t,r){e.exports={LinkRegionDragBox:"linkregionbox_LinkRegionDragBox_Rtlc-",EdgeDown:"linkregionbox_EdgeDown_i9zrH",LinkRegionGridBox:"linkregionbox_LinkRegionGridBox_1Ob4A",LinkRegionEdge:"linkregionbox_LinkRegionEdge_2stP4",TopLeft:"linkregionbox_TopLeft_Clgi-",Top:"linkregionbox_Top_2Z9Vy",TopRight:"linkregionbox_TopRight_2-8Db",Left:"linkregionbox_Left_3ZwUw",Middle:"linkregionbox_Middle_1Heco",LinkRegionDelete:"linkregionbox_LinkRegionDelete_3Hb3w",LinkRegionSettings:"linkregionbox_LinkRegionSettings_VazMl",Right:"linkregionbox_Right_3h5fK",BottomLeft:"linkregionbox_BottomLeft_2CQe0",Bottom:"linkregionbox_Bottom_sIHlK",BottomRight:"linkregionbox_BottomRight_3lnwj",topleft:"linkregionbox_topleft_3W096",top:"linkregionbox_top_1iRW1",topright:"linkregionbox_topright_1Yrl7",left:"linkregionbox_left_2iBrm",right:"linkregionbox_right_15t6A",bottomleft:"linkregionbox_bottomleft_3SdBc",bottom:"linkregionbox_bottom_2kzZ9",bottomright:"linkregionbox_bottomright_2AKXk",middle:"linkregionbox_middle_1CS75",LinkRegionButtonContainer:"linkregionbox_LinkRegionButtonContainer_1ZJ42",DialogButton:"linkregionbox_DialogButton_nN2Q1",LinkRegionInfo:"linkregionbox_LinkRegionInfo_3TiV7",LinkText:"linkregionbox_LinkText_2TAc2"}},HWOl:function(e,t,r){e.exports=r.p+"../../../images/applications/store/delete_search_term.png?v=2fb4ca9b6cc7bd8a6edcc069a869b37b"},NIbt:function(e,t,r){"use strict";r.r(t);var m=r("mrSG"),n=r("vDqi"),p=r.n(n),i=r("TyAF"),S=r("q1tI"),a=r.n(S),o=r("2vnA"),s=r("bxiW"),c=r("hRO2"),u=r("OS8t"),l=c.Message;var d=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.broadcast_id||u.a(n.M()),l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{broadcast_id:{n:1,br:u.d.readFixed64String,bw:u.h.writeFixed64String},thumbnail_upload_address:{n:2,br:u.d.readString,bw:u.h.writeString},thumbnail_upload_token:{n:3,br:u.d.readString,bw:u.h.writeString},thumbnail_interval_seconds:{n:4,br:u.d.readUint32,bw:u.h.writeUint32},heartbeat_interval_seconds:{n:5,br:u.d.readUint32,bw:u.h.writeUint32}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CBroadcast_BeginBroadcastSession_Response"},n}(l),f=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return e?{$jspbMessageInstance:t}:{}},n.fromObject=function(e){return new n},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return e},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){},n.prototype.getClassName=function(){return"CBroadcast_EndBroadcastSession_Response"},n}(l),h=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.upload_token||u.a(n.M()),l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{upload_token:{n:1,br:u.d.readString,bw:u.h.writeString},upload_address:{n:2,br:u.d.readString,bw:u.h.writeString},broadcast_upload_id:{n:3,br:u.d.readFixed64String,bw:u.h.writeFixed64String},enable_replay:{n:6,br:u.d.readBool,bw:u.h.writeBool},http_address:{n:7,br:u.d.readString,bw:u.h.writeString}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CBroadcast_StartBroadcastUpload_Response"},n}(l),b=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.broadcast_id||u.a(n.M()),l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{broadcast_id:{n:1,br:u.d.readFixed64String,bw:u.h.writeFixed64String},upload_token:{n:2,br:u.d.readString,bw:u.h.writeString},upload_address:{n:3,br:u.d.readString,bw:u.h.writeString},http_address:{n:4,br:u.d.readString,bw:u.h.writeString},broadcast_upload_id:{n:5,br:u.d.readFixed64String,bw:u.h.writeFixed64String},heartbeat_interval_seconds:{n:6,br:u.d.readUint32,bw:u.h.writeUint32},is_rtmp:{n:7,br:u.d.readBool,bw:u.h.writeBool}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CBroadcast_BroadcastUploadStarted_Notification"},n}(l),_=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.gameid||u.a(n.M()),l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{gameid:{n:1,br:u.d.readUint64String,bw:u.h.writeUint64String},title:{n:2,br:u.d.readString,bw:u.h.writeString},num_viewers:{n:3,br:u.d.readUint32,bw:u.h.writeUint32},permission:{n:4,br:u.d.readInt32,bw:u.h.writeInt32},is_rtmp:{n:5,br:u.d.readBool,bw:u.h.writeBool},seconds_delay:{n:6,br:u.d.readInt32,bw:u.h.writeInt32},is_publisher:{n:7,br:u.d.readBool,bw:u.h.writeBool},thumbnail_url:{n:8,br:u.d.readString,bw:u.h.writeString},update_interval:{n:9,br:u.d.readInt32,bw:u.h.writeInt32},is_uploading:{n:10,br:u.d.readBool,bw:u.h.writeBool},duration:{n:11,br:u.d.readUint32,bw:u.h.writeUint32},is_replay:{n:12,br:u.d.readBool,bw:u.h.writeBool},is_capturing_vod:{n:13,br:u.d.readBool,bw:u.h.writeBool},is_store_whitelisted:{n:14,br:u.d.readBool,bw:u.h.writeBool}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CBroadcast_GetBroadcastStatus_Response"},n}(l),y=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.thumbnail_url||u.a(n.M()),l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{thumbnail_url:{n:1,br:u.d.readString,bw:u.h.writeString},update_interval:{n:2,br:u.d.readInt32,bw:u.h.writeInt32},num_viewers:{n:3,br:u.d.readInt32,bw:u.h.writeInt32},duration:{n:4,br:u.d.readInt32,bw:u.h.writeInt32}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CBroadcast_GetBroadcastThumbnail_Response"},n}(l),B=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.response||u.a(n.M()),l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{response:{n:1,br:u.d.readEnum,bw:u.h.writeEnum},mpd_url:{n:2,br:u.d.readString,bw:u.h.writeString},broadcast_id:{n:3,br:u.d.readFixed64String,bw:u.h.writeFixed64String},gameid:{n:4,br:u.d.readUint64String,bw:u.h.writeUint64String},title:{n:5,br:u.d.readString,bw:u.h.writeString},num_viewers:{n:6,br:u.d.readUint32,bw:u.h.writeUint32},permission:{n:7,br:u.d.readInt32,bw:u.h.writeInt32},is_rtmp:{n:8,br:u.d.readBool,bw:u.h.writeBool},seconds_delay:{n:9,br:u.d.readInt32,bw:u.h.writeInt32},viewer_token:{n:10,br:u.d.readFixed64String,bw:u.h.writeFixed64String},hls_m3u8_master_url:{n:11,br:u.d.readString,bw:u.h.writeString},heartbeat_interval:{n:12,br:u.d.readInt32,bw:u.h.writeInt32},thumbnail_url:{n:13,br:u.d.readString,bw:u.h.writeString},is_webrtc:{n:14,br:u.d.readBool,bw:u.h.writeBool},webrtc_session_id:{n:15,br:u.d.readFixed64String,bw:u.h.writeFixed64String},webrtc_offer_sdp:{n:16,br:u.d.readString,bw:u.h.writeString},webrtc_turn_server:{n:17,br:u.d.readString,bw:u.h.writeString},is_replay:{n:18,br:u.d.readBool,bw:u.h.writeBool},duration:{n:19,br:u.d.readInt32,bw:u.h.writeInt32},cdn_auth_url_parameters:{n:20,br:u.d.readString,bw:u.h.writeString}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CBroadcast_WatchBroadcast_Response"},n}(l);var g=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.success||u.a(n.M()),l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{success:{n:1,br:u.d.readBool,bw:u.h.writeBool}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CBroadcast_InviteToBroadcast_Response"},n}(l),v=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return e?{$jspbMessageInstance:t}:{}},n.fromObject=function(e){return new n},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return e},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){},n.prototype.getClassName=function(){return"CBroadcast_SendBroadcastStateToServer_Response"},n}(l),w=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.steamid||u.a(n.M()),l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{steamid:{n:1,br:u.d.readFixed64String,bw:u.h.writeFixed64String},state:{n:2,br:u.d.readEnum,bw:u.h.writeEnum}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CBroadcast_BroadcastViewerState_Notification"},n}(l);var M,O,C,R,j=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.broadcast_id||u.a(n.M()),l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{broadcast_id:{n:1,br:u.d.readFixed64String,bw:u.h.writeFixed64String}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CBroadcast_WaitingBroadcastViewer_Notification"},n}(l),z=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.broadcast_id||u.a(n.M()),l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{broadcast_id:{n:1,br:u.d.readFixed64String,bw:u.h.writeFixed64String},broadcast_relay_id:{n:2,br:u.d.readFixed64String,bw:u.h.writeFixed64String},upload_result:{n:3,br:u.d.readUint32,bw:u.h.writeUint32},too_many_poor_uploads:{n:4,br:u.d.readBool,bw:u.h.writeBool}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CBroadcast_StopBroadcastUpload_Notification"},n}(l),T=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.broadcast_id||u.a(n.M()),l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{broadcast_id:{n:1,br:u.d.readFixed64String,bw:u.h.writeFixed64String}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CBroadcast_SessionClosed_Notification"},n}(l),F=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.broadcast_id||u.a(n.M()),l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{broadcast_id:{n:1,br:u.d.readFixed64String,bw:u.h.writeFixed64String},num_viewers:{n:2,br:u.d.readInt32,bw:u.h.writeInt32}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CBroadcast_BroadcastStatus_Notification"},n}(l),E=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.broadcast_channel_id||u.a(n.M()),l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{broadcast_channel_id:{n:1,br:u.d.readFixed64String,bw:u.h.writeFixed64String},broadcast_channel_name:{n:2,br:u.d.readString,bw:u.h.writeString},broadcast_channel_avatar:{n:3,br:u.d.readString,bw:u.h.writeString}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CBroadcast_BroadcastChannelLive_Notification"},n}(l),P=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.thumbnail_upload_token||u.a(n.M()),l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{thumbnail_upload_token:{n:1,br:u.d.readString,bw:u.h.writeString},thumbnail_broadcast_session_id:{n:2,br:u.d.readFixed64String,bw:u.h.writeFixed64String},thumbnail_data:{n:3,br:u.d.readBytes,bw:u.h.writeBytes},thumbnail_width:{n:4,br:u.d.readUint32,bw:u.h.writeUint32},thumbnail_height:{n:5,br:u.d.readUint32,bw:u.h.writeUint32}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CBroadcast_SendThumbnailToRelay_Notification"},n}(l),N=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.broadcaster_steamid||u.a(n.M()),l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{broadcaster_steamid:{n:1,br:u.d.readFixed64String,bw:u.h.writeFixed64String}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CBroadcast_ViewerBroadcastInvite_Notification"},n}(l),k=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.chat_id||u.a(n.M()),l.initialize(t,e,0,-1,[4],null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{chat_id:{n:1,br:u.d.readFixed64String,bw:u.h.writeFixed64String},view_url_template:{n:3,br:u.d.readString,bw:u.h.writeString},flair_group_ids:{n:4,r:!0,q:!0,br:u.d.readUint32,bw:u.h.writeRepeatedUint32}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CBroadcast_GetBroadcastChatInfo_Response"},n}(l),W=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.chat_id||u.a(n.M()),l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{chat_id:{n:1,br:u.d.readFixed64String,bw:u.h.writeFixed64String},message:{n:2,br:u.d.readString,bw:u.h.writeString},instance_id:{n:3,br:u.d.readUint32,bw:u.h.writeUint32},language:{n:4,d:0,br:u.d.readUint32,bw:u.h.writeUint32},country_code:{n:5,br:u.d.readString,bw:u.h.writeString}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CBroadcast_PostChatMessage_Request"},n}(l),I=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.persona_name||u.a(n.M()),l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{persona_name:{n:1,br:u.d.readString,bw:u.h.writeString},in_game:{n:2,br:u.d.readBool,bw:u.h.writeBool},result:{n:3,br:u.d.readInt32,bw:u.h.writeInt32},cooldown_time_seconds:{n:4,br:u.d.readInt32,bw:u.h.writeInt32}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CBroadcast_PostChatMessage_Response"},n}(l),D=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.chat_id||u.a(n.M()),l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{chat_id:{n:1,br:u.d.readFixed64String,bw:u.h.writeFixed64String},flair:{n:2,br:u.d.readString,bw:u.h.writeString}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CBroadcast_UpdateChatMessageFlair_Request"},n}(l),U=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.result||u.a(n.M()),l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{result:{n:1,br:u.d.readInt32,bw:u.h.writeInt32},chat_id:{n:2,br:u.d.readFixed64String,bw:u.h.writeFixed64String},flair:{n:3,br:u.d.readString,bw:u.h.writeString}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CBroadcast_UpdateChatMessageFlair_Response"},n}(l),L=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.chat_id||u.a(n.M()),l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{chat_id:{n:1,br:u.d.readFixed64String,bw:u.h.writeFixed64String},user_steamid:{n:2,br:u.d.readFixed64String,bw:u.h.writeFixed64String},muted:{n:3,br:u.d.readBool,bw:u.h.writeBool}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CBroadcast_MuteBroadcastChatUser_Request"},n}(l),x=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return e?{$jspbMessageInstance:t}:{}},n.fromObject=function(e){return new n},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return e},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){},n.prototype.getClassName=function(){return"CBroadcast_MuteBroadcastChatUser_Response"},n}(l),V=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.chat_id||u.a(n.M()),l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{chat_id:{n:1,br:u.d.readFixed64String,bw:u.h.writeFixed64String},user_steamid:{n:2,br:u.d.readFixed64String,bw:u.h.writeFixed64String}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CBroadcast_RemoveUserChatText_Request"},n}(l),G=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return e?{$jspbMessageInstance:t}:{}},n.fromObject=function(e){return new n},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return e},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){},n.prototype.getClassName=function(){return"CBroadcast_RemoveUserChatText_Response"},n}(l),A=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.persona_names||u.a(n.M()),l.initialize(t,e,0,-1,[1],null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{persona_names:{n:1,c:H,r:!0,q:!0}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CBroadcast_GetBroadcastChatUserNames_Response"},n}(l),H=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.steam_id||u.a(n.M()),l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{steam_id:{n:1,br:u.d.readFixed64String,bw:u.h.writeFixed64String},persona:{n:2,br:u.d.readString,bw:u.h.writeString}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CBroadcast_GetBroadcastChatUserNames_Response_PersonaName"},n}(l),q=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.broadcast_clip_id||u.a(n.M()),l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{broadcast_clip_id:{n:1,br:u.d.readFixed64String,bw:u.h.writeFixed64String}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CBroadcast_StartBuildClip_Response"},n}(l),K=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return e?{$jspbMessageInstance:t}:{}},n.fromObject=function(e){return new n},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return e},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){},n.prototype.getClassName=function(){return"CBroadcast_GetBuildClipStatus_Response"},n}(l),X=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return e?{$jspbMessageInstance:t}:{}},n.fromObject=function(e){return new n},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return e},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){},n.prototype.getClassName=function(){return"CBroadcast_SetClipDetails_Response"},n}(l),J=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.broadcast_clip_id||u.a(n.M()),l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{broadcast_clip_id:{n:1,br:u.d.readUint64String,bw:u.h.writeUint64String},video_id:{n:2,br:u.d.readUint64String,bw:u.h.writeUint64String},channel_id:{n:3,br:u.d.readUint64String,bw:u.h.writeUint64String},app_id:{n:4,br:u.d.readUint32,bw:u.h.writeUint32},accountid_broadcaster:{n:5,br:u.d.readUint32,bw:u.h.writeUint32},accountid_clipmaker:{n:6,br:u.d.readUint32,bw:u.h.writeUint32},video_description:{n:7,br:u.d.readString,bw:u.h.writeString},start_time:{n:8,br:u.d.readUint32,bw:u.h.writeUint32},length_milliseconds:{n:9,br:u.d.readUint32,bw:u.h.writeUint32},thumbnail_path:{n:10,br:u.d.readString,bw:u.h.writeString}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CBroadcast_GetClipDetails_Response"},n}(l),Y=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return e?{$jspbMessageInstance:t}:{}},n.fromObject=function(e){return new n},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return e},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){},n.prototype.getClassName=function(){return"CBroadcast_SetRTMPInfo_Response"},n}(l),$=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.broadcast_permission||u.a(n.M()),l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{broadcast_permission:{n:1,br:u.d.readInt32,bw:u.h.writeInt32},rtmp_host:{n:2,br:u.d.readString,bw:u.h.writeString},rtmp_token:{n:3,br:u.d.readString,bw:u.h.writeString},broadcast_delay:{n:4,br:u.d.readInt32,bw:u.h.writeInt32},app_id:{n:5,br:u.d.readUint32,bw:u.h.writeUint32},required_app_id:{n:6,br:u.d.readUint32,bw:u.h.writeUint32},broadcast_chat_permission:{n:7,br:u.d.readEnum,bw:u.h.writeEnum},broadcast_buffer:{n:8,br:u.d.readInt32,bw:u.h.writeInt32},steamid:{n:9,br:u.d.readFixed64String,bw:u.h.writeFixed64String},chat_rate_limit:{n:10,br:u.d.readUint32,bw:u.h.writeUint32},enable_replay:{n:11,br:u.d.readBool,bw:u.h.writeBool}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CBroadcast_GetRTMPInfo_Response"},n}(l),Z=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.upload_stats||u.a(n.M()),l.initialize(t,e,0,-1,[1],null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{upload_stats:{n:1,c:Q,r:!0,q:!0}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CBroadcast_GetBroadcastUploadStats_Response"},n}(l),Q=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.upload_result||u.a(n.M()),l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{upload_result:{n:1,br:u.d.readUint32,bw:u.h.writeUint32},time_stopped:{n:2,br:u.d.readUint32,bw:u.h.writeUint32},seconds_uploaded:{n:3,br:u.d.readUint32,bw:u.h.writeUint32},max_viewers:{n:4,br:u.d.readUint32,bw:u.h.writeUint32},resolution_x:{n:5,br:u.d.readUint32,bw:u.h.writeUint32},resolution_y:{n:6,br:u.d.readUint32,bw:u.h.writeUint32},avg_bandwidth:{n:7,br:u.d.readUint32,bw:u.h.writeUint32},total_bytes:{n:8,br:u.d.readUint64String,bw:u.h.writeUint64String},app_id:{n:9,br:u.d.readUint32,bw:u.h.writeUint32},total_unique_viewers:{n:10,br:u.d.readUint32,bw:u.h.writeUint32},total_seconds_watched:{n:11,br:u.d.readUint64String,bw:u.h.writeUint64String},time_started:{n:12,br:u.d.readUint32,bw:u.h.writeUint32},upload_id:{n:13,br:u.d.readUint64String,bw:u.h.writeUint64String},local_address:{n:14,br:u.d.readString,bw:u.h.writeString},remote_address:{n:15,br:u.d.readString,bw:u.h.writeString},frames_per_second:{n:16,br:u.d.readUint32,bw:u.h.writeUint32},num_representations:{n:17,br:u.d.readUint32,bw:u.h.writeUint32},app_name:{n:18,br:u.d.readString,bw:u.h.writeString},is_replay:{n:19,br:u.d.readBool,bw:u.h.writeBool},session_id:{n:20,br:u.d.readUint64String,bw:u.h.writeUint64String}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CBroadcast_GetBroadcastUploadStats_Response_UploadStats"},n}(l),ee=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.viewer_stats||u.a(n.M()),l.initialize(t,e,0,-1,[1,2],null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{viewer_stats:{n:1,c:te,r:!0,q:!0},country_stats:{n:2,c:re,r:!0,q:!0}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CBroadcast_GetBroadcastViewerStats_Response"},n}(l),te=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.time||u.a(n.M()),l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{time:{n:1,br:u.d.readUint32,bw:u.h.writeUint32},num_viewers:{n:2,br:u.d.readUint32,bw:u.h.writeUint32}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CBroadcast_GetBroadcastViewerStats_Response_ViewerStats"},n}(l),re=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.country_code||u.a(n.M()),l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{country_code:{n:1,br:u.d.readString,bw:u.h.writeString},num_viewers:{n:2,br:u.d.readUint32,bw:u.h.writeUint32}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CBroadcast_GetBroadcastViewerStats_Response_CountryStats"},n}(l),ne=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return e?{$jspbMessageInstance:t}:{}},n.fromObject=function(e){return new n},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return e},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){},n.prototype.getClassName=function(){return"CBroadcast_WebRTCStartResult_Response"},n}(l),ie=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return e?{$jspbMessageInstance:t}:{}},n.fromObject=function(e){return new n},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return e},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){},n.prototype.getClassName=function(){return"CBroadcast_WebRTCStopped_Response"},n}(l),ae=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return e?{$jspbMessageInstance:t}:{}},n.fromObject=function(e){return new n},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return e},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){},n.prototype.getClassName=function(){return"CBroadcast_WebRTCSetAnswer_Response"},n}(l),oe=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.sdp_mid||u.a(n.M()),l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{sdp_mid:{n:1,br:u.d.readString,bw:u.h.writeString},sdp_mline_index:{n:2,br:u.d.readInt32,bw:u.h.writeInt32},candidate:{n:3,br:u.d.readString,bw:u.h.writeString}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CBroadcast_WebRTC_Candidate"},n}(l),se=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return e?{$jspbMessageInstance:t}:{}},n.fromObject=function(e){return new n},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return e},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){},n.prototype.getClassName=function(){return"CBroadcast_WebRTCAddHostCandidate_Response"},n}(l),ce=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return e?{$jspbMessageInstance:t}:{}},n.fromObject=function(e){return new n},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return e},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){},n.prototype.getClassName=function(){return"CBroadcast_WebRTCAddViewerCandidate_Response"},n}(l),ue=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.candidate_generation||u.a(n.M()),l.initialize(t,e,0,-1,[2],null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{candidate_generation:{n:1,br:u.d.readUint32,bw:u.h.writeUint32},candidates:{n:2,c:oe,r:!0,q:!0}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CBroadcast_WebRTCGetHostCandidates_Response"},n}(l),le=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.broadcast_session_id||u.a(n.M()),l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{broadcast_session_id:{n:1,br:u.d.readFixed64String,bw:u.h.writeFixed64String}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CBroadcast_WebRTCNeedTURNServer_Notification"},n}(l),de=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.turn_server||u.a(n.M()),l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{turn_server:{n:1,br:u.d.readString,bw:u.h.writeString}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CBroadcast_WebRTCLookupTURNServer_Response"},n}(l),me=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.broadcast_session_id||u.a(n.M()),l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{broadcast_session_id:{n:1,br:u.d.readFixed64String,bw:u.h.writeFixed64String},webrtc_session_id:{n:2,br:u.d.readFixed64String,bw:u.h.writeFixed64String},viewer_steamid:{n:3,br:u.d.readFixed64String,bw:u.h.writeFixed64String},viewer_token:{n:4,br:u.d.readFixed64String,bw:u.h.writeFixed64String}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CBroadcast_WebRTCStart_Notification"},n}(l),pe=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.broadcast_session_id||u.a(n.M()),l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{broadcast_session_id:{n:1,br:u.d.readFixed64String,bw:u.h.writeFixed64String},webrtc_session_id:{n:2,br:u.d.readFixed64String,bw:u.h.writeFixed64String},answer:{n:3,br:u.d.readString,bw:u.h.writeString}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CBroadcast_WebRTCSetAnswer_Notification"},n}(l),fe=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.broadcast_session_id||u.a(n.M()),l.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{broadcast_session_id:{n:1,br:u.d.readFixed64String,bw:u.h.writeFixed64String},webrtc_session_id:{n:2,br:u.d.readFixed64String,bw:u.h.writeFixed64String},candidate:{n:3,c:oe}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CBroadcast_WebRTCAddViewerCandidate_Notification"},n}(l);(O=M=M||{}).BeginBroadcastSession=function(e,t){return e.SendMsg("Broadcast.BeginBroadcastSession#1",t,d,{ePrivilege:1})},O.EndBroadcastSession=function(e,t){return e.SendMsg("Broadcast.EndBroadcastSession#1",t,f,{ePrivilege:1})},O.StartBroadcastUpload=function(e,t){return e.SendMsg("Broadcast.StartBroadcastUpload#1",t,h,{ePrivilege:1})},O.NotifyBroadcastUploadStop=function(e,t){return e.SendNotification("Broadcast.NotifyBroadcastUploadStop#1",t,{ePrivilege:1})},O.WatchBroadcast=function(e,t){return e.SendMsg("Broadcast.WatchBroadcast#1",t,B,{ePrivilege:2})},O.HeartbeatBroadcast=function(e,t){return e.SendNotification("Broadcast.HeartbeatBroadcast#1",t,{ePrivilege:2})},O.StopWatchingBroadcast=function(e,t){return e.SendNotification("Broadcast.StopWatchingBroadcast#1",t,{ePrivilege:2})},O.GetBroadcastStatus=function(e,t){return e.SendMsg("Broadcast.GetBroadcastStatus#1",t,_,{ePrivilege:2})},O.GetBroadcastThumbnail=function(e,t){return e.SendMsg("Broadcast.GetBroadcastThumbnail#1",t,y,{ePrivilege:2})},O.InviteToBroadcast=function(e,t){return e.SendMsg("Broadcast.InviteToBroadcast#1",t,g,{ePrivilege:1})},O.SendBroadcastStateToServer=function(e,t){return e.SendMsg("Broadcast.SendBroadcastStateToServer#1",t,v,{ePrivilege:1})},O.NotifyBroadcastSessionHeartbeat=function(e,t){return e.SendNotification("Broadcast.NotifyBroadcastSessionHeartbeat#1",t,{ePrivilege:1})},O.GetBroadcastChatInfo=function(e,t){return e.SendMsg("Broadcast.GetBroadcastChatInfo#1",t,k,{ePrivilege:2})},O.PostChatMessage=function(e,t){return e.SendMsg("Broadcast.PostChatMessage#1",t,I,{ePrivilege:3})},O.UpdateChatMessageFlair=function(e,t){return e.SendMsg("Broadcast.UpdateChatMessageFlair#1",t,U,{ePrivilege:1})},O.MuteBroadcastChatUser=function(e,t){return e.SendMsg("Broadcast.MuteBroadcastChatUser#1",t,x,{ePrivilege:3})},O.RemoveUserChatText=function(e,t){return e.SendMsg("Broadcast.RemoveUserChatText#1",t,G,{ePrivilege:3})},O.GetBroadcastChatUserNames=function(e,t){return e.SendMsg("Broadcast.GetBroadcastChatUserNames#1",t,A,{ePrivilege:1})},O.StartBuildClip=function(e,t){return e.SendMsg("Broadcast.StartBuildClip#1",t,q,{ePrivilege:1,eWebAPIKeyRequirement:2})},O.GetBuildClipStatus=function(e,t){return e.SendMsg("Broadcast.GetBuildClipStatus#1",t,K,{bConstMethod:!0,ePrivilege:1,eWebAPIKeyRequirement:2})},O.SetClipDetails=function(e,t){return e.SendMsg("Broadcast.SetClipDetails#1",t,X,{ePrivilege:1,eWebAPIKeyRequirement:2})},O.GetClipDetails=function(e,t){return e.SendMsg("Broadcast.GetClipDetails#1",t,J,{bConstMethod:!0,ePrivilege:0,eWebAPIKeyRequirement:2})},O.SetRTMPInfo=function(e,t){return e.SendMsg("Broadcast.SetRTMPInfo#1",t,Y,{ePrivilege:1})},O.GetRTMPInfo=function(e,t){return e.SendMsg("Broadcast.GetRTMPInfo#1",t,$,{bConstMethod:!0,ePrivilege:1})},O.NotifyWebRTCHaveTURNServer=function(e,t){return e.SendNotification("Broadcast.NotifyWebRTCHaveTURNServer#1",t,{ePrivilege:1})},O.WebRTCStartResult=function(e,t){return e.SendMsg("Broadcast.WebRTCStartResult#1",t,ne,{ePrivilege:1})},O.WebRTCStopped=function(e,t){return e.SendMsg("Broadcast.WebRTCStopped#1",t,ie,{ePrivilege:1})},O.WebRTCSetAnswer=function(e,t){return e.SendMsg("Broadcast.WebRTCSetAnswer#1",t,ae,{ePrivilege:1})},O.WebRTCLookupTURNServer=function(e,t){return e.SendMsg("Broadcast.WebRTCLookupTURNServer#1",t,de,{ePrivilege:1})},O.WebRTCAddHostCandidate=function(e,t){return e.SendMsg("Broadcast.WebRTCAddHostCandidate#1",t,se,{ePrivilege:1})},O.WebRTCAddViewerCandidate=function(e,t){return e.SendMsg("Broadcast.WebRTCAddViewerCandidate#1",t,ce,{ePrivilege:1})},O.WebRTCGetHostCandidates=function(e,t){return e.SendMsg("Broadcast.WebRTCGetHostCandidates#1",t,ue,{ePrivilege:1})},O.GetBroadcastUploadStats=function(e,t){return e.SendMsg("Broadcast.GetBroadcastUploadStats#1",t,Z,{bConstMethod:!0,ePrivilege:1,eWebAPIKeyRequirement:2})},O.GetBroadcastViewerStats=function(e,t){return e.SendMsg("Broadcast.GetBroadcastViewerStats#1",t,ee,{bConstMethod:!0,ePrivilege:1,eWebAPIKeyRequirement:2})},(R=C=C||{}).NotifyBroadcastViewerStateHandler={name:"BroadcastClient.NotifyBroadcastViewerState#1",request:w},R.NotifyWaitingBroadcastViewerHandler={name:"BroadcastClient.NotifyWaitingBroadcastViewer#1",request:j},R.NotifyBroadcastUploadStartedHandler={name:"BroadcastClient.NotifyBroadcastUploadStarted#1",request:b},R.NotifyStopBroadcastUploadHandler={name:"BroadcastClient.NotifyStopBroadcastUpload#1",request:z},R.NotifySessionClosedHandler={name:"BroadcastClient.NotifySessionClosed#1",request:T},R.NotifyViewerBroadcastInviteHandler={name:"BroadcastClient.NotifyViewerBroadcastInvite#1",request:N},R.NotifyBroadcastStatusHandler={name:"BroadcastClient.NotifyBroadcastStatus#1",request:F},R.NotifyBroadcastChannelLiveHandler={name:"BroadcastClient.NotifyBroadcastChannelLive#1",request:E},R.SendThumbnailToRelayHandler={name:"BroadcastClient.SendThumbnailToRelay#1",request:P},R.NotifyWebRTCNeedTURNServerHandler={name:"BroadcastClient.NotifyWebRTCNeedTURNServer#1",request:le},R.NotifyWebRTCStartHandler={name:"BroadcastClient.NotifyWebRTCStart#1",request:me},R.NotifyWebRTCSetAnswerHandler={name:"BroadcastClient.NotifyWebRTCSetAnswer#1",request:pe},R.NotifyWebRTCAddViewerCandidateHandler={name:"BroadcastClient.NotifyWebRTCAddViewerCandidate#1",request:fe};var he=r("qiKp"),be=r("TLQK"),_e=r("lkRc"),ye=r("A5MU"),Be=r("bxBv"),ge=c.Message;var ve,Se,we=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.broadcast_channel_id||u.a(n.M()),ge.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{broadcast_channel_id:{n:1,br:u.d.readFixed64String,bw:u.h.writeFixed64String}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_CreateBroadcastChannel_Response"},n}(ge),Me=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.broadcast_channel_id||u.a(n.M()),ge.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{broadcast_channel_id:{n:1,br:u.d.readFixed64String,bw:u.h.writeFixed64String},unique_name:{n:2,br:u.d.readString,bw:u.h.writeString},steamid:{n:3,br:u.d.readFixed64String,bw:u.h.writeFixed64String}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_GetBroadcastChannelID_Response"},n}(ge),Oe=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return ge.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return e?{$jspbMessageInstance:t}:{}},n.fromObject=function(e){return new n},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return e},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){},n.prototype.getClassName=function(){return"CSteamTV_SetBroadcastChannelProfile_Response"},n}(ge),Ce=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.unique_name||u.a(n.M()),ge.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{unique_name:{n:1,br:u.d.readString,bw:u.h.writeString},owner_steamid:{n:2,br:u.d.readFixed64String,bw:u.h.writeFixed64String},name:{n:3,br:u.d.readString,bw:u.h.writeString},language:{n:4,br:u.d.readString,bw:u.h.writeString},headline:{n:5,br:u.d.readString,bw:u.h.writeString},summary:{n:6,br:u.d.readString,bw:u.h.writeString},schedule:{n:7,br:u.d.readString,bw:u.h.writeString},rules:{n:8,br:u.d.readString,bw:u.h.writeString},panels:{n:9,br:u.d.readString,bw:u.h.writeString},is_partnered:{n:10,br:u.d.readBool,bw:u.h.writeBool}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_GetBroadcastChannelProfile_Response"},n}(ge),Re=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.replace_image_hash||u.a(n.M()),ge.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{replace_image_hash:{n:1,br:u.d.readString,bw:u.h.writeString}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_SetBroadcastChannelImage_Response"},n}(ge),je=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.images||u.a(n.M()),ge.initialize(t,e,0,-1,[1],null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{images:{n:1,c:ze,r:!0,q:!0}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_GetBroadcastChannelImages_Response"},n}(ge),ze=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.image_type||u.a(n.M()),ge.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{image_type:{n:1,br:u.d.readEnum,bw:u.h.writeEnum},image_path:{n:2,br:u.d.readString,bw:u.h.writeString},image_index:{n:3,br:u.d.readUint32,bw:u.h.writeUint32}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_GetBroadcastChannelImages_Response_Images"},n}(ge),Te=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.links||u.a(n.M()),ge.initialize(t,e,0,-1,[1],null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{links:{n:1,c:Fe,r:!0,q:!0}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_GetBroadcastChannelLinks_Response"},n}(ge),Fe=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.link_index||u.a(n.M()),ge.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{link_index:{n:1,br:u.d.readUint32,bw:u.h.writeUint32},url:{n:2,br:u.d.readString,bw:u.h.writeString},link_description:{n:3,br:u.d.readString,bw:u.h.writeString},left:{n:4,br:u.d.readUint32,bw:u.h.writeUint32},top:{n:5,br:u.d.readUint32,bw:u.h.writeUint32},width:{n:6,br:u.d.readUint32,bw:u.h.writeUint32},height:{n:7,br:u.d.readUint32,bw:u.h.writeUint32}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_GetBroadcastChannelLinks_Response_Links"},n}(ge),Ee=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return ge.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return e?{$jspbMessageInstance:t}:{}},n.fromObject=function(e){return new n},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return e},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){},n.prototype.getClassName=function(){return"CSteamTV_SetBroadcastChannelLinkRegions_Response"},n}(ge),Pe=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.is_live||u.a(n.M()),ge.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{is_live:{n:1,br:u.d.readBool,bw:u.h.writeBool},is_disabled:{n:2,br:u.d.readBool,bw:u.h.writeBool},appid:{n:3,br:u.d.readUint32,bw:u.h.writeUint32},viewers:{n:4,br:u.d.readUint64String,bw:u.h.writeUint64String},views:{n:5,br:u.d.readUint64String,bw:u.h.writeUint64String},broadcaster_steamid:{n:6,br:u.d.readFixed64String,bw:u.h.writeFixed64String},thumbnail_url:{n:7,br:u.d.readString,bw:u.h.writeString},followers:{n:8,br:u.d.readUint64String,bw:u.h.writeUint64String},subscribers:{n:9,br:u.d.readUint64String,bw:u.h.writeUint64String},unique_name:{n:10,br:u.d.readString,bw:u.h.writeString},broadcast_session_id:{n:11,br:u.d.readUint64String,bw:u.h.writeUint64String}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_GetBroadcastChannelStatus_Response"},n}(ge),Ne=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.broadcast_channel_id||u.a(n.M()),ge.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{broadcast_channel_id:{n:1,br:u.d.readFixed64String,bw:u.h.writeFixed64String},unique_name:{n:2,br:u.d.readString,bw:u.h.writeString},name:{n:3,br:u.d.readString,bw:u.h.writeString},appid:{n:4,br:u.d.readUint32,bw:u.h.writeUint32},viewers:{n:5,br:u.d.readUint64String,bw:u.h.writeUint64String},views:{n:6,br:u.d.readUint64String,bw:u.h.writeUint64String},thumbnail_url:{n:7,br:u.d.readString,bw:u.h.writeString},followers:{n:8,br:u.d.readUint64String,bw:u.h.writeUint64String},headline:{n:9,br:u.d.readString,bw:u.h.writeString},avatar_url:{n:10,br:u.d.readString,bw:u.h.writeString},broadcaster_steamid:{n:11,br:u.d.readFixed64String,bw:u.h.writeFixed64String},subscribers:{n:12,br:u.d.readUint64String,bw:u.h.writeUint64String},background_url:{n:13,br:u.d.readString,bw:u.h.writeString},is_featured:{n:14,br:u.d.readBool,bw:u.h.writeBool},is_disabled:{n:15,br:u.d.readBool,bw:u.h.writeBool},is_live:{n:16,br:u.d.readBool,bw:u.h.writeBool},language:{n:17,br:u.d.readString,bw:u.h.writeString},reports:{n:18,br:u.d.readUint32,bw:u.h.writeUint32},is_partnered:{n:19,br:u.d.readBool,bw:u.h.writeBool}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"GetBroadcastChannelEntry"},n}(ge),ke=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.results||u.a(n.M()),ge.initialize(t,e,0,-1,[1],null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{results:{n:1,c:Ne,r:!0,q:!0}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_GetFollowedChannels_Response"},n}(ge),We=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.results||u.a(n.M()),ge.initialize(t,e,0,-1,[1],null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{results:{n:1,c:Ne,r:!0,q:!0}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_GetSubscribedChannels_Response"},n}(ge),Ie=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.is_followed||u.a(n.M()),ge.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{is_followed:{n:1,br:u.d.readBool,bw:u.h.writeBool}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_FollowBroadcastChannel_Response"},n}(ge),De=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.is_subscribed||u.a(n.M()),ge.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{is_subscribed:{n:1,br:u.d.readBool,bw:u.h.writeBool}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_SubscribeBroadcastChannel_Response"},n}(ge),Ue=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return ge.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return e?{$jspbMessageInstance:t}:{}},n.fromObject=function(e){return new n},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return e},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){},n.prototype.getClassName=function(){return"CSteamTV_ReportBroadcastChannel_Response"},n}(ge),Le=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.is_followed||u.a(n.M()),ge.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{is_followed:{n:1,br:u.d.readBool,bw:u.h.writeBool},is_subscribed:{n:2,br:u.d.readBool,bw:u.h.writeBool}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_GetBroadcastChannelInteraction_Response"},n}(ge),xe=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.appid||u.a(n.M()),ge.initialize(t,e,0,-1,[5],null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{appid:{n:1,br:u.d.readUint32,bw:u.h.writeUint32},name:{n:2,br:u.d.readString,bw:u.h.writeString},image:{n:3,br:u.d.readString,bw:u.h.writeString},viewers:{n:4,br:u.d.readUint64String,bw:u.h.writeUint64String},channels:{n:5,c:Ne,r:!0,q:!0},release_date:{n:6,br:u.d.readString,bw:u.h.writeString},developer:{n:7,br:u.d.readString,bw:u.h.writeString},publisher:{n:8,br:u.d.readString,bw:u.h.writeString}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_Game"},n}(ge),Ve=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.results||u.a(n.M()),ge.initialize(t,e,0,-1,[1],null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{results:{n:1,c:xe,r:!0,q:!0}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_GetGames_Response"},n}(ge),Ge=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.results||u.a(n.M()),ge.initialize(t,e,0,-1,[1],null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{results:{n:1,c:Ne,r:!0,q:!0}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_GetChannels_Response"},n}(ge),Ae=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.broadcasters||u.a(n.M()),ge.initialize(t,e,0,-1,[1],null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{broadcasters:{n:1,c:He,r:!0,q:!0}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_GetBroadcastChannelBroadcasters_Response"},n}(ge),He=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.steamid||u.a(n.M()),ge.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{steamid:{n:1,br:u.d.readFixed64String,bw:u.h.writeFixed64String},name:{n:2,br:u.d.readString,bw:u.h.writeString},rtmp_token:{n:3,br:u.d.readString,bw:u.h.writeString}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_GetBroadcastChannelBroadcasters_Response_Broadcaster"},n}(ge),qe=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.issuer_steamid||u.a(n.M()),ge.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{issuer_steamid:{n:1,br:u.d.readFixed64String,bw:u.h.writeFixed64String},chatter_steamid:{n:2,br:u.d.readFixed64String,bw:u.h.writeFixed64String},time_expires:{n:3,br:u.d.readString,bw:u.h.writeString},permanent:{n:4,br:u.d.readBool,bw:u.h.writeBool},name:{n:5,br:u.d.readString,bw:u.h.writeString}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_ChatBan"},n}(ge),Ke=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.broadcast_channel_id||u.a(n.M()),ge.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{broadcast_channel_id:{n:1,br:u.d.readFixed64String,bw:u.h.writeFixed64String},chatter_steamid:{n:2,br:u.d.readFixed64String,bw:u.h.writeFixed64String},duration:{n:3,br:u.d.readUint32,bw:u.h.writeUint32},permanent:{n:4,br:u.d.readBool,bw:u.h.writeBool},undo:{n:5,br:u.d.readBool,bw:u.h.writeBool}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_AddChatBan_Request"},n}(ge),Xe=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return ge.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return e?{$jspbMessageInstance:t}:{}},n.fromObject=function(e){return new n},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return e},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){},n.prototype.getClassName=function(){return"CSteamTV_AddChatBan_Response"},n}(ge),Je=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.results||u.a(n.M()),ge.initialize(t,e,0,-1,[1],null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{results:{n:1,c:qe,r:!0,q:!0}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_GetChatBans_Response"},n}(ge),Ye=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.broadcast_channel_id||u.a(n.M()),ge.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{broadcast_channel_id:{n:1,br:u.d.readFixed64String,bw:u.h.writeFixed64String},moderator_steamid:{n:2,br:u.d.readFixed64String,bw:u.h.writeFixed64String},undo:{n:3,br:u.d.readBool,bw:u.h.writeBool}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_AddChatModerator_Request"},n}(ge),$e=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return ge.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return e?{$jspbMessageInstance:t}:{}},n.fromObject=function(e){return new n},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return e},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){},n.prototype.getClassName=function(){return"CSteamTV_AddChatModerator_Response"},n}(ge),Ze=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.broadcast_channel_id||u.a(n.M()),ge.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{broadcast_channel_id:{n:1,br:u.d.readFixed64String,bw:u.h.writeFixed64String}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_GetChatModerators_Request"},n}(ge),Qe=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.steamid||u.a(n.M()),ge.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{steamid:{n:1,br:u.d.readFixed64String,bw:u.h.writeFixed64String},name:{n:2,br:u.d.readString,bw:u.h.writeString}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_ChatModerator"},n}(ge),et=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.results||u.a(n.M()),ge.initialize(t,e,0,-1,[1],null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{results:{n:1,c:Qe,r:!0,q:!0}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_GetChatModerators_Response"},n}(ge),tt=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return ge.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return e?{$jspbMessageInstance:t}:{}},n.fromObject=function(e){return new n},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return e},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){},n.prototype.getClassName=function(){return"CSteamTV_AddWordBan_Response"},n}(ge),rt=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.results||u.a(n.M()),ge.initialize(t,e,0,-1,[1],null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{results:{n:1,r:!0,q:!0,br:u.d.readString,bw:u.h.writeRepeatedString}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_GetWordBans_Response"},n}(ge),nt=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.broadcast_channel_id||u.a(n.M()),ge.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{broadcast_channel_id:{n:1,br:u.d.readFixed64String,bw:u.h.writeFixed64String}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_JoinChat_Request"},n}(ge),it=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.chat_id||u.a(n.M()),ge.initialize(t,e,0,-1,[3],null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{chat_id:{n:1,br:u.d.readFixed64String,bw:u.h.writeFixed64String},view_url_template:{n:2,br:u.d.readString,bw:u.h.writeString},flair_group_ids:{n:3,r:!0,q:!0,br:u.d.readUint64String,bw:u.h.writeRepeatedUint64String}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_JoinChat_Response"},n}(ge),at=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.results||u.a(n.M()),ge.initialize(t,e,0,-1,[1],null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{results:{n:1,c:Ne,r:!0,q:!0}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_Search_Response"},n}(ge),ot=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.stream_live_email||u.a(n.M()),ge.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{stream_live_email:{n:1,br:u.d.readBool,bw:u.h.writeBool},stream_live_notification:{n:2,br:u.d.readBool,bw:u.h.writeBool}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_GetSteamTVUserSettings_Response"},n}(ge),st=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return ge.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return e?{$jspbMessageInstance:t}:{}},n.fromObject=function(e){return new n},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return e},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){},n.prototype.getClassName=function(){return"CSteamTV_SetSteamTVUserSettings_Response"},n}(ge),ct=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.results||u.a(n.M()),ge.initialize(t,e,0,-1,[1],null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{results:{n:1,c:Ne,r:!0,q:!0}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_GetMyBroadcastChannels_Response"},n}(ge),ut=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.broadcasts||u.a(n.M()),ge.initialize(t,e,0,-1,[1],null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{broadcasts:{n:1,c:Ne,r:!0,q:!0}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_HomePageTemplate_Takeover"},n}(ge),lt=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.broadcasts||u.a(n.M()),ge.initialize(t,e,0,-1,[1],null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{broadcasts:{n:1,c:Ne,r:!0,q:!0},appid:{n:2,br:u.d.readUint32,bw:u.h.writeUint32},title:{n:3,br:u.d.readString,bw:u.h.writeString}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_HomePageTemplate_SingleGame"},n}(ge),dt=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.appid||u.a(n.M()),ge.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{appid:{n:1,br:u.d.readUint32,bw:u.h.writeUint32},game_name:{n:2,br:u.d.readString,bw:u.h.writeString},broadcast:{n:3,c:Ne}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"GameListEntry"},n}(ge),mt=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.entries||u.a(n.M()),ge.initialize(t,e,0,-1,[1],null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{entries:{n:1,c:dt,r:!0,q:!0},title:{n:2,br:u.d.readString,bw:u.h.writeString}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_HomePageTemplate_GameList"},n}(ge),pt=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.broadcasts||u.a(n.M()),ge.initialize(t,e,0,-1,[1],null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{broadcasts:{n:1,c:Ne,r:!0,q:!0},title:{n:2,br:u.d.readString,bw:u.h.writeString}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_HomePageTemplate_QuickExplore"},n}(ge),ft=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.broadcasts||u.a(n.M()),ge.initialize(t,e,0,-1,[1],null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{broadcasts:{n:1,c:Ne,r:!0,q:!0},title:{n:2,br:u.d.readString,bw:u.h.writeString}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_HomePageTemplate_ConveyorBelt"},n}(ge),ht=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.broadcast||u.a(n.M()),ge.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{broadcast:{n:1,c:Ne},title:{n:2,br:u.d.readString,bw:u.h.writeString},chat_group_id:{n:3,br:u.d.readUint64String,bw:u.h.writeUint64String}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_HomePageTemplate_WatchParty"},n}(ge),bt=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.broadcast||u.a(n.M()),ge.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{broadcast:{n:1,c:Ne},title:{n:2,br:u.d.readString,bw:u.h.writeString}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_HomePageTemplate_Developer"},n}(ge),_t=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.title||u.a(n.M()),ge.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{title:{n:1,br:u.d.readString,bw:u.h.writeString}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_HomePageTemplate_Event"},n}(ge),yt=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.template_type||u.a(n.M()),ge.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{template_type:{n:1,br:u.d.readEnum,bw:u.h.writeEnum},takeover:{n:2,c:ut},single_game:{n:3,c:lt},game_list:{n:4,c:mt},quick_explore:{n:5,c:pt},conveyor_belt:{n:6,c:ft},watch_party:{n:7,c:ht},developer:{n:8,c:bt},event:{n:9,c:_t}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_HomePageContentRow"},n}(ge),Bt=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.rows||u.a(n.M()),ge.initialize(t,e,0,-1,[1],null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{rows:{n:1,c:yt,r:!0,q:!0}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_GetHomePageContents_Response"},n}(ge),gt=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.broadcast_clip_id||u.a(n.M()),ge.initialize(t,e,0,-1,void 0,null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{broadcast_clip_id:{n:1,br:u.d.readUint64String,bw:u.h.writeUint64String},channel_id:{n:2,br:u.d.readUint64String,bw:u.h.writeUint64String},app_id:{n:3,br:u.d.readUint32,bw:u.h.writeUint32},broadcaster_steamid:{n:4,br:u.d.readFixed64String,bw:u.h.writeFixed64String},creator_steamid:{n:5,br:u.d.readFixed64String,bw:u.h.writeFixed64String},video_description:{n:6,br:u.d.readString,bw:u.h.writeString},live_time:{n:7,br:u.d.readUint32,bw:u.h.writeUint32},length_ms:{n:8,br:u.d.readUint32,bw:u.h.writeUint32},thumbnail_path:{n:9,br:u.d.readString,bw:u.h.writeString}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_BroadcastClipInfo"},n}(ge),vt=function(r){function n(e){void 0===e&&(e=null);var t=r.call(this)||this;return n.prototype.clips||u.a(n.M()),ge.initialize(t,e,0,-1,[1],null),t}return Object(m.d)(n,r),n.M=function(){return n.sm_m||(n.sm_m={proto:n,fields:{clips:{n:1,c:gt,r:!0,q:!0},thumbnail_host:{n:2,br:u.d.readString,bw:u.h.writeString}}}),n.sm_m},n.MBF=function(){return n.sm_mbf||(n.sm_mbf=u.e(n.M())),n.sm_mbf},n.prototype.toObject=function(e){return void 0===e&&(e=!1),n.toObject(e,this)},n.toObject=function(e,t){return u.g(n.M(),e,t)},n.fromObject=function(e){return u.c(n.M(),e)},n.deserializeBinary=function(e){var t=new c.BinaryReader(e),r=new n;return n.deserializeBinaryFromReader(r,t)},n.deserializeBinaryFromReader=function(e,t){return u.b(n.MBF(),e,t)},n.prototype.serializeBinary=function(){var e=new c.BinaryWriter;return n.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.serializeBinaryToWriter=function(e,t){u.f(n.M(),e,t)},n.prototype.getClassName=function(){return"CSteamTV_GetBroadcastChannelClips_Response"},n}(ge);(Se=ve=ve||{}).CreateBroadcastChannel=function(e,t){return e.SendMsg("SteamTV.CreateBroadcastChannel#1",t,we,{ePrivilege:1,eWebAPIKeyRequirement:2})},Se.GetBroadcastChannelID=function(e,t){return e.SendMsg("SteamTV.GetBroadcastChannelID#1",t,Me,{bConstMethod:!0,ePrivilege:0})},Se.SetBroadcastChannelProfile=function(e,t){return e.SendMsg("SteamTV.SetBroadcastChannelProfile#1",t,Oe,{ePrivilege:1,eWebAPIKeyRequirement:2})},Se.GetBroadcastChannelProfile=function(e,t){return e.SendMsg("SteamTV.GetBroadcastChannelProfile#1",t,Ce,{bConstMethod:!0,ePrivilege:0})},Se.SetBroadcastChannelImage=function(e,t){return e.SendMsg("SteamTV.SetBroadcastChannelImage#1",t,Re,{ePrivilege:1,eWebAPIKeyRequirement:2})},Se.GetBroadcastChannelImages=function(e,t){return e.SendMsg("SteamTV.GetBroadcastChannelImages#1",t,je,{bConstMethod:!0,ePrivilege:0})},Se.SetBroadcastChannelLinkRegions=function(e,t){return e.SendMsg("SteamTV.SetBroadcastChannelLinkRegions#1",t,Ee,{ePrivilege:1,eWebAPIKeyRequirement:2})},Se.GetBroadcastChannelLinks=function(e,t){return e.SendMsg("SteamTV.GetBroadcastChannelLinks#1",t,Te,{bConstMethod:!0,ePrivilege:0})},Se.GetBroadcastChannelBroadcasters=function(e,t){return e.SendMsg("SteamTV.GetBroadcastChannelBroadcasters#1",t,Ae,{bConstMethod:!0,ePrivilege:1,eWebAPIKeyRequirement:2})},Se.GetFollowedChannels=function(e,t){return e.SendMsg("SteamTV.GetFollowedChannels#1",t,ke,{bConstMethod:!0,ePrivilege:1,eWebAPIKeyRequirement:2})},Se.GetSubscribedChannels=function(e,t){return e.SendMsg("SteamTV.GetSubscribedChannels#1",t,We,{bConstMethod:!0,ePrivilege:1,eWebAPIKeyRequirement:2})},Se.GetBroadcastChannelStatus=function(e,t){return e.SendMsg("SteamTV.GetBroadcastChannelStatus#1",t,Pe,{bConstMethod:!0,ePrivilege:0})},Se.FollowBroadcastChannel=function(e,t){return e.SendMsg("SteamTV.FollowBroadcastChannel#1",t,Ie,{ePrivilege:1,eWebAPIKeyRequirement:2})},Se.SubscribeBroadcastChannel=function(e,t){return e.SendMsg("SteamTV.SubscribeBroadcastChannel#1",t,De,{ePrivilege:1,eWebAPIKeyRequirement:2})},Se.GetBroadcastChannelClips=function(e,t){return e.SendMsg("SteamTV.GetBroadcastChannelClips#1",t,vt,{bConstMethod:!0,ePrivilege:0})},Se.ReportBroadcastChannel=function(e,t){return e.SendMsg("SteamTV.ReportBroadcastChannel#1",t,Ue,{ePrivilege:1,eWebAPIKeyRequirement:2})},Se.GetBroadcastChannelInteraction=function(e,t){return e.SendMsg("SteamTV.GetBroadcastChannelInteraction#1",t,Le,{bConstMethod:!0,ePrivilege:1,eWebAPIKeyRequirement:2})},Se.GetGames=function(e,t){return e.SendMsg("SteamTV.GetGames#1",t,Ve,{bConstMethod:!0,ePrivilege:2,eWebAPIKeyRequirement:1})},Se.GetChannels=function(e,t){return e.SendMsg("SteamTV.GetChannels#1",t,Ge,{bConstMethod:!0,ePrivilege:2,eWebAPIKeyRequirement:1})},Se.AddChatBan=function(e,t){return e.SendMsg("SteamTV.AddChatBan#1",t,Xe,{ePrivilege:1,eWebAPIKeyRequirement:2})},Se.GetChatBans=function(e,t){return e.SendMsg("SteamTV.GetChatBans#1",t,Je,{bConstMethod:!0,ePrivilege:1,eWebAPIKeyRequirement:2})},Se.AddChatModerator=function(e,t){return e.SendMsg("SteamTV.AddChatModerator#1",t,$e,{ePrivilege:1,eWebAPIKeyRequirement:2})},Se.GetChatModerators=function(e,t){return e.SendMsg("SteamTV.GetChatModerators#1",t,et,{bConstMethod:!0,ePrivilege:0})},Se.AddWordBan=function(e,t){return e.SendMsg("SteamTV.AddWordBan#1",t,tt,{ePrivilege:1,eWebAPIKeyRequirement:2})},Se.GetWordBans=function(e,t){return e.SendMsg("SteamTV.GetWordBans#1",t,rt,{bConstMethod:!0,ePrivilege:1,eWebAPIKeyRequirement:2})},Se.JoinChat=function(e,t){return e.SendMsg("SteamTV.JoinChat#1",t,it,{ePrivilege:2,eWebAPIKeyRequirement:1})},Se.Search=function(e,t){return e.SendMsg("SteamTV.Search#1",t,at,{bConstMethod:!0,ePrivilege:0})},Se.GetSteamTVUserSettings=function(e,t){return e.SendMsg("SteamTV.GetSteamTVUserSettings#1",t,ot,{bConstMethod:!0,ePrivilege:1,eWebAPIKeyRequirement:2})},Se.SetSteamTVUserSettings=function(e,t){return e.SendMsg("SteamTV.SetSteamTVUserSettings#1",t,st,{ePrivilege:1,eWebAPIKeyRequirement:2})},Se.GetMyBroadcastChannels=function(e,t){return e.SendMsg("SteamTV.GetMyBroadcastChannels#1",t,ct,{bConstMethod:!0,ePrivilege:1,eWebAPIKeyRequirement:2})},Se.GetHomePageContents=function(e,t){return e.SendMsg("SteamTV.GetHomePageContents#1",t,Bt,{bConstMethod:!0,ePrivilege:2,eWebAPIKeyRequirement:1})};function St(){return a.a.createElement("div",{className:Ut.a.FriendsListInsetShadowCtn},a.a.createElement("div",{className:Ut.a.FriendListInsetShadowTop}))}function wt(){return a.a.createElement("div",{className:Ut.a.FriendsListInsetShadowCtn},a.a.createElement("div",{className:Ut.a.FriendListInsetShadowBottom}))}var Mt=r("WBba"),Ot=function(){function e(){this.m_mapChats=new Map}return e.prototype.GetOrCreateChat=function(e,t){var r=this.m_mapChats.get(e)||this.m_mapChats.get(t);return r||(r=new Ct,this.m_mapChats.set(e||t,r)),r},Object(m.c)([o.C],e.prototype,"m_mapChats",void 0),e}(),Ct=function(){function e(){this.m_ulBroadcastChannelID="",this.m_ulChatID="",this.m_strFlairGroupID="",this.m_bAutoScroll=!0,this.m_ulBroadcastID="",this.m_ulBroadcastSteamID="",this.m_tsFirstRequest=null,this.m_nFromFirstRequestMS=0,this.m_nNextChatTS=0,this.m_cConsecutiveErrors=0,this.m_nNudgeFactorMS=0,this.m_nLastSleepMS=0,this.m_bReconnecting=!1,this.m_unInstanceID=Math.floor(4294967296*Math.random()),this.m_strUserSteamID="",this.m_regexUserEmoticons=null,this.m_chatScheduledFunc=null,this.m_webAPIInterface=null,this.m_mapMutedUsers={},this.m_mapChannelModeratorUsers=new Map,this.m_nRateLimitSeconds=0,this.m_bRateLimited=!1,this.m_rgChatMessages=[],this.m_webAPIInterface=new Mt.a(_e.c.WEBAPI_BASE_URL,_e.i.webapi_token)}return e.prototype.GetBroadcastSteamID=function(){return this.m_ulBroadcastSteamID},e.prototype.GetUserSteamID=function(){return this.m_strUserSteamID},e.prototype.StartForSteamID=function(e,t){this.m_webAPIInterface=new Mt.a(_e.c.WEBAPI_BASE_URL,_e.i.webapi_token),this.m_ulBroadcastSteamID=e,this.m_ulBroadcastID=t,this.RequestChatInfo()},e.prototype.StartForChannel=function(e){this.m_webAPIInterface=new Mt.a(_e.c.WEBAPI_BASE_URL,_e.i.webapi_token),this.m_ulBroadcastChannelID=e,this.m_strUserSteamID=_e.i.steamid,this.JoinChannelChat()},e.prototype.Stop=function(){this.m_chatScheduledFunc&&this.m_chatScheduledFunc.Cancel()},e.prototype.SendMessage=function(u){return Object(m.b)(this,void 0,void 0,function(){var t,r,n,i,a,o,s,c=this;return Object(m.e)(this,function(e){switch(e.label){case 0:if(0==(t=u.trim()).length)return[2];e.label=1;case 1:return(e.trys.push([1,6,,7]),i=n=r=void 0,this.m_webApiToken)?((a=new FormData).append("chat_id",this.m_ulChatID),a.append("message",t),a.append("instance_id",this.m_unInstanceID.toString()),[4,p.a.post(_e.c.WEBAPI_BASE_URL+"IBroadcastService/PostChatMessage/v0001?access_token="+this.m_webApiToken,a)]):[3,3];case 2:return n=e.sent(),i=n.data&&n.data.response,[3,5];case 3:return(o=Be.a.Init(W)).SetBodyFields({chat_id:this.m_ulChatID,message:t,instance_id:this.m_unInstanceID.toString()}),[4,M.PostChatMessage(this.m_webAPIInterface.GetServiceTransport(),o)];case 4:r=e.sent(),i={result:r.GetEResult(),cooldown_time_seconds:r.Body().cooldown_time_seconds(),in_game:r.Body().in_game(),persona_name:r.Body().persona_name()},e.label=5;case 5:return i&&i.result&&1!=i.result?(s="",s=17==i.result?Object(be.d)("#BroadcastChat_YouMuted"):84==i.result?Object(be.d)("#BroadcastChat_Cooldown",i.cooldown_time_seconds):Object(be.d)("#BroadcastChat_FailedToSendMsg",t),this.m_rgChatMessages.push({type:ye.a.Error,msg:s,client_ts:Number(new Date),instance_id:this.m_unInstanceID,in_game:i.in_game,persona_name:i.persona_name,steamid:""}),[2]):(this.m_nRateLimitSeconds||(this.m_nRateLimitSeconds=i.cooldown_time_seconds),this.m_nRateLimitSeconds&&(this.m_bRateLimited=!0,setTimeout(function(){return c.m_bRateLimited=!1},1e3*this.m_nRateLimitSeconds)),[3,7]);case 6:return e.sent(),this.m_rgChatMessages.push({type:ye.a.Error,msg:Object(be.d)("#BroadcastChat_FailedToSendMsg",t),client_ts:Number(new Date),instance_id:this.m_unInstanceID,in_game:!1,persona_name:"",steamid:""}),[3,7];case 7:return[2]}})})},e.prototype.RequestChatInfo=function(){return Object(m.b)(this,void 0,void 0,function(){var t,r,n;return Object(m.e)(this,function(e){switch(e.label){case 0:this.m_cConsecutiveErrors=0,this.m_bReconnecting=!1,e.label=1;case 1:return e.trys.push([1,3,,4]),[4,p.a.get(_e.c.CHAT_BASE_URL+"broadcast/getchatinfo",{params:{steamid:this.m_ulBroadcastSteamID,broadcastid:this.m_ulBroadcastID,sessionid:_e.c.SESSIONID},withCredentials:!0})];case 2:return t=e.sent(),r=t.data,this.m_strChatURL=r.view_url_template,this.m_ulChatID=r.chat_id,this.m_strFlairGroupID=r.flair_group_ids&&r.flair_group_ids[0],r.blocked&&console.log("User is blocked from chat"),r.steamid&&(this.m_strUserSteamID=r.steamid),r.token&&(this.m_webApiToken=r.token),r.emoticons&&this.SetOwnedEmoticons(r.emoticons),this.m_rgChatMessages.push({type:ye.a.Notification,msg:Object(be.d)("#BroadcastChat_DefaultMessage"),client_ts:Number(new Date),instance_id:this.m_unInstanceID,in_game:!1,persona_name:"",steamid:""}),this.m_chatScheduledFunc=new he.b,this.m_chatScheduledFunc.Schedule(0,this.RequestLoop),[3,4];case 3:return n=e.sent(),console.error(n),console.log("Failed to get chat info!"),[3,4];case 4:return[2]}})})},e.prototype.JoinChannelChat=function(){return Object(m.b)(this,void 0,void 0,function(){var t,r,n;return Object(m.e)(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),(t=Be.a.Init(nt)).SetBodyFields({broadcast_channel_id:this.m_ulBroadcastChannelID}),[4,ve.JoinChat(this.m_webAPIInterface.GetServiceTransport(),t)];case 1:return(r=e.sent()).Body().chat_id&&r.Body().view_url_template?(this.m_strChatURL=r.Body().view_url_template(),this.m_ulChatID=r.Body().chat_id(),this.m_strFlairGroupID=r.Body().flair_group_ids()&&r.Body().flair_group_ids()[0],this.FetchChatModerators(),this.m_rgChatMessages=[],this.m_rgChatMessages.push({type:ye.a.Notification,msg:Object(be.d)("#BroadcastChat_DefaultMessage"),client_ts:Number(new Date),instance_id:this.m_unInstanceID,in_game:!1,persona_name:"",steamid:""}),this.m_chatScheduledFunc=new he.b,this.m_chatScheduledFunc.Schedule(0,this.RequestLoop),[3,3]):(console.log("Failed to join channel chat"),[2]);case 2:return n=e.sent(),console.error(n),console.log("Failed to join chat!"),[3,3];case 3:return[2]}})})},e.prototype.FetchChatModerators=function(){return Object(m.b)(this,void 0,void 0,function(){var t,r,n,i;return Object(m.e)(this,function(e){switch(e.label){case 0:return(t=Be.a.Init(Ze)).SetBodyFields({broadcast_channel_id:this.m_ulBroadcastChannelID}),[4,ve.GetChatModerators(this.m_webAPIInterface.GetServiceTransport(),t)];case 1:return r=e.sent(),n=r.Body().results(),i=new Map,n.forEach(function(e){i.set(e.steamid(),!0)}),this.m_mapChannelModeratorUsers=i,[2]}})})},e.prototype.RequestLoop=function(){return Object(m.b)(this,void 0,void 0,function(){var t,r,n,i,a,o,s,c,u,l,d=this;return Object(m.e)(this,function(e){switch(e.label){case 0:t={},(r=this.m_strChatURL.replace("{0}",this.m_nNextChatTS.toString()))==this.m_strChatURL&&0<this.m_nNextChatTS&&(t.t=this.m_nNextChatTS),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,p.a.get(r,{params:t})];case 2:if(n=e.sent(),i=n.data,this.m_cConsecutiveErrors=0,a=i.messages.map(function(e){return Object(m.a)(Object(m.a)({},e),{type:ye.a.Chat,client_ts:Number(new Date)})}).filter(function(e){return!d.IsUserMutedLocally(e.steamid)}),(l=this.m_rgChatMessages).push.apply(l,a),o=this.m_bAutoScroll?150:300,this.m_rgChatMessages.length>o&&this.m_rgChatMessages.splice(0,this.m_rgChatMessages.length-o),i.muted)for(c=0;c<i.muted.length;c++)s=i.muted[c].muted==this.m_strUserSteamID?Object(be.d)("#BroadcastChat_YouMuted",i.muted[c].persona_name):Object(be.d)("#BroadcastChat_UserMuted",i.muted[c].persona_name),this.m_rgChatMessages.push({type:ye.a.Notification,msg:s,client_ts:Number(new Date),instance_id:this.m_unInstanceID,in_game:!1,persona_name:"",steamid:""});if(i.remove_msgs)for(c=0;c<i.remove_msgs.length;c++)this.RemoveUserMessagesLocal(i.remove_msgs[c].steamid);if(u=0,null==this.m_tsFirstRequest||0==this.m_nNextChatTS||i.initial_delay){if("undefined"===i.initial_delay)return console.log("Need initial_delay to know when to request first chat message"),[2];this.m_tsFirstRequest=performance.now()+i.initial_delay,this.m_nFromFirstRequestMS=0,this.m_nNextChatTS=i.next_request,u=i.initial_delay}else{if(i.next_request<this.m_nNextChatTS)return console.log("Next request in past"),[2];this.m_nFromFirstRequestMS+=i.next_request-this.m_nNextChatTS,this.m_nNextChatTS=i.next_request,u=this.m_tsFirstRequest+this.m_nFromFirstRequestMS-performance.now()+this.m_nNudgeFactorMS}return this.m_bReconnecting&&(this.m_bReconnecting=!1),(this.m_nLastSleepMS=u)<0&&(u=0),this.m_chatScheduledFunc.Schedule(u,this.RequestLoop),[3,4];case 3:if(e.sent(),console.log("Failed to get chat messages. Previous sleep set to: "+this.m_nLastSleepMS+" firstReq: "+this.m_tsFirstRequest+" firstFromRequest: "+this.m_nFromFirstRequestMS+" nudge: "+this.m_nNudgeFactorMS),this.m_cConsecutiveErrors++,this.m_nNudgeFactorMS+=10,4<=this.m_cConsecutiveErrors){if(null==this.m_tsFirstRequest)return this.m_rgChatMessages.push({type:ye.a.Error,msg:Object(be.d)("#BroadcastChat_UnableToJoinChat"),client_ts:Number(new Date),instance_id:this.m_unInstanceID,in_game:!1,persona_name:"",steamid:""}),[2];this.m_cConsecutiveErrors=0,this.m_bReconnecting=!0,this.SyncChat()}return this.m_chatScheduledFunc.Schedule(500,this.RequestLoop),[3,4];case 4:return[2]}})})},e.prototype.GetUserEmoticons=function(){return this.m_regexUserEmoticons},e.prototype.SetOwnedEmoticons=function(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];2<=n.length&&":"==n[0]?t.push(n.substr(1,n.length-2)):t.push(n)}var i=":("+t.join("|")+"):";this.m_regexUserEmoticons=new RegExp(i,"g")},e.prototype.UpdateBroadcastChatModerator=function(n,i,a){return Object(m.b)(this,void 0,void 0,function(){var t,r;return Object(m.e)(this,function(e){switch(e.label){case 0:if(!this.m_ulBroadcastChannelID)return[3,6];e.label=1;case 1:return e.trys.push([1,4,,5]),(t=Be.a.Init(Ye)).SetBodyFields({broadcast_channel_id:this.m_ulBroadcastChannelID,moderator_steamid:n,undo:!i}),[4,ve.AddChatModerator(this.m_webAPIInterface.GetServiceTransport(),t)];case 2:return e.sent(),this.m_rgChatMessages.push({type:ye.a.Notification,msg:"Moderator '"+a+"' "+(i?"added.":"removed.")}),[4,this.FetchChatModerators()];case 3:return e.sent(),[3,5];case 4:return e.sent(),this.m_rgChatMessages.push({type:ye.a.Error,msg:"Failed to "+(i?"assign":"remove")+" '"+a+"' as moderator!"}),[3,5];case 5:return[3,10];case 6:(r=new FormData).append("broadcaststeamid",this.m_ulBroadcastSteamID),r.append("moderatorsteamid",n),r.append("bAdd",i?"1":"0"),r.append("sessionid",_e.c.SESSIONID),e.label=7;case 7:return e.trys.push([7,9,,10]),[4,p.a.post(_e.c.CHAT_BASE_URL+"broadcast/ajaxupdatechannelmod",r)];case 8:return e.sent(),this.m_mapChannelModeratorUsers.set(n,i),this.m_rgChatMessages.push({type:ye.a.Notification,msg:"Moderator '"+a+"' "+(i?"added.":"removed.")}),[3,10];case 9:return e.sent(),this.m_rgChatMessages.push({type:ye.a.Error,msg:"Failed to "+(i?"assign":"remove")+" '"+a+"' as moderator!"}),[3,10];case 10:return[2]}})})},e.prototype.UpdateUserChatBan=function(a,o,s,c,u,l){return Object(m.b)(this,void 0,void 0,function(){var t,r,n,i;return Object(m.e)(this,function(e){switch(e.label){case 0:return(t=this.m_ulBroadcastSteamID,r=this.m_strUserSteamID,this.m_ulBroadcastChannelID)?((n=Be.a.Init(Ke)).SetBodyFields({broadcast_channel_id:this.m_ulBroadcastChannelID,chatter_steamid:a,duration:3600*s,permanent:c,undo:l}),[4,ve.AddChatBan(this.m_webAPIInterface.GetServiceTransport(),n)]):[3,2];case 1:return e.sent(),[3,6];case 2:(i=new FormData).append("broadcaststeamid",t),i.append("issuersteamid",r),i.append("chattersteamid",a),i.append("bantype",o),i.append("duration",s.toString()),i.append("perm",c?"1":"0"),i.append("sessionid",_e.c.SESSIONID),e.label=3;case 3:return e.trys.push([3,5,,6]),[4,p.a.post(_e.c.CHAT_BASE_URL+"broadcast/ajaxupdateusermute",i)];case 4:return e.sent(),0==o?delete this.m_mapMutedUsers[a]:this.m_mapMutedUsers[a]=u,[3,6];case 5:return e.sent(),console.log("Failed to update mute for "+u),[3,6];case 6:return[2]}})})},e.prototype.MuteUserForSession=function(i,a){return Object(m.b)(this,void 0,void 0,function(){var t,r,n;return Object(m.e)(this,function(e){switch(e.label){case 0:if(i==this.m_strUserSteamID)return[2];if(this.m_ulBroadcastSteamID==i)return[2];if(t=this.m_ulBroadcastSteamID==this.m_strUserSteamID,this.m_mapMutedUsers[i])return[3,7];this.m_mapMutedUsers[i]=a,e.label=1;case 1:return(e.trys.push([1,6,,7]),this.m_webApiToken)?((r=new FormData).append("chat_id",this.m_ulChatID),r.append("user_steamid",i),r.append("muted","1"),[4,p.a.post(_e.c.WEBAPI_BASE_URL+"IBroadcastService/MuteBroadcastChatUser/v0001/?access_token="+this.m_webApiToken,r)]):[3,3];case 2:return e.sent(),[3,5];case 3:return(n=Be.a.Init(L)).SetBodyFields({chat_id:this.m_ulChatID,user_steamid:i,muted:!0}),[4,M.MuteBroadcastChatUser(this.m_webAPIInterface.GetServiceTransport(),n)];case 4:e.sent(),e.label=5;case 5:return[3,7];case 6:return e.sent(),t&&(this.m_rgChatMessages.push({type:ye.a.Error,msg:Object(be.d)("#BroadcastChat_UserMuteFailed",a),client_ts:Number(new Date),instance_id:this.m_unInstanceID,in_game:!1,persona_name:"",steamid:""}),delete this.m_mapMutedUsers[i]),[3,7];case 7:return t||this.m_rgChatMessages.push({type:ye.a.Notification,msg:Object(be.d)("#BroadcastChat_UserMutedLocal",a),client_ts:Number(new Date),instance_id:this.m_unInstanceID,in_game:!1,persona_name:"",steamid:""}),[2]}})})},e.prototype.UnmuteUserForSession=function(n,i){return Object(m.b)(this,void 0,void 0,function(){var t,r;return Object(m.e)(this,function(e){switch(e.label){case 0:if(n==this.m_strUserSteamID)return[2];if(this.m_mapMutedUsers[n]&&delete this.m_mapMutedUsers[n],!(this.m_ulBroadcastSteamID==this.m_strUserSteamID))return[3,8];e.label=1;case 1:return(e.trys.push([1,6,,7]),this.m_webApiToken)?((t=new FormData).append("chat_id",this.m_ulChatID),t.append("user_steamid",n),t.append("muted","0"),[4,p.a.post(_e.c.WEBAPI_BASE_URL+"IBroadcastService/MuteBroadcastChatUser/v0001/?access_token="+this.m_webApiToken,t)]):[3,3];case 2:return e.sent(),[3,5];case 3:return(r=Be.a.Init(L)).SetBodyFields({chat_id:this.m_ulChatID,user_steamid:n,muted:!1}),[4,M.MuteBroadcastChatUser(this.m_webAPIInterface.GetServiceTransport(),r)];case 4:e.sent(),e.label=5;case 5:return this.m_rgChatMessages.push({type:ye.a.Notification,msg:Object(be.d)("#BroadcastChat_UserUnmutedLocal",i),client_ts:Number(new Date),instance_id:this.m_unInstanceID,in_game:!1,persona_name:"",steamid:""}),[3,7];case 6:return e.sent(),this.m_rgChatMessages.push({type:ye.a.Error,msg:Object(be.d)("#BroadcastChat_UserUnmuteFailed",i),client_ts:Number(new Date),instance_id:this.m_unInstanceID,in_game:!1,persona_name:"",steamid:""}),[3,7];case 7:return[3,9];case 8:this.m_rgChatMessages.push({type:ye.a.Notification,msg:Object(be.d)("#BroadcastChat_UserUnmutedLocal",i),client_ts:Number(new Date),instance_id:this.m_unInstanceID,in_game:!1,persona_name:"",steamid:""}),e.label=9;case 9:return[2]}})})},e.prototype.RemoveUserMessagesLocal=function(t){this.m_rgChatMessages=this.m_rgChatMessages.filter(function(e){return e.steamid!==t})},e.prototype.RemoveUserMessagesServer=function(n,i){return Object(m.b)(this,void 0,void 0,function(){var t,r;return Object(m.e)(this,function(e){switch(e.label){case 0:if(n==this.m_strUserSteamID)return[2];e.label=1;case 1:return(e.trys.push([1,6,,7]),this.m_webApiToken)?((t=new FormData).append("chat_id",this.m_ulChatID),t.append("user_steamid",n),[4,p.a.post(_e.c.WEBAPI_BASE_URL+"IBroadcastService/RemoveUserChatText/v0001/?access_token="+this.m_webApiToken,t)]):[3,3];case 2:return e.sent(),[3,5];case 3:return(r=Be.a.Init(V)).SetBodyFields({chat_id:this.m_ulChatID,user_steamid:n}),[4,M.RemoveUserChatText(this.m_webAPIInterface.GetServiceTransport(),r)];case 4:e.sent(),e.label=5;case 5:return[3,7];case 6:return e.sent(),this.m_rgChatMessages.push({type:ye.a.Error,msg:Object(be.d)("#BroadcastChat_RemoveMessagesFailed",i),client_ts:Number(new Date),instance_id:this.m_unInstanceID,in_game:!1,persona_name:"",steamid:""}),[3,7];case 7:return[2]}})})},e.prototype.UpdateChatMessageFlair=function(n){return Object(m.b)(this,void 0,void 0,function(){var t,r;return Object(m.e)(this,function(e){switch(e.label){case 0:return this.m_webApiToken?((t=new FormData).append("chat_id",this.m_ulChatID),t.append("flair","^"+this.m_strFlairGroupID+"^:"+n+":"),[4,p.a.post(_e.c.WEBAPI_BASE_URL+"IBroadcastService/UpdateChatMessageFlair/v0001/?access_token="+this.m_webApiToken,t)]):[3,2];case 1:return e.sent(),[3,4];case 2:return(r=Be.a.Init(D)).SetBodyFields({chat_id:this.m_ulChatID,flair:"^"+this.m_strFlairGroupID+"^:"+n+":"}),[4,M.UpdateChatMessageFlair(this.m_webAPIInterface.GetServiceTransport(),r)];case 3:e.sent(),e.label=4;case 4:return[2]}})})},e.prototype.IsUserMutedLocally=function(e){return Boolean(this.m_mapMutedUsers[e])},e.prototype.IsUserChannelModerator=function(e){return this.m_mapChannelModeratorUsers.get(e)},e.prototype.IsUserBroadcaster=function(e){return e===this.m_ulBroadcastSteamID},e.prototype.SyncChat=function(){this.m_tsFirstRequest=null,this.m_nFromFirstRequestMS=0,this.m_nNextChatTS=0,this.m_rgChatMessages=[]},Object(m.c)([o.C],e.prototype,"m_mapChannelModeratorUsers",void 0),Object(m.c)([o.C],e.prototype,"m_nRateLimitSeconds",void 0),Object(m.c)([o.C],e.prototype,"m_bRateLimited",void 0),Object(m.c)([o.C],e.prototype,"m_rgChatMessages",void 0),Object(m.c)([s.a],e.prototype,"FetchChatModerators",null),Object(m.c)([s.a],e.prototype,"RequestLoop",null),Object(m.c)([s.a],e.prototype,"MuteUserForSession",null),e}(),Rt=new Ot,jt=r("TtDX"),zt=r("y+6m"),Tt=r("3sYe"),Ft=r.n(Tt),Et=r("Z9dU"),Pt=r.n(Et),Nt=r("0QoN"),kt=r("6Y59"),Wt=r("Gorr"),It=r("a5LV"),Dt=r("5znp"),Ut=r.n(Dt),Lt=new RegExp("ː([^ː]*)ː","g"),xt=(new RegExp("(https?://[^ '\"<>]*)","gi"),new RegExp("^https?://(?:[^/?#]+?\\.)?(?:valvesoftware|steamcommunity|steampowered)\\.com(?:/?#|$)","i")),Vt=function(r){function e(e){var t=r.call(this,e)||this;return t.m_chat=null,t.messagesContainer=S.createRef(),t.textInput=S.createRef(),t.state={message:""},t}return Object(m.d)(e,r),e.prototype.componentDidMount=function(){this.StartChat()},e.prototype.componentDidUpdate=function(e){this.m_chat&&this.m_chat.m_bAutoScroll&&this.ScrollToBottom(),this.props.steamID===e.steamID&&this.props.broadcastID===e.broadcastID&&this.props.broadcastChannelID===e.broadcastChannelID||this.StartChat()},e.prototype.componentWillUnmount=function(){this.m_chat&&this.m_chat.Stop()},e.prototype.StartChat=function(){this.m_chat&&this.m_chat.Stop(),this.m_chat=Rt.GetOrCreateChat(this.props.broadcastChannelID,this.props.steamID),this.props.broadcastChannelID?this.m_chat.StartForChannel(this.props.broadcastChannelID):this.props.steamID&&this.props.steamID&&this.props.broadcastID&&(this.m_chat.StartForSteamID(this.props.steamID,this.props.broadcastID),this.ScrollToBottom())},e.prototype.ChatBoxChange=function(e){this.setState({message:e.target.value})},e.prototype.ChatBoxKeypress=function(e){!e.shiftKey&&13===e.charCode&&(this.SendMessage(),e.preventDefault())},e.prototype.SendMessage=function(e){this.m_chat.m_bRateLimited||(this.m_chat.SendMessage(this.state.message),this.setState({message:""}),e&&e.preventDefault())},e.prototype.IsTrustedDomain=function(e){return!!e.match(xt)},e.prototype.AddLinksEmoticons=function(e,t){t&&this.m_chat.GetUserEmoticons();for(var r=e.split(Lt),n=[],i=0;i<r.length;i+=1)i%2==1?n.push(S.createElement(Wt.b,{emoticonHoverStore:It.a,key:i,emoticon:r[i],large:!0})):n.push(r[i]);return n},e.prototype.HandleScroll=function(e){var t=e.currentTarget.scrollTop+e.currentTarget.clientHeight>=e.currentTarget.scrollHeight-6;this.m_chat&&(this.m_chat.m_bAutoScroll=t)},e.prototype.ScrollToBottom=function(){this.messagesContainer&&this.messagesContainer.current&&(this.messagesContainer.current.scrollTop=this.messagesContainer.current.scrollHeight)},e.prototype.OnContextMenu=function(e,t){var r=this;if(t.type!==ye.a.Chat)return null;var n=[];return _e.i&&_e.i.is_support||this.m_chat.IsUserBroadcaster(this.m_chat.GetUserSteamID())||this.m_chat.IsUserChannelModerator(this.m_chat.GetUserSteamID())?n.push(S.createElement(zt.d,{key:"remove",onSelected:function(){return r.m_chat.RemoveUserMessagesServer(t.steamid,t.persona_name)}},Object(be.d)("#BroadcastChat_RemoveMessages")),S.createElement(zt.d,{key:"updatebanh",onSelected:function(){return r.m_chat.UpdateUserChatBan(t.steamid,1,12,!1,t.persona_name)}},Object(be.d)("#BroadcastChat_half_Mute")),S.createElement(zt.d,{key:"updateband",onSelected:function(){return r.m_chat.UpdateUserChatBan(t.steamid,1,24,!1,t.persona_name)}},Object(be.d)("#BroadcastChat_day_Mute")),S.createElement(zt.d,{key:"updatebanw",onSelected:function(){return r.m_chat.UpdateUserChatBan(t.steamid,1,168,!1,t.persona_name)}},Object(be.d)("#BroadcastChat_week_Mute")),S.createElement(zt.d,{key:"updatebanp",onSelected:function(){return r.m_chat.UpdateUserChatBan(t.steamid,1,0,!0,t.persona_name)}},Object(be.d)("#BroadcastChat_perm_Mute")),S.createElement(zt.d,{key:"removeban",onSelected:function(){return r.m_chat.UpdateUserChatBan(t.steamid,0,0,!1,t.persona_name,!0)}},Object(be.d)("#BroadcastChat_Unmute"))):this.m_chat.IsUserMutedLocally(t.steamid)?n.push(S.createElement(zt.d,{key:"unmuteuser",onSelected:function(){return r.m_chat.UnmuteUserForSession(t.steamid,t.persona_name)}},Object(be.d)("#BroadcastChat_UnmuteLocal"))):n.push(S.createElement(zt.d,{key:"muteuser",onSelected:function(){return r.m_chat.MuteUserForSession(t.steamid,t.persona_name)}},Object(be.d)("#BroadcastChat_MuteLocal"))),(_e.i&&_e.i.is_support||this.m_chat.IsUserBroadcaster(this.m_chat.GetUserSteamID()))&&n.push(S.createElement(zt.d,{key:"addmod",onSelected:function(){return r.m_chat.UpdateBroadcastChatModerator(t.steamid,!0,t.persona_name)}},Object(be.d)("#BroadcastChat_Add_Moderator")),S.createElement(zt.d,{key:"removemod",onSelected:function(){return r.m_chat.UpdateBroadcastChatModerator(t.steamid,!1,t.persona_name)}},Object(be.d)("#BroadcastChat_Remove_Moderator"))),n.length?Object(jt.a)(S.createElement(zt.c,null,n),e):null},e.prototype.OnEmoticonSelected=function(e,t){void 0===t&&(t=!1),this.setState({message:this.state.message+"ː"+e+"ː"}),this.textInput&&this.textInput.current&&this.textInput.current.focus()},e.prototype.OnFlairSelected=function(e){this.m_chat.UpdateChatMessageFlair(e),this.textInput&&this.textInput.current&&this.textInput.current.focus()},e.prototype.GetTypeClassName=function(e){return e.type===ye.a.Notification?Ft.a.MessageNotification:e.type===ye.a.Error?Ft.a.MessageError:Ft.a.MessageChat},e.prototype.render=function(){var r=this,e=this.m_chat?this.m_chat.m_rgChatMessages:[];return S.createElement("div",{className:Ft.a.ChatPanel,style:this.props.hidden?{display:"none"}:void 0},S.createElement(St,null),S.createElement("div",{className:Ft.a.ChatMessages+" "+Pt.a.minHeightZero,onScroll:this.HandleScroll,ref:this.messagesContainer},e.map(function(t,e){return S.createElement("div",{key:t.instance_id+"_"+t.client_ts+"_"+e,className:r.GetTypeClassName(t),onContextMenu:function(e){return r.OnContextMenu(e,t)}},t.flair&&S.createElement("span",{className:Ft.a.FlairContainer}," ",r.AddLinksEmoticons(t.flair,!1)),t.type===ye.a.Chat&&S.createElement("span",null,S.createElement("a",{className:Ft.a.MessageName,href:_e.c.COMMUNITY_BASE_URL+"profiles/"+t.steamid,target:"_blank",rel:"noopener noreferrer"},t.persona_name)),t.type===ye.a.Chat&&r.m_chat.GetBroadcastSteamID()===t.steamid&&S.createElement("span",{className:Ft.a.MessageNotification+" "+Ft.a.MessageContents}," ("+Object(be.d)("#BroadcastChat_Broadcaster")+")"),t.type===ye.a.Chat&&r.m_chat.m_mapChannelModeratorUsers.get(t.steamid)&&S.createElement("span",{className:Ft.a.MessageNotification+" "+Ft.a.MessageContents}," ("+Object(be.d)("#BroadcastChat_Moderator")+")"),S.createElement("span",{className:Ft.a.MessageContents+" "+(r.AddLinksEmoticons(t.msg,!1).filter(function(e){return e&&"string"==typeof e}).length?"":Ft.a.EmoticonsOnly)},t.type===ye.a.Chat?" : ":"",t.type===ye.a.Chat?r.AddLinksEmoticons(t.msg,!1):t.msg))})),S.createElement(wt,null),_e.i&&_e.i.logged_in&&this.m_chat?S.createElement("div",null,S.createElement("div",{className:Ft.a.ChatEntry},S.createElement("form",{className:""+Pt.a.chatEntryControls},S.createElement("textarea",{className:Pt.a.chatTextarea,placeholder:Object(be.d)("#BroadcastChat_EnterResponse"),onKeyPress:this.ChatBoxKeypress,onChange:this.ChatBoxChange,value:this.state.message,ref:this.textInput}),this.m_chat.m_bRateLimited&&S.createElement(Gt,{nSeconds:this.m_chat.m_nRateLimitSeconds,bRateLimited:this.m_chat.m_bRateLimited}),S.createElement("button",{className:Pt.a.chatSubmitButton+" "+(this.state.message?"":Pt.a.disabled),title:Object(be.d)("#ChatEntryButton_Submit"),onClick:this.SendMessage},S.createElement(kt.S,null))),S.createElement("div",{style:{height:"50px"},className:""+Pt.a.chatEntryActionsContainer},S.createElement("div",{className:Pt.a.chatEntryActionsGroup},S.createElement(Nt.a,{disabled:!1,OnEmoticonSelected:this.OnEmoticonSelected,rtLastAckedNewEmoticons:Number.MAX_VALUE,emoticonStore:this.props.emoticonStore,emoticonHoverStore:It.a}),this.m_chat.m_strFlairGroupID&&this.props.emoticonStore.flair_list&&this.props.emoticonStore.GetFlairListByGroupID(this.m_chat.m_strFlairGroupID).length?S.createElement(Nt.a,{disabled:!1,OnEmoticonSelected:this.OnFlairSelected,rtLastAckedNewEmoticons:Number.MAX_VALUE,emoticonStore:this.props.emoticonStore,emoticonHoverStore:It.a,strFlairGroupID:this.m_chat.m_strFlairGroupID,title:Object(be.d)("#ChatEntryButton_Flair"),buttonIcon:S.createElement(kt.f,null)}):null)))):null)},Object(m.c)([o.C],e.prototype,"m_chat",void 0),Object(m.c)([s.a],e.prototype,"StartChat",null),Object(m.c)([s.a],e.prototype,"ChatBoxChange",null),Object(m.c)([s.a],e.prototype,"ChatBoxKeypress",null),Object(m.c)([s.a],e.prototype,"SendMessage",null),Object(m.c)([s.a],e.prototype,"HandleScroll",null),Object(m.c)([s.a],e.prototype,"OnContextMenu",null),Object(m.c)([s.a],e.prototype,"OnEmoticonSelected",null),Object(m.c)([s.a],e.prototype,"OnFlairSelected",null),e=Object(m.c)([i.a],e)}(S.Component),Gt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.d)(t,e),t.prototype.render=function(){return S.createElement("div",{className:Ft.a.TimedProgressBarContainer},S.createElement("div",{className:Ft.a.wrapper},S.createElement("div",{className:Ft.a.spinner+" "+Ft.a.pie,style:{animationDuration:(this.props.nSeconds||0)+"s"}}),S.createElement("div",{className:Ft.a.filler+" "+Ft.a.pie,style:{animationDuration:(this.props.nSeconds||0)+"s"}}),S.createElement("div",{className:Ft.a.mask,style:{animationDuration:(this.props.nSeconds||0)+"s"}})))},t}(S.Component),At=r("YyVH"),Ht=(r("iL1l"),r("boaH")),qt=r("qhbg"),Kt=function(t){function e(e){return t.call(this,e)||this}return Object(m.d)(e,t),e.prototype.HideStats=function(){this.props.closeStats&&this.props.closeStats()},e.prototype.render=function(){var e=this.props.stats;return S.createElement("div",{className:"dash_video_stats"},S.createElement("button",{className:"dash_stat_close_button",onClick:this.HideStats},S.createElement(kt.bb,null)),S.createElement("div",null,Object(be.d)("#DASHPlayerStats_BufferingResolution")," ",S.createElement("span",{className:"videoStatsValue"},e.GetBufferingResolutionToDisplay())),S.createElement("div",null,Object(be.d)("#DASHPlayerStats_PlaybackResolution")," ",S.createElement("span",{className:"videoStatsValue"},e.GetPlaybackResolutionToDisplay())),S.createElement("div",null,Object(be.d)("#DASHPlayerStats_HtmlResolution")," ",S.createElement("span",{className:"videoStatsValue"},e.GetHTMLVideoResolutionToDisplay())),S.createElement("div",null,Object(be.d)("#DASHPlayerStats_ContentServer")," ",S.createElement("span",{className:"videoStatsValue"},e.GetContentServerToDisplay())),S.createElement("div",null,Object(be.d)("#DASHPlayerStats_StallEvents")," ",S.createElement("span",{className:"videoStatsValue"},e.GetStalledEventsToDisplay())),S.createElement("div",null,Object(be.d)("#DASHPlayerStats_FailedDownloads")," ",S.createElement("span",{className:"videoStatsValue"},e.GetFailedDownloadsToDisplay())),S.createElement("div",null,Object(be.d)("#DASHPlayerStats_TimeToFirstFrame")," ",S.createElement("span",{className:"videoStatsValue"},e.GetTimeToFirstFrameToDisplay())),S.createElement("div",null,Object(be.d)("#DASHPlayerStats_PlaybackRate")," ",S.createElement("span",{className:"videoStatsValue"},e.GetPlaybackRateForDisplay())),S.createElement(Xt,{stats:e}))},Object(m.c)([s.a],e.prototype,"HideStats",null),e=Object(m.c)([i.a],e)}(S.Component),Xt=function(t){function e(e){return t.call(this,e)||this}return Object(m.d)(e,t),e.prototype.createBufferedRange=function(e){var t=this.props.stats,r=[],n=e?"vidbuf":"audbuf",i=e?t.GetNumBufferedVideoRanges():t.GetNumBufferedAudioRanges();if(0<i)for(var a=0;a<i;++a){var o=Object(be.d)(e?"#DASHPlayerStats_VideoBufferRange":"#DASHPlayerStats_AudioBufferRange",a),s=e?t.GetBufferedVideoSegmentForDisplay(a):t.GetBufferedAudioSegmentForDisplay(a);r.push(S.createElement("div",{key:n+a},o," ",S.createElement("span",{className:"videoStatsValue"},s)))}else{o=Object(be.d)(e?"#DASHPlayerStats_VideoNoRangeInformation":"#DASHPlayerStats_AudioNoRangeInformation");r.push(S.createElement("div",{key:n+"none"},o))}return r},e.prototype.render=function(){var e=this.props.stats;return S.createElement("div",{className:"dash_video_quick_stats"},S.createElement("div",null,Object(be.d)("#DASHPlayerStats_BytesReceived")," ",S.createElement("span",{className:"videoStatsValue"},e.GetBytesReceivedToDisplay())),this.props.stats.BHasFrameInformation()&&S.createElement("div",null,Object(be.d)("#DASHPlayerStats_DroppedFrames")," ",S.createElement("span",{className:"videoStatsValue"},e.GetDroppedFramesToDisplay())),S.createElement("div",null,Object(be.d)("#DASHPlayerStats_VideoBuffered")," ",S.createElement("span",{className:"videoStatsValue"},e.GetVideoBufferedToDisplay()," ")),S.createElement("div",null,Object(be.d)("#DASHPlayerStats_AudioBuffered")," ",S.createElement("span",{className:"videoStatsValue"},e.GetAudioBufferedToDisplay()," ")),this.createBufferedRange(!0),this.createBufferedRange(!1),S.createElement("div",null,Object(be.d)("#DASHPlayerStats_BandwidthRequired")," ",S.createElement("span",{className:"videoStatsValue"},e.GetBandwidthRequiredToDisplay())),S.createElement("div",null,Object(be.d)("#DASHPlayerStats_BandwidthVideo")," ",S.createElement("span",{className:"videoStatsValue"},e.GetBandwithVideoToDisplay())),S.createElement("div",null,Object(be.d)("#DASHPlayerStats_BandwidthNums")," ",S.createElement("span",{className:"videoStatsValue"},e.GetBandwidthStatsToDisplay())),S.createElement("div",null,Object(be.d)("#DASHPlayerStats_DownloadNums")," ",S.createElement("span",{className:"videoStatsValue"},e.GetDownloadTimeStatsToDisplay())),S.createElement("div",null,Object(be.d)("#DASHPlayerStats_ActiveDownloads")," ",S.createElement("span",{className:"videoStatsValue"},e.GetActiveDownloadsToDisplay())),S.createElement("div",null,Object(be.d)("#DASHPlayerStats_VideoDownloadProgress")," ",S.createElement("span",{className:"videoStatsValue"},e.GetVideoDownloadProgressToDisplay())),S.createElement("div",null,Object(be.d)("#DASHPlayerStats_DroppingFrames")," ",S.createElement("span",{className:"videoStatsValue"},e.GetPersistentFrameDropsForDisplay())),S.createElement("div",null,Object(be.d)("#DASHPlayerStats_CurrentFPS")," ",S.createElement("span",{className:"videoStatsValue"},e.GetCurrentFPSForDisplay())))},e=Object(m.c)([i.a],e)}(S.Component),Jt=r("X3Ds"),Yt=r("Wjsq"),$t=r("VeD8"),Zt=r("pQ8y"),Qt=r("exH9"),er=(r("/4Qd"),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.d)(t,e),t.prototype.render=function(){var e=this.props,t=e.keyExtractor,r=e.style,n=e.duration,i=e.className,a=e.children,o=Object(m.f)(e,["keyExtractor","style","duration","className","children"]),s=Object(m.a)(Object(m.a)({},r||{}),{transitionDuration:n/1e3+"s"});return S.createElement($t.a,Object(m.a)({},o,{className:Object(Qt.a)("crossfade",i)}),S.createElement(Zt.a,{classNames:"crossfade-anim",timeout:n||500,key:t(),style:s},a))},t}(S.Component)),tr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.d)(t,e),t.prototype.render=function(){var e=this.props,t=e.src,r=Object(m.f)(e,["src"]),n={backgroundImage:"url("+t+")"};return S.createElement(er,Object(m.a)({style:n,keyExtractor:function(){return t}},r),S.createElement("div",{className:"crossfade-img"}))},t}(S.Component),rr=r("5L1o"),nr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.m_schUpdate=new he.b,e.m_bSetupComplete=!1,e}return Object(m.d)(e,t),e.prototype.componentDidMount=function(){0==this.props.updateRate&&this.updateCanvas()},e.prototype.componentWillUnmount=function(){this.m_schUpdate.Cancel()},e.prototype.componentDidUpdate=function(){this.updateCanvas()},e.prototype.BindCanvasRef=function(e){this.m_elCanvas=e},e.prototype.updateCanvas=function(){var e,t,r,n,i,a,o=this;null==this.props.elementRef||null==this.m_elCanvas||this.m_bSetupComplete||(e=this.props.scaleFactor||[1,1],t=this.props.elementRef,r=this.props.updateRate,this.m_Context=this.m_elCanvas.getContext("2d"),n=Math.floor(this.m_elCanvas.clientWidth/this.props.reductionFactor),i=Math.floor(this.m_elCanvas.clientHeight/this.props.reductionFactor),this.m_elCanvas.width=n,this.m_elCanvas.height=i,0<this.props.blurAmount&&(this.m_Context.filter="blur("+this.props.blurAmount+"px)"),(a=function(){o.m_Context.drawImage(t,0,0,n*e[0],i*e[1]),0<r&&o.m_schUpdate.Schedule(r,a)})(),this.m_bSetupComplete=!0)},e.prototype.render=function(){return S.createElement("canvas",{id:this.props.id,className:this.props.className,ref:this.BindCanvasRef,width:this.props.width,height:this.props.height})},Object(m.c)([s.a],e.prototype,"BindCanvasRef",null),Object(m.c)([s.a],e.prototype,"updateCanvas",null),e}(S.Component),ir=r("0OaU");function ar(){return S.createElement("div",{className:"STV_ReplayBanner"},Object(be.d)("#DASHPlayerControls_IsReplay"))}var or,sr,cr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.d)(t,e),t.prototype.render=function(){var e,t=this.props.video,r=Ht.b.Loading,n="";if(t&&(r=t.GetBroadcastState(),n=t.GetBroadcastStateDescription(),e=t.IsBuffering(),r==Ht.b.Ready&&e&&(r=Ht.b.Loading,n="")),t&&r!=Ht.b.Error&&t.GetUserInputNeeded())return null;if(r==Ht.b.Ready)return null;var i=r==Ht.b.Loading;return S.createElement("div",{className:"BroadcastVideoWatchState",style:{filter:"hue-rotate(40deg)"}},i&&S.createElement(ir.a,null),!i&&S.createElement("div",{className:"BroadcastVideoWatchState_Text"},n))},t=Object(m.c)([i.a],t)}(S.Component),ur=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.d)(t,e),t.prototype.OnClick=function(){Ht.a.UserInputClickVideo(this.props.video)},t.prototype.render=function(){return S.createElement("div",{className:"BroadcastVideoUserInputNeeded",onClick:this.OnClick},S.createElement(kt.J,null),S.createElement("span",null,Object(be.d)("#DASHPlayerControls_ClickToPlay")))},Object(m.c)([s.a],t.prototype,"OnClick",null),t}(S.Component),lr=r("Mgs7"),dr=r("FdXL"),mr=r.n(dr);(sr=or=or||{}).topleft="topleft",sr.top="top",sr.topright="topright",sr.left="left",sr.middle="middle",sr.right="right",sr.bottomleft="bottomleft",sr.bottom="bottom",sr.bottomright="bottomright";function pr(e){return S.createElement("div",{className:"timelineMarker",title:e.label,style:{left:e.pos+"%"},onMouseEnter:function(){return e.onMouseEnter(e.pos)},onMouseLeave:e.onMouseLeave,onMouseDown:e.onMouseDown?e.onMouseDown:void 0},S.createElement("div",{className:"timelineMarkerIcon"},S.createElement(kt.O,null)))}var fr=function(r){function e(e){var t=r.call(this,e)||this;return t.m_fnMouseUp=null,t.m_fnMouseMove=null,t.m_listeners=new he.c,t.m_strDescription="",t.m_aspectRatio=1,t.state={curLeftPosPct:t.props.xPosPct,curTopPosPct:t.props.yPosPct,curRightPosPct:100-(t.props.widthPct+t.props.xPosPct),curBottomPosPct:100-(t.props.yPosPct+t.props.heightPct),curWidthPct:t.props.widthPct,curHeightPct:t.props.heightPct,EdgeDown:null,text_link_url:t.props.link_url,text_link_description:t.props.link_description,bEditingLink:!1,valid_link:t.validateUrl(t.props.link_url)},t.m_strDescription=t.props.link_description,t.m_aspectRatio=0<t.props.heightPct&&0<t.props.widthPct?t.props.widthPct/t.props.heightPct:1,t}return Object(m.d)(e,r),e.prototype.componentWillUnmount=function(){this.m_listeners.Unregister()},e.prototype.LinkRegionBoxRef=function(e){this.m_elLinkRegionBox=e},e.prototype.OnMouseDown=function(e,t){var r=this;this.m_fnMouseUp=function(e){r.OnMouseUp(e,t)},this.m_fnMouseMove=function(e){r.OnMouseMove(e,t)},this.setState({EdgeDown:t}),this.m_rectLinkRegion=this.m_elLinkRegionBox.parentElement.getBoundingClientRect(),this.m_nLocalOffsetXPct=(e.clientX-this.m_rectLinkRegion.left)/(this.m_rectLinkRegion.right-this.m_rectLinkRegion.left)*100-this.state.curLeftPosPct,this.m_nLocalOffsetYPct=(e.clientY-this.m_rectLinkRegion.top)/(this.m_rectLinkRegion.bottom-this.m_rectLinkRegion.top)*100-this.state.curTopPosPct,this.m_listeners.AddEventListener(this.m_elLinkRegionBox.ownerDocument.defaultView,"mousemove",this.m_fnMouseMove),this.m_listeners.AddEventListener(this.m_elLinkRegionBox.ownerDocument.defaultView,"mouseup",this.m_fnMouseUp),e.preventDefault(),e.stopPropagation()},e.prototype.OnMouseMove=function(e,t){if(void 0!==this.state.EdgeDown){switch(e.shiftKey&&this.m_fnMouseUp(),t){case or.left:this.UpdateState({curLeftPosPct:this.CalcLeftEdge(e.clientX)});break;case or.right:this.UpdateState({curRightPosPct:this.CalcRightEdge(e.clientX)});break;case or.top:this.UpdateState({curTopPosPct:this.CalcTopEdge(e.clientY)});break;case or.bottom:this.UpdateState({curBottomPosPct:this.CalcBottomEdge(e.clientY)});break;case or.topleft:this.UpdateState({curTopPosPct:this.CalcBottomEdge(e.clientY),curLeftPosPct:this.CalcLeftEdge(e.clientX)});break;case or.topright:this.UpdateState({curTopPosPct:this.CalcTopEdge(e.clientY),curRightPosPct:this.CalcRightEdge(e.clientX)});break;case or.bottomleft:this.UpdateState({curLeftPosPct:this.CalcLeftEdge(e.clientX),curBottomPosPct:this.CalcBottomEdge(e.clientY)});break;case or.bottomright:this.UpdateState({curRightPosPct:this.CalcRightEdge(e.clientX),curBottomPosPct:this.CalcBottomEdge(e.clientY)});break;case or.middle:var r=Object(At.a)(this.CalcLeftEdge(e.clientX),0,100-this.state.curWidthPct),n=100-(r+this.state.curWidthPct),i=Object(At.a)(this.CalcTopEdge(e.clientY),0,100-this.state.curHeightPct),a={curLeftPosPct:r,curRightPosPct:n,curTopPosPct:i,curBottomPosPct:100-(i+this.state.curHeightPct)};this.setState(a)}e.preventDefault(),e.stopPropagation()}},e.prototype.IsValidPct=function(e){return 0<=e&&e<=100},e.prototype.UpdateState=function(e){var t=void 0!==e.curTopPosPct?e.curTopPosPct:this.state.curTopPosPct,r=void 0!==e.curBottomPosPct?e.curBottomPosPct:this.state.curBottomPosPct,n=void 0!==e.curLeftPosPct?e.curLeftPosPct:this.state.curLeftPosPct,i=void 0!==e.curRightPosPct?e.curRightPosPct:this.state.curRightPosPct,a=Object(At.a)(100-i-n,this.props.widthMinPct||0,this.props.widthMaxPct||100),o=Object(At.a)(100-r-t,this.props.heightMinPct||0,this.props.heightMaxPct||100);this.props.bLockAspectRatio&&(void 0!==e.curLeftPosPct||void 0!==e.curRightPosPct?o=a/this.m_aspectRatio:a=o*this.m_aspectRatio),void 0!==e.curLeftPosPct?n=100-i-a:i=100-(n+a),void 0!==e.curTopPosPct?t=100-r-o:r=100-(t+o);var s=100-i-n,c=100-r-t;this.IsValidPct(n)&&this.IsValidPct(i)&&this.IsValidPct(t)&&this.IsValidPct(r)&&this.IsValidPct(s)&&this.IsValidPct(c)&&this.setState({curLeftPosPct:n,curRightPosPct:i,curTopPosPct:t,curBottomPosPct:r})},e.prototype.GetXPercent=function(e){return(e-this.m_rectLinkRegion.left)/(this.m_rectLinkRegion.right-this.m_rectLinkRegion.left)*100-this.m_nLocalOffsetXPct},e.prototype.GetYPercent=function(e){return(e-this.m_rectLinkRegion.top)/(this.m_rectLinkRegion.bottom-this.m_rectLinkRegion.top)*100-this.m_nLocalOffsetYPct},e.prototype.CalcLeftEdge=function(e){return Object(At.a)(this.GetXPercent(e),0,100)},e.prototype.CalcRightEdge=function(e){return Object(At.a)(100-(this.GetXPercent(e)+this.state.curWidthPct),0,100)},e.prototype.CalcTopEdge=function(e){return Object(At.a)(this.GetYPercent(e),0,100)},e.prototype.CalcBottomEdge=function(e){return Object(At.a)(100-(this.GetYPercent(e)+this.state.curHeightPct),0,100)},e.prototype.OnMouseUp=function(e,t){this.setState({curWidthPct:100-this.state.curRightPosPct-this.state.curLeftPosPct}),this.setState({curHeightPct:100-this.state.curBottomPosPct-this.state.curTopPosPct}),this.setState({EdgeDown:void 0}),this.props.updateFn(this.props.index,{xPosPct:this.state.curLeftPosPct,yPosPct:this.state.curTopPosPct,widthPct:this.state.curWidthPct,heightPct:this.state.curHeightPct,link_url:this.state.text_link_url,link_description:this.state.text_link_description}),this.m_listeners.Unregister()},e.prototype.HandleDelete=function(){return Object(m.b)(this,void 0,void 0,function(){return Object(m.e)(this,function(e){return this.props.deleteFn&&this.props.deleteFn(this.props.index),[2]})})},e.prototype.OnSetLinkURLChange=function(e){this.setState({text_link_url:e.target.value,valid_link:this.validateUrl(e.target.value)})},e.prototype.OnSetLinkDescriptionChange=function(e){this.setState({text_link_description:e.target.value})},e.prototype.validateUrl=function(e){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/i.test(e)},e.prototype.OnSaveLink=function(){this.m_strDescription=this.state.text_link_description,this.setState({bEditingLink:!this.state.bEditingLink}),this.props.updateFn(this.props.index,{xPosPct:this.state.curLeftPosPct,yPosPct:this.state.curTopPosPct,widthPct:this.state.curWidthPct,heightPct:this.state.curHeightPct,link_url:this.state.text_link_url,link_description:this.state.text_link_description})},e.prototype.OnEditLink=function(){this.setState({bEditingLink:!this.state.bEditingLink})},e.prototype.render=function(){var t=this,e={left:this.state.curLeftPosPct+"%",top:this.state.curTopPosPct+"%",right:this.state.curRightPosPct+"%",bottom:this.state.curBottomPosPct+"%"},r=mr.a.LinkRegionDragBox;return null!==this.state.EdgeDown&&(r+=" "+mr.a.EdgeDown+" "+mr.a[this.state.EdgeDown]),S.createElement("div",{className:r,style:e,ref:this.LinkRegionBoxRef,draggable:!1},S.createElement("div",{className:mr.a.LinkRegionGridBox},S.createElement("div",{className:mr.a.LinkRegionEdge+" "+mr.a.TopLeft,onMouseDown:function(e){t.OnMouseDown(e,or.topleft)},draggable:!1}),S.createElement("div",{className:mr.a.LinkRegionEdge+" "+mr.a.Top,onMouseDown:function(e){t.OnMouseDown(e,or.top)}}),S.createElement("div",{className:mr.a.LinkRegionEdge+" "+mr.a.TopRight,onMouseDown:function(e){t.OnMouseDown(e,or.topright)},draggable:!1}),S.createElement("div",{className:mr.a.LinkRegionEdge+" "+mr.a.Left,onMouseDown:function(e){t.OnMouseDown(e,or.left)},draggable:!1}),S.createElement("div",{className:mr.a.LinkRegionEdge+" "+mr.a.Middle,onMouseDown:function(e){t.OnMouseDown(e,or.middle)},draggable:!1},this.props.deleteFn&&S.createElement("div",{className:mr.a.LinkRegionDelete,onClick:this.HandleDelete},S.createElement(kt.bb,null)),!this.props.bDisableLink&&S.createElement("div",{className:mr.a.LinkRegionSettings,onClick:this.OnEditLink},S.createElement(kt.G,null)),S.createElement("div",{className:mr.a.LinkText}," ",this.m_strDescription," ")),S.createElement("div",{className:mr.a.LinkRegionEdge+" "+mr.a.Right,onMouseDown:function(e){t.OnMouseDown(e,or.right)},draggable:!1}),S.createElement("div",{className:mr.a.LinkRegionEdge+" "+mr.a.BottomLeft,onMouseDown:function(e){t.OnMouseDown(e,or.bottomleft)},draggable:!1}),S.createElement("div",{className:mr.a.LinkRegionEdge+" "+mr.a.Bottom,onMouseDown:function(e){t.OnMouseDown(e,or.bottom)},draggable:!1}),S.createElement("div",{className:mr.a.LinkRegionEdge+" "+mr.a.BottomRight,onMouseDown:function(e){t.OnMouseDown(e,or.bottomright)},draggable:!1})),this.state.bEditingLink&&S.createElement("div",{className:mr.a.LinkRegionInfo},S.createElement(lr.j,{className:mr.a.LinkRegionInput,type:"text",name:"link_url",value:this.state.text_link_url,label:Object(be.d)("#SteamTV_LinkURL"),placeholder:"https://www.example.com",onChange:this.OnSetLinkURLChange,mustBeURL:!0}),S.createElement(lr.j,{className:mr.a.LinkRegionInput,type:"text",name:"link_description",value:this.state.text_link_description,label:Object(be.d)("#SteamTV_LinkDescription"),placeholder:Object(be.d)("#SteamTV_LinkDescription_Placeholder"),onChange:this.OnSetLinkDescriptionChange}),S.createElement("div",{className:mr.a.LinkRegionButtonContainer},S.createElement(lr.c,{disabled:!this.state.valid_link,onClick:this.OnSaveLink}," ",Object(be.d)("#Button_OK")," "),S.createElement(lr.c,{onClick:this.OnEditLink}," ",Object(be.d)("#Button_Cancel")))))},Object(m.c)([s.a],e.prototype,"LinkRegionBoxRef",null),Object(m.c)([s.a],e.prototype,"OnMouseDown",null),Object(m.c)([s.a],e.prototype,"OnMouseMove",null),Object(m.c)([s.a],e.prototype,"OnMouseUp",null),Object(m.c)([s.a],e.prototype,"HandleDelete",null),Object(m.c)([s.a],e.prototype,"OnSetLinkURLChange",null),Object(m.c)([s.a],e.prototype,"OnSetLinkDescriptionChange",null),Object(m.c)([s.a],e.prototype,"OnSaveLink",null),Object(m.c)([s.a],e.prototype,"OnEditLink",null),e=Object(m.c)([i.a],e)}(S.Component),hr=r("q+NH"),br=r.n(hr),_r=function(r){function e(e){var t=r.call(this,e)||this;return t.m_schHideControls=new he.b,t.m_schUnmountControls=new he.b,t.m_elBroadcastPlayer=null,t.m_bMouseDown=!1,t.m_elMouseDown=null,t.m_listeners=new he.c,t.state={bMountControls:!1,bControlsVisible:!1,bShowStats:!1,video:null,nResizedHeight:null,bFullscreen:!1},t}return Object(m.d)(e,r),e.prototype.StopVideo=function(){var e=this.state.video;e&&(Ht.a.StopVideo(e),this.setState({video:null}))},e.prototype.IsMuted=function(){var e=this.state.video;return!e||e.IsMuted()},e.prototype.StopPlaybackTillUserInput=function(){var e=this.state.video;e&&e.StopPlaybackTillUserInput()},e.prototype.componentDidUpdate=function(e,t){var r=this;!t.bMountControls&&this.state.bMountControls?setTimeout(function(){r.setState(function(e){return{bControlsVisible:e.bMountControls}})},15):t.bControlsVisible&&!this.state.bControlsVisible&&this.state.video&&!this.state.video.IsPaused()&&this.m_schUnmountControls.Schedule(2e3,this.UmountControls),this.props.steamIDBroadcast!==e.steamIDBroadcast&&this.BindVideoRef(this.m_elVideo)},e.prototype.componentWillUnmount=function(){this.m_listeners.Unregister(),this.m_schHideControls.Cancel(),this.m_schUnmountControls.Cancel(),this.StopVideo()},e.prototype.BindBroadcastPlayerRef=function(e){this.m_listeners.Unregister(),(this.m_elBroadcastPlayer=e)&&(this.m_listeners.AddEventListener(e,"fullscreenchange",this.OnFullscreenChange),this.m_listeners.AddEventListener(e,"mozfullscreenchange",this.OnFullscreenChange),this.m_listeners.AddEventListener(e,"webkitfullscreenchange",this.OnFullscreenChange),this.m_listeners.AddEventListener(e,"msfullscreenchange",this.OnFullscreenChange))},e.prototype.BindVideoRef=function(e){var t=void 0;this.StopVideo(),this.props.steamIDBroadcast?e&&(t=Ht.a.CreateBroadcastVideo(e,this.props.steamIDBroadcast,this.props.watchLocation,this.props.bWebRTC)):this.props.broadcastClipID&&e&&(t=Ht.a.CreateClipVideo(e,this.props.broadcastClipID,this.props.watchLocation)),t&&(this.props.bStartMuted&&t.SetMute(!0),this.props.bStartPaused?t.StopPlaybackTillUserInput():t.Play()),this.setState({video:t}),this.m_elVideo=e},e.prototype.OnMouseDown=function(e){this.m_bMouseDown=!0,this.m_elMouseDown=e.currentTarget,this.m_elMouseDown.ownerDocument.defaultView.addEventListener("mouseup",this.OnMouseUp)},e.prototype.OnMouseUp=function(e){this.m_bMouseDown=!1,this.m_elMouseDown.ownerDocument.defaultView.removeEventListener("mouseup",this.OnMouseUp),this.m_schHideControls.Schedule(3200,this.HideControls)},e.prototype.OnMouseMove=function(e){this.m_schHideControls.Cancel(),this.m_schUnmountControls.Cancel(),this.state.bMountControls?this.state.bControlsVisible||this.setState({bControlsVisible:!0}):this.setState({bMountControls:!0}),this.m_schHideControls.Schedule(3200,this.HideControls)},e.prototype.OnMouseLeave=function(e){this.HideControls()},e.prototype.HideControls=function(){this.state.bControlsVisible&&!this.m_bMouseDown&&this.setState({bControlsVisible:!1})},e.prototype.UmountControls=function(){this.setState(function(e){if(!e.bControlsVisible&&e.bMountControls)return{bMountControls:!1}})},e.prototype.ShowStatsView=function(){var e=this.state.video;e&&(this.state.bShowStats||(this.setState({bShowStats:!0}),e.SetStatsViewIsVisible(!0)))},e.prototype.OnContextMenu=function(e){this.state.bFullscreen||(Object(jt.a)(S.createElement(zt.c,null,this.GetContextMenuItems()),e),e.preventDefault())},e.prototype.ToggleStatsView=function(e){var t=!this.state.bShowStats;this.setState({bShowStats:t});var r=this.state.video;r&&r.SetStatsViewIsVisible(t)},e.prototype.ShowStorePage=function(e){var t,r,n=this.state.video;n&&this.props.onOpenLinkInNewWindow&&((t=n.GetBroadcastInfo())&&(r=_e.c.STORE_BASE_URL+"app/"+t.m_strAppId,this.props.onOpenLinkInNewWindow(e,r),e.stopPropagation()))},e.prototype.GetContextMenuItems=function(){var t=this,e=[],r=this.state.video;if(!r)return e;var n=r.GetBroadcastInfo();return e.push(S.createElement(zt.b,{key:"togglestats",bChecked:this.state.bShowStats,onSelected:function(e){t.ToggleStatsView(e)}},Object(be.d)("#Broadcast_VideoContext_ToggleStats"))),n&&"0"!=n.m_strAppId&&"7"!=n.m_strAppId&&e.push(S.createElement(zt.d,{key:"visitstore",onSelected:function(e){t.ShowStorePage(e)}},Object(be.d)("#Broadcast_VideoContext_OpenStore"))),e},e.prototype.CloseStats=function(){var e=this.state.video;e&&this.state.bShowStats&&(this.setState({bShowStats:!1}),e.SetStatsViewIsVisible(!1))},e.prototype.OnToggleFullscreen=function(){this.m_elBroadcastPlayer&&(Object(Jt.a)(this.m_elBroadcastPlayer)?Object(Jt.e)(this.m_elBroadcastPlayer):Object(Jt.n)(this.m_elBroadcastPlayer,this.m_elVideo))},e.prototype.OnFullscreenChange=function(e){var t;this.m_elBroadcastPlayer&&(t=Object(Jt.a)(this.m_elBroadcastPlayer),this.setState({bFullscreen:t}))},e.prototype.BHideVideoControls=function(){var e=this.state.video;return!e||(!!e.GetUserInputNeeded()||Ht.a.GetBroadcastState(e)==Ht.b.Error)},e.prototype.render=function(){var e=this.state.video,t=e&&e.IsPaused(),r=e&&e.BHasDASHStats()&&this.state.bShowStats,n=Boolean(e&&e.IsReplay()),i=this.state.bMountControls,a=this.state.bControlsVisible||t,o=e&&e.GetUserInputNeeded(),s="videoContainer";a||(s+=" HidePlayerControls"),t&&(s+=" VideoPaused"),this.state.bFullscreen&&(s+=" fullscreenVideo"),this.props.classes&&(s+=" "+this.props.classes);var c=[];!this.state.bFullscreen&&this.props.actions&&(c=c.concat(this.props.actions)),!this.state.bFullscreen&&this.props.onTheaterMode&&c.push(S.createElement("div",{key:"ChatPosToggle ChatTheaterToggle",onClick:this.props.onTheaterMode,title:Object(be.d)("#Broadcast_View_Theater"),className:"BroadcastTheaterToggle"})),c.push(S.createElement("div",{key:"FullscreenToggle",title:Object(be.d)("#Broadcast_View_Fullscreen"),onClick:this.OnToggleFullscreen,className:"BroadcastFullscreenToggle"}));var u=i&&!this.BHideVideoControls(),l=i&&!this.state.bFullscreen,d=this.props.fnRenderBroadcastContext&&this.props.fnRenderBroadcastContext();return S.createElement("div",{ref:this.BindBroadcastPlayerRef,className:s,onMouseMove:this.OnMouseMove,onClick:this.OnMouseMove,onMouseLeave:this.OnMouseLeave,onContextMenu:this.OnContextMenu,onMouseDown:this.OnMouseDown},d&&S.createElement("div",{className:br.a.BroadcastContext},d),n&&S.createElement(ar,null),this.props.showVideoBackgroundBlur&&S.createElement(nr,{className:"videoBlur",elementRef:this.m_elVideo,updateRate:33,width:320,height:180,reductionFactor:10,blurAmount:5}),S.createElement("video",{className:"videoSrc",ref:this.BindVideoRef,muted:!0,autoPlay:!0,playsInline:!0,controls:!1}),this.props.linkRegions?S.createElement(Er,{linkRegions:this.props.linkRegions,editMode:this.props.editMode,onSaveLinkRegions:this.props.onSaveLinkRegions}):null,this.props.linkElement,u&&S.createElement(yr,{video:e,actions:c,onOpenLinkInNewWindow:this.props.onOpenLinkInNewWindow,onShowStats:this.ToggleStatsView,bIncludeClipEditor:this.props.bIncludeClipEditor}),l&&S.createElement(Br,{onClick:this.props.onRequestClose}),r&&S.createElement(Kt,{stats:e.GetDASHPlayerStats(),closeStats:this.CloseStats}),S.createElement(cr,{video:e}),o&&S.createElement(ur,{video:e}))},Object(m.c)([s.a],e.prototype,"BindBroadcastPlayerRef",null),Object(m.c)([s.a],e.prototype,"BindVideoRef",null),Object(m.c)([s.a],e.prototype,"OnMouseDown",null),Object(m.c)([s.a],e.prototype,"OnMouseUp",null),Object(m.c)([s.a],e.prototype,"OnMouseMove",null),Object(m.c)([s.a],e.prototype,"OnMouseLeave",null),Object(m.c)([s.a],e.prototype,"HideControls",null),Object(m.c)([s.a],e.prototype,"UmountControls",null),Object(m.c)([s.a],e.prototype,"ShowStatsView",null),Object(m.c)([s.a],e.prototype,"OnContextMenu",null),Object(m.c)([s.a],e.prototype,"ToggleStatsView",null),Object(m.c)([s.a],e.prototype,"ShowStorePage",null),Object(m.c)([s.a],e.prototype,"CloseStats",null),Object(m.c)([s.a],e.prototype,"OnToggleFullscreen",null),Object(m.c)([s.a],e.prototype,"OnFullscreenChange",null),e=Object(m.c)([i.a],e)}(S.Component),yr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.d)(t,e),t.prototype.render=function(){var e=this.props.video;if(!e)return null;var t=e.has_segments;return S.createElement("div",{className:"videoControls"},S.createElement(Tr,{steamID:this.props.video.GetBroadcastSteamID(),bHideThumbnail:!0,bVerticalBroadcastChat:!0,onOpenLinkInNewWindow:this.props.onOpenLinkInNewWindow}),S.createElement("div",{className:"videoControlsBottom"+(t?"":" noSegments")},S.createElement(zr,{video:e,bIncludeClipEditor:this.props.bIncludeClipEditor}),S.createElement("div",{className:"STV_BroadcastController"},S.createElement("div",{className:"videoControlsButtons LeftSpacer"}),S.createElement(gr,{video:e}),S.createElement(vr,{video:e}),S.createElement(Or,{video:e,actions:this.props.actions,onShowStats:this.props.onShowStats}))))},t=Object(m.c)([i.a],t)}(S.Component),Br=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.d)(t,e),t.prototype.render=function(){return this.props.onClick?S.createElement("div",{className:"STV_BroadcastClose",onClick:this.props.onClick},S.createElement(kt.bb,null)):null},t}(S.PureComponent),gr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.d)(t,e),t.prototype.OnJumpBackward=function(){this.props.video.JumpTime(-15)},t.prototype.OnJumpForward=function(){this.props.video.JumpTime(15)},t.prototype.render=function(){var e=this.props.video,t=e.CanSeek();return S.createElement("div",{className:"videoControlsButtons PlayControls"},S.createElement(wr,{video:e}),t&&S.createElement("div",{className:"videoControlButton videoControlJump controlFlip",onClick:this.OnJumpBackward},S.createElement(kt.C,{bHidePostArrow:!0,bHidePreArrow:!0,bShowJumpAheadBox:!0,bFlipHorizontal:!0}),S.createElement("div",{className:"jumpAheadValue"},15)),S.createElement(Sr,{video:e}),t&&S.createElement("div",{className:"videoControlButton videoControlJump",onClick:this.OnJumpForward},S.createElement(kt.C,{bHidePostArrow:!0,bHidePreArrow:!0,bShowJumpAheadBox:!0,bFlipHorizontal:!1}),S.createElement("div",{className:"jumpAheadValue"},15)),t&&S.createElement(Mr,{video:e}))},Object(m.c)([s.a],t.prototype,"OnJumpBackward",null),Object(m.c)([s.a],t.prototype,"OnJumpForward",null),t}(S.Component),vr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.d)(t,e),t.prototype.OnGoLiveClicked=function(e){this.props.video.JumpToLiveEdge()},t.prototype.render=function(){var e=this.props.video.IsOnLiveEdge();return S.createElement("div",{className:"videoControlsButtons GoLive"},S.createElement("div",{className:"videoControlButton videoControlGoLive"+(e?" isLiveEdge":""),onClick:e?null:this.OnGoLiveClicked},S.createElement(kt.C,{bHidePreArrow:!0,bHidePostArrow:!0,bFlipHorizontal:!1}),S.createElement("div",{className:"jumpGoLive"},e?Object(be.d)("#DASHPlayerControls_IsLive"):Object(be.d)("#DASHPlayerControls_GoLive"))))},Object(m.c)([s.a],t.prototype,"OnGoLiveClicked",null),t=Object(m.c)([i.a],t)}(S.Component),Sr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.d)(t,e),t.prototype.OnTogglePlayPause=function(){this.props.video.TogglePlayPause()},t.prototype.render=function(){var e=this.props.video.IsPaused();return S.createElement("div",{className:"videoControlButton buttonPlayPause",onClick:this.OnTogglePlayPause},e?S.createElement(kt.J,null):S.createElement(kt.I,null))},Object(m.c)([s.a],t.prototype,"OnTogglePlayPause",null),t=Object(m.c)([i.a],t)}(S.Component),wr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.d)(t,e),Object.defineProperty(t.prototype,"has_previous_marker",{get:function(){return void 0!==this.GetPreviousMarkerTime()},enumerable:!1,configurable:!0}),t.prototype.GetPreviousMarkerTime=function(){if(this.props.video.has_markers)for(var e=this.props.video.GetTimelineMarkers(),t=this.props.video.GetPlaybackTime(),r=e.length-1;0<=r;r--)if(!(e[r].nTime>=t))return e[r].nTime},t.prototype.OnJumpToPreviousMarkerClicked=function(e){var t=this.GetPreviousMarkerTime();void 0!==t&&this.props.video.Seek(t-.2)},t.prototype.render=function(){var e=this.props.video.BHasMarkersOrSegments();return S.createElement("div",{className:"videoControlButton jumpToMarker controlFlip"+(e?"":" noMarkersOrSegments")+(this.has_previous_marker?"":" noMarkersInDirection"),onClick:this.OnJumpToPreviousMarkerClicked},S.createElement(kt.C,{bHidePostArrow:!0,bFlipHorizontal:!0}))},Object(m.c)([o.n],t.prototype,"has_previous_marker",null),Object(m.c)([s.a],t.prototype,"OnJumpToPreviousMarkerClicked",null),t=Object(m.c)([i.a],t)}(S.Component),Mr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.d)(t,e),Object.defineProperty(t.prototype,"has_next_marker",{get:function(){return void 0!==this.GetNextMarkerTime()},enumerable:!1,configurable:!0}),t.prototype.GetNextMarkerTime=function(){if(this.props.video.has_markers)for(var e=this.props.video.GetTimelineMarkers(),t=this.props.video.GetPlaybackTime(),r=0;r<e.length;r++)if(!(e[r].nTime<=t))return e[r].nTime},t.prototype.OnJumpToNextMarkerClicked=function(e){var t=this.GetNextMarkerTime();void 0!==t&&this.props.video.Seek(t)},t.prototype.render=function(){var e=this.props.video.BHasMarkersOrSegments();return S.createElement("div",{className:"videoControlButton jumpToMarker"+(e?"":" noMarkersOrSegments")+(this.has_next_marker?"":" noMarkersInDirection"),onClick:this.OnJumpToNextMarkerClicked},S.createElement(kt.C,{bHidePostArrow:!0,bFlipHorizontal:!1}))},Object(m.c)([o.n],t.prototype,"has_next_marker",null),Object(m.c)([s.a],t.prototype,"OnJumpToNextMarkerClicked",null),t=Object(m.c)([i.a],t)}(S.Component),Or=function(r){function e(e){var t=r.call(this,e)||this;return t.m_elSubtitlesButton=S.createRef(),t.m_elSubtitlesPanel=S.createRef(),t.state={bSettingsOpen:!1,bSubtitlesOpen:!1},t}return Object(m.d)(e,r),e.prototype.OnVideoControlClick=function(e){this.setState({bSettingsOpen:!this.state.bSettingsOpen}),this.m_SettingsButtonPos=[this.m_elSettingsButton.offsetLeft,this.m_elSettingsButton.offsetTop],this.m_elClickListener=e.currentTarget.ownerDocument.defaultView,this.m_elClickListener.addEventListener("mouseup",this.OnMouseUp,!0)},e.prototype.OnSubtitlesClick=function(e){this.setState({bSubtitlesOpen:!this.state.bSubtitlesOpen}),this.m_SubtitlesButtonPos=[this.m_elSubtitlesButton.current.offsetLeft,this.m_elSubtitlesButton.current.offsetTop],this.m_elClickListener=e.currentTarget.ownerDocument.defaultView,this.m_elClickListener.addEventListener("mouseup",this.OnMouseUp,!0)},e.prototype.OnMouseUp=function(e){this.m_elClickListener.removeEventListener("mouseup",this.OnMouseUp,!0),Object(Jt.c)(this.m_elSettingsPanel,e.target)||this.setState({bSettingsOpen:!1}),Object(Jt.c)(this.m_elSubtitlesPanel.current,e.target)||this.setState({bSubtitlesOpen:!1})},e.prototype.bindSettingsButton=function(e){this.m_elSettingsButton=e},e.prototype.BindSettingsPanel=function(e){this.m_elSettingsPanel=e},e.prototype.OnShowStats=function(e){this.props.onShowStats(e),this.setState({bSettingsOpen:!this.state.bSettingsOpen})},e.prototype.render=function(){var e,r,n=this,t=!1,i=!1,a=this.props,o=a.video,s=a.actions,c=0,u=S.createElement("div",{key:"separator",className:"settingsMenuSeparator"});if(this.state.bSettingsOpen&&(t=!0,e=this.props.video.GetVideoRepresentations(),(r=e.map(function(e){return S.createElement(zt.b,{key:e.id,onSelected:function(){n.props.video.SetVideoRepresentation(e),n.setState({bSettingsOpen:!n.state.bSettingsOpen})},bChecked:e.selected},e.displayName)})).push(u),r.push(S.createElement(zt.d,{key:"statsToggle",onSelected:this.OnShowStats},Object(be.d)("#Broadcast_VideoContext_ToggleStats"),"\t")),c=0-(21*r.length+32)),this.state.bSubtitlesOpen){i=!0,(r=[]).push(S.createElement(zt.b,{key:"none",onSelected:function(){n.props.video.SetSubtitles(null),n.setState({bSubtitlesOpen:!n.state.bSubtitlesOpen})},className:"NoSubtitles",bChecked:!1},Object(be.d)("#Broadcast_None")));for(var l=this,d=0;d<this.props.video.ListSubtitles().length;d++)!function(e){var t=l.props.video.ListSubtitles()[e];r.push(S.createElement(zt.b,{key:t.language,onSelected:function(){n.props.video.SetSubtitles(t.language),n.setState({bSubtitlesOpen:!n.state.bSubtitlesOpen})},bChecked:"showing"===t.mode},t.label))}(d);c=-352}var m=this.props.video.GetSubtitles()||!1;return S.createElement("div",{className:"STV_BroadcastSettings"},this.props.video.ListSubtitles().length?S.createElement("div",{className:"videoControlButton"+(m?" ClosedCaptionsActive":""),onClick:this.OnSubtitlesClick,ref:this.m_elSubtitlesButton},S.createElement(kt.m,null)):null,S.createElement("div",{className:"videoControlButton VideoSettings "+(t?" VideoSettingsOpen":""),onClick:this.OnVideoControlClick,ref:this.bindSettingsButton},S.createElement(kt.P,null)),S.createElement(Cr,{video:o}),s&&s.map(function(e){return S.createElement("div",{key:e.key,className:"videoControlButton videoControlFitWidth"},e)}),t&&S.createElement("div",{ref:this.BindSettingsPanel,className:"STV_BroadcastSettingsPanel",style:{left:this.m_SettingsButtonPos[0],top:this.m_SettingsButtonPos[1],marginTop:c}},S.createElement("div",{className:"STV_BroadcastSettingsMenuItems"},r)),i&&S.createElement("div",{ref:this.m_elSubtitlesPanel,className:"STV_BroadcastSettingsPanel SubtitlesMenu",style:{maxHeight:"320px",left:this.m_SubtitlesButtonPos[0],top:this.m_SubtitlesButtonPos[1],marginTop:c}},S.createElement("div",{className:"STV_BroadcastSettingsMenuItems"},r)))},Object(m.c)([s.a],e.prototype,"OnVideoControlClick",null),Object(m.c)([s.a],e.prototype,"OnSubtitlesClick",null),Object(m.c)([s.a],e.prototype,"OnMouseUp",null),Object(m.c)([s.a],e.prototype,"bindSettingsButton",null),Object(m.c)([s.a],e.prototype,"BindSettingsPanel",null),Object(m.c)([s.a],e.prototype,"OnShowStats",null),e}(S.Component),Cr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.k_nHideSliderTimeout=1500,e.m_bShowSlider=!0,e.m_schHideSlider=new he.b,e.m_bChildDragging=!1,e.m_bMouseOver=!1,e}return Object(m.d)(e,t),e.prototype.componentWillUnmount=function(){this.m_schHideSlider.Cancel()},e.prototype.ToggleMute=function(){var e=this.props.video,t=e.IsMuted();e.SetMute(!t),e.GetVolume()<.01&&e.SetVolume(.5)},e.prototype.OnMouseEnter=function(e){this.m_bShowSlider=!0,this.m_bMouseOver=!0,this.m_schHideSlider.Cancel()},e.prototype.OnMouseLeave=function(e){this.m_bMouseOver=!1,this.ScheduleHide()},e.prototype.OnChildDrag=function(e){this.m_bChildDragging=e,this.ScheduleHide()},e.prototype.ScheduleHide=function(){var e=this;this.m_bMouseOver||this.m_bChildDragging||this.m_schHideSlider.Schedule(this.k_nHideSliderTimeout,function(){return e.m_bShowSlider=!0})},e.prototype.render=function(){var e=this.props.video,t=e.IsMuted(),r=100*e.GetVolume(),n="videoControlButton";65<r?n+=" HighestVolume":45<r?n+=" HighVolume":r<46&&24<r?n+=" MedVolume":r<25&&(n+=" LowVolume");var i="BroadcastVolumeControl";return this.m_bShowSlider&&(i+=" ShowVolumeSlider"),t&&(i+=" muted"),S.createElement("div",{className:i,onMouseEnter:this.OnMouseEnter,onMouseLeave:this.OnMouseLeave},S.createElement("div",{className:"BroadcastVolumeControl_FixedLayout"},S.createElement("div",{className:n,onClick:this.ToggleMute},S.createElement(kt.ab,null)),S.createElement(Rr,{video:e,onDrag:this.OnChildDrag})))},Object(m.c)([o.C],e.prototype,"m_bShowSlider",void 0),Object(m.c)([s.a],e.prototype,"ToggleMute",null),Object(m.c)([s.a],e.prototype,"OnMouseEnter",null),Object(m.c)([s.a],e.prototype,"OnMouseLeave",null),Object(m.c)([s.a],e.prototype,"OnChildDrag",null),e=Object(m.c)([i.a],e)}(S.Component),Rr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.m_elSlider=null,e.m_nVolumeStartOfDrag=0,e}return Object(m.d)(e,t),e.prototype.OnMouseDown=function(e){var t=e.currentTarget;this.m_elSlider=t,this.m_nVolumeStartOfDrag=this.props.video.GetVolume(),this.SetVolumeWithCoord(t,e.clientX),t.ownerDocument.defaultView.addEventListener("mousemove",this.OnMouseMove),t.ownerDocument.defaultView.addEventListener("mouseup",this.OnMouseUp),this.props.onDrag(!0)},e.prototype.OnMouseMove=function(e){this.m_elSlider&&this.SetVolumeWithCoord(this.m_elSlider,e.clientX)},e.prototype.OnMouseUp=function(e){var t;this.m_elSlider&&(this.SetVolumeWithCoord(this.m_elSlider,e.clientX),(t=this.props.video).IsMuted()&&t.SetVolume(this.m_nVolumeStartOfDrag),this.m_elSlider.ownerDocument.defaultView.removeEventListener("mousemove",this.OnMouseMove),this.m_elSlider.ownerDocument.defaultView.removeEventListener("mouseup",this.OnMouseUp),this.m_nVolumeStartOfDrag=0,this.m_elSlider=null,this.props.onDrag(!1))},e.prototype.SetVolumeWithCoord=function(e,t){var r=e.getBoundingClientRect(),n=At.c(t,r.left,r.right,0,1),i=At.a(n,0,1),a=this.props.video;a.SetMute(n<.01),a.SetVolume(i)},e.prototype.render=function(){var e=this.props.video,t=100*e.GetVolume();e.IsMuted()&&(t=0);var r={left:t+"%"},n={width:t+"%"};return S.createElement("div",{className:"BroadcastVolumeSlider",onMouseDown:this.OnMouseDown},S.createElement("div",{className:"BroadcastVolumeSlider_Track"}),S.createElement("div",{className:"BroadcastVolumeSlider_Fill",style:n}),S.createElement("div",{className:"BroadcastVolumeSlider_Thumb",style:r}))},Object(m.c)([s.a],e.prototype,"OnMouseDown",null),Object(m.c)([s.a],e.prototype,"OnMouseMove",null),Object(m.c)([s.a],e.prototype,"OnMouseUp",null),Object(m.c)([o.k],e.prototype,"SetVolumeWithCoord",null),e=Object(m.c)([i.a],e)}(S.Component);function jr(e){var t=e.startPos,r=e.endPos,n="",i=1;return t<0&&(i=(r-t)/10,t=0,n=" hideFront"),S.createElement("div",{className:"STV_timelineSegment"+n,style:{left:t+"%",width:r-t+"%",opacity:i},onClick:e.onClick},S.createElement("div",{className:"STV_timelineSegmentFrontFill",style:{borderColor:"rgb("+e.color+")"}}),S.createElement("div",{className:"STV_timelineSegmentLabel",style:{color:"rgb("+e.color+")"}},e.label),S.createElement("div",{className:"STV_timelineSegmentBackFill",style:{borderColor:"rgb("+e.color+")"}}))}var zr=function(r){function e(e){var t=r.call(this,e)||this;return t.m_elSlider=S.createRef(),t.state={nGrabberMouseDownTime:0,bGrabberMouseDown:!1,nHoverValue:void 0,hoverX:0,bStartMouseDown:!1,bEndMouseDown:!1,thumbnailURL:""},t}return Object(m.d)(e,r),e.prototype.OnMouseDown=function(e,t){var r,n=this;this.m_elSlider&&(e.persist(),this.m_rectSlider=this.m_elSlider.current&&this.m_elSlider.current.getBoundingClientRect(),r={},"start"===t?(r={bStartMouseDown:!0},e.stopPropagation()):"end"===t?(r={bEndMouseDown:!0},e.stopPropagation()):r={bGrabberMouseDown:!0},this.setState(r,function(){return n.AdjustSliderForClientX(e.clientX)}),this.m_elSlider.current.ownerDocument.defaultView.addEventListener("mousemove",this.OnMouseMove),this.m_elSlider.current.ownerDocument.defaultView.addEventListener("mouseup",this.OnMouseUp))},e.prototype.OnMouseMove=function(e){this.AdjustSliderForClientX(e.clientX)},e.prototype.OnMouseUp=function(e){this.state.bStartMouseDown?this.setState({bStartMouseDown:!1}):this.state.bEndMouseDown?this.setState({bEndMouseDown:!1}):(this.props.video.Seek(this.state.nGrabberMouseDownTime),this.setState({bGrabberMouseDown:!1,nGrabberMouseDownTime:0})),this.m_elSlider.current&&(this.m_elSlider.current.ownerDocument.defaultView.removeEventListener("mousemove",this.OnMouseMove),this.m_elSlider.current.ownerDocument.defaultView.removeEventListener("mouseup",this.OnMouseUp))},e.prototype.OnKeyDown=function(e){37==e.keyCode?(this.props.video.JumpTime(-15),e.preventDefault()):39==e.keyCode&&(this.props.video.JumpTime(15),e.preventDefault())},e.prototype.AdjustSliderForClientX=function(e){var t,r,n=this.props.video,i=n.GetTimelineStartPos(),a=n.GetTimelineStartPos()+n.GetTimelineDuration(),o=n.GetTimeAtMousePosition(e,this.m_rectSlider,i,a);this.state.bStartMouseDown?(t=At.a(o,i,n.m_editorEndTime-5),n.m_editorStartTime=t):this.state.bEndMouseDown?(r=At.a(o,n.m_editorStartTime+5,a),n.m_editorEndTime=r):o!=this.state.nGrabberMouseDownTime&&this.setState({nGrabberMouseDownTime:o})},e.prototype.OnMouseHoverMove=function(e){this.AdjustHoverForClientX(e.clientX)},e.prototype.OnMouseHoverLeave=function(e){this.setState({hoverX:0})},e.prototype.AdjustHoverForClientX=function(e){var t=this.props.video,r=t.GetTimelineStartPos(),n=t.GetTimelineStartPos()+t.GetTimelineDuration();this.m_rectSlider=this.m_elSlider.current&&this.m_elSlider.current.getBoundingClientRect();t.GetTimeAtMousePosition(e,this.m_rectSlider,r,n)},e.prototype.OnSegmentClick=function(e){this.props.video.Seek(e)},e.prototype.OnMarkerMouseEnter=function(e){this.setState({nHoverValue:e})},e.prototype.OnMarkerMouseLeave=function(){this.setState({nHoverValue:void 0})},e.prototype.render=function(){var i=this,a=this.props.video,e=this.state.bGrabberMouseDown,t=a.GetPercentOffsetFromTime(this.state.nGrabberMouseDownTime,Ht.c.Timeline),r=a.GetPercentOffsetFromTime(a.GetPlaybackTime(),Ht.c.Timeline),n=a.GetPercentOffsetFromTime(a.GetVideoAvailableStartTime(),Ht.c.Timeline);n<.05&&(n=0);var o=At.a(t,0,100).toFixed(1)+"%",s=At.a(r,0,100).toFixed(1)+"%",c=At.a(n,0,100).toFixed(1)+"%",u={},l={},d={},m={};e?(m.left=o,u.width=o):m.left=s,l.width=s,d.width=c;var p=Object(qt.d)(a.GetPlaybackTime()),f=Object(qt.d)(this.state.nHoverValue),h="STV_timelineContainer";this.state.bGrabberMouseDown&&(h+=" grabberDown"),a.IsTimelineMapActive()&&(h+=" minimapActive");var b="";100<(t=e?t:r)?b=" grabberOffScreenRight grabberOffscreen":t<0&&(b=" grabberOffScreenLeft grabberOffscreen");var _=[];a.GetTimelineMarkers().forEach(function(e,t){var r=a.GetPercentOffsetFromTime(e.nTime,Ht.c.Timeline);r<0||100<r||_.push(S.createElement(pr,{key:t,pos:r,label:e.strTemplateName,onMouseEnter:i.OnMarkerMouseEnter,onMouseLeave:i.OnMarkerMouseLeave}))});var y=[];a.GetTimelineSegments().forEach(function(t,e){var r,n=a.GetPercentOffsetFromTime(t.nTimeStart,Ht.c.Timeline);100<n||((r=a.GetPercentOffsetFromTime(t.nTimeEnd,Ht.c.Timeline))<0||y.push(S.createElement(jr,{key:e,startPos:n,endPos:r,label:t.strTemplateName,color:t.color,onClick:function(e){return i.OnSegmentClick(t.nTimeStart)}})))});var B=a.GetPercentOffsetFromTime(a.m_editorStartTime,Ht.c.Timeline),g=a.GetPercentOffsetFromTime(a.m_editorEndTime,Ht.c.Timeline),v=this.props.bIncludeClipEditor?[S.createElement(pr,{key:"start",pos:B,label:Object(be.d)("#DASHPlayerControls_Start"),onMouseEnter:this.OnMarkerMouseEnter,onMouseLeave:this.OnMarkerMouseLeave,onMouseDown:function(e){return i.OnMouseDown(e,"start")}}),S.createElement(pr,{key:"end",pos:g,label:Object(be.d)("#DASHPlayerControls_End"),onMouseEnter:this.OnMarkerMouseEnter,onMouseLeave:this.OnMarkerMouseLeave,onMouseDown:function(e){return i.OnMouseDown(e,"end")}})]:[];return S.createElement("div",{className:"videoTimelineMain",tabIndex:0,onKeyDown:this.OnKeyDown},S.createElement("div",{className:h},S.createElement("div",{className:"DialogLabel"},p),S.createElement("div",{className:"STV_timelineSegmentsContainer"},y),S.createElement("div",{onMouseDown:this.OnMouseDown,onMouseMove:this.OnMouseHoverMove,onMouseLeave:this.OnMouseHoverLeave,ref:this.m_elSlider},S.createElement("div",{className:"VideoTimelineSlider"},S.createElement("div",{className:"STV_timelineValue",style:u}),S.createElement("div",{className:"STV_timelineGhostValue",style:l}),S.createElement("div",{className:"STV_timelineNoVideo",style:d}),_,v,Boolean(this.state.hoverX)&&S.createElement("div",{key:"grabbertime",style:{position:"absolute",left:this.state.hoverX-75,bottom:"30px"}},S.createElement("div",{style:{position:"relative",display:"flex",justifyContent:"center"}},this.state.thumbnailURL&&S.createElement("img",{style:{width:"150px"},src:this.state.thumbnailURL}),S.createElement("span",{className:"STV_timelineGrabberValue",style:{position:"absolute",bottom:"4px"}},f))),S.createElement("div",{className:"STV_timelineGrabber_Wrapper",style:m},S.createElement("div",{className:"STV_timelineGrabber"+b},S.createElement("div",{className:"STV_timelineGrabberArrow"},S.createElement(kt.N,null))))))))},Object(m.c)([s.a],e.prototype,"OnMouseDown",null),Object(m.c)([s.a],e.prototype,"OnMouseMove",null),Object(m.c)([s.a],e.prototype,"OnMouseUp",null),Object(m.c)([s.a],e.prototype,"OnKeyDown",null),Object(m.c)([s.a],e.prototype,"OnMouseHoverMove",null),Object(m.c)([s.a],e.prototype,"OnMouseHoverLeave",null),Object(m.c)([s.a],e.prototype,"AdjustHoverForClientX",null),Object(m.c)([s.a],e.prototype,"OnSegmentClick",null),Object(m.c)([s.a],e.prototype,"OnMarkerMouseEnter",null),Object(m.c)([s.a],e.prototype,"OnMarkerMouseLeave",null),e=Object(m.c)([i.a],e)}(S.Component),Tr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={info:null},e}return Object(m.d)(e,t),e.getDerivedStateFromProps=function(e,t){if((!t.info||t.info.m_steamIDBroadcast!==e.steamID)&&(t.info&&(Ht.a.StopInfo(t.info),t.info=null),e.steamID))return{info:Ht.a.StartInfo(e.steamID)};return null},e.prototype.componentWillUnmount=function(){this.state.info&&Ht.a.StopInfo(this.state.info)},e.prototype.RenderStreamSwitcher=function(){var e=this.props.steamID;return Yt.a.stream[e]?S.createElement(Fr,{value:e,options:Yt.a.stream,onChange:this.props.onLocalStreamChange}):null},e.prototype.render=function(){var t=this,e=this.state.info;if(!e)return null;var r="";e.m_nViewerCount&&(r=e.m_nViewerCount.toLocaleString(be.c.GetPreferredLocales()));var n=Yt.a.bValid&&Yt.a.stream&&Yt.a.stream[e.m_steamIDBroadcast],i=!this.props.bHideThumbnail&&this.props.bVerticalBroadcastChat&&(0<parseInt(e.m_strAppId)||n);return S.createElement("div",{className:"BroadcastDetails"},!this.props.bHideThumbnail&&S.createElement(tr,{className:"broadcastDetailsThumbBlur",src:e.m_strThumbnailUrl,draggable:!1,duration:2500}),S.createElement("div",{className:"BroadcastDetailsHeader"},e&&e.m_strAppTitle&&S.createElement("div",{className:"displayColumn"},S.createElement("div",{className:"Info"},S.createElement("span",{className:"AppTitle"},e.m_strAppTitle),e.m_strTitle&&S.createElement("span",{className:"BroadcastTitle"}," - ",e.m_strTitle),this.props.onLocalStreamChange&&this.RenderStreamSwitcher()),r&&S.createElement("div",{className:"BroadcastDetailsHeader_ViewerCount"},S.createElement(kt.Y,null),Object(be.d)("#Broadcast_ViewerCount",r))),n&&this.props.onOpenLinkInNewWindow&&S.createElement("div",{className:"Actions"},S.createElement("div",{onClick:function(e){return t.props.onOpenLinkInNewWindow(e,Yt.a.link)},className:"BroadcastLink"},Yt.a.linkName))),i&&S.createElement(rr.g,{id:Yt.a.bValid&&Yt.a.stream&&Yt.a.stream[e.m_steamIDBroadcast]?Yt.a.appID:parseInt(e.m_strAppId)}))},e=Object(m.c)([i.a],e)}(S.Component),Fr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.d)(t,e),t.prototype.showContextMenu=function(e){var t=this.props,r=t.options,n=t.value,i=t.onChange,a=Object.keys(r).map(function(e){return S.createElement(zt.b,{key:e,onSelected:function(){return i(e)},bChecked:e===n},Object(be.d)(r[e]))});Object(jt.a)(S.createElement(zt.c,null,a),e)},t.prototype.render=function(){var e=this.props,t=e.value,r=e.options[t];return S.createElement("div",{className:"BroadcastLanguage",onClick:this.showContextMenu},S.createElement("span",null," - ",Object(be.d)(r)),S.createElement("div",{className:"ContextMenuButton"},S.createElement(kt.s,null)))},Object(m.c)([s.a],t.prototype,"showContextMenu",null),t}(S.Component),Er=function(r){function e(e){var t=r.call(this,e)||this;return t.state={sizableRegion:[]},t}return Object(m.d)(e,r),e.prototype.AddLinkRegion=function(){return Object(m.b)(this,void 0,void 0,function(){var t,r=this;return Object(m.e)(this,function(e){return t=this.state.sizableRegion.length,this.state.sizableRegion.push({xPosPct:2.5+t,yPosPct:2.5+t,widthPct:20,heightPct:15}),this.setState({sizableRegion:this.state.sizableRegion},function(){return r.OnSaveRegions()}),[2]})})},e.prototype.componentDidUpdate=function(e){var r=this;0==e.linkRegions.length&&this.props.linkRegions.forEach(function(e,t){r.LoadLinkRegion(e,t)})},e.prototype.LoadLinkRegion=function(t,e){return Object(m.b)(this,void 0,void 0,function(){return Object(m.e)(this,function(e){switch(e.label){case 0:return this.state.sizableRegion.length,this.state.sizableRegion.push({xPosPct:t.left,yPosPct:t.top,widthPct:t.width,heightPct:t.height,link_url:t.url,link_description:t.link_description,link_index:t.link_index}),[4,this.setState({sizableRegion:this.state.sizableRegion})];case 1:return e.sent(),[2]}})})},e.prototype.OnSaveRegions=function(){for(var e={links:[]},t=0;t<this.state.sizableRegion.length;t++){var r={left:Math.floor(100*this.state.sizableRegion[t].xPosPct),top:Math.floor(100*this.state.sizableRegion[t].yPosPct),width:Math.floor(100*this.state.sizableRegion[t].widthPct),height:Math.floor(100*this.state.sizableRegion[t].heightPct),url:this.state.sizableRegion[t].link_url,link_description:this.state.sizableRegion[t].link_description,link_index:t};e.links.push(r)}this.props.onSaveLinkRegions(e)},e.prototype.DeleteRegion=function(r){return Object(m.b)(this,void 0,void 0,function(){var t=this;return Object(m.e)(this,function(e){return this.state.sizableRegion.splice(r,1),console.log("keys: ",this.state.sizableRegion.keys),this.setState({sizableRegion:this.state.sizableRegion},function(){return t.OnSaveRegions()}),[2]})})},e.prototype.UpdatePanel=function(r,n){return Object(m.b)(this,void 0,void 0,function(){var t=this;return Object(m.e)(this,function(e){return this.state.sizableRegion[r]=n,this.setState({sizableRegion:this.state.sizableRegion},function(){return t.OnSaveRegions()}),[2]})})},e.prototype.render=function(){var r=this;return S.createElement("div",{className:"LinkOverlayContainer"},S.createElement("div",{className:"LinkOverlayValidRegion"},!this.props.editMode&&this.props.linkRegions?this.props.linkRegions.map(function(e){return S.createElement("a",{key:e.link_index,href:(_e.c.IN_CLIENT?"steam://openurl_external/":"")+_e.c.STEAMTV_BASE_URL+"linkfilter/"+e.url,target:"_blank",rel:"noopener noreferrer"},S.createElement("div",{className:"LinkRegion",style:{left:e.left+"%",top:e.top+"%",width:e.width+"%",height:e.height+"%"}},S.createElement("div",{className:"LinkRegionText"},e.link_description," ")))}):null,this.props.editMode&&this.state.sizableRegion.map(function(e,t){return S.createElement(fr,{key:100*t+e.xPosPct,index:t,deleteFn:r.DeleteRegion,updateFn:r.UpdatePanel,xPosPct:e.xPosPct,yPosPct:e.yPosPct,widthPct:e.widthPct,heightPct:e.heightPct,link_url:e.link_url,link_description:e.link_description})}),this.props.editMode&&S.createElement("div",{className:"AddLinkRegion",onClick:this.AddLinkRegion},Object(be.d)("#SteamTV_AddLinkRegion"))),S.createElement("div",{className:"LinkOverlayInvalidRegion"},S.createElement("div",null,Object(be.d)("#SteamTV_LinkRegionReserved"))))},Object(m.c)([s.a],e.prototype,"AddLinkRegion",null),Object(m.c)([s.a],e.prototype,"LoadLinkRegion",null),Object(m.c)([s.a],e.prototype,"OnSaveRegions",null),Object(m.c)([s.a],e.prototype,"DeleteRegion",null),Object(m.c)([s.a],e.prototype,"UpdatePanel",null),e=Object(m.c)([i.a],e)}(S.Component),Pr=r("ZeAL"),Nr=r("5eAM"),kr=r("6Aav"),Wr=r("NKJh"),Ir=r("dLk7"),Dr=r.n(Ir),Ur=r("RQmk"),Lr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={bLoading:r.BNeedToLoad(e.props.appid)},e.m_cancelSignal=p.a.CancelToken.source(),e}var r;return Object(m.d)(e,t),(r=e).BNeedToLoad=function(e){return!Nr.a.BHasAppLinkLoaded(e)||!kr.a.Get().BHasShortDesc(e)},e.prototype.componentDidMount=function(){this.DoLoadApp()},e.prototype.componentDidUpdate=function(e){e.appid!=this.props.appid&&r.BNeedToLoad(this.props.appid)&&this.setState({bLoading:!0},this.DoLoadApp)},e.prototype.DoLoadApp=function(){return Object(m.b)(this,void 0,void 0,function(){var t;return Object(m.e)(this,function(e){switch(e.label){case 0:return this.state.bLoading?(t=this.props.appid,[4,Nr.a.LoadAppLinkInfo([t])]):[3,3];case 1:return e.sent(),[4,kr.a.Get().LoadShortDesc(t,this.m_cancelSignal)];case 2:e.sent(),this.m_cancelSignal.token.reason||this.setState({bLoading:!1}),e.label=3;case 3:return[2]}})})},e.prototype.componentWillUnmount=function(){this.m_cancelSignal.cancel("BroadcastAppPreviewWidget to unload")},e.prototype.render=function(){var e=Dr.a.StoreSaleWidgetContainer_mini,t=Dr.a.StoreSaleWidgetImage_mini,r=Dr.a.StoreSaleImage_mini,n=Dr.a.StoreSaleWidgetShortDesc_mini;if(this.state.bLoading)return S.createElement("div",{className:e},S.createElement(ir.a,{size:"medium"}),";");var i=this.props.appid,a=Nr.a.GetAppLinkInfo(i),o=kr.a.Get().GetShortDesc(i)||"";return a&&a.title?S.createElement("div",{className:e},S.createElement("div",{className:Wr.Actions},S.createElement("a",{href:a.capsule_link,target:_e.c.IN_CLIENT?void 0:"_blank"},S.createElement(Ur.b,{type:"app",id:a.appid},S.createElement("div",{className:t},S.createElement("img",{className:r,src:a.capsule}))))),S.createElement("div",{className:Wr.StoreSaleBroadcastWidgetRight},S.createElement("div",{className:Wr.Actions},S.createElement("a",{href:a.capsule_link,target:_e.c.IN_CLIENT?void 0:"_blank"},S.createElement(Ur.b,{type:"app",id:a.appid},S.createElement("div",{className:Object(Qt.a)(Wr.StoreSaleWidgetTitle,"StoreSaleWidgetTitle")},a.title)))),S.createElement("div",{className:Wr.StoreSaleWidgetRelease},a.release),S.createElement("div",{className:n},Object(Pr.c)(o)),S.createElement(rr.h,{info:a,demoAppID:this.props.bShowDemoOptions?a.appid:null}))):S.createElement("div",{className:Wr.StoreSaleWidgetEmptyContainer})},e=r=Object(m.c)([i.a],e)}(S.Component),xr=r("kyHq"),Vr=r("nWbB"),Gr=r("uIWk"),Ar=r("d+Me"),Hr=r("HWOl"),qr=r.n(Hr),Kr=r("rKv1"),Xr=r.n(Kr),Jr={list:[{appid:444090,url:"https://steam.tv/paladins"},{appid:386360,url:"https://steam.tv/smite"},{appid:813820,url:"https://steam.tv/realmroyale"},{appid:583950,url:"https://steam.tv/artifact",broadcasterAccountID:912972716},{appid:570,url:"https://steam.tv/dota",broadcasterAccountID:238221269},{appid:1025790,url:"https://steam.tv/steamawards",broadcasterAccountID:934427243},{appid:730,url:"https://steam.tv/csgo",broadcasterAccountID:927819071}]},Yr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.m_cancelSignal=p.a.CancelToken.source(),e.state={bShowPopoutHeader:!1,bExpanded:!1,bLoadingPreference:!0,style:{maxHeight:"0vh",overflow:"hidden",transition:"max-height 1s ease-in-out"},innerStyle:{maxHeight:"0vh",overflow:"hidden",transition:"max-height 1s ease-in-out"},bStartMuted:!0},e.m_bIsCreatorHomeNeeded=!1,e}return Object(m.d)(e,t),e.prototype.componentDidMount=function(){return Object(m.b)(this,void 0,void 0,function(){var t=this;return Object(m.e)(this,function(e){switch(e.label){case 0:return[4,Vr.c.LoadBIsEmbeddedBroadcastHidden(this.m_cancelSignal)];case 1:return e.sent(),this.m_cancelSignal.token.reason||this.setState({bLoadingPreference:!1,bExpanded:!Vr.c.BIsEmbeddedBroadcastHidden(),innerStyle:Object(m.a)(Object(m.a)({},this.state.innerStyle),{maxHeight:Vr.c.BIsEmbeddedBroadcastHidden()?"0vh":"100vh"})}),this.m_bIsCreatorHomeNeeded=Boolean(_e.b.IS_CREATOR_HOME&&this.props.event&&this.props.event.jsondata&&this.props.event.jsondata.broadcast_item_drops_enabled),this.m_bIsCreatorHomeNeeded&&Gr.a.LoadCreatorHome(this.props.event.clanSteamID,this.m_cancelSignal),[4,this.props.bIsPreview&&this.props.accountIDs?Vr.c.HintLoadEmbeddablePreviewStreams(this.props):Vr.c.HintLoadEmbeddableStreams(this.props)];case 2:return e.sent(),window.setTimeout(function(){return t.setState({style:Object(m.a)(Object(m.a)({},t.state.style),{maxHeight:"100vh"})})},10),[2]}})})},e.prototype.componentWillUnmount=function(){this.m_cancelSignal.cancel("BroadcastEmbeddable component unmounted")},e.prototype.ToggleBroadcastExpandShrink=function(){var e=this,t=Vr.c.GetPlayReadyStream();Object(Vr.b)(t.appid,this.state.bExpanded?2:3,t.snr);var r=this.state.bExpanded;window.setTimeout(function(){return e.setState({innerStyle:Object(m.a)(Object(m.a)({},e.state.innerStyle),{maxHeight:r?"0vh":"100vh"})})},10),r||this.setState({bExpanded:!this.state.bExpanded})},e.prototype.OnShrinkTransitionEnd=function(){"0vh"===this.state.innerStyle.maxHeight&&this.setState({bExpanded:!1})},e.prototype.onStreamSelect=function(t){return Object(m.b)(this,void 0,void 0,function(){return Object(m.e)(this,function(e){switch(e.label){case 0:return this.setState({bStartMuted:!1}),Vr.c.GetPlayReadyStream().accountid==t.accountid?[3,2]:[4,Vr.c.AttemptToPlayStream(t)];case 1:e.sent(),e.label=2;case 2:return[2]}})})},e.prototype.ConstructSidePanels=function(e,t){var r={leftPanel:null,rightPanel:null},n=1<Vr.c.GetConcurrentStreams(),i=S.createElement(Qr,{key:"right"+e.appid,ImgUrl:e.right_panel}),a=S.createElement(Qr,{key:"left"+e.appid,ImgUrl:e.left_panel});return!((this.props.promotionName||this.props.bIsPreview||this.props.subid||this.props.bundleid)&&10<e.appid)||this.props.event&&this.props.event.jsondata.broadcast_force_banner||(i=S.createElement(Lr,{key:"mini"+e.accountid,appid:e.appid,bShowDemoOptions:this.props.bShowDemoOptions})),n&&!t?(r.leftPanel=S.createElement(tn,{key:"selector"+e.appid,curStream:e,onStreamSelect:this.onStreamSelect,fnFilterStreams:this.props.fnFilterStreams,bShowCapsuleArt:this.props.bShowCapsuleArt}),r.rightPanel=i):t?(r.leftPanel=S.createElement("div",null),r.rightPanel=S.createElement(nn,{stream:e,orientation:"rightside"})):(r.leftPanel=a,r.rightPanel=i),r},e.prototype.render=function(){if(this.state.bLoadingPreference)return null;var e=Vr.c.GetPlayReadyStream();if(e){var t="show"===Vr.c.GetChatVisibility(),r=this.props,n=r.event,i=r.language;r.fnRenderBroadcastContext;n&&(e=Object(m.a)(Object(m.a)({},e),{left_panel:n.GetImageURL("broadcast_left",i||Object(xr.g)(_e.c.LANGUAGE)),right_panel:n.GetImageURL("broadcast_right",i||Object(xr.g)(_e.c.LANGUAGE)),store_title:n.GetBroadcastTitle(i||Object(xr.g)(_e.c.LANGUAGE)),chat_visibility:n.GetBroadcastChatVisibility()}));var a=null;this.m_bIsCreatorHomeNeeded&&(a=Gr.a.GetCreatorHome(n.clanSteamID));var o=this.ConstructSidePanels(e,t),s=e.store_title?e.store_title:e.title,c="radial-gradient(100% 80% at 64% 95%, "+(n&&n.jsondata&&n.jsondata.broadcast_gradient_inner_color||"rgba(108, 119, 134, 0.4)")+" 40%, "+(n&&n.jsondata&&n.jsondata.broadcast_gradient_outer_color||"rgba(83, 104, 104, 0.4)")+" 100%)";return S.createElement(S.Fragment,null,S.createElement("div",{style:this.state.style},S.createElement("div",{style:{background:c},className:Xr.a.bordered_container+" "+(n?Xr.a.Event:"")},S.createElement("div",{className:Xr.a.bordered_title},S.createElement(rr.c,null),s,S.createElement("div",{className:Xr.a.bordered_corner_container},!this.state.bExpanded&&S.createElement("div",{className:Xr.a.broadcast_settings_icon,"data-tooltip-text":Object(be.d)("#StoreBroadcast_Change_store_Broadcast_settings"),onClick:function(){return window.open(_e.c.STORE_BASE_URL+"account/preferences/#store_broadcast_settings")}}),S.createElement("div",{className:this.state.bExpanded?Xr.a.bordered_corner_expanded:Xr.a.bordered_corner_shrinked,"data-tooltip-text":Object(be.d)("#StoreBroadcast_Hide_Tooltip"),onClick:this.ToggleBroadcastExpandShrink})),Boolean(e.gamedata_subtitle)&&S.createElement("div",{className:Xr.a.bordered_subtitle},e.gamedata_subtitle)),this.state.bExpanded&&S.createElement("div",{className:Xr.a.container,style:Object(m.a)({},this.state.innerStyle),onTransitionEnd:this.OnShrinkTransitionEnd},o.leftPanel,S.createElement($r,{stream:e,bStartMuted:this.state.bStartMuted,fnRenderBroadcastContext:this.props.fnRenderBroadcastContext}),o.rightPanel)),Boolean(n&&n.jsondata&&n.jsondata.broadcast_item_drops_enabled)&&S.createElement("div",{className:Xr.a.item_drop_ctn},S.createElement("div",null,Object(be.d)(a&&a.BIsLoaded()&&0<a.GetName().length?n.jsondata.broadcast_item_drops_min_watch_time_minutes%60==0?"#SalePage_WatchForDrop_Hours_CreatorNamed":"#SalePage_WatchForDrop_Minutes_CreatorNamed":n.jsondata.broadcast_item_drops_min_watch_time_minutes%60==0?"#SalePage_WatchForDrop_Hours_Developer":"#SalePage_WatchForDrop_Minutes_Developer",n.jsondata.broadcast_item_drops_min_watch_time_minutes%60==0?n.jsondata.broadcast_item_drops_min_watch_time_minutes/60:n.jsondata.broadcast_item_drops_min_watch_time_minutes,a&&a.BIsLoaded()?a.GetName():""),Boolean(n.jsondata.broadcast_item_drops_details_clan_accountid)&&S.createElement("a",{href:_e.c.COMMUNITY_BASE_URL+"gid/"+n.jsondata.broadcast_item_drops_details_clan_accountid+"/partnerevents/view/"+n.jsondata.broadcast_item_drops_details_event_gid,target:_e.c.IN_CLIENT?"":"_blank"},Object(be.d)("#SalePage_WatchForDrop_LearnMore")))),this.state.bExpanded&&S.createElement(Zr,{stream:e}),S.createElement("div",{className:Xr.a.clear_div})))}return S.createElement("div",{className:"NoBroadcastAvailable"})},Object(m.c)([s.a],e.prototype,"ToggleBroadcastExpandShrink",null),Object(m.c)([s.a],e.prototype,"OnShrinkTransitionEnd",null),Object(m.c)([s.a],e.prototype,"onStreamSelect",null),e=Object(m.c)([i.a],e)}(S.Component),$r=(t.default=Yr,function(r){function e(e){var t=r.call(this,e)||this;return t.m_iVideoContainerRef=S.createRef(),t.state={bPopout:!1,bPreventPopup:window.screen.width<=768},t}return Object(m.d)(e,r),e.prototype.CloseBroadcastPopup=function(){var e=Vr.c.GetPlayReadyStream();Object(Vr.b)(e.appid,7,e.snr),this.setState({bPopout:!1,bPreventPopup:!0})},e.prototype.OnEnter=function(){!this.state.bPreventPopup&&this.state.bPopout&&this.setState({bPopout:!1})},e.prototype.OnLeave=function(){this.state.bPreventPopup||this.state.bPopout||this.setState({bPopout:!0})},e.prototype.render=function(){return S.createElement("div",{className:Xr.a.wrapper},S.createElement(Ar.a,{onEnter:this.OnEnter,onLeave:this.OnLeave},S.createElement("div",{className:Xr.a.video_placeholder,ref:this.m_iVideoContainerRef},S.createElement("div",{className:this.state.bPopout?Xr.a.broadcast_floating:Xr.a.video_container},this.state.bPopout&&S.createElement(en,{stream:this.props.stream,OnPreventPopup:this.CloseBroadcastPopup}),S.createElement("div",{className:Xr.a.BroadcastPlayerContainer},S.createElement(_r,{steamIDBroadcast:this.props.stream.steamid,watchLocation:6,bStartMuted:this.props.bStartMuted,fnRenderBroadcastContext:this.props.fnRenderBroadcastContext}))))))},Object(m.c)([s.a],e.prototype,"CloseBroadcastPopup",null),Object(m.c)([s.a],e.prototype,"OnEnter",null),Object(m.c)([s.a],e.prototype,"OnLeave",null),e}(S.Component)),Zr=function(t){function e(e){return t.call(this,e)||this}return Object(m.d)(e,t),e.prototype.ConstructBroadcastLink=function(){var t=this.props.stream,e=Jr.list.find(function(e){return e.appid==t.appid&&(!e.broadcasterAccountID||e.broadcasterAccountID==t.accountid)});if(e){var r=e.url;return(_e.c.IN_CLIENT||0<=navigator.userAgent.indexOf("Valve Steam Client")||0<=navigator.userAgent.indexOf("Valve Steam GameOverlay")||0<=navigator.userAgent.indexOf("Valve Steam Tenfoot"))&&(r="steam://openurl/"+r),S.createElement("a",{href:r},Object(be.d)("#Broadcast_Embed_Watch_With_Frieds_SteamTV"))}var n=this.props.stream.steamid,i=_e.c.COMMUNITY_BASE_URL+"broadcast/watch/"+n;return S.createElement("a",{href:i},Object(be.d)("#BroadcastWatch_View_Broadcast_Page"))},e.prototype.OnToggleChat=function(e){e.preventDefault();var t=Vr.c.GetPlayReadyStream();Object(Vr.b)(t.appid,"show"===Vr.c.GetChatVisibility()?5:4,t.snr),Vr.c.ToggleChatVisibility()},e.prototype.onWatchBroadcastPage=function(){var e=Vr.c.GetPlayReadyStream();Object(Vr.b)(e.appid,9,e.snr)},e.prototype.render=function(){var e=this.ConstructBroadcastLink(),t="remove"!=Vr.c.GetChatVisibility(),r=Number.parseInt(""+Ht.a.GetOrCreateBroadcastInfo(this.props.stream.steamid).m_nViewerCount);return S.createElement("div",{className:Xr.a.viewer_bar},S.createElement("div",{className:Xr.a.viewer_count},r.toLocaleString(be.c.GetPreferredLocales())),S.createElement("div",{className:Xr.a.viewer_links},t&&S.createElement("a",{href:"#",className:Xr.a.ChatToggle,onClick:this.OnToggleChat},Object(be.d)("hide"===Vr.c.GetChatVisibility()?"#sale_three_section_show_chat":"#sale_three_section_hide_chat")),t&&S.createElement("span",{className:Xr.a.ChatToggle}," | "),S.createElement("a",{href:_e.c.STORE_BASE_URL+"account/preferences/#store_broadcast_settings",target:_e.c.IN_CLIENT?void 0:"_blank"},Object(be.d)("#StoreBroadcast_Change_store_Broadcast_settings"))," | ",e))},Object(m.c)([s.a],e.prototype,"OnToggleChat",null),Object(m.c)([s.a],e.prototype,"onWatchBroadcastPage",null),e=Object(m.c)([i.a],e)}(S.Component),Qr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.d)(t,e),t.prototype.render=function(){var e=this.props.ImgUrl;return S.createElement(S.Fragment,null,e&&S.createElement("img",{className:Xr.a.side_panels,src:this.props.ImgUrl}),!e&&S.createElement("div",{className:Xr.a.side_panels}))},t}(S.Component),en=function(r){function e(e){var t=r.call(this,e)||this;return t.state={},t}return Object(m.d)(e,r),e.prototype.render=function(){var e=this.props.stream,t=e.app_link?S.createElement(Ur.a,{type:"app",id:e.appid,strURL:e.app_link,className:Xr.a.PopOutVideoTitleText},Object(be.d)("#StoreBroadcast_Detault_popout_Title")):S.createElement("div",{className:Xr.a.PopOutVideoTitleText},Object(be.d)("#StoreBroadcast_Detault_popout_Title"));return S.createElement("div",{className:[Xr.a.PopOutVideoTitleBar,Xr.a.NoSeslect].join(" ")},t,S.createElement("button",{className:[Xr.a.PopOutVideoCloseButton,"btnv6_blue_hoverfade"].join(" "),"data-tooltip-text":Object(be.d)("#StoreBroadcast_close_broadcast_popup"),onClick:this.props.OnPreventPopup},S.createElement("img",{src:qr.a,alt:"x"})))},e=Object(m.c)([i.a],e)}(S.Component),tn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.itemRef=S.createRef(),e}return Object(m.d)(e,t),e.prototype.GetFilteredStreamList=function(){var t=this,e=Vr.c.GetStreams().filter(function(e){return!t.props.fnFilterStreams||t.props.fnFilterStreams(e)});return e.sort(function(e,t){return e.is_featured!=t.is_featured?e.is_featured?-1:1:e.viewer_count!=t.viewer_count?t.viewer_count-e.viewer_count:t.accountid-e.accountid}),e},e.prototype.componentDidMount=function(){var e,t=this;this.itemRef&&this.itemRef.current&&(e=this.GetFilteredStreamList().findIndex(function(e){return t.props.curStream.accountid==e.accountid}),this.itemRef.current.scrollTop=90*e)},e.prototype.render=function(){var t=this,e=this.GetFilteredStreamList(),r=e.map(function(e){return S.createElement(rn,{key:e.accountid,stream:e,bSelected:t.props.curStream.accountid==e.accountid,onStreamSelect:t.props.onStreamSelect,bShowCapsuleArt:t.props.bShowCapsuleArt})});return S.createElement("div",{ref:this.itemRef,className:Object(Qt.a)(Xr.a.side_panels,Xr.a.multistream,3<e.length?Xr.a.scrollingstreams:"")},r)},e}(S.Component),rn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.d)(t,e),t.prototype.onClick=function(){this.props.onStreamSelect&&this.props.onStreamSelect(this.props.stream)},t.prototype.generateThumbnail=function(){var e=this.props,t=e.stream,r=e.bShowCapsuleArt,n=this.props.bSelected?Xr.a.stream_icon_selected:Xr.a.stream_icon;return r&&t.appid&&t.app_capsule_image?S.createElement(S.Fragment,null,S.createElement("img",{className:Object(Qt.a)(n,Xr.a.stream_icon_hide_on_hover),src:t.app_capsule_image}),S.createElement("img",{className:Object(Qt.a)(n,Xr.a.stream_icon_show_on_hover),src:t.thumbnail_http_address})):S.createElement("img",{className:n,src:t.thumbnail_http_address})},t.prototype.render=function(){var e=this.props.stream;if(!Object(Vr.a)(e))return null;var t=Number.parseInt(""+e.viewer_count);return S.createElement("div",{className:Object(Qt.a)(Xr.a.stream_icon_and_viewer_container,e.is_featured&&Xr.a.stream_featured)},S.createElement(Ur.b,{type:"app",id:e.appid},S.createElement("div",{className:Xr.a.stream_icon_container,onClick:this.onClick},this.generateThumbnail(),this.props.bSelected&&S.createElement("div",{className:Xr.a.stream_icon_arrow}))),S.createElement("div",{className:Xr.a.viewer_count},t.toLocaleString(be.c.GetPreferredLocales())))},Object(m.c)([s.a],t.prototype,"onClick",null),t=Object(m.c)([i.a],t)}(S.Component),nn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.d)(t,e),t.prototype.render=function(){var e="below"==this.props.orientation,t=Ht.a.GetBroadcast(this.props.stream.steamid);return t?S.createElement("div",{className:e?Xr.a.chat_below_container:Xr.a.chat_rightside_container},S.createElement("div",{className:Xr.a.ChatContainer},S.createElement(Vt,{emoticonStore:Vr.d,watchLocation:6,steamID:this.props.stream.steamid,broadcastID:t.m_ulBroadcastID}))):null},t=Object(m.c)([i.a],t)}(S.Component)},dLk7:function(e,t,r){e.exports={StoreSaleWidgetContainer_mini:"broadcastwidgets_StoreSaleWidgetContainer_mini_nacWp",Action:"broadcastwidgets_Action_2Xpw9",WishList:"broadcastwidgets_WishList_3mTSE",StoreSaleWidgetImage_mini:"broadcastwidgets_StoreSaleWidgetImage_mini_yvW2h",StoreSaleImage_mini:"broadcastwidgets_StoreSaleImage_mini_1zSsm",StoreSaleWidgetShortDesc_mini:"broadcastwidgets_StoreSaleWidgetShortDesc_mini_2ZkfU"}},iL1l:function(e,t,r){},"q+NH":function(e,t,r){e.exports={BroadcastPlayerLite:"broadcastplayer_BroadcastPlayerLite_SAxf3",BroadcastPlayerLiteVideo:"broadcastplayer_BroadcastPlayerLiteVideo_yCd0z",BroadcastContext:"broadcastplayer_BroadcastContext_3TnYL"}},rKv1:function(e,t,r){e.exports={bordered_container:"broadcast_embeddable_bordered_container_3zXpF",Event:"broadcast_embeddable_Event_1A0NY",item_drop_ctn:"broadcast_embeddable_item_drop_ctn_ifxDf",BorderedContainerPromotion:"broadcast_embeddable_BorderedContainerPromotion_-b_1H",bordered_title:"broadcast_embeddable_bordered_title_Wsfbq",bordered_subtitle:"broadcast_embeddable_bordered_subtitle_3tYei",bordered_corner_container:"broadcast_embeddable_bordered_corner_container_3IBcN",bordered_corner_expanded:"broadcast_embeddable_bordered_corner_expanded_ahz31",bordered_corner_shrinked:"broadcast_embeddable_bordered_corner_shrinked_L8sFY",broadcast_settings_icon:"broadcast_embeddable_broadcast_settings_icon_37ugZ",container:"broadcast_embeddable_container_2yiy6",side_panels:"broadcast_embeddable_side_panels_T_zpR",multistream:"broadcast_embeddable_multistream_1DS-W",wrapper:"broadcast_embeddable_wrapper_1mH-v",video_placeholder:"broadcast_embeddable_video_placeholder_1KU95",video_container:"broadcast_embeddable_video_container_1gbNx",embedded_player:"broadcast_embeddable_embedded_player_12fBJ",viewer_bar:"broadcast_embeddable_viewer_bar_2Ygph",viewer_count:"broadcast_embeddable_viewer_count_1MrTW",viewer_links:"broadcast_embeddable_viewer_links_2EQpO",stream_icon_and_viewer_container:"broadcast_embeddable_stream_icon_and_viewer_container_2sbrG",stream_icon_container:"broadcast_embeddable_stream_icon_container_2zBOi",stream_icon_show_on_hover:"broadcast_embeddable_stream_icon_show_on_hover_29z3N",stream_icon_hide_on_hover:"broadcast_embeddable_stream_icon_hide_on_hover_qYFsG",stream_icon:"broadcast_embeddable_stream_icon_1LBYs",stream_icon_selected:"broadcast_embeddable_stream_icon_selected_mSpze",scrollingstreams:"broadcast_embeddable_scrollingstreams_3aYWl",stream_icon_arrow:"broadcast_embeddable_stream_icon_arrow_2Qpu-",clear_div:"broadcast_embeddable_clear_div_1oCVb",NoSelect:"broadcast_embeddable_NoSelect_3Zm9d",broadcast_floating:"broadcast_embeddable_broadcast_floating_2WNxa",PopOutVideoTitleBar:"broadcast_embeddable_PopOutVideoTitleBar_184SI",PopOutVideoTitleText:"broadcast_embeddable_PopOutVideoTitleText_28O6d",PopOutVideoCloseButton:"broadcast_embeddable_PopOutVideoCloseButton_3bIsS",chat_rightside_container:"broadcast_embeddable_chat_rightside_container_2VPlD",chat_below_container:"broadcast_embeddable_chat_below_container_2Zb4i",BroadcastPlayerContainer:"broadcast_embeddable_BroadcastPlayerContainer_3VvcX",ChatContainer:"broadcast_embeddable_ChatContainer_3kqwu",ChatToggle:"broadcast_embeddable_ChatToggle_1tVam"}}}]);