sass-template-common 0.7.1 → 0.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1442,7 +1442,7 @@ const tr = async ({
1442
1442
  }, l = e.split("/")[1], m = l == "liveblogs" || l == "liveblog" ? ["/news", "/news-breadcrumb", "/news-liveblog"] : ["/news", "/news-breadcrumb"], h = t.paths.tema !== "" ? "/" + t.paths.tema : t.paths.tema, A = o !== "false" && i !== "false" ? "/" + o + h : h;
1443
1443
  r = (await Promise.all(
1444
1444
  m.map(async (p) => {
1445
- const w = p === "/news-breadcrumb" ? { ...d, prefixtag: A } : p === "news" && t.schemasNewsParams ? { ...d, ...t.schemasNewsParams } : d;
1445
+ const w = p === "/news-breadcrumb" ? { ...d, prefixtag: A } : p === "/news" && t.schemasNewsParams ? { ...d, ...t.schemasNewsParams } : d;
1446
1446
  return console.log("fetching => schemas/" + p, w), await xa(w, p, s);
1447
1447
  })
1448
1448
  )).map((p) => p?.data?.data ?? []);
@@ -10,7 +10,7 @@ new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
10
10
  j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
11
11
  'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
12
12
  })(window,document,'script','dataLayer','${e}');
13
- `}}),n.jsx("noscript",{children:n.jsx("iframe",{src:`https://www.googletagmanager.com/ns.html?id=${e}`,height:"0",width:"0",style:{display:"none",visibility:"hidden"}})})]})},ss=()=>{const{ANALYTICS_marfeel:e}=z();return e&&n.jsx("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:`!function(){"use strict";function e(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],c=document.createElement("script");c.src=e,t?c.type="module":(c.defer=!0,c.type="text/javascript",c.setAttribute("nomodule",""));var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(c,n)}!function(t,c){!function(t,c,n){var a,o,r;n.accountId=c,null!==(a=t.marfeel)&&void 0!==a||(t.marfeel={}),null!==(o=(r=t.marfeel).cmd)&&void 0!==o||(r.cmd=[]),t.marfeel.config=n;var i="https://sdk.mrf.io/statics";e("".concat(i,"/marfeel-sdk.js?id=").concat(c),!0),e("".concat(i,"/marfeel-sdk.es5.js?id=").concat(c),!1)}(t,c,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})}(window,${e},{})}();`}})},ti=({defaultRouteName:e})=>{const{CAPTCHA_KEY:t,CONFIG_comments:a=!1}=z();return t&&t!==""&&(e==="news"&&a||e==="anuncia"||e==="contacto")&&n.jsx("script",{src:`https://www.google.com/recaptcha/enterprise.js?render=${t}`,async:!0,defer:!0})};function bt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var tn={exports:{}},ni=tn.exports,os;function rs(){return os||(os=1,(function(e,t){(function(a,s){e.exports=s()})(ni,(function(){var a=1e3,s=6e4,o=36e5,r="millisecond",i="second",c="minute",h="hour",d="day",l="week",u="month",f="quarter",p="year",m="date",g="Invalid Date",A=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(q){var x=["th","st","nd","rd"],k=q%100;return"["+q+(x[(k-20)%10]||x[k]||x[0])+"]"}},_=function(q,x,k){var j=String(q);return!j||j.length>=x?q:""+Array(x+1-j.length).join(k)+q},I={s:_,z:function(q){var x=-q.utcOffset(),k=Math.abs(x),j=Math.floor(k/60),B=k%60;return(x<=0?"+":"-")+_(j,2,"0")+":"+_(B,2,"0")},m:function q(x,k){if(x.date()<k.date())return-q(k,x);var j=12*(k.year()-x.year())+(k.month()-x.month()),B=x.clone().add(j,u),V=k-B<0,y=x.clone().add(j+(V?-1:1),u);return+(-(j+(k-B)/(V?B-y:y-B))||0)},a:function(q){return q<0?Math.ceil(q)||0:Math.floor(q)},p:function(q){return{M:u,y:p,w:l,d,D:m,h,m:c,s:i,ms:r,Q:f}[q]||String(q||"").toLowerCase().replace(/s$/,"")},u:function(q){return q===void 0}},w="en",T={};T[w]=S;var U="$isDayjsObject",Q=function(q){return q instanceof Z||!(!q||!q[U])},X=function q(x,k,j){var B;if(!x)return w;if(typeof x=="string"){var V=x.toLowerCase();T[V]&&(B=V),k&&(T[V]=k,B=V);var y=x.split("-");if(!B&&y.length>1)return q(y[0])}else{var N=x.name;T[N]=x,B=N}return!j&&B&&(w=B),B||!j&&w},F=function(q,x){if(Q(q))return q.clone();var k=typeof x=="object"?x:{};return k.date=q,k.args=arguments,new Z(k)},D=I;D.l=X,D.i=Q,D.w=function(q,x){return F(q,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var Z=(function(){function q(k){this.$L=X(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[U]=!0}var x=q.prototype;return x.parse=function(k){this.$d=(function(j){var B=j.date,V=j.utc;if(B===null)return new Date(NaN);if(D.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var y=B.match(A);if(y){var N=y[2]-1||0,O=(y[7]||"0").substring(0,3);return V?new Date(Date.UTC(y[1],N,y[3]||1,y[4]||0,y[5]||0,y[6]||0,O)):new Date(y[1],N,y[3]||1,y[4]||0,y[5]||0,y[6]||0,O)}}return new Date(B)})(k),this.init()},x.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},x.$utils=function(){return D},x.isValid=function(){return this.$d.toString()!==g},x.isSame=function(k,j){var B=F(k);return this.startOf(j)<=B&&B<=this.endOf(j)},x.isAfter=function(k,j){return F(k)<this.startOf(j)},x.isBefore=function(k,j){return this.endOf(j)<F(k)},x.$g=function(k,j,B){return D.u(k)?this[j]:this.set(B,k)},x.unix=function(){return Math.floor(this.valueOf()/1e3)},x.valueOf=function(){return this.$d.getTime()},x.startOf=function(k,j){var B=this,V=!!D.u(j)||j,y=D.p(k),N=function(te,K){var de=D.w(B.$u?Date.UTC(B.$y,K,te):new Date(B.$y,K,te),B);return V?de:de.endOf(d)},O=function(te,K){return D.w(B.toDate()[te].apply(B.toDate("s"),(V?[0,0,0,0]:[23,59,59,999]).slice(K)),B)},G=this.$W,$=this.$M,H=this.$D,W="set"+(this.$u?"UTC":"");switch(y){case p:return V?N(1,0):N(31,11);case u:return V?N(1,$):N(0,$+1);case l:var Y=this.$locale().weekStart||0,ee=(G<Y?G+7:G)-Y;return N(V?H-ee:H+(6-ee),$);case d:case m:return O(W+"Hours",0);case h:return O(W+"Minutes",1);case c:return O(W+"Seconds",2);case i:return O(W+"Milliseconds",3);default:return this.clone()}},x.endOf=function(k){return this.startOf(k,!1)},x.$set=function(k,j){var B,V=D.p(k),y="set"+(this.$u?"UTC":""),N=(B={},B[d]=y+"Date",B[m]=y+"Date",B[u]=y+"Month",B[p]=y+"FullYear",B[h]=y+"Hours",B[c]=y+"Minutes",B[i]=y+"Seconds",B[r]=y+"Milliseconds",B)[V],O=V===d?this.$D+(j-this.$W):j;if(V===u||V===p){var G=this.clone().set(m,1);G.$d[N](O),G.init(),this.$d=G.set(m,Math.min(this.$D,G.daysInMonth())).$d}else N&&this.$d[N](O);return this.init(),this},x.set=function(k,j){return this.clone().$set(k,j)},x.get=function(k){return this[D.p(k)]()},x.add=function(k,j){var B,V=this;k=Number(k);var y=D.p(j),N=function($){var H=F(V);return D.w(H.date(H.date()+Math.round($*k)),V)};if(y===u)return this.set(u,this.$M+k);if(y===p)return this.set(p,this.$y+k);if(y===d)return N(1);if(y===l)return N(7);var O=(B={},B[c]=s,B[h]=o,B[i]=a,B)[y]||1,G=this.$d.getTime()+k*O;return D.w(G,this)},x.subtract=function(k,j){return this.add(-1*k,j)},x.format=function(k){var j=this,B=this.$locale();if(!this.isValid())return B.invalidDate||g;var V=k||"YYYY-MM-DDTHH:mm:ssZ",y=D.z(this),N=this.$H,O=this.$m,G=this.$M,$=B.weekdays,H=B.months,W=B.meridiem,Y=function(K,de,M,Ce){return K&&(K[de]||K(j,V))||M[de].slice(0,Ce)},ee=function(K){return D.s(N%12||12,K,"0")},te=W||function(K,de,M){var Ce=K<12?"AM":"PM";return M?Ce.toLowerCase():Ce};return V.replace(C,(function(K,de){return de||(function(M){switch(M){case"YY":return String(j.$y).slice(-2);case"YYYY":return D.s(j.$y,4,"0");case"M":return G+1;case"MM":return D.s(G+1,2,"0");case"MMM":return Y(B.monthsShort,G,H,3);case"MMMM":return Y(H,G);case"D":return j.$D;case"DD":return D.s(j.$D,2,"0");case"d":return String(j.$W);case"dd":return Y(B.weekdaysMin,j.$W,$,2);case"ddd":return Y(B.weekdaysShort,j.$W,$,3);case"dddd":return $[j.$W];case"H":return String(N);case"HH":return D.s(N,2,"0");case"h":return ee(1);case"hh":return ee(2);case"a":return te(N,O,!0);case"A":return te(N,O,!1);case"m":return String(O);case"mm":return D.s(O,2,"0");case"s":return String(j.$s);case"ss":return D.s(j.$s,2,"0");case"SSS":return D.s(j.$ms,3,"0");case"Z":return y}return null})(K)||y.replace(":","")}))},x.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},x.diff=function(k,j,B){var V,y=this,N=D.p(j),O=F(k),G=(O.utcOffset()-this.utcOffset())*s,$=this-O,H=function(){return D.m(y,O)};switch(N){case p:V=H()/12;break;case u:V=H();break;case f:V=H()/3;break;case l:V=($-G)/6048e5;break;case d:V=($-G)/864e5;break;case h:V=$/o;break;case c:V=$/s;break;case i:V=$/a;break;default:V=$}return B?V:D.a(V)},x.daysInMonth=function(){return this.endOf(u).$D},x.$locale=function(){return T[this.$L]},x.locale=function(k,j){if(!k)return this.$L;var B=this.clone(),V=X(k,j,!0);return V&&(B.$L=V),B},x.clone=function(){return D.w(this.$d,this)},x.toDate=function(){return new Date(this.valueOf())},x.toJSON=function(){return this.isValid()?this.toISOString():null},x.toISOString=function(){return this.$d.toISOString()},x.toString=function(){return this.$d.toUTCString()},q})(),ne=Z.prototype;return F.prototype=ne,[["$ms",r],["$s",i],["$m",c],["$H",h],["$W",d],["$M",u],["$y",p],["$D",m]].forEach((function(q){ne[q[1]]=function(x){return this.$g(x,q[0],q[1])}})),F.extend=function(q,x){return q.$i||(q(x,Z,F),q.$i=!0),F},F.locale=X,F.isDayjs=Q,F.unix=function(q){return F(1e3*q)},F.en=T[w],F.Ls=T,F.p={},F}))})(tn)),tn.exports}var ai=rs();const Ie=bt(ai);var nn={exports:{}},si=nn.exports,is;function oi(){return is||(is=1,(function(e,t){(function(a,s){e.exports=s()})(si,(function(){return function(a,s,o){a=a||{};var r=s.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function c(d,l,u,f){return r.fromToBase(d,l,u,f)}o.en.relativeTime=i,r.fromToBase=function(d,l,u,f,p){for(var m,g,A,C=u.$locale().relativeTime||i,S=a.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],_=S.length,I=0;I<_;I+=1){var w=S[I];w.d&&(m=f?o(d).diff(u,w.d,!0):u.diff(d,w.d,!0));var T=(a.rounding||Math.round)(Math.abs(m));if(A=m>0,T<=w.r||!w.r){T<=1&&I>0&&(w=S[I-1]);var U=C[w.l];p&&(T=p(""+T)),g=typeof U=="string"?U.replace("%d",T):U(T,l,w.l,A);break}}if(l)return g;var Q=A?C.future:C.past;return typeof Q=="function"?Q(g):Q.replace("%s",g)},r.to=function(d,l){return c(d,l,this,!0)},r.from=function(d,l){return c(d,l,this)};var h=function(d){return d.$u?o.utc():o()};r.toNow=function(d){return this.to(h(this),d)},r.fromNow=function(d){return this.from(h(this),d)}}}))})(nn)),nn.exports}var ri=oi();const ii=bt(ri);var an={exports:{}},ci=an.exports,cs;function li(){return cs||(cs=1,(function(e,t){(function(a,s){e.exports=s(rs())})(ci,(function(a){function s(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var o=s(a),r={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(i){return i+"º"}};return o.default.locale(r,null,!0),r}))})(an)),an.exports}li();var sn={exports:{}},di=sn.exports,ls;function hi(){return ls||(ls=1,(function(e,t){(function(a,s){e.exports=s()})(di,(function(){var a="minute",s=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(r,i,c){var h=i.prototype;c.utc=function(g){var A={date:g,utc:!0,args:arguments};return new i(A)},h.utc=function(g){var A=c(this.toDate(),{locale:this.$L,utc:!0});return g?A.add(this.utcOffset(),a):A},h.local=function(){return c(this.toDate(),{locale:this.$L,utc:!1})};var d=h.parse;h.parse=function(g){g.utc&&(this.$u=!0),this.$utils().u(g.$offset)||(this.$offset=g.$offset),d.call(this,g)};var l=h.init;h.init=function(){if(this.$u){var g=this.$d;this.$y=g.getUTCFullYear(),this.$M=g.getUTCMonth(),this.$D=g.getUTCDate(),this.$W=g.getUTCDay(),this.$H=g.getUTCHours(),this.$m=g.getUTCMinutes(),this.$s=g.getUTCSeconds(),this.$ms=g.getUTCMilliseconds()}else l.call(this)};var u=h.utcOffset;h.utcOffset=function(g,A){var C=this.$utils().u;if(C(g))return this.$u?0:C(this.$offset)?u.call(this):this.$offset;if(typeof g=="string"&&(g=(function(w){w===void 0&&(w="");var T=w.match(s);if(!T)return null;var U=(""+T[0]).match(o)||["-",0,0],Q=U[0],X=60*+U[1]+ +U[2];return X===0?0:Q==="+"?X:-X})(g),g===null))return this;var S=Math.abs(g)<=16?60*g:g;if(S===0)return this.utc(A);var _=this.clone();if(A)return _.$offset=S,_.$u=!1,_;var I=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(_=this.local().add(S+I,a)).$offset=S,_.$x.$localOffset=I,_};var f=h.format;h.format=function(g){var A=g||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return f.call(this,A)},h.valueOf=function(){var g=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*g},h.isUTC=function(){return!!this.$u},h.toISOString=function(){return this.toDate().toISOString()},h.toString=function(){return this.toDate().toUTCString()};var p=h.toDate;h.toDate=function(g){return g==="s"&&this.$offset?c(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():p.call(this)};var m=h.diff;h.diff=function(g,A,C){if(g&&this.$u===g.$u)return m.call(this,g,A,C);var S=this.local(),_=c(g).local();return m.call(S,_,A,C)}}}))})(sn)),sn.exports}var ui=hi();const fi=bt(ui);var on={exports:{}},mi=on.exports,ds;function gi(){return ds||(ds=1,(function(e,t){(function(a,s){e.exports=s()})(mi,(function(){var a={year:0,month:1,day:2,hour:3,minute:4,second:5},s={};return function(o,r,i){var c,h=function(f,p,m){m===void 0&&(m={});var g=new Date(f),A=(function(C,S){S===void 0&&(S={});var _=S.timeZoneName||"short",I=C+"|"+_,w=s[I];return w||(w=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:C,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:_}),s[I]=w),w})(p,m);return A.formatToParts(g)},d=function(f,p){for(var m=h(f,p),g=[],A=0;A<m.length;A+=1){var C=m[A],S=C.type,_=C.value,I=a[S];I>=0&&(g[I]=parseInt(_,10))}var w=g[3],T=w===24?0:w,U=g[0]+"-"+g[1]+"-"+g[2]+" "+T+":"+g[4]+":"+g[5]+":000",Q=+f;return(i.utc(U).valueOf()-(Q-=Q%1e3))/6e4},l=r.prototype;l.tz=function(f,p){f===void 0&&(f=c);var m,g=this.utcOffset(),A=this.toDate(),C=A.toLocaleString("en-US",{timeZone:f}),S=Math.round((A-new Date(C))/1e3/60),_=15*-Math.round(A.getTimezoneOffset()/15)-S;if(!Number(_))m=this.utcOffset(0,p);else if(m=i(C,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(_,!0),p){var I=m.utcOffset();m=m.add(g-I,"minute")}return m.$x.$timezone=f,m},l.offsetName=function(f){var p=this.$x.$timezone||i.tz.guess(),m=h(this.valueOf(),p,{timeZoneName:f}).find((function(g){return g.type.toLowerCase()==="timezonename"}));return m&&m.value};var u=l.startOf;l.startOf=function(f,p){if(!this.$x||!this.$x.$timezone)return u.call(this,f,p);var m=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return u.call(m,f,p).tz(this.$x.$timezone,!0)},i.tz=function(f,p,m){var g=m&&p,A=m||p||c,C=d(+i(),A);if(typeof f!="string")return i(f).tz(A);var S=(function(T,U,Q){var X=T-60*U*1e3,F=d(X,Q);if(U===F)return[X,U];var D=d(X-=60*(F-U)*1e3,Q);return F===D?[X,F]:[T-60*Math.min(F,D)*1e3,Math.max(F,D)]})(i.utc(f,g).valueOf(),C,A),_=S[0],I=S[1],w=i(_).utcOffset(I);return w.$x.$timezone=A,w},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(f){c=f}}}))})(on)),on.exports}var pi=gi();const Ai=bt(pi);Ie.extend(fi),Ie.extend(Ai),Ie.extend(ii);const rn=e=>e==="en"?"en":"es",Be=(e,t)=>{const{PUBLIC_LNG:a,DATE_TIMEZONE:s}=t||z(),o=rn(a??"es");return Ie.tz(e,s).locale(o).format("DD MMMM YYYY")},cn=e=>{const{PUBLIC_LNG:t,DATE_TIMEZONE:a}=z(),s=rn(t??"es");return Ie.tz(e,a).locale(s).format(s==="en"?"MMMM DD YYYY [•] HH:mm [hs]":"DD [de] MMMM YYYY [•] HH:mm [hs]")},hs=e=>{const{PUBLIC_LNG:t,DATE_TIMEZONE:a}=z(),s=rn(t??"es");return Ie.tz(e,a).locale(s).format("MM/DD/YYYY [•] HH:mm [HS]")},wi=e=>{const{PUBLIC_LNG:t,DATE_TIMEZONE:a}=z(),s=rn(t??"es");return Ie.tz(e,a).locale(s).format("dddd DD [de] MMMM YYYY")},Ct=(e,t)=>{if(!e)return"";const a=new Date(e),o=new Intl.DateTimeFormat("en-CA",{timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).formatToParts(a),r={};o.forEach(p=>{p.type!=="literal"&&(r[p.type]=p.value)});const i=new Date(a.toLocaleString("en-US",{timeZone:"UTC"})),h=(new Date(a.toLocaleString("en-US",{timeZone:t})).getTime()-i.getTime())/6e4,d=h>=0?"+":"-",l=p=>String(Math.floor(Math.abs(p))).padStart(2,"0"),u=l(h/60),f=l(h%60);return`${r.year}-${r.month}-${r.day}T${r.hour}:${r.minute}:${r.second}${d}${u}:${f}`},qe=(e,t=136)=>e&&e.length>t?`${e.substring(0,t)}...`:e;function ct(e){return e&&e.status==="fulfilled"?e.value.data:null}function us(e){return e&&e.status==="fulfilled"?e.value:null}const yi={url:"",target:"_self",canonical:!1,internal:""},bi={date:"",created:0,modified:0,firstpublish:0,lastpublish:0};function Ci(e){return e==null?"":typeof e=="string"?e:e.article??e.home??e.section??e.seo??""}const vt=(e,t,a,s)=>{const o=Ci(e?.main?.title),r=e?.main?.description??"";return{authors:e?.main?.author?[{firstname:"",lastname:"",fullname:typeof e.main.author=="string"?e.main.author:String(e.main.author??"Redacción"),image:{sizes:[],description:""},name:"",internaluser:!1}]:[],social:{description:"",images:{facebook:"",twitter:""},title:""},info:{date:{...bi,...e?.info?.date},link:e?.info?.link??yi},preview:{sizes:e?.main?.image?.sizes??[],description:e?.main?.image?.description??""},config:{showtime:t??!1,showsubtitle:a??!1,showauthor:!!(s&&e?.main?.author)},main:{title:{article:o,home:o,seo:o,section:o},subtitle:{rendered:r,striped:r},tags:[]}}};function Zn(e){if(!e||!e.body||!e.body.rendered)return[];const t=e?.body?.rendered,a=[],s=/<div[^>]*class=["'][^"']*ck-related-news[^"']*["'][^>]*>([\s\S]*?)<span\b[^>]*data-src=["']([^"']+)["'][^>]*>[\s\S]*?<\/span>/gi;let o;for(;(o=s.exec(t))!==null;){const r=o[2];r&&a.push([r])}return a}const fs=async(e,t)=>{const a=[];return e.forEach(r=>{r.forEach(i=>{const c=t({path:i.replaceAll("|","/"),imagesizes:"w:212,h:142,t:2;w:100,h:100,t:2",exclude:"config,keywords,authors,body,related,relatedexternal,social,external,hascontent,customfields,pixel"});c&&a.push(c)})}),(await Promise.allSettled(a)).map(r=>ct(r)?.data)},Bt=()=>{const{PUBLIC_ENV:e,PUBLIC_API_HOST:t,PUBLIC_ASSETS_URL:a}=z();return e=="local"?t:a&&a!=="false"?a:""},vi=()=>{const{PUBLIC_ENV:e,PUBLIC_API_FRONT:t}=z();return e==="local"?t:""},_i=e=>{if(!e?.preview?.length)return null;const t=e.preview;return t.find(a=>a.format==="1.91:1")??t[t.length-1]},ms=({schemaImage:e,socialImage:t,fallbackImage:a,prefix:s,defaultWidth:o,defaultHeight:r,alt:i})=>e?.url?{url:s+e.url,width:e.width,height:e.height,alt:i}:{url:s+(t??a??""),width:o,height:r,alt:i},gs=(e,t,a,s)=>{if(!t)return{};const{PUBLIC_ASSETS_URL:o,PUBLIC_API_FRONT:r,DATE_TIMEZONE:i="America/Mexico_City"}=z(),c=Xn(t.keywords)??"",h=t?.preview?.sizes?t?.preview?.sizes[0]?.url:"",d=(o!=="false"?o:r)??"",l=_i(s),u=t.main.title.article,f=ms({schemaImage:l,socialImage:t?.social?.images?.facebook,fallbackImage:h,prefix:d,defaultWidth:a.landscapeLogo.width,defaultHeight:a.landscapeLogo.height,alt:s?.description??u}),p=ms({schemaImage:l,socialImage:t?.social?.images?.twitter,fallbackImage:h,prefix:d,defaultWidth:a.twitterSummaryCard.width,defaultHeight:a.twitterSummaryCard.height,alt:s?.description??u});return{title:(t?.main?.title?.seo??t?.main?.title?.article)+" | "+a.name,robots:"index, follow, max-image-preview:large",alternates:{types:{"application/rss+xml":(a.siteUrl??"")+"/rss/feed.xml"},canonical:t?.info?.link?.canonical},description:t?.main?.subtitle?.striped??"",news_keywords:c,keywords:c,openGraph:{title:t?.social?.title?t?.social?.title:t?.main?.title?.article,url:t?.info?.link?.canonical,type:"article",description:t?.social?.description?t?.social?.description:t?.main?.subtitle?.striped??"",images:[f],siteName:a.name.toLocaleUpperCase(),locale:a.lang.startsWith("en")?"en_US":a.lang==="es"?"es_LA":a.lang.replace("-","_")},twitter:{title:t?.main?.title?.article,card:"summary_large_image",site:e.twitter.site,description:t?.main?.subtitle?.striped??"",images:[p]},article:{published_time:Ct(t?.info?.date?.firstpublish,i),modified_time:Ct(t?.info?.date?.lastpublish??t?.info?.date?.firstpublish,i),section:t?.info?.section?.name,author:t?.authors?.[0]?.fullname,tag:t?.keywords?.tags??[]}}},Xn=e=>!e||!e?.tags||e?.tags?.length===0?"":e?.tags?.map(t=>t.name).join(", ").replaceAll('"',"'").replaceAll("`","'"),ps=e=>{const t=e?.match(/^\/(?:[^/]+\/)?([^/]+)\/([^/]+\.html)$/);return t?{slug:t[1]??"",path:t[2]??""}:{slug:"",path:""}},As=e=>e.replaceAll("/","").replaceAll("_","").replace(".html",""),Si={description:{attr:"name",value:"description"},robots:{attr:"name",value:"robots"},keywords:{attr:"name",value:"keywords"},news_keywords:{attr:"name",value:"news_keywords"},"openGraph.title":{attr:"property",value:"og:title"},"openGraph.description":{attr:"property",value:"og:description"},"openGraph.type":{attr:"property",value:"og:type"},"openGraph.url":{attr:"property",value:"og:url"},"openGraph.siteName":{attr:"property",value:"og:site_name"},"openGraph.locale":{attr:"property",value:"og:locale"},"twitter.card":{attr:"name",value:"twitter:card"},"twitter.title":{attr:"name",value:"twitter:title"},"twitter.description":{attr:"name",value:"twitter:description"},"twitter.site":{attr:"name",value:"twitter:site"},"twitter.creator":{attr:"name",value:"twitter:creator"}},ws=e=>{const t=[];let a=0;const s=i=>t.push(i);return e.title&&typeof e.title=="string"&&s(n.jsx("title",{children:e.title},`title-${a++}`)),Object.entries(Si).forEach(([i,c])=>{const h=i.split(".").reduce((d,l)=>d?.[l],e);h&&s(n.jsx("meta",{[c.attr]:c.value,content:String(h)},`meta-${a++}`))}),(e.openGraph?.images?Array.isArray(e.openGraph.images)?e.openGraph.images:[e.openGraph.images]:[]).forEach(i=>{i&&(typeof i=="string"?s(n.jsx("meta",{property:"og:image",content:i},`og-img-${a++}`)):(i.url&&s(n.jsx("meta",{property:"og:image",content:i.url},`og-img-${a++}`)),i.width&&s(n.jsx("meta",{property:"og:image:width",content:String(i.width)},`og-img-w-${a++}`)),i.height&&s(n.jsx("meta",{property:"og:image:height",content:String(i.height)},`og-img-h-${a++}`)),i.alt&&s(n.jsx("meta",{property:"og:image:alt",content:String(i.alt)},`og-img-alt-${a++}`))))}),(e.twitter?.images?Array.isArray(e.twitter.images)?e.twitter.images:[e.twitter.images]:[]).forEach(i=>{i&&(typeof i=="string"?s(n.jsx("meta",{name:"twitter:image",content:i},`tw-img-${a++}`)):(i.url&&s(n.jsx("meta",{name:"twitter:image",content:i.url},`tw-img-${a++}`)),i.width&&s(n.jsx("meta",{name:"twitter:image:width",content:String(i.width)},`tw-img-w-${a++}`)),i.height&&s(n.jsx("meta",{name:"twitter:image:height",content:String(i.height)},`tw-img-h-${a++}`)),i.alt&&s(n.jsx("meta",{name:"twitter:image:alt",content:String(i.alt)},`tw-img-alt-${a++}`))))}),e.article&&(s(n.jsx("meta",{property:"article:published_time",content:e.article.published_time})),s(n.jsx("meta",{property:"article:modified_time",content:e.article.modified_time})),s(n.jsx("meta",{property:"article:section",content:e.article.section})),s(n.jsx("meta",{property:"article:author",content:e.article.author})),Array.isArray(e.article.tag)&&e.article.tag.length>0&&e.article.tag.forEach(i=>{s(n.jsx("meta",{property:"article:tag",content:i.name}))})),e.alternates?.canonical&&s(n.jsx("link",{rel:"canonical",href:String(e.alternates.canonical)},`link-${a++}`)),e.manifest&&s(n.jsx("link",{rel:"manifest",href:String(e.manifest)},`link-${a++}`)),e.alternates?.types&&Object.entries(e.alternates.types).forEach(([i,c])=>{typeof c=="string"&&s(n.jsx("link",{rel:"alternate",type:i,href:c},`alt-${a++}`))}),e.icons&&[...e.icons?.icon??[],...e.icons?.other??[]].forEach(c=>{c&&s(typeof c=="string"?n.jsx("link",{rel:"icon",href:c},`icon-${a++}`):n.jsx("link",{rel:c.rel||"icon",href:c.url,...c.type&&{type:c.type},...c.sizes&&{sizes:c.sizes}},`icon-${a++}`))}),e.other&&Object.entries(e.other).forEach(([i,c])=>{c&&s(n.jsx("meta",{name:i,content:String(c)},`other-${a++}`))}),t},ue=async e=>{const t=Bt()??"",a=e;return a?.startsWith("http")||a?.includes(t)||t===""?a:t+a},ln=(e,t)=>{const a=e||"";return t?a.replaceAll("[section_replace]",t["[section_replace]"]??"").replaceAll("[tag_replace]",t["[tag_replace]"]??"").replaceAll("[url_replace]",t["[url_replace]"]??"").replaceAll("[author_replace]",t["[author_replace]"]??"")||"":a||""},Ni=e=>{const t={};if(!e)return t;const a=/([^\s=]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'>]+)))?/g;let s;for(;s=a.exec(e);){const o=s[1],r=s[2]??s[3]??s[4]??!0;t[o]=r}return t},Ii=e=>{const t=e.match(/\bsrc\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/i);return t?.[1]||t?.[2]||t?.[3]||null},ys=(e,t,a,s)=>{try{const o=Ni(e);return o.src?n.jsx("script",{"data-bs-name":s,...o},a):n.jsx("script",{...o,dangerouslySetInnerHTML:{__html:t}},a)}catch{const r=Ii(e);return r?n.jsx("script",{"data-bs-name":s,src:r,async:!0,defer:!0},a):null}},Ei=e=>{const t=/<script\b([^>]*)>([\s\S]*?)<\/script\s*>|<script\b([^>]*)\/?>/gi;return[...e.matchAll(t)]},Rn=e=>{const t=e.banners.find(o=>o.key===e.name);if(!t||!t.show)return null;const a=ln(t.value||"",e.replaces),s=Ei(a);return n.jsx(n.Fragment,{children:s.map((o,r)=>{const i=o[1]||o[3]||"",c=o[2]?.trim()||"";return ys(i,c,r,e.name)})})},bs=e=>{const t=e.banners.find(o=>o.key===e.name);if(!t||!t.show)return null;const s=ln(t.value||"",e.replaces).split(/(<script\b[\s\S]*?<\/script\s*>|<script\b[^>]*\/?>)/gi);return n.jsx(n.Fragment,{children:s.map((o,r)=>{const i=o.match(/<script\b([^>]*)>([\s\S]*?)<\/script\s*>|<script\b([^>]*)\/?>/i);if(i){const c=i[1]||i[3]||"",h=i[2]?.trim()||"";return ys(c,h,r,e.name)}return o.trim()?n.jsx("div",{dangerouslySetInnerHTML:{__html:o}},r):null})})},qt=(e,t,a)=>{let s=e.siteUrl;return t.forEach((o,r)=>{r>0&&(s+=`/${o}`)}),`${s}/page/${a+1}`},Pt=(e,t,a)=>{let s=e.siteUrl;return t.forEach((o,r)=>{r>0&&(s+=`/${o}`)}),`${s}/page/${a-1}`};function Ti(e){const t=e.length;return t>1&&e.charCodeAt(t-1)===47?e.slice(0,t-1):e}const Cs=()=>{const{PUBLIC_ASSETS_URL:e}=z();return e&&e!=="false"&&n.jsx("link",{rel:"preconnect",href:e,crossOrigin:"anonymous"})},{PUBLIC_ASSETS_URL:ea}=z(),ki=ea&&ea!=="false"?ea:"",ta=({images:e})=>n.jsx(n.Fragment,{children:e.map((t,a)=>t.href!==""&&n.jsx("link",{rel:"preload",href:ki+t.href,media:t.media??"",as:"image",fetchPriority:t.fetchPriority??"high"},a))}),vs=(e,t,a)=>{if(!t)return{};const{PUBLIC_API_FRONT:s}=z();return{title:t?.main?.title+" | "+a.name,robots:"index, follow, max-image-preview:large",alternates:{canonical:a.siteUrl+t?.info?.link?.url},description:t.main.description??"",news_keywords:t.main.tags,keywords:t.main.tags,openGraph:{title:t.main.title,url:t?.info?.link?.canonical,type:"article",description:t.main.description??"",images:[{url:(s??"")+t?.main.image.sizes[0]?.url,width:a.landscapeLogo.width,height:a.landscapeLogo.height}],siteName:a.name.toLocaleUpperCase(),locale:a.lang.startsWith("en")?"en_US":a.lang==="es"?"es_LA":a.lang.replace("-","_")},twitter:{title:t?.main?.title,card:"summary_large_image",site:e.twitter.site,description:t?.main.description??"",images:[{url:(s??"")+t?.main.image.sizes[0]?.url,width:a.twitterSummaryCard.width,height:a.twitterSummaryCard.height}]}}},Ui=e=>{let t="";if(e.params.news.match(/.*t[0-9]*.html/g)){const a=e.params.news.split("-"),s=a[a.length-1]??"",o=s.substring(1,9),r=s.substring(9,13);t=`/listas/${Ie(o).format("YYYY/MM/DD")}/lista_${r}.html`}else if(e.params.news.match(/.*lb[0-9]*.html/g)){const a=e.params.news.split("-"),s=a[a.length-1]??"",o=s.substring(2,10),r=s.substring(10,14);t=`/liveblog/${Ie(o).format("YYYY/MM/DD")}/liveblog_${r}.html`}else{const s=e.params.news.replace(/\.html$/g,"").split("-");Array.isArray(s)&&(t=`/contenidos/${Ie(s[s.length-2]).format("YYYY/MM/DD")}/noticia_${s[s.length-1]}.html`)}return e.config.servicePrefix+t};function xi(e){const t=e.lastIndexOf("-"),a=t>=0?[e.slice(0,t),e.slice(t+1)]:[e],s=a[a.length-1]?.split("."),o=s&&s[0]?s[0]:"",r=o.substring(0,2),i=o.substring(2,10),c=o.substring(10);return{path:{vy:d=>`/videos/video-youtube/${Ie(i).format("YYYY/MM/DD")}/videoYouTube_${d}.lnk`,ve:d=>`/videos/video-embedded/${Ie(i).format("YYYY/MM/DD")}/videoEmbedded_${d}.lnk`,vf:d=>`/videos/video-flash/${Ie(i).format("YYYY/MM/DD")}/${a[0]}.${d}`}[r]?.(c)??"",op:r}}const tt=(e,t)=>{const a=e.name.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/ñ/g,"n").replace(/Ñ/g,"n").replace(/[^\w\s]/gi,"").replaceAll(" ","-").toLowerCase();return t?.tema?`/${t.tema}/${a}-t${e.id}`:`/${a}-t${e.id}`},Li=e=>{const{AssetsPrefix:t="",AssetsPath:a="src",isDev:s=!1}=e;return s?"src":t+a},Bi=async(e,t,a,s)=>{const{FETCH_TAG_BASED_RELATED_NEWS:o=!1,FETCH_SIZE_RELATED_NEWS:r=10}=z();if(!e)return[];try{if(e.related&&e.related?.automatic===!1&&e.related?.news&&e.related?.news.length>0)return(await a.getNewsListPath({path:e.related.news.map(c=>c.path).join(";"),exclude:"gallery,related,relatedexternal,external,customfields",imagesizes:s.md}))?.data?.data??[];{const i=e&&e.keywords&&e.keywords.tags&&e.keywords.tags[0];return((e?i&&o?await a.getNewsListAvanced({query:'claves:("'+e.keywords?.tags[0].name+'")',exclude:"gallery,related,relatedexternal,external,customfields",imagesizes:s.md,size:r+1}):await a.getNewsItemsRelated(t.split("/").join("|"),{size:r}):null)?.data?.data??[]).filter(d=>d.info.link.internal!==t.split("/").join("|"))}}catch(i){console.log(i)}},qi="https://recaptchaenterprise.googleapis.com/v1/projects",Pi=async({projectID:e,recaptchaKey:t,token:a,recaptchaAction:s,apiKey:o,userAgent:r,userIpAddress:i})=>{if(!e||!t||!a||!o)return console.warn("createAssessment: faltan parámetros requeridos"),null;const c=`${qi}/${e}/assessments?key=${o}`,h={event:{token:a,siteKey:t,expectedAction:s,...r&&{userAgent:r},...i&&{userIpAddress:i}}};try{const d=await fetch(c,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(h)});if(!d.ok)return console.error("createAssessment API error:",d.status,await d.text()),null;const l=await d.json();if(!l?.tokenProperties?.valid)return console.log(`CreateAssessment falló - token inválido: ${l?.tokenProperties?.invalidReason??"unknown"}`),null;if(l.tokenProperties.action!==s)return console.log("La acción en reCAPTCHA no coincide con la esperada:",s),null;const u=l?.riskAnalysis?.score;return u!==void 0&&(console.log("reCAPTCHA score:",u),l?.riskAnalysis?.reasons?.forEach(f=>console.log(f))),typeof u=="number"?u:null}catch(d){return console.error("createAssessment error:",d),null}};function na(e){const t={};for(const[a,s]of Object.entries(e)){const o=btoa(a).split("").reverse().join("");typeof s=="string"?t[o]=btoa(s).split("").reverse().join(""):t[o]=s}return t}function aa(e){const t={};for(const[a,s]of Object.entries(e)){const o=atob(a.split("").reverse().join(""));if(typeof s=="string")try{t[o]=atob(s.split("").reverse().join(""))}catch{t[o]=s}else t[o]=s}return t}const _s={prerender:[{where:{and:[{href_matches:"/*(-|-t|-lb)([0-9]{8})(-|)([0-9]{4,6}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"moderate"}]},Ss={prerender:[{where:{and:[{href_matches:"/*(-|-t|-lb)([0-9]{8})(-|)([0-9]{4,6}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"moderate"},{eagerness:"moderate",urls:["/"]}]},Oi={Home:_s,Common:Ss},Ns=({active:e,type:t,customSpeculation:a})=>e&&n.jsx("script",{type:"speculationrules",dangerouslySetInnerHTML:{__html:JSON.stringify(a??Oi[t])}}),dn=async(e,t,a)=>{if(a)return a.get(`/schemas${t}`,{params:e}).catch(s=>{console.log(`[/schemas${t}] Error: ${s.message}`)})},Mi={autor:"autor",seccion:"seccion",tema:"claves","ultimas-noticias":"seccion"},Is=async({config:e,axiosApi:t,pathname:a,ROUTE:s})=>{const{PUBLIC_PUBLICATION_ID:o=""}=z();let r=[];const i=a==="/"||a==="/index.html"?void 0:Ls(Bs[s]({pathname:a,config:e})),c=Mi[s]??void 0,h={newstype:e.newsType,publication:Number(o),...i&&c?{query:`${c}:('${i}')`}:{}};try{const d=await dn(h,"/news-list-summary",t);d?.data?.data?r=d.data.data:console.warn("getSchemas responded but did not contain expected data:",d)}catch(d){console.log("Error fetching schemas:",d)}return Object.keys(r).length>0&&n.jsx("script",{id:"webSiteItemListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(r)}})};function hn(e){const{PUBLIC_ASSETS_URL:t}=z();if(!t||t==="false")return e;const a=t.replace(/\/+$/,""),s=/https?:\/\/[^/\s]+\/(arte|__export)\//g;return e.replace(s,(o,r)=>`${a}/${r}/`)}const Es=async({realPath:e,config:t,BASE_URL:a,axiosApi:s})=>{const{PUBLIC_SERVICE_PREFIX:o,PUBLIC_IS_SUB_PUBLICATION:r}=z();let i=[];try{const c=t.socialBlockLogo?.url?new URL(t.socialBlockLogo.url).pathname:void 0,h=t.landscapeLogo?.url?new URL(t.landscapeLogo.url).pathname:void 0,d={path:e,image:h,logo:c,url:t.siteUrl,name:t.name,logow:t.socialBlockLogo?.width,logoh:t.socialBlockLogo?.height,authorurl:a+"/autor/"},l=e.split("/")[1],u=l=="liveblogs"||l=="liveblog"?["/news","/news-breadcrumb","/news-liveblog"]:["/news","/news-breadcrumb"],f=t.paths.tema!==""?"/"+t.paths.tema:t.paths.tema,p=o!=="false"&&r!=="false"?"/"+o+f:f;i=(await Promise.all(u.map(async g=>{const A=g==="/news-breadcrumb"?{...d,prefixtag:p}:g==="news"&&t.schemasNewsParams?{...d,...t.schemasNewsParams}:d;return console.log("fetching => schemas/"+g,A),await dn(A,g,s)}))).map(g=>g?.data?.data??[])}catch(c){console.log("Error fetching schemas:",c)}return i.map((c,h)=>n.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:hn(JSON.stringify(c))}},h))},Ts=({config:e,socials:t})=>{const a={"@context":"https://schema.org","@type":"NewsMediaOrganization",name:e.name,description:e.description,email:e.email,url:e.siteUrl,logo:e.squareLogo.url,sameAs:Object.keys(t).filter(s=>t[s]?.show).map(s=>t[s]?.url)};return(!e.description||e.description==="")&&delete a.description,n.jsx("script",{id:"WebsiteOrgListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(a)}})},ks=({config:e})=>{const t={"@context":"https://schema.org","@type":"WebSite",name:e.name,url:e.siteUrl,potentialAction:{"@type":"SearchAction",target:e.siteUrl+"/buscar?query={search_term_string}","query-input":"required name=search_term_string"}};return n.jsx("script",{id:"WebsiteListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t)}})},Us=async({realPath:e,config:t,axiosApi:a})=>{try{const s={path:e,image:t.landscapeLogo?.url?new URL(t.landscapeLogo.url).pathname:void 0,logo:t.socialBlockLogo?.url?new URL(t.socialBlockLogo.url).pathname:void 0,url:t.siteUrl,name:t.name,logow:t.socialBlockLogo?.width,logoh:t.socialBlockLogo?.height,authorurl:`${t.siteUrl}/autor/`},r=(await dn(s,"/videos",a))?.data.data;return r?n.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:hn(JSON.stringify(r))}}):void 0}catch(s){return console.error("Error fetching video schemas:",s),null}},xs=({config:e})=>{const t=`@font-face {
13
+ `}}),n.jsx("noscript",{children:n.jsx("iframe",{src:`https://www.googletagmanager.com/ns.html?id=${e}`,height:"0",width:"0",style:{display:"none",visibility:"hidden"}})})]})},ss=()=>{const{ANALYTICS_marfeel:e}=z();return e&&n.jsx("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:`!function(){"use strict";function e(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],c=document.createElement("script");c.src=e,t?c.type="module":(c.defer=!0,c.type="text/javascript",c.setAttribute("nomodule",""));var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(c,n)}!function(t,c){!function(t,c,n){var a,o,r;n.accountId=c,null!==(a=t.marfeel)&&void 0!==a||(t.marfeel={}),null!==(o=(r=t.marfeel).cmd)&&void 0!==o||(r.cmd=[]),t.marfeel.config=n;var i="https://sdk.mrf.io/statics";e("".concat(i,"/marfeel-sdk.js?id=").concat(c),!0),e("".concat(i,"/marfeel-sdk.es5.js?id=").concat(c),!1)}(t,c,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})}(window,${e},{})}();`}})},ti=({defaultRouteName:e})=>{const{CAPTCHA_KEY:t,CONFIG_comments:a=!1}=z();return t&&t!==""&&(e==="news"&&a||e==="anuncia"||e==="contacto")&&n.jsx("script",{src:`https://www.google.com/recaptcha/enterprise.js?render=${t}`,async:!0,defer:!0})};function bt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var tn={exports:{}},ni=tn.exports,os;function rs(){return os||(os=1,(function(e,t){(function(a,s){e.exports=s()})(ni,(function(){var a=1e3,s=6e4,o=36e5,r="millisecond",i="second",c="minute",h="hour",d="day",l="week",u="month",f="quarter",p="year",m="date",g="Invalid Date",A=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(q){var x=["th","st","nd","rd"],k=q%100;return"["+q+(x[(k-20)%10]||x[k]||x[0])+"]"}},_=function(q,x,k){var j=String(q);return!j||j.length>=x?q:""+Array(x+1-j.length).join(k)+q},I={s:_,z:function(q){var x=-q.utcOffset(),k=Math.abs(x),j=Math.floor(k/60),B=k%60;return(x<=0?"+":"-")+_(j,2,"0")+":"+_(B,2,"0")},m:function q(x,k){if(x.date()<k.date())return-q(k,x);var j=12*(k.year()-x.year())+(k.month()-x.month()),B=x.clone().add(j,u),V=k-B<0,y=x.clone().add(j+(V?-1:1),u);return+(-(j+(k-B)/(V?B-y:y-B))||0)},a:function(q){return q<0?Math.ceil(q)||0:Math.floor(q)},p:function(q){return{M:u,y:p,w:l,d,D:m,h,m:c,s:i,ms:r,Q:f}[q]||String(q||"").toLowerCase().replace(/s$/,"")},u:function(q){return q===void 0}},w="en",T={};T[w]=S;var U="$isDayjsObject",Q=function(q){return q instanceof Z||!(!q||!q[U])},X=function q(x,k,j){var B;if(!x)return w;if(typeof x=="string"){var V=x.toLowerCase();T[V]&&(B=V),k&&(T[V]=k,B=V);var y=x.split("-");if(!B&&y.length>1)return q(y[0])}else{var N=x.name;T[N]=x,B=N}return!j&&B&&(w=B),B||!j&&w},F=function(q,x){if(Q(q))return q.clone();var k=typeof x=="object"?x:{};return k.date=q,k.args=arguments,new Z(k)},D=I;D.l=X,D.i=Q,D.w=function(q,x){return F(q,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var Z=(function(){function q(k){this.$L=X(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[U]=!0}var x=q.prototype;return x.parse=function(k){this.$d=(function(j){var B=j.date,V=j.utc;if(B===null)return new Date(NaN);if(D.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var y=B.match(A);if(y){var N=y[2]-1||0,O=(y[7]||"0").substring(0,3);return V?new Date(Date.UTC(y[1],N,y[3]||1,y[4]||0,y[5]||0,y[6]||0,O)):new Date(y[1],N,y[3]||1,y[4]||0,y[5]||0,y[6]||0,O)}}return new Date(B)})(k),this.init()},x.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},x.$utils=function(){return D},x.isValid=function(){return this.$d.toString()!==g},x.isSame=function(k,j){var B=F(k);return this.startOf(j)<=B&&B<=this.endOf(j)},x.isAfter=function(k,j){return F(k)<this.startOf(j)},x.isBefore=function(k,j){return this.endOf(j)<F(k)},x.$g=function(k,j,B){return D.u(k)?this[j]:this.set(B,k)},x.unix=function(){return Math.floor(this.valueOf()/1e3)},x.valueOf=function(){return this.$d.getTime()},x.startOf=function(k,j){var B=this,V=!!D.u(j)||j,y=D.p(k),N=function(te,K){var de=D.w(B.$u?Date.UTC(B.$y,K,te):new Date(B.$y,K,te),B);return V?de:de.endOf(d)},O=function(te,K){return D.w(B.toDate()[te].apply(B.toDate("s"),(V?[0,0,0,0]:[23,59,59,999]).slice(K)),B)},G=this.$W,$=this.$M,H=this.$D,W="set"+(this.$u?"UTC":"");switch(y){case p:return V?N(1,0):N(31,11);case u:return V?N(1,$):N(0,$+1);case l:var Y=this.$locale().weekStart||0,ee=(G<Y?G+7:G)-Y;return N(V?H-ee:H+(6-ee),$);case d:case m:return O(W+"Hours",0);case h:return O(W+"Minutes",1);case c:return O(W+"Seconds",2);case i:return O(W+"Milliseconds",3);default:return this.clone()}},x.endOf=function(k){return this.startOf(k,!1)},x.$set=function(k,j){var B,V=D.p(k),y="set"+(this.$u?"UTC":""),N=(B={},B[d]=y+"Date",B[m]=y+"Date",B[u]=y+"Month",B[p]=y+"FullYear",B[h]=y+"Hours",B[c]=y+"Minutes",B[i]=y+"Seconds",B[r]=y+"Milliseconds",B)[V],O=V===d?this.$D+(j-this.$W):j;if(V===u||V===p){var G=this.clone().set(m,1);G.$d[N](O),G.init(),this.$d=G.set(m,Math.min(this.$D,G.daysInMonth())).$d}else N&&this.$d[N](O);return this.init(),this},x.set=function(k,j){return this.clone().$set(k,j)},x.get=function(k){return this[D.p(k)]()},x.add=function(k,j){var B,V=this;k=Number(k);var y=D.p(j),N=function($){var H=F(V);return D.w(H.date(H.date()+Math.round($*k)),V)};if(y===u)return this.set(u,this.$M+k);if(y===p)return this.set(p,this.$y+k);if(y===d)return N(1);if(y===l)return N(7);var O=(B={},B[c]=s,B[h]=o,B[i]=a,B)[y]||1,G=this.$d.getTime()+k*O;return D.w(G,this)},x.subtract=function(k,j){return this.add(-1*k,j)},x.format=function(k){var j=this,B=this.$locale();if(!this.isValid())return B.invalidDate||g;var V=k||"YYYY-MM-DDTHH:mm:ssZ",y=D.z(this),N=this.$H,O=this.$m,G=this.$M,$=B.weekdays,H=B.months,W=B.meridiem,Y=function(K,de,M,Ce){return K&&(K[de]||K(j,V))||M[de].slice(0,Ce)},ee=function(K){return D.s(N%12||12,K,"0")},te=W||function(K,de,M){var Ce=K<12?"AM":"PM";return M?Ce.toLowerCase():Ce};return V.replace(C,(function(K,de){return de||(function(M){switch(M){case"YY":return String(j.$y).slice(-2);case"YYYY":return D.s(j.$y,4,"0");case"M":return G+1;case"MM":return D.s(G+1,2,"0");case"MMM":return Y(B.monthsShort,G,H,3);case"MMMM":return Y(H,G);case"D":return j.$D;case"DD":return D.s(j.$D,2,"0");case"d":return String(j.$W);case"dd":return Y(B.weekdaysMin,j.$W,$,2);case"ddd":return Y(B.weekdaysShort,j.$W,$,3);case"dddd":return $[j.$W];case"H":return String(N);case"HH":return D.s(N,2,"0");case"h":return ee(1);case"hh":return ee(2);case"a":return te(N,O,!0);case"A":return te(N,O,!1);case"m":return String(O);case"mm":return D.s(O,2,"0");case"s":return String(j.$s);case"ss":return D.s(j.$s,2,"0");case"SSS":return D.s(j.$ms,3,"0");case"Z":return y}return null})(K)||y.replace(":","")}))},x.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},x.diff=function(k,j,B){var V,y=this,N=D.p(j),O=F(k),G=(O.utcOffset()-this.utcOffset())*s,$=this-O,H=function(){return D.m(y,O)};switch(N){case p:V=H()/12;break;case u:V=H();break;case f:V=H()/3;break;case l:V=($-G)/6048e5;break;case d:V=($-G)/864e5;break;case h:V=$/o;break;case c:V=$/s;break;case i:V=$/a;break;default:V=$}return B?V:D.a(V)},x.daysInMonth=function(){return this.endOf(u).$D},x.$locale=function(){return T[this.$L]},x.locale=function(k,j){if(!k)return this.$L;var B=this.clone(),V=X(k,j,!0);return V&&(B.$L=V),B},x.clone=function(){return D.w(this.$d,this)},x.toDate=function(){return new Date(this.valueOf())},x.toJSON=function(){return this.isValid()?this.toISOString():null},x.toISOString=function(){return this.$d.toISOString()},x.toString=function(){return this.$d.toUTCString()},q})(),ne=Z.prototype;return F.prototype=ne,[["$ms",r],["$s",i],["$m",c],["$H",h],["$W",d],["$M",u],["$y",p],["$D",m]].forEach((function(q){ne[q[1]]=function(x){return this.$g(x,q[0],q[1])}})),F.extend=function(q,x){return q.$i||(q(x,Z,F),q.$i=!0),F},F.locale=X,F.isDayjs=Q,F.unix=function(q){return F(1e3*q)},F.en=T[w],F.Ls=T,F.p={},F}))})(tn)),tn.exports}var ai=rs();const Ie=bt(ai);var nn={exports:{}},si=nn.exports,is;function oi(){return is||(is=1,(function(e,t){(function(a,s){e.exports=s()})(si,(function(){return function(a,s,o){a=a||{};var r=s.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function c(d,l,u,f){return r.fromToBase(d,l,u,f)}o.en.relativeTime=i,r.fromToBase=function(d,l,u,f,p){for(var m,g,A,C=u.$locale().relativeTime||i,S=a.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],_=S.length,I=0;I<_;I+=1){var w=S[I];w.d&&(m=f?o(d).diff(u,w.d,!0):u.diff(d,w.d,!0));var T=(a.rounding||Math.round)(Math.abs(m));if(A=m>0,T<=w.r||!w.r){T<=1&&I>0&&(w=S[I-1]);var U=C[w.l];p&&(T=p(""+T)),g=typeof U=="string"?U.replace("%d",T):U(T,l,w.l,A);break}}if(l)return g;var Q=A?C.future:C.past;return typeof Q=="function"?Q(g):Q.replace("%s",g)},r.to=function(d,l){return c(d,l,this,!0)},r.from=function(d,l){return c(d,l,this)};var h=function(d){return d.$u?o.utc():o()};r.toNow=function(d){return this.to(h(this),d)},r.fromNow=function(d){return this.from(h(this),d)}}}))})(nn)),nn.exports}var ri=oi();const ii=bt(ri);var an={exports:{}},ci=an.exports,cs;function li(){return cs||(cs=1,(function(e,t){(function(a,s){e.exports=s(rs())})(ci,(function(a){function s(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var o=s(a),r={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(i){return i+"º"}};return o.default.locale(r,null,!0),r}))})(an)),an.exports}li();var sn={exports:{}},di=sn.exports,ls;function hi(){return ls||(ls=1,(function(e,t){(function(a,s){e.exports=s()})(di,(function(){var a="minute",s=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(r,i,c){var h=i.prototype;c.utc=function(g){var A={date:g,utc:!0,args:arguments};return new i(A)},h.utc=function(g){var A=c(this.toDate(),{locale:this.$L,utc:!0});return g?A.add(this.utcOffset(),a):A},h.local=function(){return c(this.toDate(),{locale:this.$L,utc:!1})};var d=h.parse;h.parse=function(g){g.utc&&(this.$u=!0),this.$utils().u(g.$offset)||(this.$offset=g.$offset),d.call(this,g)};var l=h.init;h.init=function(){if(this.$u){var g=this.$d;this.$y=g.getUTCFullYear(),this.$M=g.getUTCMonth(),this.$D=g.getUTCDate(),this.$W=g.getUTCDay(),this.$H=g.getUTCHours(),this.$m=g.getUTCMinutes(),this.$s=g.getUTCSeconds(),this.$ms=g.getUTCMilliseconds()}else l.call(this)};var u=h.utcOffset;h.utcOffset=function(g,A){var C=this.$utils().u;if(C(g))return this.$u?0:C(this.$offset)?u.call(this):this.$offset;if(typeof g=="string"&&(g=(function(w){w===void 0&&(w="");var T=w.match(s);if(!T)return null;var U=(""+T[0]).match(o)||["-",0,0],Q=U[0],X=60*+U[1]+ +U[2];return X===0?0:Q==="+"?X:-X})(g),g===null))return this;var S=Math.abs(g)<=16?60*g:g;if(S===0)return this.utc(A);var _=this.clone();if(A)return _.$offset=S,_.$u=!1,_;var I=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(_=this.local().add(S+I,a)).$offset=S,_.$x.$localOffset=I,_};var f=h.format;h.format=function(g){var A=g||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return f.call(this,A)},h.valueOf=function(){var g=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*g},h.isUTC=function(){return!!this.$u},h.toISOString=function(){return this.toDate().toISOString()},h.toString=function(){return this.toDate().toUTCString()};var p=h.toDate;h.toDate=function(g){return g==="s"&&this.$offset?c(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():p.call(this)};var m=h.diff;h.diff=function(g,A,C){if(g&&this.$u===g.$u)return m.call(this,g,A,C);var S=this.local(),_=c(g).local();return m.call(S,_,A,C)}}}))})(sn)),sn.exports}var ui=hi();const fi=bt(ui);var on={exports:{}},mi=on.exports,ds;function gi(){return ds||(ds=1,(function(e,t){(function(a,s){e.exports=s()})(mi,(function(){var a={year:0,month:1,day:2,hour:3,minute:4,second:5},s={};return function(o,r,i){var c,h=function(f,p,m){m===void 0&&(m={});var g=new Date(f),A=(function(C,S){S===void 0&&(S={});var _=S.timeZoneName||"short",I=C+"|"+_,w=s[I];return w||(w=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:C,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:_}),s[I]=w),w})(p,m);return A.formatToParts(g)},d=function(f,p){for(var m=h(f,p),g=[],A=0;A<m.length;A+=1){var C=m[A],S=C.type,_=C.value,I=a[S];I>=0&&(g[I]=parseInt(_,10))}var w=g[3],T=w===24?0:w,U=g[0]+"-"+g[1]+"-"+g[2]+" "+T+":"+g[4]+":"+g[5]+":000",Q=+f;return(i.utc(U).valueOf()-(Q-=Q%1e3))/6e4},l=r.prototype;l.tz=function(f,p){f===void 0&&(f=c);var m,g=this.utcOffset(),A=this.toDate(),C=A.toLocaleString("en-US",{timeZone:f}),S=Math.round((A-new Date(C))/1e3/60),_=15*-Math.round(A.getTimezoneOffset()/15)-S;if(!Number(_))m=this.utcOffset(0,p);else if(m=i(C,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(_,!0),p){var I=m.utcOffset();m=m.add(g-I,"minute")}return m.$x.$timezone=f,m},l.offsetName=function(f){var p=this.$x.$timezone||i.tz.guess(),m=h(this.valueOf(),p,{timeZoneName:f}).find((function(g){return g.type.toLowerCase()==="timezonename"}));return m&&m.value};var u=l.startOf;l.startOf=function(f,p){if(!this.$x||!this.$x.$timezone)return u.call(this,f,p);var m=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return u.call(m,f,p).tz(this.$x.$timezone,!0)},i.tz=function(f,p,m){var g=m&&p,A=m||p||c,C=d(+i(),A);if(typeof f!="string")return i(f).tz(A);var S=(function(T,U,Q){var X=T-60*U*1e3,F=d(X,Q);if(U===F)return[X,U];var D=d(X-=60*(F-U)*1e3,Q);return F===D?[X,F]:[T-60*Math.min(F,D)*1e3,Math.max(F,D)]})(i.utc(f,g).valueOf(),C,A),_=S[0],I=S[1],w=i(_).utcOffset(I);return w.$x.$timezone=A,w},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(f){c=f}}}))})(on)),on.exports}var pi=gi();const Ai=bt(pi);Ie.extend(fi),Ie.extend(Ai),Ie.extend(ii);const rn=e=>e==="en"?"en":"es",Be=(e,t)=>{const{PUBLIC_LNG:a,DATE_TIMEZONE:s}=t||z(),o=rn(a??"es");return Ie.tz(e,s).locale(o).format("DD MMMM YYYY")},cn=e=>{const{PUBLIC_LNG:t,DATE_TIMEZONE:a}=z(),s=rn(t??"es");return Ie.tz(e,a).locale(s).format(s==="en"?"MMMM DD YYYY [•] HH:mm [hs]":"DD [de] MMMM YYYY [•] HH:mm [hs]")},hs=e=>{const{PUBLIC_LNG:t,DATE_TIMEZONE:a}=z(),s=rn(t??"es");return Ie.tz(e,a).locale(s).format("MM/DD/YYYY [•] HH:mm [HS]")},wi=e=>{const{PUBLIC_LNG:t,DATE_TIMEZONE:a}=z(),s=rn(t??"es");return Ie.tz(e,a).locale(s).format("dddd DD [de] MMMM YYYY")},Ct=(e,t)=>{if(!e)return"";const a=new Date(e),o=new Intl.DateTimeFormat("en-CA",{timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).formatToParts(a),r={};o.forEach(p=>{p.type!=="literal"&&(r[p.type]=p.value)});const i=new Date(a.toLocaleString("en-US",{timeZone:"UTC"})),h=(new Date(a.toLocaleString("en-US",{timeZone:t})).getTime()-i.getTime())/6e4,d=h>=0?"+":"-",l=p=>String(Math.floor(Math.abs(p))).padStart(2,"0"),u=l(h/60),f=l(h%60);return`${r.year}-${r.month}-${r.day}T${r.hour}:${r.minute}:${r.second}${d}${u}:${f}`},qe=(e,t=136)=>e&&e.length>t?`${e.substring(0,t)}...`:e;function ct(e){return e&&e.status==="fulfilled"?e.value.data:null}function us(e){return e&&e.status==="fulfilled"?e.value:null}const yi={url:"",target:"_self",canonical:!1,internal:""},bi={date:"",created:0,modified:0,firstpublish:0,lastpublish:0};function Ci(e){return e==null?"":typeof e=="string"?e:e.article??e.home??e.section??e.seo??""}const vt=(e,t,a,s)=>{const o=Ci(e?.main?.title),r=e?.main?.description??"";return{authors:e?.main?.author?[{firstname:"",lastname:"",fullname:typeof e.main.author=="string"?e.main.author:String(e.main.author??"Redacción"),image:{sizes:[],description:""},name:"",internaluser:!1}]:[],social:{description:"",images:{facebook:"",twitter:""},title:""},info:{date:{...bi,...e?.info?.date},link:e?.info?.link??yi},preview:{sizes:e?.main?.image?.sizes??[],description:e?.main?.image?.description??""},config:{showtime:t??!1,showsubtitle:a??!1,showauthor:!!(s&&e?.main?.author)},main:{title:{article:o,home:o,seo:o,section:o},subtitle:{rendered:r,striped:r},tags:[]}}};function Zn(e){if(!e||!e.body||!e.body.rendered)return[];const t=e?.body?.rendered,a=[],s=/<div[^>]*class=["'][^"']*ck-related-news[^"']*["'][^>]*>([\s\S]*?)<span\b[^>]*data-src=["']([^"']+)["'][^>]*>[\s\S]*?<\/span>/gi;let o;for(;(o=s.exec(t))!==null;){const r=o[2];r&&a.push([r])}return a}const fs=async(e,t)=>{const a=[];return e.forEach(r=>{r.forEach(i=>{const c=t({path:i.replaceAll("|","/"),imagesizes:"w:212,h:142,t:2;w:100,h:100,t:2",exclude:"config,keywords,authors,body,related,relatedexternal,social,external,hascontent,customfields,pixel"});c&&a.push(c)})}),(await Promise.allSettled(a)).map(r=>ct(r)?.data)},Bt=()=>{const{PUBLIC_ENV:e,PUBLIC_API_HOST:t,PUBLIC_ASSETS_URL:a}=z();return e=="local"?t:a&&a!=="false"?a:""},vi=()=>{const{PUBLIC_ENV:e,PUBLIC_API_FRONT:t}=z();return e==="local"?t:""},_i=e=>{if(!e?.preview?.length)return null;const t=e.preview;return t.find(a=>a.format==="1.91:1")??t[t.length-1]},ms=({schemaImage:e,socialImage:t,fallbackImage:a,prefix:s,defaultWidth:o,defaultHeight:r,alt:i})=>e?.url?{url:s+e.url,width:e.width,height:e.height,alt:i}:{url:s+(t??a??""),width:o,height:r,alt:i},gs=(e,t,a,s)=>{if(!t)return{};const{PUBLIC_ASSETS_URL:o,PUBLIC_API_FRONT:r,DATE_TIMEZONE:i="America/Mexico_City"}=z(),c=Xn(t.keywords)??"",h=t?.preview?.sizes?t?.preview?.sizes[0]?.url:"",d=(o!=="false"?o:r)??"",l=_i(s),u=t.main.title.article,f=ms({schemaImage:l,socialImage:t?.social?.images?.facebook,fallbackImage:h,prefix:d,defaultWidth:a.landscapeLogo.width,defaultHeight:a.landscapeLogo.height,alt:s?.description??u}),p=ms({schemaImage:l,socialImage:t?.social?.images?.twitter,fallbackImage:h,prefix:d,defaultWidth:a.twitterSummaryCard.width,defaultHeight:a.twitterSummaryCard.height,alt:s?.description??u});return{title:(t?.main?.title?.seo??t?.main?.title?.article)+" | "+a.name,robots:"index, follow, max-image-preview:large",alternates:{types:{"application/rss+xml":(a.siteUrl??"")+"/rss/feed.xml"},canonical:t?.info?.link?.canonical},description:t?.main?.subtitle?.striped??"",news_keywords:c,keywords:c,openGraph:{title:t?.social?.title?t?.social?.title:t?.main?.title?.article,url:t?.info?.link?.canonical,type:"article",description:t?.social?.description?t?.social?.description:t?.main?.subtitle?.striped??"",images:[f],siteName:a.name.toLocaleUpperCase(),locale:a.lang.startsWith("en")?"en_US":a.lang==="es"?"es_LA":a.lang.replace("-","_")},twitter:{title:t?.main?.title?.article,card:"summary_large_image",site:e.twitter.site,description:t?.main?.subtitle?.striped??"",images:[p]},article:{published_time:Ct(t?.info?.date?.firstpublish,i),modified_time:Ct(t?.info?.date?.lastpublish??t?.info?.date?.firstpublish,i),section:t?.info?.section?.name,author:t?.authors?.[0]?.fullname,tag:t?.keywords?.tags??[]}}},Xn=e=>!e||!e?.tags||e?.tags?.length===0?"":e?.tags?.map(t=>t.name).join(", ").replaceAll('"',"'").replaceAll("`","'"),ps=e=>{const t=e?.match(/^\/(?:[^/]+\/)?([^/]+)\/([^/]+\.html)$/);return t?{slug:t[1]??"",path:t[2]??""}:{slug:"",path:""}},As=e=>e.replaceAll("/","").replaceAll("_","").replace(".html",""),Si={description:{attr:"name",value:"description"},robots:{attr:"name",value:"robots"},keywords:{attr:"name",value:"keywords"},news_keywords:{attr:"name",value:"news_keywords"},"openGraph.title":{attr:"property",value:"og:title"},"openGraph.description":{attr:"property",value:"og:description"},"openGraph.type":{attr:"property",value:"og:type"},"openGraph.url":{attr:"property",value:"og:url"},"openGraph.siteName":{attr:"property",value:"og:site_name"},"openGraph.locale":{attr:"property",value:"og:locale"},"twitter.card":{attr:"name",value:"twitter:card"},"twitter.title":{attr:"name",value:"twitter:title"},"twitter.description":{attr:"name",value:"twitter:description"},"twitter.site":{attr:"name",value:"twitter:site"},"twitter.creator":{attr:"name",value:"twitter:creator"}},ws=e=>{const t=[];let a=0;const s=i=>t.push(i);return e.title&&typeof e.title=="string"&&s(n.jsx("title",{children:e.title},`title-${a++}`)),Object.entries(Si).forEach(([i,c])=>{const h=i.split(".").reduce((d,l)=>d?.[l],e);h&&s(n.jsx("meta",{[c.attr]:c.value,content:String(h)},`meta-${a++}`))}),(e.openGraph?.images?Array.isArray(e.openGraph.images)?e.openGraph.images:[e.openGraph.images]:[]).forEach(i=>{i&&(typeof i=="string"?s(n.jsx("meta",{property:"og:image",content:i},`og-img-${a++}`)):(i.url&&s(n.jsx("meta",{property:"og:image",content:i.url},`og-img-${a++}`)),i.width&&s(n.jsx("meta",{property:"og:image:width",content:String(i.width)},`og-img-w-${a++}`)),i.height&&s(n.jsx("meta",{property:"og:image:height",content:String(i.height)},`og-img-h-${a++}`)),i.alt&&s(n.jsx("meta",{property:"og:image:alt",content:String(i.alt)},`og-img-alt-${a++}`))))}),(e.twitter?.images?Array.isArray(e.twitter.images)?e.twitter.images:[e.twitter.images]:[]).forEach(i=>{i&&(typeof i=="string"?s(n.jsx("meta",{name:"twitter:image",content:i},`tw-img-${a++}`)):(i.url&&s(n.jsx("meta",{name:"twitter:image",content:i.url},`tw-img-${a++}`)),i.width&&s(n.jsx("meta",{name:"twitter:image:width",content:String(i.width)},`tw-img-w-${a++}`)),i.height&&s(n.jsx("meta",{name:"twitter:image:height",content:String(i.height)},`tw-img-h-${a++}`)),i.alt&&s(n.jsx("meta",{name:"twitter:image:alt",content:String(i.alt)},`tw-img-alt-${a++}`))))}),e.article&&(s(n.jsx("meta",{property:"article:published_time",content:e.article.published_time})),s(n.jsx("meta",{property:"article:modified_time",content:e.article.modified_time})),s(n.jsx("meta",{property:"article:section",content:e.article.section})),s(n.jsx("meta",{property:"article:author",content:e.article.author})),Array.isArray(e.article.tag)&&e.article.tag.length>0&&e.article.tag.forEach(i=>{s(n.jsx("meta",{property:"article:tag",content:i.name}))})),e.alternates?.canonical&&s(n.jsx("link",{rel:"canonical",href:String(e.alternates.canonical)},`link-${a++}`)),e.manifest&&s(n.jsx("link",{rel:"manifest",href:String(e.manifest)},`link-${a++}`)),e.alternates?.types&&Object.entries(e.alternates.types).forEach(([i,c])=>{typeof c=="string"&&s(n.jsx("link",{rel:"alternate",type:i,href:c},`alt-${a++}`))}),e.icons&&[...e.icons?.icon??[],...e.icons?.other??[]].forEach(c=>{c&&s(typeof c=="string"?n.jsx("link",{rel:"icon",href:c},`icon-${a++}`):n.jsx("link",{rel:c.rel||"icon",href:c.url,...c.type&&{type:c.type},...c.sizes&&{sizes:c.sizes}},`icon-${a++}`))}),e.other&&Object.entries(e.other).forEach(([i,c])=>{c&&s(n.jsx("meta",{name:i,content:String(c)},`other-${a++}`))}),t},ue=async e=>{const t=Bt()??"",a=e;return a?.startsWith("http")||a?.includes(t)||t===""?a:t+a},ln=(e,t)=>{const a=e||"";return t?a.replaceAll("[section_replace]",t["[section_replace]"]??"").replaceAll("[tag_replace]",t["[tag_replace]"]??"").replaceAll("[url_replace]",t["[url_replace]"]??"").replaceAll("[author_replace]",t["[author_replace]"]??"")||"":a||""},Ni=e=>{const t={};if(!e)return t;const a=/([^\s=]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'>]+)))?/g;let s;for(;s=a.exec(e);){const o=s[1],r=s[2]??s[3]??s[4]??!0;t[o]=r}return t},Ii=e=>{const t=e.match(/\bsrc\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/i);return t?.[1]||t?.[2]||t?.[3]||null},ys=(e,t,a,s)=>{try{const o=Ni(e);return o.src?n.jsx("script",{"data-bs-name":s,...o},a):n.jsx("script",{...o,dangerouslySetInnerHTML:{__html:t}},a)}catch{const r=Ii(e);return r?n.jsx("script",{"data-bs-name":s,src:r,async:!0,defer:!0},a):null}},Ei=e=>{const t=/<script\b([^>]*)>([\s\S]*?)<\/script\s*>|<script\b([^>]*)\/?>/gi;return[...e.matchAll(t)]},Rn=e=>{const t=e.banners.find(o=>o.key===e.name);if(!t||!t.show)return null;const a=ln(t.value||"",e.replaces),s=Ei(a);return n.jsx(n.Fragment,{children:s.map((o,r)=>{const i=o[1]||o[3]||"",c=o[2]?.trim()||"";return ys(i,c,r,e.name)})})},bs=e=>{const t=e.banners.find(o=>o.key===e.name);if(!t||!t.show)return null;const s=ln(t.value||"",e.replaces).split(/(<script\b[\s\S]*?<\/script\s*>|<script\b[^>]*\/?>)/gi);return n.jsx(n.Fragment,{children:s.map((o,r)=>{const i=o.match(/<script\b([^>]*)>([\s\S]*?)<\/script\s*>|<script\b([^>]*)\/?>/i);if(i){const c=i[1]||i[3]||"",h=i[2]?.trim()||"";return ys(c,h,r,e.name)}return o.trim()?n.jsx("div",{dangerouslySetInnerHTML:{__html:o}},r):null})})},qt=(e,t,a)=>{let s=e.siteUrl;return t.forEach((o,r)=>{r>0&&(s+=`/${o}`)}),`${s}/page/${a+1}`},Pt=(e,t,a)=>{let s=e.siteUrl;return t.forEach((o,r)=>{r>0&&(s+=`/${o}`)}),`${s}/page/${a-1}`};function Ti(e){const t=e.length;return t>1&&e.charCodeAt(t-1)===47?e.slice(0,t-1):e}const Cs=()=>{const{PUBLIC_ASSETS_URL:e}=z();return e&&e!=="false"&&n.jsx("link",{rel:"preconnect",href:e,crossOrigin:"anonymous"})},{PUBLIC_ASSETS_URL:ea}=z(),ki=ea&&ea!=="false"?ea:"",ta=({images:e})=>n.jsx(n.Fragment,{children:e.map((t,a)=>t.href!==""&&n.jsx("link",{rel:"preload",href:ki+t.href,media:t.media??"",as:"image",fetchPriority:t.fetchPriority??"high"},a))}),vs=(e,t,a)=>{if(!t)return{};const{PUBLIC_API_FRONT:s}=z();return{title:t?.main?.title+" | "+a.name,robots:"index, follow, max-image-preview:large",alternates:{canonical:a.siteUrl+t?.info?.link?.url},description:t.main.description??"",news_keywords:t.main.tags,keywords:t.main.tags,openGraph:{title:t.main.title,url:t?.info?.link?.canonical,type:"article",description:t.main.description??"",images:[{url:(s??"")+t?.main.image.sizes[0]?.url,width:a.landscapeLogo.width,height:a.landscapeLogo.height}],siteName:a.name.toLocaleUpperCase(),locale:a.lang.startsWith("en")?"en_US":a.lang==="es"?"es_LA":a.lang.replace("-","_")},twitter:{title:t?.main?.title,card:"summary_large_image",site:e.twitter.site,description:t?.main.description??"",images:[{url:(s??"")+t?.main.image.sizes[0]?.url,width:a.twitterSummaryCard.width,height:a.twitterSummaryCard.height}]}}},Ui=e=>{let t="";if(e.params.news.match(/.*t[0-9]*.html/g)){const a=e.params.news.split("-"),s=a[a.length-1]??"",o=s.substring(1,9),r=s.substring(9,13);t=`/listas/${Ie(o).format("YYYY/MM/DD")}/lista_${r}.html`}else if(e.params.news.match(/.*lb[0-9]*.html/g)){const a=e.params.news.split("-"),s=a[a.length-1]??"",o=s.substring(2,10),r=s.substring(10,14);t=`/liveblog/${Ie(o).format("YYYY/MM/DD")}/liveblog_${r}.html`}else{const s=e.params.news.replace(/\.html$/g,"").split("-");Array.isArray(s)&&(t=`/contenidos/${Ie(s[s.length-2]).format("YYYY/MM/DD")}/noticia_${s[s.length-1]}.html`)}return e.config.servicePrefix+t};function xi(e){const t=e.lastIndexOf("-"),a=t>=0?[e.slice(0,t),e.slice(t+1)]:[e],s=a[a.length-1]?.split("."),o=s&&s[0]?s[0]:"",r=o.substring(0,2),i=o.substring(2,10),c=o.substring(10);return{path:{vy:d=>`/videos/video-youtube/${Ie(i).format("YYYY/MM/DD")}/videoYouTube_${d}.lnk`,ve:d=>`/videos/video-embedded/${Ie(i).format("YYYY/MM/DD")}/videoEmbedded_${d}.lnk`,vf:d=>`/videos/video-flash/${Ie(i).format("YYYY/MM/DD")}/${a[0]}.${d}`}[r]?.(c)??"",op:r}}const tt=(e,t)=>{const a=e.name.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/ñ/g,"n").replace(/Ñ/g,"n").replace(/[^\w\s]/gi,"").replaceAll(" ","-").toLowerCase();return t?.tema?`/${t.tema}/${a}-t${e.id}`:`/${a}-t${e.id}`},Li=e=>{const{AssetsPrefix:t="",AssetsPath:a="src",isDev:s=!1}=e;return s?"src":t+a},Bi=async(e,t,a,s)=>{const{FETCH_TAG_BASED_RELATED_NEWS:o=!1,FETCH_SIZE_RELATED_NEWS:r=10}=z();if(!e)return[];try{if(e.related&&e.related?.automatic===!1&&e.related?.news&&e.related?.news.length>0)return(await a.getNewsListPath({path:e.related.news.map(c=>c.path).join(";"),exclude:"gallery,related,relatedexternal,external,customfields",imagesizes:s.md}))?.data?.data??[];{const i=e&&e.keywords&&e.keywords.tags&&e.keywords.tags[0];return((e?i&&o?await a.getNewsListAvanced({query:'claves:("'+e.keywords?.tags[0].name+'")',exclude:"gallery,related,relatedexternal,external,customfields",imagesizes:s.md,size:r+1}):await a.getNewsItemsRelated(t.split("/").join("|"),{size:r}):null)?.data?.data??[]).filter(d=>d.info.link.internal!==t.split("/").join("|"))}}catch(i){console.log(i)}},qi="https://recaptchaenterprise.googleapis.com/v1/projects",Pi=async({projectID:e,recaptchaKey:t,token:a,recaptchaAction:s,apiKey:o,userAgent:r,userIpAddress:i})=>{if(!e||!t||!a||!o)return console.warn("createAssessment: faltan parámetros requeridos"),null;const c=`${qi}/${e}/assessments?key=${o}`,h={event:{token:a,siteKey:t,expectedAction:s,...r&&{userAgent:r},...i&&{userIpAddress:i}}};try{const d=await fetch(c,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(h)});if(!d.ok)return console.error("createAssessment API error:",d.status,await d.text()),null;const l=await d.json();if(!l?.tokenProperties?.valid)return console.log(`CreateAssessment falló - token inválido: ${l?.tokenProperties?.invalidReason??"unknown"}`),null;if(l.tokenProperties.action!==s)return console.log("La acción en reCAPTCHA no coincide con la esperada:",s),null;const u=l?.riskAnalysis?.score;return u!==void 0&&(console.log("reCAPTCHA score:",u),l?.riskAnalysis?.reasons?.forEach(f=>console.log(f))),typeof u=="number"?u:null}catch(d){return console.error("createAssessment error:",d),null}};function na(e){const t={};for(const[a,s]of Object.entries(e)){const o=btoa(a).split("").reverse().join("");typeof s=="string"?t[o]=btoa(s).split("").reverse().join(""):t[o]=s}return t}function aa(e){const t={};for(const[a,s]of Object.entries(e)){const o=atob(a.split("").reverse().join(""));if(typeof s=="string")try{t[o]=atob(s.split("").reverse().join(""))}catch{t[o]=s}else t[o]=s}return t}const _s={prerender:[{where:{and:[{href_matches:"/*(-|-t|-lb)([0-9]{8})(-|)([0-9]{4,6}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"moderate"}]},Ss={prerender:[{where:{and:[{href_matches:"/*(-|-t|-lb)([0-9]{8})(-|)([0-9]{4,6}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"moderate"},{eagerness:"moderate",urls:["/"]}]},Oi={Home:_s,Common:Ss},Ns=({active:e,type:t,customSpeculation:a})=>e&&n.jsx("script",{type:"speculationrules",dangerouslySetInnerHTML:{__html:JSON.stringify(a??Oi[t])}}),dn=async(e,t,a)=>{if(a)return a.get(`/schemas${t}`,{params:e}).catch(s=>{console.log(`[/schemas${t}] Error: ${s.message}`)})},Mi={autor:"autor",seccion:"seccion",tema:"claves","ultimas-noticias":"seccion"},Is=async({config:e,axiosApi:t,pathname:a,ROUTE:s})=>{const{PUBLIC_PUBLICATION_ID:o=""}=z();let r=[];const i=a==="/"||a==="/index.html"?void 0:Ls(Bs[s]({pathname:a,config:e})),c=Mi[s]??void 0,h={newstype:e.newsType,publication:Number(o),...i&&c?{query:`${c}:('${i}')`}:{}};try{const d=await dn(h,"/news-list-summary",t);d?.data?.data?r=d.data.data:console.warn("getSchemas responded but did not contain expected data:",d)}catch(d){console.log("Error fetching schemas:",d)}return Object.keys(r).length>0&&n.jsx("script",{id:"webSiteItemListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(r)}})};function hn(e){const{PUBLIC_ASSETS_URL:t}=z();if(!t||t==="false")return e;const a=t.replace(/\/+$/,""),s=/https?:\/\/[^/\s]+\/(arte|__export)\//g;return e.replace(s,(o,r)=>`${a}/${r}/`)}const Es=async({realPath:e,config:t,BASE_URL:a,axiosApi:s})=>{const{PUBLIC_SERVICE_PREFIX:o,PUBLIC_IS_SUB_PUBLICATION:r}=z();let i=[];try{const c=t.socialBlockLogo?.url?new URL(t.socialBlockLogo.url).pathname:void 0,h=t.landscapeLogo?.url?new URL(t.landscapeLogo.url).pathname:void 0,d={path:e,image:h,logo:c,url:t.siteUrl,name:t.name,logow:t.socialBlockLogo?.width,logoh:t.socialBlockLogo?.height,authorurl:a+"/autor/"},l=e.split("/")[1],u=l=="liveblogs"||l=="liveblog"?["/news","/news-breadcrumb","/news-liveblog"]:["/news","/news-breadcrumb"],f=t.paths.tema!==""?"/"+t.paths.tema:t.paths.tema,p=o!=="false"&&r!=="false"?"/"+o+f:f;i=(await Promise.all(u.map(async g=>{const A=g==="/news-breadcrumb"?{...d,prefixtag:p}:g==="/news"&&t.schemasNewsParams?{...d,...t.schemasNewsParams}:d;return console.log("fetching => schemas/"+g,A),await dn(A,g,s)}))).map(g=>g?.data?.data??[])}catch(c){console.log("Error fetching schemas:",c)}return i.map((c,h)=>n.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:hn(JSON.stringify(c))}},h))},Ts=({config:e,socials:t})=>{const a={"@context":"https://schema.org","@type":"NewsMediaOrganization",name:e.name,description:e.description,email:e.email,url:e.siteUrl,logo:e.squareLogo.url,sameAs:Object.keys(t).filter(s=>t[s]?.show).map(s=>t[s]?.url)};return(!e.description||e.description==="")&&delete a.description,n.jsx("script",{id:"WebsiteOrgListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(a)}})},ks=({config:e})=>{const t={"@context":"https://schema.org","@type":"WebSite",name:e.name,url:e.siteUrl,potentialAction:{"@type":"SearchAction",target:e.siteUrl+"/buscar?query={search_term_string}","query-input":"required name=search_term_string"}};return n.jsx("script",{id:"WebsiteListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t)}})},Us=async({realPath:e,config:t,axiosApi:a})=>{try{const s={path:e,image:t.landscapeLogo?.url?new URL(t.landscapeLogo.url).pathname:void 0,logo:t.socialBlockLogo?.url?new URL(t.socialBlockLogo.url).pathname:void 0,url:t.siteUrl,name:t.name,logow:t.socialBlockLogo?.width,logoh:t.socialBlockLogo?.height,authorurl:`${t.siteUrl}/autor/`},r=(await dn(s,"/videos",a))?.data.data;return r?n.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:hn(JSON.stringify(r))}}):void 0}catch(s){return console.error("Error fetching video schemas:",s),null}},xs=({config:e})=>{const t=`@font-face {
14
14
  font-family: '${e.fontName}';
15
15
  font-style: normal;
16
16
  font-weight: ${e.fontWeight};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sass-template-common",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"