"use strict";var kalturaPlayerConfig={playerId:14969378,partnerId:108,playerName:"ElMundo",geoServiceURL:"https://www.elmundo.es/aka-services/user-geo.html",overwriteServiceUrl:"https://ak.uecdn.es",cookie:"UESeg",pixel:{url:"http://anapixel.elmundo.es/banner.gif?campaign=zz_mmplayer06&group=mmplayer&page=mmplayer&creativity=contador&endpartialtimestamp=77359400&sign=1B32997E0F1532767BE1EFD838BFADAC",tipo:"video-elmundo"},opciones:{publicidad:{requiredCustParams:!0,iuId:"99071977",androidAdUnitId:"mun-mv-android",iOSAdUnitId:"mun-mv-ios",desktopAdUnitId:"mun",defaultIU:"/99071977/mun/portada_vc",adTagUrl:"https://pubads.g.doubleclick.net/gampad/ads?sz=640x360&iu={{iu}}&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&url=[referrer_url]&description_url=[description_url]&correlator=[timestamp]&ad_rule=1",aps:!0},autoplay:!1,thumbnail:!0,skipAutoPlayMuted:!0,UseDirectManifestLinks:!0,responsive:"16/9",isActiveDidomi:!0,fixSpinner:!0}},KalturaUE={};!function(e){var t="v2.20",n=function(e,t){var t=t||kalturaPlayerConfig,n=e,r="",i=o.clone(t)||{},a="",l="",u=(t.pixel||{},[]),c=[],s={},d="",p=[],f=-1,m=36,g=document.getElementById(e),v={"16/9":1.78,"4/3":1.34},y={106:"0_idaqqayx",108:"0_y5xzl1ln",110:"0_nutte1h5",111:"0_3e71ry2f",112:"0_6kka99m0",113:"0_2es2nsaa"},h=["0_71mmohqp","0_yv14izot","0_2etpsqcw","0_8i9p0yhe","0_zkamo5t3","0_93ass2r8","0_h2eghj51"],w="",b=o.isMobile.any()?"mobile":"desktop",k="",U=function(e){return e.replace(/\[description_url\]/g,o.getLocation(!0))},S=function(e){return f>0&&e===!0?{key:"firstpreroll",values:"false"}:{key:"firstpreroll",values:"true"}},C=function(){var e=[];try{var t=localStorage.getItem("dmpue_id");null!==t?e.push({key:"ueid",values:t}):e.push({key:"ueid",values:"NoUESeg"})}catch(n){}return e},E=function(){var e=[],t=70;try{var n=localStorage.getItem("dmpue_segs");null!==n&&(n=n.split(",").length>78?encodeURIComponent(n.split(",").slice(0,t).toString()):encodeURIComponent(n),e.push({key:"ksegs",values:n})),n=n?n:"NoDefinido"}catch(o){}return e},P=function(e,t,n){var o=[],r=/cust_params[^|\s]*/g,i=r.exec(e);if(i){var a=decodeURIComponent(i[0].replace(/cust_params=/g,"")).split("&");a.forEach(function(e){var t=e.split("=");o.push({key:t[0],values:t[1]})})}else n&&o.push({key:"p",values:t});return o},_=function(e){var t={},n=[];e.forEach(function(e){t[e.key]=e}),d&&(t.t={},t.t.key="t",t.t.values=d),p.length&&(t.tag={},t.tag.key="tag",t.tag.values=p.join(","));for(var o in t)n.push(t[o].key+"%3D"+encodeURIComponent(t[o].values));return n.join("%26")},T=function(e,t,n){var o=/cust_params[^&|\s]*/g;return o.exec(e)?e.replace(/cust_params[^&|\s]*/g,"cust_params="+t):n?e+="&cust_params="+t:e},I=function(e){var t="";if(""!==w||"mobile"==b){var n,r=o.isMobile.Android()?"android":"ios";n="mobile"==b?"android"==r?e.androidAdUnitId:e.iOSAdUnitId:e.desktopAdUnitId,t="/"+e.iuId+"/"+n,t=""!=w?t+"/"+w:t,t+="/vc"}else t=e.defaultIU;return t},A=function(){return""!==k?k:k=!window.ueCookiesPolicy||"object"==typeof window.ueCookiesPolicy&&"function"!=typeof window.ueCookiesPolicy.getUserConsentStatusForVendor?-1:ueCookiesPolicy.getUserConsentStatusForVendor(755)},O=function(e,t){if(!t)return e;var n=A();return n&&n!==-1||(e=""),e},x=function(){function e(e){var t="";if(e.length>0){for(var n=0;n0?g.clientWidth/g.clientHeight:v["16/9"]},z=function(e,t){return Math.round(e/t)+m+"px"},L=function(e){var t=W(e),n=g.clientWidth;F(q,z(n,t)),window.addEventListener("resize",function(){var e=s.clientWidth;e!=n&&(q(z(e,t)),n=e)})},F=function(e,t){c.push({callback:e,params:t})},G=function(e){var t=!0,n=!0,o=!1,r=setTimeout(function(){"function"==typeof e&&(t=!1,n=!1,e(t,n)),o=!0},2e3);window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push(function(i){clearTimeout(r),o||"function"!=typeof e||e(t,n)})},K=function(e){var t=!1,n=!0;"function"==typeof e&&e(t,n)},H=function(e,t,n){if(window.ueGaclKaltura)i.opciones.ueGacl=window.ueGaclKaltura,J.call(this,e,t,n);else{var o=Math.floor(Date.now()/1e3);if(i.opciones.ueGacl=o,i.geoServiceURL){var r=new XMLHttpRequest,a=this;r.open("GET",i.geoServiceURL,!0),r.setRequestHeader("Content-Type","application/json"),r.onreadystatechange=function(o){if(4==r.readyState)if(200==r.status)try{var l=JSON.parse(r.responseText);i.opciones.ueGacl=l.iso,window.ueGaclKaltura=l.iso,J.call(a,e,t,n)}catch(o){J.call(a,e,t,n)}else J.call(a,e,t,n)},r.send()}else J.call(this,e,t,n)}},J=function(e,t,d){var p=i.opciones.responsive,f=i.opciones.incremental||"undefined",m=i.opciones.audioOnly||!1,v=g?z(g.clientWidth,W(p)):void 0;m&&(v=30),r=e,a=t,l=d,p&&!m&&L.call(this,p),"internal"==f.origen&&j();var y=i.opciones.isActiveDidomi?G:K;y(function(e,t){t&&i&&i.opciones&&i.opciones.publicidad&&i.opciones.publicidad.aps&&1==i.opciones.publicidad.aps&&!window.apsRequested&&B(e);var a={targetId:n,wid:"_"+i.partnerId,uiconf_id:i.playerId,entry_id:r,flashvars:M.call(this,e,t),params:{wmode:"transparent"},height:v,readyCallback:function(t){s=document.getElementById(t);var n=new CustomEvent("KalturaPlayerReady",{detail:{playerId:t}});window.dispatchEvent(n);var r=o.clone(i.opciones);s.setKDPAttribute("UEAdConfig",R(r.publicidad,e)),s.kBind("entryReady",function(){s.evaluate("{mediaProxy.entry}"),s.evaluate("{mediaProxy.entryMetadata}"),s.evaluate("{mediaProxy.isLive}")?"live":"vod"}),i.opciones.fixSpinner&&s.kBind("onAdOpen",function(e,n,o){window.adOpenCount=window.adOpenCount||[],window.adOpenCount[t]?window.adOpenCount[t]+=1:window.adOpenCount[t]=1,window.adOpenCount[t]>1&&"preroll"!==o&&window.setTimeout(function(){var e=document.getElementById(t+"_ifp");if(e&&e.contentWindow&&e.contentWindow.document){var n=e.contentWindow.document.getElementById("loadingSpinner_"+t);n&&n.remove();var o=e.contentWindow.document.getElementsByClassName("controlBarContainer");o&&o.length>=0&&o[0].style&&""!==o[0].style.bottom&&(o[0].style.bottom="")}},10)}),u.forEach(function(e){s.kBind(e.evento,e.callback)}),c.forEach(function(e){e.callback(e.params)})}};o.getJSONP(N(),function(){i.overwriteServiceUrl&&(mw.setConfig("Kaltura.ServiceUrl",i.overwriteServiceUrl),kWidget.setup()),i.debug&&mw.setConfig(i.debug);var e=navigator.userAgent.toLowerCase(),t=e.indexOf("android")>-1;if(i.opciones.thumbnail!==!0||t)kWidget.embed(a);else if(kWidget.thumbEmbed(a),null!==i.opciones.thumbnailUrl&&void 0!==i.opciones.thumbnailUrl){var o=document.getElementById(n),r=o.getElementsByClassName("kWidgetCentered")[0];r.src=i.opciones.thumbnailUrl}})})},Q=function(e){return i.opciones.incremental&&"external"==i.opciones.incremental.origen&&(f=isNaN(e)?-1:e),f},V=function(){kWidget.destroy(n)},X=function(e,t){return u.push({evento:e,callback:t}),o.isObjEmpty(s)||s.kBind(e,t),o.clone(u)},$=function(e){if(e.split(".").length>1)throw new Error("No se pueden eliminar eventos del sistema");return u=u.filter(function(t){return t.evento!==e}),o.isObjEmpty(s)||s.kUnbind(e),o.clone(u)},Y=function(){return o.clone(i)},Z=function(){return o.clone(M.apply(this))},ee=function(e){return i=o.merge(!0,!0,[i,e]),o.clone(i)},te=function(e,t){void 0!==t&&t!==!1?(console.log("postroll = "+t),delete i.opciones.publicidad.adTagUrl,i.opciones.publicidad.preroll=e,i.opciones.publicidad.postroll=t):i.opciones.publicidad.adTagUrl=e},ne=function(e){void 0!==e&&null!==e&&""!==e&&(d=e)},oe=function(e){e&&e.constructor===Array&&e.length&&(p=e.slice())},re=function(e){i.opciones.thumbnailUrl=e},ie=function(){return s},ae=function(){return o.clone(u)},le=function(e){return r=e},ue=function(e){w=e},ce=function(e){b=e};return{load:H,destroy:V,addEvent:X,removeEvent:$,getConfig:Y,getFlashvars:Z,setConfig:ee,setPublicidad:te,setTopic:ne,setTags:oe,setThumbnailUrl:re,getKalturaObject:ie,getEvents:ae,setEntry:le,setIncrementalCounter:Q,setSection:ue,setDevice:ce}},o=function(){Array.prototype.filter||(Array.prototype.filter=function(e){if(void 0===this||null===this)throw new TypeError;var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError;for(var o=[],r=arguments.length>=2?arguments[1]:void 0,i=0;i