sass-template-common 0.10.11 → 0.10.12

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.
@@ -1304,9 +1304,7 @@ export declare function getConfigOriginAuditReport(comparison?: ConfigOriginComp
1304
1304
 
1305
1305
  export declare const getDynamicSlots: (axiosApi: AxiosInstance, config: Config, imgSizes: {
1306
1306
  [key: string]: any;
1307
- }, imgSizesVideo: {
1308
- [key: string]: any;
1309
- }, DYNAMIC_SLOT_TOTAL: number, DYNAMIC_SLOT_SUBINDEXES: number, exclude?: string) => Promise<{
1307
+ }, imageSizes: ImageSizesContractInput | undefined, DYNAMIC_SLOT_TOTAL: number, DYNAMIC_SLOT_SUBINDEXES: number, exclude?: string) => Promise<{
1310
1308
  [key: string]: any;
1311
1309
  }>;
1312
1310
 
@@ -1342,7 +1340,7 @@ export declare const getPreloadImages: (list: NewListResponseData[], PRELOADED_I
1342
1340
 
1343
1341
  export declare const getPrevMeta: (config: Config, paths: Array<string>, page: number) => string;
1344
1342
 
1345
- export declare const getRelatedNewsCarrousel: (currentNew: NewListResponseData, internalPath: string, commonServices: CommonServices, imgSizes: any) => Promise<NewListResponseData[] | undefined>;
1343
+ export declare const getRelatedNewsCarrousel: (currentNew: NewListResponseData, internalPath: string, commonServices: CommonServices) => Promise<NewListResponseData[] | undefined>;
1346
1344
 
1347
1345
  export declare function getReportReasonLabel(reasonKey: ReportReasonKey): string;
1348
1346
 
@@ -1533,30 +1533,31 @@ const Ye = (e, t) => {
1533
1533
  }, Ih = (e) => {
1534
1534
  const { AssetsPrefix: t = "", AssetsPath: n = "src", isDev: a = !1 } = e;
1535
1535
  return a ? "src" : t + n;
1536
- }, Uh = async (e, t, n, a) => {
1537
- const { FETCH_TAG_BASED_RELATED_NEWS: r = !1, FETCH_SIZE_RELATED_NEWS: o = 10 } = U();
1536
+ }, Uh = async (e, t, n) => {
1537
+ const { FETCH_TAG_BASED_RELATED_NEWS: a = !1, FETCH_SIZE_RELATED_NEWS: r = 10 } = U();
1538
1538
  if (!e) return [];
1539
+ const o = n.contract.note.listStandard;
1539
1540
  try {
1540
1541
  if (e.related && e.related?.automatic === !1 && e.related?.news && e.related?.news.length > 0)
1541
1542
  return (await n.getNewsListPath(
1542
1543
  {
1543
1544
  path: e.related.news.map((l) => l.path).join(";"),
1544
1545
  exclude: "gallery,related,relatedexternal,external,customfields",
1545
- imagesizes: a.md
1546
+ imagesizes: o
1546
1547
  }
1547
1548
  ))?.data?.data ?? [];
1548
1549
  {
1549
1550
  const i = e && e.keywords && e.keywords.tags && e.keywords.tags[0];
1550
- return ((e ? i && r ? await n.getNewsListAvanced(
1551
+ return ((e ? i && a ? await n.getNewsListAvanced(
1551
1552
  {
1552
1553
  query: 'claves:("' + e.keywords?.tags[0].name + '")',
1553
1554
  exclude: "gallery,related,relatedexternal,external,customfields",
1554
- imagesizes: a.md,
1555
- size: o + 1
1555
+ imagesizes: o,
1556
+ size: r + 1
1556
1557
  }
1557
1558
  ) : await n.getNewsItemsRelated(
1558
1559
  t.split("/").join("|"),
1559
- { size: o }
1560
+ { size: r }
1560
1561
  ) : null)?.data?.data ?? []).filter((d) => d.info.link.internal !== t.split("/").join("|"));
1561
1562
  }
1562
1563
  } catch (i) {
@@ -4944,7 +4945,7 @@ class pc extends $e {
4944
4945
  videos: async () => {
4945
4946
  const d = {
4946
4947
  size: this.props?.imgSizes[l].size ?? 5,
4947
- imagesizes: `${this.props?.imgSizesVideo.lg}${this.props?.imgSizesVideo.md}`,
4948
+ imagesizes: `${this.contract.video.lg}${this.contract.video.md}`,
4948
4949
  query: "Keywords:(" + (i ?? "videohome") + ")"
4949
4950
  };
4950
4951
  this.IS_MULTIPUBLICATION && (d.publication = this.MULTIPUBLICATION_FETCHES ?? this.PUBLIC_PUBLICATION_ID);
@@ -5054,7 +5055,7 @@ const c1 = async (e, t, n, a, r, o, i) => {
5054
5055
  const l = new pc({
5055
5056
  config: t,
5056
5057
  imgSizes: n,
5057
- imgSizesVideo: a,
5058
+ imageSizes: a,
5058
5059
  axiosApi: e,
5059
5060
  exclude: i
5060
5061
  }), c = [];
@@ -1,5 +1,5 @@
1
1
  (function(y,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react"],s):(y=typeof globalThis<"u"?globalThis:y||self,s(y["sass-template-common"]={},y["react/jsx-runtime"],y.React))})(this,(function(y,s,T){"use strict";function li(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const Ha=li(T);let Vs={PUBLIC_API_HOST:"",PUBLIC_API_FRONT:"",PUBLIC_API_PATH:"",PUBLIC_API_PATH_VERSION:"",PUBLIC_X_SECURITY_TOKEN:"",PUBLIC_PUBLICATION_ID:"",PUBLIC_TAG_TYPE:"",PUBLIC_ENV:"",PUBLIC_LNG:"",PUBLIC_SERVICE_PREFIX:"",PUBLIC_IS_SUB_PUBLICATION:"",FORCE_SUB_PUBLICATION_PREFIX:"",PUBLIC_USERNAME_OFFLINE:"",PUBLIC_PASSWORD_OFFLINE:"",PUBLIC_IS_OFFLINE:"",PUBLIC_OFFLINE_SITE:"",PUBLIC_WP_API_HOST:"",PUBLIC_X_SECURITY_WAF_TOKEN:"",DEPLOY_BUCKET:"",PUBLIC_ASSETS_URL:"",PUBLIC_BUILD_ID:"",DATE_TIMEZONE:"America/Mexico_City",VARIANT_header:"op2",VARIANT_footer:"op2",VARIANT_section:"op1",VARIANT_videos:"op2",VARIANT_autor:"op1",VARIANT_tag:"op1",S3_ID_DIR:"0000000",CONFIG_commentsV2:!1,EXPERIMENTAL_commentsV2Paths:[],CONFIG_comments:!1,CONFIG_blockDefaultTwitterHydrator:!1,CONFIG_hasSlugRoute:!0,CONFIG_slugAsSection:!0,CONFIG_shareOnlyWhatsApp:!0,CONFIG_blockDefaultSectionRoute:!1,CONFIG_videoClipUrl:"",CONFIG_newNoteBannersIndexing:!1,CONFIG_sectionMetaInfo:!1,CONFIG_sectionBatchedFetch:!1,CONFIG_batchedFetch:void 0,CONFIG_landingFastRender:!1,CONFIG_deferBanners:{common:!0,middle:!0,innote:!0},ANALYTICS_ga4:void 0,ANALYTICS_marfeel:void 0,ANALYTICS_gtm:void 0,ANALYTICS_comscore:void 0,COGNITO_AUTH_PREFIX:"ASTRO_",COGNITO_CLIENT_ID:"",COGNITO_DOMAIN:"",COGNITO_REDIRECT_URI:"",CAPTCHA_PROJECT:"",CAPTCHA_KEY:"",COMMENTS_CAPTCHA_API_KEY:"",CAPTCHA_KEY_V2:"",SHOW_TAG_BY_SECTION:!1,SHOW_NEWS_MORE_NEWS:!0,SHOW_DEV_RANKING:!0,HTML_AUDIT:!1,DEBUG_ENABLED:!1,SHOW_NEWS_RELATED_NEWS:!0,MORE_NEWS_SSR:!1,NEWS_JOURNALIST_COMPONENT:"op1",USE_QUOTE_IN_QUERY_TAG_HOME:!0,FETCH_TAG_BASED_RELATED_NEWS:!0,MULTIPUBLICATION_FETCHES:void 0,BUCKET_ORIGIN:void 0};function ci(e={}){Vs={...Vs,...e}}function U(){return Vs}const Va=()=>{const{ANALYTICS_comscore:e}=U();return e&&s.jsx("script",{id:"comscore",dangerouslySetInnerHTML:{__html:`var _comscore=_comscore||[];_comscore.push({c1:"2",c2:"${e}",options:{enableFirstPartyCookie:true,bypassUserConsentRequirementFor1PCookie:true}});(function(){var s=document.createElement("script"),el=document.getElementsByTagName("script")[0];s.defer=true;s.src="https://sb.scorecardresearch.com/cs/${e}/beacon.js";el.parentNode.insertBefore(s,el);})();`}})};function lt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ft={exports:{}},di=Ft.exports,za;function Qa(){return za||(za=1,(function(e,t){(function(a,n){e.exports=n()})(di,(function(){var a=1e3,n=6e4,r=36e5,o="millisecond",i="second",l="minute",c="hour",d="day",u="week",f="month",h="quarter",g="year",m="date",p="Invalid Date",w=/^(\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,C={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 P=["th","st","nd","rd"],L=_%100;return"["+_+(P[(L-20)%10]||P[L]||P[0])+"]"}},S=function(_,P,L){var F=String(_);return!F||F.length>=P?_:""+Array(P+1-F.length).join(L)+_},v={s:S,z:function(_){var P=-_.utcOffset(),L=Math.abs(P),F=Math.floor(L/60),q=L%60;return(P<=0?"+":"-")+S(F,2,"0")+":"+S(q,2,"0")},m:function _(P,L){if(P.date()<L.date())return-_(L,P);var F=12*(L.year()-P.year())+(L.month()-P.month()),q=P.clone().add(F,f),Y=L-q<0,N=P.clone().add(F+(Y?-1:1),f);return+(-(F+(L-q)/(Y?q-N:N-q))||0)},a:function(_){return _<0?Math.ceil(_)||0:Math.floor(_)},p:function(_){return{M:f,y:g,w:u,d,D:m,h:c,m:l,s:i,ms:o,Q:h}[_]||String(_||"").toLowerCase().replace(/s$/,"")},u:function(_){return _===void 0}},A="en",x={};x[A]=C;var k="$isDayjsObject",O=function(_){return _ instanceof V||!(!_||!_[k])},Q=function _(P,L,F){var q;if(!P)return A;if(typeof P=="string"){var Y=P.toLowerCase();x[Y]&&(q=Y),L&&(x[Y]=L,q=Y);var N=P.split("-");if(!q&&N.length>1)return _(N[0])}else{var I=P.name;x[I]=P,q=I}return!F&&q&&(A=q),q||!F&&A},B=function(_,P){if(O(_))return _.clone();var L=typeof P=="object"?P:{};return L.date=_,L.args=arguments,new V(L)},M=v;M.l=Q,M.i=O,M.w=function(_,P){return B(_,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var V=(function(){function _(L){this.$L=Q(L.locale,null,!0),this.parse(L),this.$x=this.$x||L.x||{},this[k]=!0}var P=_.prototype;return P.parse=function(L){this.$d=(function(F){var q=F.date,Y=F.utc;if(q===null)return new Date(NaN);if(M.u(q))return new Date;if(q instanceof Date)return new Date(q);if(typeof q=="string"&&!/Z$/i.test(q)){var N=q.match(w);if(N){var I=N[2]-1||0,j=(N[7]||"0").substring(0,3);return Y?new Date(Date.UTC(N[1],I,N[3]||1,N[4]||0,N[5]||0,N[6]||0,j)):new Date(N[1],I,N[3]||1,N[4]||0,N[5]||0,N[6]||0,j)}}return new Date(q)})(L),this.init()},P.init=function(){var L=this.$d;this.$y=L.getFullYear(),this.$M=L.getMonth(),this.$D=L.getDate(),this.$W=L.getDay(),this.$H=L.getHours(),this.$m=L.getMinutes(),this.$s=L.getSeconds(),this.$ms=L.getMilliseconds()},P.$utils=function(){return M},P.isValid=function(){return this.$d.toString()!==p},P.isSame=function(L,F){var q=B(L);return this.startOf(F)<=q&&q<=this.endOf(F)},P.isAfter=function(L,F){return B(L)<this.startOf(F)},P.isBefore=function(L,F){return this.endOf(F)<B(L)},P.$g=function(L,F,q){return M.u(L)?this[F]:this.set(q,L)},P.unix=function(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function(){return this.$d.getTime()},P.startOf=function(L,F){var q=this,Y=!!M.u(F)||F,N=M.p(L),I=function(se,X){var ce=M.w(q.$u?Date.UTC(q.$y,X,se):new Date(q.$y,X,se),q);return Y?ce:ce.endOf(d)},j=function(se,X){return M.w(q.toDate()[se].apply(q.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(X)),q)},z=this.$W,H=this.$M,W=this.$D,K="set"+(this.$u?"UTC":"");switch(N){case g:return Y?I(1,0):I(31,11);case f:return Y?I(1,H):I(0,H+1);case u:var Z=this.$locale().weekStart||0,te=(z<Z?z+7:z)-Z;return I(Y?W-te:W+(6-te),H);case d:case m:return j(K+"Hours",0);case c:return j(K+"Minutes",1);case l:return j(K+"Seconds",2);case i:return j(K+"Milliseconds",3);default:return this.clone()}},P.endOf=function(L){return this.startOf(L,!1)},P.$set=function(L,F){var q,Y=M.p(L),N="set"+(this.$u?"UTC":""),I=(q={},q[d]=N+"Date",q[m]=N+"Date",q[f]=N+"Month",q[g]=N+"FullYear",q[c]=N+"Hours",q[l]=N+"Minutes",q[i]=N+"Seconds",q[o]=N+"Milliseconds",q)[Y],j=Y===d?this.$D+(F-this.$W):F;if(Y===f||Y===g){var z=this.clone().set(m,1);z.$d[I](j),z.init(),this.$d=z.set(m,Math.min(this.$D,z.daysInMonth())).$d}else I&&this.$d[I](j);return this.init(),this},P.set=function(L,F){return this.clone().$set(L,F)},P.get=function(L){return this[M.p(L)]()},P.add=function(L,F){var q,Y=this;L=Number(L);var N=M.p(F),I=function(H){var W=B(Y);return M.w(W.date(W.date()+Math.round(H*L)),Y)};if(N===f)return this.set(f,this.$M+L);if(N===g)return this.set(g,this.$y+L);if(N===d)return I(1);if(N===u)return I(7);var j=(q={},q[l]=n,q[c]=r,q[i]=a,q)[N]||1,z=this.$d.getTime()+L*j;return M.w(z,this)},P.subtract=function(L,F){return this.add(-1*L,F)},P.format=function(L){var F=this,q=this.$locale();if(!this.isValid())return q.invalidDate||p;var Y=L||"YYYY-MM-DDTHH:mm:ssZ",N=M.z(this),I=this.$H,j=this.$m,z=this.$M,H=q.weekdays,W=q.months,K=q.meridiem,Z=function(X,ce,G,be){return X&&(X[ce]||X(F,Y))||G[ce].slice(0,be)},te=function(X){return M.s(I%12||12,X,"0")},se=K||function(X,ce,G){var be=X<12?"AM":"PM";return G?be.toLowerCase():be};return Y.replace(b,(function(X,ce){return ce||(function(G){switch(G){case"YY":return String(F.$y).slice(-2);case"YYYY":return M.s(F.$y,4,"0");case"M":return z+1;case"MM":return M.s(z+1,2,"0");case"MMM":return Z(q.monthsShort,z,W,3);case"MMMM":return Z(W,z);case"D":return F.$D;case"DD":return M.s(F.$D,2,"0");case"d":return String(F.$W);case"dd":return Z(q.weekdaysMin,F.$W,H,2);case"ddd":return Z(q.weekdaysShort,F.$W,H,3);case"dddd":return H[F.$W];case"H":return String(I);case"HH":return M.s(I,2,"0");case"h":return te(1);case"hh":return te(2);case"a":return se(I,j,!0);case"A":return se(I,j,!1);case"m":return String(j);case"mm":return M.s(j,2,"0");case"s":return String(F.$s);case"ss":return M.s(F.$s,2,"0");case"SSS":return M.s(F.$ms,3,"0");case"Z":return N}return null})(X)||N.replace(":","")}))},P.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},P.diff=function(L,F,q){var Y,N=this,I=M.p(F),j=B(L),z=(j.utcOffset()-this.utcOffset())*n,H=this-j,W=function(){return M.m(N,j)};switch(I){case g:Y=W()/12;break;case f:Y=W();break;case h:Y=W()/3;break;case u:Y=(H-z)/6048e5;break;case d:Y=(H-z)/864e5;break;case c:Y=H/r;break;case l:Y=H/n;break;case i:Y=H/a;break;default:Y=H}return q?Y:M.a(Y)},P.daysInMonth=function(){return this.endOf(f).$D},P.$locale=function(){return x[this.$L]},P.locale=function(L,F){if(!L)return this.$L;var q=this.clone(),Y=Q(L,F,!0);return Y&&(q.$L=Y),q},P.clone=function(){return M.w(this.$d,this)},P.toDate=function(){return new Date(this.valueOf())},P.toJSON=function(){return this.isValid()?this.toISOString():null},P.toISOString=function(){return this.$d.toISOString()},P.toString=function(){return this.$d.toUTCString()},_})(),$=V.prototype;return B.prototype=$,[["$ms",o],["$s",i],["$m",l],["$H",c],["$W",d],["$M",f],["$y",g],["$D",m]].forEach((function(_){$[_[1]]=function(P){return this.$g(P,_[0],_[1])}})),B.extend=function(_,P){return _.$i||(_(P,V,B),_.$i=!0),B},B.locale=Q,B.isDayjs=O,B.unix=function(_){return B(1e3*_)},B.en=x[A],B.Ls=x,B.p={},B}))})(Ft)),Ft.exports}var ui=Qa();const we=lt(ui);var Ht={exports:{}},hi=Ht.exports,$a;function fi(){return $a||($a=1,(function(e,t){(function(a,n){e.exports=n()})(hi,(function(){return function(a,n,r){a=a||{};var o=n.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(d,u,f,h){return o.fromToBase(d,u,f,h)}r.en.relativeTime=i,o.fromToBase=function(d,u,f,h,g){for(var m,p,w,b=f.$locale().relativeTime||i,C=a.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],S=C.length,v=0;v<S;v+=1){var A=C[v];A.d&&(m=h?r(d).diff(f,A.d,!0):f.diff(d,A.d,!0));var x=(a.rounding||Math.round)(Math.abs(m));if(w=m>0,x<=A.r||!A.r){x<=1&&v>0&&(A=C[v-1]);var k=b[A.l];g&&(x=g(""+x)),p=typeof k=="string"?k.replace("%d",x):k(x,u,A.l,w);break}}if(u)return p;var O=w?b.future:b.past;return typeof O=="function"?O(p):O.replace("%s",p)},o.to=function(d,u){return l(d,u,this,!0)},o.from=function(d,u){return l(d,u,this)};var c=function(d){return d.$u?r.utc():r()};o.toNow=function(d){return this.to(c(this),d)},o.fromNow=function(d){return this.from(c(this),d)}}}))})(Ht)),Ht.exports}var mi=fi();const pi=lt(mi);var Vt={exports:{}},gi=Vt.exports,Wa;function wi(){return Wa||(Wa=1,(function(e,t){(function(a,n){e.exports=n(Qa())})(gi,(function(a){function n(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var r=n(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 r.default.locale(o,null,!0),o}))})(Vt)),Vt.exports}wi();var zt={exports:{}},bi=zt.exports,Ya;function Ai(){return Ya||(Ya=1,(function(e,t){(function(a,n){e.exports=n()})(bi,(function(){var a="minute",n=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(o,i,l){var c=i.prototype;l.utc=function(p){var w={date:p,utc:!0,args:arguments};return new i(w)},c.utc=function(p){var w=l(this.toDate(),{locale:this.$L,utc:!0});return p?w.add(this.utcOffset(),a):w},c.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var d=c.parse;c.parse=function(p){p.utc&&(this.$u=!0),this.$utils().u(p.$offset)||(this.$offset=p.$offset),d.call(this,p)};var u=c.init;c.init=function(){if(this.$u){var p=this.$d;this.$y=p.getUTCFullYear(),this.$M=p.getUTCMonth(),this.$D=p.getUTCDate(),this.$W=p.getUTCDay(),this.$H=p.getUTCHours(),this.$m=p.getUTCMinutes(),this.$s=p.getUTCSeconds(),this.$ms=p.getUTCMilliseconds()}else u.call(this)};var f=c.utcOffset;c.utcOffset=function(p,w){var b=this.$utils().u;if(b(p))return this.$u?0:b(this.$offset)?f.call(this):this.$offset;if(typeof p=="string"&&(p=(function(A){A===void 0&&(A="");var x=A.match(n);if(!x)return null;var k=(""+x[0]).match(r)||["-",0,0],O=k[0],Q=60*+k[1]+ +k[2];return Q===0?0:O==="+"?Q:-Q})(p),p===null))return this;var C=Math.abs(p)<=16?60*p:p;if(C===0)return this.utc(w);var S=this.clone();if(w)return S.$offset=C,S.$u=!1,S;var v=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(S=this.local().add(C+v,a)).$offset=C,S.$x.$localOffset=v,S};var h=c.format;c.format=function(p){var w=p||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return h.call(this,w)},c.valueOf=function(){var p=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*p},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var g=c.toDate;c.toDate=function(p){return p==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():g.call(this)};var m=c.diff;c.diff=function(p,w,b){if(p&&this.$u===p.$u)return m.call(this,p,w,b);var C=this.local(),S=l(p).local();return m.call(C,S,w,b)}}}))})(zt)),zt.exports}var yi=Ai();const Ci=lt(yi);var Qt={exports:{}},vi=Qt.exports,Ka;function Si(){return Ka||(Ka=1,(function(e,t){(function(a,n){e.exports=n()})(vi,(function(){var a={year:0,month:1,day:2,hour:3,minute:4,second:5},n={};return function(r,o,i){var l,c=function(h,g,m){m===void 0&&(m={});var p=new Date(h),w=(function(b,C){C===void 0&&(C={});var S=C.timeZoneName||"short",v=b+"|"+S,A=n[v];return A||(A=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:S}),n[v]=A),A})(g,m);return w.formatToParts(p)},d=function(h,g){for(var m=c(h,g),p=[],w=0;w<m.length;w+=1){var b=m[w],C=b.type,S=b.value,v=a[C];v>=0&&(p[v]=parseInt(S,10))}var A=p[3],x=A===24?0:A,k=p[0]+"-"+p[1]+"-"+p[2]+" "+x+":"+p[4]+":"+p[5]+":000",O=+h;return(i.utc(k).valueOf()-(O-=O%1e3))/6e4},u=o.prototype;u.tz=function(h,g){h===void 0&&(h=l);var m,p=this.utcOffset(),w=this.toDate(),b=w.toLocaleString("en-US",{timeZone:h}),C=Math.round((w-new Date(b))/1e3/60),S=15*-Math.round(w.getTimezoneOffset()/15)-C;if(!Number(S))m=this.utcOffset(0,g);else if(m=i(b,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(S,!0),g){var v=m.utcOffset();m=m.add(p-v,"minute")}return m.$x.$timezone=h,m},u.offsetName=function(h){var g=this.$x.$timezone||i.tz.guess(),m=c(this.valueOf(),g,{timeZoneName:h}).find((function(p){return p.type.toLowerCase()==="timezonename"}));return m&&m.value};var f=u.startOf;u.startOf=function(h,g){if(!this.$x||!this.$x.$timezone)return f.call(this,h,g);var m=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return f.call(m,h,g).tz(this.$x.$timezone,!0)},i.tz=function(h,g,m){var p=m&&g,w=m||g||l,b=d(+i(),w);if(typeof h!="string")return i(h).tz(w);var C=(function(x,k,O){var Q=x-60*k*1e3,B=d(Q,O);if(k===B)return[Q,k];var M=d(Q-=60*(B-k)*1e3,O);return B===M?[Q,B]:[x-60*Math.min(B,M)*1e3,Math.max(B,M)]})(i.utc(h,p).valueOf(),b,w),S=C[0],v=C[1],A=i(S).utcOffset(v);return A.$x.$timezone=w,A},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(h){l=h}}}))})(Qt)),Qt.exports}var Ni=Si();const xi=lt(Ni);we.extend(Ci),we.extend(xi),we.extend(pi);const $t=e=>e==="en"?"en":"es",Ne=(e,t)=>{const{PUBLIC_LNG:a,DATE_TIMEZONE:n}=t||U(),r=$t(a??"es");return we.tz(e,n).locale(r).format("DD MMMM YYYY")},Ct=e=>{const{PUBLIC_LNG:t,DATE_TIMEZONE:a}=U(),n=$t(t??"es");return we.tz(e,a).locale(n).format(n==="en"?"MMMM DD YYYY [•] HH:mm [hs]":"DD [de] MMMM YYYY [•] HH:mm [hs]")},Ja=e=>{const{PUBLIC_LNG:t,DATE_TIMEZONE:a}=U(),n=$t(t??"es");return we.tz(e,a).locale(n).format("MM/DD/YYYY [•] HH:mm [HS]")},Ei=e=>{const{PUBLIC_LNG:t,DATE_TIMEZONE:a}=U(),n=$t(t??"es");return we.tz(e,a).locale(n).format("dddd DD [de] MMMM YYYY")},Qe=(e,t)=>{if(!e)return"";const a=new Date(e),r=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={};r.forEach(g=>{g.type!=="literal"&&(o[g.type]=g.value)});const i=new Date(a.toLocaleString("en-US",{timeZone:"UTC"})),c=(new Date(a.toLocaleString("en-US",{timeZone:t})).getTime()-i.getTime())/6e4,d=c>=0?"+":"-",u=g=>String(Math.floor(Math.abs(g))).padStart(2,"0"),f=u(c/60),h=u(c%60);return`${o.year}-${o.month}-${o.day}T${o.hour}:${o.minute}:${o.second}${d}${f}:${h}`},Ie=(e,t=136)=>e&&e.length>t?`${e.substring(0,t)}...`:e;function Ke(e){return e&&e.status==="fulfilled"?e.value.data:null}function Za(e){return e&&e.status==="fulfilled"?e.value:null}const Ti={url:"",target:"_self",canonical:"",internal:""},ki={date:"",created:0,modified:0,firstpublish:0,lastpublish:0};function Ii(e){return e==null?"":typeof e=="string"?e:e.article??e.home??e.section??e.seo??""}const ct=(e,t,a,n)=>{const r=Ii(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:{...ki,...e?.info?.date},link:e?.info?.link??Ti},preview:{sizes:e?.main?.image?.sizes??[],description:e?.main?.image?.description??""},config:{showtime:t??!1,showsubtitle:a??!1,showauthor:!!(n&&e?.main?.author)},main:{title:{article:r,home:r,seo:r,section:r},subtitle:{rendered:o,striped:o},tags:[]}}},Xa={note:["detailMain","detailSecondary","itemsListPrimary","relatedPrimary","relatedThumb","listStandard","cardTall","square","gallery","featuredSuperSecondary","featuredVerticalPrimary","featuredVerticalSecondary","featuredHorizontalPrimary","featuredHorizontalSecondary","featuredDiarioImageThumb"],author:["avatar","multiCrop"],video:["xl","lg","md"],og:["social"]},Ui=/^(w:\d+,h:\d+,t:[12](,c:[0-9a-f]{3,6})?;)+$/i;function Ra(e){if(typeof e!="object"||e===null)throw new Error("ImageSizesContract inválido: se esperaba un objeto con los grupos note/author/video/og.");const t=[],a=e;for(const n of Object.keys(Xa)){const r=a[n];if(typeof r!="object"||r===null){t.push(`${n} (falta el grupo completo)`);continue}const o=r;for(const i of Xa[n]){const l=o[i];(typeof l!="string"||!Ui.test(l))&&t.push(`${n}.${i}`)}}if(t.length>0)throw new Error(`ImageSizesContract inválido: faltan o tienen formato incorrecto los siguientes slots: ${t.join(", ")}. Formato esperado por slot: "w:{n},h:{n},t:{1|2}[,c:{hex}];" (uno o más, cada uno terminado en ';').`)}const Wt={note:{detailMain:"w:1200,h:675,t:2;",detailSecondary:"w:412,h:231,t:2;",itemsListPrimary:"w:801,h:449,t:2;",relatedPrimary:"w:212,h:142,t:2;",relatedThumb:"w:100,h:100,t:2;",listStandard:"w:343,h:193,t:2;",cardTall:"w:339,h:443,t:1,c:ffffff;",square:"w:343,h:343,t:2;",gallery:"w:1185,h:613,t:2;",featuredSuperSecondary:"w:380,h:548,t:2;",featuredVerticalPrimary:"w:590,h:512,t:2;",featuredVerticalSecondary:"w:290,h:512,t:2;",featuredHorizontalPrimary:"w:843,h:512,t:2;",featuredHorizontalSecondary:"w:437,h:256,t:2;",featuredDiarioImageThumb:"w:180,h:180,t:2;"},author:{avatar:"w:150,h:150,t:2;",multiCrop:"w:500,h:281,t:2;w:500,h:500,t:2;w:500,h:375,t:2;"},video:{xl:"w:1129,h:559,t:2;",lg:"w:585,h:369,t:2;",md:"w:271,h:153,t:2;"},og:{social:"w:1200,h:630,t:2;"}};function Yt(e,t,a,n){const r={};for(const o of Object.keys(t)){const i=a?.[o];typeof i=="string"&&i.length>0?r[o]=i:(r[o]=t[o],n.push(`${e}.${String(o)}`))}return r}function vt(e){const t=[],a={note:Yt("note",Wt.note,e?.note,t),author:Yt("author",Wt.author,e?.author,t),video:Yt("video",Wt.video,e?.video,t),og:Yt("og",Wt.og,e?.og,t)};return Ra(a),{contract:a,legacyFieldsUsed:t}}function Li(e){const{legacyFieldsUsed:t}=vt(e);return{ok:t.length===0,legacyFieldsUsed:t}}function Pi(e,t){const a=t?` (${t})`:"";if(e.ok){console.log(`✓ imageSizes${a}: contrato completo, sin slots legado.`);return}console.error(`✗ imageSizes${a}: quedan slots sin migrar (resueltos por default congelado):`);for(const n of e.legacyFieldsUsed)console.error(` - ${n}`);console.error(`
2
- Migrar cada slot listado a un valor explícito en tu imageSizes.ts (REFACTOR_IMGSIZES_PLAN.md §3).`)}const Oi=(()=>{const{contract:e}=vt(void 0);return`${e.note.relatedPrimary}${e.note.relatedThumb}`})(),en=/<div\b[^>]*class=["'][^"']*\bck-related-news\b[^"']*["'][^>]*>/gi;function Kt(e){if(!e?.body?.rendered)return[];const t=e.body.rendered,a=[];let n=0;for(;n<t.length;){en.lastIndex=n;const r=en.exec(t);if(!r)break;const o=r.index+r[0].length;let i=1,l=o,c=o;for(;l<t.length&&i>0;){const g=t.slice(l),m=g.match(/<div\b/i),p=g.match(/<\/div>/i),w=m?.index??-1,b=p?.index??-1;if(b===-1)break;const C=w===-1?1/0:l+w,S=l+b;w!==-1&&w<b?(i+=1,l=C+m[0].length):(i-=1,c=S,l=S+p[0].length)}const d=t.slice(o,c),u=[],f=/<span\b[^>]*\bdata-src=["']([^"']+)["']/gi;let h;for(;(h=f.exec(d))!==null;){const g=h[1];g&&u.push(g)}u.length>0&&a.push(u),n=l}return a}const Bi=Kt,tn=async(e,t,a=Oi)=>{const n=[];return e.forEach(i=>{i.forEach(l=>{const c=t({path:l.replaceAll("|","/"),imagesizes:a,exclude:"config,keywords,authors,body,related,relatedexternal,social,external,hascontent,customfields,pixel"});c&&n.push(c)})}),(await Promise.allSettled(n)).map(i=>Ke(i)?.data)},$e=()=>{const{PUBLIC_ENV:e,PUBLIC_API_HOST:t,PUBLIC_ASSETS_URL:a}=U();return e=="local"&&(!a||a==="false")?t:a&&a!=="false"?a:""},Mi=()=>{const{PUBLIC_ENV:e,PUBLIC_API_FRONT:t}=U();return e==="local"?t:""},sn=e=>e.replace(/^https?:?\/\/[^/]+/,"");function zs(e=U()){const{PUBLIC_SERVICE_PREFIX:t}=e;return t&&t!=="false"?"/"+t:""}function de(e=U()){const{PUBLIC_SERVICE_PREFIX:t,PUBLIC_IS_SUB_PUBLICATION:a,FORCE_SUB_PUBLICATION_PREFIX:n}=e;return n&&n!==""?"/"+n:t&&t!=="false"&&a&&a!=="false"?"/"+t:""}function dt(e,t,a=U()){if(!e)return e;const n=zs(a);if(!n)return e;let r;try{r=new URL(e)}catch{return e}if(!(r.pathname===n||r.pathname.startsWith(n+"/")))return e;const i=de(a),l=r.pathname.slice(n.length)||"/";return`${t.replace(/\/+$/,"")}${i}${l}${r.search}${r.hash}`}function _i(e,t=U()){if(!e)return e;const a=de(t);if(!a)return e;const n=zs(t);let r="",o=e,i="";try{const l=new URL(e);r=l.origin,o=l.pathname,i=l.search+l.hash}catch{const l=/^([^?#]*)(.*)$/.exec(e);o=l?.[1]??e,i=l?.[2]??""}return n&&(o===n||o.startsWith(n+"/"))&&(o=o.slice(n.length)||"/"),o!==a&&!o.startsWith(a+"/")&&(o=a+o),`${r}${o}${i}`}const Di=e=>{if(!e?.preview?.length)return null;const t=e.preview;return t.find(a=>a.format==="1.91:1")??t[t.length-1]},an=({schemaImage:e,socialImage:t,fallbackImage:a,prefix:n,defaultWidth:r,defaultHeight:o,alt:i})=>e?.url?{url:n+e.url,width:e.width,height:e.height,alt:i}:{url:n+(t??a??""),width:r,height:o,alt:i},nn=(e,t,a,n)=>{if(!t)return{};const{PUBLIC_ASSETS_URL:r,PUBLIC_API_FRONT:o,DATE_TIMEZONE:i="America/Mexico_City"}=U(),l=Qs(t.keywords)??"",c=t?.preview?.sizes?t?.preview?.sizes[0]?.url:"",d=(r!=="false"?r:o)??"",u=Di(n),f=t.main.title.article,h=an({schemaImage:u,socialImage:t?.social?.images?.facebook,fallbackImage:c,prefix:d,defaultWidth:a.landscapeLogo.width,defaultHeight:a.landscapeLogo.height,alt:n?.description??f}),g=an({schemaImage:u,socialImage:t?.social?.images?.twitter,fallbackImage:c,prefix:d,defaultWidth:a.twitterSummaryCard.width,defaultHeight:a.twitterSummaryCard.height,alt:n?.description??f}),m=(()=>{try{return new URL(a.siteUrl??"").origin}catch{return a.siteUrl??""}})(),p=dt(t?.info?.link?.canonical,m);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:p},description:t?.main?.subtitle?.striped??"",news_keywords:l,keywords:l,openGraph:{title:t?.social?.title?t?.social?.title:t?.main?.title?.article,url:p,type:"article",description:t?.social?.description?t?.social?.description:t?.main?.subtitle?.striped??"",images:[h],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:[g]},article:{published_time:Qe(t?.info?.date?.firstpublish,i),modified_time:Qe(t?.info?.date?.lastpublish??t?.info?.date?.firstpublish,i),section:t?.info?.section?.name,author:t?.authors?.[0]?.fullname,tag:t?.keywords?.tags??[]}}},Qs=e=>!e||!e?.tags||e?.tags?.length===0?"":e?.tags?.map(t=>t.name).join(", ").replaceAll('"',"'").replaceAll("`","'"),rn=e=>{const t=e?.match(/^\/(?:[^/]+\/)?([^/]+)\/([^/]+\.html)$/);return t?{slug:t[1]??"",path:t[2]??""}:{slug:"",path:""}},on=e=>e.replaceAll("/","").replaceAll("_","").replace(".html",""),qi={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.domain":{attr:"name",value:"twitter:domain"},"twitter.url":{attr:"name",value:"twitter:url"}},ln=e=>{const t=[];let a=0;const n=i=>t.push(i);return e.title&&typeof e.title=="string"&&n(s.jsx("title",{children:e.title},`title-${a++}`)),Object.entries(qi).forEach(([i,l])=>{const c=i.split(".").reduce((d,u)=>d?.[u],e);c&&n(s.jsx("meta",{[l.attr]:l.value,content:String(c)},`meta-${a++}`))}),(e.openGraph?.images?Array.isArray(e.openGraph.images)?e.openGraph.images:[e.openGraph.images]:[]).forEach(i=>{i&&(typeof i=="string"?n(s.jsx("meta",{property:"og:image",content:i},`og-img-${a++}`)):(i.url&&n(s.jsx("meta",{property:"og:image",content:i.url},`og-img-${a++}`)),i.width&&n(s.jsx("meta",{property:"og:image:width",content:String(i.width)},`og-img-w-${a++}`)),i.height&&n(s.jsx("meta",{property:"og:image:height",content:String(i.height)},`og-img-h-${a++}`)),i.alt&&n(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"?n(s.jsx("meta",{name:"twitter:image",content:i},`tw-img-${a++}`)):(i.url&&n(s.jsx("meta",{name:"twitter:image",content:i.url},`tw-img-${a++}`)),i.width&&n(s.jsx("meta",{name:"twitter:image:width",content:String(i.width)},`tw-img-w-${a++}`)),i.height&&n(s.jsx("meta",{name:"twitter:image:height",content:String(i.height)},`tw-img-h-${a++}`)),i.alt&&n(s.jsx("meta",{name:"twitter:image:alt",content:String(i.alt)},`tw-img-alt-${a++}`))))}),e.article&&(n(s.jsx("meta",{property:"article:published_time",content:e.article.published_time})),n(s.jsx("meta",{property:"article:modified_time",content:e.article.modified_time})),n(s.jsx("meta",{property:"article:section",content:e.article.section})),n(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=>{n(s.jsx("meta",{property:"article:tag",content:i.name}))})),e.alternates?.canonical&&n(s.jsx("link",{rel:"canonical",href:String(e.alternates.canonical)},`link-${a++}`)),e.manifest&&n(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"&&n(s.jsx("link",{rel:"alternate",type:i,href:l},`alt-${a++}`))}),e.icons&&[...e.icons?.icon??[],...e.icons?.other??[]].forEach(l=>{l&&n(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&&n(s.jsx("meta",{name:i,content:String(l)},`other-${a++}`))}),t},ue=async e=>{const t=$e()??"",a=e;return a?.startsWith("http")||a?.includes(t)||t===""?a:t+a},ut=(e,t)=>{const a=e||"";return t?a.replaceAll("[section_replace]",t["[section_replace]"]??"").replaceAll("[tag_replace]",t["[tag_replace]"]??"").replaceAll("[tags_replace]",t["[tags_replace]"]??"").replaceAll("[url_replace]",t["[url_replace]"]??"").replaceAll("[author_replace]",t["[author_replace]"]??"").replaceAll("[creator_replace]",t["[creator_replace]"]??"")||"":a||""},ji=/\[(?:general|seccion:[^\]]+|tema:\d+)\][\s\S]*?\[\/(?:general|seccion:[^\]]+|tema:\d+)\]/i,Gi=/\[(general|seccion:[^\]]+|tema:\d+)\]([\s\S]*?)\[\/\1\]/gi,Fi=e=>!e||e.type==="general"?"general":e.type==="seccion"?`seccion:${e.value}`.toLowerCase():`tema:${e.value}`,Jt=(e,t)=>{const a=e||"";if(!ji.test(a))return a;const n=new Map;for(const l of a.matchAll(Gi)){const c=l[1]?.toLowerCase(),d=l[2];c&&d!==void 0&&!n.has(c)&&n.set(c,d)}if(n.size===0)return a;const r=Fi(t),o=n.get(r);if(o!==void 0)return o;const i=n.get("general");return i!==void 0?i:""};function $s(){const e=U().CONFIG_batchedFetch?.batches;return typeof e=="number"&&e>0?e:3}function Ws(e){const{CONFIG_batchedFetch:t,CONFIG_sectionBatchedFetch:a}=U(),n=t?.routes?.[e];return n!==void 0?n:e==="seccion"?!!a:!1}function cn(e,t,a,n=$s()){const r=Math.ceil(t/n),o=(a-1)*n+1;return Promise.all(Array.from({length:n},(i,l)=>e(r,o+l)??Promise.resolve({data:{data:[]}}))).then(i=>({data:{data:i.flatMap(l=>l?.data?.data??[])}}))}function Hi(e,t,a,n){return Ws(e)?cn(t,a,n):t(a,n)??Promise.resolve({data:{data:[]}})}async function dn({fetchFn:e,baseParams:t,userPage:a,newsListLimit:n,batchCount:r=$s()}){const o=Math.ceil(n/r),i=(a-1)*r+1,l=Array.from({length:r},(m,p)=>e({...t,size:o,page:i+p})??Promise.resolve(void 0)),c=await Promise.allSettled(l),d=c.map(m=>m.status==="fulfilled"&&m.value?.data?.data?m.value.data.data:[]),u=d.flat(),h=(d[d.length-1]??[]).length===o,g=c[0]?.status==="fulfilled"?c[0].value:void 0;return{data:u,hasNextPage:h,firstBatchResponse:g}}const Je=[],Ze=[],un=()=>!!U().DEBUG_ENABLED,Ae={add(e){un()&&(Je.push({id:`${Date.now()}-${Je.length}`,timestamp:new Date().toISOString(),...e}),typeof window<"u"&&window.dispatchEvent(new CustomEvent("debug-fetch-error",{detail:{count:Je.length}})))},getAll(){return[...Je]},getCount(){return Je.length},clear(){Je.length=0},addSuccess(e){un()&&(Ze.push({id:`${Date.now()}-s-${Ze.length}`,timestamp:new Date().toISOString(),...e}),typeof window<"u"&&window.dispatchEvent(new CustomEvent("debug-fetch-success",{detail:{count:Ze.length}})))},getAllSuccesses(){return[...Ze]},getSuccessCount(){return Ze.length},clearSuccesses(){Ze.length=0},clearAll(){Je.length=0,Ze.length=0}};function hn(e){const t=e?.response?.status??"no-status",a=e?.message??String(e);return`${t} ${a}`}function Vi(e){const t=e?.response?.status;return typeof t=="number"&&t>=400&&t<500&&t!==429}function zi(e,t){return new Promise((a,n)=>{const r=setTimeout(()=>n(new Error(`timeout after ${t}ms`)),t);e.then(o=>{clearTimeout(r),a(o)},o=>{clearTimeout(r),n(o)})})}async function Zt(e,t,{label:a,endpoint:n,params:r,retries:o=2,timeoutMs:i=2500,baseDelayMs:l=150}){let c;for(let d=0;d<=o;d++)try{return await zi(Promise.resolve(e()),i)}catch(u){if(c=u,console.log(`[${a}] intento ${d+1}/${o+1} fallido: ${hn(u)}`),Vi(u)){console.log(`[${a}] error de cliente no reintentable, se salta al fallback`);break}d<o&&await new Promise(f=>setTimeout(f,l*2**d))}return Ae.add({service:a,endpoint:n??a,method:"GET",params:r,message:hn(c),status:c?.response?.status,layer:"axios-service"}),t}function fn(){return{success:!1,site:"",publication:"",entity:void 0,data:[]}}const Qi=e=>{const t={};if(!e)return t;const a=/([^\s=]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'>]+)))?/g;let n;for(;n=a.exec(e);){const r=n[1],o=n[2]??n[3]??n[4]??!0;t[r]=o}return t},$i=e=>{const t=e.match(/\bsrc\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/i);return t?.[1]||t?.[2]||t?.[3]||null},mn=(e,t,a,n)=>{try{const r=Qi(e);return r.src?s.jsx("script",{"data-bs-name":n,...r},a):s.jsx("script",{...r,dangerouslySetInnerHTML:{__html:t}},a)}catch{const o=$i(e);return o?s.jsx("script",{"data-bs-name":n,src:o,async:!0,defer:!0},a):null}},Wi=e=>{const t=/<script\b([^>]*)>([\s\S]*?)<\/script\s*>|<script\b([^>]*)\/?>/gi;return[...e.matchAll(t)]},Ys=e=>{const t=e.banners.find(r=>r.key===e.name);if(!t||!t.show)return null;const a=ut(t.value||"",e.replaces),n=Wi(a);return s.jsx(s.Fragment,{children:n.map((r,o)=>{const i=r[1]||r[3]||"",l=r[2]?.trim()||"";return mn(i,l,o,e.name)})})},pn=e=>{const t=e.banners.find(r=>r.key===e.name);if(!t||!t.show)return null;const n=ut(t.value||"",e.replaces).split(/(<script\b[\s\S]*?<\/script\s*>|<script\b[^>]*\/?>)/gi);return s.jsx(s.Fragment,{children:n.map((r,o)=>{const i=r.match(/<script\b([^>]*)>([\s\S]*?)<\/script\s*>|<script\b([^>]*)\/?>/i);if(i){const l=i[1]||i[3]||"",c=i[2]?.trim()||"";return mn(l,c,o,e.name)}return r.trim()&&/<[a-zA-Z]/.test(r)?s.jsx("div",{dangerouslySetInnerHTML:{__html:r}},o):null})})},Xe=(e,t,a)=>{let n=e.siteUrl;return t.forEach((r,o)=>{o>0&&(n+=`/${r}`)}),`${n}/page/${a+1}`},Re=(e,t,a)=>{let n=e.siteUrl;return t.forEach((r,o)=>{o>0&&(n+=`/${r}`)}),`${n}/page/${a-1}`};function Yi(e){const t=e.length;return t>1&&e.charCodeAt(t-1)===47?e.slice(0,t-1):e}const gn=()=>{const{PUBLIC_ASSETS_URL:e}=U();return e&&e!=="false"&&s.jsx("link",{rel:"preconnect",href:e,crossOrigin:"anonymous"})},Ks=({images:e})=>s.jsx(s.Fragment,{children:e.map((t,a)=>t.href!==""&&s.jsx("link",{rel:"preload",href:t.href,media:t.media??"",as:"image",fetchPriority:t.fetchPriority??"high"},a))}),wn=(e,t,a)=>{if(!t)return{};const{PUBLIC_API_FRONT:n}=U();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:"video.other",description:t.main.description??"",images:[{url:(n??"")+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:(n??"")+t?.main.image.sizes[0]?.url,width:a.twitterSummaryCard.width,height:a.twitterSummaryCard.height}]}}},Ki=e=>{let t="";if(e.params.news.match(/.*t[0-9]*.html/g)){const a=e.params.news.split("-"),n=a[a.length-1]??"",r=n.substring(1,9),o=n.substring(9,13);t=`/listas/${we(r).format("YYYY/MM/DD")}/lista_${o}.html`}else if(e.params.news.match(/.*lb[0-9]*.html/g)){const a=e.params.news.split("-"),n=a[a.length-1]??"",r=n.substring(2,10),o=n.substring(10,14);t=`/liveblog/${we(r).format("YYYY/MM/DD")}/liveblog_${o}.html`}else{const n=e.params.news.replace(/\.html$/g,"").split("-");Array.isArray(n)&&(t=`/contenidos/${we(n[n.length-2]).format("YYYY/MM/DD")}/noticia_${n[n.length-1]}.html`)}return e.config.servicePrefix+t};function Ji(e){const t=e.lastIndexOf("-"),a=t>=0?[e.slice(0,t),e.slice(t+1)]:[e],n=a[a.length-1]?.split("."),r=n&&n[0]?n[0]:"",o=r.substring(0,2),i=r.substring(2,10),l=r.substring(10);return{path:{vy:d=>`/videos/video-youtube/${we(i).format("YYYY/MM/DD")}/videoYouTube_${d}.lnk`,ve:d=>`/videos/video-embedded/${we(i).format("YYYY/MM/DD")}/videoEmbedded_${d}.lnk`,vf:d=>`/videos/video-flash/${we(i).format("YYYY/MM/DD")}/${a[0]}.${d}`}[o]?.(l)??"",op:o}}const je=(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}`},Zi=e=>{const{AssetsPrefix:t="",AssetsPath:a="src",isDev:n=!1}=e;return n?"src":t+a},Xi=async(e,t,a,n)=>{const{FETCH_TAG_BASED_RELATED_NEWS:r=!1,FETCH_SIZE_RELATED_NEWS:o=10}=U();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:n.md}))?.data?.data??[];{const i=e&&e.keywords&&e.keywords.tags&&e.keywords.tags[0];return((e?i&&r?await a.getNewsListAvanced({query:'claves:("'+e.keywords?.tags[0].name+'")',exclude:"gallery,related,relatedexternal,external,customfields",imagesizes:n.md,size:o+1}):await a.getNewsItemsRelated(t.split("/").join("|"),{size:o}):null)?.data?.data??[]).filter(d=>d.info.link.internal!==t.split("/").join("|"))}}catch(i){console.log(i)}},Ri="https://recaptchaenterprise.googleapis.com/v1/projects",el=async({projectID:e,recaptchaKey:t,token:a,recaptchaAction:n,apiKey:r,userAgent:o,userIpAddress:i})=>{if(!e||!t||!a||!r)return console.warn("createAssessment: faltan parámetros requeridos"),null;const l=`${Ri}/${e}/assessments?key=${r}`,c={event:{token:a,siteKey:t,expectedAction:n,...o&&{userAgent:o},...i&&{userIpAddress:i}}};try{const d=await fetch(l,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)});if(!d.ok)return console.error("createAssessment API error:",d.status,await d.text()),null;const u=await d.json();if(!u?.tokenProperties?.valid)return console.log(`CreateAssessment falló - token inválido: ${u?.tokenProperties?.invalidReason??"unknown"}`),null;if(u.tokenProperties.action!==n)return console.log("La acción en reCAPTCHA no coincide con la esperada:",n),null;const f=u?.riskAnalysis?.score;return f!==void 0&&(console.log("reCAPTCHA score:",f),u?.riskAnalysis?.reasons?.forEach(h=>console.log(h))),typeof f=="number"?f:null}catch(d){return console.error("createAssessment error:",d),null}};function tl(e,t){if(t==="comentarios")return;const a=e[t];return typeof a=="string"||a===void 0?a:void 0}const sl=e=>e?.body?.rendered.includes("ck-image-gallery")||e?.config?.articlepreview==="fotogaleria"&&e?.hascontent?.hasgalleryimages;function al(e){const t={};for(const[a,n]of Object.entries(e)){const r=btoa(a).split("").reverse().join("");typeof n=="string"?t[r]=btoa(n).split("").reverse().join(""):t[r]=n}return t}function Js(e){const t={};for(const[a,n]of Object.entries(e)){const r=atob(a.split("").reverse().join(""));if(typeof n=="string")try{t[r]=atob(n.split("").reverse().join(""))}catch{t[r]=n}else t[r]=n}return t}const nl=async(e,t,a)=>{const{info:n,preview:r}=e,o=e?.config?.homepreview||"imagen",i=o==="clip"&&e?.hascontent?.hasgalleryvideosflash,l={...r};if(o==="videoYouTube"||o==="videoEmbedded"||i){const c=await t.getNewsMultimedia({path:n.link.internal,imagesizes:a});if(c&&c.data)return{...e,preview:l,videos:c.data.data[0].videos??[]}}if(o==="fotogaleria"){const c=await t.getNewsMultimedia({path:n.link.internal,imagesizes:a});if(c&&c.data){const d=await Promise.all(c.data.data[0].gallery.map(async u=>({...u})));return{...e,preview:l,gallery:d??[]}}}return{...e,preview:l}};function bn(e,t){return function(){return e.apply(t,arguments)}}const{toString:rl}=Object.prototype,{getPrototypeOf:Zs}=Object,{iterator:Xt,toStringTag:An}=Symbol,Rt=(e=>t=>{const a=rl.call(t);return e[a]||(e[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),Te=e=>(e=e.toLowerCase(),t=>Rt(t)===e),es=e=>t=>typeof t===e,{isArray:ht}=Array,ft=es("undefined");function St(e){return e!==null&&!ft(e)&&e.constructor!==null&&!ft(e.constructor)&&ye(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const yn=Te("ArrayBuffer");function ol(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&yn(e.buffer),t}const il=es("string"),ye=es("function"),Cn=es("number"),Nt=e=>e!==null&&typeof e=="object",ll=e=>e===!0||e===!1,ts=e=>{if(Rt(e)!=="object")return!1;const t=Zs(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(An in e)&&!(Xt in e)},cl=e=>{if(!Nt(e)||St(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},dl=Te("Date"),ul=Te("File"),hl=Te("Blob"),fl=Te("FileList"),ml=e=>Nt(e)&&ye(e.pipe),pl=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ye(e.append)&&((t=Rt(e))==="formdata"||t==="object"&&ye(e.toString)&&e.toString()==="[object FormData]"))},gl=Te("URLSearchParams"),[wl,bl,Al,yl]=["ReadableStream","Request","Response","Headers"].map(Te),Cl=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function xt(e,t,{allOwnKeys:a=!1}={}){if(e===null||typeof e>"u")return;let n,r;if(typeof e!="object"&&(e=[e]),ht(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{if(St(e))return;const o=a?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let l;for(n=0;n<i;n++)l=o[n],t.call(null,e[l],l,e)}}function vn(e,t){if(St(e))return null;t=t.toLowerCase();const a=Object.keys(e);let n=a.length,r;for(;n-- >0;)if(r=a[n],t===r.toLowerCase())return r;return null}const et=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Sn=e=>!ft(e)&&e!==et;function Xs(){const{caseless:e,skipUndefined:t}=Sn(this)&&this||{},a={},n=(r,o)=>{const i=e&&vn(a,o)||o;ts(a[i])&&ts(r)?a[i]=Xs(a[i],r):ts(r)?a[i]=Xs({},r):ht(r)?a[i]=r.slice():(!t||!ft(r))&&(a[i]=r)};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&xt(arguments[r],n);return a}const vl=(e,t,a,{allOwnKeys:n}={})=>(xt(t,(r,o)=>{a&&ye(r)?e[o]=bn(r,a):e[o]=r},{allOwnKeys:n}),e),Sl=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Nl=(e,t,a,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),a&&Object.assign(e.prototype,a)},xl=(e,t,a,n)=>{let r,o,i;const l={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),o=r.length;o-- >0;)i=r[o],(!n||n(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=a!==!1&&Zs(e)}while(e&&(!a||a(e,t))&&e!==Object.prototype);return t},El=(e,t,a)=>{e=String(e),(a===void 0||a>e.length)&&(a=e.length),a-=t.length;const n=e.indexOf(t,a);return n!==-1&&n===a},Tl=e=>{if(!e)return null;if(ht(e))return e;let t=e.length;if(!Cn(t))return null;const a=new Array(t);for(;t-- >0;)a[t]=e[t];return a},kl=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Zs(Uint8Array)),Il=(e,t)=>{const n=(e&&e[Xt]).call(e);let r;for(;(r=n.next())&&!r.done;){const o=r.value;t.call(e,o[0],o[1])}},Ul=(e,t)=>{let a;const n=[];for(;(a=e.exec(t))!==null;)n.push(a);return n},Ll=Te("HTMLFormElement"),Pl=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,n,r){return n.toUpperCase()+r}),Nn=(({hasOwnProperty:e})=>(t,a)=>e.call(t,a))(Object.prototype),Ol=Te("RegExp"),xn=(e,t)=>{const a=Object.getOwnPropertyDescriptors(e),n={};xt(a,(r,o)=>{let i;(i=t(r,o,e))!==!1&&(n[o]=i||r)}),Object.defineProperties(e,n)},Bl=e=>{xn(e,(t,a)=>{if(ye(e)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const n=e[a];if(ye(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")})}})},Ml=(e,t)=>{const a={},n=r=>{r.forEach(o=>{a[o]=!0})};return ht(e)?n(e):n(String(e).split(t)),a},_l=()=>{},Dl=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function ql(e){return!!(e&&ye(e.append)&&e[An]==="FormData"&&e[Xt])}const jl=e=>{const t=new Array(10),a=(n,r)=>{if(Nt(n)){if(t.indexOf(n)>=0)return;if(St(n))return n;if(!("toJSON"in n)){t[r]=n;const o=ht(n)?[]:{};return xt(n,(i,l)=>{const c=a(i,r+1);!ft(c)&&(o[l]=c)}),t[r]=void 0,o}}return n};return a(e,0)},Gl=Te("AsyncFunction"),Fl=e=>e&&(Nt(e)||ye(e))&&ye(e.then)&&ye(e.catch),En=((e,t)=>e?setImmediate:t?((a,n)=>(et.addEventListener("message",({source:r,data:o})=>{r===et&&o===a&&n.length&&n.shift()()},!1),r=>{n.push(r),et.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",ye(et.postMessage)),Hl=typeof queueMicrotask<"u"?queueMicrotask.bind(et):typeof process<"u"&&process.nextTick||En,E={isArray:ht,isArrayBuffer:yn,isBuffer:St,isFormData:pl,isArrayBufferView:ol,isString:il,isNumber:Cn,isBoolean:ll,isObject:Nt,isPlainObject:ts,isEmptyObject:cl,isReadableStream:wl,isRequest:bl,isResponse:Al,isHeaders:yl,isUndefined:ft,isDate:dl,isFile:ul,isBlob:hl,isRegExp:Ol,isFunction:ye,isStream:ml,isURLSearchParams:gl,isTypedArray:kl,isFileList:fl,forEach:xt,merge:Xs,extend:vl,trim:Cl,stripBOM:Sl,inherits:Nl,toFlatObject:xl,kindOf:Rt,kindOfTest:Te,endsWith:El,toArray:Tl,forEachEntry:Il,matchAll:Ul,isHTMLForm:Ll,hasOwnProperty:Nn,hasOwnProp:Nn,reduceDescriptors:xn,freezeMethods:Bl,toObjectSet:Ml,toCamelCase:Pl,noop:_l,toFiniteNumber:Dl,findKey:vn,global:et,isContextDefined:Sn,isSpecCompliantForm:ql,toJSONObject:jl,isAsyncFn:Gl,isThenable:Fl,setImmediate:En,asap:Hl,isIterable:e=>e!=null&&ye(e[Xt])};function ee(e,t,a,n,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),a&&(this.config=a),n&&(this.request=n),r&&(this.response=r,this.status=r.status?r.status:null)}E.inherits(ee,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:E.toJSONObject(this.config),code:this.code,status:this.status}}});const Tn=ee.prototype,kn={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{kn[e]={value:e}}),Object.defineProperties(ee,kn),Object.defineProperty(Tn,"isAxiosError",{value:!0}),ee.from=(e,t,a,n,r,o)=>{const i=Object.create(Tn);E.toFlatObject(e,i,function(u){return u!==Error.prototype},d=>d!=="isAxiosError");const l=e&&e.message?e.message:"Error",c=t==null&&e?e.code:t;return ee.call(i,l,c,a,n,r),e&&i.cause==null&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",o&&Object.assign(i,o),i};const Vl=null;function Rs(e){return E.isPlainObject(e)||E.isArray(e)}function In(e){return E.endsWith(e,"[]")?e.slice(0,-2):e}function Un(e,t,a){return e?e.concat(t).map(function(r,o){return r=In(r),!a&&o?"["+r+"]":r}).join(a?".":""):t}function zl(e){return E.isArray(e)&&!e.some(Rs)}const Ql=E.toFlatObject(E,{},null,function(t){return/^is[A-Z]/.test(t)});function ss(e,t,a){if(!E.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,a=E.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,w){return!E.isUndefined(w[p])});const n=a.metaTokens,r=a.visitor||u,o=a.dots,i=a.indexes,c=(a.Blob||typeof Blob<"u"&&Blob)&&E.isSpecCompliantForm(t);if(!E.isFunction(r))throw new TypeError("visitor must be a function");function d(m){if(m===null)return"";if(E.isDate(m))return m.toISOString();if(E.isBoolean(m))return m.toString();if(!c&&E.isBlob(m))throw new ee("Blob is not supported. Use a Buffer instead.");return E.isArrayBuffer(m)||E.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,p,w){let b=m;if(m&&!w&&typeof m=="object"){if(E.endsWith(p,"{}"))p=n?p:p.slice(0,-2),m=JSON.stringify(m);else if(E.isArray(m)&&zl(m)||(E.isFileList(m)||E.endsWith(p,"[]"))&&(b=E.toArray(m)))return p=In(p),b.forEach(function(S,v){!(E.isUndefined(S)||S===null)&&t.append(i===!0?Un([p],v,o):i===null?p:p+"[]",d(S))}),!1}return Rs(m)?!0:(t.append(Un(w,p,o),d(m)),!1)}const f=[],h=Object.assign(Ql,{defaultVisitor:u,convertValue:d,isVisitable:Rs});function g(m,p){if(!E.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+p.join("."));f.push(m),E.forEach(m,function(b,C){(!(E.isUndefined(b)||b===null)&&r.call(t,b,E.isString(C)?C.trim():C,p,h))===!0&&g(b,p?p.concat(C):[C])}),f.pop()}}if(!E.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Ln(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function ea(e,t){this._pairs=[],e&&ss(e,this,t)}const Pn=ea.prototype;Pn.append=function(t,a){this._pairs.push([t,a])},Pn.toString=function(t){const a=t?function(n){return t.call(this,n,Ln)}:Ln;return this._pairs.map(function(r){return a(r[0])+"="+a(r[1])},"").join("&")};function $l(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function On(e,t,a){if(!t)return e;const n=a&&a.encode||$l;E.isFunction(a)&&(a={serialize:a});const r=a&&a.serialize;let o;if(r?o=r(t,a):o=E.isURLSearchParams(t)?t.toString():new ea(t,a).toString(n),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Bn{constructor(){this.handlers=[]}use(t,a,n){return this.handlers.push({fulfilled:t,rejected:a,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){E.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Mn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Wl={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ea,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ta=typeof window<"u"&&typeof document<"u",sa=typeof navigator=="object"&&navigator||void 0,Yl=ta&&(!sa||["ReactNative","NativeScript","NS"].indexOf(sa.product)<0),Kl=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Jl=ta&&window.location.href||"http://localhost",fe={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ta,hasStandardBrowserEnv:Yl,hasStandardBrowserWebWorkerEnv:Kl,navigator:sa,origin:Jl},Symbol.toStringTag,{value:"Module"})),...Wl};function Zl(e,t){return ss(e,new fe.classes.URLSearchParams,{visitor:function(a,n,r,o){return fe.isNode&&E.isBuffer(a)?(this.append(n,a.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function Xl(e){return E.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Rl(e){const t={},a=Object.keys(e);let n;const r=a.length;let o;for(n=0;n<r;n++)o=a[n],t[o]=e[o];return t}function _n(e){function t(a,n,r,o){let i=a[o++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),c=o>=a.length;return i=!i&&E.isArray(r)?r.length:i,c?(E.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!l):((!r[i]||!E.isObject(r[i]))&&(r[i]=[]),t(a,n,r[i],o)&&E.isArray(r[i])&&(r[i]=Rl(r[i])),!l)}if(E.isFormData(e)&&E.isFunction(e.entries)){const a={};return E.forEachEntry(e,(n,r)=>{t(Xl(n),r,a,0)}),a}return null}function ec(e,t,a){if(E.isString(e))try{return(t||JSON.parse)(e),E.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(a||JSON.stringify)(e)}const Et={transitional:Mn,adapter:["xhr","http","fetch"],transformRequest:[function(t,a){const n=a.getContentType()||"",r=n.indexOf("application/json")>-1,o=E.isObject(t);if(o&&E.isHTMLForm(t)&&(t=new FormData(t)),E.isFormData(t))return r?JSON.stringify(_n(t)):t;if(E.isArrayBuffer(t)||E.isBuffer(t)||E.isStream(t)||E.isFile(t)||E.isBlob(t)||E.isReadableStream(t))return t;if(E.isArrayBufferView(t))return t.buffer;if(E.isURLSearchParams(t))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Zl(t,this.formSerializer).toString();if((l=E.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return ss(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return o||r?(a.setContentType("application/json",!1),ec(t)):t}],transformResponse:[function(t){const a=this.transitional||Et.transitional,n=a&&a.forcedJSONParsing,r=this.responseType==="json";if(E.isResponse(t)||E.isReadableStream(t))return t;if(t&&E.isString(t)&&(n&&!this.responseType||r)){const i=!(a&&a.silentJSONParsing)&&r;try{return JSON.parse(t,this.parseReviver)}catch(l){if(i)throw l.name==="SyntaxError"?ee.from(l,ee.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:fe.classes.FormData,Blob:fe.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};E.forEach(["delete","get","head","post","put","patch"],e=>{Et.headers[e]={}});const tc=E.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),sc=e=>{const t={};let a,n,r;return e&&e.split(`
2
+ Migrar cada slot listado a un valor explícito en tu imageSizes.ts (REFACTOR_IMGSIZES_PLAN.md §3).`)}const Oi=(()=>{const{contract:e}=vt(void 0);return`${e.note.relatedPrimary}${e.note.relatedThumb}`})(),en=/<div\b[^>]*class=["'][^"']*\bck-related-news\b[^"']*["'][^>]*>/gi;function Kt(e){if(!e?.body?.rendered)return[];const t=e.body.rendered,a=[];let n=0;for(;n<t.length;){en.lastIndex=n;const r=en.exec(t);if(!r)break;const o=r.index+r[0].length;let i=1,l=o,c=o;for(;l<t.length&&i>0;){const g=t.slice(l),m=g.match(/<div\b/i),p=g.match(/<\/div>/i),w=m?.index??-1,b=p?.index??-1;if(b===-1)break;const C=w===-1?1/0:l+w,S=l+b;w!==-1&&w<b?(i+=1,l=C+m[0].length):(i-=1,c=S,l=S+p[0].length)}const d=t.slice(o,c),u=[],f=/<span\b[^>]*\bdata-src=["']([^"']+)["']/gi;let h;for(;(h=f.exec(d))!==null;){const g=h[1];g&&u.push(g)}u.length>0&&a.push(u),n=l}return a}const Bi=Kt,tn=async(e,t,a=Oi)=>{const n=[];return e.forEach(i=>{i.forEach(l=>{const c=t({path:l.replaceAll("|","/"),imagesizes:a,exclude:"config,keywords,authors,body,related,relatedexternal,social,external,hascontent,customfields,pixel"});c&&n.push(c)})}),(await Promise.allSettled(n)).map(i=>Ke(i)?.data)},$e=()=>{const{PUBLIC_ENV:e,PUBLIC_API_HOST:t,PUBLIC_ASSETS_URL:a}=U();return e=="local"&&(!a||a==="false")?t:a&&a!=="false"?a:""},Mi=()=>{const{PUBLIC_ENV:e,PUBLIC_API_FRONT:t}=U();return e==="local"?t:""},sn=e=>e.replace(/^https?:?\/\/[^/]+/,"");function zs(e=U()){const{PUBLIC_SERVICE_PREFIX:t}=e;return t&&t!=="false"?"/"+t:""}function de(e=U()){const{PUBLIC_SERVICE_PREFIX:t,PUBLIC_IS_SUB_PUBLICATION:a,FORCE_SUB_PUBLICATION_PREFIX:n}=e;return n&&n!==""?"/"+n:t&&t!=="false"&&a&&a!=="false"?"/"+t:""}function dt(e,t,a=U()){if(!e)return e;const n=zs(a);if(!n)return e;let r;try{r=new URL(e)}catch{return e}if(!(r.pathname===n||r.pathname.startsWith(n+"/")))return e;const i=de(a),l=r.pathname.slice(n.length)||"/";return`${t.replace(/\/+$/,"")}${i}${l}${r.search}${r.hash}`}function _i(e,t=U()){if(!e)return e;const a=de(t);if(!a)return e;const n=zs(t);let r="",o=e,i="";try{const l=new URL(e);r=l.origin,o=l.pathname,i=l.search+l.hash}catch{const l=/^([^?#]*)(.*)$/.exec(e);o=l?.[1]??e,i=l?.[2]??""}return n&&(o===n||o.startsWith(n+"/"))&&(o=o.slice(n.length)||"/"),o!==a&&!o.startsWith(a+"/")&&(o=a+o),`${r}${o}${i}`}const Di=e=>{if(!e?.preview?.length)return null;const t=e.preview;return t.find(a=>a.format==="1.91:1")??t[t.length-1]},an=({schemaImage:e,socialImage:t,fallbackImage:a,prefix:n,defaultWidth:r,defaultHeight:o,alt:i})=>e?.url?{url:n+e.url,width:e.width,height:e.height,alt:i}:{url:n+(t??a??""),width:r,height:o,alt:i},nn=(e,t,a,n)=>{if(!t)return{};const{PUBLIC_ASSETS_URL:r,PUBLIC_API_FRONT:o,DATE_TIMEZONE:i="America/Mexico_City"}=U(),l=Qs(t.keywords)??"",c=t?.preview?.sizes?t?.preview?.sizes[0]?.url:"",d=(r!=="false"?r:o)??"",u=Di(n),f=t.main.title.article,h=an({schemaImage:u,socialImage:t?.social?.images?.facebook,fallbackImage:c,prefix:d,defaultWidth:a.landscapeLogo.width,defaultHeight:a.landscapeLogo.height,alt:n?.description??f}),g=an({schemaImage:u,socialImage:t?.social?.images?.twitter,fallbackImage:c,prefix:d,defaultWidth:a.twitterSummaryCard.width,defaultHeight:a.twitterSummaryCard.height,alt:n?.description??f}),m=(()=>{try{return new URL(a.siteUrl??"").origin}catch{return a.siteUrl??""}})(),p=dt(t?.info?.link?.canonical,m);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:p},description:t?.main?.subtitle?.striped??"",news_keywords:l,keywords:l,openGraph:{title:t?.social?.title?t?.social?.title:t?.main?.title?.article,url:p,type:"article",description:t?.social?.description?t?.social?.description:t?.main?.subtitle?.striped??"",images:[h],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:[g]},article:{published_time:Qe(t?.info?.date?.firstpublish,i),modified_time:Qe(t?.info?.date?.lastpublish??t?.info?.date?.firstpublish,i),section:t?.info?.section?.name,author:t?.authors?.[0]?.fullname,tag:t?.keywords?.tags??[]}}},Qs=e=>!e||!e?.tags||e?.tags?.length===0?"":e?.tags?.map(t=>t.name).join(", ").replaceAll('"',"'").replaceAll("`","'"),rn=e=>{const t=e?.match(/^\/(?:[^/]+\/)?([^/]+)\/([^/]+\.html)$/);return t?{slug:t[1]??"",path:t[2]??""}:{slug:"",path:""}},on=e=>e.replaceAll("/","").replaceAll("_","").replace(".html",""),qi={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.domain":{attr:"name",value:"twitter:domain"},"twitter.url":{attr:"name",value:"twitter:url"}},ln=e=>{const t=[];let a=0;const n=i=>t.push(i);return e.title&&typeof e.title=="string"&&n(s.jsx("title",{children:e.title},`title-${a++}`)),Object.entries(qi).forEach(([i,l])=>{const c=i.split(".").reduce((d,u)=>d?.[u],e);c&&n(s.jsx("meta",{[l.attr]:l.value,content:String(c)},`meta-${a++}`))}),(e.openGraph?.images?Array.isArray(e.openGraph.images)?e.openGraph.images:[e.openGraph.images]:[]).forEach(i=>{i&&(typeof i=="string"?n(s.jsx("meta",{property:"og:image",content:i},`og-img-${a++}`)):(i.url&&n(s.jsx("meta",{property:"og:image",content:i.url},`og-img-${a++}`)),i.width&&n(s.jsx("meta",{property:"og:image:width",content:String(i.width)},`og-img-w-${a++}`)),i.height&&n(s.jsx("meta",{property:"og:image:height",content:String(i.height)},`og-img-h-${a++}`)),i.alt&&n(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"?n(s.jsx("meta",{name:"twitter:image",content:i},`tw-img-${a++}`)):(i.url&&n(s.jsx("meta",{name:"twitter:image",content:i.url},`tw-img-${a++}`)),i.width&&n(s.jsx("meta",{name:"twitter:image:width",content:String(i.width)},`tw-img-w-${a++}`)),i.height&&n(s.jsx("meta",{name:"twitter:image:height",content:String(i.height)},`tw-img-h-${a++}`)),i.alt&&n(s.jsx("meta",{name:"twitter:image:alt",content:String(i.alt)},`tw-img-alt-${a++}`))))}),e.article&&(n(s.jsx("meta",{property:"article:published_time",content:e.article.published_time})),n(s.jsx("meta",{property:"article:modified_time",content:e.article.modified_time})),n(s.jsx("meta",{property:"article:section",content:e.article.section})),n(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=>{n(s.jsx("meta",{property:"article:tag",content:i.name}))})),e.alternates?.canonical&&n(s.jsx("link",{rel:"canonical",href:String(e.alternates.canonical)},`link-${a++}`)),e.manifest&&n(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"&&n(s.jsx("link",{rel:"alternate",type:i,href:l},`alt-${a++}`))}),e.icons&&[...e.icons?.icon??[],...e.icons?.other??[]].forEach(l=>{l&&n(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&&n(s.jsx("meta",{name:i,content:String(l)},`other-${a++}`))}),t},ue=async e=>{const t=$e()??"",a=e;return a?.startsWith("http")||a?.includes(t)||t===""?a:t+a},ut=(e,t)=>{const a=e||"";return t?a.replaceAll("[section_replace]",t["[section_replace]"]??"").replaceAll("[tag_replace]",t["[tag_replace]"]??"").replaceAll("[tags_replace]",t["[tags_replace]"]??"").replaceAll("[url_replace]",t["[url_replace]"]??"").replaceAll("[author_replace]",t["[author_replace]"]??"").replaceAll("[creator_replace]",t["[creator_replace]"]??"")||"":a||""},ji=/\[(?:general|seccion:[^\]]+|tema:\d+)\][\s\S]*?\[\/(?:general|seccion:[^\]]+|tema:\d+)\]/i,Gi=/\[(general|seccion:[^\]]+|tema:\d+)\]([\s\S]*?)\[\/\1\]/gi,Fi=e=>!e||e.type==="general"?"general":e.type==="seccion"?`seccion:${e.value}`.toLowerCase():`tema:${e.value}`,Jt=(e,t)=>{const a=e||"";if(!ji.test(a))return a;const n=new Map;for(const l of a.matchAll(Gi)){const c=l[1]?.toLowerCase(),d=l[2];c&&d!==void 0&&!n.has(c)&&n.set(c,d)}if(n.size===0)return a;const r=Fi(t),o=n.get(r);if(o!==void 0)return o;const i=n.get("general");return i!==void 0?i:""};function $s(){const e=U().CONFIG_batchedFetch?.batches;return typeof e=="number"&&e>0?e:3}function Ws(e){const{CONFIG_batchedFetch:t,CONFIG_sectionBatchedFetch:a}=U(),n=t?.routes?.[e];return n!==void 0?n:e==="seccion"?!!a:!1}function cn(e,t,a,n=$s()){const r=Math.ceil(t/n),o=(a-1)*n+1;return Promise.all(Array.from({length:n},(i,l)=>e(r,o+l)??Promise.resolve({data:{data:[]}}))).then(i=>({data:{data:i.flatMap(l=>l?.data?.data??[])}}))}function Hi(e,t,a,n){return Ws(e)?cn(t,a,n):t(a,n)??Promise.resolve({data:{data:[]}})}async function dn({fetchFn:e,baseParams:t,userPage:a,newsListLimit:n,batchCount:r=$s()}){const o=Math.ceil(n/r),i=(a-1)*r+1,l=Array.from({length:r},(m,p)=>e({...t,size:o,page:i+p})??Promise.resolve(void 0)),c=await Promise.allSettled(l),d=c.map(m=>m.status==="fulfilled"&&m.value?.data?.data?m.value.data.data:[]),u=d.flat(),h=(d[d.length-1]??[]).length===o,g=c[0]?.status==="fulfilled"?c[0].value:void 0;return{data:u,hasNextPage:h,firstBatchResponse:g}}const Je=[],Ze=[],un=()=>!!U().DEBUG_ENABLED,Ae={add(e){un()&&(Je.push({id:`${Date.now()}-${Je.length}`,timestamp:new Date().toISOString(),...e}),typeof window<"u"&&window.dispatchEvent(new CustomEvent("debug-fetch-error",{detail:{count:Je.length}})))},getAll(){return[...Je]},getCount(){return Je.length},clear(){Je.length=0},addSuccess(e){un()&&(Ze.push({id:`${Date.now()}-s-${Ze.length}`,timestamp:new Date().toISOString(),...e}),typeof window<"u"&&window.dispatchEvent(new CustomEvent("debug-fetch-success",{detail:{count:Ze.length}})))},getAllSuccesses(){return[...Ze]},getSuccessCount(){return Ze.length},clearSuccesses(){Ze.length=0},clearAll(){Je.length=0,Ze.length=0}};function hn(e){const t=e?.response?.status??"no-status",a=e?.message??String(e);return`${t} ${a}`}function Vi(e){const t=e?.response?.status;return typeof t=="number"&&t>=400&&t<500&&t!==429}function zi(e,t){return new Promise((a,n)=>{const r=setTimeout(()=>n(new Error(`timeout after ${t}ms`)),t);e.then(o=>{clearTimeout(r),a(o)},o=>{clearTimeout(r),n(o)})})}async function Zt(e,t,{label:a,endpoint:n,params:r,retries:o=2,timeoutMs:i=2500,baseDelayMs:l=150}){let c;for(let d=0;d<=o;d++)try{return await zi(Promise.resolve(e()),i)}catch(u){if(c=u,console.log(`[${a}] intento ${d+1}/${o+1} fallido: ${hn(u)}`),Vi(u)){console.log(`[${a}] error de cliente no reintentable, se salta al fallback`);break}d<o&&await new Promise(f=>setTimeout(f,l*2**d))}return Ae.add({service:a,endpoint:n??a,method:"GET",params:r,message:hn(c),status:c?.response?.status,layer:"axios-service"}),t}function fn(){return{success:!1,site:"",publication:"",entity:void 0,data:[]}}const Qi=e=>{const t={};if(!e)return t;const a=/([^\s=]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'>]+)))?/g;let n;for(;n=a.exec(e);){const r=n[1],o=n[2]??n[3]??n[4]??!0;t[r]=o}return t},$i=e=>{const t=e.match(/\bsrc\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/i);return t?.[1]||t?.[2]||t?.[3]||null},mn=(e,t,a,n)=>{try{const r=Qi(e);return r.src?s.jsx("script",{"data-bs-name":n,...r},a):s.jsx("script",{...r,dangerouslySetInnerHTML:{__html:t}},a)}catch{const o=$i(e);return o?s.jsx("script",{"data-bs-name":n,src:o,async:!0,defer:!0},a):null}},Wi=e=>{const t=/<script\b([^>]*)>([\s\S]*?)<\/script\s*>|<script\b([^>]*)\/?>/gi;return[...e.matchAll(t)]},Ys=e=>{const t=e.banners.find(r=>r.key===e.name);if(!t||!t.show)return null;const a=ut(t.value||"",e.replaces),n=Wi(a);return s.jsx(s.Fragment,{children:n.map((r,o)=>{const i=r[1]||r[3]||"",l=r[2]?.trim()||"";return mn(i,l,o,e.name)})})},pn=e=>{const t=e.banners.find(r=>r.key===e.name);if(!t||!t.show)return null;const n=ut(t.value||"",e.replaces).split(/(<script\b[\s\S]*?<\/script\s*>|<script\b[^>]*\/?>)/gi);return s.jsx(s.Fragment,{children:n.map((r,o)=>{const i=r.match(/<script\b([^>]*)>([\s\S]*?)<\/script\s*>|<script\b([^>]*)\/?>/i);if(i){const l=i[1]||i[3]||"",c=i[2]?.trim()||"";return mn(l,c,o,e.name)}return r.trim()&&/<[a-zA-Z]/.test(r)?s.jsx("div",{dangerouslySetInnerHTML:{__html:r}},o):null})})},Xe=(e,t,a)=>{let n=e.siteUrl;return t.forEach((r,o)=>{o>0&&(n+=`/${r}`)}),`${n}/page/${a+1}`},Re=(e,t,a)=>{let n=e.siteUrl;return t.forEach((r,o)=>{o>0&&(n+=`/${r}`)}),`${n}/page/${a-1}`};function Yi(e){const t=e.length;return t>1&&e.charCodeAt(t-1)===47?e.slice(0,t-1):e}const gn=()=>{const{PUBLIC_ASSETS_URL:e}=U();return e&&e!=="false"&&s.jsx("link",{rel:"preconnect",href:e,crossOrigin:"anonymous"})},Ks=({images:e})=>s.jsx(s.Fragment,{children:e.map((t,a)=>t.href!==""&&s.jsx("link",{rel:"preload",href:t.href,media:t.media??"",as:"image",fetchPriority:t.fetchPriority??"high"},a))}),wn=(e,t,a)=>{if(!t)return{};const{PUBLIC_API_FRONT:n}=U();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:"video.other",description:t.main.description??"",images:[{url:(n??"")+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:(n??"")+t?.main.image.sizes[0]?.url,width:a.twitterSummaryCard.width,height:a.twitterSummaryCard.height}]}}},Ki=e=>{let t="";if(e.params.news.match(/.*t[0-9]*.html/g)){const a=e.params.news.split("-"),n=a[a.length-1]??"",r=n.substring(1,9),o=n.substring(9,13);t=`/listas/${we(r).format("YYYY/MM/DD")}/lista_${o}.html`}else if(e.params.news.match(/.*lb[0-9]*.html/g)){const a=e.params.news.split("-"),n=a[a.length-1]??"",r=n.substring(2,10),o=n.substring(10,14);t=`/liveblog/${we(r).format("YYYY/MM/DD")}/liveblog_${o}.html`}else{const n=e.params.news.replace(/\.html$/g,"").split("-");Array.isArray(n)&&(t=`/contenidos/${we(n[n.length-2]).format("YYYY/MM/DD")}/noticia_${n[n.length-1]}.html`)}return e.config.servicePrefix+t};function Ji(e){const t=e.lastIndexOf("-"),a=t>=0?[e.slice(0,t),e.slice(t+1)]:[e],n=a[a.length-1]?.split("."),r=n&&n[0]?n[0]:"",o=r.substring(0,2),i=r.substring(2,10),l=r.substring(10);return{path:{vy:d=>`/videos/video-youtube/${we(i).format("YYYY/MM/DD")}/videoYouTube_${d}.lnk`,ve:d=>`/videos/video-embedded/${we(i).format("YYYY/MM/DD")}/videoEmbedded_${d}.lnk`,vf:d=>`/videos/video-flash/${we(i).format("YYYY/MM/DD")}/${a[0]}.${d}`}[o]?.(l)??"",op:o}}const je=(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}`},Zi=e=>{const{AssetsPrefix:t="",AssetsPath:a="src",isDev:n=!1}=e;return n?"src":t+a},Xi=async(e,t,a)=>{const{FETCH_TAG_BASED_RELATED_NEWS:n=!1,FETCH_SIZE_RELATED_NEWS:r=10}=U();if(!e)return[];const o=a.contract.note.listStandard;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:o}))?.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:o,size:r+1}):await a.getNewsItemsRelated(t.split("/").join("|"),{size:r}):null)?.data?.data??[]).filter(d=>d.info.link.internal!==t.split("/").join("|"))}}catch(i){console.log(i)}},Ri="https://recaptchaenterprise.googleapis.com/v1/projects",el=async({projectID:e,recaptchaKey:t,token:a,recaptchaAction:n,apiKey:r,userAgent:o,userIpAddress:i})=>{if(!e||!t||!a||!r)return console.warn("createAssessment: faltan parámetros requeridos"),null;const l=`${Ri}/${e}/assessments?key=${r}`,c={event:{token:a,siteKey:t,expectedAction:n,...o&&{userAgent:o},...i&&{userIpAddress:i}}};try{const d=await fetch(l,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)});if(!d.ok)return console.error("createAssessment API error:",d.status,await d.text()),null;const u=await d.json();if(!u?.tokenProperties?.valid)return console.log(`CreateAssessment falló - token inválido: ${u?.tokenProperties?.invalidReason??"unknown"}`),null;if(u.tokenProperties.action!==n)return console.log("La acción en reCAPTCHA no coincide con la esperada:",n),null;const f=u?.riskAnalysis?.score;return f!==void 0&&(console.log("reCAPTCHA score:",f),u?.riskAnalysis?.reasons?.forEach(h=>console.log(h))),typeof f=="number"?f:null}catch(d){return console.error("createAssessment error:",d),null}};function tl(e,t){if(t==="comentarios")return;const a=e[t];return typeof a=="string"||a===void 0?a:void 0}const sl=e=>e?.body?.rendered.includes("ck-image-gallery")||e?.config?.articlepreview==="fotogaleria"&&e?.hascontent?.hasgalleryimages;function al(e){const t={};for(const[a,n]of Object.entries(e)){const r=btoa(a).split("").reverse().join("");typeof n=="string"?t[r]=btoa(n).split("").reverse().join(""):t[r]=n}return t}function Js(e){const t={};for(const[a,n]of Object.entries(e)){const r=atob(a.split("").reverse().join(""));if(typeof n=="string")try{t[r]=atob(n.split("").reverse().join(""))}catch{t[r]=n}else t[r]=n}return t}const nl=async(e,t,a)=>{const{info:n,preview:r}=e,o=e?.config?.homepreview||"imagen",i=o==="clip"&&e?.hascontent?.hasgalleryvideosflash,l={...r};if(o==="videoYouTube"||o==="videoEmbedded"||i){const c=await t.getNewsMultimedia({path:n.link.internal,imagesizes:a});if(c&&c.data)return{...e,preview:l,videos:c.data.data[0].videos??[]}}if(o==="fotogaleria"){const c=await t.getNewsMultimedia({path:n.link.internal,imagesizes:a});if(c&&c.data){const d=await Promise.all(c.data.data[0].gallery.map(async u=>({...u})));return{...e,preview:l,gallery:d??[]}}}return{...e,preview:l}};function bn(e,t){return function(){return e.apply(t,arguments)}}const{toString:rl}=Object.prototype,{getPrototypeOf:Zs}=Object,{iterator:Xt,toStringTag:An}=Symbol,Rt=(e=>t=>{const a=rl.call(t);return e[a]||(e[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),Te=e=>(e=e.toLowerCase(),t=>Rt(t)===e),es=e=>t=>typeof t===e,{isArray:ht}=Array,ft=es("undefined");function St(e){return e!==null&&!ft(e)&&e.constructor!==null&&!ft(e.constructor)&&ye(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const yn=Te("ArrayBuffer");function ol(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&yn(e.buffer),t}const il=es("string"),ye=es("function"),Cn=es("number"),Nt=e=>e!==null&&typeof e=="object",ll=e=>e===!0||e===!1,ts=e=>{if(Rt(e)!=="object")return!1;const t=Zs(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(An in e)&&!(Xt in e)},cl=e=>{if(!Nt(e)||St(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},dl=Te("Date"),ul=Te("File"),hl=Te("Blob"),fl=Te("FileList"),ml=e=>Nt(e)&&ye(e.pipe),pl=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ye(e.append)&&((t=Rt(e))==="formdata"||t==="object"&&ye(e.toString)&&e.toString()==="[object FormData]"))},gl=Te("URLSearchParams"),[wl,bl,Al,yl]=["ReadableStream","Request","Response","Headers"].map(Te),Cl=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function xt(e,t,{allOwnKeys:a=!1}={}){if(e===null||typeof e>"u")return;let n,r;if(typeof e!="object"&&(e=[e]),ht(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{if(St(e))return;const o=a?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let l;for(n=0;n<i;n++)l=o[n],t.call(null,e[l],l,e)}}function vn(e,t){if(St(e))return null;t=t.toLowerCase();const a=Object.keys(e);let n=a.length,r;for(;n-- >0;)if(r=a[n],t===r.toLowerCase())return r;return null}const et=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Sn=e=>!ft(e)&&e!==et;function Xs(){const{caseless:e,skipUndefined:t}=Sn(this)&&this||{},a={},n=(r,o)=>{const i=e&&vn(a,o)||o;ts(a[i])&&ts(r)?a[i]=Xs(a[i],r):ts(r)?a[i]=Xs({},r):ht(r)?a[i]=r.slice():(!t||!ft(r))&&(a[i]=r)};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&xt(arguments[r],n);return a}const vl=(e,t,a,{allOwnKeys:n}={})=>(xt(t,(r,o)=>{a&&ye(r)?e[o]=bn(r,a):e[o]=r},{allOwnKeys:n}),e),Sl=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Nl=(e,t,a,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),a&&Object.assign(e.prototype,a)},xl=(e,t,a,n)=>{let r,o,i;const l={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),o=r.length;o-- >0;)i=r[o],(!n||n(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=a!==!1&&Zs(e)}while(e&&(!a||a(e,t))&&e!==Object.prototype);return t},El=(e,t,a)=>{e=String(e),(a===void 0||a>e.length)&&(a=e.length),a-=t.length;const n=e.indexOf(t,a);return n!==-1&&n===a},Tl=e=>{if(!e)return null;if(ht(e))return e;let t=e.length;if(!Cn(t))return null;const a=new Array(t);for(;t-- >0;)a[t]=e[t];return a},kl=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Zs(Uint8Array)),Il=(e,t)=>{const n=(e&&e[Xt]).call(e);let r;for(;(r=n.next())&&!r.done;){const o=r.value;t.call(e,o[0],o[1])}},Ul=(e,t)=>{let a;const n=[];for(;(a=e.exec(t))!==null;)n.push(a);return n},Ll=Te("HTMLFormElement"),Pl=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,n,r){return n.toUpperCase()+r}),Nn=(({hasOwnProperty:e})=>(t,a)=>e.call(t,a))(Object.prototype),Ol=Te("RegExp"),xn=(e,t)=>{const a=Object.getOwnPropertyDescriptors(e),n={};xt(a,(r,o)=>{let i;(i=t(r,o,e))!==!1&&(n[o]=i||r)}),Object.defineProperties(e,n)},Bl=e=>{xn(e,(t,a)=>{if(ye(e)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const n=e[a];if(ye(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")})}})},Ml=(e,t)=>{const a={},n=r=>{r.forEach(o=>{a[o]=!0})};return ht(e)?n(e):n(String(e).split(t)),a},_l=()=>{},Dl=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function ql(e){return!!(e&&ye(e.append)&&e[An]==="FormData"&&e[Xt])}const jl=e=>{const t=new Array(10),a=(n,r)=>{if(Nt(n)){if(t.indexOf(n)>=0)return;if(St(n))return n;if(!("toJSON"in n)){t[r]=n;const o=ht(n)?[]:{};return xt(n,(i,l)=>{const c=a(i,r+1);!ft(c)&&(o[l]=c)}),t[r]=void 0,o}}return n};return a(e,0)},Gl=Te("AsyncFunction"),Fl=e=>e&&(Nt(e)||ye(e))&&ye(e.then)&&ye(e.catch),En=((e,t)=>e?setImmediate:t?((a,n)=>(et.addEventListener("message",({source:r,data:o})=>{r===et&&o===a&&n.length&&n.shift()()},!1),r=>{n.push(r),et.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",ye(et.postMessage)),Hl=typeof queueMicrotask<"u"?queueMicrotask.bind(et):typeof process<"u"&&process.nextTick||En,E={isArray:ht,isArrayBuffer:yn,isBuffer:St,isFormData:pl,isArrayBufferView:ol,isString:il,isNumber:Cn,isBoolean:ll,isObject:Nt,isPlainObject:ts,isEmptyObject:cl,isReadableStream:wl,isRequest:bl,isResponse:Al,isHeaders:yl,isUndefined:ft,isDate:dl,isFile:ul,isBlob:hl,isRegExp:Ol,isFunction:ye,isStream:ml,isURLSearchParams:gl,isTypedArray:kl,isFileList:fl,forEach:xt,merge:Xs,extend:vl,trim:Cl,stripBOM:Sl,inherits:Nl,toFlatObject:xl,kindOf:Rt,kindOfTest:Te,endsWith:El,toArray:Tl,forEachEntry:Il,matchAll:Ul,isHTMLForm:Ll,hasOwnProperty:Nn,hasOwnProp:Nn,reduceDescriptors:xn,freezeMethods:Bl,toObjectSet:Ml,toCamelCase:Pl,noop:_l,toFiniteNumber:Dl,findKey:vn,global:et,isContextDefined:Sn,isSpecCompliantForm:ql,toJSONObject:jl,isAsyncFn:Gl,isThenable:Fl,setImmediate:En,asap:Hl,isIterable:e=>e!=null&&ye(e[Xt])};function ee(e,t,a,n,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),a&&(this.config=a),n&&(this.request=n),r&&(this.response=r,this.status=r.status?r.status:null)}E.inherits(ee,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:E.toJSONObject(this.config),code:this.code,status:this.status}}});const Tn=ee.prototype,kn={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{kn[e]={value:e}}),Object.defineProperties(ee,kn),Object.defineProperty(Tn,"isAxiosError",{value:!0}),ee.from=(e,t,a,n,r,o)=>{const i=Object.create(Tn);E.toFlatObject(e,i,function(u){return u!==Error.prototype},d=>d!=="isAxiosError");const l=e&&e.message?e.message:"Error",c=t==null&&e?e.code:t;return ee.call(i,l,c,a,n,r),e&&i.cause==null&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",o&&Object.assign(i,o),i};const Vl=null;function Rs(e){return E.isPlainObject(e)||E.isArray(e)}function In(e){return E.endsWith(e,"[]")?e.slice(0,-2):e}function Un(e,t,a){return e?e.concat(t).map(function(r,o){return r=In(r),!a&&o?"["+r+"]":r}).join(a?".":""):t}function zl(e){return E.isArray(e)&&!e.some(Rs)}const Ql=E.toFlatObject(E,{},null,function(t){return/^is[A-Z]/.test(t)});function ss(e,t,a){if(!E.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,a=E.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,w){return!E.isUndefined(w[p])});const n=a.metaTokens,r=a.visitor||u,o=a.dots,i=a.indexes,c=(a.Blob||typeof Blob<"u"&&Blob)&&E.isSpecCompliantForm(t);if(!E.isFunction(r))throw new TypeError("visitor must be a function");function d(m){if(m===null)return"";if(E.isDate(m))return m.toISOString();if(E.isBoolean(m))return m.toString();if(!c&&E.isBlob(m))throw new ee("Blob is not supported. Use a Buffer instead.");return E.isArrayBuffer(m)||E.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,p,w){let b=m;if(m&&!w&&typeof m=="object"){if(E.endsWith(p,"{}"))p=n?p:p.slice(0,-2),m=JSON.stringify(m);else if(E.isArray(m)&&zl(m)||(E.isFileList(m)||E.endsWith(p,"[]"))&&(b=E.toArray(m)))return p=In(p),b.forEach(function(S,v){!(E.isUndefined(S)||S===null)&&t.append(i===!0?Un([p],v,o):i===null?p:p+"[]",d(S))}),!1}return Rs(m)?!0:(t.append(Un(w,p,o),d(m)),!1)}const f=[],h=Object.assign(Ql,{defaultVisitor:u,convertValue:d,isVisitable:Rs});function g(m,p){if(!E.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+p.join("."));f.push(m),E.forEach(m,function(b,C){(!(E.isUndefined(b)||b===null)&&r.call(t,b,E.isString(C)?C.trim():C,p,h))===!0&&g(b,p?p.concat(C):[C])}),f.pop()}}if(!E.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Ln(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function ea(e,t){this._pairs=[],e&&ss(e,this,t)}const Pn=ea.prototype;Pn.append=function(t,a){this._pairs.push([t,a])},Pn.toString=function(t){const a=t?function(n){return t.call(this,n,Ln)}:Ln;return this._pairs.map(function(r){return a(r[0])+"="+a(r[1])},"").join("&")};function $l(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function On(e,t,a){if(!t)return e;const n=a&&a.encode||$l;E.isFunction(a)&&(a={serialize:a});const r=a&&a.serialize;let o;if(r?o=r(t,a):o=E.isURLSearchParams(t)?t.toString():new ea(t,a).toString(n),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Bn{constructor(){this.handlers=[]}use(t,a,n){return this.handlers.push({fulfilled:t,rejected:a,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){E.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Mn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Wl={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ea,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ta=typeof window<"u"&&typeof document<"u",sa=typeof navigator=="object"&&navigator||void 0,Yl=ta&&(!sa||["ReactNative","NativeScript","NS"].indexOf(sa.product)<0),Kl=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Jl=ta&&window.location.href||"http://localhost",fe={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ta,hasStandardBrowserEnv:Yl,hasStandardBrowserWebWorkerEnv:Kl,navigator:sa,origin:Jl},Symbol.toStringTag,{value:"Module"})),...Wl};function Zl(e,t){return ss(e,new fe.classes.URLSearchParams,{visitor:function(a,n,r,o){return fe.isNode&&E.isBuffer(a)?(this.append(n,a.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function Xl(e){return E.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Rl(e){const t={},a=Object.keys(e);let n;const r=a.length;let o;for(n=0;n<r;n++)o=a[n],t[o]=e[o];return t}function _n(e){function t(a,n,r,o){let i=a[o++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),c=o>=a.length;return i=!i&&E.isArray(r)?r.length:i,c?(E.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!l):((!r[i]||!E.isObject(r[i]))&&(r[i]=[]),t(a,n,r[i],o)&&E.isArray(r[i])&&(r[i]=Rl(r[i])),!l)}if(E.isFormData(e)&&E.isFunction(e.entries)){const a={};return E.forEachEntry(e,(n,r)=>{t(Xl(n),r,a,0)}),a}return null}function ec(e,t,a){if(E.isString(e))try{return(t||JSON.parse)(e),E.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(a||JSON.stringify)(e)}const Et={transitional:Mn,adapter:["xhr","http","fetch"],transformRequest:[function(t,a){const n=a.getContentType()||"",r=n.indexOf("application/json")>-1,o=E.isObject(t);if(o&&E.isHTMLForm(t)&&(t=new FormData(t)),E.isFormData(t))return r?JSON.stringify(_n(t)):t;if(E.isArrayBuffer(t)||E.isBuffer(t)||E.isStream(t)||E.isFile(t)||E.isBlob(t)||E.isReadableStream(t))return t;if(E.isArrayBufferView(t))return t.buffer;if(E.isURLSearchParams(t))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Zl(t,this.formSerializer).toString();if((l=E.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return ss(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return o||r?(a.setContentType("application/json",!1),ec(t)):t}],transformResponse:[function(t){const a=this.transitional||Et.transitional,n=a&&a.forcedJSONParsing,r=this.responseType==="json";if(E.isResponse(t)||E.isReadableStream(t))return t;if(t&&E.isString(t)&&(n&&!this.responseType||r)){const i=!(a&&a.silentJSONParsing)&&r;try{return JSON.parse(t,this.parseReviver)}catch(l){if(i)throw l.name==="SyntaxError"?ee.from(l,ee.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:fe.classes.FormData,Blob:fe.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};E.forEach(["delete","get","head","post","put","patch"],e=>{Et.headers[e]={}});const tc=E.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),sc=e=>{const t={};let a,n,r;return e&&e.split(`
3
3
  `).forEach(function(i){r=i.indexOf(":"),a=i.substring(0,r).trim().toLowerCase(),n=i.substring(r+1).trim(),!(!a||t[a]&&tc[a])&&(a==="set-cookie"?t[a]?t[a].push(n):t[a]=[n]:t[a]=t[a]?t[a]+", "+n:n)}),t},Dn=Symbol("internals");function Tt(e){return e&&String(e).trim().toLowerCase()}function as(e){return e===!1||e==null?e:E.isArray(e)?e.map(as):String(e)}function ac(e){const t=Object.create(null),a=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=a.exec(e);)t[n[1]]=n[2];return t}const nc=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function aa(e,t,a,n,r){if(E.isFunction(n))return n.call(this,t,a);if(r&&(t=a),!!E.isString(t)){if(E.isString(n))return t.indexOf(n)!==-1;if(E.isRegExp(n))return n.test(t)}}function rc(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,a,n)=>a.toUpperCase()+n)}function oc(e,t){const a=E.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+a,{value:function(r,o,i){return this[n].call(this,t,r,o,i)},configurable:!0})})}let Ce=class{constructor(t){t&&this.set(t)}set(t,a,n){const r=this;function o(l,c,d){const u=Tt(c);if(!u)throw new Error("header name must be a non-empty string");const f=E.findKey(r,u);(!f||r[f]===void 0||d===!0||d===void 0&&r[f]!==!1)&&(r[f||c]=as(l))}const i=(l,c)=>E.forEach(l,(d,u)=>o(d,u,c));if(E.isPlainObject(t)||t instanceof this.constructor)i(t,a);else if(E.isString(t)&&(t=t.trim())&&!nc(t))i(sc(t),a);else if(E.isObject(t)&&E.isIterable(t)){let l={},c,d;for(const u of t){if(!E.isArray(u))throw TypeError("Object iterator must return a key-value pair");l[d=u[0]]=(c=l[d])?E.isArray(c)?[...c,u[1]]:[c,u[1]]:u[1]}i(l,a)}else t!=null&&o(a,t,n);return this}get(t,a){if(t=Tt(t),t){const n=E.findKey(this,t);if(n){const r=this[n];if(!a)return r;if(a===!0)return ac(r);if(E.isFunction(a))return a.call(this,r,n);if(E.isRegExp(a))return a.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,a){if(t=Tt(t),t){const n=E.findKey(this,t);return!!(n&&this[n]!==void 0&&(!a||aa(this,this[n],n,a)))}return!1}delete(t,a){const n=this;let r=!1;function o(i){if(i=Tt(i),i){const l=E.findKey(n,i);l&&(!a||aa(n,n[l],l,a))&&(delete n[l],r=!0)}}return E.isArray(t)?t.forEach(o):o(t),r}clear(t){const a=Object.keys(this);let n=a.length,r=!1;for(;n--;){const o=a[n];(!t||aa(this,this[o],o,t,!0))&&(delete this[o],r=!0)}return r}normalize(t){const a=this,n={};return E.forEach(this,(r,o)=>{const i=E.findKey(n,o);if(i){a[i]=as(r),delete a[o];return}const l=t?rc(o):String(o).trim();l!==o&&delete a[o],a[l]=as(r),n[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const a=Object.create(null);return E.forEach(this,(n,r)=>{n!=null&&n!==!1&&(a[r]=t&&E.isArray(n)?n.join(", "):n)}),a}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,a])=>t+": "+a).join(`
4
4
  `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...a){const n=new this(t);return a.forEach(r=>n.set(r)),n}static accessor(t){const n=(this[Dn]=this[Dn]={accessors:{}}).accessors,r=this.prototype;function o(i){const l=Tt(i);n[l]||(oc(r,i),n[l]=!0)}return E.isArray(t)?t.forEach(o):o(t),this}};Ce.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),E.reduceDescriptors(Ce.prototype,({value:e},t)=>{let a=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[a]=n}}}),E.freezeMethods(Ce);function na(e,t){const a=this||Et,n=t||a,r=Ce.from(n.headers);let o=n.data;return E.forEach(e,function(l){o=l.call(a,o,r.normalize(),t?t.status:void 0)}),r.normalize(),o}function qn(e){return!!(e&&e.__CANCEL__)}function mt(e,t,a){ee.call(this,e??"canceled",ee.ERR_CANCELED,t,a),this.name="CanceledError"}E.inherits(mt,ee,{__CANCEL__:!0});function jn(e,t,a){const n=a.config.validateStatus;!a.status||!n||n(a.status)?e(a):t(new ee("Request failed with status code "+a.status,[ee.ERR_BAD_REQUEST,ee.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function ic(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function lc(e,t){e=e||10;const a=new Array(e),n=new Array(e);let r=0,o=0,i;return t=t!==void 0?t:1e3,function(c){const d=Date.now(),u=n[o];i||(i=d),a[r]=c,n[r]=d;let f=o,h=0;for(;f!==r;)h+=a[f++],f=f%e;if(r=(r+1)%e,r===o&&(o=(o+1)%e),d-i<t)return;const g=u&&d-u;return g?Math.round(h*1e3/g):void 0}}function cc(e,t){let a=0,n=1e3/t,r,o;const i=(d,u=Date.now())=>{a=u,r=null,o&&(clearTimeout(o),o=null),e(...d)};return[(...d)=>{const u=Date.now(),f=u-a;f>=n?i(d,u):(r=d,o||(o=setTimeout(()=>{o=null,i(r)},n-f)))},()=>r&&i(r)]}const ns=(e,t,a=3)=>{let n=0;const r=lc(50,250);return cc(o=>{const i=o.loaded,l=o.lengthComputable?o.total:void 0,c=i-n,d=r(c),u=i<=l;n=i;const f={loaded:i,total:l,progress:l?i/l:void 0,bytes:c,rate:d||void 0,estimated:d&&l&&u?(l-i)/d:void 0,event:o,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},a)},Gn=(e,t)=>{const a=e!=null;return[n=>t[0]({lengthComputable:a,total:e,loaded:n}),t[1]]},Fn=e=>(...t)=>E.asap(()=>e(...t)),dc=fe.hasStandardBrowserEnv?((e,t)=>a=>(a=new URL(a,fe.origin),e.protocol===a.protocol&&e.host===a.host&&(t||e.port===a.port)))(new URL(fe.origin),fe.navigator&&/(msie|trident)/i.test(fe.navigator.userAgent)):()=>!0,uc=fe.hasStandardBrowserEnv?{write(e,t,a,n,r,o,i){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];E.isNumber(a)&&l.push(`expires=${new Date(a).toUTCString()}`),E.isString(n)&&l.push(`path=${n}`),E.isString(r)&&l.push(`domain=${r}`),o===!0&&l.push("secure"),E.isString(i)&&l.push(`SameSite=${i}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function hc(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function fc(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Hn(e,t,a){let n=!hc(t);return e&&(n||a==!1)?fc(e,t):t}const Vn=e=>e instanceof Ce?{...e}:e;function tt(e,t){t=t||{};const a={};function n(d,u,f,h){return E.isPlainObject(d)&&E.isPlainObject(u)?E.merge.call({caseless:h},d,u):E.isPlainObject(u)?E.merge({},u):E.isArray(u)?u.slice():u}function r(d,u,f,h){if(E.isUndefined(u)){if(!E.isUndefined(d))return n(void 0,d,f,h)}else return n(d,u,f,h)}function o(d,u){if(!E.isUndefined(u))return n(void 0,u)}function i(d,u){if(E.isUndefined(u)){if(!E.isUndefined(d))return n(void 0,d)}else return n(void 0,u)}function l(d,u,f){if(f in t)return n(d,u);if(f in e)return n(void 0,d)}const c={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(d,u,f)=>r(Vn(d),Vn(u),f,!0)};return E.forEach(Object.keys({...e,...t}),function(u){const f=c[u]||r,h=f(e[u],t[u],u);E.isUndefined(h)&&f!==l||(a[u]=h)}),a}const zn=e=>{const t=tt({},e);let{data:a,withXSRFToken:n,xsrfHeaderName:r,xsrfCookieName:o,headers:i,auth:l}=t;if(t.headers=i=Ce.from(i),t.url=On(Hn(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),E.isFormData(a)){if(fe.hasStandardBrowserEnv||fe.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(E.isFunction(a.getHeaders)){const c=a.getHeaders(),d=["content-type","content-length"];Object.entries(c).forEach(([u,f])=>{d.includes(u.toLowerCase())&&i.set(u,f)})}}if(fe.hasStandardBrowserEnv&&(n&&E.isFunction(n)&&(n=n(t)),n||n!==!1&&dc(t.url))){const c=r&&o&&uc.read(o);c&&i.set(r,c)}return t},mc=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(a,n){const r=zn(e);let o=r.data;const i=Ce.from(r.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:d}=r,u,f,h,g,m;function p(){g&&g(),m&&m(),r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}let w=new XMLHttpRequest;w.open(r.method.toUpperCase(),r.url,!0),w.timeout=r.timeout;function b(){if(!w)return;const S=Ce.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),A={data:!l||l==="text"||l==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:S,config:e,request:w};jn(function(k){a(k),p()},function(k){n(k),p()},A),w=null}"onloadend"in w?w.onloadend=b:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(b)},w.onabort=function(){w&&(n(new ee("Request aborted",ee.ECONNABORTED,e,w)),w=null)},w.onerror=function(v){const A=v&&v.message?v.message:"Network Error",x=new ee(A,ee.ERR_NETWORK,e,w);x.event=v||null,n(x),w=null},w.ontimeout=function(){let v=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const A=r.transitional||Mn;r.timeoutErrorMessage&&(v=r.timeoutErrorMessage),n(new ee(v,A.clarifyTimeoutError?ee.ETIMEDOUT:ee.ECONNABORTED,e,w)),w=null},o===void 0&&i.setContentType(null),"setRequestHeader"in w&&E.forEach(i.toJSON(),function(v,A){w.setRequestHeader(A,v)}),E.isUndefined(r.withCredentials)||(w.withCredentials=!!r.withCredentials),l&&l!=="json"&&(w.responseType=r.responseType),d&&([h,m]=ns(d,!0),w.addEventListener("progress",h)),c&&w.upload&&([f,g]=ns(c),w.upload.addEventListener("progress",f),w.upload.addEventListener("loadend",g)),(r.cancelToken||r.signal)&&(u=S=>{w&&(n(!S||S.type?new mt(null,e,w):S),w.abort(),w=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));const C=ic(r.url);if(C&&fe.protocols.indexOf(C)===-1){n(new ee("Unsupported protocol "+C+":",ee.ERR_BAD_REQUEST,e));return}w.send(o||null)})},pc=(e,t)=>{const{length:a}=e=e?e.filter(Boolean):[];if(t||a){let n=new AbortController,r;const o=function(d){if(!r){r=!0,l();const u=d instanceof Error?d:this.reason;n.abort(u instanceof ee?u:new mt(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,o(new ee(`timeout ${t} of ms exceeded`,ee.ETIMEDOUT))},t);const l=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(o):d.removeEventListener("abort",o)}),e=null)};e.forEach(d=>d.addEventListener("abort",o));const{signal:c}=n;return c.unsubscribe=()=>E.asap(l),c}},gc=function*(e,t){let a=e.byteLength;if(a<t){yield e;return}let n=0,r;for(;n<a;)r=n+t,yield e.slice(n,r),n=r},wc=async function*(e,t){for await(const a of bc(e))yield*gc(a,t)},bc=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:a,value:n}=await t.read();if(a)break;yield n}}finally{await t.cancel()}},Qn=(e,t,a,n)=>{const r=wc(e,t);let o=0,i,l=c=>{i||(i=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:d,value:u}=await r.next();if(d){l(),c.close();return}let f=u.byteLength;if(a){let h=o+=f;a(h)}c.enqueue(new Uint8Array(u))}catch(d){throw l(d),d}},cancel(c){return l(c),r.return()}},{highWaterMark:2})},$n=64*1024,{isFunction:rs}=E,Ac=(({Request:e,Response:t})=>({Request:e,Response:t}))(E.global),{ReadableStream:Wn,TextEncoder:Yn}=E.global,Kn=(e,...t)=>{try{return!!e(...t)}catch{return!1}},yc=e=>{e=E.merge.call({skipUndefined:!0},Ac,e);const{fetch:t,Request:a,Response:n}=e,r=t?rs(t):typeof fetch=="function",o=rs(a),i=rs(n);if(!r)return!1;const l=r&&rs(Wn),c=r&&(typeof Yn=="function"?(m=>p=>m.encode(p))(new Yn):async m=>new Uint8Array(await new a(m).arrayBuffer())),d=o&&l&&Kn(()=>{let m=!1;const p=new a(fe.origin,{body:new Wn,method:"POST",get duplex(){return m=!0,"half"}}).headers.has("Content-Type");return m&&!p}),u=i&&l&&Kn(()=>E.isReadableStream(new n("").body)),f={stream:u&&(m=>m.body)};r&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!f[m]&&(f[m]=(p,w)=>{let b=p&&p[m];if(b)return b.call(p);throw new ee(`Response type '${m}' is not supported`,ee.ERR_NOT_SUPPORT,w)})});const h=async m=>{if(m==null)return 0;if(E.isBlob(m))return m.size;if(E.isSpecCompliantForm(m))return(await new a(fe.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(E.isArrayBufferView(m)||E.isArrayBuffer(m))return m.byteLength;if(E.isURLSearchParams(m)&&(m=m+""),E.isString(m))return(await c(m)).byteLength},g=async(m,p)=>{const w=E.toFiniteNumber(m.getContentLength());return w??h(p)};return async m=>{let{url:p,method:w,data:b,signal:C,cancelToken:S,timeout:v,onDownloadProgress:A,onUploadProgress:x,responseType:k,headers:O,withCredentials:Q="same-origin",fetchOptions:B}=zn(m),M=t||fetch;k=k?(k+"").toLowerCase():"text";let V=pc([C,S&&S.toAbortSignal()],v),$=null;const _=V&&V.unsubscribe&&(()=>{V.unsubscribe()});let P;try{if(x&&d&&w!=="get"&&w!=="head"&&(P=await g(O,b))!==0){let I=new a(p,{method:"POST",body:b,duplex:"half"}),j;if(E.isFormData(b)&&(j=I.headers.get("content-type"))&&O.setContentType(j),I.body){const[z,H]=Gn(P,ns(Fn(x)));b=Qn(I.body,$n,z,H)}}E.isString(Q)||(Q=Q?"include":"omit");const L=o&&"credentials"in a.prototype,F={...B,signal:V,method:w.toUpperCase(),headers:O.normalize().toJSON(),body:b,duplex:"half",credentials:L?Q:void 0};$=o&&new a(p,F);let q=await(o?M($,B):M(p,F));const Y=u&&(k==="stream"||k==="response");if(u&&(A||Y&&_)){const I={};["status","statusText","headers"].forEach(W=>{I[W]=q[W]});const j=E.toFiniteNumber(q.headers.get("content-length")),[z,H]=A&&Gn(j,ns(Fn(A),!0))||[];q=new n(Qn(q.body,$n,z,()=>{H&&H(),_&&_()}),I)}k=k||"text";let N=await f[E.findKey(f,k)||"text"](q,m);return!Y&&_&&_(),await new Promise((I,j)=>{jn(I,j,{data:N,headers:Ce.from(q.headers),status:q.status,statusText:q.statusText,config:m,request:$})})}catch(L){throw _&&_(),L&&L.name==="TypeError"&&/Load failed|fetch/i.test(L.message)?Object.assign(new ee("Network Error",ee.ERR_NETWORK,m,$),{cause:L.cause||L}):ee.from(L,L&&L.code,m,$)}}},Cc=new Map,Jn=e=>{let t=e&&e.env||{};const{fetch:a,Request:n,Response:r}=t,o=[n,r,a];let i=o.length,l=i,c,d,u=Cc;for(;l--;)c=o[l],d=u.get(c),d===void 0&&u.set(c,d=l?new Map:yc(t)),u=d;return d};Jn();const ra={http:Vl,xhr:mc,fetch:{get:Jn}};E.forEach(ra,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Zn=e=>`- ${e}`,vc=e=>E.isFunction(e)||e===null||e===!1;function Sc(e,t){e=E.isArray(e)?e:[e];const{length:a}=e;let n,r;const o={};for(let i=0;i<a;i++){n=e[i];let l;if(r=n,!vc(n)&&(r=ra[(l=String(n)).toLowerCase()],r===void 0))throw new ee(`Unknown adapter '${l}'`);if(r&&(E.isFunction(r)||(r=r.get(t))))break;o[l||"#"+i]=r}if(!r){const i=Object.entries(o).map(([c,d])=>`adapter ${c} `+(d===!1?"is not supported by the environment":"is not available in the build"));let l=a?i.length>1?`since :
5
5
  `+i.map(Zn).join(`
@@ -26,7 +26,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
26
26
  font-display: ${a};
27
27
  src: url("${t}") format('${n}');
28
28
  unicode-range: ${Jc};
29
- }`,Rc=e=>{try{return new URL(e).origin}catch{return null}},ed=({config:e,fontUrl:t,isS3:a})=>{const n=e.fontDisplay??"swap",r=e.fontFormat??"woff2",o=Rc(t);return s.jsxs(s.Fragment,{children:[o&&!a&&s.jsx("link",{rel:"preconnect",href:o,crossOrigin:"anonymous"}),s.jsx("link",{rel:"preload",as:"font",href:t,type:`font/${r}`,crossOrigin:"anonymous",fetchPriority:"high"}),s.jsx("style",{dangerouslySetInnerHTML:{__html:Xc(e,t,n,r)}})]})},Er=({config:e})=>{const t=e.fontDisplay??"swap",{url:a,isS3:n}=Zc(e);return a?s.jsx(ed,{config:e,fontUrl:a,isS3:n}):xr(e.googleFontFamily)?s.jsxs(s.Fragment,{children:[s.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),s.jsx("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),s.jsx("link",{rel:"stylesheet",href:`https://fonts.googleapis.com/css2?${e.googleFontFamily}&display=${t}`})]}):null},ca={404:()=>{},home:()=>({"[author_replace]":"","[section_replace]":"home","[tag_replace]":"","[url_replace]":""}),slug:e=>({"[author_replace]":"","[section_replace]":e.pathname==="/index.html"?"home":e.slug??"","[tag_replace]":"","[url_replace]":""}),news:e=>({"[author_replace]":e.currentNew?.authors[0]?.name??"","[section_replace]":e.currentNew?.info?.section?.slug??"","[tag_replace]":Qs(e.currentNew?.keywords),"[url_replace]":on(e.internalPath??"")}),seccion:e=>({"[author_replace]":"","[section_replace]":e.pathname?.split("/"+e.config?.paths.seccion+"/")[1]??"","[tag_replace]":"","[url_replace]":""}),tema:e=>({"[author_replace]":"","[section_replace]":e.pathname?.split("/"+e.config?.paths.tema+"/")[1]??"","[tag_replace]":"","[url_replace]":""}),"ultimas-noticias":e=>({"[author_replace]":"","[section_replace]":e.config?.paths["ultimas-noticias"]??"","[tag_replace]":"","[url_replace]":""}),video:e=>({"[author_replace]":"","[section_replace]":e.slug,"[tag_replace]":"","[url_replace]":""}),videos:e=>({"[author_replace]":"","[section_replace]":e.pathname?.split("/videos/")[1]??"","[tag_replace]":"","[url_replace]":""}),pages:e=>({"[author_replace]":"","[section_replace]":e.slug??"","[tag_replace]":"","[url_replace]":""}),auth:e=>({"[author_replace]":"","[section_replace]":e.slug??"","[tag_replace]":"","[url_replace]":""}),contacto:e=>({"[author_replace]":"","[section_replace]":e.config?.paths.contacto??"contacto","[tag_replace]":"","[url_replace]":""}),anuncia:e=>({"[author_replace]":"","[section_replace]":e.config?.paths.anuncia??"anuncia","[tag_replace]":"","[url_replace]":""}),buscar:e=>({"[author_replace]":"","[section_replace]":e.config?.paths.buscar??"","[tag_replace]":"","[url_replace]":""}),autor:e=>({"[author_replace]":"","[section_replace]":e.pathname?.split("/"+e.config?.paths.autor+"/")[1]??"","[tag_replace]":"","[url_replace]":""})},Tr=e=>{if(!e)return e??"";if(e.search("/page/")===-1)return e.replace("/","");const t=e.split("/"),a=t.indexOf("page")-1;return a<0?e:(t[a]??"").replace("/","")},xe=e=>{const a=e.replace(/^\/|\/$/g,"").split("/"),n=a.indexOf("page");return n>0?`${a[n-1]??""}`:`${a[a.length-1]??""}`},kr={404:()=>"404",home:()=>"home",slug:e=>xe(e.pathname),news:e=>rn(e.pathname)?.slug,seccion:e=>xe(e.pathname),tema:e=>xe(e.pathname),pages:e=>xe(e.pathname),auth:e=>xe(e.pathname),buscar:e=>xe(e.pathname),"ultimas-noticias":e=>xe(e.pathname),anuncia:e=>xe(e.pathname),contacto:e=>xe(e.pathname),autor:e=>xe(e.pathname),video:e=>xe(e.pathname),videos:e=>xe(e.pathname)},gt=e=>{const t=e.split("/"),a=t[t.length-1]??"1";return Number(a)>0?Number(a):1},td=(e,t=2)=>{if(!e||e.length===0)return[];const a=[];for(let n=0;n<t;n++){if(!e[n]||!e[n].preview)continue;const r=e[n].preview?.sizes;r&&(r.length>1?a.push({href:r[0]?.url??"",media:"(min-width: 900px)"},{href:r[1]?.url??"",media:"(max-width: 900px)"}):a.push({href:r[0]?.url??""}))}return a},Ir=({gpt:e=!1,googleAds:t=!1,syndication:a=!1,adsense:n=!1})=>s.jsxs(s.Fragment,{children:[e&&s.jsx("link",{rel:"preconnect",href:"https://securepubads.g.doubleclick.net",crossOrigin:"anonymous"}),t&&s.jsx("link",{rel:"preconnect",href:"https://googleads.g.doubleclick.net",crossOrigin:"anonymous"}),a&&s.jsx("link",{rel:"preconnect",href:"https://tpc.googlesyndication.com",crossOrigin:"anonymous"}),n&&s.jsx("link",{rel:"dns-prefetch",href:"https://pagead2.googlesyndication.com"})]});class sd{exclude="keywords,gallery,related,relatedexternal,external,customfields";config={};imgSizes={};configVersion=".config";axiosApi=void 0;customMainImagesSize=void 0;contract;constructor(t,a,n,r,o,i){this.config=t,this.imgSizes=a,this.axiosApi=n,this.customMainImagesSize=o,this.contract=vt(i).contract,t.configVersion&&(this.configVersion=t.configVersion),r&&(this.exclude=r)}async getNewsListZone(t){if(this.axiosApi)return this.axiosApi.get("/news-list-zone",{params:t}).catch(a=>(console.log(`[/news-list-zone] Error: ${a.message}`),console.log(a),Promise.reject(a)))}async getOutstandingBlock(t){if(this.axiosApi)return this.axiosApi.get("/config/blocks",{params:{...t,path:this.config.servicePrefix+`/${this.configVersion}/columna_derecha.html`}}).catch(a=>(console.log(`[/config/blocks] Error: ${a.message}`),console.log(a),Promise.reject(a)))}getNewsListZoneWrapper(t,a,n){return this.getNewsListZone({zone:"destacadas",size:a,onmainpage:t?"section":void 0,section:t,newstype:this.config.newsType,exclude:this.exclude,imagesizes:n})}async getNewsDestacadoDiario(t){try{const[a,n]=await Promise.all([this.getNewsListZoneWrapper(t,1,this.customMainImagesSize||`${this.contract.video.xl}${this.contract.video.lg}`),this.getNewsListZoneWrapper(t,5)]);return!a?.data?.data||!n?.data?.data?[]:(a.data.data=[...a.data.data,...n.data.data.slice(1)],a)}catch(a){return console.log(`[MainComponentServices.getNewsDestacadoDiario] Error: ${a?.message}`),[]}}async getNewsDestacadoDiarioImage(t){try{const[a,n]=await Promise.all([this.getNewsListZoneWrapper(t,1,this.customMainImagesSize||this.contract.note.itemsListPrimary),this.getNewsListZoneWrapper(t,5,this.contract.note.featuredDiarioImageThumb)]);return!a?.data?.data||!n?.data?.data?[]:(a.data.data=[...a.data.data,...n.data.data.slice(1)],a)}catch(a){return console.log(`[MainComponentServices.getNewsDestacadoDiarioImage] Error: ${a?.message}`),[]}}async getNewsAltoImpacto(t){try{return await this.getNewsListZoneWrapper(t,1,`${this.contract.note.gallery}${this.contract.note.featuredSuperSecondary}`)}catch(a){console.log(`[MainComponentServices.getNewsAltoImpacto] Error: ${a?.message}`);return}}async getNewsDestacadoVertical(t){try{const[a,n]=await Promise.all([this.getNewsListZoneWrapper(t,1,`${this.contract.note.featuredVerticalPrimary}${this.contract.video.lg}`),this.getNewsListZoneWrapper(t,3,`${this.contract.video.lg}${this.contract.note.featuredVerticalSecondary}`)]);return!a?.data?.data||!n?.data?.data?[]:(a.data.data=[...a.data.data,...n.data.data.slice(1)],a)}catch(a){return console.log(`[MainComponentServices.getNewsDestacadoVertical] Error: ${a?.message}`),[]}}async getNewsDestacadoHorizontal(t){try{const[a,n]=await Promise.all([this.getNewsListZoneWrapper(t,1,`${this.contract.note.featuredHorizontalPrimary}${this.contract.video.lg}`),this.getNewsListZoneWrapper(t,3,this.contract.note.featuredHorizontalSecondary)]);return!a?.data?.data||!n?.data?.data?[]:(a.data.data=[...a.data.data,...n.data.data.slice(1)],a)}catch(a){return console.log(`[MainComponentServices.getNewsDestacadoHorizontal] Error: ${a?.message}`),[]}}GetByOptions={Diario:t=>this.getNewsDestacadoDiario(t),"Diario con imagen":t=>this.getNewsDestacadoDiarioImage(t),Super:t=>this.getNewsAltoImpacto(t),"3 notas verticales":t=>this.getNewsDestacadoVertical(t),"3 notas horizontales":t=>this.getNewsDestacadoHorizontal(t)};async getMainBlockData(t,a){try{const r=(await this.getOutstandingBlock(t))?.data.data[0]?.value||"";if(!r||!Object.keys(this.GetByOptions).includes(r))return{section:r,news:[]};const o=await this.GetByOptions[r](a);return{section:r,news:o.data}}catch(n){return console.log(`[MainComponentServices.getMainBlockData] Error: ${n?.message}`),{section:"",news:[]}}}}const ps=Symbol("bucket-retry-exhausted");class Fe{constructor(t){this.props=t,this.contract=vt(t?.imageSizes).contract,t?.config?.configVersion&&(this.configVersion=t.config.configVersion),t?.exclude&&(this.exclude=t.exclude)}configVersion=".config";exclude="keywords,gallery,related,relatedexternal,external,customfields";contract;generateTokenOffline=async t=>{const{PUBLIC_IS_OFFLINE:a,PUBLIC_USERNAME_OFFLINE:n,PUBLIC_PASSWORD_OFFLINE:r}=U();if(a==="true")try{return(await this.props?.axiosApi.get("/auth",{params:{username:n,password:r,browserid:t}}).catch(i=>(console.log(`[/auth]Error: ${i.message}`),Promise.reject(i))))?.data.data[0]?.token}catch(o){console.log(`[/auth] Error: ${o.message}`),console.log(o)}};getEntitySection=t=>this.props?.axiosApi.get("/entity-section",{params:t}).catch(a=>(console.log(`[/entity-section] Error: ${a.message}`),Promise.reject(a)));getMainMenu=t=>{const a=U().BUCKET_ORIGIN,n={data:{data:[]}},r=()=>this.props.axiosApi.get("/config/menu",{params:t}).catch(i=>(console.log(`[/config/menu] Error: ${i.message}`),Ae.add({service:"CommonServices.getMainMenu",endpoint:"/config/menu",method:"GET",params:t,message:i.message,status:i.response?.status,layer:"axios-service"}),n));if(a?.menu){const i=cs(t.path),l=at(a,this.props?.config?.servicePrefix,"menu",i),c=a.referer??It,d=`origin:menu:bucket:${l}`;return kt(d,()=>Zt(()=>ls(a.proxyUrl??a.url,c).get(l),ps,{label:"bucket:menu",endpoint:l,params:t}).then(u=>u===ps?r():u))}const o=`origin:menu:api:${t.path??""}`;return kt(o,()=>r())};getNewsListZone=t=>this.props?.axiosApi.get("/news-list-zone",{params:t}).catch(a=>(console.log(`[/news-list-zone] Error: ${a.message}`),Promise.reject(a)));getNewsListZoneSection=t=>this.props?.axiosApi.get("/news-list-zone-section",{params:t}).catch(a=>(console.log(`[/news-list-zone-section] Error: ${a.message}`),Promise.reject(a)));getNewsList=t=>this.props?.axiosApi.get("/news-list",{params:t}).catch(a=>(console.log(`[/news-list] Error: ${a.message}`),Promise.reject(a)));getNewsListTag=t=>this.props?.axiosApi.get("/news-list-tag",{params:t}).catch(a=>(console.log(`[/news-list-tag] Error: ${a.message}`),Promise.reject(a)));getNewsListSection=t=>this.props?.axiosApi.get("/news-list-section",{params:t}).catch(a=>(console.log(`[/news-list-section] Error: ${a}`),console.log(`[/news-list-section] Error: ${a.message}`),Promise.reject(a)));getNewsListAvanced=t=>this.props?.axiosApi.get("/news-list-advanced",{params:t}).catch(a=>(console.log(`[/news-list-advanced] Error: ${a.message}`),Promise.reject(a)));getNewsListTags=t=>this.props?.axiosApi.get("/news-list-tag",{params:t}).catch(a=>(console.log(`[/news-list-tag] Error: ${a.message}`),Promise.reject(a)));getNewsListTagEntity=t=>this.props?.axiosApi.get("/news-list-tag-entity",{params:t}).catch(a=>(console.log(`[/news-list-tag-entity] Error: ${a.message}`),Promise.reject(a)));getNewsListTagLite=t=>this.props?.axiosApi.get("/news-list-tag-lite",{params:t}).catch(a=>(console.log(`[/news-list-tag-lite] Error: ${a.message}`),Promise.reject(a)));getNewsListAutor=t=>this.props?.axiosApi.get("/news-list-author",{params:t}).catch(a=>(console.log(`[/news-list-author] Error: ${a.message}`),Promise.reject(a)));getNewsSearch=t=>this.props?.axiosApi.get("/news-list-search",{params:t}).catch(a=>(console.log(`[/news-list-search] Error: ${a.message}`),Promise.reject(a)));getAutorInfo=t=>this.props?.axiosApi.get("/authors",{params:t}).catch(a=>(console.log(`[/authors] Error: ${a.message}`),Promise.reject(a)));getvideoListAdvanced=t=>this.props?.axiosApi.get("/videos-list-advanced",{params:t}).catch(a=>(console.log(`[/videos-list-advanced] Error: ${a.message}`),Promise.reject(a)));getVideos=t=>this.props?.axiosApi.get("/videos",{params:t}).catch(a=>(console.log(`[/videos] Error: ${a.message}`),Promise.reject(a)));getVideosList=t=>this.props?.axiosApi.get("/videos-list",{params:t}).catch(a=>(console.log(`[/videos-list] Error: ${a.message}`),Promise.reject(a)));getBanners=async t=>{const a=U().BUCKET_ORIGIN,n={data:{data:[]}},r=()=>{const c=t.path?t.path:`/${this.configVersion}/banners.html`;return this.props.axiosApi.get("/config/banners",{params:{...t,path:this.props?.config?.servicePrefix+c}}).catch(d=>(console.log(`[/config/banners] Error: ${d.message}`),Ae.add({service:"CommonServices.getBanners",endpoint:"/config/banners",method:"GET",params:t,message:d.message,status:d.response?.status,layer:"axios-service"}),n))};if(a?.banners){const c=(t.template??"").toLowerCase(),d=at(a,this.props?.config?.servicePrefix,"banners",c),u=a.referer??It,f=`origin:banners:bucket:${d}`;return kt(f,()=>Zt(()=>ls(a.proxyUrl??a.url,u).get(d),ps,{label:"bucket:banners",endpoint:d,params:t}).then(h=>h===ps?r():h))}const o=t.path?t.path:`/${this.configVersion}/banners.html`,l=`origin:banners:api:${`${this.props?.config?.servicePrefix??""}${o}`}:${t.template??""}`;return kt(l,()=>r())};getPages=t=>this.props?.axiosApi.get("/config/pages",{params:t}).catch(a=>(console.log(`[/config/pages] Error: ${a.message}`),Promise.reject(a)));getRankingS3=async(t,a={Referer:It})=>!t||t===""?{data:[]}:Zt(()=>re.get(t,{headers:a}),{data:[]},{label:"bucket:ranking",endpoint:t});getNews=t=>this.props?.axiosApi.get("/news",{params:{...t,exclude:`${t.exclude},pixel`}}).catch(a=>(console.log(`[/news] Error: ${a.message}`),Promise.reject(a)));getNewsMultimedia=t=>this.props?.axiosApi.get("/news-items-multimedia",{params:t}).catch(a=>(console.log(`[/news-items-multimedia] Error: ${a.message}`),Promise.reject(a)));getNewsItemsList=t=>this.props?.axiosApi.get("/news-items-list",{params:t}).catch(a=>(console.log(`[/news-items-list] Error: ${a.message}`),Promise.reject(a)));getNewsListPath=t=>this.props?.axiosApi.get("/news-list-paths",{params:t}).catch(a=>(console.log(`[/news-list-paths] Error: ${a.message}`),Promise.reject(a)));getNewsSchemasImages=t=>this.props?.axiosApi.get("/schemas/news-images",{params:t}).catch(a=>(console.log(`[/schemas/news-images] Error: ${a.message}`),Promise.reject(a)));getNewsItemsRelated=(t,a)=>this.props?.axiosApi.get("/news-items-related",{params:{path:t,imagesizes:this.contract.note.listStandard,exclude:this.exclude,...a}}).catch(n=>(console.log(`[/news-items-related] Error: ${n.message}`),{data:fn()}));sendEmail=t=>this.props?.axiosApi.post("/send/email",t,{headers:{"Content-Type":"application/x-www-form-urlencoded",Cookie:"JSESSIONID=21FDC2B9C2782893562BC53D52981A0B"}}).catch(a=>(console.log(`[/send/email] Error: ${a.message}`),Promise.reject(a)));searchData=async t=>{const a=await this.getNewsSearch(t);return a&&a?.data.data&&a?.data.data.length>0?{search:a}:{lastNews:await this.getNewsList(t)}};commonNewsServices=async(t,a={getNews:`${this.contract.note.detailMain}${this.contract.note.detailSecondary}`,getNewsItemsList:`${this.contract.note.itemsListPrimary}${this.contract.note.detailSecondary}`,getAutorInfo:`${this.contract.author.avatar}`,getNewsItemsRelated:`${this.contract.note.relatedPrimary}${this.contract.note.relatedThumb}`},n={getNewsItemsRelated:"config,keywords,authors,body,related,relatedexternal,social,external,hascontent,customfields,pixel",getAutorInfo:"groups"})=>{const[r,o]=await Promise.allSettled([this.getNews({imagesizes:a.getNews,path:t}),this.getNewsItemsList({path:t,imagesizes:a.getNewsItemsList})]),i=Ke(r)?.data,l=i?.[0];let c=[];l?.authors?.length===1&&l?.config?.showauthor&&l.authors[0]?.internaluser&&(c=(await this.getAutorInfo({user:l.authors[0].name,exclude:n.getAutorInfo,imagesizes:a.getAutorInfo}))?.data.data??[]);const d=Kt(l),f=(Ke(o)?.data??[])[0]?.list?.items?.map(b=>Kt(b)),h=[];f?.forEach(b=>{b&&b.length>0&&b.forEach(C=>{C.forEach(S=>{const v=this.getNews({path:S.replaceAll("|","/"),imagesizes:a.getNewsItemsRelated,exclude:n.getNewsItemsRelated});v&&h.push(v)})})});const m=(await Promise.allSettled([...h])).map(b=>Ke(b)?.data),p=await tn(d,this.getNews,`${this.contract.note.relatedPrimary}${this.contract.note.relatedThumb}`);let w=[];try{w=(await this.getNewsSchemasImages({path:t}))?.data?.data??[]}catch(b){console.warn("getNewsSchemasImages failed:",b),w=[]}return{news:i??[],autor:c,newsRelatedResponses:p,itemList:Ke(o)?.data??[],newsRelatedListResponses:m,schemasImages:w??[]}}}class Ur extends Fe{MULTIPUBLICATION_FETCHES;PUBLIC_PUBLICATION_ID;IS_MULTIPUBLICATION;constructor(t){super(t);const{MULTIPUBLICATION_FETCHES:a,PUBLIC_PUBLICATION_ID:n}=U();this.MULTIPUBLICATION_FETCHES=a,this.PUBLIC_PUBLICATION_ID=n,this.IS_MULTIPUBLICATION=a!=null&&a!==""||n!=null&&n!==""}getBlockSass=async t=>{const a=await this.props?.axiosApi.get("/config/blocks-saas",{params:{...t,exclude:this.exclude,path:this.props?.config?.servicePrefix+`/${this.configVersion}/columna_derecha.html`}}).catch(d=>(console.log(`[/config/blocks-saas] Error: ${d.message}`),Promise.reject(d)));if(!a||!a.data||!a.data.data||a.data.data.length===0||!a.data.data[0]?.value||!a.data.data[0].block||!this.props?.imgSizes[a.data.data[0].block])return{blockSass:a?a.data.data:void 0};const n=a.data.data[0]??[],r=n?.value.split("="),o=r[0]??"",i=r[1]??"",l=n?.block,c={videos:async()=>{const d={size:this.props?.imgSizes[l].size??5,imagesizes:`${this.props?.imgSizesVideo.lg}${this.props?.imgSizesVideo.md}`,query:"Keywords:("+(i??"videohome")+")"};this.IS_MULTIPUBLICATION&&(d.publication=this.MULTIPUBLICATION_FETCHES??this.PUBLIC_PUBLICATION_ID);try{const u=await this.getvideoListAdvanced(d);return{blockSass:a.data.data,content:u?u.data:void 0}}catch(u){return console.log(`[/videos-list-advanced] Error: ${u?.message}`),{blockSass:a.data.data,content:void 0}}},tag:async()=>{const{USE_QUOTE_IN_QUERY_TAG_HOME:d}=U(),u={query:d?'claves:("'+i+'")':"claves:("+i+")",size:this.props?.imgSizes[l]?.size??3,newstype:this.props?.config?.newsType,exclude:this.exclude,imagesizes:this.props?.imgSizes[l]?.imageSizes};this.IS_MULTIPUBLICATION&&(u.publication=this.MULTIPUBLICATION_FETCHES??this.PUBLIC_PUBLICATION_ID);try{const f=await this.getNewsListAvanced(u);return{blockSass:a.data.data,content:f?f.data:void 0}}catch(f){return console.log(`[/news-list-advanced] Error: ${f?.message}`),{blockSass:a.data.data,content:void 0}}},seccion:async()=>{const d={query:`seccion:(${i})`,size:this.props?.imgSizes[l]?.size??3,newstype:this.props?.config?.newsType,exclude:this.exclude,imagesizes:this.props?.imgSizes[l]?.imageSizes};this.IS_MULTIPUBLICATION&&(d.publication=this.MULTIPUBLICATION_FETCHES??this.PUBLIC_PUBLICATION_ID);try{const u=await this.getNewsListAvanced(d);return{blockSass:a.data.data,content:u?u.data:void 0}}catch(u){return console.log(`[/news-list-advanced] Error: ${u?.message}`),{blockSass:a.data.data,content:void 0}}}};if(o in c){const d=c[o];return await d()}return{blockSass:a.data.data}}}class ad{issuuApi="https://api.issuu.com/v2";api=void 0;q="";constructor(t){this.q=t.q,this.api=re.create({baseURL:t.issuuApi?t.issuuApi:this.issuuApi,params:{state:t.state?t.state:"PUBLISHED",size:t.size?t.size:16,q:t.q},headers:{Authorization:`Bearer ${t.token}`}})}async getListIssuuPublications({page:t=1}){try{return await this.api?.get("/publications",{params:{q:this.q,page:t}})}catch(a){throw a}}async getListIssuuPublicationBySlug(t){try{return await this.api?.get(`/publications/${t}/embed`)}catch(a){throw a}}}const nd=async(e,t,a,n,r,o,i)=>{const l=new Ur({config:t,imgSizes:a,imgSizesVideo:n,axiosApi:e,exclude:i}),c=[];for(let f=1;f<=r;f++)for(let h=1;h<=o;h++)c.push({func:l.getBlockSass,slot_id:f+"_"+h});const d=await Promise.allSettled([...c.map(f=>f.func({template:"Home_"+f.slot_id}))]);return(()=>{const f={};for(let h=0;h<d.length;h++){const g=Za(d[h]),m="Home_"+(Math.floor(h/o)+1)+"_"+(Math.floor(h%o)+1);g&&(f[m]={...g})}return f})()},rd=e=>{const t=Ke(e);return t&&t.data?t.data:t},od=async e=>{const t=await Promise.allSettled(Object.values(e).map(r=>{const o=r.promise??Promise.resolve(void 0);return o.catch(()=>{}),o})),a=Object.keys(e),n={};for(const r in e){const o=e[r];if(!o)continue;const i=o.custom_extractData??rd;n[r]=i(t[a.indexOf(r)])}return n},me=e=>({title:e.title,description:e.description}),Lr=(e="")=>e.replace(/-/g," ").replace(/^./,t=>t.toUpperCase()),Bt=e=>e.includes("/page/")?e.replace(/\/page\/\d+$/,""):e,pe=e=>{try{const t=de();if(!t)return e;const a=new URL(e),n=a.pathname;return n===t||n.startsWith(`${t}/`)?e:a.origin+t+e.slice(a.origin.length)}catch{return e}},Pe=(e,t,a,n)=>{const r=pe(t),o={...a?{title:a}:{},...n?{description:n}:{}};return{alternates:{...e.alternates,canonical:r},openGraph:{...e.openGraph,url:r,...o},twitter:{...e.twitter,url:r,...o}}},Pr={404:e=>{const{meta:t}=e;return me(t)},home:e=>{const{meta:t,config:a}=e;return{...t,...Pe(t,a.siteUrl,t.title)}},slug:e=>{const{meta:t,config:a,slug:n,pathname:r}=e,o=`${a.name} | ${Lr(n)}`;return{...t,title:o,...Pe(t,a.siteUrl+r,o)}},auth:e=>{const{meta:t,config:a,slug:n,pathname:r}=e,o=`${a.name} | ${Lr(n)}`;return{...t,title:o,...Pe(t,a.siteUrl+r,o)}},news:e=>{const{meta:t,config:a,currentNew:n,schemasImages:r}=e;if(!n)return me(t);const o=nn(t,n,a,r);return o?{...t,...o}:me(t)},seccion:async e=>{const{meta:t,config:a,pathname:n,slug:r,axiosApi:o,meta_info:i}=e,{CONFIG_sectionMetaInfo:l,PUBLIC_LNG:c}=U(),u=Bt(n).split("/"),f=[],h=gt(n),g=Number(a.newsListLimit)||0,m=c==="en";if(l&&i)return i.next&&f.push({rel:"next",url:Xe(a,u,h)}),h>1&&f.push({rel:"prev",url:Re(a,u,h)}),{...t,title:i.title,alternates:{...t.alternates,canonical:pe(a.siteUrl+n)},manifest:a.manifest,icons:{...a.icons,other:f},other:{"msapplication-TileImage":a.msapplicationTileImage??""},openGraph:{...t.openGraph,title:i.title,type:"website",url:pe(`${a.siteUrl}${n}`)},twitter:{...t.twitter,card:"summary_large_image",title:i.title,domain:new URL(a.siteUrl).hostname,url:pe(`${a.siteUrl}${n}`)}};const p=new Fe({config:a,axiosApi:o});try{let w,b;if(Ws("seccion")){const A=await dn({fetchFn:x=>p.getNewsListSection(x),baseParams:{section:r,newstype:a.newsType,exclude:"keywords,gallery,related,relatedexternal,external,customfields"},userPage:h,newsListLimit:g});w=A.data,b=A.hasNextPage}else{const A=await p.getNewsListSection({section:r,size:g,newstype:a.newsType,exclude:"keywords,gallery,related,relatedexternal,external,customfields",page:h});if(!A)return me(t);w=A.data.data,b=!(w.length<g)}const C=w[0];b&&f.push({rel:"next",url:Xe(a,u,h)}),h>1&&f.push({rel:"prev",url:Re(a,u,h)});const S=m?`Latest News from ${C.info.section?.name} | ${a.name}`:`Últimas Noticias de ${C.info.section?.name} | ${a.name}`,v=m?`All the latest news from ${C.info.section?.name} on ${a.name}`:`Todas las últimas noticias de ${C.info.section?.name} en ${a.name}`;return{...t,title:S,description:v,alternates:{...t.alternates,canonical:pe(a.siteUrl+n)},manifest:a.manifest,icons:{...a.icons,other:f},other:{"msapplication-TileImage":a.msapplicationTileImage??""},openGraph:{...t.openGraph,title:S,description:v,type:"website",url:pe(`${a.siteUrl}${n}`),locale:t.openGraph.locale},twitter:{...t.twitter,card:"summary_large_image",title:S,description:v,site:t.twitter.site,domain:new URL(a.siteUrl).hostname,url:pe(`${a.siteUrl}${n}`)}}}catch(w){return console.error(w),me(t)}},tema:async e=>{const{meta:t,config:a,pathname:n,slug:r,axiosApi:o}=e,i=new Fe({config:a,axiosApi:o}),c=Bt(n).split("/"),d=[],u=gt(n),f=Number(a.newsListLimit)||0,h=/([t][0-9]{4})\w+/.exec(r||""),g=h&&h?.length>0?h[0].replace("t",""):"",{PUBLIC_TAG_TYPE:m,PUBLIC_LNG:p}=U(),w=p==="en";try{const b=await i.getNewsListTags({tagid:g,size:f,tagtype:Number(m),newstype:a.newsType,exclude:"keywords,gallery,related,relatedexternal,external,customfields",page:u});if(!b)return me(t);const C=b.data.entity;if(!C)return me(t);b.data.data?.length<f||d.push({rel:"next",url:Xe(a,c,u)}),u>1&&d.push({rel:"prev",url:Re(a,c,u)});const S=w?`Latest news about ${C.name} | ${a.name}`:`Últimas noticias de ${C.name} | ${a.name}`,v=w?`The latest news about ${C.name} on ${a.name}`:`Las últimas noticias sobre ${C.name} en ${a.name}`;return{...t,title:S,description:v,alternates:{...t.alternates,canonical:pe(a.siteUrl+n)},manifest:a.manifest,icons:{...a.icons,other:d},other:{"msapplication-TileImage":a.msapplicationTileImage??""},openGraph:{...t.openGraph,title:S,description:v,type:"website",url:pe(`${a.siteUrl}${n}`),locale:t.openGraph.locale},twitter:{...t.twitter,card:"summary_large_image",title:S,description:v,site:t.twitter.site,domain:new URL(a.siteUrl).hostname,url:pe(`${a.siteUrl}${n}`)}}}catch(b){return console.error(b),me(t)}},"ultimas-noticias":async e=>{const{meta:t,config:a,pathname:n,texts:r,axiosApi:o}=e,i=new Fe({config:a,axiosApi:o}),c=Bt(n).split("/"),d=[],u=gt(n),f=Number(a.newsListLimit)||0,h=`${a.name} | ${r.lastNotesTitle}`,g={...t,title:h,...Pe(t,a.siteUrl+"/"+a.paths["ultimas-noticias"],h)};if(!o)return g;try{const m=await i.getNewsList({size:f,newstype:a.newsType,exclude:"keywords,gallery,related,relatedexternal,external,customfields",page:u});return m?(m.data.data.length<f||d.push({rel:"next",url:Xe(a,c,u)}),u>1&&d.push({rel:"prev",url:Re(a,c,u)}),{...t,title:h,...Pe(t,a.siteUrl+n,h),manifest:a.manifest,icons:{...a.icons,other:d},other:{"msapplication-TileImage":a.msapplicationTileImage??""}}):g}catch(m){return console.error(m),g}},video:async e=>{const{meta:t,config:a,internalPath:n,axiosApi:r}=e,o=new Fe({config:a,axiosApi:r});try{const i=await o.getVideos({imagesizes:o.contract.og.social,path:n});return i?.data?.data?.length?{...t,...wn(t,i.data.data[0],a)??{}}:me(t)}catch(i){return console.error("metadata (video) error:",i),me(t)}},videos:async e=>{const{meta:t,config:a,pathname:n,axiosApi:r}=e,o=new Fe({config:a,axiosApi:r}),l=Bt(n).split("/"),c=[],d=gt(n),u=Number(a.newsListLimit)||0;try{const f=await o.getvideoListAdvanced({size:u,query:"Category:(videohome OR destacadoseccion OR seccion)",page:Number(d)});if(!f)return me(t);f.data.data.length<u||c.push({rel:"next",url:Xe(a,l,d)}),d>1&&c.push({rel:"prev",url:Re(a,l,d)});const h="Videos | "+a.name;return{...t,title:h,...Pe(t,a.siteUrl+n,h),manifest:a.manifest,icons:{...a.icons,other:c},other:{"msapplication-TileImage":a.msapplicationTileImage??""}}}catch(f){return console.error(f),me(t)}},pages:async(e,t)=>{const{meta:a,config:n,pathname:r,slug:o,axiosApi:i}=e,l=new Fe({config:n,axiosApi:i});try{const c=await l.getPages({path:t||n.servicePrefix+`/pages/${o}`});if(!c)return me(a);const d=c.data.data[0]?.info.title??"",u=`${n.name} | ${d}`;return{...a,title:u,...Pe(a,n.siteUrl+r,u)}}catch(c){return console.error(c),me(a)}},contacto:e=>{const{meta:t,config:a,pathname:n}=e,r=U().PUBLIC_LNG==="en",o=`${a.name} | ${r?"Contact":"Contacto"}`;return{...t,title:o,...Pe(t,a.siteUrl+n,o)}},anuncia:e=>{const{meta:t,config:a,pathname:n}=e,r=U().PUBLIC_LNG==="en",o=`${a.name} | ${r?"Advertise":"Anuncia"}`;return{...t,title:o,...Pe(t,a.siteUrl+n,o)}},buscar:e=>{const{meta:t,config:a,pathname:n,query:r,texts:o}=e;if(r&&r.trim()!==""){const i=`${a.name} | ${`${o.resultsOfPrefix}'${r}'`}`;return{...t,title:i,alternates:{...t.alternates,canonical:pe(a.siteUrl+n+(r?"?query="+r:""))},openGraph:{...t.openGraph,title:i,type:"website",url:pe(`${a.siteUrl}${n}${r?"?query="+r:""}`)},twitter:{...t.twitter,card:"summary_large_image",title:i,domain:new URL(a.siteUrl).hostname,url:pe(`${a.siteUrl}${n}${r?"?query="+r:""}`)}}}else{const i=`${a.name} | ${o.searchKeyWord}`;return{...t,title:i,alternates:{...t.alternates,canonical:pe(a.siteUrl+n+(r?"?query="+r:""))},openGraph:{...t.openGraph,title:i,type:"website",url:pe(`${a.siteUrl}${n}`)},twitter:{...t.twitter,card:"summary_large_image",title:i,domain:new URL(a.siteUrl).hostname,url:pe(`${a.siteUrl}${n}`)}}}},autor:async e=>{const{meta:t,config:a,pathname:n,imgSizes:r,slug:o,axiosApi:i}=e,l=new Fe({config:a,axiosApi:i,imgSizes:r}),d=Bt(n).split("/"),u=[],f=gt(n),h=U().PUBLIC_LNG==="en",g=Number(a.newsListLimit)||0;try{const m=await l.getAutorInfo({user:o,exclude:"groups",imagesizes:r.sm}),p=await l.getNewsListAutor({size:g,user:o,page:f,newstype:a.newsType,exclude:"keywords,gallery,related,relatedexternal,external,customfields",imagesizes:r.md});if(!p)return me(t);p.data.data.length<g||u.push({rel:"next",url:Xe(a,d,f)}),f>1&&u.push({rel:"prev",url:Re(a,d,f)});const w=m?.data.data[0]?.info.fullname,b=h?`Latest News from ${w} | ${a.name}`:`Últimas Noticias de ${w} | ${a.name}`,C=h?`All the latest news from ${w} on ${a.name}`:`Todas las últimas noticias de ${w} en ${a.name}`;return{...t,title:b,description:C,...Pe(t,a.siteUrl+n,b,C),manifest:a.manifest,icons:{...a.icons,other:u},other:{"msapplication-TileImage":a.msapplicationTileImage??""}}}catch(m){return console.error(m),me(t)}}},id=e=>e?e.replace(/<[^>]*>/g,"").replace(/&nbsp;/gi," ").replace(/&amp;/gi,"&").replace(/&quot;/gi,'"').replace(/&#39;/gi,"'").replace(/\s+/g," ").trim():"",ld=({autor:e,listAutor:t,config:a})=>{const n=t?.[0]??null,{DATE_TIMEZONE:r="America/Mexico_City",PUBLIC_ASSETS_URL:o,PUBLIC_LNG:i}=U(),l=i==="en",c=r,d=n?.info?.date?.modified?Qe(n.info.date.modified,c):void 0,u=e.addtional?.USER_JOBSTART?Qe(e.addtional.USER_JOBSTART,c):void 0,f=o&&o!=="false"?o:"",h=e.addtional,g=h?.USER_USERFB||h?.USER_PAGE_FACEBOOK||h?.USER_FACEBOOK_FAN_PAGE,m=h?.USER_USERTWT||h?.USER_PAGE_TWITTER,p=h?.USER_USERIG||h?.USER_PAGE_INSTAGRAM,w=h?.USER_USERLIN||h?.USER_PAGE_LINKEDIN,b=h?.USER_PAGE_TIKTOK,C=h?.USER_PAGE_YOUTUBE,S=h?.USER_PAGE_PINTEREST,v=l?h?.USER_POSITION_EN||"":h?.USER_JOBTITLE||h?.USER_POSITION||"",A=l?h?.USER_DESCRIPCION_EN||h?.USER_MIBIO_EN||"":h?.USER_DESCRIPCION||h?.USER_MIBIO||"",x=e?.addtional?.USER_SHOWEMAIL===!0||h?.USER_MOSTRAR_MAIL?.toUpperCase()==="TRUE",k=de(),O={"@context":"https://schema.org","@type":"ProfilePage",mainEntity:{"@type":"Person",name:e.info.fullname??e.info.name,alternateName:e.info.nickname?e.info.nickname:e.info.name,identifier:e.info.id,description:id(A),image:e.info.image?e.info.image.sizes.map((Q,B)=>B===0&&e.info.image.sizes.length!==1?null:f+Q.url).filter(Boolean):[],sameAs:[g,p,w,m,b,C,S].filter(Boolean),jobTitle:v,url:a.siteUrl+k+(a.paths.autor!==""?`/${a.paths.autor}/`:"/")+e.info.name}};return u&&(O.dateCreated=u),d&&(O.dateModified=d),x&&(O.mainEntity.email=e.info.email),s.jsx("script",{type:"application/ld+json",children:JSON.stringify(Le(O))})},cd=`(function(){"use strict";const Me="__html-audit-manifest";function je(e){const t=e.getElementById(Me);if(!t||!t.textContent)return null;try{const n=JSON.parse(t.textContent);return!n||typeof n!="object"||!n.expects?null:n}catch{return null}}function g(e,t,n,o,r){return{id:e,label:t,status:n,detail:o,expected:r}}function w(e,t,n,o,r){return o==null?g(e,t,n?"ok":"info",r,void 0):o?n?g(e,t,"ok",r,!0):g(e,t,"missing",r||"Esperado por config pero AUSENTE",!0):n?g(e,t,"warn",r||"Presente pero no estaba configurado",!1):g(e,t,"info",r||"No configurado",!1)}const ce={ok:0,info:1,warn:2,missing:3};function J(e,t){if(!t||!t.length)return e;e.issues=t;let n=e.status;for(const o of t)ce[o.status]>ce[n]&&(n=o.status);return e.status=n,e}function N(e,t){return!!e.querySelector(t)}function q(e,t){return e.querySelectorAll(t).length}function F(e){const t=[];return e.querySelectorAll('script[type="application/ld+json"]').forEach(o=>{if(o.textContent)try{const r=JSON.parse(o.textContent);Array.isArray(r)?t.push(...r):t.push(r)}catch{}}),t}function U(e,t){return F(e).some(n=>{const o=n?.["@type"];return typeof o=="string"?o===t:Array.isArray(o)?o.includes(t):!1})}function pe(e,t){const n=[],o=r=>{if(!r||typeof r!="object")return;if(Array.isArray(r)){r.forEach(o);return}const s=r,i=s["@type"];(i===t||Array.isArray(i)&&i.includes(t))&&n.push(s),Array.isArray(s["@graph"])&&s["@graph"].forEach(o)};return F(e).forEach(o),n}const qe=600,Ue=6e3;function de(e,t){return e.length>t?e.slice(0,t)+\`
29
+ }`,Rc=e=>{try{return new URL(e).origin}catch{return null}},ed=({config:e,fontUrl:t,isS3:a})=>{const n=e.fontDisplay??"swap",r=e.fontFormat??"woff2",o=Rc(t);return s.jsxs(s.Fragment,{children:[o&&!a&&s.jsx("link",{rel:"preconnect",href:o,crossOrigin:"anonymous"}),s.jsx("link",{rel:"preload",as:"font",href:t,type:`font/${r}`,crossOrigin:"anonymous",fetchPriority:"high"}),s.jsx("style",{dangerouslySetInnerHTML:{__html:Xc(e,t,n,r)}})]})},Er=({config:e})=>{const t=e.fontDisplay??"swap",{url:a,isS3:n}=Zc(e);return a?s.jsx(ed,{config:e,fontUrl:a,isS3:n}):xr(e.googleFontFamily)?s.jsxs(s.Fragment,{children:[s.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),s.jsx("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),s.jsx("link",{rel:"stylesheet",href:`https://fonts.googleapis.com/css2?${e.googleFontFamily}&display=${t}`})]}):null},ca={404:()=>{},home:()=>({"[author_replace]":"","[section_replace]":"home","[tag_replace]":"","[url_replace]":""}),slug:e=>({"[author_replace]":"","[section_replace]":e.pathname==="/index.html"?"home":e.slug??"","[tag_replace]":"","[url_replace]":""}),news:e=>({"[author_replace]":e.currentNew?.authors[0]?.name??"","[section_replace]":e.currentNew?.info?.section?.slug??"","[tag_replace]":Qs(e.currentNew?.keywords),"[url_replace]":on(e.internalPath??"")}),seccion:e=>({"[author_replace]":"","[section_replace]":e.pathname?.split("/"+e.config?.paths.seccion+"/")[1]??"","[tag_replace]":"","[url_replace]":""}),tema:e=>({"[author_replace]":"","[section_replace]":e.pathname?.split("/"+e.config?.paths.tema+"/")[1]??"","[tag_replace]":"","[url_replace]":""}),"ultimas-noticias":e=>({"[author_replace]":"","[section_replace]":e.config?.paths["ultimas-noticias"]??"","[tag_replace]":"","[url_replace]":""}),video:e=>({"[author_replace]":"","[section_replace]":e.slug,"[tag_replace]":"","[url_replace]":""}),videos:e=>({"[author_replace]":"","[section_replace]":e.pathname?.split("/videos/")[1]??"","[tag_replace]":"","[url_replace]":""}),pages:e=>({"[author_replace]":"","[section_replace]":e.slug??"","[tag_replace]":"","[url_replace]":""}),auth:e=>({"[author_replace]":"","[section_replace]":e.slug??"","[tag_replace]":"","[url_replace]":""}),contacto:e=>({"[author_replace]":"","[section_replace]":e.config?.paths.contacto??"contacto","[tag_replace]":"","[url_replace]":""}),anuncia:e=>({"[author_replace]":"","[section_replace]":e.config?.paths.anuncia??"anuncia","[tag_replace]":"","[url_replace]":""}),buscar:e=>({"[author_replace]":"","[section_replace]":e.config?.paths.buscar??"","[tag_replace]":"","[url_replace]":""}),autor:e=>({"[author_replace]":"","[section_replace]":e.pathname?.split("/"+e.config?.paths.autor+"/")[1]??"","[tag_replace]":"","[url_replace]":""})},Tr=e=>{if(!e)return e??"";if(e.search("/page/")===-1)return e.replace("/","");const t=e.split("/"),a=t.indexOf("page")-1;return a<0?e:(t[a]??"").replace("/","")},xe=e=>{const a=e.replace(/^\/|\/$/g,"").split("/"),n=a.indexOf("page");return n>0?`${a[n-1]??""}`:`${a[a.length-1]??""}`},kr={404:()=>"404",home:()=>"home",slug:e=>xe(e.pathname),news:e=>rn(e.pathname)?.slug,seccion:e=>xe(e.pathname),tema:e=>xe(e.pathname),pages:e=>xe(e.pathname),auth:e=>xe(e.pathname),buscar:e=>xe(e.pathname),"ultimas-noticias":e=>xe(e.pathname),anuncia:e=>xe(e.pathname),contacto:e=>xe(e.pathname),autor:e=>xe(e.pathname),video:e=>xe(e.pathname),videos:e=>xe(e.pathname)},gt=e=>{const t=e.split("/"),a=t[t.length-1]??"1";return Number(a)>0?Number(a):1},td=(e,t=2)=>{if(!e||e.length===0)return[];const a=[];for(let n=0;n<t;n++){if(!e[n]||!e[n].preview)continue;const r=e[n].preview?.sizes;r&&(r.length>1?a.push({href:r[0]?.url??"",media:"(min-width: 900px)"},{href:r[1]?.url??"",media:"(max-width: 900px)"}):a.push({href:r[0]?.url??""}))}return a},Ir=({gpt:e=!1,googleAds:t=!1,syndication:a=!1,adsense:n=!1})=>s.jsxs(s.Fragment,{children:[e&&s.jsx("link",{rel:"preconnect",href:"https://securepubads.g.doubleclick.net",crossOrigin:"anonymous"}),t&&s.jsx("link",{rel:"preconnect",href:"https://googleads.g.doubleclick.net",crossOrigin:"anonymous"}),a&&s.jsx("link",{rel:"preconnect",href:"https://tpc.googlesyndication.com",crossOrigin:"anonymous"}),n&&s.jsx("link",{rel:"dns-prefetch",href:"https://pagead2.googlesyndication.com"})]});class sd{exclude="keywords,gallery,related,relatedexternal,external,customfields";config={};imgSizes={};configVersion=".config";axiosApi=void 0;customMainImagesSize=void 0;contract;constructor(t,a,n,r,o,i){this.config=t,this.imgSizes=a,this.axiosApi=n,this.customMainImagesSize=o,this.contract=vt(i).contract,t.configVersion&&(this.configVersion=t.configVersion),r&&(this.exclude=r)}async getNewsListZone(t){if(this.axiosApi)return this.axiosApi.get("/news-list-zone",{params:t}).catch(a=>(console.log(`[/news-list-zone] Error: ${a.message}`),console.log(a),Promise.reject(a)))}async getOutstandingBlock(t){if(this.axiosApi)return this.axiosApi.get("/config/blocks",{params:{...t,path:this.config.servicePrefix+`/${this.configVersion}/columna_derecha.html`}}).catch(a=>(console.log(`[/config/blocks] Error: ${a.message}`),console.log(a),Promise.reject(a)))}getNewsListZoneWrapper(t,a,n){return this.getNewsListZone({zone:"destacadas",size:a,onmainpage:t?"section":void 0,section:t,newstype:this.config.newsType,exclude:this.exclude,imagesizes:n})}async getNewsDestacadoDiario(t){try{const[a,n]=await Promise.all([this.getNewsListZoneWrapper(t,1,this.customMainImagesSize||`${this.contract.video.xl}${this.contract.video.lg}`),this.getNewsListZoneWrapper(t,5)]);return!a?.data?.data||!n?.data?.data?[]:(a.data.data=[...a.data.data,...n.data.data.slice(1)],a)}catch(a){return console.log(`[MainComponentServices.getNewsDestacadoDiario] Error: ${a?.message}`),[]}}async getNewsDestacadoDiarioImage(t){try{const[a,n]=await Promise.all([this.getNewsListZoneWrapper(t,1,this.customMainImagesSize||this.contract.note.itemsListPrimary),this.getNewsListZoneWrapper(t,5,this.contract.note.featuredDiarioImageThumb)]);return!a?.data?.data||!n?.data?.data?[]:(a.data.data=[...a.data.data,...n.data.data.slice(1)],a)}catch(a){return console.log(`[MainComponentServices.getNewsDestacadoDiarioImage] Error: ${a?.message}`),[]}}async getNewsAltoImpacto(t){try{return await this.getNewsListZoneWrapper(t,1,`${this.contract.note.gallery}${this.contract.note.featuredSuperSecondary}`)}catch(a){console.log(`[MainComponentServices.getNewsAltoImpacto] Error: ${a?.message}`);return}}async getNewsDestacadoVertical(t){try{const[a,n]=await Promise.all([this.getNewsListZoneWrapper(t,1,`${this.contract.note.featuredVerticalPrimary}${this.contract.video.lg}`),this.getNewsListZoneWrapper(t,3,`${this.contract.video.lg}${this.contract.note.featuredVerticalSecondary}`)]);return!a?.data?.data||!n?.data?.data?[]:(a.data.data=[...a.data.data,...n.data.data.slice(1)],a)}catch(a){return console.log(`[MainComponentServices.getNewsDestacadoVertical] Error: ${a?.message}`),[]}}async getNewsDestacadoHorizontal(t){try{const[a,n]=await Promise.all([this.getNewsListZoneWrapper(t,1,`${this.contract.note.featuredHorizontalPrimary}${this.contract.video.lg}`),this.getNewsListZoneWrapper(t,3,this.contract.note.featuredHorizontalSecondary)]);return!a?.data?.data||!n?.data?.data?[]:(a.data.data=[...a.data.data,...n.data.data.slice(1)],a)}catch(a){return console.log(`[MainComponentServices.getNewsDestacadoHorizontal] Error: ${a?.message}`),[]}}GetByOptions={Diario:t=>this.getNewsDestacadoDiario(t),"Diario con imagen":t=>this.getNewsDestacadoDiarioImage(t),Super:t=>this.getNewsAltoImpacto(t),"3 notas verticales":t=>this.getNewsDestacadoVertical(t),"3 notas horizontales":t=>this.getNewsDestacadoHorizontal(t)};async getMainBlockData(t,a){try{const r=(await this.getOutstandingBlock(t))?.data.data[0]?.value||"";if(!r||!Object.keys(this.GetByOptions).includes(r))return{section:r,news:[]};const o=await this.GetByOptions[r](a);return{section:r,news:o.data}}catch(n){return console.log(`[MainComponentServices.getMainBlockData] Error: ${n?.message}`),{section:"",news:[]}}}}const ps=Symbol("bucket-retry-exhausted");class Fe{constructor(t){this.props=t,this.contract=vt(t?.imageSizes).contract,t?.config?.configVersion&&(this.configVersion=t.config.configVersion),t?.exclude&&(this.exclude=t.exclude)}configVersion=".config";exclude="keywords,gallery,related,relatedexternal,external,customfields";contract;generateTokenOffline=async t=>{const{PUBLIC_IS_OFFLINE:a,PUBLIC_USERNAME_OFFLINE:n,PUBLIC_PASSWORD_OFFLINE:r}=U();if(a==="true")try{return(await this.props?.axiosApi.get("/auth",{params:{username:n,password:r,browserid:t}}).catch(i=>(console.log(`[/auth]Error: ${i.message}`),Promise.reject(i))))?.data.data[0]?.token}catch(o){console.log(`[/auth] Error: ${o.message}`),console.log(o)}};getEntitySection=t=>this.props?.axiosApi.get("/entity-section",{params:t}).catch(a=>(console.log(`[/entity-section] Error: ${a.message}`),Promise.reject(a)));getMainMenu=t=>{const a=U().BUCKET_ORIGIN,n={data:{data:[]}},r=()=>this.props.axiosApi.get("/config/menu",{params:t}).catch(i=>(console.log(`[/config/menu] Error: ${i.message}`),Ae.add({service:"CommonServices.getMainMenu",endpoint:"/config/menu",method:"GET",params:t,message:i.message,status:i.response?.status,layer:"axios-service"}),n));if(a?.menu){const i=cs(t.path),l=at(a,this.props?.config?.servicePrefix,"menu",i),c=a.referer??It,d=`origin:menu:bucket:${l}`;return kt(d,()=>Zt(()=>ls(a.proxyUrl??a.url,c).get(l),ps,{label:"bucket:menu",endpoint:l,params:t}).then(u=>u===ps?r():u))}const o=`origin:menu:api:${t.path??""}`;return kt(o,()=>r())};getNewsListZone=t=>this.props?.axiosApi.get("/news-list-zone",{params:t}).catch(a=>(console.log(`[/news-list-zone] Error: ${a.message}`),Promise.reject(a)));getNewsListZoneSection=t=>this.props?.axiosApi.get("/news-list-zone-section",{params:t}).catch(a=>(console.log(`[/news-list-zone-section] Error: ${a.message}`),Promise.reject(a)));getNewsList=t=>this.props?.axiosApi.get("/news-list",{params:t}).catch(a=>(console.log(`[/news-list] Error: ${a.message}`),Promise.reject(a)));getNewsListTag=t=>this.props?.axiosApi.get("/news-list-tag",{params:t}).catch(a=>(console.log(`[/news-list-tag] Error: ${a.message}`),Promise.reject(a)));getNewsListSection=t=>this.props?.axiosApi.get("/news-list-section",{params:t}).catch(a=>(console.log(`[/news-list-section] Error: ${a}`),console.log(`[/news-list-section] Error: ${a.message}`),Promise.reject(a)));getNewsListAvanced=t=>this.props?.axiosApi.get("/news-list-advanced",{params:t}).catch(a=>(console.log(`[/news-list-advanced] Error: ${a.message}`),Promise.reject(a)));getNewsListTags=t=>this.props?.axiosApi.get("/news-list-tag",{params:t}).catch(a=>(console.log(`[/news-list-tag] Error: ${a.message}`),Promise.reject(a)));getNewsListTagEntity=t=>this.props?.axiosApi.get("/news-list-tag-entity",{params:t}).catch(a=>(console.log(`[/news-list-tag-entity] Error: ${a.message}`),Promise.reject(a)));getNewsListTagLite=t=>this.props?.axiosApi.get("/news-list-tag-lite",{params:t}).catch(a=>(console.log(`[/news-list-tag-lite] Error: ${a.message}`),Promise.reject(a)));getNewsListAutor=t=>this.props?.axiosApi.get("/news-list-author",{params:t}).catch(a=>(console.log(`[/news-list-author] Error: ${a.message}`),Promise.reject(a)));getNewsSearch=t=>this.props?.axiosApi.get("/news-list-search",{params:t}).catch(a=>(console.log(`[/news-list-search] Error: ${a.message}`),Promise.reject(a)));getAutorInfo=t=>this.props?.axiosApi.get("/authors",{params:t}).catch(a=>(console.log(`[/authors] Error: ${a.message}`),Promise.reject(a)));getvideoListAdvanced=t=>this.props?.axiosApi.get("/videos-list-advanced",{params:t}).catch(a=>(console.log(`[/videos-list-advanced] Error: ${a.message}`),Promise.reject(a)));getVideos=t=>this.props?.axiosApi.get("/videos",{params:t}).catch(a=>(console.log(`[/videos] Error: ${a.message}`),Promise.reject(a)));getVideosList=t=>this.props?.axiosApi.get("/videos-list",{params:t}).catch(a=>(console.log(`[/videos-list] Error: ${a.message}`),Promise.reject(a)));getBanners=async t=>{const a=U().BUCKET_ORIGIN,n={data:{data:[]}},r=()=>{const c=t.path?t.path:`/${this.configVersion}/banners.html`;return this.props.axiosApi.get("/config/banners",{params:{...t,path:this.props?.config?.servicePrefix+c}}).catch(d=>(console.log(`[/config/banners] Error: ${d.message}`),Ae.add({service:"CommonServices.getBanners",endpoint:"/config/banners",method:"GET",params:t,message:d.message,status:d.response?.status,layer:"axios-service"}),n))};if(a?.banners){const c=(t.template??"").toLowerCase(),d=at(a,this.props?.config?.servicePrefix,"banners",c),u=a.referer??It,f=`origin:banners:bucket:${d}`;return kt(f,()=>Zt(()=>ls(a.proxyUrl??a.url,u).get(d),ps,{label:"bucket:banners",endpoint:d,params:t}).then(h=>h===ps?r():h))}const o=t.path?t.path:`/${this.configVersion}/banners.html`,l=`origin:banners:api:${`${this.props?.config?.servicePrefix??""}${o}`}:${t.template??""}`;return kt(l,()=>r())};getPages=t=>this.props?.axiosApi.get("/config/pages",{params:t}).catch(a=>(console.log(`[/config/pages] Error: ${a.message}`),Promise.reject(a)));getRankingS3=async(t,a={Referer:It})=>!t||t===""?{data:[]}:Zt(()=>re.get(t,{headers:a}),{data:[]},{label:"bucket:ranking",endpoint:t});getNews=t=>this.props?.axiosApi.get("/news",{params:{...t,exclude:`${t.exclude},pixel`}}).catch(a=>(console.log(`[/news] Error: ${a.message}`),Promise.reject(a)));getNewsMultimedia=t=>this.props?.axiosApi.get("/news-items-multimedia",{params:t}).catch(a=>(console.log(`[/news-items-multimedia] Error: ${a.message}`),Promise.reject(a)));getNewsItemsList=t=>this.props?.axiosApi.get("/news-items-list",{params:t}).catch(a=>(console.log(`[/news-items-list] Error: ${a.message}`),Promise.reject(a)));getNewsListPath=t=>this.props?.axiosApi.get("/news-list-paths",{params:t}).catch(a=>(console.log(`[/news-list-paths] Error: ${a.message}`),Promise.reject(a)));getNewsSchemasImages=t=>this.props?.axiosApi.get("/schemas/news-images",{params:t}).catch(a=>(console.log(`[/schemas/news-images] Error: ${a.message}`),Promise.reject(a)));getNewsItemsRelated=(t,a)=>this.props?.axiosApi.get("/news-items-related",{params:{path:t,imagesizes:this.contract.note.listStandard,exclude:this.exclude,...a}}).catch(n=>(console.log(`[/news-items-related] Error: ${n.message}`),{data:fn()}));sendEmail=t=>this.props?.axiosApi.post("/send/email",t,{headers:{"Content-Type":"application/x-www-form-urlencoded",Cookie:"JSESSIONID=21FDC2B9C2782893562BC53D52981A0B"}}).catch(a=>(console.log(`[/send/email] Error: ${a.message}`),Promise.reject(a)));searchData=async t=>{const a=await this.getNewsSearch(t);return a&&a?.data.data&&a?.data.data.length>0?{search:a}:{lastNews:await this.getNewsList(t)}};commonNewsServices=async(t,a={getNews:`${this.contract.note.detailMain}${this.contract.note.detailSecondary}`,getNewsItemsList:`${this.contract.note.itemsListPrimary}${this.contract.note.detailSecondary}`,getAutorInfo:`${this.contract.author.avatar}`,getNewsItemsRelated:`${this.contract.note.relatedPrimary}${this.contract.note.relatedThumb}`},n={getNewsItemsRelated:"config,keywords,authors,body,related,relatedexternal,social,external,hascontent,customfields,pixel",getAutorInfo:"groups"})=>{const[r,o]=await Promise.allSettled([this.getNews({imagesizes:a.getNews,path:t}),this.getNewsItemsList({path:t,imagesizes:a.getNewsItemsList})]),i=Ke(r)?.data,l=i?.[0];let c=[];l?.authors?.length===1&&l?.config?.showauthor&&l.authors[0]?.internaluser&&(c=(await this.getAutorInfo({user:l.authors[0].name,exclude:n.getAutorInfo,imagesizes:a.getAutorInfo}))?.data.data??[]);const d=Kt(l),f=(Ke(o)?.data??[])[0]?.list?.items?.map(b=>Kt(b)),h=[];f?.forEach(b=>{b&&b.length>0&&b.forEach(C=>{C.forEach(S=>{const v=this.getNews({path:S.replaceAll("|","/"),imagesizes:a.getNewsItemsRelated,exclude:n.getNewsItemsRelated});v&&h.push(v)})})});const m=(await Promise.allSettled([...h])).map(b=>Ke(b)?.data),p=await tn(d,this.getNews,`${this.contract.note.relatedPrimary}${this.contract.note.relatedThumb}`);let w=[];try{w=(await this.getNewsSchemasImages({path:t}))?.data?.data??[]}catch(b){console.warn("getNewsSchemasImages failed:",b),w=[]}return{news:i??[],autor:c,newsRelatedResponses:p,itemList:Ke(o)?.data??[],newsRelatedListResponses:m,schemasImages:w??[]}}}class Ur extends Fe{MULTIPUBLICATION_FETCHES;PUBLIC_PUBLICATION_ID;IS_MULTIPUBLICATION;constructor(t){super(t);const{MULTIPUBLICATION_FETCHES:a,PUBLIC_PUBLICATION_ID:n}=U();this.MULTIPUBLICATION_FETCHES=a,this.PUBLIC_PUBLICATION_ID=n,this.IS_MULTIPUBLICATION=a!=null&&a!==""||n!=null&&n!==""}getBlockSass=async t=>{const a=await this.props?.axiosApi.get("/config/blocks-saas",{params:{...t,exclude:this.exclude,path:this.props?.config?.servicePrefix+`/${this.configVersion}/columna_derecha.html`}}).catch(d=>(console.log(`[/config/blocks-saas] Error: ${d.message}`),Promise.reject(d)));if(!a||!a.data||!a.data.data||a.data.data.length===0||!a.data.data[0]?.value||!a.data.data[0].block||!this.props?.imgSizes[a.data.data[0].block])return{blockSass:a?a.data.data:void 0};const n=a.data.data[0]??[],r=n?.value.split("="),o=r[0]??"",i=r[1]??"",l=n?.block,c={videos:async()=>{const d={size:this.props?.imgSizes[l].size??5,imagesizes:`${this.contract.video.lg}${this.contract.video.md}`,query:"Keywords:("+(i??"videohome")+")"};this.IS_MULTIPUBLICATION&&(d.publication=this.MULTIPUBLICATION_FETCHES??this.PUBLIC_PUBLICATION_ID);try{const u=await this.getvideoListAdvanced(d);return{blockSass:a.data.data,content:u?u.data:void 0}}catch(u){return console.log(`[/videos-list-advanced] Error: ${u?.message}`),{blockSass:a.data.data,content:void 0}}},tag:async()=>{const{USE_QUOTE_IN_QUERY_TAG_HOME:d}=U(),u={query:d?'claves:("'+i+'")':"claves:("+i+")",size:this.props?.imgSizes[l]?.size??3,newstype:this.props?.config?.newsType,exclude:this.exclude,imagesizes:this.props?.imgSizes[l]?.imageSizes};this.IS_MULTIPUBLICATION&&(u.publication=this.MULTIPUBLICATION_FETCHES??this.PUBLIC_PUBLICATION_ID);try{const f=await this.getNewsListAvanced(u);return{blockSass:a.data.data,content:f?f.data:void 0}}catch(f){return console.log(`[/news-list-advanced] Error: ${f?.message}`),{blockSass:a.data.data,content:void 0}}},seccion:async()=>{const d={query:`seccion:(${i})`,size:this.props?.imgSizes[l]?.size??3,newstype:this.props?.config?.newsType,exclude:this.exclude,imagesizes:this.props?.imgSizes[l]?.imageSizes};this.IS_MULTIPUBLICATION&&(d.publication=this.MULTIPUBLICATION_FETCHES??this.PUBLIC_PUBLICATION_ID);try{const u=await this.getNewsListAvanced(d);return{blockSass:a.data.data,content:u?u.data:void 0}}catch(u){return console.log(`[/news-list-advanced] Error: ${u?.message}`),{blockSass:a.data.data,content:void 0}}}};if(o in c){const d=c[o];return await d()}return{blockSass:a.data.data}}}class ad{issuuApi="https://api.issuu.com/v2";api=void 0;q="";constructor(t){this.q=t.q,this.api=re.create({baseURL:t.issuuApi?t.issuuApi:this.issuuApi,params:{state:t.state?t.state:"PUBLISHED",size:t.size?t.size:16,q:t.q},headers:{Authorization:`Bearer ${t.token}`}})}async getListIssuuPublications({page:t=1}){try{return await this.api?.get("/publications",{params:{q:this.q,page:t}})}catch(a){throw a}}async getListIssuuPublicationBySlug(t){try{return await this.api?.get(`/publications/${t}/embed`)}catch(a){throw a}}}const nd=async(e,t,a,n,r,o,i)=>{const l=new Ur({config:t,imgSizes:a,imageSizes:n,axiosApi:e,exclude:i}),c=[];for(let f=1;f<=r;f++)for(let h=1;h<=o;h++)c.push({func:l.getBlockSass,slot_id:f+"_"+h});const d=await Promise.allSettled([...c.map(f=>f.func({template:"Home_"+f.slot_id}))]);return(()=>{const f={};for(let h=0;h<d.length;h++){const g=Za(d[h]),m="Home_"+(Math.floor(h/o)+1)+"_"+(Math.floor(h%o)+1);g&&(f[m]={...g})}return f})()},rd=e=>{const t=Ke(e);return t&&t.data?t.data:t},od=async e=>{const t=await Promise.allSettled(Object.values(e).map(r=>{const o=r.promise??Promise.resolve(void 0);return o.catch(()=>{}),o})),a=Object.keys(e),n={};for(const r in e){const o=e[r];if(!o)continue;const i=o.custom_extractData??rd;n[r]=i(t[a.indexOf(r)])}return n},me=e=>({title:e.title,description:e.description}),Lr=(e="")=>e.replace(/-/g," ").replace(/^./,t=>t.toUpperCase()),Bt=e=>e.includes("/page/")?e.replace(/\/page\/\d+$/,""):e,pe=e=>{try{const t=de();if(!t)return e;const a=new URL(e),n=a.pathname;return n===t||n.startsWith(`${t}/`)?e:a.origin+t+e.slice(a.origin.length)}catch{return e}},Pe=(e,t,a,n)=>{const r=pe(t),o={...a?{title:a}:{},...n?{description:n}:{}};return{alternates:{...e.alternates,canonical:r},openGraph:{...e.openGraph,url:r,...o},twitter:{...e.twitter,url:r,...o}}},Pr={404:e=>{const{meta:t}=e;return me(t)},home:e=>{const{meta:t,config:a}=e;return{...t,...Pe(t,a.siteUrl,t.title)}},slug:e=>{const{meta:t,config:a,slug:n,pathname:r}=e,o=`${a.name} | ${Lr(n)}`;return{...t,title:o,...Pe(t,a.siteUrl+r,o)}},auth:e=>{const{meta:t,config:a,slug:n,pathname:r}=e,o=`${a.name} | ${Lr(n)}`;return{...t,title:o,...Pe(t,a.siteUrl+r,o)}},news:e=>{const{meta:t,config:a,currentNew:n,schemasImages:r}=e;if(!n)return me(t);const o=nn(t,n,a,r);return o?{...t,...o}:me(t)},seccion:async e=>{const{meta:t,config:a,pathname:n,slug:r,axiosApi:o,meta_info:i}=e,{CONFIG_sectionMetaInfo:l,PUBLIC_LNG:c}=U(),u=Bt(n).split("/"),f=[],h=gt(n),g=Number(a.newsListLimit)||0,m=c==="en";if(l&&i)return i.next&&f.push({rel:"next",url:Xe(a,u,h)}),h>1&&f.push({rel:"prev",url:Re(a,u,h)}),{...t,title:i.title,alternates:{...t.alternates,canonical:pe(a.siteUrl+n)},manifest:a.manifest,icons:{...a.icons,other:f},other:{"msapplication-TileImage":a.msapplicationTileImage??""},openGraph:{...t.openGraph,title:i.title,type:"website",url:pe(`${a.siteUrl}${n}`)},twitter:{...t.twitter,card:"summary_large_image",title:i.title,domain:new URL(a.siteUrl).hostname,url:pe(`${a.siteUrl}${n}`)}};const p=new Fe({config:a,axiosApi:o});try{let w,b;if(Ws("seccion")){const A=await dn({fetchFn:x=>p.getNewsListSection(x),baseParams:{section:r,newstype:a.newsType,exclude:"keywords,gallery,related,relatedexternal,external,customfields"},userPage:h,newsListLimit:g});w=A.data,b=A.hasNextPage}else{const A=await p.getNewsListSection({section:r,size:g,newstype:a.newsType,exclude:"keywords,gallery,related,relatedexternal,external,customfields",page:h});if(!A)return me(t);w=A.data.data,b=!(w.length<g)}const C=w[0];b&&f.push({rel:"next",url:Xe(a,u,h)}),h>1&&f.push({rel:"prev",url:Re(a,u,h)});const S=m?`Latest News from ${C.info.section?.name} | ${a.name}`:`Últimas Noticias de ${C.info.section?.name} | ${a.name}`,v=m?`All the latest news from ${C.info.section?.name} on ${a.name}`:`Todas las últimas noticias de ${C.info.section?.name} en ${a.name}`;return{...t,title:S,description:v,alternates:{...t.alternates,canonical:pe(a.siteUrl+n)},manifest:a.manifest,icons:{...a.icons,other:f},other:{"msapplication-TileImage":a.msapplicationTileImage??""},openGraph:{...t.openGraph,title:S,description:v,type:"website",url:pe(`${a.siteUrl}${n}`),locale:t.openGraph.locale},twitter:{...t.twitter,card:"summary_large_image",title:S,description:v,site:t.twitter.site,domain:new URL(a.siteUrl).hostname,url:pe(`${a.siteUrl}${n}`)}}}catch(w){return console.error(w),me(t)}},tema:async e=>{const{meta:t,config:a,pathname:n,slug:r,axiosApi:o}=e,i=new Fe({config:a,axiosApi:o}),c=Bt(n).split("/"),d=[],u=gt(n),f=Number(a.newsListLimit)||0,h=/([t][0-9]{4})\w+/.exec(r||""),g=h&&h?.length>0?h[0].replace("t",""):"",{PUBLIC_TAG_TYPE:m,PUBLIC_LNG:p}=U(),w=p==="en";try{const b=await i.getNewsListTags({tagid:g,size:f,tagtype:Number(m),newstype:a.newsType,exclude:"keywords,gallery,related,relatedexternal,external,customfields",page:u});if(!b)return me(t);const C=b.data.entity;if(!C)return me(t);b.data.data?.length<f||d.push({rel:"next",url:Xe(a,c,u)}),u>1&&d.push({rel:"prev",url:Re(a,c,u)});const S=w?`Latest news about ${C.name} | ${a.name}`:`Últimas noticias de ${C.name} | ${a.name}`,v=w?`The latest news about ${C.name} on ${a.name}`:`Las últimas noticias sobre ${C.name} en ${a.name}`;return{...t,title:S,description:v,alternates:{...t.alternates,canonical:pe(a.siteUrl+n)},manifest:a.manifest,icons:{...a.icons,other:d},other:{"msapplication-TileImage":a.msapplicationTileImage??""},openGraph:{...t.openGraph,title:S,description:v,type:"website",url:pe(`${a.siteUrl}${n}`),locale:t.openGraph.locale},twitter:{...t.twitter,card:"summary_large_image",title:S,description:v,site:t.twitter.site,domain:new URL(a.siteUrl).hostname,url:pe(`${a.siteUrl}${n}`)}}}catch(b){return console.error(b),me(t)}},"ultimas-noticias":async e=>{const{meta:t,config:a,pathname:n,texts:r,axiosApi:o}=e,i=new Fe({config:a,axiosApi:o}),c=Bt(n).split("/"),d=[],u=gt(n),f=Number(a.newsListLimit)||0,h=`${a.name} | ${r.lastNotesTitle}`,g={...t,title:h,...Pe(t,a.siteUrl+"/"+a.paths["ultimas-noticias"],h)};if(!o)return g;try{const m=await i.getNewsList({size:f,newstype:a.newsType,exclude:"keywords,gallery,related,relatedexternal,external,customfields",page:u});return m?(m.data.data.length<f||d.push({rel:"next",url:Xe(a,c,u)}),u>1&&d.push({rel:"prev",url:Re(a,c,u)}),{...t,title:h,...Pe(t,a.siteUrl+n,h),manifest:a.manifest,icons:{...a.icons,other:d},other:{"msapplication-TileImage":a.msapplicationTileImage??""}}):g}catch(m){return console.error(m),g}},video:async e=>{const{meta:t,config:a,internalPath:n,axiosApi:r}=e,o=new Fe({config:a,axiosApi:r});try{const i=await o.getVideos({imagesizes:o.contract.og.social,path:n});return i?.data?.data?.length?{...t,...wn(t,i.data.data[0],a)??{}}:me(t)}catch(i){return console.error("metadata (video) error:",i),me(t)}},videos:async e=>{const{meta:t,config:a,pathname:n,axiosApi:r}=e,o=new Fe({config:a,axiosApi:r}),l=Bt(n).split("/"),c=[],d=gt(n),u=Number(a.newsListLimit)||0;try{const f=await o.getvideoListAdvanced({size:u,query:"Category:(videohome OR destacadoseccion OR seccion)",page:Number(d)});if(!f)return me(t);f.data.data.length<u||c.push({rel:"next",url:Xe(a,l,d)}),d>1&&c.push({rel:"prev",url:Re(a,l,d)});const h="Videos | "+a.name;return{...t,title:h,...Pe(t,a.siteUrl+n,h),manifest:a.manifest,icons:{...a.icons,other:c},other:{"msapplication-TileImage":a.msapplicationTileImage??""}}}catch(f){return console.error(f),me(t)}},pages:async(e,t)=>{const{meta:a,config:n,pathname:r,slug:o,axiosApi:i}=e,l=new Fe({config:n,axiosApi:i});try{const c=await l.getPages({path:t||n.servicePrefix+`/pages/${o}`});if(!c)return me(a);const d=c.data.data[0]?.info.title??"",u=`${n.name} | ${d}`;return{...a,title:u,...Pe(a,n.siteUrl+r,u)}}catch(c){return console.error(c),me(a)}},contacto:e=>{const{meta:t,config:a,pathname:n}=e,r=U().PUBLIC_LNG==="en",o=`${a.name} | ${r?"Contact":"Contacto"}`;return{...t,title:o,...Pe(t,a.siteUrl+n,o)}},anuncia:e=>{const{meta:t,config:a,pathname:n}=e,r=U().PUBLIC_LNG==="en",o=`${a.name} | ${r?"Advertise":"Anuncia"}`;return{...t,title:o,...Pe(t,a.siteUrl+n,o)}},buscar:e=>{const{meta:t,config:a,pathname:n,query:r,texts:o}=e;if(r&&r.trim()!==""){const i=`${a.name} | ${`${o.resultsOfPrefix}'${r}'`}`;return{...t,title:i,alternates:{...t.alternates,canonical:pe(a.siteUrl+n+(r?"?query="+r:""))},openGraph:{...t.openGraph,title:i,type:"website",url:pe(`${a.siteUrl}${n}${r?"?query="+r:""}`)},twitter:{...t.twitter,card:"summary_large_image",title:i,domain:new URL(a.siteUrl).hostname,url:pe(`${a.siteUrl}${n}${r?"?query="+r:""}`)}}}else{const i=`${a.name} | ${o.searchKeyWord}`;return{...t,title:i,alternates:{...t.alternates,canonical:pe(a.siteUrl+n+(r?"?query="+r:""))},openGraph:{...t.openGraph,title:i,type:"website",url:pe(`${a.siteUrl}${n}`)},twitter:{...t.twitter,card:"summary_large_image",title:i,domain:new URL(a.siteUrl).hostname,url:pe(`${a.siteUrl}${n}`)}}}},autor:async e=>{const{meta:t,config:a,pathname:n,imgSizes:r,slug:o,axiosApi:i}=e,l=new Fe({config:a,axiosApi:i,imgSizes:r}),d=Bt(n).split("/"),u=[],f=gt(n),h=U().PUBLIC_LNG==="en",g=Number(a.newsListLimit)||0;try{const m=await l.getAutorInfo({user:o,exclude:"groups",imagesizes:r.sm}),p=await l.getNewsListAutor({size:g,user:o,page:f,newstype:a.newsType,exclude:"keywords,gallery,related,relatedexternal,external,customfields",imagesizes:r.md});if(!p)return me(t);p.data.data.length<g||u.push({rel:"next",url:Xe(a,d,f)}),f>1&&u.push({rel:"prev",url:Re(a,d,f)});const w=m?.data.data[0]?.info.fullname,b=h?`Latest News from ${w} | ${a.name}`:`Últimas Noticias de ${w} | ${a.name}`,C=h?`All the latest news from ${w} on ${a.name}`:`Todas las últimas noticias de ${w} en ${a.name}`;return{...t,title:b,description:C,...Pe(t,a.siteUrl+n,b,C),manifest:a.manifest,icons:{...a.icons,other:u},other:{"msapplication-TileImage":a.msapplicationTileImage??""}}}catch(m){return console.error(m),me(t)}}},id=e=>e?e.replace(/<[^>]*>/g,"").replace(/&nbsp;/gi," ").replace(/&amp;/gi,"&").replace(/&quot;/gi,'"').replace(/&#39;/gi,"'").replace(/\s+/g," ").trim():"",ld=({autor:e,listAutor:t,config:a})=>{const n=t?.[0]??null,{DATE_TIMEZONE:r="America/Mexico_City",PUBLIC_ASSETS_URL:o,PUBLIC_LNG:i}=U(),l=i==="en",c=r,d=n?.info?.date?.modified?Qe(n.info.date.modified,c):void 0,u=e.addtional?.USER_JOBSTART?Qe(e.addtional.USER_JOBSTART,c):void 0,f=o&&o!=="false"?o:"",h=e.addtional,g=h?.USER_USERFB||h?.USER_PAGE_FACEBOOK||h?.USER_FACEBOOK_FAN_PAGE,m=h?.USER_USERTWT||h?.USER_PAGE_TWITTER,p=h?.USER_USERIG||h?.USER_PAGE_INSTAGRAM,w=h?.USER_USERLIN||h?.USER_PAGE_LINKEDIN,b=h?.USER_PAGE_TIKTOK,C=h?.USER_PAGE_YOUTUBE,S=h?.USER_PAGE_PINTEREST,v=l?h?.USER_POSITION_EN||"":h?.USER_JOBTITLE||h?.USER_POSITION||"",A=l?h?.USER_DESCRIPCION_EN||h?.USER_MIBIO_EN||"":h?.USER_DESCRIPCION||h?.USER_MIBIO||"",x=e?.addtional?.USER_SHOWEMAIL===!0||h?.USER_MOSTRAR_MAIL?.toUpperCase()==="TRUE",k=de(),O={"@context":"https://schema.org","@type":"ProfilePage",mainEntity:{"@type":"Person",name:e.info.fullname??e.info.name,alternateName:e.info.nickname?e.info.nickname:e.info.name,identifier:e.info.id,description:id(A),image:e.info.image?e.info.image.sizes.map((Q,B)=>B===0&&e.info.image.sizes.length!==1?null:f+Q.url).filter(Boolean):[],sameAs:[g,p,w,m,b,C,S].filter(Boolean),jobTitle:v,url:a.siteUrl+k+(a.paths.autor!==""?`/${a.paths.autor}/`:"/")+e.info.name}};return u&&(O.dateCreated=u),d&&(O.dateModified=d),x&&(O.mainEntity.email=e.info.email),s.jsx("script",{type:"application/ld+json",children:JSON.stringify(Le(O))})},cd=`(function(){"use strict";const Me="__html-audit-manifest";function je(e){const t=e.getElementById(Me);if(!t||!t.textContent)return null;try{const n=JSON.parse(t.textContent);return!n||typeof n!="object"||!n.expects?null:n}catch{return null}}function g(e,t,n,o,r){return{id:e,label:t,status:n,detail:o,expected:r}}function w(e,t,n,o,r){return o==null?g(e,t,n?"ok":"info",r,void 0):o?n?g(e,t,"ok",r,!0):g(e,t,"missing",r||"Esperado por config pero AUSENTE",!0):n?g(e,t,"warn",r||"Presente pero no estaba configurado",!1):g(e,t,"info",r||"No configurado",!1)}const ce={ok:0,info:1,warn:2,missing:3};function J(e,t){if(!t||!t.length)return e;e.issues=t;let n=e.status;for(const o of t)ce[o.status]>ce[n]&&(n=o.status);return e.status=n,e}function N(e,t){return!!e.querySelector(t)}function q(e,t){return e.querySelectorAll(t).length}function F(e){const t=[];return e.querySelectorAll('script[type="application/ld+json"]').forEach(o=>{if(o.textContent)try{const r=JSON.parse(o.textContent);Array.isArray(r)?t.push(...r):t.push(r)}catch{}}),t}function U(e,t){return F(e).some(n=>{const o=n?.["@type"];return typeof o=="string"?o===t:Array.isArray(o)?o.includes(t):!1})}function pe(e,t){const n=[],o=r=>{if(!r||typeof r!="object")return;if(Array.isArray(r)){r.forEach(o);return}const s=r,i=s["@type"];(i===t||Array.isArray(i)&&i.includes(t))&&n.push(s),Array.isArray(s["@graph"])&&s["@graph"].forEach(o)};return F(e).forEach(o),n}const qe=600,Ue=6e3;function de(e,t){return e.length>t?e.slice(0,t)+\`
30
30
  … (recortado)\`:e}function E(e,t=qe){return e?de(e.outerHTML||"",t):""}function h(e,t){return t&&t.length&&(e.evidence=t),e}function O(e,t){return Array.from(e.querySelectorAll(t)).map(n=>({label:n.getAttribute("property")||n.getAttribute("name")||n.getAttribute("rel")||n.getAttribute("type")||n.tagName.toLowerCase(),snippet:E(n)}))}function K(e,t){if(!e||typeof e!="object")return;if(Array.isArray(e)){e.forEach(r=>K(r,t));return}const n=e,o=n["@type"];typeof o=="string"?t.add(o):Array.isArray(o)&&o.forEach(r=>typeof r=="string"&&t.add(r)),Array.isArray(n["@graph"])&&K(n["@graph"],t)}function ue(e){const t=e.querySelectorAll('script[type="application/ld+json"]'),n=[];return t.forEach((o,r)=>{const s=o.textContent||"",i=new Set;let l=s,a=!0;try{const u=JSON.parse(s);K(u,i),l=JSON.stringify(u,null,2)}catch{a=!1}const c=o.id,p=[...i],d=p.length?p.join(", "):c||\`bloque #\${r+1}\`;n.push({types:p,label:a?d:\`\${d} (JSON inválido)\`,snippet:de(l,Ue)})}),n}function _(e,t){return ue(e).filter(n=>n.types.includes(t)).map(n=>({label:n.label,snippet:n.snippet}))}function _e(e){return ue(e).map(t=>({label:t.label,snippet:t.snippet}))}const Ie=(e,t)=>{const n=t?.expects,o=[],r=e.querySelector("meta[charset]");o.push(h(w("htmlAttrs.charset","<meta charset>",!!r,n?n.charset:null,"Falta <meta charset>"),r?[{label:"<meta charset>",snippet:E(r)}]:[]));const s=e.querySelector('meta[name="viewport"]');o.push(h(w("htmlAttrs.viewport","<meta name=viewport>",!!s,n?n.viewport:null,"Falta <meta name=viewport>"),s?[{label:"<meta name=viewport>",snippet:E(s)}]:[]));const i=e.documentElement.getAttribute("lang");o.push(g("htmlAttrs.lang","html[lang]",i?"ok":"info",i?\`lang="\${i}"\`:"No emitido por el paquete (lo agrega el sitio)"));const l=e.documentElement.getAttribute("dir");o.push(g("htmlAttrs.dir","html[dir]",l?"ok":"info",l?\`dir="\${l}"\`:"No emitido por el paquete"));const a=new Map;e.querySelectorAll("[id]").forEach(p=>{const d=p.id;d&&a.set(d,(a.get(d)||0)+1)});const c=[...a.entries()].filter(([,p])=>p>1).map(([p])=>p);return o.push(g("htmlAttrs.duplicateIds","IDs duplicados",c.length?"warn":"ok",c.length?\`Duplicados: \${c.slice(0,10).join(", ")}\`:"Sin IDs duplicados")),{key:"htmlAttrs",title:"HTML attrs",findings:o}},Fe=(e,t)=>{const n=t?.expects,o=[],r=e.querySelector('script[type="speculationrules"]');o.push(h(w("structure.speculationRules","Speculation rules",!!r,n?n.speculationRules:null,"Speculation rules desactivadas"),r?[{label:"speculationrules",snippet:E(r,2e3)}]:[])),t?.speculationType&&o.push(g("structure.speculationType","Speculation type","info",\`Tipo esperado: \${t.speculationType}\`));const s=q(e,"main");o.push(g("structure.main","<main>",s===1?"ok":s===0?"info":"warn",s===1?"1 <main>":s===0?"Sin <main> (lo arma el sitio)":\`\${s} <main> (debería ser 1)\`)),o.push(g("structure.header","<header>",N(e,"header")?"ok":"info",N(e,"header")?"Presente":"Sin <header>")),o.push(g("structure.footer","<footer>",N(e,"footer")?"ok":"info",N(e,"footer")?"Presente":"Sin <footer>"));const i=q(e,"h1");return o.push(g("structure.h1","<h1>",i===1?"ok":"warn",i===0?"Sin <h1>":i===1?"1 <h1>":\`\${i} <h1> (revisar jerarquía)\`)),{key:"structure",title:"Estructura",findings:o}},Pe=["og:title","og:description","og:type","og:url","og:site_name","og:locale","og:image"],He=["twitter:card","twitter:title","twitter:description","twitter:image","twitter:site"];function M(e,t){return{status:e,message:t}}function X(e,t=60){const n=e.trim();return n.length>t?n.slice(0,t)+"…":n}function P(e,t={}){const n=(e||"").trim();if(!n)return[];const o=[],r=t.absolute!==!1,s=t.https!==!1,i=/^[a-z][a-z0-9+.-]*:/i.test(n),l=n.startsWith("//");r&&!i&&!l&&o.push(M("warn",\`URL relativa ("\${X(n)}"); se espera absoluta\`));let a=null;try{a=new URL(n,t.base)}catch{return o.push(M("warn",\`URL malformada: "\${X(n)}"\`)),o}return(a.protocol==="http:"||a.protocol==="https:")&&(s&&a.protocol==="http:"&&o.push(M("warn","Usa http (inseguro); se espera https")),a.pathname.includes("//")&&o.push(M("warn",\`Doble slash en el path: "\${X(a.pathname)}"\`)),t.sameHost&&a.host!==t.sameHost&&o.push(M("warn",\`Host distinto: "\${a.host}" (se espera "\${t.sameHost}")\`))),o}function fe(e,t){const n=(e||"").trim();if(!n)return null;try{return new URL(n,t).href}catch{return null}}const Be={NewsArticle:["@context","headline","datePublished","image","author","publisher"]};function De(e){return e==null?!0:typeof e=="string"?e.trim()==="":Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1}function We(e,t){return t.filter(n=>De(e[n])).map(n=>M("warn",\`Falta campo requerido: \${n}\`))}function Ge(e){const t=e.itemListElement;return Array.isArray(t)?t.length:t?1:0}function z(e){return e===void 0||e==="meta"?null:e}function L(e,t,n,o,r,s,i){const l=e.querySelector(o),a=w(t,n,!!l,r,l?he(l):s);return l&&(h(a,[{label:n,snippet:E(l)}]),i&&J(a,i(l))),a}function he(e){const n=(e.getAttribute("content")||e.getAttribute("href")||e.textContent||"").trim();return n.length>80?n.slice(0,80)+"…":n||"presente"}const Ve=(e,t)=>{const n=t?.expects.metadata,o=[],r=e.location?.href,s=e.location?.host,i=e.querySelector('link[rel="canonical"]')?.getAttribute("href")||"",l=e.querySelector("title"),a=!!l&&!!l.textContent?.trim();o.push(h(w("metadata.title","<title>",a,z(n?.title),a?he(l):"Falta <title> o está vacío"),l?[{label:"<title>",snippet:E(l)}]:[])),o.push(L(e,"metadata.description","meta description",'meta[name="description"]',z(n?.description),"Falta <meta name=description>"));const c=e.querySelectorAll('meta[name="keywords"], meta[name="news_keywords"]');o.push(h(g("metadata.keywords","keywords / news_keywords",c.length?"ok":"info",c.length?\`\${c.length} tag(s)\`:"Sin keywords (opcional)"),O(e,'meta[name="keywords"], meta[name="news_keywords"]'))),o.push(L(e,"metadata.robots","meta robots",'meta[name="robots"]',z(n?.robots),"Sin meta robots (esperado solo en news/video)")),o.push(L(e,"metadata.canonical","link canonical",'link[rel="canonical"]',z(n?.canonical),"Falta <link rel=canonical>",m=>P(m.getAttribute("href"),{base:r,https:!0,sameHost:s})));const p=t?.expects.hreflang,d='link[rel="alternate"][hreflang]',u=e.querySelectorAll(d),x=Array.from(u).map(m=>m.getAttribute("hreflang")||""),C=p?.expected?p.langs.filter(m=>!x.includes(m)):[];o.push(h(w("metadata.hreflang","link alternate hreflang",u.length>0&&C.length===0,p?p.expected:null,p?.expected?C.length?\`Faltan hreflang: \${C.join(", ")}\`:\`\${u.length} hreflang (\${x.join(", ")})\`:u.length?\`\${u.length} hreflang (\${x.join(", ")})\`:"Sin hreflang (no esperado en esta ruta)"),O(e,d))),o.push(L(e,"metadata.og.title","og:title",'meta[property="og:title"]',z(n?.openGraph),"Falta og:title")),o.push(L(e,"metadata.og.image","og:image",'meta[property="og:image"]',z(n?.openGraph),"Falta og:image (sin imagen de preview al compartir)",m=>P(m.getAttribute("content"),{base:r,https:!0})));for(const m of Pe){if(m==="og:title"||m==="og:image")continue;const T="metadata."+m.replace(":","."),ae=m==="og:url"?le=>Je(le.getAttribute("content"),i,r):void 0;o.push(L(e,T,m,\`meta[property="\${m}"]\`,null,\`Sin \${m} (opcional)\`,ae))}const $=q(e,'meta[property^="og:"]');o.push(h(g("metadata.og.count","Tags og:* totales",$>0?"ok":"info",\`\${$} tag(s) og:*\`),O(e,'meta[property^="og:"]'))),o.push(L(e,"metadata.twitter.card","twitter:card",'meta[name="twitter:card"]',z(n?.twitter),"Falta twitter:card")),o.push(L(e,"metadata.twitter.image","twitter:image",'meta[name="twitter:image"]',z(n?.twitter),"Falta twitter:image",m=>P(m.getAttribute("content"),{base:r,https:!0})));for(const m of He){if(m==="twitter:card"||m==="twitter:image")continue;const T="metadata."+m.replace(":",".");o.push(L(e,T,m,\`meta[name="\${m}"]\`,null,\`Sin \${m} (opcional)\`))}const R=q(e,'meta[name^="twitter:"]');o.push(h(g("metadata.twitter.count","Tags twitter:* totales",R>0?"ok":"info",\`\${R} tag(s) twitter:*\`),O(e,'meta[name^="twitter:"]')));const j=q(e,'meta[property^="article:"]');o.push(h(w("metadata.article","article:* (published/modified/section/author/tag)",j>0,z(n?.article),j>0?\`\${j} tag(s) article:*\`:"Sin article:* (esperado solo en news)"),O(e,'meta[property^="article:"]'))),o.push(L(e,"metadata.rss","link alternate RSS",'link[rel="alternate"][type="application/rss+xml"]',z(n?.rss),"Sin alternate RSS (esperado solo en news)")),o.push(L(e,"metadata.manifest","link manifest",'link[rel="manifest"]',null,"Sin <link rel=manifest> (opcional)"));const k='link[rel="icon"], link[rel="apple-touch-icon"], link[rel="shortcut icon"], link[rel="mask-icon"]',A=q(e,k);return o.push(h(g("metadata.icons","favicons / icons",A?"ok":"info",A?\`\${A} icono(s)\`:"Sin favicons declarados"),O(e,k))),{key:"metadata",title:"Metadata",findings:o}};function Je(e,t,n){const o=P(e,{base:n,https:!0}),r=fe(e,n),s=fe(t,n);return r&&s&&r!==s&&o.push(M("warn",\`og:url no coincide con canonical (\${s})\`)),o}const Ke=(e,t)=>{const n=t?.expects.schemas,o=[];o.push(h(w("schemas.NewsMediaOrganization","NewsMediaOrganization (OrgList)",N(e,"script#WebsiteOrgListSchema")||U(e,"NewsMediaOrganization"),n?n.NewsMediaOrganization:!0,"Falta NewsMediaOrganization (se emite siempre)"),_(e,"NewsMediaOrganization"))),o.push(h(w("schemas.WebSite","WebSite (WebsiteList)",N(e,"script#WebsiteListSchema")||U(e,"WebSite"),n?n.WebSite:null,"Falta WebSite"),_(e,"WebSite")));{const a=h(w("schemas.NewsArticle","NewsArticle",U(e,"NewsArticle"),n?n.NewsArticle:null,"NewsArticle esperado pero AUSENTE (puede ser API vacía)"),_(e,"NewsArticle"));if(a.status==="ok"){const c=pe(e,"NewsArticle");c.length&&J(a,We(c[0],Be.NewsArticle))}o.push(a)}o.push(h(w("schemas.Videos","VideoObject",U(e,"VideoObject"),n?n.Videos:null,"VideoObject esperado pero AUSENTE"),_(e,"VideoObject"))),o.push(h(w("schemas.Autor","ProfilePage (Autor)",U(e,"ProfilePage"),n?n.Autor:null,"ProfilePage esperado pero AUSENTE"),_(e,"ProfilePage")));{const a=h(w("schemas.ItemList","ItemList",N(e,"script#webSiteItemListSchema")||U(e,"ItemList"),n?n.ItemList:null,"ItemList esperado pero AUSENTE (PuedeVacío)"),_(e,"ItemList"));if(a.status==="ok"){const c=pe(e,"ItemList"),p=c.reduce((d,u)=>d+Ge(u),0);a.detail=\`\${c.length} ItemList; \${p} entr\${p===1?"y":"ies"}\`,c.length&&p===0&&J(a,[M("warn","ItemList sin itemListElement (lista vacía)")])}o.push(a)}o.push(h(w("schemas.SoftwareApplication","SoftwareApplication",N(e,'script[id^="SoftwareApplicationSchema-"]')||U(e,"SoftwareApplication"),n?n.SoftwareApplication:null,"SoftwareApplication esperado pero AUSENTE"),_(e,"SoftwareApplication")));const r=e.querySelectorAll('script[type="application/ld+json"]');let s=0;r.forEach(a=>{if(a.textContent)try{JSON.parse(a.textContent)}catch{s++}});const i=Xe(e),l=i?\`; @graph: \${i} nodo(s)\`:"";return o.push(h(g("schemas.parsed","JSON-LD parseables",s?"warn":"ok",\`\${r.length} bloque(s); \${s} inválido(s)\${l}. Tipos: \${Qe(e)}\`),_e(e))),{key:"schemas",title:"Schemas JSON-LD",findings:o}};function Xe(e){let t=0;const n=o=>{if(!o||typeof o!="object")return;if(Array.isArray(o)){o.forEach(n);return}const r=o;Array.isArray(r["@graph"])&&(t+=r["@graph"].length,r["@graph"].forEach(n))};return F(e).forEach(n),t}function Qe(e){const t=new Set;return F(e).forEach(n=>{const o=n?.["@type"];typeof o=="string"?t.add(o):Array.isArray(o)&&o.forEach(r=>typeof r=="string"&&t.add(r))}),t.size?[...t].join(", "):"—"}const Ye=(e,t)=>{const n=t?.expects,o=e.querySelector('link[rel="amphtml"]');return{key:"amp",title:"AMP",findings:[h(w("amp.amphtml","link rel=amphtml",!!o,n?n.amp:null,o?\`href=\${o.getAttribute("href")||""}\`:"No hay AMP"),o?[{label:"link rel=amphtml",snippet:E(o)}]:[])]}};function H(e){return e.slice(0,8).map(t=>({label:t.getAttribute("src")||"(sin src)",snippet:E(t,300)}))}function me(e,t){const n=(e.getAttribute("src")||"").trim();if(!n||n.startsWith("data:"))return null;try{return new URL(n,t)}catch{return null}}const Ze=(e,t)=>{const n=Array.from(e.querySelectorAll("img")),o=[],r=e.location?.href;let s=null;if(t?.expects.assetsUrl)try{s=new URL(t.expects.assetsUrl).host}catch{s=null}o.push(g("images.count","<img> totales","info",\`\${n.length} imagen(es)\`));const i=n.filter(p=>!p.hasAttribute("alt"));o.push(h(g("images.alt","img sin atributo alt",i.length?"warn":"ok",i.length?\`\${i.length} <img> sin alt: \${Q(i)}\`:"Todas las <img> declaran alt"),H(i)));const l=n.filter(p=>p.getAttribute("loading")==="lazy").length;o.push(g("images.lazy","img loading=lazy","info",\`\${l}/\${n.length} lazy\`));const a=n.filter(p=>{const d=p.getAttribute("src");return d!==null&&d.trim()===""});o.push(h(g("images.emptySrc","img con src vacío",a.length?"warn":"ok",a.length?\`\${a.length} <img> con src=""\`:"Sin src vacíos"),H(a)));const c=n.filter(p=>me(p,r)?.protocol==="http:");if(o.push(h(g("images.insecure","img con src http (inseguro)",c.length?"warn":"ok",c.length?\`\${c.length} <img> en http: \${Q(c)}\`:"Sin imágenes http (mixed content)"),H(c))),s){const p=n.filter(d=>{const u=me(d,r);return!!u&&(u.protocol==="http:"||u.protocol==="https:")&&u.host!==s});o.push(h(g("images.offAssets",\`img fuera del dominio de assets (\${s})\`,"info",p.length?\`\${p.length} <img> en otro host: \${Q(p)}\`:"Todas las <img> absolutas vienen del dominio de assets"),H(p)))}return{key:"images",title:"Imágenes",findings:o}};function Q(e){return e.slice(0,5).map(t=>t.getAttribute("src")||"(sin src)").join(", ")}function Y(e,t){for(const n of t){const o=e.querySelector(n);if(o)return o}return null}function B(e,t){return e?[{label:t,snippet:E(e)}]:[]}const et=[Ie,Fe,Ve,Ke,Ye,(e,t)=>{const n=t?.expects,o=[],r=n?.assetsUrl;let s;r?s=Array.from(e.querySelectorAll('link[rel="preconnect"]')).some(c=>(c.getAttribute("href")||"").indexOf(r)===0):s=!!e.querySelector('link[rel="preconnect"]'),o.push(h(w("css.preconnectAssets","preconnect assets",s,n?n.preconnectAssets:null,"Falta <link rel=preconnect> a PUBLIC_ASSETS_URL"),O(e,'link[rel="preconnect"], link[rel="dns-prefetch"]'))),o.push(h(w("css.preloadImages","preload de imágenes",!!e.querySelector('link[rel="preload"][as="image"]'),n?n.preloadImages:null,"No hay preload de imágenes (preloadImages)"),O(e,'link[rel="preload"][as="image"]')));const i=!!e.querySelector('link[rel="preload"][as="font"]'),l=!!e.querySelector('link[href*="fonts.googleapis"], link[href*="fonts.gstatic"]'),a=n?.font;return a==="selfHosted"?o.push(w("css.font","Font self-hosted",i,!0,"Font self-hosted esperada pero sin <link as=font>")):a==="google"?o.push(w("css.font","Google Fonts",l,!0,"Google Fonts esperada pero ausente")):o.push(g("css.font","Fonts","info",i?"Font self-hosted presente":l?"Google Fonts presente":"Sin fuente configurada por el paquete")),o.push(h(g("css.stylesheets","<link rel=stylesheet> totales","info",\`\${q(e,'link[rel="stylesheet"]')} stylesheet(s) (los agrega el sitio)\`),O(e,'link[rel="stylesheet"]'))),{key:"cssImports",title:"CSS / preconnect / fonts",findings:o}},Ze,(e,t)=>{const n=t?.expects.analytics,o=[],r=Y(e,["script#googleanalytics",'script[src*="gtag/js"]']);o.push(h(w("content.ga4","GA4",!!r,n?n.ga4:null,"GA4 no configurado"),B(r,"GA4")));const s=Y(e,["script#GTM",'script[src*="googletagmanager.com/gtm.js"]','iframe[src*="googletagmanager.com/ns.html"]']);o.push(h(w("content.gtm","Google Tag Manager",!!s,n?n.gtm:null,"GTM no configurado"),B(s,"GTM")));const i=Y(e,["script#comscore",'script[src*="scorecardresearch"]']);o.push(h(w("content.comscore","Comscore",!!i,n?n.comscore:null,"Comscore no configurado"),B(i,"Comscore")));const l=e.querySelector('script[src*="marfeel"]')||Array.from(e.querySelectorAll("script")).find(u=>(u.textContent||"").includes("marfeel"))||null;o.push(h(w("content.marfeel","Marfeel",!!l,n?n.marfeel:null,"Marfeel no configurado"),B(l,"Marfeel")));const c=Array.from(e.querySelectorAll("h1,h2,h3,h4,h5,h6")).filter(u=>!(u.textContent||"").trim());o.push(h(g("content.emptyHeadings","Headings vacíos",c.length?"warn":"ok",c.length?\`\${c.length} heading(s) sin texto\`:"Sin headings vacíos"),c.slice(0,8).map(u=>({label:u.tagName.toLowerCase(),snippet:E(u,200)}))));const p=Array.from(e.querySelectorAll("a")),d=p.filter(u=>{const x=u.getAttribute("href");return x===null||x.trim()===""||x.trim()==="#"});return o.push(h(g("content.links","Links sin destino",d.length?"warn":"ok",\`\${p.length} link(s); \${d.length} sin href válido\`),d.slice(0,8).map(u=>({label:(u.textContent||"").trim().slice(0,40)||"(sin texto)",snippet:E(u,200)})))),{key:"content",title:"Contenido",findings:o}}];function ge(e,t){const n=et.map(r=>r(e,t)),o={ok:0,missing:0,warn:0,info:0};for(const r of n)for(const s of r.findings)o[s.status]++;return{route:t?t.route:null,hasManifest:!!t,totals:o,categories:n,blindSpots:t?t.blindSpots||[]:[]}}const tt=\`
31
31
  /* all: initial corta toda herencia del host; los resets explícitos de abajo pinean la
32
32
  base tipográfica para no depender del font-size/zoom de la página contenedora. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sass-template-common",
3
- "version": "0.10.11",
3
+ "version": "0.10.12",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"