sass-template-common 0.9.146 → 0.9.147
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.
- package/dist/sass-template-common.js +755 -747
- package/dist/sass-template-common.umd.cjs +26 -26
- package/package.json +1 -1
|
@@ -184,35 +184,35 @@ function Vn() {
|
|
|
184
184
|
(function(s, a) {
|
|
185
185
|
e.exports = a();
|
|
186
186
|
})(Wa, (function() {
|
|
187
|
-
var s = 1e3, a = 6e4, r = 36e5, i = "millisecond", o = "second", l = "minute", u = "hour", c = "day", d = "week", m = "month", h = "quarter",
|
|
187
|
+
var s = 1e3, a = 6e4, r = 36e5, i = "millisecond", o = "second", l = "minute", u = "hour", c = "day", d = "week", m = "month", h = "quarter", A = "year", f = "date", p = "Invalid Date", w = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, 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, C = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(q) {
|
|
188
188
|
var U = ["th", "st", "nd", "rd"], x = q % 100;
|
|
189
189
|
return "[" + q + (U[(x - 20) % 10] || U[x] || U[0]) + "]";
|
|
190
|
-
} },
|
|
190
|
+
} }, N = function(q, U, x) {
|
|
191
191
|
var D = String(q);
|
|
192
192
|
return !D || D.length >= U ? q : "" + Array(U + 1 - D.length).join(x) + q;
|
|
193
|
-
}, E = { s:
|
|
193
|
+
}, E = { s: N, z: function(q) {
|
|
194
194
|
var U = -q.utcOffset(), x = Math.abs(U), D = Math.floor(x / 60), L = x % 60;
|
|
195
|
-
return (U <= 0 ? "+" : "-") +
|
|
195
|
+
return (U <= 0 ? "+" : "-") + N(D, 2, "0") + ":" + N(L, 2, "0");
|
|
196
196
|
}, m: function q(U, x) {
|
|
197
197
|
if (U.date() < x.date()) return -q(x, U);
|
|
198
|
-
var D = 12 * (x.year() - U.year()) + (x.month() - U.month()), L = U.clone().add(D, m),
|
|
199
|
-
return +(-(D + (x - L) / (
|
|
198
|
+
var D = 12 * (x.year() - U.year()) + (x.month() - U.month()), L = U.clone().add(D, m), z = x - L < 0, y = U.clone().add(D + (z ? -1 : 1), m);
|
|
199
|
+
return +(-(D + (x - L) / (z ? L - y : y - L)) || 0);
|
|
200
200
|
}, a: function(q) {
|
|
201
201
|
return q < 0 ? Math.ceil(q) || 0 : Math.floor(q);
|
|
202
202
|
}, p: function(q) {
|
|
203
|
-
return { M: m, y:
|
|
203
|
+
return { M: m, y: A, w: d, d: c, D: f, h: u, m: l, s: o, ms: i, Q: h }[q] || String(q || "").toLowerCase().replace(/s$/, "");
|
|
204
204
|
}, u: function(q) {
|
|
205
205
|
return q === void 0;
|
|
206
206
|
} }, b = "en", I = {};
|
|
207
207
|
I[b] = C;
|
|
208
208
|
var k = "$isDayjsObject", Q = function(q) {
|
|
209
209
|
return q instanceof V || !(!q || !q[k]);
|
|
210
|
-
},
|
|
210
|
+
}, F = function q(U, x, D) {
|
|
211
211
|
var L;
|
|
212
212
|
if (!U) return b;
|
|
213
213
|
if (typeof U == "string") {
|
|
214
|
-
var
|
|
215
|
-
I[
|
|
214
|
+
var z = U.toLowerCase();
|
|
215
|
+
I[z] && (L = z), x && (I[z] = x, L = z);
|
|
216
216
|
var y = U.split("-");
|
|
217
217
|
if (!L && y.length > 1) return q(y[0]);
|
|
218
218
|
} else {
|
|
@@ -225,17 +225,17 @@ function Vn() {
|
|
|
225
225
|
var x = typeof U == "object" ? U : {};
|
|
226
226
|
return x.date = q, x.args = arguments, new V(x);
|
|
227
227
|
}, R = E;
|
|
228
|
-
R.l =
|
|
228
|
+
R.l = F, R.i = Q, R.w = function(q, U) {
|
|
229
229
|
return j(q, { locale: U.$L, utc: U.$u, x: U.$x, $offset: U.$offset });
|
|
230
230
|
};
|
|
231
231
|
var V = (function() {
|
|
232
232
|
function q(x) {
|
|
233
|
-
this.$L =
|
|
233
|
+
this.$L = F(x.locale, null, !0), this.parse(x), this.$x = this.$x || x.x || {}, this[k] = !0;
|
|
234
234
|
}
|
|
235
235
|
var U = q.prototype;
|
|
236
236
|
return U.parse = function(x) {
|
|
237
237
|
this.$d = (function(D) {
|
|
238
|
-
var L = D.date,
|
|
238
|
+
var L = D.date, z = D.utc;
|
|
239
239
|
if (L === null) return /* @__PURE__ */ new Date(NaN);
|
|
240
240
|
if (R.u(L)) return /* @__PURE__ */ new Date();
|
|
241
241
|
if (L instanceof Date) return new Date(L);
|
|
@@ -243,7 +243,7 @@ function Vn() {
|
|
|
243
243
|
var y = L.match(w);
|
|
244
244
|
if (y) {
|
|
245
245
|
var T = y[2] - 1 || 0, O = (y[7] || "0").substring(0, 3);
|
|
246
|
-
return
|
|
246
|
+
return z ? new Date(Date.UTC(y[1], T, y[3] || 1, y[4] || 0, y[5] || 0, y[6] || 0, O)) : new Date(y[1], T, y[3] || 1, y[4] || 0, y[5] || 0, y[6] || 0, O);
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
return new Date(L);
|
|
@@ -254,7 +254,7 @@ function Vn() {
|
|
|
254
254
|
}, U.$utils = function() {
|
|
255
255
|
return R;
|
|
256
256
|
}, U.isValid = function() {
|
|
257
|
-
return this.$d.toString() !==
|
|
257
|
+
return this.$d.toString() !== p;
|
|
258
258
|
}, U.isSame = function(x, D) {
|
|
259
259
|
var L = j(x);
|
|
260
260
|
return this.startOf(D) <= L && L <= this.endOf(D);
|
|
@@ -269,37 +269,37 @@ function Vn() {
|
|
|
269
269
|
}, U.valueOf = function() {
|
|
270
270
|
return this.$d.getTime();
|
|
271
271
|
}, U.startOf = function(x, D) {
|
|
272
|
-
var L = this,
|
|
272
|
+
var L = this, z = !!R.u(D) || D, y = R.p(x), T = function(te, $) {
|
|
273
273
|
var oe = R.w(L.$u ? Date.UTC(L.$y, $, te) : new Date(L.$y, $, te), L);
|
|
274
|
-
return
|
|
274
|
+
return z ? oe : oe.endOf(c);
|
|
275
275
|
}, O = function(te, $) {
|
|
276
|
-
return R.w(L.toDate()[te].apply(L.toDate("s"), (
|
|
277
|
-
}, G = this.$W, _ = this.$M, H = this.$D,
|
|
276
|
+
return R.w(L.toDate()[te].apply(L.toDate("s"), (z ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice($)), L);
|
|
277
|
+
}, G = this.$W, _ = this.$M, H = this.$D, W = "set" + (this.$u ? "UTC" : "");
|
|
278
278
|
switch (y) {
|
|
279
|
-
case
|
|
280
|
-
return
|
|
279
|
+
case A:
|
|
280
|
+
return z ? T(1, 0) : T(31, 11);
|
|
281
281
|
case m:
|
|
282
|
-
return
|
|
282
|
+
return z ? T(1, _) : T(0, _ + 1);
|
|
283
283
|
case d:
|
|
284
284
|
var Y = this.$locale().weekStart || 0, ee = (G < Y ? G + 7 : G) - Y;
|
|
285
|
-
return T(
|
|
285
|
+
return T(z ? H - ee : H + (6 - ee), _);
|
|
286
286
|
case c:
|
|
287
287
|
case f:
|
|
288
|
-
return O(
|
|
288
|
+
return O(W + "Hours", 0);
|
|
289
289
|
case u:
|
|
290
|
-
return O(
|
|
290
|
+
return O(W + "Minutes", 1);
|
|
291
291
|
case l:
|
|
292
|
-
return O(
|
|
292
|
+
return O(W + "Seconds", 2);
|
|
293
293
|
case o:
|
|
294
|
-
return O(
|
|
294
|
+
return O(W + "Milliseconds", 3);
|
|
295
295
|
default:
|
|
296
296
|
return this.clone();
|
|
297
297
|
}
|
|
298
298
|
}, U.endOf = function(x) {
|
|
299
299
|
return this.startOf(x, !1);
|
|
300
300
|
}, U.$set = function(x, D) {
|
|
301
|
-
var L,
|
|
302
|
-
if (
|
|
301
|
+
var L, z = R.p(x), y = "set" + (this.$u ? "UTC" : ""), T = (L = {}, L[c] = y + "Date", L[f] = y + "Date", L[m] = y + "Month", L[A] = y + "FullYear", L[u] = y + "Hours", L[l] = y + "Minutes", L[o] = y + "Seconds", L[i] = y + "Milliseconds", L)[z], O = z === c ? this.$D + (D - this.$W) : D;
|
|
302
|
+
if (z === m || z === A) {
|
|
303
303
|
var G = this.clone().set(f, 1);
|
|
304
304
|
G.$d[T](O), G.init(), this.$d = G.set(f, Math.min(this.$D, G.daysInMonth())).$d;
|
|
305
305
|
} else T && this.$d[T](O);
|
|
@@ -309,14 +309,14 @@ function Vn() {
|
|
|
309
309
|
}, U.get = function(x) {
|
|
310
310
|
return this[R.p(x)]();
|
|
311
311
|
}, U.add = function(x, D) {
|
|
312
|
-
var L,
|
|
312
|
+
var L, z = this;
|
|
313
313
|
x = Number(x);
|
|
314
314
|
var y = R.p(D), T = function(_) {
|
|
315
|
-
var H = j(
|
|
316
|
-
return R.w(H.date(H.date() + Math.round(_ * x)),
|
|
315
|
+
var H = j(z);
|
|
316
|
+
return R.w(H.date(H.date() + Math.round(_ * x)), z);
|
|
317
317
|
};
|
|
318
318
|
if (y === m) return this.set(m, this.$M + x);
|
|
319
|
-
if (y ===
|
|
319
|
+
if (y === A) return this.set(A, this.$y + x);
|
|
320
320
|
if (y === c) return T(1);
|
|
321
321
|
if (y === d) return T(7);
|
|
322
322
|
var O = (L = {}, L[l] = a, L[u] = r, L[o] = s, L)[y] || 1, G = this.$d.getTime() + x * O;
|
|
@@ -325,16 +325,16 @@ function Vn() {
|
|
|
325
325
|
return this.add(-1 * x, D);
|
|
326
326
|
}, U.format = function(x) {
|
|
327
327
|
var D = this, L = this.$locale();
|
|
328
|
-
if (!this.isValid()) return L.invalidDate ||
|
|
329
|
-
var
|
|
330
|
-
return $ && ($[oe] || $(D,
|
|
328
|
+
if (!this.isValid()) return L.invalidDate || p;
|
|
329
|
+
var z = x || "YYYY-MM-DDTHH:mm:ssZ", y = R.z(this), T = this.$H, O = this.$m, G = this.$M, _ = L.weekdays, H = L.months, W = L.meridiem, Y = function($, oe, M, me) {
|
|
330
|
+
return $ && ($[oe] || $(D, z)) || M[oe].slice(0, me);
|
|
331
331
|
}, ee = function($) {
|
|
332
332
|
return R.s(T % 12 || 12, $, "0");
|
|
333
|
-
}, te =
|
|
333
|
+
}, te = W || function($, oe, M) {
|
|
334
334
|
var me = $ < 12 ? "AM" : "PM";
|
|
335
335
|
return M ? me.toLowerCase() : me;
|
|
336
336
|
};
|
|
337
|
-
return
|
|
337
|
+
return z.replace(v, (function($, oe) {
|
|
338
338
|
return oe || (function(M) {
|
|
339
339
|
switch (M) {
|
|
340
340
|
case "YY":
|
|
@@ -392,46 +392,46 @@ function Vn() {
|
|
|
392
392
|
}, U.utcOffset = function() {
|
|
393
393
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
394
394
|
}, U.diff = function(x, D, L) {
|
|
395
|
-
var
|
|
395
|
+
var z, y = this, T = R.p(D), O = j(x), G = (O.utcOffset() - this.utcOffset()) * a, _ = this - O, H = function() {
|
|
396
396
|
return R.m(y, O);
|
|
397
397
|
};
|
|
398
398
|
switch (T) {
|
|
399
|
-
case
|
|
400
|
-
|
|
399
|
+
case A:
|
|
400
|
+
z = H() / 12;
|
|
401
401
|
break;
|
|
402
402
|
case m:
|
|
403
|
-
|
|
403
|
+
z = H();
|
|
404
404
|
break;
|
|
405
405
|
case h:
|
|
406
|
-
|
|
406
|
+
z = H() / 3;
|
|
407
407
|
break;
|
|
408
408
|
case d:
|
|
409
|
-
|
|
409
|
+
z = (_ - G) / 6048e5;
|
|
410
410
|
break;
|
|
411
411
|
case c:
|
|
412
|
-
|
|
412
|
+
z = (_ - G) / 864e5;
|
|
413
413
|
break;
|
|
414
414
|
case u:
|
|
415
|
-
|
|
415
|
+
z = _ / r;
|
|
416
416
|
break;
|
|
417
417
|
case l:
|
|
418
|
-
|
|
418
|
+
z = _ / a;
|
|
419
419
|
break;
|
|
420
420
|
case o:
|
|
421
|
-
|
|
421
|
+
z = _ / s;
|
|
422
422
|
break;
|
|
423
423
|
default:
|
|
424
|
-
|
|
424
|
+
z = _;
|
|
425
425
|
}
|
|
426
|
-
return L ?
|
|
426
|
+
return L ? z : R.a(z);
|
|
427
427
|
}, U.daysInMonth = function() {
|
|
428
428
|
return this.endOf(m).$D;
|
|
429
429
|
}, U.$locale = function() {
|
|
430
430
|
return I[this.$L];
|
|
431
431
|
}, U.locale = function(x, D) {
|
|
432
432
|
if (!x) return this.$L;
|
|
433
|
-
var L = this.clone(),
|
|
434
|
-
return
|
|
433
|
+
var L = this.clone(), z = F(x, D, !0);
|
|
434
|
+
return z && (L.$L = z), L;
|
|
435
435
|
}, U.clone = function() {
|
|
436
436
|
return R.w(this.$d, this);
|
|
437
437
|
}, U.toDate = function() {
|
|
@@ -444,13 +444,13 @@ function Vn() {
|
|
|
444
444
|
return this.$d.toUTCString();
|
|
445
445
|
}, q;
|
|
446
446
|
})(), se = V.prototype;
|
|
447
|
-
return j.prototype = se, [["$ms", i], ["$s", o], ["$m", l], ["$H", u], ["$W", c], ["$M", m], ["$y",
|
|
447
|
+
return j.prototype = se, [["$ms", i], ["$s", o], ["$m", l], ["$H", u], ["$W", c], ["$M", m], ["$y", A], ["$D", f]].forEach((function(q) {
|
|
448
448
|
se[q[1]] = function(U) {
|
|
449
449
|
return this.$g(U, q[0], q[1]);
|
|
450
450
|
};
|
|
451
451
|
})), j.extend = function(q, U) {
|
|
452
452
|
return q.$i || (q(U, V, j), q.$i = !0), j;
|
|
453
|
-
}, j.locale =
|
|
453
|
+
}, j.locale = F, j.isDayjs = Q, j.unix = function(q) {
|
|
454
454
|
return j(1e3 * q);
|
|
455
455
|
}, j.en = I[b], j.Ls = I, j.p = {}, j;
|
|
456
456
|
}));
|
|
@@ -470,21 +470,21 @@ function Ka() {
|
|
|
470
470
|
function l(c, d, m, h) {
|
|
471
471
|
return i.fromToBase(c, d, m, h);
|
|
472
472
|
}
|
|
473
|
-
r.en.relativeTime = o, i.fromToBase = function(c, d, m, h,
|
|
474
|
-
for (var f,
|
|
473
|
+
r.en.relativeTime = o, i.fromToBase = function(c, d, m, h, A) {
|
|
474
|
+
for (var f, p, w, v = m.$locale().relativeTime || o, C = s.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 = C.length, E = 0; E < N; E += 1) {
|
|
475
475
|
var b = C[E];
|
|
476
476
|
b.d && (f = h ? r(c).diff(m, b.d, !0) : m.diff(c, b.d, !0));
|
|
477
477
|
var I = (s.rounding || Math.round)(Math.abs(f));
|
|
478
478
|
if (w = f > 0, I <= b.r || !b.r) {
|
|
479
479
|
I <= 1 && E > 0 && (b = C[E - 1]);
|
|
480
480
|
var k = v[b.l];
|
|
481
|
-
|
|
481
|
+
A && (I = A("" + I)), p = typeof k == "string" ? k.replace("%d", I) : k(I, d, b.l, w);
|
|
482
482
|
break;
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
|
-
if (d) return
|
|
485
|
+
if (d) return p;
|
|
486
486
|
var Q = w ? v.future : v.past;
|
|
487
|
-
return typeof Q == "function" ? Q(
|
|
487
|
+
return typeof Q == "function" ? Q(p) : Q.replace("%s", p);
|
|
488
488
|
}, i.to = function(c, d) {
|
|
489
489
|
return l(c, d, this, !0);
|
|
490
490
|
}, i.from = function(c, d) {
|
|
@@ -530,51 +530,51 @@ function sr() {
|
|
|
530
530
|
var s = "minute", a = /[+-]\d\d(?::?\d\d)?/g, r = /([+-]|\d\d)/g;
|
|
531
531
|
return function(i, o, l) {
|
|
532
532
|
var u = o.prototype;
|
|
533
|
-
l.utc = function(
|
|
534
|
-
var w = { date:
|
|
533
|
+
l.utc = function(p) {
|
|
534
|
+
var w = { date: p, utc: !0, args: arguments };
|
|
535
535
|
return new o(w);
|
|
536
|
-
}, u.utc = function(
|
|
536
|
+
}, u.utc = function(p) {
|
|
537
537
|
var w = l(this.toDate(), { locale: this.$L, utc: !0 });
|
|
538
|
-
return
|
|
538
|
+
return p ? w.add(this.utcOffset(), s) : w;
|
|
539
539
|
}, u.local = function() {
|
|
540
540
|
return l(this.toDate(), { locale: this.$L, utc: !1 });
|
|
541
541
|
};
|
|
542
542
|
var c = u.parse;
|
|
543
|
-
u.parse = function(
|
|
544
|
-
|
|
543
|
+
u.parse = function(p) {
|
|
544
|
+
p.utc && (this.$u = !0), this.$utils().u(p.$offset) || (this.$offset = p.$offset), c.call(this, p);
|
|
545
545
|
};
|
|
546
546
|
var d = u.init;
|
|
547
547
|
u.init = function() {
|
|
548
548
|
if (this.$u) {
|
|
549
|
-
var
|
|
550
|
-
this.$y =
|
|
549
|
+
var p = this.$d;
|
|
550
|
+
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();
|
|
551
551
|
} else d.call(this);
|
|
552
552
|
};
|
|
553
553
|
var m = u.utcOffset;
|
|
554
|
-
u.utcOffset = function(
|
|
554
|
+
u.utcOffset = function(p, w) {
|
|
555
555
|
var v = this.$utils().u;
|
|
556
|
-
if (v(
|
|
557
|
-
if (typeof
|
|
556
|
+
if (v(p)) return this.$u ? 0 : v(this.$offset) ? m.call(this) : this.$offset;
|
|
557
|
+
if (typeof p == "string" && (p = (function(b) {
|
|
558
558
|
b === void 0 && (b = "");
|
|
559
559
|
var I = b.match(a);
|
|
560
560
|
if (!I) return null;
|
|
561
|
-
var k = ("" + I[0]).match(r) || ["-", 0, 0], Q = k[0],
|
|
562
|
-
return
|
|
563
|
-
})(
|
|
564
|
-
var C = Math.abs(
|
|
561
|
+
var k = ("" + I[0]).match(r) || ["-", 0, 0], Q = k[0], F = 60 * +k[1] + +k[2];
|
|
562
|
+
return F === 0 ? 0 : Q === "+" ? F : -F;
|
|
563
|
+
})(p), p === null)) return this;
|
|
564
|
+
var C = Math.abs(p) <= 16 ? 60 * p : p;
|
|
565
565
|
if (C === 0) return this.utc(w);
|
|
566
|
-
var
|
|
567
|
-
if (w) return
|
|
566
|
+
var N = this.clone();
|
|
567
|
+
if (w) return N.$offset = C, N.$u = !1, N;
|
|
568
568
|
var E = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
569
|
-
return (
|
|
569
|
+
return (N = this.local().add(C + E, s)).$offset = C, N.$x.$localOffset = E, N;
|
|
570
570
|
};
|
|
571
571
|
var h = u.format;
|
|
572
|
-
u.format = function(
|
|
573
|
-
var w =
|
|
572
|
+
u.format = function(p) {
|
|
573
|
+
var w = p || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
574
574
|
return h.call(this, w);
|
|
575
575
|
}, u.valueOf = function() {
|
|
576
|
-
var
|
|
577
|
-
return this.$d.valueOf() - 6e4 *
|
|
576
|
+
var p = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
577
|
+
return this.$d.valueOf() - 6e4 * p;
|
|
578
578
|
}, u.isUTC = function() {
|
|
579
579
|
return !!this.$u;
|
|
580
580
|
}, u.toISOString = function() {
|
|
@@ -582,15 +582,15 @@ function sr() {
|
|
|
582
582
|
}, u.toString = function() {
|
|
583
583
|
return this.toDate().toUTCString();
|
|
584
584
|
};
|
|
585
|
-
var
|
|
586
|
-
u.toDate = function(
|
|
587
|
-
return
|
|
585
|
+
var A = u.toDate;
|
|
586
|
+
u.toDate = function(p) {
|
|
587
|
+
return p === "s" && this.$offset ? l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : A.call(this);
|
|
588
588
|
};
|
|
589
589
|
var f = u.diff;
|
|
590
|
-
u.diff = function(
|
|
591
|
-
if (
|
|
592
|
-
var C = this.local(),
|
|
593
|
-
return f.call(C,
|
|
590
|
+
u.diff = function(p, w, v) {
|
|
591
|
+
if (p && this.$u === p.$u) return f.call(this, p, w, v);
|
|
592
|
+
var C = this.local(), N = l(p).local();
|
|
593
|
+
return f.call(C, N, w, v);
|
|
594
594
|
};
|
|
595
595
|
};
|
|
596
596
|
}));
|
|
@@ -606,51 +606,51 @@ function ir() {
|
|
|
606
606
|
})(rr, (function() {
|
|
607
607
|
var s = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, a = {};
|
|
608
608
|
return function(r, i, o) {
|
|
609
|
-
var l, u = function(h,
|
|
609
|
+
var l, u = function(h, A, f) {
|
|
610
610
|
f === void 0 && (f = {});
|
|
611
|
-
var
|
|
611
|
+
var p = new Date(h), w = (function(v, C) {
|
|
612
612
|
C === void 0 && (C = {});
|
|
613
|
-
var
|
|
614
|
-
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:
|
|
615
|
-
})(
|
|
616
|
-
return w.formatToParts(
|
|
617
|
-
}, c = function(h,
|
|
618
|
-
for (var f = u(h,
|
|
619
|
-
var v = f[w], C = v.type,
|
|
620
|
-
E >= 0 && (
|
|
613
|
+
var N = C.timeZoneName || "short", E = v + "|" + N, b = a[E];
|
|
614
|
+
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: N }), a[E] = b), b;
|
|
615
|
+
})(A, f);
|
|
616
|
+
return w.formatToParts(p);
|
|
617
|
+
}, c = function(h, A) {
|
|
618
|
+
for (var f = u(h, A), p = [], w = 0; w < f.length; w += 1) {
|
|
619
|
+
var v = f[w], C = v.type, N = v.value, E = s[C];
|
|
620
|
+
E >= 0 && (p[E] = parseInt(N, 10));
|
|
621
621
|
}
|
|
622
|
-
var b =
|
|
622
|
+
var b = p[3], I = b === 24 ? 0 : b, k = p[0] + "-" + p[1] + "-" + p[2] + " " + I + ":" + p[4] + ":" + p[5] + ":000", Q = +h;
|
|
623
623
|
return (o.utc(k).valueOf() - (Q -= Q % 1e3)) / 6e4;
|
|
624
624
|
}, d = i.prototype;
|
|
625
|
-
d.tz = function(h,
|
|
625
|
+
d.tz = function(h, A) {
|
|
626
626
|
h === void 0 && (h = l);
|
|
627
|
-
var f,
|
|
628
|
-
if (!Number(
|
|
629
|
-
else if (f = o(v, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(
|
|
627
|
+
var f, p = this.utcOffset(), w = this.toDate(), v = w.toLocaleString("en-US", { timeZone: h }), C = Math.round((w - new Date(v)) / 1e3 / 60), N = 15 * -Math.round(w.getTimezoneOffset() / 15) - C;
|
|
628
|
+
if (!Number(N)) f = this.utcOffset(0, A);
|
|
629
|
+
else if (f = o(v, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(N, !0), A) {
|
|
630
630
|
var E = f.utcOffset();
|
|
631
|
-
f = f.add(
|
|
631
|
+
f = f.add(p - E, "minute");
|
|
632
632
|
}
|
|
633
633
|
return f.$x.$timezone = h, f;
|
|
634
634
|
}, d.offsetName = function(h) {
|
|
635
|
-
var
|
|
636
|
-
return
|
|
635
|
+
var A = this.$x.$timezone || o.tz.guess(), f = u(this.valueOf(), A, { timeZoneName: h }).find((function(p) {
|
|
636
|
+
return p.type.toLowerCase() === "timezonename";
|
|
637
637
|
}));
|
|
638
638
|
return f && f.value;
|
|
639
639
|
};
|
|
640
640
|
var m = d.startOf;
|
|
641
|
-
d.startOf = function(h,
|
|
642
|
-
if (!this.$x || !this.$x.$timezone) return m.call(this, h,
|
|
641
|
+
d.startOf = function(h, A) {
|
|
642
|
+
if (!this.$x || !this.$x.$timezone) return m.call(this, h, A);
|
|
643
643
|
var f = o(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
|
|
644
|
-
return m.call(f, h,
|
|
645
|
-
}, o.tz = function(h,
|
|
646
|
-
var
|
|
644
|
+
return m.call(f, h, A).tz(this.$x.$timezone, !0);
|
|
645
|
+
}, o.tz = function(h, A, f) {
|
|
646
|
+
var p = f && A, w = f || A || l, v = c(+o(), w);
|
|
647
647
|
if (typeof h != "string") return o(h).tz(w);
|
|
648
648
|
var C = (function(I, k, Q) {
|
|
649
|
-
var
|
|
650
|
-
if (k === j) return [
|
|
651
|
-
var R = c(
|
|
652
|
-
return j === R ? [
|
|
653
|
-
})(o.utc(h,
|
|
649
|
+
var F = I - 60 * k * 1e3, j = c(F, Q);
|
|
650
|
+
if (k === j) return [F, k];
|
|
651
|
+
var R = c(F -= 60 * (j - k) * 1e3, Q);
|
|
652
|
+
return j === R ? [F, j] : [I - 60 * Math.min(j, R) * 1e3, Math.max(j, R)];
|
|
653
|
+
})(o.utc(h, p).valueOf(), v, w), N = C[0], E = C[1], b = o(N).utcOffset(E);
|
|
654
654
|
return b.$x.$timezone = w, b;
|
|
655
655
|
}, o.tz.guess = function() {
|
|
656
656
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
@@ -692,10 +692,10 @@ const Bt = (e) => e === "en" ? "en" : "es", Ue = (e, t) => {
|
|
|
692
692
|
second: "2-digit",
|
|
693
693
|
hour12: !1
|
|
694
694
|
}).formatToParts(s), i = {};
|
|
695
|
-
r.forEach((
|
|
696
|
-
|
|
695
|
+
r.forEach((A) => {
|
|
696
|
+
A.type !== "literal" && (i[A.type] = A.value);
|
|
697
697
|
});
|
|
698
|
-
const o = new Date(s.toLocaleString("en-US", { timeZone: "UTC" })), u = (new Date(s.toLocaleString("en-US", { timeZone: t })).getTime() - o.getTime()) / 6e4, c = u >= 0 ? "+" : "-", d = (
|
|
698
|
+
const o = new Date(s.toLocaleString("en-US", { timeZone: "UTC" })), u = (new Date(s.toLocaleString("en-US", { timeZone: t })).getTime() - o.getTime()) / 6e4, c = u >= 0 ? "+" : "-", d = (A) => String(Math.floor(Math.abs(A))).padStart(2, "0"), m = d(u / 60), h = d(u % 60);
|
|
699
699
|
return `${i.year}-${i.month}-${i.day}T${i.hour}:${i.minute}:${i.second}${c}${m}:${h}`;
|
|
700
700
|
}, ke = (e, t = 136) => e && e.length > t ? `${e.substring(0, t)}...` : e;
|
|
701
701
|
function Fe(e) {
|
|
@@ -771,16 +771,16 @@ function hs(e) {
|
|
|
771
771
|
const i = r.index + r[0].length;
|
|
772
772
|
let o = 1, l = i, u = i;
|
|
773
773
|
for (; l < t.length && o > 0; ) {
|
|
774
|
-
const
|
|
774
|
+
const A = t.slice(l), f = A.match(/<div\b/i), p = A.match(/<\/div>/i), w = f?.index ?? -1, v = p?.index ?? -1;
|
|
775
775
|
if (v === -1) break;
|
|
776
|
-
const C = w === -1 ? 1 / 0 : l + w,
|
|
777
|
-
w !== -1 && w < v ? (o += 1, l = C + f[0].length) : (o -= 1, u =
|
|
776
|
+
const C = w === -1 ? 1 / 0 : l + w, N = l + v;
|
|
777
|
+
w !== -1 && w < v ? (o += 1, l = C + f[0].length) : (o -= 1, u = N, l = N + p[0].length);
|
|
778
778
|
}
|
|
779
779
|
const c = t.slice(i, u), d = [], m = /<span\b[^>]*\bdata-src=["']([^"']+)["']/gi;
|
|
780
780
|
let h;
|
|
781
781
|
for (; (h = m.exec(c)) !== null; ) {
|
|
782
|
-
const
|
|
783
|
-
|
|
782
|
+
const A = h[1];
|
|
783
|
+
A && d.push(A);
|
|
784
784
|
}
|
|
785
785
|
d.length > 0 && s.push(d), a = l;
|
|
786
786
|
}
|
|
@@ -842,7 +842,7 @@ const Md = hs, fr = async (e, t) => {
|
|
|
842
842
|
defaultWidth: s.landscapeLogo.width,
|
|
843
843
|
defaultHeight: s.landscapeLogo.height,
|
|
844
844
|
alt: a?.description ?? m
|
|
845
|
-
}),
|
|
845
|
+
}), A = en({
|
|
846
846
|
schemaImage: d,
|
|
847
847
|
socialImage: t?.social?.images?.twitter,
|
|
848
848
|
fallbackImage: u,
|
|
@@ -877,7 +877,7 @@ const Md = hs, fr = async (e, t) => {
|
|
|
877
877
|
card: "summary_large_image",
|
|
878
878
|
site: e.twitter.site,
|
|
879
879
|
description: t?.main?.subtitle?.striped ?? "",
|
|
880
|
-
images: [
|
|
880
|
+
images: [A]
|
|
881
881
|
},
|
|
882
882
|
article: {
|
|
883
883
|
published_time: Ge(
|
|
@@ -1707,8 +1707,8 @@ const Qr = async ({
|
|
|
1707
1707
|
}, c = e.split("/")[1], d = c == "liveblogs" || c == "liveblog" ? ["/news", "/news-breadcrumb", "/news-liveblog"] : ["/news", "/news-breadcrumb"], m = t.paths.tema !== "" ? "/" + t.paths.tema : t.paths.tema, h = r ? r + m : m;
|
|
1708
1708
|
i = (await Promise.all(
|
|
1709
1709
|
d.map(async (f) => {
|
|
1710
|
-
const
|
|
1711
|
-
return await Es(
|
|
1710
|
+
const p = f === "/news-breadcrumb" ? { ...u, prefixtag: h } : f === "/news" && t.schemasNewsParams ? { ...u, ...t.schemasNewsParams } : u;
|
|
1711
|
+
return await Es(p, f, a);
|
|
1712
1712
|
})
|
|
1713
1713
|
)).map((f) => f?.data?.data ?? []);
|
|
1714
1714
|
} catch (o) {
|
|
@@ -2477,7 +2477,7 @@ const Ri = (e) => {
|
|
|
2477
2477
|
}))(`axios@${Math.random()}`, []) : (s) => setTimeout(s))(
|
|
2478
2478
|
typeof setImmediate == "function",
|
|
2479
2479
|
Ae(qe.postMessage)
|
|
2480
|
-
), Bi = typeof queueMicrotask < "u" ? queueMicrotask.bind(qe) : typeof process < "u" && process.nextTick || sa, Oi = (e) => e != null && Ae(e[Dt]),
|
|
2480
|
+
), Bi = typeof queueMicrotask < "u" ? queueMicrotask.bind(qe) : typeof process < "u" && process.nextTick || sa, Oi = (e) => e != null && Ae(e[Dt]), S = {
|
|
2481
2481
|
isArray: Je,
|
|
2482
2482
|
isArrayBuffer: Jn,
|
|
2483
2483
|
isBuffer: ct,
|
|
@@ -2540,7 +2540,7 @@ const Ri = (e) => {
|
|
|
2540
2540
|
function J(e, t, s, a, r) {
|
|
2541
2541
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), s && (this.config = s), a && (this.request = a), r && (this.response = r, this.status = r.status ? r.status : null);
|
|
2542
2542
|
}
|
|
2543
|
-
|
|
2543
|
+
S.inherits(J, Error, {
|
|
2544
2544
|
toJSON: function() {
|
|
2545
2545
|
return {
|
|
2546
2546
|
// Standard
|
|
@@ -2555,7 +2555,7 @@ N.inherits(J, Error, {
|
|
|
2555
2555
|
columnNumber: this.columnNumber,
|
|
2556
2556
|
stack: this.stack,
|
|
2557
2557
|
// Axios
|
|
2558
|
-
config:
|
|
2558
|
+
config: S.toJSONObject(this.config),
|
|
2559
2559
|
code: this.code,
|
|
2560
2560
|
status: this.status
|
|
2561
2561
|
};
|
|
@@ -2583,7 +2583,7 @@ Object.defineProperties(J, aa);
|
|
|
2583
2583
|
Object.defineProperty(na, "isAxiosError", { value: !0 });
|
|
2584
2584
|
J.from = (e, t, s, a, r, i) => {
|
|
2585
2585
|
const o = Object.create(na);
|
|
2586
|
-
|
|
2586
|
+
S.toFlatObject(e, o, function(d) {
|
|
2587
2587
|
return d !== Error.prototype;
|
|
2588
2588
|
}, (c) => c !== "isAxiosError");
|
|
2589
2589
|
const l = e && e.message ? e.message : "Error", u = t == null && e ? e.code : t;
|
|
@@ -2591,10 +2591,10 @@ J.from = (e, t, s, a, r, i) => {
|
|
|
2591
2591
|
};
|
|
2592
2592
|
const Mi = null;
|
|
2593
2593
|
function gs(e) {
|
|
2594
|
-
return
|
|
2594
|
+
return S.isPlainObject(e) || S.isArray(e);
|
|
2595
2595
|
}
|
|
2596
2596
|
function ra(e) {
|
|
2597
|
-
return
|
|
2597
|
+
return S.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
2598
2598
|
}
|
|
2599
2599
|
function nn(e, t, s) {
|
|
2600
2600
|
return e ? e.concat(t).map(function(r, i) {
|
|
@@ -2602,73 +2602,73 @@ function nn(e, t, s) {
|
|
|
2602
2602
|
}).join(s ? "." : "") : t;
|
|
2603
2603
|
}
|
|
2604
2604
|
function qi(e) {
|
|
2605
|
-
return
|
|
2605
|
+
return S.isArray(e) && !e.some(gs);
|
|
2606
2606
|
}
|
|
2607
|
-
const Di =
|
|
2607
|
+
const Di = S.toFlatObject(S, {}, null, function(t) {
|
|
2608
2608
|
return /^is[A-Z]/.test(t);
|
|
2609
2609
|
});
|
|
2610
2610
|
function jt(e, t, s) {
|
|
2611
|
-
if (!
|
|
2611
|
+
if (!S.isObject(e))
|
|
2612
2612
|
throw new TypeError("target must be an object");
|
|
2613
|
-
t = t || new FormData(), s =
|
|
2613
|
+
t = t || new FormData(), s = S.toFlatObject(s, {
|
|
2614
2614
|
metaTokens: !0,
|
|
2615
2615
|
dots: !1,
|
|
2616
2616
|
indexes: !1
|
|
2617
|
-
}, !1, function(
|
|
2618
|
-
return !
|
|
2617
|
+
}, !1, function(p, w) {
|
|
2618
|
+
return !S.isUndefined(w[p]);
|
|
2619
2619
|
});
|
|
2620
|
-
const a = s.metaTokens, r = s.visitor || d, i = s.dots, o = s.indexes, u = (s.Blob || typeof Blob < "u" && Blob) &&
|
|
2621
|
-
if (!
|
|
2620
|
+
const a = s.metaTokens, r = s.visitor || d, i = s.dots, o = s.indexes, u = (s.Blob || typeof Blob < "u" && Blob) && S.isSpecCompliantForm(t);
|
|
2621
|
+
if (!S.isFunction(r))
|
|
2622
2622
|
throw new TypeError("visitor must be a function");
|
|
2623
2623
|
function c(f) {
|
|
2624
2624
|
if (f === null) return "";
|
|
2625
|
-
if (
|
|
2625
|
+
if (S.isDate(f))
|
|
2626
2626
|
return f.toISOString();
|
|
2627
|
-
if (
|
|
2627
|
+
if (S.isBoolean(f))
|
|
2628
2628
|
return f.toString();
|
|
2629
|
-
if (!u &&
|
|
2629
|
+
if (!u && S.isBlob(f))
|
|
2630
2630
|
throw new J("Blob is not supported. Use a Buffer instead.");
|
|
2631
|
-
return
|
|
2631
|
+
return S.isArrayBuffer(f) || S.isTypedArray(f) ? u && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
|
|
2632
2632
|
}
|
|
2633
|
-
function d(f,
|
|
2633
|
+
function d(f, p, w) {
|
|
2634
2634
|
let v = f;
|
|
2635
2635
|
if (f && !w && typeof f == "object") {
|
|
2636
|
-
if (
|
|
2637
|
-
|
|
2638
|
-
else if (
|
|
2639
|
-
return
|
|
2640
|
-
!(
|
|
2636
|
+
if (S.endsWith(p, "{}"))
|
|
2637
|
+
p = a ? p : p.slice(0, -2), f = JSON.stringify(f);
|
|
2638
|
+
else if (S.isArray(f) && qi(f) || (S.isFileList(f) || S.endsWith(p, "[]")) && (v = S.toArray(f)))
|
|
2639
|
+
return p = ra(p), v.forEach(function(N, E) {
|
|
2640
|
+
!(S.isUndefined(N) || N === null) && t.append(
|
|
2641
2641
|
// eslint-disable-next-line no-nested-ternary
|
|
2642
|
-
o === !0 ? nn([
|
|
2643
|
-
c(
|
|
2642
|
+
o === !0 ? nn([p], E, i) : o === null ? p : p + "[]",
|
|
2643
|
+
c(N)
|
|
2644
2644
|
);
|
|
2645
2645
|
}), !1;
|
|
2646
2646
|
}
|
|
2647
|
-
return gs(f) ? !0 : (t.append(nn(w,
|
|
2647
|
+
return gs(f) ? !0 : (t.append(nn(w, p, i), c(f)), !1);
|
|
2648
2648
|
}
|
|
2649
2649
|
const m = [], h = Object.assign(Di, {
|
|
2650
2650
|
defaultVisitor: d,
|
|
2651
2651
|
convertValue: c,
|
|
2652
2652
|
isVisitable: gs
|
|
2653
2653
|
});
|
|
2654
|
-
function
|
|
2655
|
-
if (!
|
|
2654
|
+
function A(f, p) {
|
|
2655
|
+
if (!S.isUndefined(f)) {
|
|
2656
2656
|
if (m.indexOf(f) !== -1)
|
|
2657
|
-
throw Error("Circular reference detected in " +
|
|
2658
|
-
m.push(f),
|
|
2659
|
-
(!(
|
|
2657
|
+
throw Error("Circular reference detected in " + p.join("."));
|
|
2658
|
+
m.push(f), S.forEach(f, function(v, C) {
|
|
2659
|
+
(!(S.isUndefined(v) || v === null) && r.call(
|
|
2660
2660
|
t,
|
|
2661
2661
|
v,
|
|
2662
|
-
|
|
2663
|
-
|
|
2662
|
+
S.isString(C) ? C.trim() : C,
|
|
2663
|
+
p,
|
|
2664
2664
|
h
|
|
2665
|
-
)) === !0 &&
|
|
2665
|
+
)) === !0 && A(v, p ? p.concat(C) : [C]);
|
|
2666
2666
|
}), m.pop();
|
|
2667
2667
|
}
|
|
2668
2668
|
}
|
|
2669
|
-
if (!
|
|
2669
|
+
if (!S.isObject(e))
|
|
2670
2670
|
throw new TypeError("data must be an object");
|
|
2671
|
-
return
|
|
2671
|
+
return A(e), t;
|
|
2672
2672
|
}
|
|
2673
2673
|
function an(e) {
|
|
2674
2674
|
const t = {
|
|
@@ -2706,12 +2706,12 @@ function oa(e, t, s) {
|
|
|
2706
2706
|
if (!t)
|
|
2707
2707
|
return e;
|
|
2708
2708
|
const a = s && s.encode || _i;
|
|
2709
|
-
|
|
2709
|
+
S.isFunction(s) && (s = {
|
|
2710
2710
|
serialize: s
|
|
2711
2711
|
});
|
|
2712
2712
|
const r = s && s.serialize;
|
|
2713
2713
|
let i;
|
|
2714
|
-
if (r ? i = r(t, s) : i =
|
|
2714
|
+
if (r ? i = r(t, s) : i = S.isURLSearchParams(t) ? t.toString() : new Is(t, s).toString(a), i) {
|
|
2715
2715
|
const o = e.indexOf("#");
|
|
2716
2716
|
o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
|
|
2717
2717
|
}
|
|
@@ -2766,7 +2766,7 @@ class rn {
|
|
|
2766
2766
|
* @returns {void}
|
|
2767
2767
|
*/
|
|
2768
2768
|
forEach(t) {
|
|
2769
|
-
|
|
2769
|
+
S.forEach(this.handlers, function(a) {
|
|
2770
2770
|
a !== null && t(a);
|
|
2771
2771
|
});
|
|
2772
2772
|
}
|
|
@@ -2798,13 +2798,13 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", zi
|
|
|
2798
2798
|
function Yi(e, t) {
|
|
2799
2799
|
return jt(e, new ue.classes.URLSearchParams(), {
|
|
2800
2800
|
visitor: function(s, a, r, i) {
|
|
2801
|
-
return ue.isNode &&
|
|
2801
|
+
return ue.isNode && S.isBuffer(s) ? (this.append(a, s.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
2802
2802
|
},
|
|
2803
2803
|
...t
|
|
2804
2804
|
});
|
|
2805
2805
|
}
|
|
2806
2806
|
function $i(e) {
|
|
2807
|
-
return
|
|
2807
|
+
return S.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
2808
2808
|
}
|
|
2809
2809
|
function Ki(e) {
|
|
2810
2810
|
const t = {}, s = Object.keys(e);
|
|
@@ -2820,20 +2820,20 @@ function ca(e) {
|
|
|
2820
2820
|
let o = s[i++];
|
|
2821
2821
|
if (o === "__proto__") return !0;
|
|
2822
2822
|
const l = Number.isFinite(+o), u = i >= s.length;
|
|
2823
|
-
return o = !o &&
|
|
2823
|
+
return o = !o && S.isArray(r) ? r.length : o, u ? (S.hasOwnProp(r, o) ? r[o] = [r[o], a] : r[o] = a, !l) : ((!r[o] || !S.isObject(r[o])) && (r[o] = []), t(s, a, r[o], i) && S.isArray(r[o]) && (r[o] = Ki(r[o])), !l);
|
|
2824
2824
|
}
|
|
2825
|
-
if (
|
|
2825
|
+
if (S.isFormData(e) && S.isFunction(e.entries)) {
|
|
2826
2826
|
const s = {};
|
|
2827
|
-
return
|
|
2827
|
+
return S.forEachEntry(e, (a, r) => {
|
|
2828
2828
|
t($i(a), r, s, 0);
|
|
2829
2829
|
}), s;
|
|
2830
2830
|
}
|
|
2831
2831
|
return null;
|
|
2832
2832
|
}
|
|
2833
2833
|
function Ji(e, t, s) {
|
|
2834
|
-
if (
|
|
2834
|
+
if (S.isString(e))
|
|
2835
2835
|
try {
|
|
2836
|
-
return (t || JSON.parse)(e),
|
|
2836
|
+
return (t || JSON.parse)(e), S.trim(e);
|
|
2837
2837
|
} catch (a) {
|
|
2838
2838
|
if (a.name !== "SyntaxError")
|
|
2839
2839
|
throw a;
|
|
@@ -2844,20 +2844,20 @@ const mt = {
|
|
|
2844
2844
|
transitional: la,
|
|
2845
2845
|
adapter: ["xhr", "http", "fetch"],
|
|
2846
2846
|
transformRequest: [function(t, s) {
|
|
2847
|
-
const a = s.getContentType() || "", r = a.indexOf("application/json") > -1, i =
|
|
2848
|
-
if (i &&
|
|
2847
|
+
const a = s.getContentType() || "", r = a.indexOf("application/json") > -1, i = S.isObject(t);
|
|
2848
|
+
if (i && S.isHTMLForm(t) && (t = new FormData(t)), S.isFormData(t))
|
|
2849
2849
|
return r ? JSON.stringify(ca(t)) : t;
|
|
2850
|
-
if (
|
|
2850
|
+
if (S.isArrayBuffer(t) || S.isBuffer(t) || S.isStream(t) || S.isFile(t) || S.isBlob(t) || S.isReadableStream(t))
|
|
2851
2851
|
return t;
|
|
2852
|
-
if (
|
|
2852
|
+
if (S.isArrayBufferView(t))
|
|
2853
2853
|
return t.buffer;
|
|
2854
|
-
if (
|
|
2854
|
+
if (S.isURLSearchParams(t))
|
|
2855
2855
|
return s.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
2856
2856
|
let l;
|
|
2857
2857
|
if (i) {
|
|
2858
2858
|
if (a.indexOf("application/x-www-form-urlencoded") > -1)
|
|
2859
2859
|
return Yi(t, this.formSerializer).toString();
|
|
2860
|
-
if ((l =
|
|
2860
|
+
if ((l = S.isFileList(t)) || a.indexOf("multipart/form-data") > -1) {
|
|
2861
2861
|
const u = this.env && this.env.FormData;
|
|
2862
2862
|
return jt(
|
|
2863
2863
|
l ? { "files[]": t } : t,
|
|
@@ -2870,9 +2870,9 @@ const mt = {
|
|
|
2870
2870
|
}],
|
|
2871
2871
|
transformResponse: [function(t) {
|
|
2872
2872
|
const s = this.transitional || mt.transitional, a = s && s.forcedJSONParsing, r = this.responseType === "json";
|
|
2873
|
-
if (
|
|
2873
|
+
if (S.isResponse(t) || S.isReadableStream(t))
|
|
2874
2874
|
return t;
|
|
2875
|
-
if (t &&
|
|
2875
|
+
if (t && S.isString(t) && (a && !this.responseType || r)) {
|
|
2876
2876
|
const o = !(s && s.silentJSONParsing) && r;
|
|
2877
2877
|
try {
|
|
2878
2878
|
return JSON.parse(t, this.parseReviver);
|
|
@@ -2906,10 +2906,10 @@ const mt = {
|
|
|
2906
2906
|
}
|
|
2907
2907
|
}
|
|
2908
2908
|
};
|
|
2909
|
-
|
|
2909
|
+
S.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
2910
2910
|
mt.headers[e] = {};
|
|
2911
2911
|
});
|
|
2912
|
-
const Zi =
|
|
2912
|
+
const Zi = S.toObjectSet([
|
|
2913
2913
|
"age",
|
|
2914
2914
|
"authorization",
|
|
2915
2915
|
"content-length",
|
|
@@ -2939,7 +2939,7 @@ function nt(e) {
|
|
|
2939
2939
|
return e && String(e).trim().toLowerCase();
|
|
2940
2940
|
}
|
|
2941
2941
|
function It(e) {
|
|
2942
|
-
return e === !1 || e == null ? e :
|
|
2942
|
+
return e === !1 || e == null ? e : S.isArray(e) ? e.map(It) : String(e);
|
|
2943
2943
|
}
|
|
2944
2944
|
function eo(e) {
|
|
2945
2945
|
const t = /* @__PURE__ */ Object.create(null), s = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -2950,12 +2950,12 @@ function eo(e) {
|
|
|
2950
2950
|
}
|
|
2951
2951
|
const to = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
2952
2952
|
function Zt(e, t, s, a, r) {
|
|
2953
|
-
if (
|
|
2953
|
+
if (S.isFunction(a))
|
|
2954
2954
|
return a.call(this, t, s);
|
|
2955
|
-
if (r && (t = s), !!
|
|
2956
|
-
if (
|
|
2955
|
+
if (r && (t = s), !!S.isString(t)) {
|
|
2956
|
+
if (S.isString(a))
|
|
2957
2957
|
return t.indexOf(a) !== -1;
|
|
2958
|
-
if (
|
|
2958
|
+
if (S.isRegExp(a))
|
|
2959
2959
|
return a.test(t);
|
|
2960
2960
|
}
|
|
2961
2961
|
}
|
|
@@ -2963,7 +2963,7 @@ function so(e) {
|
|
|
2963
2963
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, s, a) => s.toUpperCase() + a);
|
|
2964
2964
|
}
|
|
2965
2965
|
function no(e, t) {
|
|
2966
|
-
const s =
|
|
2966
|
+
const s = S.toCamelCase(" " + t);
|
|
2967
2967
|
["get", "set", "has"].forEach((a) => {
|
|
2968
2968
|
Object.defineProperty(e, a + s, {
|
|
2969
2969
|
value: function(r, i, o) {
|
|
@@ -2983,20 +2983,20 @@ let we = class {
|
|
|
2983
2983
|
const d = nt(u);
|
|
2984
2984
|
if (!d)
|
|
2985
2985
|
throw new Error("header name must be a non-empty string");
|
|
2986
|
-
const m =
|
|
2986
|
+
const m = S.findKey(r, d);
|
|
2987
2987
|
(!m || r[m] === void 0 || c === !0 || c === void 0 && r[m] !== !1) && (r[m || u] = It(l));
|
|
2988
2988
|
}
|
|
2989
|
-
const o = (l, u) =>
|
|
2990
|
-
if (
|
|
2989
|
+
const o = (l, u) => S.forEach(l, (c, d) => i(c, d, u));
|
|
2990
|
+
if (S.isPlainObject(t) || t instanceof this.constructor)
|
|
2991
2991
|
o(t, s);
|
|
2992
|
-
else if (
|
|
2992
|
+
else if (S.isString(t) && (t = t.trim()) && !to(t))
|
|
2993
2993
|
o(Xi(t), s);
|
|
2994
|
-
else if (
|
|
2994
|
+
else if (S.isObject(t) && S.isIterable(t)) {
|
|
2995
2995
|
let l = {}, u, c;
|
|
2996
2996
|
for (const d of t) {
|
|
2997
|
-
if (!
|
|
2997
|
+
if (!S.isArray(d))
|
|
2998
2998
|
throw TypeError("Object iterator must return a key-value pair");
|
|
2999
|
-
l[c = d[0]] = (u = l[c]) ?
|
|
2999
|
+
l[c = d[0]] = (u = l[c]) ? S.isArray(u) ? [...u, d[1]] : [u, d[1]] : d[1];
|
|
3000
3000
|
}
|
|
3001
3001
|
o(l, s);
|
|
3002
3002
|
} else
|
|
@@ -3005,16 +3005,16 @@ let we = class {
|
|
|
3005
3005
|
}
|
|
3006
3006
|
get(t, s) {
|
|
3007
3007
|
if (t = nt(t), t) {
|
|
3008
|
-
const a =
|
|
3008
|
+
const a = S.findKey(this, t);
|
|
3009
3009
|
if (a) {
|
|
3010
3010
|
const r = this[a];
|
|
3011
3011
|
if (!s)
|
|
3012
3012
|
return r;
|
|
3013
3013
|
if (s === !0)
|
|
3014
3014
|
return eo(r);
|
|
3015
|
-
if (
|
|
3015
|
+
if (S.isFunction(s))
|
|
3016
3016
|
return s.call(this, r, a);
|
|
3017
|
-
if (
|
|
3017
|
+
if (S.isRegExp(s))
|
|
3018
3018
|
return s.exec(r);
|
|
3019
3019
|
throw new TypeError("parser must be boolean|regexp|function");
|
|
3020
3020
|
}
|
|
@@ -3022,7 +3022,7 @@ let we = class {
|
|
|
3022
3022
|
}
|
|
3023
3023
|
has(t, s) {
|
|
3024
3024
|
if (t = nt(t), t) {
|
|
3025
|
-
const a =
|
|
3025
|
+
const a = S.findKey(this, t);
|
|
3026
3026
|
return !!(a && this[a] !== void 0 && (!s || Zt(this, this[a], a, s)));
|
|
3027
3027
|
}
|
|
3028
3028
|
return !1;
|
|
@@ -3032,11 +3032,11 @@ let we = class {
|
|
|
3032
3032
|
let r = !1;
|
|
3033
3033
|
function i(o) {
|
|
3034
3034
|
if (o = nt(o), o) {
|
|
3035
|
-
const l =
|
|
3035
|
+
const l = S.findKey(a, o);
|
|
3036
3036
|
l && (!s || Zt(a, a[l], l, s)) && (delete a[l], r = !0);
|
|
3037
3037
|
}
|
|
3038
3038
|
}
|
|
3039
|
-
return
|
|
3039
|
+
return S.isArray(t) ? t.forEach(i) : i(t), r;
|
|
3040
3040
|
}
|
|
3041
3041
|
clear(t) {
|
|
3042
3042
|
const s = Object.keys(this);
|
|
@@ -3049,8 +3049,8 @@ let we = class {
|
|
|
3049
3049
|
}
|
|
3050
3050
|
normalize(t) {
|
|
3051
3051
|
const s = this, a = {};
|
|
3052
|
-
return
|
|
3053
|
-
const o =
|
|
3052
|
+
return S.forEach(this, (r, i) => {
|
|
3053
|
+
const o = S.findKey(a, i);
|
|
3054
3054
|
if (o) {
|
|
3055
3055
|
s[o] = It(r), delete s[i];
|
|
3056
3056
|
return;
|
|
@@ -3064,8 +3064,8 @@ let we = class {
|
|
|
3064
3064
|
}
|
|
3065
3065
|
toJSON(t) {
|
|
3066
3066
|
const s = /* @__PURE__ */ Object.create(null);
|
|
3067
|
-
return
|
|
3068
|
-
a != null && a !== !1 && (s[r] = t &&
|
|
3067
|
+
return S.forEach(this, (a, r) => {
|
|
3068
|
+
a != null && a !== !1 && (s[r] = t && S.isArray(a) ? a.join(", ") : a);
|
|
3069
3069
|
}), s;
|
|
3070
3070
|
}
|
|
3071
3071
|
[Symbol.iterator]() {
|
|
@@ -3096,11 +3096,11 @@ let we = class {
|
|
|
3096
3096
|
const l = nt(o);
|
|
3097
3097
|
a[l] || (no(r, o), a[l] = !0);
|
|
3098
3098
|
}
|
|
3099
|
-
return
|
|
3099
|
+
return S.isArray(t) ? t.forEach(i) : i(t), this;
|
|
3100
3100
|
}
|
|
3101
3101
|
};
|
|
3102
3102
|
we.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
3103
|
-
|
|
3103
|
+
S.reduceDescriptors(we.prototype, ({ value: e }, t) => {
|
|
3104
3104
|
let s = t[0].toUpperCase() + t.slice(1);
|
|
3105
3105
|
return {
|
|
3106
3106
|
get: () => e,
|
|
@@ -3109,11 +3109,11 @@ N.reduceDescriptors(we.prototype, ({ value: e }, t) => {
|
|
|
3109
3109
|
}
|
|
3110
3110
|
};
|
|
3111
3111
|
});
|
|
3112
|
-
|
|
3112
|
+
S.freezeMethods(we);
|
|
3113
3113
|
function Xt(e, t) {
|
|
3114
3114
|
const s = this || mt, a = t || s, r = we.from(a.headers);
|
|
3115
3115
|
let i = a.data;
|
|
3116
|
-
return
|
|
3116
|
+
return S.forEach(e, function(l) {
|
|
3117
3117
|
i = l.call(s, i, r.normalize(), t ? t.status : void 0);
|
|
3118
3118
|
}), r.normalize(), i;
|
|
3119
3119
|
}
|
|
@@ -3123,7 +3123,7 @@ function da(e) {
|
|
|
3123
3123
|
function Ze(e, t, s) {
|
|
3124
3124
|
J.call(this, e ?? "canceled", J.ERR_CANCELED, t, s), this.name = "CanceledError";
|
|
3125
3125
|
}
|
|
3126
|
-
|
|
3126
|
+
S.inherits(Ze, J, {
|
|
3127
3127
|
__CANCEL__: !0
|
|
3128
3128
|
});
|
|
3129
3129
|
function ua(e, t, s) {
|
|
@@ -3152,8 +3152,8 @@ function ro(e, t) {
|
|
|
3152
3152
|
h += s[m++], m = m % e;
|
|
3153
3153
|
if (r = (r + 1) % e, r === i && (i = (i + 1) % e), c - o < t)
|
|
3154
3154
|
return;
|
|
3155
|
-
const
|
|
3156
|
-
return
|
|
3155
|
+
const A = d && c - d;
|
|
3156
|
+
return A ? Math.round(h * 1e3 / A) : void 0;
|
|
3157
3157
|
};
|
|
3158
3158
|
}
|
|
3159
3159
|
function io(e, t) {
|
|
@@ -3194,7 +3194,7 @@ const kt = (e, t, s = 3) => {
|
|
|
3194
3194
|
total: e,
|
|
3195
3195
|
loaded: a
|
|
3196
3196
|
}), t[1]];
|
|
3197
|
-
}, cn = (e) => (...t) =>
|
|
3197
|
+
}, cn = (e) => (...t) => S.asap(() => e(...t)), oo = ue.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (s) => (s = new URL(s, ue.origin), e.protocol === s.protocol && e.host === s.host && (t || e.port === s.port)))(
|
|
3198
3198
|
new URL(ue.origin),
|
|
3199
3199
|
ue.navigator && /(msie|trident)/i.test(ue.navigator.userAgent)
|
|
3200
3200
|
) : () => !0, lo = ue.hasStandardBrowserEnv ? (
|
|
@@ -3203,7 +3203,7 @@ const kt = (e, t, s = 3) => {
|
|
|
3203
3203
|
write(e, t, s, a, r, i, o) {
|
|
3204
3204
|
if (typeof document > "u") return;
|
|
3205
3205
|
const l = [`${e}=${encodeURIComponent(t)}`];
|
|
3206
|
-
|
|
3206
|
+
S.isNumber(s) && l.push(`expires=${new Date(s).toUTCString()}`), S.isString(a) && l.push(`path=${a}`), S.isString(r) && l.push(`domain=${r}`), i === !0 && l.push("secure"), S.isString(o) && l.push(`SameSite=${o}`), document.cookie = l.join("; ");
|
|
3207
3207
|
},
|
|
3208
3208
|
read(e) {
|
|
3209
3209
|
if (typeof document > "u") return null;
|
|
@@ -3241,21 +3241,21 @@ function Qe(e, t) {
|
|
|
3241
3241
|
t = t || {};
|
|
3242
3242
|
const s = {};
|
|
3243
3243
|
function a(c, d, m, h) {
|
|
3244
|
-
return
|
|
3244
|
+
return S.isPlainObject(c) && S.isPlainObject(d) ? S.merge.call({ caseless: h }, c, d) : S.isPlainObject(d) ? S.merge({}, d) : S.isArray(d) ? d.slice() : d;
|
|
3245
3245
|
}
|
|
3246
3246
|
function r(c, d, m, h) {
|
|
3247
|
-
if (
|
|
3248
|
-
if (!
|
|
3247
|
+
if (S.isUndefined(d)) {
|
|
3248
|
+
if (!S.isUndefined(c))
|
|
3249
3249
|
return a(void 0, c, m, h);
|
|
3250
3250
|
} else return a(c, d, m, h);
|
|
3251
3251
|
}
|
|
3252
3252
|
function i(c, d) {
|
|
3253
|
-
if (!
|
|
3253
|
+
if (!S.isUndefined(d))
|
|
3254
3254
|
return a(void 0, d);
|
|
3255
3255
|
}
|
|
3256
3256
|
function o(c, d) {
|
|
3257
|
-
if (
|
|
3258
|
-
if (!
|
|
3257
|
+
if (S.isUndefined(d)) {
|
|
3258
|
+
if (!S.isUndefined(c))
|
|
3259
3259
|
return a(void 0, c);
|
|
3260
3260
|
} else return a(void 0, d);
|
|
3261
3261
|
}
|
|
@@ -3296,9 +3296,9 @@ function Qe(e, t) {
|
|
|
3296
3296
|
validateStatus: l,
|
|
3297
3297
|
headers: (c, d, m) => r(dn(c), dn(d), m, !0)
|
|
3298
3298
|
};
|
|
3299
|
-
return
|
|
3299
|
+
return S.forEach(Object.keys({ ...e, ...t }), function(d) {
|
|
3300
3300
|
const m = u[d] || r, h = m(e[d], t[d], d);
|
|
3301
|
-
|
|
3301
|
+
S.isUndefined(h) && m !== l || (s[d] = h);
|
|
3302
3302
|
}), s;
|
|
3303
3303
|
}
|
|
3304
3304
|
const ha = (e) => {
|
|
@@ -3307,17 +3307,17 @@ const ha = (e) => {
|
|
|
3307
3307
|
if (t.headers = o = we.from(o), t.url = oa(ma(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), l && o.set(
|
|
3308
3308
|
"Authorization",
|
|
3309
3309
|
"Basic " + btoa((l.username || "") + ":" + (l.password ? unescape(encodeURIComponent(l.password)) : ""))
|
|
3310
|
-
),
|
|
3310
|
+
), S.isFormData(s)) {
|
|
3311
3311
|
if (ue.hasStandardBrowserEnv || ue.hasStandardBrowserWebWorkerEnv)
|
|
3312
3312
|
o.setContentType(void 0);
|
|
3313
|
-
else if (
|
|
3313
|
+
else if (S.isFunction(s.getHeaders)) {
|
|
3314
3314
|
const u = s.getHeaders(), c = ["content-type", "content-length"];
|
|
3315
3315
|
Object.entries(u).forEach(([d, m]) => {
|
|
3316
3316
|
c.includes(d.toLowerCase()) && o.set(d, m);
|
|
3317
3317
|
});
|
|
3318
3318
|
}
|
|
3319
3319
|
}
|
|
3320
|
-
if (ue.hasStandardBrowserEnv && (a &&
|
|
3320
|
+
if (ue.hasStandardBrowserEnv && (a && S.isFunction(a) && (a = a(t)), a || a !== !1 && oo(t.url))) {
|
|
3321
3321
|
const u = r && i && lo.read(i);
|
|
3322
3322
|
u && o.set(r, u);
|
|
3323
3323
|
}
|
|
@@ -3327,29 +3327,29 @@ const ha = (e) => {
|
|
|
3327
3327
|
const r = ha(e);
|
|
3328
3328
|
let i = r.data;
|
|
3329
3329
|
const o = we.from(r.headers).normalize();
|
|
3330
|
-
let { responseType: l, onUploadProgress: u, onDownloadProgress: c } = r, d, m, h,
|
|
3331
|
-
function
|
|
3332
|
-
|
|
3330
|
+
let { responseType: l, onUploadProgress: u, onDownloadProgress: c } = r, d, m, h, A, f;
|
|
3331
|
+
function p() {
|
|
3332
|
+
A && A(), f && f(), r.cancelToken && r.cancelToken.unsubscribe(d), r.signal && r.signal.removeEventListener("abort", d);
|
|
3333
3333
|
}
|
|
3334
3334
|
let w = new XMLHttpRequest();
|
|
3335
3335
|
w.open(r.method.toUpperCase(), r.url, !0), w.timeout = r.timeout;
|
|
3336
3336
|
function v() {
|
|
3337
3337
|
if (!w)
|
|
3338
3338
|
return;
|
|
3339
|
-
const
|
|
3339
|
+
const N = we.from(
|
|
3340
3340
|
"getAllResponseHeaders" in w && w.getAllResponseHeaders()
|
|
3341
3341
|
), b = {
|
|
3342
3342
|
data: !l || l === "text" || l === "json" ? w.responseText : w.response,
|
|
3343
3343
|
status: w.status,
|
|
3344
3344
|
statusText: w.statusText,
|
|
3345
|
-
headers:
|
|
3345
|
+
headers: N,
|
|
3346
3346
|
config: e,
|
|
3347
3347
|
request: w
|
|
3348
3348
|
};
|
|
3349
3349
|
ua(function(k) {
|
|
3350
|
-
s(k),
|
|
3350
|
+
s(k), p();
|
|
3351
3351
|
}, function(k) {
|
|
3352
|
-
a(k),
|
|
3352
|
+
a(k), p();
|
|
3353
3353
|
}, b), w = null;
|
|
3354
3354
|
}
|
|
3355
3355
|
"onloadend" in w ? w.onloadend = v : w.onreadystatechange = function() {
|
|
@@ -3368,10 +3368,10 @@ const ha = (e) => {
|
|
|
3368
3368
|
e,
|
|
3369
3369
|
w
|
|
3370
3370
|
)), w = null;
|
|
3371
|
-
}, i === void 0 && o.setContentType(null), "setRequestHeader" in w &&
|
|
3371
|
+
}, i === void 0 && o.setContentType(null), "setRequestHeader" in w && S.forEach(o.toJSON(), function(E, b) {
|
|
3372
3372
|
w.setRequestHeader(b, E);
|
|
3373
|
-
}),
|
|
3374
|
-
w && (a(!
|
|
3373
|
+
}), S.isUndefined(r.withCredentials) || (w.withCredentials = !!r.withCredentials), l && l !== "json" && (w.responseType = r.responseType), c && ([h, f] = kt(c, !0), w.addEventListener("progress", h)), u && w.upload && ([m, A] = kt(u), w.upload.addEventListener("progress", m), w.upload.addEventListener("loadend", A)), (r.cancelToken || r.signal) && (d = (N) => {
|
|
3374
|
+
w && (a(!N || N.type ? new Ze(null, e, w) : N), w.abort(), w = null);
|
|
3375
3375
|
}, r.cancelToken && r.cancelToken.subscribe(d), r.signal && (r.signal.aborted ? d() : r.signal.addEventListener("abort", d)));
|
|
3376
3376
|
const C = ao(r.url);
|
|
3377
3377
|
if (C && ue.protocols.indexOf(C) === -1) {
|
|
@@ -3401,7 +3401,7 @@ const ha = (e) => {
|
|
|
3401
3401
|
};
|
|
3402
3402
|
e.forEach((c) => c.addEventListener("abort", i));
|
|
3403
3403
|
const { signal: u } = a;
|
|
3404
|
-
return u.unsubscribe = () =>
|
|
3404
|
+
return u.unsubscribe = () => S.asap(l), u;
|
|
3405
3405
|
}
|
|
3406
3406
|
}, go = function* (e, t) {
|
|
3407
3407
|
let s = e.byteLength;
|
|
@@ -3460,93 +3460,93 @@ const ha = (e) => {
|
|
|
3460
3460
|
}, {
|
|
3461
3461
|
highWaterMark: 2
|
|
3462
3462
|
});
|
|
3463
|
-
}, mn = 64 * 1024, { isFunction: gt } =
|
|
3463
|
+
}, mn = 64 * 1024, { isFunction: gt } = S, wo = (({ Request: e, Response: t }) => ({
|
|
3464
3464
|
Request: e,
|
|
3465
3465
|
Response: t
|
|
3466
|
-
}))(
|
|
3466
|
+
}))(S.global), {
|
|
3467
3467
|
ReadableStream: hn,
|
|
3468
3468
|
TextEncoder: fn
|
|
3469
|
-
} =
|
|
3469
|
+
} = S.global, gn = (e, ...t) => {
|
|
3470
3470
|
try {
|
|
3471
3471
|
return !!e(...t);
|
|
3472
3472
|
} catch {
|
|
3473
3473
|
return !1;
|
|
3474
3474
|
}
|
|
3475
3475
|
}, bo = (e) => {
|
|
3476
|
-
e =
|
|
3476
|
+
e = S.merge.call({
|
|
3477
3477
|
skipUndefined: !0
|
|
3478
3478
|
}, wo, e);
|
|
3479
3479
|
const { fetch: t, Request: s, Response: a } = e, r = t ? gt(t) : typeof fetch == "function", i = gt(s), o = gt(a);
|
|
3480
3480
|
if (!r)
|
|
3481
3481
|
return !1;
|
|
3482
|
-
const l = r && gt(hn), u = r && (typeof fn == "function" ? /* @__PURE__ */ ((f) => (
|
|
3482
|
+
const l = r && gt(hn), u = r && (typeof fn == "function" ? /* @__PURE__ */ ((f) => (p) => f.encode(p))(new fn()) : async (f) => new Uint8Array(await new s(f).arrayBuffer())), c = i && l && gn(() => {
|
|
3483
3483
|
let f = !1;
|
|
3484
|
-
const
|
|
3484
|
+
const p = new s(ue.origin, {
|
|
3485
3485
|
body: new hn(),
|
|
3486
3486
|
method: "POST",
|
|
3487
3487
|
get duplex() {
|
|
3488
3488
|
return f = !0, "half";
|
|
3489
3489
|
}
|
|
3490
3490
|
}).headers.has("Content-Type");
|
|
3491
|
-
return f && !
|
|
3492
|
-
}), d = o && l && gn(() =>
|
|
3491
|
+
return f && !p;
|
|
3492
|
+
}), d = o && l && gn(() => S.isReadableStream(new a("").body)), m = {
|
|
3493
3493
|
stream: d && ((f) => f.body)
|
|
3494
3494
|
};
|
|
3495
3495
|
r && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((f) => {
|
|
3496
|
-
!m[f] && (m[f] = (
|
|
3497
|
-
let v =
|
|
3496
|
+
!m[f] && (m[f] = (p, w) => {
|
|
3497
|
+
let v = p && p[f];
|
|
3498
3498
|
if (v)
|
|
3499
|
-
return v.call(
|
|
3499
|
+
return v.call(p);
|
|
3500
3500
|
throw new J(`Response type '${f}' is not supported`, J.ERR_NOT_SUPPORT, w);
|
|
3501
3501
|
});
|
|
3502
3502
|
});
|
|
3503
3503
|
const h = async (f) => {
|
|
3504
3504
|
if (f == null)
|
|
3505
3505
|
return 0;
|
|
3506
|
-
if (
|
|
3506
|
+
if (S.isBlob(f))
|
|
3507
3507
|
return f.size;
|
|
3508
|
-
if (
|
|
3508
|
+
if (S.isSpecCompliantForm(f))
|
|
3509
3509
|
return (await new s(ue.origin, {
|
|
3510
3510
|
method: "POST",
|
|
3511
3511
|
body: f
|
|
3512
3512
|
}).arrayBuffer()).byteLength;
|
|
3513
|
-
if (
|
|
3513
|
+
if (S.isArrayBufferView(f) || S.isArrayBuffer(f))
|
|
3514
3514
|
return f.byteLength;
|
|
3515
|
-
if (
|
|
3515
|
+
if (S.isURLSearchParams(f) && (f = f + ""), S.isString(f))
|
|
3516
3516
|
return (await u(f)).byteLength;
|
|
3517
|
-
},
|
|
3518
|
-
const w =
|
|
3519
|
-
return w ?? h(
|
|
3517
|
+
}, A = async (f, p) => {
|
|
3518
|
+
const w = S.toFiniteNumber(f.getContentLength());
|
|
3519
|
+
return w ?? h(p);
|
|
3520
3520
|
};
|
|
3521
3521
|
return async (f) => {
|
|
3522
3522
|
let {
|
|
3523
|
-
url:
|
|
3523
|
+
url: p,
|
|
3524
3524
|
method: w,
|
|
3525
3525
|
data: v,
|
|
3526
3526
|
signal: C,
|
|
3527
|
-
cancelToken:
|
|
3527
|
+
cancelToken: N,
|
|
3528
3528
|
timeout: E,
|
|
3529
3529
|
onDownloadProgress: b,
|
|
3530
3530
|
onUploadProgress: I,
|
|
3531
3531
|
responseType: k,
|
|
3532
3532
|
headers: Q,
|
|
3533
|
-
withCredentials:
|
|
3533
|
+
withCredentials: F = "same-origin",
|
|
3534
3534
|
fetchOptions: j
|
|
3535
3535
|
} = ha(f), R = t || fetch;
|
|
3536
3536
|
k = k ? (k + "").toLowerCase() : "text";
|
|
3537
|
-
let V = fo([C,
|
|
3537
|
+
let V = fo([C, N && N.toAbortSignal()], E), se = null;
|
|
3538
3538
|
const q = V && V.unsubscribe && (() => {
|
|
3539
3539
|
V.unsubscribe();
|
|
3540
3540
|
});
|
|
3541
3541
|
let U;
|
|
3542
3542
|
try {
|
|
3543
|
-
if (I && c && w !== "get" && w !== "head" && (U = await
|
|
3544
|
-
let T = new s(
|
|
3543
|
+
if (I && c && w !== "get" && w !== "head" && (U = await A(Q, v)) !== 0) {
|
|
3544
|
+
let T = new s(p, {
|
|
3545
3545
|
method: "POST",
|
|
3546
3546
|
body: v,
|
|
3547
3547
|
duplex: "half"
|
|
3548
3548
|
}), O;
|
|
3549
|
-
if (
|
|
3549
|
+
if (S.isFormData(v) && (O = T.headers.get("content-type")) && Q.setContentType(O), T.body) {
|
|
3550
3550
|
const [G, _] = ln(
|
|
3551
3551
|
U,
|
|
3552
3552
|
kt(cn(I))
|
|
@@ -3554,7 +3554,7 @@ const ha = (e) => {
|
|
|
3554
3554
|
v = un(T.body, mn, G, _);
|
|
3555
3555
|
}
|
|
3556
3556
|
}
|
|
3557
|
-
|
|
3557
|
+
S.isString(F) || (F = F ? "include" : "omit");
|
|
3558
3558
|
const x = i && "credentials" in s.prototype, D = {
|
|
3559
3559
|
...j,
|
|
3560
3560
|
signal: V,
|
|
@@ -3562,17 +3562,17 @@ const ha = (e) => {
|
|
|
3562
3562
|
headers: Q.normalize().toJSON(),
|
|
3563
3563
|
body: v,
|
|
3564
3564
|
duplex: "half",
|
|
3565
|
-
credentials: x ?
|
|
3565
|
+
credentials: x ? F : void 0
|
|
3566
3566
|
};
|
|
3567
|
-
se = i && new s(
|
|
3568
|
-
let L = await (i ? R(se, j) : R(
|
|
3569
|
-
const
|
|
3570
|
-
if (d && (b ||
|
|
3567
|
+
se = i && new s(p, D);
|
|
3568
|
+
let L = await (i ? R(se, j) : R(p, D));
|
|
3569
|
+
const z = d && (k === "stream" || k === "response");
|
|
3570
|
+
if (d && (b || z && q)) {
|
|
3571
3571
|
const T = {};
|
|
3572
3572
|
["status", "statusText", "headers"].forEach((H) => {
|
|
3573
3573
|
T[H] = L[H];
|
|
3574
3574
|
});
|
|
3575
|
-
const O =
|
|
3575
|
+
const O = S.toFiniteNumber(L.headers.get("content-length")), [G, _] = b && ln(
|
|
3576
3576
|
O,
|
|
3577
3577
|
kt(cn(b), !0)
|
|
3578
3578
|
) || [];
|
|
@@ -3584,8 +3584,8 @@ const ha = (e) => {
|
|
|
3584
3584
|
);
|
|
3585
3585
|
}
|
|
3586
3586
|
k = k || "text";
|
|
3587
|
-
let y = await m[
|
|
3588
|
-
return !
|
|
3587
|
+
let y = await m[S.findKey(m, k) || "text"](L, f);
|
|
3588
|
+
return !z && q && q(), await new Promise((T, O) => {
|
|
3589
3589
|
ua(T, O, {
|
|
3590
3590
|
data: y,
|
|
3591
3591
|
headers: we.from(L.headers),
|
|
@@ -3624,7 +3624,7 @@ const Us = {
|
|
|
3624
3624
|
get: fa
|
|
3625
3625
|
}
|
|
3626
3626
|
};
|
|
3627
|
-
|
|
3627
|
+
S.forEach(Us, (e, t) => {
|
|
3628
3628
|
if (e) {
|
|
3629
3629
|
try {
|
|
3630
3630
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -3633,9 +3633,9 @@ N.forEach(Us, (e, t) => {
|
|
|
3633
3633
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
3634
3634
|
}
|
|
3635
3635
|
});
|
|
3636
|
-
const pn = (e) => `- ${e}`, yo = (e) =>
|
|
3636
|
+
const pn = (e) => `- ${e}`, yo = (e) => S.isFunction(e) || e === null || e === !1;
|
|
3637
3637
|
function Co(e, t) {
|
|
3638
|
-
e =
|
|
3638
|
+
e = S.isArray(e) ? e : [e];
|
|
3639
3639
|
const { length: s } = e;
|
|
3640
3640
|
let a, r;
|
|
3641
3641
|
const i = {};
|
|
@@ -3644,7 +3644,7 @@ function Co(e, t) {
|
|
|
3644
3644
|
let l;
|
|
3645
3645
|
if (r = a, !yo(a) && (r = Us[(l = String(a)).toLowerCase()], r === void 0))
|
|
3646
3646
|
throw new J(`Unknown adapter '${l}'`);
|
|
3647
|
-
if (r && (
|
|
3647
|
+
if (r && (S.isFunction(r) || (r = r.get(t))))
|
|
3648
3648
|
break;
|
|
3649
3649
|
i[l || "#" + o] = r;
|
|
3650
3650
|
}
|
|
@@ -3784,7 +3784,7 @@ let De = class {
|
|
|
3784
3784
|
silentJSONParsing: Se.transitional(Se.boolean),
|
|
3785
3785
|
forcedJSONParsing: Se.transitional(Se.boolean),
|
|
3786
3786
|
clarifyTimeoutError: Se.transitional(Se.boolean)
|
|
3787
|
-
}, !1), r != null && (
|
|
3787
|
+
}, !1), r != null && (S.isFunction(r) ? s.paramsSerializer = {
|
|
3788
3788
|
serialize: r
|
|
3789
3789
|
} : xt.assertOptions(r, {
|
|
3790
3790
|
encode: Se.function,
|
|
@@ -3793,11 +3793,11 @@ let De = class {
|
|
|
3793
3793
|
baseUrl: Se.spelling("baseURL"),
|
|
3794
3794
|
withXsrfToken: Se.spelling("withXSRFToken")
|
|
3795
3795
|
}, !0), s.method = (s.method || this.defaults.method || "get").toLowerCase();
|
|
3796
|
-
let o = i &&
|
|
3796
|
+
let o = i && S.merge(
|
|
3797
3797
|
i.common,
|
|
3798
3798
|
i[s.method]
|
|
3799
3799
|
);
|
|
3800
|
-
i &&
|
|
3800
|
+
i && S.forEach(
|
|
3801
3801
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
3802
3802
|
(f) => {
|
|
3803
3803
|
delete i[f];
|
|
@@ -3805,12 +3805,12 @@ let De = class {
|
|
|
3805
3805
|
), s.headers = we.concat(o, i);
|
|
3806
3806
|
const l = [];
|
|
3807
3807
|
let u = !0;
|
|
3808
|
-
this.interceptors.request.forEach(function(
|
|
3809
|
-
typeof
|
|
3808
|
+
this.interceptors.request.forEach(function(p) {
|
|
3809
|
+
typeof p.runWhen == "function" && p.runWhen(s) === !1 || (u = u && p.synchronous, l.unshift(p.fulfilled, p.rejected));
|
|
3810
3810
|
});
|
|
3811
3811
|
const c = [];
|
|
3812
|
-
this.interceptors.response.forEach(function(
|
|
3813
|
-
c.push(
|
|
3812
|
+
this.interceptors.response.forEach(function(p) {
|
|
3813
|
+
c.push(p.fulfilled, p.rejected);
|
|
3814
3814
|
});
|
|
3815
3815
|
let d, m = 0, h;
|
|
3816
3816
|
if (!u) {
|
|
@@ -3820,18 +3820,18 @@ let De = class {
|
|
|
3820
3820
|
return d;
|
|
3821
3821
|
}
|
|
3822
3822
|
h = l.length;
|
|
3823
|
-
let
|
|
3823
|
+
let A = s;
|
|
3824
3824
|
for (; m < h; ) {
|
|
3825
|
-
const f = l[m++],
|
|
3825
|
+
const f = l[m++], p = l[m++];
|
|
3826
3826
|
try {
|
|
3827
|
-
|
|
3827
|
+
A = f(A);
|
|
3828
3828
|
} catch (w) {
|
|
3829
|
-
|
|
3829
|
+
p.call(this, w);
|
|
3830
3830
|
break;
|
|
3831
3831
|
}
|
|
3832
3832
|
}
|
|
3833
3833
|
try {
|
|
3834
|
-
d = An.call(this,
|
|
3834
|
+
d = An.call(this, A);
|
|
3835
3835
|
} catch (f) {
|
|
3836
3836
|
return Promise.reject(f);
|
|
3837
3837
|
}
|
|
@@ -3845,7 +3845,7 @@ let De = class {
|
|
|
3845
3845
|
return oa(s, t.params, t.paramsSerializer);
|
|
3846
3846
|
}
|
|
3847
3847
|
};
|
|
3848
|
-
|
|
3848
|
+
S.forEach(["delete", "get", "head", "options"], function(t) {
|
|
3849
3849
|
De.prototype[t] = function(s, a) {
|
|
3850
3850
|
return this.request(Qe(a || {}, {
|
|
3851
3851
|
method: t,
|
|
@@ -3854,7 +3854,7 @@ N.forEach(["delete", "get", "head", "options"], function(t) {
|
|
|
3854
3854
|
}));
|
|
3855
3855
|
};
|
|
3856
3856
|
});
|
|
3857
|
-
|
|
3857
|
+
S.forEach(["post", "put", "patch"], function(t) {
|
|
3858
3858
|
function s(a) {
|
|
3859
3859
|
return function(i, o, l) {
|
|
3860
3860
|
return this.request(Qe(l || {}, {
|
|
@@ -3948,7 +3948,7 @@ function Eo(e) {
|
|
|
3948
3948
|
};
|
|
3949
3949
|
}
|
|
3950
3950
|
function To(e) {
|
|
3951
|
-
return
|
|
3951
|
+
return S.isObject(e) && e.isAxiosError === !0;
|
|
3952
3952
|
}
|
|
3953
3953
|
const As = {
|
|
3954
3954
|
Continue: 100,
|
|
@@ -4026,7 +4026,7 @@ Object.entries(As).forEach(([e, t]) => {
|
|
|
4026
4026
|
});
|
|
4027
4027
|
function wa(e) {
|
|
4028
4028
|
const t = new De(e), s = $n(De.prototype.request, t);
|
|
4029
|
-
return
|
|
4029
|
+
return S.extend(s, De.prototype, t, { allOwnKeys: !0 }), S.extend(s, t, null, { allOwnKeys: !0 }), s.create = function(r) {
|
|
4030
4030
|
return wa(Qe(e, r));
|
|
4031
4031
|
}, s;
|
|
4032
4032
|
}
|
|
@@ -4046,7 +4046,7 @@ re.spread = Eo;
|
|
|
4046
4046
|
re.isAxiosError = To;
|
|
4047
4047
|
re.mergeConfig = Qe;
|
|
4048
4048
|
re.AxiosHeaders = we;
|
|
4049
|
-
re.formToJSON = (e) => ca(
|
|
4049
|
+
re.formToJSON = (e) => ca(S.isHTMLForm(e) ? new FormData(e) : e);
|
|
4050
4050
|
re.getAdapter = ga.getAdapter;
|
|
4051
4051
|
re.HttpStatusCode = As;
|
|
4052
4052
|
re.default = re;
|
|
@@ -4412,9 +4412,9 @@ class Be {
|
|
|
4412
4412
|
const c = hs(l), m = (Fe(i)?.data ?? [])[0]?.list?.items?.map((v) => hs(v)), h = [];
|
|
4413
4413
|
m?.forEach((v) => {
|
|
4414
4414
|
v && v.length > 0 && v.forEach((C) => {
|
|
4415
|
-
C.forEach((
|
|
4415
|
+
C.forEach((N) => {
|
|
4416
4416
|
const E = this.getNews({
|
|
4417
|
-
path:
|
|
4417
|
+
path: N.replaceAll("|", "/"),
|
|
4418
4418
|
imagesizes: s.getNewsItemsRelated,
|
|
4419
4419
|
exclude: a.getNewsItemsRelated
|
|
4420
4420
|
});
|
|
@@ -4428,7 +4428,7 @@ class Be {
|
|
|
4428
4428
|
...h
|
|
4429
4429
|
])).map(
|
|
4430
4430
|
(v) => Fe(v)?.data
|
|
4431
|
-
),
|
|
4431
|
+
), p = await fr(
|
|
4432
4432
|
c,
|
|
4433
4433
|
this.getNews
|
|
4434
4434
|
);
|
|
@@ -4441,7 +4441,7 @@ class Be {
|
|
|
4441
4441
|
return {
|
|
4442
4442
|
news: o ?? [],
|
|
4443
4443
|
autor: u,
|
|
4444
|
-
newsRelatedResponses:
|
|
4444
|
+
newsRelatedResponses: p,
|
|
4445
4445
|
itemList: Fe(i)?.data ?? [],
|
|
4446
4446
|
newsRelatedListResponses: f,
|
|
4447
4447
|
schemasImages: w ?? []
|
|
@@ -4629,10 +4629,10 @@ const pu = async (e, t, s, a, r, i, o) => {
|
|
|
4629
4629
|
return (() => {
|
|
4630
4630
|
const m = {};
|
|
4631
4631
|
for (let h = 0; h < c.length; h++) {
|
|
4632
|
-
const
|
|
4632
|
+
const A = dr(
|
|
4633
4633
|
c[h]
|
|
4634
4634
|
), f = "Home_" + (Math.floor(h / i) + 1) + "_" + (Math.floor(h % i) + 1);
|
|
4635
|
-
|
|
4635
|
+
A && (m[f] = { ...A });
|
|
4636
4636
|
}
|
|
4637
4637
|
return m;
|
|
4638
4638
|
})();
|
|
@@ -4704,19 +4704,19 @@ const pu = async (e, t, s, a, r, i, o) => {
|
|
|
4704
4704
|
seccion: async (e) => {
|
|
4705
4705
|
const { meta: t, config: s, pathname: a, slug: r, axiosApi: i } = e, o = new Be({ config: s, axiosApi: i }), u = at(a).split("/"), c = [], d = st(a), m = Number(s.newsListLimit) ?? 0, h = B().PUBLIC_LNG === "en";
|
|
4706
4706
|
try {
|
|
4707
|
-
const
|
|
4707
|
+
const A = await o.getNewsListSection({
|
|
4708
4708
|
section: r,
|
|
4709
4709
|
size: m,
|
|
4710
4710
|
newstype: s.newsType,
|
|
4711
4711
|
exclude: "keywords,gallery,related,relatedexternal,external,customfields",
|
|
4712
4712
|
page: d
|
|
4713
4713
|
});
|
|
4714
|
-
if (!
|
|
4715
|
-
const f =
|
|
4714
|
+
if (!A) return ge(t);
|
|
4715
|
+
const f = A.data.data, p = f[0];
|
|
4716
4716
|
return f.length < m || c.push({ rel: "next", url: et(s, u, d) }), d > 1 && c.push({ rel: "prev", url: tt(s, u, d) }), {
|
|
4717
4717
|
...t,
|
|
4718
|
-
title: h ? `Latest News from ${
|
|
4719
|
-
description: h ? `All the latest news from ${
|
|
4718
|
+
title: h ? `Latest News from ${p.info.section?.name} | ${s.name}` : `Últimas Noticias de ${p.info.section?.name} | ${s.name}`,
|
|
4719
|
+
description: h ? `All the latest news from ${p.info.section?.name} on ${s.name}` : `Todas las últimas noticias de ${p.info.section?.name} en ${s.name}`,
|
|
4720
4720
|
alternates: {
|
|
4721
4721
|
...t.alternates,
|
|
4722
4722
|
canonical: s.siteUrl + a
|
|
@@ -4730,28 +4730,28 @@ const pu = async (e, t, s, a, r, i, o) => {
|
|
|
4730
4730
|
"msapplication-TileImage": s.msapplicationTileImage ?? ""
|
|
4731
4731
|
},
|
|
4732
4732
|
openGraph: {
|
|
4733
|
-
title: `${
|
|
4733
|
+
title: `${p.info.section?.name}`,
|
|
4734
4734
|
type: "website",
|
|
4735
4735
|
url: `${s.siteUrl}${a}`,
|
|
4736
4736
|
locale: t.openGraph.locale
|
|
4737
4737
|
},
|
|
4738
4738
|
twitter: {
|
|
4739
4739
|
card: "summary_large_image",
|
|
4740
|
-
title: `${
|
|
4740
|
+
title: `${p.info.section?.name}`,
|
|
4741
4741
|
site: t.twitter.site,
|
|
4742
4742
|
domain: s.siteUrl,
|
|
4743
4743
|
url: `${s.siteUrl}${a}`
|
|
4744
4744
|
}
|
|
4745
4745
|
};
|
|
4746
|
-
} catch (
|
|
4747
|
-
return console.error(
|
|
4746
|
+
} catch (A) {
|
|
4747
|
+
return console.error(A), ge(t);
|
|
4748
4748
|
}
|
|
4749
4749
|
},
|
|
4750
4750
|
tema: async (e) => {
|
|
4751
|
-
const { meta: t, config: s, pathname: a, slug: r, axiosApi: i } = e, o = new Be({ config: s, axiosApi: i }), u = at(a).split("/"), c = [], d = st(a), m = Number(s.newsListLimit) ?? 0, h = /([t][0-9]{4})\w+/.exec(r || ""),
|
|
4751
|
+
const { meta: t, config: s, pathname: a, slug: r, axiosApi: i } = e, o = new Be({ config: s, axiosApi: i }), u = at(a).split("/"), c = [], d = st(a), m = Number(s.newsListLimit) ?? 0, h = /([t][0-9]{4})\w+/.exec(r || ""), A = h && h?.length > 0 ? h[0].replace("t", "") : "", { PUBLIC_TAG_TYPE: f, PUBLIC_LNG: p } = B(), w = p === "en";
|
|
4752
4752
|
try {
|
|
4753
4753
|
const v = await o.getNewsListTags({
|
|
4754
|
-
tagid:
|
|
4754
|
+
tagid: A,
|
|
4755
4755
|
size: m,
|
|
4756
4756
|
tagtype: Number(f),
|
|
4757
4757
|
newstype: s.newsType,
|
|
@@ -4813,13 +4813,13 @@ const pu = async (e, t, s, a, r, i, o) => {
|
|
|
4813
4813
|
};
|
|
4814
4814
|
if (!i) return h;
|
|
4815
4815
|
try {
|
|
4816
|
-
const
|
|
4816
|
+
const A = await o.getNewsList({
|
|
4817
4817
|
size: m,
|
|
4818
4818
|
newstype: s.newsType,
|
|
4819
4819
|
exclude: "keywords,gallery,related,relatedexternal,external,customfields",
|
|
4820
4820
|
page: d
|
|
4821
4821
|
});
|
|
4822
|
-
return
|
|
4822
|
+
return A ? (A.data.data.length < m || c.push({ rel: "next", url: et(s, u, d) }), d > 1 && c.push({ rel: "prev", url: tt(s, u, d) }), {
|
|
4823
4823
|
...t,
|
|
4824
4824
|
title: `${s.name} | ${r.lastNotesTitle}`,
|
|
4825
4825
|
alternates: {
|
|
@@ -4835,8 +4835,8 @@ const pu = async (e, t, s, a, r, i, o) => {
|
|
|
4835
4835
|
"msapplication-TileImage": s.msapplicationTileImage ?? ""
|
|
4836
4836
|
}
|
|
4837
4837
|
}) : h;
|
|
4838
|
-
} catch (
|
|
4839
|
-
return console.error(
|
|
4838
|
+
} catch (A) {
|
|
4839
|
+
return console.error(A), h;
|
|
4840
4840
|
}
|
|
4841
4841
|
},
|
|
4842
4842
|
video: async (e) => {
|
|
@@ -4982,7 +4982,7 @@ const pu = async (e, t, s, a, r, i, o) => {
|
|
|
4982
4982
|
autor: async (e) => {
|
|
4983
4983
|
const { meta: t, config: s, pathname: a, imgSizes: r, slug: i, axiosApi: o } = e, l = new Be({ config: s, axiosApi: o, imgSizes: r }), c = at(a).split("/"), d = [], m = st(a), h = B().PUBLIC_LNG === "en";
|
|
4984
4984
|
try {
|
|
4985
|
-
const
|
|
4985
|
+
const A = await l.getAutorInfo({
|
|
4986
4986
|
user: i,
|
|
4987
4987
|
exclude: "groups",
|
|
4988
4988
|
imagesizes: r.sm
|
|
@@ -5002,8 +5002,8 @@ const pu = async (e, t, s, a, r, i, o) => {
|
|
|
5002
5002
|
url: tt(s, c, m)
|
|
5003
5003
|
}), {
|
|
5004
5004
|
...t,
|
|
5005
|
-
title: h ? `Latest News from ${
|
|
5006
|
-
description: h ? `All the latest news from ${
|
|
5005
|
+
title: h ? `Latest News from ${A?.data.data[0]?.info.fullname} | ${s.name}` : `Últimas Noticias de ${A?.data.data[0]?.info.fullname} | ${s.name}`,
|
|
5006
|
+
description: h ? `All the latest news from ${A?.data.data[0]?.info.fullname} on ${s.name}` : `Todas las últimas noticias de ${A?.data.data[0]?.info.fullname} en ${s.name}`,
|
|
5007
5007
|
alternates: {
|
|
5008
5008
|
...t.alternates,
|
|
5009
5009
|
canonical: s.siteUrl + a
|
|
@@ -5017,8 +5017,8 @@ const pu = async (e, t, s, a, r, i, o) => {
|
|
|
5017
5017
|
"msapplication-TileImage": s.msapplicationTileImage ?? ""
|
|
5018
5018
|
}
|
|
5019
5019
|
}) : ge(t);
|
|
5020
|
-
} catch (
|
|
5021
|
-
return console.error(
|
|
5020
|
+
} catch (A) {
|
|
5021
|
+
return console.error(A), ge(t);
|
|
5022
5022
|
}
|
|
5023
5023
|
}
|
|
5024
5024
|
}, ko = (e) => e ? e.replace(/<[^>]*>/g, "").replace(/ /gi, " ").replace(/&/gi, "&").replace(/"/gi, '"').replace(/'/gi, "'").replace(/\s+/g, " ").trim() : "", Ro = ({
|
|
@@ -5072,20 +5072,20 @@ async function wu({
|
|
|
5072
5072
|
listAutor: d,
|
|
5073
5073
|
currentNew: m,
|
|
5074
5074
|
banners: h,
|
|
5075
|
-
schemasImages:
|
|
5075
|
+
schemasImages: A,
|
|
5076
5076
|
internalPath: f,
|
|
5077
|
-
config:
|
|
5077
|
+
config: p,
|
|
5078
5078
|
socials: w,
|
|
5079
5079
|
speculationType: v = "Common",
|
|
5080
5080
|
preloadImageUrl: C,
|
|
5081
|
-
custom_Speculation:
|
|
5081
|
+
custom_Speculation: N,
|
|
5082
5082
|
custom_metadata: E,
|
|
5083
5083
|
custom_scriptReplaces: b,
|
|
5084
5084
|
head_custom_elements: I
|
|
5085
5085
|
}) {
|
|
5086
|
-
const k =
|
|
5086
|
+
const k = A && A[0] && A[0].preview ? A[0] : void 0, Q = E || await Uo[r]({
|
|
5087
5087
|
meta: s,
|
|
5088
|
-
config:
|
|
5088
|
+
config: p,
|
|
5089
5089
|
currentNew: m,
|
|
5090
5090
|
pathname: i,
|
|
5091
5091
|
imgSizes: a,
|
|
@@ -5095,10 +5095,10 @@ async function wu({
|
|
|
5095
5095
|
axiosApi: e,
|
|
5096
5096
|
internalPath: f,
|
|
5097
5097
|
schemasImages: k
|
|
5098
|
-
}),
|
|
5098
|
+
}), F = yr(Q), j = b || Yn[r]({
|
|
5099
5099
|
pathname: i,
|
|
5100
5100
|
slug: o,
|
|
5101
|
-
config:
|
|
5101
|
+
config: p,
|
|
5102
5102
|
currentNew: m,
|
|
5103
5103
|
internalPath: f
|
|
5104
5104
|
});
|
|
@@ -5130,9 +5130,9 @@ async function wu({
|
|
|
5130
5130
|
}))
|
|
5131
5131
|
}
|
|
5132
5132
|
),
|
|
5133
|
-
|
|
5134
|
-
t.ampConfig &&
|
|
5135
|
-
/* @__PURE__ */ n(zr, { config:
|
|
5133
|
+
F,
|
|
5134
|
+
t.ampConfig && p.ampOption && t.ampConfig_slugIsValid && /* @__PURE__ */ n("link", { rel: "amphtml", href: p.siteUrl + "/amp" + i }),
|
|
5135
|
+
/* @__PURE__ */ n(zr, { config: p }),
|
|
5136
5136
|
/* @__PURE__ */ n(
|
|
5137
5137
|
zn,
|
|
5138
5138
|
{
|
|
@@ -5144,39 +5144,39 @@ async function wu({
|
|
|
5144
5144
|
t.schemas_NewsArticle && f && /* @__PURE__ */ n(
|
|
5145
5145
|
Qr,
|
|
5146
5146
|
{
|
|
5147
|
-
BASE_URL:
|
|
5148
|
-
config:
|
|
5147
|
+
BASE_URL: p.siteUrl,
|
|
5148
|
+
config: p,
|
|
5149
5149
|
realPath: f,
|
|
5150
5150
|
axiosApi: e
|
|
5151
5151
|
}
|
|
5152
5152
|
),
|
|
5153
|
-
t.schemas_SoftwareApplication && /* @__PURE__ */ n(jr, { config:
|
|
5154
|
-
/* @__PURE__ */ n(Vr, { config:
|
|
5153
|
+
t.schemas_SoftwareApplication && /* @__PURE__ */ n(jr, { config: p }),
|
|
5154
|
+
/* @__PURE__ */ n(Vr, { config: p, socials: w }),
|
|
5155
5155
|
t.schemas_Videos && f && /* @__PURE__ */ n(
|
|
5156
5156
|
Fr,
|
|
5157
5157
|
{
|
|
5158
5158
|
axiosApi: e,
|
|
5159
5159
|
realPath: f,
|
|
5160
|
-
config:
|
|
5160
|
+
config: p
|
|
5161
5161
|
}
|
|
5162
5162
|
),
|
|
5163
|
-
t.schemas_Autor && c && /* @__PURE__ */ n(Ro, { autor: c, listAutor: d, config:
|
|
5163
|
+
t.schemas_Autor && c && /* @__PURE__ */ n(Ro, { autor: c, listAutor: d, config: p }),
|
|
5164
5164
|
t.schemas_ItemList && /* @__PURE__ */ n(
|
|
5165
5165
|
_r,
|
|
5166
5166
|
{
|
|
5167
|
-
config:
|
|
5167
|
+
config: p,
|
|
5168
5168
|
ROUTE: r,
|
|
5169
5169
|
pathname: i,
|
|
5170
5170
|
axiosApi: e
|
|
5171
5171
|
}
|
|
5172
5172
|
),
|
|
5173
|
-
t.schemas_WebsiteList && /* @__PURE__ */ n(Hr, { config:
|
|
5173
|
+
t.schemas_WebsiteList && /* @__PURE__ */ n(Hr, { config: p }),
|
|
5174
5174
|
v && /* @__PURE__ */ n(
|
|
5175
5175
|
qr,
|
|
5176
5176
|
{
|
|
5177
5177
|
type: v,
|
|
5178
|
-
active:
|
|
5179
|
-
customSpeculation:
|
|
5178
|
+
active: p.useSpeculationRules,
|
|
5179
|
+
customSpeculation: N
|
|
5180
5180
|
}
|
|
5181
5181
|
),
|
|
5182
5182
|
I
|
|
@@ -5201,9 +5201,9 @@ const bu = ({
|
|
|
5201
5201
|
config: i,
|
|
5202
5202
|
currentNew: l,
|
|
5203
5203
|
internalPath: o
|
|
5204
|
-
}),
|
|
5204
|
+
}), A = c.before.active, f = c.after.active, p = A ? c.before.customData ? c.before.customData : h : void 0, w = f ? c.after.customData ? c.after.customData : h : void 0;
|
|
5205
5205
|
return /* @__PURE__ */ g(K, { children: [
|
|
5206
|
-
/* @__PURE__ */ n(zn, { name: "bodybefore", banners: s, replaces:
|
|
5206
|
+
/* @__PURE__ */ n(zn, { name: "bodybefore", banners: s, replaces: p }),
|
|
5207
5207
|
e,
|
|
5208
5208
|
/* @__PURE__ */ n(za, {}),
|
|
5209
5209
|
/* @__PURE__ */ n(Qa, {}),
|
|
@@ -5248,9 +5248,9 @@ function Po({
|
|
|
5248
5248
|
enableDrag: i,
|
|
5249
5249
|
onIndexChange: o
|
|
5250
5250
|
}) {
|
|
5251
|
-
const [l, u] = Z(!1), [c, d] = Z(0), [m, h] = Z(0), [
|
|
5251
|
+
const [l, u] = Z(!1), [c, d] = Z(0), [m, h] = Z(0), [A, f] = Z(0), [p, w] = Z(0), [v, C] = Z(null), N = Ga(null), [E, b] = Z(1), I = le(() => {
|
|
5252
5252
|
if (r) return 1;
|
|
5253
|
-
const y =
|
|
5253
|
+
const y = N.current?.offsetWidth || window.innerWidth, T = s + a, O = Math.floor(y / T);
|
|
5254
5254
|
return Math.max(1, O);
|
|
5255
5255
|
}, [r, s, a]);
|
|
5256
5256
|
xe(() => {
|
|
@@ -5263,13 +5263,13 @@ function Po({
|
|
|
5263
5263
|
const Q = le(() => {
|
|
5264
5264
|
const y = I();
|
|
5265
5265
|
return Math.max(0, t - y);
|
|
5266
|
-
}, [t, I])(),
|
|
5266
|
+
}, [t, I])(), F = le(() => {
|
|
5267
5267
|
const y = I();
|
|
5268
5268
|
return y === 1 ? 1 : Math.max(1, Math.ceil(y / 2));
|
|
5269
5269
|
}, [I]), j = le(
|
|
5270
5270
|
(y, T = 0) => {
|
|
5271
5271
|
if (r) {
|
|
5272
|
-
const O =
|
|
5272
|
+
const O = N.current?.offsetWidth || window.innerWidth;
|
|
5273
5273
|
return -(y * (100 + a)) + T / O * 100;
|
|
5274
5274
|
}
|
|
5275
5275
|
return -(y * (s + a)) + T;
|
|
@@ -5277,7 +5277,7 @@ function Po({
|
|
|
5277
5277
|
[r, s, a]
|
|
5278
5278
|
), R = le(
|
|
5279
5279
|
(y) => {
|
|
5280
|
-
const T =
|
|
5280
|
+
const T = N.current?.offsetWidth || window.innerWidth, O = I(), G = F();
|
|
5281
5281
|
if (r)
|
|
5282
5282
|
return Math.abs(y) / T * 100 > 30 ? 1 : 0;
|
|
5283
5283
|
{
|
|
@@ -5285,7 +5285,7 @@ function Po({
|
|
|
5285
5285
|
return H >= (O === 1 ? 0.2 : 0.3) ? O === 1 ? 1 : Math.min(Math.round(H), G) : 0;
|
|
5286
5286
|
}
|
|
5287
5287
|
},
|
|
5288
|
-
[r, s, a, I,
|
|
5288
|
+
[r, s, a, I, F]
|
|
5289
5289
|
), V = le(
|
|
5290
5290
|
(y) => {
|
|
5291
5291
|
i && (d(y), h(y), f(0), w(Date.now()), u(!0), document.body.classList.add("dragging"));
|
|
@@ -5306,13 +5306,13 @@ function Po({
|
|
|
5306
5306
|
), U = le(
|
|
5307
5307
|
(y) => {
|
|
5308
5308
|
if (!l || !i) return;
|
|
5309
|
-
const T = m - c, O = Date.now() -
|
|
5310
|
-
if (
|
|
5309
|
+
const T = m - c, O = Date.now() - p, G = Math.abs(T) / Math.max(O, 1), _ = R(T), W = G > 0.5 && Math.abs(T) > 50 ? Math.max(_, 1) : _;
|
|
5310
|
+
if (W > 0)
|
|
5311
5311
|
if (T > 0) {
|
|
5312
|
-
const Y = Math.max(0, e -
|
|
5312
|
+
const Y = Math.max(0, e - W);
|
|
5313
5313
|
o(Y);
|
|
5314
5314
|
} else {
|
|
5315
|
-
const Y = Math.min(Q, e +
|
|
5315
|
+
const Y = Math.min(Q, e + W);
|
|
5316
5316
|
o(Y);
|
|
5317
5317
|
}
|
|
5318
5318
|
u(!1), f(0), document.body.classList.remove("dragging"), document.removeEventListener("mousemove", q), document.removeEventListener("mouseup", U), y.clientX === c && v?.dispatchEvent(new PointerEvent("click"));
|
|
@@ -5321,7 +5321,7 @@ function Po({
|
|
|
5321
5321
|
l,
|
|
5322
5322
|
m,
|
|
5323
5323
|
c,
|
|
5324
|
-
|
|
5324
|
+
p,
|
|
5325
5325
|
e,
|
|
5326
5326
|
Q,
|
|
5327
5327
|
i,
|
|
@@ -5345,7 +5345,7 @@ function Po({
|
|
|
5345
5345
|
l && (y.preventDefault(), se(y.touches[0].clientX));
|
|
5346
5346
|
},
|
|
5347
5347
|
[l, se]
|
|
5348
|
-
),
|
|
5348
|
+
), z = le(
|
|
5349
5349
|
(y) => {
|
|
5350
5350
|
U(y);
|
|
5351
5351
|
},
|
|
@@ -5353,16 +5353,16 @@ function Po({
|
|
|
5353
5353
|
);
|
|
5354
5354
|
return xe(() => {
|
|
5355
5355
|
if (l)
|
|
5356
|
-
return
|
|
5357
|
-
|
|
5356
|
+
return N.current?.addEventListener("mousemove", q), N.current?.addEventListener("mouseup", U), () => {
|
|
5357
|
+
N.current?.removeEventListener(
|
|
5358
5358
|
"mousemove",
|
|
5359
5359
|
q
|
|
5360
|
-
),
|
|
5360
|
+
), N.current?.removeEventListener("mouseup", U);
|
|
5361
5361
|
};
|
|
5362
5362
|
}, [l, se, U, q]), {
|
|
5363
5363
|
isDragging: l,
|
|
5364
|
-
translateOffset:
|
|
5365
|
-
carrouselRef:
|
|
5364
|
+
translateOffset: A,
|
|
5365
|
+
carrouselRef: N,
|
|
5366
5366
|
maxIndex: Q,
|
|
5367
5367
|
getTranslateValue: j,
|
|
5368
5368
|
actualVisibleItems: E,
|
|
@@ -5370,7 +5370,7 @@ function Po({
|
|
|
5370
5370
|
onMouseDown: x,
|
|
5371
5371
|
onTouchStart: D,
|
|
5372
5372
|
onTouchMove: L,
|
|
5373
|
-
onTouchEnd:
|
|
5373
|
+
onTouchEnd: z,
|
|
5374
5374
|
onMouseLeave: U
|
|
5375
5375
|
}
|
|
5376
5376
|
};
|
|
@@ -5385,19 +5385,19 @@ function yu(e) {
|
|
|
5385
5385
|
fullPageWidth: o = !1,
|
|
5386
5386
|
pagination: l = !1,
|
|
5387
5387
|
enableDrag: u = !0
|
|
5388
|
-
} = e, c = Array.isArray(t) ? t : t?.props?.value?.split('<div style="display:none;">SPLITING</div>'), [d, m] = Z(0), [h,
|
|
5388
|
+
} = e, c = Array.isArray(t) ? t : t?.props?.value?.split('<div style="display:none;">SPLITING</div>'), [d, m] = Z(0), [h, A] = Z(!1);
|
|
5389
5389
|
xe(() => {
|
|
5390
|
-
|
|
5390
|
+
A(!0);
|
|
5391
5391
|
const j = document.getElementById("ssr-dummy_" + s);
|
|
5392
5392
|
j && j.remove();
|
|
5393
5393
|
}, []);
|
|
5394
5394
|
const {
|
|
5395
5395
|
isDragging: f,
|
|
5396
|
-
translateOffset:
|
|
5396
|
+
translateOffset: p,
|
|
5397
5397
|
carrouselRef: w,
|
|
5398
5398
|
maxIndex: v,
|
|
5399
5399
|
getTranslateValue: C,
|
|
5400
|
-
actualVisibleItems:
|
|
5400
|
+
actualVisibleItems: N,
|
|
5401
5401
|
dragHandlers: E
|
|
5402
5402
|
} = Po({
|
|
5403
5403
|
currentIndex: d,
|
|
@@ -5419,7 +5419,7 @@ function yu(e) {
|
|
|
5419
5419
|
b(d + 1);
|
|
5420
5420
|
}, [d, b]);
|
|
5421
5421
|
if (!h) return;
|
|
5422
|
-
const Q = C(d,
|
|
5422
|
+
const Q = C(d, p), F = o ? `translateX(${Q}%)` : `translateX(${Q}px)`;
|
|
5423
5423
|
return /* @__PURE__ */ g("div", { className: `${s}- carrousel-container`, children: [
|
|
5424
5424
|
d > 0 && /* @__PURE__ */ n(
|
|
5425
5425
|
"button",
|
|
@@ -5490,7 +5490,7 @@ function yu(e) {
|
|
|
5490
5490
|
{
|
|
5491
5491
|
className: "card",
|
|
5492
5492
|
style: {
|
|
5493
|
-
transform:
|
|
5493
|
+
transform: F,
|
|
5494
5494
|
transition: f ? "none" : "transform 300ms ease",
|
|
5495
5495
|
minWidth: o ? "100%" : r,
|
|
5496
5496
|
width: "min-content",
|
|
@@ -5505,7 +5505,7 @@ function yu(e) {
|
|
|
5505
5505
|
{
|
|
5506
5506
|
className: "card",
|
|
5507
5507
|
style: {
|
|
5508
|
-
transform:
|
|
5508
|
+
transform: F,
|
|
5509
5509
|
transition: f ? "none" : "transform 300ms ease",
|
|
5510
5510
|
minWidth: o ? "100%" : r,
|
|
5511
5511
|
width: "min-content",
|
|
@@ -5519,14 +5519,14 @@ function yu(e) {
|
|
|
5519
5519
|
}
|
|
5520
5520
|
),
|
|
5521
5521
|
l && /* @__PURE__ */ n("nav", { className: "carrousel-pagination", children: Array.from(
|
|
5522
|
-
{ length: Math.ceil(c.length /
|
|
5522
|
+
{ length: Math.ceil(c.length / N) },
|
|
5523
5523
|
(j, R) => {
|
|
5524
|
-
const V = Math.floor(d /
|
|
5524
|
+
const V = Math.floor(d / N) === R;
|
|
5525
5525
|
return /* @__PURE__ */ n(
|
|
5526
5526
|
"li",
|
|
5527
5527
|
{
|
|
5528
5528
|
className: V ? "active" : "",
|
|
5529
|
-
onClick: () => b(R *
|
|
5529
|
+
onClick: () => b(R * N),
|
|
5530
5530
|
style: {
|
|
5531
5531
|
cursor: "pointer",
|
|
5532
5532
|
backgroundColor: V ? "var(--carrousel-pagination-background-color)" : "var(--carrousel-pagination-background-color-white)"
|
|
@@ -5867,9 +5867,9 @@ const He = (e) => {
|
|
|
5867
5867
|
style: f
|
|
5868
5868
|
}
|
|
5869
5869
|
);
|
|
5870
|
-
}, h = () => e.main.uppertitle ? /* @__PURE__ */ n("p", { className: "sass-com-nd-uppertitle", title: e.main.uppertitle, children: e.main.uppertitle }) : null,
|
|
5870
|
+
}, h = () => e.main.uppertitle ? /* @__PURE__ */ n("p", { className: "sass-com-nd-uppertitle", title: e.main.uppertitle, children: e.main.uppertitle }) : null, A = () => {
|
|
5871
5871
|
if (u && a?.tags?.length && a.tags.length > 0) {
|
|
5872
|
-
const f = a.tags[0],
|
|
5872
|
+
const f = a.tags[0], p = f.name;
|
|
5873
5873
|
return ce.createElement(
|
|
5874
5874
|
o,
|
|
5875
5875
|
{ className: "sass-com-nd-sectionDescriptionContainer section" },
|
|
@@ -5878,12 +5878,12 @@ const He = (e) => {
|
|
|
5878
5878
|
P,
|
|
5879
5879
|
{
|
|
5880
5880
|
block_subPublication: c?.tema,
|
|
5881
|
-
"aria-label":
|
|
5881
|
+
"aria-label": p,
|
|
5882
5882
|
className: "sass-com-nd-sectionDescription",
|
|
5883
5883
|
href: je(f, i),
|
|
5884
|
-
children:
|
|
5884
|
+
children: p
|
|
5885
5885
|
}
|
|
5886
|
-
) : /* @__PURE__ */ n("div", { className: "sass-com-nd-sectionDescription", children:
|
|
5886
|
+
) : /* @__PURE__ */ n("div", { className: "sass-com-nd-sectionDescription", children: p }),
|
|
5887
5887
|
h()
|
|
5888
5888
|
] })
|
|
5889
5889
|
);
|
|
@@ -5918,7 +5918,7 @@ const He = (e) => {
|
|
|
5918
5918
|
children: /* @__PURE__ */ n(Go, { noteShare: { ...t } })
|
|
5919
5919
|
}
|
|
5920
5920
|
),
|
|
5921
|
-
/* @__PURE__ */ n(
|
|
5921
|
+
/* @__PURE__ */ n(A, {}),
|
|
5922
5922
|
ce.createElement(
|
|
5923
5923
|
e.isTitle ? "h1" : "h2",
|
|
5924
5924
|
{
|
|
@@ -7848,8 +7848,8 @@ const Tu = (e) => {
|
|
|
7848
7848
|
const { currentPage: t, showNext: s, maxPages: a, pathname: r, query: i, block_subPublication: o } = e, l = (u, c, d) => {
|
|
7849
7849
|
let m = "";
|
|
7850
7850
|
const h = c.split("/");
|
|
7851
|
-
return h.indexOf("page") !== -1 && h.splice(m.indexOf("page") - 1, h.length - 1), h.forEach((
|
|
7852
|
-
f !== 0 && (m += `/${
|
|
7851
|
+
return h.indexOf("page") !== -1 && h.splice(m.indexOf("page") - 1, h.length - 1), h.forEach((A, f) => {
|
|
7852
|
+
f !== 0 && (m += `/${A}`);
|
|
7853
7853
|
}), u === "next" ? m += `/page/${t + 1}${d ? `?query=${d}` : ""}` : m += `/page/${t - 1}${d ? `?query=${d}` : ""}`;
|
|
7854
7854
|
};
|
|
7855
7855
|
return (t > 1 || s && t < a) && /* @__PURE__ */ g("section", { className: "sass-com-np-content", children: [
|
|
@@ -7898,7 +7898,7 @@ const Tu = (e) => {
|
|
|
7898
7898
|
priorityHigh: d = !1,
|
|
7899
7899
|
isLarge: m,
|
|
7900
7900
|
paths: h,
|
|
7901
|
-
keywords:
|
|
7901
|
+
keywords: A,
|
|
7902
7902
|
speculationPrerenderClass: f
|
|
7903
7903
|
} = e;
|
|
7904
7904
|
return /* @__PURE__ */ g(
|
|
@@ -7940,7 +7940,7 @@ const Tu = (e) => {
|
|
|
7940
7940
|
overImage: u,
|
|
7941
7941
|
isTitle: c,
|
|
7942
7942
|
paths: h,
|
|
7943
|
-
keywords:
|
|
7943
|
+
keywords: A
|
|
7944
7944
|
}
|
|
7945
7945
|
) })
|
|
7946
7946
|
]
|
|
@@ -8124,7 +8124,7 @@ const Tu = (e) => {
|
|
|
8124
8124
|
const t = e.trim();
|
|
8125
8125
|
return t.startsWith("http://") || t.startsWith("https://") ? t : `https://${t}`;
|
|
8126
8126
|
}, al = (e) => !e || e.trim() === "" ? !1 : /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.trim()), Lu = async (e) => {
|
|
8127
|
-
const { autor: t, autorIcon: s, socialIconsFilled: a = !1 } = e, r = s, i = t?.info?.image?.sizes?.[0]?.url ?? "", o = t?.info?.fullname ?? "", l = t?.info?.email ?? "", u = t?.addtional?.USER_SHOWEMAIL ?? !1, c = t?.addtional?.USER_SHOWBIO ?? !1, d = t?.addtional?.USER_MIBIO ?? "", m = pt(t?.addtional?.USER_USERFB ?? ""), h = pt(t?.addtional?.USER_USERIG ?? ""),
|
|
8127
|
+
const { autor: t, autorIcon: s, socialIconsFilled: a = !1 } = e, r = s, i = t?.info?.image?.sizes?.[0]?.url ?? "", o = t?.info?.fullname ?? "", l = t?.info?.email ?? "", u = t?.addtional?.USER_SHOWEMAIL ?? !1, c = t?.addtional?.USER_SHOWBIO ?? !1, d = t?.addtional?.USER_MIBIO ?? "", m = pt(t?.addtional?.USER_USERFB ?? ""), h = pt(t?.addtional?.USER_USERIG ?? ""), A = pt(t?.addtional?.USER_USERTWT ?? ""), f = pt(t?.addtional?.USER_USERLIN ?? ""), p = () => !u || !l || l.trim() === "" ? !1 : al(l), w = (v) => `mailto:${v.trim()}`;
|
|
8128
8128
|
return /* @__PURE__ */ n(
|
|
8129
8129
|
"section",
|
|
8130
8130
|
{
|
|
@@ -8147,7 +8147,7 @@ const Tu = (e) => {
|
|
|
8147
8147
|
}
|
|
8148
8148
|
),
|
|
8149
8149
|
/* @__PURE__ */ n("h1", { className: "sass-com-ah1-name", children: o }),
|
|
8150
|
-
|
|
8150
|
+
p() && /* @__PURE__ */ n(
|
|
8151
8151
|
"a",
|
|
8152
8152
|
{
|
|
8153
8153
|
href: w(l),
|
|
@@ -8179,10 +8179,10 @@ const Tu = (e) => {
|
|
|
8179
8179
|
children: /* @__PURE__ */ n(Wt, { className: "sass-com-ah1-social-icon sass-com-ah1-social-icon-instagram", forceSVG: !0 })
|
|
8180
8180
|
}
|
|
8181
8181
|
),
|
|
8182
|
-
|
|
8182
|
+
A && /* @__PURE__ */ n(
|
|
8183
8183
|
"a",
|
|
8184
8184
|
{
|
|
8185
|
-
href:
|
|
8185
|
+
href: A,
|
|
8186
8186
|
target: "_blank",
|
|
8187
8187
|
className: "sass-com-ah1-social-link",
|
|
8188
8188
|
rel: "noreferrer",
|
|
@@ -8204,7 +8204,7 @@ const Tu = (e) => {
|
|
|
8204
8204
|
}
|
|
8205
8205
|
);
|
|
8206
8206
|
}, Pu = async (e) => {
|
|
8207
|
-
const { autor: t, autorIcon: s, socialIconsFilled: a = !1 } = e, r = s, i = t?.info?.image?.sizes?.[0]?.url ?? "", o = t?.info?.fullname ?? "", l = t?.info?.email ?? "", u = t?.addtional?.USER_SHOWEMAIL ?? !1, c = t?.addtional?.USER_SHOWBIO ?? !1, d = t?.addtional?.USER_MIBIO ?? "", m = t?.addtional?.USER_USERFB ?? "", h = t?.addtional?.USER_USERIG ?? "",
|
|
8207
|
+
const { autor: t, autorIcon: s, socialIconsFilled: a = !1 } = e, r = s, i = t?.info?.image?.sizes?.[0]?.url ?? "", o = t?.info?.fullname ?? "", l = t?.info?.email ?? "", u = t?.addtional?.USER_SHOWEMAIL ?? !1, c = t?.addtional?.USER_SHOWBIO ?? !1, d = t?.addtional?.USER_MIBIO ?? "", m = t?.addtional?.USER_USERFB ?? "", h = t?.addtional?.USER_USERIG ?? "", A = t?.addtional?.USER_USERTWT ?? "", f = t?.addtional?.USER_USERLIN ?? "";
|
|
8208
8208
|
return /* @__PURE__ */ n(
|
|
8209
8209
|
"section",
|
|
8210
8210
|
{
|
|
@@ -8261,10 +8261,10 @@ const Tu = (e) => {
|
|
|
8261
8261
|
)
|
|
8262
8262
|
}
|
|
8263
8263
|
),
|
|
8264
|
-
|
|
8264
|
+
A && /* @__PURE__ */ n(
|
|
8265
8265
|
"a",
|
|
8266
8266
|
{
|
|
8267
|
-
href:
|
|
8267
|
+
href: A,
|
|
8268
8268
|
target: "_blank",
|
|
8269
8269
|
rel: "noreferrer",
|
|
8270
8270
|
children: /* @__PURE__ */ n(Te, { className: "sass-com-ah2-socialIcon sass-com-ah2-social-icon-x", forceSVG: !0 })
|
|
@@ -9049,7 +9049,7 @@ const Tu = (e) => {
|
|
|
9049
9049
|
) : /* @__PURE__ */ n("div", { className: "sass-com-ts-chipStyled", children: s.name }, a))
|
|
9050
9050
|
] }) });
|
|
9051
9051
|
}, pl = async (e) => {
|
|
9052
|
-
const { autor: t } = e, { SUB_PUBLICATION_PREFIX_IN_ROUTES: s } = B(), a = Me(), r = t?.addtional?.USER_SHOWBIO ?? !1, i = t?.info?.name ?? "", o = t?.info?.fullname ?? "", l = t?.info?.image?.sizes?.[0]?.url ?? "", u = t?.addtional?.USER_MIBIO ?? "", c = t?.addtional?.USER_USERFB ?? "", d = t?.addtional?.USER_USERIG ?? "", m = t?.addtional?.USER_USERTWT ?? "", h = t?.addtional?.USER_USERLIN ?? "",
|
|
9052
|
+
const { autor: t } = e, { SUB_PUBLICATION_PREFIX_IN_ROUTES: s } = B(), a = Me(), r = t?.addtional?.USER_SHOWBIO ?? !1, i = t?.info?.name ?? "", o = t?.info?.fullname ?? "", l = t?.info?.image?.sizes?.[0]?.url ?? "", u = t?.addtional?.USER_MIBIO ?? "", c = t?.addtional?.USER_USERFB ?? "", d = t?.addtional?.USER_USERIG ?? "", m = t?.addtional?.USER_USERTWT ?? "", h = t?.addtional?.USER_USERLIN ?? "", A = `${a}/${e.paths.autor}/${i}`;
|
|
9053
9053
|
return r && !!t && /* @__PURE__ */ n("section", { className: "sass-com-ja2-contentBox", children: /* @__PURE__ */ g("div", { className: "sass-com-ja2-content", children: [
|
|
9054
9054
|
/* @__PURE__ */ g("div", { className: "sass-com-ja2-avatarContent", children: [
|
|
9055
9055
|
/* @__PURE__ */ n(
|
|
@@ -9057,7 +9057,7 @@ const Tu = (e) => {
|
|
|
9057
9057
|
{
|
|
9058
9058
|
block_subPublication: s?.autor,
|
|
9059
9059
|
className: "sass-com-ja2-journalistInfo su-no-underline",
|
|
9060
|
-
href:
|
|
9060
|
+
href: A,
|
|
9061
9061
|
children: l ? /* @__PURE__ */ n(
|
|
9062
9062
|
"img",
|
|
9063
9063
|
{
|
|
@@ -9076,7 +9076,7 @@ const Tu = (e) => {
|
|
|
9076
9076
|
{
|
|
9077
9077
|
block_subPublication: s?.autor,
|
|
9078
9078
|
className: "su-no-underline",
|
|
9079
|
-
href:
|
|
9079
|
+
href: A,
|
|
9080
9080
|
children: o
|
|
9081
9081
|
}
|
|
9082
9082
|
) }),
|
|
@@ -9243,7 +9243,7 @@ const Tu = (e) => {
|
|
|
9243
9243
|
{
|
|
9244
9244
|
className: "sass-com-ja2-article",
|
|
9245
9245
|
dangerouslySetInnerHTML: {
|
|
9246
|
-
__html: `${u} <a aria-label="${i}" href="${
|
|
9246
|
+
__html: `${u} <a aria-label="${i}" href="${A}">${String(
|
|
9247
9247
|
e.texts.authorViewMore ?? "Ver más"
|
|
9248
9248
|
)}</a>`
|
|
9249
9249
|
}
|
|
@@ -9478,8 +9478,8 @@ function Du(e) {
|
|
|
9478
9478
|
share: d,
|
|
9479
9479
|
overImage: m,
|
|
9480
9480
|
isTitle: h,
|
|
9481
|
-
paths:
|
|
9482
|
-
} = e, { CONFIG_videoClipUrl: f } = B(),
|
|
9481
|
+
paths: A
|
|
9482
|
+
} = e, { CONFIG_videoClipUrl: f } = B(), p = i?.homepreview ?? "imagen", w = () => {
|
|
9483
9483
|
const b = e.videos?.[0]?.clip;
|
|
9484
9484
|
return b ? /* @__PURE__ */ n("div", { className: "homeCardVideoClipContainer", children: /* @__PURE__ */ n("video", { autoPlay: !0, loop: !0, muted: !0, playsInline: !0, width: "480", height: "535", children: /* @__PURE__ */ n("source", { src: `${f}${b}`, type: "video/mp4" }) }) }) : null;
|
|
9485
9485
|
}, v = () => {
|
|
@@ -9502,7 +9502,7 @@ function Du(e) {
|
|
|
9502
9502
|
if (!b?.code) return null;
|
|
9503
9503
|
const k = /src\s*=\s*"([^"]+)"/.exec(b.code), Q = k ? k[1] : null;
|
|
9504
9504
|
if (!Q) return null;
|
|
9505
|
-
const
|
|
9505
|
+
const F = r.original?.url ?? r.sizes?.[0]?.url ?? "", j = ze() ?? "", R = F.startsWith("http") || F.includes(j) || j === "" ? F : j + F;
|
|
9506
9506
|
return /* @__PURE__ */ n(
|
|
9507
9507
|
"iframe",
|
|
9508
9508
|
{
|
|
@@ -9515,7 +9515,7 @@ function Du(e) {
|
|
|
9515
9515
|
}
|
|
9516
9516
|
}
|
|
9517
9517
|
);
|
|
9518
|
-
},
|
|
9518
|
+
}, N = () => {
|
|
9519
9519
|
const I = e.gallery ?? [];
|
|
9520
9520
|
return I.length ? /* @__PURE__ */ n(
|
|
9521
9521
|
Ve,
|
|
@@ -9526,7 +9526,7 @@ function Du(e) {
|
|
|
9526
9526
|
pagination: !0,
|
|
9527
9527
|
cardGap: 0,
|
|
9528
9528
|
children: I.map((k, Q) => {
|
|
9529
|
-
const
|
|
9529
|
+
const F = k?.url || k?.id || `gallery-${Q}`;
|
|
9530
9530
|
return /* @__PURE__ */ n(
|
|
9531
9531
|
P,
|
|
9532
9532
|
{
|
|
@@ -9545,16 +9545,16 @@ function Du(e) {
|
|
|
9545
9545
|
}
|
|
9546
9546
|
)
|
|
9547
9547
|
},
|
|
9548
|
-
|
|
9548
|
+
F
|
|
9549
9549
|
);
|
|
9550
9550
|
})
|
|
9551
9551
|
}
|
|
9552
9552
|
) : null;
|
|
9553
9553
|
};
|
|
9554
9554
|
let E = null;
|
|
9555
|
-
switch (
|
|
9555
|
+
switch (p) {
|
|
9556
9556
|
case "fotogaleria":
|
|
9557
|
-
E = /* @__PURE__ */ n(
|
|
9557
|
+
E = /* @__PURE__ */ n(N, {});
|
|
9558
9558
|
break;
|
|
9559
9559
|
case "videoYouTube":
|
|
9560
9560
|
E = /* @__PURE__ */ n(v, {});
|
|
@@ -9616,7 +9616,7 @@ function Du(e) {
|
|
|
9616
9616
|
config: i,
|
|
9617
9617
|
overImage: m,
|
|
9618
9618
|
isTitle: h,
|
|
9619
|
-
paths:
|
|
9619
|
+
paths: A,
|
|
9620
9620
|
keywords: o
|
|
9621
9621
|
}
|
|
9622
9622
|
) })
|
|
@@ -11013,23 +11013,23 @@ const _u = (e) => {
|
|
|
11013
11013
|
i = i.replace(l, b);
|
|
11014
11014
|
continue;
|
|
11015
11015
|
}
|
|
11016
|
-
const d = c.preview?.sizes?.[0], m = d ? await de(d.url) : "", h = c.info.section?.url ?? "#",
|
|
11016
|
+
const d = c.preview?.sizes?.[0], m = d ? await de(d.url) : "", h = c.info.section?.url ?? "#", A = c.info.section?.name ?? "Sección", f = c.info.link?.url ?? "#", p = c.main?.title.article ?? "Título", w = (await Promise.all(
|
|
11017
11017
|
c.preview?.sizes?.map(async (b) => {
|
|
11018
11018
|
const I = await de(b.url);
|
|
11019
11019
|
return b.width < 200 ? `<source srcset="${I}" media="(width < 750px)"/>` : `<source srcset="${I}" media="(width >= 750px)"/>`;
|
|
11020
11020
|
}) || []
|
|
11021
|
-
)).reduce((b, I) => b += I, ""), v = l.match(/<span\b[^>]*data-src="[^"]+"[^>]*>[\s\S]*?<\/span>/), C = v ? v[0] : "",
|
|
11021
|
+
)).reduce((b, I) => b += I, ""), v = l.match(/<span\b[^>]*data-src="[^"]+"[^>]*>[\s\S]*?<\/span>/), C = v ? v[0] : "", N = `
|
|
11022
11022
|
<span data-src="${u}">
|
|
11023
11023
|
<picture style='display: flex'>
|
|
11024
11024
|
${w}
|
|
11025
|
-
<img fetchPriority='low' loading='lazy' src="${m}" alt="${String(t.noteRelatedImageAlt ?? "")} ${
|
|
11025
|
+
<img fetchPriority='low' loading='lazy' src="${m}" alt="${String(t.noteRelatedImageAlt ?? "")} ${p}" />
|
|
11026
11026
|
</picture>
|
|
11027
11027
|
<div>
|
|
11028
|
-
<a class="section" href="${h}">${
|
|
11029
|
-
<a class="title" href="${f}">${
|
|
11028
|
+
<a class="section" href="${h}">${A}</a>
|
|
11029
|
+
<a class="title" href="${f}">${p}</a>
|
|
11030
11030
|
</div>
|
|
11031
11031
|
</span>
|
|
11032
|
-
`, E = l.replace(C,
|
|
11032
|
+
`, E = l.replace(C, N);
|
|
11033
11033
|
i = i.replace(l, E);
|
|
11034
11034
|
}
|
|
11035
11035
|
return i;
|
|
@@ -11062,35 +11062,35 @@ async function Hl(e, t) {
|
|
|
11062
11062
|
let m = u;
|
|
11063
11063
|
if (d && c)
|
|
11064
11064
|
try {
|
|
11065
|
-
const h = await t.iframe({ path: c }),
|
|
11065
|
+
const h = await t.iframe({ path: c }), A = t.schema ? await t.schema(c) : null;
|
|
11066
11066
|
if (h && h.data) {
|
|
11067
11067
|
const f = h.data.data[0];
|
|
11068
|
-
let
|
|
11068
|
+
let p = "";
|
|
11069
11069
|
const w = u.match(
|
|
11070
11070
|
/<span\b[^>]*class=["']video__title["'][^>]*>([\s\S]*?)<\/span>/i
|
|
11071
11071
|
), v = w && w[1] ? w[1].trim() : "";
|
|
11072
|
-
f.info && f.info.type === "video-youtube" ?
|
|
11072
|
+
f.info && f.info.type === "video-youtube" ? p = `<iframe
|
|
11073
11073
|
loading="lazy"
|
|
11074
11074
|
frameborder="0"
|
|
11075
11075
|
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
|
|
11076
11076
|
referrerpolicy="strict-origin-when-cross-origin"
|
|
11077
11077
|
allowfullscreen
|
|
11078
11078
|
style="width: 100%; height: auto; min-height: 400px;"
|
|
11079
|
-
src="https://www.youtube.com/embed/${f.main?.code || f.main?.youtubeid || ""}"></iframe>` : f.info && f.info.type === "video-link" ?
|
|
11079
|
+
src="https://www.youtube.com/embed/${f.main?.code || f.main?.youtubeid || ""}"></iframe>` : f.info && f.info.type === "video-link" ? p = `<iframe
|
|
11080
11080
|
loading="lazy"
|
|
11081
11081
|
frameborder="0"
|
|
11082
11082
|
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
|
|
11083
11083
|
referrerpolicy="strict-origin-when-cross-origin"
|
|
11084
11084
|
allowfullscreen
|
|
11085
11085
|
style="width: 100%; height: auto; min-height: 400px;"
|
|
11086
|
-
src="${f.main?.code || ""}"></iframe>` :
|
|
11086
|
+
src="${f.main?.code || ""}"></iframe>` : p = f.main?.code || "";
|
|
11087
11087
|
const C = v || f.main?.description || "";
|
|
11088
11088
|
m = `
|
|
11089
11089
|
<figure class="videoFigure">
|
|
11090
|
-
${
|
|
11091
|
-
JSON.stringify(
|
|
11090
|
+
${A && A.data && A.data.data ? `<script type="application/ld+json">${qt(
|
|
11091
|
+
JSON.stringify(A.data.data)
|
|
11092
11092
|
)}<\/script>` : ""}
|
|
11093
|
-
${
|
|
11093
|
+
${p}
|
|
11094
11094
|
${C ? `<figcaption>${C}</figcaption>` : ""}
|
|
11095
11095
|
</figure>
|
|
11096
11096
|
`;
|
|
@@ -11366,12 +11366,12 @@ function Zl(e) {
|
|
|
11366
11366
|
const u = [], c = [];
|
|
11367
11367
|
let d = "", m = !0;
|
|
11368
11368
|
for (let h = 0; h < l; h++) {
|
|
11369
|
-
const
|
|
11369
|
+
const A = `[data-index="${h}"]:checked ~ .carrousel-pagination li:nth-child(${h + 1}) {
|
|
11370
11370
|
background-color:var(--carrousel-pagination-background-color)
|
|
11371
11371
|
}`;
|
|
11372
11372
|
d += `
|
|
11373
11373
|
.${s}.carrousel-container {
|
|
11374
|
-
${
|
|
11374
|
+
${A}
|
|
11375
11375
|
[data-index="${h}"]:checked ~ .carrousel-ssr {
|
|
11376
11376
|
transform: translate(-${h * (100 + r) + "%"});
|
|
11377
11377
|
transition: transform 300ms;
|
|
@@ -12001,16 +12001,24 @@ const rc = async (e) => {
|
|
|
12001
12001
|
const { PUBLIC_IS_OFFLINE: t } = B();
|
|
12002
12002
|
if (!(t === "true")) {
|
|
12003
12003
|
const c = /<img\b[^>]*\bsrc=["']([^"']+)["']/g, d = [...e.matchAll(c)], m = {};
|
|
12004
|
-
for (const
|
|
12005
|
-
const p =
|
|
12006
|
-
if (
|
|
12007
|
-
const
|
|
12008
|
-
m[p] =
|
|
12004
|
+
for (const f of d) {
|
|
12005
|
+
const p = f[1] ?? "", w = e.includes(p) ? { url: p } : null;
|
|
12006
|
+
if (w) {
|
|
12007
|
+
const v = await de(w.url) || "";
|
|
12008
|
+
m[p] = v;
|
|
12009
12009
|
}
|
|
12010
12010
|
}
|
|
12011
|
+
const h = {}, A = /<figure\b[^>]*>[\s\S]*?<\/figure>/g;
|
|
12012
|
+
for (const f of [...e.matchAll(A)]) {
|
|
12013
|
+
const p = f[0].match(/<img\b[^>]*\bsrc=["']([^"']+)["']/), w = f[0].match(/<figcaption[^>]*>([\s\S]*?)<\/figcaption>/i);
|
|
12014
|
+
p?.[1] && w?.[1] && (h[p[1]] = w[1].replace(/<[^>]+>/g, "").trim());
|
|
12015
|
+
}
|
|
12011
12016
|
return e.replace(
|
|
12012
12017
|
c,
|
|
12013
|
-
(
|
|
12018
|
+
(f, p) => {
|
|
12019
|
+
const w = f.match(/\btitle=["']([^"']*)["']/);
|
|
12020
|
+
return `<img fetchPriority='low' loading='lazy' alt='${(h[p] || w?.[1] || "imagen").replace(/'/g, "'")}' src="${m[p] || p}"`;
|
|
12021
|
+
}
|
|
12014
12022
|
);
|
|
12015
12023
|
}
|
|
12016
12024
|
let a = e;
|
|
@@ -12022,69 +12030,69 @@ const rc = async (e) => {
|
|
|
12022
12030
|
if (!c) break;
|
|
12023
12031
|
const d = c[0], m = c[1] ?? "";
|
|
12024
12032
|
r.add(m);
|
|
12025
|
-
const h = d.match(/<img\b[^>]*\balt=["']([^"']*)["']/), p =
|
|
12026
|
-
let
|
|
12027
|
-
if (
|
|
12028
|
-
const
|
|
12029
|
-
|
|
12033
|
+
const h = d.match(/<figcaption[^>]*>([\s\S]*?)<\/figcaption>/i), A = h ? h[1].replace(/<[^>]+>/g, "").trim() : null, f = d.match(/<img\b[^>]*\balt=["']([^"']*)["']/), p = d.match(/<img\b[^>]*\btitle=["']([^"']*)["']/), w = A || f?.[1] || p?.[1] || "imagen", v = m.match(/__scale=([^&"']+)/), C = v ? decodeURIComponent(v[1]) : null;
|
|
12034
|
+
let N = 0, E = 0;
|
|
12035
|
+
if (C) {
|
|
12036
|
+
const F = C.match(/w:(\d+)/), j = C.match(/h:(\d+)/);
|
|
12037
|
+
N = F ? parseInt(F[1]) : 0, E = j ? parseInt(j[1]) : 0;
|
|
12030
12038
|
}
|
|
12031
|
-
const
|
|
12039
|
+
const I = {
|
|
12032
12040
|
preview: {
|
|
12033
12041
|
sizes: [
|
|
12034
12042
|
{
|
|
12035
|
-
scale:
|
|
12043
|
+
scale: C || `w:${N},h:${E},t:2`,
|
|
12036
12044
|
url: m,
|
|
12037
|
-
width:
|
|
12038
|
-
height:
|
|
12045
|
+
width: N,
|
|
12046
|
+
height: E
|
|
12039
12047
|
}
|
|
12040
12048
|
],
|
|
12041
12049
|
original: {
|
|
12042
12050
|
url: m.split("?")[0],
|
|
12043
|
-
width:
|
|
12044
|
-
height:
|
|
12051
|
+
width: N,
|
|
12052
|
+
height: E
|
|
12045
12053
|
},
|
|
12046
12054
|
copyright: !1,
|
|
12047
|
-
description:
|
|
12055
|
+
description: w,
|
|
12048
12056
|
photographer: !1
|
|
12049
12057
|
},
|
|
12050
12058
|
isLarge: !1,
|
|
12051
12059
|
priorityHigh: !1
|
|
12052
|
-
},
|
|
12053
|
-
a = a.replace(d,
|
|
12060
|
+
}, Q = `<div data-hydrate="ImageOffline" data-props="${encodeURIComponent(JSON.stringify(I))}"><div class="_imagePlaceholder_ooa5j_98"></div></div>`;
|
|
12061
|
+
a = a.replace(d, Q), i.lastIndex = 0;
|
|
12054
12062
|
}
|
|
12055
12063
|
const l = /<img\b[^>]*\bsrc=["']([^"']+)["'][^>]*>/g, u = [...a.matchAll(l)];
|
|
12056
12064
|
for (const c of u) {
|
|
12057
12065
|
const d = c[0], m = c[1] ?? "";
|
|
12058
12066
|
if (r.has(m)) continue;
|
|
12059
|
-
const h = d.match(/\balt=["']([^"']*)["']/),
|
|
12060
|
-
let
|
|
12061
|
-
if (
|
|
12062
|
-
const
|
|
12063
|
-
|
|
12067
|
+
const h = d.match(/\balt=["']([^"']*)["']/), A = d.match(/\btitle=["']([^"']*)["']/), f = h?.[1] || A?.[1] || "imagen", p = m.match(/__scale=([^&"']+)/), w = p ? decodeURIComponent(p[1]) : null;
|
|
12068
|
+
let v = 0, C = 0;
|
|
12069
|
+
if (w) {
|
|
12070
|
+
const k = w.match(/w:(\d+)/), Q = w.match(/h:(\d+)/);
|
|
12071
|
+
v = k ? parseInt(k[1]) : 0, C = Q ? parseInt(Q[1]) : 0;
|
|
12064
12072
|
}
|
|
12065
|
-
const
|
|
12073
|
+
const E = {
|
|
12066
12074
|
preview: {
|
|
12067
12075
|
sizes: [
|
|
12068
12076
|
{
|
|
12069
|
-
scale:
|
|
12077
|
+
scale: w || `w:${v},h:${C},t:2`,
|
|
12070
12078
|
url: m,
|
|
12071
|
-
width:
|
|
12072
|
-
height:
|
|
12079
|
+
width: v,
|
|
12080
|
+
height: C
|
|
12073
12081
|
}
|
|
12074
12082
|
],
|
|
12075
12083
|
original: {
|
|
12076
12084
|
url: m.split("?")[0],
|
|
12077
|
-
width:
|
|
12078
|
-
height:
|
|
12085
|
+
width: v,
|
|
12086
|
+
height: C
|
|
12079
12087
|
},
|
|
12080
12088
|
copyright: !1,
|
|
12081
|
-
description:
|
|
12089
|
+
description: f,
|
|
12082
12090
|
photographer: !1
|
|
12083
12091
|
},
|
|
12084
12092
|
isLarge: !1,
|
|
12085
12093
|
priorityHigh: !1
|
|
12086
|
-
},
|
|
12087
|
-
a = a.replace(d,
|
|
12094
|
+
}, I = `<div data-hydrate="ImageOffline" data-props="${encodeURIComponent(JSON.stringify(E))}"><div class="_imagePlaceholder_ooa5j_98"></div></div>`;
|
|
12095
|
+
a = a.replace(d, I);
|
|
12088
12096
|
}
|
|
12089
12097
|
return a;
|
|
12090
12098
|
}, dc = (e) => e.replace(
|
|
@@ -12102,8 +12110,8 @@ const rc = async (e) => {
|
|
|
12102
12110
|
if (a) {
|
|
12103
12111
|
l = /* @__PURE__ */ new Map();
|
|
12104
12112
|
for (const h of t) {
|
|
12105
|
-
const
|
|
12106
|
-
|
|
12113
|
+
const A = /^block_2_(\d+)$/.exec(h.key);
|
|
12114
|
+
A && A[1] && l.set(parseInt(A[1], 10), h);
|
|
12107
12115
|
}
|
|
12108
12116
|
}
|
|
12109
12117
|
let u = 0, c = e;
|
|
@@ -12114,15 +12122,15 @@ const rc = async (e) => {
|
|
|
12114
12122
|
return c = c.replace(
|
|
12115
12123
|
/<p\b[^>]*?>[\s\S]*?<\/p>|<(ul|ol)[^>]*?>[\s\S]*?<\/\1>/g,
|
|
12116
12124
|
(h) => {
|
|
12117
|
-
const
|
|
12125
|
+
const A = h.replace(/[.*+?^${}()|[\]\\/]/g, "\\$&");
|
|
12118
12126
|
if (!new RegExp(
|
|
12119
|
-
`<blockquote[^>]*?>(?:(?!<\\/blockquote>)[\\s\\S])*?${
|
|
12127
|
+
`<blockquote[^>]*?>(?:(?!<\\/blockquote>)[\\s\\S])*?${A}[\\s\\S]*?<\\/blockquote>`,
|
|
12120
12128
|
"gi"
|
|
12121
12129
|
).test(c)) {
|
|
12122
12130
|
u++;
|
|
12123
|
-
const
|
|
12124
|
-
if (!
|
|
12125
|
-
const w = Ss(
|
|
12131
|
+
const p = l ? l.get(u) : t.find((v) => v.key === `block_2_${o[u]}`);
|
|
12132
|
+
if (!p || !p.show) return h;
|
|
12133
|
+
const w = Ss(p.value, s);
|
|
12126
12134
|
return w ? `${h}<div class="banner-context">${i ? dc(w) : w}</div>` : h;
|
|
12127
12135
|
}
|
|
12128
12136
|
return h;
|
|
@@ -12138,13 +12146,13 @@ const rc = async (e) => {
|
|
|
12138
12146
|
(f) => f[1]
|
|
12139
12147
|
).map(
|
|
12140
12148
|
(f) => `<img fetchPriority='low' loading='lazy' alt='imagen' src="${f}" class="carrusel-note-item" width="800" height="469"/>`
|
|
12141
|
-
), h = "gallery_embeded" + u.toString(),
|
|
12149
|
+
), h = "gallery_embeded" + u.toString(), A = Zl({
|
|
12142
12150
|
slot_id: h,
|
|
12143
12151
|
children: m,
|
|
12144
12152
|
visibleItems: 1,
|
|
12145
12153
|
cardGap: 0
|
|
12146
12154
|
});
|
|
12147
|
-
a +=
|
|
12155
|
+
a += A, r = c;
|
|
12148
12156
|
}
|
|
12149
12157
|
return a += e.slice(r), a;
|
|
12150
12158
|
}, hc = async (e, t, s) => {
|
|
@@ -12156,20 +12164,20 @@ const rc = async (e) => {
|
|
|
12156
12164
|
(C) => u.includes(C?.[0]?.info.link.internal || "")
|
|
12157
12165
|
);
|
|
12158
12166
|
if (!c || !c[0]) continue;
|
|
12159
|
-
const d = c[0].preview?.sizes?.[0], m = d ? await de(d.url) : "", h = c[0].info.section?.url ?? "#",
|
|
12160
|
-
c[0].preview?.sizes?.map(async (C,
|
|
12167
|
+
const d = c[0].preview?.sizes?.[0], m = d ? await de(d.url) : "", h = c[0].info.section?.url ?? "#", A = c[0].info.section?.name ?? "Sección", f = c[0].info.link?.url ?? "#", p = c[0].main?.title.article ?? "Título", w = (await Promise.all(
|
|
12168
|
+
c[0].preview?.sizes?.map(async (C, N) => {
|
|
12161
12169
|
const E = await de(C.url);
|
|
12162
|
-
return
|
|
12170
|
+
return N === 0 ? `<source srcset="${E}" media="(width >= 900px)"/>` : `<source srcset="${E}" media="(width < 900px)"/>`;
|
|
12163
12171
|
})
|
|
12164
|
-
)).reduce((C,
|
|
12172
|
+
)).reduce((C, N) => C += N, ""), v = `
|
|
12165
12173
|
<span data-src="${u}">
|
|
12166
12174
|
<picture style='display: flex'>
|
|
12167
12175
|
${w}
|
|
12168
|
-
<img fetchPriority='low' loading='lazy' src="${m}" alt="${String(t.noteRelatedImageAlt ?? "")} ${
|
|
12176
|
+
<img fetchPriority='low' loading='lazy' src="${m}" alt="${String(t.noteRelatedImageAlt ?? "")} ${p}" />
|
|
12169
12177
|
</picture>
|
|
12170
12178
|
<div>
|
|
12171
|
-
<a class="section" href="${h}">${
|
|
12172
|
-
<a class="title" href="${f}">${
|
|
12179
|
+
<a class="section" href="${h}">${A}</a>
|
|
12180
|
+
<a class="title" href="${f}">${p}</a>
|
|
12173
12181
|
</div>
|
|
12174
12182
|
</span>
|
|
12175
12183
|
`;
|
|
@@ -12195,55 +12203,55 @@ async function fc(e, t) {
|
|
|
12195
12203
|
v !== -1 && v < C ? (u += 1, c = v + 4) : (u -= 1, c = C + 6);
|
|
12196
12204
|
}
|
|
12197
12205
|
const m = c, h = e.slice(o, m);
|
|
12198
|
-
let
|
|
12206
|
+
let A = null;
|
|
12199
12207
|
const f = /<span\b([^>]*)>/gi;
|
|
12200
|
-
let
|
|
12201
|
-
for (; (
|
|
12202
|
-
const v =
|
|
12208
|
+
let p;
|
|
12209
|
+
for (; (p = f.exec(h)) !== null; ) {
|
|
12210
|
+
const v = p[1];
|
|
12203
12211
|
if (!v) break;
|
|
12204
12212
|
if (/data-type\s*=\s*["']?video["']?/i.test(v)) {
|
|
12205
12213
|
const C = v.match(/data-src\s*=\s*["']([^"']+)["']/i);
|
|
12206
12214
|
if (C) {
|
|
12207
|
-
|
|
12215
|
+
A = C[1] ?? "";
|
|
12208
12216
|
break;
|
|
12209
12217
|
}
|
|
12210
12218
|
}
|
|
12211
12219
|
}
|
|
12212
|
-
if (!
|
|
12220
|
+
if (!A) {
|
|
12213
12221
|
const v = h.match(
|
|
12214
12222
|
/<span\b[^>]*data-src=["'][^"']+["'][^>]*>/i
|
|
12215
12223
|
);
|
|
12216
12224
|
if (v) {
|
|
12217
12225
|
const C = v[0].match(/data-src\s*=\s*["']([^"']+)["']/i);
|
|
12218
|
-
C && (
|
|
12226
|
+
C && (A = C[1] ?? "");
|
|
12219
12227
|
}
|
|
12220
12228
|
}
|
|
12221
12229
|
let w = "";
|
|
12222
|
-
if (
|
|
12230
|
+
if (A)
|
|
12223
12231
|
try {
|
|
12224
|
-
const v = await t.iframe({ path:
|
|
12232
|
+
const v = await t.iframe({ path: A }), C = t.schema ? await t.schema(A) : null;
|
|
12225
12233
|
if (v && v.data) {
|
|
12226
|
-
const
|
|
12234
|
+
const N = v.data.data[0];
|
|
12227
12235
|
let E = "";
|
|
12228
12236
|
const b = h.match(
|
|
12229
12237
|
/<span\b[^>]*class=["']video__title["'][^>]*>([\s\S]*?)<\/span>/i
|
|
12230
12238
|
), I = b && b[1] ? b[1].trim() : "";
|
|
12231
|
-
|
|
12239
|
+
N.info && N.info.type === "video-youtube" ? E = `<iframe
|
|
12232
12240
|
loading="lazy"
|
|
12233
12241
|
frameborder="0"
|
|
12234
12242
|
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
|
|
12235
12243
|
referrerpolicy="strict-origin-when-cross-origin"
|
|
12236
12244
|
allowfullscreen
|
|
12237
12245
|
style="position: relative!important;"
|
|
12238
|
-
src="https://www.youtube.com/embed/${
|
|
12246
|
+
src="https://www.youtube.com/embed/${N.main?.code || N.main?.youtubeid || ""}"></iframe>` : N.info && N.info.type === "video-link" ? E = `<iframe
|
|
12239
12247
|
loading="lazy"
|
|
12240
12248
|
frameborder="0"
|
|
12241
12249
|
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
|
|
12242
12250
|
referrerpolicy="strict-origin-when-cross-origin"
|
|
12243
12251
|
allowfullscreen
|
|
12244
12252
|
style="position: relative!important;"
|
|
12245
|
-
src="${
|
|
12246
|
-
const k = I ||
|
|
12253
|
+
src="${N.main?.code || ""}"></iframe>` : E = N.main?.code || "";
|
|
12254
|
+
const k = I || N.main?.description || "";
|
|
12247
12255
|
w = `
|
|
12248
12256
|
<figure class="videoFigure">
|
|
12249
12257
|
${C && C.data && C.data.data ? `<script type="application/ld+json">${qt(
|
|
@@ -12255,7 +12263,7 @@ async function fc(e, t) {
|
|
|
12255
12263
|
`;
|
|
12256
12264
|
}
|
|
12257
12265
|
} catch (v) {
|
|
12258
|
-
console.error("insertVideos error for",
|
|
12266
|
+
console.error("insertVideos error for", A, v), w = "";
|
|
12259
12267
|
}
|
|
12260
12268
|
else
|
|
12261
12269
|
w = h;
|
|
@@ -12284,7 +12292,7 @@ async function gc(e) {
|
|
|
12284
12292
|
e.texts,
|
|
12285
12293
|
a
|
|
12286
12294
|
), h = await fc(h, u), h = ic(h), h = oc(h);
|
|
12287
|
-
const
|
|
12295
|
+
const A = t.main.sources ?? [], { NEWS_JOURNALIST_COMPONENT: f, CONFIG_blockDefaultTwitterHydrator: p } = B(), w = t.config.articlepreview === _e.fotoGaleria && t.hascontent?.hasgalleryimages;
|
|
12288
12296
|
return /* @__PURE__ */ g(K, { children: [
|
|
12289
12297
|
i !== "liveblogs" && e.showHeaderImage ? w ? /* @__PURE__ */ n(
|
|
12290
12298
|
Jl,
|
|
@@ -12348,11 +12356,11 @@ async function gc(e) {
|
|
|
12348
12356
|
scope: m
|
|
12349
12357
|
}
|
|
12350
12358
|
),
|
|
12351
|
-
|
|
12359
|
+
A.length > 0 && /* @__PURE__ */ g("div", { className: "sass-pg-nrs-noteSource", children: [
|
|
12352
12360
|
/* @__PURE__ */ n(Xl, {}),
|
|
12353
|
-
/* @__PURE__ */ n("p", { children: String(e.texts.noteSource ?? "") + (
|
|
12361
|
+
/* @__PURE__ */ n("p", { children: String(e.texts.noteSource ?? "") + (A.length === 1 ? "" : "s") + ": " + A.map((v) => v.name).join(", ") })
|
|
12354
12362
|
] }),
|
|
12355
|
-
!
|
|
12363
|
+
!p && t && t.hascontent && t.hascontent.hasembeddedtwitter && /* @__PURE__ */ n("script", { async: !0, defer: !0, src: "https://platform.twitter.com/widgets.js" })
|
|
12356
12364
|
] });
|
|
12357
12365
|
}
|
|
12358
12366
|
const pc = (e) => {
|
|
@@ -12376,9 +12384,9 @@ const pc = (e) => {
|
|
|
12376
12384
|
newsRelatedListResponses: d = [],
|
|
12377
12385
|
itemList: m = [],
|
|
12378
12386
|
socials: h,
|
|
12379
|
-
getVideos:
|
|
12387
|
+
getVideos: A,
|
|
12380
12388
|
scope: f,
|
|
12381
|
-
customSummary:
|
|
12389
|
+
customSummary: p
|
|
12382
12390
|
} = e;
|
|
12383
12391
|
if (u)
|
|
12384
12392
|
return /* @__PURE__ */ g(K, { children: [
|
|
@@ -12394,12 +12402,12 @@ const pc = (e) => {
|
|
|
12394
12402
|
newsRelatedListResponses: d,
|
|
12395
12403
|
itemList: m,
|
|
12396
12404
|
slug: r,
|
|
12397
|
-
getVideos:
|
|
12405
|
+
getVideos: A,
|
|
12398
12406
|
noteShare: i,
|
|
12399
12407
|
paths: o,
|
|
12400
12408
|
showHeaderImage: !pc(u),
|
|
12401
12409
|
commonServices: a,
|
|
12402
|
-
customSummary:
|
|
12410
|
+
customSummary: p
|
|
12403
12411
|
}
|
|
12404
12412
|
),
|
|
12405
12413
|
/* @__PURE__ */ n(be, { banners: l ?? [], name: "block_3", scope: f })
|
|
@@ -12607,7 +12615,7 @@ function Wu({ texts: e, API_ENV: t, termsAndConditionsUrl: s }) {
|
|
|
12607
12615
|
{ label: a.passwordRuleSymbol, test: Ee[4] }
|
|
12608
12616
|
],
|
|
12609
12617
|
[a.passwordRuleMinLength, a.passwordRuleNumber, a.passwordRuleLowercase, a.passwordRuleUppercase, a.passwordRuleSymbol]
|
|
12610
|
-
), [o, l] = Z({}), [u, c] = Z(!1), [d, m] = Z(!1), [h,
|
|
12618
|
+
), [o, l] = Z({}), [u, c] = Z(!1), [d, m] = Z(!1), [h, A] = Z(null), [f, p] = Z(
|
|
12611
12619
|
"register"
|
|
12612
12620
|
), w = async () => {
|
|
12613
12621
|
if (t.PUBLIC_ENV === "local") {
|
|
@@ -12619,26 +12627,26 @@ function Wu({ texts: e, API_ENV: t, termsAndConditionsUrl: s }) {
|
|
|
12619
12627
|
}, v = (b, I) => {
|
|
12620
12628
|
l((k) => ({ ...k, [b]: I }));
|
|
12621
12629
|
}, C = async (b) => {
|
|
12622
|
-
b.preventDefault(),
|
|
12630
|
+
b.preventDefault(), A(null), m(!0);
|
|
12623
12631
|
try {
|
|
12624
12632
|
const I = Object.keys(r).filter((V) => !["username", "password", "confirmPassword"].includes(V)).map((V) => ({ Name: V, Value: o[V] }));
|
|
12625
12633
|
if (I.some((V) => {
|
|
12626
12634
|
if (!V.Value || V.Value.trim() === "") return !0;
|
|
12627
12635
|
}))
|
|
12628
|
-
return m(!1),
|
|
12636
|
+
return m(!1), A(a.errorCompleteFields);
|
|
12629
12637
|
if (o.password !== o.confirmPassword) {
|
|
12630
|
-
|
|
12638
|
+
A(a.errorPasswordMismatch);
|
|
12631
12639
|
return;
|
|
12632
12640
|
}
|
|
12633
12641
|
const k = o.password || "";
|
|
12634
12642
|
if (i.some(
|
|
12635
12643
|
(V) => !V.test(k)
|
|
12636
12644
|
)) {
|
|
12637
|
-
|
|
12645
|
+
A(a.errorPasswordInvalid);
|
|
12638
12646
|
return;
|
|
12639
12647
|
}
|
|
12640
|
-
const
|
|
12641
|
-
I.push({ Name: "updated_at", Value: String(
|
|
12648
|
+
const F = Math.floor(Date.now() / 1e3);
|
|
12649
|
+
I.push({ Name: "updated_at", Value: String(F) });
|
|
12642
12650
|
const j = t.PUBLIC_ENV === "local" ? "token" : await _a(
|
|
12643
12651
|
"comment_register",
|
|
12644
12652
|
t.CAPTCHA_KEY ?? ""
|
|
@@ -12661,23 +12669,23 @@ function Wu({ texts: e, API_ENV: t, termsAndConditionsUrl: s }) {
|
|
|
12661
12669
|
method: "POST",
|
|
12662
12670
|
headers: { "Content-Type": "application/json" },
|
|
12663
12671
|
body: JSON.stringify({ username: o.email })
|
|
12664
|
-
}),
|
|
12672
|
+
}), p("confirm");
|
|
12665
12673
|
return;
|
|
12666
12674
|
}
|
|
12667
12675
|
throw new Error(V?.error || "Error al crear usuario");
|
|
12668
12676
|
}
|
|
12669
|
-
|
|
12677
|
+
p("confirm");
|
|
12670
12678
|
} catch (I) {
|
|
12671
|
-
console.log(I),
|
|
12679
|
+
console.log(I), A(I?.message || I?.error || a.errorUnexpected);
|
|
12672
12680
|
} finally {
|
|
12673
12681
|
m(!1);
|
|
12674
12682
|
}
|
|
12675
|
-
},
|
|
12683
|
+
}, N = async (b) => {
|
|
12676
12684
|
if (b.preventDefault(), !o.confirmationCode) {
|
|
12677
|
-
|
|
12685
|
+
A(a.errorVerificationCodeRequired);
|
|
12678
12686
|
return;
|
|
12679
12687
|
}
|
|
12680
|
-
|
|
12688
|
+
A(null), m(!0);
|
|
12681
12689
|
try {
|
|
12682
12690
|
const I = await fetch("/api/auth/confirm-user", {
|
|
12683
12691
|
method: "POST",
|
|
@@ -12691,9 +12699,9 @@ function Wu({ texts: e, API_ENV: t, termsAndConditionsUrl: s }) {
|
|
|
12691
12699
|
const k = await I.json().catch(() => ({}));
|
|
12692
12700
|
throw new Error(k?.error || "Error al confirmar usuario");
|
|
12693
12701
|
}
|
|
12694
|
-
|
|
12702
|
+
p("success");
|
|
12695
12703
|
} catch (I) {
|
|
12696
|
-
|
|
12704
|
+
A(I?.message || a.errorUnexpected);
|
|
12697
12705
|
} finally {
|
|
12698
12706
|
m(!1);
|
|
12699
12707
|
}
|
|
@@ -12733,13 +12741,13 @@ function Wu({ texts: e, API_ENV: t, termsAndConditionsUrl: s }) {
|
|
|
12733
12741
|
}
|
|
12734
12742
|
),
|
|
12735
12743
|
b === "password" && /* @__PURE__ */ n("div", { className: "sass-pg-login-passwordChecker", children: i.map((k, Q) => {
|
|
12736
|
-
const
|
|
12744
|
+
const F = k.test(E);
|
|
12737
12745
|
return /* @__PURE__ */ g(
|
|
12738
12746
|
"div",
|
|
12739
12747
|
{
|
|
12740
|
-
className:
|
|
12748
|
+
className: F ? "sass-pg-login-valid" : "sass-pg-login-invalid",
|
|
12741
12749
|
children: [
|
|
12742
|
-
/* @__PURE__ */ n("div", { children:
|
|
12750
|
+
/* @__PURE__ */ n("div", { children: F ? "✔" : "○" }),
|
|
12743
12751
|
/* @__PURE__ */ n("div", { children: k.label })
|
|
12744
12752
|
]
|
|
12745
12753
|
},
|
|
@@ -12782,7 +12790,7 @@ function Wu({ texts: e, API_ENV: t, termsAndConditionsUrl: s }) {
|
|
|
12782
12790
|
f === "confirm" && /* @__PURE__ */ g(
|
|
12783
12791
|
"form",
|
|
12784
12792
|
{
|
|
12785
|
-
onSubmit:
|
|
12793
|
+
onSubmit: N,
|
|
12786
12794
|
className: "sass-pg-login-form",
|
|
12787
12795
|
"data-error": h ? "true" : "false",
|
|
12788
12796
|
children: [
|
|
@@ -12868,7 +12876,7 @@ function Yu({
|
|
|
12868
12876
|
API_ENV: e,
|
|
12869
12877
|
texts: t
|
|
12870
12878
|
}) {
|
|
12871
|
-
const s = { ...yc, ...t?.comentarios }, [a, r] = Z("login"), [i, o] = Z(""), [l, u] = Z(""), [c, d] = Z(""), [m, h] = Z(""), [
|
|
12879
|
+
const s = { ...yc, ...t?.comentarios }, [a, r] = Z("login"), [i, o] = Z(""), [l, u] = Z(""), [c, d] = Z(""), [m, h] = Z(""), [A, f] = Z(""), [p, w] = Z(!1), [v, C] = Z(!1), [N, E] = Z(null);
|
|
12872
12880
|
ce.useEffect(() => {
|
|
12873
12881
|
if (typeof window > "u") return;
|
|
12874
12882
|
window.location.hash.includes("forgot") && a === "login" && r("forgot"), a === "login" && I();
|
|
@@ -12886,9 +12894,9 @@ function Yu({
|
|
|
12886
12894
|
{
|
|
12887
12895
|
email: i,
|
|
12888
12896
|
password: l,
|
|
12889
|
-
showPassword:
|
|
12897
|
+
showPassword: p,
|
|
12890
12898
|
loading: v,
|
|
12891
|
-
error:
|
|
12899
|
+
error: N,
|
|
12892
12900
|
setEmail: o,
|
|
12893
12901
|
setPassword: u,
|
|
12894
12902
|
setShowPassword: w,
|
|
@@ -12942,7 +12950,7 @@ function Yu({
|
|
|
12942
12950
|
email: i,
|
|
12943
12951
|
setEmail: o,
|
|
12944
12952
|
loading: v,
|
|
12945
|
-
error:
|
|
12953
|
+
error: N,
|
|
12946
12954
|
onSubmit: async (R) => {
|
|
12947
12955
|
if (!v) {
|
|
12948
12956
|
R.preventDefault(), E(null), C(!0);
|
|
@@ -12976,17 +12984,17 @@ function Yu({
|
|
|
12976
12984
|
email: i,
|
|
12977
12985
|
confirmationCode: c,
|
|
12978
12986
|
newPassword: m,
|
|
12979
|
-
confirmNewPassword:
|
|
12980
|
-
showPassword:
|
|
12987
|
+
confirmNewPassword: A,
|
|
12988
|
+
showPassword: p,
|
|
12981
12989
|
loading: v,
|
|
12982
|
-
error:
|
|
12990
|
+
error: N,
|
|
12983
12991
|
setConfirmationCode: d,
|
|
12984
12992
|
setNewPassword: h,
|
|
12985
12993
|
setConfirmNewPassword: f,
|
|
12986
12994
|
setShowPassword: w,
|
|
12987
12995
|
onSubmit: async (R) => {
|
|
12988
12996
|
if (v) return;
|
|
12989
|
-
if (R.preventDefault(), m !==
|
|
12997
|
+
if (R.preventDefault(), m !== A) {
|
|
12990
12998
|
E("Las contraseñas no coinciden");
|
|
12991
12999
|
return;
|
|
12992
13000
|
}
|
|
@@ -13186,9 +13194,9 @@ function Ec({
|
|
|
13186
13194
|
setShowPassword: d,
|
|
13187
13195
|
onSubmit: m,
|
|
13188
13196
|
onBack: h,
|
|
13189
|
-
t:
|
|
13197
|
+
t: A
|
|
13190
13198
|
}) {
|
|
13191
|
-
const f =
|
|
13199
|
+
const f = A.changePasswordMessage.replace("{{email}}", Sc(e));
|
|
13192
13200
|
return /* @__PURE__ */ g(
|
|
13193
13201
|
"form",
|
|
13194
13202
|
{
|
|
@@ -13199,47 +13207,47 @@ function Ec({
|
|
|
13199
13207
|
/* @__PURE__ */ n("p", { className: "sass-pg-login-message", children: f }),
|
|
13200
13208
|
/* @__PURE__ */ g("ul", { className: "sass-pg-login-formUl", children: [
|
|
13201
13209
|
/* @__PURE__ */ g("div", { className: "sass-pg-login-field", children: [
|
|
13202
|
-
/* @__PURE__ */ n("label", { className: "sass-pg-login-label", children:
|
|
13210
|
+
/* @__PURE__ */ n("label", { className: "sass-pg-login-label", children: A.verificationCodeLabel }),
|
|
13203
13211
|
/* @__PURE__ */ n(
|
|
13204
13212
|
"input",
|
|
13205
13213
|
{
|
|
13206
13214
|
type: "text",
|
|
13207
13215
|
value: t,
|
|
13208
|
-
onChange: (
|
|
13216
|
+
onChange: (p) => l(p.target.value),
|
|
13209
13217
|
className: "sass-pg-login-input",
|
|
13210
13218
|
placeholder: ""
|
|
13211
13219
|
}
|
|
13212
13220
|
)
|
|
13213
13221
|
] }),
|
|
13214
13222
|
/* @__PURE__ */ g("div", { className: "sass-pg-login-field", children: [
|
|
13215
|
-
/* @__PURE__ */ n("label", { className: "sass-pg-login-label", children:
|
|
13223
|
+
/* @__PURE__ */ n("label", { className: "sass-pg-login-label", children: A.newPasswordLabel }),
|
|
13216
13224
|
/* @__PURE__ */ n(
|
|
13217
13225
|
"input",
|
|
13218
13226
|
{
|
|
13219
13227
|
type: r ? "text" : "password",
|
|
13220
13228
|
value: s,
|
|
13221
|
-
onChange: (
|
|
13229
|
+
onChange: (p) => u(p.target.value),
|
|
13222
13230
|
className: "sass-pg-login-input",
|
|
13223
13231
|
placeholder: "",
|
|
13224
13232
|
name: "password"
|
|
13225
13233
|
}
|
|
13226
13234
|
),
|
|
13227
|
-
/* @__PURE__ */ n("div", { className: "sass-pg-login-passwordChecker", children: Ra.map((
|
|
13228
|
-
const v =
|
|
13235
|
+
/* @__PURE__ */ n("div", { className: "sass-pg-login-passwordChecker", children: Ra.map((p, w) => {
|
|
13236
|
+
const v = p.test(s);
|
|
13229
13237
|
return /* @__PURE__ */ g("div", { className: v ? "sass-pg-login-valid" : "sass-pg-login-invalid", children: [
|
|
13230
13238
|
/* @__PURE__ */ n("div", { children: v ? "✔" : "○" }),
|
|
13231
|
-
/* @__PURE__ */ n("div", { children:
|
|
13239
|
+
/* @__PURE__ */ n("div", { children: p.label })
|
|
13232
13240
|
] }, w);
|
|
13233
13241
|
}) })
|
|
13234
13242
|
] }),
|
|
13235
13243
|
/* @__PURE__ */ g("div", { className: "sass-pg-login-field", children: [
|
|
13236
|
-
/* @__PURE__ */ n("label", { className: "sass-pg-login-label", children:
|
|
13244
|
+
/* @__PURE__ */ n("label", { className: "sass-pg-login-label", children: A.confirmPasswordLabel }),
|
|
13237
13245
|
/* @__PURE__ */ n(
|
|
13238
13246
|
"input",
|
|
13239
13247
|
{
|
|
13240
13248
|
type: r ? "text" : "password",
|
|
13241
13249
|
value: a,
|
|
13242
|
-
onChange: (
|
|
13250
|
+
onChange: (p) => c(p.target.value),
|
|
13243
13251
|
className: "sass-pg-login-input",
|
|
13244
13252
|
placeholder: ""
|
|
13245
13253
|
}
|
|
@@ -13251,7 +13259,7 @@ function Ec({
|
|
|
13251
13259
|
id: "showPasswordForgot",
|
|
13252
13260
|
type: "checkbox",
|
|
13253
13261
|
checked: r,
|
|
13254
|
-
onChange: (
|
|
13262
|
+
onChange: (p) => d(p.target.checked)
|
|
13255
13263
|
}
|
|
13256
13264
|
),
|
|
13257
13265
|
/* @__PURE__ */ n(
|
|
@@ -13259,7 +13267,7 @@ function Ec({
|
|
|
13259
13267
|
{
|
|
13260
13268
|
htmlFor: "showPasswordForgot",
|
|
13261
13269
|
className: "sass-pg-login-checkboxLabel",
|
|
13262
|
-
children:
|
|
13270
|
+
children: A.showPasswordsLabel
|
|
13263
13271
|
}
|
|
13264
13272
|
)
|
|
13265
13273
|
] })
|
|
@@ -13273,10 +13281,10 @@ function Ec({
|
|
|
13273
13281
|
className: "sass-pg-login-primary",
|
|
13274
13282
|
style: { maxWidth: i ? "revert-layer" : "fit-content" },
|
|
13275
13283
|
disabled: i,
|
|
13276
|
-
children: i ? /* @__PURE__ */ n(lt, {}) :
|
|
13284
|
+
children: i ? /* @__PURE__ */ n(lt, {}) : A.changePasswordButton
|
|
13277
13285
|
}
|
|
13278
13286
|
),
|
|
13279
|
-
/* @__PURE__ */ n("p", { className: "sass-pg-login-switch", children: /* @__PURE__ */ n("button", { type: "button", onClick: h, children:
|
|
13287
|
+
/* @__PURE__ */ n("p", { className: "sass-pg-login-switch", children: /* @__PURE__ */ n("button", { type: "button", onClick: h, children: A.backButton }) })
|
|
13280
13288
|
]
|
|
13281
13289
|
}
|
|
13282
13290
|
);
|
|
@@ -13337,8 +13345,8 @@ const Ku = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
13337
13345
|
} = e, i = ya(), o = us(() => {
|
|
13338
13346
|
const h = e?.preview?.sizes;
|
|
13339
13347
|
if (h && Array.isArray(h) && h.length > 0) return h;
|
|
13340
|
-
const
|
|
13341
|
-
return
|
|
13348
|
+
const A = e?.preview?.original;
|
|
13349
|
+
return A?.url ? [{ url: A.url, width: A.width || 0, height: A.height || 0 }] : [];
|
|
13342
13350
|
}, [e?.preview?.sizes, e?.preview?.original]);
|
|
13343
13351
|
if (!o.length || !o[0]?.url || o[0]?.url === "")
|
|
13344
13352
|
return /* @__PURE__ */ n("div", { className: "sass-com-img-imagePlaceholder" });
|
|
@@ -13474,7 +13482,7 @@ const Ku = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
13474
13482
|
fetchConfig: o,
|
|
13475
13483
|
paths: l
|
|
13476
13484
|
}) => {
|
|
13477
|
-
const u = i.FETCH_SIZE_MORE_NEWS ?? 6, [c, d] = Z({ data: Array.from({ length: u }, () => Uc) }), [m, h] = Z(!1),
|
|
13485
|
+
const u = i.FETCH_SIZE_MORE_NEWS ?? 6, [c, d] = Z({ data: Array.from({ length: u }, () => Uc) }), [m, h] = Z(!1), A = le(async () => {
|
|
13478
13486
|
if (!t) return;
|
|
13479
13487
|
const w = new URLSearchParams({
|
|
13480
13488
|
section: e,
|
|
@@ -13488,9 +13496,9 @@ const Ku = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
13488
13496
|
PUBLIC_API_FRONT: w,
|
|
13489
13497
|
PUBLIC_X_SECURITY_TOKEN: v,
|
|
13490
13498
|
PUBLIC_API_PATH_VERSION: C,
|
|
13491
|
-
PUBLIC_PUBLICATION_ID:
|
|
13499
|
+
PUBLIC_PUBLICATION_ID: N
|
|
13492
13500
|
} = i;
|
|
13493
|
-
if (!w || !v || !
|
|
13501
|
+
if (!w || !v || !N || !C)
|
|
13494
13502
|
throw new Error("Missing required environment variables");
|
|
13495
13503
|
const E = await re.get(
|
|
13496
13504
|
`${w}${C}/news-list-section`,
|
|
@@ -13500,7 +13508,7 @@ const Ku = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
13500
13508
|
newstype: o.newsType,
|
|
13501
13509
|
section: e,
|
|
13502
13510
|
imagesizes: o.imgSizes,
|
|
13503
|
-
publication: parseInt(
|
|
13511
|
+
publication: parseInt(N)
|
|
13504
13512
|
},
|
|
13505
13513
|
headers: {
|
|
13506
13514
|
"x-api-token": v,
|
|
@@ -13514,12 +13522,12 @@ const Ku = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
13514
13522
|
(b) => b.info.link.internal !== t
|
|
13515
13523
|
)
|
|
13516
13524
|
};
|
|
13517
|
-
}, [e, t, i]),
|
|
13525
|
+
}, [e, t, i]), p = le(async () => {
|
|
13518
13526
|
if (!(m || !t)) {
|
|
13519
13527
|
h(!0);
|
|
13520
13528
|
try {
|
|
13521
13529
|
let w;
|
|
13522
|
-
i.PUBLIC_ENV !== "prod" ? w = await
|
|
13530
|
+
i.PUBLIC_ENV !== "prod" ? w = await A() : w = await f(), d({
|
|
13523
13531
|
...w,
|
|
13524
13532
|
data: w.data.slice(0, u)
|
|
13525
13533
|
});
|
|
@@ -13531,12 +13539,12 @@ const Ku = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
13531
13539
|
m,
|
|
13532
13540
|
t,
|
|
13533
13541
|
i.PUBLIC_ENV,
|
|
13534
|
-
|
|
13542
|
+
A,
|
|
13535
13543
|
f
|
|
13536
13544
|
]);
|
|
13537
13545
|
return xe(() => {
|
|
13538
|
-
a &&
|
|
13539
|
-
}, [a,
|
|
13546
|
+
a && p();
|
|
13547
|
+
}, [a, p]), !c?.data || c.data.length === 0 ? null : /* @__PURE__ */ n(
|
|
13540
13548
|
Rc,
|
|
13541
13549
|
{
|
|
13542
13550
|
news: c.data,
|
|
@@ -13569,9 +13577,9 @@ const Ku = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
13569
13577
|
preview: d,
|
|
13570
13578
|
isVideo: m = !1,
|
|
13571
13579
|
config: h,
|
|
13572
|
-
overImage:
|
|
13580
|
+
overImage: A = "default",
|
|
13573
13581
|
isTitle: f = !1,
|
|
13574
|
-
isLarge:
|
|
13582
|
+
isLarge: p = !1,
|
|
13575
13583
|
keywords: w
|
|
13576
13584
|
} = i;
|
|
13577
13585
|
return console.log(i.info.link.url), /* @__PURE__ */ n(
|
|
@@ -13594,7 +13602,7 @@ const Ku = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
13594
13602
|
preview: d,
|
|
13595
13603
|
rounded: e.rounded,
|
|
13596
13604
|
isVideo: m,
|
|
13597
|
-
isLarge:
|
|
13605
|
+
isLarge: p,
|
|
13598
13606
|
API_ENV: e.API_ENV,
|
|
13599
13607
|
getImageUrl: e.getImageUrl
|
|
13600
13608
|
}
|
|
@@ -13611,7 +13619,7 @@ const Ku = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
13611
13619
|
preview: d,
|
|
13612
13620
|
share: e.share,
|
|
13613
13621
|
config: h,
|
|
13614
|
-
overImage:
|
|
13622
|
+
overImage: A,
|
|
13615
13623
|
isTitle: f,
|
|
13616
13624
|
paths: e.paths,
|
|
13617
13625
|
isVisible: e.isVisible,
|
|
@@ -13810,7 +13818,7 @@ async function Ju({
|
|
|
13810
13818
|
encodedType: d,
|
|
13811
13819
|
url: h
|
|
13812
13820
|
});
|
|
13813
|
-
const
|
|
13821
|
+
const A = await re.get(h, {
|
|
13814
13822
|
headers: {
|
|
13815
13823
|
"User-Agent": "blu3st@ck-react",
|
|
13816
13824
|
"x-security-token": l,
|
|
@@ -13818,22 +13826,22 @@ async function Ju({
|
|
|
13818
13826
|
"Content-Type": "application/json"
|
|
13819
13827
|
}
|
|
13820
13828
|
});
|
|
13821
|
-
if (console.log("Report response:",
|
|
13829
|
+
if (console.log("Report response:", A.data), A.status === 200 || A.status === 201)
|
|
13822
13830
|
return {
|
|
13823
13831
|
type: "success",
|
|
13824
13832
|
message: "Comentario reportado exitosamente",
|
|
13825
|
-
status:
|
|
13826
|
-
data:
|
|
13833
|
+
status: A.status,
|
|
13834
|
+
data: A.data
|
|
13827
13835
|
};
|
|
13828
|
-
throw new Error(`Respuesta inesperada del servidor: ${
|
|
13829
|
-
} catch (
|
|
13830
|
-
if (console.error("Error reporting comment:",
|
|
13831
|
-
const f =
|
|
13836
|
+
throw new Error(`Respuesta inesperada del servidor: ${A.status}`);
|
|
13837
|
+
} catch (A) {
|
|
13838
|
+
if (console.error("Error reporting comment:", A), re.isAxiosError(A)) {
|
|
13839
|
+
const f = A.response?.status, p = A.response?.data;
|
|
13832
13840
|
throw f === 400 ? new Error("Datos inválidos para el reporte") : f === 401 ? new Error("Token de API inválido") : f === 403 ? new Error("Acceso denegado para reportar comentario") : f === 404 ? new Error("Comentario no encontrado") : f === 409 ? new Error("El comentario ya fue reportado por este usuario") : f === 500 ? new Error("Error interno del servidor CMS") : new Error(
|
|
13833
|
-
|
|
13841
|
+
p?.error || p?.message || `Error HTTP ${f}: No se pudo reportar el comentario`
|
|
13834
13842
|
);
|
|
13835
13843
|
}
|
|
13836
|
-
throw
|
|
13844
|
+
throw A;
|
|
13837
13845
|
}
|
|
13838
13846
|
}
|
|
13839
13847
|
const ws = {
|
|
@@ -13882,8 +13890,8 @@ var xn;
|
|
|
13882
13890
|
function qc() {
|
|
13883
13891
|
if (xn) return ne;
|
|
13884
13892
|
xn = 1;
|
|
13885
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, s = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120,
|
|
13886
|
-
function
|
|
13893
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, s = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, A = e ? Symbol.for("react.memo") : 60115, f = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, C = e ? Symbol.for("react.scope") : 60119;
|
|
13894
|
+
function N(b) {
|
|
13887
13895
|
if (typeof b == "object" && b !== null) {
|
|
13888
13896
|
var I = b.$$typeof;
|
|
13889
13897
|
switch (I) {
|
|
@@ -13901,7 +13909,7 @@ function qc() {
|
|
|
13901
13909
|
case l:
|
|
13902
13910
|
case d:
|
|
13903
13911
|
case f:
|
|
13904
|
-
case
|
|
13912
|
+
case A:
|
|
13905
13913
|
case o:
|
|
13906
13914
|
return b;
|
|
13907
13915
|
default:
|
|
@@ -13914,44 +13922,44 @@ function qc() {
|
|
|
13914
13922
|
}
|
|
13915
13923
|
}
|
|
13916
13924
|
function E(b) {
|
|
13917
|
-
return
|
|
13925
|
+
return N(b) === c;
|
|
13918
13926
|
}
|
|
13919
|
-
return ne.AsyncMode = u, ne.ConcurrentMode = c, ne.ContextConsumer = l, ne.ContextProvider = o, ne.Element = t, ne.ForwardRef = d, ne.Fragment = a, ne.Lazy = f, ne.Memo =
|
|
13920
|
-
return E(b) ||
|
|
13927
|
+
return ne.AsyncMode = u, ne.ConcurrentMode = c, ne.ContextConsumer = l, ne.ContextProvider = o, ne.Element = t, ne.ForwardRef = d, ne.Fragment = a, ne.Lazy = f, ne.Memo = A, ne.Portal = s, ne.Profiler = i, ne.StrictMode = r, ne.Suspense = m, ne.isAsyncMode = function(b) {
|
|
13928
|
+
return E(b) || N(b) === u;
|
|
13921
13929
|
}, ne.isConcurrentMode = E, ne.isContextConsumer = function(b) {
|
|
13922
|
-
return
|
|
13930
|
+
return N(b) === l;
|
|
13923
13931
|
}, ne.isContextProvider = function(b) {
|
|
13924
|
-
return
|
|
13932
|
+
return N(b) === o;
|
|
13925
13933
|
}, ne.isElement = function(b) {
|
|
13926
13934
|
return typeof b == "object" && b !== null && b.$$typeof === t;
|
|
13927
13935
|
}, ne.isForwardRef = function(b) {
|
|
13928
|
-
return
|
|
13936
|
+
return N(b) === d;
|
|
13929
13937
|
}, ne.isFragment = function(b) {
|
|
13930
|
-
return
|
|
13938
|
+
return N(b) === a;
|
|
13931
13939
|
}, ne.isLazy = function(b) {
|
|
13932
|
-
return
|
|
13940
|
+
return N(b) === f;
|
|
13933
13941
|
}, ne.isMemo = function(b) {
|
|
13934
|
-
return
|
|
13942
|
+
return N(b) === A;
|
|
13935
13943
|
}, ne.isPortal = function(b) {
|
|
13936
|
-
return
|
|
13944
|
+
return N(b) === s;
|
|
13937
13945
|
}, ne.isProfiler = function(b) {
|
|
13938
|
-
return
|
|
13946
|
+
return N(b) === i;
|
|
13939
13947
|
}, ne.isStrictMode = function(b) {
|
|
13940
|
-
return
|
|
13948
|
+
return N(b) === r;
|
|
13941
13949
|
}, ne.isSuspense = function(b) {
|
|
13942
|
-
return
|
|
13950
|
+
return N(b) === m;
|
|
13943
13951
|
}, ne.isValidElementType = function(b) {
|
|
13944
|
-
return typeof b == "string" || typeof b == "function" || b === a || b === c || b === i || b === r || b === m || b === h || typeof b == "object" && b !== null && (b.$$typeof === f || b.$$typeof ===
|
|
13945
|
-
}, ne.typeOf =
|
|
13952
|
+
return typeof b == "string" || typeof b == "function" || b === a || b === c || b === i || b === r || b === m || b === h || typeof b == "object" && b !== null && (b.$$typeof === f || b.$$typeof === A || b.$$typeof === o || b.$$typeof === l || b.$$typeof === d || b.$$typeof === w || b.$$typeof === v || b.$$typeof === C || b.$$typeof === p);
|
|
13953
|
+
}, ne.typeOf = N, ne;
|
|
13946
13954
|
}
|
|
13947
13955
|
var ae = {};
|
|
13948
13956
|
var Un;
|
|
13949
13957
|
function Dc() {
|
|
13950
13958
|
return Un || (Un = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
13951
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, s = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120,
|
|
13952
|
-
function
|
|
13959
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, s = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, A = e ? Symbol.for("react.memo") : 60115, f = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, C = e ? Symbol.for("react.scope") : 60119;
|
|
13960
|
+
function N(M) {
|
|
13953
13961
|
return typeof M == "string" || typeof M == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
13954
|
-
M === a || M === c || M === i || M === r || M === m || M === h || typeof M == "object" && M !== null && (M.$$typeof === f || M.$$typeof ===
|
|
13962
|
+
M === a || M === c || M === i || M === r || M === m || M === h || typeof M == "object" && M !== null && (M.$$typeof === f || M.$$typeof === A || M.$$typeof === o || M.$$typeof === l || M.$$typeof === d || M.$$typeof === w || M.$$typeof === v || M.$$typeof === C || M.$$typeof === p);
|
|
13955
13963
|
}
|
|
13956
13964
|
function E(M) {
|
|
13957
13965
|
if (typeof M == "object" && M !== null) {
|
|
@@ -13973,7 +13981,7 @@ function Dc() {
|
|
|
13973
13981
|
case l:
|
|
13974
13982
|
case d:
|
|
13975
13983
|
case f:
|
|
13976
|
-
case
|
|
13984
|
+
case A:
|
|
13977
13985
|
case o:
|
|
13978
13986
|
return zs;
|
|
13979
13987
|
default:
|
|
@@ -13985,8 +13993,8 @@ function Dc() {
|
|
|
13985
13993
|
}
|
|
13986
13994
|
}
|
|
13987
13995
|
}
|
|
13988
|
-
var b = u, I = c, k = l, Q = o,
|
|
13989
|
-
function
|
|
13996
|
+
var b = u, I = c, k = l, Q = o, F = t, j = d, R = a, V = f, se = A, q = s, U = i, x = r, D = m, L = !1;
|
|
13997
|
+
function z(M) {
|
|
13990
13998
|
return L || (L = !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(M) || E(M) === u;
|
|
13991
13999
|
}
|
|
13992
14000
|
function y(M) {
|
|
@@ -14007,11 +14015,11 @@ function Dc() {
|
|
|
14007
14015
|
function H(M) {
|
|
14008
14016
|
return E(M) === a;
|
|
14009
14017
|
}
|
|
14010
|
-
function
|
|
14018
|
+
function W(M) {
|
|
14011
14019
|
return E(M) === f;
|
|
14012
14020
|
}
|
|
14013
14021
|
function Y(M) {
|
|
14014
|
-
return E(M) ===
|
|
14022
|
+
return E(M) === A;
|
|
14015
14023
|
}
|
|
14016
14024
|
function ee(M) {
|
|
14017
14025
|
return E(M) === s;
|
|
@@ -14025,7 +14033,7 @@ function Dc() {
|
|
|
14025
14033
|
function oe(M) {
|
|
14026
14034
|
return E(M) === m;
|
|
14027
14035
|
}
|
|
14028
|
-
ae.AsyncMode = b, ae.ConcurrentMode = I, ae.ContextConsumer = k, ae.ContextProvider = Q, ae.Element =
|
|
14036
|
+
ae.AsyncMode = b, ae.ConcurrentMode = I, ae.ContextConsumer = k, ae.ContextProvider = Q, ae.Element = F, ae.ForwardRef = j, ae.Fragment = R, ae.Lazy = V, ae.Memo = se, ae.Portal = q, ae.Profiler = U, ae.StrictMode = x, ae.Suspense = D, ae.isAsyncMode = z, ae.isConcurrentMode = y, ae.isContextConsumer = T, ae.isContextProvider = O, ae.isElement = G, ae.isForwardRef = _, ae.isFragment = H, ae.isLazy = W, ae.isMemo = Y, ae.isPortal = ee, ae.isProfiler = te, ae.isStrictMode = $, ae.isSuspense = oe, ae.isValidElementType = N, ae.typeOf = E;
|
|
14029
14037
|
})()), ae;
|
|
14030
14038
|
}
|
|
14031
14039
|
var kn;
|
|
@@ -14126,9 +14134,9 @@ function Gc() {
|
|
|
14126
14134
|
(u || "React class") + ": type specification of " + l + " `" + d + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof m + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
14127
14135
|
), m instanceof Error && !(m.message in s)) {
|
|
14128
14136
|
s[m.message] = !0;
|
|
14129
|
-
var
|
|
14137
|
+
var A = c ? c() : "";
|
|
14130
14138
|
e(
|
|
14131
|
-
"Failed " + l + " type: " + m.message + (
|
|
14139
|
+
"Failed " + l + " type: " + m.message + (A ?? "")
|
|
14132
14140
|
);
|
|
14133
14141
|
}
|
|
14134
14142
|
}
|
|
@@ -14162,7 +14170,7 @@ function jc() {
|
|
|
14162
14170
|
if (typeof T == "function")
|
|
14163
14171
|
return T;
|
|
14164
14172
|
}
|
|
14165
|
-
var h = "<<anonymous>>",
|
|
14173
|
+
var h = "<<anonymous>>", A = {
|
|
14166
14174
|
array: v("array"),
|
|
14167
14175
|
bigint: v("bigint"),
|
|
14168
14176
|
bool: v("boolean"),
|
|
@@ -14172,28 +14180,28 @@ function jc() {
|
|
|
14172
14180
|
string: v("string"),
|
|
14173
14181
|
symbol: v("symbol"),
|
|
14174
14182
|
any: C(),
|
|
14175
|
-
arrayOf:
|
|
14183
|
+
arrayOf: N,
|
|
14176
14184
|
element: E(),
|
|
14177
14185
|
elementType: b(),
|
|
14178
14186
|
instanceOf: I,
|
|
14179
14187
|
node: j(),
|
|
14180
14188
|
objectOf: Q,
|
|
14181
14189
|
oneOf: k,
|
|
14182
|
-
oneOfType:
|
|
14190
|
+
oneOfType: F,
|
|
14183
14191
|
shape: V,
|
|
14184
14192
|
exact: se
|
|
14185
14193
|
};
|
|
14186
14194
|
function f(y, T) {
|
|
14187
14195
|
return y === T ? y !== 0 || 1 / y === 1 / T : y !== y && T !== T;
|
|
14188
14196
|
}
|
|
14189
|
-
function
|
|
14197
|
+
function p(y, T) {
|
|
14190
14198
|
this.message = y, this.data = T && typeof T == "object" ? T : {}, this.stack = "";
|
|
14191
14199
|
}
|
|
14192
|
-
|
|
14200
|
+
p.prototype = Error.prototype;
|
|
14193
14201
|
function w(y) {
|
|
14194
14202
|
if (process.env.NODE_ENV !== "production")
|
|
14195
14203
|
var T = {}, O = 0;
|
|
14196
|
-
function G(H,
|
|
14204
|
+
function G(H, W, Y, ee, te, $, oe) {
|
|
14197
14205
|
if (ee = ee || h, $ = $ || Y, oe !== s) {
|
|
14198
14206
|
if (u) {
|
|
14199
14207
|
var M = new Error(
|
|
@@ -14208,18 +14216,18 @@ function jc() {
|
|
|
14208
14216
|
), T[me] = !0, O++);
|
|
14209
14217
|
}
|
|
14210
14218
|
}
|
|
14211
|
-
return
|
|
14219
|
+
return W[Y] == null ? H ? W[Y] === null ? new p("The " + te + " `" + $ + "` is marked as required " + ("in `" + ee + "`, but its value is `null`.")) : new p("The " + te + " `" + $ + "` is marked as required in " + ("`" + ee + "`, but its value is `undefined`.")) : null : y(W, Y, ee, te, $);
|
|
14212
14220
|
}
|
|
14213
14221
|
var _ = G.bind(null, !1);
|
|
14214
14222
|
return _.isRequired = G.bind(null, !0), _;
|
|
14215
14223
|
}
|
|
14216
14224
|
function v(y) {
|
|
14217
|
-
function T(O, G, _, H,
|
|
14225
|
+
function T(O, G, _, H, W, Y) {
|
|
14218
14226
|
var ee = O[G], te = x(ee);
|
|
14219
14227
|
if (te !== y) {
|
|
14220
14228
|
var $ = D(ee);
|
|
14221
|
-
return new
|
|
14222
|
-
"Invalid " + H + " `" +
|
|
14229
|
+
return new p(
|
|
14230
|
+
"Invalid " + H + " `" + W + "` of type " + ("`" + $ + "` supplied to `" + _ + "`, expected ") + ("`" + y + "`."),
|
|
14223
14231
|
{ expectedType: y }
|
|
14224
14232
|
);
|
|
14225
14233
|
}
|
|
@@ -14230,17 +14238,17 @@ function jc() {
|
|
|
14230
14238
|
function C() {
|
|
14231
14239
|
return w(o);
|
|
14232
14240
|
}
|
|
14233
|
-
function
|
|
14234
|
-
function T(O, G, _, H,
|
|
14241
|
+
function N(y) {
|
|
14242
|
+
function T(O, G, _, H, W) {
|
|
14235
14243
|
if (typeof y != "function")
|
|
14236
|
-
return new
|
|
14244
|
+
return new p("Property `" + W + "` of component `" + _ + "` has invalid PropType notation inside arrayOf.");
|
|
14237
14245
|
var Y = O[G];
|
|
14238
14246
|
if (!Array.isArray(Y)) {
|
|
14239
14247
|
var ee = x(Y);
|
|
14240
|
-
return new
|
|
14248
|
+
return new p("Invalid " + H + " `" + W + "` of type " + ("`" + ee + "` supplied to `" + _ + "`, expected an array."));
|
|
14241
14249
|
}
|
|
14242
14250
|
for (var te = 0; te < Y.length; te++) {
|
|
14243
|
-
var $ = y(Y, te, _, H,
|
|
14251
|
+
var $ = y(Y, te, _, H, W + "[" + te + "]", s);
|
|
14244
14252
|
if ($ instanceof Error)
|
|
14245
14253
|
return $;
|
|
14246
14254
|
}
|
|
@@ -14250,10 +14258,10 @@ function jc() {
|
|
|
14250
14258
|
}
|
|
14251
14259
|
function E() {
|
|
14252
14260
|
function y(T, O, G, _, H) {
|
|
14253
|
-
var
|
|
14254
|
-
if (!l(
|
|
14255
|
-
var Y = x(
|
|
14256
|
-
return new
|
|
14261
|
+
var W = T[O];
|
|
14262
|
+
if (!l(W)) {
|
|
14263
|
+
var Y = x(W);
|
|
14264
|
+
return new p("Invalid " + _ + " `" + H + "` of type " + ("`" + Y + "` supplied to `" + G + "`, expected a single ReactElement."));
|
|
14257
14265
|
}
|
|
14258
14266
|
return null;
|
|
14259
14267
|
}
|
|
@@ -14261,20 +14269,20 @@ function jc() {
|
|
|
14261
14269
|
}
|
|
14262
14270
|
function b() {
|
|
14263
14271
|
function y(T, O, G, _, H) {
|
|
14264
|
-
var
|
|
14265
|
-
if (!e.isValidElementType(
|
|
14266
|
-
var Y = x(
|
|
14267
|
-
return new
|
|
14272
|
+
var W = T[O];
|
|
14273
|
+
if (!e.isValidElementType(W)) {
|
|
14274
|
+
var Y = x(W);
|
|
14275
|
+
return new p("Invalid " + _ + " `" + H + "` of type " + ("`" + Y + "` supplied to `" + G + "`, expected a single ReactElement type."));
|
|
14268
14276
|
}
|
|
14269
14277
|
return null;
|
|
14270
14278
|
}
|
|
14271
14279
|
return w(y);
|
|
14272
14280
|
}
|
|
14273
14281
|
function I(y) {
|
|
14274
|
-
function T(O, G, _, H,
|
|
14282
|
+
function T(O, G, _, H, W) {
|
|
14275
14283
|
if (!(O[G] instanceof y)) {
|
|
14276
|
-
var Y = y.name || h, ee =
|
|
14277
|
-
return new
|
|
14284
|
+
var Y = y.name || h, ee = z(O[G]);
|
|
14285
|
+
return new p("Invalid " + H + " `" + W + "` of type " + ("`" + ee + "` supplied to `" + _ + "`, expected ") + ("instance of `" + Y + "`."));
|
|
14278
14286
|
}
|
|
14279
14287
|
return null;
|
|
14280
14288
|
}
|
|
@@ -14285,7 +14293,7 @@ function jc() {
|
|
|
14285
14293
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
14286
14294
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
14287
14295
|
) : i("Invalid argument supplied to oneOf, expected an array.")), o;
|
|
14288
|
-
function T(O, G, _, H,
|
|
14296
|
+
function T(O, G, _, H, W) {
|
|
14289
14297
|
for (var Y = O[G], ee = 0; ee < y.length; ee++)
|
|
14290
14298
|
if (f(Y, y[ee]))
|
|
14291
14299
|
return null;
|
|
@@ -14293,20 +14301,20 @@ function jc() {
|
|
|
14293
14301
|
var me = D(M);
|
|
14294
14302
|
return me === "symbol" ? String(M) : M;
|
|
14295
14303
|
});
|
|
14296
|
-
return new
|
|
14304
|
+
return new p("Invalid " + H + " `" + W + "` of value `" + String(Y) + "` " + ("supplied to `" + _ + "`, expected one of " + te + "."));
|
|
14297
14305
|
}
|
|
14298
14306
|
return w(T);
|
|
14299
14307
|
}
|
|
14300
14308
|
function Q(y) {
|
|
14301
|
-
function T(O, G, _, H,
|
|
14309
|
+
function T(O, G, _, H, W) {
|
|
14302
14310
|
if (typeof y != "function")
|
|
14303
|
-
return new
|
|
14311
|
+
return new p("Property `" + W + "` of component `" + _ + "` has invalid PropType notation inside objectOf.");
|
|
14304
14312
|
var Y = O[G], ee = x(Y);
|
|
14305
14313
|
if (ee !== "object")
|
|
14306
|
-
return new
|
|
14314
|
+
return new p("Invalid " + H + " `" + W + "` of type " + ("`" + ee + "` supplied to `" + _ + "`, expected an object."));
|
|
14307
14315
|
for (var te in Y)
|
|
14308
14316
|
if (a(Y, te)) {
|
|
14309
|
-
var $ = y(Y, te, _, H,
|
|
14317
|
+
var $ = y(Y, te, _, H, W + "." + te, s);
|
|
14310
14318
|
if ($ instanceof Error)
|
|
14311
14319
|
return $;
|
|
14312
14320
|
}
|
|
@@ -14314,7 +14322,7 @@ function jc() {
|
|
|
14314
14322
|
}
|
|
14315
14323
|
return w(T);
|
|
14316
14324
|
}
|
|
14317
|
-
function
|
|
14325
|
+
function F(y) {
|
|
14318
14326
|
if (!Array.isArray(y))
|
|
14319
14327
|
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), o;
|
|
14320
14328
|
for (var T = 0; T < y.length; T++) {
|
|
@@ -14324,39 +14332,39 @@ function jc() {
|
|
|
14324
14332
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + L(O) + " at index " + T + "."
|
|
14325
14333
|
), o;
|
|
14326
14334
|
}
|
|
14327
|
-
function G(_, H,
|
|
14335
|
+
function G(_, H, W, Y, ee) {
|
|
14328
14336
|
for (var te = [], $ = 0; $ < y.length; $++) {
|
|
14329
|
-
var oe = y[$], M = oe(_, H,
|
|
14337
|
+
var oe = y[$], M = oe(_, H, W, Y, ee, s);
|
|
14330
14338
|
if (M == null)
|
|
14331
14339
|
return null;
|
|
14332
14340
|
M.data && a(M.data, "expectedType") && te.push(M.data.expectedType);
|
|
14333
14341
|
}
|
|
14334
14342
|
var me = te.length > 0 ? ", expected one of type [" + te.join(", ") + "]" : "";
|
|
14335
|
-
return new
|
|
14343
|
+
return new p("Invalid " + Y + " `" + ee + "` supplied to " + ("`" + W + "`" + me + "."));
|
|
14336
14344
|
}
|
|
14337
14345
|
return w(G);
|
|
14338
14346
|
}
|
|
14339
14347
|
function j() {
|
|
14340
14348
|
function y(T, O, G, _, H) {
|
|
14341
|
-
return q(T[O]) ? null : new
|
|
14349
|
+
return q(T[O]) ? null : new p("Invalid " + _ + " `" + H + "` supplied to " + ("`" + G + "`, expected a ReactNode."));
|
|
14342
14350
|
}
|
|
14343
14351
|
return w(y);
|
|
14344
14352
|
}
|
|
14345
14353
|
function R(y, T, O, G, _) {
|
|
14346
|
-
return new
|
|
14354
|
+
return new p(
|
|
14347
14355
|
(y || "React class") + ": " + T + " type `" + O + "." + G + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + _ + "`."
|
|
14348
14356
|
);
|
|
14349
14357
|
}
|
|
14350
14358
|
function V(y) {
|
|
14351
|
-
function T(O, G, _, H,
|
|
14359
|
+
function T(O, G, _, H, W) {
|
|
14352
14360
|
var Y = O[G], ee = x(Y);
|
|
14353
14361
|
if (ee !== "object")
|
|
14354
|
-
return new
|
|
14362
|
+
return new p("Invalid " + H + " `" + W + "` of type `" + ee + "` " + ("supplied to `" + _ + "`, expected `object`."));
|
|
14355
14363
|
for (var te in y) {
|
|
14356
14364
|
var $ = y[te];
|
|
14357
14365
|
if (typeof $ != "function")
|
|
14358
|
-
return R(_, H,
|
|
14359
|
-
var oe = $(Y, te, _, H,
|
|
14366
|
+
return R(_, H, W, te, D($));
|
|
14367
|
+
var oe = $(Y, te, _, H, W + "." + te, s);
|
|
14360
14368
|
if (oe)
|
|
14361
14369
|
return oe;
|
|
14362
14370
|
}
|
|
@@ -14365,21 +14373,21 @@ function jc() {
|
|
|
14365
14373
|
return w(T);
|
|
14366
14374
|
}
|
|
14367
14375
|
function se(y) {
|
|
14368
|
-
function T(O, G, _, H,
|
|
14376
|
+
function T(O, G, _, H, W) {
|
|
14369
14377
|
var Y = O[G], ee = x(Y);
|
|
14370
14378
|
if (ee !== "object")
|
|
14371
|
-
return new
|
|
14379
|
+
return new p("Invalid " + H + " `" + W + "` of type `" + ee + "` " + ("supplied to `" + _ + "`, expected `object`."));
|
|
14372
14380
|
var te = t({}, O[G], y);
|
|
14373
14381
|
for (var $ in te) {
|
|
14374
14382
|
var oe = y[$];
|
|
14375
14383
|
if (a(y, $) && typeof oe != "function")
|
|
14376
|
-
return R(_, H,
|
|
14384
|
+
return R(_, H, W, $, D(oe));
|
|
14377
14385
|
if (!oe)
|
|
14378
|
-
return new
|
|
14379
|
-
"Invalid " + H + " `" +
|
|
14386
|
+
return new p(
|
|
14387
|
+
"Invalid " + H + " `" + W + "` key `" + $ + "` supplied to `" + _ + "`.\nBad object: " + JSON.stringify(O[G], null, " ") + `
|
|
14380
14388
|
Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
|
|
14381
14389
|
);
|
|
14382
|
-
var M = oe(Y, $, _, H,
|
|
14390
|
+
var M = oe(Y, $, _, H, W + "." + $, s);
|
|
14383
14391
|
if (M)
|
|
14384
14392
|
return M;
|
|
14385
14393
|
}
|
|
@@ -14453,10 +14461,10 @@ Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
|
|
|
14453
14461
|
return T;
|
|
14454
14462
|
}
|
|
14455
14463
|
}
|
|
14456
|
-
function
|
|
14464
|
+
function z(y) {
|
|
14457
14465
|
return !y.constructor || !y.constructor.name ? h : y.constructor.name;
|
|
14458
14466
|
}
|
|
14459
|
-
return
|
|
14467
|
+
return A.checkPropTypes = r, A.resetWarningCache = r.resetWarningCache, A.PropTypes = A, A;
|
|
14460
14468
|
}, is;
|
|
14461
14469
|
}
|
|
14462
14470
|
var os, Mn;
|
|
@@ -14689,18 +14697,18 @@ function Yc() {
|
|
|
14689
14697
|
return e.isMemo(f) ? r : i[f.$$typeof] || t;
|
|
14690
14698
|
}
|
|
14691
14699
|
var l = Object.defineProperty, u = Object.getOwnPropertyNames, c = Object.getOwnPropertySymbols, d = Object.getOwnPropertyDescriptor, m = Object.getPrototypeOf, h = Object.prototype;
|
|
14692
|
-
function
|
|
14693
|
-
if (typeof
|
|
14700
|
+
function A(f, p, w) {
|
|
14701
|
+
if (typeof p != "string") {
|
|
14694
14702
|
if (h) {
|
|
14695
|
-
var v = m(
|
|
14696
|
-
v && v !== h &&
|
|
14703
|
+
var v = m(p);
|
|
14704
|
+
v && v !== h && A(f, v, w);
|
|
14697
14705
|
}
|
|
14698
|
-
var C = u(
|
|
14699
|
-
c && (C = C.concat(c(
|
|
14700
|
-
for (var
|
|
14706
|
+
var C = u(p);
|
|
14707
|
+
c && (C = C.concat(c(p)));
|
|
14708
|
+
for (var N = o(f), E = o(p), b = 0; b < C.length; ++b) {
|
|
14701
14709
|
var I = C[b];
|
|
14702
|
-
if (!s[I] && !(w && w[I]) && !(E && E[I]) && !(
|
|
14703
|
-
var k = d(
|
|
14710
|
+
if (!s[I] && !(w && w[I]) && !(E && E[I]) && !(N && N[I])) {
|
|
14711
|
+
var k = d(p, I);
|
|
14704
14712
|
try {
|
|
14705
14713
|
l(f, I, k);
|
|
14706
14714
|
} catch {
|
|
@@ -14710,7 +14718,7 @@ function Yc() {
|
|
|
14710
14718
|
}
|
|
14711
14719
|
return f;
|
|
14712
14720
|
}
|
|
14713
|
-
return ls =
|
|
14721
|
+
return ls = A, ls;
|
|
14714
14722
|
}
|
|
14715
14723
|
var $c = Yc();
|
|
14716
14724
|
const Kc = /* @__PURE__ */ Ke($c);
|
|
@@ -14761,8 +14769,8 @@ function ed(e, t) {
|
|
|
14761
14769
|
m.observers[h](m);
|
|
14762
14770
|
delete window[t.callbackName];
|
|
14763
14771
|
}, c.componentDidMount = function() {
|
|
14764
|
-
var m = this, h = this.setupScriptURL(),
|
|
14765
|
-
if (
|
|
14772
|
+
var m = this, h = this.setupScriptURL(), A = this.asyncScriptLoaderGetScriptLoaderID(), f = t, p = f.globalName, w = f.callbackName, v = f.scriptId;
|
|
14773
|
+
if (p && typeof window[p] < "u" && (Ce[h] = {
|
|
14766
14774
|
loaded: !0,
|
|
14767
14775
|
observers: {}
|
|
14768
14776
|
}), Ce[h]) {
|
|
@@ -14771,17 +14779,17 @@ function ed(e, t) {
|
|
|
14771
14779
|
this.asyncScriptLoaderHandleLoad(C);
|
|
14772
14780
|
return;
|
|
14773
14781
|
}
|
|
14774
|
-
C.observers[
|
|
14782
|
+
C.observers[A] = function(k) {
|
|
14775
14783
|
return m.asyncScriptLoaderHandleLoad(k);
|
|
14776
14784
|
};
|
|
14777
14785
|
return;
|
|
14778
14786
|
}
|
|
14779
|
-
var
|
|
14780
|
-
|
|
14787
|
+
var N = {};
|
|
14788
|
+
N[A] = function(k) {
|
|
14781
14789
|
return m.asyncScriptLoaderHandleLoad(k);
|
|
14782
14790
|
}, Ce[h] = {
|
|
14783
14791
|
loaded: !1,
|
|
14784
|
-
observers:
|
|
14792
|
+
observers: N
|
|
14785
14793
|
};
|
|
14786
14794
|
var E = document.createElement("script");
|
|
14787
14795
|
E.src = h, E.async = !0;
|
|
@@ -14790,7 +14798,7 @@ function ed(e, t) {
|
|
|
14790
14798
|
v && (E.id = v);
|
|
14791
14799
|
var I = function(Q) {
|
|
14792
14800
|
if (Ce[h]) {
|
|
14793
|
-
var
|
|
14801
|
+
var F = Ce[h], j = F.observers;
|
|
14794
14802
|
for (var R in j)
|
|
14795
14803
|
Q(j[R]) && delete j[R];
|
|
14796
14804
|
}
|
|
@@ -14811,15 +14819,15 @@ function ed(e, t) {
|
|
|
14811
14819
|
}, c.componentWillUnmount = function() {
|
|
14812
14820
|
var m = this.__scriptURL;
|
|
14813
14821
|
if (t.removeOnUnmount === !0)
|
|
14814
|
-
for (var h = document.getElementsByTagName("script"),
|
|
14815
|
-
h[
|
|
14822
|
+
for (var h = document.getElementsByTagName("script"), A = 0; A < h.length; A += 1)
|
|
14823
|
+
h[A].src.indexOf(m) > -1 && h[A].parentNode && h[A].parentNode.removeChild(h[A]);
|
|
14816
14824
|
var f = Ce[m];
|
|
14817
14825
|
f && (delete f.observers[this.asyncScriptLoaderGetScriptLoaderID()], t.removeOnUnmount === !0 && delete Ce[m]);
|
|
14818
14826
|
}, c.render = function() {
|
|
14819
14827
|
var m = t.globalName, h = this.props;
|
|
14820
14828
|
h.asyncScriptOnLoad;
|
|
14821
|
-
var
|
|
14822
|
-
return m && typeof window < "u" && (f[m] = typeof window[m] < "u" ? window[m] : void 0), f.ref =
|
|
14829
|
+
var A = h.forwardedRef, f = Jc(h, ["asyncScriptOnLoad", "forwardedRef"]);
|
|
14830
|
+
return m && typeof window < "u" && (f[m] = typeof window[m] < "u" ? window[m] : void 0), f.ref = A, Oe(a, f);
|
|
14823
14831
|
}, u;
|
|
14824
14832
|
})(ja), o = Qn(function(l, u) {
|
|
14825
14833
|
return Oe(i, ys({}, l, {
|
|
@@ -14875,7 +14883,7 @@ const Oa = ed(sd, {
|
|
|
14875
14883
|
}) => {
|
|
14876
14884
|
const l = { ...nd, ...o?.comentarios }, u = { ...ws, ...l.reportReasons ?? {} }, [c, d] = Z("form"), [m, h] = Z(
|
|
14877
14885
|
""
|
|
14878
|
-
), [
|
|
14886
|
+
), [A, f] = Z(""), [p, w] = Z(""), v = [
|
|
14879
14887
|
{ id: "spam", label: u.spam },
|
|
14880
14888
|
{ id: "inappropriate", label: u.inappropriate },
|
|
14881
14889
|
{ id: "hate", label: u.hate },
|
|
@@ -14900,14 +14908,14 @@ const Oa = ed(sd, {
|
|
|
14900
14908
|
publication: a,
|
|
14901
14909
|
username: r,
|
|
14902
14910
|
id: s,
|
|
14903
|
-
captchaToken:
|
|
14911
|
+
captchaToken: p,
|
|
14904
14912
|
type: ws[m]
|
|
14905
14913
|
// Enviamos el label completo
|
|
14906
14914
|
})
|
|
14907
14915
|
})).json();
|
|
14908
14916
|
if (b.type === "success")
|
|
14909
14917
|
Mc(document, s), d("success"), setTimeout(() => {
|
|
14910
|
-
|
|
14918
|
+
N();
|
|
14911
14919
|
}, 3e3);
|
|
14912
14920
|
else
|
|
14913
14921
|
throw new Error(b.message || l.errorReportComment);
|
|
@@ -14915,11 +14923,11 @@ const Oa = ed(sd, {
|
|
|
14915
14923
|
console.error("Error reporting comment:", E), f(E.message || l.errorReportComment), d("form");
|
|
14916
14924
|
}
|
|
14917
14925
|
}
|
|
14918
|
-
},
|
|
14926
|
+
}, N = () => {
|
|
14919
14927
|
d("form"), h(""), f(""), t();
|
|
14920
14928
|
};
|
|
14921
14929
|
return !e || !s || !r ? null : /* @__PURE__ */ n("div", { className: "sass-pg-cmt-rp-overlay", children: /* @__PURE__ */ g("div", { className: "sass-pg-cmt-rp-popup", children: [
|
|
14922
|
-
/* @__PURE__ */ n("button", { className: "close-reply-form su-flex su-absolute su-p-0 su-bg-transparent su-border-none", onClick:
|
|
14930
|
+
/* @__PURE__ */ n("button", { className: "close-reply-form su-flex su-absolute su-p-0 su-bg-transparent su-border-none", onClick: N, children: /* @__PURE__ */ n(Xe, {}) }),
|
|
14923
14931
|
/* @__PURE__ */ n("h2", { className: "sass-pg-cmt-rp-title", children: l.reportAbuseTitle }),
|
|
14924
14932
|
c === "loading" && /* @__PURE__ */ n("div", { className: "sass-pg-cmt-rp-loadingContainer", children: /* @__PURE__ */ n(_s, {}) }),
|
|
14925
14933
|
c === "form" || c === "loading" ? /* @__PURE__ */ g(K, { children: [
|
|
@@ -14938,7 +14946,7 @@ const Oa = ed(sd, {
|
|
|
14938
14946
|
/* @__PURE__ */ n("span", { className: "sass-pg-cmt-rp-radioCustom" }),
|
|
14939
14947
|
/* @__PURE__ */ n("span", { className: "sass-pg-cmt-rp-optionLabel", children: E.label })
|
|
14940
14948
|
] }, E.id)) }),
|
|
14941
|
-
|
|
14949
|
+
A && /* @__PURE__ */ n("div", { className: "sass-pg-cmt-rp-errorMessage", children: A }),
|
|
14942
14950
|
/* @__PURE__ */ n(
|
|
14943
14951
|
Oa,
|
|
14944
14952
|
{
|
|
@@ -14950,7 +14958,7 @@ const Oa = ed(sd, {
|
|
|
14950
14958
|
}
|
|
14951
14959
|
),
|
|
14952
14960
|
/* @__PURE__ */ g("div", { className: "sass-pg-cmt-rp-buttons", children: [
|
|
14953
|
-
/* @__PURE__ */ n("button", { onClick:
|
|
14961
|
+
/* @__PURE__ */ n("button", { onClick: N, className: "sass-pg-cmt-rp-cancelButton", children: l.cancelButton }),
|
|
14954
14962
|
/* @__PURE__ */ n(
|
|
14955
14963
|
"button",
|
|
14956
14964
|
{
|
|
@@ -14984,7 +14992,7 @@ const Oa = ed(sd, {
|
|
|
14984
14992
|
/* @__PURE__ */ n("div", { className: "sass-pg-cmt-rp-buttons", children: /* @__PURE__ */ n(
|
|
14985
14993
|
"button",
|
|
14986
14994
|
{
|
|
14987
|
-
onClick:
|
|
14995
|
+
onClick: N,
|
|
14988
14996
|
className: ["sass-pg-cmt-rp-closeButton", "sass-pg-cmt-rp-buttonAlone"].join(" "),
|
|
14989
14997
|
children: l.reportCloseButton
|
|
14990
14998
|
}
|
|
@@ -15078,20 +15086,20 @@ async function id({
|
|
|
15078
15086
|
throw new Error("Invalid input types for publication or path");
|
|
15079
15087
|
if (!l)
|
|
15080
15088
|
throw new Error("Missing CMS API token");
|
|
15081
|
-
const { PUBLIC_ENV: c, PUBLIC_API_HOST: d = "dummy", PUBLIC_API_PATH: m, PUBLIC_API_PATH_VERSION: h } = u,
|
|
15082
|
-
if (isNaN(
|
|
15089
|
+
const { PUBLIC_ENV: c, PUBLIC_API_HOST: d = "dummy", PUBLIC_API_PATH: m, PUBLIC_API_PATH_VERSION: h } = u, A = parseInt(String(s), 10), f = parseInt(String(a), 10);
|
|
15090
|
+
if (isNaN(A) || A <= 0)
|
|
15083
15091
|
throw new Error("Invalid size parameter");
|
|
15084
15092
|
if (isNaN(f) || f < 0)
|
|
15085
15093
|
throw new Error("Invalid sizereply parameter");
|
|
15086
|
-
const
|
|
15094
|
+
const p = c !== "prod" ? `${d}${m}` : "", w = new URLSearchParams({
|
|
15087
15095
|
publication: e,
|
|
15088
15096
|
path: t,
|
|
15089
|
-
size:
|
|
15097
|
+
size: A.toString(),
|
|
15090
15098
|
sizereply: f.toString(),
|
|
15091
15099
|
state: o
|
|
15092
15100
|
});
|
|
15093
15101
|
r && w.append("id", r), i && w.append("lastid", i);
|
|
15094
|
-
const v = `${
|
|
15102
|
+
const v = `${p}${h}/newcomments/get?${w.toString()}`;
|
|
15095
15103
|
try {
|
|
15096
15104
|
const { data: C } = await re.get(v, {
|
|
15097
15105
|
headers: {
|
|
@@ -15106,8 +15114,8 @@ async function id({
|
|
|
15106
15114
|
return C.data || C || [];
|
|
15107
15115
|
} catch (C) {
|
|
15108
15116
|
if (console.error("Error fetching comments:", C), re.isAxiosError(C)) {
|
|
15109
|
-
const
|
|
15110
|
-
throw
|
|
15117
|
+
const N = C.response?.status, E = C.response?.data;
|
|
15118
|
+
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(E?.error || E?.message || `HTTP ${N}: Failed to fetch comments`);
|
|
15111
15119
|
}
|
|
15112
15120
|
throw C;
|
|
15113
15121
|
}
|
|
@@ -15353,36 +15361,36 @@ function ud({
|
|
|
15353
15361
|
const md = {
|
|
15354
15362
|
submitCommentButton: "Enviar Comentario"
|
|
15355
15363
|
}, Vs = ({ onClick: e, isDisabled: t, API_ENV: s, icon: a, handleGoogleLogin: r, showAlert: i, texts: o }) => {
|
|
15356
|
-
const l = { ...md, ...o?.comentarios }, [u, c] = ce.useState(!1), [d, m] = ce.useState(!1), [h,
|
|
15364
|
+
const l = { ...md, ...o?.comentarios }, [u, c] = ce.useState(!1), [d, m] = ce.useState(!1), [h, A] = ce.useState(!1);
|
|
15357
15365
|
ce.useEffect(() => {
|
|
15358
|
-
let
|
|
15359
|
-
return u && (
|
|
15366
|
+
let p = null;
|
|
15367
|
+
return u && (p = setTimeout(() => {
|
|
15360
15368
|
c(!1);
|
|
15361
15369
|
}, 2400)), () => {
|
|
15362
|
-
|
|
15370
|
+
p && clearTimeout(p);
|
|
15363
15371
|
};
|
|
15364
15372
|
}, [u]), ce.useEffect(() => {
|
|
15365
15373
|
if (!d || !s.CONFIG_commentsV2 || !i || !document) return;
|
|
15366
|
-
const
|
|
15367
|
-
if (!
|
|
15368
|
-
const w =
|
|
15369
|
-
v?.value?.trim() && C?.value?.trim() &&
|
|
15374
|
+
const p = document.getElementById("comment-button");
|
|
15375
|
+
if (!p) return;
|
|
15376
|
+
const w = p.closest(".comment-form"), v = w?.querySelector('input[name="username"]'), C = w?.querySelector('textarea[name="comment"]'), N = w?.querySelector("textarea.g-recaptcha-response") ?? document.querySelector("#g-recaptcha-response");
|
|
15377
|
+
v?.value?.trim() && C?.value?.trim() && N?.value?.trim() && p.click();
|
|
15370
15378
|
});
|
|
15371
15379
|
const f = ie("/Success.gif");
|
|
15372
15380
|
return u ? /* @__PURE__ */ n("div", { className: "success-gif-container su-flex-center su-relative", children: /* @__PURE__ */ n("img", { className: "success-gif su-absolute", src: f }) }) : /* @__PURE__ */ g(K, { children: [
|
|
15373
|
-
h && s.CONFIG_commentsV2 && i && /* @__PURE__ */ n(ud, { API_ENV: s, icon: a, handleGoogleLogin: r, texts: o, onClose: (
|
|
15374
|
-
|
|
15381
|
+
h && s.CONFIG_commentsV2 && i && /* @__PURE__ */ n(ud, { API_ENV: s, icon: a, handleGoogleLogin: r, texts: o, onClose: (p) => {
|
|
15382
|
+
p && m(!0), A(!1);
|
|
15375
15383
|
} }),
|
|
15376
15384
|
/* @__PURE__ */ g(
|
|
15377
15385
|
"button",
|
|
15378
15386
|
{
|
|
15379
15387
|
type: "button",
|
|
15380
|
-
onClick: async (
|
|
15388
|
+
onClick: async (p) => {
|
|
15381
15389
|
if (!d && s.CONFIG_commentsV2 && i) {
|
|
15382
|
-
|
|
15390
|
+
A(!0), console.log("open popup");
|
|
15383
15391
|
return;
|
|
15384
15392
|
}
|
|
15385
|
-
await e(
|
|
15393
|
+
await e(p) && (s.CONFIG_commentsV2 && i && m(!1), c(!0));
|
|
15386
15394
|
},
|
|
15387
15395
|
id: "comment-button",
|
|
15388
15396
|
className: `submit-btn su-bg-transparent su-font-bold ${t ? "disabled" : "active"}`,
|
|
@@ -15424,13 +15432,13 @@ const md = {
|
|
|
15424
15432
|
const c = t.current?.value || "", { PUBLIC_PUBLICATION_ID: d } = l, m = d;
|
|
15425
15433
|
if (console.log("check", r, u), !Kt(t, s, l).boolean || !r && !u) {
|
|
15426
15434
|
console.log("warn");
|
|
15427
|
-
const
|
|
15428
|
-
return
|
|
15435
|
+
const A = a.nextElementSibling;
|
|
15436
|
+
return A && (A.style.display = "block"), !1;
|
|
15429
15437
|
}
|
|
15430
15438
|
if (!r && !u) return;
|
|
15431
15439
|
const h = r ? c : "[[" + u + "]] " + c;
|
|
15432
15440
|
try {
|
|
15433
|
-
const
|
|
15441
|
+
const A = Date.now(), f = await fetch("/api/comments-add", {
|
|
15434
15442
|
method: "POST",
|
|
15435
15443
|
headers: { "Content-Type": "application/json" },
|
|
15436
15444
|
body: JSON.stringify({
|
|
@@ -15442,17 +15450,17 @@ const md = {
|
|
|
15442
15450
|
recaptchaResponse: s
|
|
15443
15451
|
})
|
|
15444
15452
|
});
|
|
15445
|
-
let
|
|
15453
|
+
let p = null;
|
|
15446
15454
|
try {
|
|
15447
|
-
|
|
15455
|
+
p = await f.json();
|
|
15448
15456
|
} catch (E) {
|
|
15449
15457
|
console.error("Error parsing JSON response:", E);
|
|
15450
15458
|
}
|
|
15451
15459
|
if (!f.ok)
|
|
15452
15460
|
throw new Error(
|
|
15453
|
-
`Error al enviar comentario: ${
|
|
15461
|
+
`Error al enviar comentario: ${p?.message} status: ${f.status}`
|
|
15454
15462
|
);
|
|
15455
|
-
const w = Date.now(), v = Math.max(0, 2400 + Math.abs(w -
|
|
15463
|
+
const w = Date.now(), v = Math.max(0, 2400 + Math.abs(w - A)), C = r || { username: u, firstname: u }, N = {
|
|
15456
15464
|
username: C.username,
|
|
15457
15465
|
firstname: C.firstname,
|
|
15458
15466
|
...C.lastname && { lastname: C.lastname },
|
|
@@ -15461,12 +15469,12 @@ const md = {
|
|
|
15461
15469
|
return o({
|
|
15462
15470
|
id: w.toString(),
|
|
15463
15471
|
text: c,
|
|
15464
|
-
user:
|
|
15472
|
+
user: N,
|
|
15465
15473
|
date: { time: Date.now() },
|
|
15466
15474
|
reply: []
|
|
15467
15475
|
}), t.current && (t.current.value = ""), v;
|
|
15468
|
-
} catch (
|
|
15469
|
-
return console.error("Error enviando comentario:",
|
|
15476
|
+
} catch (A) {
|
|
15477
|
+
return console.error("Error enviando comentario:", A), alert(A.message || "Error al enviar el comentario."), !1;
|
|
15470
15478
|
}
|
|
15471
15479
|
}, hd = ({
|
|
15472
15480
|
replyingTo: e,
|
|
@@ -15503,13 +15511,13 @@ const md = {
|
|
|
15503
15511
|
children: /* @__PURE__ */ n(
|
|
15504
15512
|
Vs,
|
|
15505
15513
|
{
|
|
15506
|
-
onClick: async (
|
|
15514
|
+
onClick: async (A) => {
|
|
15507
15515
|
if (u) return;
|
|
15508
15516
|
const f = await Hs({
|
|
15509
15517
|
path: a,
|
|
15510
15518
|
ref: t,
|
|
15511
15519
|
captchaToken: d,
|
|
15512
|
-
button:
|
|
15520
|
+
button: A.currentTarget,
|
|
15513
15521
|
user: s,
|
|
15514
15522
|
id: e,
|
|
15515
15523
|
addComment: r,
|
|
@@ -15549,9 +15557,9 @@ const md = {
|
|
|
15549
15557
|
}, pd = {
|
|
15550
15558
|
moreRepliesButton: "Más Respuestas"
|
|
15551
15559
|
}, Ad = ({ comment: e, replyingTo: t, path: s, user: a, handleReplyingTo: r, onFlag: i, API_ENV: o, texts: l }) => {
|
|
15552
|
-
const u = { ...pd, ...l?.comentarios }, c = { morereply: e.morereply ?? !1, reply: e.reply ? e.reply : [] }, [d, m] = Z(c), [h,
|
|
15553
|
-
let C = `${Ie.firstname} ${Ie.lastname ?? ""}`,
|
|
15554
|
-
e.user && (C = `${e.user.firstname} ${e.user.lastname ?? ""}`,
|
|
15560
|
+
const u = { ...pd, ...l?.comentarios }, c = { morereply: e.morereply ?? !1, reply: e.reply ? e.reply : [] }, [d, m] = Z(c), [h, A] = ce.useState(!1), { PUBLIC_PUBLICATION_ID: f, PUBLIC_X_SECURITY_TOKEN: p } = o, w = e.text, v = ce.useRef(null);
|
|
15561
|
+
let C = `${Ie.firstname} ${Ie.lastname ?? ""}`, N = Ie.username;
|
|
15562
|
+
e.user && (C = `${e.user.firstname} ${e.user.lastname ?? ""}`, N = e.user.username);
|
|
15555
15563
|
const E = (b) => {
|
|
15556
15564
|
m({ morereply: d.morereply, reply: [b, ...d.reply] });
|
|
15557
15565
|
};
|
|
@@ -15565,7 +15573,7 @@ const md = {
|
|
|
15565
15573
|
/* @__PURE__ */ g("div", { style: { flex: 1 }, children: [
|
|
15566
15574
|
/* @__PURE__ */ n(Ma, { username: C, date: e.date.time, DATE_CONFIG: o }),
|
|
15567
15575
|
/* @__PURE__ */ n("p", { className: "comment-text su-font-normal", children: w }),
|
|
15568
|
-
a?.username.toLowerCase() !==
|
|
15576
|
+
a?.username.toLowerCase() !== N.toLowerCase() && // No puedes responder ni reportar tus respuestas
|
|
15569
15577
|
/* @__PURE__ */ n(
|
|
15570
15578
|
Da,
|
|
15571
15579
|
{
|
|
@@ -15605,7 +15613,7 @@ const md = {
|
|
|
15605
15613
|
className: "comment-replies-button reply-button su-flex-center su-rounded-full su-border-none su-relative",
|
|
15606
15614
|
onClick: async () => {
|
|
15607
15615
|
const b = d.reply[d.reply.length - 1]?.id;
|
|
15608
|
-
|
|
15616
|
+
A(!0);
|
|
15609
15617
|
try {
|
|
15610
15618
|
const k = await Gs({
|
|
15611
15619
|
publication: f ?? "",
|
|
@@ -15615,12 +15623,12 @@ const md = {
|
|
|
15615
15623
|
id: e.id,
|
|
15616
15624
|
lastid: b,
|
|
15617
15625
|
state: "5,6",
|
|
15618
|
-
apiToken:
|
|
15626
|
+
apiToken: p ?? "",
|
|
15619
15627
|
API_ENV: o
|
|
15620
15628
|
});
|
|
15621
|
-
|
|
15629
|
+
A(!1), m({ morereply: k.morecomment, reply: [...d.reply, ...k.comments] });
|
|
15622
15630
|
} catch (I) {
|
|
15623
|
-
throw
|
|
15631
|
+
throw A(!1), new Error(`Error al obtener comentarios: ${I}`);
|
|
15624
15632
|
}
|
|
15625
15633
|
},
|
|
15626
15634
|
children: u.moreRepliesButton
|
|
@@ -15740,7 +15748,7 @@ const md = {
|
|
|
15740
15748
|
children: /* @__PURE__ */ n(
|
|
15741
15749
|
Vs,
|
|
15742
15750
|
{
|
|
15743
|
-
onClick: async (
|
|
15751
|
+
onClick: async (A) => {
|
|
15744
15752
|
if (u) {
|
|
15745
15753
|
console.log("error");
|
|
15746
15754
|
return;
|
|
@@ -15749,19 +15757,19 @@ const md = {
|
|
|
15749
15757
|
console.log("invalidForm");
|
|
15750
15758
|
return;
|
|
15751
15759
|
}
|
|
15752
|
-
const f = e.current.value,
|
|
15760
|
+
const f = e.current.value, p = await Hs({
|
|
15753
15761
|
path: s,
|
|
15754
15762
|
ref: t,
|
|
15755
15763
|
captchaToken: d,
|
|
15756
|
-
button:
|
|
15764
|
+
button: A.currentTarget,
|
|
15757
15765
|
user: void 0,
|
|
15758
15766
|
addComment: i,
|
|
15759
15767
|
API_ENV: o,
|
|
15760
15768
|
anonimusUser: f
|
|
15761
15769
|
});
|
|
15762
|
-
return m(""),
|
|
15770
|
+
return m(""), p && typeof p == "number" ? (t.current?.parentElement && (t.current.parentElement.dataset.text = `0/${Le}`), c(!0), setTimeout(() => {
|
|
15763
15771
|
t.current?.parentElement && (t.current.parentElement.dataset.text = `0/${Le}`), c(!0);
|
|
15764
|
-
},
|
|
15772
|
+
}, p), !0) : !1;
|
|
15765
15773
|
},
|
|
15766
15774
|
isDisabled: u,
|
|
15767
15775
|
API_ENV: o,
|
|
@@ -15794,10 +15802,10 @@ const md = {
|
|
|
15794
15802
|
API_ENV: o,
|
|
15795
15803
|
texts: l
|
|
15796
15804
|
}) => {
|
|
15797
|
-
const u = { ...Cd, ...l?.comentarios }, { PUBLIC_PUBLICATION_ID: c, PUBLIC_X_SECURITY_TOKEN: d } = o, m = c ?? "", h = t.replaceAll("/", "|"), [
|
|
15805
|
+
const u = { ...Cd, ...l?.comentarios }, { PUBLIC_PUBLICATION_ID: c, PUBLIC_X_SECURITY_TOKEN: d } = o, m = c ?? "", h = t.replaceAll("/", "|"), [A, f] = Z(
|
|
15798
15806
|
void 0
|
|
15799
|
-
), [
|
|
15800
|
-
w(
|
|
15807
|
+
), [p, w] = Z(""), { comments: v, setComments: C } = od(h, o), [N, E] = ce.useState(!1), b = ce.useRef(null), I = ce.useRef(null), k = (U) => {
|
|
15808
|
+
w(p === U ? "" : U);
|
|
15801
15809
|
}, Q = (U) => {
|
|
15802
15810
|
C(
|
|
15803
15811
|
v ? {
|
|
@@ -15805,7 +15813,7 @@ const md = {
|
|
|
15805
15813
|
comments: [U, ...v.comments ?? []]
|
|
15806
15814
|
} : void 0
|
|
15807
15815
|
);
|
|
15808
|
-
},
|
|
15816
|
+
}, F = (U) => {
|
|
15809
15817
|
f(U);
|
|
15810
15818
|
}, j = async () => {
|
|
15811
15819
|
if (!v || !v.morecomment || v.comments.length === 0) return;
|
|
@@ -15888,9 +15896,9 @@ const md = {
|
|
|
15888
15896
|
Ad,
|
|
15889
15897
|
{
|
|
15890
15898
|
comment: U,
|
|
15891
|
-
replyingTo:
|
|
15899
|
+
replyingTo: p,
|
|
15892
15900
|
handleReplyingTo: k,
|
|
15893
|
-
onFlag:
|
|
15901
|
+
onFlag: F,
|
|
15894
15902
|
user: s ?? Ie,
|
|
15895
15903
|
path: h,
|
|
15896
15904
|
API_ENV: o,
|
|
@@ -15898,11 +15906,11 @@ const md = {
|
|
|
15898
15906
|
},
|
|
15899
15907
|
U.id
|
|
15900
15908
|
)),
|
|
15901
|
-
|
|
15909
|
+
N && se
|
|
15902
15910
|
]
|
|
15903
15911
|
}
|
|
15904
15912
|
) : null : se,
|
|
15905
|
-
v?.morecomment && !
|
|
15913
|
+
v?.morecomment && !N && /* @__PURE__ */ n(
|
|
15906
15914
|
"button",
|
|
15907
15915
|
{
|
|
15908
15916
|
className: "comment-replies-button su-flex-center su-rounded-full",
|
|
@@ -15916,8 +15924,8 @@ const md = {
|
|
|
15916
15924
|
{
|
|
15917
15925
|
username: s?.username ?? void 0,
|
|
15918
15926
|
publication: m,
|
|
15919
|
-
commentId:
|
|
15920
|
-
isOpen:
|
|
15927
|
+
commentId: A,
|
|
15928
|
+
isOpen: A !== void 0,
|
|
15921
15929
|
onClose: () => f(void 0),
|
|
15922
15930
|
CAPTCHA_KEY_V2: o.CAPTCHA_KEY_V2 ?? "",
|
|
15923
15931
|
texts: l
|
|
@@ -15983,8 +15991,8 @@ function Ed({
|
|
|
15983
15991
|
return;
|
|
15984
15992
|
}
|
|
15985
15993
|
try {
|
|
15986
|
-
const
|
|
15987
|
-
o(
|
|
15994
|
+
const p = await (await fetch("/api/auth/user", { credentials: "include" })).json();
|
|
15995
|
+
o(p.isAuthenticated ?? !1), u(p.user ?? null), document.cookie = "redirect_after_login_1=; Max-Age=0; path=/";
|
|
15988
15996
|
} catch (f) {
|
|
15989
15997
|
console.error("Error checking auth:", f), o(!1), u(null);
|
|
15990
15998
|
}
|
|
@@ -16011,7 +16019,7 @@ function Ed({
|
|
|
16011
16019
|
}
|
|
16012
16020
|
);
|
|
16013
16021
|
if (i === null) return h;
|
|
16014
|
-
const
|
|
16022
|
+
const A = t.replaceAll("|", "/");
|
|
16015
16023
|
return e ? /* @__PURE__ */ n(
|
|
16016
16024
|
Sd,
|
|
16017
16025
|
{
|
|
@@ -16021,7 +16029,7 @@ function Ed({
|
|
|
16021
16029
|
loginUrl: m,
|
|
16022
16030
|
user: l ?? void 0,
|
|
16023
16031
|
checkAuth: d,
|
|
16024
|
-
path:
|
|
16032
|
+
path: A,
|
|
16025
16033
|
API_ENV: a,
|
|
16026
16034
|
texts: r
|
|
16027
16035
|
}
|
|
@@ -16122,9 +16130,9 @@ async function t1({
|
|
|
16122
16130
|
text: a.trim()
|
|
16123
16131
|
};
|
|
16124
16132
|
s && (h.username = s), r && (h.id = r);
|
|
16125
|
-
const
|
|
16133
|
+
const A = new URLSearchParams(h);
|
|
16126
16134
|
try {
|
|
16127
|
-
const { data: f } = await re.get(`${m}?${
|
|
16135
|
+
const { data: f } = await re.get(`${m}?${A.toString()}`, {
|
|
16128
16136
|
headers: {
|
|
16129
16137
|
"Content-Type": "application/json",
|
|
16130
16138
|
"x-security-token": u,
|
|
@@ -16143,23 +16151,23 @@ async function t1({
|
|
|
16143
16151
|
});
|
|
16144
16152
|
} catch (f) {
|
|
16145
16153
|
if (console.error("Error enviando comentario:", f), re.isAxiosError(f)) {
|
|
16146
|
-
const
|
|
16147
|
-
return
|
|
16154
|
+
const p = f.response?.status ?? 500, w = f.response?.data;
|
|
16155
|
+
return p === 400 ? {
|
|
16148
16156
|
type: "error",
|
|
16149
16157
|
message: w?.message || "Solicitud inválida. Verifica que los campos sean correctos.",
|
|
16150
16158
|
status: 400
|
|
16151
|
-
} :
|
|
16159
|
+
} : p === 403 ? {
|
|
16152
16160
|
type: "error",
|
|
16153
16161
|
message: "Captcha inválido o acceso prohibido.",
|
|
16154
16162
|
status: 403
|
|
16155
|
-
} :
|
|
16163
|
+
} : p === 500 ? {
|
|
16156
16164
|
type: "error",
|
|
16157
16165
|
message: "Error interno del servidor del CMS.",
|
|
16158
16166
|
status: 500
|
|
16159
16167
|
} : {
|
|
16160
16168
|
type: "error",
|
|
16161
16169
|
message: w?.message || "No se pudo enviar el comentario.",
|
|
16162
|
-
status:
|
|
16170
|
+
status: p
|
|
16163
16171
|
};
|
|
16164
16172
|
}
|
|
16165
16173
|
return {
|
|
@@ -16474,25 +16482,25 @@ const jn = {
|
|
|
16474
16482
|
const l = [], c = t, d = Object.keys(e).length / c;
|
|
16475
16483
|
for (let m = 1; m <= d; m++)
|
|
16476
16484
|
for (let h = 1; h <= c; h++) {
|
|
16477
|
-
const
|
|
16478
|
-
!e[
|
|
16485
|
+
const A = "Home_" + m + "_" + h;
|
|
16486
|
+
!e[A] || !e[A].blockSass || !e[A].blockSass[0] || !e[A].blockSass[0].value || !e[A].blockSass[0].block || e[A].blockSass[0].block === "No Mostrar" || (e[A].blockSass[0]?.block === "Modulo iframe" ? l.push(
|
|
16479
16487
|
/* @__PURE__ */ g(
|
|
16480
16488
|
vn,
|
|
16481
16489
|
{
|
|
16482
|
-
id: e[
|
|
16483
|
-
show: !!e[
|
|
16490
|
+
id: e[A].blockSass[0].key,
|
|
16491
|
+
show: !!e[A].blockSass[0].value,
|
|
16484
16492
|
order: (m - 1) * c + (h - 1),
|
|
16485
16493
|
children: [
|
|
16486
16494
|
/* @__PURE__ */ n(
|
|
16487
16495
|
Gn,
|
|
16488
16496
|
{
|
|
16489
|
-
component: e[
|
|
16497
|
+
component: e[A].blockSass[0].block,
|
|
16490
16498
|
banners: i,
|
|
16491
|
-
slot_id:
|
|
16499
|
+
slot_id: A,
|
|
16492
16500
|
data: {
|
|
16493
|
-
printEdition: e[
|
|
16494
|
-
title: e[
|
|
16495
|
-
titleUrl: e[
|
|
16501
|
+
printEdition: e[A]?.blockSass[0].value,
|
|
16502
|
+
title: e[A]?.blockSass[0].title ?? "",
|
|
16503
|
+
titleUrl: e[A].blockSass[0].link ?? void 0
|
|
16496
16504
|
}
|
|
16497
16505
|
}
|
|
16498
16506
|
),
|
|
@@ -16511,21 +16519,21 @@ const jn = {
|
|
|
16511
16519
|
/* @__PURE__ */ g(
|
|
16512
16520
|
vn,
|
|
16513
16521
|
{
|
|
16514
|
-
id: e[
|
|
16515
|
-
show: !!e[
|
|
16522
|
+
id: e[A].blockSass[0].key,
|
|
16523
|
+
show: !!e[A].content?.data,
|
|
16516
16524
|
order: (m - 1) * c + (h - 1),
|
|
16517
16525
|
children: [
|
|
16518
16526
|
/* @__PURE__ */ n(
|
|
16519
16527
|
Gn,
|
|
16520
16528
|
{
|
|
16521
|
-
component: e[
|
|
16529
|
+
component: e[A].blockSass[0].block,
|
|
16522
16530
|
banners: i,
|
|
16523
|
-
slot_id:
|
|
16531
|
+
slot_id: A,
|
|
16524
16532
|
data: {
|
|
16525
|
-
...e[
|
|
16526
|
-
content: e[
|
|
16527
|
-
title: e[
|
|
16528
|
-
titleUrl: e[
|
|
16533
|
+
...e[A].blockSass[0].block ? s[e[A].blockSass[0].block] : [],
|
|
16534
|
+
content: e[A].content?.data ?? [],
|
|
16535
|
+
title: e[A].blockSass[0].title ?? void 0,
|
|
16536
|
+
titleUrl: e[A].blockSass[0].link ?? void 0,
|
|
16529
16537
|
autorIcon: /* @__PURE__ */ n(a, {}),
|
|
16530
16538
|
paths: r.paths,
|
|
16531
16539
|
showTagBySection: o
|