From c3beb47dfd32bc638b8422c9075da6e469f651ea Mon Sep 17 00:00:00 2001 From: Felipe Leon Date: Thu, 8 Nov 2018 00:37:16 -0200 Subject: [PATCH] Up master.js Signed-off-by: Felipe Leon --- release/githubio/js/master.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release/githubio/js/master.js b/release/githubio/js/master.js index f6a2791a0..a76c3d012 100644 --- a/release/githubio/js/master.js +++ b/release/githubio/js/master.js @@ -1 +1 @@ -var t,a,n,e,i,o,s,d,r,c,l,u,_,f,p,m,h,v,g,y,b,w,k,E,x,I,C,S,T,R,L,O,B,q,M,F,A,H,N,P,z,D,J,U,V,G,X,j,Y,K,W,Z,Q,$,ee,te,ae,ne,ie,oe,se,de,re,ce,le,ue,_e,fe,pe,me,he,ve,ge,ye,be,we,ke,Ee,xe,Ie,Ce,Se,Te,Re,Le,Oe,Be,qe,Me,Fe,Ae,He,Ne,Pe,ze,De,Je,Ue,Ve,Ge,Xe,je,Ye,Ke,We,Ze,Qe,$e,et,tt,at,nt,it,ot,st,dt,rt,ct,lt,ut,_t,ft,pt,mt,ht,vt,gt,yt,bt,wt,kt,Et,xt,It,Ct,St,Tt,Rt,Lt,Ot,Bt,qt,Mt,Ft,At,Ht,Nt,Pt,zt,Dt,Jt,Ut,Vt,Gt,Xt,jt,Yt,Kt,Wt,Zt,Qt,$t,ea,ta,aa,na,ia,oa,sa,da,ra,ca,la,ua,_a,fa,pa,ma,ha,va,ga,ya,ba,wa,ka,Ea,xa,Ia,Ca,Sa,Ta,Ra,La,Oa,Ba,qa,Ma,Fa,Aa,Ha,Na,Pa,za,Da,Ja,Ua,Va,Ga,Xa,ja,Ya,Ka,Wa,Za,Qa,$a,en,tn='
 
 
 
 
 
 
 
 
 
 
𝐦༼ᕕ᛫
stream_info
 
  
',an="fglfgl27@gmail.com",nn="
",on=' ',sn='
',dn='
',rn='
',cn="",ln="",un="",_n="",fn="",pn="",mn="",hn="",vn="",gn="",yn=" ",bn="",wn='
'+yn;function kn(){cn=e+" (C)",ln=a+" (D)",_n=n+" (A)",Ja=Da+" (A)",un=i+" (A)",r+=aa,c+=aa,fn=sn+e+"
"+Re+nn+nn+rn+on+Le+nn+on+Oe+nn+on+Be+nn+on+qe+nn+on+Me+nn+Fe+nn+on+Ae+nn+on+Ne+nn+Pe+nn+on+ze+nn+on+De+nn+on+Je+nn+"
"+nn+sn+ke+"
",pn=sn+wn+we+"
",mn=rn+nn+Ue+nn+Ve+""+nn+sn+Ge+""+an+nn+nn+Xe+nn+je+nn+nn+dn+Ye+""+rn+on+Ke+nn+on+We+nn+on+Ze+nn+on+Qe+nn+on+$e+nn+on+et+nn+sn+ke+"",hn=sn+e+""+sn+Ie+""+rn+on+tt+nn+on+at+nn+on+_t+nn+on+ft+""+sn+Ee+""+rn+on+nt+nn+on+it+nn+on+ot+nn+on+st+sn+xe+""+rn+on+dt+nn+on+rt+nn+on+ct+nn+on+lt+nn+on+ut+sn+ke+"",vn=sn+Ce+""+mt+nn,bn=nn+sn+ht+""+rn+on+vt+nn+nn+sn+bn+""+nn+nn+ke+"",gn=yt+nn+on+bt.replace("link_link",'
http://tiny.cc/twitchkeycode
')+nn+on+wt+nn+on+kt+nn+on+Et+nn+on+xt}function En(){Ru=!1,document.getElementById("side_panel").style.width="17%",t="Refresh and back to top",a="Search",n="Settings",e="Controls",i="About",o="Hide",s="The text you entered is empty.",d="The search result is empty.",r="Switch screen",c="Switch user screen",l="Switch Past Broadcast and Highlight",u="Switch Period (24h, 7d, 30d, all)",_="Go to ",f="User ",p="Live",m="Games",h="Playing ",v=" for ",g="Watching time ",y="Since ",b=" ago",w="A Game",k="Type your search...",E="Type your authentication key...",x="Type your user name...",I="Press Enter or Select key to, ",C="Channels",S="Channel",T="Back to previously screen (Return)",R=" has ended",L="This video is only available to subscribers.",O="Connection failed, unable to load content hit refresh to try again",B="No",q=" for this ",M="Connection failed, unable to load video content exiting...",F=" Past Broadcast",A=" Highlight",H=" Clips",N=" Content",P="Streamed on ",z="Duration ",D=" Views",J=" Viewers",U="Click again to exit!",V="Do you wanna to exit Twitch?",G="Exit",X="Close",j="Minimize",Y="Cancel",K="Not Live | ",W=" Channels Live",Z=" Hosts Live",Q=" Games Live",$=" Followed Channels",ee=" Add User",te=" Remove User",ae="User doesn't exist",ne=" hosting ",ie=" already set",oe="Make First",se=" (First user has it's content on SmartHub Preview, can Sub out side User screen when providing a key)",de="Add a Twitch user to display it's Followed Channels content here",re=" (24h)",ce=" (7d)",le=" (30d)",ue=" (all)",_e="Jumping",fe=" to ",pe="Jump Canceled",me=" , jump time bigger then duration",he=" Sec",ve=" Min",ge=" Hr",ye="Source",be="Version: ",we="Twitch.TV",ke="Press return key to close this.",Ee="Player Related:",xe="Chat Related:",Ie="General Related:",Ce="Update",Se="Current installed version ",Te=" latest available version ",Re="This are the none players related controls, the player can show it's own controls.",Le="Play a video: Navigate using Directional pad (up/down/left/right), Select or Play/Pause keys to start playing",Oe="Refresh screen content: Guide or info (Guide is channel press key on smart remote)",Be="Close the application: from Live screen press return to see the options",qe="Force close the application (in case it freezes or miss behave): Hold return key until it force closes (Works for any application on Samsung TV's)",Me=" Switch screen: Chanel Up (Move to right screen) or Chanel Down (Move to left screen)",Fe="Some screen will change its internal content (channel past broadcast or clips for example) instead of changing to another screen",Ae="Go back to Live from any screen: color button green (B)",He="Reload the app: First go back to Live after press color button green (B)",Ne="Start a search: color button blue (D) or open it from the Side panel",Pe="After setting up the search text press return or click on DONE and use the Directional pad (left/right) to chose the type of search then press Select or Play/Pause, Directional pad (up) goes back to edit the search text",ze="Controls list: color button yellow (C) or open it from the Side panel",De="Side panel: color button red (A)",Je="About this application open it from the Side panel",Ue="This is a unofficial Twitch.Tv application develop by a individual on his free time, for TV's that don't have access to a official application, released for free to any one that wanna to use it.",Ve="On 99% on the updates the app can update it self to add fixes and new featuring, the app will warn the user the day there is a need to update manually by reinstalling it via computer in the case you use a computer to install it.",Ge="Developer information:",Xe="This is an open source applicationlication check it on my github",je="github.com/fgl27/smarttv-twitch",Ye="This application is licensed under the GNU General Public License v3.0, and uses following dependencies:",Ke="Nightdev KapChat - KapChat captures Twitch chat directly into OBS or XSplit (https://www.nightdev.com/kapchat/)",We="Fontastic - Create your customized icon fonts in seconds (http://app.fontastic.me)",Ze="Twemoji - A simple library that provides standard Unicode emoji support across all platforms (https://github.com/twitter/twemoji)",Qe="UglifyJS - is a JavaScript parser, minifier, compressor and beautifier toolkit (https://github.com/mishoo/UglifyJS2)",$e="JS Beautifier - Beautify, unpack or deobfuscate JavaScript and HTML, make JSON/JSONP readable, etc. (https://github.com/beautify-web/js-beautify)",et="JSHint - A Static Code Analysis Tool for JavaScript (https://github.com/jshint/jshint)",tt="Show information panel: Select key if chat is showing or Directional pad (up/down/left/right) if not",at="Close the video: press return (click it twice under 3 seconds, click tree times if information panel or controls is open)",nt="Play/Pause a video: Play or Pause keys",it="Jump Forward/Backwards (not available for live streams): Open the information panel, Press Directional pad (right/left) to change time when satisfied press enter/select, for videos the jump step is crescent more click/hold will make the value to increase (15 seconds up to 30 minutes) stop clicking/releasing the key will restore the step size back to 15s, for clips the jump step is every 5 seconds",ot="Change video quality: Open information panel, , navigate using use Directional pad (left/right), then use Directional pad (up/down) to choose the new quality after press Select key to confirm the change",st="Force refresh a video (in case it freezes): press select key twice, it will change the video quality to the same you are current watching, by opening information panel (first click) after second click will start re-buffering",dt="Show or hide the Chat: Guide or info (Guide is channel press key on smart remote)",rt="Change Chat position (if chat it's showing and info panel is not): Chanel Up or Down",ct="Change Chat size (if chat it's showing and info panel is not): Directional pad (up/down)",lt="Change Chat background brightness (if chat it's showing and info panel is not): Directional pad (left/right)",ut="Force refresh the Chat (in case it freezes or doesn't load): Force refresh the video by pressing select key twice, it will change the video quality to the same you are current watching, by opening information panel (first click) after second click will start re-buffering and the chat will reload it self",_t='Start a search: Open information panel, navigate using use Directional pad (left/right) to "Search" and press select',ft='Open Channel or Game content: Open information panel, navigate using use Directional pad (left/right) to "Channel or Game content" and press select',pt="There is a update available, check it in the app github releases ",bn="Be aware that after the update (reinstall of the app using latest release) all saved users, keys or etc configuration of the app is lost",mt="A update is available, and the app can't self update this version ",ht="Major changes:",vt="Improves how the app runs in the background",gt="Adding a authentication key allows the app to fallow and access subscribed only past broadcast (for channel you are Sub to and block VOD access to none subscribers) for the chosen user, enter the authentication key for user ",yt=" below, fallowing this steps:",bt="Access the site link_link (using a computer or a smart phone)",wt='Click on the "Authorize" button it will take you to main Twitch.TV authentication site',kt="Login to Twitch.TV using the user name you are trying to add a key for",Et="Click on Authorize button of Twitch.TV site if you agree with the requested permissions",xt="The web page will update and show a key code, the key only has lower case letters and nubers.",It=" Add Authentication key",Ct="Key added OK",St="Key test fail, it's needed to add new one",Tt="Key test return OK",Rt="You try to add a key for user ",Lt=" but this key is for user ",Ot=" Following",Bt=" Follow",qt=" And you have not set a authentication key the app can't check yours sub status.",Mt=" And you are not a sub of this channel",Ft=" You are a sub of this channel but the app fail to authenticate contact the developer email in about",At="Fail authentication check with the provider key, please check and try again",Pa="The added key doesn't belong to the user ",Ht="No user",Nt="Set a user and a authentication key to be able to fallow/unfollow",Pt="Restart the",zt=" Clip",Dt="Channel content",Jt="Network is disconnect, the application can't work without INTERNET",Ut="Network connection reestablished",Vt=" Followers",Gt=", Can't fallow or unfallow ",Xt="Game content",jt="Yes",Yt="Are you sure you want to remove the user ",Kt="Press Up to ",Wt="Followed Games",Zt="Change between",Qt=" (Guide or Info)",$t=["Jan","Feb","Mar","Apr","May","June","July","Aug","Sept","Oct","Nov","Dec"],ea=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ta="Started ",aa=" (CH Up/Down)",na="Videos",ia=" Video",oa="Replay",sa="exiting in ",da='press "Return" to exit',ra="Featured",ca="Created at ",la="Open the Broadcast",ua="No Broadcast",_a="There is no Past Broadcast for this clip",fa="And because of that no chat",pa=" is now",ma="Open the Hosting",ha="Player related",va="Buffer size:",ga="A lower value here will make the player to start playing sooner, but it may cause re-buffer with will cause the player to pause to buffer.",ya="Live streams buffer",ba="Videos (Past Broadcast and Highlight) buffer",wa="Clips buffer",ka="General related",Ea="Language",xa="Chat: Connecting to chat history server.."+nn+"Chat: Connected."+nn+"Chat: Joined channel ",Ia="Play from the start or from where you stop watching last time?",Sa=(Ca="From:"+nn)+"Start",Ta="Chat: The Chat has ended!",Ra=": Most recent",La=": Most views",Oa="Set a authentication key to be able to see fallowed videos",Ba="Switch Type (Most recent or views)",qa="Enable",Ma="Disable",Ka="The app was closed wiling playing, restoring playback",Fa="Restore playback",Aa="When changing apps, the app may be closed by the system to free memory. In this case the app saves what it was playing and restores the playback when reopened",Ha="Chat font size",Na="Change the chat lines font size, applies to text and emotes",za="Videos animated thumbnails",Da="Side panel",Ua="Size ",Va="Brightness ",Ga="Forbidden content, this Live must be for Prime only subscribers or lock to Twitch official app only",Xa="Jump step ",ja=" seconds",Ya=" minutes",Wa="Clock offset",Za="Application language",Qa="Content language",$a="All",en="Empty game fro this"}function xn(){Ru=!0,document.getElementById("side_panel").style.width="21.5%",t="Atualizar e voltar pro topo",n="Configurações",a="Pesquisar",e="Controles",i="Sobre",o="Esconder",s="Nenhum texto foi inserido.",r="Trocar de tela",c="Trocar a tela de usuário",l="Transmissões Anteriores/Destaques",u="Período (24h, 7d, 30d, todos)",f="Usuário ",p="Ao Vivo",m="Jogos",h="Jogando ",g="Assistindo há ",y="Desde ",b=" atrás",w="Um jogo",k="Digite sua pesquisa...",E="Digite sua chave de autenticação...",x="Digite seu usuário...",I="Pressione a tecla enter ou selecionar para, ",C="Canais",S="Canal",T="Voltar (retornar)",R=" acabou",O="Não foi possível carregar. Atualize para tentar novamente.",M="Não foi possível carregar o conteúdo do vídeo, pois a conexão falhou, encerrando...",B="Não há",F=" Transmissões Anterior",A=" Destaque",H=" Clipes",N=" Conteúdo",P="Transmitido em ",z="Duração ",D=" Visualizações",J=" Espectadores",U="Pressione novamente para sair!",V="Quer sair do Twitch?",G="Sair",X="Fechar",j="Minimizar",Y="Cancelar",K="Retransmissão | ",W=" Canais Ao Vivo",Z=" Hosts Ao Vivo",Q=" Jogos Ao Vivo",ee=" Adicionar Usuário",te=" Remover Usuário",ae="Usuário inexistente",ne=" hospedando ",ie=" já configurado",oe="Tornar o Principal",se=" (O conteúdo do usuário principal aparece no SmartHub Preview e consegue seguir quando fornece uma chave de acesso)",ue=" (todos)",_e="Avançando",fe=v=" para ",pe="Slato cancelado",me=" , o tempo de salto é maior que a duração",he=" Seg",ve=" Min",ge=" H",ye="Original",be="Versão: ",we="Twitch.TV",ke="Pressione retornar para fechar este.",Ee="Relacionados ao Player:",xe="Relacionados ao Chat:",Ie="Gerais:",Ce="Atualização",Se="Versão Atual instalada ",Te=" última versão disponível ",Re="Estes controles não estão relacionados ao player. O player pode mostrar os seus controles.",Le="Reproduzir um Vídeo: Navegue usando as setas direcionais, pressione PLAY/PAUSE para reproduzir.",Oe="Atualizar Conteúdo: Pressione GUIDE ou INFO.",Be="Fechar: Durante uma transmissão, pressione retornar pra ver as opções",qe="Forçar Encerramento do aplicativo (caso necessário): Pressione retornar até o aplicativo seja encerrado.",Me="Alternar entre Telas: CH Cima (Tela da Direita) ou CH Baixo (Tela da Esquerda).",Fe="Algumas telas irão atualizar o conteúdo (como as Transmissões Anteriores, por exemplo), ao invés de mudarem completamente.",Ae="Voltar para Ao Vivo: Botão Verde (B)",He="Recarregue o aplicativo: Primeiro para a tela Ao Vivo apos pressione o botão verde ou (B)",Ne="Pesquisar: Botão Azul(D) ou a partir do painel lateral",Pe="Após inserir o conteúdo da busca, pressione retornar ou clique em CONCLUÍDO e use as Setas Direcionais (esquerda/direita) para escolher o tipo de busca. Pressione a tecla selecionar ou PLAY/PAUSE para confirmar.",ze="Controles: Botão Amarelo (C) ou a partir do painel lateral",De="Painel lateral: Botão Vermelho (A)",Je="Sobre, abra a partir do painel lateral",Ue="Este é um aplicativo não oficial do Twitch.TV, desenvolvido por um individuo no seu tempo livre, feito para TVs que não possuem uma versão oficial. Seu uso é gratuito.",Ve="Em 99% das vezes, o aplicativo se atualizará sozinho para adicionar correções e novas funções. O aplicativo avisará ao usuário quando houver necessidade de ser atualizado manualmente (através de uma nova instalação pelo computador no caso ter ter usado o computar pra instalar).",Ge="Sobre o Desenvolvedor:",Xe="Este é um aplicativo Open Source. Confira no meu GitHub",je="github.com/fgl27/smarttv-twitch",Ye="Este aplicativo está licenciado sob a Licença Pública GNU v3.0 e usa as seguintes dependências:",tt="Exibir Informações: Pressione a tecla selecionar caso o Chat esteja sendo exibido ou use as Setas Direcionais.",at="Fechar um vídeo: Pressione retornar duas vezes seguidas em menos de três segundos",nt="Pausar/Reproduzir: Pressione PLAY ou PAUSE.",it="Avançar/Retroceder (indisponível para Transmissões Ao Vivo): Abra o painel de informações, pressione Direcional (esquerda/direita) para mudar o tempo, quando satisfeito pressione enter/select, para vídeos o incremento de salto é crescente mais cliques/segurando fará o valor aumentar (15 segundos até 30 minutos) parar de clicar/solte a tecla irá restaurar o tamanho de volta para 15s, para clipes o passo de salto é a cada 5 segundos",ot="Alterar qualidade: Abra o Painel de Informações, use as Setas Direcionais (Cima/Baixo) para escolher a qualidade e pressione a tecla selecionar para alterar.",st="Forçar a atualização de um vídeo: Pressione a tecla selecionar duas vezes. A qualidade do vídeo continuará sendo a mesma, mas após o segundo clique, o vídeo será recarregado.",dt="Exibir/Esconder o Chat: GUIDE ou INFO.",rt="Posição do Chat (Se o chat esta visível): CH Para Cima ou Para Baixo.",ct="Tamanho do Chat (Se o chat esta visível): Setas Direcionais (cima/baixo).",lt="Brilho do Chat (Se o chat esta visível): Setas Direcionais (esquerda/direita).",ut="Forçar atualização do Chat (caso necessário): Pressione a tecla selecionar duas vezes. No primeiro clique, a qualidade continuará a mesma, mas após o segundo, o vídeo e o chat serão recarregados.",_t='Inicie uma pesquisa: abra o painel de informações, navegue usando o botão Direcional (esquerda / direita) para "Pesquisar" e pressione a tecla selecionar',ft='Abra o conteúdo do canal ou jogo: abra o painel de informações, navegue usando o botão direcional (esquerda / direita) para "Conteúdo do canal ou jogo" e pressione a tecla selecionar',pt="Tem um update disponível, verifique este na pagina github releases do aplicativo ",bn="Esteja ciente de que, após a atualização (reinstalação do aplicativo usando a versão mais recente), todos os usuários, chaves ou configuração do aplicativo salvas serão perdidos",mt="Há uma atualização disponível, mas o app não pôde ser atualizado automaticamente ",ht="Mudanças:",vt="Melhora a forma como o aplicativo é executado em segundo plano",gt="Adicionando uma chave de autenticação para um usuário, permite ao aplicativo seguir e assistir a transmissões anteriores reservadas somente para inscritos (Em canais que você é inscrito e bloqueião o conteudo para não inscritos), entre com a chave de autenticação do usuário ",yt=" abaixo seguidos os passos:",bt="Acesse o site link_link (usando um computador ou smart phone)",wt='Clique no botão "Authorize" assim vai abrir o site de autenticação do Twitch.TV',kt="Faço login no Twitch.TV usando o usuário que você esta tentando adicionar a chave",Et="Clique no botão de autorizar no site do Twitch.TV se você esta de acordo com as permissões",xt="A pagina vai atualizar e mostrar a chave de acesso esta só tem letra minuscula e números",It=" Adicione uma chave de autenticação",Ct="Chave adicionada OK",St="O teste da chave falhou, sera necessário adicionar uma nova",Tt="O teste da chave retornou OK",Rt="Você esta tentando adicionar uma chave para o usuário ",Lt=" mas esta é para o usuário ",Ot=$=" Seguindo",Bt=" Seguir",qt=" E você não definiu uma chave de autenticação, o aplicativo não pode verificar se é inscrito.",Mt=" E você não é um inscrito deste canal",Ft=" Você é um inscrito deste canal, mas o aplicativo falha ao tentar autenticar, contate o desenvolvedor através do e-mail no sobre",At="Falhou o teste com a chave do informada, verifique e tente novamente",Pa="A chave adicionada não pertence ao usuário ",Ht="Sem Usuário",Nt="Adicione um usuário e uma chave de autenticação para poder seguir ou deixar de seguir",Pt="Reinicie o",Dt="Conteúdo do canal",Jt="A rede esta desconectada, o aplicativo não funciona sem INTERNET",Ut="Conexão de rede restabelecida",Vt=" Seguidores",Gt=", Não é possível seguir ou deixar de seguir ",Xt="Conteúdo do jogo",jt="Sim",Yt="Tem certeza que deseja remover o usuário ",Kt="Pressione a tecla pra cima para ",Wt="Jogos seguidos",Zt="Troque entre",Qt=" (Guia ou Info)",$t=["Jan","Fev","Mar","Abr","Maio","Jun","Jul","Ago","Set","Out","Nov","Dez"],ea=["Dom","Seg","Terç","Qua","Qui","Sex","Sáb"],ta="Começou ",na="Vídeos",ia=" Vídeo",aa=" (CH Cima/Baixo)",sa="saindo em ",da='pressione "Retornar" para sair',ra="Destaques",ca="Criado em ",la="Abrir a Transmissão",ua="Sem Transmissão",_a="Não ha uma transmissão anterior para este clip",fa="E por isso não tem chat",pa=" esta agora ",ma="Abrir a hospedagem",ha="Relacionado ao player",va="Tamanho de buffer:",ga="Um valor baixo fará com que o video comece a rodar mais rápido, mas pode causar re-buffer o que pausa o video para fazer o buffer",ya="Buffer de transmissão Ao Vivo",ba="Buffer de video transmissão anteriores",wa="Buffer de clips",ka="Gerais",Ea="Linguá",xa="Chat: Conectando ao servidor de histórico do chat.."+nn+"Chat: Conectado."+nn+"Chat: Associado ao canal ",Ia="Rodar a partir o início ou de onde você parou de assistir pela última vez?",Sa=(Ca="A partir:"+nn)+"Do começo",Ta="Chat: O Chat terminou!",Ra=": Mais recente",La=": Mais visto",Oa="Adicione uma chave de autenticação para poder ver vídeos seguidos",Ba="Troque o tipo (Mais recente ou visto)",qa="Ligado",Ma="Desligado",Ka="O aplicativo foi fechado durante a reprodução, restaurando a reprodução",Fa="Restaurar a reprodução",Aa="Ao trocar de aplicativo, o aplicativo pode ser encerrado pelo sistema para liberar memoria. Nesse caso, o aplicativo salva o que estava sendo reproduzido e restaura a reprodução quando reaberto",Ha="Tamanho da fonte do chat",Na="Alterar o tamanho da fonte das linhas do chat, aplica-se a texto e emotes",za="Miniaturas animadas dos vídeos",Da="Painel lateral",Ua="Tamanho ",Va="Brilho ",Ga="Conteúdo proibido, esta Live deve ser apenas para assinantes Prime ou bloqueada para apenas aplicativos oficiais do Twitch",Xa="Passo de pulo ",ja=" segundos",Ya=" Minutos",Wa="Compensação do relógio",Za="Linguá do aplicativo",Qa="Linguá do conteúdo",$a="Todas",en="Jogo vazio para este"}var In=427,Cn=428,Sn=458,Tn=19,Rn=415,Ln=10252,On=457,Bn=37,qn=39,Mn=38,Fn=40,An=13,Hn=403,Nn=404,Pn=405,zn=406,Dn=10009,Jn=8,Un=65385,Vn=65376,Gn=32,Xn=46,jn=0,Yn=5,Kn=1e4,Wn=0,Zn=!1,Qn=!1,$n=!1,ei=!1,ti=!1,ai="",ni="",ii="https://fgl27.github.io/smarttv-twitch/release/githubio/login/twitch.html",oi="zhd1wr8lxyz9snzo48rfb70r7vtod6",si="https://id.twitch.tv/oauth2/token?";function di(){Zn=!1,su=$l,O_("top_bar_user","icon_center_focus"),j_(),ai=document.querySelector("#oauth_input"),Rl.placeholder=E,R_("oauth_scroll"),q_("oauth_text",gt+Zi[IC].name+gn),li()}function ri(){ui(),document.body.removeEventListener("keydown",ci),B_("top_bar_user","icon_center_focus"),T_("oauth_scroll")}function ci(e){if(!Zn&&!Qn)switch(e.keyCode){case Dn:tf()?ef():Z_()?W_():(su=Wl,ri(),ff());break;case In:su=Pl,ri(),ff();break;case Cn:su=Hl,ri(),ff();break;case Rn:case Tn:case Ln:case An:li();break;case Hn:lp(ci);break;case Nn:ri(),Ef();break;case Pn:$_();break;case zn:ru=su,su=Vl,ri(),ff()}}function li(){document.body.removeEventListener("keydown",ci),document.body.addEventListener("keydown",_i,!1),ai.addEventListener("input"),ai.addEventListener("compositionend"),Rl.placeholder=E,ai.focus(),Qn=!0}function ui(){ai.blur(),document.body.removeEventListener("keydown",_i),document.body.addEventListener("keydown",ci,!1),Rl.placeholder=I+E,window.setTimeout(function(){Qn=!1},250)}function _i(e){if(!Zn)switch(e.keyCode){case Dn:Z_()?W_():tf()?ef():(su=Wl,ri(),ff());break;case Xn:Rl.value="",e.preventDefault();break;case Vn:case Un:""!==Rl.value&&null!==Rl.value&&(Wn=Rl.value,Bi(),T_("oauth_scroll"),F_(),hi()),ui();break;case Jn:Rl.value=Rl.value.slice(0,-1),e.preventDefault();break;case Gn:Rl.value+=" ",e.preventDefault()}}function fi(e,t,a,n){try{var i=new XMLHttpRequest,o=si+"grant_type=refresh_token&client_id="+encodeURIComponent(ju)+"&client_secret="+encodeURIComponent(oi)+"&refresh_token="+encodeURIComponent(Zi[e].refresh_token)+"&redirect_uri="+ii;i.open("POST",o,!0),i.timeout=Kn,i.ontimeout=function(){},i.onreadystatechange=function(){4!==i.readyState||(200===i.status?mi(i.responseText,e,a):pi(e,t,a,n))},i.send(null)}catch(n){pi(e,t,a)}}function pi(e,t,a,n){++t<10?fi(e,t,a):n&&n()}function mi(e,t,a){var n=JSON.parse(e);Zi[t].access_token=n.access_token,Zi[t].refresh_token=n.refresh_token,yo(),a&&a()}function hi(){try{var e=new XMLHttpRequest,t=si+"grant_type=authorization_code&client_id="+encodeURIComponent(ju)+"&client_secret="+encodeURIComponent(oi)+"&code="+encodeURIComponent(Wn)+"&redirect_uri="+ii;e.open("POST",t,!0),e.timeout=Kn,e.ontimeout=function(){},e.onreadystatechange=function(){4!==e.readyState||(200===e.status?yi(e.responseText):vi())},e.send(null)}catch(e){vi()}}function vi(){++jn'+yn+H:"":''+yn+yn+na,(Tu=document.createElement("td")).setAttribute("id",Ao[8]+"y_"+r),Tu.className="stream_cell",Tu.innerHTML='
'+_+"
",d.appendChild(Tu);document.getElementById("stream_table_a_game").appendChild(d)}for(r=0;r'+yn+yn+Ot:''+yn+yn+(fo()?Bt:Ht))}function $o(){fo()&&Zi[IC].access_token?Po?Ji():Pi():(X_(Nt),window.setTimeout(function(){Fo&&su===zl?X_(B+Q):j_()},2e3))}function es(){xo?1===xo?(su=nu,Eu=wu,Vo(),ff()):$o():(su=au,Eu=wu,Vo(),ff())}function ts(){try{var e=new XMLHttpRequest;G_(To.length);var t=Co+qo;t&&Mo-1'+Bx.parse(cd)+"",document.getElementById("stream_table_channel_content").appendChild(t),document.getElementById("stream_table_channel_content").appendChild(Tu),null!==sd){var n=JSON.parse(sd);if(null!==n.stream){var i=void 0!==Gs?vu+ne:"",o=n.stream;e.appendChild(Id("0_"+a,o.channel.name,o.preview.template,Bx.parse(o.channel.status),o.game,rf(JSON.stringify(o.stream_type))+i+o.channel.display_name,y+Bv(o.created_at)+b+", "+v+sf(o.viewers)+J,df(o.video_height,o.average_fps,o.channel.language))),a++}else td=!0}else td=!0;e.appendChild(Cd("0_"+a,vu,vu+F,"movie-play")),a++,e.appendChild(Cd("0_"+a,vu,vu+H,"movie")),a<2&&(a++,e.appendChild(qf(nd[9]+"0_"+a))),document.getElementById("stream_table_channel_content").appendChild(e),(e=document.createElement("tr")).appendChild(Sd("1_0",vu,vu,gu)),document.getElementById("stream_table_channel_content").appendChild(e),Rd()}function Id(e,t,a,n,i,o,s,d){return ld=a.replace("{width}x{height}",$u),(Tu=document.createElement("td")).setAttribute("id",nd[8]+e),Tu.setAttribute(a_,t),Tu.className="stream_cell",Tu.innerHTML='
'+yn+o+'
'+d+'
'+n+'
'+h+i+'
'+s+"
",Tu}function Cd(e,t,a,n){return(Tu=document.createElement("td")).setAttribute("id",nd[8]+e),Tu.setAttribute(a_,t),Tu.className="stream_cell",Tu.innerHTML='
'+a+"
",Tu}function Sd(e,t,a,n){return ud=n,(Tu=document.createElement("td")).setAttribute("id",nd[8]+e),Tu.setAttribute(a_,t),Tu.className="stream_cell",Tu.innerHTML='
'+a+'
'+sf(dd)+D+'
'+sf(rd)+Vt+"
",Tu}function Td(){$n?(q_("schannel_cont_heart",''),M_(nd[3]+"1_0",vu+Ot)):(q_("schannel_cont_heart",''),fo()?M_(nd[3]+"1_0",vu+Bt):M_(nd[3]+"1_0",vu+Gt))}function Rd(){np(function(){id||(A_(),id=!0,""!==ld&&w_(document.getElementById(nd[1]+"0_0"),ld,f_),w_(document.getElementById(nd[1]+"1_0"),ud,__),Od(),R_(nd[10]),pf()),Ld(),Ws=!1})}function Ld(){ad?Td():fo()?(ni=ku,ti=!1,ki()):($n=!1,Td())}function Od(){O_(nd[0]+Xs+"_"+(Xs?0:js),t_)}function Bd(){ep(Xs+"_"+(Xs?0:js),nd)}function qd(){if(Xs)fo()&&Zi[IC].access_token?(ti=!1,ni=ku,$n?Ti():Ii()):(X_(Nt),window.setTimeout(j_,2e3));else{document.body.removeEventListener("keydown",Ad),T_(nd[10]);var e=td?1:0;js===0-e?(dh=document.getElementById(nd[8]+Xs+"_"+js).getAttribute(a_),rh=document.getElementById(nd[3]+Xs+"_"+js).textContent,Nh=-1!==rh.indexOf(ne)?(Th=!0,rh=(Sh=rh).split(ne)[1],Gs):ku,uh=document.getElementById(nd[5]+Xs+"_"+js).textContent.split(h)[1],Wf()):js===1-e?lr():js===2-e&&(rb=uw,jb())}}function Md(){_d={Main_selectedChannel_id:ku,Main_selectedChannelLogo:gu,Main_selectedChannel:hu,Main_selectedChannelDisplayname:vu,ChannelContent_UserChannels:ad,Main_BeforeChannel:cu}}function Fd(){ku=_d.Main_selectedChannel_id,gu=_d.Main_selectedChannelLogo,hu=_d.Main_selectedChannel,vu=_d.Main_selectedChannelDisplayname,ad=_d.ChannelContent_UserChannels,cu=_d.Main_BeforeChannel,_d={}}function Ad(e){if(!Ws&&!Gf())switch(Vf(),e.keyCode){case Dn:tf()?ef():Z_()?W_():(su=cu,cu=Hl,pd(),ku="",ff());break;case Bn:Xs||(Bd(),--js<0&&(js=td?1:2),Od());break;case qn:Xs||(Bd(),(td?1:2)<++js&&(js=0),Od());break;case Mn:case Fn:Bd(),Xs=Xs?0:1,Od();break;case On:case Sn:md();break;case Rn:case Tn:case Ln:case An:qd();break;case Hn:lp(Ad);break;case Nn:pd(),Ef();break;case Pn:$_();break;case zn:Xk||(Md(),ru=jl),su=Vl,pd(),ff()}}var Hd=0,Nd=0,Pd=!1,zd=0,Dd={},Jd=[],Ud=!1,Vd=0,Gd=5,Xd=3500,jd=0,Yd=0,Kd=0,Wd=!1,Zd=!1,Qd="",$d=["cv_thumbdiv","cv_img","cv_infodiv","cv_title","cv_streamon","cv_duration","cv_viwers","cv_quality","cv_cell","cvempty_","channel_vod_scroll","cv_game"],er=!1,tr=!1,ar="",nr="",ir="",or="",sr="",dr="",rr=0,cr=!1;function lr(){su=Yl,!Xk&&_d.Main_selectedChannel_id&&Fd(),hu!==ar&&(er=!1),vf(),S_("label_switch","icon-switch",l+aa),M_("top_bar_user",vu),document.body.addEventListener("keydown",Er,!1),er?(Lf(Hd),M_("top_bar_game",tr?A:F),R_($d[10]),wr(),pf()):_r()}function ur(){er&&kr(),hf(),document.body.removeEventListener("keydown",Er),T_($d[10])}function _r(){er&&kr(),M_("top_bar_game",tr?A:F),T_($d[10]),F_(),j_(),ar=hu,er=!1,Cf("stream_table_channel_vod"),Dd={},Hd=Nd=zd=Yd=jd=0,Pd=!(cr=!(Zd=!(Jd=[]))),J_(),fr(),pr()}function fr(){Tf(),Ud=!0,Vd=0,Xd=3500}function pr(){try{var e=new XMLHttpRequest,t=zd+jd;t&&Yd-1',a+=nn+xa+vu+" "+Ar,ic(a+="",0)),Fr=0,Mr=e._next,e.comments.forEach(function(e){a="",(n=e.message).hasOwnProperty("user_badges")&&n.user_badges.forEach(function(e){a+=''}),a+=''+e.commenter.display_name+": ",a+='',n.fragments.forEach(function(e){e.hasOwnProperty("emoticon")?a+='':a+=Bx.parse(e.text)}),a+="",i?ic(a,e.content_offset_seconds):void 0!==Mr&&oc(a,e.content_offset_seconds)}),i&&Dr===t&&(sc(t),void 0!==Mr&&lc(t))}function ic(e,t){Or.push({time:t,message:e})}function oc(e,t){Br.push({time:t,message:e})}function sc(e){zr||(xr=window.setInterval(function(){cc(e),Sr.scrollTop=Sr.scrollHeight},250))}function dc(){zr||(window.clearInterval(Tr),window.clearInterval(xr),window.clearInterval(Ir),window.clearInterval(Cr))}function rc(){Dr=0,zr=!1,Mr=null,dc(),Cf("chat_box"),Or=[],Br=[],Pr=0}function cc(e){var t,a;if(Pr",(t=document.createElement("div")).className="chat_line",t.innerHTML=i,Sr.appendChild(t),zr=!0,Sr.scrollTop=Sr.scrollHeight,window.clearInterval(xr),xr=window.setInterval(function(){Sr.scrollTop=Sr.scrollHeight},250)}}function lc(e){Lr=0,uc(e)}function uc(e){try{var t=new XMLHttpRequest;t.open("GET","https://api.twitch.tv/v5/videos/"+nr+"/comments?client_id="+ju+(null!==Mr?"&cursor="+Mr:""),!0),t.timeout=1e4,t.ontimeout=function(){},t.onreadystatechange=function(){if(4===t.readyState){if(200===t.status)return void(Dr===e&&nc(t.responseText,e));Dr===e&&_c(e)}},t.send(null)}catch(t){Dr===e&&_c(e)}}function _c(e){Lr++,Dr===e&&(Lr";var t=document.createElement("div");t.className="chat_line",t.innerHTML=e,Sr.appendChild(t)}var pc=!1,mc=["f_thumbdiv","f_img","f_infodiv","f_displayname","f_streamtitle","f_streamgame","f_viwers","f_quality","f_cell","fempty_","featured_scroll"],hc=0,vc=0,gc=!1,yc=0,bc={},wc=!1,kc=0,Ec=5,xc=3500,Ic=[],Cc=0,Sc=0,Tc=!1,Rc=0,Lc=!1,Oc=!1;function Bc(){su=iu,O_("top_bar_featured","icon_center_focus"),document.body.addEventListener("keydown",Gc,!1),pc?(Lf(hc),R_(mc[10]),U_(vc,hc,Nu,yc),pf()):Mc()}function qc(){document.body.removeEventListener("keydown",Gc),B_("top_bar_featured","icon_center_focus"),T_(mc[10])}function Mc(){T_(mc[10]),F_(),j_(),pc=!1,Cf("stream_table_featured"),Oc=!(Tc=!(Ic=[])),Rc=hc=vc=yc=Sc=Cc=0,gc=!(bc={}),J_(),Fc(),Ac()}function Fc(){Tf(),wc=!0,kc=0,xc=3500}function Ac(){try{var e=new XMLHttpRequest,t=yc+Cc;e.open("GET","https://api.twitch.tv/kraken/streams/featured?limit="+Hu+"&offset="+t+(fo()&&Zi[IC].access_token?"&oauth_token="+Zi[IC].access_token:"")+"&"+Math.round(1e7*Math.random()),!0),e.timeout=xc,e.setRequestHeader(Ku,Qu),e.setRequestHeader(Yu,ju),e.ontimeout=function(){},e.onreadystatechange=function(){if(4===e.readyState){if(200===e.status)return void Nc(e.responseText);Hc()}},e.send(null)}catch(e){Hc()}}function Hc(){++kc
'+yn+cn+"
"),M_("side_panel_search",a),M_("side_panel_settings",n),M_("side_panel_about",i),M_("side_panel_controls",e),M_("side_panel_live",p),M_("side_panel_user",f),M_("side_panel_featured",ra),M_("side_panel_games",m),M_("side_panel_videos",na),M_("side_panel_clips",H),M_("side_panel_hide",o),M_("chanel_button",C),M_("game_button",m),M_("live_button",p),M_("exit_app_cancel",Y),M_("exit_app_close",X),M_("remove_cancel",Y),M_("remove_yes",jt),M_("exit_app_minimize",j),M_("main_dialog_exit_text",V),q_("dialog_controls_text",fn),M_("dialog_vod_text",Ia),q_("dialog_vod_start_text",Sa)}function S_(e,t,a){q_(e,'
'+yn+a+"
")}function T_(e){document.getElementById(e).classList.add("hide")}function R_(e){document.getElementById(e).classList.remove("hide")}function L_(e){return-1===document.getElementById(e).className.indexOf("hide")}function O_(e,t){document.getElementById(e).classList.add(t)}function B_(e,t){document.getElementById(e).classList.remove(t)}function q_(e,t){document.getElementById(e).innerHTML=t}function M_(e,t){document.getElementById(e).textContent=t}function F_(){Lf(-1),R_("dialog_loading")}function A_(){T_("dialog_loading")}function H_(){window.clearTimeout(bu)}function N_(){bu=window.setTimeout(z_,6e3)}function P_(){N_(),R_("main_dialog_exit")}function z_(){H_(),T_("main_dialog_exit"),Wc=0,xl()}function D_(){return L_("main_dialog_exit")}function J_(){Cf("dialog_counter_text"),V_(0,0,0)}function U_(e,t,a,n){0'+e+""}function yf(e){return e=new Date(e),Ru?e.getDate()+" "+$t[e.getMonth()]+", "+e.getFullYear():$t[e.getMonth()]+" "+e.getDate()+", "+e.getFullYear()}function bf(){try{yu=webapis.network.addNetworkStateChangeListener(function(e){1===e||4===e?(Cu=!0,Y_()&&(X_(Ut),Su&&ff(),Su=!1),Vv()&&X_(Ut),window.setTimeout(j_,1500)):(Cu=!1,window.setTimeout(function(){Cu||(X_(""),Jv(Jt))},5e3))})}catch(e){}}function wf(){try{webapis.network.removeNetworkStateChangeListener(yu)}catch(e){}}function kf(){var e=null,t=null,a=null,n=null,i=0;try{e=tizen.application.getAppInfo().version,t=tizen.systeminfo.getCapability("http://tizen.org/feature/platform.version"),n=webapis.productinfo.getFirmware(),a=webapis.productinfo.getModel()}catch(e){}return null!==e&&null!==t&&null!==a&&null!==n&&(r_="APP "+be+(s_=e)+"."+d_+nn+"Tizen "+be+t+yn+yn+"|"+yn+yn+"TV: "+a+yn+yn+"|"+yn+yn+"FW: "+n+nn,e=e.split("."),i=parseInt(e[0]+e[1]+e[2]),q_("dialog_about_text",pn+r_+mn),q_("dialog_update_text",vn+Se+s_+", "+Te+o_+nn+bn),imx&&bx()},1e4)}function Cf(e){for(e=document.getElementById(e);e.firstChild;)e.removeChild(e.firstChild)}function Sf(e){for(var t,a=0;a
'+a[3]+"
"}function Hf(e,t,a,n,i){return e
'+a[1]+'
'+a[5]+'
'+Bx.parse(a[2])+'
'+h+a[3]+'
'+a[4]+"
"}function zf(e,t,a){return(Tu=document.createElement("td")).setAttribute("id",t[5]+e),Tu.setAttribute(a_,a[0]),Tu.className="stream_cell",Tu.innerHTML=Df(e,t,a),Tu}function Df(e,t,a){return Rf(t[1]+e,a[1]),'
'+a[0]+'
'+a[2]+"
"}function Jf(){pu=!0}function Uf(){fu=!0}function Vf(){fu=!1,window.setTimeout(Uf)}function Gf(){return!fu||!pu}function Xf(e,t,a,n,i){O_(a[0]+e+"_"+t,t_),U_(t,e,n,i),Of(e)?1Fh+(90
'+yn+p.toUpperCase()+"
"),Cf("stream_info_title"),_h=!1,document.getElementById("stream_info_icon").setAttribute("data-src",__),M_("stream_info_name",Th?Sh:rh),Xh.display_name=Th?Sh:rh,Xh.name=dh,Xh.id=Nh,Xh.game=uh,Xh.user=fo()?IC:0,Xh.Main_BeforeChannel=fp(cu),Xh.Main_BeforeAgame=fp(lu),Xh.screen=fp(su),localStorage.setItem("Play_Restore_value",JSON.stringify(Xh)),localStorage.setItem("Play_WasPlaying",1),Th=!1,Sh="",Cf("dialog_buffer_play_percentage"),Lh=!1,R_("scene_channel_panel_bottom"),M_("stream_watching_time",g+Ov(Eh=0)),M_("stream_live_time",y+Ov(0)+b),R_("chat_frame"),T_("chat_box"),T_("progress_bar_div"),Mg(1),Oh=oh=!(km=-5),fh=3e3,Rh=!(jm=bh=nh=Hh=0),av(),qm=window.setInterval(iv,6e4),Bm=Rm,Km=!(Am=Fm=Mm=$m=0),document.addEventListener("visibilitychange",tv,!1),sh=!1,dv(),document.body.removeEventListener("keyup",Jf)}function tv(){document.hidden?(Av(),sh=!1,pm.src="about:blank",window.clearInterval(qm),window.clearInterval(th)):(Km=!0,R_("scene2"),T_("scene1"),Pv(),Wv(),window.setTimeout(function(){vx||Km&&(fh=3e3,Lh=!(jm=0),_h?iv():av(),Bm=Rm,dv(),qm=window.setInterval(iv,6e4))},500))}function av(){try{var t=new XMLHttpRequest;t.ontimeout=function(){},t.onreadystatechange=function(){if(4===t.readyState)if(200===t.status){var e=JSON.parse(t.responseText);null!==e.stream?(Nh=e.stream.channel._id,q_("stream_info_title",Bx.parse(e.stream.channel.status)),uh=e.stream.game,mh=", ["+e.stream.channel.language.toUpperCase()+"]",M_("stream_info_game",h+uh+v+sf(e.stream.viewers)+" "+J+mh),gm=e.stream.channel.logo,_h=!0,sv(document.getElementById("stream_info_icon"),gm),Vm=e.stream.created_at,fo()?(ti=!0,ni=Nh,ki()):Nv(),Xh.game=uh,localStorage.setItem("Play_Restore_value",JSON.stringify(Xh))):Km&&(Rh=!1,Dg())}else nv()},t.open("GET","https://api.twitch.tv/kraken/streams/"+Nh+"?"+Math.round(1e7*Math.random()),!0),t.timeout=fh,t.setRequestHeader(Ku,Qu),t.setRequestHeader(Yu,ju),t.send(null)}catch(e){nv()}}function nv(){++jm'),q_("fallow_text",yn+Ot)):(q_("fallow_heart",''),q_("fallow_text",yn+Bt))}function Yg(e){lg()?cg():Sg()&&!jv()?(Bg(),Gv()):$v()&&!Hb()?e?vb():eg():Hb()&&jv()?(Ab(),mb(!1),Fv()):jv()?(Xv(),sg(),np(e?pb:qv)):(Vv()&&Uv(),Gv())}function Kg(e){if(Bm!==Om)switch(e.keyCode){case Dn:jv()?(Xv(),sg(),np(qv)):Gv()}else switch(e.keyCode){case On:case Sn:dg()||Sg()?(sg(),zm=!1,localStorage.setItem("ChatEnable","false")):(og(),zm=!0,localStorage.setItem("ChatEnable","true"));break;case In:dg()&&(bm++,vg());break;case Cn:dg()&&(bm--,vg());break;case Bn:!$v()&&dg()?((Em-=.05)<.05&&(Em=.05),mg(!0)):$v()?(Eg(),5<++ch&&(ch=1),kg(),ag(),ng()):Sg()?(Bg(),Lg(),--hh<(Th?1:2)&&(hh=3),Rg()):tg();break;case qn:!$v()&&dg()?(1.05<(Em+=.05)&&(Em=1.05),mg(!0)):$v()?(Eg(),--ch<1&&(ch=5),kg(),ag(),ng()):Sg()?(Bg(),Lg(),3<++hh&&(hh=Th?1:2),Rg()):tg();break;case Mn:$v()?(0Fh+(90rb.ItemsLimit?e=rb.ItemsLimit:rb.dataEnded=!0,e){var t=Math.ceil(e/rb.ColoumnsCount),a=rb.row_id+t;for(rb.row_id;rb.row_id
'+i+'
'+o+"
",Tu}function aw(e,t,a,n,i,o,s,d,r,c,l,u,_,f,p,m){var h=ew(e,t,a,n);return Tu.setAttribute("id",a[8]+h),Tu.setAttribute(a_,JSON.stringify([l,c,s[2],u,i,_,f,p,m,s[0],r,s[1]+s[2]])),Tu.innerHTML='
'+i+'
'+r+'
'+o[0]+o[1]+'
'+z+Lv(c)+'
'+s[0]+nn+s[1]+s[2]+'
'+d+D+"
",Tu}function nw(e){np(function(){rb.status?(Sf(rb.img_404),U_(rb.posX,rb.posY,rb.ColoumnsCount,rb.itemsCount)):(A_(),e?X_(rb.empty_str()):(rb.status=!0,Sf(rb.img_404),iw(),pf()),R_(rb.ids[10]),rb.FirstLoad=!1)})}function iw(){rb.addFocus(rb.posY,rb.posX,rb.ids,rb.ColoumnsCount,rb.itemsCount),rb.posY+rb.ItemsReloadLimit>rb.itemsCount/rb.ColoumnsCount&&rb.data_cursorrb.data.length&&!rb.dataEnded&&!rb.loadingData&&(Wb(),Zb())}function ow(e,t){ep(rb.posY+"_"+rb.posX,rb.ids),rb.posY+=e,rb.posX=t,iw()}function sw(e){tf()?ef():Z_()?W_():(su=e===rb.screen?Hl:e,Yb(),ff())}function dw(e){for(var t=0;tthis.MaxOffset&&(this.dataEnded=!0),this.url=this.base_url+"&offset="+this.offset},concatenate:function(e){if(this.data){var t=JSON.parse(e);this.MaxOffset=this.data._total,this.data=this.data.concat(t.top),this.offset=this.data.length,this.offset>this.MaxOffset&&(this.dataEnded=!0),rb.loadingData=!1}else this.data=JSON.parse(e),this.MaxOffset=this.data._total,this.data=this.data.top,this.offset=this.data.length,this.offset>this.MaxOffset&&(this.dataEnded=!0),this.loadDataSuccess(),rb.loadingData=!1},label_init:function(){O_("top_bar_game","icon_center_focus")},label_exit:function(){B_("top_bar_game","icon_center_focus")},key_refresh:Kb,key_exit:function(){sw(su===du||du===zl||du===Vl?Hl:du)},key_channelup:function(){du=this.screen,su=eu,Yb(),ff()},key_channeldown:function(){du=this.screen,su=iu,Yb(),ff()},key_play:function(){wu=document.getElementById(this.ids[5]+this.posY+"_"+this.posX).getAttribute(a_),document.body.removeEventListener("keydown",cw),lu=this.screen,su=zl,zo=!(_u=!0),Yb(),ff()},key_yellow:$_,key_green:function(){Yb(),Ef()},addCell:function(e){rb.idObject[e.game._id]||(rb.itemsCount++,rb.idObject[e.game._id]=1,rb.row.appendChild(tw(rb.row_id,rb.coloumn_id,rb.ids,e.game.box.template.replace("{width}x{height}",e_),e.game.name,sf(e.channels)+" "+C+v+sf(e.viewers)+J)),rb.coloumn_id++)}},xw),Cw)).set_ThumbSize()}function Ow(){(pw=Xb(pw=Xb({ids:Gb("UserGames"),table:"stream_table_user_games",screen:Ul,isLive:!0,OldUserName:"",base_url:"https://api.twitch.tv/api/users/",set_url:function(){this.offset&&this.offset+mw>this.MaxOffset&&(this.dataEnded=!0),this.url=this.base_url+encodeURIComponent(Zi[IC].name)+"/follows/games",this.isLive?this.url+="/live?limit=750":this.url+="?limit="+mw+"&offset="+this.offset},concatenate:function(e){if(this.data){var t=JSON.parse(e);this.MaxOffset=this.data._total,this.data=this.data.concat(t.follows),this.offset=this.data.length,this.offset>this.MaxOffset&&(this.dataEnded=!0),rb.loadingData=!1}else this.data=JSON.parse(e),this.MaxOffset=this.data._total,this.data=this.data.follows,this.offset=this.data.length,this.isLive?this.dataEnded=!0:this.offset>this.MaxOffset&&(this.dataEnded=!0),this.loadDataSuccess(),rb.loadingData=!1},label_init:function(){S_("label_switch","icon-switch",c),S_("label_refresh","icon-refresh",Zt+Q+"/"+Wt+Qt),O_("top_bar_user","icon_center_focus"),this.OldUserName!==Zi[IC].name&&(this.status=!1),this.OldUserName=Zi[IC].name,q_("top_bar_user",f+gf(Zi[IC].name+" "+(this.isLive?Q:Wt)))},label_exit:function(){S_("label_refresh","icon-refresh",t+Qt),B_("top_bar_user","icon_center_focus"),M_("top_bar_user",f),S_("label_switch","icon-switch",r)},key_refresh:function(){this.isLive=!this.isLive,q_("top_bar_user",f+gf(Zi[IC].name+" "+(this.isLive?Q:Wt))),Kb(),localStorage.setItem("user_Games_live",this.isLive?"true":"false"),PC()},key_exit:function(){sw(Wl)},key_channelup:function(){du=this.screen,su=fo()&&Zi[IC].access_token?ou:Zl,Yb(),ff()},key_channeldown:function(){du=this.screen,su=Jl,Yb(),ff()},key_play:function(){wu=document.getElementById(this.ids[5]+this.posY+"_"+this.posX).getAttribute(a_),document.body.removeEventListener("keydown",cw),lu=this.screen,su=zl,zo=!(_u=!0),Yb(),ff()},key_yellow:$_,key_green:function(){Yb(),Ef()},addCell:function(e){var t=this.isLive?e.game:e;rb.idObject[t._id]||(rb.itemsCount++,rb.idObject[t._id]=1,rb.row.appendChild(tw(rb.row_id,rb.coloumn_id,rb.ids,t.box.template.replace("{width}x{height}",e_),t.name,this.isLive?sf(e.channels)+" "+C+v+sf(e.viewers)+J:"")),rb.coloumn_id++)}},xw),Cw)).set_ThumbSize()}var Bw=0,qw=0,Mw=!1,Fw=0,Aw={},Hw=[],Nw=!1,Pw=0,zw=5,Dw=3500,Jw=0,Uw=0,Vw=!1,Gw=!1,Xw="",jw=!1,Yw=!1,Kw=!1,Ww=["sc_thumbdiv","sc_img","sc_infodiv","sc_displayname","sc_cell","scempty_","search_channel_scroll"];function Zw(){su=Ql,Xk=Yw=!0,Xw!==Uk&&(Gw=!1),vf(),q_("top_bar_user",a+gf(C+" '"+Uk+"'")),document.body.addEventListener("keydown",_k,!1),Gw?(Lf(Bw),R_(Ww[6]),U_(qw,Bw,Vu,Fw)):ek()}function Qw(){hf(),document.body.removeEventListener("keydown",_k),T_(Ww[6])}function $w(){ff()}function ek(){T_(Ww[6]),F_(),j_(),Xw=Uk,Gw=!1,Cf("stream_table_search_channel"),Aw={},Bw=qw=Fw=Uw=Jw=0,Mw=!(Kw=!(jw=!(Hw=[]))),J_(),tk(),ak()}function tk(){Tf(),Nw=!0,Pw=0,Dw=3500}function ak(){try{var e=new XMLHttpRequest,t=Fw+Jw;t&&Uw-1'+va+'
'+ga+"
",e="buffer_live",AE.push(e),t+=JE(e,ya),e="buffer_vod",AE.push(e),t+=JE(e,ba),e="buffer_clip",AE.push(e),t+=JE(e,wa),e="chat_font_size",AE.push(e),q_("settings_main",t+=UE(e,Ha,Na)),HE=AE.length}function DE(e,t){return'
'+t+"
"}function JE(e,t){return'
'+t+'
'+jE(e)+'
'}function UE(e,t,a){return'
'+t+'
'+a+'
'+jE(e)+'
'}function VE(e,t,a){q_(e+"_name",t+'
'+a+"
")}function GE(){var e="";for(e in M_("setting_title_general",ka),M_((e="clock_offset")+"_name",Wa),M_((e="general_lang")+"_name",Za),M_((e="content_lang")+"_name",Qa),ME[e].values[0]=$a,M_(e,jE(e)),M_("setting_title_play",ha),M_("setting_title_buffers",va),M_("setting_title_buffers_summary",ga),M_((e="buffer_live")+"_name",ya),M_((e="buffer_vod")+"_name",ba),M_((e="buffer_clip")+"_name",wa),VE(e="restor_playback",Fa,Aa),ME[e].values=[Ma,qa],VE(e="chat_font_size",Ha,Na),M_((e="videos_animation")+"_name",za),ME[e].values=[Ma,qa],ME)ME.hasOwnProperty(e)&&M_(e,jE(e))}function XE(){for(var e in ME)ME[e].defaultValue=parseInt(localStorage.getItem(e))||ME[e].defaultValue,ME[e].defaultValue-=1;Qh(),ix(),tT=KE("videos_animation"),Lu=YE("content_lang")}function jE(e){return ME[e].values[KE(e)]}function YE(e){return ME[e].set_values[KE(e)]}function KE(e){return ME[e].defaultValue}function WE(e){return ME[e].values.length-1}function ZE(e){var t=AE[qE];O_(t,"settings_value_focus"),O_(t+"_div","settings_div_focus"),ex(e)}function QE(){var e=AE[qE];document.getElementById(e+"arrow_left").style.opacity="0",document.getElementById(e+"arrow_right").style.opacity="0",B_(e,"settings_value_focus"),B_(e+"_div","settings_div_focus")}function $E(e){var t=AE[e];localStorage.setItem(t,KE(t)+1),M_(t,jE(t)),ex(e),tx(e)}function ex(e){var t=AE[e],a=KE(t),n=WE(t);document.getElementById(t+"arrow_right").style.opacity=0/g,">"),function(e){var t=function(e){for(var t=e.indexOf(d)<0?e.replace(s,""):e,a=[],n=0,i=0,o=0;o':e})},replace:t},a=/(?:\ud83d[\udc68\udc69])(?:\ud83c[\udffb-\udfff])?\u200d(?:\u2695\ufe0f|\u2696\ufe0f|\u2708\ufe0f|\ud83c[\udf3e\udf73\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e[\uddb0-\uddb3])|(?:\ud83c[\udfcb\udfcc]|\ud83d[\udd74\udd75]|\u26f9)((?:\ud83c[\udffb-\udfff]|\ufe0f)\u200d[\u2640\u2642]\ufe0f)|(?:\ud83c[\udfc3\udfc4\udfca]|\ud83d[\udc6e\udc71\udc73\udc77\udc81\udc82\udc86\udc87\ude45-\ude47\ude4b\ude4d\ude4e\udea3\udeb4-\udeb6]|\ud83e[\udd26\udd35\udd37-\udd39\udd3d\udd3e\uddb8\uddb9\uddd6-\udddd])(?:\ud83c[\udffb-\udfff])?\u200d[\u2640\u2642]\ufe0f|(?:\ud83d\udc68\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d[\udc68\udc69]|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\u2764\ufe0f\u200d\ud83d\udc68|\ud83d\udc68\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d[\udc68\udc69]|\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83c\udff3\ufe0f\u200d\ud83c\udf08|\ud83c\udff4\u200d\u2620\ufe0f|\ud83d\udc41\u200d\ud83d\udde8|\ud83d\udc68\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83d\udc6f\u200d\u2640\ufe0f|\ud83d\udc6f\u200d\u2642\ufe0f|\ud83e\udd3c\u200d\u2640\ufe0f|\ud83e\udd3c\u200d\u2642\ufe0f|\ud83e\uddde\u200d\u2640\ufe0f|\ud83e\uddde\u200d\u2642\ufe0f|\ud83e\udddf\u200d\u2640\ufe0f|\ud83e\udddf\u200d\u2642\ufe0f)|[\u0023\u002a\u0030-\u0039]\ufe0f?\u20e3|(?:[\u00a9\u00ae\u2122\u265f]\ufe0f)|(?:\ud83c[\udc04\udd70\udd71\udd7e\udd7f\ude02\ude1a\ude2f\ude37\udf21\udf24-\udf2c\udf36\udf7d\udf96\udf97\udf99-\udf9b\udf9e\udf9f\udfcd\udfce\udfd4-\udfdf\udff3\udff5\udff7]|\ud83d[\udc3f\udc41\udcfd\udd49\udd4a\udd6f\udd70\udd73\udd76-\udd79\udd87\udd8a-\udd8d\udda5\udda8\uddb1\uddb2\uddbc\uddc2-\uddc4\uddd1-\uddd3\udddc-\uddde\udde1\udde3\udde8\uddef\uddf3\uddfa\udecb\udecd-\udecf\udee0-\udee5\udee9\udef0\udef3]|[\u203c\u2049\u2139\u2194-\u2199\u21a9\u21aa\u231a\u231b\u2328\u23cf\u23ed-\u23ef\u23f1\u23f2\u23f8-\u23fa\u24c2\u25aa\u25ab\u25b6\u25c0\u25fb-\u25fe\u2600-\u2604\u260e\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262a\u262e\u262f\u2638-\u263a\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267b\u267f\u2692-\u2697\u2699\u269b\u269c\u26a0\u26a1\u26aa\u26ab\u26b0\u26b1\u26bd\u26be\u26c4\u26c5\u26c8\u26cf\u26d1\u26d3\u26d4\u26e9\u26ea\u26f0-\u26f5\u26f8\u26fa\u26fd\u2702\u2708\u2709\u270f\u2712\u2714\u2716\u271d\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u2764\u27a1\u2934\u2935\u2b05-\u2b07\u2b1b\u2b1c\u2b50\u2b55\u3030\u303d\u3297\u3299])(?:\ufe0f|(?!\ufe0e))|(?:(?:\ud83c[\udfcb\udfcc]|\ud83d[\udd74\udd75\udd90]|[\u261d\u26f7\u26f9\u270c\u270d])(?:\ufe0f|(?!\ufe0e))|(?:\ud83c[\udf85\udfc2-\udfc4\udfc7\udfca]|\ud83d[\udc42\udc43\udc46-\udc50\udc66-\udc69\udc6e\udc70-\udc78\udc7c\udc81-\udc83\udc85-\udc87\udcaa\udd7a\udd95\udd96\ude45-\ude47\ude4b-\ude4f\udea3\udeb4-\udeb6\udec0\udecc]|\ud83e[\udd18-\udd1c\udd1e\udd1f\udd26\udd30-\udd39\udd3d\udd3e\uddb5\uddb6\uddb8\uddb9\uddd1-\udddd]|[\u270a\u270b]))(?:\ud83c[\udffb-\udfff])?|(?:\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc65\udb40\udc6e\udb40\udc67\udb40\udc7f|\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc73\udb40\udc63\udb40\udc74\udb40\udc7f|\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc77\udb40\udc6c\udb40\udc73\udb40\udc7f|\ud83c\udde6\ud83c[\udde8-\uddec\uddee\uddf1\uddf2\uddf4\uddf6-\uddfa\uddfc\uddfd\uddff]|\ud83c\udde7\ud83c[\udde6\udde7\udde9-\uddef\uddf1-\uddf4\uddf6-\uddf9\uddfb\uddfc\uddfe\uddff]|\ud83c\udde8\ud83c[\udde6\udde8\udde9\uddeb-\uddee\uddf0-\uddf5\uddf7\uddfa-\uddff]|\ud83c\udde9\ud83c[\uddea\uddec\uddef\uddf0\uddf2\uddf4\uddff]|\ud83c\uddea\ud83c[\udde6\udde8\uddea\uddec\udded\uddf7-\uddfa]|\ud83c\uddeb\ud83c[\uddee-\uddf0\uddf2\uddf4\uddf7]|\ud83c\uddec\ud83c[\udde6\udde7\udde9-\uddee\uddf1-\uddf3\uddf5-\uddfa\uddfc\uddfe]|\ud83c\udded\ud83c[\uddf0\uddf2\uddf3\uddf7\uddf9\uddfa]|\ud83c\uddee\ud83c[\udde8-\uddea\uddf1-\uddf4\uddf6-\uddf9]|\ud83c\uddef\ud83c[\uddea\uddf2\uddf4\uddf5]|\ud83c\uddf0\ud83c[\uddea\uddec-\uddee\uddf2\uddf3\uddf5\uddf7\uddfc\uddfe\uddff]|\ud83c\uddf1\ud83c[\udde6-\udde8\uddee\uddf0\uddf7-\uddfb\uddfe]|\ud83c\uddf2\ud83c[\udde6\udde8-\udded\uddf0-\uddff]|\ud83c\uddf3\ud83c[\udde6\udde8\uddea-\uddec\uddee\uddf1\uddf4\uddf5\uddf7\uddfa\uddff]|\ud83c\uddf4\ud83c\uddf2|\ud83c\uddf5\ud83c[\udde6\uddea-\udded\uddf0-\uddf3\uddf7-\uddf9\uddfc\uddfe]|\ud83c\uddf6\ud83c\udde6|\ud83c\uddf7\ud83c[\uddea\uddf4\uddf8\uddfa\uddfc]|\ud83c\uddf8\ud83c[\udde6-\uddea\uddec-\uddf4\uddf7-\uddf9\uddfb\uddfd-\uddff]|\ud83c\uddf9\ud83c[\udde6\udde8\udde9\uddeb-\udded\uddef-\uddf4\uddf7\uddf9\uddfb\uddfc\uddff]|\ud83c\uddfa\ud83c[\udde6\uddec\uddf2\uddf3\uddf8\uddfe\uddff]|\ud83c\uddfb\ud83c[\udde6\udde8\uddea\uddec\uddee\uddf3\uddfa]|\ud83c\uddfc\ud83c[\uddeb\uddf8]|\ud83c\uddfd\ud83c\uddf0|\ud83c\uddfe\ud83c[\uddea\uddf9]|\ud83c\uddff\ud83c[\udde6\uddf2\uddfc]|\ud83c[\udccf\udd8e\udd91-\udd9a\udde6-\uddff\ude01\ude32-\ude36\ude38-\ude3a\ude50\ude51\udf00-\udf20\udf2d-\udf35\udf37-\udf7c\udf7e-\udf84\udf86-\udf93\udfa0-\udfc1\udfc5\udfc6\udfc8\udfc9\udfcf-\udfd3\udfe0-\udff0\udff4\udff8-\udfff]|\ud83d[\udc00-\udc3e\udc40\udc44\udc45\udc51-\udc65\udc6a-\udc6d\udc6f\udc79-\udc7b\udc7d-\udc80\udc84\udc88-\udca9\udcab-\udcfc\udcff-\udd3d\udd4b-\udd4e\udd50-\udd67\udda4\uddfb-\ude44\ude48-\ude4a\ude80-\udea2\udea4-\udeb3\udeb7-\udebf\udec1-\udec5\uded0-\uded2\udeeb\udeec\udef4-\udef9]|\ud83e[\udd10-\udd17\udd1d\udd20-\udd25\udd27-\udd2f\udd3a\udd3c\udd40-\udd45\udd47-\udd70\udd73-\udd76\udd7a\udd7c-\udda2\uddb4\uddb7\uddc0-\uddc2\uddd0\uddde-\uddff]|[\u23e9-\u23ec\u23f0\u23f3\u267e\u26ce\u2705\u2728\u274c\u274e\u2753-\u2755\u2795-\u2797\u27b0\u27bf\ue50a])|\ufe0f/g,s=/\uFE0F/g,d=String.fromCharCode(8205);return e;function t(e,t){return String(e).replace(a,t)}}(),qx=0,Mx=0,Fx=!1,Ax=0,Hx=!1,Nx=0,Px=5,zx=3500,Dx=[],Jx=0,Ux=!1,Vx=!1,Gx="",Xx=!1,jx=!1,Yx=["uc_thumbdiv","uc_img","uc_infodiv","uc_displayname","uc_cell","ucempty_","user_channels_scroll"];function Kx(){su=Zl,Yw=!1,S_("label_switch","icon-switch",c),O_("top_bar_user","icon_center_focus"),q_("top_bar_user",f+gf(Zi[IC].name+$)),document.body.addEventListener("keydown",dI,!1),Gx!==Zi[IC].name&&(Vx=!1),Vx?(Lf(qx),R_(Yx[6]),U_(Mx,qx,Vu,Ax),pf()):Zx()}function Wx(){B_("top_bar_user","icon_center_focus"),document.body.removeEventListener("keydown",dI),M_("top_bar_user",f),S_("label_switch","icon-switch",r),T_(Yx[6])}function Zx(){T_(Yx[6]),F_(),j_(),Gx=Zi[IC].name,Vx=!1,Cf("stream_table_user_channels"),qx=Mx=Ax=Jx=0,jx=!(Xx=Fx=!1),J_(),Dx=[],Qx(),$x()}function Qx(){Tf(),Hx=!0,Nx=0,zx=3500}function $x(){try{var e=new XMLHttpRequest;e.open("GET","https://api.twitch.tv/kraken/users/"+encodeURIComponent(Zi[IC].id)+"/follows/channels?limit=100&offset="+Jx+"&sortby=created_at&"+Math.round(1e7*Math.random()),!0),e.timeout=zx,e.setRequestHeader(Ku,Qu),e.setRequestHeader(Yu,ju),e.ontimeout=function(){},e.onreadystatechange=function(){if(4===e.readyState){if(200===e.status)return void tI(e.responseText);eI()}},e.send(null)}catch(e){eI()}}function eI(){++Nx'+Zi[i].name+N+(i?"":se)+"",document.getElementById("stream_table_user").appendChild(n),document.getElementById("stream_table_user").appendChild(Tu),(e=document.createElement("tr")).appendChild(HC(i+"_"+t,vu,W,"play",a)),t++,e.appendChild(HC(i+"_"+t,vu,Z,"users",a)),t++,e.appendChild(HC(i+"_"+t,vu,pw.isLive?Q:Wt,"gamepad",a)),t++,e.appendChild(HC(i+"_"+t,vu,na,"movie-play",a)),t++,e.appendChild(HC(i+"_"+t,vu,$,"filmstrip",a)),t++,i?e.appendChild(HC(i+"_"+t,vu,oe,"arrow-up",a)):e.appendChild(HC(i+"_"+t,vu,ee,"user-plus",a)),t++,e.appendChild(HC(i+"_"+t,vu,te,"user-times",a)),t++,e.appendChild(HC(i+"_"+t,vu,Zi[i].access_token?Ct:It,"key",a)),document.getElementById("stream_table_user").appendChild(e);NC()}function HC(e,t,a,n,i){return(Tu=document.createElement("td")).setAttribute("id",RC[4]+e),Tu.setAttribute(a_,t),Tu.className="stream_cell",Tu.innerHTML='
'+a+"
",Tu}function NC(){np(function(){LC||(A_(),LC=!0,zC(),pf()),R_(RC[5]),OC=BC=!1})}function PC(){for(var e=0;e
'+t[1]+'
'+t[5]+'
'+t[2]+'
'+t[6]+'
'+t[3]+'
'+t[4]+"
"}function pT(){np(function(){if(QS?Sf(f_):(A_(),jS?X_(B+($S?A:F)+q+S):(QS=!0,gT(),Sf(f_),pf()),R_(ZS[10]),eT=!1),0"+Re+on+on+cn+sn+Le+on+sn+Oe+on+sn+Be+on+sn+qe+on+sn+Me+on+Fe+on+sn+Ae+on+sn+Ne+on+Pe+on+sn+ze+on+sn+De+on+sn+Je+on+""+on+dn+ke+"",mn=dn+kn+we+"",hn=cn+on+Ue+on+(Fl?Ve:on+'
'+tn+"
")+""+on+dn+Ge+""+nn+on+on+Xe+on+je+on+on+rn+Ye+""+cn+sn+Ke+on+sn+We+on+sn+Ze+on+sn+Qe+on+sn+$e+on+sn+et+on+dn+ke+"",vn=dn+e+""+dn+Ie+""+cn+sn+tt+on+sn+at+on+sn+_t+on+sn+ft+""+dn+Ee+""+cn+sn+nt+on+sn+it+on+sn+ot+on+sn+st+dn+xe+""+cn+sn+dt+on+sn+rt+on+sn+ct+on+sn+lt+on+sn+ut+dn+ke+"",gn=dn+Ce+""+mt+on,wn=on+dn+ht+""+cn+sn+vt+on+on+dn+wn+""+on+on+ke+"",yn=yt+on+sn+bt.replace("link_link",'
http://tiny.cc/twitchkeycode
')+on+sn+wt+on+sn+kt+on+sn+Et+on+sn+xt}function xn(){Lu=!1,document.getElementById("side_panel").style.width="17%",t="Refresh and back to top",a="Search",n="Settings",e="Controls",i="About",o="Hide",s="The text you entered is empty.",d="The search result is empty.",r="Switch screen",c="Switch user screen",l="Switch Past Broadcast and Highlight",u="Switch Period (24h, 7d, 30d, all)",_="Go to ",f="User ",p="Live",m="Games",h="Playing ",v=" for ",g="Watching time ",y="Since ",b=" ago",w="A Game",k="Type your search...",E="Type your authentication key...",x="Type your user name...",I="Press Enter or Select key to, ",C="Channels",S="Channel",T="Back to previously screen (Return)",R=" has ended",L="This video is only available to subscribers.",O="Connection failed, unable to load content hit refresh to try again",B="No",q=" for this ",M="Connection failed, unable to load video content exiting...",F=" Past Broadcast",A=" Highlight",H=" Clips",N=" Content",P="Streamed on ",z="Duration ",D=" Views",J=" Viewers",U="Click again to exit!",V="Do you wanna to exit Twitch?",G="Exit",X="Close",j="Minimize",Y="Cancel",K="Not Live | ",W=" Channels Live",Z=" Hosts Live",Q=" Games Live",$=" Followed Channels",ee=" Add User",te=" Remove User",ae="User doesn't exist",ne=" hosting ",ie=" already set",oe="Make First",se=" (First user has it's content on SmartHub Preview, can Sub out side User screen when providing a key)",de="Add a Twitch user to display it's Followed Channels content here",re=" (24h)",ce=" (7d)",le=" (30d)",ue=" (all)",_e="Jumping",fe=" to ",pe="Jump Canceled",me=" , jump time bigger then duration",he=" Sec",ve=" Min",ge=" Hr",ye="Source",be="Version: ",we="Twitch.TV",ke="Press return key to close this.",Ee="Player Related:",xe="Chat Related:",Ie="General Related:",Ce="Update",Se="Current installed version ",Te=" latest available version ",Re="This are the none players related controls, the player can show it's own controls.",Le="Play a video: Navigate using Directional pad (up/down/left/right), Select or Play/Pause keys to start playing",Oe="Refresh screen content: Guide or info (Guide is channel press key on smart remote)",Be="Close the application: from Live screen press return to see the options",qe="Force close the application (in case it freezes or miss behave): Hold return key until it force closes (Works for any application on Samsung TV's)",Me=" Switch screen: Chanel Up (Move to right screen) or Chanel Down (Move to left screen)",Fe="Some screen will change its internal content (channel past broadcast or clips for example) instead of changing to another screen",Ae="Go back to Live from any screen: color button green (B)",He="Reload the app: First go back to Live after press color button green (B)",Ne="Start a search: color button blue (D) or open it from the Side panel",Pe="After setting up the search text press return or click on DONE and use the Directional pad (left/right) to chose the type of search then press Select or Play/Pause, Directional pad (up) goes back to edit the search text",ze="Controls list: color button yellow (C) or open it from the Side panel",De="Side panel: color button red (A)",Je="About this application open it from the Side panel",Ue="This is a unofficial Twitch.Tv application develop by a individual on his free time, for TV's that don't have access to a official application, released for free to any one that wanna to use it.",Ve="On 99% on the updates the app can update it self to add fixes and new featuring, the app will warn the user the day there is a need to update manually by reinstalling it via computer in the case you use a computer to install it.",tn="This version of the app is for test only, if you aren't testing please reinstall the app using the release version from https://github.com/fgl27/smarttv-twitch/releases in doubt check the README.md https://github.com/fgl27/smarttv-twitch",Ge="Developer information:",Xe="This is an open source application licensed under the GNU General Public License v3.0, check it on github",je="github.com/fgl27/smarttv-twitch",Ye="This application uses following dependencies:",Ke="Nightdev KapChat - KapChat captures Twitch chat directly into OBS or XSplit (https://www.nightdev.com/kapchat/)",We="Fontastic - Create your customized icon fonts in seconds (http://app.fontastic.me)",Ze="Twemoji - A simple library that provides standard Unicode emoji support across all platforms (https://github.com/twitter/twemoji)",Qe="UglifyJS - is a JavaScript parser, minifier, compressor and beautifier toolkit (https://github.com/mishoo/UglifyJS2)",$e="JS Beautifier - Beautify, unpack or deobfuscate JavaScript and HTML, make JSON/JSONP readable, etc. (https://github.com/beautify-web/js-beautify)",et="JSHint - A Static Code Analysis Tool for JavaScript (https://github.com/jshint/jshint)",tt="Show information panel: Select key if chat is showing or Directional pad (up/down/left/right) if not",at="Close the video: press return (click it twice under 3 seconds, click tree times if information panel or controls is open)",nt="Play/Pause a video: Play or Pause keys",it="Jump Forward/Backwards (not available for live streams): Open the information panel, Press Directional pad (right/left) to change time when satisfied press enter/select, for videos the jump step is crescent more click/hold will make the value to increase (15 seconds up to 30 minutes) stop clicking/releasing the key will restore the step size back to 15s, for clips the jump step is every 5 seconds",ot="Change video quality: Open information panel, , navigate using use Directional pad (left/right), then use Directional pad (up/down) to choose the new quality after press Select key to confirm the change",st="Force refresh a video (in case it freezes): press select key twice, it will change the video quality to the same you are current watching, by opening information panel (first click) after second click will start re-buffering",dt="Show or hide the Chat: Guide or info (Guide is channel press key on smart remote)",rt="Change Chat position (if chat it's showing and info panel is not): Chanel Up or Down",ct="Change Chat size (if chat it's showing and info panel is not): Directional pad (up/down)",lt="Change Chat background brightness (if chat it's showing and info panel is not): Directional pad (left/right)",ut="Force refresh the Chat (in case it freezes or doesn't load): Force refresh the video by pressing select key twice, it will change the video quality to the same you are current watching, by opening information panel (first click) after second click will start re-buffering and the chat will reload it self",_t='Start a search: Open information panel, navigate using use Directional pad (left/right) to "Search" and press select',ft='Open Channel or Game content: Open information panel, navigate using use Directional pad (left/right) to "Channel or Game content" and press select',pt="There is a update available, check it in the app github releases ",wn="Be aware that after the update (reinstall of the app using latest release) all saved users, keys or etc configuration of the app is lost",mt="A update is available, and the app can't self update this version ",ht="Major changes:",vt="Improves how the app runs in the background",gt="Adding a authentication key allows the app to fallow and access subscribed only past broadcast (for channel you are Sub to and block VOD access to none subscribers) for the chosen user, enter the authentication key for user ",yt=" below, fallowing this steps:",bt="Access the site link_link (using a computer or a smart phone)",wt='Click on the "Authorize" button it will take you to main Twitch.TV authentication site',kt="Login to Twitch.TV using the user name you are trying to add a key for",Et="Click on Authorize button of Twitch.TV site if you agree with the requested permissions",xt="The web page will update and show a key code, the key only has lower case letters and nubers.",It=" Add Authentication key",Ct="Key added OK",St="Key test fail, it's needed to add new one",Tt="Key test return OK",Rt="You try to add a key for user ",Lt=" but this key is for user ",Ot=" Following",Bt=" Follow",qt=" And you have not set a authentication key the app can't check yours sub status.",Mt=" And you are not a sub of this channel",Ft=" You are a sub of this channel but the app fail to authenticate contact the developer email in about",At="Fail authentication check with the provider key, please check and try again",Pa="The added key doesn't belong to the user ",Ht="No user",Nt="Set a user and a authentication key to be able to fallow/unfollow",Pt="Restart the",zt=" Clip",Dt="Channel content",Jt="Network is disconnect, the application can't work without INTERNET",Ut="Network connection reestablished",Vt=" Followers",Gt=", Can't fallow or unfallow ",Xt="Game content",jt="Yes",Yt="Are you sure you want to remove the user ",Kt="Press Up to ",Wt="Followed Games",Zt="Change between",Qt=" (Guide or Info)",$t=["Jan","Feb","Mar","Apr","May","June","July","Aug","Sept","Oct","Nov","Dec"],ea=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ta="Started ",aa=" (CH Up/Down)",na="Videos",ia=" Video",oa="Replay",sa="exiting in ",da='press "Return" to exit',ra="Featured",ca="Created at ",la="Open the Broadcast",ua="No Broadcast",_a="There is no Past Broadcast for this clip",fa="And because of that no chat",pa=" is now",ma="Open the Hosting",ha="Player related",va="Buffer size:",ga="A lower value here will make the player to start playing sooner, but it may cause re-buffer with will cause the player to pause to buffer.",ya="Live streams buffer",ba="Videos (Past Broadcast and Highlight) buffer",wa="Clips buffer",ka="General related",Ea="Language",xa="Chat: Connecting to chat history server.."+on+"Chat: Connected."+on+"Chat: Joined channel ",Ia="Play from the start or from where you stop watching last time?",Sa=(Ca="From:"+on)+"Start",Ta="Chat: The Chat has ended!",Ra=": Most recent",La=": Most views",Oa="Set a authentication key to be able to see fallowed videos",Ba="Switch Type (Most recent or views)",qa="Enable",Ma="Disable",Ka="The app was closed wiling playing, restoring playback",Fa="Restore playback",Aa="When changing apps, the app may be closed by the system to free memory. In this case the app saves what it was playing and restores the playback when reopened",Ha="Chat font size",Na="Change the chat lines font size, applies to text and emotes",za="Videos animated thumbnails",Da="Side panel",Ua="Size ",Va="Brightness ",Ga="Forbidden content, this Live must be for Prime only subscribers or lock to Twitch official app only",Xa="Jump step ",ja=" seconds",Ya=" minutes",Wa="Clock offset",Za="Application language",Qa="Content language",$a="All",en="Empty game fro this"}function In(){Lu=!0,document.getElementById("side_panel").style.width="21.5%",t="Atualizar e voltar pro topo",n="Configurações",a="Pesquisar",e="Controles",i="Sobre",o="Esconder",s="Nenhum texto foi inserido.",r="Trocar de tela",c="Trocar a tela de usuário",l="Transmissões Anteriores/Destaques",u="Período (24h, 7d, 30d, todos)",f="Usuário ",p="Ao Vivo",m="Jogos",h="Jogando ",g="Assistindo há ",y="Desde ",b=" atrás",w="Um jogo",k="Digite sua pesquisa...",E="Digite sua chave de autenticação...",x="Digite seu usuário...",I="Pressione a tecla enter ou selecionar para, ",C="Canais",S="Canal",T="Voltar (retornar)",R=" acabou",O="Não foi possível carregar. Atualize para tentar novamente.",M="Não foi possível carregar o conteúdo do vídeo, pois a conexão falhou, encerrando...",B="Não há",F=" Transmissões Anterior",A=" Destaque",H=" Clipes",N=" Conteúdo",P="Transmitido em ",z="Duração ",D=" Visualizações",J=" Espectadores",U="Pressione novamente para sair!",V="Quer sair do Twitch?",G="Sair",X="Fechar",j="Minimizar",Y="Cancelar",K="Retransmissão | ",W=" Canais Ao Vivo",Z=" Hosts Ao Vivo",Q=" Jogos Ao Vivo",ee=" Adicionar Usuário",te=" Remover Usuário",ae="Usuário inexistente",ne=" hospedando ",ie=" já configurado",oe="Tornar o Principal",se=" (O conteúdo do usuário principal aparece no SmartHub Preview e consegue seguir quando fornece uma chave de acesso)",ue=" (todos)",_e="Avançando",fe=v=" para ",pe="Slato cancelado",me=" , o tempo de salto é maior que a duração",he=" Seg",ve=" Min",ge=" H",ye="Original",be="Versão: ",we="Twitch.TV",ke="Pressione retornar para fechar este.",Ee="Relacionados ao Player:",xe="Relacionados ao Chat:",Ie="Gerais:",Ce="Atualização",Se="Versão Atual instalada ",Te=" última versão disponível ",Re="Estes controles não estão relacionados ao player. O player pode mostrar os seus controles.",Le="Reproduzir um Vídeo: Navegue usando as setas direcionais, pressione PLAY/PAUSE para reproduzir.",Oe="Atualizar Conteúdo: Pressione GUIDE ou INFO.",Be="Fechar: Durante uma transmissão, pressione retornar pra ver as opções",qe="Forçar Encerramento do aplicativo (caso necessário): Pressione retornar até o aplicativo seja encerrado.",Me="Alternar entre Telas: CH Cima (Tela da Direita) ou CH Baixo (Tela da Esquerda).",Fe="Algumas telas irão atualizar o conteúdo (como as Transmissões Anteriores, por exemplo), ao invés de mudarem completamente.",Ae="Voltar para Ao Vivo: Botão Verde (B)",He="Recarregue o aplicativo: Primeiro para a tela Ao Vivo apos pressione o botão verde ou (B)",Ne="Pesquisar: Botão Azul(D) ou a partir do painel lateral",Pe="Após inserir o conteúdo da busca, pressione retornar ou clique em CONCLUÍDO e use as Setas Direcionais (esquerda/direita) para escolher o tipo de busca. Pressione a tecla selecionar ou PLAY/PAUSE para confirmar.",ze="Controles: Botão Amarelo (C) ou a partir do painel lateral",De="Painel lateral: Botão Vermelho (A)",Je="Sobre, abra a partir do painel lateral",Ue="Este é um aplicativo não oficial do Twitch.TV, desenvolvido por um individuo no seu tempo livre, feito para TVs que não possuem uma versão oficial. Seu uso é gratuito.",Ve="Em 99% das vezes, o aplicativo se atualizará sozinho para adicionar correções e novas funções. O aplicativo avisará ao usuário quando houver necessidade de ser atualizado manualmente (através de uma nova instalação pelo computador no caso ter ter usado o computar pra instalar).",tn="Esta versão do aplicativo é somente para teste. Se você não estiver testando, reinstale o aplicativo usando a versão desta pagina https://github.com/fgl27/smarttv-twitch/releases dúvidas consulte o README.md https://github.com/fgl27/smarttv-twitch",Ge="Sobre o Desenvolvedor:",Xe="Este é um aplicativo Open Source está licenciado sob a Licença Pública GNU v3.0. Confira no GitHub",je="github.com/fgl27/smarttv-twitch",Ye="Este aplicativo usa as seguintes dependências:",tt="Exibir Informações: Pressione a tecla selecionar caso o Chat esteja sendo exibido ou use as Setas Direcionais.",at="Fechar um vídeo: Pressione retornar duas vezes seguidas em menos de três segundos",nt="Pausar/Reproduzir: Pressione PLAY ou PAUSE.",it="Avançar/Retroceder (indisponível para Transmissões Ao Vivo): Abra o painel de informações, pressione Direcional (esquerda/direita) para mudar o tempo, quando satisfeito pressione enter/select, para vídeos o incremento de salto é crescente mais cliques/segurando fará o valor aumentar (15 segundos até 30 minutos) parar de clicar/solte a tecla irá restaurar o tamanho de volta para 15s, para clipes o passo de salto é a cada 5 segundos",ot="Alterar qualidade: Abra o Painel de Informações, use as Setas Direcionais (Cima/Baixo) para escolher a qualidade e pressione a tecla selecionar para alterar.",st="Forçar a atualização de um vídeo: Pressione a tecla selecionar duas vezes. A qualidade do vídeo continuará sendo a mesma, mas após o segundo clique, o vídeo será recarregado.",dt="Exibir/Esconder o Chat: GUIDE ou INFO.",rt="Posição do Chat (Se o chat esta visível): CH Para Cima ou Para Baixo.",ct="Tamanho do Chat (Se o chat esta visível): Setas Direcionais (cima/baixo).",lt="Brilho do Chat (Se o chat esta visível): Setas Direcionais (esquerda/direita).",ut="Forçar atualização do Chat (caso necessário): Pressione a tecla selecionar duas vezes. No primeiro clique, a qualidade continuará a mesma, mas após o segundo, o vídeo e o chat serão recarregados.",_t='Inicie uma pesquisa: abra o painel de informações, navegue usando o botão Direcional (esquerda / direita) para "Pesquisar" e pressione a tecla selecionar',ft='Abra o conteúdo do canal ou jogo: abra o painel de informações, navegue usando o botão direcional (esquerda / direita) para "Conteúdo do canal ou jogo" e pressione a tecla selecionar',pt="Tem um update disponível, verifique este na pagina github releases do aplicativo ",wn="Esteja ciente de que, após a atualização (reinstalação do aplicativo usando a versão mais recente), todos os usuários, chaves ou configuração do aplicativo salvas serão perdidos",mt="Há uma atualização disponível, mas o app não pôde ser atualizado automaticamente ",ht="Mudanças:",vt="Melhora a forma como o aplicativo é executado em segundo plano",gt="Adicionando uma chave de autenticação para um usuário, permite ao aplicativo seguir e assistir a transmissões anteriores reservadas somente para inscritos (Em canais que você é inscrito e bloqueião o conteudo para não inscritos), entre com a chave de autenticação do usuário ",yt=" abaixo seguidos os passos:",bt="Acesse o site link_link (usando um computador ou smart phone)",wt='Clique no botão "Authorize" assim vai abrir o site de autenticação do Twitch.TV',kt="Faço login no Twitch.TV usando o usuário que você esta tentando adicionar a chave",Et="Clique no botão de autorizar no site do Twitch.TV se você esta de acordo com as permissões",xt="A pagina vai atualizar e mostrar a chave de acesso esta só tem letra minuscula e números",It=" Adicione uma chave de autenticação",Ct="Chave adicionada OK",St="O teste da chave falhou, sera necessário adicionar uma nova",Tt="O teste da chave retornou OK",Rt="Você esta tentando adicionar uma chave para o usuário ",Lt=" mas esta é para o usuário ",Ot=$=" Seguindo",Bt=" Seguir",qt=" E você não definiu uma chave de autenticação, o aplicativo não pode verificar se é inscrito.",Mt=" E você não é um inscrito deste canal",Ft=" Você é um inscrito deste canal, mas o aplicativo falha ao tentar autenticar, contate o desenvolvedor através do e-mail no sobre",At="Falhou o teste com a chave do informada, verifique e tente novamente",Pa="A chave adicionada não pertence ao usuário ",Ht="Sem Usuário",Nt="Adicione um usuário e uma chave de autenticação para poder seguir ou deixar de seguir",Pt="Reinicie o",Dt="Conteúdo do canal",Jt="A rede esta desconectada, o aplicativo não funciona sem INTERNET",Ut="Conexão de rede restabelecida",Vt=" Seguidores",Gt=", Não é possível seguir ou deixar de seguir ",Xt="Conteúdo do jogo",jt="Sim",Yt="Tem certeza que deseja remover o usuário ",Kt="Pressione a tecla pra cima para ",Wt="Jogos seguidos",Zt="Troque entre",Qt=" (Guia ou Info)",$t=["Jan","Fev","Mar","Abr","Maio","Jun","Jul","Ago","Set","Out","Nov","Dez"],ea=["Dom","Seg","Terç","Qua","Qui","Sex","Sáb"],ta="Começou ",na="Vídeos",ia=" Vídeo",aa=" (CH Cima/Baixo)",sa="saindo em ",da='pressione "Retornar" para sair',ra="Destaques",ca="Criado em ",la="Abrir a Transmissão",ua="Sem Transmissão",_a="Não ha uma transmissão anterior para este clip",fa="E por isso não tem chat",pa=" esta agora ",ma="Abrir a hospedagem",ha="Relacionado ao player",va="Tamanho de buffer:",ga="Um valor baixo fará com que o video comece a rodar mais rápido, mas pode causar re-buffer o que pausa o video para fazer o buffer",ya="Buffer de transmissão Ao Vivo",ba="Buffer de video transmissão anteriores",wa="Buffer de clips",ka="Gerais",Ea="Linguá",xa="Chat: Conectando ao servidor de histórico do chat.."+on+"Chat: Conectado."+on+"Chat: Associado ao canal ",Ia="Rodar a partir o início ou de onde você parou de assistir pela última vez?",Sa=(Ca="A partir:"+on)+"Do começo",Ta="Chat: O Chat terminou!",Ra=": Mais recente",La=": Mais visto",Oa="Adicione uma chave de autenticação para poder ver vídeos seguidos",Ba="Troque o tipo (Mais recente ou visto)",qa="Ligado",Ma="Desligado",Ka="O aplicativo foi fechado durante a reprodução, restaurando a reprodução",Fa="Restaurar a reprodução",Aa="Ao trocar de aplicativo, o aplicativo pode ser encerrado pelo sistema para liberar memoria. Nesse caso, o aplicativo salva o que estava sendo reproduzido e restaura a reprodução quando reaberto",Ha="Tamanho da fonte do chat",Na="Alterar o tamanho da fonte das linhas do chat, aplica-se a texto e emotes",za="Miniaturas animadas dos vídeos",Da="Painel lateral",Ua="Tamanho ",Va="Brilho ",Ga="Conteúdo proibido, esta Live deve ser apenas para assinantes Prime ou bloqueada para apenas aplicativos oficiais do Twitch",Xa="Passo de pulo ",ja=" segundos",Ya=" Minutos",Wa="Compensação do relógio",Za="Linguá do aplicativo",Qa="Linguá do conteúdo",$a="Todas",en="Jogo vazio para este"}var Cn=427,Sn=428,Tn=458,Rn=19,Ln=415,On=10252,Bn=457,qn=37,Mn=39,Fn=38,An=40,Hn=13,Nn=403,Pn=404,zn=405,Dn=406,Jn=10009,Un=8,Vn=65385,Gn=65376,Xn=32,jn=46,Yn=0,Kn=5,Wn=1e4,Zn=0,Qn=!1,$n=!1,ei=!1,ti=!1,ai=!1,ni="",ii="",oi="https://fgl27.github.io/smarttv-twitch/release/githubio/login/twitch.html",si="zhd1wr8lxyz9snzo48rfb70r7vtod6",di="https://id.twitch.tv/oauth2/token?";function ri(){Qn=!1,du=eu,B_("top_bar_user","icon_center_focus"),Y_(),ni=document.querySelector("#oauth_input"),Ll.placeholder=E,L_("oauth_scroll"),M_("oauth_text",gt+Qi[CC].name+yn),ui()}function ci(){_i(),document.body.removeEventListener("keydown",li),q_("top_bar_user","icon_center_focus"),R_("oauth_scroll")}function li(e){if(!Qn&&!$n)switch(e.keyCode){case Jn:af()?tf():Q_()?Z_():(du=Zl,ci(),pf());break;case Cn:du=zl,ci(),pf();break;case Sn:du=Nl,ci(),pf();break;case Ln:case Rn:case On:case Hn:ui();break;case Nn:up(li);break;case Pn:ci(),xf();break;case zn:ef();break;case Dn:cu=du,du=Gl,ci(),pf()}}function ui(){document.body.removeEventListener("keydown",li),document.body.addEventListener("keydown",fi,!1),ni.addEventListener("input"),ni.addEventListener("compositionend"),Ll.placeholder=E,ni.focus(),$n=!0}function _i(){ni.blur(),document.body.removeEventListener("keydown",fi),document.body.addEventListener("keydown",li,!1),Ll.placeholder=I+E,window.setTimeout(function(){$n=!1},250)}function fi(e){if(!Qn)switch(e.keyCode){case Jn:Q_()?Z_():af()?tf():(du=Zl,ci(),pf());break;case jn:Ll.value="",e.preventDefault();break;case Gn:case Vn:""!==Ll.value&&null!==Ll.value&&(Zn=Ll.value,qi(),R_("oauth_scroll"),A_(),vi()),_i();break;case Un:Ll.value=Ll.value.slice(0,-1),e.preventDefault();break;case Xn:Ll.value+=" ",e.preventDefault()}}function pi(e,t,a,n){try{var i=new XMLHttpRequest,o=di+"grant_type=refresh_token&client_id="+encodeURIComponent(Yu)+"&client_secret="+encodeURIComponent(si)+"&refresh_token="+encodeURIComponent(Qi[e].refresh_token)+"&redirect_uri="+oi;i.open("POST",o,!0),i.timeout=Wn,i.ontimeout=function(){},i.onreadystatechange=function(){4!==i.readyState||(200===i.status?hi(i.responseText,e,a):mi(e,t,a,n))},i.send(null)}catch(n){mi(e,t,a)}}function mi(e,t,a,n){++t<10?pi(e,t,a):n&&n()}function hi(e,t,a){var n=JSON.parse(e);Qi[t].access_token=n.access_token,Qi[t].refresh_token=n.refresh_token,bo(),a&&a()}function vi(){try{var e=new XMLHttpRequest,t=di+"grant_type=authorization_code&client_id="+encodeURIComponent(Yu)+"&client_secret="+encodeURIComponent(si)+"&code="+encodeURIComponent(Zn)+"&redirect_uri="+oi;e.open("POST",t,!0),e.timeout=Wn,e.ontimeout=function(){},e.onreadystatechange=function(){4!==e.readyState||(200===e.status?bi(e.responseText):gi())},e.send(null)}catch(e){gi()}}function gi(){++Yn'+bn+H:"":''+bn+bn+na,(Ru=document.createElement("td")).setAttribute("id",Ho[8]+"y_"+r),Ru.className="stream_cell",Ru.innerHTML='
'+_+"
",d.appendChild(Ru);document.getElementById("stream_table_a_game").appendChild(d)}for(r=0;r'+bn+bn+Ot:''+bn+bn+(po()?Bt:Ht))}function es(){po()&&Qi[CC].access_token?zo?Ui():zi():(j_(Nt),window.setTimeout(function(){Ao&&du===Dl?j_(B+Q):Y_()},2e3))}function ts(){Io?1===Io?(du=iu,xu=ku,Go(),pf()):es():(du=nu,xu=ku,Go(),pf())}function as(){try{var e=new XMLHttpRequest;X_(Ro.length);var t=So+Mo;t&&Fo-1'+qx.parse(ld)+"",document.getElementById("stream_table_channel_content").appendChild(t),document.getElementById("stream_table_channel_content").appendChild(Ru),null!==dd){var n=JSON.parse(dd);if(null!==n.stream){var i=void 0!==Xs?gu+ne:"",o=n.stream;e.appendChild(Cd("0_"+a,o.channel.name,o.preview.template,qx.parse(o.channel.status),o.game,cf(JSON.stringify(o.stream_type))+i+o.channel.display_name,y+qv(o.created_at)+b+", "+v+df(o.viewers)+J,rf(o.video_height,o.average_fps,o.channel.language))),a++}else ad=!0}else ad=!0;e.appendChild(Sd("0_"+a,gu,gu+F,"movie-play")),a++,e.appendChild(Sd("0_"+a,gu,gu+H,"movie")),a<2&&(a++,e.appendChild(Mf(id[9]+"0_"+a))),document.getElementById("stream_table_channel_content").appendChild(e),(e=document.createElement("tr")).appendChild(Td("1_0",gu,gu,yu)),document.getElementById("stream_table_channel_content").appendChild(e),Ld()}function Cd(e,t,a,n,i,o,s,d){return ud=a.replace("{width}x{height}",e_),(Ru=document.createElement("td")).setAttribute("id",id[8]+e),Ru.setAttribute(n_,t),Ru.className="stream_cell",Ru.innerHTML='
'+bn+o+'
'+d+'
'+n+'
'+h+i+'
'+s+"
",Ru}function Sd(e,t,a,n){return(Ru=document.createElement("td")).setAttribute("id",id[8]+e),Ru.setAttribute(n_,t),Ru.className="stream_cell",Ru.innerHTML='
'+a+"
",Ru}function Td(e,t,a,n){return _d=n,(Ru=document.createElement("td")).setAttribute("id",id[8]+e),Ru.setAttribute(n_,t),Ru.className="stream_cell",Ru.innerHTML='
'+a+'
'+df(rd)+D+'
'+df(cd)+Vt+"
",Ru}function Rd(){ei?(M_("schannel_cont_heart",''),F_(id[3]+"1_0",gu+Ot)):(M_("schannel_cont_heart",''),po()?F_(id[3]+"1_0",gu+Bt):F_(id[3]+"1_0",gu+Gt))}function Ld(){ip(function(){od||(H_(),od=!0,""!==ud&&k_(document.getElementById(id[1]+"0_0"),ud,p_),k_(document.getElementById(id[1]+"1_0"),_d,f_),Bd(),L_(id[10]),mf()),Od(),Zs=!1})}function Od(){nd?Rd():po()?(ii=Eu,ai=!1,Ei()):(ei=!1,Rd())}function Bd(){B_(id[0]+js+"_"+(js?0:Ys),a_)}function qd(){tp(js+"_"+(js?0:Ys),id)}function Md(){if(js)po()&&Qi[CC].access_token?(ai=!1,ii=Eu,ei?Ri():Ci()):(j_(Nt),window.setTimeout(Y_,2e3));else{document.body.removeEventListener("keydown",Hd),R_(id[10]);var e=ad?1:0;Ys===0-e?(rh=document.getElementById(id[8]+js+"_"+Ys).getAttribute(n_),ch=document.getElementById(id[3]+js+"_"+Ys).textContent,Ph=-1!==ch.indexOf(ne)?(Rh=!0,ch=(Th=ch).split(ne)[1],Xs):Eu,_h=document.getElementById(id[5]+js+"_"+Ys).textContent.split(h)[1],Zf()):Ys===1-e?ur():Ys===2-e&&(cb=_w,Yb())}}function Fd(){fd={Main_selectedChannel_id:Eu,Main_selectedChannelLogo:yu,Main_selectedChannel:vu,Main_selectedChannelDisplayname:gu,ChannelContent_UserChannels:nd,Main_BeforeChannel:lu}}function Ad(){Eu=fd.Main_selectedChannel_id,yu=fd.Main_selectedChannelLogo,vu=fd.Main_selectedChannel,gu=fd.Main_selectedChannelDisplayname,nd=fd.ChannelContent_UserChannels,lu=fd.Main_BeforeChannel,fd={}}function Hd(e){if(!Zs&&!Xf())switch(Gf(),e.keyCode){case Jn:af()?tf():Q_()?Z_():(du=lu,lu=Nl,md(),Eu="",pf());break;case qn:js||(qd(),--Ys<0&&(Ys=ad?1:2),Bd());break;case Mn:js||(qd(),(ad?1:2)<++Ys&&(Ys=0),Bd());break;case Fn:case An:qd(),js=js?0:1,Bd();break;case Bn:case Tn:hd();break;case Ln:case Rn:case On:case Hn:Md();break;case Nn:up(Hd);break;case Pn:md(),xf();break;case zn:ef();break;case Dn:jk||(Fd(),cu=Yl),du=Gl,md(),pf()}}var Nd=0,Pd=0,zd=!1,Dd=0,Jd={},Ud=[],Vd=!1,Gd=0,Xd=5,jd=3500,Yd=0,Kd=0,Wd=0,Zd=!1,Qd=!1,$d="",er=["cv_thumbdiv","cv_img","cv_infodiv","cv_title","cv_streamon","cv_duration","cv_viwers","cv_quality","cv_cell","cvempty_","channel_vod_scroll","cv_game"],tr=!1,ar=!1,nr="",ir="",or="",sr="",dr="",rr="",cr=0,lr=!1;function ur(){du=Kl,!jk&&fd.Main_selectedChannel_id&&Ad(),vu!==nr&&(tr=!1),gf(),T_("label_switch","icon-switch",l+aa),F_("top_bar_user",gu),document.body.addEventListener("keydown",xr,!1),tr?(Of(Nd),F_("top_bar_game",ar?A:F),L_(er[10]),kr(),mf()):fr()}function _r(){tr&&Er(),vf(),document.body.removeEventListener("keydown",xr),R_(er[10])}function fr(){tr&&Er(),F_("top_bar_game",ar?A:F),R_(er[10]),A_(),Y_(),nr=vu,tr=!1,Sf("stream_table_channel_vod"),Jd={},Nd=Pd=Dd=Kd=Yd=0,zd=!(lr=!(Qd=!(Ud=[]))),U_(),pr(),mr()}function pr(){Rf(),Vd=!0,Gd=0,jd=3500}function mr(){try{var e=new XMLHttpRequest,t=Dd+Yd;t&&Kd-1',a+=on+xa+gu+" "+Hr,oc(a+="",0)),Ar=0,Fr=e._next,e.comments.forEach(function(e){a="",(n=e.message).hasOwnProperty("user_badges")&&n.user_badges.forEach(function(e){a+=''}),a+=''+e.commenter.display_name+": ",a+='',n.fragments.forEach(function(e){e.hasOwnProperty("emoticon")?a+='':a+=qx.parse(e.text)}),a+="",i?oc(a,e.content_offset_seconds):void 0!==Fr&&sc(a,e.content_offset_seconds)}),i&&Jr===t&&(dc(t),void 0!==Fr&&uc(t))}function oc(e,t){Br.push({time:t,message:e})}function sc(e,t){qr.push({time:t,message:e})}function dc(e){Dr||(Ir=window.setInterval(function(){lc(e),Tr.scrollTop=Tr.scrollHeight},250))}function rc(){Dr||(window.clearInterval(Rr),window.clearInterval(Ir),window.clearInterval(Cr),window.clearInterval(Sr))}function cc(){Jr=0,Dr=!1,Fr=null,rc(),Sf("chat_box"),Br=[],qr=[],zr=0}function lc(e){var t,a;if(zr",(t=document.createElement("div")).className="chat_line",t.innerHTML=i,Tr.appendChild(t),Dr=!0,Tr.scrollTop=Tr.scrollHeight,window.clearInterval(Ir),Ir=window.setInterval(function(){Tr.scrollTop=Tr.scrollHeight},250)}}function uc(e){Or=0,_c(e)}function _c(e){try{var t=new XMLHttpRequest;t.open("GET","https://api.twitch.tv/v5/videos/"+ir+"/comments?client_id="+Yu+(null!==Fr?"&cursor="+Fr:""),!0),t.timeout=1e4,t.ontimeout=function(){},t.onreadystatechange=function(){if(4===t.readyState){if(200===t.status)return void(Jr===e&&ic(t.responseText,e));Jr===e&&fc(e)}},t.send(null)}catch(t){Jr===e&&fc(e)}}function fc(e){Or++,Jr===e&&(Or";var t=document.createElement("div");t.className="chat_line",t.innerHTML=e,Tr.appendChild(t)}var mc=!1,hc=["f_thumbdiv","f_img","f_infodiv","f_displayname","f_streamtitle","f_streamgame","f_viwers","f_quality","f_cell","fempty_","featured_scroll"],vc=0,gc=0,yc=!1,bc=0,wc={},kc=!1,Ec=0,xc=5,Ic=3500,Cc=[],Sc=0,Tc=0,Rc=!1,Lc=0,Oc=!1,Bc=!1;function qc(){du=ou,B_("top_bar_featured","icon_center_focus"),document.body.addEventListener("keydown",Xc,!1),mc?(Of(vc),L_(hc[10]),V_(gc,vc,Pu,bc),mf()):Fc()}function Mc(){document.body.removeEventListener("keydown",Xc),q_("top_bar_featured","icon_center_focus"),R_(hc[10])}function Fc(){R_(hc[10]),A_(),Y_(),mc=!1,Sf("stream_table_featured"),Bc=!(Rc=!(Cc=[])),Lc=vc=gc=bc=Tc=Sc=0,yc=!(wc={}),U_(),Ac(),Hc()}function Ac(){Rf(),kc=!0,Ec=0,Ic=3500}function Hc(){try{var e=new XMLHttpRequest,t=bc+Sc;e.open("GET","https://api.twitch.tv/kraken/streams/featured?limit="+Nu+"&offset="+t+(po()&&Qi[CC].access_token?"&oauth_token="+Qi[CC].access_token:"")+"&"+Math.round(1e7*Math.random()),!0),e.timeout=Ic,e.setRequestHeader(Wu,$u),e.setRequestHeader(Ku,Yu),e.ontimeout=function(){},e.onreadystatechange=function(){if(4===e.readyState){if(200===e.status)return void Pc(e.responseText);Nc()}},e.send(null)}catch(e){Nc()}}function Nc(){++Ec
'+bn+ln+"
"),F_("side_panel_search",a),F_("side_panel_settings",n),F_("side_panel_about",i),F_("side_panel_controls",e),F_("side_panel_live",p),F_("side_panel_user",f),F_("side_panel_featured",ra),F_("side_panel_games",m),F_("side_panel_videos",na),F_("side_panel_clips",H),F_("side_panel_hide",o),F_("chanel_button",C),F_("game_button",m),F_("live_button",p),F_("exit_app_cancel",Y),F_("exit_app_close",X),F_("remove_cancel",Y),F_("remove_yes",jt),F_("exit_app_minimize",j),F_("main_dialog_exit_text",V),M_("dialog_controls_text",pn),F_("dialog_vod_text",Ia),M_("dialog_vod_start_text",Sa)}function T_(e,t,a){M_(e,'
'+bn+a+"
")}function R_(e){document.getElementById(e).classList.add("hide")}function L_(e){document.getElementById(e).classList.remove("hide")}function O_(e){return-1===document.getElementById(e).className.indexOf("hide")}function B_(e,t){document.getElementById(e).classList.add(t)}function q_(e,t){document.getElementById(e).classList.remove(t)}function M_(e,t){document.getElementById(e).innerHTML=t}function F_(e,t){document.getElementById(e).textContent=t}function A_(){Of(-1),L_("dialog_loading")}function H_(){R_("dialog_loading")}function N_(){window.clearTimeout(wu)}function P_(){wu=window.setTimeout(D_,6e3)}function z_(){P_(),L_("main_dialog_exit")}function D_(){N_(),R_("main_dialog_exit"),Zc=0,Il()}function J_(){return O_("main_dialog_exit")}function U_(){Sf("dialog_counter_text"),G_(0,0,0)}function V_(e,t,a,n){0'+e+""}function bf(e){return e=new Date(e),Lu?e.getDate()+" "+$t[e.getMonth()]+", "+e.getFullYear():$t[e.getMonth()]+" "+e.getDate()+", "+e.getFullYear()}function wf(){try{bu=webapis.network.addNetworkStateChangeListener(function(e){1===e||4===e?(Su=!0,K_()&&(j_(Ut),Tu&&pf(),Tu=!1),Gv()&&j_(Ut),window.setTimeout(Y_,1500)):(Su=!1,window.setTimeout(function(){Su||(j_(""),Uv(Jt))},5e3))})}catch(e){}}function kf(){try{webapis.network.removeNetworkStateChangeListener(bu)}catch(e){}}function Ef(){var e=null,t=null,a=null,n=null,i=0;try{e=tizen.application.getAppInfo().version,t=tizen.systeminfo.getCapability("http://tizen.org/feature/platform.version"),n=webapis.productinfo.getFirmware(),a=webapis.productinfo.getModel()}catch(e){}return null!==e&&null!==t&&null!==a&&null!==n&&(c_="APP "+be+(d_=e)+"."+(Fl?r_:'
TEST
')+on+"Tizen "+be+t+bn+bn+"|"+bn+bn+"TV: "+a+bn+bn+"|"+bn+bn+"FW: "+n+on,e=e.split("."),i=parseInt(e[0]+e[1]+e[2]),M_("dialog_about_text",mn+c_+hn),M_("dialog_update_text",gn+Se+d_+", "+Te+s_+on+wn),ihx&&wx()},1e4)}function Sf(e){for(e=document.getElementById(e);e.firstChild;)e.removeChild(e.firstChild)}function Tf(e){for(var t,a=0;a
'+a[3]+"
"}function Nf(e,t,a,n,i){return e
'+a[1]+'
'+a[5]+'
'+qx.parse(a[2])+'
'+h+a[3]+'
'+a[4]+"
"}function Df(e,t,a){return(Ru=document.createElement("td")).setAttribute("id",t[5]+e),Ru.setAttribute(n_,a[0]),Ru.className="stream_cell",Ru.innerHTML=Jf(e,t,a),Ru}function Jf(e,t,a){return Lf(t[1]+e,a[1]),'
'+a[0]+'
'+a[2]+"
"}function Uf(){mu=!0}function Vf(){pu=!0}function Gf(){pu=!1,window.setTimeout(Vf)}function Xf(){return!pu||!mu}function jf(e,t,a,n,i){B_(a[0]+e+"_"+t,a_),V_(t,e,n,i),Bf(e)?1Ah+(90
'+bn+p.toUpperCase()+"
"),Sf("stream_info_title"),fh=!1,document.getElementById("stream_info_icon").setAttribute("data-src",f_),F_("stream_info_name",Rh?Th:ch),jh.display_name=Rh?Th:ch,jh.name=rh,jh.id=Ph,jh.game=_h,jh.user=po()?CC:0,jh.Main_BeforeChannel=pp(lu),jh.Main_BeforeAgame=pp(uu),jh.screen=pp(du),localStorage.setItem("Play_Restore_value",JSON.stringify(jh)),localStorage.setItem("Play_WasPlaying",1),Rh=!1,Th="",Sf("dialog_buffer_play_percentage"),Oh=!1,L_("scene_channel_panel_bottom"),F_("stream_watching_time",g+Bv(xh=0)),F_("stream_live_time",y+Bv(0)+b),L_("chat_frame"),R_("chat_box"),R_("progress_bar_div"),Fg(1),Bh=sh=!(Em=-5),ph=3e3,Lh=!(Ym=wh=ih=Nh=0),nv(),Mm=window.setInterval(ov,6e4),qm=Lm,Wm=!(Hm=Am=Fm=eh=0),document.addEventListener("visibilitychange",av,!1),dh=!1,rv(),document.body.removeEventListener("keyup",Uf)}function av(){document.hidden?(Hv(),dh=!1,mm.src="about:blank",window.clearInterval(Mm),window.clearInterval(ah)):(Wm=!0,L_("scene2"),R_("scene1"),zv(),Zv(),window.setTimeout(function(){gx||Wm&&(ph=3e3,Oh=!(Ym=0),fh?ov():nv(),qm=Lm,rv(),Mm=window.setInterval(ov,6e4))},500))}function nv(){try{var t=new XMLHttpRequest;t.ontimeout=function(){},t.onreadystatechange=function(){if(4===t.readyState)if(200===t.status){var e=JSON.parse(t.responseText);null!==e.stream?(Ph=e.stream.channel._id,M_("stream_info_title",qx.parse(e.stream.channel.status)),_h=e.stream.game,hh=", ["+e.stream.channel.language.toUpperCase()+"]",F_("stream_info_game",h+_h+v+df(e.stream.viewers)+" "+J+hh),ym=e.stream.channel.logo,fh=!0,dv(document.getElementById("stream_info_icon"),ym),Gm=e.stream.created_at,po()?(ai=!0,ii=Ph,Ei()):Pv(),jh.game=_h,localStorage.setItem("Play_Restore_value",JSON.stringify(jh))):Wm&&(Lh=!1,Jg())}else iv()},t.open("GET","https://api.twitch.tv/kraken/streams/"+Ph+"?"+Math.round(1e7*Math.random()),!0),t.timeout=ph,t.setRequestHeader(Wu,$u),t.setRequestHeader(Ku,Yu),t.send(null)}catch(e){iv()}}function iv(){++Ym'),M_("fallow_text",bn+Ot)):(M_("fallow_heart",''),M_("fallow_text",bn+Bt))}function Kg(e){ug()?lg():Tg()&&!Yv()?(qg(),Xv()):eg()&&!Nb()?e?gb():tg():Nb()&&Yv()?(Hb(),hb(!1),Av()):Yv()?(jv(),dg(),ip(e?mb:Mv)):(Gv()&&Vv(),Xv())}function Wg(e){if(qm!==Bm)switch(e.keyCode){case Jn:Yv()?(jv(),dg(),ip(Mv)):Xv()}else switch(e.keyCode){case Bn:case Tn:rg()||Tg()?(dg(),Dm=!1,localStorage.setItem("ChatEnable","false")):(sg(),Dm=!0,localStorage.setItem("ChatEnable","true"));break;case Cn:rg()&&(wm++,gg());break;case Sn:rg()&&(wm--,gg());break;case qn:!eg()&&rg()?((xm-=.05)<.05&&(xm=.05),hg(!0)):eg()?(xg(),5<++lh&&(lh=1),Eg(),ng(),ig()):Tg()?(qg(),Og(),--vh<(Rh?1:2)&&(vh=3),Lg()):ag();break;case Mn:!eg()&&rg()?(1.05<(xm+=.05)&&(xm=1.05),hg(!0)):eg()?(xg(),--lh<1&&(lh=5),Eg(),ng(),ig()):Tg()?(qg(),Og(),3<++vh&&(vh=Rh?1:2),Lg()):ag();break;case Fn:eg()?(0Ah+(90cb.ItemsLimit?e=cb.ItemsLimit:cb.dataEnded=!0,e){var t=Math.ceil(e/cb.ColoumnsCount),a=cb.row_id+t;for(cb.row_id;cb.row_id
'+i+'
'+o+"
",Ru}function nw(e,t,a,n,i,o,s,d,r,c,l,u,_,f,p,m){var h=tw(e,t,a,n);return Ru.setAttribute("id",a[8]+h),Ru.setAttribute(n_,JSON.stringify([l,c,s[2],u,i,_,f,p,m,s[0],r,s[1]+s[2]])),Ru.innerHTML='
'+i+'
'+r+'
'+o[0]+o[1]+'
'+z+Ov(c)+'
'+s[0]+on+s[1]+s[2]+'
'+d+D+"
",Ru}function iw(e){ip(function(){cb.status?(Tf(cb.img_404),V_(cb.posX,cb.posY,cb.ColoumnsCount,cb.itemsCount)):(H_(),e?j_(cb.empty_str()):(cb.status=!0,Tf(cb.img_404),ow(),mf()),L_(cb.ids[10]),cb.FirstLoad=!1)})}function ow(){cb.addFocus(cb.posY,cb.posX,cb.ids,cb.ColoumnsCount,cb.itemsCount),cb.posY+cb.ItemsReloadLimit>cb.itemsCount/cb.ColoumnsCount&&cb.data_cursorcb.data.length&&!cb.dataEnded&&!cb.loadingData&&(Zb(),Qb())}function sw(e,t){tp(cb.posY+"_"+cb.posX,cb.ids),cb.posY+=e,cb.posX=t,ow()}function dw(e){af()?tf():Q_()?Z_():(du=e===cb.screen?Nl:e,Kb(),pf())}function rw(e){for(var t=0;tthis.MaxOffset&&(this.dataEnded=!0),this.url=this.base_url+"&offset="+this.offset},concatenate:function(e){if(this.data){var t=JSON.parse(e);this.MaxOffset=this.data._total,this.data=this.data.concat(t.top),this.offset=this.data.length,this.offset>this.MaxOffset&&(this.dataEnded=!0),cb.loadingData=!1}else this.data=JSON.parse(e),this.MaxOffset=this.data._total,this.data=this.data.top,this.offset=this.data.length,this.offset>this.MaxOffset&&(this.dataEnded=!0),this.loadDataSuccess(),cb.loadingData=!1},label_init:function(){B_("top_bar_game","icon_center_focus")},label_exit:function(){q_("top_bar_game","icon_center_focus")},key_refresh:Wb,key_exit:function(){dw(du===ru||ru===Dl||ru===Gl?Nl:ru)},key_channelup:function(){ru=this.screen,du=tu,Kb(),pf()},key_channeldown:function(){ru=this.screen,du=ou,Kb(),pf()},key_play:function(){ku=document.getElementById(this.ids[5]+this.posY+"_"+this.posX).getAttribute(n_),document.body.removeEventListener("keydown",lw),uu=this.screen,du=Dl,Do=!(fu=!0),Kb(),pf()},key_yellow:ef,key_green:function(){Kb(),xf()},addCell:function(e){cb.idObject[e.game._id]||(cb.itemsCount++,cb.idObject[e.game._id]=1,cb.row.appendChild(aw(cb.row_id,cb.coloumn_id,cb.ids,e.game.box.template.replace("{width}x{height}",t_),e.game.name,df(e.channels)+" "+C+v+df(e.viewers)+J)),cb.coloumn_id++)}},Iw),Sw)).set_ThumbSize()}function Bw(){(mw=jb(mw=jb({ids:Xb("UserGames"),table:"stream_table_user_games",screen:Vl,isLive:!0,OldUserName:"",base_url:"https://api.twitch.tv/api/users/",set_url:function(){this.offset&&this.offset+hw>this.MaxOffset&&(this.dataEnded=!0),this.url=this.base_url+encodeURIComponent(Qi[CC].name)+"/follows/games",this.isLive?this.url+="/live?limit=750":this.url+="?limit="+hw+"&offset="+this.offset},concatenate:function(e){if(this.data){var t=JSON.parse(e);this.MaxOffset=this.data._total,this.data=this.data.concat(t.follows),this.offset=this.data.length,this.offset>this.MaxOffset&&(this.dataEnded=!0),cb.loadingData=!1}else this.data=JSON.parse(e),this.MaxOffset=this.data._total,this.data=this.data.follows,this.offset=this.data.length,this.isLive?this.dataEnded=!0:this.offset>this.MaxOffset&&(this.dataEnded=!0),this.loadDataSuccess(),cb.loadingData=!1},label_init:function(){T_("label_switch","icon-switch",c),T_("label_refresh","icon-refresh",Zt+Q+"/"+Wt+Qt),B_("top_bar_user","icon_center_focus"),this.OldUserName!==Qi[CC].name&&(this.status=!1),this.OldUserName=Qi[CC].name,M_("top_bar_user",f+yf(Qi[CC].name+" "+(this.isLive?Q:Wt)))},label_exit:function(){T_("label_refresh","icon-refresh",t+Qt),q_("top_bar_user","icon_center_focus"),F_("top_bar_user",f),T_("label_switch","icon-switch",r)},key_refresh:function(){this.isLive=!this.isLive,M_("top_bar_user",f+yf(Qi[CC].name+" "+(this.isLive?Q:Wt))),Wb(),localStorage.setItem("user_Games_live",this.isLive?"true":"false"),zC()},key_exit:function(){dw(Zl)},key_channelup:function(){ru=this.screen,du=po()&&Qi[CC].access_token?su:Ql,Kb(),pf()},key_channeldown:function(){ru=this.screen,du=Ul,Kb(),pf()},key_play:function(){ku=document.getElementById(this.ids[5]+this.posY+"_"+this.posX).getAttribute(n_),document.body.removeEventListener("keydown",lw),uu=this.screen,du=Dl,Do=!(fu=!0),Kb(),pf()},key_yellow:ef,key_green:function(){Kb(),xf()},addCell:function(e){var t=this.isLive?e.game:e;cb.idObject[t._id]||(cb.itemsCount++,cb.idObject[t._id]=1,cb.row.appendChild(aw(cb.row_id,cb.coloumn_id,cb.ids,t.box.template.replace("{width}x{height}",t_),t.name,this.isLive?df(e.channels)+" "+C+v+df(e.viewers)+J:"")),cb.coloumn_id++)}},Iw),Sw)).set_ThumbSize()}var qw=0,Mw=0,Fw=!1,Aw=0,Hw={},Nw=[],Pw=!1,zw=0,Dw=5,Jw=3500,Uw=0,Vw=0,Gw=!1,Xw=!1,jw="",Yw=!1,Kw=!1,Ww=!1,Zw=["sc_thumbdiv","sc_img","sc_infodiv","sc_displayname","sc_cell","scempty_","search_channel_scroll"];function Qw(){du=$l,jk=Kw=!0,jw!==Vk&&(Xw=!1),gf(),M_("top_bar_user",a+yf(C+" '"+Vk+"'")),document.body.addEventListener("keydown",fk,!1),Xw?(Of(qw),L_(Zw[6]),V_(Mw,qw,Gu,Aw)):tk()}function $w(){vf(),document.body.removeEventListener("keydown",fk),R_(Zw[6])}function ek(){pf()}function tk(){R_(Zw[6]),A_(),Y_(),jw=Vk,Xw=!1,Sf("stream_table_search_channel"),Hw={},qw=Mw=Aw=Vw=Uw=0,Fw=!(Ww=!(Yw=!(Nw=[]))),U_(),ak(),nk()}function ak(){Rf(),Pw=!0,zw=0,Jw=3500}function nk(){try{var e=new XMLHttpRequest,t=Aw+Uw;t&&Vw-1'+va+'
'+ga+"
",e="buffer_live",HE.push(e),t+=UE(e,ya),e="buffer_vod",HE.push(e),t+=UE(e,ba),e="buffer_clip",HE.push(e),t+=UE(e,wa),e="chat_font_size",HE.push(e),M_("settings_main",t+=VE(e,Ha,Na)),NE=HE.length}function JE(e,t){return'
'+t+"
"}function UE(e,t){return'
'+t+'
'+YE(e)+'
'}function VE(e,t,a){return'
'+t+'
'+a+'
'+YE(e)+'
'}function GE(e,t,a){M_(e+"_name",t+'
'+a+"
")}function XE(){var e="";for(e in F_("setting_title_general",ka),F_((e="clock_offset")+"_name",Wa),F_((e="general_lang")+"_name",Za),F_((e="content_lang")+"_name",Qa),FE[e].values[0]=$a,F_(e,YE(e)),F_("setting_title_play",ha),F_("setting_title_buffers",va),F_("setting_title_buffers_summary",ga),F_((e="buffer_live")+"_name",ya),F_((e="buffer_vod")+"_name",ba),F_((e="buffer_clip")+"_name",wa),GE(e="restor_playback",Fa,Aa),FE[e].values=[Ma,qa],GE(e="chat_font_size",Ha,Na),F_((e="videos_animation")+"_name",za),FE[e].values=[Ma,qa],FE)FE.hasOwnProperty(e)&&F_(e,YE(e))}function jE(){for(var e in FE)FE[e].defaultValue=parseInt(localStorage.getItem(e))||FE[e].defaultValue,FE[e].defaultValue-=1;$h(),ox(),aT=WE("videos_animation"),Ou=KE("content_lang")}function YE(e){return FE[e].values[WE(e)]}function KE(e){return FE[e].set_values[WE(e)]}function WE(e){return FE[e].defaultValue}function ZE(e){return FE[e].values.length-1}function QE(e){var t=HE[ME];B_(t,"settings_value_focus"),B_(t+"_div","settings_div_focus"),tx(e)}function $E(){var e=HE[ME];document.getElementById(e+"arrow_left").style.opacity="0",document.getElementById(e+"arrow_right").style.opacity="0",q_(e,"settings_value_focus"),q_(e+"_div","settings_div_focus")}function ex(e){var t=HE[e];localStorage.setItem(t,WE(t)+1),F_(t,YE(t)),tx(e),ax(e)}function tx(e){var t=HE[e],a=WE(t),n=ZE(t);document.getElementById(t+"arrow_right").style.opacity=0/g,">"),function(e){var t=function(e){for(var t=e.indexOf(d)<0?e.replace(s,""):e,a=[],n=0,i=0,o=0;o':e})},replace:t},a=/(?:\ud83d[\udc68\udc69])(?:\ud83c[\udffb-\udfff])?\u200d(?:\u2695\ufe0f|\u2696\ufe0f|\u2708\ufe0f|\ud83c[\udf3e\udf73\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e[\uddb0-\uddb3])|(?:\ud83c[\udfcb\udfcc]|\ud83d[\udd74\udd75]|\u26f9)((?:\ud83c[\udffb-\udfff]|\ufe0f)\u200d[\u2640\u2642]\ufe0f)|(?:\ud83c[\udfc3\udfc4\udfca]|\ud83d[\udc6e\udc71\udc73\udc77\udc81\udc82\udc86\udc87\ude45-\ude47\ude4b\ude4d\ude4e\udea3\udeb4-\udeb6]|\ud83e[\udd26\udd35\udd37-\udd39\udd3d\udd3e\uddb8\uddb9\uddd6-\udddd])(?:\ud83c[\udffb-\udfff])?\u200d[\u2640\u2642]\ufe0f|(?:\ud83d\udc68\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d[\udc68\udc69]|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\u2764\ufe0f\u200d\ud83d\udc68|\ud83d\udc68\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d[\udc68\udc69]|\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83c\udff3\ufe0f\u200d\ud83c\udf08|\ud83c\udff4\u200d\u2620\ufe0f|\ud83d\udc41\u200d\ud83d\udde8|\ud83d\udc68\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83d\udc6f\u200d\u2640\ufe0f|\ud83d\udc6f\u200d\u2642\ufe0f|\ud83e\udd3c\u200d\u2640\ufe0f|\ud83e\udd3c\u200d\u2642\ufe0f|\ud83e\uddde\u200d\u2640\ufe0f|\ud83e\uddde\u200d\u2642\ufe0f|\ud83e\udddf\u200d\u2640\ufe0f|\ud83e\udddf\u200d\u2642\ufe0f)|[\u0023\u002a\u0030-\u0039]\ufe0f?\u20e3|(?:[\u00a9\u00ae\u2122\u265f]\ufe0f)|(?:\ud83c[\udc04\udd70\udd71\udd7e\udd7f\ude02\ude1a\ude2f\ude37\udf21\udf24-\udf2c\udf36\udf7d\udf96\udf97\udf99-\udf9b\udf9e\udf9f\udfcd\udfce\udfd4-\udfdf\udff3\udff5\udff7]|\ud83d[\udc3f\udc41\udcfd\udd49\udd4a\udd6f\udd70\udd73\udd76-\udd79\udd87\udd8a-\udd8d\udda5\udda8\uddb1\uddb2\uddbc\uddc2-\uddc4\uddd1-\uddd3\udddc-\uddde\udde1\udde3\udde8\uddef\uddf3\uddfa\udecb\udecd-\udecf\udee0-\udee5\udee9\udef0\udef3]|[\u203c\u2049\u2139\u2194-\u2199\u21a9\u21aa\u231a\u231b\u2328\u23cf\u23ed-\u23ef\u23f1\u23f2\u23f8-\u23fa\u24c2\u25aa\u25ab\u25b6\u25c0\u25fb-\u25fe\u2600-\u2604\u260e\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262a\u262e\u262f\u2638-\u263a\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267b\u267f\u2692-\u2697\u2699\u269b\u269c\u26a0\u26a1\u26aa\u26ab\u26b0\u26b1\u26bd\u26be\u26c4\u26c5\u26c8\u26cf\u26d1\u26d3\u26d4\u26e9\u26ea\u26f0-\u26f5\u26f8\u26fa\u26fd\u2702\u2708\u2709\u270f\u2712\u2714\u2716\u271d\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u2764\u27a1\u2934\u2935\u2b05-\u2b07\u2b1b\u2b1c\u2b50\u2b55\u3030\u303d\u3297\u3299])(?:\ufe0f|(?!\ufe0e))|(?:(?:\ud83c[\udfcb\udfcc]|\ud83d[\udd74\udd75\udd90]|[\u261d\u26f7\u26f9\u270c\u270d])(?:\ufe0f|(?!\ufe0e))|(?:\ud83c[\udf85\udfc2-\udfc4\udfc7\udfca]|\ud83d[\udc42\udc43\udc46-\udc50\udc66-\udc69\udc6e\udc70-\udc78\udc7c\udc81-\udc83\udc85-\udc87\udcaa\udd7a\udd95\udd96\ude45-\ude47\ude4b-\ude4f\udea3\udeb4-\udeb6\udec0\udecc]|\ud83e[\udd18-\udd1c\udd1e\udd1f\udd26\udd30-\udd39\udd3d\udd3e\uddb5\uddb6\uddb8\uddb9\uddd1-\udddd]|[\u270a\u270b]))(?:\ud83c[\udffb-\udfff])?|(?:\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc65\udb40\udc6e\udb40\udc67\udb40\udc7f|\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc73\udb40\udc63\udb40\udc74\udb40\udc7f|\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc77\udb40\udc6c\udb40\udc73\udb40\udc7f|\ud83c\udde6\ud83c[\udde8-\uddec\uddee\uddf1\uddf2\uddf4\uddf6-\uddfa\uddfc\uddfd\uddff]|\ud83c\udde7\ud83c[\udde6\udde7\udde9-\uddef\uddf1-\uddf4\uddf6-\uddf9\uddfb\uddfc\uddfe\uddff]|\ud83c\udde8\ud83c[\udde6\udde8\udde9\uddeb-\uddee\uddf0-\uddf5\uddf7\uddfa-\uddff]|\ud83c\udde9\ud83c[\uddea\uddec\uddef\uddf0\uddf2\uddf4\uddff]|\ud83c\uddea\ud83c[\udde6\udde8\uddea\uddec\udded\uddf7-\uddfa]|\ud83c\uddeb\ud83c[\uddee-\uddf0\uddf2\uddf4\uddf7]|\ud83c\uddec\ud83c[\udde6\udde7\udde9-\uddee\uddf1-\uddf3\uddf5-\uddfa\uddfc\uddfe]|\ud83c\udded\ud83c[\uddf0\uddf2\uddf3\uddf7\uddf9\uddfa]|\ud83c\uddee\ud83c[\udde8-\uddea\uddf1-\uddf4\uddf6-\uddf9]|\ud83c\uddef\ud83c[\uddea\uddf2\uddf4\uddf5]|\ud83c\uddf0\ud83c[\uddea\uddec-\uddee\uddf2\uddf3\uddf5\uddf7\uddfc\uddfe\uddff]|\ud83c\uddf1\ud83c[\udde6-\udde8\uddee\uddf0\uddf7-\uddfb\uddfe]|\ud83c\uddf2\ud83c[\udde6\udde8-\udded\uddf0-\uddff]|\ud83c\uddf3\ud83c[\udde6\udde8\uddea-\uddec\uddee\uddf1\uddf4\uddf5\uddf7\uddfa\uddff]|\ud83c\uddf4\ud83c\uddf2|\ud83c\uddf5\ud83c[\udde6\uddea-\udded\uddf0-\uddf3\uddf7-\uddf9\uddfc\uddfe]|\ud83c\uddf6\ud83c\udde6|\ud83c\uddf7\ud83c[\uddea\uddf4\uddf8\uddfa\uddfc]|\ud83c\uddf8\ud83c[\udde6-\uddea\uddec-\uddf4\uddf7-\uddf9\uddfb\uddfd-\uddff]|\ud83c\uddf9\ud83c[\udde6\udde8\udde9\uddeb-\udded\uddef-\uddf4\uddf7\uddf9\uddfb\uddfc\uddff]|\ud83c\uddfa\ud83c[\udde6\uddec\uddf2\uddf3\uddf8\uddfe\uddff]|\ud83c\uddfb\ud83c[\udde6\udde8\uddea\uddec\uddee\uddf3\uddfa]|\ud83c\uddfc\ud83c[\uddeb\uddf8]|\ud83c\uddfd\ud83c\uddf0|\ud83c\uddfe\ud83c[\uddea\uddf9]|\ud83c\uddff\ud83c[\udde6\uddf2\uddfc]|\ud83c[\udccf\udd8e\udd91-\udd9a\udde6-\uddff\ude01\ude32-\ude36\ude38-\ude3a\ude50\ude51\udf00-\udf20\udf2d-\udf35\udf37-\udf7c\udf7e-\udf84\udf86-\udf93\udfa0-\udfc1\udfc5\udfc6\udfc8\udfc9\udfcf-\udfd3\udfe0-\udff0\udff4\udff8-\udfff]|\ud83d[\udc00-\udc3e\udc40\udc44\udc45\udc51-\udc65\udc6a-\udc6d\udc6f\udc79-\udc7b\udc7d-\udc80\udc84\udc88-\udca9\udcab-\udcfc\udcff-\udd3d\udd4b-\udd4e\udd50-\udd67\udda4\uddfb-\ude44\ude48-\ude4a\ude80-\udea2\udea4-\udeb3\udeb7-\udebf\udec1-\udec5\uded0-\uded2\udeeb\udeec\udef4-\udef9]|\ud83e[\udd10-\udd17\udd1d\udd20-\udd25\udd27-\udd2f\udd3a\udd3c\udd40-\udd45\udd47-\udd70\udd73-\udd76\udd7a\udd7c-\udda2\uddb4\uddb7\uddc0-\uddc2\uddd0\uddde-\uddff]|[\u23e9-\u23ec\u23f0\u23f3\u267e\u26ce\u2705\u2728\u274c\u274e\u2753-\u2755\u2795-\u2797\u27b0\u27bf\ue50a])|\ufe0f/g,s=/\uFE0F/g,d=String.fromCharCode(8205);return e;function t(e,t){return String(e).replace(a,t)}}(),Mx=0,Fx=0,Ax=!1,Hx=0,Nx=!1,Px=0,zx=5,Dx=3500,Jx=[],Ux=0,Vx=!1,Gx=!1,Xx="",jx=!1,Yx=!1,Kx=["uc_thumbdiv","uc_img","uc_infodiv","uc_displayname","uc_cell","ucempty_","user_channels_scroll"];function Wx(){du=Ql,Kw=!1,T_("label_switch","icon-switch",c),B_("top_bar_user","icon_center_focus"),M_("top_bar_user",f+yf(Qi[CC].name+$)),document.body.addEventListener("keydown",rI,!1),Xx!==Qi[CC].name&&(Gx=!1),Gx?(Of(Mx),L_(Kx[6]),V_(Fx,Mx,Gu,Hx),mf()):Qx()}function Zx(){q_("top_bar_user","icon_center_focus"),document.body.removeEventListener("keydown",rI),F_("top_bar_user",f),T_("label_switch","icon-switch",r),R_(Kx[6])}function Qx(){R_(Kx[6]),A_(),Y_(),Xx=Qi[CC].name,Gx=!1,Sf("stream_table_user_channels"),Mx=Fx=Hx=Ux=0,Yx=!(jx=Ax=!1),U_(),Jx=[],$x(),eI()}function $x(){Rf(),Nx=!0,Px=0,Dx=3500}function eI(){try{var e=new XMLHttpRequest;e.open("GET","https://api.twitch.tv/kraken/users/"+encodeURIComponent(Qi[CC].id)+"/follows/channels?limit=100&offset="+Ux+"&sortby=created_at&"+Math.round(1e7*Math.random()),!0),e.timeout=Dx,e.setRequestHeader(Wu,$u),e.setRequestHeader(Ku,Yu),e.ontimeout=function(){},e.onreadystatechange=function(){if(4===e.readyState){if(200===e.status)return void aI(e.responseText);tI()}},e.send(null)}catch(e){tI()}}function tI(){++Px'+Qi[i].name+N+(i?"":se)+"",document.getElementById("stream_table_user").appendChild(n),document.getElementById("stream_table_user").appendChild(Ru),(e=document.createElement("tr")).appendChild(NC(i+"_"+t,gu,W,"play",a)),t++,e.appendChild(NC(i+"_"+t,gu,Z,"users",a)),t++,e.appendChild(NC(i+"_"+t,gu,mw.isLive?Q:Wt,"gamepad",a)),t++,e.appendChild(NC(i+"_"+t,gu,na,"movie-play",a)),t++,e.appendChild(NC(i+"_"+t,gu,$,"filmstrip",a)),t++,i?e.appendChild(NC(i+"_"+t,gu,oe,"arrow-up",a)):e.appendChild(NC(i+"_"+t,gu,ee,"user-plus",a)),t++,e.appendChild(NC(i+"_"+t,gu,te,"user-times",a)),t++,e.appendChild(NC(i+"_"+t,gu,Qi[i].access_token?Ct:It,"key",a)),document.getElementById("stream_table_user").appendChild(e);PC()}function NC(e,t,a,n,i){return(Ru=document.createElement("td")).setAttribute("id",LC[4]+e),Ru.setAttribute(n_,t),Ru.className="stream_cell",Ru.innerHTML='
'+a+"
",Ru}function PC(){ip(function(){OC||(H_(),OC=!0,DC(),mf()),L_(LC[5]),BC=qC=!1})}function zC(){for(var e=0;e
'+t[1]+'
'+t[5]+'
'+t[2]+'
'+t[6]+'
'+t[3]+'
'+t[4]+"
"}function mT(){ip(function(){if($S?Tf(p_):(H_(),YS?j_(B+(eT?A:F)+q+S):($S=!0,yT(),Tf(p_),mf()),L_(QS[10]),tT=!1),0