PageSourceSearch

https://los40.com/pf/resources/dist/js/lista40.js?d=1024&mxId=00000000

js los40.com collected 2026-10-01 10:21:09 UTC 34,207 bytes, 3 lines download raw bytes

1!function(){"use strict";var e,t=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"es-ES",r=new Date(e),a=String(r.getDate()).padStart(2,"0"),o=String(r.getMonth()+1).padStart(2,"0"),c=r.getFullYear(),i=String(r.getHours()).padStart(2,"0"),s=String(r.getMinutes()).padStart(2,"0"),l=String(r.getSeconds()).padStart(2,"0"),u=r.toLocaleString(n,{month:"long"}),d=u.charAt(0).toUpperCase()+u.slice(1),p=r.toLocaleString(n,{weekday:"long"}),v=p.charAt(0).toUpperCase()+p.slice(1),f=-r.getTimezoneOffset(),m="".concat(f>=0?"+":"-").concat(String(Math.floor(Math.abs(f)/60)).padStart(2,"0"),":").concat(String(Math.abs(f)%60).padStart(2,"0"));return t.replace("DD",a).replace("MM",o).replace("YYYY",c).replace("HH",i).replace("mm",s).replace("ss",l).replace("l",p).replace("L",v).replace("Mn",u).replace("MN",d).replace("xxx",m)};function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function r(e,t,n,r,a,o,c){try{var i=e[o](c),s=i.value}catch(e){return void n(e)}i.done?t(s):Promise.resolve(s).then(r,a)}function a(e){return function(){var t=this,n=arguments;return new Promise(function(a,o){var c=e.apply(t,n);function i(e){r(c,a,o,i,s,"next",e)}function s(e){r(c,a,o,i,s,"throw",e)}i(void 0)})}}function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=p(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,i=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){i=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(i)throw o}}}}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(){
2/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
3var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function o(n,r,a,o){var s=r&&r.prototype instanceof i?r:i,l=Object.create(s.prototype);return u(l,"_invoke",function(n,r,a){var o,i,s,l=0,u=a||[],d=!1,p={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(t,n){return o=t,i=0,s=e,p.n=n,c}};function v(n,r){for(i=n,s=r,t=0;!d&&l&&!a&&t<u.length;t++){var a,o=u[t],v=p.p,f=o[2];n>3?(a=f===r)&&(s=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=e):o[0]<=v&&((a=n<2&&v<o[1])?(i=0,p.v=r,p.n=o[1]):v<f&&(a=n<3||o[0]>r||r>f)&&(o[4]=n,o[5]=r,p.n=f,i=0))}if(a||n>1)return c;throw d=!0,r}return function(a,u,f){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&v(u,f),i=u,s=f;(t=i<2?e:s)||!d;){o||(i?i<3?(i>1&&(p.n=-1),v(i,s)):p.n=s:p.v=s);try{if(l=2,o){if(i||(a="next"),t=o[a]){if(!(t=t.call(o,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,i<2&&(i=0)}else 1===i&&(t=o.return)&&t.call(o),i<2&&(s=TypeError("The iterator does not provide a '"+a+"' method"),i=1);o=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==c)break}catch(t){o=e,i=1,s=t}finally{l=1}}return{value:t,done:d}}}(n,a,o),!0),l}var c={};function i(){}function s(){}function d(){}t=Object.getPrototypeOf;var p=[][r]?t(t([][r]())):(u(t={},r,function(){return this}),t),v=d.prototype=i.prototype=Object.create(p);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e}return s.prototype=d,u(v,"constructor",d),u(d,"constructor",s),s.displayName="GeneratorFunction",u(
3d,a,"GeneratorFunction"),u(v),u(v,a,"Generator"),u(v,r,function(){return this}),u(v,"toString",function(){return"[object Generator]"}),(l=function(){return{w:o,m:f}})()}function u(e,t,n,r){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}u=function(e,t,n,r){function o(t,n){u(e,t,function(e){return this._invoke(t,n,e)})}t?a?a(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},u(e,t,n,r)}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,c,i=[],s=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(i.push(r.value),i.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{if(!s&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(l)throw a}}return i}}(e,t)||p(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){if(e){if("string"==typeof e)return n(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}var v,f=s(s({},(null===(e=window.appContext)||void 0===e?void 0:e.get())||{}),window.appData),m=function(e){return e?f[e]:f},y=function(){var e=a(l().m(function e(t){var n,r,a,o,c=arguments;return l().w(function(e){for(;;)switch(e.p=e.n){case 0:return n=c.length>1&&void 0!==c[1]?c[1]:{},r=c.length>2&&void 0!==c[2]?c[2]:"json",e.p=1,e.n=2,fetch(t,n);case 2:if((a=e.v).ok){e.n=3;break}throw new Error("[".concat(a.status,"] Failed to fetch data from ").concat(t));case 3:if("json"!==r){e.n=5;break}return e.n=4,a.json();case 4:case 6:return e.a(2,e.v);case 5:if("text"!==r){e.n=7;break}return e.n=6,a.text();case 7:throw new Error("Unsupported response type: ".concat(r));case 8:throw e.p=8,o=e.v,new Error(o.message);case 9:return e.a(2)}},e,null,[[1,8]])}));return function(t){return e.apply(this,arguments)}}(),b=m(),h=b.environment,g=h.RESIZER_URL,w=h.RESIZER_VERSION,S=h.ENVIRONMENT,L=h.RESIZER_TOKEN_VERSION,E=b.siteProperties.resizer[w][null!=S&&null!==(v=S.match(/(dev|sandbox)/))&&void 0!==v&&v[1]?"dev":"prod"],k=E.domain,A=E.endpoint,_={noticia_img_grande:"1:1",noticia_especial_img_izqda:"6:7"},I=function(e,t,n){var r,a,o,c=e.width,i=e.height,l=void 0===i?null:i,u=e.aspectRatio,p=e.focalPoint,v=e.quality,f=e.isSrcSet,m=void 0!==f&&f,y=e.subtype,b=void 0===y?null:y,h=e.allowOverrideSrcset,g=p||t,w=function(e){var t=e.aspectRatio,n=e.allowOverrideSrcset,r=e.isSrcSet,a=e.subtype,o=e.width;return!n||!r||o>768?t:_[a]||t}({aspectRatio:u,allowOverrideSrcset:void 0!==h&&h,isSrcSet:m,subtype:b,width:c}),S={auth:n[L],quality:v||70},E=w?(r=g,a=function(e,t,n){var r=d(n.split(":"),2),a=r[0]/r[1];return{width:e||Math.floor(t*a),height:t||Math.floor(e/a)}}(c,l,w),o=r?{focal:"".concat(r[0],",").concat(r[1])}:{smart:!0},s(s({},a),o)):function(e,t){return s(s(s({},e&&{width:e}),t&&{height:t}),e&&t&&{smart:!0})}(c,l);return s(s({},S),E)},U=function(e){var t=e.imageUrl,n=e.imageAuth,r=e.additional_properties,a=(void 0===r?{}:r).focal_point,o=(void 0===a?{}:a).min,c=e.resize;if(!t)return null;var i=g||"".concat(k).concat(A);if(!c)return"".concat(i,"/").concat(encodeURIComponent(t),"?auth=").concat(n[L]);var s=I(c,o,n);return"".concat(i,"/").concat(encodeURIComponent(t),"?").concat(new URLSearchParams(s).toString().replace(/%2C/g,","))},D=m(),M=D.siteProperties.sportLive,P=void 0===M?{}:M;P.host,P.version,P.businessUnit,P.edition,P.apiKey,P.sports,D.environment.ENVIRONMENT;var q=m(),T=q.siteProperties.sportLive,O=void 0===T?{}:T;O.host,O.version,O.apiKey;var x,j=O.labels;(void 0===j?{}:j).states_live_scores,q.environment.ENVIRONMENT;var N=m().siteProperties,F=N.persistentPlayer.external_player.classnames;F.play_button_classname,F.player_container,F.playing_class;var R,Y,C=N.mediaPlayer;C.defaultAudioPlayerIdEmbed,C.audioDownloadDist,C.mediaEmbedURL.audio,null===(x=(Y=new RegExp("(^| )".concat("uid_na","=([^;]+)")).exec(null===(R=document)||void 0===R?void 0:R.cookie))?Y[2]:null)||void 0===x||x.split("#")[0];var B=m(),z=B.siteProperties;z.persistentPlayer.external_player.classnames.play_button_classname;var H=z.sportLive,V=void 0===H?{}:H;V.host,V.version,V.businessUnit,V.edition,V.apiKey;var G=V.labels,K=void 0===G?{}:G;K.state,K.period,K.link,B.environment.ENVIRONMENT;var $=m(),Z=$.siteProperties.sportLive,W=void 0===Z?{}:Z;W.host,W.version,W.businessUnit,W.edition,W.apiKey;var J=W.labels;(void 0===J?{}:J).period,W.group_letters;var Q=W.teams;(void 0===Q?{}:Q).abbr,$.environment.ENVIRONMENT;var X=m(),ee=X.siteProperties,te=ee.sportLive,ne=void 0===te?null:te;ee.persistentPlayer.external_player.classnames.play_button_classname,ee.radioStationId,X.environment.ENVIRONMENT;var re=ne||{};re.host,re.businessUnit,re.version,re.edition,re.apiKey;var ae=re.labels;(void 0===ae?{}:ae).state,re.widgetsAllowDirects;var oe=m();oe.arcSite;var ce=oe.siteProperties.persistentPlayer;ce.excludeAlternativesNoAudio,ce.api.cover_cut_type;var ie=ce.external_player.classnames;ie.play_button_classname,ie.player_container,ie.playing_class;var se=m();se.globalContent;var le=se.siteProperties;le.websiteDomain;var ue=le.podcasts;ue.podcastWithoutAudioLinks,ue.dataMap,ue.productId,se.requestUri;var de=m();de.globalContent;var pe=de.siteProperties;pe.websiteDomain,pe.podcasts.dataMap,de.requestUri,m("siteProperties").podcasts.productId,m("siteProperties").podcasts.productId;var ve=m("siteProperties").mediaPlayer;ve.accountNameId,ve.defaultVideoPlayerId;var fe=m("siteProperties").mediaPlayer;fe.accountNameId,fe.defaultVideoPlayerId;var me=m("siteProperties"),ye=me.mediaPlayer;ye.accountNameId,ye.assetDownloadTypeUrlName,me.audioDownloadDist;var be=m("siteProperties")||{},he=be.audioNews,ge=void 0===he?{}:he;be.radioStationId;var we=be.podcasts,Se=void 0===we?{}:we,Le=ge.programIds,Ee=void 0===Le?{}:Le;Ee.general,Ee.sports,Se.defaultCoverImage;var ke=m("siteProperties");ke.radioStationId;var Ae=ke.podcasts;Ae.defaultCoverImage,Ae.productId;var _e,Ie=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=m("siteProperties"),r=n.websiteDomain,a=n.twitterUsername,o=e.getAttribute("data-share-url"),c=e.getAttribute("data-list-type"),i=t||e.getAttribute("data-date");if("allNum1"===c){var s=i.split("-");i=d(s,1)[0]}var l=window.location.pathname.replace(/\/(\d{4}(-\d{2}-\d{2})?|\d{4})$/,"").replace(/\/$/,""),u=i?"/".concat(encodeURIComponent(i)):"",p="".concat(r).concat(l).concat(u);window.open(o.replace("<TITLE>",document.title).replace("<URL>",p).replace("<VIA>
3",a),"share_window","width=658,height=354")},Ue=function(e){var t=d("string"==typeof e&&e.includes("/")?e.split("/"):["01","01",e],3),n=t[0],r=t[1],a=t[2],o="".concat(a,"-").concat(r,"-").concat(n);document.querySelectorAll(".lista .lst-rrss li button").forEach(function(e){e.addEventListener("click",function(e){Ie(e.target,o)})})},De=function(e,t){var n;if("allNum1"===e)n=String(t);else{var r=d(t.split("/"),3),a=r[0],o=r[1],c=r[2];n="".concat(c,"-").concat(o,"-").concat(a)}var i=window.location.pathname.replace(/\/\d{4}(-\d{2}-\d{2})?$/,"").replace(/\/$/,"");window.history.replaceState(null,"","".concat(i,"/").concat(n))},Me=function(){var e=function(e){var t;if("undefined"==typeof document)return null;var n=new RegExp("(^| )".concat(e,"=([^;]+)")).exec(null===(t=document)||void 0===t?void 0:t.cookie);return n?n[2]:null}("user_voted");return e||!1},Pe=function(){var e=new Date;e.setHours(23,59,59,0),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Object.keys(n).map(function(e){var t=e.replace(/([A-Z])/g,function(e){return"-".concat(e.toLowerCase())});return";".concat(t,"=").concat(n[e])}).join(""),a="".concat(e,"=").concat(t).concat(r);document.cookie=a}("user_voted","true",{expires:e.toUTCString()})},qe=function(){var e,t;document.body.classList.remove("p-vis");var n=document.querySelector(".c-pus.lista-vot");null===(e=n.querySelector(".cnt-pus .txt-1"))||void 0===e||e.remove(),null===(t=n.querySelector(".cnt-pus .txt-2"))||void 0===t||t.remove(),n.classList.contains("d-block")&&n.classList.remove("d-block"),n.classList.add("d-none")},Te=function(){document.querySelectorAll(".lst-can li .dat .c-ele .vot").forEach(function(e){e.addEventListener("click",function(){!function(){var e,t,n=m(),r=n.siteProperties,a=r.newsletters.newslettersUrl,o=r.usun,c=o.host,i=o.origins,s=n.user,l=(void 0===s?{}:s).isLoggedIn;document.body.classList.add("p-vis");var u=document.querySelector(".c-pus.lista-vot"),d=u.querySelector(".bt-x"),p=Me();null===(e=u.querySelector(".cnt-pus .txt-1"))||void 0===e||e.remove(),null===(t=u.querySelector(".cnt-pus .txt-2"))||void 0===t||t.remove(),l?l&&p?d.insertAdjacentHTML("afterend","<p class='txt-1'>¡Ya has votado en la LISTA LOS40!</p>"):l&&!p&&d.insertAdjacentHTML("afterend","<p class='txt-1'>¡Tu VOTO se ha registrado correctamente!</p>\n      <p class='txt-2'>\n        Gracias por votar en la LISTA LOS40\n        <br />\n        <a href=\"".concat(a,'" title="suscríbete a nuestra newsletter" target="_blank" rel="noreferrer">\n          Suscríbete a nuestra newsletter\n        </a> para no perderte ningún detalle\n      </p>')):d.insertAdjacentHTML("afterend",'<p class="txt-1">\n        Para votar en la LISTA LOS40 necesitas estar\n        <a\n          href="'.concat(c,"/login/?v=pf&backURL=").concat(encodeURIComponent("".concat(window.location.href)),'"\n          title="Logarse"\n          target="_blank"\n          rel="noreferrer"\n        >\n          logado\n        </a> o\n        <a\n          href="').concat(c,"/registro/?prod=REG&v=pf&o=").concat(i.vote,"&backURL=").concat(encodeURIComponent("".concat(window.location.href)),'"\n          title="Registrarse"\n          target="_blank"\n          rel="noreferrer"\n        >\n          registrado\n        </a>.\n      </p>')),u.classList.contains("d-none")&&u.classList.remove("d-none"),u.classList.add("d-block"),p||Pe()}()})})},Oe=function(e){e.closest("li").classList.toggle("mos")},xe=function(e,t){document.querySelector(e)&&(document.querySelector(e).innerHTML=t)},je=function(){var e=a(l().m(function e(t){var n,r;return l().w(function(e){for(;;)switch(e.n){case 0:return n="/pf/api/v3/content/fetch/lista40-api?query=".concat(encodeURIComponent(JSON.stringify(t))),e.n=1,y(n,{cache:"no-store"});case 1:return r=e.v,e.a(2,r)}},e)}));return function(t){return e.apply(this,arguments)}}(),Ne=function(){var e=a(l().m(function e(t){var n;return l().w(function(e){for(;;)switch(e.n){case 0:(n=t.target.closest("li").getAttribute("data-apple-music-id"))&&(t.target.closest(".dat").querySelector(".l-esc .appleMusicButton a").href=n);case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),Fe=function(e){var t=new IntersectionObserver(function(){var t=a(l().m(function t(n,r){var a,c,i,s,u,d,p;return l().w(function(t){for(;;)switch(t.n){case 0:a=o(n);try{for(a.s();!(c=a.n()).done;)(i=c.value).isIntersecting&&(s=i.target,u=parseInt(s.getAttribute("data-index"),10),(d=s.getAttribute("data-apple-music-track-url"))&&u>=e&&!s.querySelector(".appleMusicButton a").getAttribute("href")&&((p=s.querySelector(".appleMusicButton a"))&&p.setAttribute("href",d),r.unobserve(s)))}catch(e){a.e(e)}finally{a.f()}case 1:return t.a(2)}},t)}));return function(e,n){return t.apply(this,arguments)}}(),{rootMargin:"200px"});document.querySelectorAll(".lista .lst-num-1 > li").forEach(function(e){return t.observe(e)})},Re=function(e){var t=e.target.closest(".cnt-ifr"),n=e.target.closest("li").getAttribute("data-youtube-url"),r=document.createElement("iframe");r.setAttribute("width","560"),r.setAttribute("height","315"),r.setAttribute("src","".concat(function(e){var t=e.replace(/&amp;/g,"&"),n=t.match(/(?:youtu\.be\/|youtube(?:-nocookie)?\.com\/(?:v\/|(?:.*[?&]v=)|embed\/|.*u\/\w+\/))([\w-]{11})/);if(!n||11!==n[1].length)return null;var r=n[1],a=t.match(/[?&](?:t|start)=(\d+)/),o=a?a[1]:null,c=o?"?start=".concat(o):"";return"https://www.youtube.com/embed/".concat(r).concat(c)}(n),"?autoplay=1")),r.setAttribute("allow","accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"),r.setAttribute("allowfullscreen",""),t.innerHTML="",t.appendChild(r)},Ye=function(e,t,n,r){var a="";if(1===e)a="<span class='nuevo'>Nuevo</span>";else if(e>1){var o=t-n;a=o<0?"<span class='sube'>Sube</span>":o>0?"<span class='baja'>Baja</span>":"<span class='igual'>Igual</span>"}return 1===t&&r&&(a+="<p class='gob'>GLOBAL</p>"),a},Ce=function(e){var t=e.appleMusicUrl,n=e.dezeerUrl,r=e.spotifyUrl,a=e.songTitle,o=[];return t&&o.push('<li class="appleMusicButton">\n        <a href="'.concat(t,"\" title='").concat(a,"' target='_blank' rel='noreferrer nofollow'>\n          <img src='https://los40.com/resizer/v2/https%3A%2F%2Fcadenaser00.epimg.net%2Fe
3staticos%2Frecursosgraficos%2Fprueba%2Flos40Global%2Fimg%2Flstn-apl.png?auth=4a2912f89f3d3cd37f9194cc6b81c5d456130233e56a1329b046254d82e8d089&quality=70&width=212&height=62&smart=true' alt='Escúchalo en Apple Music' loading='lazy' />\n        </a>\n      </li>")),n&&o.push('<li class="dezeerButton">\n        <a href="'.concat(n,'" title="').concat(a,"\" target='_blank' rel='noreferrer nofollow'>\n          <img src='https://los40.com/resizer/v2/https%3A%2F%2Fcadenaser00.epimg.net%2Festaticos%2Frecursosgraficos%2Fprueba%2Flos40Global%2Fimg%2Flstn-dez.png?auth=fad861b06c8c94dacc01dac9818ed3afc9d9181ea33098cb79b554e19cb00fc2&quality=70&smart=true' alt='Escúchalo en Deezer' />\n        </a>\n      </li>")),r&&o.push('<li class="spotifyButton">\n        <a href="'.concat(r,'" title="').concat(a,"\" target='_blank' rel='noreferrer nofollow'>\n          <img src='https://los40.com/resizer/v2/https%3A%2F%2Fcadenaser00.epimg.net%2Festaticos%2Frecursosgraficos%2Fprueba%2Flos40Global%2Fimg%2Flstn-spo.png?auth=962205a49639175c226c24853b64857e8429ced6142392a066a213eb935fc11e&quality=70&smart=true' alt='Escúchalo en Spotify' />\n        </a>\n      </li>")),o.join("")},Be=function(e,t){return e?"<div class='cnt-ifr'>\n    <img id=\"thumb-".concat(t,'" src="').concat(e,'" alt="Video Thumbnail">\n    <div class="play-button">PLAY</div>\n  </div>'):""},ze=function(){var e=a(l().m(function e(t){var n;return l().w(function(e){for(;;)switch(e.n){case 0:n=document.createDocumentFragment(),t.forEach(function(e,t){var r=e.id,a=e.position,o=e.lastPosition,c=e.weeksInList,i=e.bestPosition,s=e.isGlobal,l=e.songTitle,u=e.coverImageUrl,d=e.coverImageUrlAuth,p=e.artistName,v=e.appleMusicTrackUrl,f=e.dezeerUrl,m=e.spotifyUrl,y=e.youtubeUrl,b=e.youtubeThumbnailUrl,h=e.youtubeThumbnailUrlAuth,g=document.createElement("li");g.id=r,0===t&&g.classList.add("mos"),g.setAttribute("data-song-title",l),g.setAttribute("data-apple-music-track-url",v),g.setAttribute("data-youtube-url",y),g.innerHTML="\n        <div class='pos'>\n          <p>".concat(a,"</p>\n          ").concat(Ye(c,a,o,s),"\n        </div>\n        <div class='dat'>\n          <div class='c-ele'>\n            <img src=\"").concat(U({imageUrl:u,imageAuth:d}),'" alt="').concat(l,'" width="1" height="1" />\n            <div>\n              <div>\n                <h2>').concat(l,"</h2>\n                <span>").concat(p,"</span>\n              </div>\n              <div>\n                <button class='des'>Desplegar</button>\n              </div>\n            </div>\n          </div>\n          <div class='dat-des'>\n            <ul>\n              <li><p>Semanas en lista<span class='s-lis'>").concat(c,"</span></p></li>\n              <li><p>Mejor Posición<span class='m-pos'>").concat(i,"</span></p></li>\n              <li><p>Anterior Posición<span class='a-pos'>").concat(o,"</span></p></li>\n            </ul>\n            <div class='c-esc'>\n              <p>Escuchar</p>\n              <ul class='l-esc'>\n                ").concat(Ce({appleMusicUrl:v,dezeerUrl:f,spotifyUrl:m,songTitle:l}),"\n              </ul>\n            </div>\n            ").concat(Be(U({imageUrl:b,imageAuth:h}),r),"\n          </div>\n        </div>"),n.appendChild(g)}),xe(".lista .lst-can",""),document.querySelector(".lista .lst-can").appendChild(n);case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),He=function(){var e=a(l().m(function e(n){var r;return l().w(function(e){for(;;)switch(e.n){case 0:r=document.createDocumentFragment(),n.forEach(function(e,n){var a=e.id,o=e.date,c=e.songTitle,i=e.coverImageUrl,s=e.coverImageUrlAuth,l=e.artistName,u=e.appleMusicTrackUrl,d=e.dezeerUrl,p=e.spotifyUrl,v=e.youtubeUrl,f=e.youtubeThumbnailUrl,m=e.youtubeThumbnailUrlAuth,y=document.createElement("li");y.id=a,y.classList.add("mos"),y.setAttribute("data-song-title",c),y.setAttribute("data-apple-music-id",u),y.setAttribute("data-youtube-url",v),y.setAttribute("data-index",n),y.innerHTML='\n      <img src="'.concat(U({imageUrl:i,imageAuth:s}),'" alt="').concat(c,'" width="1" height="1" />\n      <div class=\'dat\'>\n        <div>\n          <h2>').concat(c,"</h2>
3\n          <span>").concat(l,"</span>\n          <b>Semana del ").concat(t(o,"DD de MN"),"</b>\n        </div>\n        <ul class='l-esc'>\n          ").concat(Ce({appleMusicUrl:u,dezeerUrl:d,spotifyUrl:p,songTitle:c}),"\n        </ul>\n        <button class='des'>Desplegar</button>\n        <a href=\"/lista40/listas-anteriores/").concat(t(o,"YYYY-MM-DD"),"\">Ver lista completa</a>\n      </div>\n      <div class='c-cnt-des'>\n        ").concat(Be(U({imageUrl:f,imageAuth:m}),a),"\n      </div>"),r.appendChild(y)}),document.querySelector(".lista .lst-num-1").appendChild(r),Fe(6);case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),Ve=function(){var e=a(l().m(function e(t){var n,r,a,o,c,i,s,u,d,p,v,f,m;return l().w(function(e){for(;;)switch(e.n){case 0:if(xe(".lista .lst-num-1.dia-nac",""),n=t[0],r=n.id,a=n.songTitle,o=n.coverImageUrl,c=n.coverImageUrlAuth,i=n.artistName,s=n.appleMusicTrackUrl,u=n.dezeerUrl,d=n.spotifyUrl,p=n.youtubeUrl,v=n.youtubeThumbnailUrl,f=n.youtubeThumbnailUrlAuth,(m=document.createElement("li")).id=r,m.classList.add("mos"),m.setAttribute("data-song-title",a),m.setAttribute("data-apple-music-id",s),m.setAttribute("data-youtube-url",p),m.innerHTML='\n      <img \n      src="'.concat(U({imageUrl:o,imageAuth:c}),'" alt="').concat(a,'" width="1" height="1" />\n      <div class=\'dat\'>\n        <div>\n          <h2>').concat(a,"</h2>\n          <span>").concat(i,"</span>\n        </div>\n        <ul class='l-esc'>\n          ").concat(Ce({appleMusicUrl:s,dezeerUrl:u,spotifyUrl:d,songTitle:a}),"\n        </ul>\n        <button class='des'>Desplegar</button>\n      </div>\n      <div class='c-cnt-des'>\n        ").concat(Be(U({imageUrl:v,imageAuth:f}),r),"\n      </div>"),!document.getElementById(r)){e.n=1;break}return e.a(2);case 1:document.querySelector(".lista .lst-num-1.dia-nac").appendChild(m);case 2:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),Ge=function(e){var n=e.split("/"),r=n[2],a=n[1],o=n[0],c=t(new Date(r,a-1,o),"Mn"),i=new Date(n[2],n[1]-1,n[0]);i.setDate(i.getDate()+7);var s=t(i,"YYYY/MM/DD"),l=s.split("/"),u=l[0],d=l[1],p=t(s,"Mn"),v=l[2];return d===a?" ".concat(o," al ").concat(v," de ").concat(c," de ").concat(r):r===u?" ".concat(o," del ").concat(c," al ").concat(v," de ").concat(p," de ").concat(r):" ".concat(o," de ").concat(c," de ").concat(r," al ").concat(v," de ").concat(p," de ").concat(u)},Ke=function(e,n,r,a){var o,c,i=null,s=null,l=null,u=null;if("previousList"===e){var p=d(n.split("/"),3),v=p[0],f=p[1],m=p[2];i="".concat(m,"-").concat(f,"-").concat(v),o=40,c="position"}else if("allNum1"===e)s="".concat(n,"-01-01"),l="".concat(n,"-12-31"),o=53,c="date",u=1;else{var y=d(n.split("/"),3),b=y[0],h=y[1],g=y[2],w="".concat(g,"-").concat(h,"-").concat(b);i=a?function(e){var n,r=new Date(e),a=r.getDay();return 0!==a?(r.setDate(r.getDate()-a),n=t(r,"YYYY-MM-DD")):n=t(new Date(e),"YYYY-MM-DD"),n}(w):function(e){var n,r=new Date(e);return 6!==r.getDay()?(r.setDate(r.getDate()-(r.getDay()+1)%7),n=t(r,"YYYY-MM-DD")):n=t(new Date(e),"YYYY-MM-DD"),n}(w),c="position",o=1}return{productId:r,date:i,dateFrom:s,dateTo:l,order:"asc",orderBy:c,itemsPerPage:o,position:u}},$e=function(){document.querySelectorAll(".lst-can li .dat .c-ele .des").forEach(function(e){e.addEventListener("click",function(e){Oe(e.target),e.target.closest("li").getAttribute("data-apple-music-id")&&Ne(e)})}),document.querySelectorAll(".lst-can li .dat .dat-des .cnt-ifr").forEach(function(e){e.addEventListener("click",function(e){Re(e)})})},Ze=function(){var e=a(l().m(function e(t,n,r){var a,o,c,i,s,u;return l().w(function(e){for(;;)switch(e.n){case 0:return(a=document.querySelector(".react-datepicker__input-container > button.previousList")).value=t,o=t.split("/"),c=d(o,3),i=c[0],s=c[1],u=c[2],a.innerHTML="es-US"!==r?t:"".concat(s,"/").concat(i,"/").concat(u),xe(".lista header h1 .d-b-mb"," ".concat(Ge(t))),xe(".lista .lst-can",""),e.n=1,ze(n);case 1:return e.n=2,new Promise(function(e){setTimeout(e,0)});case 2:$e();case 3:return e.a(2)}},e)}));return function(t,n,r){return e.apply(this,arguments)}}(),We=function(){var e=a(l().m(function e(t,n){return l().w(function(e){for(;;)switch(e.n){case 0:return xe(".lista header h1 .d-b-mb"," Año ".concat(t)),xe(".lista .lst-num-1",""),e.n=1,He(n);case 1:document.querySelectorAll(".lst-num-1 li .c-cnt-des .cnt-ifr").forEach(function(e){e.addEventListener("click",function(e){Re(e)})});case 2:return e.a(2)}},e)}));return function(t,n){return e.apply(this,arguments)}}(),Je=function(){var e=a(l().m(function e(t,n){var r;return l().w(function(e){for(;;)switch(e.n){case 0:return(r=document.querySelector(".react-datepicker__input-container > button.bornDay")).value=t,r.innerHTML=t,xe(".lista header h1 .d-b-mb"," del ".concat(t)),xe(".lista .lst-num-1.dia-nac",""),e.n=1,Ve(n);case 1:document.querySelectorAll(".lst-num-1 li .c-cnt-des .cnt-ifr").forEach(function(e){e.addEventListener("click",function(e){Re(e)})});case 2:return e.a(2)}},e)}));return function(t,n){return e.apply(this,arguments)}}(),Qe=function(){var e=a(l().m(function e(t){var n,r,a,o,c,i,s,u,d,p,v,f,y;return l().w(function(e){for(;;)switch(e.p=e.n){case 0:return n=m(),r=n.siteProperties,a=r.lista40,o=a.productId,c=a.sundayList,i=void 0!==c&&c,s=r.dateLocalization.language,u=document.querySelector(".lista .calendar"),d=u.getAttribute("data-list-type"),p=Ke(d,t,o,i),f=!1,e.p=1,e.n=2,je(p);case 2:v=e.v,e.n=4;break;case 3:e.p=3,y=e.v,console.error("Error fetching list data:",y),f=!0;case 4:if(!f){e.n=5;break}return e.a(2);case 5:if("previousList"!==d){e.n=7;break}return e.n=6,Ze(t,v,s);case 6:e.n=10;break;case 7:if("allNum1"!==d){e.n=9;break}return e.n=8,We(t,v);case 8:e.n=10;break;case 9:if("bornDay"!==d){e.n=10;break}return e.n=10,Je(t,v);case 10:De(d,t);case 11:return e.a(2)}},e,null,[[1,3]])}
3));return function(t){return e.apply(this,arguments)}}(),Xe=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=m("siteProperties").lista40.number1.yearIni,o=document.querySelector(".react-datepicker__tab-loop.year-selector"),c=Number(e),i=c-c%10+1,s=i+9,l=(new Date).getFullYear(),u=a-a%10+1,d=l-l%10+1+9,p=document.getElementById("years-container");p.innerHTML="",document.getElementById("decade").innerText="".concat(i," - ").concat(s);for(var v=function(){var e=i+f,s=document.createElement("div");s.innerText=e,s.classList.add("react-datepicker__year-text"),e===c&&e>=a&&e<=l&&s.classList.add("react-datepicker__year-text--selected"),(e<a||e>l)&&s.classList.add("react-datepicker__year-text--disabled"),s.onclick=function(){t?(!function(e){var t=document.querySelector(".react-datepicker__input-container > button.years");t&&(t.innerText=e,t.value=e)}(e),Xe(e,t,n,r),Qe(e),Ue(e)):function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=m("siteProperties").lista40,a=r.previousList,o=void 0===a?{}:a,c=o.yearIni,i=void 0===c?1966:c,s=o.monthIni,l=void 0===s?5:s,u=r.bornDay,d=void 0===u?{}:u,p=d.yearIni,v=void 0===p?1966:p,f=d.monthIni,y=void 0===f?5:f,b
3=document.querySelector(".react-datepicker__tab-loop.month-selector"),h="previousList"===t?"calendar-previousList-day":"calendar-born-day",g=n?0:6;b.querySelectorAll(".react-datepicker .react-datepicker__month-text").forEach(function(n){var r=parseInt(n.getAttribute("data-value"),10),a=["bornDay","previousList"].includes(t),o="previousList"===t?i:v;if(a&&e===o&&!(e===o&&r>("previousList"===t?l:y)))return n.className+=" --disabled",void(n.style.pointerEvents="none");n.addEventListener("click",function(){var n=flatpickr("#".concat(h),{dateFormat:"d/m/Y",defaultDate:null,locale:"es",firstDayOfWeek:1,disableMobile:!0,static:!0,minDate:a?new Date(1966,6,1):null,onReady:function(e,t,n){!function(e){var t,n,r=null==e||null===(t=e.calendarContainer)||void 0===t?void 0:t.querySelector(".flatpickr-monthDropdown-months");r&&(r.style.pointerEvents="none",r.style.appearance="none",r.style.webkitAppearance="none",r.style.MozAppearance="none");var a=null==e||null===(n=e.calendarContainer)||void 0===n?void 0:n.querySelector(".numInputWrapper");a&&(a.style.pointerEvents="none",a.querySelectorAll("span").forEach(function(e){e.style.display="none"}))}(n)}});n.setDate(new Date(e,r,1),!1),"previousList"===t&&n.set("disable",[function(e){return e.getDay()!==g}]),n.open(),b.classList.add("d-none")})}),b.classList.remove("d-none"),b.classList.add("d-block")}(e,n,r),o.classList.remove("d-block"),o.classList.add("d-none")},p.appendChild(s)},f=0;f<10;f++)v();i-1>u&&(document.getElementById("prev-decade").classList.remove("d-none"),document.getElementById("prev-decade").classList.add("d-block"),document.getElementById("prev-decade").onclick=function(){return Xe(i-10,t,n,r)}),s+1<d&&(document.getElementById("next-decade").classList.remove("d-none"),document.getElementById("next-decade").classList.add("d-block"),document.getElementById("next-decade").onclick=function(){return Xe(i+10,t,n,r)}),i-1<u&&(document.getElementById("prev-decade").classList.remove("d-block"),document.getElementById("prev-decade").classList.add("d-none")),s+1>d&&(document.getElementById("next-decade").classList.remove("d-block"),document.getElementById("next-decade").classList.add("d-none"))},et=function(e){var t=document.querySelector(".react-datepicker__tab-loop"),n=document.querySelector(".react-datepicker__input-container > button");!t||t.contains(e.target)||n.contains(e.target)||(t.classList.remove("d-block"),t.classList.add("d-none"),document.removeEventListener("click",et))},tt=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=m("siteProperties").lista40.sundayList,n=void 0!==t&&t,r=document.querySelector(".react-datepicker__tab-loop"),a=document.querySelector(".react-datepicker__input-container > button"),o=a.getAttribute("data-list-type"),c=a.value;if("bornDay"===o||"previousList"===o){var i=c.split("/");c=d(i,3)[2]}r.classList.contains("d-none")&&(r.classList.remove("d-none"),r.classList.add("d-block"),setTimeout(function(){document.addEventListener("click",et)},0)),Xe(c,e,o,n)},nt=function(e){document.querySelectorAll(".c-cad.l-40.f-w .lst-can li .dat .c-ele").forEach(function(e){e.closest("li").classList.remove("mos")}),Oe(e.target)},rt=function(e){document.querySelectorAll(e).forEach(function(e){e.addEventListener("click",function(e){Re(e)})})};_e=function(){setTimeout(function(){var e,t,n,r,a,o;null===(e=document.querySelector(".c-pus.lista-vot .bt-x"))||void 0===e||e.addEventListener("click",function(){return qe()}),null===(t=document.querySelector(".c-pus.lista-vot .bt-close"))||void 0===t||t.addEventListener("click",function(){return qe()}),document.querySelectorAll(".c-cad.l-40.f-w .lst-can li .dat .c-ele").forEach(function(e){e.addEventListener("click",nt)}),document.querySelectorAll(".lst-can li .dat .c-ele .des").forEach(function(e){e.dataset.addedEvent||(e.addEventListener("click",function(e){Oe(e.target)}),e.dataset.addedEvent="true")}),document.querySelectorAll(".lista .lst-rrss li button").forEach(function(e){e.addEventListener("click",function(e){Ie(e.target)})}),[".lst-can li .dat .dat-des .cnt-ifr",".lst-num-1 li .c-cnt-des .cnt-ifr"].forEach(rt),null===(n=document.querySelector(".react-datepicker__input-container > button.years"))||void 0===n||n.addEventListener("click",function(){tt(!0)}),null===(r=document.querySelector(".react-datepicker__input-container > button.bornDay"))||void 0===r||r.addEventListener("click",function(){tt(!1)}),null===(a=document.querySelector(".react-datepicker__input-container > button.previousList"))||void 0===a||a.addEventListener("click",function(){tt(!1)}),document.querySelectorAll(".cnt-ifr").forEach(function(e){var t=e.querySelector('img[id^="thumb"]');if(t){var n=t.src;t.onerror=function(){return function(e,t){var n=e;n.src.includes("maxresdefault.jpg")&&(n.src=t.replace("maxresdefault.jpg","mqdefault.jpg"))}(t,n)}}}),Te(),(o=document.querySelector(".lista .calendar.flatpickr")||document.querySelector("#calendar-born-day")||document.querySelector("#calendar-previousList-day"))&&o.addEventListener("change",function(){Qe(o.value),Ue(o.value)})},500)}(),window.removeEventListener("lista40load",_e),window.addEventListener("lista40load",_e),window.dispatchEvent(new CustomEvent("lista40load"))}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.