PageSourceSearch

https://www.europapress.es/js/scripts_72620543991873537_1475.js

js europapress.es collected 2026-09-24 07:32:51 UTC 66,892 bytes, 177 lines download raw bytes

1function AbrePopUp(url){window.open(url,'EP','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=570,height=640,top=10,left=10');}
2function AbrePopUpRedim(url,ancho,alto){window.open(url,'EP','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width='+ancho+',height='+alto+',top=200,left=200');}
3function ScrollTo(name){if(document.getElementById(name)===null){ScrollToResolver(document.getElementById(document.querySelector('[id^="player_"]').id));}else{ScrollToResolver(document.getElementById(name));}}
4function ScrollToBySrc(src){if(document.querySelector('[src^="'+src+'"]')!==null){ScrollToResolver(document.querySelector('[src^="'+src+'"]'));}
5else{src='https://www.'+src;if(document.querySelector('[src^="'+src+'"]')!==null){ScrollToResolver(document.querySelector('[src^="'+src+'"]'));}else{src='http://www.'+src;if(document.querySelector('[src^="'+src+'"]')!==null){ScrollToResolver(document.querySelector('[src^="'+src+'"]'));}}}}
6function ScrollToResolver(elem){var jump=parseInt(elem.getBoundingClientRect().top*.2);document.body.scrollTop+=jump;document.documentElement.scrollTop+=jump-30;if(!elem.lastjump||elem.lastjump>Math.abs(jump)){elem.lastjump=Math.abs(jump);setTimeout(function(){ScrollToResolver(elem);},"100");}else{elem.lastjump=null;}}
7function redir(url){window.location.href=decode64(url);}
8function decode64(input){var output="";var chr1,chr2,chr3="";var enc1,enc2,enc3,enc4="";var i=0;input=input.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{enc1=keyStr.indexOf(input.charAt(i++));enc2=keyStr.indexOf(input.charAt(i++));enc3=keyStr.indexOf(input.charAt(i++));enc4=keyStr.indexOf(input.charAt(i++));chr1=(enc1<<2)|(enc2>>4);chr2=((enc2&15)<<4)|(enc3>>2);chr3=((enc3&3)<<6)|enc4;output=output+String.fromCharCode(chr1);if(enc3!=64){output=output+String.fromCharCode(chr2);}
9if(enc4!=64){output=output+String.fromCharCode(chr3);}
10chr1=chr2=chr3="";enc1=enc2=enc3=enc4="";}while(i<input.length);return unescape(output);}
11var keyStr="ABCDEFGHIJKLMNOP"+"QRSTUVWXYZabcdef"+"ghijklmnopqrstuv"+"wxyz0123456789+/"+"=";function activaTab(marco,contenido,tab){var todosdivs=document.getElementsByTagName("div");var encontrado=false;var j=todosdivs.length-1;var caja;while(!encontrado&&j>=0){if(todosdivs[j].id.indexOf(marco)!=-1){caja=todosdivs[j];encontrado=true;}
12j--;}
13if(encontrado){var tabs=caja.getElementsByTagName("li");var conts=caja.getElementsByTagName("div");for(var i=0;i<tabs.length;i++){if(tabs[i].id.indexOf(tab)==-1)
14tabs[i].className="";else
15tabs[i].className="tabActivo";}
16for(var k=0;k<conts.length;k++){if(conts[k].id.indexOf(contenido)==-1)
17conts[k].style.display="none";else
18conts[k].style.display="inline-block";}}}
19document.addEventListener("DOMContentLoaded",function(){var margen=920;var domSlowNews=document.getElementById("slownews");if(domSlowNews){var slownews=domSlowNews.offsetHeight-margen;domSlowNews.style.top='-'+slownews+'px';domSlowNews.style.position='sticky';}
20var contenedorUH=document.getElementById("uhcontenedor");if(contenedorUH){var topContenedor=contenedorUH.offsetHeight-margen;contenedorUH.style.top='-'+topContenedor+'px';contenedorUH.style.position='sticky';}
21var contenidoCentralNoticias=document.getElementById("ContenidoCentralNoticiasSticky");if(contenidoCentralNoticias){var ContenidoCentralNoticiasSticky=contenidoCentralNoticias.offsetHeight-margen;contenidoCentralNoticias.style.top='-'+ContenidoCentralNoticiasSticky+'px';contenidoCentralNoticias.style.position='sticky';}
22var contenedorUHizq=document.getElementById("ctl00_CPH_ColumnaIZQ_ctl00_uhcontenedor");if(contenedorUHizq){var ctl00_CPH_ColumnaIZQ_ctl00_uhcontenedor=contenedorUHizq.offsetHeight-margen;contenedorUHizq.style.top='-'+ctl00_CPH_ColumnaIZQ_ctl00_uhcontenedor+'px';contenedorUHizq.style.position='sticky';}});function activaTabColumna(marco,contenido,tab){var todosdivs=document.getElementsByTagName("div");var encontrado=false;var j=todosdivs.length-1;var caja;while(!encontrado&&j>=0){if(todosdivs[j].id.indexOf(marco)!=-1){caja=todosdivs[j];encontrado=true;}
23j--;}
24if(encontrado){var tabs=caja.getElementsByTagName("li");var conts=caja.getElementsByTagName("div");for(var i=0;i<tabs.length;i++){if(tabs[i].id.indexOf('link')>-1){if(tabs[i].id.indexOf(tab)==-1)
25tabs[i].className="";else
26tabs[i].className="tabActivo";}}
27for(var k=0;k<conts.length;k++){if(conts[k].id.indexOf('lista')>-1){if(conts[k].id.indexOf(contenido)==-1)
28conts[k].style.display="none";else
29conts[k].style.display="block";}}}}
30function trackEventGA(category,action){try{gtag('event','event',{'event_category':category,'event_action':action});}catch(err){}
31return true;}
32function trackEventGAFull(category,action,label,value){try{gtag('event','event',{'event_category':category,'event_label':label,'event_action':action,'event_value':value});}catch(err){}
33return true;}
34function EP_loadBanner(t){var l=document.getElementById("BannerLoad_"+t);var p=document.getElementById("BannerPlaceHolder_"+t);if(l!=null&&p!=null){p.appendChild(l);l.style.display="block";}}
35function adsBlocked(callback){var testURL='https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js';var myInit={method:'HEAD',mode:'no-cors'};
35var myRequest=new Request(testURL,myInit);fetch(myRequest).then(function(response){return response;}).then(function(response){callback(false);}).catch(function(e){callback(true);});}
36function existCookie(pnameEQ){var nameEQ=pnameEQ+"=";var ca=document.cookie.split(';');var valor_cookie="";for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1,c.length);{if(c.indexOf(nameEQ)==0){valor_cookie=c.substring(nameEQ.length+1,c.length);break;}}}
37return valor_cookie;}
38function existCookieConsent(pnameEQ){var nameEQ=pnameEQ;var ca=document.cookie.split(';');var valor_cookie="";for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1,c.length);{if(c.indexOf(nameEQ)==0){valor_cookie=c.substring(nameEQ.length+1,c.length);break;}}}
39return valor_cookie;}
40window.onload=BajarSkinPublicidad;function BajarSkinPublicidad(){var body=document.getElementsByTagName("body")[0];if(body.style.backgroundImage!=""&&document.getElementById("CentralCabecera")==null){body.style.paddingTop="60px";if(body.style.backgroundPositionY!="60px")
41body.style.backgroundPositionY="60px";}}
42function makeTooltip(div,mensaje){var tooltip=document.createElement("div");var tooltipArrow=document.createElement("div");var tooltipMessage=document.createElement("div");tooltip.className="tooltip";tooltipMessage.className="tooltip-text";tooltipArrow.className="tooltip-arrow";tooltipMessage.innerHTML=mensaje;tooltip.appendChild(tooltipArrow);tooltip.appendChild(tooltipMessage);div.parentNode.insertBefore(tooltip,div);}
43function destroyTooltip(div){var x=div.parentElement;x.removeChild(div.previousSibling);}
44function ocultarContenidoBloquePortada(boton){boton.nextElementSibling.classList.toggle('hidden');boton.classList.toggle('glyphicon-chevron-down');boton.classList.toggle('glyphicon-chevron-up');}
45document.addEventListener('DOMContentLoaded',function(){var banners=document.querySelectorAll(".banner-privacidad");banners.forEach(item=>{item.addEventListener("click",event=>{item.classList.remove("mostrar");});});var privacidad=document.querySelectorAll(".check-privacidad");privacidad.forEach(item=>{item.addEventListener("change",function(){if(item.matches(":checked")){item.closest(".widget-newsletter").nextElementSibling.classList.add("mostrar");}});});var checkAceptar=document.querySelector("#AceptarCondiciones");if(checkAceptar){checkAceptar.addEventListener("change",function(){if(this.matches(":checked")){document.querySelector(".banner-privacidad").classList.add("mostrar");}});};});var getJSON=function(url,callback){var xhr=new XMLHttpRequest();xhr.open('GET',url,true);xhr.responseType='json';xhr.onload=function(){var status=xhr.status;if(status===200){callback(null,xhr.response);}else{callback(status,xhr.response);}};xhr.send();};window.addEventListener('load',function(){var periodoDias=0;var portalId=1;var canalId=0;var numeroMaximo=5;let navLinks=document.querySelectorAll('li[data-id]');navLinks.forEach(function(link){link.addEventListener("click",function(e){e.preventDefault();let attr=e.currentTarget.getAttribute('data-id');let portal=new Boolean(false);portal=attr.includes("Portal");if(portal){const collection2=document.getElementsByClassName("tabMasLeidasPortal-activa");for(const element2 of collection2){for(const element2 of collection2){element2.className="tabMasLeidasPortal";}}
46e.currentTarget.classList.add("tabMasLeidasPortal-activa");const collection=document.getElementsByClassName("tabMasLeidas");var primero=true;for(const element of collection){if(element.tagName="li"){if(primero){element.className="tabMasLeidas tabMasLeidas-activa";primero=false;}
47else
48element.className="tabMasLeidas";}}}else{const collection=document.getElementsByClassName("tabMasLeidas-activa");for(const element of collection){if(element.tagName="li"){element.className="tabMasLeidas";}}
49e.currentTarget.classList.add("tabMasLeidas-activa");}
50PintaMasleidas(attr);});});function PintaMasleidas(attr){if(document.querySelector('.tabMasLeidasPortal-activa')){var divMostrarMasLeidas2=document.querySelector('.tabMasLeidasPortal-activa').getAttribute('data-id');var valuesMasLeidasPortal2=divMostrarMasLeidas2.split("_");portalId=valuesMasLeidasPortal2[1];canalId=valuesMasLeidasPortal2[2];numeroMaximo=valuesMasLeidasPortal2[3];var valuesMasLeidas2=attr.split("_");periodoDias=valuesMasLeidas2[1];}else{var valuesMasLeidas=attr.split("_");var perDias=valuesMasLeidas[1];portalId=valuesMasLeidas[2];canalId=valuesMasLeidas[3];periodoDias=perDias;numeroMaximo=valuesMasLeidas[4];}
51getMasLeidas();}
52function getMasLeidas(){var url='/ws/MasLeidoJson.ashx?periodoDias='+periodoDias+'&portalId='+portalId+'&canalId='+canalId+'&numeroMaximo='+numeroMaximo
53var request=new XMLHttpRequest();request.open('GET',url,true);request.onload=function(){if(request.status>=200&&request.status<400){document.querySelector('#PortadaLateralFoto'+portalId).innerHTML=request.responseText;}else{console.log('error más leídas');}};request.onerror=function(){};request.send();};},false);document.addEventListener('DOMContentLoaded',function(){var menuItem=d
53ocument.querySelector('.js-desplegable-hover-trigger');if(menuItem){var desplegable=document.querySelector('.menu-tipologias');menuItem.addEventListener('mouseover',function(e){e.preventDefault();desplegable.style.display="block";});menuItem.addEventListener('mouseleave',function(e){e.preventDefault();desplegable.style.display="none";});}});window.addEventListener('DOMContentLoaded',function(){var divplayer=document.querySelectorAll('.OcultoPlayerPubliIncrustado');forEach(divplayer,function(index,value){var div=document.createElement('div');if(value&&value.outerHTML){div.innerHTML=value.outerHTML;}
54var link=div.firstChild&&div.firstChild.getAttribute?div.firstChild.getAttribute("href"):null;const cssW100=document.getElementsByClassName("cssW100");var srcimagen="";if(cssW100.length>0&&cssW100[0].getAttribute('src')){srcimagen=cssW100[0].getAttribute('src');srcimagen=srcimagen.replace(".jpg",".webp");}
55var PlayerId=link
56var PlayerIncrustado=document.querySelector("#PlayerPubliIncrustado_"+PlayerId);if(PlayerIncrustado.childNodes.length>0){var cadena=document.getElementById("PlayerPubliIncrustado_"+PlayerId).innerHTML;var params=cadena.split(".");MontaPlayerIframe(params,PlayerId,srcimagen);}});},false);
56var forEach=function(array,callback,scope){for(var i=0;i<array.length;i++){callback.call(scope,i,array[i]);}};function MontaPlayerIframe(params,fechor,imagen){var urlVideo=document.URL;var idIframe="DBXEVu38Qt";if(urlVideo.indexOf('chance')!=-1){idIframe="IgFUT6pr81";};var codigoIframe='<div id="EfectoVideoIncrustado" style="width: 100 %; text - align: left; margin: 0 auto; opacity: 1;">'
57codigoIframe+='<div style="position: relative; width: 100%; height: 0; padding-bottom: 60%;">'
58codigoIframe+='<iframe loading="lazy" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;"'
59codigoIframe+='src="https://video.microcontenidos.com/EPPlayerTV.aspx?iframeid='+idIframe+'&videoid='+params[0]+'&parte='+params[1]+'&foto='+imagen+'" scrolling="no" allowfullscreen='
60codigoIframe+="</div>";document.querySelector('#PlayerPubliIncrustado_'+fechor).classList.remove('OcultoPlayerPubliIncrustado');document.querySelector('#PlayerPubliIncrustado_'+fechor).innerHTML=codigoIframe;document.querySelector('.VisiblePlayerPubliIncrustado_'+fechor).innerHTML='';}
61function TrackAudio(){trackEventGAFull('AudioNoticia','click','',0);}
62
63(function(w){"use strict";if(!w.loadCSS){w.loadCSS=function(){};}
64var rp=loadCSS.relpreload={};rp.support=(function(){var ret;try{ret=w.document.createElement("link").relList.supports("preload");}catch(e){ret=false;}
65return function(){return ret;};})();rp.bindMediaToggle=function(link){var finalMedia=link.media||"all";function enableStylesheet(){link.media=finalMedia;}
66if(link.addEventListener){link.addEventListener("load",enableStylesheet);}else if(link.attachEvent){link.attachEvent("onload",enableStylesheet);}
67setTimeout(function(){link.rel="stylesheet";link.media="only x";});setTimeout(enableStylesheet,3000);};rp.poly=function(){if(rp.support()){return;}
68var links=w.document.getElementsByTagName("link");for(var i=0;i<links.length;i++){var link=links[i];if(link.rel==="preload"&&link.getAttribute("as")==="style"&&!link.getAttribute("data-loadcss")){link.setAttribute("data-loadcss",true);rp.bindMediaToggle(link);}}};if(!rp.support()){rp.poly();var run=w.setInterval(rp.poly,500);if(w.addEventListener){w.addEventListener("load",function(){rp.poly();w.clearInterval(run);});}else if(w.attachEvent){w.attachEvent("onload",function(){rp.poly();w.clearInterval(run);});}}
69if(typeof exports!=="undefined"){exports.loadCSS=loadCSS;}
70else{w.loadCSS=loadCSS;}}(typeof global!=="undefined"?global:this));
71/*! pace 1.0.0 */
72(function () { var a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X = [].slice, Y = {}.hasOwnProperty, Z = function (a, b) { function c() { this.constructor = a } for (var d in b) Y.call(b, d) && (a[d] = b[d]); return c.prototype = b.prototype, a.prototype = new c, a.__super__ = b.prototype, a }, $ = [].indexOf || function (a) { for (var b = 0, c = this.length; c > b; b++) if (b in this && this[b] === a) return b; return -1 }; for (u = { catchupTime: 100, initialRate: .03, minTime: 250, ghostTime: 100, maxProgressPerFrame: 20, easeFactor: 1.25, startOnPageLoad: !0, restartOnPushState: !0, restartOnRequestAfter: 500, target: "body", elements: { checkInterval: 100, selectors: ["body"] }, eventLag: { minSamples: 10, sampleCount: 3, lagThreshold: 3 }, ajax: { trackMethods: ["GET"], trackWebSockets: !0, ignoreURLs: [] } }, C = function () { var a; return null != (a = "undefined" != typeof performance && null !== performance && "function" == typeof performance.now ? performance.now() : void 0) ? a : +new Date }, E = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame, t = window.cancelAnimationFrame || window.mozCancelAnimationFrame, null == E && (E = function (a) { return setTimeout(a, 50) }, t = function (a) { return clearTimeout(a) }), G = function (a) { var b, c; return b = C(), (c = function () { var d; return d = C() - b, d >= 33 ? (b = C(), a(d, function () { return E(c) })) : setTimeout(c, 33 - d) })() }, F = function () { var a, b, c; return c = arguments[0], b = arguments[1], a = 3 <= arguments.length ? X.call(arguments, 2) : [], "function" == typeof c[b] ? c[b].apply(c, a) : c[b] }, v = function () { var a, b, c, d, e, f, g; for (b = arguments[0], d = 2 <= arguments.length ? X.call(arguments, 1) : [], f = 0, g = d.length; g > f; f++) if (c = d[f]) for (a in c) Y.call(c, a) && (e = c[a], null != b[a] && "object" == typeof b[a] && null != e && "object" == typeof e ? v(b[a], e) : b[a] = e); return b }, q = function (a) { var b, c, d, e, f; for (c = b = 0, e = 0, f = a.length; f > e; e++) d = a[e], c += Math.abs(d), b++; return c / b }, x = function (a, b) { var c, d, e; if (null == a && (a = "options"), null == b && (b = !0), e = document.querySelector("[data-pace-" + a + "]")) { if (c = e.getAttribute("data-pace-" + a), !b) return c; try { return JSON.parse(c) } catch (f) { return d = f, "undefined" != typeof console && null !== console ? console.error("Error parsing inline pace options", d) : void 0 } } }, g = function () { function a() { } return a.prototype.on = function (a, b, c, d) { var e; return null == d && (d = !1), null == this.bindings && (this.bindings = {}), null == (e = this.bindings)[a] && (e[a] = []), this.bindings[a].push({ handler: b, ctx: c, once: d }) }, a.prototype.once = function (a, b, c) { return this.on(a, b, c, !0) }, a.prototype.off = function (a, b) { var c, d, e; if (null != (null != (d = this.bindings) ? d[a] : void 0)) { if (null == b) return delete this.bindings[a]; for (c = 0, e = []; c < this.bindings[a].length;) e.push(this.bindings[a][c].handler === b ? this.bindings[a].splice(c, 1) : c++); return e } }, a.prototype.trigger = function () { var a, b, c, d, e, f, g, h, i; if (c = arguments[0], a = 2 <= arguments.length ? X.call(arguments, 1) : [], null != (g = this.bindings) ? g[c] : void 0) { for (e = 0, i = []; e < this.bindings[c].length;) h = this.bindings[c][e], d = h.handler, b = h.ctx, f = h.once, d.apply(null != b ? b : this, a), i.push(f ? this.bindings[c].splice(e, 1) : e++); return i } }, a }(), j = window.Pace || {}, window.Pace = j, v(j, g.prototype), D = j.options = v({}, u, window.paceOptions, x()), U = ["ajax", "document", "eventLag", "elements"], Q = 0, S = U.length; S > Q; Q++) K = U[Q], D[K] === !0 && (D[K] = u[K]); i = function (a) { function b() { return V = b.__super__.constructor.apply(this, arguments) } return Z(b, a), b }(Error), b = function () { function a() { this.progress = 0 } return a.prototype.getElement = function () { var a; if (null == this.el) { if (a = document.querySelector(D.target), !a) throw new i; this.el = document.createElement("div"), this.el.className = "pace pace-active", document.body.className = document.body.className.replace(/pace-done/g, ""), document.body.className += " pace-running", this.el.innerHTML = '<div class="pace-progress">\n  <div class="pace-progress-inner"></div>\n</div>\n<div class="pace-activity"></div>', null != a.firstChild ? a.insertBefore(this.el, a.firstChild) : a.appendChild(this.el) } return this.el }, a.prototype.finish = function () { var a; return a = this.getElement(), a.className = a.className.replace("pace-active", ""), a.className += " pace-inactive", document.body.className = document.body.className.replace("pace-running", ""), document.body.className += " pace-done" }, a.prototype.update = function (a) { return this.progress = a, this.render() }, a.prototype.destroy = function () { try { this.getElement().parentNode.removeChild(this.getElement()) } catch (a) { i = a } return this.el = void 0 }, a.prototype.render = function () { var a, b, c, d, e, f, g; if (null == document.querySelector(D.target)) return !1; for (a = this.getElement(), d = "translate3d(" + this.progress + "%, 0, 0)", g = ["webkitTransform", "msTransform", "transform"], e = 0, f = g.length; f > e; e++) b = g[e], a.children[0].style[b] = d; return (!this.lastRenderedProgress || this.lastRenderedProgress | 0 !== this.progress | 0) && (a.children[0].setAttribute("data-progress-text", "" + (0 | this.progress) + "%"), this.progress >= 100 ? c = "99" : (c = this.progress < 10 ? "0" : "", c += 0 | this.progress), a.children[0].setAttribute("data-progress", "" + c)), this.lastRenderedProgress = this.progress }, a.prototype.done = function () { return this.progress >= 100 }, a }(), h = function () { function a() { this.bindings = {} } return a.prototype.trigger = function (a, b) { var c, d, e, f, g; if (null != this.bindings[a]) { for (f = this.bindings[a], g = [], d = 0, e = f.length; e > d; d++) c = f[d], g.push(c.call(this, b)); return g } }, a.prototype.on = function (a, b) { var c; return null == (c = this.bindings)[a] && (c[a] = []), this.bindings[a].push(b) }, a }(), P = window.XMLHttpRequest, O = window.XDomainRequest, N = window.WebSocket, w = function (a, b) { var c, d, e, f; f = []; for (d in b.prototype) try { e = b.prototype[d], f.push(null == a[d] && "function" != typeof e ? a[d] = e : void 0) } catch (g) { c = g } return f }, A = [], j.ignore = function () { var a, b, c; return b = arguments[0], a = 2 <= arguments.length ? X.call(arguments, 1) : [], A.unshift("ignore"), c = b.apply(null, a), A.shift(), c }, j.track = function () { var a, b, c; return b = arguments[0], a = 2 <= arguments.length ? X.call(arguments, 1) : [], A.unshift("track"), c = b.apply(null, a), A.shift(), c }, J = function (a) { var b; if (null == a && (a = "GET"), "track" === A[0]) return "force"; if (!A.length && D.ajax) { if ("socket" === a && D.ajax.trackWebSockets) return !0; if (b = a.toUpperCase(), $.call(D.ajax.trackMethods, b) >= 0) return !0 } return !1 }, k = function (a) { function b() { var a, c = this; b.__super__.constructor.apply(this, arguments), a = function (a) { var b; return b = a.open, a.open = function (d, e) { return J(d) && c.trigger("request", { type: d, url: e, request: a }), b.apply(a, arguments) } }, window.XMLHttpRequest = function (b) { var c; return c = new P(b), a(c), c }; try { w(window.XMLHttpRequest, P) } catch (d) { } if (null != O) { window.XDomainRequest = function () { var b; return b = new O, a(b), b }; try { w(window.XDomainRequest, O) } catch (d) { } } if (null != N && D.ajax.trackWebSockets) { window.WebSocket = function (a, b) { var d; return d = null != b ? new N(a, b) : new N(a), J("socket") && c.trigger("request", { type: "socket", url: a, protocols: b, request: d }), d }; try { w(window.WebSocket, N) } catch (d) { } } } return Z(b, a), b }(h), R = null, y = function () { return null == R && (R = new k), R }, I = function (a) { var b, c, d, e; for (e = D.ajax.ignoreURLs, c = 0, d = e.length; d > c; c++) if (b = e[c], "string" == typeof b) { if (-1 !== a.indexOf(b)) return !0 } else if (b.test(a)) return !0; return !1 }, y().on("request", function (b) { var c, d, e, f, g; return f = b.type, e = b.request, g = b.url, I(g) ? void 0 : j.running || D.restartOnRequestAfter === !1 && "force" !== J(f) ? void 0 : (d = arguments, c = D.restartOnRequestAfter || 0, "boolean" == typeof c && (c = 0), setTimeout(function () { var b, c, g, h, i, k; if (b = "socket" === f ? e.readyState < 2 : 0 < (h = e.readyState) && 4 > h) { for (j.restart(), i = j.sources, k = [], c = 0, g = i.length; g > c; c++) { if (K = i[c], K instanceof a) { K.watch.apply(K, d); break } k.push(void 0) } return k } }, c)) }), a = function () { function a() { var a = this; this.elements = [], y().on("request", function () { return a.watch.apply(a, arguments) }) } return a.prototype.watch = function (a) { var b, c, d, e; return d = a.type, b = a.request, e = a.url, I(e) ? void 0 : (c = "socket" === d ? new n(b) : new o(b), this.elements.push(c)) }, a }(), o = function () { function a(a) { var b, c, d, e, f, g, h = this; if (this.progress = 0, null != window.ProgressEvent) for (c = null, a.addEventListener("progress", function (a) { return h.progress = a.lengthComputable ? 100 * a.loaded / a.total : h.progress + (100 - h.progress) / 2 }, !1), g = ["load", "abort", "timeout", "error"], d = 0, e = g.length; e > d; d++) b = g[d], a.addEventListener(b, function () { return h.progress = 100 }, !1); else f = a.onreadystatechange, a.onreadystatechange = function () { var b; return 0 === (b = a.readyState) || 4 === b ? h.progress = 100 : 3 === a.readyState && (h.progress = 50), "function" == typeof f ? f.apply(null, arguments) : void 0 } } return a }(), n = function () { function a(a) { var b, c, d, e, f = this; for (this.progress = 0, e = ["error", "open"], c = 0, d = e.length; d > c; c++) b = e[c], a.addEventListener(b, function () { return f.progress = 100 }, !1) } return a }(), d = function () { function a(a) { var b, c, d, f; for (null == a && (a = {}), this.elements = [], null == a.selectors && (a.selectors = []), f = a.selectors, c = 0, d = f.length; d > c; c++) b = f[c], this.elements.push(new e(b)) } return a }(), e = function () { function a(a) { this.selector = a, this.progress = 0, this.check() }
72 return a.prototype.check = function () { var a = this; return document.querySelector(this.selector) ? this.done() : setTimeout(function () { return a.check() }, D.elements.checkInterval) }, a.prototype.done = function () { return this.progress = 100 }, a }(), c = function () { function a() { var a, b, c = this; this.progress = null != (b = this.states[document.readyState]) ? b : 100, a = document.onreadystatechange, document.onreadystatechange = function () { return null != c.states[document.readyState] && (c.progress = c.states[document.readyState]), "function" == typeof a ? a.apply(null, arguments) : void 0 } } return a.prototype.states = { loading: 0, interactive: 50, complete: 100 }, a }(), f = function () { function a() { var a, b, c, d, e, f = this; this.progress = 0, a = 0, e = [], d = 0, c = C(), b = setInterval(function () { var g; return g = C() - c - 50, c = C(), e.push(g), e.length > D.eventLag.sampleCount && e.shift(), a = q(e), ++d >= D.eventLag.minSamples && a < D.eventLag.lagThreshold ? (f.progress = 100, clearInterval(b)) : f.progress = 100 * (3 / (a + 3)) }, 50) } return a }(), m = function () { function a(a) { this.source = a, this.last = this.sinceLastUpdate = 0, this.rate = D.initialRate, this.catchup = 0, this.progress = this.lastProgress = 0, null != this.source && (this.progress = F(this.source, "progress")) } return a.prototype.tick = function (a, b) { var c; return null == b && (b = F(this.source, "progress")), b >= 100 && (this.done = !0), b === this.last ? this.sinceLastUpdate += a : (this.sinceLastUpdate && (this.rate = (b - this.last) / this.sinceLastUpdate), this.catchup = (b - this.progress) / D.catchupTime, this.sinceLastUpdate = 0, this.last = b), b > this.progress && (this.progress += this.catchup * a), c = 1 - Math.pow(this.progress / 100, D.easeFactor), this.progress += c * this.rate * a, this.progress = Math.min(this.lastProgress + D.maxProgressPerFrame, this.progress), this.progress = Math.max(0, this.progress), this.progress = Math.min(100, this.progress), this.lastProgress = this.progress, this.progress }, a }(), L = null, H = null, r = null, M = null, p = null, s = null, j.running = !1, z = function () { return D.restartOnPushState ? j.restart() : void 0 }, null != window.history.pushState && (T = window.history.pushState, window.history.pushState = function () { return z(), T.apply(window.history, arguments) }), null != window.history.replaceState && (W = window.history.replaceState, window.history.replaceState = function () { return z(), W.apply(window.history, arguments) }), l = { ajax: a, elements: d, document: c, eventLag: f }, (B = function () { var a, c, d, e, f, g, h, i; for (j.sources = L = [], g = ["ajax", "elements", "document", "eventLag"], c = 0, e = g.length; e > c; c++) a = g[c], D[a] !== !1 && L.push(new l[a](D[a])); for (i = null != (h = D.extraSources) ? h : [], d = 0, f = i.length; f > d; d++) K = i[d], L.push(new K(D)); return j.bar = r = new b, H = [], M = new m })(), j.stop = function () { return j.trigger("stop"), j.running = !1, r.destroy(), s = !0, null != p && ("function" == typeof t && t(p), p = null), B() }, j.restart = function () { return j.trigger("restart"), j.stop(), j.start() }, j.go = function () { var a; return j.running = !0, r.render(), a = C(), s = !1, p = G(function (b, c) { var d, e, f, g, h, i, k, l, n, o, p, q, t, u, v, w; for (l = 100 - r.progress, e = p = 0, f = !0, i = q = 0, u = L.length; u > q; i = ++q) for (K = L[i], o = null != H[i] ? H[i] : H[i] = [], h = null != (w = K.elements) ? w : [K], k = t = 0, v = h.length; v > t; k = ++t) g = h[k], n = null != o[k] ? o[k] : o[k] = new m(g), f &= n.done, n.done || (e++, p += n.tick(b)); return d = p / e, r.update(M.tick(b, d)), r.done() || f || s ? (r.update(100), j.trigger("done"), setTimeout(function () { return r.finish(), j.running = !1, j.trigger("hide") }, Math.max(D.ghostTime, Math.max(D.minTime - (C() - a), 0)))) : c() }) }, j.start = function (a) { v(D, a), j.running = !0; try { r.render() } catch (b) { i = b } return document.querySelector(".pace") ? (j.trigger("start"), j.go()) : setTimeout(j.start, 50) }, "function" == typeof define && define.amd ? define(function () { return j }) : "object" == typeof exports ? module.exports = j : D.startOnPageLoad && j.start() }).call(this);
73function encode64(input){var keyStr=["ABCDEFGHIJKLMNOP","QRSTUVWXYZabcdef","ghijklmnopqrstuv","wxyz0123456789
73+/","="].join("");input=escape(input);var output="";var chr1,chr2,chr3="";var enc1,enc2,enc3,enc4="";var i=0;do{chr1=input.charCodeAt(i++);chr2=input.charCodeAt(i++);chr3=input.charCodeAt(i++);enc1=chr1>>2;enc2=((chr1&3)<<4)|(chr2>>4);enc3=((chr2&15)<<2)|(chr3>>6);enc4=chr3&63;if(isNaN(chr2)){enc3=enc4=64;}else if(isNaN(chr3)){enc4=64;}
74output=output+
75keyStr.charAt(enc1)+
76keyStr.charAt(enc2)+
77keyStr.charAt(enc3)+
78keyStr.charAt(enc4);chr1=chr2=chr3="";enc1=enc2=enc3=enc4="";}while(i<input.length);return output;}
79document.addEventListener('DOMContentLoaded',function(){var body=document.querySelector("body");var menuCompleto=document.getElementById('menu-completo');var inputTexto=document.getElementById('texto-buscador-estrechado');if(inputTexto){inputTexto.disabled=false;inputTexto.required=true;}
80var menuFuera=false;var primera=false;var buscar=function(texto,idioma){var url=['/buscador.aspx?buscar=',texto,'&buscarCodificado=',encode64(texto)].join("");var codSphinxIdiomaEspanol=1;if(idioma!==codSphinxIdiomaEspanol){url+='&Idioma='+idioma;}
81window.location.href=url;};var buscarCO=function(texto,idioma){var url=['/buscador.aspx?buscar=',texto,'&buscarCodificado=',encode64(texto),"&ch=777"].join("");var codSphinxIdiomaEspanol=1;if(idioma!==codSphinxIdiomaEspanol){url+='&Idioma='+idioma;}
82window.location.href=url;};var buscarHF=function(texto,idioma){var url=['/buscador.aspx?buscar=',texto].join("");window.location.href=url;};var formBuscador=document.querySelector("#formulario-buscador-estrechado");if(formBuscador){formBuscador.addEventListener("submit",function(e){e.preventDefault();var texto=inputTexto.value;var idioma=document.getElementById('hdnIdiomaBusqueda').value;if(texto.length>0){var esBuscadorCO=window.location.hostname.includes("culturaocio.com");if(esBuscadorCO){buscarCO(texto,idioma);}else{var esBuscadorHF=window.location.hostname.includes("hacerfamilia.com");if(esBuscadorHF){buscarHF(texto,idioma);}else{buscar(texto,idioma);}}}
83return false;});}
84var botonesMenu=document.querySelectorAll("#ctl00_NavegacionFixed_InconoMenuDiv");botonesMenu.forEach(function(boton){boton.addEventListener("click",function(){ocultarMostrarMenu();if(!menuFuera){body.style.overflow="visible";var menuDiv=document.querySelector("#masterMenu");menuDiv.style.overflow="visible";menuDiv.style.backgroundColor="transparent";menuFuera=true;if(!primera){if(window.location.hostname!=="www.europapress.es"){cargarMenuJson();}
85primera=true;}}});});var ocultarMostrarMenu=function(){var accionesMenuReducido=document.getElementById('acciones-menu');var icono=document.querySelector('.button-ico');var fondo=document.getElementById('background');if(menuCompleto.className==='menu-completo oculto'){icono.classList.remove('icon-menu');icono.classList.add('icon-close');fondo.classList.add('fondo-menu');}else{}
86if(menuCompleto.className==='menu-completo oculto'){menuCompleto.classList.remove('oculto');icono.classList.remove('icon-menu');icono.classList.add('icon-close');fondo.classList.add('fondo-menu');}else{menuCompleto.classList.add('oculto');accionesMenuReducido.classList.remove('oculto');icono.classList.add('icon-menu');icono.classList.remove('icon-close');fondo.classList.remove('fondo-menu');}};var fondoMenu=document.querySelector("#background");if(fondoMenu){fondoMenu.addEventListener("click",function(e){ocultarMostrarMenu();if(!menuFuera){body.style.overflow="visible";var menuDiv=document.querySelector("#masterMenu");menuDiv.style.overflow="visible";menuDiv.style.backgroundColor="transparent";menuFuera=true;}});}
87var enlaceDesplegable=document.querySelector("#desplegable-enlace");if(enlaceDesplegable){enlaceDesplegable.addEventListener("click",function(e){e.preventDefault();enlaceDesplegable.nextElementSibling.classList.toggle("hidden");});}});
88function d2rel(n){return(n>9?n:'0'+n);}
89var h=new Date();var dia_guardado=h.getDay();var hora_guardada=h.getHours();var isFirst=true;var hrefBtnUlt="";function defer(ultimasnoticias){if(window.jQuery){ultimasnoticias();}else{setTimeout(function(){defer(ultimasnoticias)},50);}}
90(function ultimasnoticias($){$.fn.refreshLista=function(conf){var defaultConfig={mobile:false,compartir:true};var config=$.extend(defaultConfig,conf);var $container=$(this).eq(0);var $list=$container.find("ul, ol");var doNuevas=function(){var primero="";primero=$container.find("li:first a").attr("href");primero=/\d{14}/.exec(primero);if(primero===""){primero=$container.find("li:first a").attr("id");primero=/\d{14}/.exec(primero);}
91config.fin=getFechorActual();$.getJSON("/ws/ListaNoticias_JSON.ashx",config,function(data){$.each(data,function(i,item){if($list.find("a[href='"+item.url+"']").length<=0&&item.url!==undefined){item.date=new Date(item.date);var formatoFecha=item.date.getFullYear()+"-"+item.date.getMonth()+"-"+item.date.getDate()+"T"+item.date.getHours()+":"+item.date.getMinutes()+":"+item.date.getSeconds();var $cajametadatos=$("<div />").addClass("articulo-metadatos");var $cajatime=$("<time />").addClass("articulo-actualizado").attr("datetime",formatoFecha).text(d2(item.date.getHours())+":"+d2rel(item.date.getMinutes()));$("<meta />").attr("content",formatoFecha).attr("itemprop","datePublished").appendTo($cajatime);$("<meta />").attr("content",formatoFecha).attr("itemprop","dateModified").appendTo($cajatime);var $caja=$("<div />").addClass("box_destacado");$cajametadatos.append($cajatime);if(item.url&&item.url!==""){var $mainEntityOfPage=$("<link />").attr("itemprop","mainEntityOfPage").attr("href",item.url);$cajametadatos.append($mainEntityOfPage);
91$info=$("<div />").addClass("articulo-interior");var enlaceSeccion=getObjetoNombreSeccion(item);var enlaceTitular=getObjetoTitular(item);enlaceSeccion.appendTo($info);enlaceTitular.appendTo($info);if(config.compartir){var $buttonCompartir=$("<button />").attr("type","button").addClass("button-compartir-abrir").click(function(){this.parentNode.parentNode.parentNode.classList.toggle("flip");});$buttonCompartir.appendTo($info);}}else{$a=$("<span />").text(item.titular);}
92var $fila=$("<article />").addClass("articulo").attr("itemscope","").attr("itemtype","http://schema.org/NewsArticle").attr("id",getIdArticle(item)).attr("itemref","organizacion autor");var $flipper=$("<div />").addClass("flipper");if(config.mobile){$fila.addClass("articulo");if(config.urgentes&&item.prioridad<=20){$fila.addClass("urgente");$a.attr("id","urgente_"+item.fechor);}
93$fila.addClass("articulo-nuevo");$fila.append($info);if(dia_guardado!=d2(item.date.getDate())){$("<date />").text(getNombreDia(item.date.getDay())+", "+item.date.getDate()+" de "+getMonthName(item.date.getMonth())).appendTo($caja);$caja.prependTo($list);dia_guardado=d2(item.date.getDate());}
94$fila.prependTo($list);}
95else{if(config.urgentes&&item.prioridad<=20)$a.addClass("urgente");if(hora_guardada!==d2(item.date.getHours())){if(h.getDate()!==parseInt(d2(item.date.getDate()))){if(d2(item.date.getHours())==="23"){var dia=parseInt(d2(item.date.getDate()))+1;if(dia===32)dia=1;$("<time />").text(dia+" "+getMonthName(h.getMonth()+1)).appendTo($caja);}else{$("<time />").text(parseInt(d2(item.date.getDate()))+" "+getMonthName(h.getMonth())+" "+hora_guardada+":00").appendTo($caja);}}else{$("<time />").text(hora_guardada+":00").appendTo($caja);}
96$caja.prependTo($list);hora_guardada=d2(item.date.getHours());}
97$flipper.append($info);if(config.compartir){$flipper.append(getBotonesCompartir(item));}
98$("<article />").addClass("articulo articulo-nuevo").attr("itemscope","").attr("itemtype","http://schema.org/NewsArticle").attr("id",getIdArticle(item)).append($cajametadatos).append($flipper).prependTo($list);}}});}).fail(function(jqXHR,textStatus,errorThrown){var urlActual=document.URL.split("?")[0];if(urlActual.substr(urlActual.length-1)==="/")urlActual=urlActual.slice(0,-1);window.location.replace(urlActual+"?ult="+ult);});jQuery(".articulo.articulo-nuevo").removeClass("articulo-nuevo");}
99setInterval(doNuevas,20000);return this;};})(jQuery);function hace(h){var d=new Date();d.setTime(d.getTime()-h*60*60*1000);return d;}
100function d2(n){return(n>9?n:'0'+n);}
101function getObjetoNombreSeccion(item){var spanSeccion=$("<span />").addClass("articulo-seccion "+item.claseCSS).attr("itemprop","articleSection");var enlaceSeccion=$("<a />");enlaceSeccion.attr("href",item.urlCanal).text(item.descripcionCanal);spanSeccion.append(enlaceSeccion);if(item.url.indexOf("infosalus")>-1||item.url.indexOf("culturaocio")>-1||item.url.indexOf("notimerica")>-1){enlaceSeccion.attr("rel","nofollow");}
102return spanSeccion;}
103function getObjetoTitular(noticia){var $a=$("<a />").attr("href",noticia.url).text(noticia.titular);if(noticia.url.indexOf("infosalus")>-1)$a.attr("rel","nofollow");if(noticia.url.indexOf("notimerica")>-1)$a.attr("rel","nofollow");if(noticia.url.indexOf("culturaocio")>-1)$a.attr("rel","nofollow");return $("<h2 />").addClass("articulo-titulo").attr("itemprop","headline").append($a);;}
104function getMonthName(mes){switch(mes){case 0:return"Enero";break;case 1:return"Febrero";break;case 2:return"Marzo";break;case 3:return"Abril";break;case 4:return"Mayo";break;case 5:return"Junio";break;case 6:return"Julio";break;case 7:return"Agosto";break;case 8:return"Septiembre";break;case 9:return"Octubre";break;case 10:return"Noviembre";break;case 11:return"Diciembre";break;default:return"";}}
105function getParameterByName(name){name=name.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var regex=new RegExp("[\\?&]"+name+"=([^&#]*)"),results=regex.exec(location.search);return results===null?"":decodeURIComponent(results[1].replace(/\+/g," "));}
106function extraerDia(fecha){return parseInt(fecha.substring(6,8));}
107function getFechorActual(){var fecha=new Date();var fhActual=fecha.getFullYear()+
108("0"+(fecha.getMonth()+1)).slice(-2)+
109("0"+fecha.getDate()).slice(-2)+
110("0"+fecha.getHours()).slice(-2)+
111("0"+fecha.getMinutes()).slice(-2)+
112("0"+fecha.getSeconds()).slice(-2);return fhActual;}
113function getNombreDia(dia){switch(dia){case 0:return"Domingo";break;case 1:return"Lunes";break;case 2:return"Martes";break;case 3:return"Miércoles";break;case 4:return"Jueves";break;case 5:return"Viernes";break;case 6:return"Sábado";break;default:return"";}}
114function getBotonesCompartir(noticia){var cadena="<div class='articulo-compartir'>";cadena+="<div class='caja-botones'>";cadena+="<h3>Comparte esta noticia</h3>";cadena+="<div class='div-botones'>";cadena+="<div class='twitter-ultimasnoticias'><a href='#' title='Compartir en Twitter' onclick=AbrePopUpRedim(\"https://twitter.com/share?url="+encodeURIComponent(noticia.url)+"&text="+encodeURIComponent(noticia.titular)+"\",450,550)></a></div>";cadena+="<div class='facebook-ultimasnoticias'><a href='#' title='Compartir en Facebook' onclick='AbrePopUpRedim(\"https://www.facebook.com/sharer.php?u="+encodeURIComponent(noticia.url)+"\",450,550)'></a></div>";cadena+="<div class='meneame-ultimasnoticias'><a href='#' title='Compartir en Menéame' onclick='AbrePopUpRedim(\"https://meneame.net/login.php?return=/submit.php?url="+encodeURIComponent(noticia.url)+"\",450,550)'></a></div>";cadena+="<div class='mail-ultimasnoticias'><a href='#' title='Compartir por e-mail' onclick='AbrePopUpRedim(\"mailto:?subject="+encodeURIComponent(noticia.titular)+"&body="+encodeURIComponent(noticia.url)+"\",450,550)' target='_blank'></a></div>";cadena+="</div></div>";cadena+="<button type='button' class='button-compartir-cerrar' onclick='this.parentNode.parentNode.parentNode.classList.toggle(\"flip\")'></div>";cadena+="</div>";return cadena;}
115function getIdArticle(noticia){var pattern=/(www|m)\.(europapress|infosalus|culturaocio|notimerica|aldia)\.(es|com)\/?([\w\-/]*)?\/([\w\-/]*).html/;var match=pattern.exec(noticia.url);return match[5];}
116const SuscripcionBoletin=function(config){const btnSuscribir=document.getElementById(config.btnSu
116scribirId);const infoText=btnSuscribir.parentNode.nextElementSibling;const cajaEmail=btnSuscribir.previousElementSibling;const checkCondicionesUso=btnSuscribir.parentNode.querySelector("input[type='checkbox']");const tema=config.tema;const entidad=config.entidadId;const validaEmail=function(email){if(email==="")
117return false;const regexValidEmail=/^[A-Z0-9._%+-]+@(?:[A-Z0-9-]+\.)+[A-Z]{2,}$/i;return regexValidEmail.test(email);};const aceptaCondiciones=function(){return checkCondicionesUso.checked;};const showMsg=function(msg){infoText.textContent=msg;};const postSuscripcion=function(email){const data="email="+email+"&tema="+tema+"&entidad="+entidad+"&uh=1";const request=new XMLHttpRequest();request.open('POST','/ws/AltaBoletin.ashx',true);request.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');request.onload=function(){if(request.status===200){showMsg(request.responseText);trackEventGA("cajaboletin","suscripcion")}else{showMsg(request.statusText);}};request.onerror=function(){showMsg("Parece que se ha producido un error. Vuelve a intentarlo.");};request.send(data);};const suscribir=function(){const email=cajaEmail.value;if(!validaEmail(email)){showMsg("Introduce una dirección de email válida.");return;}
118if(!aceptaCondiciones()){showMsg("Debes aceptar las condiciones de uso.");return;}
119postSuscripcion(email);};this.init=function(){if(btnSuscribir===null){return;}
120cajaEmail.addEventListener("keypress",function(e){if((e.which===13)||(e.which===10)){e.preventDefault();suscribir();}});btnSuscribir.addEventListener("click",suscribir);};};
121const SuscripcionBoletin=function(config){const btnSuscribir=document.getElementById(config.btnSuscribirId);const infoText=btnSuscribir.parentNode.nextElementSibling;const cajaEmail=btnSuscribir.previousElementSibling;const checkCondicionesUso=btnSuscribir.parentNode.querySelector("input[type='checkbox']");const tema=config.tema;const entidad=config.entidadId;const validaEmail=function(email){if(email==="")
122return false;const regexValidEmail=/^[A-Z0-9._%+-]+@(?:[A-Z0-9-]+\.)+[A-Z]{2,}$/i;return regexValidEmail.test(email);};const aceptaCondiciones=function(){return checkCondicionesUso.checked;};const showMsg=function(msg){infoText.textContent=msg;};const postSuscripcion=function(email){const data="email="+email+"&tema="+tema+"&entidad="+entidad+"&uh=1";const request=new XMLHttpRequest();request.open('POST','/ws/AltaBoletin.ashx',true);request.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');request.onload=function(){if(request.status===200){showMsg(request.responseText);trackEventGA("cajaboletin","suscripcion")}else{showMsg(request.statusText);}};request.onerror=function(){showMsg("Parece que se ha producido un error. Vuelve a intentarlo.");};request.send(data);};const suscribir=function(){const email=cajaEmail.value;if(!validaEmail(email)){showMsg("Introduce una dirección de email válida.");return;}
123if(!aceptaCondiciones()){showMsg("Debes aceptar las condiciones de uso.");return;}
124postSuscripcion(email);};this.init=function(){if(btnSuscribir===null){return;}
125cajaEmail.addEventListener("keypress",function(e){if((e.which===13)||(e.which===10)){e.preventDefault();suscribir();}});btnSuscribir.addEventListener("click",suscribir);};};
126/*!
127 * perfect-scrollbar v1.5.2
128 * Copyright 2021 Hyunje Jun, MDBootstrap and Contributors
129 * Licensed under MIT
130 */(function (a, b) { "object" == typeof exports && "undefined" != typeof module ? module.exports = b() : "function" == typeof define && define.amd ? define(b) : (a = a || self, a.PerfectScrollbar = b()) })(this, function () {
131     'use strict'; var u = Math.abs, v = Math.floor; function a(a) { return getComputedStyle(a) } function b(a, b) { for (var c in b) { var d = b[c]; "number" == typeof d && (d += "px"), a.style[c] = d } return a } function c(a) { var b = document.createElement("div"); return b.className = a, b } function d(a, b) { if (!w) throw new Error("No element matching method supported"); return w.call(a, b) } function e(a) { a.remove ? a.remove() : a.parentNode && a.parentNode.removeChild(a) } function f(a, b) { return Array.prototype.filter.call(a.children, function (a) { return d(a, b) }) } function g(a, b) { var c = a.element.classList, d = z.state.scrolling(b); c.contains(d) ? clearTimeout(A[b]) : c.add(d) } function h(a, b) { A[b] = setTimeout(function () { return a.isAlive && a.element.classList.remove(z.state.scrolling(b)) }, a.settings.scrollingThreshold) } function j(a, b) { g(a, b), h(a, b) } function k(a) { if ("function" == typeof window.CustomEvent) return new CustomEvent(a); var b = document.createEvent("CustomEvent"); return b.initCustomEvent(a, !1, !1, void 0), b } function l(a, b, c, d, e) { void 0 === d && (d = !0), void 0 === e && (e = !1); var f; if ("top" === b) f = ["contentHeight", "containerHeight", "scrollTop", "y", "up", "down"]; else if ("left" === b) f = ["contentWidth", "containerWidth", "scrollLeft", "x", "left", "right"]; else throw new Error("A proper axis should be provided"); m(a, c, f, d, e) } function m(a, b, c, d, e) {
132         var f = c[0], g = c[1], h = c[2], i = c[3], l = c[4], m = c[5]; void 0 === d && (d = !0), void 0 === e && (e = !1); var n = a.element;// reset reach
133         a.reach[i] = null, 1 > n[h] && (a.reach[i] = "start"), n[h] > a[f] - a[g] - 1 && (a.reach[i] = "end"), b && (n.dispatchEvent(k("ps-scroll-" + i)), 0 > b ? n.dispatchEvent(k("ps-scroll-" + l)) : 0 < b && n.dispatchEvent(k("ps-scroll-" + m)), d && j(a, i)), a.reach[i] && (b || e) && n.dispatchEvent(k("ps-" + i + "-reach-" + a.reach[i])
vendor: 11,788 bytes, lines 133-151
133)
134     } function n(a) { return parseInt(a, 10) || 0 } function o(a) { return d(a, "input,[contenteditable]") || d(a, "select,[contenteditable]") || d(a, "textarea,[contenteditable]") || d(a, "button,[contenteditable]") } function p(b) { var c = a(b); return n(c.width) + n(c.paddingLeft) + n(c.paddingRight) + n(c.borderLeftWidth) + n(c.borderRightWidth) } function q(a) { var b = Math.round, c = a.element, d = v(c.scrollTop), g = c.getBoundingClientRect(); a.containerWidth = b(g.width), a.containerHeight = b(g.height), a.contentWidth = c.scrollWidth, a.contentHeight = c.scrollHeight, c.contains(a.scrollbarXRail) || (f(c, z.element.rail("x")).forEach(function (a) { return e(a) }), c.appendChild(a.scrollbarXRail)), c.contains(a.scrollbarYRail) || (f(c, z.element.rail("y")).forEach(function (a) { return e(a) }), c.appendChild(a.scrollbarYRail)), !a.settings.suppressScrollX && a.containerWidth + a.settings.scrollXMarginOffset < a.contentWidth ? (a.scrollbarXActive = !0, a.railXWidth = a.containerWidth - a.railXMarginWidth, a.railXRatio = a.containerWidth / a.railXWidth, a.scrollbarXWidth = r(a, n(a.railXWidth * a.containerWidth / a.contentWidth)), a.scrollbarXLeft = n((a.negativeScrollAdjustment + c.scrollLeft) * (a.railXWidth - a.scrollbarXWidth) / (a.contentWidth - a.containerWidth))) : a.scrollbarXActive = !1, !a.settings.suppressScrollY && a.containerHeight + a.settings.scrollYMarginOffset < a.contentHeight ? (a.scrollbarYActive = !0, a.railYHeight = a.containerHeight - a.railYMarginHeight, a.railYRatio = a.containerHeight / a.railYHeight, a.scrollbarYHeight = r(a, n(a.railYHeight * a.containerHeight / a.contentHeight)), a.scrollbarYTop = n(d * (a.railYHeight - a.scrollbarYHeight) / (a.contentHeight - a.containerHeight))) : a.scrollbarYActive = !1, a.scrollbarXLeft >= a.railXWidth - a.scrollbarXWidth && (a.scrollbarXLeft = a.railXWidth - a.scrollbarXWidth), a.scrollbarYTop >= a.railYHeight - a.scrollbarYHeight && (a.scrollbarYTop = a.railYHeight - a.scrollbarYHeight), s(c, a), a.scrollbarXActive ? c.classList.add(z.state.active("x")) : (c.classList.remove(z.state.active("x")), a.scrollbarXWidth = 0, a.scrollbarXLeft = 0, c.scrollLeft = !0 === a.isRtl ? a.contentWidth : 0), a.scrollbarYActive ? c.classList.add(z.state.active("y")) : (c.classList.remove(z.state.active("y")), a.scrollbarYHeight = 0, a.scrollbarYTop = 0, c.scrollTop = 0) } function r(a, b) { var c = Math.min, d = Math.max; return a.settings.minScrollbarLength && (b = d(b, a.settings.minScrollbarLength)), a.settings.maxScrollbarLength && (b = c(b, a.settings.maxScrollbarLength)), b } function s(a, c) { var d = { width: c.railXWidth }, e = v(a.scrollTop); d.left = c.isRtl ? c.negativeScrollAdjustment + a.scrollLeft + c.containerWidth - c.contentWidth : a.scrollLeft, c.isScrollbarXUsingBottom ? d.bottom = c.scrollbarXBottom - e : d.top = c.scrollbarXTop + e, b(c.scrollbarXRail, d); var f = { top: e, height: c.railYHeight }; c.isScrollbarYUsingRight ? c.isRtl ? f.right = c.contentWidth - (c.negativeScrollAdjustment + a.scrollLeft) - c.scrollbarYRight - c.scrollbarYOuterWidth - 9 : f.right = c.scrollbarYRight - a.scrollLeft : c.isRtl ? f.left = c.negativeScrollAdjustment + a.scrollLeft + 2 * c.containerWidth - c.contentWidth - c.scrollbarYLeft - c.scrollbarYOuterWidth : f.left = c.scrollbarYLeft + a.scrollLeft, b(c.scrollbarYRail, f), b(c.scrollbarX, { left: c.scrollbarXLeft, width: c.scrollbarXWidth - c.railBorderXWidth }), b(c.scrollbarY, { top: c.scrollbarYTop, height: c.scrollbarYHeight - c.railBorderYWidth }) } function t(a, b) { function c(b) { b.touches && b.touches[0] && (b[k] = b.touches[0].pageY), s[o] = t + v * (b[k] - u), g(a, p), q(a), b.stopPropagation(), b.preventDefault() } function d() { h(a, p), a[r].classList.remove(z.state.clicking), a.event.unbind(a.ownerDocument, "mousemove", c) } function f(b, e) { t = s[o], e && b.touches && (b[k] = b.touches[0].pageY), u = b[k], v = (a[j] - a[i]) / (a[l] - a[n]), e ? a.event.bind(a.ownerDocument, "touchmove", c) : (a.event.bind(a.ownerDocument, "mousemove", c), a.event.once(a.ownerDocument, "mouseup", d), b.preventDefault()), a[r].classList.add(z.state.clicking), b.stopPropagation() } var i = b[0], j = b[1], k = b[2], l = b[3], m = b[4], n = b[5], o = b[6], p = b[7], r = b[8], s = a.element, t = null, u = null, v = null; a.event.bind(a[m], "mousedown", function (a) { f(a) }), a.event.bind(a[m], "touchstart", function (a) { f(a, !0) }) } var w = "undefined" != typeof Element && (Element.prototype.matches || Element.prototype.webkitMatchesSelector || Element.prototype.mozMatchesSelector || Element.prototype.msMatchesSelector), z = { main: "ps", rtl: "ps__rtl", element: { thumb: function (a) { return "ps__thumb-" + a }, rail: function (a) { return "ps__rail-" + a }, consuming: "ps__child--consume" }, state: { focus: "ps--focus", clicking: "ps--clicking", active: function (a) { return "ps--active-" + a }, scrolling: function (a) { return "ps--scrolling-" + a } } }, A = { x: null, y: null }, B = function (a) { this.element = a, this.handlers = {} }, C = { isEmpty: { configurable: !0 } }; B.prototype.bind = function (a, b) { "undefined" == typeof this.handlers[a] && (this.handlers[a] = []), this.handlers[a].push(b), this.element.addEventListener(a, b, !1) }, B.prototype.unbind = function (a, b) { var c = this; this.handlers[a] = this.handlers[a].filter(function (d) { return !!(b && d !== b) || (c.element.removeEventListener(a, d, !1), !1) }) }, B.prototype.unbindAll = function () { for (var a in this.handlers) this.unbind(a) }, C.isEmpty.get = function () { var a = this; return Object.keys(this.handlers).every(function (b) { return 0 === a.handlers[b].length }) }, Object.defineProperties(B.prototype, C); var D = function () { this.eventElements = [] }; D.prototype.eventElement = function (a) { var b = this.eventElements.filter(function (b) { return b.element === a })[0]; return b || (b = new B(a), this.eventElements.push(b)), b }, D.prototype.bind = function (a, b, c) { this.eventElement(a).bind(b, c) }, D.prototype.unbind = function (a, b, c) { var d = this.eventElement(a); d.unbind(b, c), d.isEmpty && this.eventElements.splice(this.eventElements.indexOf(d), 1) }, D.prototype.unbindAll = function () { this.eventElements.forEach(function (a) { return a.unbindAll() }), this.eventElements = [] }, D.prototype.once = function (a, b, c) { var d = this.eventElement(a), e = function (a) { d.unbind(b, e), c(a) }; d.bind(b, e) }; var E = { isWebKit: "undefined" != typeof document && "WebkitAppearance" in document.documentElement.style, supportsTouch: "undefined" != typeof window && ("ontouchstart" in window || "maxTouchPoints" in window.navigator && 0 < window.navigator.maxTouchPoints || window.DocumentTouch && document instanceof window.DocumentTouch), supportsIePointer: "undefined" != typeof navigator && navigator.msMaxTouchPoints, isChrome: "undefined" != typeof navigator && /Chrome/i.test(navigator && navigator.userAgent) }, F = function () { return { handlers: ["click-rail", "drag-thumb", "keyboard", "wheel", "touch"], maxScrollbarLength: null, minScrollbarLength: null, scrollingThreshold: 1e3, scrollXMarginOffset: 0, scrollYMarginOffset: 0, suppressScrollX: !1, suppressScrollY: !1, swipeEasing: !0, useBothWheelAxes: !1, wheelPropagation: !0, wheelSpeed: 1 } }, G = {
135         "click-rail": function (a) { a.element; a.event.bind(a.scrollbarY, "mousedown", function (a) { return a.stopPropagation() }), a.event.bind(a.scrollbarYRail, "mousedown", function (b) { var c = b.pageY - window.pageYOffset - a.scrollbarYRail.getBoundingClientRect().top, d = c > a.scrollbarYTop ? 1 : -1; a.element.scrollTop += d * a.containerHeight, q(a), b.stopPropagation() }), a.event.bind(a.scrollbarX, "mousedown", function (a) { return a.stopPropagation() }), a.event.bind(a.scrollbarXRail, "mousedown", function (b) { var c = b.pageX - window.pageXOffset - a.scrollbarXRail.getBoundingClientRect().left, d = c > a.scrollbarXLeft ? 1 : -1; a.element.scrollLeft += d * a.containerWidth, q(a), b.stopPropagation() }) }, "drag-thumb": function (a) { t(a, ["containerWidth", "contentWidth", "pageX", "railXWidth", "scrollbarX", "scrollbarXWidth", "scrollLeft", "x", "scrollbarXRail"]), t(a, ["containerHeight", "contentHeight", "pageY", "railYHeight", "scrollbarY", "scrollbarYHeight", "scrollTop", "y", "scrollbarYRail"]) }, keyboard: function (a) {
136             function b(b, d) { var e = v(c.scrollTop); if (0 === b) { if (!a.scrollbarYActive) return !1; if (0 === e && 0 < d || e >= a.contentHeight - a.containerHeight && 0 > d) return !a.settings.wheelPropagation } var f = c.scrollLeft; if (0 === d) { if (!a.scrollbarXActive) return !1; if (0 === f && 0 > b || f >= a.contentWidth - a.containerWidth && 0 < b) return !a.settings.wheelPropagation } return !0 } var c = a.element, f = function () { return d(c, ":hover") }, g = function () { return d(a.scrollbarX, ":focus") || d(a.scrollbarY, ":focus") }; a.event.bind(a.ownerDocument, "keydown", function (d) {
137                 if (!(d.isDefaultPrevented && d.isDefaultPrevented() || d.defaultPrevented) && (f() || g())) {
138                     var e = document.activeElement ? document.activeElement : a.ownerDocument.activeElement; if (e) {
139                         if ("IFRAME" === e.tagName) e = e.contentDocument.activeElement; else// go deeper if element is a webcomponent
140                             for (; e.shadowRoot;)e = e.shadowRoot.activeElement; if (o(e)) return
141                     } var h = 0, i = 0; switch (d.which) { case 37: h = d.metaKey ? -a.contentWidth : d.altKey ? -a.containerWidth : -30; break; case 38: i = d.metaKey ? a.contentHeight : d.altKey ? a.containerHeight : 30; break; case 39: h = d.metaKey ? a.contentWidth : d.altKey ? a.containerWidth : 30; break; case 40: i = d.metaKey ? -a.contentHeight : d.altKey ? -a.containerHeight : -30; break; case 32: i = d.shiftKey ? a.containerHeight : -a.containerHeight; break; case 33: i = a.containerHeight; break; case 34: i = -a.containerHeight; break; case 36: i = a.contentHeight; break; case 35: i = -a.contentHeight; break; default: return; }a.settings.suppressScrollX && 0 !== h || a.settings.suppressScrollY && 0 !== i || (c.scrollTop -= i, c.scrollLeft += h, q(a), b(h, i) && d.preventDefault())
142                 }
143             })
144         }, wheel: function (b) {
145             function c(a, c) { var d, e = v(h.scrollTop), f = 0 === h.scrollTop, g = e + h.offsetHeight === h.scrollHeight, i = 0 === h.scrollLeft, j = h.scrollLeft + h.offsetWidth === h.scrollWidth; return d = u(c) > u(a) ? f || g : i || j, !d || !b.settings.wheelPropagation } function d(a) { var b = a.deltaX, c = -1 * a.deltaY; return ("undefined" == typeof b || "undefined" == typeof c) && (b = -1 * a.wheelDeltaX / 6, c = a.wheelDeltaY / 6), a.deltaMode && 1 === a.deltaMode && (b *= 10, c *= 10), b !== b && c !== c/* NaN checks */ && (b = 0, c = a.wheelDelta), a.shiftKey ? [-c, -b] : [b, c] } function f(b, c, d) {// FIXME: this is a workaround for <select> issue in FF and IE #571
146                 if (!E.isWebKit && h.querySelector("select:focus")) return !0; if (!h.contains(b)) return !1; for (var e = b; e && e !== h;) {
147                     if (e.classList.contains(z.element.consuming)) return !0; var f = a(e);// if deltaY && vertical scrollable
148                     if (d && f.overflowY.match(/(scroll|auto)/)) { var g = e.scrollHeight - e.clientHeight; if (0 < g && (0 < e.scrollTop && 0 > d || e.scrollTop < g && 0 < d)) return !0 }// if deltaX && horizontal scrollable
149                     if (c && f.overflowX.match(/(scroll|auto)/)) { var i = e.scrollWidth - e.clientWidth; if (0 < i && (0 < e.scrollLeft && 0 > c || e.scrollLeft < i && 0 < c)) return !0 } e = e.parentNode
150                 } return !1
151             }
151 function g(a) { var e = d(a), g = e[0], i = e[1]; if (!f(a.target, g, i)) { var j = !1; b.settings.useBothWheelAxes ? b.scrollbarYActive && !b.scrollbarXActive ? (i ? h.scrollTop -= i * b.settings.wheelSpeed : h.scrollTop += g * b.settings.wheelSpeed, j = !0) : b.scrollbarXActive && !b.scrollbarYActive && (g ? h.scrollLeft += g * b.settings.wheelSpeed : h.scrollLeft -= i * b.settings.wheelSpeed, j = !0) : (h.scrollTop -= i * b.settings.wheelSpeed, h.scrollLeft += g * b.settings.wheelSpeed), q(b), j = j || c(g, i), j && !a.ctrlKey && (a.stopPropagation(), a.preventDefault()) } } var h = b.element; "undefined" == typeof window.onwheel ? "undefined" != typeof window.onmousewheel && b.event.bind(h, "mousewheel", g) : b.event.bind(h, "wheel", g)
152         }, touch: function (b) {
153             function c(a, c) {
154                 var d = v(l.scrollTop), e = l.scrollLeft, f = u(a), g = u(c); if (g > f) {// user is perhaps trying to swipe up/down the page
155                     if (0 > c && d === b.contentHeight - b.containerHeight || 0 < c && 0 === d)// set prevent for mobile Chrome refresh
156                         return 0 === window.scrollY && 0 < c && E.isChrome;
157                 } else if (f > g && (0 > a && e === b.contentWidth - b.containerWidth || 0 < a && 0 === e))// user is perhaps trying to swipe left/right across the page
158                     return !0; return !0
159             } function d(a, c) { l.scrollTop -= c, l.scrollLeft -= a, q(b) } function f(a) { return a.targetTouches ? a.targetTouches[0] : a } function g(a) { return !(a.pointerType && "pen" === a.pointerType && 0 === a.buttons) && (!!(a.targetTouches && 1 === a.targetTouches.length) || !!(a.pointerType && "mouse" !== a.pointerType && a.pointerType !== a.MSPOINTER_TYPE_MOUSE)) } function h(a) { if (g(a)) { var b = f(a); m.pageX = b.pageX, m.pageY = b.pageY, n = new Date().getTime(), null !== p && clearInterval(p) } } function i(b, c, d) {
160                 if (!l.contains(b)) return !1; for (var e = b; e && e !== l;) {
161                     if (e.classList.contains(z.element.consuming)) return !0; var f = a(e);// if deltaY && vertical scrollable
162                     if (d && f.overflowY.match(/(scroll|auto)/)) { var g = e.scrollHeight - e.clientHeight; if (0 < g && (0 < e.scrollTop && 0 > d || e.scrollTop < g && 0 < d)) return !0 }// if deltaX && horizontal scrollable
163                     if (c && f.overflowX.match(/(scroll|auto)/)) { var h = e.scrollWidth - e.clientWidth; if (0 < h && (0 < e.scrollLeft && 0 > c || e.scrollLeft < h && 0 < c)) return !0 } e = e.parentNode
164                 } return !1
165             } function j(a) { if (g(a)) { var b = f(a), e = { pageX: b.pageX, pageY: b.pageY }, h = e.pageX - m.pageX, j = e.pageY - m.pageY; if (i(a.target, h, j)) return; d(h, j), m = e; var k = new Date().getTime(), l = k - n; 0 < l && (o.x = h / l, o.y = j / l, n = k), c(h, j) && a.preventDefault() } } function k() { b.settings.swipeEasing && (clearInterval(p), p = setInterval(function () { return b.isInitialized ? void clearInterval(p) : o.x || o.y ? .01 > u(o.x) && .01 > u(o.y) ? void clearInterval(p) : b.element ? void (d(30 * o.x, 30 * o.y), o.x *= .8, o.y *= .8) : void clearInterval(p) : void clearInterval(p) }, 10)) } if (E.supportsTouch || E.supportsIePointer) { var l = b.element, m = {}, n = 0, o = {}, p = null; E.supportsTouch ? (b.event.bind(l, "touchstart", h), b.event.bind(l, "touchmove", j), b.event.bind(l, "touchend", k)) : E.supportsIePointer && (window.PointerEvent ? (b.event.bind(l, "pointerdown", h), b.event.bind(l, "pointermove", j), b.event.bind(l, "pointerup", k)) : window.MSPointerEvent && (b.event.bind(l, "MSPointerDown", h), b.event.bind(l, "MSPointerMove", j), b.event.bind(l, "MSPointerUp", k))) }
166         }
167     }, H = function (d, e) { var f = this; if (void 0 === e && (e = {}), "string" == typeof d && (d = document.querySelector(d)), !d || !d.nodeName) throw new Error("no element is specified to initialize PerfectScrollbar"); for (var g in this.element = d, d.classList.add(z.main), this.settings = F(), e) this.settings[g] = e[g]; this.containerWidth = null, this.containerHeight = null, this.contentWidth = null, this.contentHeight = null; var h = function () { return d.classList.add(z.state.focus) }, i = function () { return d.classList.remove(z.state.focus) }; this.isRtl = "rtl" === a(d).direction, !0 === this.isRtl && d.classList.add(z.rtl), this.isNegativeScroll = function () { var a = d.scrollLeft, b = null; return d.scrollLeft = -1, b = 0 > d.scrollLeft, d.scrollLeft = a, b }(), this.negativeScrollAdjustment = this.isNegativeScroll ? d.scrollWidth - d.clientWidth : 0, this.event = new D, this.ownerDocument = d.ownerDocument || document, this.scrollbarXRail = c(z.element.rail("x")), d.appendChild(this.scrollbarXRail), this.scrollbarX = c(z.element.thumb("x")), this.scrollbarXRail.appendChild(this.scrollbarX), this.scrollbarX.setAttribute("tabindex", 0), this.event.bind(this.scrollbarX, "focus", h), this.event.bind(this.scrollbarX, "blur", i), this.scrollbarXActive = null, this.scrollbarXWidth = null, this.scrollbarXLeft = null; var j = a(this.scrollbarXRail); this.scrollbarXBottom = parseInt(j.bottom, 10), isNaN(this.scrollbarXBottom) ? (this.isScrollbarXUsingBottom = !1, this.scrollbarXTop = n(j.top)) : this.isScrollbarXUsingBottom = !0, this.railBorderXWidth = n(j.borderLeftWidth) + n(j.borderRightWidth), b(this.scrollbarXRail, { display: "block" }), this.railXMarginWidth = n(j.marginLeft) + n(j.marginRight), b(this.scrollbarXRail, { display: "" }), this.railXWidth = null, this.railXRatio = null, this.scrollbarYRail = c(z.element.rail("y")), d.appendChild(this.scrollbarYRail), this.scrollbarY = c(z.element.thumb("y")), this.scrollbarYRail.appendChild(this.scrollbarY), this.scrollbarY.setAttribute("tabindex", 0), this.event.bind(this.scrollbarY, "focus", h), this.event.bind(this.scrollbarY, "blur", i), this.scrollbarYActive = null, this.scrollbarYHeight = null, this.scrollbarYTop = null; var k = a(this.scrollbarYRail); this.scrollbarYRight = parseInt(k.right, 10), isNaN(this.scrollbarYRight) ? (this.isScrollbarYUsingRight = !1, this.scrollbarYLeft = n(k.left)) : this.isScrollbarYUsingRight = !0, this.scrollbarYOuterWidth = this.isRtl ? p(this.scrollbarY) : null, this.railBorderYWidth = n(k.borderTopWidth) + n(k.borderBottomWidth), b(this.scrollbarYRail, { display: "block" }), this.railYMarginHeight = n(k.marginTop) + n(k.marginBottom), b(this.scrollbarYRail, { display: "" }), this.railYHeight = null, this.railYRatio = null, this.reach = { x: 0 >= d.scrollLeft ? "start" : d.scrollLeft >= this.contentWidth - this.containerWidth ? "end" : null, y: 0 >= d.scrollTop ? "start" : d.scrollTop >= this.contentHeight - this.containerHeight ? "end" : null }
vendor: 2,006 bytes, lines 167-177
167, this.isAlive = !0, this.settings.handlers.forEach(function (a) { return G[a](f) }), this.lastScrollTop = v(d.scrollTop), this.lastScrollLeft = d.scrollLeft, this.event.bind(this.element, "scroll", function (a) { return f.onScroll(a) }), q(this) }; return H.prototype.update = function () {
168         this.isAlive && (// Recalcuate negative scrollLeft adjustment
169             // Recalculate rail margins
170             // Hide scrollbars not to affect scrollWidth and scrollHeight
171             this.negativeScrollAdjustment = this.isNegativeScroll ? this.element.scrollWidth - this.element.clientWidth : 0, b(this.scrollbarXRail, { display: "block" }), b(this.scrollbarYRail, { display: "block" }), this.railXMarginWidth = n(a(this.scrollbarXRail).marginLeft) + n(a(this.scrollbarXRail).marginRight), this.railYMarginHeight = n(a(this.scrollbarYRail).marginTop) + n(a(this.scrollbarYRail).marginBottom), b(this.scrollbarXRail, { display: "none" }), b(this.scrollbarYRail, { display: "none" }), q(this), l(this, "top", 0, !1, !0), l(this, "left", 0, !1, !0), b(this.scrollbarXRail, { display: "" }), b(this.scrollbarYRail, { display: "" }))
172     }, H.prototype.onScroll = function () { this.isAlive && (q(this), l(this, "top", this.element.scrollTop - this.lastScrollTop), l(this, "left", this.element.scrollLeft - this.lastScrollLeft), this.lastScrollTop = v(this.element.scrollTop), this.lastScrollLeft = this.element.scrollLeft) }, H.prototype.destroy = function () {
173         this.isAlive && (// unset elements
174             this.event.unbindAll(), e(this.scrollbarX), e(this.scrollbarY), e(this.scrollbarXRail), e(this.scrollbarYRail), this.removePsClasses(), this.element = null, this.scrollbarX = null, this.scrollbarY = null, this.scrollbarXRail = null, this.scrollbarYRail = null, this.isAlive = !1)
175     }, H.prototype.removePsClasses = function () { this.element.className = this.element.className.split(" ").filter(function (a) { return !a.match(/^ps([-_].+|)$/) }).join(" ") }, H
176 });
177

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.