if("undefined"==typeof mm_simple_compilation){function psdgetgetpsd(e,t){t=t||window.location.href,e=e.replace(/[\[\]]/g,"\\$&");var i=new RegExp("[?&]"+e+"(=([^]*)|&|#|$)").exec(t);return i?i[2]?decodeURIComponent(i[2].replace(/\+/g," ")):"":null}function getDevice(){var e={};return e.agent=navigator.userAgent,e.mobile=is_MobileDevice(e.agent),e}function is_MobileDevice(e){return-1!=e.indexOf("iPhone")||-1!=e.indexOf("iPod")||-1!=e.indexOf("iPad")||-1!=e.indexOf("Android")}mm_simple_compilation="15-01-2024 13:07:20","true"==psdgetgetpsd("tplib")&&(tplib=!0),function(e){null==e.psd&&(e.psd={}),null==e.psd.framework&&(e.psd.framework={}),null==e.psd.framework.events&&(e.psd.framework.events={}),null==e.psd.framework.parser&&(e.psd.framework.parser={}),null==e.psd.framework.mediator&&(e.psd.framework.mediator={}),null==e.psd.framework.mediator.jsonp&&(e.psd.framework.mediator.jsonp={}),null==e.psd.framework.utils&&(e.psd.framework.utils={}),e.psd.framework.debug=!1,-1!=e.location.href.indexOf("mm_debug")&&(e.psd.framework.debug=!0)}(window),function(){null==window.psd&&(window.psd={}),null==window.psd.framework&&(window.psd.framework={});var e,a=navigator.userAgent,t=!0,o=/msie/i.test(a),n=/.NET/i.test(a),d=/chrome/i.test(a),s=/safari/i.test(a)&&!d,r=/iphone/i.test(a),l=/ipad/i.test(a),c=/android/i.test(a),p=/opera/i.test(a),m=/firefox/i.test(a),u=/gecko\//i.test(a),g=/seamonkey\//i.test(a),_=/version\/(\d+(\.\d+)?)/i;checkWIN7orHigher=function(e){var t=window.navigator.userAgent.match(/NT [0-9.]+/g),a="";if(null==t)return!1;for(t=t[0],i=0;i=t})).length===s.length?e:(n.forEach(function(t,e){d=o.filter(function(e){return-1!==e.indexOf(t)}),i=i.replace(d,"").replace(/(,,\/)|(,\/)|(\/,)/g,"/").replace(/,,/g,",").replace(/(,,\.mp4)/g,",.mp4")}),i)}var FlashDetect=new function(){var c=this;function p(e){var t=-1;try{t=new ActiveXObject(e)}catch(e){}return t}c.release="1.0.2",c.installed=!1,c.major=-1,c.minor=-1,c.revision=-1,c.revisionStr="",c.activeXVersion="";var m=[{name:"ShockwaveFlash.ShockwaveFlash.7",version:function(e){return i(e)}},{name:"ShockwaveFlash.ShockwaveFlash.6",version:function(e){var t="6,0,21";try{e.AllowScriptAccess="always",t=i(e)}catch(e){}return t}},{name:"ShockwaveFlash.ShockwaveFlash",version:function(e){return i(e)}}],i=function(e){var t=-1;try{t=e.GetVariable("$version")}catch(e){}return t};c.majorAtLeast=function(e){return c.major>=e},c.FlashDetect=function(){if(navigator.plugins&&0}/g,_IdMedia)).replace(/{<-%MESSAGE%->}/g,_message),"undefined"!=typeof _cover&&""!=r)g=g.replace(/{<-%COVER%->}/g,_cover);else{var i=g.indexOf("<<"),a=g.indexOf(">>");g=g.replace(/{<-%COVER%->}/g,g.substr(i+2,a-(i+2)))}if(checkDomain(URL_EMBED_PLAYER)){i=g.indexOf("\x3c!--{{"),a=g.indexOf("}}--\x3e");var o=g.substr(i,a+6-i),n=g.substr(i+6,a-(i+6));g=g.replace(o,n)}_.innerHTML=g}else 1==e.result.parserResult.code&&l()}function o(e){l()}var c="/psdmedia/media/simple/skinsInfoPanel/{UDN}/assets/template.html",p="/psdmedia/media/simple/skinsInfoPanel/{UDN}/assets/style.css",m=t,u=e;"diario_as"==m?v?l(!0):(function(){c=c.replace("{UDN}",m);var e=new psd.framework.Parser,t=new psd.framework.Mediator,i=u?u+c:c;t.corsIE(!0),t.addEventListener(psd.framework.MediatorEvent.MEDIATE_COMPLETE,a,this),t.addEventListener(psd.framework.MediatorEvent.MEDIATE_ERROR,o,this),t.mediate(i,e,psd.framework.Mediator.RESPONSE_TEXT)}(),function(){p=p.replace("{UDN}",m);var e=document.createElement("link"),t=u?u+p:p;e.setAttribute("rel","stylesheet"),e.setAttribute("type","text/css"),e.setAttribute("href",t),void 0!==e&&document.getElementsByTagName("head")[0].appendChild(e)}()):l()}},psd.media.Lang=function(){var a={es:{contenido_no_disponible:"Contenido no disponible",trans_no_disponible:"No disponible para este dispositivo",trans_no_comenzado:"La retransmisión aún no ha comenzado",trans_reanudara:"La retransmisión se reanudará en breve",trans_finalizada:"La retransmisión ha finalizado",publicidad:"Publicidad",actualizar_plugin:"Necesitas actualizar tu plugin de Flash",no_mp4:"El navegador no admite vídeo HTML5/MP4",no_mp3:"El navegador no admite audio HTML5/MP3",geobloqueado:"Contenido no disponible en su zona geográfica",bloqueado:"Contenido compartido bloqueado",aun_no_disponible:"El contenido no está disponible todavía",no_disponible:"El contenido no está disponible",audio_geobloqueado:"Audio no disponible en su zona geográfica",audio_aun_no_disponible:"Audio no disponible todavía",audio_no_disponible:"Audio ya no disponible",audio_no_encontrado:"Audio no encontrado",necesita_plugin:"Necesita instalar el plugin de flash para ver este contenido",no_encontrado:"Contenido no encontrado",cerrar:"Cerrar",tamanio_real:"Tamaño real",ver_perfil_eskup:"Ver perfil en Eskup",teclear_usuario:"Tienes que teclear usuario y contraseña",error_correo:"El campo 'usuario' no parece un correo electrónico. Por favor, revísalo.",foto:"Foto",tamanio_ventana:"Tamaño ventana",ver_perfil_completo:"Ver perfil completo",avatar:"Avatar",ver_video:"Ver vídeo",vervideo_svg:"//ep00.epimg.net/reproductores/vervideo.svg",directo:"EMISIÓN EN DIRECTO",siguiente_noticia:"Siguiente noticia",anterior_noticia:"Noticia anterior",primera_noticia:"No hay noticia anterior",ultima_noticia:"No hay más noticias",contenido_no_disponible_as:"Este contenido tiene un vídeo que no está disponible en tu zona geográfica",politicas_yt:"Debe aceptar las políticas de Youtube para reproducir el contenido solicitado",aceptar_politicas_yt:"Aceptar las políticas de Youtube"},"es-ES":{contenido_no_disponible:"Contenido no disponible",trans_no_disponible:"No disponible para este dispositivo",trans_no_comenzado:"La retransmisión aún no ha comenzado",trans_reanudara:"La retransmisión se reanudará en breve",trans_finalizada:"La retransmisión ha finalizado",publicidad:"Publicidad",actualizar_plugin:"Necesitas actualizar tu plugin de Flash",no_mp4:"El navegador no admite vídeo HTML5/MP4",no_mp3:"El navegador no admite audio HTML5/MP3",geobloqueado:"Contenido no disponible en su zona geográfica",bloqueado:"Contenido compartido bloqueado",aun_no_disponible:"El contenido no está disponible todavía",no_disponible:"El contenido no está disponible",audio_geobloqueado:"Audio no disponible en su zona geográfica",audio_aun_no_disponible:"Audio no disponible todavía",audio_no_disponible:"Audio ya no disponible",audio_no_encontrado:"Audio no encontrado",necesita_plugin:"Necesita instalar el plugin de flash para ver este contenido",no_encontrado:"Contenido no encontrado",cerrar:"Cerrar",tamanio_real:"Tamaño real",ver_perfil_eskup:"Ver perfil en Eskup",teclear_usuario:"Tienes que teclear usuario y contraseña",error_correo:"El campo 'usuario' no parece un correo electrónico. Por favor, revísalo.",foto:"Foto",tamanio_ventana:"Tamaño ventana",ver_perfil_completo:"Ver perfil completo",avatar:"Avatar",ver_video:"Ver vídeo",vervideo_svg:"//ep00.epimg.net/reproductores/vervideo.svg",directo:"EMISIÓN EN DIRECTO",siguiente_noticia:"Siguiente noticia",anterior_noticia:"Noticia anterior",primera_noticia:"No hay noticia anterior",ultima_noticia:"No hay más noticias",contenido_no_disponible_as:"Este contenido tiene un vídeo que no está disponible en tu zona geográfica",politicas_yt:"Debe aceptar las políticas de Youtube para reproducir el contenido solicitado",aceptar_politicas_yt:"Aceptar las políticas de Youtube"},"es-MX":{contenido_no_disponible:"Contenido no disponible",trans_no_disponible:"No disponible para este dispositivo",trans_no_comenzado:"La retransmisión aún no ha comenzado",trans_reanudara:"La retransmisión se reanudará en breve",trans_finalizada:"La retransmisión ha finalizado",publicidad:"Publicidad",actualizar_plugin:"Necesitas actualizar tu plugin de Flash",no_mp4:"El navegador no admite vídeo HTML5/MP4",no_mp3:"El navegador no admite audio HTML5/MP3",geobloqueado:"Contenido no disponible en su zona geográfica",bloqueado:"Contenido compartido bloqueado",aun_no_disponible:"El contenido no está disponible todavía",no_disponible:"El contenido no está disponible",audio_geobloqueado:"Audio no disponible en su zona geográfica",audio_aun_no_disponible:"Audio no disponible todavía",audio_no_disponible:"Audio ya no disponible",audio_no_encontrado:"Audio no encontrado",necesita_plugin:"Necesita instalar el plugin de flash para ver este contenido",no_encontrado:"Contenido no encontrado",cerrar:"Cerrar",tamanio_real:"Tamaño real",ver_perfil_eskup:"Ver perfil en Eskup",teclear_usuario:"Tienes que teclear usuario y contraseña",error_correo:"El campo 'usuario' no parece un correo electrónico. Por favor, revísalo.",foto:"Foto",tamanio_ventana:"Tamaño ventana",ver_perfil_completo:"Ver perfil completo",avatar:"Avatar",ver_video:"Ver vídeo",vervideo_svg:"//ep00.epimg.net/reproductores/vervideo.svg",directo:"EMISIÓN EN DIRECTO",siguiente_noticia:"Siguiente noticia",anterior_noticia:"Noticia anterior",primera_noticia:"No hay noticia anterior",ultima_noticia:"No hay más noticias",contenido_no_disponible_as:"Este contenido tiene un vídeo que no está disponible en tu zona geográfica",politicas_yt:"Debe aceptar las políticas de Youtube para reproducir el contenido solicitado",aceptar_politicas_yt:"Aceptar las políticas de Youtube"},en:{contenido_no_disponible_as:"This content has a video that is not available in your geographic area"},ca:{contenido_no_disponible:"Contingut no disponible",trans_no_disponible:"Transmissió no disponible per a aquest dispositiu",trans_no_comenzado:"La retransmissió encara no ha començat",trans_reanudara:"La retransmissió es reprendrà aviat",trans_finalizada:"La retransmissió ha finalitzat",publicidad:"Publicitat",actualizar_plugin:"Necessites actualitzar el teu plugin de Flash",no_mp4:"El navegador no admet vídeo HTML5/MP4",no_mp3:"El navegador no admet HTML5/MP3",geobloqueado:"Contingut no disponible en la seva zona geogràfica",bloqueado:"Contingut compartit bloquejat",aun_no_disponible:"El contingut encara no està disponible",no_disponible:"El contingut no està disponible",audio_geobloqueado:"Áudio no disponible en la seva zona geogràfica",audio_aun_no_disponible:"Àudio no disponible encara",audio_no_disponible:"Àudio ja no disponible",audio_no_encontrado:"Áudio no trobat",necesita_plugin:"Necessita instal·lar el plugin de Flash per veure aquest contingut",no_encontrado:"Contingut no trobat",cerrar:"Tancar",tamanio_real:"Mida real",ver_perfil_eskup:"Veure perfil en Eskup",teclear_usuario:"Has de teclejar usuari i contrasenya",error_correo:"El camp 'usuari' no sembla un correu electrònic. Sisplau, revisa'l",foto:"Foto",tamanio_ventana:"Mida finestra",ver_perfil_completo:"Veure perfil complet",avatar:"Avatar",ver_video:"Veure Vídeo",vervideo_svg:"//ep00.epimg.net/reproductores/vervideo_ca.svg",directo:"EMISSIÓ EN DIRECTE",siguiente_noticia:"Propera notícia",anterior_noticia:"Notícia anterior",primera_noticia:"No hi ha notícia anterior",ultima_noticia:"No hi ha més notícies",contenido_no_disponible_as:"Aquest contingut ha un vídeo que no està disponible en la teva zona geogràfica",politicas_yt:"Heu d'acceptar les polítiques de Youtube per reproduir el contingut sol·licitat",aceptar_politicas_yt:"Acceptar les polítiques de Youtube"},"pt-br":{contenido_no_disponible:"Contenido não disponível",trans_no_disponible:"Indisponível para este dispositivo",trans_no_comenzado:"La retransmisión aún no ha comenzado",trans_reanudara:"La retransmisión se reanudará en breve",trans_finalizada:"La retransmisión ha finalizado",publicidad:"Publicidade",actualizar_plugin:"Você precisa atualizar seu plugin Flash",no_mp4:"O navegador não suporta vídeo HTML5/MP4",no_mp3:"O navegador não suporta HTML5/MP3",geobloqueado:"Contenido não disponível para sua região",bloqueado:"Contenido compartido bloqueado",aun_no_disponible:"O contenido ainda não está disponível",no_disponible:"O contenido não está disponível",audio_geobloqueado:"Audio no disponible en su zona geográfica",audio_aun_no_disponible:"Audio no disponible todavía",audio_no_disponible:"Audio ya no disponible",audio_no_encontrado:"Audio no encontrado",necesita_plugin:"Você precisa instalar o plugin flash para ver este conteúdo",no_encontrado:"Contenido não encontrado",cerrar:"Fechar",tamanio_real:"Tamanho real",ver_perfil_eskup:"Ver perfil em Eskup",teclear_usuario:"Digite usuário e senha",error_correo:"O campo 'usuário' não parece ser um e-mail. Por favor, verifique",foto:"Foto",tamanio_ventana:"Tamanho Janela",ver_perfil_completo:"Ver perfil completo",avatar:"Avatar",ver_video:"Ver vídeo",vervideo_svg:"//ep00.epimg.net/reproductores/vervideo_pt-br.svg",directo:"AO VIVO",siguiente_noticia:"Próxima notícia",anterior_noticia:"Notícias anteriores",primera_noticia:"Nenhuma notícia anterior",ultima_noticia:"Sem mais notícias",contenido_no_disponible_as:"Este conteúdo tem um vídeo que não está disponível na sua área geográfica"}},o=["À","Á","Â","Ã","Ä","à","á","â","ã","ä","È","É","Ê","Ë","è","é","ê","ë","Ì","Í","Î","Ï","ì","í","î","ï","Ò","Ó","Ô","Õ","Ö","ò","ó","ô","õ","ö","Ù","Ú","Û","Ü","ù","ú","û","ü","Ñ","ñ","Ç","ç"],n=["À","Á","Â","Ã","Ä","à","á","â","ã","ä","È","É","Ê","Ë","è","é","ê","ë","Ì","Í","Î","Ï","ì","í","î","ï","Ò","Ó","Ô","Õ","Ö","ò","ó","ô","õ","ö","Ù","Ú","Û","Ü","ù","ú","û","ü","Ñ","ñ","Ç","ç"];this.translate=function(e,t){return void 0===a[e]?"":null==a[e][t]?null!=a.es[t]?a.es[t]:"":a[e][t]},this.translateText=function(e,t){var i=t.match(/{{lang:[A-Za-z0-9\_\-]*}}/g);for(var a in i){var o=i[a].replace("{{lang:","").replace("}}","");t=t.replace(i[a],this.translate(e,o))}return t},this.addTranslation=function(e,t,i){a[e],a[e]={},a[e][t]=i},this.addTranslations=function(e){for(var t in e)for(var i in void 0===a[t]&&(a[t]={}),e[t])a[t][i]=e[t][i]},this.UNICODE=function(e){for(var t in o){var i=new RegExp(o[t],"g");e=e.replace(i,n[t])}return e},this.compatibility=function(e){var t;for(t in a)if(e==t)return!0;return!1}},psd.media.NextPanel=function(e,t,i,a,o){var s,r,l,c,p,m,u,g,_,v,f,E=this,h=e,y=i,b=o,n=!1,d="/psdmedia/media/simple/skinsNextPanel/{UDN}/assets/template.html",P="/psdmedia/media/simple/skinsNextPanel/{UDN}/assets/style.css";_CODE_NUM_PARSER_OK=0,_CODE_NUM_PARSER_ERROR=1;function M(e){var t=new Date;b=b+t.getTime()+"_"+Math.floor(1e3*Math.random()+1),e.result.parserResult.code==_CODE_NUM_PARSER_OK?s=e.result.parserResult.result.replace(/{<-%ID%->}/g,b):(e.result.parserResult.code,_CODE_NUM_PARSER_ERROR)}function w(e){}var T=t,R=a;!function(){d=d.replace("{UDN}",T);var e=new psd.framework.Parser,t=new psd.framework.Mediator,i=R?R+d:d;t.corsIE(!0),t.addEventListener(psd.framework.MediatorEvent.MEDIATE_COMPLETE,M,this),t.addEventListener(psd.framework.MediatorEvent.MEDIATE_ERROR,w,this),t.mediate(i,e,psd.framework.Mediator.RESPONSE_TEXT)}(),function(){P=P.replace("{UDN}",T);var e=document.createElement("link"),t=R?R+P:P;e.setAttribute("rel","stylesheet"),e.setAttribute("type","text/css"),e.setAttribute("href",t),void 0!==e&&document.getElementsByTagName("head")[0].appendChild(e)}(),this.showPanel=function(e,t,i,a,o){var n=document.getElementById(y);function d(e){return document.getElementById(e+b)}document.getElementById("mm_next_panel_"+b)||(elementHTML=document.createElement("div"),elementHTML.id="mm_next_panel_"+b,elementHTML.className="mm_nextpanel",elementHTML.style.display="none",elementHTML.innerHTML=s,n.appendChild(elementHTML)),r=d("mm_next_panel_"),l=d("mm_nextMedia_"),c=d("mm_repeatMedia_"),p=d("mm_nextTime_"),_=d("mm_nextThumb_"),v=d("mm_nextText_"),_.src=e,v.innerHTML=t,g=h,p.innerHTML=h,l.onclick=function(){E.killPanel(),i()},_.onclick=function(){f="nextThumb",E.killPanel(),i()},v.onclick=function(){f="nextText",E.killPanel(),i()},c.onclick=function(){f="repeatMedia",E.killPanel(),p.innerHTML=g,o()},m=function(){f="next_counter";var e=g;clearInterval(u),u=setInterval(function(){0!=e?(e--,p.innerHTML=e):(E.killPanel(),a())},1e3)},E.viewPanel()},this.viewPanel=function(e){n=!0,m(),r.style.display=""},this.isShowPanel=function(){return n},this.killPanel=function(){void 0!==r&&(r.style.display="none"),clearInterval(u),n=!1},this.eventAction=function(){return f}},function(e){function t(e,t){var w=this;psd.framework.EventDispatcher.call(this),this.className="psd.media.TopLauncher",_PROTOCOLO_HTTPS="https",_URL_HOST_HTTPS="https://topsslpl-a.akamaihd.net",_TYPE_FLASH="FLASH",_TYPE_IOS="IOS",_TYPE_UDS="UDS",VIDEO_MEDIA_TYPE="video",AUDIO_MEDIA_TYPE="audio",NAME_BITRATE="bitrate",NAME_HEIGHT="height",URL_ADBLOCK="/psdmedia/resources/js/psd/ima3.js",URL_LOGO_TOP="/psdmedia/resources/img/top50.png",URL_BACKGROUND="/psdmedia/resources/img/gradient.png",URL_PUBLI="/psdmedia/resources/js/psd/prisaAd.min.js",URL_TOP_PLAYER="/psdmedia/media/top/TopPlayer.min.js",URL_STATS="/psdmedia/resources/js/psd/statistics.top.min.js","undefined"!=typeof tplib&&(URL_TOP_PLAYER="/psdmedia/media/top/js/TopPlayer.lib.js",URL_STATS="/psdmedia/resources/js/psd/lib/statistics.lib.js",URL_PUBLI="/psdmedia/resources/js/psd/lib/prisaAd.lib.js"),"undefined"!=typeof topv&&(URL_TOP_PLAYER=URL_TOP_PLAYER+"."+topv),"undefined"!=typeof pubv&&(URL_PUBLI=URL_PUBLI+"."+pubv),"undefined"!=typeof statv&&(URL_STATS=URL_STATS+"."+statv),ERROR_PARSER="Error Code #2",ERROR_WS="Error Code #3",ERROR_CARGA_STATISTICS="Error Code #4",ERROR_CARGA_TOP_PLAYER="Error Code #5",ERROR_SERVICIO_MEDIA="Error_servicio_media",ID_PROVIDER_PRISADIGITAL=1,ID_PROVIDER_BRIGHTCOVE=2,ID_PROVIDER_GENERIC=3,ID_PROVIDER_TRITON=4,ID_PROVIDER_AKAMAIHD=5,ID_PROVIDER_YT=6,ID_PROVIDER_DM=7,ID_PROVIDER_VIMEO=8,ID_PROVIDER_HLS=9,ID_PROVIDER_TWITCH=10;var o="private";CONTROLLER_TYPE_AKAMAIHD="akamaihd",CONTROLLER_TYPE_AKAMAIHDS="akamaihds",CONTROLLER_TYPE_TRITON="triton",CONTROLLER_TYPE_HTML5NATIVE="html5native",CONTROLLER_TYPE_YT="youtube",CONTROLLER_TYPE_DM="dailymotion",CONTROLLER_TYPE_VIMEO="vimeo",CONTROLLER_TYPE_HLS="hls",CONTROLLER_TYPE_REAL_HLS="Realhls",_fullscreen=!1;var n,T,R,I,i,l,c,p,O,A,S,L=e,D=!1,d=t;this.url_FAPI="",this.data_FAPI={},this.init=function(){s.apply(this)},this.setEmbed=function(e){d=e},this.getEmbed=function(){return d};var s=function(){var o;if(void 0===L.topPlayer&&(L.topPlayer={}),void 0===L.topPlayer.media&&(L.topPlayer.media={}),R=new psd.media.TopWindowError({id_container:L.player.container,base:L.base,skin:L.skin.udn,width:L.player.width,height:L.player.height,secure:void 0,imgCover:L.topPlayer.media.imgCover?L.topPlayer.media.imgCover:""}),"undefined"!=typeof mm_base&&(1!=mm_base&&0!=mm_base||(mm_base="loc"),"string"==typeof mm_base&&function(e){var t;switch(e){case psd.media.LOCAL:L.base="",t="LOCAL";break;case psd.media.INTEGRACION:L.base="//playerint.top.prisasd.com",t="INTEGRACIÓN";break;case psd.media.PRODUCCION:L.base="//playertop.elpais.com",t="PRODUCCIÓN";break;default:t="URL BASE PERSONALIZADA: "+(L.base=e)}"undefined"!=typeof mm_simple_compilation?console.log("\nENTORNO "+t+"\nmm_simple_compilation: "+mm_simple_compilation+"\n"):console.log("\nENTORNO "+t+"\n")}(mm_base)),"undefined"!=typeof mm_publi&&(1!=mm_publi&&0!=mm_publi||(mm_publi="loc"),"string"==typeof mm_publi&&function(e){var t;switch(e){case psd.media.LOCAL:o="",t="PUBLICIDAD LOCAL";break;case psd.media.INTEGRACION:o="//playerint.top.prisasd.com",t="PUBLICIDAD INTEGRACIÓN";break;case psd.media.PRODUCCION:o="//playertop.elpais.com",t="PUBLICIDAD PRODUCCIÓN";break;default:t="PUBLICIDAD PERSONALIZADA: "+(o=e)}console.log("\nENTORNO "+t+"\n")}(mm_publi)),T=null!=L.base&&null!=L.base&&L.base,function(e){var t;for(t=0;t]*>?/g,""));try{if(O.id=a.idref,O.media={type:t,title:null!=a.name?a.name:"",desc:null!=a.description?a.description:"",author:null!=a.author?a.author:"",date:null!=a.created_at?a.created_at.split(" ")[0]:"",duration:null!=a.length?a.length:"",live:null!=a.islive&&a.islive,isDvr:null!=a.isdvr&&a.isdvr,time_shifting:null!=a.time_shifting&&a.time_shifting,cdn:{provider:""},tags:null!=a.tags?a.tags:void 0,idEmisoraPrincipal:null!=a.id_radio_station?a.id_radio_station:void 0,urlMosaic:a.url_mosaic,chapter:a.chapter,season:a.season,geo_location:a.geo_location,youtube_privacy_status:a.youtube_privacy_status,id_contract:null!=a.id_contract?a.id_contract:"",details:null!=a.details?a.details:null,tags_externals:null!=a.tags_externals?a.tags_externals:"",youtube_details:null!=a.youtube_details?a.youtube_details:null,daily_motion_details:null!=a.daily_motion_details?a.daily_motion_details:null,synchronized_object:null!=a.synchronized_object?a.synchronized_object:null,station_id:null!=a.station_id?a.station_id:""},L.ws.mediaType==AUDIO_MEDIA_TYPE?O.media.poster=null!=a.url_audio_still?a.url_audio_still:"":(O.media.poster=null!=a.url_video_still?a.url_video_still:"",void 0!==window.mm_poster&&""!=window.mm_poster&&(O.media.poster=window.mm_poster)),O.media.poster_thumbnail=null!=a.url_thumbnail?a.url_thumbnail:"",void 0!==O.topPlayer&&void 0!==O.topPlayer.media&&void 0!==O.topPlayer.media.custom_cover&&null!=O.topPlayer.media.custom_cover&&""!=O.topPlayer.media.custom_cover&&(O.media.poster=O.topPlayer.media.custom_cover,O.media.sizeimg=O.topPlayer.media.size_img,O.media.srcsetimg=O.topPlayer.media.srcset_img,O.media.loadingimg=O.topPlayer.media.loading_img),a.provider.id==ID_PROVIDER_AKAMAIHD?(O.media.cdn.provider=CONTROLLER_TYPE_AKAMAIHD,O.media.clipBegin="1418403600000",O.media.clipEnd="1418418900000",O.media.absolute=!0):O.media.cdn.provider=CONTROLLER_TYPE_AKAMAIHDS,O.id_provider=a.provider.id,O.id_external=a.id_external,7==O.id_provider);else if(0 tplib=true mm_debug=true mm_base="+window.mm_base,"background:#eb50d8;color:white;padding:5px;","background:gold;color:white;padding:5px;","background:#03a9f4;color:white;padding:5px;")),void 0!==psdgetgetpsd&&psdgetgetpsd("topv")&&(window.topv=psdgetgetpsd("topv")),void 0!==psdgetgetpsd&&psdgetgetpsd("pubv")&&(window.pubv=psdgetgetpsd("pubv")),void 0!==psdgetgetpsd&&psdgetgetpsd("statv")&&(window.statv=psdgetgetpsd("statv")),window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push(function(){-1"+o+"
"+n+"
"}},window.defined=function(e,t){return null==t?void 0!==e:void 0!==e&&void 0!==t&&"undefined"!=e[t]},v.doo=function(e,t,i,a){if("undefined"==typeof mm_no_playlist_cover&&v.searchForCss("posicionador"))if(v.getSettings().topPlayer.media.autoplay)"undefined"!=typeof mm_debug&&console.log("%cPlaylistCover: Tiene autoplay, con lo que no hacemos nada","background:gold;color:red;");else{"undefined"!=typeof mm_debug&&console.log("%cPlaylistCover: Existe la clase posicionador, con lo que no hacemos nada","background:gold;color:magenta;");var o=v.getSettings().id_container+"_base",n=v,d=v.getSettings().topPlayer.media.title,s=v.getSettings().topPlayer.ui.poster,r=v.getSettings().id_container+"_overimagen",l=v.getSettings().topPlayer.media.duration/1e3,c=Math.floor(l/3600);c<10&&(c="0"+c);var p=Math.floor(l/60);p<10&&(p="0"+p);var m=Math.floor(l%60);m<10&&(m="0"+m);var u=(0';e&&(d=e),t&&(s=t),i&&(g=i),a&&(d=v.getSettings().topPlayer.media.title,s=v.getSettings().topPlayer.ui.poster),donde=document.getElementById(o),div=document.createElement("div"),div.style.width="100%",div.style.height="100%",div.className="placeholder",div.id=r,div.innerHTML=g.replace(/{{TITLE}}/g,d).replace(/{{COVER_SRC}}/g,s).replace(/{{DURATION}}/g,u),div.style.position="absolute",div.onclick=function(){n.API.play(),this.style.display="none"};var _=document.getElementById(r);_&&(_.id=r+"_clear"),"undefined"!=typeof mm_debug&&console.log("%cPlaylistCover: Ponemos imagen encima del player de playlist","background:gold;color:magenta;"),donde.appendChild(div),_&&_.parentNode.removeChild(_),v.onCOREEVENT("play",function(){"undefined"!=typeof mm_debug&&console.log("%cPlaylistCover: Play en cover over playlist","background:gold;color:magenta;"),div.style.display="none"},"play_playlist_cover","funcionalidad ocultar imagen playlist TopEmbed:290")}else"undefined"!=typeof mm_debug&&console.log("%cPlaylistCover: No existe la clase posicionador","background:gold;color:red;")},function(){if("undefined"!=typeof mmm_cookiesync){var e="";if(void 0!==r&&(e=r.id_cuenta),"undefined"!=typeof mm_demo&&(e="demo"),""!=e){var t="//fapi-top.prisasd.com/short/"+e+"/accountstationid",i=new psd.framework.parser.JSONParser,a=new psd.framework.Mediator;a.corsIE(!0),onDataCompleteSSDD_CS=function(e){if((void 0===e.result.parserResult.result.success||0!=e.result.parserResult.result.success)&&e.result.parserResult.result.data[0].station_id){var t=e.result.parserResult.result.data[0].station_id;"undefined"!=typeof mm_demo&&(t=167083),""!=t&&function(n){if("audio"==r.media_type)switch(r.id_cuenta){case"elpais":case"diarioas":case"elcomidista":case"smoda":case"motor":case"verne":case"cincodias":case"retina":break;default:if("object"!=typeof tdIdsync)if("undefined"!=typeof Didomi){window.mm_didomi_cs_t=Didomi.getUserConsentStatusForVendor("239"),window.mm_didomi_cs_t?window.mm_didomi_cs_t=1:window.mm_didomi_cs_t=0;var e=window.cmpConsentString,t=window.mm_didomi_cs_t||!1,i=document.createElement("script");i.type="text/javascript",i.src="https://playerservices.live.streamtheworld.com/api/idsync.js?stationId="+n+"&gdpr="+t+"&gdpr_consent="+e,i.onload=function(){"undefined"!=typeof mm_demo&&mm_demo&&console.log("%cCookie Sync loaded","font-weight:bold;color:orange")};var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(i,a)}else window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push(function(e){e.getObservableOnUserConsentStatusForVendor("239").subscribe(function(e){void 0===e?window.mm_didomi_cs_t=!1:!0===e?window.mm_didomi_cs_t=!0:!1===e&&(window.mm_didomi_cs_t=!1);var t=window.cmpConsentString,i=window.mm_didomi_cs_t,a=document.createElement("script");a.type="text/javascript",a.src="https://playerservices.live.streamtheworld.com/api/idsync.js?stationId="+n+"&gdpr="+i+"&gdpr_consent="+t,a.onload=function(){"undefined"!=typeof mm_demo&&mm_demo&&console.log("%cCookie Sync loaded","font-weight:bold;color:orange")};var o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(a,o)})})}}(t)}},onDataErrorSSDD_CS=function(){},a.addEventListener(psd.framework.MediatorEvent.MEDIATE_COMPLETE,onDataCompleteSSDD_CS,this),a.addEventListener(psd.framework.MediatorEvent.MEDIATE_ERROR,onDataErrorSSDD_CS,this),a.mediate(t,i,psd.framework.Mediator.RESPONSE_JSON)}}}(),psd.framework.EventDispatcher.call(this),this.className="psd.media.TopEmbed",this.pluginsList={},this.plugins={},this.base="",URL_BASE_DEV="//webfastapi.top.des.prisadigital.int",URL_BASE_PRO="//fapi-top.prisasd.com",MEDIA_TYPE_VIDEO="video",MIN_PLAYER_WIDTH=320,ERROR_PARSER="Error Code #1",ERROR_SERVICIO_PLAYER="Error_servicio_player",ERROR_SERVICIO_MEDIA="Error_servicio_media",URL_EMBED_PLAYER="instanceplayer.prisasd.com";var c=r;this.iniSettings=c;var a,o,m,n,d,s,p=!1,u=!1;this.playList=void 0,emic.top.debug=function(e,t,i){if(emic.top.debugTop||function(e){var t=!1;if(void 0!==window.mm_debug&&""!=window.mm_debug&&0!=window.mm_debug&&"0"!=window.mm_debug){t=!0,window.mm_debug+="";var i=window.mm_debug.split("|");if(void 0!==e)for(var a in t=!1,e=e.split("|"))for(var o in i)e[a]!=i[o]&&"all"!=i[o]||(t=!0);else for(var o in t=!1,i)"all"==i[o]&&(t=!0)}return t}(i)){var a=new Date,o="%c ["+a.getHours()+":"+a.getMinutes()+":"+a.getSeconds()+"]%c"+e;"undefined"!=typeof mm_trace&&console.trace(),null!=typeof console&&(console.log?console.log(o,"background:gold","background:#fff09d",t||""):console.debug&&console.debug(o,"background:gold","background:#fff09d",t||""));var n=document.getElementById(emic.top.externalConsole);if(n){var d;if("object"==typeof t)for(var s in d="\n",t)d+=" --\x3e "+s+": "+t[s]+"\n";else d=null==t?"":t;n.innerHTML=n.innerHTML+"["+a.getHours()+":"+a.getMinutes()+":"+a.getSeconds()+"]"+e+d+"\n"}console.log("callee.caller: %c%s","background:tomato;border-radius:5px;margin-bottom:10px;color:white",void 0!==arguments.callee.caller?arguments.callee.caller.name:" ")}};var i=function(){(new psd.media.TopEmbedManager).addEmbed(this),this.removeEventListener(psd.media.TopEmbedEvent.EVENT_INI,i,this)};function g(){if(null!=c){if(psdgetgetpsd("mm_only")&&c.id_media!=psdgetgetpsd("mm_only"))return void console.log("IMA NO SE CARGA EL PLAYER "+c.id_media," solo se carga "+psdgetgetpsd("mm_only"));if(void 0!==c.player_dm&&(v.playerDM=c.player_dm),void 0!==c.country&&(mm_country=c.country),void 0!==c.playlist_dm&&(v.playlistDM=c.playlist_dm),void 0!==c.playlist_yt&&(v.playlistYT=c.playlist_yt),void 0!==c.disableRelatedVideosYoutube&&(v.disableRelatedVideosYoutube=c.disableRelatedVideosYoutube),void 0!==c.vp_container&&(v.vp_container=c.vp_container),void 0!==c.videopodcast&&c.videopodcast&&(v.videopodcast=!0),"undefined"!=typeof mm_disable_autoplay_safari&&1==mm_disable_autoplay_safari&&void 0!==c.topPlayer&&void 0!==c.topPlayer.media&&void 0!==c.topPlayer.media.autoplay&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&(console.log("SOY SAFARI -> DESACTIVAMOS AUTOPLAY"),c.topPlayer.media.autoplay=!1),"undefined"!=typeof mm_debug&&console.log("%cMMDEBUG::INIT","color:orange;",c),l="undefined"!=typeof JSON&&void 0!==JSON.parse&&void 0!==JSON.stringify?JSON.parse(JSON.stringify(c)):c,void 0!==psdgetgetpsd&&(psdgetgetpsd("mm_id_player")&&(c.id_player=psdgetgetpsd("mm_id_player")),psdgetgetpsd("mm_id_media")&&(c.id_media=psdgetgetpsd("mm_id_media")),psdgetgetpsd("mm_media_type")&&(c.media_type=psdgetgetpsd("mm_media_type")),psdgetgetpsd("mm_id_cuenta")&&(c.id_cuenta=psdgetgetpsd("mm_id_cuenta"))),void 0!==psdgetgetpsd&&psdgetgetpsd("mm_vars")){var e=psdgetgetpsd("mm_vars").split(";");for(var t in e){var i=e[t].split(":"),a=i[1];"true"==a?a=!0:"false"==a?a=!1:Number.isInteger(Number(a))&&(a=Number(a)),window[i[0]]=a}}if(void 0!==c.managerOpt&&null!==c.managerOpt){var o=new psd.media.TopEmbedManager,n=c.managerOpt;return delete c.managerOpt,void o.add(c,n,this)}if("object"==typeof c.playList&&""===c.playList.URL_list&&(c.playListBAK=c.playList,c.playList=!0),"boolean"==typeof c.playList&&!0===c.playList&&(this.addEventListener(psd.media.TopEmbedEvent.EVENT_INI,f,this),c.playList=""),"object"==typeof c.playList&&"{}"!=JSON.stringify(c.playList)){var d=r.playList;c.playList="",this.setPlayList(d,c)}else{if(null==c.id_container||null==c.id_container||""==c.id_container){var s="PLAYER_"+(parseInt(1e3*Math.random())+(new Date).getTime());document.write(""),c.id_container=s}p=null!=c.dev&&c.dev,b(),h.apply(this),y.apply(this)}}}function _(){null!=this.getSettings()&&!0===this.getSettings().isPlaylist&&(this.playList.destroyPlayLists(),this.playList=null,c.isPlaylist=!1,c.playlistUrl="")}void 0!==c&&("boolean"!=typeof e?void 0===c.managerOpt&&this.addEventListener(psd.media.TopEmbedEvent.EVENT_INI,i,this):e&&"undefined"!=c.managerOpt&&delete c.managerOpt),this.getManager=function(){return t},this.setManager=function(e){t=e};var f=function(){if(this.removeEventListener(psd.media.TopEmbedEvent.EVENT_INI,f,this),null!=this.getMediaPlayer&&null!=this.getMediaPlayer().getData&&null!=this.getMediaPlayer().getData().mediaData){var e=this.getMediaPlayer().getData().mediaData.tags.externals;if(0 %s","color:pink;background:purple",v.intervalElapsed)},5e3),v.midrollStarted=!0,v.midrollInterval=setInterval(function(){if("undefined"!=typeof _advert)if(v.getSettings().topPlayer.media.isLive){if("play"!=v.API.getStatus())return"undefined"!=typeof mm_debug&&console.log("%cMIDROLL: El contenido no está sonando. No hacemos nada","color:white;background:purple"),void(v.intervalElapsed=e);"undefined"!=typeof mm_debug&&console.log("%cMIDROLL: INTERVAL CUMPLIDO. Llamamos a midroll","color:white;background:purple"),v.getMediaPlayer().midroll(),v.intervalElapsed=e}else"undefined"!=typeof mm_debug&&console.log("%cMIDROLL: No es live. No hacemos nada","color:white;background:purple");else"undefined"!=typeof mm_debug&&console.log("%cMIDROLL: Adblock detectado. No hacemos nada","color:white;background:purple")},1e3*e)}else{if(!this.getSettings().topPlayer.media.isLive)return void("undefined"!=typeof mm_debug&&console.log("%cMIDROLL: No es live. No hacemos nada","color:white;background:purple"));if("pause"==v.API.getStatus()||"stop"==v.API.getStatus())return"undefined"!=typeof mm_debug&&console.log("%cMIDROLL: El contenido no está sonando. No hacemos nada","color:white;background:purple"),void(v.intervalElapsed=e);"undefined"!=typeof mm_debug&&console.log("%cMIDROLL: midroll automático sin intervalo","color:white;background:purple"),v.getMediaPlayer().midroll()}}else"undefined"!=typeof mm_debug&&console.log("%cMIDROLL: Adblock detectado. No hacemos nada","color:white;background:purple");else"undefined"!=typeof mm_debug&&console.log("%cMIDROLL: Midroll ya inicializado. No hacemos nada","color:white;background:purple")}},this.stopMidroll=function(){clearInterval(v.midrollInterval),clearInterval(v.midrollIntervalSeconds),v.midrollStarted=!1},"undefined"!=typeof mm_midroll_test&&("undefined"!=typeof mm_debug&&console.log("%cMIDROLL: Midroll test se activará en 10 segundos","color:white;background:purple"),setTimeout(function(){"undefined"!=typeof mm_debug&&console.log("%cMIDROLL: Creamos midroll de prueba con config seconds=60,repeat=false,only_pc=false,limit=null,force=false","color:white;background:purple"),v.startMidroll(60)},1e4)),void 0!==psdgetgetpsd&&1==psdgetgetpsd("mm_debug")){var i="color:#333;padding:5px 0;font-weight:bold;font-family:Arial;font-size:120%;";console.log("%cTopEmbed %c"+this.a_name+"%c loaded successfully! %c❤",i+"color:green;","color:#333",i+"color:green;","color:red;"),console.log("%cDo you need help? Type %cMM.player.API.man()%c in console to display the manual",i,i+"color:blue;font-weight:unset;",i)}generate_videopodcast(),v.runCOREEVENTS("init",this),this.onInit(this),this.dispatchEvent(new psd.media.TopEmbedEvent(psd.media.TopEmbedEvent.EVENT_INI,d)),"undefined"!=typeof mm_force_playlist&&2==mm_force_playlist&&(M.apply(this),mm_force_playlist=1)}function R(e){var t={};t.errorType=e.data.errorType,this.dispatchEvent(new psd.media.TopEmbedEvent(psd.media.TopEmbedEvent.EVENT_ERROR,t))}function I(e){var t,i;i=9*(t=d.player.width]*>?/g,""),_[t].description=n}if(h)for(_play in E)y==_play&&(E[_play].resetData(_),E[_play].reDraw(),-1=_.length&&(d=_.length-1),c.index=d,m.id_media=_[d].idref}0==v?("object"!=typeof g&&(g=new psd.media.TopEmbed),void 0!==m.topPlayer&&void 0!==m.topPlayer.media&&(this.ancho=m.topPlayer.media.ancho,this.alto=m.topPlayer.media.alto),psdgetgetpsd("mm_pl")&&(console.log("mmpl leida playlist, cargamos player ",((new Date).getTime()-window.mm_pl_time)/1e3+" segundos"),window.mm_pl_time=(new Date).getTime()),g.init(m),g.addEventListener(psd.media.TopEmbedEvent.EVENT_INI,R,this)):R()}}var l}function l(e){void 0!==u[0]&&document.getElementById(u[0].id_container_playlist)&&(document.getElementById(u[0].id_container_playlist).className+=" mm_playlist_empty")}this.ancho=0,this.alto=0,this.getMediaTopEmbed=function(){return g},this.getMediaTopPlaylist=function(){return E},this.destroyPlayLists=function(){for(var e in E)"function"==typeof E[e].getTopPlaylist&&E[e].getTopPlaylist().destroyBasePlayList();s=!0},this.setPlayerSettings=function(e){t=e},this.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},this.init=function(){if(null!=u.skinPlaylist&&(u.styleItemsContainer=u.skinPlaylist,delete u.skinPlaylist),null==u.autoNext&&(u.autoNext=!0),null!=u.skin&&delete u.skin,null==u.repeat&&(u.repeat=2),null!=u.playListSkin&&""!=u.playListSkin||(void 0!==u.styleItemsContainer&&""!=u.styleItemsContainer?u.playListSkin="generica":u.playListSkin="vacia"),"vacia"==u.playListSkin&&(u.styleItemsContainer=""),"psd.media.TopEmbed"==m.className&&(g=m,m=void 0!==t?t:g.getSettings()),m.isPlaylist=!0,m.playlistUrl=c.URL_list,this.isArray(u)||(u=[u]),""==u[0].id_container_playlist||null==u[0].id_container_playlist){var e=m.id_container;b=document.getElementById(m.id_container),"vacia"==u[0].playListSkin?((P=document.createElement("div")).id=m.id_container+"__player",P.style.width="100%",P.style.height="100%",P.style.float="left",m.id_container=e+"__player",b.appendChild(P)):((P=document.createElement("div")).id=m.id_container+"__player",P.style.width="70%",P.style.height="100%",P.style.float="left",P.className="mm_container_p_p_player",(M=document.createElement("div")).id=m.id_container+"__playlist",M.style.width="30%",M.style.height="100%",M.style.float="left",M.className="mm_container_p_p_playlist",m.id_container=e+"__player",u[0].id_container_playlist=e+"__playlist",b.appendChild(P),b.appendChild(M),n=!0)}o=new psd.framework.parser.JSONParser,(a=new psd.framework.Mediator).corsIE(!0),psdgetgetpsd("mm_pl")&&(window.mm_pl_time=(new Date).getTime(),window.mm_pl_total=mm_pl_time,console.log("mmpl pedimos playlist"),document.body.style.background="gold"),a.addEventListener(psd.framework.MediatorEvent.MEDIATE_COMPLETE,r,this),a.addEventListener(psd.framework.MediatorEvent.MEDIATE_ERROR,l,this),a.mediate(u[v].URL_list,o,psd.framework.Mediator.RESPONSE_JSON),f=v};var T=function(e){h=!0,y=e,a.mediate(u[e].URL_list,o,psd.framework.Mediator.RESPONSE_JSON)};this.resetPlayList=function(e,t,i){u[e]=t,T(e),null!=i&&(w=[f,i])};var R=function(){if(!s)if(void 0!==u[v]){u[v].player=g,psdgetgetpsd("mm_pl")&&(console.log("mmpl posicionamos playlist ",((new Date).getTime()-window.mm_pl_time)/1e3+" segundos"),window.mm_pl_time=(new Date).getTime());var e=new psd.media.TopPlaylist(i);null!=u[v].playerPercent&&(d=u[v].playerPercent),e.addEventListener(psd.media.PlaylistEvent.DATA_COMPLETE,function(e){v==u.length-1&&n&&(_fullscreen||i.resize_16_9(d,!0))}),(E[v]=e).setData(_),e.init(u[v],v),++v ⇥ ",t.appendChild(e),e.onclick=function(){var e=document.getElementById("psdInfo2Manager"),t=document.getElementById("psdInfo2ManagerBut"),i=document.getElementById("psdInfo2ManagerButTxt");"300px"==e.style.width?(e.style.width="30px",t.style.right="0px",i.innerHTML=" ⇤ "):(e.style.width="300px",t.style.right="300px",i.innerHTML=" ⇥ ")},this.elemsMgr){var a=document.getElementById(this.elemsMgr[i].confs.id_container);a.style.outline="7px solid red",a.onmouseover=function(){var e=document.getElementById("divInfo_"+this.id);e.style.backgroundColor="red",e.style.color="white"},a.onmouseout=function(){var e=document.getElementById("divInfo_"+this.id);e.style.backgroundColor="",e.style.color=""},e=document.createElement("div");var o=document.createElement("a");o.onclick=function(e){return function(){window.location.hash=e}}(this.elemsMgr[i].confs.id_container);var n=document.createElement("div");n.id="divInfo_"+this.elemsMgr[i].confs.id_container,n.style="border:thin solid black; margin: 10px;",n.innerHTML="** Sin TopEmbed **",o.innerHTML="("+i+") "+this.elemsMgr[i].confs.id_container+" ";var d=document.createElement("div");d.style="clear:both;";var s=a.getElementsByTagName("img");if(0';else r='';r+="- Width:"+s.getAttribute("width")+"
- Height:"+s.getAttribute("height")+"
",r+='',d.innerHTML=r}e.appendChild(o),e.appendChild(d),e.appendChild(n),t.appendChild(e)}setInterval(function(){info2Status.apply(_)},1e3)}},info2Status=function(){for(var e in this.elemsMgr){var t=this.elemsMgr[e].embed;if(""!=t&&t.isInitialized()){if(null==(i=document.getElementById("divInfo_"+t.getSettings().id_container)))var i=document.getElementById("divInfo_"+t.getSettings().id_container.replace("__player",""));null!=i&&(t.getMediaPlayer().getCurrentPosition()==emic.top.TopPlayer.POSITION_MEDIA?i.style.outline="5px solid red":i.style.outline="",i.innerHTML="- "+t.getMediaPlayer().getData().internalData.controllerName+"
- "+t.getMediaPlayer().getCurrentPosition()+"
- "+t.getMediaPlayer().getMediaModule().getStatus()+"
- "+t.getMediaPlayer().getAdModule().getStatus()+"
")}}},this.existsFPW=function(e){if(void 0!==e&&null!=e&&void 0!==e.plugins&&null!=e.plugins)for(var t in e.plugins)if("FloatingPlayerWidget"==e.plugins[t].type&&void 0!==e.plugins[t].conf&&null!=e.plugins[t].conf&&void 0!==e.plugins[t].conf.force_on_viewport&&1==e.plugins[t].conf.force_on_viewport)return!0;return!1},this.setCover=function(e,t){return void 0!==t&&""!=t?void 0!==e.topPlayer&&void 0!==e.topPlayer.media?(e.topPlayer.media.imgCover=t,_.existsFPW(e)||e.topPlayer.media.autoplay&&!getDevice().mobile?(e.topPlayer.media.cover=!1,""):(e.topPlayer.media.cover=!0,t)):t:""},this.setAutoplay=function(e,t,i){return void 0!==t&&""!=t&&(void 0===e.topPlayer&&(e.topPlayer={}),void 0===e.topPlayer.media&&(e.topPlayer.media={}),void 0!==i&&""!=i&&null!=i?_.existsFPW(e)||(e.topPlayer.media.autoplay=!0):e.topPlayer.media.autoplay=!getDevice().mobile),e},this.generateHTML=function(e,t){if(void 0===t||""==t||null==t)return!1;var i,a;for(var o in a=document.createDocumentFragment(),t){if(i=document.createElement(t[o].HTMLelement),void 0!==t[o].ClassName&&""!=t[o].ClassName&&(i.className=t[o].ClassName),void 0!==t[o].style&&""!=t[o].style)for(var n=String(t[o].style).split(";"),d=0;d "+(mm_pl_time-mm_pl_total)/1e3)},10)}this.prevOnclick=function(){--_current<0&&(_current=_total-1),this.loadMedia(_current,!0)},this.nextOnclick=function(){_total-1<++_current&&(_current=0),this.loadMedia(_current,!0)},this.nextAuto=function(){_total-1<++_current&&(_current=0),this.loadMedia(_current)},this.setSelected=function(e){if(e>=_elementos.length)_current=e;else{for(j=0;j<_elementos.length;j++)_elementos[j].noSelected();e<_elementos.length&&(_elementos[e].setSelected(),_lastid=_elementos[_current=e].tag)}},this.loadMedia=function(e,t){t?this.resetMedia(e,!0):this.resetMedia(e,!1),this.setSelected(e)},this.setSelected(_current)}}}TopPlaylist_lista.prototype=new psd.media.TopPlaylist_BaseController,namespace.TopPlaylist_lista=TopPlaylist_lista}(psd.media),function(e){function t(l){psd.framework.EventDispatcher.call(this),this.className="psd.media.TopWindowError";var c=l;this.paintMessage=function(e,t,i){var a,o,n=new psd.media.InfoPanel,d=new psd.media.Lang;"undefined"!=typeof LANG&&(window.mm_lang=LANG),void 0===window.mm_lang&&(o=(navigator.language||navigator.userLanguage).substr(0,2),d.compatibility(o)?window.mm_lang=o:window.mm_lang="es"),void 0!==t&&null!=t&&(t.topPlayer.ui.skinData.udn,c.skin=t.topPlayer.ui.skinData.udn,console.log(t.topPlayer.ui.skinData.udn)),"diario_as"==c.skin?(a="contenido_no_disponible_as",l.base="//as.player-top.prisasd.com"):a="contenido_no_disponible";var s=null;void 0!==i&&(i.text&&(a=i.text),i.onclick&&(n.onclick=i.onclick),i.button&&i.button.enabled&&(s={text:d.translate(window.mm_lang,i.button.text),onclick:i.button.onclick}));var r=d.translate(window.mm_lang,a);n.paint(c.id_container,r,!0,c.base,c.imgCover,c.skin,s)}}t.prototype=new psd.framework.EventDispatcher,e.TopWindowError=t}(psd.media),function(e){function t(e){psd.framework.EventDispatcher.call(this);var l=this;this.container=null,this.__DIV=null;var i=!(this.url=null),a=[],t="elpais_mob",o=".tiktok-ad",n="reels",d=!1,s=!1;this._video=null,this.items=[],this.currentpos=0,this.dragging=!1,this.conts=[],this.images=[],this.className="TopReels",this.man=function(){console.log("%cTopReel","background:hotpink;color:white;padding:3px;"),console.log("%c iniSettings: ","background:darkslateblue;color:white;"),console.log(" url -> URL de la playlist"),console.log(" container -> id del div contenedor"),console.log(" [no_css] -> true para no pintar nuestro CSS"),console.log(" [ad_positions] -> array de posiciones de publi. Si es un número n se pintarán cada n posiciones"),console.log(" [adunit] -> adunit de la publicidad"),console.log(" [target] -> target de la publicidad"),console.log(" [pbskey] -> pbskey de la publicidad"),console.log(" [autorun] -> true para ejecutar directamente al crear el constructor"),console.log("%c API: ","background:darkslateblue;color:white;"),console.log(" run() -> ejecuta el componente"),console.log(" onReady -> listener. Se lanza al terminar de cargar el componente"),console.log(" getData() -> devuelve el listado de elementos"),console.log(" goto(n) -> hace scroll a la posición n"),console.log(" show(n) -> muestra el componente. Acepta parámetro para comenzar en el item n"),console.log(" hide(keepplaying) -> oculta el componente. Acepta parámetro para continuar reproduciendo"),console.log(" play() -> play en el vídeo"),console.log(" pause() -> pause en el vídeo"),console.log(" setVolume(v) -> setea el volumen del vídeo"),console.log(" setProgress(v) -> setea el progress del vídeo"),console.log(" onVideoEvent -> listener de eventos del vídeo")},"undefined"!=typeof mm_debug&&console.log("%cTOPREELS contrusctor. IniSettings = ","color:deepskyblue;background:darkslateblue",e),void 0!==e.url&&null!=e.url&&(l.url=e.url),void 0!==e.no_css&&null!=e.no_css&&(i=!e.no_css),void 0!==e.ad_positions&&(a=e.ad_positions),e.adunit&&(t=e.adunit),e.target&&(o=e.target),e.pbskey&&(n=e.pbskey),e.autorun&&(d=e.autorun),e.container?l.container=document.getElementById(e.container):(l.container=document.createElement("div"),l.container.id="TopReel_container_"+Math.floor(1e4*Math.random()),document.body.appendChild(l.container)),l.container.style.display="none",l.container.style.height="100%",l.container.style.width=9*l.container.offsetHeight/16,l.container.style.marginLeft=document.body.offsetWidth/2-l.container.offsetWidth/2,l.container.style.position="absolute",l.container.style.top=0,this.runRobapaginas=function(){"undefined"!=typeof runGPT?("undefined"!=typeof mm_debug&&console.log("%cTOPREELS runGPT adUnit = "+t+" target = "+o+" pbskey = "+n,"color:aquamarine;background:darkslateblue"),runGPT({adUnit:t,sizes:[[300,250],[300,600]],target:o,position:"mpu2",pbskey:n})):s=!0},this.run=function(){return new Promise(function(e,t){i&&function(){"undefined"!=typeof mm_debug&&console.log("%cTOPREELS load CSS","color:deepskyblue;background:darkslateblue");var e=document.createElement("style");e.innerHTML=".mm_reel_cont{width:calc(100% - 0px);height:100%;padding:0;overflow:auto;background:transparent;position:relative;-webkit-scroll-snap-type: y mandatory;-ms-scroll-snap-type: y mandatory;scroll-snap-type: y mandatory;scroll-behavior: smooth;-webkit-overflow-scrolling: touch;}.mm_reel_item{width:100%;height:calc(100% - 20px);scroll-snap-align: start;scroll-snap-stop: always;opacity:1;background: rgb(96,95,86);background: linear-gradient(180deg, rgba(96,95,86,1) 0%, rgba(41,14,14,1) 100%);}.mm_reel_div_level_0{display:flex;justify-content:center;width:100%;height:calc(100% - 1px);}.mm_reel_div_level_1{position:relative;height:100%;position:relative;width:100%;}.mm_reel_button{position:absolute;background:#ddd;display:none;border-radius:10px;right:20px;padding:20px;cursor:pointer;}.mm_reel_ad{display:flex;justify-content:center;align-items:center;}",document.head.appendChild(e)}(),function(){if("undefined"==typeof runGPT){"undefined"!=typeof mm_debug&&console.log("%cTOPREELS load script","color:deepskyblue;background:darkslateblue");var e=document.createElement("script");e.src="https://ak-ads-ns.prisasd.com/slot/especiales/reels/slot.js",e.onload=function(){s&&("undefined"!=typeof mm_debug&&console.log("%cTOPREELS run robapaginas","color:red;background:darkslateblue"),l.runRobapaginas())},document.head.appendChild(e)}else"undefined"!=typeof mm_debug&&console.log("%cTOPREELS script ya existía","color:deepskyblue;background:darkslateblue")}(),new Promise(function(n,e){"undefined"!=typeof mm_debug&&console.log("%cTOPREELS get_data","color:deepskyblue;background:darkslateblue"),fetch(l.url).then(function(e){e.json().then(function(e){var t=e.data;if(console.log(t),"undefined"!=typeof mm_reels_test&&mm_reels_test)l.items=[{src:"https://vdmedia.elpais.com/elpaistop/multimedia/20223/7/V3_Silvia.mp4",title:"titulo1",cover:"nr1.png",type:"video"},{src:"https://sdmedia.playser.cadenaser.com/prisamedia/imagenes/20236/02/20230602153829415_6753_uploadDirect.mp4",title:"titulo2",cover:"nr2.png",type:"video"},{src:"https://sdmedia.playser.cadenaser.com/prisamedia/imagenes/20233/31/2023033113850827_60311_uploadDirect.mp4",title:"titulo3",cover:"nr3.png",type:"video"},{src:"https://innovacion.prisadigital.com/agencias/atlas/multimedia/2018/5/9/2018050814831572_1525781331_video.mp4",title:"titulo4",cover:"nr4.png",type:"video"},{src:"https://cdn.pendular.io/uploads/card/media/409195/c9ebe1bf069d43416101f4e3e9.mp4",title:"titulo5 anuncio",cover:"https://cdn.pendular.io/uploads/plugin_slot/preroll/187887/mini_magick20230704-14976-6zzgnn.jpeg",type:"video"}];else{l.items=[];for(var i=0;i