sass-template-common 0.2.54 → 0.2.55

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.
@@ -157,15 +157,15 @@ function jr() {
157
157
  (function(n, r) {
158
158
  e.exports = r();
159
159
  })(Ks, (function() {
160
- var n = 1e3, r = 6e4, s = 36e5, o = "millisecond", i = "second", c = "minute", d = "hour", l = "day", u = "week", h = "month", m = "quarter", p = "year", g = "date", A = "Invalid Date", w = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, _ = /\[([^\]]+)]|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, N = { 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(M) {
160
+ var n = 1e3, r = 6e4, s = 36e5, o = "millisecond", i = "second", c = "minute", d = "hour", l = "day", u = "week", h = "month", m = "quarter", p = "year", g = "date", A = "Invalid Date", w = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, v = /\[([^\]]+)]|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, N = { 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(M) {
161
161
  var U = ["th", "st", "nd", "rd"], T = M % 100;
162
162
  return "[" + M + (U[(T - 20) % 10] || U[T] || U[0]) + "]";
163
- } }, b = function(M, U, T) {
163
+ } }, _ = function(M, U, T) {
164
164
  var D = String(M);
165
165
  return !D || D.length >= U ? M : "" + Array(U + 1 - D.length).join(T) + M;
166
- }, E = { s: b, z: function(M) {
166
+ }, x = { s: _, z: function(M) {
167
167
  var U = -M.utcOffset(), T = Math.abs(U), D = Math.floor(T / 60), I = T % 60;
168
- return (U <= 0 ? "+" : "-") + b(D, 2, "0") + ":" + b(I, 2, "0");
168
+ return (U <= 0 ? "+" : "-") + _(D, 2, "0") + ":" + _(I, 2, "0");
169
169
  }, m: function M(U, T) {
170
170
  if (U.date() < T.date()) return -M(T, U);
171
171
  var D = 12 * (T.year() - U.year()) + (T.month() - U.month()), I = U.clone().add(D, h), z = T - I < 0, y = U.clone().add(D + (z ? -1 : 1), h);
@@ -176,34 +176,34 @@ function jr() {
176
176
  return { M: h, y: p, w: u, d: l, D: g, h: d, m: c, s: i, ms: o, Q: m }[M] || String(M || "").toLowerCase().replace(/s$/, "");
177
177
  }, u: function(M) {
178
178
  return M === void 0;
179
- } }, v = "en", x = {};
180
- x[v] = N;
179
+ } }, b = "en", E = {};
180
+ E[b] = N;
181
181
  var O = "$isDayjsObject", Q = function(M) {
182
- return M instanceof te || !(!M || !M[O]);
183
- }, ee = function M(U, T, D) {
182
+ return M instanceof ee || !(!M || !M[O]);
183
+ }, te = function M(U, T, D) {
184
184
  var I;
185
- if (!U) return v;
185
+ if (!U) return b;
186
186
  if (typeof U == "string") {
187
187
  var z = U.toLowerCase();
188
- x[z] && (I = z), T && (x[z] = T, I = z);
188
+ E[z] && (I = z), T && (E[z] = T, I = z);
189
189
  var y = U.split("-");
190
190
  if (!I && y.length > 1) return M(y[0]);
191
191
  } else {
192
192
  var S = U.name;
193
- x[S] = U, I = S;
193
+ E[S] = U, I = S;
194
194
  }
195
- return !D && I && (v = I), I || !D && v;
195
+ return !D && I && (b = I), I || !D && b;
196
196
  }, G = function(M, U) {
197
197
  if (Q(M)) return M.clone();
198
198
  var T = typeof U == "object" ? U : {};
199
- return T.date = M, T.args = arguments, new te(T);
200
- }, P = E;
201
- P.l = ee, P.i = Q, P.w = function(M, U) {
199
+ return T.date = M, T.args = arguments, new ee(T);
200
+ }, P = x;
201
+ P.l = te, P.i = Q, P.w = function(M, U) {
202
202
  return G(M, { locale: U.$L, utc: U.$u, x: U.$x, $offset: U.$offset });
203
203
  };
204
- var te = (function() {
204
+ var ee = (function() {
205
205
  function M(T) {
206
- this.$L = ee(T.locale, null, !0), this.parse(T), this.$x = this.$x || T.x || {}, this[O] = !0;
206
+ this.$L = te(T.locale, null, !0), this.parse(T), this.$x = this.$x || T.x || {}, this[O] = !0;
207
207
  }
208
208
  var U = M.prototype;
209
209
  return U.parse = function(T) {
@@ -307,7 +307,7 @@ function jr() {
307
307
  var we = $ < 12 ? "AM" : "PM";
308
308
  return R ? we.toLowerCase() : we;
309
309
  };
310
- return z.replace(_, (function($, ie) {
310
+ return z.replace(v, (function($, ie) {
311
311
  return ie || (function(R) {
312
312
  switch (R) {
313
313
  case "YY":
@@ -400,10 +400,10 @@ function jr() {
400
400
  }, U.daysInMonth = function() {
401
401
  return this.endOf(h).$D;
402
402
  }, U.$locale = function() {
403
- return x[this.$L];
403
+ return E[this.$L];
404
404
  }, U.locale = function(T, D) {
405
405
  if (!T) return this.$L;
406
- var I = this.clone(), z = ee(T, D, !0);
406
+ var I = this.clone(), z = te(T, D, !0);
407
407
  return z && (I.$L = z), I;
408
408
  }, U.clone = function() {
409
409
  return P.w(this.$d, this);
@@ -416,16 +416,16 @@ function jr() {
416
416
  }, U.toString = function() {
417
417
  return this.$d.toUTCString();
418
418
  }, M;
419
- })(), ce = te.prototype;
419
+ })(), ce = ee.prototype;
420
420
  return G.prototype = ce, [["$ms", o], ["$s", i], ["$m", c], ["$H", d], ["$W", l], ["$M", h], ["$y", p], ["$D", g]].forEach((function(M) {
421
421
  ce[M[1]] = function(U) {
422
422
  return this.$g(U, M[0], M[1]);
423
423
  };
424
424
  })), G.extend = function(M, U) {
425
- return M.$i || (M(U, te, G), M.$i = !0), G;
426
- }, G.locale = ee, G.isDayjs = Q, G.unix = function(M) {
425
+ return M.$i || (M(U, ee, G), M.$i = !0), G;
426
+ }, G.locale = te, G.isDayjs = Q, G.unix = function(M) {
427
427
  return G(1e3 * M);
428
- }, G.en = x[v], G.Ls = x, G.p = {}, G;
428
+ }, G.en = E[b], G.Ls = E, G.p = {}, G;
429
429
  }));
430
430
  })(on)), on.exports;
431
431
  }
@@ -444,19 +444,19 @@ function Xs() {
444
444
  return o.fromToBase(l, u, h, m);
445
445
  }
446
446
  s.en.relativeTime = i, o.fromToBase = function(l, u, h, m, p) {
447
- for (var g, A, w, _ = h.$locale().relativeTime || i, N = n.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" }], b = N.length, E = 0; E < b; E += 1) {
448
- var v = N[E];
449
- v.d && (g = m ? s(l).diff(h, v.d, !0) : h.diff(l, v.d, !0));
450
- var x = (n.rounding || Math.round)(Math.abs(g));
451
- if (w = g > 0, x <= v.r || !v.r) {
452
- x <= 1 && E > 0 && (v = N[E - 1]);
453
- var O = _[v.l];
454
- p && (x = p("" + x)), A = typeof O == "string" ? O.replace("%d", x) : O(x, u, v.l, w);
447
+ for (var g, A, w, v = h.$locale().relativeTime || i, N = n.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], _ = N.length, x = 0; x < _; x += 1) {
448
+ var b = N[x];
449
+ b.d && (g = m ? s(l).diff(h, b.d, !0) : h.diff(l, b.d, !0));
450
+ var E = (n.rounding || Math.round)(Math.abs(g));
451
+ if (w = g > 0, E <= b.r || !b.r) {
452
+ E <= 1 && x > 0 && (b = N[x - 1]);
453
+ var O = v[b.l];
454
+ p && (E = p("" + E)), A = typeof O == "string" ? O.replace("%d", E) : O(E, u, b.l, w);
455
455
  break;
456
456
  }
457
457
  }
458
458
  if (u) return A;
459
- var Q = w ? _.future : _.past;
459
+ var Q = w ? v.future : v.past;
460
460
  return typeof Q == "function" ? Q(A) : Q.replace("%s", A);
461
461
  }, o.to = function(l, u) {
462
462
  return c(l, u, this, !0);
@@ -525,21 +525,21 @@ function so() {
525
525
  };
526
526
  var h = d.utcOffset;
527
527
  d.utcOffset = function(A, w) {
528
- var _ = this.$utils().u;
529
- if (_(A)) return this.$u ? 0 : _(this.$offset) ? h.call(this) : this.$offset;
530
- if (typeof A == "string" && (A = (function(v) {
531
- v === void 0 && (v = "");
532
- var x = v.match(r);
533
- if (!x) return null;
534
- var O = ("" + x[0]).match(s) || ["-", 0, 0], Q = O[0], ee = 60 * +O[1] + +O[2];
535
- return ee === 0 ? 0 : Q === "+" ? ee : -ee;
528
+ var v = this.$utils().u;
529
+ if (v(A)) return this.$u ? 0 : v(this.$offset) ? h.call(this) : this.$offset;
530
+ if (typeof A == "string" && (A = (function(b) {
531
+ b === void 0 && (b = "");
532
+ var E = b.match(r);
533
+ if (!E) return null;
534
+ var O = ("" + E[0]).match(s) || ["-", 0, 0], Q = O[0], te = 60 * +O[1] + +O[2];
535
+ return te === 0 ? 0 : Q === "+" ? te : -te;
536
536
  })(A), A === null)) return this;
537
537
  var N = Math.abs(A) <= 16 ? 60 * A : A;
538
538
  if (N === 0) return this.utc(w);
539
- var b = this.clone();
540
- if (w) return b.$offset = N, b.$u = !1, b;
541
- var E = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
542
- return (b = this.local().add(N + E, n)).$offset = N, b.$x.$localOffset = E, b;
539
+ var _ = this.clone();
540
+ if (w) return _.$offset = N, _.$u = !1, _;
541
+ var x = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
542
+ return (_ = this.local().add(N + x, n)).$offset = N, _.$x.$localOffset = x, _;
543
543
  };
544
544
  var m = d.format;
545
545
  d.format = function(A) {
@@ -560,10 +560,10 @@ function so() {
560
560
  return A === "s" && this.$offset ? c(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : p.call(this);
561
561
  };
562
562
  var g = d.diff;
563
- d.diff = function(A, w, _) {
564
- if (A && this.$u === A.$u) return g.call(this, A, w, _);
565
- var N = this.local(), b = c(A).local();
566
- return g.call(N, b, w, _);
563
+ d.diff = function(A, w, v) {
564
+ if (A && this.$u === A.$u) return g.call(this, A, w, v);
565
+ var N = this.local(), _ = c(A).local();
566
+ return g.call(N, _, w, v);
567
567
  };
568
568
  };
569
569
  }));
@@ -581,27 +581,27 @@ function lo() {
581
581
  return function(s, o, i) {
582
582
  var c, d = function(m, p, g) {
583
583
  g === void 0 && (g = {});
584
- var A = new Date(m), w = (function(_, N) {
584
+ var A = new Date(m), w = (function(v, N) {
585
585
  N === void 0 && (N = {});
586
- var b = N.timeZoneName || "short", E = _ + "|" + b, v = r[E];
587
- return v || (v = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: _, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: b }), r[E] = v), v;
586
+ var _ = N.timeZoneName || "short", x = v + "|" + _, b = r[x];
587
+ return b || (b = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: v, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: _ }), r[x] = b), b;
588
588
  })(p, g);
589
589
  return w.formatToParts(A);
590
590
  }, l = function(m, p) {
591
591
  for (var g = d(m, p), A = [], w = 0; w < g.length; w += 1) {
592
- var _ = g[w], N = _.type, b = _.value, E = n[N];
593
- E >= 0 && (A[E] = parseInt(b, 10));
592
+ var v = g[w], N = v.type, _ = v.value, x = n[N];
593
+ x >= 0 && (A[x] = parseInt(_, 10));
594
594
  }
595
- var v = A[3], x = v === 24 ? 0 : v, O = A[0] + "-" + A[1] + "-" + A[2] + " " + x + ":" + A[4] + ":" + A[5] + ":000", Q = +m;
595
+ var b = A[3], E = b === 24 ? 0 : b, O = A[0] + "-" + A[1] + "-" + A[2] + " " + E + ":" + A[4] + ":" + A[5] + ":000", Q = +m;
596
596
  return (i.utc(O).valueOf() - (Q -= Q % 1e3)) / 6e4;
597
597
  }, u = o.prototype;
598
598
  u.tz = function(m, p) {
599
599
  m === void 0 && (m = c);
600
- var g, A = this.utcOffset(), w = this.toDate(), _ = w.toLocaleString("en-US", { timeZone: m }), N = Math.round((w - new Date(_)) / 1e3 / 60), b = 15 * -Math.round(w.getTimezoneOffset() / 15) - N;
601
- if (!Number(b)) g = this.utcOffset(0, p);
602
- else if (g = i(_, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(b, !0), p) {
603
- var E = g.utcOffset();
604
- g = g.add(A - E, "minute");
600
+ var g, A = this.utcOffset(), w = this.toDate(), v = w.toLocaleString("en-US", { timeZone: m }), N = Math.round((w - new Date(v)) / 1e3 / 60), _ = 15 * -Math.round(w.getTimezoneOffset() / 15) - N;
601
+ if (!Number(_)) g = this.utcOffset(0, p);
602
+ else if (g = i(v, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(_, !0), p) {
603
+ var x = g.utcOffset();
604
+ g = g.add(A - x, "minute");
605
605
  }
606
606
  return g.$x.$timezone = m, g;
607
607
  }, u.offsetName = function(m) {
@@ -616,15 +616,15 @@ function lo() {
616
616
  var g = i(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
617
617
  return h.call(g, m, p).tz(this.$x.$timezone, !0);
618
618
  }, i.tz = function(m, p, g) {
619
- var A = g && p, w = g || p || c, _ = l(+i(), w);
619
+ var A = g && p, w = g || p || c, v = l(+i(), w);
620
620
  if (typeof m != "string") return i(m).tz(w);
621
- var N = (function(x, O, Q) {
622
- var ee = x - 60 * O * 1e3, G = l(ee, Q);
623
- if (O === G) return [ee, O];
624
- var P = l(ee -= 60 * (G - O) * 1e3, Q);
625
- return G === P ? [ee, G] : [x - 60 * Math.min(G, P) * 1e3, Math.max(G, P)];
626
- })(i.utc(m, A).valueOf(), _, w), b = N[0], E = N[1], v = i(b).utcOffset(E);
627
- return v.$x.$timezone = w, v;
621
+ var N = (function(E, O, Q) {
622
+ var te = E - 60 * O * 1e3, G = l(te, Q);
623
+ if (O === G) return [te, O];
624
+ var P = l(te -= 60 * (G - O) * 1e3, Q);
625
+ return G === P ? [te, G] : [E - 60 * Math.min(G, P) * 1e3, Math.max(G, P)];
626
+ })(i.utc(m, A).valueOf(), v, w), _ = N[0], x = N[1], b = i(_).utcOffset(x);
627
+ return b.$x.$timezone = w, b;
628
628
  }, i.tz.guess = function() {
629
629
  return Intl.DateTimeFormat().resolvedOptions().timeZone;
630
630
  }, i.tz.setDefault = function(m) {
@@ -661,7 +661,17 @@ function fo(e) {
661
661
  return e && e.status === "fulfilled" ? e.value : null;
662
662
  }
663
663
  const Dt = (e, t, n) => ({
664
- authors: [],
664
+ authors: e.main.author ? [{
665
+ firstname: "",
666
+ lastname: "",
667
+ fullname: e.main.author ? e.main.author.toString() : "Redacción",
668
+ image: {
669
+ sizes: [],
670
+ description: ""
671
+ },
672
+ name: "",
673
+ internaluser: !1
674
+ }] : [],
665
675
  social: {
666
676
  description: "",
667
677
  images: { facebook: "", twitter: "" },
@@ -677,7 +687,8 @@ const Dt = (e, t, n) => ({
677
687
  },
678
688
  config: {
679
689
  showtime: t,
680
- showsubtitle: n
690
+ showsubtitle: n,
691
+ showauthor: !!e.main.author
681
692
  },
682
693
  main: {
683
694
  title: {
@@ -1835,16 +1846,16 @@ function xn(e, t, n) {
1835
1846
  return C.isArrayBuffer(g) || C.isTypedArray(g) ? d && typeof Blob == "function" ? new Blob([g]) : Buffer.from(g) : g;
1836
1847
  }
1837
1848
  function u(g, A, w) {
1838
- let _ = g;
1849
+ let v = g;
1839
1850
  if (g && !w && typeof g == "object") {
1840
1851
  if (C.endsWith(A, "{}"))
1841
1852
  A = r ? A : A.slice(0, -2), g = JSON.stringify(g);
1842
- else if (C.isArray(g) && Ni(g) || (C.isFileList(g) || C.endsWith(A, "[]")) && (_ = C.toArray(g)))
1843
- return A = ns(A), _.forEach(function(b, E) {
1844
- !(C.isUndefined(b) || b === null) && t.append(
1853
+ else if (C.isArray(g) && Ni(g) || (C.isFileList(g) || C.endsWith(A, "[]")) && (v = C.toArray(g)))
1854
+ return A = ns(A), v.forEach(function(_, x) {
1855
+ !(C.isUndefined(_) || _ === null) && t.append(
1845
1856
  // eslint-disable-next-line no-nested-ternary
1846
- i === !0 ? Qa([A], E, o) : i === null ? A : A + "[]",
1847
- l(b)
1857
+ i === !0 ? Qa([A], x, o) : i === null ? A : A + "[]",
1858
+ l(_)
1848
1859
  );
1849
1860
  }), !1;
1850
1861
  }
@@ -1859,14 +1870,14 @@ function xn(e, t, n) {
1859
1870
  if (!C.isUndefined(g)) {
1860
1871
  if (h.indexOf(g) !== -1)
1861
1872
  throw Error("Circular reference detected in " + A.join("."));
1862
- h.push(g), C.forEach(g, function(_, N) {
1863
- (!(C.isUndefined(_) || _ === null) && s.call(
1873
+ h.push(g), C.forEach(g, function(v, N) {
1874
+ (!(C.isUndefined(v) || v === null) && s.call(
1864
1875
  t,
1865
- _,
1876
+ v,
1866
1877
  C.isString(N) ? N.trim() : N,
1867
1878
  A,
1868
1879
  m
1869
- )) === !0 && p(_, A ? A.concat(N) : [N]);
1880
+ )) === !0 && p(v, A ? A.concat(N) : [N]);
1870
1881
  }), h.pop();
1871
1882
  }
1872
1883
  }
@@ -2537,16 +2548,16 @@ const ds = (e) => {
2537
2548
  }
2538
2549
  let w = new XMLHttpRequest();
2539
2550
  w.open(s.method.toUpperCase(), s.url, !0), w.timeout = s.timeout;
2540
- function _() {
2551
+ function v() {
2541
2552
  if (!w)
2542
2553
  return;
2543
- const b = Ne.from(
2554
+ const _ = Ne.from(
2544
2555
  "getAllResponseHeaders" in w && w.getAllResponseHeaders()
2545
- ), v = {
2556
+ ), b = {
2546
2557
  data: !c || c === "text" || c === "json" ? w.responseText : w.response,
2547
2558
  status: w.status,
2548
2559
  statusText: w.statusText,
2549
- headers: b,
2560
+ headers: _,
2550
2561
  config: e,
2551
2562
  request: w
2552
2563
  };
@@ -2554,28 +2565,28 @@ const ds = (e) => {
2554
2565
  n(O), A();
2555
2566
  }, function(O) {
2556
2567
  r(O), A();
2557
- }, v), w = null;
2568
+ }, b), w = null;
2558
2569
  }
2559
- "onloadend" in w ? w.onloadend = _ : w.onreadystatechange = function() {
2560
- !w || w.readyState !== 4 || w.status === 0 && !(w.responseURL && w.responseURL.indexOf("file:") === 0) || setTimeout(_);
2570
+ "onloadend" in w ? w.onloadend = v : w.onreadystatechange = function() {
2571
+ !w || w.readyState !== 4 || w.status === 0 && !(w.responseURL && w.responseURL.indexOf("file:") === 0) || setTimeout(v);
2561
2572
  }, w.onabort = function() {
2562
2573
  w && (r(new W("Request aborted", W.ECONNABORTED, e, w)), w = null);
2563
- }, w.onerror = function(E) {
2564
- const v = E && E.message ? E.message : "Network Error", x = new W(v, W.ERR_NETWORK, e, w);
2565
- x.event = E || null, r(x), w = null;
2574
+ }, w.onerror = function(x) {
2575
+ const b = x && x.message ? x.message : "Network Error", E = new W(b, W.ERR_NETWORK, e, w);
2576
+ E.event = x || null, r(E), w = null;
2566
2577
  }, w.ontimeout = function() {
2567
- let E = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
2568
- const v = s.transitional || ss;
2569
- s.timeoutErrorMessage && (E = s.timeoutErrorMessage), r(new W(
2570
- E,
2571
- v.clarifyTimeoutError ? W.ETIMEDOUT : W.ECONNABORTED,
2578
+ let x = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
2579
+ const b = s.transitional || ss;
2580
+ s.timeoutErrorMessage && (x = s.timeoutErrorMessage), r(new W(
2581
+ x,
2582
+ b.clarifyTimeoutError ? W.ETIMEDOUT : W.ECONNABORTED,
2572
2583
  e,
2573
2584
  w
2574
2585
  )), w = null;
2575
- }, o === void 0 && i.setContentType(null), "setRequestHeader" in w && C.forEach(i.toJSON(), function(E, v) {
2576
- w.setRequestHeader(v, E);
2577
- }), C.isUndefined(s.withCredentials) || (w.withCredentials = !!s.withCredentials), c && c !== "json" && (w.responseType = s.responseType), l && ([m, g] = An(l, !0), w.addEventListener("progress", m)), d && w.upload && ([h, p] = An(d), w.upload.addEventListener("progress", h), w.upload.addEventListener("loadend", p)), (s.cancelToken || s.signal) && (u = (b) => {
2578
- w && (r(!b || b.type ? new St(null, e, w) : b), w.abort(), w = null);
2586
+ }, o === void 0 && i.setContentType(null), "setRequestHeader" in w && C.forEach(i.toJSON(), function(x, b) {
2587
+ w.setRequestHeader(b, x);
2588
+ }), C.isUndefined(s.withCredentials) || (w.withCredentials = !!s.withCredentials), c && c !== "json" && (w.responseType = s.responseType), l && ([m, g] = An(l, !0), w.addEventListener("progress", m)), d && w.upload && ([h, p] = An(d), w.upload.addEventListener("progress", h), w.upload.addEventListener("loadend", p)), (s.cancelToken || s.signal) && (u = (_) => {
2589
+ w && (r(!_ || _.type ? new St(null, e, w) : _), w.abort(), w = null);
2579
2590
  }, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
2580
2591
  const N = Vi(s.url);
2581
2592
  if (N && pe.protocols.indexOf(N) === -1) {
@@ -2698,9 +2709,9 @@ const ds = (e) => {
2698
2709
  };
2699
2710
  s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((g) => {
2700
2711
  !h[g] && (h[g] = (A, w) => {
2701
- let _ = A && A[g];
2702
- if (_)
2703
- return _.call(A);
2712
+ let v = A && A[g];
2713
+ if (v)
2714
+ return v.call(A);
2704
2715
  throw new W(`Response type '${g}' is not supported`, W.ERR_NOT_SUPPORT, w);
2705
2716
  });
2706
2717
  });
@@ -2726,59 +2737,59 @@ const ds = (e) => {
2726
2737
  let {
2727
2738
  url: A,
2728
2739
  method: w,
2729
- data: _,
2740
+ data: v,
2730
2741
  signal: N,
2731
- cancelToken: b,
2732
- timeout: E,
2733
- onDownloadProgress: v,
2734
- onUploadProgress: x,
2742
+ cancelToken: _,
2743
+ timeout: x,
2744
+ onDownloadProgress: b,
2745
+ onUploadProgress: E,
2735
2746
  responseType: O,
2736
2747
  headers: Q,
2737
- withCredentials: ee = "same-origin",
2748
+ withCredentials: te = "same-origin",
2738
2749
  fetchOptions: G
2739
2750
  } = ds(g), P = t || fetch;
2740
2751
  O = O ? (O + "").toLowerCase() : "text";
2741
- let te = ec([N, b && b.toAbortSignal()], E), ce = null;
2742
- const M = te && te.unsubscribe && (() => {
2743
- te.unsubscribe();
2752
+ let ee = ec([N, _ && _.toAbortSignal()], x), ce = null;
2753
+ const M = ee && ee.unsubscribe && (() => {
2754
+ ee.unsubscribe();
2744
2755
  });
2745
2756
  let U;
2746
2757
  try {
2747
- if (x && l && w !== "get" && w !== "head" && (U = await p(Q, _)) !== 0) {
2758
+ if (E && l && w !== "get" && w !== "head" && (U = await p(Q, v)) !== 0) {
2748
2759
  let S = new n(A, {
2749
2760
  method: "POST",
2750
- body: _,
2761
+ body: v,
2751
2762
  duplex: "half"
2752
2763
  }), q;
2753
- if (C.isFormData(_) && (q = S.headers.get("content-type")) && Q.setContentType(q), S.body) {
2764
+ if (C.isFormData(v) && (q = S.headers.get("content-type")) && Q.setContentType(q), S.body) {
2754
2765
  const [j, L] = Va(
2755
2766
  U,
2756
- An(Fa(x))
2767
+ An(Fa(E))
2757
2768
  );
2758
- _ = Wa(S.body, Ya, j, L);
2769
+ v = Wa(S.body, Ya, j, L);
2759
2770
  }
2760
2771
  }
2761
- C.isString(ee) || (ee = ee ? "include" : "omit");
2772
+ C.isString(te) || (te = te ? "include" : "omit");
2762
2773
  const T = o && "credentials" in n.prototype, D = {
2763
2774
  ...G,
2764
- signal: te,
2775
+ signal: ee,
2765
2776
  method: w.toUpperCase(),
2766
2777
  headers: Q.normalize().toJSON(),
2767
- body: _,
2778
+ body: v,
2768
2779
  duplex: "half",
2769
- credentials: T ? ee : void 0
2780
+ credentials: T ? te : void 0
2770
2781
  };
2771
2782
  ce = o && new n(A, D);
2772
2783
  let I = await (o ? P(ce, G) : P(A, D));
2773
2784
  const z = u && (O === "stream" || O === "response");
2774
- if (u && (v || z && M)) {
2785
+ if (u && (b || z && M)) {
2775
2786
  const S = {};
2776
2787
  ["status", "statusText", "headers"].forEach((H) => {
2777
2788
  S[H] = I[H];
2778
2789
  });
2779
- const q = C.toFiniteNumber(I.headers.get("content-length")), [j, L] = v && Va(
2790
+ const q = C.toFiniteNumber(I.headers.get("content-length")), [j, L] = b && Va(
2780
2791
  q,
2781
- An(Fa(v), !0)
2792
+ An(Fa(b), !0)
2782
2793
  ) || [];
2783
2794
  I = new r(
2784
2795
  Wa(I.body, Ya, j, () => {
@@ -3803,11 +3814,11 @@ async function W9({
3803
3814
  speculationType: g = "Common",
3804
3815
  preloadImageUrl: A,
3805
3816
  custom_Speculation: w,
3806
- custom_metadata: _,
3817
+ custom_metadata: v,
3807
3818
  custom_scriptReplaces: N,
3808
- head_custom_elements: b
3819
+ head_custom_elements: _
3809
3820
  }) {
3810
- const E = _ || await gc[s]({
3821
+ const x = v || await gc[s]({
3811
3822
  meta: n,
3812
3823
  config: m,
3813
3824
  currentNew: l,
@@ -3816,7 +3827,7 @@ async function W9({
3816
3827
  slug: i,
3817
3828
  texts: c,
3818
3829
  query: d
3819
- }), v = vo(E), x = N || Vr[s]({
3830
+ }), b = vo(x), E = N || Vr[s]({
3820
3831
  pathname: o,
3821
3832
  slug: i,
3822
3833
  config: m,
@@ -3826,7 +3837,7 @@ async function W9({
3826
3837
  return /* @__PURE__ */ f(J, { children: [
3827
3838
  /* @__PURE__ */ a("meta", { charSet: "utf-8" }),
3828
3839
  /* @__PURE__ */ a("meta", { name: "viewport", content: "width=device-width" }),
3829
- v,
3840
+ b,
3830
3841
  /* @__PURE__ */ a(Co, {}),
3831
3842
  t.ampConfig && m.ampOption && t.ampConfig_slugIsValid && /* @__PURE__ */ a("link", { rel: "amphtml", href: m.siteUrl + "/amp" + o }),
3832
3843
  t.preloadImages && l && l.preview?.sizes && /* @__PURE__ */ a(
@@ -3850,7 +3861,7 @@ async function W9({
3850
3861
  zr,
3851
3862
  {
3852
3863
  name: "headscripts",
3853
- replaces: x,
3864
+ replaces: E,
3854
3865
  banners: u
3855
3866
  }
3856
3867
  ),
@@ -3890,7 +3901,7 @@ async function W9({
3890
3901
  customSpeculation: w
3891
3902
  }
3892
3903
  ),
3893
- b
3904
+ _
3894
3905
  ] });
3895
3906
  }
3896
3907
  const Y9 = ({
@@ -3964,28 +3975,28 @@ function Cc({
3964
3975
  enableDrag: o,
3965
3976
  onIndexChange: i
3966
3977
  }) {
3967
- const [c, d] = K(!1), [l, u] = K(0), [h, m] = K(0), [p, g] = K(0), [A, w] = K(0), [_, N] = K(null), b = Dr(null), [E, v] = K(1), x = he(() => {
3978
+ const [c, d] = K(!1), [l, u] = K(0), [h, m] = K(0), [p, g] = K(0), [A, w] = K(0), [v, N] = K(null), _ = Dr(null), [x, b] = K(1), E = he(() => {
3968
3979
  if (s) return 1;
3969
- const y = b.current?.offsetWidth || window.innerWidth, S = n + r, q = Math.floor(y / S);
3980
+ const y = _.current?.offsetWidth || window.innerWidth, S = n + r, q = Math.floor(y / S);
3970
3981
  return Math.max(1, q);
3971
3982
  }, [s, n, r]);
3972
3983
  De(() => {
3973
3984
  const y = () => {
3974
- const S = x();
3975
- v(S);
3985
+ const S = E();
3986
+ b(S);
3976
3987
  };
3977
3988
  return y(), window.addEventListener("resize", y), () => window.removeEventListener("resize", y);
3978
- }, [x]);
3989
+ }, [E]);
3979
3990
  const Q = he(() => {
3980
- const y = x();
3991
+ const y = E();
3981
3992
  return Math.max(0, t - y);
3982
- }, [t, x])(), ee = he(() => {
3983
- const y = x();
3993
+ }, [t, E])(), te = he(() => {
3994
+ const y = E();
3984
3995
  return y === 1 ? 1 : Math.max(1, Math.ceil(y / 2));
3985
- }, [x]), G = he(
3996
+ }, [E]), G = he(
3986
3997
  (y, S = 0) => {
3987
3998
  if (s) {
3988
- const q = b.current?.offsetWidth || window.innerWidth;
3999
+ const q = _.current?.offsetWidth || window.innerWidth;
3989
4000
  return -(y * (100 + r)) + S / q * 100;
3990
4001
  }
3991
4002
  return -(y * (n + r)) + S;
@@ -3993,7 +4004,7 @@ function Cc({
3993
4004
  [s, n, r]
3994
4005
  ), P = he(
3995
4006
  (y) => {
3996
- const S = b.current?.offsetWidth || window.innerWidth, q = x(), j = ee();
4007
+ const S = _.current?.offsetWidth || window.innerWidth, q = E(), j = te();
3997
4008
  if (s)
3998
4009
  return Math.abs(y) / S * 100 > 30 ? 1 : 0;
3999
4010
  {
@@ -4001,8 +4012,8 @@ function Cc({
4001
4012
  return H >= (q === 1 ? 0.2 : 0.3) ? q === 1 ? 1 : Math.min(Math.round(H), j) : 0;
4002
4013
  }
4003
4014
  },
4004
- [s, n, r, x, ee]
4005
- ), te = he(
4015
+ [s, n, r, E, te]
4016
+ ), ee = he(
4006
4017
  (y) => {
4007
4018
  o && (u(y), m(y), g(0), w(Date.now()), d(!0), document.body.classList.add("dragging"));
4008
4019
  },
@@ -4031,7 +4042,7 @@ function Cc({
4031
4042
  const F = Math.min(Q, e + V);
4032
4043
  i(F);
4033
4044
  }
4034
- d(!1), g(0), document.body.classList.remove("dragging"), document.removeEventListener("mousemove", M), document.removeEventListener("mouseup", U), y.clientX === l && _?.dispatchEvent(new PointerEvent("click"));
4045
+ d(!1), g(0), document.body.classList.remove("dragging"), document.removeEventListener("mousemove", M), document.removeEventListener("mouseup", U), y.clientX === l && v?.dispatchEvent(new PointerEvent("click"));
4035
4046
  },
4036
4047
  [
4037
4048
  c,
@@ -4044,18 +4055,18 @@ function Cc({
4044
4055
  i,
4045
4056
  P,
4046
4057
  M,
4047
- _
4058
+ v
4048
4059
  ]
4049
4060
  ), T = he(
4050
4061
  (y) => {
4051
- y.preventDefault(), ["a", "span"].includes(y.target?.localName) && N(y.target), te(y.clientX);
4062
+ y.preventDefault(), ["a", "span"].includes(y.target?.localName) && N(y.target), ee(y.clientX);
4052
4063
  },
4053
- [te]
4064
+ [ee]
4054
4065
  ), D = he(
4055
4066
  (y) => {
4056
- te(y.touches[0].clientX);
4067
+ ee(y.touches[0].clientX);
4057
4068
  },
4058
- [te]
4069
+ [ee]
4059
4070
  ), I = he(
4060
4071
  (y) => {
4061
4072
  c && (y.preventDefault(), ce(y.touches[0].clientX));
@@ -4069,19 +4080,19 @@ function Cc({
4069
4080
  );
4070
4081
  return De(() => {
4071
4082
  if (c)
4072
- return b.current?.addEventListener("mousemove", M), b.current?.addEventListener("mouseup", U), () => {
4073
- b.current?.removeEventListener(
4083
+ return _.current?.addEventListener("mousemove", M), _.current?.addEventListener("mouseup", U), () => {
4084
+ _.current?.removeEventListener(
4074
4085
  "mousemove",
4075
4086
  M
4076
- ), b.current?.removeEventListener("mouseup", U);
4087
+ ), _.current?.removeEventListener("mouseup", U);
4077
4088
  };
4078
4089
  }, [c, ce, U, M]), {
4079
4090
  isDragging: c,
4080
4091
  translateOffset: p,
4081
- carrouselRef: b,
4092
+ carrouselRef: _,
4082
4093
  maxIndex: Q,
4083
4094
  getTranslateValue: G,
4084
- actualVisibleItems: E,
4095
+ actualVisibleItems: x,
4085
4096
  dragHandlers: {
4086
4097
  onMouseDown: T,
4087
4098
  onTouchStart: D,
@@ -4111,10 +4122,10 @@ function J9(e) {
4111
4122
  isDragging: g,
4112
4123
  translateOffset: A,
4113
4124
  carrouselRef: w,
4114
- maxIndex: _,
4125
+ maxIndex: v,
4115
4126
  getTranslateValue: N,
4116
- actualVisibleItems: b,
4117
- dragHandlers: E
4127
+ actualVisibleItems: _,
4128
+ dragHandlers: x
4118
4129
  } = Cc({
4119
4130
  currentIndex: u,
4120
4131
  totalItems: l.length,
@@ -4123,25 +4134,25 @@ function J9(e) {
4123
4134
  fullPageWidth: i,
4124
4135
  enableDrag: d,
4125
4136
  onIndexChange: h
4126
- }), v = he(
4137
+ }), b = he(
4127
4138
  (G) => {
4128
- const P = Math.max(0, Math.min(G, _));
4139
+ const P = Math.max(0, Math.min(G, v));
4129
4140
  h(P);
4130
4141
  },
4131
- [_]
4132
- ), x = he(() => {
4133
- v(u - 1);
4134
- }, [u, v]), O = he(() => {
4135
- v(u + 1);
4136
- }, [u, v]);
4142
+ [v]
4143
+ ), E = he(() => {
4144
+ b(u - 1);
4145
+ }, [u, b]), O = he(() => {
4146
+ b(u + 1);
4147
+ }, [u, b]);
4137
4148
  if (!m) return;
4138
- const Q = N(u, A), ee = i ? `translateX(${Q}%)` : `translateX(${Q}px)`;
4149
+ const Q = N(u, A), te = i ? `translateX(${Q}%)` : `translateX(${Q}px)`;
4139
4150
  return /* @__PURE__ */ f("div", { className: `${n}- carrousel-container`, children: [
4140
4151
  u > 0 && /* @__PURE__ */ a(
4141
4152
  "button",
4142
4153
  {
4143
4154
  className: "visible-arrow left",
4144
- onClick: x,
4155
+ onClick: E,
4145
4156
  "aria-label": "Previous slide",
4146
4157
  style: { display: "flex" },
4147
4158
  children: /* @__PURE__ */ a(
@@ -4163,7 +4174,7 @@ function J9(e) {
4163
4174
  )
4164
4175
  }
4165
4176
  ),
4166
- u < _ && /* @__PURE__ */ a(
4177
+ u < v && /* @__PURE__ */ a(
4167
4178
  "button",
4168
4179
  {
4169
4180
  className: "visible-arrow right",
@@ -4199,13 +4210,13 @@ function J9(e) {
4199
4210
  margin: o === 0 ? "0" : "0 0.5rem 1rem",
4200
4211
  cursor: d ? g ? "grabbing" : "grab" : "default"
4201
4212
  },
4202
- ...E,
4213
+ ...x,
4203
4214
  children: l && l.map((G, P) => typeof G == "string" ? /* @__PURE__ */ a(
4204
4215
  "section",
4205
4216
  {
4206
4217
  className: "card",
4207
4218
  style: {
4208
- transform: ee,
4219
+ transform: te,
4209
4220
  transition: g ? "none" : "transform 300ms ease",
4210
4221
  minWidth: i ? "100%" : s,
4211
4222
  width: "min-content",
@@ -4220,7 +4231,7 @@ function J9(e) {
4220
4231
  {
4221
4232
  className: "card",
4222
4233
  style: {
4223
- transform: ee,
4234
+ transform: te,
4224
4235
  transition: g ? "none" : "transform 300ms ease",
4225
4236
  minWidth: i ? "100%" : s,
4226
4237
  width: "min-content",
@@ -4234,17 +4245,17 @@ function J9(e) {
4234
4245
  }
4235
4246
  ),
4236
4247
  c && /* @__PURE__ */ a("nav", { className: "carrousel-pagination", children: Array.from(
4237
- { length: Math.ceil(l.length / b) },
4248
+ { length: Math.ceil(l.length / _) },
4238
4249
  (G, P) => {
4239
- const te = Math.floor(u / b) === P;
4250
+ const ee = Math.floor(u / _) === P;
4240
4251
  return /* @__PURE__ */ a(
4241
4252
  "li",
4242
4253
  {
4243
- className: te ? "active" : "",
4244
- onClick: () => v(P * b),
4254
+ className: ee ? "active" : "",
4255
+ onClick: () => b(P * _),
4245
4256
  style: {
4246
4257
  cursor: "pointer",
4247
- backgroundColor: te ? "var(--carrousel-pagination-background-color)" : "var(--carrousel-pagination-background-color-white)"
4258
+ backgroundColor: ee ? "var(--carrousel-pagination-background-color)" : "var(--carrousel-pagination-background-color-white)"
4248
4259
  }
4249
4260
  },
4250
4261
  P
@@ -9445,7 +9456,7 @@ const c3 = (e) => {
9445
9456
  let l;
9446
9457
  if (n.forEach((N) => {
9447
9458
  Array.isArray(N) && (l = N.find(
9448
- (b) => d.replaceAll("/", "|").includes(b?.info.link.internal || "")
9459
+ (_) => d.replaceAll("/", "|").includes(_?.info.link.internal || "")
9449
9460
  ));
9450
9461
  }), !l) {
9451
9462
  o = o.replace("ck-related-news", "ck-related-news-empty");
@@ -9453,10 +9464,10 @@ const c3 = (e) => {
9453
9464
  }
9454
9465
  const u = l.preview?.sizes?.[0], h = u ? await me(u.url) : "", m = l.info.section?.url ?? "#", p = l.info.section?.name ?? "Sección", g = l.info.link?.url ?? "#", A = l.main?.title.article ?? "Título", w = (await Promise.all(
9455
9466
  l.preview?.sizes?.map(async (N) => {
9456
- const b = await me(N.url);
9457
- return N.width < 200 ? `<source srcset="${b}" media="(width < 750px)"/>` : `<source srcset="${b}" media="(width >= 750px)"/>`;
9467
+ const _ = await me(N.url);
9468
+ return N.width < 200 ? `<source srcset="${_}" media="(width < 750px)"/>` : `<source srcset="${_}" media="(width >= 750px)"/>`;
9458
9469
  })
9459
- )).reduce((N, b) => N += b, ""), _ = `
9470
+ )).reduce((N, _) => N += _, ""), v = `
9460
9471
  <span data-src="${d}">
9461
9472
  <picture style='display: flex'>
9462
9473
  ${w}
@@ -9468,7 +9479,7 @@ const c3 = (e) => {
9468
9479
  </div>
9469
9480
  </span>
9470
9481
  `;
9471
- o = o.replace(c, _);
9482
+ o = o.replace(c, v);
9472
9483
  }
9473
9484
  return o;
9474
9485
  }, $2 = (e) => e.replace(/<p>(\s|&nbsp;)+<\/p>/g, ""), W2 = (e) => {
@@ -9506,7 +9517,7 @@ async function K2(e, t) {
9506
9517
  let A = "";
9507
9518
  const w = d.match(
9508
9519
  /<span\b[^>]*class=["']video__title["'][^>]*>([\s\S]*?)<\/span>/i
9509
- ), _ = w && w[1] ? w[1].trim() : "";
9520
+ ), v = w && w[1] ? w[1].trim() : "";
9510
9521
  g.info && g.info.type === "video-youtube" ? A = `<iframe
9511
9522
  loading="lazy"
9512
9523
  frameborder="0"
@@ -9522,7 +9533,7 @@ async function K2(e, t) {
9522
9533
  allowfullscreen
9523
9534
  style="width: 100%; height: auto; min-height: 400px;"
9524
9535
  src="${g.main?.code || ""}"></iframe>` : A = g.main?.code || "";
9525
- const N = _ || g.main?.description || "";
9536
+ const N = v || g.main?.description || "";
9526
9537
  h = `
9527
9538
  <figure class="videoFigure">
9528
9539
  ${p && p.data && p.data.data ? `<script type="application/ld+json">${ga(
@@ -9912,25 +9923,25 @@ const u0 = (e) => /* @__PURE__ */ a(
9912
9923
  const u = l[0], h = l[2] ?? "";
9913
9924
  i.add(h);
9914
9925
  const m = u.match(/<img\b[^>]*\balt=["']([^"']*)["']/), p = m ? m[1] : "imagen", g = h.match(/__scale=([^&"']+)/), A = g ? decodeURIComponent(g[1]) : null;
9915
- let w = 0, _ = 0;
9926
+ let w = 0, v = 0;
9916
9927
  if (A) {
9917
- const x = A.match(/w:(\d+)/), O = A.match(/h:(\d+)/);
9918
- w = x ? parseInt(x[1]) : 0, _ = O ? parseInt(O[1]) : 0;
9928
+ const E = A.match(/w:(\d+)/), O = A.match(/h:(\d+)/);
9929
+ w = E ? parseInt(E[1]) : 0, v = O ? parseInt(O[1]) : 0;
9919
9930
  }
9920
- const b = {
9931
+ const _ = {
9921
9932
  preview: {
9922
9933
  sizes: [
9923
9934
  {
9924
- scale: A || `w:${w},h:${_},t:2`,
9935
+ scale: A || `w:${w},h:${v},t:2`,
9925
9936
  url: h,
9926
9937
  width: w,
9927
- height: _
9938
+ height: v
9928
9939
  }
9929
9940
  ],
9930
9941
  original: {
9931
9942
  url: h.split("?")[0],
9932
9943
  width: w,
9933
- height: _
9944
+ height: v
9934
9945
  },
9935
9946
  copyright: !1,
9936
9947
  description: p,
@@ -9938,33 +9949,33 @@ const u0 = (e) => /* @__PURE__ */ a(
9938
9949
  },
9939
9950
  isLarge: !1,
9940
9951
  priorityHigh: !1
9941
- }, v = `<div data-hydrate="ImageOffline" data-props="${encodeURIComponent(JSON.stringify(b))}"><div class="_imagePlaceholder_ooa5j_98"></div></div>`;
9942
- r = r.replace(u, v);
9952
+ }, b = `<div data-hydrate="ImageOffline" data-props="${encodeURIComponent(JSON.stringify(_))}"><div class="_imagePlaceholder_ooa5j_98"></div></div>`;
9953
+ r = r.replace(u, b);
9943
9954
  }
9944
9955
  const c = /<img\b[^>]*\bsrc=["']([^"']+)["'][^>]*>/g, d = [...r.matchAll(c)];
9945
9956
  for (const l of d) {
9946
9957
  const u = l[0], h = l[1] ?? "";
9947
9958
  if (i.has(h)) continue;
9948
9959
  const m = u.match(/\balt=["']([^"']*)["']/), p = m ? m[1] : "imagen", g = h.match(/__scale=([^&"']+)/), A = g ? decodeURIComponent(g[1]) : null;
9949
- let w = 0, _ = 0;
9960
+ let w = 0, v = 0;
9950
9961
  if (A) {
9951
- const x = A.match(/w:(\d+)/), O = A.match(/h:(\d+)/);
9952
- w = x ? parseInt(x[1]) : 0, _ = O ? parseInt(O[1]) : 0;
9962
+ const E = A.match(/w:(\d+)/), O = A.match(/h:(\d+)/);
9963
+ w = E ? parseInt(E[1]) : 0, v = O ? parseInt(O[1]) : 0;
9953
9964
  }
9954
- const b = {
9965
+ const _ = {
9955
9966
  preview: {
9956
9967
  sizes: [
9957
9968
  {
9958
- scale: A || `w:${w},h:${_},t:2`,
9969
+ scale: A || `w:${w},h:${v},t:2`,
9959
9970
  url: h,
9960
9971
  width: w,
9961
- height: _
9972
+ height: v
9962
9973
  }
9963
9974
  ],
9964
9975
  original: {
9965
9976
  url: h.split("?")[0],
9966
9977
  width: w,
9967
- height: _
9978
+ height: v
9968
9979
  },
9969
9980
  copyright: !1,
9970
9981
  description: p,
@@ -9972,8 +9983,8 @@ const u0 = (e) => /* @__PURE__ */ a(
9972
9983
  },
9973
9984
  isLarge: !1,
9974
9985
  priorityHigh: !1
9975
- }, v = `<div data-hydrate="ImageOffline" data-props="${encodeURIComponent(JSON.stringify(b))}"><div class="_imagePlaceholder_ooa5j_98"></div></div>`;
9976
- r = r.replace(u, v);
9986
+ }, b = `<div data-hydrate="ImageOffline" data-props="${encodeURIComponent(JSON.stringify(_))}"><div class="_imagePlaceholder_ooa5j_98"></div></div>`;
9987
+ r = r.replace(u, b);
9977
9988
  }
9978
9989
  return r;
9979
9990
  }, g0 = (e, t) => {
@@ -10035,11 +10046,11 @@ const u0 = (e) => /* @__PURE__ */ a(
10035
10046
  );
10036
10047
  if (!l || !l[0]) continue;
10037
10048
  const u = l[0].preview?.sizes?.[0], h = u ? await me(u.url) : "", m = l[0].info.section?.url ?? "#", p = l[0].info.section?.name ?? "Sección", g = l[0].info.link?.url ?? "#", A = l[0].main?.title.article ?? "Título", w = (await Promise.all(
10038
- l[0].preview?.sizes?.map(async (N, b) => {
10039
- const E = await me(N.url);
10040
- return b === 0 ? `<source srcset="${E}" media="(width >= 900px)"/>` : `<source srcset="${E}" media="(width < 900px)"/>`;
10049
+ l[0].preview?.sizes?.map(async (N, _) => {
10050
+ const x = await me(N.url);
10051
+ return _ === 0 ? `<source srcset="${x}" media="(width >= 900px)"/>` : `<source srcset="${x}" media="(width < 900px)"/>`;
10041
10052
  })
10042
- )).reduce((N, b) => N += b, ""), _ = `
10053
+ )).reduce((N, _) => N += _, ""), v = `
10043
10054
  <span data-src="${d}">
10044
10055
  <picture style='display: flex'>
10045
10056
  ${w}
@@ -10051,7 +10062,7 @@ const u0 = (e) => /* @__PURE__ */ a(
10051
10062
  </div>
10052
10063
  </span>
10053
10064
  `;
10054
- o = o.replace(c, _);
10065
+ o = o.replace(c, v);
10055
10066
  }
10056
10067
  return o;
10057
10068
  };
@@ -10065,81 +10076,81 @@ async function w0(e, t) {
10065
10076
  let d = 1, l = c;
10066
10077
  const u = e.length;
10067
10078
  for (; l < u && d > 0; ) {
10068
- const N = e.indexOf("<div", l), b = e.indexOf("</div>", l);
10069
- if (b === -1) {
10079
+ const v = e.indexOf("<div", l), N = e.indexOf("</div>", l);
10080
+ if (N === -1) {
10070
10081
  l = u;
10071
10082
  break;
10072
10083
  }
10073
- N !== -1 && N < b ? (d += 1, l = N + 4) : (d -= 1, l = b + 6);
10074
- }
10075
- const h = l, m = e.slice(i, h), p = f0(m);
10076
- let g = null;
10077
- const A = /<span\b([^>]*)>/gi;
10078
- let w;
10079
- for (; (w = A.exec(p)) !== null; ) {
10080
- const N = w[1];
10081
- if (!N) break;
10082
- if (/data-type\s*=\s*["']?video["']?/i.test(N)) {
10083
- const b = N.match(/data-src\s*=\s*["']([^"']+)["']/i);
10084
- if (b) {
10085
- g = b[1] ?? "";
10084
+ v !== -1 && v < N ? (d += 1, l = v + 4) : (d -= 1, l = N + 6);
10085
+ }
10086
+ const h = l, m = e.slice(i, h);
10087
+ let p = null;
10088
+ const g = /<span\b([^>]*)>/gi;
10089
+ let A;
10090
+ for (; (A = g.exec(m)) !== null; ) {
10091
+ const v = A[1];
10092
+ if (!v) break;
10093
+ if (/data-type\s*=\s*["']?video["']?/i.test(v)) {
10094
+ const N = v.match(/data-src\s*=\s*["']([^"']+)["']/i);
10095
+ if (N) {
10096
+ p = N[1] ?? "";
10086
10097
  break;
10087
10098
  }
10088
10099
  }
10089
10100
  }
10090
- if (!g) {
10091
- const N = p.match(
10101
+ if (!p) {
10102
+ const v = m.match(
10092
10103
  /<span\b[^>]*data-src=["'][^"']+["'][^>]*>/i
10093
10104
  );
10094
- if (N) {
10095
- const b = N[0].match(/data-src\s*=\s*["']([^"']+)["']/i);
10096
- b && (g = b[1] ?? "");
10105
+ if (v) {
10106
+ const N = v[0].match(/data-src\s*=\s*["']([^"']+)["']/i);
10107
+ N && (p = N[1] ?? "");
10097
10108
  }
10098
10109
  }
10099
- let _ = "";
10100
- if (g)
10110
+ let w = "";
10111
+ if (p)
10101
10112
  try {
10102
- const N = await t.iframe({ path: g }), b = t.schema ? await t.schema(g) : null;
10103
- if (N && N.data) {
10104
- const E = N.data.data[0];
10105
- let v = "";
10106
- const x = p.match(
10113
+ const v = await t.iframe({ path: p }), N = t.schema ? await t.schema(p) : null;
10114
+ if (v && v.data) {
10115
+ const _ = v.data.data[0];
10116
+ let x = "";
10117
+ const b = m.match(
10107
10118
  /<span\b[^>]*class=["']video__title["'][^>]*>([\s\S]*?)<\/span>/i
10108
- ), O = x && x[1] ? x[1].trim() : "";
10109
- E.info && E.info.type === "video-youtube" ? v = `<iframe
10119
+ ), E = b && b[1] ? b[1].trim() : "";
10120
+ _.info && _.info.type === "video-youtube" ? x = `<iframe
10110
10121
  loading="lazy"
10111
10122
  frameborder="0"
10112
10123
  allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
10113
10124
  referrerpolicy="strict-origin-when-cross-origin"
10114
10125
  allowfullscreen
10115
10126
  style="position: relative!important;"
10116
- src="https://www.youtube.com/embed/${E.main?.code || E.main?.youtubeid || ""}"></iframe>` : E.info && E.info.type === "video-link" ? v = `<iframe
10127
+ src="https://www.youtube.com/embed/${_.main?.code || _.main?.youtubeid || ""}"></iframe>` : _.info && _.info.type === "video-link" ? x = `<iframe
10117
10128
  loading="lazy"
10118
10129
  frameborder="0"
10119
10130
  allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
10120
10131
  referrerpolicy="strict-origin-when-cross-origin"
10121
10132
  allowfullscreen
10122
10133
  style="position: relative!important;"
10123
- src="${E.main?.code || ""}"></iframe>` : v = E.main?.code || "";
10124
- const Q = O || E.main?.description || "";
10125
- _ = `
10134
+ src="${_.main?.code || ""}"></iframe>` : x = _.main?.code || "";
10135
+ const O = E || _.main?.description || "";
10136
+ w = `
10126
10137
  <figure class="videoFigure">
10127
- ${b && b.data && b.data.data ? `<script type="application/ld+json">${ks(
10128
- JSON.stringify(b.data.data)
10138
+ ${N && N.data && N.data.data ? `<script type="application/ld+json">${ks(
10139
+ JSON.stringify(N.data.data)
10129
10140
  )}<\/script>` : ""}
10130
- ${v}
10131
- <figcaption>${Q}</figcaption>
10141
+ ${x}
10142
+ <figcaption>${O}</figcaption>
10132
10143
  </figure>
10133
10144
  `;
10134
10145
  }
10135
- } catch (N) {
10136
- console.error("insertVideos error for", g, N), _ = "";
10146
+ } catch (v) {
10147
+ console.error("insertVideos error for", p, v), w = "";
10137
10148
  }
10138
10149
  else
10139
- _ = p;
10140
- r = h, n += _, s.lastIndex = h;
10150
+ w = m;
10151
+ r = h, n += w, s.lastIndex = h;
10141
10152
  }
10142
- return n += e.slice(r), n;
10153
+ return n += e.slice(r), n = f0(n), n;
10143
10154
  }
10144
10155
  async function y0(e) {
10145
10156
  const {
@@ -10299,7 +10310,6 @@ const v0 = "_content_cu8lm_1", b0 = "_title_cu8lm_18", pr = {
10299
10310
  }, I0 = "_content_156j7_1", Ar = {
10300
10311
  content: I0
10301
10312
  }, st = {
10302
- imagen: "imagen",
10303
10313
  videoEmbedded: "videoEmbedded",
10304
10314
  videoYouTube: "videoYouTube",
10305
10315
  iframe: "iframe",
@@ -10313,7 +10323,7 @@ const v0 = "_content_cu8lm_1", b0 = "_title_cu8lm_18", pr = {
10313
10323
  if (o === st.fotoGaleria && c)
10314
10324
  return /* @__PURE__ */ a("div", { className: Ar.content, children: /* @__PURE__ */ a(Is, { newsformated: e, internal: i }) });
10315
10325
  const d = o ? k0[o] : null;
10316
- return console.log("PreviewComponent", d), d ? /* @__PURE__ */ a("div", { className: Ar.content, children: /* @__PURE__ */ a(
10326
+ return d ? /* @__PURE__ */ a("div", { className: Ar.content, children: /* @__PURE__ */ a(
10317
10327
  d,
10318
10328
  {
10319
10329
  newsformated: e,
@@ -10646,7 +10656,7 @@ const yr = {
10646
10656
  st.videoYouTube,
10647
10657
  st.iframe
10648
10658
  ];
10649
- return !!(r === st.imagen && n?.hasgalleryimages || s.includes(r));
10659
+ return !!(r === st.fotoGaleria && n?.hasgalleryimages || s.includes(r));
10650
10660
  }, A3 = async (e) => {
10651
10661
  const {
10652
10662
  custom_complement: t,
@@ -11676,78 +11686,78 @@ var Nr;
11676
11686
  function Xg() {
11677
11687
  if (Nr) return ne;
11678
11688
  Nr = 1;
11679
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, s = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, A = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, _ = e ? Symbol.for("react.responder") : 60118, N = e ? Symbol.for("react.scope") : 60119;
11680
- function b(v) {
11681
- if (typeof v == "object" && v !== null) {
11682
- var x = v.$$typeof;
11683
- switch (x) {
11689
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, s = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, A = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, N = e ? Symbol.for("react.scope") : 60119;
11690
+ function _(b) {
11691
+ if (typeof b == "object" && b !== null) {
11692
+ var E = b.$$typeof;
11693
+ switch (E) {
11684
11694
  case t:
11685
- switch (v = v.type, v) {
11695
+ switch (b = b.type, b) {
11686
11696
  case d:
11687
11697
  case l:
11688
11698
  case r:
11689
11699
  case o:
11690
11700
  case s:
11691
11701
  case h:
11692
- return v;
11702
+ return b;
11693
11703
  default:
11694
- switch (v = v && v.$$typeof, v) {
11704
+ switch (b = b && b.$$typeof, b) {
11695
11705
  case c:
11696
11706
  case u:
11697
11707
  case g:
11698
11708
  case p:
11699
11709
  case i:
11700
- return v;
11710
+ return b;
11701
11711
  default:
11702
- return x;
11712
+ return E;
11703
11713
  }
11704
11714
  }
11705
11715
  case n:
11706
- return x;
11707
- }
11708
- }
11709
- }
11710
- function E(v) {
11711
- return b(v) === l;
11712
- }
11713
- return ne.AsyncMode = d, ne.ConcurrentMode = l, ne.ContextConsumer = c, ne.ContextProvider = i, ne.Element = t, ne.ForwardRef = u, ne.Fragment = r, ne.Lazy = g, ne.Memo = p, ne.Portal = n, ne.Profiler = o, ne.StrictMode = s, ne.Suspense = h, ne.isAsyncMode = function(v) {
11714
- return E(v) || b(v) === d;
11715
- }, ne.isConcurrentMode = E, ne.isContextConsumer = function(v) {
11716
- return b(v) === c;
11717
- }, ne.isContextProvider = function(v) {
11718
- return b(v) === i;
11719
- }, ne.isElement = function(v) {
11720
- return typeof v == "object" && v !== null && v.$$typeof === t;
11721
- }, ne.isForwardRef = function(v) {
11722
- return b(v) === u;
11723
- }, ne.isFragment = function(v) {
11724
- return b(v) === r;
11725
- }, ne.isLazy = function(v) {
11726
- return b(v) === g;
11727
- }, ne.isMemo = function(v) {
11728
- return b(v) === p;
11729
- }, ne.isPortal = function(v) {
11730
- return b(v) === n;
11731
- }, ne.isProfiler = function(v) {
11732
- return b(v) === o;
11733
- }, ne.isStrictMode = function(v) {
11734
- return b(v) === s;
11735
- }, ne.isSuspense = function(v) {
11736
- return b(v) === h;
11737
- }, ne.isValidElementType = function(v) {
11738
- return typeof v == "string" || typeof v == "function" || v === r || v === l || v === o || v === s || v === h || v === m || typeof v == "object" && v !== null && (v.$$typeof === g || v.$$typeof === p || v.$$typeof === i || v.$$typeof === c || v.$$typeof === u || v.$$typeof === w || v.$$typeof === _ || v.$$typeof === N || v.$$typeof === A);
11739
- }, ne.typeOf = b, ne;
11716
+ return E;
11717
+ }
11718
+ }
11719
+ }
11720
+ function x(b) {
11721
+ return _(b) === l;
11722
+ }
11723
+ return ne.AsyncMode = d, ne.ConcurrentMode = l, ne.ContextConsumer = c, ne.ContextProvider = i, ne.Element = t, ne.ForwardRef = u, ne.Fragment = r, ne.Lazy = g, ne.Memo = p, ne.Portal = n, ne.Profiler = o, ne.StrictMode = s, ne.Suspense = h, ne.isAsyncMode = function(b) {
11724
+ return x(b) || _(b) === d;
11725
+ }, ne.isConcurrentMode = x, ne.isContextConsumer = function(b) {
11726
+ return _(b) === c;
11727
+ }, ne.isContextProvider = function(b) {
11728
+ return _(b) === i;
11729
+ }, ne.isElement = function(b) {
11730
+ return typeof b == "object" && b !== null && b.$$typeof === t;
11731
+ }, ne.isForwardRef = function(b) {
11732
+ return _(b) === u;
11733
+ }, ne.isFragment = function(b) {
11734
+ return _(b) === r;
11735
+ }, ne.isLazy = function(b) {
11736
+ return _(b) === g;
11737
+ }, ne.isMemo = function(b) {
11738
+ return _(b) === p;
11739
+ }, ne.isPortal = function(b) {
11740
+ return _(b) === n;
11741
+ }, ne.isProfiler = function(b) {
11742
+ return _(b) === o;
11743
+ }, ne.isStrictMode = function(b) {
11744
+ return _(b) === s;
11745
+ }, ne.isSuspense = function(b) {
11746
+ return _(b) === h;
11747
+ }, ne.isValidElementType = function(b) {
11748
+ return typeof b == "string" || typeof b == "function" || b === r || b === l || b === o || b === s || b === h || b === m || typeof b == "object" && b !== null && (b.$$typeof === g || b.$$typeof === p || b.$$typeof === i || b.$$typeof === c || b.$$typeof === u || b.$$typeof === w || b.$$typeof === v || b.$$typeof === N || b.$$typeof === A);
11749
+ }, ne.typeOf = _, ne;
11740
11750
  }
11741
11751
  var ae = {};
11742
11752
  var Sr;
11743
11753
  function ep() {
11744
11754
  return Sr || (Sr = 1, process.env.NODE_ENV !== "production" && (function() {
11745
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, s = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, A = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, _ = e ? Symbol.for("react.responder") : 60118, N = e ? Symbol.for("react.scope") : 60119;
11746
- function b(R) {
11755
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, s = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, A = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, N = e ? Symbol.for("react.scope") : 60119;
11756
+ function _(R) {
11747
11757
  return typeof R == "string" || typeof R == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
11748
- R === r || R === l || R === o || R === s || R === h || R === m || typeof R == "object" && R !== null && (R.$$typeof === g || R.$$typeof === p || R.$$typeof === i || R.$$typeof === c || R.$$typeof === u || R.$$typeof === w || R.$$typeof === _ || R.$$typeof === N || R.$$typeof === A);
11758
+ R === r || R === l || R === o || R === s || R === h || R === m || typeof R == "object" && R !== null && (R.$$typeof === g || R.$$typeof === p || R.$$typeof === i || R.$$typeof === c || R.$$typeof === u || R.$$typeof === w || R.$$typeof === v || R.$$typeof === N || R.$$typeof === A);
11749
11759
  }
11750
- function E(R) {
11760
+ function x(R) {
11751
11761
  if (typeof R == "object" && R !== null) {
11752
11762
  var we = R.$$typeof;
11753
11763
  switch (we) {
@@ -11779,47 +11789,47 @@ function ep() {
11779
11789
  }
11780
11790
  }
11781
11791
  }
11782
- var v = d, x = l, O = c, Q = i, ee = t, G = u, P = r, te = g, ce = p, M = n, U = o, T = s, D = h, I = !1;
11792
+ var b = d, E = l, O = c, Q = i, te = t, G = u, P = r, ee = g, ce = p, M = n, U = o, T = s, D = h, I = !1;
11783
11793
  function z(R) {
11784
- return I || (I = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), y(R) || E(R) === d;
11794
+ return I || (I = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), y(R) || x(R) === d;
11785
11795
  }
11786
11796
  function y(R) {
11787
- return E(R) === l;
11797
+ return x(R) === l;
11788
11798
  }
11789
11799
  function S(R) {
11790
- return E(R) === c;
11800
+ return x(R) === c;
11791
11801
  }
11792
11802
  function q(R) {
11793
- return E(R) === i;
11803
+ return x(R) === i;
11794
11804
  }
11795
11805
  function j(R) {
11796
11806
  return typeof R == "object" && R !== null && R.$$typeof === t;
11797
11807
  }
11798
11808
  function L(R) {
11799
- return E(R) === u;
11809
+ return x(R) === u;
11800
11810
  }
11801
11811
  function H(R) {
11802
- return E(R) === r;
11812
+ return x(R) === r;
11803
11813
  }
11804
11814
  function V(R) {
11805
- return E(R) === g;
11815
+ return x(R) === g;
11806
11816
  }
11807
11817
  function F(R) {
11808
- return E(R) === p;
11818
+ return x(R) === p;
11809
11819
  }
11810
11820
  function Z(R) {
11811
- return E(R) === n;
11821
+ return x(R) === n;
11812
11822
  }
11813
11823
  function X(R) {
11814
- return E(R) === o;
11824
+ return x(R) === o;
11815
11825
  }
11816
11826
  function $(R) {
11817
- return E(R) === s;
11827
+ return x(R) === s;
11818
11828
  }
11819
11829
  function ie(R) {
11820
- return E(R) === h;
11830
+ return x(R) === h;
11821
11831
  }
11822
- ae.AsyncMode = v, ae.ConcurrentMode = x, ae.ContextConsumer = O, ae.ContextProvider = Q, ae.Element = ee, ae.ForwardRef = G, ae.Fragment = P, ae.Lazy = te, ae.Memo = ce, ae.Portal = M, ae.Profiler = U, ae.StrictMode = T, ae.Suspense = D, ae.isAsyncMode = z, ae.isConcurrentMode = y, ae.isContextConsumer = S, ae.isContextProvider = q, ae.isElement = j, ae.isForwardRef = L, ae.isFragment = H, ae.isLazy = V, ae.isMemo = F, ae.isPortal = Z, ae.isProfiler = X, ae.isStrictMode = $, ae.isSuspense = ie, ae.isValidElementType = b, ae.typeOf = E;
11832
+ ae.AsyncMode = b, ae.ConcurrentMode = E, ae.ContextConsumer = O, ae.ContextProvider = Q, ae.Element = te, ae.ForwardRef = G, ae.Fragment = P, ae.Lazy = ee, ae.Memo = ce, ae.Portal = M, ae.Profiler = U, ae.StrictMode = T, ae.Suspense = D, ae.isAsyncMode = z, ae.isConcurrentMode = y, ae.isContextConsumer = S, ae.isContextProvider = q, ae.isElement = j, ae.isForwardRef = L, ae.isFragment = H, ae.isLazy = V, ae.isMemo = F, ae.isPortal = Z, ae.isProfiler = X, ae.isStrictMode = $, ae.isSuspense = ie, ae.isValidElementType = _, ae.typeOf = x;
11823
11833
  })()), ae;
11824
11834
  }
11825
11835
  var Er;
@@ -11957,24 +11967,24 @@ function ap() {
11957
11967
  return S;
11958
11968
  }
11959
11969
  var m = "<<anonymous>>", p = {
11960
- array: _("array"),
11961
- bigint: _("bigint"),
11962
- bool: _("boolean"),
11963
- func: _("function"),
11964
- number: _("number"),
11965
- object: _("object"),
11966
- string: _("string"),
11967
- symbol: _("symbol"),
11970
+ array: v("array"),
11971
+ bigint: v("bigint"),
11972
+ bool: v("boolean"),
11973
+ func: v("function"),
11974
+ number: v("number"),
11975
+ object: v("object"),
11976
+ string: v("string"),
11977
+ symbol: v("symbol"),
11968
11978
  any: N(),
11969
- arrayOf: b,
11970
- element: E(),
11971
- elementType: v(),
11972
- instanceOf: x,
11979
+ arrayOf: _,
11980
+ element: x(),
11981
+ elementType: b(),
11982
+ instanceOf: E,
11973
11983
  node: G(),
11974
11984
  objectOf: Q,
11975
11985
  oneOf: O,
11976
- oneOfType: ee,
11977
- shape: te,
11986
+ oneOfType: te,
11987
+ shape: ee,
11978
11988
  exact: ce
11979
11989
  };
11980
11990
  function g(y, S) {
@@ -12007,7 +12017,7 @@ function ap() {
12007
12017
  var L = j.bind(null, !1);
12008
12018
  return L.isRequired = j.bind(null, !0), L;
12009
12019
  }
12010
- function _(y) {
12020
+ function v(y) {
12011
12021
  function S(q, j, L, H, V, F) {
12012
12022
  var Z = q[j], X = T(Z);
12013
12023
  if (X !== y) {
@@ -12024,7 +12034,7 @@ function ap() {
12024
12034
  function N() {
12025
12035
  return w(i);
12026
12036
  }
12027
- function b(y) {
12037
+ function _(y) {
12028
12038
  function S(q, j, L, H, V) {
12029
12039
  if (typeof y != "function")
12030
12040
  return new A("Property `" + V + "` of component `" + L + "` has invalid PropType notation inside arrayOf.");
@@ -12042,7 +12052,7 @@ function ap() {
12042
12052
  }
12043
12053
  return w(S);
12044
12054
  }
12045
- function E() {
12055
+ function x() {
12046
12056
  function y(S, q, j, L, H) {
12047
12057
  var V = S[q];
12048
12058
  if (!c(V)) {
@@ -12053,7 +12063,7 @@ function ap() {
12053
12063
  }
12054
12064
  return w(y);
12055
12065
  }
12056
- function v() {
12066
+ function b() {
12057
12067
  function y(S, q, j, L, H) {
12058
12068
  var V = S[q];
12059
12069
  if (!e.isValidElementType(V)) {
@@ -12064,7 +12074,7 @@ function ap() {
12064
12074
  }
12065
12075
  return w(y);
12066
12076
  }
12067
- function x(y) {
12077
+ function E(y) {
12068
12078
  function S(q, j, L, H, V) {
12069
12079
  if (!(q[j] instanceof y)) {
12070
12080
  var F = y.name || m, Z = z(q[j]);
@@ -12108,7 +12118,7 @@ function ap() {
12108
12118
  }
12109
12119
  return w(S);
12110
12120
  }
12111
- function ee(y) {
12121
+ function te(y) {
12112
12122
  if (!Array.isArray(y))
12113
12123
  return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), i;
12114
12124
  for (var S = 0; S < y.length; S++) {
@@ -12141,7 +12151,7 @@ function ap() {
12141
12151
  (y || "React class") + ": " + S + " type `" + q + "." + j + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + L + "`."
12142
12152
  );
12143
12153
  }
12144
- function te(y) {
12154
+ function ee(y) {
12145
12155
  function S(q, j, L, H, V) {
12146
12156
  var F = q[j], Z = T(F);
12147
12157
  if (Z !== "object")
@@ -12486,17 +12496,17 @@ function dp() {
12486
12496
  function p(g, A, w) {
12487
12497
  if (typeof A != "string") {
12488
12498
  if (m) {
12489
- var _ = h(A);
12490
- _ && _ !== m && p(g, _, w);
12499
+ var v = h(A);
12500
+ v && v !== m && p(g, v, w);
12491
12501
  }
12492
12502
  var N = d(A);
12493
12503
  l && (N = N.concat(l(A)));
12494
- for (var b = i(g), E = i(A), v = 0; v < N.length; ++v) {
12495
- var x = N[v];
12496
- if (!n[x] && !(w && w[x]) && !(E && E[x]) && !(b && b[x])) {
12497
- var O = u(A, x);
12504
+ for (var _ = i(g), x = i(A), b = 0; b < N.length; ++b) {
12505
+ var E = N[b];
12506
+ if (!n[E] && !(w && w[E]) && !(x && x[E]) && !(_ && _[E])) {
12507
+ var O = u(A, E);
12498
12508
  try {
12499
- c(g, x, O);
12509
+ c(g, E, O);
12500
12510
  } catch {
12501
12511
  }
12502
12512
  }
@@ -12555,7 +12565,7 @@ function pp(e, t) {
12555
12565
  h.observers[m](h);
12556
12566
  delete window[t.callbackName];
12557
12567
  }, l.componentDidMount = function() {
12558
- var h = this, m = this.setupScriptURL(), p = this.asyncScriptLoaderGetScriptLoaderID(), g = t, A = g.globalName, w = g.callbackName, _ = g.scriptId;
12568
+ var h = this, m = this.setupScriptURL(), p = this.asyncScriptLoaderGetScriptLoaderID(), g = t, A = g.globalName, w = g.callbackName, v = g.scriptId;
12559
12569
  if (A && typeof window[A] < "u" && (Le[m] = {
12560
12570
  loaded: !0,
12561
12571
  observers: {}
@@ -12570,38 +12580,38 @@ function pp(e, t) {
12570
12580
  };
12571
12581
  return;
12572
12582
  }
12573
- var b = {};
12574
- b[p] = function(O) {
12583
+ var _ = {};
12584
+ _[p] = function(O) {
12575
12585
  return h.asyncScriptLoaderHandleLoad(O);
12576
12586
  }, Le[m] = {
12577
12587
  loaded: !1,
12578
- observers: b
12588
+ observers: _
12579
12589
  };
12580
- var E = document.createElement("script");
12581
- E.src = m, E.async = !0;
12582
- for (var v in t.attributes)
12583
- E.setAttribute(v, t.attributes[v]);
12584
- _ && (E.id = _);
12585
- var x = function(Q) {
12590
+ var x = document.createElement("script");
12591
+ x.src = m, x.async = !0;
12592
+ for (var b in t.attributes)
12593
+ x.setAttribute(b, t.attributes[b]);
12594
+ v && (x.id = v);
12595
+ var E = function(Q) {
12586
12596
  if (Le[m]) {
12587
- var ee = Le[m], G = ee.observers;
12597
+ var te = Le[m], G = te.observers;
12588
12598
  for (var P in G)
12589
12599
  Q(G[P]) && delete G[P];
12590
12600
  }
12591
12601
  };
12592
12602
  w && typeof window < "u" && (window[w] = function() {
12593
12603
  return h.asyncScriptLoaderTriggerOnScriptLoaded();
12594
- }), E.onload = function() {
12604
+ }), x.onload = function() {
12595
12605
  var O = Le[m];
12596
- O && (O.loaded = !0, x(function(Q) {
12606
+ O && (O.loaded = !0, E(function(Q) {
12597
12607
  return w ? !1 : (Q(O), !0);
12598
12608
  }));
12599
- }, E.onerror = function() {
12609
+ }, x.onerror = function() {
12600
12610
  var O = Le[m];
12601
- O && (O.errored = !0, x(function(Q) {
12611
+ O && (O.errored = !0, E(function(Q) {
12602
12612
  return Q(O), !0;
12603
12613
  }));
12604
- }, document.body.appendChild(E);
12614
+ }, document.body.appendChild(x);
12605
12615
  }, l.componentWillUnmount = function() {
12606
12616
  var h = this.__scriptURL;
12607
12617
  if (t.removeOnUnmount === !0)
@@ -12733,8 +12743,8 @@ const Bs = pp(wp, {
12733
12743
  }, 3e3);
12734
12744
  else
12735
12745
  throw new Error(N.message || "Error al reportar comentario");
12736
- } catch (_) {
12737
- console.error("Error reporting comment:", _), h(_.message || "Error al reportar comentario"), c("form");
12746
+ } catch (v) {
12747
+ console.error("Error reporting comment:", v), h(v.message || "Error al reportar comentario"), c("form");
12738
12748
  }
12739
12749
  }
12740
12750
  }, w = () => {
@@ -12745,21 +12755,21 @@ const Bs = pp(wp, {
12745
12755
  /* @__PURE__ */ a("h2", { className: ue.title, children: "Reportar Abuso" }),
12746
12756
  i === "loading" && /* @__PURE__ */ a("div", { className: ue.loadingContainer, children: /* @__PURE__ */ a(Je, {}) }),
12747
12757
  i === "form" || i === "loading" ? /* @__PURE__ */ f(J, { children: [
12748
- /* @__PURE__ */ a("div", { className: ue.optionsContainer, children: g.map((_) => /* @__PURE__ */ f("label", { className: ue.option, children: [
12758
+ /* @__PURE__ */ a("div", { className: ue.optionsContainer, children: g.map((v) => /* @__PURE__ */ f("label", { className: ue.option, children: [
12749
12759
  /* @__PURE__ */ a(
12750
12760
  "input",
12751
12761
  {
12752
12762
  type: "radio",
12753
12763
  name: "reportReason",
12754
- value: _.id,
12755
- checked: d === _.id,
12764
+ value: v.id,
12765
+ checked: d === v.id,
12756
12766
  onChange: (N) => l(N.target.value),
12757
12767
  className: ue.radioInput
12758
12768
  }
12759
12769
  ),
12760
12770
  /* @__PURE__ */ a("span", { className: ue.radioCustom }),
12761
- /* @__PURE__ */ a("span", { className: ue.optionLabel, children: _.label })
12762
- ] }, _.id)) }),
12771
+ /* @__PURE__ */ a("span", { className: ue.optionLabel, children: v.label })
12772
+ ] }, v.id)) }),
12763
12773
  u && /* @__PURE__ */ a("div", { className: ue.errorMessage, children: u }),
12764
12774
  /* @__PURE__ */ a(
12765
12775
  Bs,
@@ -12767,7 +12777,7 @@ const Bs = pp(wp, {
12767
12777
  sitekey: o,
12768
12778
  theme: "light",
12769
12779
  size: "normal",
12770
- onChange: (_) => p(_ ?? ""),
12780
+ onChange: (v) => p(v ?? ""),
12771
12781
  onExpired: () => p("")
12772
12782
  }
12773
12783
  ),
@@ -12907,7 +12917,7 @@ async function $p({
12907
12917
  const w = `${g}${h}/newcomments/get?${A.toString()}`;
12908
12918
  try {
12909
12919
  console.log("Fetching comments from:", w);
12910
- const { data: _ } = await se.get(w, {
12920
+ const { data: v } = await se.get(w, {
12911
12921
  headers: {
12912
12922
  "x-api-token": c,
12913
12923
  "Cache-Control": "max-age=0, no-cache, no-store, must-revalidate",
@@ -12915,15 +12925,15 @@ async function $p({
12915
12925
  Expires: "0"
12916
12926
  }
12917
12927
  });
12918
- if (!_)
12928
+ if (!v)
12919
12929
  throw new Error("No comments data received");
12920
- return _.data || _ || [];
12921
- } catch (_) {
12922
- if (console.error("Error fetching comments:", _), se.isAxiosError(_)) {
12923
- const N = _.response?.status, b = _.response?.data;
12924
- throw N === 404 ? new Error("Comments not found") : N === 403 ? new Error("Access forbidden - check API token") : N === 401 ? new Error("Unauthorized - invalid API token") : N === 500 ? new Error("Internal server error from CMS") : new Error(b?.error || b?.message || `HTTP ${N}: Failed to fetch comments`);
12930
+ return v.data || v || [];
12931
+ } catch (v) {
12932
+ if (console.error("Error fetching comments:", v), se.isAxiosError(v)) {
12933
+ const N = v.response?.status, _ = v.response?.data;
12934
+ throw N === 404 ? new Error("Comments not found") : N === 403 ? new Error("Access forbidden - check API token") : N === 401 ? new Error("Unauthorized - invalid API token") : N === 500 ? new Error("Internal server error from CMS") : new Error(_?.error || _?.message || `HTTP ${N}: Failed to fetch comments`);
12925
12935
  }
12926
- throw _;
12936
+ throw v;
12927
12937
  }
12928
12938
  }
12929
12939
  const { PUBLIC_PUBLICATION_ID: Wp } = Y(), Yp = Wp, Kp = (e) => {
@@ -13214,10 +13224,10 @@ const { PUBLIC_PUBLICATION_ID: Wp } = Y(), Yp = Wp, Kp = (e) => {
13214
13224
  ] }) });
13215
13225
  }, t9 = ({ comment: e, replyingTo: t, path: n, user: r, handleReplyingTo: s, onFlag: o, CAPTCHA_KEY_V2: i }) => {
13216
13226
  const c = { morereply: e.morereply ?? !1, reply: e.reply ? e.reply : [] }, [d, l] = K(c), [u, h] = Te.useState(!1), { PUBLIC_PUBLICATION_ID: m, PUBLIC_X_SECURITY_TOKEN: p } = Y(), g = e.text, A = Te.useRef(null);
13217
- let w = `${Ke.firstname} ${Ke.lastname}`, _ = Ke.username;
13218
- e.user && (w = `${e.user.firstname} ${e.user.lastname}`, _ = e.user.username);
13219
- const N = (b) => {
13220
- l({ morereply: d.morereply, reply: [b, ...d.reply] });
13227
+ let w = `${Ke.firstname} ${Ke.lastname}`, v = Ke.username;
13228
+ e.user && (w = `${e.user.firstname} ${e.user.lastname}`, v = e.user.username);
13229
+ const N = (_) => {
13230
+ l({ morereply: d.morereply, reply: [_, ...d.reply] });
13221
13231
  };
13222
13232
  return /* @__PURE__ */ a("div", { className: "comment-item", children: /* @__PURE__ */ f(
13223
13233
  "div",
@@ -13229,7 +13239,7 @@ const { PUBLIC_PUBLICATION_ID: Wp } = Y(), Yp = Wp, Kp = (e) => {
13229
13239
  /* @__PURE__ */ f("div", { style: { flex: 1 }, children: [
13230
13240
  /* @__PURE__ */ a(Os, { username: w, date: e.date.time }),
13231
13241
  /* @__PURE__ */ a("p", { className: "comment-text", children: g }),
13232
- r?.username.toLowerCase() !== _.toLowerCase() && // No puedes responder ni reportar tus respuestas
13242
+ r?.username.toLowerCase() !== v.toLowerCase() && // No puedes responder ni reportar tus respuestas
13233
13243
  /* @__PURE__ */ a(
13234
13244
  Ds,
13235
13245
  {
@@ -13250,37 +13260,37 @@ const { PUBLIC_PUBLICATION_ID: Wp } = Y(), Yp = Wp, Kp = (e) => {
13250
13260
  }
13251
13261
  ),
13252
13262
  d.reply.length > 0 && /* @__PURE__ */ f("div", { className: "comment-replies", children: [
13253
- d.reply.map((b) => /* @__PURE__ */ a(
13263
+ d.reply.map((_) => /* @__PURE__ */ a(
13254
13264
  e9,
13255
13265
  {
13256
13266
  user: r,
13257
- reply: b,
13267
+ reply: _,
13258
13268
  replyingTo: w,
13259
13269
  onFlag: o
13260
13270
  },
13261
- b.id
13271
+ _.id
13262
13272
  )),
13263
13273
  u ? /* @__PURE__ */ a("div", { style: { marginLeft: "4rem", position: "relative" }, children: /* @__PURE__ */ a(Je, {}) }) : d.morereply && /* @__PURE__ */ a(
13264
13274
  "button",
13265
13275
  {
13266
13276
  className: "comment-replies-button reply-button",
13267
13277
  onClick: async () => {
13268
- const b = d.reply[d.reply.length - 1]?.id;
13278
+ const _ = d.reply[d.reply.length - 1]?.id;
13269
13279
  h(!0);
13270
13280
  try {
13271
- const v = await Ua({
13281
+ const b = await Ua({
13272
13282
  publication: m ?? "",
13273
13283
  path: n ?? "",
13274
13284
  size: 2,
13275
13285
  sizereply: 2,
13276
13286
  id: e.id,
13277
- lastid: b,
13287
+ lastid: _,
13278
13288
  state: "5,6",
13279
13289
  apiToken: p ?? ""
13280
13290
  });
13281
- h(!1), l({ morereply: v.morecomment, reply: [...d.reply, ...v.comments] });
13282
- } catch (E) {
13283
- throw h(!1), new Error(`Error al obtener comentarios: ${E}`);
13291
+ h(!1), l({ morereply: b.morecomment, reply: [...d.reply, ...b.comments] });
13292
+ } catch (x) {
13293
+ throw h(!1), new Error(`Error al obtener comentarios: ${x}`);
13284
13294
  }
13285
13295
  },
13286
13296
  children: "Más Respuestas"
@@ -13347,23 +13357,23 @@ const { PUBLIC_PUBLICATION_ID: Wp } = Y(), Yp = Wp, Kp = (e) => {
13347
13357
  }) => {
13348
13358
  const o = t.replaceAll("/", "|"), [i, c] = K(
13349
13359
  void 0
13350
- ), [d, l] = K(""), { comments: u, setComments: h } = Kp(o), [m, p] = Te.useState(!1), g = Te.useRef(null), A = (x) => {
13351
- l(d === x ? "" : x);
13352
- }, w = (x) => {
13360
+ ), [d, l] = K(""), { comments: u, setComments: h } = Kp(o), [m, p] = Te.useState(!1), g = Te.useRef(null), A = (E) => {
13361
+ l(d === E ? "" : E);
13362
+ }, w = (E) => {
13353
13363
  h(
13354
13364
  u ? {
13355
13365
  ...u,
13356
- comments: [x, ...u.comments ?? []]
13366
+ comments: [E, ...u.comments ?? []]
13357
13367
  } : void 0
13358
13368
  );
13359
- }, _ = (x) => {
13360
- c(x);
13369
+ }, v = (E) => {
13370
+ c(E);
13361
13371
  }, N = async () => {
13362
13372
  if (!u || !u.morecomment || u.comments.length === 0) return;
13363
- const x = u.comments[u.comments.length - 1];
13364
- if (!x) return;
13373
+ const E = u.comments[u.comments.length - 1];
13374
+ if (!E) return;
13365
13375
  p(!0);
13366
- const O = x.id;
13376
+ const O = E.id;
13367
13377
  try {
13368
13378
  const Q = await Ua({
13369
13379
  publication: Or,
@@ -13382,16 +13392,16 @@ const { PUBLIC_PUBLICATION_ID: Wp } = Y(), Yp = Wp, Kp = (e) => {
13382
13392
  } catch (Q) {
13383
13393
  throw p(!1), new Error(`Error al obtener comentarios: ${Q}`);
13384
13394
  }
13385
- }, b = u?.comments && u.comments.length > 0, E = b ? "Comparte tu opinión de este artículo." : "Se el primero en compartir tu opinión de este artículo.", v = /* @__PURE__ */ a("div", { style: { display: "flex", width: "100%", justifyContent: "center" }, children: /* @__PURE__ */ a(Je, {}) });
13395
+ }, _ = u?.comments && u.comments.length > 0, x = _ ? "Comparte tu opinión de este artículo." : "Se el primero en compartir tu opinión de este artículo.", b = /* @__PURE__ */ a("div", { style: { display: "flex", width: "100%", justifyContent: "center" }, children: /* @__PURE__ */ a(Je, {}) });
13386
13396
  return /* @__PURE__ */ f(J, { children: [
13387
- /* @__PURE__ */ a("div", { className: "comments-container", children: /* @__PURE__ */ a(ge, { title: b || e ? "COMENTARIOS" : !1, children: /* @__PURE__ */ f(J, { children: [
13397
+ /* @__PURE__ */ a("div", { className: "comments-container", children: /* @__PURE__ */ a(ge, { title: _ || e ? "COMENTARIOS" : !1, children: /* @__PURE__ */ f(J, { children: [
13388
13398
  e && n && /* @__PURE__ */ f("div", { className: "comments-header", children: [
13389
13399
  /* @__PURE__ */ a(
13390
13400
  Ug,
13391
13401
  {
13392
13402
  user: n,
13393
13403
  handleLogout: r,
13394
- message: E
13404
+ message: x
13395
13405
  }
13396
13406
  ),
13397
13407
  /* @__PURE__ */ a(
@@ -13411,23 +13421,23 @@ const { PUBLIC_PUBLICATION_ID: Wp } = Y(), Yp = Wp, Kp = (e) => {
13411
13421
  className: "comments-list",
13412
13422
  "data-isauthenticated": `${e}`,
13413
13423
  children: [
13414
- u.comments.map((x) => /* @__PURE__ */ a(
13424
+ u.comments.map((E) => /* @__PURE__ */ a(
13415
13425
  t9,
13416
13426
  {
13417
- comment: x,
13427
+ comment: E,
13418
13428
  replyingTo: d,
13419
13429
  handleReplyingTo: A,
13420
- onFlag: _,
13430
+ onFlag: v,
13421
13431
  user: n ?? Ke,
13422
13432
  path: o,
13423
13433
  CAPTCHA_KEY_V2: s.CAPTCHA_KEY_V2
13424
13434
  },
13425
- x.id
13435
+ E.id
13426
13436
  )),
13427
- m && v
13437
+ m && b
13428
13438
  ]
13429
13439
  }
13430
- ) : null : v,
13440
+ ) : null : b,
13431
13441
  u?.morecomment && !m && /* @__PURE__ */ a(
13432
13442
  "button",
13433
13443
  {
@@ -13499,10 +13509,10 @@ const { PUBLIC_PUBLICATION_ID: Wp } = Y(), Yp = Wp, Kp = (e) => {
13499
13509
  function o9({ goToLogin: e, handleGoogleLogin: t, CAPTCHA_KEY: n }) {
13500
13510
  const [r, s] = K({}), [o, i] = K(!1), [c, d] = K(!1), [l, u] = K(null), [h, m] = K(
13501
13511
  "register"
13502
- ), p = (_, N) => {
13503
- s((b) => ({ ...b, [_]: N }));
13504
- }, g = async (_) => {
13505
- _.preventDefault(), u(null), d(!0);
13512
+ ), p = (v, N) => {
13513
+ s((_) => ({ ..._, [v]: N }));
13514
+ }, g = async (v) => {
13515
+ v.preventDefault(), u(null), d(!0);
13506
13516
  try {
13507
13517
  const N = Object.keys(Pr).filter((Q) => !["username", "password", "confirmPassword"].includes(Q)).map((Q) => ({ Name: Q, Value: r[Q] }));
13508
13518
  if (N.some((Q) => {
@@ -13513,23 +13523,23 @@ function o9({ goToLogin: e, handleGoogleLogin: t, CAPTCHA_KEY: n }) {
13513
13523
  u("Las contraseñas no coinciden");
13514
13524
  return;
13515
13525
  }
13516
- const b = r.password || "";
13526
+ const _ = r.password || "";
13517
13527
  if (Cn.some(
13518
- (Q) => !Q.test(b)
13528
+ (Q) => !Q.test(_)
13519
13529
  )) {
13520
13530
  u("La contraseña no es válida");
13521
13531
  return;
13522
13532
  }
13523
- const v = Math.floor(Date.now() / 1e3);
13524
- N.push({ Name: "updated_at", Value: String(v) });
13525
- const x = "token", O = await fetch("/api/auth/create-user", {
13533
+ const b = Math.floor(Date.now() / 1e3);
13534
+ N.push({ Name: "updated_at", Value: String(b) });
13535
+ const E = "token", O = await fetch("/api/auth/create-user", {
13526
13536
  method: "POST",
13527
13537
  headers: { "Content-Type": "application/json" },
13528
13538
  body: JSON.stringify({
13529
13539
  username: r.email,
13530
13540
  password: r.password,
13531
13541
  userAttributes: N,
13532
- token: x
13542
+ token: E
13533
13543
  })
13534
13544
  });
13535
13545
  if (!O.ok) {
@@ -13550,8 +13560,8 @@ function o9({ goToLogin: e, handleGoogleLogin: t, CAPTCHA_KEY: n }) {
13550
13560
  } finally {
13551
13561
  d(!1);
13552
13562
  }
13553
- }, A = async (_) => {
13554
- if (_.preventDefault(), !r.confirmationCode) {
13563
+ }, A = async (v) => {
13564
+ if (v.preventDefault(), !r.confirmationCode) {
13555
13565
  u("Debes ingresar el código de verificación");
13556
13566
  return;
13557
13567
  }
@@ -13566,8 +13576,8 @@ function o9({ goToLogin: e, handleGoogleLogin: t, CAPTCHA_KEY: n }) {
13566
13576
  })
13567
13577
  });
13568
13578
  if (!N.ok) {
13569
- const b = await N.json().catch(() => ({}));
13570
- throw new Error(b?.error || "Error al confirmar usuario");
13579
+ const _ = await N.json().catch(() => ({}));
13580
+ throw new Error(_?.error || "Error al confirmar usuario");
13571
13581
  }
13572
13582
  m("success");
13573
13583
  } catch (N) {
@@ -13597,41 +13607,41 @@ function o9({ goToLogin: e, handleGoogleLogin: t, CAPTCHA_KEY: n }) {
13597
13607
  className: k.form,
13598
13608
  "data-error": l ? "true" : "false",
13599
13609
  children: [
13600
- /* @__PURE__ */ a("ul", { className: k.formUl, children: Object.entries(Pr).map(([_, { label: N }]) => /* @__PURE__ */ f("div", { className: k.field, children: [
13610
+ /* @__PURE__ */ a("ul", { className: k.formUl, children: Object.entries(Pr).map(([v, { label: N }]) => /* @__PURE__ */ f("div", { className: k.field, children: [
13601
13611
  /* @__PURE__ */ a("label", { className: k.label, children: N }),
13602
13612
  /* @__PURE__ */ a(
13603
13613
  "input",
13604
13614
  {
13605
- type: _.toLowerCase().includes("password") ? o ? "text" : "password" : _ === "birthdate" ? "date" : _ === "email" ? "email" : _ === "phone_number" ? "tel" : "text",
13606
- name: _,
13607
- value: r[_] || "",
13608
- onChange: (b) => p(_, b.target.value),
13615
+ type: v.toLowerCase().includes("password") ? o ? "text" : "password" : v === "birthdate" ? "date" : v === "email" ? "email" : v === "phone_number" ? "tel" : "text",
13616
+ name: v,
13617
+ value: r[v] || "",
13618
+ onChange: (_) => p(v, _.target.value),
13609
13619
  className: k.input,
13610
13620
  placeholder: ""
13611
13621
  }
13612
13622
  ),
13613
- _ === "password" && /* @__PURE__ */ a("div", { className: k.passwordChecker, children: Cn.map((b, E) => {
13614
- const v = b.test(w);
13623
+ v === "password" && /* @__PURE__ */ a("div", { className: k.passwordChecker, children: Cn.map((_, x) => {
13624
+ const b = _.test(w);
13615
13625
  return /* @__PURE__ */ f(
13616
13626
  "div",
13617
13627
  {
13618
- className: v ? k.valid : k.invalid,
13628
+ className: b ? k.valid : k.invalid,
13619
13629
  children: [
13620
- /* @__PURE__ */ a("div", { children: v ? "✔" : "○" }),
13621
- /* @__PURE__ */ a("div", { children: b.label })
13630
+ /* @__PURE__ */ a("div", { children: b ? "✔" : "○" }),
13631
+ /* @__PURE__ */ a("div", { children: _.label })
13622
13632
  ]
13623
13633
  },
13624
- E
13634
+ x
13625
13635
  );
13626
13636
  }) }),
13627
- _ === "confirmPassword" && /* @__PURE__ */ f("div", { className: k.checkboxRow, children: [
13637
+ v === "confirmPassword" && /* @__PURE__ */ f("div", { className: k.checkboxRow, children: [
13628
13638
  /* @__PURE__ */ a(
13629
13639
  "input",
13630
13640
  {
13631
13641
  id: "showPasswordRegister",
13632
13642
  type: "checkbox",
13633
13643
  checked: o,
13634
- onChange: (b) => i(b.target.checked)
13644
+ onChange: (_) => i(_.target.checked)
13635
13645
  }
13636
13646
  ),
13637
13647
  /* @__PURE__ */ a(
@@ -13643,7 +13653,7 @@ function o9({ goToLogin: e, handleGoogleLogin: t, CAPTCHA_KEY: n }) {
13643
13653
  }
13644
13654
  )
13645
13655
  ] })
13646
- ] }, _)) }),
13656
+ ] }, v)) }),
13647
13657
  l && /* @__PURE__ */ a("p", { className: k.error, children: l }),
13648
13658
  /* @__PURE__ */ f("p", { className: k.terms, children: [
13649
13659
  "Al continuar, confirmo que he leído y aceptado los",
@@ -13670,7 +13680,7 @@ function o9({ goToLogin: e, handleGoogleLogin: t, CAPTCHA_KEY: n }) {
13670
13680
  type: "text",
13671
13681
  name: "confirmationCode",
13672
13682
  value: r.confirmationCode || "",
13673
- onChange: (_) => p("confirmationCode", _.target.value),
13683
+ onChange: (v) => p("confirmationCode", v.target.value),
13674
13684
  className: k.input,
13675
13685
  required: !0
13676
13686
  }
@@ -13723,44 +13733,44 @@ function i9({
13723
13733
  handleGoogleLogin: r,
13724
13734
  CAPTCHA_KEY: s
13725
13735
  }) {
13726
- const [o, i] = K("login"), [c, d] = K(""), [l, u] = K(""), [h, m] = K(""), [p, g] = K(""), [A, w] = K(""), [_, N] = K(!1), [b, E] = K(!1), [v, x] = K(null);
13736
+ const [o, i] = K("login"), [c, d] = K(""), [l, u] = K(""), [h, m] = K(""), [p, g] = K(""), [A, w] = K(""), [v, N] = K(!1), [_, x] = K(!1), [b, E] = K(null);
13727
13737
  return console.log("CAPTCHA_KEY", s), /* @__PURE__ */ f(J, { children: [
13728
13738
  o === "login" && /* @__PURE__ */ a(
13729
13739
  c9,
13730
13740
  {
13731
13741
  email: c,
13732
13742
  password: l,
13733
- showPassword: _,
13734
- loading: b,
13735
- error: v,
13743
+ showPassword: v,
13744
+ loading: _,
13745
+ error: b,
13736
13746
  setEmail: d,
13737
13747
  setPassword: u,
13738
13748
  setShowPassword: N,
13739
13749
  onSubmit: async (G) => {
13740
- if (!b) {
13741
- G.preventDefault(), x(null), E(!0);
13750
+ if (!_) {
13751
+ G.preventDefault(), E(null), x(!0);
13742
13752
  try {
13743
13753
  console.log(!0, s);
13744
- const P = "token", te = await fetch("/api/auth/login-password", {
13754
+ const P = "token", ee = await fetch("/api/auth/login-password", {
13745
13755
  method: "POST",
13746
13756
  headers: { "Content-Type": "application/json" },
13747
13757
  credentials: "include",
13748
13758
  body: JSON.stringify({ email: c, password: l, token: P })
13749
13759
  });
13750
- if (!te.ok) {
13751
- const ce = await te.json().catch(() => ({}));
13760
+ if (!ee.ok) {
13761
+ const ce = await ee.json().catch(() => ({}));
13752
13762
  throw new Error(ce?.error || "Ha ocurrido un error");
13753
13763
  }
13754
13764
  e(), await t();
13755
13765
  } catch (P) {
13756
- x(P?.message || "Error inesperado");
13766
+ E(P?.message || "Error inesperado");
13757
13767
  } finally {
13758
- E(!1);
13768
+ x(!1);
13759
13769
  }
13760
13770
  }
13761
13771
  },
13762
13772
  onForgot: () => {
13763
- x(null), i("forgot");
13773
+ E(null), i("forgot");
13764
13774
  },
13765
13775
  onRegister: n,
13766
13776
  handleGoogleLogin: r
@@ -13771,11 +13781,11 @@ function i9({
13771
13781
  {
13772
13782
  email: c,
13773
13783
  setEmail: d,
13774
- loading: b,
13775
- error: v,
13784
+ loading: _,
13785
+ error: b,
13776
13786
  onSubmit: async (G) => {
13777
- if (!b) {
13778
- G.preventDefault(), x(null), E(!0);
13787
+ if (!_) {
13788
+ G.preventDefault(), E(null), x(!0);
13779
13789
  try {
13780
13790
  const P = await fetch("/api/auth/forgot-password", {
13781
13791
  method: "POST",
@@ -13783,19 +13793,19 @@ function i9({
13783
13793
  body: JSON.stringify({ email: c })
13784
13794
  });
13785
13795
  if (!P.ok) {
13786
- const te = await P.json().catch(() => ({}));
13787
- throw new Error(te?.error || "Error al enviar código");
13796
+ const ee = await P.json().catch(() => ({}));
13797
+ throw new Error(ee?.error || "Error al enviar código");
13788
13798
  }
13789
13799
  u(""), i("changePassword");
13790
13800
  } catch (P) {
13791
- x(P?.message || "Error inesperado");
13801
+ E(P?.message || "Error inesperado");
13792
13802
  } finally {
13793
- E(!1);
13803
+ x(!1);
13794
13804
  }
13795
13805
  }
13796
13806
  },
13797
13807
  onBack: () => {
13798
- x(null), i("login");
13808
+ E(null), i("login");
13799
13809
  }
13800
13810
  }
13801
13811
  ),
@@ -13806,45 +13816,45 @@ function i9({
13806
13816
  confirmationCode: h,
13807
13817
  newPassword: p,
13808
13818
  confirmNewPassword: A,
13809
- showPassword: _,
13810
- loading: b,
13811
- error: v,
13819
+ showPassword: v,
13820
+ loading: _,
13821
+ error: b,
13812
13822
  setConfirmationCode: m,
13813
13823
  setNewPassword: g,
13814
13824
  setConfirmNewPassword: w,
13815
13825
  setShowPassword: N,
13816
13826
  onSubmit: async (G) => {
13817
- if (b) return;
13827
+ if (_) return;
13818
13828
  if (G.preventDefault(), p !== A) {
13819
- x("Las contraseñas no coinciden");
13829
+ E("Las contraseñas no coinciden");
13820
13830
  return;
13821
13831
  }
13822
13832
  if (Cn.some(
13823
- (te) => !te.test(p)
13833
+ (ee) => !ee.test(p)
13824
13834
  )) {
13825
- x("La contraseña no cumple con los requisitos");
13835
+ E("La contraseña no cumple con los requisitos");
13826
13836
  return;
13827
13837
  }
13828
- x(null), E(!0);
13838
+ E(null), x(!0);
13829
13839
  try {
13830
- const te = await fetch("/api/auth/confirm-forgot-password", {
13840
+ const ee = await fetch("/api/auth/confirm-forgot-password", {
13831
13841
  method: "POST",
13832
13842
  headers: { "Content-Type": "application/json" },
13833
13843
  body: JSON.stringify({ email: c, code: h, newPassword: p })
13834
13844
  });
13835
- if (!te.ok) {
13836
- const ce = await te.json().catch(() => ({}));
13845
+ if (!ee.ok) {
13846
+ const ce = await ee.json().catch(() => ({}));
13837
13847
  throw new Error(ce?.error || "Error al cambiar contraseña");
13838
13848
  }
13839
13849
  i("feedback");
13840
- } catch (te) {
13841
- x(te?.message || "Error inesperado");
13850
+ } catch (ee) {
13851
+ E(ee?.message || "Error inesperado");
13842
13852
  } finally {
13843
- E(!1);
13853
+ x(!1);
13844
13854
  }
13845
13855
  },
13846
13856
  onBack: () => {
13847
- x(null), i("forgot");
13857
+ E(null), i("forgot");
13848
13858
  }
13849
13859
  }
13850
13860
  ),
@@ -13852,7 +13862,7 @@ function i9({
13852
13862
  u9,
13853
13863
  {
13854
13864
  onBackToLogin: () => {
13855
- x(null), i("login");
13865
+ E(null), i("login");
13856
13866
  }
13857
13867
  }
13858
13868
  )