sass-template-common 0.4.15 → 0.4.16

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