sass-template-common 0.9.79 → 0.9.80

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.
@@ -1630,9 +1630,7 @@ const Br = async ({
1630
1630
  logoh: t.socialBlockLogo?.height,
1631
1631
  authorurl: s + "/autor/",
1632
1632
  lang: t.lang
1633
- };
1634
- console.log("Fetching schemas with params:", l);
1635
- const d = e.split("/")[1], m = d == "liveblogs" || d == "liveblog" ? ["/news", "/news-breadcrumb", "/news-liveblog"] : ["/news", "/news-breadcrumb"], h = t.paths.tema !== "" ? "/" + t.paths.tema : t.paths.tema, A = r !== "false" && i !== "false" ? "/" + r + h : h;
1633
+ }, d = e.split("/")[1], m = d == "liveblogs" || d == "liveblog" ? ["/news", "/news-breadcrumb", "/news-liveblog"] : ["/news", "/news-breadcrumb"], h = t.paths.tema !== "" ? "/" + t.paths.tema : t.paths.tema, A = r !== "false" && i !== "false" ? "/" + r + h : h;
1636
1634
  o = (await Promise.all(
1637
1635
  m.map(async (g) => {
1638
1636
  const w = g === "/news-breadcrumb" ? { ...l, prefixtag: A } : g === "/news" && t.schemasNewsParams ? { ...l, ...t.schemasNewsParams } : l;
@@ -13009,10 +13007,19 @@ const qu = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
13009
13007
  }
13010
13008
  );
13011
13009
  }, yl = (e) => {
13012
- const { share: t = !1, cutSubtitle: s = !0, SHOW_TAG_BY_SECTION: a, keywords: r, info: i } = e, c = (() => {
13010
+ const {
13011
+ share: t = !1,
13012
+ cutSubtitle: s = !0,
13013
+ SHOW_TAG_BY_SECTION: a,
13014
+ keywords: r,
13015
+ info: i
13016
+ } = e, c = (() => {
13013
13017
  if (!e?.authors || e.authors.length === 0) return "";
13014
- const d = e.authors[0], m = Ue(e.info?.date?.modified, e.DATE_CONFIG);
13015
- return d && e?.config?.showtime && e.config?.showauthor ? `${d.fullname} - ${m}` : d && e.config?.showauthor ? d.fullname : e?.config?.showtime ? m : "";
13018
+ const d = e.authors[0], m = Ue(
13019
+ e.info?.date?.modified,
13020
+ e.DATE_CONFIG
13021
+ );
13022
+ return d && e?.config?.showtime && e.config?.showauthor ? `${d.fullname} - ${m}` : d && e.config?.showauthor ? d.fullname : (e?.config?.showtime, "");
13016
13023
  })(), u = () => e.main.uppertitle ? /* @__PURE__ */ n("p", { className: "sass-com-nd-uppertitle", title: e.main.uppertitle, children: e.main.uppertitle }) : null;
13017
13024
  return /* @__PURE__ */ p("div", { className: "sass-com-nd-boxInformation", children: [
13018
13025
  t && /* @__PURE__ */ n(Al, { className: "sass-com-nd-dotStyles" }),
@@ -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
- `}}),s.jsx("noscript",{children:s.jsx("iframe",{src:`https://www.googletagmanager.com/ns.html?id=${e}`,height:"0",width:"0",style:{display:"none",visibility:"hidden"}})})]})},$s=()=>{const{ANALYTICS_marfeel:e}=O();return e&&s.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},{})}();`}})},Mn=({defaultRouteName:e})=>{const{CAPTCHA_KEY:t,CONFIG_comments:a=!1,CONFIG_commentsV2:r=!1}=O();return t&&t!==""&&(e==="video"&&a&&!r||e==="news"&&a&&!r||e==="auth"||e==="anuncia"||e==="contacto")&&s.jsx("script",{src:`https://www.google.com/recaptcha/enterprise.js?render=${t}`,async:!0,defer:!0})};function Qe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var it={exports:{}},qn=it.exports,Zs;function Xs(){return Zs||(Zs=1,(function(e,t){(function(a,r){e.exports=r()})(qn,(function(){var a=1e3,r=6e4,n=36e5,o="millisecond",i="second",l="minute",h="hour",c="day",d="week",u="month",m="quarter",p="year",f="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+)?$/,b=/\[([^\]]+)]|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,E={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(_){var L=["th","st","nd","rd"],k=_%100;return"["+_+(L[(k-20)%10]||L[k]||L[0])+"]"}},N=function(_,L,k){var G=String(_);return!G||G.length>=L?_:""+Array(L+1-G.length).join(k)+_},S={s:N,z:function(_){var L=-_.utcOffset(),k=Math.abs(L),G=Math.floor(k/60),x=k%60;return(L<=0?"+":"-")+N(G,2,"0")+":"+N(x,2,"0")},m:function _(L,k){if(L.date()<k.date())return-_(k,L);var G=12*(k.year()-L.year())+(k.month()-L.month()),x=L.clone().add(G,u),W=k-x<0,C=L.clone().add(G+(W?-1:1),u);return+(-(G+(k-x)/(W?x-C:C-x))||0)},a:function(_){return _<0?Math.ceil(_)||0:Math.floor(_)},p:function(_){return{M:u,y:p,w:d,d:c,D:f,h,m:l,s:i,ms:o,Q:m}[_]||String(_||"").toLowerCase().replace(/s$/,"")},u:function(_){return _===void 0}},w="en",U={};U[w]=E;var P="$isDayjsObject",H=function(_){return _ instanceof V||!(!_||!_[P])},Y=function _(L,k,G){var x;if(!L)return w;if(typeof L=="string"){var W=L.toLowerCase();U[W]&&(x=W),k&&(U[W]=k,x=W);var C=L.split("-");if(!x&&C.length>1)return _(C[0])}else{var T=L.name;U[T]=L,x=T}return!G&&x&&(w=x),x||!G&&w},F=function(_,L){if(H(_))return _.clone();var k=typeof L=="object"?L:{};return k.date=_,k.args=arguments,new V(k)},B=S;B.l=Y,B.i=H,B.w=function(_,L){return F(_,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var V=(function(){function _(k){this.$L=Y(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[P]=!0}var L=_.prototype;return L.parse=function(k){this.$d=(function(G){var x=G.date,W=G.utc;if(x===null)return new Date(NaN);if(B.u(x))return new Date;if(x instanceof Date)return new Date(x);if(typeof x=="string"&&!/Z$/i.test(x)){var C=x.match(A);if(C){var T=C[2]-1||0,q=(C[7]||"0").substring(0,3);return W?new Date(Date.UTC(C[1],T,C[3]||1,C[4]||0,C[5]||0,C[6]||0,q)):new Date(C[1],T,C[3]||1,C[4]||0,C[5]||0,C[6]||0,q)}}return new Date(x)})(k),this.init()},L.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()},L.$utils=function(){return B},L.isValid=function(){return this.$d.toString()!==g},L.isSame=function(k,G){var x=F(k);return this.startOf(G)<=x&&x<=this.endOf(G)},L.isAfter=function(k,G){return F(k)<this.startOf(G)},L.isBefore=function(k,G){return this.endOf(G)<F(k)},L.$g=function(k,G,x){return B.u(k)?this[G]:this.set(x,k)},L.unix=function(){return Math.floor(this.valueOf()/1e3)},L.valueOf=function(){return this.$d.getTime()},L.startOf=function(k,G){var x=this,W=!!B.u(G)||G,C=B.p(k),T=function(ee,$){var ne=B.w(x.$u?Date.UTC(x.$y,$,ee):new Date(x.$y,$,ee),x);return W?ne:ne.endOf(c)},q=function(ee,$){return B.w(x.toDate()[ee].apply(x.toDate("s"),(W?[0,0,0,0]:[23,59,59,999]).slice($)),x)},Q=this.$W,j=this.$M,z=this.$D,K="set"+(this.$u?"UTC":"");switch(C){case p:return W?T(1,0):T(31,11);case u:return W?T(1,j):T(0,j+1);case d:var J=this.$locale().weekStart||0,R=(Q<J?Q+7:Q)-J;return T(W?z-R:z+(6-R),j);case c:case f:return q(K+"Hours",0);case h:return q(K+"Minutes",1);case l:return q(K+"Seconds",2);case i:return q(K+"Milliseconds",3);default:return this.clone()}},L.endOf=function(k){return this.startOf(k,!1)},L.$set=function(k,G){var x,W=B.p(k),C="set"+(this.$u?"UTC":""),T=(x={},x[c]=C+"Date",x[f]=C+"Date",x[u]=C+"Month",x[p]=C+"FullYear",x[h]=C+"Hours",x[l]=C+"Minutes",x[i]=C+"Seconds",x[o]=C+"Milliseconds",x)[W],q=W===c?this.$D+(G-this.$W):G;if(W===u||W===p){var Q=this.clone().set(f,1);Q.$d[T](q),Q.init(),this.$d=Q.set(f,Math.min(this.$D,Q.daysInMonth())).$d}else T&&this.$d[T](q);return this.init(),this},L.set=function(k,G){return this.clone().$set(k,G)},L.get=function(k){return this[B.p(k)]()},L.add=function(k,G){var x,W=this;k=Number(k);var C=B.p(G),T=function(j){var z=F(W);return B.w(z.date(z.date()+Math.round(j*k)),W)};if(C===u)return this.set(u,this.$M+k);if(C===p)return this.set(p,this.$y+k);if(C===c)return T(1);if(C===d)return T(7);var q=(x={},x[l]=r,x[h]=n,x[i]=a,x)[C]||1,Q=this.$d.getTime()+k*q;return B.w(Q,this)},L.subtract=function(k,G){return this.add(-1*k,G)},L.format=function(k){var G=this,x=this.$locale();if(!this.isValid())return x.invalidDate||g;var W=k||"YYYY-MM-DDTHH:mm:ssZ",C=B.z(this),T=this.$H,q=this.$m,Q=this.$M,j=x.weekdays,z=x.months,K=x.meridiem,J=function($,ne,D,de){return $&&($[ne]||$(G,W))||D[ne].slice(0,de)},R=function($){return B.s(T%12||12,$,"0")},ee=K||function($,ne,D){var de=$<12?"AM":"PM";return D?de.toLowerCase():de};return W.replace(b,(function($,ne){return ne||(function(D){switch(D){case"YY":return String(G.$y).slice(-2);case"YYYY":return B.s(G.$y,4,"0");case"M":return Q+1;case"MM":return B.s(Q+1,2,"0");case"MMM":return J(x.monthsShort,Q,z,3);case"MMMM":return J(z,Q);case"D":return G.$D;case"DD":return B.s(G.$D,2,"0");case"d":return String(G.$W);case"dd":return J(x.weekdaysMin,G.$W,j,2);case"ddd":return J(x.weekdaysShort,G.$W,j,3);case"dddd":return j[G.$W];case"H":return String(T);case"HH":return B.s(T,2,"0");case"h":return R(1);case"hh":return R(2);case"a":return ee(T,q,!0);case"A":return ee(T,q,!1);case"m":return String(q);case"mm":return B.s(q,2,"0");case"s":return String(G.$s);case"ss":return B.s(G.$s,2,"0");case"SSS":return B.s(G.$ms,3,"0");case"Z":return C}return null})($)||C.replace(":","")}))},L.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},L.diff=function(k,G,x){var W,C=this,T=B.p(G),q=F(k),Q=(q.utcOffset()-this.utcOffset())*r,j=this-q,z=function(){return B.m(C,q)};switch(T){case p:W=z()/12;break;case u:W=z();break;case m:W=z()/3;break;case d:W=(j-Q)/6048e5;break;case c:W=(j-Q)/864e5;break;case h:W=j/n;break;case l:W=j/r;break;case i:W=j/a;break;default:W=j}return x?W:B.a(W)},L.daysInMonth=function(){return this.endOf(u).$D},L.$locale=function(){return U[this.$L]},L.locale=function(k,G){if(!k)return this.$L;var x=this.clone(),W=Y(k,G,!0);return W&&(x.$L=W),x},L.clone=function(){return B.w(this.$d,this)},L.toDate=function(){return new Date(this.valueOf())},L.toJSON=function(){return this.isValid()?this.toISOString():null},L.toISOString=function(){return this.$d.toISOString()},L.toString=function(){return this.$d.toUTCString()},_})(),te=V.prototype;return F.prototype=te,[["$ms",o],["$s",i],["$m",l],["$H",h],["$W",c],["$M",u],["$y",p],["$D",f]].forEach((function(_){te[_[1]]=function(L){return this.$g(L,_[0],_[1])}})),F.extend=function(_,L){return _.$i||(_(L,V,F),_.$i=!0),F},F.locale=Y,F.isDayjs=H,F.unix=function(_){return F(1e3*_)},F.en=U[w],F.Ls=U,F.p={},F}))})(it)),it.exports}var Dn=Xs();const Ae=Qe(Dn);var lt={exports:{}},_n=lt.exports,Rs;function Gn(){return Rs||(Rs=1,(function(e,t){(function(a,r){e.exports=r()})(_n,(function(){return function(a,r,n){a=a||{};var o=r.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 l(c,d,u,m){return o.fromToBase(c,d,u,m)}n.en.relativeTime=i,o.fromToBase=function(c,d,u,m,p){for(var f,g,A,b=u.$locale().relativeTime||i,E=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"}],N=E.length,S=0;S<N;S+=1){var w=E[S];w.d&&(f=m?n(c).diff(u,w.d,!0):u.diff(c,w.d,!0));var U=(a.rounding||Math.round)(Math.abs(f));if(A=f>0,U<=w.r||!w.r){U<=1&&S>0&&(w=E[S-1]);var P=b[w.l];p&&(U=p(""+U)),g=typeof P=="string"?P.replace("%d",U):P(U,d,w.l,A);break}}if(d)return g;var H=A?b.future:b.past;return typeof H=="function"?H(g):H.replace("%s",g)},o.to=function(c,d){return l(c,d,this,!0)},o.from=function(c,d){return l(c,d,this)};var h=function(c){return c.$u?n.utc():n()};o.toNow=function(c){return this.to(h(this),c)},o.fromNow=function(c){return this.from(h(this),c)}}}))})(lt)),lt.exports}var jn=Gn();const Qn=Qe(jn);var ct={exports:{}},Fn=ct.exports,ea;function Hn(){return ea||(ea=1,(function(e,t){(function(a,r){e.exports=r(Xs())})(Fn,(function(a){function r(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var n=r(a),o={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 n.default.locale(o,null,!0),o}))})(ct)),ct.exports}Hn();var dt={exports:{}},Vn=dt.exports,ta;function zn(){return ta||(ta=1,(function(e,t){(function(a,r){e.exports=r()})(Vn,(function(){var a="minute",r=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(o,i,l){var h=i.prototype;l.utc=function(g){var A={date:g,utc:!0,args:arguments};return new i(A)},h.utc=function(g){var A=l(this.toDate(),{locale:this.$L,utc:!0});return g?A.add(this.utcOffset(),a):A},h.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var c=h.parse;h.parse=function(g){g.utc&&(this.$u=!0),this.$utils().u(g.$offset)||(this.$offset=g.$offset),c.call(this,g)};var d=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 d.call(this)};var u=h.utcOffset;h.utcOffset=function(g,A){var b=this.$utils().u;if(b(g))return this.$u?0:b(this.$offset)?u.call(this):this.$offset;if(typeof g=="string"&&(g=(function(w){w===void 0&&(w="");var U=w.match(r);if(!U)return null;var P=(""+U[0]).match(n)||["-",0,0],H=P[0],Y=60*+P[1]+ +P[2];return Y===0?0:H==="+"?Y:-Y})(g),g===null))return this;var E=Math.abs(g)<=16?60*g:g;if(E===0)return this.utc(A);var N=this.clone();if(A)return N.$offset=E,N.$u=!1,N;var S=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(N=this.local().add(E+S,a)).$offset=E,N.$x.$localOffset=S,N};var m=h.format;h.format=function(g){var A=g||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return m.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?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():p.call(this)};var f=h.diff;h.diff=function(g,A,b){if(g&&this.$u===g.$u)return f.call(this,g,A,b);var E=this.local(),N=l(g).local();return f.call(E,N,A,b)}}}))})(dt)),dt.exports}var Wn=zn();const Yn=Qe(Wn);var ht={exports:{}},Kn=ht.exports,sa;function Jn(){return sa||(sa=1,(function(e,t){(function(a,r){e.exports=r()})(Kn,(function(){var a={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(n,o,i){var l,h=function(m,p,f){f===void 0&&(f={});var g=new Date(m),A=(function(b,E){E===void 0&&(E={});var N=E.timeZoneName||"short",S=b+"|"+N,w=r[S];return w||(w=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:b,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:N}),r[S]=w),w})(p,f);return A.formatToParts(g)},c=function(m,p){for(var f=h(m,p),g=[],A=0;A<f.length;A+=1){var b=f[A],E=b.type,N=b.value,S=a[E];S>=0&&(g[S]=parseInt(N,10))}var w=g[3],U=w===24?0:w,P=g[0]+"-"+g[1]+"-"+g[2]+" "+U+":"+g[4]+":"+g[5]+":000",H=+m;return(i.utc(P).valueOf()-(H-=H%1e3))/6e4},d=o.prototype;d.tz=function(m,p){m===void 0&&(m=l);var f,g=this.utcOffset(),A=this.toDate(),b=A.toLocaleString("en-US",{timeZone:m}),E=Math.round((A-new Date(b))/1e3/60),N=15*-Math.round(A.getTimezoneOffset()/15)-E;if(!Number(N))f=this.utcOffset(0,p);else if(f=i(b,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(N,!0),p){var S=f.utcOffset();f=f.add(g-S,"minute")}return f.$x.$timezone=m,f},d.offsetName=function(m){var p=this.$x.$timezone||i.tz.guess(),f=h(this.valueOf(),p,{timeZoneName:m}).find((function(g){return g.type.toLowerCase()==="timezonename"}));return f&&f.value};var u=d.startOf;d.startOf=function(m,p){if(!this.$x||!this.$x.$timezone)return u.call(this,m,p);var f=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return u.call(f,m,p).tz(this.$x.$timezone,!0)},i.tz=function(m,p,f){var g=f&&p,A=f||p||l,b=c(+i(),A);if(typeof m!="string")return i(m).tz(A);var E=(function(U,P,H){var Y=U-60*P*1e3,F=c(Y,H);if(P===F)return[Y,P];var B=c(Y-=60*(F-P)*1e3,H);return F===B?[Y,F]:[U-60*Math.min(F,B)*1e3,Math.max(F,B)]})(i.utc(m,g).valueOf(),b,A),N=E[0],S=E[1],w=i(N).utcOffset(S);return w.$x.$timezone=A,w},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(m){l=m}}}))})(ht)),ht.exports}var $n=Jn();const Zn=Qe($n);Ae.extend(Yn),Ae.extend(Zn),Ae.extend(Qn);const ut=e=>e==="en"?"en":"es",Ce=(e,t)=>{const{PUBLIC_LNG:a,DATE_TIMEZONE:r}=t||O(),n=ut(a??"es");return Ae.tz(e,r).locale(n).format("DD MMMM YYYY")},mt=e=>{const{PUBLIC_LNG:t,DATE_TIMEZONE:a}=O(),r=ut(t??"es");return Ae.tz(e,a).locale(r).format(r==="en"?"MMMM DD YYYY [•] HH:mm [hs]":"DD [de] MMMM YYYY [•] HH:mm [hs]")},aa=e=>{const{PUBLIC_LNG:t,DATE_TIMEZONE:a}=O(),r=ut(t??"es");return Ae.tz(e,a).locale(r).format("MM/DD/YYYY [•] HH:mm [HS]")},Xn=e=>{const{PUBLIC_LNG:t,DATE_TIMEZONE:a}=O(),r=ut(t??"es");return Ae.tz(e,a).locale(r).format("dddd DD [de] MMMM YYYY")},Be=(e,t)=>{if(!e)return"";const a=new Date(e),n=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),o={};n.forEach(p=>{p.type!=="literal"&&(o[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,c=h>=0?"+":"-",d=p=>String(Math.floor(Math.abs(p))).padStart(2,"0"),u=d(h/60),m=d(h%60);return`${o.year}-${o.month}-${o.day}T${o.hour}:${o.minute}:${o.second}${c}${u}:${m}`},ye=(e,t=136)=>e&&e.length>t?`${e.substring(0,t)}...`:e;function Oe(e){return e&&e.status==="fulfilled"?e.value.data:null}function ra(e){return e&&e.status==="fulfilled"?e.value:null}const Rn={url:"",target:"_self",canonical:!1,internal:""},eo={date:"",created:0,modified:0,firstpublish:0,lastpublish:0};function to(e){return e==null?"":typeof e=="string"?e:e.article??e.home??e.section??e.seo??""}const Fe=(e,t,a,r)=>{const n=to(e?.main?.title),o=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:{...eo,...e?.info?.date},link:e?.info?.link??Rn},preview:{sizes:e?.main?.image?.sizes??[],description:e?.main?.image?.description??""},config:{showtime:t??!1,showsubtitle:a??!1,showauthor:!!(r&&e?.main?.author)},main:{title:{article:n,home:n,seo:n,section:n},subtitle:{rendered:o,striped:o},tags:[]}}},na=/<div\b[^>]*class=["'][^"']*\bck-related-news\b[^"']*["'][^>]*>/gi;function ft(e){if(!e?.body?.rendered)return[];const t=e.body.rendered,a=[];let r=0;for(;r<t.length;){na.lastIndex=r;const n=na.exec(t);if(!n)break;const o=n.index+n[0].length;let i=1,l=o,h=o;for(;l<t.length&&i>0;){const p=t.slice(l),f=p.match(/<div\b/i),g=p.match(/<\/div>/i),A=f?.index??-1,b=g?.index??-1;if(b===-1)break;const E=A===-1?1/0:l+A,N=l+b;A!==-1&&A<b?(i+=1,l=E+f[0].length):(i-=1,h=N,l=N+g[0].length)}const c=t.slice(o,h),d=[],u=/<span\b[^>]*\bdata-src=["']([^"']+)["']/gi;let m;for(;(m=u.exec(c))!==null;){const p=m[1];p&&d.push(p)}d.length>0&&a.push(d),r=l}return a}const so=ft,oa=async(e,t)=>{const a=[];return e.forEach(o=>{o.forEach(i=>{const l=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"});l&&a.push(l)})}),(await Promise.allSettled(a)).map(o=>Oe(o)?.data)},He=()=>{const{PUBLIC_ENV:e,PUBLIC_API_HOST:t,PUBLIC_ASSETS_URL:a}=O();return e=="local"?t:a&&a!=="false"?a:""},ao=()=>{const{PUBLIC_ENV:e,PUBLIC_API_FRONT:t}=O();return e==="local"?t:""},ro=e=>{if(!e?.preview?.length)return null;const t=e.preview;return t.find(a=>a.format==="1.91:1")??t[t.length-1]},ia=({schemaImage:e,socialImage:t,fallbackImage:a,prefix:r,defaultWidth:n,defaultHeight:o,alt:i})=>e?.url?{url:r+e.url,width:e.width,height:e.height,alt:i}:{url:r+(t??a??""),width:n,height:o,alt:i},la=(e,t,a,r)=>{if(!t)return{};const{PUBLIC_ASSETS_URL:n,PUBLIC_API_FRONT:o,DATE_TIMEZONE:i="America/Mexico_City"}=O(),l=$t(t.keywords)??"",h=t?.preview?.sizes?t?.preview?.sizes[0]?.url:"",c=(n!=="false"?n:o)??"",d=ro(r),u=t.main.title.article,m=ia({schemaImage:d,socialImage:t?.social?.images?.facebook,fallbackImage:h,prefix:c,defaultWidth:a.landscapeLogo.width,defaultHeight:a.landscapeLogo.height,alt:r?.description??u}),p=ia({schemaImage:d,socialImage:t?.social?.images?.twitter,fallbackImage:h,prefix:c,defaultWidth:a.twitterSummaryCard.width,defaultHeight:a.twitterSummaryCard.height,alt:r?.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:l,keywords:l,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:[m],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:Be(t?.info?.date?.firstpublish,i),modified_time:Be(t?.info?.date?.lastpublish??t?.info?.date?.firstpublish,i),section:t?.info?.section?.name,author:t?.authors?.[0]?.fullname,tag:t?.keywords?.tags??[]}}},$t=e=>!e||!e?.tags||e?.tags?.length===0?"":e?.tags?.map(t=>t.name).join(", ").replaceAll('"',"'").replaceAll("`","'"),ca=e=>{const t=e?.match(/^\/(?:[^/]+\/)?([^/]+)\/([^/]+\.html)$/);return t?{slug:t[1]??"",path:t[2]??""}:{slug:"",path:""}},da=e=>e.replaceAll("/","").replaceAll("_","").replace(".html",""),no={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"}},ha=e=>{const t=[];let a=0;const r=i=>t.push(i);return e.title&&typeof e.title=="string"&&r(s.jsx("title",{children:e.title},`title-${a++}`)),Object.entries(no).forEach(([i,l])=>{const h=i.split(".").reduce((c,d)=>c?.[d],e);h&&r(s.jsx("meta",{[l.attr]:l.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"?r(s.jsx("meta",{property:"og:image",content:i},`og-img-${a++}`)):(i.url&&r(s.jsx("meta",{property:"og:image",content:i.url},`og-img-${a++}`)),i.width&&r(s.jsx("meta",{property:"og:image:width",content:String(i.width)},`og-img-w-${a++}`)),i.height&&r(s.jsx("meta",{property:"og:image:height",content:String(i.height)},`og-img-h-${a++}`)),i.alt&&r(s.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"?r(s.jsx("meta",{name:"twitter:image",content:i},`tw-img-${a++}`)):(i.url&&r(s.jsx("meta",{name:"twitter:image",content:i.url},`tw-img-${a++}`)),i.width&&r(s.jsx("meta",{name:"twitter:image:width",content:String(i.width)},`tw-img-w-${a++}`)),i.height&&r(s.jsx("meta",{name:"twitter:image:height",content:String(i.height)},`tw-img-h-${a++}`)),i.alt&&r(s.jsx("meta",{name:"twitter:image:alt",content:String(i.alt)},`tw-img-alt-${a++}`))))}),e.article&&(r(s.jsx("meta",{property:"article:published_time",content:e.article.published_time})),r(s.jsx("meta",{property:"article:modified_time",content:e.article.modified_time})),r(s.jsx("meta",{property:"article:section",content:e.article.section})),r(s.jsx("meta",{property:"article:author",content:e.article.author})),Array.isArray(e.article.tag)&&e.article.tag.length>0&&e.article.tag.forEach(i=>{r(s.jsx("meta",{property:"article:tag",content:i.name}))})),e.alternates?.canonical&&r(s.jsx("link",{rel:"canonical",href:String(e.alternates.canonical)},`link-${a++}`)),e.manifest&&r(s.jsx("link",{rel:"manifest",href:String(e.manifest)},`link-${a++}`)),e.alternates?.types&&Object.entries(e.alternates.types).forEach(([i,l])=>{typeof l=="string"&&r(s.jsx("link",{rel:"alternate",type:i,href:l},`alt-${a++}`))}),e.icons&&[...e.icons?.icon??[],...e.icons?.other??[]].forEach(l=>{l&&r(typeof l=="string"?s.jsx("link",{rel:"icon",href:l},`icon-${a++}`):s.jsx("link",{rel:l.rel||"icon",href:l.url,...l.type&&{type:l.type},...l.sizes&&{sizes:l.sizes}},`icon-${a++}`))}),e.other&&Object.entries(e.other).forEach(([i,l])=>{l&&r(s.jsx("meta",{name:i,content:String(l)},`other-${a++}`))}),t},ie=async e=>{const t=He()??"",a=e;return a?.startsWith("http")||a?.includes(t)||t===""?a:t+a},gt=(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||""},oo=e=>{const t={};if(!e)return t;const a=/([^\s=]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'>]+)))?/g;let r;for(;r=a.exec(e);){const n=r[1],o=r[2]??r[3]??r[4]??!0;t[n]=o}return t},io=e=>{const t=e.match(/\bsrc\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/i);return t?.[1]||t?.[2]||t?.[3]||null},ua=(e,t,a,r)=>{try{const n=oo(e);return n.src?s.jsx("script",{"data-bs-name":r,...n},a):s.jsx("script",{...n,dangerouslySetInnerHTML:{__html:t}},a)}catch{const o=io(e);return o?s.jsx("script",{"data-bs-name":r,src:o,async:!0,defer:!0},a):null}},lo=e=>{const t=/<script\b([^>]*)>([\s\S]*?)<\/script\s*>|<script\b([^>]*)\/?>/gi;return[...e.matchAll(t)]},Zt=e=>{const t=e.banners.find(n=>n.key===e.name);if(!t||!t.show)return null;const a=gt(t.value||"",e.replaces),r=lo(a);return s.jsx(s.Fragment,{children:r.map((n,o)=>{const i=n[1]||n[3]||"",l=n[2]?.trim()||"";return ua(i,l,o,e.name)})})},ma=e=>{const t=e.banners.find(n=>n.key===e.name);if(!t||!t.show)return null;const r=gt(t.value||"",e.replaces).split(/(<script\b[\s\S]*?<\/script\s*>|<script\b[^>]*\/?>)/gi);return s.jsx(s.Fragment,{children:r.map((n,o)=>{const i=n.match(/<script\b([^>]*)>([\s\S]*?)<\/script\s*>|<script\b([^>]*)\/?>/i);if(i){const l=i[1]||i[3]||"",h=i[2]?.trim()||"";return ua(l,h,o,e.name)}return n.trim()&&/<[a-zA-Z]/.test(n)?s.jsx("div",{dangerouslySetInnerHTML:{__html:n}},o):null})})},Ze=(e,t,a)=>{let r=e.siteUrl;return t.forEach((n,o)=>{o>0&&(r+=`/${n}`)}),`${r}/page/${a+1}`},Xe=(e,t,a)=>{let r=e.siteUrl;return t.forEach((n,o)=>{o>0&&(r+=`/${n}`)}),`${r}/page/${a-1}`};function co(e){const t=e.length;return t>1&&e.charCodeAt(t-1)===47?e.slice(0,t-1):e}const fa=()=>{const{PUBLIC_ASSETS_URL:e}=O();return e&&e!=="false"&&s.jsx("link",{rel:"preconnect",href:e,crossOrigin:"anonymous"})},{PUBLIC_ASSETS_URL:Xt}=O(),ho=Xt&&Xt!=="false"?Xt:"",Rt=({images:e})=>s.jsx(s.Fragment,{children:e.map((t,a)=>t.href!==""&&s.jsx("link",{rel:"preload",href:ho+t.href,media:t.media??"",as:"image",fetchPriority:t.fetchPriority??"high"},a))}),ga=(e,t,a)=>{if(!t)return{};const{PUBLIC_API_FRONT:r}=O();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:(r??"")+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:(r??"")+t?.main.image.sizes[0]?.url,width:a.twitterSummaryCard.width,height:a.twitterSummaryCard.height}]}}},uo=e=>{let t="";if(e.params.news.match(/.*t[0-9]*.html/g)){const a=e.params.news.split("-"),r=a[a.length-1]??"",n=r.substring(1,9),o=r.substring(9,13);t=`/listas/${Ae(n).format("YYYY/MM/DD")}/lista_${o}.html`}else if(e.params.news.match(/.*lb[0-9]*.html/g)){const a=e.params.news.split("-"),r=a[a.length-1]??"",n=r.substring(2,10),o=r.substring(10,14);t=`/liveblog/${Ae(n).format("YYYY/MM/DD")}/liveblog_${o}.html`}else{const r=e.params.news.replace(/\.html$/g,"").split("-");Array.isArray(r)&&(t=`/contenidos/${Ae(r[r.length-2]).format("YYYY/MM/DD")}/noticia_${r[r.length-1]}.html`)}return e.config.servicePrefix+t};function mo(e){const t=e.lastIndexOf("-"),a=t>=0?[e.slice(0,t),e.slice(t+1)]:[e],r=a[a.length-1]?.split("."),n=r&&r[0]?r[0]:"",o=n.substring(0,2),i=n.substring(2,10),l=n.substring(10);return{path:{vy:c=>`/videos/video-youtube/${Ae(i).format("YYYY/MM/DD")}/videoYouTube_${c}.lnk`,ve:c=>`/videos/video-embedded/${Ae(i).format("YYYY/MM/DD")}/videoEmbedded_${c}.lnk`,vf:c=>`/videos/video-flash/${Ae(i).format("YYYY/MM/DD")}/${a[0]}.${c}`}[o]?.(l)??"",op:o}}const Ue=(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}`},fo=e=>{const{AssetsPrefix:t="",AssetsPath:a="src",isDev:r=!1}=e;return r?"src":t+a},go=async(e,t,a,r)=>{const{FETCH_TAG_BASED_RELATED_NEWS:n=!1,FETCH_SIZE_RELATED_NEWS:o=10}=O();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(l=>l.path).join(";"),exclude:"gallery,related,relatedexternal,external,customfields",imagesizes:r.md}))?.data?.data??[];{const i=e&&e.keywords&&e.keywords.tags&&e.keywords.tags[0];return((e?i&&n?await a.getNewsListAvanced({query:'claves:("'+e.keywords?.tags[0].name+'")',exclude:"gallery,related,relatedexternal,external,customfields",imagesizes:r.md,size:o+1}):await a.getNewsItemsRelated(t.split("/").join("|"),{size:o}):null)?.data?.data??[]).filter(c=>c.info.link.internal!==t.split("/").join("|"))}}catch(i){console.log(i)}},po="https://recaptchaenterprise.googleapis.com/v1/projects",Ao=async({projectID:e,recaptchaKey:t,token:a,recaptchaAction:r,apiKey:n,userAgent:o,userIpAddress:i})=>{if(!e||!t||!a||!n)return console.warn("createAssessment: faltan parámetros requeridos"),null;const l=`${po}/${e}/assessments?key=${n}`,h={event:{token:a,siteKey:t,expectedAction:r,...o&&{userAgent:o},...i&&{userIpAddress:i}}};try{const c=await fetch(l,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(h)});if(!c.ok)return console.error("createAssessment API error:",c.status,await c.text()),null;const d=await c.json();if(!d?.tokenProperties?.valid)return console.log(`CreateAssessment falló - token inválido: ${d?.tokenProperties?.invalidReason??"unknown"}`),null;if(d.tokenProperties.action!==r)return console.log("La acción en reCAPTCHA no coincide con la esperada:",r),null;const u=d?.riskAnalysis?.score;return u!==void 0&&(console.log("reCAPTCHA score:",u),d?.riskAnalysis?.reasons?.forEach(m=>console.log(m))),typeof u=="number"?u:null}catch(c){return console.error("createAssessment error:",c),null}};function wo(e,t){if(t==="comentarios")return;const a=e[t];return typeof a=="string"||a===void 0?a:void 0}const bo=e=>e?.body?.rendered.includes("ck-image-gallery")||e?.config?.articlepreview==="fotogaleria"&&e?.hascontent?.hasgalleryimages;function vo(e){const t={};for(const[a,r]of Object.entries(e)){const n=btoa(a).split("").reverse().join("");typeof r=="string"?t[n]=btoa(r).split("").reverse().join(""):t[n]=r}return t}function es(e){const t={};for(const[a,r]of Object.entries(e)){const n=atob(a.split("").reverse().join(""));if(typeof r=="string")try{t[n]=atob(r.split("").reverse().join(""))}catch{t[n]=r}else t[n]=r}return t}const Co=async(e,t,a)=>{const{info:r,preview:n}=e,o=e?.config?.homepreview||"imagen",i=o==="clip"&&e?.hascontent?.hasgalleryvideosflash,l={...n};if(o==="videoYouTube"||o==="videoEmbedded"||i){const h=await t.getNewsMultimedia({path:r.link.internal,imagesizes:a});if(h&&h.data)return{...e,preview:l,videos:h.data.data[0].videos??[]}}if(o==="fotogaleria"){const h=await t.getNewsMultimedia({path:r.link.internal,imagesizes:a});if(h&&h.data){const c=await Promise.all(h.data.data[0].gallery.map(async d=>({...d})));return{...e,preview:l,gallery:c??[]}}}return{...e,preview:l}},pa={prefetch:[{where:{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"},eagerness:"moderate"}],prerender:[{where:{and:[{selector_matches:".nota-prerender"},{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"}]},eagerness:"eager"},{where:{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"},eagerness:"moderate"}]},Aa={prefetch:[{urls:["/"],eagerness:"eager"},{where:{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"},eagerness:"moderate"}],prerender:[{where:{and:[{selector_matches:".nota-prerender"},{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"}]},eagerness:"eager"},{where:{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"},eagerness:"moderate"}]},wa={prefetch:[{urls:["/"],eagerness:"eager"},{where:{and:[{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"moderate"}],prerender:[{where:{and:[{selector_matches:"#content-news-section a"},{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"eager"},{where:{and:[{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"moderate"}]},ba={prefetch:[{urls:["/"],eagerness:"eager"},{where:{and:[{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"moderate"}],prerender:[{where:{and:[{selector_matches:"#block-notes-list a"},{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"eager"},{where:{and:[{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"moderate"}]},yo={Home:pa,Common:Aa,Nota:wa,NotaLista:ba},va=({active:e,type:t,customSpeculation:a})=>e&&s.jsx("script",{type:"speculationrules",dangerouslySetInnerHTML:{__html:JSON.stringify(a??yo[t])}}),pt=async(e,t,a)=>{if(a)return a.get(`/schemas${t}`,{params:e}).catch(r=>{console.log(`[/schemas${t}] Error: ${r.message}`)})},No={autor:"autor",seccion:"seccion",tema:"claves","ultimas-noticias":"seccion"},Ca=async({config:e,axiosApi:t,pathname:a,ROUTE:r})=>{const{PUBLIC_PUBLICATION_ID:n=""}=O();let o=[];const i=a==="/"||a==="/index.html"?void 0:Ia(Ua[r]({pathname:a,config:e})),l=No[r]??void 0,h={newstype:e.newsType,publication:Number(n),...i&&l?{query:`${l}:('${i}')`}:{}};try{const c=await pt(h,"/news-list-summary",t);c?.data?.data?o=c.data.data:console.warn("getSchemas responded but did not contain expected data:",c)}catch(c){console.log("Error fetching schemas:",c)}return Object.keys(o).length>0&&s.jsx("script",{id:"webSiteItemListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(o)}})};function At(e){const{PUBLIC_ASSETS_URL:t}=O();if(!t||t==="false")return e;const a=t.replace(/\/+$/,""),r=/https?:\/\/[^/\s]+\/(arte|__export)\//g;return e.replace(r,(n,o)=>`${a}/${o}/`)}const ya=async({realPath:e,config:t,BASE_URL:a,axiosApi:r})=>{const{PUBLIC_SERVICE_PREFIX:n,PUBLIC_IS_SUB_PUBLICATION:o}=O();let i=[];try{const l=t.socialBlockLogo?.url?new URL(t.socialBlockLogo.url).pathname:void 0,h=t.landscapeLogo?.url?new URL(t.landscapeLogo.url).pathname:void 0,c={path:e,image:h,logo:l,url:t.siteUrl,name:t.name,logow:t.socialBlockLogo?.width,logoh:t.socialBlockLogo?.height,authorurl:a+"/autor/",lang:t.lang};console.log("Fetching schemas with params:",c);const d=e.split("/")[1],u=d=="liveblogs"||d=="liveblog"?["/news","/news-breadcrumb","/news-liveblog"]:["/news","/news-breadcrumb"],m=t.paths.tema!==""?"/"+t.paths.tema:t.paths.tema,p=n!=="false"&&o!=="false"?"/"+n+m:m;i=(await Promise.all(u.map(async g=>{const A=g==="/news-breadcrumb"?{...c,prefixtag:p}:g==="/news"&&t.schemasNewsParams?{...c,...t.schemasNewsParams}:c;return await pt(A,g,r)}))).map(g=>g?.data?.data??[])}catch(l){console.log("Error fetching schemas:",l)}return console.log("Schemas fetched:",i),i.map((l,h)=>s.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:At(JSON.stringify(l))}},h))},Na=({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,inLanguage:e.lang,sameAs:Object.keys(t).filter(r=>t[r]?.show).map(r=>t[r]?.url)};return(!e.description||e.description==="")&&delete a.description,s.jsx("script",{id:"WebsiteOrgListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(a)}})},Sa=({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 s.jsx("script",{id:"WebsiteListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t)}})},Ea=async({realPath:e,config:t,axiosApi:a})=>{try{const r={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/`},o=(await pt(r,"/videos",a))?.data.data;return o?s.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:At(JSON.stringify(o))}}):void 0}catch(r){return console.error("Error fetching video schemas:",r),null}},Ta=({config:e})=>{const t=`@font-face {
13
+ `}}),s.jsx("noscript",{children:s.jsx("iframe",{src:`https://www.googletagmanager.com/ns.html?id=${e}`,height:"0",width:"0",style:{display:"none",visibility:"hidden"}})})]})},$s=()=>{const{ANALYTICS_marfeel:e}=O();return e&&s.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},{})}();`}})},Mn=({defaultRouteName:e})=>{const{CAPTCHA_KEY:t,CONFIG_comments:a=!1,CONFIG_commentsV2:r=!1}=O();return t&&t!==""&&(e==="video"&&a&&!r||e==="news"&&a&&!r||e==="auth"||e==="anuncia"||e==="contacto")&&s.jsx("script",{src:`https://www.google.com/recaptcha/enterprise.js?render=${t}`,async:!0,defer:!0})};function Qe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var it={exports:{}},qn=it.exports,Zs;function Xs(){return Zs||(Zs=1,(function(e,t){(function(a,r){e.exports=r()})(qn,(function(){var a=1e3,r=6e4,n=36e5,o="millisecond",i="second",l="minute",h="hour",c="day",d="week",u="month",m="quarter",p="year",f="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+)?$/,b=/\[([^\]]+)]|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,E={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(_){var L=["th","st","nd","rd"],k=_%100;return"["+_+(L[(k-20)%10]||L[k]||L[0])+"]"}},N=function(_,L,k){var G=String(_);return!G||G.length>=L?_:""+Array(L+1-G.length).join(k)+_},S={s:N,z:function(_){var L=-_.utcOffset(),k=Math.abs(L),G=Math.floor(k/60),x=k%60;return(L<=0?"+":"-")+N(G,2,"0")+":"+N(x,2,"0")},m:function _(L,k){if(L.date()<k.date())return-_(k,L);var G=12*(k.year()-L.year())+(k.month()-L.month()),x=L.clone().add(G,u),W=k-x<0,C=L.clone().add(G+(W?-1:1),u);return+(-(G+(k-x)/(W?x-C:C-x))||0)},a:function(_){return _<0?Math.ceil(_)||0:Math.floor(_)},p:function(_){return{M:u,y:p,w:d,d:c,D:f,h,m:l,s:i,ms:o,Q:m}[_]||String(_||"").toLowerCase().replace(/s$/,"")},u:function(_){return _===void 0}},w="en",U={};U[w]=E;var P="$isDayjsObject",H=function(_){return _ instanceof V||!(!_||!_[P])},Y=function _(L,k,G){var x;if(!L)return w;if(typeof L=="string"){var W=L.toLowerCase();U[W]&&(x=W),k&&(U[W]=k,x=W);var C=L.split("-");if(!x&&C.length>1)return _(C[0])}else{var T=L.name;U[T]=L,x=T}return!G&&x&&(w=x),x||!G&&w},F=function(_,L){if(H(_))return _.clone();var k=typeof L=="object"?L:{};return k.date=_,k.args=arguments,new V(k)},B=S;B.l=Y,B.i=H,B.w=function(_,L){return F(_,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var V=(function(){function _(k){this.$L=Y(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[P]=!0}var L=_.prototype;return L.parse=function(k){this.$d=(function(G){var x=G.date,W=G.utc;if(x===null)return new Date(NaN);if(B.u(x))return new Date;if(x instanceof Date)return new Date(x);if(typeof x=="string"&&!/Z$/i.test(x)){var C=x.match(A);if(C){var T=C[2]-1||0,q=(C[7]||"0").substring(0,3);return W?new Date(Date.UTC(C[1],T,C[3]||1,C[4]||0,C[5]||0,C[6]||0,q)):new Date(C[1],T,C[3]||1,C[4]||0,C[5]||0,C[6]||0,q)}}return new Date(x)})(k),this.init()},L.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()},L.$utils=function(){return B},L.isValid=function(){return this.$d.toString()!==g},L.isSame=function(k,G){var x=F(k);return this.startOf(G)<=x&&x<=this.endOf(G)},L.isAfter=function(k,G){return F(k)<this.startOf(G)},L.isBefore=function(k,G){return this.endOf(G)<F(k)},L.$g=function(k,G,x){return B.u(k)?this[G]:this.set(x,k)},L.unix=function(){return Math.floor(this.valueOf()/1e3)},L.valueOf=function(){return this.$d.getTime()},L.startOf=function(k,G){var x=this,W=!!B.u(G)||G,C=B.p(k),T=function(ee,$){var ne=B.w(x.$u?Date.UTC(x.$y,$,ee):new Date(x.$y,$,ee),x);return W?ne:ne.endOf(c)},q=function(ee,$){return B.w(x.toDate()[ee].apply(x.toDate("s"),(W?[0,0,0,0]:[23,59,59,999]).slice($)),x)},Q=this.$W,j=this.$M,z=this.$D,K="set"+(this.$u?"UTC":"");switch(C){case p:return W?T(1,0):T(31,11);case u:return W?T(1,j):T(0,j+1);case d:var J=this.$locale().weekStart||0,R=(Q<J?Q+7:Q)-J;return T(W?z-R:z+(6-R),j);case c:case f:return q(K+"Hours",0);case h:return q(K+"Minutes",1);case l:return q(K+"Seconds",2);case i:return q(K+"Milliseconds",3);default:return this.clone()}},L.endOf=function(k){return this.startOf(k,!1)},L.$set=function(k,G){var x,W=B.p(k),C="set"+(this.$u?"UTC":""),T=(x={},x[c]=C+"Date",x[f]=C+"Date",x[u]=C+"Month",x[p]=C+"FullYear",x[h]=C+"Hours",x[l]=C+"Minutes",x[i]=C+"Seconds",x[o]=C+"Milliseconds",x)[W],q=W===c?this.$D+(G-this.$W):G;if(W===u||W===p){var Q=this.clone().set(f,1);Q.$d[T](q),Q.init(),this.$d=Q.set(f,Math.min(this.$D,Q.daysInMonth())).$d}else T&&this.$d[T](q);return this.init(),this},L.set=function(k,G){return this.clone().$set(k,G)},L.get=function(k){return this[B.p(k)]()},L.add=function(k,G){var x,W=this;k=Number(k);var C=B.p(G),T=function(j){var z=F(W);return B.w(z.date(z.date()+Math.round(j*k)),W)};if(C===u)return this.set(u,this.$M+k);if(C===p)return this.set(p,this.$y+k);if(C===c)return T(1);if(C===d)return T(7);var q=(x={},x[l]=r,x[h]=n,x[i]=a,x)[C]||1,Q=this.$d.getTime()+k*q;return B.w(Q,this)},L.subtract=function(k,G){return this.add(-1*k,G)},L.format=function(k){var G=this,x=this.$locale();if(!this.isValid())return x.invalidDate||g;var W=k||"YYYY-MM-DDTHH:mm:ssZ",C=B.z(this),T=this.$H,q=this.$m,Q=this.$M,j=x.weekdays,z=x.months,K=x.meridiem,J=function($,ne,D,de){return $&&($[ne]||$(G,W))||D[ne].slice(0,de)},R=function($){return B.s(T%12||12,$,"0")},ee=K||function($,ne,D){var de=$<12?"AM":"PM";return D?de.toLowerCase():de};return W.replace(b,(function($,ne){return ne||(function(D){switch(D){case"YY":return String(G.$y).slice(-2);case"YYYY":return B.s(G.$y,4,"0");case"M":return Q+1;case"MM":return B.s(Q+1,2,"0");case"MMM":return J(x.monthsShort,Q,z,3);case"MMMM":return J(z,Q);case"D":return G.$D;case"DD":return B.s(G.$D,2,"0");case"d":return String(G.$W);case"dd":return J(x.weekdaysMin,G.$W,j,2);case"ddd":return J(x.weekdaysShort,G.$W,j,3);case"dddd":return j[G.$W];case"H":return String(T);case"HH":return B.s(T,2,"0");case"h":return R(1);case"hh":return R(2);case"a":return ee(T,q,!0);case"A":return ee(T,q,!1);case"m":return String(q);case"mm":return B.s(q,2,"0");case"s":return String(G.$s);case"ss":return B.s(G.$s,2,"0");case"SSS":return B.s(G.$ms,3,"0");case"Z":return C}return null})($)||C.replace(":","")}))},L.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},L.diff=function(k,G,x){var W,C=this,T=B.p(G),q=F(k),Q=(q.utcOffset()-this.utcOffset())*r,j=this-q,z=function(){return B.m(C,q)};switch(T){case p:W=z()/12;break;case u:W=z();break;case m:W=z()/3;break;case d:W=(j-Q)/6048e5;break;case c:W=(j-Q)/864e5;break;case h:W=j/n;break;case l:W=j/r;break;case i:W=j/a;break;default:W=j}return x?W:B.a(W)},L.daysInMonth=function(){return this.endOf(u).$D},L.$locale=function(){return U[this.$L]},L.locale=function(k,G){if(!k)return this.$L;var x=this.clone(),W=Y(k,G,!0);return W&&(x.$L=W),x},L.clone=function(){return B.w(this.$d,this)},L.toDate=function(){return new Date(this.valueOf())},L.toJSON=function(){return this.isValid()?this.toISOString():null},L.toISOString=function(){return this.$d.toISOString()},L.toString=function(){return this.$d.toUTCString()},_})(),te=V.prototype;return F.prototype=te,[["$ms",o],["$s",i],["$m",l],["$H",h],["$W",c],["$M",u],["$y",p],["$D",f]].forEach((function(_){te[_[1]]=function(L){return this.$g(L,_[0],_[1])}})),F.extend=function(_,L){return _.$i||(_(L,V,F),_.$i=!0),F},F.locale=Y,F.isDayjs=H,F.unix=function(_){return F(1e3*_)},F.en=U[w],F.Ls=U,F.p={},F}))})(it)),it.exports}var Dn=Xs();const Ae=Qe(Dn);var lt={exports:{}},_n=lt.exports,Rs;function Gn(){return Rs||(Rs=1,(function(e,t){(function(a,r){e.exports=r()})(_n,(function(){return function(a,r,n){a=a||{};var o=r.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 l(c,d,u,m){return o.fromToBase(c,d,u,m)}n.en.relativeTime=i,o.fromToBase=function(c,d,u,m,p){for(var f,g,A,b=u.$locale().relativeTime||i,E=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"}],N=E.length,S=0;S<N;S+=1){var w=E[S];w.d&&(f=m?n(c).diff(u,w.d,!0):u.diff(c,w.d,!0));var U=(a.rounding||Math.round)(Math.abs(f));if(A=f>0,U<=w.r||!w.r){U<=1&&S>0&&(w=E[S-1]);var P=b[w.l];p&&(U=p(""+U)),g=typeof P=="string"?P.replace("%d",U):P(U,d,w.l,A);break}}if(d)return g;var H=A?b.future:b.past;return typeof H=="function"?H(g):H.replace("%s",g)},o.to=function(c,d){return l(c,d,this,!0)},o.from=function(c,d){return l(c,d,this)};var h=function(c){return c.$u?n.utc():n()};o.toNow=function(c){return this.to(h(this),c)},o.fromNow=function(c){return this.from(h(this),c)}}}))})(lt)),lt.exports}var jn=Gn();const Qn=Qe(jn);var ct={exports:{}},Fn=ct.exports,ea;function Hn(){return ea||(ea=1,(function(e,t){(function(a,r){e.exports=r(Xs())})(Fn,(function(a){function r(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var n=r(a),o={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 n.default.locale(o,null,!0),o}))})(ct)),ct.exports}Hn();var dt={exports:{}},Vn=dt.exports,ta;function zn(){return ta||(ta=1,(function(e,t){(function(a,r){e.exports=r()})(Vn,(function(){var a="minute",r=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(o,i,l){var h=i.prototype;l.utc=function(g){var A={date:g,utc:!0,args:arguments};return new i(A)},h.utc=function(g){var A=l(this.toDate(),{locale:this.$L,utc:!0});return g?A.add(this.utcOffset(),a):A},h.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var c=h.parse;h.parse=function(g){g.utc&&(this.$u=!0),this.$utils().u(g.$offset)||(this.$offset=g.$offset),c.call(this,g)};var d=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 d.call(this)};var u=h.utcOffset;h.utcOffset=function(g,A){var b=this.$utils().u;if(b(g))return this.$u?0:b(this.$offset)?u.call(this):this.$offset;if(typeof g=="string"&&(g=(function(w){w===void 0&&(w="");var U=w.match(r);if(!U)return null;var P=(""+U[0]).match(n)||["-",0,0],H=P[0],Y=60*+P[1]+ +P[2];return Y===0?0:H==="+"?Y:-Y})(g),g===null))return this;var E=Math.abs(g)<=16?60*g:g;if(E===0)return this.utc(A);var N=this.clone();if(A)return N.$offset=E,N.$u=!1,N;var S=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(N=this.local().add(E+S,a)).$offset=E,N.$x.$localOffset=S,N};var m=h.format;h.format=function(g){var A=g||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return m.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?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():p.call(this)};var f=h.diff;h.diff=function(g,A,b){if(g&&this.$u===g.$u)return f.call(this,g,A,b);var E=this.local(),N=l(g).local();return f.call(E,N,A,b)}}}))})(dt)),dt.exports}var Wn=zn();const Yn=Qe(Wn);var ht={exports:{}},Kn=ht.exports,sa;function Jn(){return sa||(sa=1,(function(e,t){(function(a,r){e.exports=r()})(Kn,(function(){var a={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(n,o,i){var l,h=function(m,p,f){f===void 0&&(f={});var g=new Date(m),A=(function(b,E){E===void 0&&(E={});var N=E.timeZoneName||"short",S=b+"|"+N,w=r[S];return w||(w=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:b,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:N}),r[S]=w),w})(p,f);return A.formatToParts(g)},c=function(m,p){for(var f=h(m,p),g=[],A=0;A<f.length;A+=1){var b=f[A],E=b.type,N=b.value,S=a[E];S>=0&&(g[S]=parseInt(N,10))}var w=g[3],U=w===24?0:w,P=g[0]+"-"+g[1]+"-"+g[2]+" "+U+":"+g[4]+":"+g[5]+":000",H=+m;return(i.utc(P).valueOf()-(H-=H%1e3))/6e4},d=o.prototype;d.tz=function(m,p){m===void 0&&(m=l);var f,g=this.utcOffset(),A=this.toDate(),b=A.toLocaleString("en-US",{timeZone:m}),E=Math.round((A-new Date(b))/1e3/60),N=15*-Math.round(A.getTimezoneOffset()/15)-E;if(!Number(N))f=this.utcOffset(0,p);else if(f=i(b,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(N,!0),p){var S=f.utcOffset();f=f.add(g-S,"minute")}return f.$x.$timezone=m,f},d.offsetName=function(m){var p=this.$x.$timezone||i.tz.guess(),f=h(this.valueOf(),p,{timeZoneName:m}).find((function(g){return g.type.toLowerCase()==="timezonename"}));return f&&f.value};var u=d.startOf;d.startOf=function(m,p){if(!this.$x||!this.$x.$timezone)return u.call(this,m,p);var f=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return u.call(f,m,p).tz(this.$x.$timezone,!0)},i.tz=function(m,p,f){var g=f&&p,A=f||p||l,b=c(+i(),A);if(typeof m!="string")return i(m).tz(A);var E=(function(U,P,H){var Y=U-60*P*1e3,F=c(Y,H);if(P===F)return[Y,P];var B=c(Y-=60*(F-P)*1e3,H);return F===B?[Y,F]:[U-60*Math.min(F,B)*1e3,Math.max(F,B)]})(i.utc(m,g).valueOf(),b,A),N=E[0],S=E[1],w=i(N).utcOffset(S);return w.$x.$timezone=A,w},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(m){l=m}}}))})(ht)),ht.exports}var $n=Jn();const Zn=Qe($n);Ae.extend(Yn),Ae.extend(Zn),Ae.extend(Qn);const ut=e=>e==="en"?"en":"es",Ce=(e,t)=>{const{PUBLIC_LNG:a,DATE_TIMEZONE:r}=t||O(),n=ut(a??"es");return Ae.tz(e,r).locale(n).format("DD MMMM YYYY")},mt=e=>{const{PUBLIC_LNG:t,DATE_TIMEZONE:a}=O(),r=ut(t??"es");return Ae.tz(e,a).locale(r).format(r==="en"?"MMMM DD YYYY [•] HH:mm [hs]":"DD [de] MMMM YYYY [•] HH:mm [hs]")},aa=e=>{const{PUBLIC_LNG:t,DATE_TIMEZONE:a}=O(),r=ut(t??"es");return Ae.tz(e,a).locale(r).format("MM/DD/YYYY [•] HH:mm [HS]")},Xn=e=>{const{PUBLIC_LNG:t,DATE_TIMEZONE:a}=O(),r=ut(t??"es");return Ae.tz(e,a).locale(r).format("dddd DD [de] MMMM YYYY")},Be=(e,t)=>{if(!e)return"";const a=new Date(e),n=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),o={};n.forEach(p=>{p.type!=="literal"&&(o[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,c=h>=0?"+":"-",d=p=>String(Math.floor(Math.abs(p))).padStart(2,"0"),u=d(h/60),m=d(h%60);return`${o.year}-${o.month}-${o.day}T${o.hour}:${o.minute}:${o.second}${c}${u}:${m}`},ye=(e,t=136)=>e&&e.length>t?`${e.substring(0,t)}...`:e;function Oe(e){return e&&e.status==="fulfilled"?e.value.data:null}function ra(e){return e&&e.status==="fulfilled"?e.value:null}const Rn={url:"",target:"_self",canonical:!1,internal:""},eo={date:"",created:0,modified:0,firstpublish:0,lastpublish:0};function to(e){return e==null?"":typeof e=="string"?e:e.article??e.home??e.section??e.seo??""}const Fe=(e,t,a,r)=>{const n=to(e?.main?.title),o=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:{...eo,...e?.info?.date},link:e?.info?.link??Rn},preview:{sizes:e?.main?.image?.sizes??[],description:e?.main?.image?.description??""},config:{showtime:t??!1,showsubtitle:a??!1,showauthor:!!(r&&e?.main?.author)},main:{title:{article:n,home:n,seo:n,section:n},subtitle:{rendered:o,striped:o},tags:[]}}},na=/<div\b[^>]*class=["'][^"']*\bck-related-news\b[^"']*["'][^>]*>/gi;function ft(e){if(!e?.body?.rendered)return[];const t=e.body.rendered,a=[];let r=0;for(;r<t.length;){na.lastIndex=r;const n=na.exec(t);if(!n)break;const o=n.index+n[0].length;let i=1,l=o,h=o;for(;l<t.length&&i>0;){const p=t.slice(l),f=p.match(/<div\b/i),g=p.match(/<\/div>/i),A=f?.index??-1,b=g?.index??-1;if(b===-1)break;const E=A===-1?1/0:l+A,N=l+b;A!==-1&&A<b?(i+=1,l=E+f[0].length):(i-=1,h=N,l=N+g[0].length)}const c=t.slice(o,h),d=[],u=/<span\b[^>]*\bdata-src=["']([^"']+)["']/gi;let m;for(;(m=u.exec(c))!==null;){const p=m[1];p&&d.push(p)}d.length>0&&a.push(d),r=l}return a}const so=ft,oa=async(e,t)=>{const a=[];return e.forEach(o=>{o.forEach(i=>{const l=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"});l&&a.push(l)})}),(await Promise.allSettled(a)).map(o=>Oe(o)?.data)},He=()=>{const{PUBLIC_ENV:e,PUBLIC_API_HOST:t,PUBLIC_ASSETS_URL:a}=O();return e=="local"?t:a&&a!=="false"?a:""},ao=()=>{const{PUBLIC_ENV:e,PUBLIC_API_FRONT:t}=O();return e==="local"?t:""},ro=e=>{if(!e?.preview?.length)return null;const t=e.preview;return t.find(a=>a.format==="1.91:1")??t[t.length-1]},ia=({schemaImage:e,socialImage:t,fallbackImage:a,prefix:r,defaultWidth:n,defaultHeight:o,alt:i})=>e?.url?{url:r+e.url,width:e.width,height:e.height,alt:i}:{url:r+(t??a??""),width:n,height:o,alt:i},la=(e,t,a,r)=>{if(!t)return{};const{PUBLIC_ASSETS_URL:n,PUBLIC_API_FRONT:o,DATE_TIMEZONE:i="America/Mexico_City"}=O(),l=$t(t.keywords)??"",h=t?.preview?.sizes?t?.preview?.sizes[0]?.url:"",c=(n!=="false"?n:o)??"",d=ro(r),u=t.main.title.article,m=ia({schemaImage:d,socialImage:t?.social?.images?.facebook,fallbackImage:h,prefix:c,defaultWidth:a.landscapeLogo.width,defaultHeight:a.landscapeLogo.height,alt:r?.description??u}),p=ia({schemaImage:d,socialImage:t?.social?.images?.twitter,fallbackImage:h,prefix:c,defaultWidth:a.twitterSummaryCard.width,defaultHeight:a.twitterSummaryCard.height,alt:r?.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:l,keywords:l,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:[m],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:Be(t?.info?.date?.firstpublish,i),modified_time:Be(t?.info?.date?.lastpublish??t?.info?.date?.firstpublish,i),section:t?.info?.section?.name,author:t?.authors?.[0]?.fullname,tag:t?.keywords?.tags??[]}}},$t=e=>!e||!e?.tags||e?.tags?.length===0?"":e?.tags?.map(t=>t.name).join(", ").replaceAll('"',"'").replaceAll("`","'"),ca=e=>{const t=e?.match(/^\/(?:[^/]+\/)?([^/]+)\/([^/]+\.html)$/);return t?{slug:t[1]??"",path:t[2]??""}:{slug:"",path:""}},da=e=>e.replaceAll("/","").replaceAll("_","").replace(".html",""),no={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"}},ha=e=>{const t=[];let a=0;const r=i=>t.push(i);return e.title&&typeof e.title=="string"&&r(s.jsx("title",{children:e.title},`title-${a++}`)),Object.entries(no).forEach(([i,l])=>{const h=i.split(".").reduce((c,d)=>c?.[d],e);h&&r(s.jsx("meta",{[l.attr]:l.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"?r(s.jsx("meta",{property:"og:image",content:i},`og-img-${a++}`)):(i.url&&r(s.jsx("meta",{property:"og:image",content:i.url},`og-img-${a++}`)),i.width&&r(s.jsx("meta",{property:"og:image:width",content:String(i.width)},`og-img-w-${a++}`)),i.height&&r(s.jsx("meta",{property:"og:image:height",content:String(i.height)},`og-img-h-${a++}`)),i.alt&&r(s.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"?r(s.jsx("meta",{name:"twitter:image",content:i},`tw-img-${a++}`)):(i.url&&r(s.jsx("meta",{name:"twitter:image",content:i.url},`tw-img-${a++}`)),i.width&&r(s.jsx("meta",{name:"twitter:image:width",content:String(i.width)},`tw-img-w-${a++}`)),i.height&&r(s.jsx("meta",{name:"twitter:image:height",content:String(i.height)},`tw-img-h-${a++}`)),i.alt&&r(s.jsx("meta",{name:"twitter:image:alt",content:String(i.alt)},`tw-img-alt-${a++}`))))}),e.article&&(r(s.jsx("meta",{property:"article:published_time",content:e.article.published_time})),r(s.jsx("meta",{property:"article:modified_time",content:e.article.modified_time})),r(s.jsx("meta",{property:"article:section",content:e.article.section})),r(s.jsx("meta",{property:"article:author",content:e.article.author})),Array.isArray(e.article.tag)&&e.article.tag.length>0&&e.article.tag.forEach(i=>{r(s.jsx("meta",{property:"article:tag",content:i.name}))})),e.alternates?.canonical&&r(s.jsx("link",{rel:"canonical",href:String(e.alternates.canonical)},`link-${a++}`)),e.manifest&&r(s.jsx("link",{rel:"manifest",href:String(e.manifest)},`link-${a++}`)),e.alternates?.types&&Object.entries(e.alternates.types).forEach(([i,l])=>{typeof l=="string"&&r(s.jsx("link",{rel:"alternate",type:i,href:l},`alt-${a++}`))}),e.icons&&[...e.icons?.icon??[],...e.icons?.other??[]].forEach(l=>{l&&r(typeof l=="string"?s.jsx("link",{rel:"icon",href:l},`icon-${a++}`):s.jsx("link",{rel:l.rel||"icon",href:l.url,...l.type&&{type:l.type},...l.sizes&&{sizes:l.sizes}},`icon-${a++}`))}),e.other&&Object.entries(e.other).forEach(([i,l])=>{l&&r(s.jsx("meta",{name:i,content:String(l)},`other-${a++}`))}),t},ie=async e=>{const t=He()??"",a=e;return a?.startsWith("http")||a?.includes(t)||t===""?a:t+a},gt=(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||""},oo=e=>{const t={};if(!e)return t;const a=/([^\s=]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'>]+)))?/g;let r;for(;r=a.exec(e);){const n=r[1],o=r[2]??r[3]??r[4]??!0;t[n]=o}return t},io=e=>{const t=e.match(/\bsrc\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/i);return t?.[1]||t?.[2]||t?.[3]||null},ua=(e,t,a,r)=>{try{const n=oo(e);return n.src?s.jsx("script",{"data-bs-name":r,...n},a):s.jsx("script",{...n,dangerouslySetInnerHTML:{__html:t}},a)}catch{const o=io(e);return o?s.jsx("script",{"data-bs-name":r,src:o,async:!0,defer:!0},a):null}},lo=e=>{const t=/<script\b([^>]*)>([\s\S]*?)<\/script\s*>|<script\b([^>]*)\/?>/gi;return[...e.matchAll(t)]},Zt=e=>{const t=e.banners.find(n=>n.key===e.name);if(!t||!t.show)return null;const a=gt(t.value||"",e.replaces),r=lo(a);return s.jsx(s.Fragment,{children:r.map((n,o)=>{const i=n[1]||n[3]||"",l=n[2]?.trim()||"";return ua(i,l,o,e.name)})})},ma=e=>{const t=e.banners.find(n=>n.key===e.name);if(!t||!t.show)return null;const r=gt(t.value||"",e.replaces).split(/(<script\b[\s\S]*?<\/script\s*>|<script\b[^>]*\/?>)/gi);return s.jsx(s.Fragment,{children:r.map((n,o)=>{const i=n.match(/<script\b([^>]*)>([\s\S]*?)<\/script\s*>|<script\b([^>]*)\/?>/i);if(i){const l=i[1]||i[3]||"",h=i[2]?.trim()||"";return ua(l,h,o,e.name)}return n.trim()&&/<[a-zA-Z]/.test(n)?s.jsx("div",{dangerouslySetInnerHTML:{__html:n}},o):null})})},Ze=(e,t,a)=>{let r=e.siteUrl;return t.forEach((n,o)=>{o>0&&(r+=`/${n}`)}),`${r}/page/${a+1}`},Xe=(e,t,a)=>{let r=e.siteUrl;return t.forEach((n,o)=>{o>0&&(r+=`/${n}`)}),`${r}/page/${a-1}`};function co(e){const t=e.length;return t>1&&e.charCodeAt(t-1)===47?e.slice(0,t-1):e}const fa=()=>{const{PUBLIC_ASSETS_URL:e}=O();return e&&e!=="false"&&s.jsx("link",{rel:"preconnect",href:e,crossOrigin:"anonymous"})},{PUBLIC_ASSETS_URL:Xt}=O(),ho=Xt&&Xt!=="false"?Xt:"",Rt=({images:e})=>s.jsx(s.Fragment,{children:e.map((t,a)=>t.href!==""&&s.jsx("link",{rel:"preload",href:ho+t.href,media:t.media??"",as:"image",fetchPriority:t.fetchPriority??"high"},a))}),ga=(e,t,a)=>{if(!t)return{};const{PUBLIC_API_FRONT:r}=O();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:(r??"")+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:(r??"")+t?.main.image.sizes[0]?.url,width:a.twitterSummaryCard.width,height:a.twitterSummaryCard.height}]}}},uo=e=>{let t="";if(e.params.news.match(/.*t[0-9]*.html/g)){const a=e.params.news.split("-"),r=a[a.length-1]??"",n=r.substring(1,9),o=r.substring(9,13);t=`/listas/${Ae(n).format("YYYY/MM/DD")}/lista_${o}.html`}else if(e.params.news.match(/.*lb[0-9]*.html/g)){const a=e.params.news.split("-"),r=a[a.length-1]??"",n=r.substring(2,10),o=r.substring(10,14);t=`/liveblog/${Ae(n).format("YYYY/MM/DD")}/liveblog_${o}.html`}else{const r=e.params.news.replace(/\.html$/g,"").split("-");Array.isArray(r)&&(t=`/contenidos/${Ae(r[r.length-2]).format("YYYY/MM/DD")}/noticia_${r[r.length-1]}.html`)}return e.config.servicePrefix+t};function mo(e){const t=e.lastIndexOf("-"),a=t>=0?[e.slice(0,t),e.slice(t+1)]:[e],r=a[a.length-1]?.split("."),n=r&&r[0]?r[0]:"",o=n.substring(0,2),i=n.substring(2,10),l=n.substring(10);return{path:{vy:c=>`/videos/video-youtube/${Ae(i).format("YYYY/MM/DD")}/videoYouTube_${c}.lnk`,ve:c=>`/videos/video-embedded/${Ae(i).format("YYYY/MM/DD")}/videoEmbedded_${c}.lnk`,vf:c=>`/videos/video-flash/${Ae(i).format("YYYY/MM/DD")}/${a[0]}.${c}`}[o]?.(l)??"",op:o}}const Ue=(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}`},fo=e=>{const{AssetsPrefix:t="",AssetsPath:a="src",isDev:r=!1}=e;return r?"src":t+a},go=async(e,t,a,r)=>{const{FETCH_TAG_BASED_RELATED_NEWS:n=!1,FETCH_SIZE_RELATED_NEWS:o=10}=O();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(l=>l.path).join(";"),exclude:"gallery,related,relatedexternal,external,customfields",imagesizes:r.md}))?.data?.data??[];{const i=e&&e.keywords&&e.keywords.tags&&e.keywords.tags[0];return((e?i&&n?await a.getNewsListAvanced({query:'claves:("'+e.keywords?.tags[0].name+'")',exclude:"gallery,related,relatedexternal,external,customfields",imagesizes:r.md,size:o+1}):await a.getNewsItemsRelated(t.split("/").join("|"),{size:o}):null)?.data?.data??[]).filter(c=>c.info.link.internal!==t.split("/").join("|"))}}catch(i){console.log(i)}},po="https://recaptchaenterprise.googleapis.com/v1/projects",Ao=async({projectID:e,recaptchaKey:t,token:a,recaptchaAction:r,apiKey:n,userAgent:o,userIpAddress:i})=>{if(!e||!t||!a||!n)return console.warn("createAssessment: faltan parámetros requeridos"),null;const l=`${po}/${e}/assessments?key=${n}`,h={event:{token:a,siteKey:t,expectedAction:r,...o&&{userAgent:o},...i&&{userIpAddress:i}}};try{const c=await fetch(l,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(h)});if(!c.ok)return console.error("createAssessment API error:",c.status,await c.text()),null;const d=await c.json();if(!d?.tokenProperties?.valid)return console.log(`CreateAssessment falló - token inválido: ${d?.tokenProperties?.invalidReason??"unknown"}`),null;if(d.tokenProperties.action!==r)return console.log("La acción en reCAPTCHA no coincide con la esperada:",r),null;const u=d?.riskAnalysis?.score;return u!==void 0&&(console.log("reCAPTCHA score:",u),d?.riskAnalysis?.reasons?.forEach(m=>console.log(m))),typeof u=="number"?u:null}catch(c){return console.error("createAssessment error:",c),null}};function wo(e,t){if(t==="comentarios")return;const a=e[t];return typeof a=="string"||a===void 0?a:void 0}const bo=e=>e?.body?.rendered.includes("ck-image-gallery")||e?.config?.articlepreview==="fotogaleria"&&e?.hascontent?.hasgalleryimages;function vo(e){const t={};for(const[a,r]of Object.entries(e)){const n=btoa(a).split("").reverse().join("");typeof r=="string"?t[n]=btoa(r).split("").reverse().join(""):t[n]=r}return t}function es(e){const t={};for(const[a,r]of Object.entries(e)){const n=atob(a.split("").reverse().join(""));if(typeof r=="string")try{t[n]=atob(r.split("").reverse().join(""))}catch{t[n]=r}else t[n]=r}return t}const Co=async(e,t,a)=>{const{info:r,preview:n}=e,o=e?.config?.homepreview||"imagen",i=o==="clip"&&e?.hascontent?.hasgalleryvideosflash,l={...n};if(o==="videoYouTube"||o==="videoEmbedded"||i){const h=await t.getNewsMultimedia({path:r.link.internal,imagesizes:a});if(h&&h.data)return{...e,preview:l,videos:h.data.data[0].videos??[]}}if(o==="fotogaleria"){const h=await t.getNewsMultimedia({path:r.link.internal,imagesizes:a});if(h&&h.data){const c=await Promise.all(h.data.data[0].gallery.map(async d=>({...d})));return{...e,preview:l,gallery:c??[]}}}return{...e,preview:l}},pa={prefetch:[{where:{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"},eagerness:"moderate"}],prerender:[{where:{and:[{selector_matches:".nota-prerender"},{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"}]},eagerness:"eager"},{where:{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"},eagerness:"moderate"}]},Aa={prefetch:[{urls:["/"],eagerness:"eager"},{where:{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"},eagerness:"moderate"}],prerender:[{where:{and:[{selector_matches:".nota-prerender"},{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"}]},eagerness:"eager"},{where:{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"},eagerness:"moderate"}]},wa={prefetch:[{urls:["/"],eagerness:"eager"},{where:{and:[{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"moderate"}],prerender:[{where:{and:[{selector_matches:"#content-news-section a"},{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"eager"},{where:{and:[{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"moderate"}]},ba={prefetch:[{urls:["/"],eagerness:"eager"},{where:{and:[{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"moderate"}],prerender:[{where:{and:[{selector_matches:"#block-notes-list a"},{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"eager"},{where:{and:[{href_matches:"/*(-[0-9]{8}-[0-9]{4,6}|lb[0-9]{12,14}|t[0-9]{12,14}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"moderate"}]},yo={Home:pa,Common:Aa,Nota:wa,NotaLista:ba},va=({active:e,type:t,customSpeculation:a})=>e&&s.jsx("script",{type:"speculationrules",dangerouslySetInnerHTML:{__html:JSON.stringify(a??yo[t])}}),pt=async(e,t,a)=>{if(a)return a.get(`/schemas${t}`,{params:e}).catch(r=>{console.log(`[/schemas${t}] Error: ${r.message}`)})},No={autor:"autor",seccion:"seccion",tema:"claves","ultimas-noticias":"seccion"},Ca=async({config:e,axiosApi:t,pathname:a,ROUTE:r})=>{const{PUBLIC_PUBLICATION_ID:n=""}=O();let o=[];const i=a==="/"||a==="/index.html"?void 0:Ia(Ua[r]({pathname:a,config:e})),l=No[r]??void 0,h={newstype:e.newsType,publication:Number(n),...i&&l?{query:`${l}:('${i}')`}:{}};try{const c=await pt(h,"/news-list-summary",t);c?.data?.data?o=c.data.data:console.warn("getSchemas responded but did not contain expected data:",c)}catch(c){console.log("Error fetching schemas:",c)}return Object.keys(o).length>0&&s.jsx("script",{id:"webSiteItemListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(o)}})};function At(e){const{PUBLIC_ASSETS_URL:t}=O();if(!t||t==="false")return e;const a=t.replace(/\/+$/,""),r=/https?:\/\/[^/\s]+\/(arte|__export)\//g;return e.replace(r,(n,o)=>`${a}/${o}/`)}const ya=async({realPath:e,config:t,BASE_URL:a,axiosApi:r})=>{const{PUBLIC_SERVICE_PREFIX:n,PUBLIC_IS_SUB_PUBLICATION:o}=O();let i=[];try{const l=t.socialBlockLogo?.url?new URL(t.socialBlockLogo.url).pathname:void 0,h=t.landscapeLogo?.url?new URL(t.landscapeLogo.url).pathname:void 0,c={path:e,image:h,logo:l,url:t.siteUrl,name:t.name,logow:t.socialBlockLogo?.width,logoh:t.socialBlockLogo?.height,authorurl:a+"/autor/",lang:t.lang},d=e.split("/")[1],u=d=="liveblogs"||d=="liveblog"?["/news","/news-breadcrumb","/news-liveblog"]:["/news","/news-breadcrumb"],m=t.paths.tema!==""?"/"+t.paths.tema:t.paths.tema,p=n!=="false"&&o!=="false"?"/"+n+m:m;i=(await Promise.all(u.map(async g=>{const A=g==="/news-breadcrumb"?{...c,prefixtag:p}:g==="/news"&&t.schemasNewsParams?{...c,...t.schemasNewsParams}:c;return await pt(A,g,r)}))).map(g=>g?.data?.data??[])}catch(l){console.log("Error fetching schemas:",l)}return console.log("Schemas fetched:",i),i.map((l,h)=>s.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:At(JSON.stringify(l))}},h))},Na=({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,inLanguage:e.lang,sameAs:Object.keys(t).filter(r=>t[r]?.show).map(r=>t[r]?.url)};return(!e.description||e.description==="")&&delete a.description,s.jsx("script",{id:"WebsiteOrgListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(a)}})},Sa=({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 s.jsx("script",{id:"WebsiteListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t)}})},Ea=async({realPath:e,config:t,axiosApi:a})=>{try{const r={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/`},o=(await pt(r,"/videos",a))?.data.data;return o?s.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:At(JSON.stringify(o))}}):void 0}catch(r){return console.error("Error fetching video schemas:",r),null}},Ta=({config:e})=>{const t=`@font-face {
14
14
  font-family: '${e.fontName}';
15
15
  font-style: normal;
16
16
  font-weight: ${e.fontWeight};
@@ -257,5 +257,5 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
257
257
  ${S}
258
258
  <figcaption>${P}</figcaption>
259
259
  </figure>
260
- `}}catch(b){console.error("insertVideos error for",p,b),A=""}else A=m;r=u,a+=A,n.lastIndex=u}return a+=e.slice(r),a=Lc(a),a}async function Dc(e){const{news:t,banners:a,newsRelatedResponses:r,newsRelatedListResponses:n,slug:o,itemList:i,socials:l,getVideos:h,commonServices:c}=e;let d=t?.body?.rendered??"";d=d.replace(/<script[^>]*src=["']https:\/\/platform\.twitter\.com\/widgets\.js["'][^>]*><\/script>/gi,""),d=d.replace(/&nbsp;/g,""),d=Bc(d,a),d=Oc(d),d=await Pc(d),d=await Mc(d,e.texts,r),d=await qc(d,h),d=Uc(d),d=kc(d);const u=t.main.sources??[],{NEWS_JOURNALIST_COMPONENT:m,CONFIG_blockDefaultTwitterHydrator:p}=O(),f=t.config.articlepreview===je.fotoGaleria&&t.hascontent?.hasgalleryimages;return s.jsxs(s.Fragment,{children:[o!=="liveblogs"&&e.showHeaderImage?f?s.jsx(an,{commonServices:c,newsformated:t,internal:t.info.link.internal}):s.jsx(Lr,{preview:t.preview}):null,s.jsx(fe,{banners:a,name:"block_1"}),s.jsx("div",{className:"sass-pg-nrs-journalistArticleContent",children:m==="op1"?s.jsx(Cc,{autorIcon:e.autorIcon,socials:l,news:t,texts:e.texts,noteShare:e.noteShare,paths:e.paths}):s.jsx(Ic,{autorIcon:e.autorIcon,socials:l,news:t,texts:e.texts,noteShare:e.noteShare,paths:e.paths})}),s.jsx(yc,{summary:t.main.summary}),s.jsx("main",{className:"sass-pg-nrs-contentNews",suppressHydrationWarning:!0,id:"content-news-section",dangerouslySetInnerHTML:{__html:d}}),s.jsx(wc,{texts:e.texts,itemList:i,banners:a,slug:o,getVideos:h,newsRelatedListResponses:n??[]}),u.length>0&&s.jsxs("div",{className:"sass-pg-nrs-noteSource",children:[s.jsx(Sc,{}),s.jsx("p",{children:String(e.texts.noteSource??"")+(u.length===1?"":"s")+": "+u.map(g=>g.name).join(", ")})]}),!p&&t&&t.hascontent&&t.hascontent.hasembeddedtwitter&&s.jsx("script",{async:!0,defer:!0,src:"https://platform.twitter.com/widgets.js"})]})}const _c=e=>{const{config:t}=e,a=t.articlepreview;return!![je.videoEmbedded,je.videoYouTube,je.iframe].includes(a)},nn=async e=>{const{texts:t,autorIcon:a,commonServices:r,slug:n,noteShare:o,paths:i,banners:l,news:h,newsRelatedResponses:c=[],newsRelatedListResponses:d=[],itemList:u=[],socials:m,getVideos:p}=e;if(h)return s.jsxs(s.Fragment,{children:[s.jsx(Dc,{texts:t,autorIcon:a,socials:m,news:h,banners:l,newsRelatedResponses:c,newsRelatedListResponses:d,itemList:u,slug:n,getVideos:p,noteShare:o,paths:i,showHeaderImage:!_c(h),commonServices:r}),s.jsx(fe,{banners:l??[],name:"block_3"})]})},Gc=async e=>{const{ranking:t=[],banners:a,autor:r=[],news:n=[],newsRelatedResponses:o=[],newsRelatedListResponses:i=[],itemList:l=[],socials:h,getVideos:c}=e;if(!(!n||!n[0]))return s.jsxs(s.Fragment,{children:[s.jsx(tn,{option:e.slug,news:n,paths:e.paths,commonServices:e.commonServices,banners:e.banners,headerSectionStyles:e.headerSectionStyles,newsDescriptionSectionTag:e.newsDescriptionSectionTag}),s.jsx(lc,{texts:e.texts,paths:e.paths,slug:e.slug,itemList:l,ranking:t,readestCustomStyles:e.readestCustomStyles,bannerTop:s.jsx(fe,{banners:a??[],name:"right_1"}),banner:s.jsx(fe,{banners:a??[],name:"right_2"}),complement:s.jsxs("div",{id:"comentarios",className:"sass-pg-news-complementContent",suppressHydrationWarning:!0,children:[r.length>0&&s.jsx(Gr,{texts:e.texts,autorIcon:e.autorIcon,autor:r[0],paths:e.paths}),n[0].authors.length>1&&s.jsx(jr,{news:n[0],autorIcon:e.autorIcon,paths:e.paths,texts:e.texts}),n[0]?.keywords?.tags&&n[0]?.keywords?.tags?.length>0&&s.jsx("div",{className:"sass-pg-news-tagContent sass-note-tags-content",children:s.jsx(_r,{tags:n[0]?.keywords?.tags,paths:e.paths})})]}),children:s.jsx(nn,{texts:e.texts,autorIcon:e.autorIcon,socials:h,news:n[0],banners:a,newsRelatedResponses:o,newsRelatedListResponses:i,itemList:l,slug:e.slug,getVideos:c,noteShare:e.noteShare,paths:e.paths,commonServices:e.commonServices})})]})},jc=e=>s.jsx("svg",{width:"68",height:"68",viewBox:"0 0 68 68",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("g",{children:s.jsx("path",{d:"M47.8043 46.6003L47.6635 46.7758L47.8232 46.9342L56.4762 55.5171C56.4768 55.5177 56.4774 55.5184 56.478 55.519C56.8524 55.9072 57.0616 56.4256 57.0616 56.965C57.0616 57.5048 56.8521 58.0234 56.4774 58.4117C56.2839 58.6065 56.0539 58.7611 55.8005 58.8667C55.5466 58.9724 55.2743 59.0269 54.9993 59.0269C54.7243 59.0269 54.452 58.9724 54.1981 58.8667C53.9442 58.7609 53.7138 58.6059 53.5201 58.4106L53.5194 58.4099L44.9327 49.8232L44.7743 49.6648L44.5995 49.805C40.4597 53.1252 35.2051 54.7331 29.9162 54.2981C24.6272 53.863 19.706 51.4181 16.1643 47.4661C12.6227 43.514 10.7298 38.3552 10.875 33.0503C11.0201 27.7455 13.1923 22.6979 16.9447 18.9455C20.6972 15.193 25.7448 13.0209 31.0496 12.8757C36.3544 12.7305 41.5133 14.6234 45.4653 18.165C49.4174 21.7067 51.8623 26.6279 52.2974 31.9169C52.7324 37.2058 51.1245 42.4604 47.8043 46.6003ZM22.4528 47.4552C25.1799 49.2774 28.3861 50.25 31.666 50.25C36.0641 50.25 40.2822 48.5029 43.3921 45.3929C46.5021 42.2829 48.2493 38.0649 48.2493 33.6667C48.2493 30.3868 47.2767 27.1806 45.4545 24.4535C43.6323 21.7264 41.0423 19.6008 38.0121 18.3457C34.9819 17.0905 31.6476 16.7621 28.4307 17.402C25.2139 18.0419 22.259 19.6213 19.9398 21.9405C17.6205 24.2597 16.0411 27.2146 15.4013 30.4314C14.7614 33.6483 15.0898 36.9827 16.345 40.0129C17.6001 43.0431 19.7256 45.633 22.4528 47.4552Z",fill:"white",stroke:"white",strokeWidth:"0.5"})})}),Qc=e=>s.jsx("form",{className:"su-w-full su-flex su-justify-center su-gap-4 sass-pg-buscar-content",children:s.jsxs("div",{className:"sass-pg-buscar-inputStyled sass-buscar-form",children:[s.jsx("input",{className:"sass-pg-buscar-inputStyledTest",defaultValue:e.query,name:"query",placeholder:e.texts.searchKeyWord+"..."}),s.jsx("button",{className:"sass-pg-buscar-buttonStyled",type:"submit",children:s.jsx(jc,{className:"sass-pg-buscar-searchStyled"})})]})}),$e=({className:e})=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"24",height:"24",viewBox:"0 0 32 32",className:e,children:s.jsx("path",{d:"M18,4.181v2.021c4.559,0.929,8,4.97,8,9.798c0,5.514-4.486,10-10,10S6,21.514,6,16c0-4.829,3.441-8.869,8-9.798V4.181 C8.334,5.137,4,10.066,4,16c0,6.617,5.383,12,12,12s12-5.383,12-12C28,10.066,23.666,5.137,18,4.181z"})}),Fc={GoogleButtonText:"Continuar con Google",loginButtonText:"Iniciar sesión",noAccountText:"¿Ya tienes cuenta?",alreadyHasAccountText:"¿Ya tienes cuenta?",showPasswordsLabel:"Mostrar contraseñas",termsPrefix:"Al continuar, confirmo que he leído y aceptado los",termsLinkText:"Términos y Condiciones",termsSuffix:"de nuestra comunidad",createAccountButton:"Crear cuenta",verificationCodeLabel:"Código de verificación",confirmAccountButton:"Confirmar cuenta",alreadyConfirmedText:"¿Ya confirmaste antes?",successTitle:"Confirmación completa.",successMessage:"Ya eres parte de la comunidad!",passwordRuleMinLength:"La contraseña debe tener al menos 8 caracteres",passwordRuleNumber:"Usa un número",passwordRuleLowercase:"Usa una letra minúscula",passwordRuleUppercase:"Usa una letra mayúscula",passwordRuleSymbol:"Usa un símbolo",errorCompleteFields:"Complete todos los campos",errorPasswordMismatch:"Las contraseñas no coinciden",errorPasswordInvalid:"La contraseña no es válida",errorVerificationCodeRequired:"Debes ingresar el código de verificación",errorUnexpected:"Error inesperado"},ot={email:{label:"Email"},given_name:{label:"Nombre"},family_name:{label:"Apellido"},password:{label:"Contraseña"},confirmPassword:{label:"Confirmar contraseña"}};function Hc(e){return{email:{label:e?.email??ot.email.label,required:!0},given_name:{label:e?.given_name??ot.given_name.label,required:!0},family_name:{label:e?.family_name??ot.family_name.label,required:!0},password:{label:e?.password??ot.password.label,required:!0},confirmPassword:{label:e?.confirmPassword??ot.confirmPassword.label,required:!0}}}const Ee=[e=>e.length>=8,e=>/\d/.test(e),e=>/[a-z]/.test(e),e=>/[A-Z]/.test(e),e=>/[^A-Za-z0-9]/.test(e)],on=[{label:"La contraseña debe tener al menos 8 caracteres",test:Ee[0]},{label:"Usa un número",test:Ee[1]},{label:"Usa una letra minúscula",test:Ee[2]},{label:"Usa una letra mayúscula",test:Ee[3]},{label:"Usa un símbolo",test:Ee[4]}];function Vc({texts:e,API_ENV:t,termsAndConditionsUrl:a}){const r={...Fc,...e?.comentarios},n=I.useMemo(()=>Hc(e?.comentarios?.registerForm),[e?.comentarios?.registerForm]),o=I.useMemo(()=>[{label:r.passwordRuleMinLength,test:Ee[0]},{label:r.passwordRuleNumber,test:Ee[1]},{label:r.passwordRuleLowercase,test:Ee[2]},{label:r.passwordRuleUppercase,test:Ee[3]},{label:r.passwordRuleSymbol,test:Ee[4]}],[r.passwordRuleMinLength,r.passwordRuleNumber,r.passwordRuleLowercase,r.passwordRuleUppercase,r.passwordRuleSymbol]),[i,l]=I.useState({}),[h,c]=I.useState(!1),[d,u]=I.useState(!1),[m,p]=I.useState(null),[f,g]=I.useState("register"),A=async()=>{if(t.PUBLIC_ENV==="local"){await fetch("/api/auth/debug-login",{method:"GET",credentials:"include"});return}const w=encodeURIComponent(window.location.pathname);window.location.href=`/api/auth/login?redirect=${w}`},b=(w,U)=>{l(P=>({...P,[w]:U}))},E=async w=>{w.preventDefault(),p(null),u(!0);try{const U=Object.keys(n).filter(V=>!["username","password","confirmPassword"].includes(V)).map(V=>({Name:V,Value:i[V]}));if(U.some(V=>{if(!V.Value||V.Value.trim()==="")return!0}))return u(!1),p(r.errorCompleteFields);if(i.password!==i.confirmPassword){p(r.errorPasswordMismatch);return}const P=i.password||"";if(o.some(V=>!V.test(P))){p(r.errorPasswordInvalid);return}const Y=Math.floor(Date.now()/1e3);U.push({Name:"updated_at",Value:String(Y)});const F=t.PUBLIC_ENV==="local"?"token":await Vs("comment_register",t.CAPTCHA_KEY??"");if(!F)throw new Error("Captcha token no generado");const B=await fetch("/api/auth/create-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:i.email,password:i.password,userAttributes:U,token:F})});if(!B.ok){const V=await B.json().catch(()=>({}));if(V.code==="UsernameExistsException"){await fetch("/api/auth/resend-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:i.email})}),g("confirm");return}throw new Error(V?.error||"Error al crear usuario")}g("confirm")}catch(U){console.log(U),p(U?.message||U?.error||r.errorUnexpected)}finally{u(!1)}},N=async w=>{if(w.preventDefault(),!i.confirmationCode){p(r.errorVerificationCodeRequired);return}p(null),u(!0);try{const U=await fetch("/api/auth/confirm-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:i.email,code:i.confirmationCode})});if(!U.ok){const P=await U.json().catch(()=>({}));throw new Error(P?.error||"Error al confirmar usuario")}g("success")}catch(U){p(U?.message||r.errorUnexpected)}finally{u(!1)}},S=i.password||"";return s.jsxs(s.Fragment,{children:[f==="register"&&s.jsxs(s.Fragment,{children:[s.jsxs("button",{onClick:A,className:"sass-pg-login-google",children:[s.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:"sass-pg-login-googleIcon"}),s.jsx("span",{children:r.GoogleButtonText})]}),s.jsx("div",{className:"sass-pg-login-divider",children:s.jsx("span",{children:"o"})}),s.jsxs("form",{onSubmit:E,className:"sass-pg-login-form","data-error":m?"true":"false",children:[s.jsx("ul",{className:"sass-pg-login-formUl",children:Object.entries(n).map(([w,{label:U}])=>s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:U}),s.jsx("input",{type:w.toLowerCase().includes("password")?h?"text":"password":w==="birthdate"?"date":w==="email"?"email":w==="phone_number"?"tel":"text",name:w,value:i[w]||"",onChange:P=>b(w,P.target.value),className:"sass-pg-login-input",placeholder:""}),w==="password"&&s.jsx("div",{className:"sass-pg-login-passwordChecker",children:o.map((P,H)=>{const Y=P.test(S);return s.jsxs("div",{className:Y?"sass-pg-login-valid":"sass-pg-login-invalid",children:[s.jsx("div",{children:Y?"✔":"○"}),s.jsx("div",{children:P.label})]},H)})}),w==="confirmPassword"&&s.jsxs("div",{className:"sass-pg-login-checkboxRow",children:[s.jsx("input",{id:"showPasswordRegister",type:"checkbox",checked:h,onChange:P=>c(P.target.checked)}),s.jsx("label",{htmlFor:"showPasswordRegister",className:"sass-pg-login-checkboxLabel",children:r.showPasswordsLabel})]})]},w))}),m&&s.jsx("p",{className:"sass-pg-login-error",children:m}),s.jsxs("p",{className:"sass-pg-login-terms",children:[r.termsPrefix," ",s.jsx("a",{href:a??"/pages/terminos-y-condiciones",target:"_blank",children:r.termsLinkText})," ",r.termsSuffix]}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",disabled:d,children:d?s.jsx($e,{}):r.createAccountButton})]})]}),f==="confirm"&&s.jsxs("form",{onSubmit:N,className:"sass-pg-login-form","data-error":m?"true":"false",children:[s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:r.verificationCodeLabel}),s.jsx("input",{type:"text",name:"confirmationCode",value:i.confirmationCode||"",onChange:w=>b("confirmationCode",w.target.value),className:"sass-pg-login-input",required:!0})]}),m&&s.jsx("p",{className:"sass-pg-login-error",children:m}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",disabled:d,children:d?s.jsx($e,{}):r.confirmAccountButton}),s.jsxs("p",{className:"sass-pg-login-switch",children:[r.alreadyConfirmedText,s.jsx("a",{className:"sass-pg-login-toRegister",href:"./login",children:r.loginButtonText})]})]}),f==="success"&&s.jsxs("form",{className:"sass-pg-login-form",children:[s.jsxs("div",{className:"sass-pg-login-successContainer",children:[s.jsx("div",{className:"sass-pg-login-thumbsUp",children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:132,height:120,fill:"none",children:s.jsx("path",{fill:"currentColor",d:"M119.249 42.357H81.915l5.621-27.039.177-1.893a8.906 8.906 0 0 0-2.603-6.272L78.838.941 39.907 39.93c-2.19 2.13-3.491 5.089-3.491 8.343v59.167c0 6.508 5.325 11.833 11.833 11.833h53.25c4.911 0 9.112-2.958 10.887-7.218l17.868-41.713c.533-1.36.829-2.78.829-4.32V54.192c0-6.509-5.325-11.834-11.834-11.834Zm0 23.667-17.75 41.417h-53.25V48.274l25.679-25.678L67.36 54.19h51.889v11.833ZM.916 48.274h23.667v71H.916v-71Z"})})}),s.jsxs("div",{className:"sass-pg-login-successMessage",children:[s.jsx("p",{children:r.successTitle}),s.jsx("p",{children:r.successMessage})]})]}),s.jsx("a",{href:"./login",type:"submit",className:"sass-pg-login-primary",children:r.loginButtonText})]}),f==="register"&&s.jsxs("p",{className:"sass-pg-login-switch",children:[r.alreadyHasAccountText,s.jsx("a",{className:"sass-pg-login-toRegister",href:"./login",children:r.loginButtonText})]})]})}const zc={title:"",button:"",commentPromptMessage:"Súmate a la comunidad para dejar tu comentario",email:"Email",password:"Contraseña",showPassword:"Mostrar contraseña",loginButtonText:"Iniciar Sesión",backButton:"Volver",GoogleButtonText:"Continuar con Google",noAccountText:"¿No tienes cuenta?",alreadyHasAccountText:"¿Ya tienes cuenta?",registerButtonText:"Registrate",forgotPasswordText:"Olvidé mi contraseña",forgotMessage:"Ingrese su dirección de correo electrónico. Le enviaremos un mensaje con un código para restablecer la contraseña.",sendCodeButton:"Enviar código",changePasswordMessage:"Hemos enviado un código de restablecimiento de contraseña en un mensaje de Correo electrónico a {{email}}. Ingrese el código y la contraseña nueva.",verificationCodeLabel:"Código de verificación",newPasswordLabel:"Nueva contraseña",confirmPasswordLabel:"Confirmar contraseña",showPasswordsLabel:"Mostrar contraseñas",changePasswordButton:"Cambiar contraseña",feedbackSuccessMessage:"La contraseña fue cambiada con éxito"};function Wc({API_ENV:e,texts:t}){const a={...zc,...t?.comentarios},[r,n]=I.useState("login"),[o,i]=I.useState(""),[l,h]=I.useState(""),[c,d]=I.useState(""),[u,m]=I.useState(""),[p,f]=I.useState(""),[g,A]=I.useState(!1),[b,E]=I.useState(!1),[N,S]=I.useState(null);I.useEffect(()=>{if(typeof window>"u")return;window.location.hash.includes("forgot")&&r==="login"&&n("forgot"),r==="login"&&U()});const w=B=>document.cookie.split("; ").find(V=>V.startsWith(B+"="))?.split("=")[1],U=async()=>{if(document.cookie.search(e.COGNITO_AUTH_PREFIX+"IS_AUTH=true")!==-1){if(!window)return;const B=w("redirect_after_login_1");console.log("Redirect path after login:",B,document.cookie,document.cookie.search("redirect_after_login_1=")!==-1),B&&B!==""?(window.location.pathname=B,window.location.hash="comentarios"):window.location.pathname="/auth/success"}},P=async()=>{if(e.PUBLIC_ENV==="local"){await fetch("/api/auth/debug-login",{method:"GET",credentials:"include"});return}let B="/auth/login";const V=w("redirect_after_login_1");V&&V!==""&&(B=V),window.location.href=`/api/auth/login?redirect=${B}`},H=async B=>{if(!b){if(B.preventDefault(),o===""||l===""){S("Complete todos los campos");return}S(null),E(!0);try{const V=e.PUBLIC_ENV==="local"?"token":await Vs("comment_login",e.CAPTCHA_KEY||"");if(!V)throw new Error("Captcha token no generado");const te=await fetch("/api/auth/login-password",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:o,password:l,token:V})});if(!te.ok){const _=await te.json().catch(()=>({}));throw new Error(_?.error||"Ha ocurrido un error")}await U();return}catch(V){S(V?.message||"Error inesperado")}finally{E(!1)}}},Y=async B=>{if(!b){B.preventDefault(),S(null),E(!0);try{const V=await fetch("/api/auth/forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:o})});if(!V.ok){const te=await V.json().catch(()=>({}));throw new Error(te?.error||"Error al enviar código")}h(""),n("changePassword")}catch(V){S(V?.message||"Error inesperado")}finally{E(!1)}}},F=async B=>{if(b)return;if(B.preventDefault(),u!==p){S("Las contraseñas no coinciden");return}if(on.some(te=>!te.test(u))){S("La contraseña no cumple con los requisitos");return}S(null),E(!0);try{const te=await fetch("/api/auth/confirm-forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:o,code:c,newPassword:u})});if(!te.ok){const _=await te.json().catch(()=>({}));throw new Error(_?.error||"Error al cambiar contraseña")}n("feedback")}catch(te){S(te?.message||"Error inesperado")}finally{E(!1)}};return s.jsxs(s.Fragment,{children:[r==="login"&&s.jsx(Yc,{email:o,password:l,showPassword:g,loading:b,error:N,setEmail:i,setPassword:h,setShowPassword:A,onSubmit:H,onForgot:()=>{S(null),n("forgot")},handleGoogleLogin:P,t:a}),r==="forgot"&&s.jsx(Kc,{email:o,setEmail:i,loading:b,error:N,onSubmit:Y,onBack:()=>{S(null),n("login")},t:a}),r==="changePassword"&&s.jsx($c,{email:o,confirmationCode:c,newPassword:u,confirmNewPassword:p,showPassword:g,loading:b,error:N,setConfirmationCode:d,setNewPassword:m,setConfirmNewPassword:f,setShowPassword:A,onSubmit:F,onBack:()=>{S(null),n("forgot")},t:a}),r==="feedback"&&s.jsx(Zc,{onBackToLogin:()=>{S(null),n("login")},t:a})]})}function Yc({email:e,password:t,showPassword:a,loading:r,error:n,setEmail:o,setPassword:i,setShowPassword:l,onSubmit:h,onForgot:c,handleGoogleLogin:d,t:u}){return s.jsxs(s.Fragment,{children:[s.jsxs("button",{onClick:d,className:"sass-pg-login-google",children:[s.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:"sass-pg-login-googleIcon"}),s.jsx("span",{children:u.GoogleButtonText})]}),s.jsx("div",{className:"sass-pg-login-divider",children:s.jsx("span",{children:"o"})}),s.jsxs("form",{onSubmit:h,className:"sass-pg-login-form","data-error":n?"true":"false",children:[s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:u.email}),s.jsx("input",{type:"email",value:e,onChange:m=>o(m.target.value),className:"sass-pg-login-input",placeholder:""})]}),s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:u.password}),s.jsx("input",{type:a?"text":"password",value:t,onChange:m=>i(m.target.value),className:"sass-pg-login-input",placeholder:""}),s.jsxs("div",{className:"sass-pg-login-checkboxRow",children:[s.jsx("input",{id:"showPasswordLogin",type:"checkbox",checked:a,onChange:m=>l(m.target.checked)}),s.jsx("label",{htmlFor:"showPasswordLogin",className:"sass-pg-login-checkboxLabel",children:u.showPassword})]})]}),n&&s.jsx("p",{className:"sass-pg-login-error",children:n}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",disabled:r,children:r?s.jsx($e,{className:"sass-pg-login-spin"}):u.loginButtonText})]}),s.jsxs("p",{className:"sass-pg-login-switch",children:[u.noAccountText,s.jsx("a",{className:"sass-pg-login-toRegister",href:"./register",children:u.registerButtonText})]}),s.jsx("button",{type:"button",className:"sass-pg-login-forgotPassword",onClick:c,children:u.forgotPasswordText})]})}function Kc({email:e,setEmail:t,loading:a,error:r,onSubmit:n,onBack:o,t:i}){return s.jsxs("form",{onSubmit:n,className:"sass-pg-login-form","data-error":r?"true":"false",children:[s.jsx("p",{className:"sass-pg-login-message",children:i.forgotMessage}),s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:i.email}),s.jsx("input",{type:"email",value:e,name:"email",onChange:l=>t(l.target.value),className:"sass-pg-login-input",placeholder:""})]}),r&&s.jsx("p",{className:"sass-pg-login-error",children:r}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",disabled:a,children:a?s.jsx($e,{}):i.sendCodeButton}),s.jsx("p",{className:"sass-pg-login-switch",style:{margin:"0 0 16px"},children:s.jsx("button",{type:"button",onClick:o,children:i.backButton})})]})}function Jc(e){const[t,a]=e.split("@");if(!t||!a)return e;let r="";t.length<=2?r=t[0]+"*":r=t[0]+"*".repeat(t.length-2)+t[t.length-1];const n=a.lastIndexOf(".");if(n===-1)return`${r}@${a}`;const o=a.slice(0,n),i=a.slice(n);let l="";return o.length<=2?l=o[0]+"*":l=o[0]+"*".repeat(o.length-2)+o[o.length-1],`${r}@${l}${i}`}function $c({email:e,confirmationCode:t,newPassword:a,confirmNewPassword:r,showPassword:n,loading:o,error:i,setConfirmationCode:l,setNewPassword:h,setConfirmNewPassword:c,setShowPassword:d,onSubmit:u,onBack:m,t:p}){const f=p.changePasswordMessage.replace("{{email}}",Jc(e));return s.jsxs("form",{onSubmit:u,className:"sass-pg-login-form","data-error":i?"true":"false",children:[s.jsx("p",{className:"sass-pg-login-message",children:f}),s.jsxs("ul",{className:"sass-pg-login-formUl",children:[s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:p.verificationCodeLabel}),s.jsx("input",{type:"text",value:t,onChange:g=>l(g.target.value),className:"sass-pg-login-input",placeholder:""})]}),s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:p.newPasswordLabel}),s.jsx("input",{type:n?"text":"password",value:a,onChange:g=>h(g.target.value),className:"sass-pg-login-input",placeholder:"",name:"password"}),s.jsx("div",{className:"sass-pg-login-passwordChecker",children:on.map((g,A)=>{const b=g.test(a);return s.jsxs("div",{className:b?"sass-pg-login-valid":"sass-pg-login-invalid",children:[s.jsx("div",{children:b?"✔":"○"}),s.jsx("div",{children:g.label})]},A)})})]}),s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:p.confirmPasswordLabel}),s.jsx("input",{type:n?"text":"password",value:r,onChange:g=>c(g.target.value),className:"sass-pg-login-input",placeholder:""}),s.jsxs("div",{className:"sass-pg-login-checkboxRow",children:[s.jsx("input",{id:"showPasswordForgot",type:"checkbox",checked:n,onChange:g=>d(g.target.checked)}),s.jsx("label",{htmlFor:"showPasswordForgot",className:"sass-pg-login-checkboxLabel",children:p.showPasswordsLabel})]})]})]}),i&&s.jsx("p",{className:"sass-pg-login-error",children:i}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",style:{maxWidth:o?"revert-layer":"fit-content"},disabled:o,children:o?s.jsx($e,{}):p.changePasswordButton}),s.jsx("p",{className:"sass-pg-login-switch",children:s.jsx("button",{type:"button",onClick:m,children:p.backButton})})]})}function Zc({onBackToLogin:e,t}){return s.jsxs("div",{className:"sass-pg-login-form",children:[s.jsx("p",{className:"sass-pg-login-success",children:t.feedbackSuccessMessage}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",onClick:e,children:t.loginButtonText})]})}function Xc({containerId:e,containerId2:t}){return I.useEffect(()=>{try{let a=function(){const d=window.twttr;d?.widgets?d.widgets.load(r):c<10?(c++,requestAnimationFrame(a)):console.warn("No se pudo cargar widgets de Twitter")};const r=document.getElementById(e),n=document.getElementById(t);if(!r&&!n)return;const o=r?.querySelectorAll("script[src]")??[],i=n?.querySelectorAll("script[src]")??[];[...o,...i].forEach(d=>{const u=document.createElement("script");Array.from(d.attributes).forEach(m=>{u.setAttribute(m.name,m.value)}),d.replaceWith(u)});const h=document.querySelectorAll('script[src*="platform.twitter.com/widgets.js"]');if(h)for(let d=0;d<h.length;d++)h[d]?.remove();let c=0;if(document.querySelector('script[src*="platform.twitter.com/widgets.js"]'))a();else{const d=document.createElement("script");d.src="https://platform.twitter.com/widgets.js",d.async=!0,d.onload=a,document.body.appendChild(d)}}catch(a){console.warn("Error al procesar embeds de Twitter",a)}},[e]),null}const Rc=({currentNew:e})=>e&&e?.hascontent?.hasembeddedtwitter&&s.jsx("script",{src:"https://platform.twitter.com/widgets.js"}),ed=e=>{const{isVideo:t=!1,isLarge:a=!1,hasShadow:r=!1,BackDropAuxHeigthMobile:n}=e,o=ws(),i=I.useMemo(()=>{const m=e?.preview?.sizes;if(m&&Array.isArray(m)&&m.length>0)return m;const p=e?.preview?.original;return p?.url?[{url:p.url,width:p.width||0,height:p.height||0}]:[]},[e?.preview?.sizes,e?.preview?.original]);if(!i.length||!i[0]?.url||i[0]?.url==="")return s.jsx("div",{className:"sass-com-img-imagePlaceholder"});const{PUBLIC_API_HOST:l="",PUBLIC_ASSETS_URL:h}=e.API_ENV,c=i[0]?.url,d=h&&h!=="false"?h:l,u=c?.startsWith("http")||c?.includes(d)?c:d+c;return s.jsx("figure",{className:"sass-com-img-figure",children:s.jsxs("span",{className:"sass-com-img-backdrop",children:[s.jsx("span",{className:"sass-com-img-backdropAux",style:{height:n||"56.25%"}}),s.jsxs("picture",{children:[s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-img-imageStyled",alt:e.preview?.description||"",src:u,style:{boxShadow:r?"0px 4px 8px 0px #00000033":"0px"}}),t&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"sass-com-img-boxPlayIcon",style:{height:a?"40%":"72px"}}),s.jsx(o,{className:"sass-com-img-playStyled",style:{width:a?"3rem":"27px",height:a?"3rem":"27px",marginBottom:a?"18px":".5rem",marginLeft:a?"30px":".5rem"}})]})]})]})})},td=e=>s.jsx("svg",{width:"41",height:"33",viewBox:"0 0 41 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M17.9576 21.2985C16.8233 21.2985 15.9277 22.194 15.9277 23.3283C15.9277 24.4627 16.8233 25.3582 17.9576 25.3582C19.0919 25.3582 19.9874 24.4627 19.9874 23.3283C19.9874 22.194 19.0919 21.2985 17.9576 21.2985ZM17.9576 19.2686C19.0919 19.2686 19.9874 18.3731 19.9874 17.2388C19.9874 16.1045 19.0919 15.2089 17.9576 15.2089C16.8233 15.2089 15.9277 16.1045 15.9277 17.2388C15.9277 18.3731 16.8233 19.2686 17.9576 19.2686ZM17.9576 13.1791C19.0919 13.1791 19.9874 12.2836 19.9874 11.1492C19.9874 10.0149 19.0919 9.11938 17.9576 9.11938C16.8233 9.11938 15.9277 10.0149 15.9277 11.1492C15.9277 12.2836 16.8233 13.1791 17.9576 13.1791Z",fill:"#7B888A"})}),ln={info:{section:{name:"",slug:"",url:""},link:{url:"/",target:"",canonical:!1,internal:""},date:{date:"",created:0,modified:0,firstpublish:0,lastpublish:0}},config:{zonehome:void 0,priorityhome:"",zonesection:"",prioritysection:"",homepreview:"",showcomments:!0,showtime:!0,showauthor:!0,showuppertitle:!0,showsubtitle:!0,showads:!0},main:{title:{home:"",section:"",article:""},subtitle:{rendered:"",striped:""},tags:[]},authors:[{firstname:"",lastname:"",fullname:"",image:void 0,name:"",internaluser:!1}],preview:void 0},sd=({section:e,internalPath:t,banner:a,isVisible:r=!1,stylesConfig:n,API_ENV:o,fetchConfig:i,paths:l})=>{const h=o.FETCH_SIZE_MORE_NEWS??6,[c,d]=I.useState({data:Array.from({length:h},()=>ln)}),[u,m]=I.useState(!1),p=I.useCallback(async()=>{if(!t)return;const A=new URLSearchParams({section:e,currentNewsLink:t}),b=await fetch(`/api/get-more-news?${A}`);if(!b.ok)throw new Error(`HTTP error! status: ${b.status}`);return await b.json()},[e,t]),f=I.useCallback(async()=>{const{PUBLIC_API_FRONT:A,PUBLIC_X_SECURITY_TOKEN:b,PUBLIC_API_PATH_VERSION:E,PUBLIC_PUBLICATION_ID:N}=o;if(!A||!b||!N||!E)throw new Error("Missing required environment variables");const S=await re.get(`${A}${E}/news-list-section`,{params:{size:h+1,newstype:i.newsType,section:e,imagesizes:i.imgSizes,publication:parseInt(N)},headers:{"x-api-token":b,"Content-Type":"application/json"}});return{...S.data,data:S.data.data.filter(w=>w.info.link.internal!==t)}},[e,t,o]),g=I.useCallback(async()=>{if(!(u||!t)){m(!0);try{let A;o.PUBLIC_ENV!=="prod"?A=await p():A=await f(),d({...A,data:A.data.slice(0,h)})}catch(A){console.error("[/api/get-more-news] Error:",A.message),d(void 0)}}},[u,t,o.PUBLIC_ENV,p,f]);return I.useEffect(()=>{r&&g()},[r,g]),!c?.data||c.data.length===0?null:s.jsx(ad,{news:c.data,title:"Más Noticias",...n["Modulo 1x3 Client"]??n["Modulo 1x3"],hasLines:!0,showSubtitle:!0,rounded:!0,banner:a,API_ENV:o,paths:l,isVisible:r})},ad=e=>{const{news:t,hasLines:a=!1,API_ENV:r}=e,n=o=>a&&(o+1)%3!==0?"sass-bd-m13-contentSeparator":"";return s.jsx("div",{className:"su-grid su-justify-center sass-bd-m13-newsContent",style:{gap:a?"30px":"20px","--gridTemplateModlule":a?"repeat(auto-fit, 343px);":"repeat(auto-fit, 380px);"},children:t.map((o,i)=>{const{main:l,authors:h,info:c,preview:d,isVideo:u=!1,config:m,overImage:p="default",isTitle:f=!1,isLarge:g=!1,keywords:A}=o;return s.jsx("div",{className:n(i),style:{order:i},children:s.jsxs("section",{className:"sass-com-sc1-content",children:[s.jsx(M,{title:l?.title?.section,href:c?.link?.url??"invalidUrl","aria-label":l?.title?.section??"nota",target:c?.link?.target,children:s.jsx(ed,{isVisible:e.isVisible,preview:d,rounded:e.rounded,isVideo:u,isLarge:g,API_ENV:e.API_ENV,getImageUrl:e.getImageUrl})}),s.jsx("div",{className:"sass-com-sc1-newsDescription",children:s.jsx(rd,{main:l,SHOW_TAG_BY_SECTION:r.SHOW_TAG_BY_SECTION,authors:h,info:c,preview:d,share:e.share,config:m,overImage:p,isTitle:f,paths:e.paths,isVisible:e.isVisible,DATE_CONFIG:e.API_ENV,keywords:A})})]})},i)})})},rd=e=>{const{share:t=!1,cutSubtitle:a=!0,SHOW_TAG_BY_SECTION:r,keywords:n,info:o}=e,l=(()=>{if(!e?.authors||e.authors.length===0)return"";const d=e.authors[0],u=Ce(e.info?.date?.modified,e.DATE_CONFIG);return d&&e?.config?.showtime&&e.config?.showauthor?`${d.fullname} - ${u}`:d&&e.config?.showauthor?d.fullname:e?.config?.showtime?u:""})(),h=()=>e.main.uppertitle?s.jsx("p",{className:"sass-com-nd-uppertitle",title:e.main.uppertitle,children:e.main.uppertitle}):null,c=()=>{if(r&&n?.tags?.length&&n.tags.length>0){const d=n.tags[0],u=d.name;return s.jsxs("h3",{className:"sass-com-nd-sectionDescriptionContainer",children:[d.approved?s.jsx(M,{"aria-label":u,block_subPublication:e.DATE_CONFIG?.SUB_PUBLICATION_PREFIX_IN_ROUTES?.tema,className:"sass-com-nd-sectionDescription",href:Ue(d,e.paths),children:u}):s.jsx("div",{className:"sass-com-nd-sectionDescription",children:u}),h()]})}else if(o?.section?.url){const d=o.section.name;return s.jsxs("h3",{className:"sass-com-nd-sectionDescriptionContainer",children:[s.jsx(M,{"aria-label":d,className:"sass-com-nd-sectionDescription",href:o.section.url,children:d}),h()]})}return null};return s.jsxs("div",{className:"sass-com-nd-boxInformation",children:[t&&s.jsx(td,{className:"sass-com-nd-dotStyles"}),s.jsx(c,{}),s.jsx("h2",{className:"sass-com-nd-articule",children:s.jsx(M,{className:"sass-com-nd-linkStyled",style:{"--isLink":e?.info?.link?.url?"underline":"none"},"aria-label":e.main?.title?.section??"nota",href:e?.info?.link?.url,target:e?.info?.link?.target,children:e.main?.title?.section})}),e.config?.showsubtitle&&e.main?.subtitle?.striped&&s.jsx("p",{className:"sass-com-nd-description",style:{"--fontSizeSubTitle":e.fontSizeSubTitle,"--lineHeightSubTitle":e.lineHeightSubTitle,"--colorSubTitle":e.colorSubTitle},children:a?ye(e.main?.subtitle?.striped):e.main?.subtitle?.striped}),(e?.config?.showtime||e.config?.showauthor)&&l&&s.jsx(s.Fragment,{children:e.authors?.[0]?.internaluser?s.jsx(M,{block_subPublication:e.DATE_CONFIG?.SUB_PUBLICATION_PREFIX_IN_ROUTES?.autor,className:"sass-com-nd-correspondentLink",href:`/${e.paths.autor}/${e.authors[0].name}`,children:l}):s.jsx("div",{className:"sass-com-nd-correspondent",children:l})})]})},nd={userGreeting:"Hola {{name}}!",logoutButton:"Cerrar Sesion"},od=({user:e,handleLogout:t,message:a,texts:r})=>{const n={...nd,...r?.comentarios},o=()=>{const h=document.querySelector(".user-actions-options");h&&h.classList.toggle("show")},i=e.firstname??"Usuario",l=n.userGreeting.replace("{{name}}",i);return s.jsx("div",{className:"comment-item",children:s.jsxs("div",{style:{display:"flex",gap:"14px"},children:[e&&e.picture&&e.picture!==""?s.jsx("img",{className:"comment-avatar-img su-h-full",src:e.picture,alt:e.username}):s.jsx("div",{className:"comment-avatar su-flex-center su-rounded-full su-font-bold su-overflow-hidden",children:i.charAt(0).toUpperCase()}),s.jsxs("div",{style:{flex:1},children:[s.jsxs("div",{className:"comment-header su-flex su-items-center su-relative su-flex-wrap",children:[s.jsx("span",{className:"comment-username su-font-bold su-truncate user-welcome",children:l}),s.jsx("div",{className:"user-actions-options su-hidden su-absolute su-p-2",children:s.jsx("button",{className:"su-bg-transparent su-border-none",onClick:()=>{t()},children:n.logoutButton})}),s.jsx("button",{className:"user-actions-span",onClick:o,children:s.jsx(Mt,{width:13,height:13,fill:"black"})})]}),s.jsx("p",{className:"comment-text su-font-normal",children:a})]})]})})},cn=async(e,t)=>{if(!e)return!1;const{CAPTCHA_PROJECT:a,CAPTCHA_KEY_V2:r,COMMENTS_CAPTCHA_API_KEY:n}=t;try{const o=a,i=r,c=await(await fetch(`https://recaptchaenterprise.googleapis.com/v1/projects/${o}/assessments?key=${n}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:{token:e,siteKey:i}})})).json();return console.log("reCAPTCHA Enterprise verification result:",c),c.tokenProperties?.valid===!0}catch(o){return console.error("Error verificando reCAPTCHA Enterprise:",o),!1}};async function id({publication:e,username:t,id:a,type:r,baseUrl:n,captchaToken:o,apiToken:i,securityToken:l,COMMENTS_VARS:h}){if(!e||!t||!a||!r||!o)throw new Error("Faltan parámetros requeridos: publication, username, id, type, captchaToken");if(typeof e!="string"||typeof t!="string"||typeof a!="string"||typeof r!="string"||typeof o!="string")throw new Error("Todos los parámetros deben ser strings");if(!await cn(o,h))throw new Error("Token de captcha inválido");if(!i)throw new Error("Falta el token de API del CMS");const c=`${n}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/report`,d=encodeURIComponent(r),u=new URLSearchParams({publication:e,username:t??!1,id:a,type:d}),m=`${c}?${u.toString()}`;try{console.log("Reporting comment:",{publication:e,username:t,id:a,type:r,encodedType:d,url:m});const p=await re.get(m,{headers:{"User-Agent":"blu3st@ck-react","x-security-token":l,"x-api-token":i,"Content-Type":"application/json"}});if(console.log("Report response:",p.data),p.status===200||p.status===201)return{type:"success",message:"Comentario reportado exitosamente",status:p.status,data:p.data};throw new Error(`Respuesta inesperada del servidor: ${p.status}`)}catch(p){if(console.error("Error reporting comment:",p),re.isAxiosError(p)){const f=p.response?.status,g=p.response?.data;throw f===400?new Error("Datos inválidos para el reporte"):f===401?new Error("Token de API inválido"):f===403?new Error("Acceso denegado para reportar comentario"):f===404?new Error("Comentario no encontrado"):f===409?new Error("El comentario ya fue reportado por este usuario"):f===500?new Error("Error interno del servidor CMS"):new Error(g?.error||g?.message||`Error HTTP ${f}: No se pudo reportar el comentario`)}throw p}}const _t={spam:"Es spam o contenido comercial no deseado",inappropriate:"Lenguaje inadecuado",hate:"Discurso o símbolos de odio",misinformation:"Información falsa o fraude",terrorism:"Promueve el terrorismo",intellectual:"Violación de propiedad intelectual",bullying:"Bullying o acoso"};function ld(e){return _t[e]}const Te=300,Ie={username:"anonimo",firstname:"Usuario",lastname:"Anonimo"};function cd(e){const t=e.split(" ");if(t.length!==3)return e;const[a,r,n]=t,o=r.charAt(0).toUpperCase()+r.slice(1).toLowerCase();return`${a} ${o} ${n}`}const Gt=(e,t,a)=>{if(!e||!e.current)return{boolean:!1,text:""};const r=e.current?.value||"",n=r.length>Te,{PUBLIC_ENV:o}=a,i=o==="local",l=r.trim()!==""&&(i||t!=="")&&!n,h=n?`No debes exceder el limite de ${Te} caracteres.`:"Debes completar todos los campos para comentar.";return{boolean:l,text:h}},dn=e=>{const t=e.cookie.split("; ").find(a=>a.startsWith("reported="));if(!t)return[];try{return JSON.parse(decodeURIComponent(t.split("=")[1]??""))}catch{return[]}},dd=(e,t)=>{const a=dn(e);a.includes(t)||(a.push(t),e.cookie=`reported=${encodeURIComponent(JSON.stringify(a))}; path=/; max-age=${3600*24*1}`)};var jt={exports:{}},Qt={exports:{}},se={};var hn;function hd(){if(hn)return se;hn=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function N(w){if(typeof w=="object"&&w!==null){var U=w.$$typeof;switch(U){case t:switch(w=w.type,w){case h:case c:case r:case o:case n:case u:return w;default:switch(w=w&&w.$$typeof,w){case l:case d:case f:case p:case i:return w;default:return U}}case a:return U}}}function S(w){return N(w)===c}return se.AsyncMode=h,se.ConcurrentMode=c,se.ContextConsumer=l,se.ContextProvider=i,se.Element=t,se.ForwardRef=d,se.Fragment=r,se.Lazy=f,se.Memo=p,se.Portal=a,se.Profiler=o,se.StrictMode=n,se.Suspense=u,se.isAsyncMode=function(w){return S(w)||N(w)===h},se.isConcurrentMode=S,se.isContextConsumer=function(w){return N(w)===l},se.isContextProvider=function(w){return N(w)===i},se.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},se.isForwardRef=function(w){return N(w)===d},se.isFragment=function(w){return N(w)===r},se.isLazy=function(w){return N(w)===f},se.isMemo=function(w){return N(w)===p},se.isPortal=function(w){return N(w)===a},se.isProfiler=function(w){return N(w)===o},se.isStrictMode=function(w){return N(w)===n},se.isSuspense=function(w){return N(w)===u},se.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===c||w===o||w===n||w===u||w===m||typeof w=="object"&&w!==null&&(w.$$typeof===f||w.$$typeof===p||w.$$typeof===i||w.$$typeof===l||w.$$typeof===d||w.$$typeof===A||w.$$typeof===b||w.$$typeof===E||w.$$typeof===g)},se.typeOf=N,se}var ae={};var un;function ud(){return un||(un=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function N(D){return typeof D=="string"||typeof D=="function"||D===r||D===c||D===o||D===n||D===u||D===m||typeof D=="object"&&D!==null&&(D.$$typeof===f||D.$$typeof===p||D.$$typeof===i||D.$$typeof===l||D.$$typeof===d||D.$$typeof===A||D.$$typeof===b||D.$$typeof===E||D.$$typeof===g)}function S(D){if(typeof D=="object"&&D!==null){var de=D.$$typeof;switch(de){case t:var Kt=D.type;switch(Kt){case h:case c:case r:case o:case n:case u:return Kt;default:var Ln=Kt&&Kt.$$typeof;switch(Ln){case l:case d:case f:case p:case i:return Ln;default:return de}}case a:return de}}}var w=h,U=c,P=l,H=i,Y=t,F=d,B=r,V=f,te=p,_=a,L=o,k=n,G=u,x=!1;function W(D){return x||(x=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),C(D)||S(D)===h}function C(D){return S(D)===c}function T(D){return S(D)===l}function q(D){return S(D)===i}function Q(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function j(D){return S(D)===d}function z(D){return S(D)===r}function K(D){return S(D)===f}function J(D){return S(D)===p}function R(D){return S(D)===a}function ee(D){return S(D)===o}function $(D){return S(D)===n}function ne(D){return S(D)===u}ae.AsyncMode=w,ae.ConcurrentMode=U,ae.ContextConsumer=P,ae.ContextProvider=H,ae.Element=Y,ae.ForwardRef=F,ae.Fragment=B,ae.Lazy=V,ae.Memo=te,ae.Portal=_,ae.Profiler=L,ae.StrictMode=k,ae.Suspense=G,ae.isAsyncMode=W,ae.isConcurrentMode=C,ae.isContextConsumer=T,ae.isContextProvider=q,ae.isElement=Q,ae.isForwardRef=j,ae.isFragment=z,ae.isLazy=K,ae.isMemo=J,ae.isPortal=R,ae.isProfiler=ee,ae.isStrictMode=$,ae.isSuspense=ne,ae.isValidElementType=N,ae.typeOf=S})()),ae}var mn;function Es(){return mn||(mn=1,process.env.NODE_ENV==="production"?Qt.exports=hd():Qt.exports=ud()),Qt.exports}var Ts,fn;function md(){if(fn)return Ts;fn=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function n(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var i={},l=0;l<10;l++)i["_"+String.fromCharCode(l)]=l;var h=Object.getOwnPropertyNames(i).map(function(d){return i[d]});if(h.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(d){c[d]=d}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ts=n()?Object.assign:function(o,i){for(var l,h=r(o),c,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var u in l)t.call(l,u)&&(h[u]=l[u]);if(e){c=e(l);for(var m=0;m<c.length;m++)a.call(l,c[m])&&(h[c[m]]=l[c[m]])}}return h},Ts}var Is,gn;function Us(){if(gn)return Is;gn=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Is=e,Is}var ks,pn;function An(){return pn||(pn=1,ks=Function.call.bind(Object.prototype.hasOwnProperty)),ks}var Ls,wn;function fd(){if(wn)return Ls;wn=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Us(),a={},r=An();e=function(o){var i="Warning: "+o;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function n(o,i,l,h,c){if(process.env.NODE_ENV!=="production"){for(var d in o)if(r(o,d)){var u;try{if(typeof o[d]!="function"){var m=Error((h||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}u=o[d](i,d,h,l,null,t)}catch(f){u=f}if(u&&!(u instanceof Error)&&e((h||"React class")+": type specification of "+l+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in a)){a[u.message]=!0;var p=c?c():"";e("Failed "+l+" type: "+u.message+(p??""))}}}}return n.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(a={})},Ls=n,Ls}var Ps,bn;function gd(){if(bn)return Ps;bn=1;var e=Es(),t=md(),a=Us(),r=An(),n=fd(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(l){var h="Warning: "+l;typeof console<"u"&&console.error(h);try{throw new Error(h)}catch{}});function i(){return null}return Ps=function(l,h){var c=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function u(C){var T=C&&(c&&C[c]||C[d]);if(typeof T=="function")return T}var m="<<anonymous>>",p={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:E(),arrayOf:N,element:S(),elementType:w(),instanceOf:U,node:F(),objectOf:H,oneOf:P,oneOfType:Y,shape:V,exact:te};function f(C,T){return C===T?C!==0||1/C===1/T:C!==C&&T!==T}function g(C,T){this.message=C,this.data=T&&typeof T=="object"?T:{},this.stack=""}g.prototype=Error.prototype;function A(C){if(process.env.NODE_ENV!=="production")var T={},q=0;function Q(z,K,J,R,ee,$,ne){if(R=R||m,$=$||J,ne!==a){if(h){var D=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw D.name="Invariant Violation",D}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var de=R+":"+J;!T[de]&&q<3&&(o("You are manually calling a React.PropTypes validation function for the `"+$+"` prop on `"+R+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),T[de]=!0,q++)}}return K[J]==null?z?K[J]===null?new g("The "+ee+" `"+$+"` is marked as required "+("in `"+R+"`, but its value is `null`.")):new g("The "+ee+" `"+$+"` is marked as required in "+("`"+R+"`, but its value is `undefined`.")):null:C(K,J,R,ee,$)}var j=Q.bind(null,!1);return j.isRequired=Q.bind(null,!0),j}function b(C){function T(q,Q,j,z,K,J){var R=q[Q],ee=k(R);if(ee!==C){var $=G(R);return new g("Invalid "+z+" `"+K+"` of type "+("`"+$+"` supplied to `"+j+"`, expected ")+("`"+C+"`."),{expectedType:C})}return null}return A(T)}function E(){return A(i)}function N(C){function T(q,Q,j,z,K){if(typeof C!="function")return new g("Property `"+K+"` of component `"+j+"` has invalid PropType notation inside arrayOf.");var J=q[Q];if(!Array.isArray(J)){var R=k(J);return new g("Invalid "+z+" `"+K+"` of type "+("`"+R+"` supplied to `"+j+"`, expected an array."))}for(var ee=0;ee<J.length;ee++){var $=C(J,ee,j,z,K+"["+ee+"]",a);if($ instanceof Error)return $}return null}return A(T)}function S(){function C(T,q,Q,j,z){var K=T[q];if(!l(K)){var J=k(K);return new g("Invalid "+j+" `"+z+"` of type "+("`"+J+"` supplied to `"+Q+"`, expected a single ReactElement."))}return null}return A(C)}function w(){function C(T,q,Q,j,z){var K=T[q];if(!e.isValidElementType(K)){var J=k(K);return new g("Invalid "+j+" `"+z+"` of type "+("`"+J+"` supplied to `"+Q+"`, expected a single ReactElement type."))}return null}return A(C)}function U(C){function T(q,Q,j,z,K){if(!(q[Q]instanceof C)){var J=C.name||m,R=W(q[Q]);return new g("Invalid "+z+" `"+K+"` of type "+("`"+R+"` supplied to `"+j+"`, expected ")+("instance of `"+J+"`."))}return null}return A(T)}function P(C){if(!Array.isArray(C))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),i;function T(q,Q,j,z,K){for(var J=q[Q],R=0;R<C.length;R++)if(f(J,C[R]))return null;var ee=JSON.stringify(C,function(ne,D){var de=G(D);return de==="symbol"?String(D):D});return new g("Invalid "+z+" `"+K+"` of value `"+String(J)+"` "+("supplied to `"+j+"`, expected one of "+ee+"."))}return A(T)}function H(C){function T(q,Q,j,z,K){if(typeof C!="function")return new g("Property `"+K+"` of component `"+j+"` has invalid PropType notation inside objectOf.");var J=q[Q],R=k(J);if(R!=="object")return new g("Invalid "+z+" `"+K+"` of type "+("`"+R+"` supplied to `"+j+"`, expected an object."));for(var ee in J)if(r(J,ee)){var $=C(J,ee,j,z,K+"."+ee,a);if($ instanceof Error)return $}return null}return A(T)}function Y(C){if(!Array.isArray(C))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var T=0;T<C.length;T++){var q=C[T];if(typeof q!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(q)+" at index "+T+"."),i}function Q(j,z,K,J,R){for(var ee=[],$=0;$<C.length;$++){var ne=C[$],D=ne(j,z,K,J,R,a);if(D==null)return null;D.data&&r(D.data,"expectedType")&&ee.push(D.data.expectedType)}var de=ee.length>0?", expected one of type ["+ee.join(", ")+"]":"";return new g("Invalid "+J+" `"+R+"` supplied to "+("`"+K+"`"+de+"."))}return A(Q)}function F(){function C(T,q,Q,j,z){return _(T[q])?null:new g("Invalid "+j+" `"+z+"` supplied to "+("`"+Q+"`, expected a ReactNode."))}return A(C)}function B(C,T,q,Q,j){return new g((C||"React class")+": "+T+" type `"+q+"."+Q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+j+"`.")}function V(C){function T(q,Q,j,z,K){var J=q[Q],R=k(J);if(R!=="object")return new g("Invalid "+z+" `"+K+"` of type `"+R+"` "+("supplied to `"+j+"`, expected `object`."));for(var ee in C){var $=C[ee];if(typeof $!="function")return B(j,z,K,ee,G($));var ne=$(J,ee,j,z,K+"."+ee,a);if(ne)return ne}return null}return A(T)}function te(C){function T(q,Q,j,z,K){var J=q[Q],R=k(J);if(R!=="object")return new g("Invalid "+z+" `"+K+"` of type `"+R+"` "+("supplied to `"+j+"`, expected `object`."));var ee=t({},q[Q],C);for(var $ in ee){var ne=C[$];if(r(C,$)&&typeof ne!="function")return B(j,z,K,$,G(ne));if(!ne)return new g("Invalid "+z+" `"+K+"` key `"+$+"` supplied to `"+j+"`.\nBad object: "+JSON.stringify(q[Q],null," ")+`
260
+ `}}catch(b){console.error("insertVideos error for",p,b),A=""}else A=m;r=u,a+=A,n.lastIndex=u}return a+=e.slice(r),a=Lc(a),a}async function Dc(e){const{news:t,banners:a,newsRelatedResponses:r,newsRelatedListResponses:n,slug:o,itemList:i,socials:l,getVideos:h,commonServices:c}=e;let d=t?.body?.rendered??"";d=d.replace(/<script[^>]*src=["']https:\/\/platform\.twitter\.com\/widgets\.js["'][^>]*><\/script>/gi,""),d=d.replace(/&nbsp;/g,""),d=Bc(d,a),d=Oc(d),d=await Pc(d),d=await Mc(d,e.texts,r),d=await qc(d,h),d=Uc(d),d=kc(d);const u=t.main.sources??[],{NEWS_JOURNALIST_COMPONENT:m,CONFIG_blockDefaultTwitterHydrator:p}=O(),f=t.config.articlepreview===je.fotoGaleria&&t.hascontent?.hasgalleryimages;return s.jsxs(s.Fragment,{children:[o!=="liveblogs"&&e.showHeaderImage?f?s.jsx(an,{commonServices:c,newsformated:t,internal:t.info.link.internal}):s.jsx(Lr,{preview:t.preview}):null,s.jsx(fe,{banners:a,name:"block_1"}),s.jsx("div",{className:"sass-pg-nrs-journalistArticleContent",children:m==="op1"?s.jsx(Cc,{autorIcon:e.autorIcon,socials:l,news:t,texts:e.texts,noteShare:e.noteShare,paths:e.paths}):s.jsx(Ic,{autorIcon:e.autorIcon,socials:l,news:t,texts:e.texts,noteShare:e.noteShare,paths:e.paths})}),s.jsx(yc,{summary:t.main.summary}),s.jsx("main",{className:"sass-pg-nrs-contentNews",suppressHydrationWarning:!0,id:"content-news-section",dangerouslySetInnerHTML:{__html:d}}),s.jsx(wc,{texts:e.texts,itemList:i,banners:a,slug:o,getVideos:h,newsRelatedListResponses:n??[]}),u.length>0&&s.jsxs("div",{className:"sass-pg-nrs-noteSource",children:[s.jsx(Sc,{}),s.jsx("p",{children:String(e.texts.noteSource??"")+(u.length===1?"":"s")+": "+u.map(g=>g.name).join(", ")})]}),!p&&t&&t.hascontent&&t.hascontent.hasembeddedtwitter&&s.jsx("script",{async:!0,defer:!0,src:"https://platform.twitter.com/widgets.js"})]})}const _c=e=>{const{config:t}=e,a=t.articlepreview;return!![je.videoEmbedded,je.videoYouTube,je.iframe].includes(a)},nn=async e=>{const{texts:t,autorIcon:a,commonServices:r,slug:n,noteShare:o,paths:i,banners:l,news:h,newsRelatedResponses:c=[],newsRelatedListResponses:d=[],itemList:u=[],socials:m,getVideos:p}=e;if(h)return s.jsxs(s.Fragment,{children:[s.jsx(Dc,{texts:t,autorIcon:a,socials:m,news:h,banners:l,newsRelatedResponses:c,newsRelatedListResponses:d,itemList:u,slug:n,getVideos:p,noteShare:o,paths:i,showHeaderImage:!_c(h),commonServices:r}),s.jsx(fe,{banners:l??[],name:"block_3"})]})},Gc=async e=>{const{ranking:t=[],banners:a,autor:r=[],news:n=[],newsRelatedResponses:o=[],newsRelatedListResponses:i=[],itemList:l=[],socials:h,getVideos:c}=e;if(!(!n||!n[0]))return s.jsxs(s.Fragment,{children:[s.jsx(tn,{option:e.slug,news:n,paths:e.paths,commonServices:e.commonServices,banners:e.banners,headerSectionStyles:e.headerSectionStyles,newsDescriptionSectionTag:e.newsDescriptionSectionTag}),s.jsx(lc,{texts:e.texts,paths:e.paths,slug:e.slug,itemList:l,ranking:t,readestCustomStyles:e.readestCustomStyles,bannerTop:s.jsx(fe,{banners:a??[],name:"right_1"}),banner:s.jsx(fe,{banners:a??[],name:"right_2"}),complement:s.jsxs("div",{id:"comentarios",className:"sass-pg-news-complementContent",suppressHydrationWarning:!0,children:[r.length>0&&s.jsx(Gr,{texts:e.texts,autorIcon:e.autorIcon,autor:r[0],paths:e.paths}),n[0].authors.length>1&&s.jsx(jr,{news:n[0],autorIcon:e.autorIcon,paths:e.paths,texts:e.texts}),n[0]?.keywords?.tags&&n[0]?.keywords?.tags?.length>0&&s.jsx("div",{className:"sass-pg-news-tagContent sass-note-tags-content",children:s.jsx(_r,{tags:n[0]?.keywords?.tags,paths:e.paths})})]}),children:s.jsx(nn,{texts:e.texts,autorIcon:e.autorIcon,socials:h,news:n[0],banners:a,newsRelatedResponses:o,newsRelatedListResponses:i,itemList:l,slug:e.slug,getVideos:c,noteShare:e.noteShare,paths:e.paths,commonServices:e.commonServices})})]})},jc=e=>s.jsx("svg",{width:"68",height:"68",viewBox:"0 0 68 68",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("g",{children:s.jsx("path",{d:"M47.8043 46.6003L47.6635 46.7758L47.8232 46.9342L56.4762 55.5171C56.4768 55.5177 56.4774 55.5184 56.478 55.519C56.8524 55.9072 57.0616 56.4256 57.0616 56.965C57.0616 57.5048 56.8521 58.0234 56.4774 58.4117C56.2839 58.6065 56.0539 58.7611 55.8005 58.8667C55.5466 58.9724 55.2743 59.0269 54.9993 59.0269C54.7243 59.0269 54.452 58.9724 54.1981 58.8667C53.9442 58.7609 53.7138 58.6059 53.5201 58.4106L53.5194 58.4099L44.9327 49.8232L44.7743 49.6648L44.5995 49.805C40.4597 53.1252 35.2051 54.7331 29.9162 54.2981C24.6272 53.863 19.706 51.4181 16.1643 47.4661C12.6227 43.514 10.7298 38.3552 10.875 33.0503C11.0201 27.7455 13.1923 22.6979 16.9447 18.9455C20.6972 15.193 25.7448 13.0209 31.0496 12.8757C36.3544 12.7305 41.5133 14.6234 45.4653 18.165C49.4174 21.7067 51.8623 26.6279 52.2974 31.9169C52.7324 37.2058 51.1245 42.4604 47.8043 46.6003ZM22.4528 47.4552C25.1799 49.2774 28.3861 50.25 31.666 50.25C36.0641 50.25 40.2822 48.5029 43.3921 45.3929C46.5021 42.2829 48.2493 38.0649 48.2493 33.6667C48.2493 30.3868 47.2767 27.1806 45.4545 24.4535C43.6323 21.7264 41.0423 19.6008 38.0121 18.3457C34.9819 17.0905 31.6476 16.7621 28.4307 17.402C25.2139 18.0419 22.259 19.6213 19.9398 21.9405C17.6205 24.2597 16.0411 27.2146 15.4013 30.4314C14.7614 33.6483 15.0898 36.9827 16.345 40.0129C17.6001 43.0431 19.7256 45.633 22.4528 47.4552Z",fill:"white",stroke:"white",strokeWidth:"0.5"})})}),Qc=e=>s.jsx("form",{className:"su-w-full su-flex su-justify-center su-gap-4 sass-pg-buscar-content",children:s.jsxs("div",{className:"sass-pg-buscar-inputStyled sass-buscar-form",children:[s.jsx("input",{className:"sass-pg-buscar-inputStyledTest",defaultValue:e.query,name:"query",placeholder:e.texts.searchKeyWord+"..."}),s.jsx("button",{className:"sass-pg-buscar-buttonStyled",type:"submit",children:s.jsx(jc,{className:"sass-pg-buscar-searchStyled"})})]})}),$e=({className:e})=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"24",height:"24",viewBox:"0 0 32 32",className:e,children:s.jsx("path",{d:"M18,4.181v2.021c4.559,0.929,8,4.97,8,9.798c0,5.514-4.486,10-10,10S6,21.514,6,16c0-4.829,3.441-8.869,8-9.798V4.181 C8.334,5.137,4,10.066,4,16c0,6.617,5.383,12,12,12s12-5.383,12-12C28,10.066,23.666,5.137,18,4.181z"})}),Fc={GoogleButtonText:"Continuar con Google",loginButtonText:"Iniciar sesión",noAccountText:"¿Ya tienes cuenta?",alreadyHasAccountText:"¿Ya tienes cuenta?",showPasswordsLabel:"Mostrar contraseñas",termsPrefix:"Al continuar, confirmo que he leído y aceptado los",termsLinkText:"Términos y Condiciones",termsSuffix:"de nuestra comunidad",createAccountButton:"Crear cuenta",verificationCodeLabel:"Código de verificación",confirmAccountButton:"Confirmar cuenta",alreadyConfirmedText:"¿Ya confirmaste antes?",successTitle:"Confirmación completa.",successMessage:"Ya eres parte de la comunidad!",passwordRuleMinLength:"La contraseña debe tener al menos 8 caracteres",passwordRuleNumber:"Usa un número",passwordRuleLowercase:"Usa una letra minúscula",passwordRuleUppercase:"Usa una letra mayúscula",passwordRuleSymbol:"Usa un símbolo",errorCompleteFields:"Complete todos los campos",errorPasswordMismatch:"Las contraseñas no coinciden",errorPasswordInvalid:"La contraseña no es válida",errorVerificationCodeRequired:"Debes ingresar el código de verificación",errorUnexpected:"Error inesperado"},ot={email:{label:"Email"},given_name:{label:"Nombre"},family_name:{label:"Apellido"},password:{label:"Contraseña"},confirmPassword:{label:"Confirmar contraseña"}};function Hc(e){return{email:{label:e?.email??ot.email.label,required:!0},given_name:{label:e?.given_name??ot.given_name.label,required:!0},family_name:{label:e?.family_name??ot.family_name.label,required:!0},password:{label:e?.password??ot.password.label,required:!0},confirmPassword:{label:e?.confirmPassword??ot.confirmPassword.label,required:!0}}}const Ee=[e=>e.length>=8,e=>/\d/.test(e),e=>/[a-z]/.test(e),e=>/[A-Z]/.test(e),e=>/[^A-Za-z0-9]/.test(e)],on=[{label:"La contraseña debe tener al menos 8 caracteres",test:Ee[0]},{label:"Usa un número",test:Ee[1]},{label:"Usa una letra minúscula",test:Ee[2]},{label:"Usa una letra mayúscula",test:Ee[3]},{label:"Usa un símbolo",test:Ee[4]}];function Vc({texts:e,API_ENV:t,termsAndConditionsUrl:a}){const r={...Fc,...e?.comentarios},n=I.useMemo(()=>Hc(e?.comentarios?.registerForm),[e?.comentarios?.registerForm]),o=I.useMemo(()=>[{label:r.passwordRuleMinLength,test:Ee[0]},{label:r.passwordRuleNumber,test:Ee[1]},{label:r.passwordRuleLowercase,test:Ee[2]},{label:r.passwordRuleUppercase,test:Ee[3]},{label:r.passwordRuleSymbol,test:Ee[4]}],[r.passwordRuleMinLength,r.passwordRuleNumber,r.passwordRuleLowercase,r.passwordRuleUppercase,r.passwordRuleSymbol]),[i,l]=I.useState({}),[h,c]=I.useState(!1),[d,u]=I.useState(!1),[m,p]=I.useState(null),[f,g]=I.useState("register"),A=async()=>{if(t.PUBLIC_ENV==="local"){await fetch("/api/auth/debug-login",{method:"GET",credentials:"include"});return}const w=encodeURIComponent(window.location.pathname);window.location.href=`/api/auth/login?redirect=${w}`},b=(w,U)=>{l(P=>({...P,[w]:U}))},E=async w=>{w.preventDefault(),p(null),u(!0);try{const U=Object.keys(n).filter(V=>!["username","password","confirmPassword"].includes(V)).map(V=>({Name:V,Value:i[V]}));if(U.some(V=>{if(!V.Value||V.Value.trim()==="")return!0}))return u(!1),p(r.errorCompleteFields);if(i.password!==i.confirmPassword){p(r.errorPasswordMismatch);return}const P=i.password||"";if(o.some(V=>!V.test(P))){p(r.errorPasswordInvalid);return}const Y=Math.floor(Date.now()/1e3);U.push({Name:"updated_at",Value:String(Y)});const F=t.PUBLIC_ENV==="local"?"token":await Vs("comment_register",t.CAPTCHA_KEY??"");if(!F)throw new Error("Captcha token no generado");const B=await fetch("/api/auth/create-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:i.email,password:i.password,userAttributes:U,token:F})});if(!B.ok){const V=await B.json().catch(()=>({}));if(V.code==="UsernameExistsException"){await fetch("/api/auth/resend-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:i.email})}),g("confirm");return}throw new Error(V?.error||"Error al crear usuario")}g("confirm")}catch(U){console.log(U),p(U?.message||U?.error||r.errorUnexpected)}finally{u(!1)}},N=async w=>{if(w.preventDefault(),!i.confirmationCode){p(r.errorVerificationCodeRequired);return}p(null),u(!0);try{const U=await fetch("/api/auth/confirm-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:i.email,code:i.confirmationCode})});if(!U.ok){const P=await U.json().catch(()=>({}));throw new Error(P?.error||"Error al confirmar usuario")}g("success")}catch(U){p(U?.message||r.errorUnexpected)}finally{u(!1)}},S=i.password||"";return s.jsxs(s.Fragment,{children:[f==="register"&&s.jsxs(s.Fragment,{children:[s.jsxs("button",{onClick:A,className:"sass-pg-login-google",children:[s.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:"sass-pg-login-googleIcon"}),s.jsx("span",{children:r.GoogleButtonText})]}),s.jsx("div",{className:"sass-pg-login-divider",children:s.jsx("span",{children:"o"})}),s.jsxs("form",{onSubmit:E,className:"sass-pg-login-form","data-error":m?"true":"false",children:[s.jsx("ul",{className:"sass-pg-login-formUl",children:Object.entries(n).map(([w,{label:U}])=>s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:U}),s.jsx("input",{type:w.toLowerCase().includes("password")?h?"text":"password":w==="birthdate"?"date":w==="email"?"email":w==="phone_number"?"tel":"text",name:w,value:i[w]||"",onChange:P=>b(w,P.target.value),className:"sass-pg-login-input",placeholder:""}),w==="password"&&s.jsx("div",{className:"sass-pg-login-passwordChecker",children:o.map((P,H)=>{const Y=P.test(S);return s.jsxs("div",{className:Y?"sass-pg-login-valid":"sass-pg-login-invalid",children:[s.jsx("div",{children:Y?"✔":"○"}),s.jsx("div",{children:P.label})]},H)})}),w==="confirmPassword"&&s.jsxs("div",{className:"sass-pg-login-checkboxRow",children:[s.jsx("input",{id:"showPasswordRegister",type:"checkbox",checked:h,onChange:P=>c(P.target.checked)}),s.jsx("label",{htmlFor:"showPasswordRegister",className:"sass-pg-login-checkboxLabel",children:r.showPasswordsLabel})]})]},w))}),m&&s.jsx("p",{className:"sass-pg-login-error",children:m}),s.jsxs("p",{className:"sass-pg-login-terms",children:[r.termsPrefix," ",s.jsx("a",{href:a??"/pages/terminos-y-condiciones",target:"_blank",children:r.termsLinkText})," ",r.termsSuffix]}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",disabled:d,children:d?s.jsx($e,{}):r.createAccountButton})]})]}),f==="confirm"&&s.jsxs("form",{onSubmit:N,className:"sass-pg-login-form","data-error":m?"true":"false",children:[s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:r.verificationCodeLabel}),s.jsx("input",{type:"text",name:"confirmationCode",value:i.confirmationCode||"",onChange:w=>b("confirmationCode",w.target.value),className:"sass-pg-login-input",required:!0})]}),m&&s.jsx("p",{className:"sass-pg-login-error",children:m}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",disabled:d,children:d?s.jsx($e,{}):r.confirmAccountButton}),s.jsxs("p",{className:"sass-pg-login-switch",children:[r.alreadyConfirmedText,s.jsx("a",{className:"sass-pg-login-toRegister",href:"./login",children:r.loginButtonText})]})]}),f==="success"&&s.jsxs("form",{className:"sass-pg-login-form",children:[s.jsxs("div",{className:"sass-pg-login-successContainer",children:[s.jsx("div",{className:"sass-pg-login-thumbsUp",children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:132,height:120,fill:"none",children:s.jsx("path",{fill:"currentColor",d:"M119.249 42.357H81.915l5.621-27.039.177-1.893a8.906 8.906 0 0 0-2.603-6.272L78.838.941 39.907 39.93c-2.19 2.13-3.491 5.089-3.491 8.343v59.167c0 6.508 5.325 11.833 11.833 11.833h53.25c4.911 0 9.112-2.958 10.887-7.218l17.868-41.713c.533-1.36.829-2.78.829-4.32V54.192c0-6.509-5.325-11.834-11.834-11.834Zm0 23.667-17.75 41.417h-53.25V48.274l25.679-25.678L67.36 54.19h51.889v11.833ZM.916 48.274h23.667v71H.916v-71Z"})})}),s.jsxs("div",{className:"sass-pg-login-successMessage",children:[s.jsx("p",{children:r.successTitle}),s.jsx("p",{children:r.successMessage})]})]}),s.jsx("a",{href:"./login",type:"submit",className:"sass-pg-login-primary",children:r.loginButtonText})]}),f==="register"&&s.jsxs("p",{className:"sass-pg-login-switch",children:[r.alreadyHasAccountText,s.jsx("a",{className:"sass-pg-login-toRegister",href:"./login",children:r.loginButtonText})]})]})}const zc={title:"",button:"",commentPromptMessage:"Súmate a la comunidad para dejar tu comentario",email:"Email",password:"Contraseña",showPassword:"Mostrar contraseña",loginButtonText:"Iniciar Sesión",backButton:"Volver",GoogleButtonText:"Continuar con Google",noAccountText:"¿No tienes cuenta?",alreadyHasAccountText:"¿Ya tienes cuenta?",registerButtonText:"Registrate",forgotPasswordText:"Olvidé mi contraseña",forgotMessage:"Ingrese su dirección de correo electrónico. Le enviaremos un mensaje con un código para restablecer la contraseña.",sendCodeButton:"Enviar código",changePasswordMessage:"Hemos enviado un código de restablecimiento de contraseña en un mensaje de Correo electrónico a {{email}}. Ingrese el código y la contraseña nueva.",verificationCodeLabel:"Código de verificación",newPasswordLabel:"Nueva contraseña",confirmPasswordLabel:"Confirmar contraseña",showPasswordsLabel:"Mostrar contraseñas",changePasswordButton:"Cambiar contraseña",feedbackSuccessMessage:"La contraseña fue cambiada con éxito"};function Wc({API_ENV:e,texts:t}){const a={...zc,...t?.comentarios},[r,n]=I.useState("login"),[o,i]=I.useState(""),[l,h]=I.useState(""),[c,d]=I.useState(""),[u,m]=I.useState(""),[p,f]=I.useState(""),[g,A]=I.useState(!1),[b,E]=I.useState(!1),[N,S]=I.useState(null);I.useEffect(()=>{if(typeof window>"u")return;window.location.hash.includes("forgot")&&r==="login"&&n("forgot"),r==="login"&&U()});const w=B=>document.cookie.split("; ").find(V=>V.startsWith(B+"="))?.split("=")[1],U=async()=>{if(document.cookie.search(e.COGNITO_AUTH_PREFIX+"IS_AUTH=true")!==-1){if(!window)return;const B=w("redirect_after_login_1");console.log("Redirect path after login:",B,document.cookie,document.cookie.search("redirect_after_login_1=")!==-1),B&&B!==""?(window.location.pathname=B,window.location.hash="comentarios"):window.location.pathname="/auth/success"}},P=async()=>{if(e.PUBLIC_ENV==="local"){await fetch("/api/auth/debug-login",{method:"GET",credentials:"include"});return}let B="/auth/login";const V=w("redirect_after_login_1");V&&V!==""&&(B=V),window.location.href=`/api/auth/login?redirect=${B}`},H=async B=>{if(!b){if(B.preventDefault(),o===""||l===""){S("Complete todos los campos");return}S(null),E(!0);try{const V=e.PUBLIC_ENV==="local"?"token":await Vs("comment_login",e.CAPTCHA_KEY||"");if(!V)throw new Error("Captcha token no generado");const te=await fetch("/api/auth/login-password",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:o,password:l,token:V})});if(!te.ok){const _=await te.json().catch(()=>({}));throw new Error(_?.error||"Ha ocurrido un error")}await U();return}catch(V){S(V?.message||"Error inesperado")}finally{E(!1)}}},Y=async B=>{if(!b){B.preventDefault(),S(null),E(!0);try{const V=await fetch("/api/auth/forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:o})});if(!V.ok){const te=await V.json().catch(()=>({}));throw new Error(te?.error||"Error al enviar código")}h(""),n("changePassword")}catch(V){S(V?.message||"Error inesperado")}finally{E(!1)}}},F=async B=>{if(b)return;if(B.preventDefault(),u!==p){S("Las contraseñas no coinciden");return}if(on.some(te=>!te.test(u))){S("La contraseña no cumple con los requisitos");return}S(null),E(!0);try{const te=await fetch("/api/auth/confirm-forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:o,code:c,newPassword:u})});if(!te.ok){const _=await te.json().catch(()=>({}));throw new Error(_?.error||"Error al cambiar contraseña")}n("feedback")}catch(te){S(te?.message||"Error inesperado")}finally{E(!1)}};return s.jsxs(s.Fragment,{children:[r==="login"&&s.jsx(Yc,{email:o,password:l,showPassword:g,loading:b,error:N,setEmail:i,setPassword:h,setShowPassword:A,onSubmit:H,onForgot:()=>{S(null),n("forgot")},handleGoogleLogin:P,t:a}),r==="forgot"&&s.jsx(Kc,{email:o,setEmail:i,loading:b,error:N,onSubmit:Y,onBack:()=>{S(null),n("login")},t:a}),r==="changePassword"&&s.jsx($c,{email:o,confirmationCode:c,newPassword:u,confirmNewPassword:p,showPassword:g,loading:b,error:N,setConfirmationCode:d,setNewPassword:m,setConfirmNewPassword:f,setShowPassword:A,onSubmit:F,onBack:()=>{S(null),n("forgot")},t:a}),r==="feedback"&&s.jsx(Zc,{onBackToLogin:()=>{S(null),n("login")},t:a})]})}function Yc({email:e,password:t,showPassword:a,loading:r,error:n,setEmail:o,setPassword:i,setShowPassword:l,onSubmit:h,onForgot:c,handleGoogleLogin:d,t:u}){return s.jsxs(s.Fragment,{children:[s.jsxs("button",{onClick:d,className:"sass-pg-login-google",children:[s.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:"sass-pg-login-googleIcon"}),s.jsx("span",{children:u.GoogleButtonText})]}),s.jsx("div",{className:"sass-pg-login-divider",children:s.jsx("span",{children:"o"})}),s.jsxs("form",{onSubmit:h,className:"sass-pg-login-form","data-error":n?"true":"false",children:[s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:u.email}),s.jsx("input",{type:"email",value:e,onChange:m=>o(m.target.value),className:"sass-pg-login-input",placeholder:""})]}),s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:u.password}),s.jsx("input",{type:a?"text":"password",value:t,onChange:m=>i(m.target.value),className:"sass-pg-login-input",placeholder:""}),s.jsxs("div",{className:"sass-pg-login-checkboxRow",children:[s.jsx("input",{id:"showPasswordLogin",type:"checkbox",checked:a,onChange:m=>l(m.target.checked)}),s.jsx("label",{htmlFor:"showPasswordLogin",className:"sass-pg-login-checkboxLabel",children:u.showPassword})]})]}),n&&s.jsx("p",{className:"sass-pg-login-error",children:n}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",disabled:r,children:r?s.jsx($e,{className:"sass-pg-login-spin"}):u.loginButtonText})]}),s.jsxs("p",{className:"sass-pg-login-switch",children:[u.noAccountText,s.jsx("a",{className:"sass-pg-login-toRegister",href:"./register",children:u.registerButtonText})]}),s.jsx("button",{type:"button",className:"sass-pg-login-forgotPassword",onClick:c,children:u.forgotPasswordText})]})}function Kc({email:e,setEmail:t,loading:a,error:r,onSubmit:n,onBack:o,t:i}){return s.jsxs("form",{onSubmit:n,className:"sass-pg-login-form","data-error":r?"true":"false",children:[s.jsx("p",{className:"sass-pg-login-message",children:i.forgotMessage}),s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:i.email}),s.jsx("input",{type:"email",value:e,name:"email",onChange:l=>t(l.target.value),className:"sass-pg-login-input",placeholder:""})]}),r&&s.jsx("p",{className:"sass-pg-login-error",children:r}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",disabled:a,children:a?s.jsx($e,{}):i.sendCodeButton}),s.jsx("p",{className:"sass-pg-login-switch",style:{margin:"0 0 16px"},children:s.jsx("button",{type:"button",onClick:o,children:i.backButton})})]})}function Jc(e){const[t,a]=e.split("@");if(!t||!a)return e;let r="";t.length<=2?r=t[0]+"*":r=t[0]+"*".repeat(t.length-2)+t[t.length-1];const n=a.lastIndexOf(".");if(n===-1)return`${r}@${a}`;const o=a.slice(0,n),i=a.slice(n);let l="";return o.length<=2?l=o[0]+"*":l=o[0]+"*".repeat(o.length-2)+o[o.length-1],`${r}@${l}${i}`}function $c({email:e,confirmationCode:t,newPassword:a,confirmNewPassword:r,showPassword:n,loading:o,error:i,setConfirmationCode:l,setNewPassword:h,setConfirmNewPassword:c,setShowPassword:d,onSubmit:u,onBack:m,t:p}){const f=p.changePasswordMessage.replace("{{email}}",Jc(e));return s.jsxs("form",{onSubmit:u,className:"sass-pg-login-form","data-error":i?"true":"false",children:[s.jsx("p",{className:"sass-pg-login-message",children:f}),s.jsxs("ul",{className:"sass-pg-login-formUl",children:[s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:p.verificationCodeLabel}),s.jsx("input",{type:"text",value:t,onChange:g=>l(g.target.value),className:"sass-pg-login-input",placeholder:""})]}),s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:p.newPasswordLabel}),s.jsx("input",{type:n?"text":"password",value:a,onChange:g=>h(g.target.value),className:"sass-pg-login-input",placeholder:"",name:"password"}),s.jsx("div",{className:"sass-pg-login-passwordChecker",children:on.map((g,A)=>{const b=g.test(a);return s.jsxs("div",{className:b?"sass-pg-login-valid":"sass-pg-login-invalid",children:[s.jsx("div",{children:b?"✔":"○"}),s.jsx("div",{children:g.label})]},A)})})]}),s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:p.confirmPasswordLabel}),s.jsx("input",{type:n?"text":"password",value:r,onChange:g=>c(g.target.value),className:"sass-pg-login-input",placeholder:""}),s.jsxs("div",{className:"sass-pg-login-checkboxRow",children:[s.jsx("input",{id:"showPasswordForgot",type:"checkbox",checked:n,onChange:g=>d(g.target.checked)}),s.jsx("label",{htmlFor:"showPasswordForgot",className:"sass-pg-login-checkboxLabel",children:p.showPasswordsLabel})]})]})]}),i&&s.jsx("p",{className:"sass-pg-login-error",children:i}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",style:{maxWidth:o?"revert-layer":"fit-content"},disabled:o,children:o?s.jsx($e,{}):p.changePasswordButton}),s.jsx("p",{className:"sass-pg-login-switch",children:s.jsx("button",{type:"button",onClick:m,children:p.backButton})})]})}function Zc({onBackToLogin:e,t}){return s.jsxs("div",{className:"sass-pg-login-form",children:[s.jsx("p",{className:"sass-pg-login-success",children:t.feedbackSuccessMessage}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",onClick:e,children:t.loginButtonText})]})}function Xc({containerId:e,containerId2:t}){return I.useEffect(()=>{try{let a=function(){const d=window.twttr;d?.widgets?d.widgets.load(r):c<10?(c++,requestAnimationFrame(a)):console.warn("No se pudo cargar widgets de Twitter")};const r=document.getElementById(e),n=document.getElementById(t);if(!r&&!n)return;const o=r?.querySelectorAll("script[src]")??[],i=n?.querySelectorAll("script[src]")??[];[...o,...i].forEach(d=>{const u=document.createElement("script");Array.from(d.attributes).forEach(m=>{u.setAttribute(m.name,m.value)}),d.replaceWith(u)});const h=document.querySelectorAll('script[src*="platform.twitter.com/widgets.js"]');if(h)for(let d=0;d<h.length;d++)h[d]?.remove();let c=0;if(document.querySelector('script[src*="platform.twitter.com/widgets.js"]'))a();else{const d=document.createElement("script");d.src="https://platform.twitter.com/widgets.js",d.async=!0,d.onload=a,document.body.appendChild(d)}}catch(a){console.warn("Error al procesar embeds de Twitter",a)}},[e]),null}const Rc=({currentNew:e})=>e&&e?.hascontent?.hasembeddedtwitter&&s.jsx("script",{src:"https://platform.twitter.com/widgets.js"}),ed=e=>{const{isVideo:t=!1,isLarge:a=!1,hasShadow:r=!1,BackDropAuxHeigthMobile:n}=e,o=ws(),i=I.useMemo(()=>{const m=e?.preview?.sizes;if(m&&Array.isArray(m)&&m.length>0)return m;const p=e?.preview?.original;return p?.url?[{url:p.url,width:p.width||0,height:p.height||0}]:[]},[e?.preview?.sizes,e?.preview?.original]);if(!i.length||!i[0]?.url||i[0]?.url==="")return s.jsx("div",{className:"sass-com-img-imagePlaceholder"});const{PUBLIC_API_HOST:l="",PUBLIC_ASSETS_URL:h}=e.API_ENV,c=i[0]?.url,d=h&&h!=="false"?h:l,u=c?.startsWith("http")||c?.includes(d)?c:d+c;return s.jsx("figure",{className:"sass-com-img-figure",children:s.jsxs("span",{className:"sass-com-img-backdrop",children:[s.jsx("span",{className:"sass-com-img-backdropAux",style:{height:n||"56.25%"}}),s.jsxs("picture",{children:[s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-img-imageStyled",alt:e.preview?.description||"",src:u,style:{boxShadow:r?"0px 4px 8px 0px #00000033":"0px"}}),t&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"sass-com-img-boxPlayIcon",style:{height:a?"40%":"72px"}}),s.jsx(o,{className:"sass-com-img-playStyled",style:{width:a?"3rem":"27px",height:a?"3rem":"27px",marginBottom:a?"18px":".5rem",marginLeft:a?"30px":".5rem"}})]})]})]})})},td=e=>s.jsx("svg",{width:"41",height:"33",viewBox:"0 0 41 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M17.9576 21.2985C16.8233 21.2985 15.9277 22.194 15.9277 23.3283C15.9277 24.4627 16.8233 25.3582 17.9576 25.3582C19.0919 25.3582 19.9874 24.4627 19.9874 23.3283C19.9874 22.194 19.0919 21.2985 17.9576 21.2985ZM17.9576 19.2686C19.0919 19.2686 19.9874 18.3731 19.9874 17.2388C19.9874 16.1045 19.0919 15.2089 17.9576 15.2089C16.8233 15.2089 15.9277 16.1045 15.9277 17.2388C15.9277 18.3731 16.8233 19.2686 17.9576 19.2686ZM17.9576 13.1791C19.0919 13.1791 19.9874 12.2836 19.9874 11.1492C19.9874 10.0149 19.0919 9.11938 17.9576 9.11938C16.8233 9.11938 15.9277 10.0149 15.9277 11.1492C15.9277 12.2836 16.8233 13.1791 17.9576 13.1791Z",fill:"#7B888A"})}),ln={info:{section:{name:"",slug:"",url:""},link:{url:"/",target:"",canonical:!1,internal:""},date:{date:"",created:0,modified:0,firstpublish:0,lastpublish:0}},config:{zonehome:void 0,priorityhome:"",zonesection:"",prioritysection:"",homepreview:"",showcomments:!0,showtime:!0,showauthor:!0,showuppertitle:!0,showsubtitle:!0,showads:!0},main:{title:{home:"",section:"",article:""},subtitle:{rendered:"",striped:""},tags:[]},authors:[{firstname:"",lastname:"",fullname:"",image:void 0,name:"",internaluser:!1}],preview:void 0},sd=({section:e,internalPath:t,banner:a,isVisible:r=!1,stylesConfig:n,API_ENV:o,fetchConfig:i,paths:l})=>{const h=o.FETCH_SIZE_MORE_NEWS??6,[c,d]=I.useState({data:Array.from({length:h},()=>ln)}),[u,m]=I.useState(!1),p=I.useCallback(async()=>{if(!t)return;const A=new URLSearchParams({section:e,currentNewsLink:t}),b=await fetch(`/api/get-more-news?${A}`);if(!b.ok)throw new Error(`HTTP error! status: ${b.status}`);return await b.json()},[e,t]),f=I.useCallback(async()=>{const{PUBLIC_API_FRONT:A,PUBLIC_X_SECURITY_TOKEN:b,PUBLIC_API_PATH_VERSION:E,PUBLIC_PUBLICATION_ID:N}=o;if(!A||!b||!N||!E)throw new Error("Missing required environment variables");const S=await re.get(`${A}${E}/news-list-section`,{params:{size:h+1,newstype:i.newsType,section:e,imagesizes:i.imgSizes,publication:parseInt(N)},headers:{"x-api-token":b,"Content-Type":"application/json"}});return{...S.data,data:S.data.data.filter(w=>w.info.link.internal!==t)}},[e,t,o]),g=I.useCallback(async()=>{if(!(u||!t)){m(!0);try{let A;o.PUBLIC_ENV!=="prod"?A=await p():A=await f(),d({...A,data:A.data.slice(0,h)})}catch(A){console.error("[/api/get-more-news] Error:",A.message),d(void 0)}}},[u,t,o.PUBLIC_ENV,p,f]);return I.useEffect(()=>{r&&g()},[r,g]),!c?.data||c.data.length===0?null:s.jsx(ad,{news:c.data,title:"Más Noticias",...n["Modulo 1x3 Client"]??n["Modulo 1x3"],hasLines:!0,showSubtitle:!0,rounded:!0,banner:a,API_ENV:o,paths:l,isVisible:r})},ad=e=>{const{news:t,hasLines:a=!1,API_ENV:r}=e,n=o=>a&&(o+1)%3!==0?"sass-bd-m13-contentSeparator":"";return s.jsx("div",{className:"su-grid su-justify-center sass-bd-m13-newsContent",style:{gap:a?"30px":"20px","--gridTemplateModlule":a?"repeat(auto-fit, 343px);":"repeat(auto-fit, 380px);"},children:t.map((o,i)=>{const{main:l,authors:h,info:c,preview:d,isVideo:u=!1,config:m,overImage:p="default",isTitle:f=!1,isLarge:g=!1,keywords:A}=o;return s.jsx("div",{className:n(i),style:{order:i},children:s.jsxs("section",{className:"sass-com-sc1-content",children:[s.jsx(M,{title:l?.title?.section,href:c?.link?.url??"invalidUrl","aria-label":l?.title?.section??"nota",target:c?.link?.target,children:s.jsx(ed,{isVisible:e.isVisible,preview:d,rounded:e.rounded,isVideo:u,isLarge:g,API_ENV:e.API_ENV,getImageUrl:e.getImageUrl})}),s.jsx("div",{className:"sass-com-sc1-newsDescription",children:s.jsx(rd,{main:l,SHOW_TAG_BY_SECTION:r.SHOW_TAG_BY_SECTION,authors:h,info:c,preview:d,share:e.share,config:m,overImage:p,isTitle:f,paths:e.paths,isVisible:e.isVisible,DATE_CONFIG:e.API_ENV,keywords:A})})]})},i)})})},rd=e=>{const{share:t=!1,cutSubtitle:a=!0,SHOW_TAG_BY_SECTION:r,keywords:n,info:o}=e,l=(()=>{if(!e?.authors||e.authors.length===0)return"";const d=e.authors[0],u=Ce(e.info?.date?.modified,e.DATE_CONFIG);return d&&e?.config?.showtime&&e.config?.showauthor?`${d.fullname} - ${u}`:d&&e.config?.showauthor?d.fullname:(e?.config?.showtime,"")})(),h=()=>e.main.uppertitle?s.jsx("p",{className:"sass-com-nd-uppertitle",title:e.main.uppertitle,children:e.main.uppertitle}):null,c=()=>{if(r&&n?.tags?.length&&n.tags.length>0){const d=n.tags[0],u=d.name;return s.jsxs("h3",{className:"sass-com-nd-sectionDescriptionContainer",children:[d.approved?s.jsx(M,{"aria-label":u,block_subPublication:e.DATE_CONFIG?.SUB_PUBLICATION_PREFIX_IN_ROUTES?.tema,className:"sass-com-nd-sectionDescription",href:Ue(d,e.paths),children:u}):s.jsx("div",{className:"sass-com-nd-sectionDescription",children:u}),h()]})}else if(o?.section?.url){const d=o.section.name;return s.jsxs("h3",{className:"sass-com-nd-sectionDescriptionContainer",children:[s.jsx(M,{"aria-label":d,className:"sass-com-nd-sectionDescription",href:o.section.url,children:d}),h()]})}return null};return s.jsxs("div",{className:"sass-com-nd-boxInformation",children:[t&&s.jsx(td,{className:"sass-com-nd-dotStyles"}),s.jsx(c,{}),s.jsx("h2",{className:"sass-com-nd-articule",children:s.jsx(M,{className:"sass-com-nd-linkStyled",style:{"--isLink":e?.info?.link?.url?"underline":"none"},"aria-label":e.main?.title?.section??"nota",href:e?.info?.link?.url,target:e?.info?.link?.target,children:e.main?.title?.section})}),e.config?.showsubtitle&&e.main?.subtitle?.striped&&s.jsx("p",{className:"sass-com-nd-description",style:{"--fontSizeSubTitle":e.fontSizeSubTitle,"--lineHeightSubTitle":e.lineHeightSubTitle,"--colorSubTitle":e.colorSubTitle},children:a?ye(e.main?.subtitle?.striped):e.main?.subtitle?.striped}),(e?.config?.showtime||e.config?.showauthor)&&l&&s.jsx(s.Fragment,{children:e.authors?.[0]?.internaluser?s.jsx(M,{block_subPublication:e.DATE_CONFIG?.SUB_PUBLICATION_PREFIX_IN_ROUTES?.autor,className:"sass-com-nd-correspondentLink",href:`/${e.paths.autor}/${e.authors[0].name}`,children:l}):s.jsx("div",{className:"sass-com-nd-correspondent",children:l})})]})},nd={userGreeting:"Hola {{name}}!",logoutButton:"Cerrar Sesion"},od=({user:e,handleLogout:t,message:a,texts:r})=>{const n={...nd,...r?.comentarios},o=()=>{const h=document.querySelector(".user-actions-options");h&&h.classList.toggle("show")},i=e.firstname??"Usuario",l=n.userGreeting.replace("{{name}}",i);return s.jsx("div",{className:"comment-item",children:s.jsxs("div",{style:{display:"flex",gap:"14px"},children:[e&&e.picture&&e.picture!==""?s.jsx("img",{className:"comment-avatar-img su-h-full",src:e.picture,alt:e.username}):s.jsx("div",{className:"comment-avatar su-flex-center su-rounded-full su-font-bold su-overflow-hidden",children:i.charAt(0).toUpperCase()}),s.jsxs("div",{style:{flex:1},children:[s.jsxs("div",{className:"comment-header su-flex su-items-center su-relative su-flex-wrap",children:[s.jsx("span",{className:"comment-username su-font-bold su-truncate user-welcome",children:l}),s.jsx("div",{className:"user-actions-options su-hidden su-absolute su-p-2",children:s.jsx("button",{className:"su-bg-transparent su-border-none",onClick:()=>{t()},children:n.logoutButton})}),s.jsx("button",{className:"user-actions-span",onClick:o,children:s.jsx(Mt,{width:13,height:13,fill:"black"})})]}),s.jsx("p",{className:"comment-text su-font-normal",children:a})]})]})})},cn=async(e,t)=>{if(!e)return!1;const{CAPTCHA_PROJECT:a,CAPTCHA_KEY_V2:r,COMMENTS_CAPTCHA_API_KEY:n}=t;try{const o=a,i=r,c=await(await fetch(`https://recaptchaenterprise.googleapis.com/v1/projects/${o}/assessments?key=${n}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:{token:e,siteKey:i}})})).json();return console.log("reCAPTCHA Enterprise verification result:",c),c.tokenProperties?.valid===!0}catch(o){return console.error("Error verificando reCAPTCHA Enterprise:",o),!1}};async function id({publication:e,username:t,id:a,type:r,baseUrl:n,captchaToken:o,apiToken:i,securityToken:l,COMMENTS_VARS:h}){if(!e||!t||!a||!r||!o)throw new Error("Faltan parámetros requeridos: publication, username, id, type, captchaToken");if(typeof e!="string"||typeof t!="string"||typeof a!="string"||typeof r!="string"||typeof o!="string")throw new Error("Todos los parámetros deben ser strings");if(!await cn(o,h))throw new Error("Token de captcha inválido");if(!i)throw new Error("Falta el token de API del CMS");const c=`${n}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/report`,d=encodeURIComponent(r),u=new URLSearchParams({publication:e,username:t??!1,id:a,type:d}),m=`${c}?${u.toString()}`;try{console.log("Reporting comment:",{publication:e,username:t,id:a,type:r,encodedType:d,url:m});const p=await re.get(m,{headers:{"User-Agent":"blu3st@ck-react","x-security-token":l,"x-api-token":i,"Content-Type":"application/json"}});if(console.log("Report response:",p.data),p.status===200||p.status===201)return{type:"success",message:"Comentario reportado exitosamente",status:p.status,data:p.data};throw new Error(`Respuesta inesperada del servidor: ${p.status}`)}catch(p){if(console.error("Error reporting comment:",p),re.isAxiosError(p)){const f=p.response?.status,g=p.response?.data;throw f===400?new Error("Datos inválidos para el reporte"):f===401?new Error("Token de API inválido"):f===403?new Error("Acceso denegado para reportar comentario"):f===404?new Error("Comentario no encontrado"):f===409?new Error("El comentario ya fue reportado por este usuario"):f===500?new Error("Error interno del servidor CMS"):new Error(g?.error||g?.message||`Error HTTP ${f}: No se pudo reportar el comentario`)}throw p}}const _t={spam:"Es spam o contenido comercial no deseado",inappropriate:"Lenguaje inadecuado",hate:"Discurso o símbolos de odio",misinformation:"Información falsa o fraude",terrorism:"Promueve el terrorismo",intellectual:"Violación de propiedad intelectual",bullying:"Bullying o acoso"};function ld(e){return _t[e]}const Te=300,Ie={username:"anonimo",firstname:"Usuario",lastname:"Anonimo"};function cd(e){const t=e.split(" ");if(t.length!==3)return e;const[a,r,n]=t,o=r.charAt(0).toUpperCase()+r.slice(1).toLowerCase();return`${a} ${o} ${n}`}const Gt=(e,t,a)=>{if(!e||!e.current)return{boolean:!1,text:""};const r=e.current?.value||"",n=r.length>Te,{PUBLIC_ENV:o}=a,i=o==="local",l=r.trim()!==""&&(i||t!=="")&&!n,h=n?`No debes exceder el limite de ${Te} caracteres.`:"Debes completar todos los campos para comentar.";return{boolean:l,text:h}},dn=e=>{const t=e.cookie.split("; ").find(a=>a.startsWith("reported="));if(!t)return[];try{return JSON.parse(decodeURIComponent(t.split("=")[1]??""))}catch{return[]}},dd=(e,t)=>{const a=dn(e);a.includes(t)||(a.push(t),e.cookie=`reported=${encodeURIComponent(JSON.stringify(a))}; path=/; max-age=${3600*24*1}`)};var jt={exports:{}},Qt={exports:{}},se={};var hn;function hd(){if(hn)return se;hn=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function N(w){if(typeof w=="object"&&w!==null){var U=w.$$typeof;switch(U){case t:switch(w=w.type,w){case h:case c:case r:case o:case n:case u:return w;default:switch(w=w&&w.$$typeof,w){case l:case d:case f:case p:case i:return w;default:return U}}case a:return U}}}function S(w){return N(w)===c}return se.AsyncMode=h,se.ConcurrentMode=c,se.ContextConsumer=l,se.ContextProvider=i,se.Element=t,se.ForwardRef=d,se.Fragment=r,se.Lazy=f,se.Memo=p,se.Portal=a,se.Profiler=o,se.StrictMode=n,se.Suspense=u,se.isAsyncMode=function(w){return S(w)||N(w)===h},se.isConcurrentMode=S,se.isContextConsumer=function(w){return N(w)===l},se.isContextProvider=function(w){return N(w)===i},se.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},se.isForwardRef=function(w){return N(w)===d},se.isFragment=function(w){return N(w)===r},se.isLazy=function(w){return N(w)===f},se.isMemo=function(w){return N(w)===p},se.isPortal=function(w){return N(w)===a},se.isProfiler=function(w){return N(w)===o},se.isStrictMode=function(w){return N(w)===n},se.isSuspense=function(w){return N(w)===u},se.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===c||w===o||w===n||w===u||w===m||typeof w=="object"&&w!==null&&(w.$$typeof===f||w.$$typeof===p||w.$$typeof===i||w.$$typeof===l||w.$$typeof===d||w.$$typeof===A||w.$$typeof===b||w.$$typeof===E||w.$$typeof===g)},se.typeOf=N,se}var ae={};var un;function ud(){return un||(un=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function N(D){return typeof D=="string"||typeof D=="function"||D===r||D===c||D===o||D===n||D===u||D===m||typeof D=="object"&&D!==null&&(D.$$typeof===f||D.$$typeof===p||D.$$typeof===i||D.$$typeof===l||D.$$typeof===d||D.$$typeof===A||D.$$typeof===b||D.$$typeof===E||D.$$typeof===g)}function S(D){if(typeof D=="object"&&D!==null){var de=D.$$typeof;switch(de){case t:var Kt=D.type;switch(Kt){case h:case c:case r:case o:case n:case u:return Kt;default:var Ln=Kt&&Kt.$$typeof;switch(Ln){case l:case d:case f:case p:case i:return Ln;default:return de}}case a:return de}}}var w=h,U=c,P=l,H=i,Y=t,F=d,B=r,V=f,te=p,_=a,L=o,k=n,G=u,x=!1;function W(D){return x||(x=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),C(D)||S(D)===h}function C(D){return S(D)===c}function T(D){return S(D)===l}function q(D){return S(D)===i}function Q(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function j(D){return S(D)===d}function z(D){return S(D)===r}function K(D){return S(D)===f}function J(D){return S(D)===p}function R(D){return S(D)===a}function ee(D){return S(D)===o}function $(D){return S(D)===n}function ne(D){return S(D)===u}ae.AsyncMode=w,ae.ConcurrentMode=U,ae.ContextConsumer=P,ae.ContextProvider=H,ae.Element=Y,ae.ForwardRef=F,ae.Fragment=B,ae.Lazy=V,ae.Memo=te,ae.Portal=_,ae.Profiler=L,ae.StrictMode=k,ae.Suspense=G,ae.isAsyncMode=W,ae.isConcurrentMode=C,ae.isContextConsumer=T,ae.isContextProvider=q,ae.isElement=Q,ae.isForwardRef=j,ae.isFragment=z,ae.isLazy=K,ae.isMemo=J,ae.isPortal=R,ae.isProfiler=ee,ae.isStrictMode=$,ae.isSuspense=ne,ae.isValidElementType=N,ae.typeOf=S})()),ae}var mn;function Es(){return mn||(mn=1,process.env.NODE_ENV==="production"?Qt.exports=hd():Qt.exports=ud()),Qt.exports}var Ts,fn;function md(){if(fn)return Ts;fn=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function n(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var i={},l=0;l<10;l++)i["_"+String.fromCharCode(l)]=l;var h=Object.getOwnPropertyNames(i).map(function(d){return i[d]});if(h.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(d){c[d]=d}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ts=n()?Object.assign:function(o,i){for(var l,h=r(o),c,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var u in l)t.call(l,u)&&(h[u]=l[u]);if(e){c=e(l);for(var m=0;m<c.length;m++)a.call(l,c[m])&&(h[c[m]]=l[c[m]])}}return h},Ts}var Is,gn;function Us(){if(gn)return Is;gn=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Is=e,Is}var ks,pn;function An(){return pn||(pn=1,ks=Function.call.bind(Object.prototype.hasOwnProperty)),ks}var Ls,wn;function fd(){if(wn)return Ls;wn=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Us(),a={},r=An();e=function(o){var i="Warning: "+o;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function n(o,i,l,h,c){if(process.env.NODE_ENV!=="production"){for(var d in o)if(r(o,d)){var u;try{if(typeof o[d]!="function"){var m=Error((h||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}u=o[d](i,d,h,l,null,t)}catch(f){u=f}if(u&&!(u instanceof Error)&&e((h||"React class")+": type specification of "+l+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in a)){a[u.message]=!0;var p=c?c():"";e("Failed "+l+" type: "+u.message+(p??""))}}}}return n.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(a={})},Ls=n,Ls}var Ps,bn;function gd(){if(bn)return Ps;bn=1;var e=Es(),t=md(),a=Us(),r=An(),n=fd(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(l){var h="Warning: "+l;typeof console<"u"&&console.error(h);try{throw new Error(h)}catch{}});function i(){return null}return Ps=function(l,h){var c=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function u(C){var T=C&&(c&&C[c]||C[d]);if(typeof T=="function")return T}var m="<<anonymous>>",p={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:E(),arrayOf:N,element:S(),elementType:w(),instanceOf:U,node:F(),objectOf:H,oneOf:P,oneOfType:Y,shape:V,exact:te};function f(C,T){return C===T?C!==0||1/C===1/T:C!==C&&T!==T}function g(C,T){this.message=C,this.data=T&&typeof T=="object"?T:{},this.stack=""}g.prototype=Error.prototype;function A(C){if(process.env.NODE_ENV!=="production")var T={},q=0;function Q(z,K,J,R,ee,$,ne){if(R=R||m,$=$||J,ne!==a){if(h){var D=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw D.name="Invariant Violation",D}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var de=R+":"+J;!T[de]&&q<3&&(o("You are manually calling a React.PropTypes validation function for the `"+$+"` prop on `"+R+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),T[de]=!0,q++)}}return K[J]==null?z?K[J]===null?new g("The "+ee+" `"+$+"` is marked as required "+("in `"+R+"`, but its value is `null`.")):new g("The "+ee+" `"+$+"` is marked as required in "+("`"+R+"`, but its value is `undefined`.")):null:C(K,J,R,ee,$)}var j=Q.bind(null,!1);return j.isRequired=Q.bind(null,!0),j}function b(C){function T(q,Q,j,z,K,J){var R=q[Q],ee=k(R);if(ee!==C){var $=G(R);return new g("Invalid "+z+" `"+K+"` of type "+("`"+$+"` supplied to `"+j+"`, expected ")+("`"+C+"`."),{expectedType:C})}return null}return A(T)}function E(){return A(i)}function N(C){function T(q,Q,j,z,K){if(typeof C!="function")return new g("Property `"+K+"` of component `"+j+"` has invalid PropType notation inside arrayOf.");var J=q[Q];if(!Array.isArray(J)){var R=k(J);return new g("Invalid "+z+" `"+K+"` of type "+("`"+R+"` supplied to `"+j+"`, expected an array."))}for(var ee=0;ee<J.length;ee++){var $=C(J,ee,j,z,K+"["+ee+"]",a);if($ instanceof Error)return $}return null}return A(T)}function S(){function C(T,q,Q,j,z){var K=T[q];if(!l(K)){var J=k(K);return new g("Invalid "+j+" `"+z+"` of type "+("`"+J+"` supplied to `"+Q+"`, expected a single ReactElement."))}return null}return A(C)}function w(){function C(T,q,Q,j,z){var K=T[q];if(!e.isValidElementType(K)){var J=k(K);return new g("Invalid "+j+" `"+z+"` of type "+("`"+J+"` supplied to `"+Q+"`, expected a single ReactElement type."))}return null}return A(C)}function U(C){function T(q,Q,j,z,K){if(!(q[Q]instanceof C)){var J=C.name||m,R=W(q[Q]);return new g("Invalid "+z+" `"+K+"` of type "+("`"+R+"` supplied to `"+j+"`, expected ")+("instance of `"+J+"`."))}return null}return A(T)}function P(C){if(!Array.isArray(C))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),i;function T(q,Q,j,z,K){for(var J=q[Q],R=0;R<C.length;R++)if(f(J,C[R]))return null;var ee=JSON.stringify(C,function(ne,D){var de=G(D);return de==="symbol"?String(D):D});return new g("Invalid "+z+" `"+K+"` of value `"+String(J)+"` "+("supplied to `"+j+"`, expected one of "+ee+"."))}return A(T)}function H(C){function T(q,Q,j,z,K){if(typeof C!="function")return new g("Property `"+K+"` of component `"+j+"` has invalid PropType notation inside objectOf.");var J=q[Q],R=k(J);if(R!=="object")return new g("Invalid "+z+" `"+K+"` of type "+("`"+R+"` supplied to `"+j+"`, expected an object."));for(var ee in J)if(r(J,ee)){var $=C(J,ee,j,z,K+"."+ee,a);if($ instanceof Error)return $}return null}return A(T)}function Y(C){if(!Array.isArray(C))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var T=0;T<C.length;T++){var q=C[T];if(typeof q!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(q)+" at index "+T+"."),i}function Q(j,z,K,J,R){for(var ee=[],$=0;$<C.length;$++){var ne=C[$],D=ne(j,z,K,J,R,a);if(D==null)return null;D.data&&r(D.data,"expectedType")&&ee.push(D.data.expectedType)}var de=ee.length>0?", expected one of type ["+ee.join(", ")+"]":"";return new g("Invalid "+J+" `"+R+"` supplied to "+("`"+K+"`"+de+"."))}return A(Q)}function F(){function C(T,q,Q,j,z){return _(T[q])?null:new g("Invalid "+j+" `"+z+"` supplied to "+("`"+Q+"`, expected a ReactNode."))}return A(C)}function B(C,T,q,Q,j){return new g((C||"React class")+": "+T+" type `"+q+"."+Q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+j+"`.")}function V(C){function T(q,Q,j,z,K){var J=q[Q],R=k(J);if(R!=="object")return new g("Invalid "+z+" `"+K+"` of type `"+R+"` "+("supplied to `"+j+"`, expected `object`."));for(var ee in C){var $=C[ee];if(typeof $!="function")return B(j,z,K,ee,G($));var ne=$(J,ee,j,z,K+"."+ee,a);if(ne)return ne}return null}return A(T)}function te(C){function T(q,Q,j,z,K){var J=q[Q],R=k(J);if(R!=="object")return new g("Invalid "+z+" `"+K+"` of type `"+R+"` "+("supplied to `"+j+"`, expected `object`."));var ee=t({},q[Q],C);for(var $ in ee){var ne=C[$];if(r(C,$)&&typeof ne!="function")return B(j,z,K,$,G(ne));if(!ne)return new g("Invalid "+z+" `"+K+"` key `"+$+"` supplied to `"+j+"`.\nBad object: "+JSON.stringify(q[Q],null," ")+`
261
261
  Valid keys: `+JSON.stringify(Object.keys(C),null," "));var D=ne(J,$,j,z,K+"."+$,a);if(D)return D}return null}return A(T)}function _(C){switch(typeof C){case"number":case"string":case"undefined":return!0;case"boolean":return!C;case"object":if(Array.isArray(C))return C.every(_);if(C===null||l(C))return!0;var T=u(C);if(T){var q=T.call(C),Q;if(T!==C.entries){for(;!(Q=q.next()).done;)if(!_(Q.value))return!1}else for(;!(Q=q.next()).done;){var j=Q.value;if(j&&!_(j[1]))return!1}}else return!1;return!0;default:return!1}}function L(C,T){return C==="symbol"?!0:T?T["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&T instanceof Symbol:!1}function k(C){var T=typeof C;return Array.isArray(C)?"array":C instanceof RegExp?"object":L(T,C)?"symbol":T}function G(C){if(typeof C>"u"||C===null)return""+C;var T=k(C);if(T==="object"){if(C instanceof Date)return"date";if(C instanceof RegExp)return"regexp"}return T}function x(C){var T=G(C);switch(T){case"array":case"object":return"an "+T;case"boolean":case"date":case"regexp":return"a "+T;default:return T}}function W(C){return!C.constructor||!C.constructor.name?m:C.constructor.name}return p.checkPropTypes=n,p.resetWarningCache=n.resetWarningCache,p.PropTypes=p,p},Ps}var xs,vn;function pd(){if(vn)return xs;vn=1;var e=Us();function t(){}function a(){}return a.resetWarningCache=t,xs=function(){function r(i,l,h,c,d,u){if(u!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}r.isRequired=r;function n(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:n,element:r,elementType:r,instanceOf:n,node:r,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:a,resetWarningCache:t};return o.PropTypes=o,o},xs}var Cn;function Ad(){if(Cn)return jt.exports;if(Cn=1,process.env.NODE_ENV!=="production"){var e=Es(),t=!0;jt.exports=gd()(e.isElement,t)}else jt.exports=pd()();return jt.exports}var wd=Ad();const pe=Qe(wd);var bd=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function Bs(){return Bs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Bs.apply(this,arguments)}function vd(e,t){if(e==null)return{};var a={},r=Object.keys(e),n,o;for(o=0;o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&(a[n]=e[n]);return a}function Ft(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Cd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Os(e,t)}function Os(e,t){return Os=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Os(e,t)}var Ht=(function(e){Cd(t,e);function t(){var r;return r=e.call(this)||this,r.handleExpired=r.handleExpired.bind(Ft(r)),r.handleErrored=r.handleErrored.bind(Ft(r)),r.handleChange=r.handleChange.bind(Ft(r)),r.handleRecaptchaRef=r.handleRecaptchaRef.bind(Ft(r)),r}var a=t.prototype;return a.getCaptchaFunction=function(n){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[n]:this.props.grecaptcha[n]:null},a.getValue=function(){var n=this.getCaptchaFunction("getResponse");return n&&this._widgetId!==void 0?n(this._widgetId):null},a.getWidgetId=function(){return this.props.grecaptcha&&this._widgetId!==void 0?this._widgetId:null},a.execute=function(){var n=this.getCaptchaFunction("execute");if(n&&this._widgetId!==void 0)return n(this._widgetId);this._executeRequested=!0},a.executeAsync=function(){var n=this;return new Promise(function(o,i){n.executionResolve=o,n.executionReject=i,n.execute()})},a.reset=function(){var n=this.getCaptchaFunction("reset");n&&this._widgetId!==void 0&&n(this._widgetId)},a.forceReset=function(){var n=this.getCaptchaFunction("reset");n&&n()},a.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},a.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},a.handleChange=function(n){this.props.onChange&&this.props.onChange(n),this.executionResolve&&(this.executionResolve(n),delete this.executionReject,delete this.executionResolve)},a.explicitRender=function(){var n=this.getCaptchaFunction("render");if(n&&this._widgetId===void 0){var o=document.createElement("div");this._widgetId=n(o,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(o)}this._executeRequested&&this.props.grecaptcha&&this._widgetId!==void 0&&(this._executeRequested=!1,this.execute())},a.componentDidMount=function(){this.explicitRender()},a.componentDidUpdate=function(){this.explicitRender()},a.handleRecaptchaRef=function(n){this.captcha=n},a.render=function(){var n=this.props;n.sitekey,n.onChange,n.theme,n.type,n.tabindex,n.onExpired,n.onErrored,n.size,n.stoken,n.grecaptcha,n.badge,n.hl,n.isolated;var o=vd(n,bd);return Ws.createElement("div",Bs({},o,{ref:this.handleRecaptchaRef}))},t})(Ws.Component);Ht.displayName="ReCAPTCHA",Ht.propTypes={sitekey:pe.string.isRequired,onChange:pe.func,grecaptcha:pe.object,theme:pe.oneOf(["dark","light"]),type:pe.oneOf(["image","audio"]),tabindex:pe.number,onExpired:pe.func,onErrored:pe.func,size:pe.oneOf(["compact","normal","invisible"]),stoken:pe.string,hl:pe.string,badge:pe.oneOf(["bottomright","bottomleft","inline"]),isolated:pe.bool},Ht.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var Ms,yn;function yd(){if(yn)return Ms;yn=1;var e=Es(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},n={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[e.ForwardRef]=r,o[e.Memo]=n;function i(f){return e.isMemo(f)?n:o[f.$$typeof]||t}var l=Object.defineProperty,h=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,m=Object.prototype;function p(f,g,A){if(typeof g!="string"){if(m){var b=u(g);b&&b!==m&&p(f,b,A)}var E=h(g);c&&(E=E.concat(c(g)));for(var N=i(f),S=i(g),w=0;w<E.length;++w){var U=E[w];if(!a[U]&&!(A&&A[U])&&!(S&&S[U])&&!(N&&N[U])){var P=d(g,U);try{l(f,U,P)}catch{}}}}return f}return Ms=p,Ms}var Nd=yd();const Sd=Qe(Nd);function qs(){return qs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},qs.apply(this,arguments)}function Ed(e,t){if(e==null)return{};var a={},r=Object.keys(e),n,o;for(o=0;o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&(a[n]=e[n]);return a}function Td(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var ve={},Id=0;function Ud(e,t){return t=t||{},function(r){var n=r.displayName||r.name||"Component",o=(function(l){Td(h,l);function h(d,u){var m;return m=l.call(this,d,u)||this,m.state={},m.__scriptURL="",m}var c=h.prototype;return c.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+Id++),this.__scriptLoaderID},c.setupScriptURL=function(){return this.__scriptURL=typeof e=="function"?e():e,this.__scriptURL},c.asyncScriptLoaderHandleLoad=function(u){var m=this;this.setState(u,function(){return m.props.asyncScriptOnLoad&&m.props.asyncScriptOnLoad(m.state)})},c.asyncScriptLoaderTriggerOnScriptLoaded=function(){var u=ve[this.__scriptURL];if(!u||!u.loaded)throw new Error("Script is not loaded.");for(var m in u.observers)u.observers[m](u);delete window[t.callbackName]},c.componentDidMount=function(){var u=this,m=this.setupScriptURL(),p=this.asyncScriptLoaderGetScriptLoaderID(),f=t,g=f.globalName,A=f.callbackName,b=f.scriptId;if(g&&typeof window[g]<"u"&&(ve[m]={loaded:!0,observers:{}}),ve[m]){var E=ve[m];if(E&&(E.loaded||E.errored)){this.asyncScriptLoaderHandleLoad(E);return}E.observers[p]=function(P){return u.asyncScriptLoaderHandleLoad(P)};return}var N={};N[p]=function(P){return u.asyncScriptLoaderHandleLoad(P)},ve[m]={loaded:!1,observers:N};var S=document.createElement("script");S.src=m,S.async=!0;for(var w in t.attributes)S.setAttribute(w,t.attributes[w]);b&&(S.id=b);var U=function(H){if(ve[m]){var Y=ve[m],F=Y.observers;for(var B in F)H(F[B])&&delete F[B]}};A&&typeof window<"u"&&(window[A]=function(){return u.asyncScriptLoaderTriggerOnScriptLoaded()}),S.onload=function(){var P=ve[m];P&&(P.loaded=!0,U(function(H){return A?!1:(H(P),!0)}))},S.onerror=function(){var P=ve[m];P&&(P.errored=!0,U(function(H){return H(P),!0}))},document.body.appendChild(S)},c.componentWillUnmount=function(){var u=this.__scriptURL;if(t.removeOnUnmount===!0)for(var m=document.getElementsByTagName("script"),p=0;p<m.length;p+=1)m[p].src.indexOf(u)>-1&&m[p].parentNode&&m[p].parentNode.removeChild(m[p]);var f=ve[u];f&&(delete f.observers[this.asyncScriptLoaderGetScriptLoaderID()],t.removeOnUnmount===!0&&delete ve[u])},c.render=function(){var u=t.globalName,m=this.props;m.asyncScriptOnLoad;var p=m.forwardedRef,f=Ed(m,["asyncScriptOnLoad","forwardedRef"]);return u&&typeof window<"u"&&(f[u]=typeof window[u]<"u"?window[u]:void 0),f.ref=p,I.createElement(r,f)},h})(I.Component),i=I.forwardRef(function(l,h){return I.createElement(o,qs({},l,{forwardedRef:h}))});return i.displayName="AsyncScriptLoader("+n+")",i.propTypes={asyncScriptOnLoad:pe.func},Sd(i,r)}}var Ds="onloadcallback",kd="grecaptcha";function _s(){return typeof window<"u"&&window.recaptchaOptions||{}}function Ld(){var e=_s(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload="+Ds+"&render=explicit":"https://"+t+"/recaptcha/api.js?onload="+Ds+"&render=explicit"}const Nn=Ud(Ld,{callbackName:Ds,globalName:kd,attributes:_s().nonce?{nonce:_s().nonce}:{}})(Ht),Gs=()=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"24",height:"24",viewBox:"0 0 32 32",className:"sass-pg-cmt-lp-spin",children:s.jsx("path",{d:"M18,4.181v2.021c4.559,0.929,8,4.97,8,9.798c0,5.514-4.486,10-10,10S6,21.514,6,16c0-4.829,3.441-8.869,8-9.798V4.181 C8.334,5.137,4,10.066,4,16c0,6.617,5.383,12,12,12s12-5.383,12-12C28,10.066,23.666,5.137,18,4.181z"})}),Pd={reportAbuseTitle:"Reportar Abuso",errorAlreadyReported:"Ya has reportado este comentario.",errorReportComment:"Error al reportar comentario",cancelButton:"Cancelar",reportButton:"Reportar",reportSuccessMessage:"¡Gracias por reportar!",reportCloseButton:"Cerrar"},xd=({isOpen:e,onClose:t,commentId:a,publication:r,username:n,CAPTCHA_KEY_V2:o,texts:i})=>{const l={...Pd,...i?.comentarios},h={..._t,...l.reportReasons??{}},[c,d]=I.useState("form"),[u,m]=I.useState(""),[p,f]=I.useState(""),[g,A]=I.useState(""),b=[{id:"spam",label:h.spam},{id:"inappropriate",label:h.inappropriate},{id:"hate",label:h.hate},{id:"misinformation",label:h.misinformation},{id:"terrorism",label:h.terrorism},{id:"intellectual",label:h.intellectual},{id:"bullying",label:h.bullying}],E=async()=>{if(!(!u||!a)){if(dn(document).includes(a)){f(l.errorAlreadyReported);return}d("loading"),f("");try{const w=await(await fetch("/api/comments-report",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({publication:r,username:n,id:a,captchaToken:g,type:_t[u]})})).json();if(w.type==="success")dd(document,a),d("success"),setTimeout(()=>{N()},3e3);else throw new Error(w.message||l.errorReportComment)}catch(S){console.error("Error reporting comment:",S),f(S.message||l.errorReportComment),d("form")}}},N=()=>{d("form"),m(""),f(""),t()};return!e||!a||!n?null:s.jsx("div",{className:"sass-pg-cmt-rp-overlay",children:s.jsxs("div",{className:"sass-pg-cmt-rp-popup",children:[s.jsx("button",{className:"close-reply-form su-flex su-absolute su-p-0 su-bg-transparent su-border-none",onClick:N,children:s.jsx(Ke,{})}),s.jsx("h2",{className:"sass-pg-cmt-rp-title",children:l.reportAbuseTitle}),c==="loading"&&s.jsx("div",{className:"sass-pg-cmt-rp-loadingContainer",children:s.jsx(Gs,{})}),c==="form"||c==="loading"?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"sass-pg-cmt-rp-optionsContainer",children:b.map(S=>s.jsxs("label",{className:"sass-pg-cmt-rp-option",children:[s.jsx("input",{type:"radio",name:"reportReason",value:S.id,checked:u===S.id,onChange:w=>m(w.target.value),className:"sass-pg-cmt-rp-radioInput"}),s.jsx("span",{className:"sass-pg-cmt-rp-radioCustom"}),s.jsx("span",{className:"sass-pg-cmt-rp-optionLabel",children:S.label})]},S.id))}),p&&s.jsx("div",{className:"sass-pg-cmt-rp-errorMessage",children:p}),s.jsx(Nn,{sitekey:o,theme:"light",size:"normal",onChange:S=>A(S??""),onExpired:()=>A("")}),s.jsxs("div",{className:"sass-pg-cmt-rp-buttons",children:[s.jsx("button",{onClick:N,className:"sass-pg-cmt-rp-cancelButton",children:l.cancelButton}),s.jsx("button",{onClick:E,disabled:!u,className:"sass-pg-cmt-rp-reportButton",children:l.reportButton})]})]}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"sass-pg-cmt-rp-successContainer",children:[s.jsx("div",{className:"sass-pg-cmt-rp-thumbsUp",children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:132,height:120,fill:"none",children:s.jsx("path",{fill:"#0073BE",d:"M119.249 42.357H81.915l5.621-27.039.177-1.893a8.906 8.906 0 0 0-2.603-6.272L78.838.941 39.907 39.93c-2.19 2.13-3.491 5.089-3.491 8.343v59.167c0 6.508 5.325 11.833 11.833 11.833h53.25c4.911 0 9.112-2.958 10.887-7.218l17.868-41.713c.533-1.36.829-2.78.829-4.32V54.192c0-6.509-5.325-11.834-11.834-11.834Zm0 23.667-17.75 41.417h-53.25V48.274l25.679-25.678L67.36 54.19h51.889v11.833ZM.916 48.274h23.667v71H.916v-71Z"})})}),s.jsx("p",{className:"sass-pg-cmt-rp-successMessage",children:l.reportSuccessMessage})]}),s.jsx("div",{className:"sass-pg-cmt-rp-buttons",children:s.jsx("button",{onClick:N,className:["sass-pg-cmt-rp-closeButton","sass-pg-cmt-rp-buttonAlone"].join(" "),children:l.reportCloseButton})})]})]})})};function Bd(e){const t=/^\[\[([^\]]+)\]\]/,a=e.match(t);return a?{user:{username:a[1],firstname:a[1],lastname:""},text:e.replace("[["+a[1]+"]]","")}:{user:!1,text:e}}function Vt(e){const t=e.comments.map(a=>{if(a.user)return{...a,user:a.user,text:a.text,reply:a.reply?Vt({comments:a.reply}).comments:a.reply};const{user:r,text:n}=Bd(a.text);return{...a,user:r||!1,text:n,reply:a.reply?Vt({comments:a.reply}).comments:a.reply}});return{...e,comments:t}}async function zt({publication:e,path:t,size:a=5,sizereply:r=2,id:n,lastid:o,state:i="5,6",apiToken:l,API_ENV:h}){const{PUBLIC_ENV:c}=h;if(c==="prod"){const d=await Sn({publication:e,path:t,size:a,sizereply:r,id:n,lastid:o,state:i,apiToken:l,API_ENV:h});return Vt(d[0])}else{const d=await fetch(`/api/comments-get?publication=${e}&path=${t}&size=${a}&sizereply=${r}&lastid=${o}`);if(!d.ok)throw new Error(`Error al obtener comentarios: ${d.status}`);const u=await d.json();return Vt(u.data[0])}}async function Sn({publication:e,path:t,size:a=5,sizereply:r=2,id:n,lastid:o,state:i="5,6",apiToken:l,API_ENV:h}){if(!e||!t)throw new Error("Missing required parameters: publication and path");if(typeof e!="string"||typeof t!="string")throw new Error("Invalid input types for publication or path");if(!l)throw new Error("Missing CMS API token");const{PUBLIC_ENV:c,PUBLIC_API_HOST:d="dummy",PUBLIC_API_PATH:u,PUBLIC_API_PATH_VERSION:m}=h,p=parseInt(String(a),10),f=parseInt(String(r),10);if(isNaN(p)||p<=0)throw new Error("Invalid size parameter");if(isNaN(f)||f<0)throw new Error("Invalid sizereply parameter");const g=c!=="prod"?`${d}${u}`:"",A=new URLSearchParams({publication:e,path:t,size:p.toString(),sizereply:f.toString(),state:i});n&&A.append("id",n),o&&A.append("lastid",o);const b=`${g}${m}/newcomments/get?${A.toString()}`;try{const{data:E}=await re.get(b,{headers:{"x-api-token":l,"Cache-Control":"max-age=0, no-cache, no-store, must-revalidate",Pragma:"no-cache",Expires:"0"}});if(!E)throw new Error("No comments data received");return E.data||E||[]}catch(E){if(console.error("Error fetching comments:",E),re.isAxiosError(E)){const N=E.response?.status,S=E.response?.data;throw N===404?new Error("Comments not found"):N===403?new Error("Access forbidden - check API token"):N===401?new Error("Unauthorized - invalid API token"):N===500?new Error("Internal server error from CMS"):new Error(S?.error||S?.message||`HTTP ${N}: Failed to fetch comments`)}throw E}}const Od=(e,t)=>{const[a,r]=I.useState(void 0),{PUBLIC_PUBLICATION_ID:n}=t,o=n;return I.useEffect(()=>{if(a)return;(async()=>{const{PUBLIC_X_SECURITY_TOKEN:l}=t;try{const h=await zt({publication:o,path:e??"",size:5,sizereply:2,id:void 0,lastid:void 0,state:"5,6",apiToken:l,API_ENV:t});r(h??[])}catch{r({comments:[],morecomment:!1})}})()},[a]),{comments:a,setComments:r}},En=({username:e,date:t,DATE_CONFIG:a})=>s.jsxs("div",{className:"comment-header su-flex su-items-center su-relative su-flex-wrap",children:[s.jsx("span",{className:"comment-username su-font-bold su-truncate",children:e}),s.jsx("span",{className:"comment-header-dot",children:"•"}),s.jsx("span",{className:"comment-date su-truncate",children:cd(Ce(Number(t),a))})]}),Tn=({user:e})=>s.jsx("div",{className:"comment-avatar su-flex-center su-rounded-full su-font-bold su-overflow-hidden",children:e.picture?s.jsx("img",{className:"comment-avatar-img su-h-full",src:e.picture,alt:e.username}):e.firstname.charAt(0).toUpperCase()}),In=({isReply:e=!1,onReply:t,onFlag:a})=>s.jsxs("div",{className:"comment-actions su-flex",children:[!e&&t&&s.jsx("button",{onClick:t,className:"comment-action-btn su-flex su-items-center su-gap-1 su-bg-transparent su-border-none",children:s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",children:[s.jsx("g",{clipPath:"url(#a)",children:s.jsx("path",{fill:"#4D4E4E",d:"M9.976 9V5l-6.983 7 6.983 7v-4.1c4.988 0 8.48 1.6 10.973 5.1-.997-5-3.99-10-10.973-11Z"})}),s.jsx("defs",{children:s.jsx("clipPath",{id:"a",children:s.jsx("path",{fill:"#fff",d:"M0 0h23.942v24H0z"})})})]})}),s.jsx("button",{onClick:a,className:"comment-action-btn su-flex su-items-center su-gap-1 su-bg-transparent su-border-none",children:s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none",children:[s.jsx("g",{clipPath:"url(#a)",children:s.jsx("path",{fill:"#4D4E4E",d:"M20.133 2h-16c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2Zm0 14H5.303l-1.17 1.17V4h16v12Zm-9-11h2v6h-2V5Zm0 8h2v2h-2v-2Z"})}),s.jsx("defs",{children:s.jsx("clipPath",{id:"a",children:s.jsx("path",{fill:"#fff",d:"M.133 0h24v24h-24z"})})})]})})]}),Md={commentInputLabel:"Comentario",commentInputPlaceholder:"Ingresa un comentario"},js=({commentRef:e,captchaToken:t="",setIsDisabled:a,API_ENV:r,texts:n})=>{const o={...Md,...n?.comentarios};return I.useEffect(()=>{const i=e.current;if(!i)return;const l=()=>{const c=i.value.length;i.parentElement&&(i.parentElement.dataset.text=`${c}/${Te}`),i.classList.toggle("over-limit",c>Te),a(!Gt(e,t,r).boolean)};return i.addEventListener("input",l),l(),()=>i.removeEventListener("input",l)},[e,t,a]),s.jsxs("div",{className:"su-relative",children:[s.jsx("label",{className:"su-block su-font-normal comment-input-label",children:o.commentInputLabel}),s.jsx("textarea",{className:"su-w-full su-border-none su-outline-none",ref:e,name:"comment",placeholder:o.commentInputPlaceholder,rows:2})]})},Qs=({commentRef:e,captchaToken:t="",setCaptchaToken:a,children:r,API_ENV:n})=>{const o=Gt(e,t,n);return s.jsxs("div",{className:"form-actions su-flex-between",children:[s.jsx(Nn,{sitekey:n.CAPTCHA_KEY_V2??"",theme:"light",size:"normal",onChange:i=>a(i??""),onExpired:()=>a("")}),s.jsxs("div",{className:"submit-zone su-relative su-flex su-flex-col su-items-end",children:[r,!o.boolean&&s.jsx("p",{className:"submit-warning su-hidden su-font-normal su-p-0",children:o.text})]})]})},qd={anonimusContinueButton:"Continuar de forma anónima",anonimusDividerOr:"o",anonimusImageAlt:"Imagen incognito",popupCloseAriaLabel:"Cerrar"},Dd={title:"",button:"",commentPromptMessage:"Súmate a la comunidad para dejar tu comentario",email:"Email",password:"Contraseña",showPassword:"Mostrar contraseña",loginButtonText:"Iniciar Sesión",backButton:"Volver",GoogleButtonText:"Continuar con GOOGLE",noAccountText:"¿No tienes cuenta?",alreadyHasAccountText:"¿Ya tienes cuenta?",registerButtonText:"Registrate",forgotPasswordText:"Olvidé mi contraseña",forgotMessage:"Ingrese su dirección de correo electrónico. Le enviaremos un mensaje con un código para restablecer la contraseña.",sendCodeButton:"Enviar código",changePasswordMessage:"Hemos enviado un código de restablecimiento de contraseña en un mensaje de Correo electrónico a {{email}}. Ingrese el código y la contraseña nueva.",verificationCodeLabel:"Código de verificación",newPasswordLabel:"Nueva contraseña",confirmPasswordLabel:"Confirmar contraseña",showPasswordsLabel:"Mostrar contraseñas",changePasswordButton:"Cambiar contraseña",feedbackSuccessMessage:"La contraseña fue cambiada con éxito"};function _d({onClose:e,handleGoogleLogin:t,icon:a,texts:r,API_ENV:n}){const o={...Dd,...qd,...r?.comentarios},i=d=>{!window||!window.location||(document.cookie=`redirect_after_login_1=${window.location.pathname}; path=/; max-age=10000`,window.location.pathname="/auth/login"+(d?"#forgot":""))},l=()=>{!window||!window.location||(document.cookie=`redirect_after_login_1=${window.location.pathname}; path=/; max-age=10000`,window.location.pathname="/auth/register")},{PUBLIC_ASSETS_URL:h}=n,c=(h&&h!=="false"?h:"")+"/versions/images/anonimus-img.png";return s.jsx("div",{className:"sass-pg-cmt-lp-overlay",role:"dialog","aria-modal":"true",id:"pop-overlay",onClick:d=>{const u=d.target;u&&u.id==="pop-overlay"&&e()},children:s.jsxs("div",{className:"sass-pg-cmt-lp-card",children:[s.jsxs("header",{className:"sass-pg-cmt-lp-header",children:[s.jsx("div",{className:"sass-pg-cmt-lp-logo",children:a?a():null}),s.jsx("button",{onClick:()=>{e()},className:"sass-pg-cmt-lp-close","aria-label":o.popupCloseAriaLabel,children:s.jsx(Ke,{})})]}),s.jsxs("div",{className:"sass-pg-cmt-lp-anonimusWrapper",children:[s.jsx("img",{className:"sass-pg-cmt-lp-anonimusImage",src:c,alt:o.anonimusImageAlt}),s.jsx("button",{onClick:()=>{e(!0)},className:"sass-pg-cmt-lp-anonimus",children:s.jsx("span",{children:o.anonimusContinueButton})})]}),s.jsx("div",{className:"sass-pg-cmt-lp-divider",children:s.jsx("span",{children:o.anonimusDividerOr})}),s.jsxs("button",{onClick:t,className:"sass-pg-cmt-lp-google",children:[s.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:"sass-pg-cmt-lp-googleIcon"}),s.jsx("span",{children:o.GoogleButtonText})]}),s.jsx("button",{type:"submit",className:"sass-pg-cmt-lp-primary",onClick:()=>{i(!1)},children:o.loginButtonText}),s.jsxs("p",{className:"sass-pg-cmt-lp-switch",children:[o.noAccountText,s.jsx("button",{type:"button",onClick:l,children:o.registerButtonText})]}),s.jsx("button",{type:"button",className:"sass-pg-cmt-lp-forgotPassword",onClick:()=>{i(!0)},children:o.forgotPasswordText})]})})}const Gd={submitCommentButton:"Enviar Comentario"},Fs=({onClick:e,isDisabled:t,API_ENV:a,icon:r,handleGoogleLogin:n,showAlert:o,texts:i})=>{const l={...Gd,...i?.comentarios},[h,c]=I.useState(!1),[d,u]=I.useState(!1),[m,p]=I.useState(!1);I.useEffect(()=>{let g=null;return h&&(g=setTimeout(()=>{c(!1)},2400)),()=>{g&&clearTimeout(g)}},[h]),I.useEffect(()=>{if(!d||!a.CONFIG_commentsV2||!o||!document)return;const g=document.getElementById("comment-button");if(!g)return;const A=g.closest(".comment-form"),b=A?.querySelector('input[name="username"]'),E=A?.querySelector('textarea[name="comment"]'),N=A?.querySelector("textarea.g-recaptcha-response")??document.querySelector("#g-recaptcha-response");b?.value?.trim()&&E?.value?.trim()&&N?.value?.trim()&&g.click()});const f=oe("/Success.gif");return h?s.jsx("div",{className:"success-gif-container su-flex-center su-relative",children:s.jsx("img",{className:"success-gif su-absolute",src:f})}):s.jsxs(s.Fragment,{children:[m&&a.CONFIG_commentsV2&&o&&s.jsx(_d,{API_ENV:a,icon:r,handleGoogleLogin:n,texts:i,onClose:g=>{g&&u(!0),p(!1)}}),s.jsxs("button",{type:"button",onClick:async g=>{if(!d&&a.CONFIG_commentsV2&&o){p(!0),console.log("open popup");return}await e(g)&&(a.CONFIG_commentsV2&&o&&u(!1),c(!0))},id:"comment-button",className:`submit-btn su-bg-transparent su-font-bold ${t?"disabled":"active"}`,children:[l.submitCommentButton,s.jsx("svg",{style:{minWidth:16},width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M1.39258 8.99997H12.5626L7.68258 13.88C7.29258 14.27 7.29258 14.91 7.68258 15.3C8.07258 15.69 8.70258 15.69 9.09258 15.3L15.6826 8.70997C16.0726 8.31997 16.0726 7.68997 15.6826 7.29997L9.10258 0.699971C8.71258 0.309971 8.08258 0.309971 7.69258 0.699971C7.30258 1.08997 7.30258 1.71997 7.69258 2.10997L12.5626 6.99997H1.39258C0.842578 6.99997 0.392578 7.44997 0.392578 7.99997C0.392578 8.54997 0.842578 8.99997 1.39258 8.99997Z",fill:"currentColor"})})]})]})},Hs=async({path:e,ref:t,captchaToken:a,button:r,user:n,id:o,addComment:i,API_ENV:l,anonimusUser:h})=>{const c=t.current?.value||"",{PUBLIC_PUBLICATION_ID:d}=l,u=d;if(console.log("check",n,h),!Gt(t,a,l).boolean||!n&&!h){console.log("warn");const p=r.nextElementSibling;return p&&(p.style.display="block"),!1}if(!n&&!h)return;const m=n?c:"[["+h+"]] "+c;try{const p=Date.now(),f=await fetch("/api/comments-add",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({publication:u,path:e,id:o,username:n?n.username:!1,comment:m,recaptchaResponse:a})});let g=null;try{g=await f.json()}catch(S){console.error("Error parsing JSON response:",S)}if(!f.ok)throw new Error(`Error al enviar comentario: ${g?.message} status: ${f.status}`);const A=Date.now(),b=Math.max(0,2400+Math.abs(A-p)),E=n||{username:h,firstname:h},N={username:E.username,firstname:E.firstname,...E.lastname&&{lastname:E.lastname},...E.picture&&{picture:E.picture}};return i({id:A.toString(),text:c,user:N,date:{time:Date.now()},reply:[]}),t.current&&(t.current.value=""),b}catch(p){return console.error("Error enviando comentario:",p),alert(p.message||"Error al enviar el comentario."),!1}},jd=({replyingTo:e,commentRef:t,user:a,path:r,addReply:n,closeForm:o,API_ENV:i,texts:l})=>{const[h,c]=I.useState(!0),[d,u]=I.useState(""),m=()=>{t.current?.parentElement&&(t.current.parentElement.dataset.text=`0/${Te}`),c(!0),o()};return s.jsxs("div",{className:"comment-form reply-form su-p-8 su-relative",children:[s.jsx("button",{className:"close-reply-form su-flex su-absolute su-p-0 su-bg-transparent su-border-none",onClick:m,children:s.jsx(Ke,{})}),s.jsx(js,{commentRef:t,captchaToken:d,setIsDisabled:c,API_ENV:i,texts:l}),s.jsx(Qs,{commentRef:t,captchaToken:d,setCaptchaToken:u,API_ENV:i,children:s.jsx(Fs,{onClick:async p=>{if(h)return;const f=await Hs({path:r,ref:t,captchaToken:d,button:p.currentTarget,user:a,id:e,addComment:n,API_ENV:i});return f&&typeof f=="number"?(setTimeout(()=>{m()},f),!0):!1},isDisabled:h,API_ENV:i,texts:l})})]})},Qd={replyingToLabel:"Respondiendo a"},Fd=({reply:e,replyingTo:t,user:a,onFlag:r,DATE_CONFIG:n,texts:o})=>{const i={...Qd,...o?.comentarios},l=e.text;let h=`${Ie.firstname} ${Ie.lastname??""}`,c=Ie.username;return e.user&&(h=`${e.user.firstname} ${e.user.lastname??""}`,c=e.user.username),s.jsx("div",{className:"comment-item reply",children:s.jsxs("div",{className:"comment-header-container su-flex su-relative",children:[s.jsx(Tn,{user:e.user?e.user:Ie}),s.jsxs("div",{style:{flex:1},children:[s.jsx(En,{username:h,date:e.date.time,DATE_CONFIG:n}),s.jsxs("div",{className:"comment-reply-to",children:[i.replyingToLabel," ",s.jsx("strong",{children:t})]}),s.jsx("p",{className:"comment-text su-font-normal",children:l}),a?.username.toLowerCase()!==c.toLowerCase()&&s.jsx(In,{isReply:!0,onFlag:()=>r(e.id)})]})]})})},Hd={moreRepliesButton:"Más Respuestas"},Vd=({comment:e,replyingTo:t,path:a,user:r,handleReplyingTo:n,onFlag:o,API_ENV:i,texts:l})=>{const h={...Hd,...l?.comentarios},c={morereply:e.morereply??!1,reply:e.reply?e.reply:[]},[d,u]=I.useState(c),[m,p]=I.useState(!1),{PUBLIC_PUBLICATION_ID:f,PUBLIC_X_SECURITY_TOKEN:g}=i,A=e.text,b=I.useRef(null);let E=`${Ie.firstname} ${Ie.lastname??""}`,N=Ie.username;e.user&&(E=`${e.user.firstname} ${e.user.lastname??""}`,N=e.user.username);const S=w=>{u({morereply:d.morereply,reply:[w,...d.reply]})};return s.jsx("div",{className:"comment-item",children:s.jsxs("div",{className:"comment-header-container su-flex su-relative","data-hasreplies":d.reply.length>0?"true":"false",children:[s.jsx(Tn,{user:e.user?e.user:Ie}),s.jsxs("div",{style:{flex:1},children:[s.jsx(En,{username:E,date:e.date.time,DATE_CONFIG:i}),s.jsx("p",{className:"comment-text su-font-normal",children:A}),r?.username.toLowerCase()!==N.toLowerCase()&&s.jsx(In,{onReply:()=>n(e.id),onFlag:()=>o(e.id)}),t===e.id&&r&&s.jsx(jd,{replyingTo:t,commentRef:b,addReply:S,user:r,path:a,API_ENV:i,closeForm:()=>n(""),texts:l}),d.reply.length>0&&s.jsxs("div",{className:"comment-replies",children:[d.reply.map(w=>s.jsx(Fd,{user:r,reply:w,replyingTo:E,onFlag:o,DATE_CONFIG:i,texts:l},w.id)),m?s.jsx("div",{style:{marginLeft:"4rem",position:"relative"},children:s.jsx(Gs,{})}):d.morereply&&s.jsx("button",{className:"comment-replies-button reply-button su-flex-center su-rounded-full su-border-none su-relative",onClick:async()=>{const w=d.reply[d.reply.length-1]?.id;p(!0);try{const P=await zt({publication:f??"",path:a??"",size:2,sizereply:2,id:e.id,lastid:w,state:"5,6",apiToken:g??"",API_ENV:i});p(!1),u({morereply:P.morecomment,reply:[...d.reply,...P.comments]})}catch(U){throw p(!1),new Error(`Error al obtener comentarios: ${U}`)}},children:h.moreRepliesButton})]})]})]})})},zd=({commentRef:e,user:t,path:a,addComment:r,API_ENV:n,texts:o})=>{const[i,l]=I.useState(!0),[h,c]=I.useState("");return s.jsxs("div",{className:"comment-form su-p-8 su-relative",children:[s.jsx(js,{commentRef:e,captchaToken:h,setIsDisabled:l,API_ENV:n,texts:o}),s.jsx(Qs,{API_ENV:n,commentRef:e,captchaToken:h,setCaptchaToken:c,children:s.jsx(Fs,{onClick:async d=>{if(i)return;const u=await Hs({path:a,ref:e,captchaToken:h,button:d.currentTarget,user:t,addComment:r,API_ENV:n});return u&&typeof u=="number"?(e.current?.parentElement&&(e.current.parentElement.dataset.text=`0/${Te}`),l(!0),setTimeout(()=>{e.current?.parentElement&&(e.current.parentElement.dataset.text=`0/${Te}`),l(!0)},u),!0):!1},isDisabled:i,API_ENV:n,texts:o})})]})},Wd={usernameInputLabel:"Nombre",usernameInputPlaceholder:"Ingresa tu nombre"},Yd=({usernameRef:e,texts:t})=>{const a={...Wd,...t?.comentarios};return s.jsxs("div",{className:"comment-username su-font-bold su-truncate",children:[s.jsx("label",{className:"su-block su-font-normal comment-input-label",children:a.usernameInputLabel}),s.jsx("input",{ref:e,name:"username",className:"su-w-full su-border-none su-outline-none",placeholder:a.usernameInputPlaceholder})]})},Kd=({usernameRef:e,commentRef:t,path:a,icon:r,handleGoogleLogin:n,addComment:o,API_ENV:i,texts:l})=>{const[h,c]=I.useState(!0),[d,u]=I.useState(""),m=async p=>{if(h){console.log("error");return}if(!Gt(t,d,i).boolean){console.log("invalidForm");return}const f=e.current.value,g=await Hs({path:a,ref:t,captchaToken:d,button:p.currentTarget,user:void 0,addComment:o,API_ENV:i,anonimusUser:f});return u(""),g&&typeof g=="number"?(t.current?.parentElement&&(t.current.parentElement.dataset.text=`0/${Te}`),c(!0),setTimeout(()=>{t.current?.parentElement&&(t.current.parentElement.dataset.text=`0/${Te}`),c(!0)},g),!0):!1};return s.jsx(s.Fragment,{children:s.jsxs("div",{className:"comment-form anoninus-form su-p-8 su-relative",children:[s.jsx(Yd,{usernameRef:e,texts:l}),s.jsx(js,{commentRef:t,captchaToken:d,setIsDisabled:c,API_ENV:i,texts:l}),s.jsx(Qs,{API_ENV:i,commentRef:t,captchaToken:d,setCaptchaToken:u,children:s.jsx(Fs,{onClick:m,isDisabled:h,API_ENV:i,handleGoogleLogin:n,icon:r,showAlert:!0,texts:l})})]})})},Jd={commentsSectionTitle:"COMENTARIOS",commentHeaderMessageEmpty:"Se el primero en compartir tu opinión de este artículo.",commentHeaderMessageWithComments:"Comparte tu opinión de este artículo.",loadMoreButton:"Más",moreRepliesButton:"Más Respuestas",anonimusPromptPrefix:"¿Querés debatir con otros lectores? Comentá ahora de forma anónima o ",anonimusPromptLinkText:"INICIA SESIÓN AQUÍ",anonimusPromptSuffix:" para responder a otros usuarios y ser parte activa de nuestra comunidad."},$d=({isAuthenticated:e,path:t,user:a,handleLogout:r,icon:n,handleGoogleLogin:o,API_ENV:i,texts:l})=>{const h={...Jd,...l?.comentarios},{PUBLIC_PUBLICATION_ID:c,PUBLIC_X_SECURITY_TOKEN:d}=i,u=c??"",m=t.replaceAll("/","|"),[p,f]=I.useState(void 0),[g,A]=I.useState(""),{comments:b,setComments:E}=Od(m,i),[N,S]=I.useState(!1),w=I.useRef(null),U=I.useRef(null),P=L=>{A(g===L?"":L)},H=L=>{E(b?{...b,comments:[L,...b.comments??[]]}:void 0)},Y=L=>{f(L)},F=async()=>{if(!b||!b.morecomment||b.comments.length===0)return;const L=b.comments[b.comments.length-1];if(!L)return;S(!0);const k=L.id;try{const G=await zt({publication:u,path:m??"",size:5,sizereply:2,id:void 0,lastid:k,state:"5,6",apiToken:d,API_ENV:i});E({morecomment:G.morecomment??!1,comments:[...b.comments,...G.comments]}),S(!1)}catch(G){throw S(!1),new Error(`Error al obtener comentarios: ${G}`)}},B=b?.comments&&b.comments.length>0,V=B?h.commentHeaderMessageWithComments:h.commentHeaderMessageEmpty,te=s.jsx("div",{style:{display:"flex",width:"100%",justifyContent:"center"},children:s.jsx(Gs,{})}),_=()=>{!window||!window.location||(document.cookie=`redirect_after_login_1=${window.location.pathname}; path=/; max-age=10000`,window.location.pathname="/auth/login")};return s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"comments-container",children:s.jsx(ce,{title:i.CONFIG_commentsV2||B||e?h.commentsSectionTitle:!1,children:s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"comments-header",children:e&&a?s.jsxs(s.Fragment,{children:[s.jsx(od,{user:a,handleLogout:r,message:V,texts:l}),s.jsx(zd,{commentRef:w,user:a,addComment:H,path:m,API_ENV:i,texts:l})]}):i.CONFIG_commentsV2?s.jsxs(s.Fragment,{children:[s.jsxs("p",{className:"anonimus-message",children:[h.anonimusPromptPrefix,s.jsx("button",{className:"su-border-none su-p-0",onClick:_,children:h.anonimusPromptLinkText}),h.anonimusPromptSuffix]}),s.jsx(Kd,{usernameRef:U,commentRef:w,icon:n,handleGoogleLogin:o,addComment:H,path:m,API_ENV:i,texts:l})]}):null}),b?b.comments&&b.comments.length>0?s.jsxs("div",{className:"comments-list","data-isauthenticated":`${e}`,children:[b.comments.map(L=>s.jsx(Vd,{comment:L,replyingTo:g,handleReplyingTo:P,onFlag:Y,user:a??Ie,path:m,API_ENV:i,texts:l},L.id)),N&&te]}):null:te,b?.morecomment&&!N&&s.jsx("button",{className:"comment-replies-button su-flex-center su-rounded-full",onClick:F,children:h.loadMoreButton})]})})}),s.jsx(xd,{username:a?.username??void 0,publication:u,commentId:p,isOpen:p!==void 0,onClose:()=>f(void 0),CAPTCHA_KEY_V2:i.CAPTCHA_KEY_V2??"",texts:l})]})};function Zd({isAuthenticated:e,setIsAuthenticated:t,loginUrl:a,user:r,path:n,checkAuth:o,icon:i,API_ENV:l,texts:h}){const c=async()=>{if(l.PUBLIC_ENV==="local")await fetch("/api/auth/logout",{method:"GET",credentials:"include"}),t(!1);else{const u=window.location.pathname;window.location.href=`${window.location.origin}/api/auth/logout?redirect=${encodeURIComponent(u)}`}},d=async()=>{if(l.PUBLIC_ENV==="local"){await fetch("/api/auth/debug-login",{method:"GET",credentials:"include"}),localStorage.setItem("cognito-login","success:"+Date.now()),o();return}if(!a)return;const u=encodeURIComponent(window.location.pathname);window.location.href=`/api/auth/login?redirect=${u}`};return s.jsx(s.Fragment,{children:s.jsx($d,{isAuthenticated:e,handleLogout:c,handleGoogleLogin:d,icon:i,path:n,user:e?r:void 0,API_ENV:l,texts:h})})}function Xd({isVisible:e,path:t,icon:a,API_ENV:r,texts:n}){const[o,i]=I.useState(null),[l,h]=I.useState(null),c=r?.COGNITO_AUTH_PREFIX??"ASTRO_",d=I.useCallback(async()=>{if(e){if(document.cookie.search(c+"IS_AUTH=true")===-1){i(!1),h(null);return}try{const g=await(await fetch("/api/auth/user",{credentials:"include"})).json();i(g.isAuthenticated??!1),h(g.user??null),document.cookie="redirect_after_login_1=; Max-Age=0; path=/"}catch(f){console.error("Error checking auth:",f),i(!1),h(null)}}},[e,c]);I.useEffect(()=>{d()},[d,e]),I.useEffect(()=>{if(!l||!e||typeof window>"u")return;const f=window;if(typeof f!="function"){console.warn("gtag no está disponible todavía");return}f.gtag("set",{user_id:l.username}),console.log("username setted successfully")},[l,e]);const u="/api/auth/login",m=s.jsx("div",{className:"su-flex-center su-relative",style:{minHeight:310}});if(o===null)return m;const p=t.replaceAll("|","/");return e?s.jsx(Zd,{icon:a,isAuthenticated:o,setIsAuthenticated:i,loginUrl:u,user:l??void 0,checkAuth:d,path:p,API_ENV:r,texts:n}):m}const Rd=({internalPath:e,icon:t,API_ENV:a,texts:r})=>(I.useEffect(()=>{if(!document)return;if(document.getElementById("recaptcha-enterprise-script"))return console.log("recaptcha already appended");const o=document.createElement("script");o.id="recaptcha-enterprise-script",o.defer=!0,o.async=!0,o.src=`https://www.google.com/recaptcha/enterprise.js?render=${a.CAPTCHA_KEY}`,document.body.appendChild(o),console.log("appended recaptcha")},[]),s.jsx("div",{className:"sass-pg-news-commentLazyLoader",style:{width:"100%"},suppressHydrationWarning:!0,children:s.jsx(Xd,{path:e,icon:t,isVisible:!0,API_ENV:es(a),texts:r})})),e1=({section:e,internalPath:t,stylesConfig:a,paths:r,API_ENV:n,fetchConfig:o})=>s.jsx("div",{suppressHydrationWarning:!0,style:a["Modulo 1x3 Client"]??a["Modulo 1x3"],children:s.jsx(sd,{section:e,internalPath:t,stylesConfig:a,isVisible:!0,paths:r,fetchConfig:o,API_ENV:es(n)})});async function t1({publication:e,path:t,username:a,comment:r,id:n,recaptchaResponse:o,baseUrl:i,apiToken:l,securityToken:h,COMMENTS_VARS:c}){if(console.log("Adding comment with data:",{publication:e,path:t,username:a,comment:r,id:n,recaptchaResponse:o}),!e||!t||!r)return{type:"error",message:"Faltan campos obligatorios. Por favor, completa todos los campos.",status:400};if([e,t,r].some(f=>typeof f!="string"))return{type:"error",message:"Datos inválidos. Intenta de nuevo.",status:400};if(!r.trim())return{type:"error",message:"El comentario no puede estar vacío.",status:400};const d=await cn(o,c);if(console.log("Verifying captcha token...",d),!d)return{type:"error",message:"Captcha inválido. Intenta nuevamente.",status:403};const u=`${i}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/add`,m={publication:e,path:t.replace(/\|/gi,"/"),text:r.trim()};a&&(m.username=a),n&&(m.id=n);const p=new URLSearchParams(m);try{const{data:f}=await re.get(`${u}?${p.toString()}`,{headers:{"Content-Type":"application/json","x-security-token":h,"x-api-token":l,"User-Agent":"amplifyapp-comments-saas"}});return!f||f.error?(console.error("CMS error response:",f),{type:"error",message:"No se pudo guardar el comentario. Intenta nuevamente en unos minutos.",status:502}):(console.log("Comentario enviado con éxito",f),{type:"success",message:"Comentario enviado con éxito.",status:200})}catch(f){if(console.error("Error enviando comentario:",f),re.isAxiosError(f)){const g=f.response?.status??500,A=f.response?.data;return g===400?{type:"error",message:A?.message||"Solicitud inválida. Verifica que los campos sean correctos.",status:400}:g===403?{type:"error",message:"Captcha inválido o acceso prohibido.",status:403}:g===500?{type:"error",message:"Error interno del servidor del CMS.",status:500}:{type:"error",message:A?.message||"No se pudo enviar el comentario.",status:g}}return{type:"error",message:"Error inesperado. Intenta nuevamente.",status:500}}}const Vs=async(e,t)=>{if(!e)throw new Error("No action provided");if(!t)throw new Error("No site key provided");const a=window.grecaptcha;if(!a?.enterprise)throw new Error("grecaptcha not loaded");return new Promise((r,n)=>{a.enterprise.ready(async()=>{try{const o=await a.enterprise.execute(t,{action:e});if(!o)throw new Error("Captcha token no generado");r(o)}catch(o){n(o)}})})},s1=async({token:e,projectId:t,captchaKey:a,apiKey:r,captchaAction:n})=>{if(!e)throw new Error("No token provided");if(!t||!a||!r)throw new Error("Missing project ID or site key");if(!n)throw new Error("No action provided");try{const i=await(await fetch(`https://recaptchaenterprise.googleapis.com/v1/projects/${t}/assessments?key=${r}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:{token:e,siteKey:a,expectedAction:n}})})).json();if(!i?.tokenProperties?.valid)throw new Error(`The token was: ${i?.tokenProperties?.invalidReason}`);if(i.tokenProperties.action!==n)throw new Error("The action attribute in your reCAPTCHA tag does not match the action you are expecting to score");return i?.riskAnalysis?.score??0}catch(o){throw console.error("Recaptcha verification failed",o),new Error(String(o))}},a1=e=>{const{content:t,title:a,slot_id:r}=e,n=e.slot_id&&e.slot_id!=="Nota_1";return t&&t.length!==0&&s.jsx(ce,{title:a,titleUrl:e.titleUrl,children:s.jsx(Le,{slot_id:r,cardWidth:200,children:t.map((o,i)=>{const l={...o,main:{...o.main,title:{...o.main.title,section:n?o.main.title.home:o.main.title.section}}};return s.jsx(nt,{...l,titleGradient:!0,paths:e.paths},i)})})})},r1=e=>{const{content:t,title:a,slot_id:r}=e,n=e.slot_id&&e.slot_id!=="Nota_1";return t&&t.length!==0&&s.jsx(ce,{title:a,titleUrl:e.titleUrl,children:s.jsx(Le,{slot_id:r,cardWidth:343,cardGap:32,visibleItems:3,children:t.map((o,i)=>{const l={...o,main:{...o.main,title:{...o.main.title,section:n?o.main.title.home:o.main.title.section}}};return s.jsx(nt,{...l,titleGradient:!0,paths:e.paths},i)})})})},n1=e=>{const{content:t,title:a,slot_id:r}=e,n=e.slot_id&&e.slot_id!=="Nota_1";return t&&t.length!==0&&s.jsx(ce,{title:a,titleUrl:e.titleUrl,children:s.jsx(Le,{slot_id:r,fullPageWidth:!0,visibleItems:1,pagination:!0,cardGap:0,children:t.map((o,i)=>{const l={...o,main:{...o.main,title:{...o.main.title,section:n?o.main.title.home:o.main.title.section}}};return I.createElement(nt,{...l,key:i,titleGradient:!0,paths:e.paths})})})})},Wt=e=>{const t={};for(const a in e)a.startsWith("--")&&(t[a]=e[a]);return t},o1=e=>{const{content:t,title:a,isVideo:r}=e;if(!t||t.length===0)return;const n=t[0],o=t.slice(1),i=e.slot_id&&e.slot_id!=="Nota_1";return n&&o&&s.jsxs(ce,{title:a,titleUrl:e.titleUrl,children:[s.jsx("div",{className:"sass-bd-dnfw-headerSection",children:s.jsxs("a",{style:{"--heightImageOverwriteMobile":"200%"},className:"sass-bd-dnfw-image",href:n?.info?.link?.url,target:n?.info?.link?.target,children:[s.jsxs("div",{className:"sass-bd-dnfw-blockHeadContainer",children:[s.jsx("p",{className:"sass-bd-dnfw-title",children:n?.main?.title.home}),n?.main?.subtitle?.rendered&&s.jsx("p",{className:"sass-bd-dnfw-subtitle",children:n?.main?.subtitle?.striped})]}),s.jsx(ge,{preview:n.preview})]})}),s.jsxs("div",{className:"sass-bd-dnfw-containerCards",children:[s.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),s.jsx("div",{className:"sass-bd-dnfw-newsContent",children:Array.isArray(o)&&o.map((l,h)=>{const c={...l,main:{...l.main,title:{...l.main.title,section:i?l.main.title.home:l.main.title.section}}};return s.jsx("div",{style:{order:h},children:s.jsx(Se,{...c,isVideo:r,paths:e.paths})},h)})})]})]})},i1=({printEdition:e,title:t})=>e&&s.jsx(ce,{title:t,children:s.jsx("div",{className:"sass-bd-mif-content iframe-container",dangerouslySetInnerHTML:{__html:e||""}})}),Un={banner:e=>s.jsx(fe,{...e,name:e.slot_id.replace("Home","block")}),readest:e=>s.jsx(kt,{...e}),"Modulo 1x3":e=>s.jsx(zr,{...e}),"Modulo 1x4":e=>s.jsx(Wr,{...e}),"Modulo 1x5":e=>s.jsx(Yr,{...e}),"Destacado noticias":e=>s.jsx(Hr,{...e}),"Destacado full width":e=>s.jsx(o1,{...e}),"Destacado videos":e=>s.jsx(Kr,{...e}),"Carrusel card":e=>s.jsx($r,{...e}),"Carrusel story":e=>s.jsx(a1,{...e}),"Carrusel owl":e=>s.jsx(r1,{...e}),"Modulo fotogaleria":e=>s.jsx(n1,{...e}),"Carrusel opinion":e=>s.jsx(Zr,{...e}),"Modulo 1x3 card":e=>s.jsx(Jr,{...e}),"Modulo iframe":e=>s.jsx(i1,{...e})};function zs({component:e,slot_id:t,data:a,banners:r}){if(r)return Un[e]&&s.jsx("div",{className:"home-slot",style:Wt(a),children:Un[e]({...a,banners:r,slot_id:t})})}function l1({children:e,stylesConfigEntry:t}){return s.jsx("div",{className:"home-slot",style:Wt(t),children:e})}const kn={Diario:e=>{if(!e?.data||e.data.length===0)return;const t=e.data.slice(1);return s.jsx(Qr,{...e.data[0],itemReverseOrder:!0,isLarge:!0,block:t,banners:e.banners,showSuper:e.showSuper,heightImageOverwrite:e.heightImageOverwrite,heightImageOverwriteMobile:e.heightImageOverwriteMobile,rightOnlyBanner:e.rightOnlyBanner,customSectionCardStyles:e.customSectionCardStyles,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths,textPosition:e.textPosition,speculationPrerenderClass:e.speculationPrerenderClass})},"Diario con imagen":e=>{if(!e?.data||e.data.length===0)return;const t=e.data.slice(1);return s.jsx(Qr,{...e.data[0],itemReverseOrder:!0,isLarge:!0,showSuper:e.showSuper,block:t,banners:e.banners,rightOnlyBanner:e.rightOnlyBanner,customSectionCardStyles:e.customSectionCardStyles,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})},Super:e=>s.jsx(Je,{...e.data[0],paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass}),"3 notas verticales":e=>s.jsx(Xl,{content:e.data,customLargeSection:e.customLargeSection,customSlimSection:e.customSlimSection,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass}),"3 notas horizontales":e=>s.jsx(Zl,{content:e.data,customLargeSection:e.customLargeSection,customSmallSection:e.customSmallSection,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})},Yt=({component:e,data:t,banners:a,rightOnlyBanner:r})=>s.jsx("div",{style:Wt(t),children:kn[e]&&kn[e]({...t,rightOnlyBanner:r,banners:a})}),c1=({slots:e,DYNAMIC_SLOT_SUBINDEXES:t,stylesConfig:a,AutorIcon:r,config:n,banners:o,showTagBySection:i})=>{const l=[],c=t,d=Object.keys(e).length/c;for(let u=1;u<=d;u++)for(let m=1;m<=c;m++){const p="Home_"+u+"_"+m;!e[p]||!e[p].blockSass||!e[p].blockSass[0]||!e[p].blockSass[0].value||!e[p].blockSass[0].block||e[p].blockSass[0].block==="No Mostrar"||(e[p].blockSass[0]?.block==="Modulo iframe"?l.push(s.jsxs(ms,{id:e[p].blockSass[0].key,show:!!e[p].blockSass[0].value,order:(u-1)*c+(m-1),children:[s.jsx(zs,{component:e[p].blockSass[0].block,banners:o,slot_id:p,data:{printEdition:e[p]?.blockSass[0].value,title:e[p]?.blockSass[0].title??"",titleUrl:e[p].blockSass[0].link??void 0}}),s.jsx(Ye,{children:s.jsx(_e,{banners:o,index:"dynamic_"+u+"_"+m})})]},u+"_"+m)):l.push(s.jsxs(ms,{id:e[p].blockSass[0].key,show:!!e[p].content?.data,order:(u-1)*c+(m-1),children:[s.jsx(zs,{component:e[p].blockSass[0].block,banners:o,slot_id:p,data:{...e[p].blockSass[0].block?a[e[p].blockSass[0].block]:[],content:e[p].content?.data??[],title:e[p].blockSass[0].title??void 0,titleUrl:e[p].blockSass[0].link??void 0,autorIcon:s.jsx(r,{}),paths:n.paths,showTagBySection:i}}),s.jsx(Ye,{children:s.jsx(_e,{banners:o,index:"dynamic_"+u+"_"+m})})]},u+"_"+m)))}return l},d1=({mainBlock:e,StylesConfigMain:t,config:a,banners:r})=>{const{PUBLIC_ENV:n}=O();if(n!=="local")return null;const o=e?.news?.data||[],i=(l,h)=>({...e?.news,...t[l],data:o.slice(0,h),paths:a.paths});return s.jsxs(s.Fragment,{children:[s.jsx(Yt,{component:"Super",data:i("Super",1),banners:r}),s.jsx(Ye,{children:s.jsx(_e,{banners:r,index:1})}),s.jsx(Yt,{component:"3 notas verticales",data:i("3 notas verticales",3),banners:r}),s.jsx(Ye,{children:s.jsx(_e,{banners:r,index:1})}),s.jsx(Yt,{component:"3 notas horizontales",data:i("3 notas horizontales",3),banners:r}),s.jsx(Ye,{children:s.jsx(_e,{banners:r,index:1})})]})};v.AssetsPreconnect=fa,v.AutorHeader1=ql,v.AutorHeader2=Dl,v.BannerAdvertising=fe,v.BannerAdvertisingMiddle=_e,v.CarrouselCSR=ll,v.CarrouselIRS=Le,v.CarruselCard=$r,v.CarruselOpinion=Zr,v.CommentLazyLoader=Rd,v.CommonServices=ke,v.Comscore=Ys,v.ContactInfoServer=ic,v.ContactInput=xl,v.ContactSelect=Bl,v.ContactTextarea=Ol,v.ContentLayout1=Ut,v.ContentLayoutTema=Ll,v.DEBUG_MainSlots=d1,v.DestacadoNoticias=Hr,v.DestacadoVideos=Kr,v.DynamicBlockServices=fr,v.DynamicComponents=c1,v.DynamicMainSlot=Yt,v.DynamicSlot=zs,v.EditorialBlock=tc,v.ErrorComponent=Pl,v.Font=Ta,v.Footer=Il,v.FormatAfterScripts=ma,v.FormatScripts=Zt,v.GA4=Ks,v.GTM=Js,v.GalleryHeader=an,v.GenerateBody=rl,v.GenerateHead=al,v.Header=Kl,v.HeaderSectionComponent=tn,v.HomeCard=$l,v.IframeHeader=en,v.ImageOffline=vr,v.ImageOnline=ge,v.ImageOnlineClient=br,v.IssuuServices=Zi,v.ItemListSchema=Ca,v.JournalistArticule2=Gr,v.JournalistGroup=jr,v.LayoutNewsComponent=Or,v.LinkComponent=M,v.LiveBlogHeader=Pr,v.Location=ol,v.LoginForm=Wc,v.MainComponentServices=Io,v.Marfeel=$s,v.MasNoticiasLazyLoader=e1,v.MiddleSection=Ye,v.Modulo1x3=zr,v.Modulo1x3Card=Jr,v.Modulo1x4=Wr,v.Modulo1x5=Yr,v.Modulo2Columnas=sc,v.Modulo3Columnas=Vr,v.ModuloNewsletter=ac,v.ModuloOpinion=ec,v.NewListResponseDataPH=ln,v.NewsArticle=ya,v.NewsComponent=Gc,v.NewsContent=Cs,v.NewsDescriptionComponent=Pe,v.News_Content=nn,v.NextPrev=vs,v.OrgList=Na,v.PreloadImages=Rt,v.REPORT_REASONS=_t,v.ReCaptchaRender=Mn,v.Readest=kt,v.RegisterForm=Vc,v.ScriptHydrator=Xc,v.SearchSection=Qc,v.Section=ce,v.SectionCard=Se,v.SectionCard2=nt,v.SectionCardServerComponent=Ns,v.SectionServerComponent=oc,v.ShowSection=ms,v.SocialNetworks=Ss,v.SpeculationRules=va,v.Spin=$e,v.StaticSlotWrapper=l1,v.SubscribeColumn=Nr,v.SubscribeRow=Sr,v.SubscribeWhatsAppColumn=wl,v.TagHeader=Jl,v.TagSection=_r,v.TimeLine=xr,v.TrimPathname=co,v.TwitterHydration=Rc,v.VideoBlock3=kl,v.VideoBlock4=Gl,v.VideoEmbeddedHeader=Xr,v.VideoYoutubeHeader=Rr,v.VideosSchemas=Ea,v.WebsiteList=Sa,v.addComment=t1,v.bannersReplace=gt,v.becomeVideoObject=Fe,v.buildTagUrl=Ue,v.coloringByStrokeSVGs=Tl,v.compileStyleProps=Wt,v.createAssessment=Ao,v.cutString=ye,v.decodeApiEnv=es,v.encodeApiEnv=vo,v.extractMainSlug=we,v.extractRealtedNews=so,v.extractRelatedNews=ft,v.formatDate=Ce,v.formatDateEdiciones=Xn,v.formatDateJournalistArticule=mt,v.formatDateTimeline=aa,v.formatNewsMeta=la,v.formatVideoData=ga,v.generalGetData=el,v.getCaptchaToken=Vs,v.getComments=Sn,v.getConfig=O,v.getDynamicSlots=Xi,v.getEnvironmentUrl=He,v.getEnvironmentUrlFront=ao,v.getHydratorPath=fo,v.getImageUrl=ie,v.getItemFormated=Co,v.getNextMeta=Ze,v.getPage=Re,v.getPlayIcon=As,v.getPreloadImages=So,v.getPrevMeta=Xe,v.getRelatedNewsCarrousel=go,v.getReportReasonLabel=ld,v.getResponse=Oe,v.getResponsePromise=ra,v.getSchemas=pt,v.getScriptReplaces=ts,v.getSlugs=Ua,v.getTextsStringValue=wo,v.getTypeOfNews=uo,v.getVideoRealPath=mo,v.handleGetComments=zt,v.initLibrary=Bn,v.isPhotoGallery=bo,v.metadataToJSX=ha,v.metadata_defaults=pr,v.new_speculationRules_home=pa,v.new_speculationRules_note=wa,v.new_speculationRules_noteList=ba,v.new_speculationRules_section=Aa,v.parseTags=$t,v.pathnameSplit=ca,v.processExtractedRelatedNews=oa,v.removePages=Ia,v.reportComment=id,v.shareButtons=kr,v.socialIcons=xt,v.toISOWithTimeZone=Be,v.urlReplaces=da,v.usePlayIcon=ws,v.verifyCaptchaTokenEnterprise=s1,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sass-template-common",
3
- "version": "0.9.79",
3
+ "version": "0.9.80",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"