1/*! For license information please see user-activity.bundle.js.LICENSE.txt */ 2(()=>{var t={854:(t,e,r)=>{"use strict";r.r(e);var n={text:!0,image:!0};function o(t){return null==t||""===t?null:"number"==typeof t?t+"px":String(t)}const i=function(t){var e=n[(t=t||{}).type]?t.type:"text",r=Boolean(t.fill),i=document.createElement("span");i.className="c-skeleton c-skeleton--"+e,i.setAttribute("aria-hidden","true"),r&&i.classList.add("c-skeleton--fill"),t.className&&(i.className+=" "+t.className);var a=o(t.width),c=o(t.height);return a&&(i.style.width=a),c&&(i.style.height=c),i};function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function c(){c=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function h(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(t){h=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),c=new T(n||[]);return o(a,"_invoke",{value:k(t,r,c)}),a}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",m="executing",y="completed",v={};function g(){}function w(){}function b(){}var x={};h(x,u,(function(){return this}));var E=Object.getPrototypeOf,_=E&&E(E(P([])));_&&_!==r&&n.call(_,u)&&(x=_);var L=b.prototype=g.prototype=Object.create(x);function N(t){["next","throw","return"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,i,c,u){var s=d(t[o],t,i);if("throw"!==s.type){var l=s.arg,h=l.value;return h&&"object"==a(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(h).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var o=p;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=C(c,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var s=d(e,r,n);if("normal"===s.type){if(o=n.done?y:"suspendedYield",s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function C(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,C(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=d(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(a(e)+" is not iterable")}return w.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:w,configurable:!0}),w.displayName=h(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,h(t,l,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},N(S.prototype),h(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Prom
2ise);var a=new S(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},N(L),h(L,l,"Generator"),h(L,u,(function(){return this})),h(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=P,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function u(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function s(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){u(i,n,o,a,c,"next",t)}function c(t){u(i,n,o,a,c,"throw",t)}a(void 0)}))}}!function(){var t="/get/user/comments",e=document.querySelector("[data-user-comments-list]"),r=document.querySelector("[data-user-comments-empty]"),n=document.querySelector("[data-user-comments-pagination]"),o=document.querySelector("[data-user-comments-prev]"),a=document.querySelector("[data-user-comments-next]");if(e){var u=null,l=null,h=!1,f=[];"loading"!==document.readyState?E():document.addEventListener("DOMContentLoaded",E)}function d(){var t=encodeURIComponent(window.location.pathname+window.location.search);window.location.href="/user/login?back="+t}function p(t){t&&(function(t){e.innerHTML="";for(var r=0;r<5;r++){var n=document.createElement("li");n.className="c-area-comments-list__item c-area-comments-list__item--skeleton",n.setAttribute("aria-hidden","true");var o=document.createElement("div");o.className="c-area-comments-list__data";for(var a=0;a<3;a++)o.appendChild(i({type:"text",width:"4.5rem",height:"0.875rem"}));n.appendChild(i({type:"text",width:"70%",height:"1.25rem"})),n.appendChild(i({type:"text",height:"0.875rem"})),n.appendChild(i({type:"text",width:"85%",height:"0.875rem"})),n.appendChild(o),e.appendChild(n)}}(),r&&(r.hidden=!0),n&&(n.hidden=!0),e.hidden=!1),e&&e.setAttribute("aria-busy",t?"true":"false")}function m(){if(n&&o&&a){var t=f.length>0;t||h?(n.hidden=!1,o.disabled=!t,a.disabled=!h):n.hidden=!0}}function y(t){if(e.innerHTML="",!t.length)return e.hidden=!0,void(r&&(r.hidden=!1));r&&(r.hidden=!0),e.hidden=!1,t.forEach((function(t){var r=t.article||{},n=r.id||"",o=document.createElement("li");
2o.className="c-area-comments-list__item",n&&(o.dataset.articleId=String(n));var i=document.createElement("a");i.className="c-area-comments-list__link trk-area-usuario",i.href=r.url||"/",i.textContent=r.title||"Noticia";var a=document.createElement("p");a.className="c-area-comments-list__resume",a.textContent=t.comment||"";var c=document.createElement("div");c.className="c-area-comments-list__data";var u=document.createElement("p");u.className="c-area-comments-list__data-date",u.textContent=function(t){if(!t)return"";var e=new Date(t);if(Number.isNaN(e.getTime()))return"";var r=new Intl.DateTimeFormat("es-ES",{day:"2-digit",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"}).formatToParts(e),n=function(t){var e=r.find((function(e){return e.type===t}));return e?e.value:""},o=n("month").replace(".","").toLowerCase();return n("day")+" "+o+" "+n("year")+", "+n("hour")+":"+n("minute")}(t.created_at);var s=document.createElement("p");s.className="c-area-comments-list__data-likes",s.textContent=String(Number(t.likes)||0);var l=document.createElement("p");l.className="c-area-comments-list__data-comments",l.textContent=String(Number(t.replies)||0),c.appendChild(u),c.appendChild(s),c.appendChild(l),o.appendChild(i),o.appendChild(a),o.appendChild(c),e.appendChild(o)}))}function v(t,e){return g.apply(this,arguments)}function g(){return(g=s(c().mark((function o(i,a){var s,v,g,w;return c().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return s=a||{},p(!0),o.prev=2,v=i?t+"?after="+encodeURIComponent(i):t,o.next=6,fetch(v,{method:"GET",credentials:"include",headers:{Accept:"application/json"}});case 6:if(401!==(g=o.sent).status){o.next=10;break}return d(),o.abrupt("return",!1);case 10:if(g.ok){o.next=12;break}throw new Error("User comments list failed: "+g.status);case 12:return o.next=14,g.json();case 14:return w=o.sent,s.pushHistory&&f.push(u),u=i,l=w.next_cursor||null,h=!!w.has_next&&!!l,y(w.results||[]),m(),o.abrupt("return",!0);case 24:return o.prev=24,o.t0=o.catch(2),console.error("[userCommentsList]",o.t0),e.hidden=!0,r&&(r.hidden=!1),n&&(n.hidden=!0),o.abrupt("return",!1);case 31:return o.prev=31,p(!1),o.finish(31);case 34:case"end":return o.stop()}}),o,null,[[2,24,31,34]])})))).apply(this,arguments)}function w(){h&&l&&v(l,{pushHistory:!0})}function b(){if(f.length){var t=f.pop();v(t).then((function(e){e||f.push(t)}))}}function x(t){o&&o.addEventListener("click",b),a&&a.addEventListener("click",w),t.onLogin((function(){f.length=0,u=null,l=null,h=!1,v(null)})),t.onLogout((function(){d()}))}function E(){window.HenneoAuth.ready().then(function(){var t=s(c().mark((function t(e){return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.isAuthenticated();case 2:if(t.sent){t.next=5;break}return d(),t.abrupt("return");case 5:x(e),v(null);case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}}()}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r(854)})();
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.