@wix/blog 1.0.697 → 1.0.698
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/_sdk-exports/context-blog-feed-context-provider/runtime.js +3 -3
- package/_sdk-exports/context-post-by-id-context-provider/runtime.js +4 -4
- package/_sdk-exports/context-post-context-provider/runtime.js +2 -2
- package/_sdk-exports/context-related-posts-context-provider/runtime.js +4 -4
- package/build/cjs/context-blog-feed-context-provider.js +195 -180
- package/build/cjs/context-blog-feed-context-provider.js.map +1 -1
- package/build/cjs/context-post-by-id-context-provider.js +474 -467
- package/build/cjs/context-post-by-id-context-provider.js.map +1 -1
- package/build/cjs/context-post-context-provider.js +208 -192
- package/build/cjs/context-post-context-provider.js.map +1 -1
- package/build/cjs/context-related-posts-context-provider.js +773 -757
- package/build/cjs/context-related-posts-context-provider.js.map +1 -1
- package/build/es/context-blog-feed-context-provider.mjs +195 -180
- package/build/es/context-blog-feed-context-provider.mjs.map +1 -1
- package/build/es/context-post-by-id-context-provider.mjs +474 -467
- package/build/es/context-post-by-id-context-provider.mjs.map +1 -1
- package/build/es/context-post-context-provider.mjs +208 -192
- package/build/es/context-post-context-provider.mjs.map +1 -1
- package/build/es/context-related-posts-context-provider.mjs +773 -757
- package/build/es/context-related-posts-context-provider.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -20,10 +20,10 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// context-related-posts-context-provider.ts
|
|
21
21
|
var context_related_posts_context_provider_exports = {};
|
|
22
22
|
__export(context_related_posts_context_provider_exports, {
|
|
23
|
-
RelatedPostsProvider: () =>
|
|
24
|
-
default: () =>
|
|
25
|
-
injectAccessTokenGetter: () =>
|
|
26
|
-
useRelatedPostsContext: () =>
|
|
23
|
+
RelatedPostsProvider: () => yu,
|
|
24
|
+
default: () => yu,
|
|
25
|
+
injectAccessTokenGetter: () => bu,
|
|
26
|
+
useRelatedPostsContext: () => su
|
|
27
27
|
});
|
|
28
28
|
module.exports = __toCommonJS(context_related_posts_context_provider_exports);
|
|
29
29
|
|
|
@@ -1233,60 +1233,60 @@ var br = ({ isDev: e6, loadMessages: t2, loadDevMessages: n2 }) => {
|
|
|
1233
1233
|
return (e7) => r2.getOrInsert(e7, () => i2(e7));
|
|
1234
1234
|
};
|
|
1235
1235
|
var F = (e6) => typeof e6 == `string`;
|
|
1236
|
-
var
|
|
1236
|
+
var xr = () => {
|
|
1237
1237
|
let e6, t2, n2 = new Promise((n3, r2) => {
|
|
1238
1238
|
e6 = n3, t2 = r2;
|
|
1239
1239
|
});
|
|
1240
1240
|
return n2.resolve = e6, n2.reject = t2, n2;
|
|
1241
1241
|
};
|
|
1242
|
-
var
|
|
1243
|
-
var
|
|
1242
|
+
var Sr = (e6) => e6 == null ? `` : String(e6);
|
|
1243
|
+
var Cr = (e6, t2, n2) => {
|
|
1244
1244
|
e6.forEach((e7) => {
|
|
1245
1245
|
t2[e7] && (n2[e7] = t2[e7]);
|
|
1246
1246
|
});
|
|
1247
1247
|
};
|
|
1248
|
-
var
|
|
1249
|
-
var
|
|
1250
|
-
var
|
|
1251
|
-
var
|
|
1248
|
+
var wr = /###/g;
|
|
1249
|
+
var Tr = (e6) => e6 && e6.includes(`###`) ? e6.replace(wr, `.`) : e6;
|
|
1250
|
+
var Er = (e6) => !e6 || F(e6);
|
|
1251
|
+
var Dr = (e6, t2, n2) => {
|
|
1252
1252
|
let r2 = F(t2) ? t2.split(`.`) : t2, i2 = 0;
|
|
1253
1253
|
for (; i2 < r2.length - 1; ) {
|
|
1254
|
-
if (
|
|
1255
|
-
let t3 =
|
|
1254
|
+
if (Er(e6)) return {};
|
|
1255
|
+
let t3 = Tr(r2[i2]);
|
|
1256
1256
|
!e6[t3] && n2 && (e6[t3] = new n2()), e6 = Object.prototype.hasOwnProperty.call(e6, t3) ? e6[t3] : {}, ++i2;
|
|
1257
1257
|
}
|
|
1258
|
-
return
|
|
1258
|
+
return Er(e6) ? {} : { obj: e6, k: Tr(r2[i2]) };
|
|
1259
1259
|
};
|
|
1260
|
-
var
|
|
1261
|
-
let { obj: r2, k: i2 } =
|
|
1260
|
+
var Or = (e6, t2, n2) => {
|
|
1261
|
+
let { obj: r2, k: i2 } = Dr(e6, t2, Object);
|
|
1262
1262
|
if (r2 !== void 0 || t2.length === 1) {
|
|
1263
1263
|
r2[i2] = n2;
|
|
1264
1264
|
return;
|
|
1265
1265
|
}
|
|
1266
|
-
let a2 = t2[t2.length - 1], o2 = t2.slice(0, t2.length - 1), s2 =
|
|
1267
|
-
for (; s2.obj === void 0 && o2.length; ) a2 = `${o2[o2.length - 1]}.${a2}`, o2 = o2.slice(0, o2.length - 1), s2 =
|
|
1266
|
+
let a2 = t2[t2.length - 1], o2 = t2.slice(0, t2.length - 1), s2 = Dr(e6, o2, Object);
|
|
1267
|
+
for (; s2.obj === void 0 && o2.length; ) a2 = `${o2[o2.length - 1]}.${a2}`, o2 = o2.slice(0, o2.length - 1), s2 = Dr(e6, o2, Object), s2?.obj && s2.obj[`${s2.k}.${a2}`] !== void 0 && (s2.obj = void 0);
|
|
1268
1268
|
s2.obj[`${s2.k}.${a2}`] = n2;
|
|
1269
1269
|
};
|
|
1270
|
-
var
|
|
1271
|
-
let { obj: i2, k: a2 } =
|
|
1270
|
+
var kr = (e6, t2, n2, r2) => {
|
|
1271
|
+
let { obj: i2, k: a2 } = Dr(e6, t2, Object);
|
|
1272
1272
|
i2[a2] = i2[a2] || [], i2[a2].push(n2);
|
|
1273
1273
|
};
|
|
1274
|
-
var
|
|
1275
|
-
let { obj: n2, k: r2 } =
|
|
1274
|
+
var Ar = (e6, t2) => {
|
|
1275
|
+
let { obj: n2, k: r2 } = Dr(e6, t2);
|
|
1276
1276
|
if (n2 && Object.prototype.hasOwnProperty.call(n2, r2)) return n2[r2];
|
|
1277
1277
|
};
|
|
1278
|
-
var Ar = (e6, t2, n2) => {
|
|
1279
|
-
let r2 = kr(e6, n2);
|
|
1280
|
-
return r2 === void 0 ? kr(t2, n2) : r2;
|
|
1281
|
-
};
|
|
1282
1278
|
var jr = (e6, t2, n2) => {
|
|
1283
|
-
|
|
1279
|
+
let r2 = Ar(e6, n2);
|
|
1280
|
+
return r2 === void 0 ? Ar(t2, n2) : r2;
|
|
1281
|
+
};
|
|
1282
|
+
var Mr = (e6, t2, n2) => {
|
|
1283
|
+
for (let r2 in t2) r2 !== `__proto__` && r2 !== `constructor` && (Object.prototype.hasOwnProperty.call(e6, r2) ? F(e6[r2]) || e6[r2] instanceof String || F(t2[r2]) || t2[r2] instanceof String ? n2 && (e6[r2] = t2[r2]) : Mr(e6[r2], t2[r2], n2) : e6[r2] = t2[r2]);
|
|
1284
1284
|
return e6;
|
|
1285
1285
|
};
|
|
1286
|
-
var
|
|
1287
|
-
var
|
|
1288
|
-
var
|
|
1289
|
-
var
|
|
1286
|
+
var I = (e6) => e6.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, `\\$&`);
|
|
1287
|
+
var Nr = { "&": `&`, "<": `<`, ">": `>`, '"': `"`, "'": `'`, "/": `/` };
|
|
1288
|
+
var Pr = (e6) => F(e6) ? e6.replace(/[&<>"'\/]/g, (e7) => Nr[e7]) : e6;
|
|
1289
|
+
var Fr = class {
|
|
1290
1290
|
constructor(e6) {
|
|
1291
1291
|
this.capacity = e6, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
1292
1292
|
}
|
|
@@ -1297,20 +1297,20 @@ var Pr = class {
|
|
|
1297
1297
|
return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e6, n2), this.regExpQueue.push(e6), n2;
|
|
1298
1298
|
}
|
|
1299
1299
|
};
|
|
1300
|
-
var
|
|
1301
|
-
var
|
|
1302
|
-
var
|
|
1300
|
+
var Ir = [` `, `,`, `?`, `!`, `;`];
|
|
1301
|
+
var Lr = new Fr(20);
|
|
1302
|
+
var Rr = (e6, t2, n2) => {
|
|
1303
1303
|
t2 ||= ``, n2 ||= ``;
|
|
1304
|
-
let r2 =
|
|
1304
|
+
let r2 = Ir.filter((e7) => !t2.includes(e7) && !n2.includes(e7));
|
|
1305
1305
|
if (r2.length === 0) return true;
|
|
1306
|
-
let i2 =
|
|
1306
|
+
let i2 = Lr.getRegExp(`(${r2.map((e7) => e7 === `?` ? `\\?` : e7).join(`|`)})`), a2 = !i2.test(e6);
|
|
1307
1307
|
if (!a2) {
|
|
1308
1308
|
let t3 = e6.indexOf(n2);
|
|
1309
1309
|
t3 > 0 && !i2.test(e6.substring(0, t3)) && (a2 = true);
|
|
1310
1310
|
}
|
|
1311
1311
|
return a2;
|
|
1312
1312
|
};
|
|
1313
|
-
var
|
|
1313
|
+
var zr = (e6, t2, n2 = `.`) => {
|
|
1314
1314
|
if (!e6) return;
|
|
1315
1315
|
if (e6[t2]) return Object.prototype.hasOwnProperty.call(e6, t2) ? e6[t2] : void 0;
|
|
1316
1316
|
let r2 = t2.split(n2), i2 = e6;
|
|
@@ -1326,8 +1326,8 @@ var Rr = (e6, t2, n2 = `.`) => {
|
|
|
1326
1326
|
}
|
|
1327
1327
|
return i2;
|
|
1328
1328
|
};
|
|
1329
|
-
var
|
|
1330
|
-
var
|
|
1329
|
+
var L = (e6) => e6?.replace(/_/g, `-`);
|
|
1330
|
+
var Br = { type: `logger`, log(e6) {
|
|
1331
1331
|
this.output(`log`, e6);
|
|
1332
1332
|
}, warn(e6) {
|
|
1333
1333
|
this.output(`warn`, e6);
|
|
@@ -1336,12 +1336,12 @@ var zr = { type: `logger`, log(e6) {
|
|
|
1336
1336
|
}, output(e6, t2) {
|
|
1337
1337
|
console?.[e6]?.apply?.(console, t2);
|
|
1338
1338
|
} };
|
|
1339
|
-
var
|
|
1339
|
+
var R = new class e2 {
|
|
1340
1340
|
constructor(e6, t2 = {}) {
|
|
1341
1341
|
this.init(e6, t2);
|
|
1342
1342
|
}
|
|
1343
1343
|
init(e6, t2 = {}) {
|
|
1344
|
-
this.prefix = t2.prefix || `i18next:`, this.logger = e6 ||
|
|
1344
|
+
this.prefix = t2.prefix || `i18next:`, this.logger = e6 || Br, this.options = t2, this.debug = t2.debug;
|
|
1345
1345
|
}
|
|
1346
1346
|
log(...e6) {
|
|
1347
1347
|
return this.forward(e6, `log`, ``, true);
|
|
@@ -1365,7 +1365,7 @@ var z = new class e2 {
|
|
|
1365
1365
|
return t2 ||= this.options, t2.prefix = t2.prefix || this.prefix, new e2(this.logger, t2);
|
|
1366
1366
|
}
|
|
1367
1367
|
}();
|
|
1368
|
-
var
|
|
1368
|
+
var Vr = class {
|
|
1369
1369
|
constructor() {
|
|
1370
1370
|
this.observers = {};
|
|
1371
1371
|
}
|
|
@@ -1393,8 +1393,8 @@ var Br = class {
|
|
|
1393
1393
|
});
|
|
1394
1394
|
}
|
|
1395
1395
|
};
|
|
1396
|
-
var
|
|
1397
|
-
var
|
|
1396
|
+
var Hr = /* @__PURE__ */ new WeakSet();
|
|
1397
|
+
var Ur = class extends Vr {
|
|
1398
1398
|
constructor(e6, t2 = { ns: [`translation`], defaultNS: `translation` }) {
|
|
1399
1399
|
super(), this.data = e6 || {}, this.options = t2, this.options.keySeparator === void 0 && (this.options.keySeparator = `.`), this.options.ignoreJSONStructure === void 0 && (this.options.ignoreJSONStructure = true);
|
|
1400
1400
|
}
|
|
@@ -1408,12 +1408,12 @@ var Hr = class extends Br {
|
|
|
1408
1408
|
getResource(e6, t2, n2, r2 = {}) {
|
|
1409
1409
|
let i2 = r2.keySeparator === void 0 ? this.options.keySeparator : r2.keySeparator, a2 = r2.ignoreJSONStructure === void 0 ? this.options.ignoreJSONStructure : r2.ignoreJSONStructure, o2;
|
|
1410
1410
|
e6.includes(`.`) ? o2 = e6.split(`.`) : (o2 = [e6, t2], n2 && (Array.isArray(n2) ? o2.push(...n2) : F(n2) && i2 ? o2.push(...n2.split(i2)) : o2.push(n2)));
|
|
1411
|
-
let s2 =
|
|
1412
|
-
return !s2 && !t2 && !n2 && e6.includes(`.`) && (e6 = o2[0], t2 = o2[1], n2 = o2.slice(2).join(`.`)), s2 || !a2 || !F(n2) ? s2 :
|
|
1411
|
+
let s2 = Ar(this.data, o2);
|
|
1412
|
+
return !s2 && !t2 && !n2 && e6.includes(`.`) && (e6 = o2[0], t2 = o2[1], n2 = o2.slice(2).join(`.`)), s2 || !a2 || !F(n2) ? s2 : zr(this.data?.[e6]?.[t2], n2, i2);
|
|
1413
1413
|
}
|
|
1414
1414
|
addResource(e6, t2, n2, r2, i2 = { silent: false }) {
|
|
1415
1415
|
let a2 = i2.keySeparator === void 0 ? this.options.keySeparator : i2.keySeparator, o2 = [e6, t2];
|
|
1416
|
-
n2 && (o2 = o2.concat(a2 ? n2.split(a2) : n2)), e6.includes(`.`) && (o2 = e6.split(`.`), r2 = t2, t2 = o2[1]), this.addNamespaces(t2),
|
|
1416
|
+
n2 && (o2 = o2.concat(a2 ? n2.split(a2) : n2)), e6.includes(`.`) && (o2 = e6.split(`.`), r2 = t2, t2 = o2[1]), this.addNamespaces(t2), Or(this.data, o2, r2), i2.silent || this.emit(`added`, e6, t2, n2, r2);
|
|
1417
1417
|
}
|
|
1418
1418
|
addResources(e6, t2, n2, r2 = { silent: false }) {
|
|
1419
1419
|
for (let r3 in n2) (F(n2[r3]) || Array.isArray(n2[r3])) && this.addResource(e6, t2, r3, n2[r3], { silent: true });
|
|
@@ -1422,8 +1422,8 @@ var Hr = class extends Br {
|
|
|
1422
1422
|
addResourceBundle(e6, t2, n2, r2, i2, a2 = { silent: false, skipCopy: false }) {
|
|
1423
1423
|
let o2 = [e6, t2];
|
|
1424
1424
|
e6.includes(`.`) && (o2 = e6.split(`.`), r2 = n2, n2 = t2, t2 = o2[1]), this.addNamespaces(t2);
|
|
1425
|
-
let s2 =
|
|
1426
|
-
a2.skipCopy || (n2 = JSON.parse(JSON.stringify(n2))), r2 ?
|
|
1425
|
+
let s2 = Ar(this.data, o2) || {};
|
|
1426
|
+
a2.skipCopy || (n2 = JSON.parse(JSON.stringify(n2))), r2 ? Mr(s2, n2, i2) : s2 = { ...s2, ...n2 }, Or(this.data, o2, s2), a2.silent || this.emit(`added`, e6, t2, n2);
|
|
1427
1427
|
}
|
|
1428
1428
|
removeResourceBundle(e6, t2) {
|
|
1429
1429
|
this.hasResourceBundle(e6, t2) && delete this.data[e6][t2], this.removeNamespaces(t2), this.emit(`removed`, e6, t2);
|
|
@@ -1441,37 +1441,37 @@ var Hr = class extends Br {
|
|
|
1441
1441
|
let t2 = this.getDataByLanguage(e6);
|
|
1442
1442
|
return !!(t2 && Object.keys(t2) || []).find((e7) => {
|
|
1443
1443
|
let n2 = t2[e7];
|
|
1444
|
-
return
|
|
1444
|
+
return Hr.has(n2) ? true : !n2 || Object.keys(n2).length === 0 ? false : (typeof n2 == `object` && Hr.add(n2), true);
|
|
1445
1445
|
});
|
|
1446
1446
|
}
|
|
1447
1447
|
toJSON() {
|
|
1448
1448
|
return this.data;
|
|
1449
1449
|
}
|
|
1450
1450
|
};
|
|
1451
|
-
var
|
|
1451
|
+
var Wr = { processors: {}, addPostProcessor(e6) {
|
|
1452
1452
|
this.processors[e6.name] = e6;
|
|
1453
1453
|
}, handle(e6, t2, n2, r2, i2) {
|
|
1454
1454
|
return e6.forEach((e7) => {
|
|
1455
1455
|
t2 = this.processors[e7]?.process(t2, n2, r2, i2) ?? t2;
|
|
1456
1456
|
}), t2;
|
|
1457
1457
|
} };
|
|
1458
|
-
var
|
|
1459
|
-
function
|
|
1458
|
+
var Gr = Symbol(`i18next/PATH_KEY`);
|
|
1459
|
+
function Kr() {
|
|
1460
1460
|
let e6 = [], t2 = /* @__PURE__ */ Object.create(null), n2;
|
|
1461
|
-
return t2.get = (r2, i2) => (n2?.revoke?.(), i2 ===
|
|
1461
|
+
return t2.get = (r2, i2) => (n2?.revoke?.(), i2 === Gr ? e6 : (e6.push(i2), n2 = Proxy.revocable(r2, t2), n2.proxy)), Proxy.revocable(/* @__PURE__ */ Object.create(null), t2).proxy;
|
|
1462
1462
|
}
|
|
1463
|
-
function
|
|
1464
|
-
let { [
|
|
1463
|
+
function z(e6, t2) {
|
|
1464
|
+
let { [Gr]: n2 } = e6(Kr()), r2 = t2?.keySeparator ?? `.`, i2 = t2?.nsSeparator ?? `:`, a2 = t2?.enableSelector === `strict`;
|
|
1465
1465
|
if (n2.length > 1 && i2) {
|
|
1466
1466
|
let e7 = t2?.ns, o2 = a2 ? Array.isArray(e7) ? e7 : e7 ? [e7] : null : Array.isArray(e7) ? e7 : null;
|
|
1467
1467
|
if (o2 && (a2 ? o2 : o2.length > 1 ? o2.slice(1) : []).includes(n2[0])) return `${n2[0]}${i2}${n2.slice(1).join(r2)}`;
|
|
1468
1468
|
}
|
|
1469
1469
|
return n2.join(r2);
|
|
1470
1470
|
}
|
|
1471
|
-
var
|
|
1472
|
-
var
|
|
1471
|
+
var qr = (e6) => !F(e6) && typeof e6 != `boolean` && typeof e6 != `number`;
|
|
1472
|
+
var Jr = class e3 extends Vr {
|
|
1473
1473
|
constructor(e6, t2 = {}) {
|
|
1474
|
-
super(),
|
|
1474
|
+
super(), Cr([`resourceStore`, `languageUtils`, `pluralResolver`, `interpolator`, `backendConnector`, `i18nFormat`, `utils`], e6, this), this.options = t2, this.options.keySeparator === void 0 && (this.options.keySeparator = `.`), this.logger = R.create(`translator`), this.checkedLoadedFor = {};
|
|
1475
1475
|
}
|
|
1476
1476
|
changeLanguage(e6) {
|
|
1477
1477
|
e6 && (this.language = e6);
|
|
@@ -1481,13 +1481,13 @@ var qr = class e3 extends Br {
|
|
|
1481
1481
|
if (e6 == null) return false;
|
|
1482
1482
|
let r2 = this.resolve(e6, n2);
|
|
1483
1483
|
if (r2?.res === void 0) return false;
|
|
1484
|
-
let i2 =
|
|
1484
|
+
let i2 = qr(r2.res);
|
|
1485
1485
|
return !(n2.returnObjects === false && i2);
|
|
1486
1486
|
}
|
|
1487
1487
|
extractFromKey(e6, t2) {
|
|
1488
1488
|
let n2 = t2.nsSeparator === void 0 ? this.options.nsSeparator : t2.nsSeparator;
|
|
1489
1489
|
n2 === void 0 && (n2 = `:`);
|
|
1490
|
-
let r2 = t2.keySeparator === void 0 ? this.options.keySeparator : t2.keySeparator, i2 = t2.ns || this.options.defaultNS || [], a2 = n2 && e6.includes(n2), o2 = !this.options.userDefinedKeySeparator && !t2.keySeparator && !this.options.userDefinedNsSeparator && !t2.nsSeparator && !
|
|
1490
|
+
let r2 = t2.keySeparator === void 0 ? this.options.keySeparator : t2.keySeparator, i2 = t2.ns || this.options.defaultNS || [], a2 = n2 && e6.includes(n2), o2 = !this.options.userDefinedKeySeparator && !t2.keySeparator && !this.options.userDefinedNsSeparator && !t2.nsSeparator && !Rr(e6, n2, r2);
|
|
1491
1491
|
if (a2 && !o2) {
|
|
1492
1492
|
let t3 = e6.match(this.interpolator.nestingRegexp);
|
|
1493
1493
|
if (t3 && t3.length > 0) return { key: e6, namespaces: F(i2) ? [i2] : i2 };
|
|
@@ -1499,14 +1499,14 @@ var qr = class e3 extends Br {
|
|
|
1499
1499
|
translate(t2, n2, r2) {
|
|
1500
1500
|
let i2 = typeof n2 == `object` ? { ...n2 } : n2;
|
|
1501
1501
|
if (typeof i2 != `object` && this.options.overloadTranslationOptionHandler && (i2 = this.options.overloadTranslationOptionHandler(arguments)), typeof i2 == `object` && (i2 = { ...i2 }), i2 ||= {}, t2 == null) return ``;
|
|
1502
|
-
typeof t2 == `function` && (t2 =
|
|
1502
|
+
typeof t2 == `function` && (t2 = z(t2, { ...this.options, ...i2 })), Array.isArray(t2) || (t2 = [String(t2)]), t2 = t2.map((e6) => typeof e6 == `function` ? z(e6, { ...this.options, ...i2 }) : String(e6));
|
|
1503
1503
|
let a2 = i2.returnDetails === void 0 ? this.options.returnDetails : i2.returnDetails, o2 = i2.keySeparator === void 0 ? this.options.keySeparator : i2.keySeparator, { key: s2, namespaces: c2 } = this.extractFromKey(t2[t2.length - 1], i2), l2 = c2[c2.length - 1], u2 = i2.nsSeparator === void 0 ? this.options.nsSeparator : i2.nsSeparator;
|
|
1504
1504
|
u2 === void 0 && (u2 = `:`);
|
|
1505
1505
|
let d2 = i2.lng || this.language, f2 = i2.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
|
1506
1506
|
if (d2?.toLowerCase() === `cimode`) return f2 ? a2 ? { res: `${l2}${u2}${s2}`, usedKey: s2, exactUsedKey: s2, usedLng: d2, usedNS: l2, usedParams: this.getUsedParamsDetails(i2) } : `${l2}${u2}${s2}` : a2 ? { res: s2, usedKey: s2, exactUsedKey: s2, usedLng: d2, usedNS: l2, usedParams: this.getUsedParamsDetails(i2) } : s2;
|
|
1507
1507
|
let p2 = this.resolve(t2, i2), m2 = p2?.res, h2 = p2?.usedKey || s2, g2 = p2?.exactUsedKey || s2, _2 = [`[object Number]`, `[object Function]`, `[object RegExp]`], v2 = i2.joinArrays === void 0 ? this.options.joinArrays : i2.joinArrays, y2 = !this.i18nFormat || this.i18nFormat.handleAsObject, b2 = i2.count !== void 0 && !F(i2.count), x2 = e3.hasDefaultValue(i2), S2 = b2 ? this.pluralResolver.getSuffix(d2, i2.count, i2) : ``, C2 = i2.ordinal && b2 ? this.pluralResolver.getSuffix(d2, i2.count, { ordinal: false }) : ``, ee2 = b2 && !i2.ordinal && i2.count === 0, w2 = ee2 && i2[`defaultValue${this.options.pluralSeparator}zero`] || i2[`defaultValue${S2}`] || i2[`defaultValue${C2}`] || i2.defaultValue, T2 = m2;
|
|
1508
1508
|
y2 && !m2 && x2 && (T2 = w2);
|
|
1509
|
-
let te2 =
|
|
1509
|
+
let te2 = qr(T2), ne2 = Object.prototype.toString.apply(T2);
|
|
1510
1510
|
if (y2 && T2 && te2 && !_2.includes(ne2) && !(F(v2) && Array.isArray(T2))) {
|
|
1511
1511
|
if (!i2.returnObjects && !this.options.returnObjects) {
|
|
1512
1512
|
this.options.returnedObjectHandler || this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);
|
|
@@ -1517,7 +1517,7 @@ var qr = class e3 extends Br {
|
|
|
1517
1517
|
let e6 = Array.isArray(T2), t3 = e6 ? [] : {}, n3 = e6 ? g2 : h2;
|
|
1518
1518
|
for (let e7 in T2) if (Object.prototype.hasOwnProperty.call(T2, e7)) {
|
|
1519
1519
|
let r3 = `${n3}${o2}${e7}`;
|
|
1520
|
-
t3[e7] = x2 && !m2 ? this.translate(r3, { ...i2, defaultValue:
|
|
1520
|
+
t3[e7] = x2 && !m2 ? this.translate(r3, { ...i2, defaultValue: qr(w2) ? w2[e7] : void 0, joinArrays: false, ns: c2 }) : this.translate(r3, { ...i2, joinArrays: false, ns: c2 }), t3[e7] === r3 && (t3[e7] = T2[e7]);
|
|
1521
1521
|
}
|
|
1522
1522
|
m2 = t3;
|
|
1523
1523
|
}
|
|
@@ -1566,11 +1566,11 @@ var qr = class e3 extends Br {
|
|
|
1566
1566
|
!n2.lng && r2 && r2.res && (n2.lng = this.language || r2.usedLng), n2.nest !== false && (e6 = this.interpolator.nest(e6, (...e7) => i2?.[0] === e7[0] && !n2.context ? (this.logger.warn(`It seems you are nesting recursively key: ${e7[0]} in key: ${t2[0]}`), null) : this.translate(...e7, t2), n2)), n2.interpolation && this.interpolator.reset();
|
|
1567
1567
|
}
|
|
1568
1568
|
let a2 = n2.postProcess || this.options.postProcess, o2 = F(a2) ? [a2] : a2;
|
|
1569
|
-
return e6 != null && o2?.length && n2.applyPostProcessor !== false && (e6 =
|
|
1569
|
+
return e6 != null && o2?.length && n2.applyPostProcessor !== false && (e6 = Wr.handle(o2, e6, t2, this.options && this.options.postProcessPassResolved ? { i18nResolved: { ...r2, usedParams: this.getUsedParamsDetails(n2) }, ...n2 } : n2, this)), e6;
|
|
1570
1570
|
}
|
|
1571
1571
|
resolve(e6, t2 = {}) {
|
|
1572
1572
|
let n2, r2, i2, a2, o2;
|
|
1573
|
-
return F(e6) && (e6 = [e6]), Array.isArray(e6) && (e6 = e6.map((e7) => typeof e7 == `function` ?
|
|
1573
|
+
return F(e6) && (e6 = [e6]), Array.isArray(e6) && (e6 = e6.map((e7) => typeof e7 == `function` ? z(e7, { ...this.options, ...t2 }) : e7)), e6.forEach((e7) => {
|
|
1574
1574
|
if (this.isValidLookup(n2)) return;
|
|
1575
1575
|
let s2 = this.extractFromKey(e7, t2), c2 = s2.key;
|
|
1576
1576
|
r2 = c2;
|
|
@@ -1617,20 +1617,20 @@ var qr = class e3 extends Br {
|
|
|
1617
1617
|
return false;
|
|
1618
1618
|
}
|
|
1619
1619
|
};
|
|
1620
|
-
var
|
|
1620
|
+
var Yr = class {
|
|
1621
1621
|
constructor(e6) {
|
|
1622
|
-
this.options = e6, this.supportedLngs = this.options.supportedLngs || false, this.logger =
|
|
1622
|
+
this.options = e6, this.supportedLngs = this.options.supportedLngs || false, this.logger = R.create(`languageUtils`), this.resolveHierarchyCache = {};
|
|
1623
1623
|
}
|
|
1624
1624
|
clearCache() {
|
|
1625
1625
|
this.resolveHierarchyCache = {};
|
|
1626
1626
|
}
|
|
1627
1627
|
getScriptPartFromCode(e6) {
|
|
1628
|
-
if (e6 =
|
|
1628
|
+
if (e6 = L(e6), !e6 || !e6.includes(`-`)) return null;
|
|
1629
1629
|
let t2 = e6.split(`-`);
|
|
1630
1630
|
return t2.length === 2 || (t2.pop(), t2[t2.length - 1].toLowerCase() === `x`) ? null : this.formatLanguageCode(t2.join(`-`));
|
|
1631
1631
|
}
|
|
1632
1632
|
getLanguagePartFromCode(e6) {
|
|
1633
|
-
if (e6 =
|
|
1633
|
+
if (e6 = L(e6), !e6 || !e6.includes(`-`)) return e6;
|
|
1634
1634
|
let t2 = e6.split(`-`);
|
|
1635
1635
|
return this.formatLanguageCode(t2[0]);
|
|
1636
1636
|
}
|
|
@@ -1691,24 +1691,24 @@ var Jr = class {
|
|
|
1691
1691
|
}), s2 === null ? l2 : (this.resolveHierarchyCache[s2] = l2, l2.slice());
|
|
1692
1692
|
}
|
|
1693
1693
|
};
|
|
1694
|
-
var
|
|
1695
|
-
var
|
|
1696
|
-
var
|
|
1694
|
+
var Xr = { zero: 0, one: 1, two: 2, few: 3, many: 4, other: 5 };
|
|
1695
|
+
var Zr = { select: (e6) => e6 === 1 ? `one` : `other`, resolvedOptions: () => ({ pluralCategories: [`one`, `other`] }) };
|
|
1696
|
+
var Qr = class {
|
|
1697
1697
|
constructor(e6, t2 = {}) {
|
|
1698
|
-
this.languageUtils = e6, this.options = t2, this.logger =
|
|
1698
|
+
this.languageUtils = e6, this.options = t2, this.logger = R.create(`pluralResolver`), this.pluralRulesCache = {};
|
|
1699
1699
|
}
|
|
1700
1700
|
clearCache() {
|
|
1701
1701
|
this.pluralRulesCache = {};
|
|
1702
1702
|
}
|
|
1703
1703
|
getRule(e6, t2 = {}) {
|
|
1704
|
-
let n2 =
|
|
1704
|
+
let n2 = L(e6 === `dev` ? `en` : e6), r2 = t2.ordinal ? `ordinal` : `cardinal`, i2 = JSON.stringify({ cleanedCode: n2, type: r2 });
|
|
1705
1705
|
if (i2 in this.pluralRulesCache) return this.pluralRulesCache[i2];
|
|
1706
1706
|
let a2;
|
|
1707
1707
|
try {
|
|
1708
1708
|
a2 = new Intl.PluralRules(n2, { type: r2 });
|
|
1709
1709
|
} catch {
|
|
1710
|
-
if (typeof Intl > `u`) return this.logger.error(`No Intl support, please use an Intl polyfill!`),
|
|
1711
|
-
if (!e6.match(/-|_/)) return
|
|
1710
|
+
if (typeof Intl > `u`) return this.logger.error(`No Intl support, please use an Intl polyfill!`), Zr;
|
|
1711
|
+
if (!e6.match(/-|_/)) return Zr;
|
|
1712
1712
|
let n3 = this.languageUtils.getLanguagePartFromCode(e6);
|
|
1713
1713
|
a2 = this.getRule(n3, t2);
|
|
1714
1714
|
}
|
|
@@ -1723,26 +1723,26 @@ var Zr = class {
|
|
|
1723
1723
|
}
|
|
1724
1724
|
getSuffixes(e6, t2 = {}) {
|
|
1725
1725
|
let n2 = this.getRule(e6, t2);
|
|
1726
|
-
return n2 ||= this.getRule(`dev`, t2), n2 ? n2.resolvedOptions().pluralCategories.sort((e7, t3) =>
|
|
1726
|
+
return n2 ||= this.getRule(`dev`, t2), n2 ? n2.resolvedOptions().pluralCategories.sort((e7, t3) => Xr[e7] - Xr[t3]).map((e7) => `${this.options.prepend}${t2.ordinal ? `ordinal${this.options.prepend}` : ``}${e7}`) : [];
|
|
1727
1727
|
}
|
|
1728
1728
|
getSuffix(e6, t2, n2 = {}) {
|
|
1729
1729
|
let r2 = this.getRule(e6, n2);
|
|
1730
1730
|
return r2 ? `${this.options.prepend}${n2.ordinal ? `ordinal${this.options.prepend}` : ``}${r2.select(t2)}` : (this.logger.warn(`no plural rule found for: ${e6}`), this.getSuffix(`dev`, t2, n2));
|
|
1731
1731
|
}
|
|
1732
1732
|
};
|
|
1733
|
-
var
|
|
1734
|
-
let a2 =
|
|
1735
|
-
return !a2 && i2 && F(n2) && (a2 =
|
|
1733
|
+
var $r = (e6, t2, n2, r2 = `.`, i2 = true) => {
|
|
1734
|
+
let a2 = jr(e6, t2, n2);
|
|
1735
|
+
return !a2 && i2 && F(n2) && (a2 = zr(e6, n2, r2), a2 === void 0 && (a2 = zr(t2, n2, r2))), a2;
|
|
1736
1736
|
};
|
|
1737
|
-
var
|
|
1738
|
-
var
|
|
1737
|
+
var ei = (e6) => e6.replace(/\$/g, `$$$$`);
|
|
1738
|
+
var ti = class {
|
|
1739
1739
|
constructor(e6 = {}) {
|
|
1740
|
-
this.logger =
|
|
1740
|
+
this.logger = R.create(`interpolator`), this.options = e6, this.format = e6?.interpolation?.format || ((e7) => e7), this.init(e6);
|
|
1741
1741
|
}
|
|
1742
1742
|
init(e6 = {}) {
|
|
1743
1743
|
e6.interpolation ||= { escapeValue: true };
|
|
1744
1744
|
let { escape: t2, escapeValue: n2, useRawValueToEscape: r2, prefix: i2, prefixEscaped: a2, suffix: o2, suffixEscaped: s2, formatSeparator: c2, unescapeSuffix: l2, unescapePrefix: u2, nestingPrefix: d2, nestingPrefixEscaped: f2, nestingSuffix: p2, nestingSuffixEscaped: m2, nestingOptionsSeparator: h2, maxReplaces: g2, alwaysFormat: _2 } = e6.interpolation;
|
|
1745
|
-
this.escape = t2 === void 0 ?
|
|
1745
|
+
this.escape = t2 === void 0 ? Pr : t2, this.escapeValue = n2 === void 0 || n2, this.useRawValueToEscape = r2 !== void 0 && r2, this.prefix = i2 ? I(i2) : a2 || `{{`, this.suffix = o2 ? I(o2) : s2 || `}}`, this.formatSeparator = c2 || `,`, this.unescapePrefix = l2 ? `` : u2 ? I(u2) : `-`, this.unescapeSuffix = this.unescapePrefix ? `` : l2 ? I(l2) : ``, this.nestingPrefix = d2 ? I(d2) : f2 || I(`$t(`), this.nestingSuffix = p2 ? I(p2) : m2 || I(`)`), this.nestingOptionsSeparator = h2 || `,`, this.maxReplaces = g2 || 1e3, this.alwaysFormat = _2 !== void 0 && _2, this.resetRegExp();
|
|
1746
1746
|
}
|
|
1747
1747
|
reset() {
|
|
1748
1748
|
this.options && this.init(this.options);
|
|
@@ -1754,11 +1754,11 @@ var ei = class {
|
|
|
1754
1754
|
interpolate(e6, t2, n2, r2) {
|
|
1755
1755
|
let i2, a2, o2, s2 = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c2 = (e7) => {
|
|
1756
1756
|
if (!e7.includes(this.formatSeparator)) {
|
|
1757
|
-
let i4 =
|
|
1757
|
+
let i4 = $r(t2, s2, e7, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
1758
1758
|
return this.alwaysFormat ? this.format(i4, void 0, n2, { ...r2, ...t2, interpolationkey: e7 }) : i4;
|
|
1759
1759
|
}
|
|
1760
1760
|
let i3 = e7.split(this.formatSeparator), a3 = i3.shift().trim(), o3 = i3.join(this.formatSeparator).trim();
|
|
1761
|
-
return this.format(
|
|
1761
|
+
return this.format($r(t2, s2, a3, this.options.keySeparator, this.options.ignoreJSONStructure), o3, n2, { ...r2, ...t2, interpolationkey: a3 });
|
|
1762
1762
|
};
|
|
1763
1763
|
this.resetRegExp(), !this.escapeValue && typeof e6 == `string` && /\$t\([^)]*\{[^}]*\{\{/.test(e6) && this.logger.warn(`nesting options string contains interpolated variables with escapeValue: false \u2014 if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.`);
|
|
1764
1764
|
let l2 = r2?.missingInterpolationHandler || this.options.missingInterpolationHandler, u2 = r2?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : r2.interpolation.skipOnVariables;
|
|
@@ -1774,9 +1774,9 @@ var ei = class {
|
|
|
1774
1774
|
a2 = i2[0];
|
|
1775
1775
|
continue;
|
|
1776
1776
|
} else this.logger.warn(`missed to pass in variable ${n3} for interpolating ${e6}`), a2 = ``;
|
|
1777
|
-
} else !F(a2) && !this.useRawValueToEscape && (a2 =
|
|
1777
|
+
} else !F(a2) && !this.useRawValueToEscape && (a2 = Sr(a2));
|
|
1778
1778
|
let s3 = t3.safeValue(a2);
|
|
1779
|
-
if (e6 = e6.replace(i2[0],
|
|
1779
|
+
if (e6 = e6.replace(i2[0], ei(s3)), u2 ? (t3.regex.lastIndex += s3.length, t3.regex.lastIndex -= i2[0].length) : t3.regex.lastIndex = 0, o2++, o2 >= this.maxReplaces) break;
|
|
1780
1780
|
}
|
|
1781
1781
|
}), e6;
|
|
1782
1782
|
}
|
|
@@ -1784,7 +1784,7 @@ var ei = class {
|
|
|
1784
1784
|
let r2, i2, a2, o2 = (e7, t3) => {
|
|
1785
1785
|
let n3 = this.nestingOptionsSeparator;
|
|
1786
1786
|
if (!e7.includes(n3)) return e7;
|
|
1787
|
-
let r3 = e7.split(RegExp(`${
|
|
1787
|
+
let r3 = e7.split(RegExp(`${I(n3)}[ ]*{`)), i3 = `{${r3[1]}`;
|
|
1788
1788
|
e7 = r3[0], i3 = this.interpolate(i3, a2);
|
|
1789
1789
|
let o3 = i3.match(/'/g), s3 = i3.match(/"/g);
|
|
1790
1790
|
((o3?.length ?? 0) % 2 == 0 && !s3 || (s3?.length ?? 0) % 2 != 0) && (i3 = i3.replace(/'/g, `"`));
|
|
@@ -1800,12 +1800,12 @@ var ei = class {
|
|
|
1800
1800
|
a2 = { ...n2 }, a2 = a2.replace && !F(a2.replace) ? a2.replace : a2, a2.applyPostProcessor = false, delete a2.defaultValue;
|
|
1801
1801
|
let d2 = /{.*}/s.test(r2[1]) ? r2[1].lastIndexOf(`}`) + 1 : r2[1].indexOf(this.formatSeparator);
|
|
1802
1802
|
if (d2 !== -1 && (u2 = r2[1].slice(d2).split(this.formatSeparator).map((e7) => e7.trim()).filter(Boolean), r2[1] = r2[1].slice(0, d2)), i2 = t2(o2.call(this, r2[1].trim(), a2), a2), i2 && r2[0] === e6 && !F(i2)) return i2;
|
|
1803
|
-
F(i2) || (i2 =
|
|
1803
|
+
F(i2) || (i2 = Sr(i2)), i2 ||= (this.logger.warn(`missed to resolve ${r2[1]} for nesting ${e6}`), ``), u2.length && (i2 = u2.reduce((e7, t3) => this.format(e7, t3, n2.lng, { ...n2, interpolationkey: r2[1].trim() }), i2.trim())), c2 += e6.slice(l2, r2.index) + Sr(i2), l2 = s2.lastIndex, this.regexp.lastIndex = 0;
|
|
1804
1804
|
}
|
|
1805
1805
|
return l2 ? c2 + e6.slice(l2) : e6;
|
|
1806
1806
|
}
|
|
1807
1807
|
};
|
|
1808
|
-
var
|
|
1808
|
+
var ni = (e6) => {
|
|
1809
1809
|
let t2 = e6.toLowerCase().trim(), n2 = {};
|
|
1810
1810
|
if (e6.includes(`(`)) {
|
|
1811
1811
|
let r2 = e6.split(`(`);
|
|
@@ -1820,23 +1820,23 @@ var ti = (e6) => {
|
|
|
1820
1820
|
}
|
|
1821
1821
|
return { formatName: t2, formatOptions: n2 };
|
|
1822
1822
|
};
|
|
1823
|
-
var
|
|
1823
|
+
var ri = (e6) => {
|
|
1824
1824
|
let t2 = {};
|
|
1825
1825
|
return (n2, r2, i2) => {
|
|
1826
1826
|
let a2 = i2;
|
|
1827
1827
|
i2 && i2.interpolationkey && i2.formatParams && i2.formatParams[i2.interpolationkey] && i2[i2.interpolationkey] && (a2 = { ...a2, [i2.interpolationkey]: void 0 });
|
|
1828
1828
|
let o2 = r2 + JSON.stringify(a2), s2 = t2[o2];
|
|
1829
|
-
return s2 || (s2 = e6(
|
|
1829
|
+
return s2 || (s2 = e6(L(r2), i2), t2[o2] = s2), s2(n2);
|
|
1830
1830
|
};
|
|
1831
1831
|
};
|
|
1832
|
-
var
|
|
1833
|
-
var
|
|
1832
|
+
var ii = (e6) => (t2, n2, r2) => e6(L(n2), r2)(t2);
|
|
1833
|
+
var ai = class {
|
|
1834
1834
|
constructor(e6 = {}) {
|
|
1835
|
-
this.logger =
|
|
1835
|
+
this.logger = R.create(`formatter`), this.options = e6, this.init(e6);
|
|
1836
1836
|
}
|
|
1837
1837
|
init(e6, t2 = { interpolation: {} }) {
|
|
1838
1838
|
this.formatSeparator = t2.interpolation.formatSeparator || `,`;
|
|
1839
|
-
let n2 = t2.cacheInBuiltFormats ?
|
|
1839
|
+
let n2 = t2.cacheInBuiltFormats ? ri : ii;
|
|
1840
1840
|
this.formats = { number: n2((e7, t3) => {
|
|
1841
1841
|
let n3 = new Intl.NumberFormat(e7, { ...t3 });
|
|
1842
1842
|
return (e8) => n3.format(e8);
|
|
@@ -1858,7 +1858,7 @@ var ii = class {
|
|
|
1858
1858
|
this.formats[e6.toLowerCase().trim()] = t2;
|
|
1859
1859
|
}
|
|
1860
1860
|
addCached(e6, t2) {
|
|
1861
|
-
this.formats[e6.toLowerCase().trim()] =
|
|
1861
|
+
this.formats[e6.toLowerCase().trim()] = ri(t2);
|
|
1862
1862
|
}
|
|
1863
1863
|
format(e6, t2, n2, r2 = {}) {
|
|
1864
1864
|
if (!t2 || e6 == null) return e6;
|
|
@@ -1869,7 +1869,7 @@ var ii = class {
|
|
|
1869
1869
|
a2.push(t3);
|
|
1870
1870
|
}
|
|
1871
1871
|
return a2.reduce((e7, t3) => {
|
|
1872
|
-
let { formatName: i3, formatOptions: a3 } =
|
|
1872
|
+
let { formatName: i3, formatOptions: a3 } = ni(t3);
|
|
1873
1873
|
if (this.formats[i3]) {
|
|
1874
1874
|
let t4 = e7;
|
|
1875
1875
|
try {
|
|
@@ -1884,12 +1884,12 @@ var ii = class {
|
|
|
1884
1884
|
}, e6);
|
|
1885
1885
|
}
|
|
1886
1886
|
};
|
|
1887
|
-
var
|
|
1887
|
+
var oi = (e6, t2) => {
|
|
1888
1888
|
e6.pending[t2] !== void 0 && (delete e6.pending[t2], e6.pendingCount--);
|
|
1889
1889
|
};
|
|
1890
|
-
var
|
|
1890
|
+
var si = class extends Vr {
|
|
1891
1891
|
constructor(e6, t2, n2, r2 = {}) {
|
|
1892
|
-
super(), this.backend = e6, this.store = t2, this.services = n2, this.languageUtils = n2.languageUtils, this.options = r2, this.logger =
|
|
1892
|
+
super(), this.backend = e6, this.store = t2, this.services = n2, this.languageUtils = n2.languageUtils, this.options = r2, this.logger = R.create(`backendConnector`), this.waitingReads = [], this.maxParallelReads = r2.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = r2.maxRetries >= 0 ? r2.maxRetries : 5, this.retryTimeout = r2.retryTimeout >= 1 ? r2.retryTimeout : 350, this.state = {}, this.queue = [], this.backend?.init?.(n2, r2.backend, r2);
|
|
1893
1893
|
}
|
|
1894
1894
|
queueLoad(e6, t2, n2, r2) {
|
|
1895
1895
|
let i2 = {}, a2 = {}, o2 = {}, s2 = {};
|
|
@@ -1906,7 +1906,7 @@ var oi = class extends Br {
|
|
|
1906
1906
|
t2 && this.emit(`failedLoading`, i2, a2, t2), !t2 && n2 && this.store.addResourceBundle(i2, a2, n2, void 0, void 0, { skipCopy: true }), this.state[e6] = t2 ? -1 : 2, t2 && n2 && (this.state[e6] = 0);
|
|
1907
1907
|
let o2 = {};
|
|
1908
1908
|
this.queue.forEach((n3) => {
|
|
1909
|
-
|
|
1909
|
+
kr(n3.loaded, [i2], a2), oi(n3, e6), t2 && n3.errors.push(t2), n3.pendingCount === 0 && !n3.done && (Object.keys(n3.loaded).forEach((e7) => {
|
|
1910
1910
|
o2[e7] || (o2[e7] = {});
|
|
1911
1911
|
let t3 = n3.loaded[e7];
|
|
1912
1912
|
t3.length && t3.forEach((t4) => {
|
|
@@ -1978,7 +1978,7 @@ var oi = class extends Br {
|
|
|
1978
1978
|
}
|
|
1979
1979
|
}
|
|
1980
1980
|
};
|
|
1981
|
-
var
|
|
1981
|
+
var ci = () => ({ debug: false, initAsync: true, ns: [`translation`], defaultNS: [`translation`], fallbackLng: [`dev`], fallbackNS: false, supportedLngs: false, nonExplicitSupportedLngs: false, load: `all`, preload: false, keySeparator: `.`, nsSeparator: `:`, pluralSeparator: `_`, contextSeparator: `_`, enableSelector: false, partialBundledLanguages: false, saveMissing: false, updateMissing: false, saveMissingTo: `fallback`, saveMissingPlurals: true, missingKeyHandler: false, missingInterpolationHandler: false, postProcess: false, postProcessPassResolved: false, returnNull: false, returnEmptyString: true, returnObjects: false, joinArrays: false, returnedObjectHandler: false, parseMissingKeyHandler: false, appendNamespaceToMissingKey: false, appendNamespaceToCIMode: false, overloadTranslationOptionHandler: (e6) => {
|
|
1982
1982
|
let t2 = {};
|
|
1983
1983
|
if (typeof e6[1] == `object` && (t2 = e6[1]), F(e6[1]) && (t2.defaultValue = e6[1]), F(e6[2]) && (t2.tDescription = e6[2]), typeof e6[2] == `object` || typeof e6[3] == `object`) {
|
|
1984
1984
|
let n2 = e6[3] || e6[2];
|
|
@@ -1988,17 +1988,17 @@ var si = () => ({ debug: false, initAsync: true, ns: [`translation`], defaultNS:
|
|
|
1988
1988
|
}
|
|
1989
1989
|
return t2;
|
|
1990
1990
|
}, interpolation: { escapeValue: true, prefix: `{{`, suffix: `}}`, formatSeparator: `,`, unescapePrefix: `-`, nestingPrefix: `$t(`, nestingSuffix: `)`, nestingOptionsSeparator: `,`, maxReplaces: 1e3, skipOnVariables: true }, cacheInBuiltFormats: true });
|
|
1991
|
-
var
|
|
1992
|
-
var
|
|
1991
|
+
var li = (e6) => (F(e6.ns) && (e6.ns = [e6.ns]), F(e6.fallbackLng) && (e6.fallbackLng = [e6.fallbackLng]), F(e6.fallbackNS) && (e6.fallbackNS = [e6.fallbackNS]), e6.supportedLngs && !e6.supportedLngs.includes(`cimode`) && (e6.supportedLngs = e6.supportedLngs.concat([`cimode`])), e6);
|
|
1992
|
+
var ui = () => {
|
|
1993
1993
|
};
|
|
1994
|
-
var
|
|
1994
|
+
var di = (e6) => {
|
|
1995
1995
|
Object.getOwnPropertyNames(Object.getPrototypeOf(e6)).forEach((t2) => {
|
|
1996
1996
|
typeof e6[t2] == `function` && (e6[t2] = e6[t2].bind(e6));
|
|
1997
1997
|
});
|
|
1998
1998
|
};
|
|
1999
|
-
var
|
|
1999
|
+
var B = class e4 extends Vr {
|
|
2000
2000
|
constructor(e6 = {}, t2) {
|
|
2001
|
-
if (super(), this.options =
|
|
2001
|
+
if (super(), this.options = li(e6), this.services = {}, this.logger = R, this.modules = { external: [] }, di(this), t2 && !this.isInitialized && !e6.isClone) {
|
|
2002
2002
|
if (!this.options.initAsync) return this.init(e6, t2), this;
|
|
2003
2003
|
setTimeout(() => {
|
|
2004
2004
|
this.init(e6, t2);
|
|
@@ -2007,25 +2007,25 @@ var V = class e4 extends Br {
|
|
|
2007
2007
|
}
|
|
2008
2008
|
init(e6 = {}, t2) {
|
|
2009
2009
|
this.isInitializing = true, typeof e6 == `function` && (t2 = e6, e6 = {}), e6.defaultNS == null && e6.ns && (F(e6.ns) ? e6.defaultNS = e6.ns : e6.ns.includes(`translation`) || (e6.defaultNS = e6.ns[0]));
|
|
2010
|
-
let n2 =
|
|
2011
|
-
this.options = { ...n2, ...this.options, ...
|
|
2010
|
+
let n2 = ci();
|
|
2011
|
+
this.options = { ...n2, ...this.options, ...li(e6) }, this.options.interpolation = { ...n2.interpolation, ...this.options.interpolation }, e6.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e6.keySeparator), e6.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e6.nsSeparator), typeof this.options.overloadTranslationOptionHandler != `function` && (this.options.overloadTranslationOptionHandler = n2.overloadTranslationOptionHandler);
|
|
2012
2012
|
let r2 = (e7) => e7 ? typeof e7 == `function` ? new e7() : e7 : null;
|
|
2013
2013
|
if (!this.options.isClone) {
|
|
2014
|
-
this.modules.logger ?
|
|
2014
|
+
this.modules.logger ? R.init(r2(this.modules.logger), this.options) : R.init(null, this.options);
|
|
2015
2015
|
let e7;
|
|
2016
|
-
e7 = this.modules.formatter ? this.modules.formatter :
|
|
2017
|
-
let t3 = new
|
|
2018
|
-
this.store = new
|
|
2016
|
+
e7 = this.modules.formatter ? this.modules.formatter : ai;
|
|
2017
|
+
let t3 = new Yr(this.options);
|
|
2018
|
+
this.store = new Ur(this.options.resources, this.options);
|
|
2019
2019
|
let n3 = this.services;
|
|
2020
|
-
n3.logger =
|
|
2020
|
+
n3.logger = R, n3.resourceStore = this.store, n3.languageUtils = t3, n3.pluralResolver = new Qr(t3, { prepend: this.options.pluralSeparator }), e7 && (n3.formatter = r2(e7), n3.formatter.init && n3.formatter.init(n3, this.options), this.options.interpolation.format = n3.formatter.format.bind(n3.formatter)), n3.interpolator = new ti(this.options), n3.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, n3.backendConnector = new si(r2(this.modules.backend), n3.resourceStore, n3, this.options), n3.backendConnector.on(`*`, (e8, ...t4) => {
|
|
2021
2021
|
this.emit(e8, ...t4);
|
|
2022
|
-
}), this.modules.languageDetector && (n3.languageDetector = r2(this.modules.languageDetector), n3.languageDetector.init && n3.languageDetector.init(n3, this.options.detection, this.options)), this.modules.i18nFormat && (n3.i18nFormat = r2(this.modules.i18nFormat), n3.i18nFormat.init && n3.i18nFormat.init(this)), this.translator = new
|
|
2022
|
+
}), this.modules.languageDetector && (n3.languageDetector = r2(this.modules.languageDetector), n3.languageDetector.init && n3.languageDetector.init(n3, this.options.detection, this.options)), this.modules.i18nFormat && (n3.i18nFormat = r2(this.modules.i18nFormat), n3.i18nFormat.init && n3.i18nFormat.init(this)), this.translator = new Jr(this.services, this.options), this.translator.on(`*`, (e8, ...t4) => {
|
|
2023
2023
|
this.emit(e8, ...t4);
|
|
2024
2024
|
}), this.modules.external.forEach((e8) => {
|
|
2025
2025
|
e8.init && e8.init(this);
|
|
2026
2026
|
});
|
|
2027
2027
|
}
|
|
2028
|
-
if (this.format = this.options.interpolation.format, t2 ||=
|
|
2028
|
+
if (this.format = this.options.interpolation.format, t2 ||= ui, this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
2029
2029
|
let e7 = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
|
|
2030
2030
|
e7.length > 0 && e7[0] !== `dev` && (this.options.lng = e7[0]);
|
|
2031
2031
|
}
|
|
@@ -2034,7 +2034,7 @@ var V = class e4 extends Br {
|
|
|
2034
2034
|
}), [`addResource`, `addResources`, `addResourceBundle`, `removeResourceBundle`].forEach((e7) => {
|
|
2035
2035
|
this[e7] = (...t3) => (this.store[e7](...t3), this);
|
|
2036
2036
|
});
|
|
2037
|
-
let i2 =
|
|
2037
|
+
let i2 = xr(), a2 = () => {
|
|
2038
2038
|
let e7 = (e8, n3) => {
|
|
2039
2039
|
this.isInitializing = false, this.isInitialized && !this.initializedStoreOnce && this.logger.warn(`init: i18next is already initialized. You should call init just once!`), this.isInitialized = true, this.options.isClone || this.logger.log(`initialized`, this.options), this.emit(`initialized`, this.options), i2.resolve(n3), t2(e8, n3);
|
|
2040
2040
|
};
|
|
@@ -2043,7 +2043,7 @@ var V = class e4 extends Br {
|
|
|
2043
2043
|
};
|
|
2044
2044
|
return this.options.resources || !this.options.initAsync ? a2() : setTimeout(a2, 0), i2;
|
|
2045
2045
|
}
|
|
2046
|
-
loadResources(e6, t2 =
|
|
2046
|
+
loadResources(e6, t2 = ui) {
|
|
2047
2047
|
let n2 = t2, r2 = F(e6) ? e6 : this.language;
|
|
2048
2048
|
if (typeof e6 == `function` && (n2 = e6), !this.options.resources || this.options.partialBundledLanguages) {
|
|
2049
2049
|
if (r2?.toLowerCase() === `cimode` && (!this.options.preload || this.options.preload.length === 0)) return n2();
|
|
@@ -2058,15 +2058,15 @@ var V = class e4 extends Br {
|
|
|
2058
2058
|
} else n2(null);
|
|
2059
2059
|
}
|
|
2060
2060
|
reloadResources(e6, t2, n2) {
|
|
2061
|
-
let r2 =
|
|
2062
|
-
return typeof e6 == `function` && (n2 = e6, e6 = void 0), typeof t2 == `function` && (n2 = t2, t2 = void 0), e6 ||= this.languages, t2 ||= this.options.ns, n2 ||=
|
|
2061
|
+
let r2 = xr();
|
|
2062
|
+
return typeof e6 == `function` && (n2 = e6, e6 = void 0), typeof t2 == `function` && (n2 = t2, t2 = void 0), e6 ||= this.languages, t2 ||= this.options.ns, n2 ||= ui, this.services.backendConnector.reload(e6, t2, (e7) => {
|
|
2063
2063
|
r2.resolve(), n2(e7);
|
|
2064
2064
|
}), r2;
|
|
2065
2065
|
}
|
|
2066
2066
|
use(e6) {
|
|
2067
2067
|
if (!e6) throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);
|
|
2068
2068
|
if (!e6.type) throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);
|
|
2069
|
-
return e6.type === `backend` && (this.modules.backend = e6), (e6.type === `logger` || e6.log && e6.warn && e6.error) && (this.modules.logger = e6), e6.type === `languageDetector` && (this.modules.languageDetector = e6), e6.type === `i18nFormat` && (this.modules.i18nFormat = e6), e6.type === `postProcessor` &&
|
|
2069
|
+
return e6.type === `backend` && (this.modules.backend = e6), (e6.type === `logger` || e6.log && e6.warn && e6.error) && (this.modules.logger = e6), e6.type === `languageDetector` && (this.modules.languageDetector = e6), e6.type === `i18nFormat` && (this.modules.i18nFormat = e6), e6.type === `postProcessor` && Wr.addPostProcessor(e6), e6.type === `formatter` && (this.modules.formatter = e6), e6.type === `3rdParty` && this.modules.external.push(e6), this;
|
|
2070
2070
|
}
|
|
2071
2071
|
setResolvedLanguage(e6) {
|
|
2072
2072
|
if (e6 && this.languages && ![`cimode`, `dev`].includes(e6)) {
|
|
@@ -2082,7 +2082,7 @@ var V = class e4 extends Br {
|
|
|
2082
2082
|
}
|
|
2083
2083
|
changeLanguage(e6, t2) {
|
|
2084
2084
|
this.isLanguageChangingTo = e6;
|
|
2085
|
-
let n2 =
|
|
2085
|
+
let n2 = xr();
|
|
2086
2086
|
this.emit(`languageChanging`, e6);
|
|
2087
2087
|
let r2 = (e7) => {
|
|
2088
2088
|
this.language = e7, this.languages = this.services.languageUtils.toResolveHierarchy(e7), this.resolvedLanguage = void 0, this.setResolvedLanguage(e7);
|
|
@@ -2104,9 +2104,9 @@ var V = class e4 extends Br {
|
|
|
2104
2104
|
let s2 = o2.ns !== void 0 && o2.ns !== null;
|
|
2105
2105
|
o2.ns = o2.ns || a2.ns, o2.keyPrefix !== `` && (o2.keyPrefix = o2.keyPrefix || n2 || a2.keyPrefix);
|
|
2106
2106
|
let c2 = { ...this.options, ...o2 };
|
|
2107
|
-
Array.isArray(i2) && !s2 && (c2.ns = i2), typeof o2.keyPrefix == `function` && (o2.keyPrefix =
|
|
2107
|
+
Array.isArray(i2) && !s2 && (c2.ns = i2), typeof o2.keyPrefix == `function` && (o2.keyPrefix = z(o2.keyPrefix, c2));
|
|
2108
2108
|
let l2 = this.options.keySeparator || `.`, u2;
|
|
2109
|
-
return o2.keyPrefix && Array.isArray(e7) ? u2 = e7.map((e8) => (typeof e8 == `function` && (e8 =
|
|
2109
|
+
return o2.keyPrefix && Array.isArray(e7) ? u2 = e7.map((e8) => (typeof e8 == `function` && (e8 = z(e8, c2)), `${o2.keyPrefix}${l2}${e8}`)) : (typeof e7 == `function` && (e7 = z(e7, c2)), u2 = o2.keyPrefix ? `${o2.keyPrefix}${l2}${e7}` : e7), this.t(u2, o2);
|
|
2110
2110
|
};
|
|
2111
2111
|
return F(e6) ? a2.lng = e6 : a2.lngs = e6, a2.ns = t2, a2.keyPrefix = n2, a2;
|
|
2112
2112
|
}
|
|
@@ -2135,7 +2135,7 @@ var V = class e4 extends Br {
|
|
|
2135
2135
|
return !!(this.hasResourceBundle(n2, e6) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a2(n2, e6) && (!r2 || a2(i2, e6)));
|
|
2136
2136
|
}
|
|
2137
2137
|
loadNamespaces(e6, t2) {
|
|
2138
|
-
let n2 =
|
|
2138
|
+
let n2 = xr();
|
|
2139
2139
|
return this.options.ns ? (F(e6) && (e6 = [e6]), e6.forEach((e7) => {
|
|
2140
2140
|
this.options.ns.includes(e7) || this.options.ns.push(e7);
|
|
2141
2141
|
}), this.loadResources((e7) => {
|
|
@@ -2143,7 +2143,7 @@ var V = class e4 extends Br {
|
|
|
2143
2143
|
}), n2) : (t2 && t2(), Promise.resolve());
|
|
2144
2144
|
}
|
|
2145
2145
|
loadLanguages(e6, t2) {
|
|
2146
|
-
let n2 =
|
|
2146
|
+
let n2 = xr();
|
|
2147
2147
|
F(e6) && (e6 = [e6]);
|
|
2148
2148
|
let r2 = this.options.preload || [], i2 = e6.filter((e7) => !r2.includes(e7) && this.services.languageUtils.isSupportedCode(e7));
|
|
2149
2149
|
return i2.length ? (this.options.preload = r2.concat(i2), this.loadResources((e7) => {
|
|
@@ -2160,24 +2160,24 @@ var V = class e4 extends Br {
|
|
|
2160
2160
|
}
|
|
2161
2161
|
} catch {
|
|
2162
2162
|
}
|
|
2163
|
-
let t2 = `ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`), n2 = this.services?.languageUtils || new
|
|
2163
|
+
let t2 = `ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`), n2 = this.services?.languageUtils || new Yr(ci());
|
|
2164
2164
|
return e6.toLowerCase().indexOf(`-latn`) > 1 ? `ltr` : t2.includes(n2.getLanguagePartFromCode(e6)) || e6.toLowerCase().indexOf(`-arab`) > 1 ? `rtl` : `ltr`;
|
|
2165
2165
|
}
|
|
2166
2166
|
static createInstance(t2 = {}, n2) {
|
|
2167
2167
|
let r2 = new e4(t2, n2);
|
|
2168
2168
|
return r2.createInstance = e4.createInstance, r2;
|
|
2169
2169
|
}
|
|
2170
|
-
cloneInstance(t2 = {}, n2 =
|
|
2170
|
+
cloneInstance(t2 = {}, n2 = ui) {
|
|
2171
2171
|
let r2 = t2.forkResourceStore;
|
|
2172
2172
|
r2 && delete t2.forkResourceStore;
|
|
2173
2173
|
let i2 = { ...this.options, ...t2, isClone: true }, a2 = new e4(i2);
|
|
2174
2174
|
if ((t2.debug !== void 0 || t2.prefix !== void 0) && (a2.logger = a2.logger.clone(t2)), [`store`, `services`, `language`].forEach((e6) => {
|
|
2175
2175
|
a2[e6] = this[e6];
|
|
2176
|
-
}), a2.services = { ...this.services }, a2.services.utils = { hasLoadedNamespace: a2.hasLoadedNamespace.bind(a2) }, r2 && (a2.store = new
|
|
2177
|
-
let e6 = { ...
|
|
2178
|
-
a2.services.interpolator = new
|
|
2176
|
+
}), a2.services = { ...this.services }, a2.services.utils = { hasLoadedNamespace: a2.hasLoadedNamespace.bind(a2) }, r2 && (a2.store = new Ur(Object.keys(this.store.data).reduce((e6, t3) => (e6[t3] = { ...this.store.data[t3] }, e6[t3] = Object.keys(e6[t3]).reduce((n3, r3) => (n3[r3] = { ...e6[t3][r3] }, n3), e6[t3]), e6), {}), i2), a2.services.resourceStore = a2.store), t2.interpolation) {
|
|
2177
|
+
let e6 = { ...ci().interpolation, ...this.options.interpolation, ...t2.interpolation }, n3 = { ...i2, interpolation: e6 };
|
|
2178
|
+
a2.services.interpolator = new ti(n3);
|
|
2179
2179
|
}
|
|
2180
|
-
return a2.translator = new
|
|
2180
|
+
return a2.translator = new Jr(a2.services, i2), a2.translator.on(`*`, (e6, ...t3) => {
|
|
2181
2181
|
a2.emit(e6, ...t3);
|
|
2182
2182
|
}), a2.init(i2, n2), a2.translator.options = i2, a2.translator.backendConnector.services.utils = { hasLoadedNamespace: a2.hasLoadedNamespace.bind(a2) }, a2;
|
|
2183
2183
|
}
|
|
@@ -2185,9 +2185,9 @@ var V = class e4 extends Br {
|
|
|
2185
2185
|
return { options: this.options, store: this.store, language: this.language, languages: this.languages, resolvedLanguage: this.resolvedLanguage };
|
|
2186
2186
|
}
|
|
2187
2187
|
}.createInstance();
|
|
2188
|
-
|
|
2189
|
-
var
|
|
2190
|
-
let s2 = { lng: e6, fallbackLng: `en`, keySeparator: false, react: { useSuspense: r2, bindI18n: a2 }, _polyfill: { isLoading: false } }, c2 =
|
|
2188
|
+
B.createInstance, B.dir, B.init, B.loadResources, B.reloadResources, B.use, B.changeLanguage, B.getFixedT, B.t, B.exists, B.setDefaultNamespace, B.hasLoadedNamespace, B.loadNamespaces, B.loadLanguages;
|
|
2189
|
+
var fi = ({ locale: e6, asyncMessagesLoader: t2, messages: n2, useSuspense: r2 = false, disableAutoInit: i2 = false, bindI18n: a2 }, { icu: o2 } = {}) => {
|
|
2190
|
+
let s2 = { lng: e6, fallbackLng: `en`, keySeparator: false, react: { useSuspense: r2, bindI18n: a2 }, _polyfill: { isLoading: false } }, c2 = B.createInstance(i2 ? s2 : void 0);
|
|
2191
2191
|
return o2 && c2.use(o2), t2 && c2.use({ type: `backend`, read: async (e7, n3, r3) => {
|
|
2192
2192
|
try {
|
|
2193
2193
|
return r3(null, await t2(e7));
|
|
@@ -2196,8 +2196,8 @@ var di = ({ locale: e6, asyncMessagesLoader: t2, messages: n2, useSuspense: r2 =
|
|
|
2196
2196
|
}
|
|
2197
2197
|
} }), n2 && (s2.resources = { [e6]: { translation: n2 } }), i2 || c2.init(s2), c2;
|
|
2198
2198
|
};
|
|
2199
|
-
var
|
|
2200
|
-
function
|
|
2199
|
+
var pi = [`__proto__`, `constructor`, `prototype`];
|
|
2200
|
+
function mi(e6, t2, n2) {
|
|
2201
2201
|
function r2(e7) {
|
|
2202
2202
|
return e7 && e7.indexOf(`###`) > -1 ? e7.replace(/###/g, `.`) : e7;
|
|
2203
2203
|
}
|
|
@@ -2207,64 +2207,64 @@ function pi(e6, t2, n2) {
|
|
|
2207
2207
|
for (var a2 = typeof t2 == `string` ? t2.split(`.`) : [].concat(t2); a2.length > 1; ) {
|
|
2208
2208
|
if (i2()) return {};
|
|
2209
2209
|
var o2 = r2(a2.shift());
|
|
2210
|
-
if (
|
|
2210
|
+
if (pi.indexOf(o2) > -1) return {};
|
|
2211
2211
|
!e6[o2] && n2 && (e6[o2] = new n2()), e6 = e6[o2];
|
|
2212
2212
|
}
|
|
2213
2213
|
if (i2()) return {};
|
|
2214
2214
|
var s2 = r2(a2.shift());
|
|
2215
|
-
return
|
|
2215
|
+
return pi.indexOf(s2) > -1 ? {} : { obj: e6, k: s2 };
|
|
2216
2216
|
}
|
|
2217
|
-
function
|
|
2218
|
-
var r2 =
|
|
2217
|
+
function hi(e6, t2, n2) {
|
|
2218
|
+
var r2 = mi(e6, t2, Object), i2 = r2.obj, a2 = r2.k;
|
|
2219
2219
|
i2 !== void 0 && (i2[a2] = n2);
|
|
2220
2220
|
}
|
|
2221
|
-
function
|
|
2222
|
-
var n2 =
|
|
2221
|
+
function gi(e6, t2) {
|
|
2222
|
+
var n2 = mi(e6, t2), r2 = n2.obj, i2 = n2.k;
|
|
2223
2223
|
if (r2) return r2[i2];
|
|
2224
2224
|
}
|
|
2225
|
-
var
|
|
2226
|
-
var
|
|
2227
|
-
var
|
|
2228
|
-
function
|
|
2229
|
-
return
|
|
2225
|
+
var _i = [];
|
|
2226
|
+
var vi = _i.forEach;
|
|
2227
|
+
var yi = _i.slice;
|
|
2228
|
+
function bi(e6) {
|
|
2229
|
+
return vi.call(yi.call(arguments, 1), function(t2) {
|
|
2230
2230
|
if (t2) for (var n2 = 0, r2 = Object.keys(t2); n2 < r2.length; n2++) {
|
|
2231
2231
|
var i2 = r2[n2];
|
|
2232
|
-
|
|
2232
|
+
pi.indexOf(i2) > -1 || e6[i2] === void 0 && (e6[i2] = t2[i2]);
|
|
2233
2233
|
}
|
|
2234
2234
|
}), e6;
|
|
2235
2235
|
}
|
|
2236
|
-
function
|
|
2237
|
-
let n2 = t2 && t2.cache ? t2.cache :
|
|
2238
|
-
return (t2 && t2.strategy ? t2.strategy :
|
|
2236
|
+
function xi(e6, t2) {
|
|
2237
|
+
let n2 = t2 && t2.cache ? t2.cache : ji, r2 = t2 && t2.serializer ? t2.serializer : ki;
|
|
2238
|
+
return (t2 && t2.strategy ? t2.strategy : Ei)(e6, { cache: n2, serializer: r2 });
|
|
2239
2239
|
}
|
|
2240
|
-
function
|
|
2240
|
+
function Si(e6) {
|
|
2241
2241
|
return e6 == null || typeof e6 == `number` || typeof e6 == `boolean`;
|
|
2242
2242
|
}
|
|
2243
|
-
function
|
|
2244
|
-
let i2 =
|
|
2243
|
+
function Ci(e6, t2, n2, r2) {
|
|
2244
|
+
let i2 = Si(r2) ? r2 : n2(r2), a2 = t2.get(i2);
|
|
2245
2245
|
return a2 === void 0 && (a2 = e6.call(this, r2), t2.set(i2, a2)), a2;
|
|
2246
2246
|
}
|
|
2247
|
-
function
|
|
2247
|
+
function wi(e6, t2, n2) {
|
|
2248
2248
|
let r2 = Array.prototype.slice.call(arguments, 3), i2 = n2(r2), a2 = t2.get(i2);
|
|
2249
2249
|
return a2 === void 0 && (a2 = e6.apply(this, r2), t2.set(i2, a2)), a2;
|
|
2250
2250
|
}
|
|
2251
|
-
function
|
|
2251
|
+
function Ti(e6, t2, n2, r2, i2) {
|
|
2252
2252
|
return n2.bind(t2, e6, r2, i2);
|
|
2253
2253
|
}
|
|
2254
|
-
function Ti(e6, t2) {
|
|
2255
|
-
let n2 = e6.length === 1 ? Si : Ci;
|
|
2256
|
-
return wi(e6, this, n2, t2.cache.create(), t2.serializer);
|
|
2257
|
-
}
|
|
2258
2254
|
function Ei(e6, t2) {
|
|
2259
|
-
|
|
2255
|
+
let n2 = e6.length === 1 ? Ci : wi;
|
|
2256
|
+
return Ti(e6, this, n2, t2.cache.create(), t2.serializer);
|
|
2260
2257
|
}
|
|
2261
2258
|
function Di(e6, t2) {
|
|
2262
|
-
return
|
|
2259
|
+
return Ti(e6, this, wi, t2.cache.create(), t2.serializer);
|
|
2263
2260
|
}
|
|
2264
|
-
|
|
2261
|
+
function Oi(e6, t2) {
|
|
2262
|
+
return Ti(e6, this, Ci, t2.cache.create(), t2.serializer);
|
|
2263
|
+
}
|
|
2264
|
+
var ki = function() {
|
|
2265
2265
|
return JSON.stringify(arguments);
|
|
2266
2266
|
};
|
|
2267
|
-
var
|
|
2267
|
+
var Ai = class {
|
|
2268
2268
|
constructor() {
|
|
2269
2269
|
this.cache = /* @__PURE__ */ Object.create(null);
|
|
2270
2270
|
}
|
|
@@ -2275,14 +2275,14 @@ var ki = class {
|
|
|
2275
2275
|
this.cache[e6] = t2;
|
|
2276
2276
|
}
|
|
2277
2277
|
};
|
|
2278
|
-
var
|
|
2279
|
-
return new
|
|
2278
|
+
var ji = { create: function() {
|
|
2279
|
+
return new Ai();
|
|
2280
2280
|
} };
|
|
2281
|
-
var
|
|
2282
|
-
var
|
|
2283
|
-
function
|
|
2281
|
+
var Mi = { variadic: Di, monadic: Oi };
|
|
2282
|
+
var Ni = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
2283
|
+
function Pi(e6) {
|
|
2284
2284
|
let t2 = {};
|
|
2285
|
-
return e6.replace(
|
|
2285
|
+
return e6.replace(Ni, (e7) => {
|
|
2286
2286
|
let n2 = e7.length;
|
|
2287
2287
|
switch (e7[0]) {
|
|
2288
2288
|
case `G`:
|
|
@@ -2369,10 +2369,10 @@ function Ni(e6) {
|
|
|
2369
2369
|
return ``;
|
|
2370
2370
|
}), t2;
|
|
2371
2371
|
}
|
|
2372
|
-
var
|
|
2373
|
-
function
|
|
2372
|
+
var Fi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
2373
|
+
function Ii(e6) {
|
|
2374
2374
|
if (e6.length === 0) throw Error(`Number skeleton cannot be empty`);
|
|
2375
|
-
let t2 = e6.split(
|
|
2375
|
+
let t2 = e6.split(Fi).filter((e7) => e7.length > 0), n2 = [];
|
|
2376
2376
|
for (let e7 of t2) {
|
|
2377
2377
|
let t3 = e7.split(`/`);
|
|
2378
2378
|
if (t3.length === 0) throw Error(`Invalid number skeleton`);
|
|
@@ -2382,20 +2382,20 @@ function Fi(e6) {
|
|
|
2382
2382
|
}
|
|
2383
2383
|
return n2;
|
|
2384
2384
|
}
|
|
2385
|
-
function
|
|
2385
|
+
function Li(e6) {
|
|
2386
2386
|
return e6.replace(/^(.*?)-/, ``);
|
|
2387
2387
|
}
|
|
2388
|
-
var
|
|
2389
|
-
var
|
|
2390
|
-
var
|
|
2391
|
-
var
|
|
2392
|
-
function
|
|
2388
|
+
var Ri = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g;
|
|
2389
|
+
var zi = /^(@+)?(\+|#+)?[rs]?$/g;
|
|
2390
|
+
var Bi = /(\*)(0+)|(#+)(0+)|(0+)/g;
|
|
2391
|
+
var Vi = /^(0+)$/;
|
|
2392
|
+
function Hi(e6) {
|
|
2393
2393
|
let t2 = {};
|
|
2394
|
-
return e6[e6.length - 1] === `r` ? t2.roundingPriority = `morePrecision` : e6[e6.length - 1] === `s` && (t2.roundingPriority = `lessPrecision`), e6.replace(
|
|
2394
|
+
return e6[e6.length - 1] === `r` ? t2.roundingPriority = `morePrecision` : e6[e6.length - 1] === `s` && (t2.roundingPriority = `lessPrecision`), e6.replace(zi, function(e7, n2, r2) {
|
|
2395
2395
|
return typeof r2 == `string` ? r2 === `+` ? t2.minimumSignificantDigits = n2.length : n2[0] === `#` ? t2.maximumSignificantDigits = n2.length : (t2.minimumSignificantDigits = n2.length, t2.maximumSignificantDigits = n2.length + (typeof r2 == `string` ? r2.length : 0)) : (t2.minimumSignificantDigits = n2.length, t2.maximumSignificantDigits = n2.length), ``;
|
|
2396
2396
|
}), t2;
|
|
2397
2397
|
}
|
|
2398
|
-
function
|
|
2398
|
+
function Ui(e6) {
|
|
2399
2399
|
switch (e6) {
|
|
2400
2400
|
case `sign-auto`:
|
|
2401
2401
|
return { signDisplay: `auto` };
|
|
@@ -2419,19 +2419,19 @@ function Hi(e6) {
|
|
|
2419
2419
|
return { signDisplay: `never` };
|
|
2420
2420
|
}
|
|
2421
2421
|
}
|
|
2422
|
-
function
|
|
2422
|
+
function Wi(e6) {
|
|
2423
2423
|
let t2;
|
|
2424
2424
|
if (e6[0] === `E` && e6[1] === `E` ? (t2 = { notation: `engineering` }, e6 = e6.slice(2)) : e6[0] === `E` && (t2 = { notation: `scientific` }, e6 = e6.slice(1)), t2) {
|
|
2425
2425
|
let n2 = e6.slice(0, 2);
|
|
2426
|
-
if (n2 === `+!` ? (t2.signDisplay = `always`, e6 = e6.slice(2)) : n2 === `+?` && (t2.signDisplay = `exceptZero`, e6 = e6.slice(2)), !
|
|
2426
|
+
if (n2 === `+!` ? (t2.signDisplay = `always`, e6 = e6.slice(2)) : n2 === `+?` && (t2.signDisplay = `exceptZero`, e6 = e6.slice(2)), !Vi.test(e6)) throw Error(`Malformed concise eng/scientific notation`);
|
|
2427
2427
|
t2.minimumIntegerDigits = e6.length;
|
|
2428
2428
|
}
|
|
2429
2429
|
return t2;
|
|
2430
2430
|
}
|
|
2431
|
-
function Wi(e6) {
|
|
2432
|
-
return Hi(e6) || {};
|
|
2433
|
-
}
|
|
2434
2431
|
function Gi(e6) {
|
|
2432
|
+
return Ui(e6) || {};
|
|
2433
|
+
}
|
|
2434
|
+
function Ki(e6) {
|
|
2435
2435
|
let t2 = {};
|
|
2436
2436
|
for (let n2 of e6) {
|
|
2437
2437
|
switch (n2.stem) {
|
|
@@ -2455,7 +2455,7 @@ function Gi(e6) {
|
|
|
2455
2455
|
continue;
|
|
2456
2456
|
case `measure-unit`:
|
|
2457
2457
|
case `unit`:
|
|
2458
|
-
t2.style = `unit`, t2.unit =
|
|
2458
|
+
t2.style = `unit`, t2.unit = Li(n2.options[0]);
|
|
2459
2459
|
continue;
|
|
2460
2460
|
case `compact-short`:
|
|
2461
2461
|
case `K`:
|
|
@@ -2466,10 +2466,10 @@ function Gi(e6) {
|
|
|
2466
2466
|
t2.notation = `compact`, t2.compactDisplay = `long`;
|
|
2467
2467
|
continue;
|
|
2468
2468
|
case `scientific`:
|
|
2469
|
-
t2 = { ...t2, notation: `scientific`, ...n2.options.reduce((e8, t3) => ({ ...e8, ...
|
|
2469
|
+
t2 = { ...t2, notation: `scientific`, ...n2.options.reduce((e8, t3) => ({ ...e8, ...Gi(t3) }), {}) };
|
|
2470
2470
|
continue;
|
|
2471
2471
|
case `engineering`:
|
|
2472
|
-
t2 = { ...t2, notation: `engineering`, ...n2.options.reduce((e8, t3) => ({ ...e8, ...
|
|
2472
|
+
t2 = { ...t2, notation: `engineering`, ...n2.options.reduce((e8, t3) => ({ ...e8, ...Gi(t3) }), {}) };
|
|
2473
2473
|
continue;
|
|
2474
2474
|
case `notation-simple`:
|
|
2475
2475
|
t2.notation = `standard`;
|
|
@@ -2512,7 +2512,7 @@ function Gi(e6) {
|
|
|
2512
2512
|
continue;
|
|
2513
2513
|
case `integer-width`:
|
|
2514
2514
|
if (n2.options.length > 1) throw RangeError(`integer-width stems only accept a single optional option`);
|
|
2515
|
-
n2.options[0].replace(
|
|
2515
|
+
n2.options[0].replace(Bi, function(e8, n3, r3, i2, a2, o2) {
|
|
2516
2516
|
if (n3) t2.minimumIntegerDigits = r3.length;
|
|
2517
2517
|
else if (i2 && a2) throw Error(`We currently do not support maximum integer digits`);
|
|
2518
2518
|
else if (o2) throw Error(`We currently do not support exact integer digits`);
|
|
@@ -2520,83 +2520,83 @@ function Gi(e6) {
|
|
|
2520
2520
|
});
|
|
2521
2521
|
continue;
|
|
2522
2522
|
}
|
|
2523
|
-
if (
|
|
2523
|
+
if (Vi.test(n2.stem)) {
|
|
2524
2524
|
t2.minimumIntegerDigits = n2.stem.length;
|
|
2525
2525
|
continue;
|
|
2526
2526
|
}
|
|
2527
|
-
if (
|
|
2527
|
+
if (Ri.test(n2.stem)) {
|
|
2528
2528
|
if (n2.options.length > 1) throw RangeError(`Fraction-precision stems only accept a single optional option`);
|
|
2529
|
-
n2.stem.replace(
|
|
2529
|
+
n2.stem.replace(Ri, function(e9, n3, r3, i2, a2, o2) {
|
|
2530
2530
|
return r3 === `*` ? t2.minimumFractionDigits = n3.length : i2 && i2[0] === `#` ? t2.maximumFractionDigits = i2.length : a2 && o2 ? (t2.minimumFractionDigits = a2.length, t2.maximumFractionDigits = a2.length + o2.length) : (t2.minimumFractionDigits = n3.length, t2.maximumFractionDigits = n3.length), ``;
|
|
2531
2531
|
});
|
|
2532
2532
|
let e8 = n2.options[0];
|
|
2533
|
-
e8 === `w` ? t2 = { ...t2, trailingZeroDisplay: `stripIfInteger` } : e8 && (t2 = { ...t2, ...
|
|
2533
|
+
e8 === `w` ? t2 = { ...t2, trailingZeroDisplay: `stripIfInteger` } : e8 && (t2 = { ...t2, ...Hi(e8) });
|
|
2534
2534
|
continue;
|
|
2535
2535
|
}
|
|
2536
|
-
if (
|
|
2537
|
-
t2 = { ...t2, ...
|
|
2536
|
+
if (zi.test(n2.stem)) {
|
|
2537
|
+
t2 = { ...t2, ...Hi(n2.stem) };
|
|
2538
2538
|
continue;
|
|
2539
2539
|
}
|
|
2540
|
-
let e7 =
|
|
2540
|
+
let e7 = Ui(n2.stem);
|
|
2541
2541
|
e7 && (t2 = { ...t2, ...e7 });
|
|
2542
|
-
let r2 =
|
|
2542
|
+
let r2 = Wi(n2.stem);
|
|
2543
2543
|
r2 && (t2 = { ...t2, ...r2 });
|
|
2544
2544
|
}
|
|
2545
2545
|
return t2;
|
|
2546
2546
|
}
|
|
2547
|
-
var
|
|
2547
|
+
var qi = function(e6) {
|
|
2548
2548
|
return e6[e6.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = `EXPECT_ARGUMENT_CLOSING_BRACE`, e6[e6.EMPTY_ARGUMENT = 2] = `EMPTY_ARGUMENT`, e6[e6.MALFORMED_ARGUMENT = 3] = `MALFORMED_ARGUMENT`, e6[e6.EXPECT_ARGUMENT_TYPE = 4] = `EXPECT_ARGUMENT_TYPE`, e6[e6.INVALID_ARGUMENT_TYPE = 5] = `INVALID_ARGUMENT_TYPE`, e6[e6.EXPECT_ARGUMENT_STYLE = 6] = `EXPECT_ARGUMENT_STYLE`, e6[e6.INVALID_NUMBER_SKELETON = 7] = `INVALID_NUMBER_SKELETON`, e6[e6.INVALID_DATE_TIME_SKELETON = 8] = `INVALID_DATE_TIME_SKELETON`, e6[e6.EXPECT_NUMBER_SKELETON = 9] = `EXPECT_NUMBER_SKELETON`, e6[e6.EXPECT_DATE_TIME_SKELETON = 10] = `EXPECT_DATE_TIME_SKELETON`, e6[e6.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = `UNCLOSED_QUOTE_IN_ARGUMENT_STYLE`, e6[e6.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = `EXPECT_SELECT_ARGUMENT_OPTIONS`, e6[e6.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = `EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE`, e6[e6.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = `INVALID_PLURAL_ARGUMENT_OFFSET_VALUE`, e6[e6.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = `EXPECT_SELECT_ARGUMENT_SELECTOR`, e6[e6.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = `EXPECT_PLURAL_ARGUMENT_SELECTOR`, e6[e6.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = `EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT`, e6[e6.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = `EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT`, e6[e6.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = `INVALID_PLURAL_ARGUMENT_SELECTOR`, e6[e6.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = `DUPLICATE_PLURAL_ARGUMENT_SELECTOR`, e6[e6.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = `DUPLICATE_SELECT_ARGUMENT_SELECTOR`, e6[e6.MISSING_OTHER_CLAUSE = 22] = `MISSING_OTHER_CLAUSE`, e6[e6.INVALID_TAG = 23] = `INVALID_TAG`, e6[e6.INVALID_TAG_NAME = 25] = `INVALID_TAG_NAME`, e6[e6.UNMATCHED_CLOSING_TAG = 26] = `UNMATCHED_CLOSING_TAG`, e6[e6.UNCLOSED_TAG = 27] = `UNCLOSED_TAG`, e6;
|
|
2549
2549
|
}({});
|
|
2550
|
-
function
|
|
2550
|
+
function Ji(e6) {
|
|
2551
2551
|
return e6.type === 0;
|
|
2552
2552
|
}
|
|
2553
|
-
function
|
|
2553
|
+
function Yi(e6) {
|
|
2554
2554
|
return e6.type === 1;
|
|
2555
2555
|
}
|
|
2556
|
-
function
|
|
2556
|
+
function Xi(e6) {
|
|
2557
2557
|
return e6.type === 2;
|
|
2558
2558
|
}
|
|
2559
|
-
function
|
|
2559
|
+
function Zi(e6) {
|
|
2560
2560
|
return e6.type === 3;
|
|
2561
2561
|
}
|
|
2562
|
-
function
|
|
2562
|
+
function Qi(e6) {
|
|
2563
2563
|
return e6.type === 4;
|
|
2564
2564
|
}
|
|
2565
|
-
function
|
|
2565
|
+
function $i(e6) {
|
|
2566
2566
|
return e6.type === 5;
|
|
2567
2567
|
}
|
|
2568
|
-
function
|
|
2568
|
+
function ea(e6) {
|
|
2569
2569
|
return e6.type === 6;
|
|
2570
2570
|
}
|
|
2571
|
-
function
|
|
2571
|
+
function ta(e6) {
|
|
2572
2572
|
return e6.type === 7;
|
|
2573
2573
|
}
|
|
2574
|
-
function
|
|
2574
|
+
function na(e6) {
|
|
2575
2575
|
return e6.type === 8;
|
|
2576
2576
|
}
|
|
2577
|
-
function
|
|
2577
|
+
function ra(e6) {
|
|
2578
2578
|
return !!(e6 && typeof e6 == `object` && e6.type === 0);
|
|
2579
2579
|
}
|
|
2580
|
-
function
|
|
2580
|
+
function ia(e6) {
|
|
2581
2581
|
return !!(e6 && typeof e6 == `object` && e6.type === 1);
|
|
2582
2582
|
}
|
|
2583
|
-
var
|
|
2584
|
-
var
|
|
2585
|
-
function
|
|
2583
|
+
var aa = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
|
|
2584
|
+
var V = { "001": [`H`, `h`], 419: [`h`, `H`, `hB`, `hb`], AC: [`H`, `h`, `hb`, `hB`], AD: [`H`, `hB`], AE: [`h`, `hB`, `hb`, `H`], AF: [`H`, `hb`, `hB`, `h`], AG: [`h`, `hb`, `H`, `hB`], AI: [`H`, `h`, `hb`, `hB`], AL: [`h`, `H`, `hB`], AM: [`H`, `hB`], AO: [`H`, `hB`], AR: [`h`, `H`, `hB`, `hb`], AS: [`h`, `H`], AT: [`H`, `hB`], AU: [`h`, `hb`, `H`, `hB`], AW: [`H`, `hB`], AX: [`H`], AZ: [`H`, `hB`, `h`], BA: [`H`, `hB`, `h`], BB: [`h`, `hb`, `H`, `hB`], BD: [`h`, `hB`, `H`], BE: [`H`, `hB`], BF: [`H`, `hB`], BG: [`H`, `hB`, `h`], BH: [`h`, `hB`, `hb`, `H`], BI: [`H`, `h`], BJ: [`H`, `hB`], BL: [`H`, `hB`], BM: [`h`, `hb`, `H`, `hB`], BN: [`hb`, `hB`, `h`, `H`], BO: [`h`, `H`, `hB`, `hb`], BQ: [`H`], BR: [`H`, `hB`], BS: [`h`, `hb`, `H`, `hB`], BT: [`h`, `H`], BW: [`H`, `h`, `hb`, `hB`], BY: [`H`, `h`], BZ: [`H`, `h`, `hb`, `hB`], CA: [`h`, `hb`, `H`, `hB`], CC: [`H`, `h`, `hb`, `hB`], CD: [`hB`, `H`], CF: [`H`, `h`, `hB`], CG: [`H`, `hB`], CH: [`H`, `hB`, `h`], CI: [`H`, `hB`], CK: [`H`, `h`, `hb`, `hB`], CL: [`h`, `H`, `hB`, `hb`], CM: [`H`, `h`, `hB`], CN: [`H`, `hB`, `hb`, `h`], CO: [`h`, `H`, `hB`, `hb`], CP: [`H`], CR: [`h`, `H`, `hB`, `hb`], CU: [`h`, `H`, `hB`, `hb`], CV: [`H`, `hB`], CW: [`H`, `hB`], CX: [`H`, `h`, `hb`, `hB`], CY: [`h`, `H`, `hb`, `hB`], CZ: [`H`], DE: [`H`, `hB`], DG: [`H`, `h`, `hb`, `hB`], DJ: [`h`, `H`], DK: [`H`], DM: [`h`, `hb`, `H`, `hB`], DO: [`h`, `H`, `hB`, `hb`], DZ: [`h`, `hB`, `hb`, `H`], EA: [`H`, `h`, `hB`, `hb`], EC: [`h`, `H`, `hB`, `hb`], EE: [`H`, `hB`], EG: [`h`, `hB`, `hb`, `H`], EH: [`h`, `hB`, `hb`, `H`], ER: [`h`, `H`], ES: [`H`, `hB`, `h`, `hb`], ET: [`hB`, `hb`, `h`, `H`], FI: [`H`], FJ: [`h`, `hb`, `H`, `hB`], FK: [`H`, `h`, `hb`, `hB`], FM: [`h`, `hb`, `H`, `hB`], FO: [`H`, `h`], FR: [`H`, `hB`], GA: [`H`, `hB`], GB: [`H`, `h`, `hb`, `hB`], GD: [`h`, `hb`, `H`, `hB`], GE: [`H`, `hB`, `h`], GF: [`H`, `hB`], GG: [`H`, `h`, `hb`, `hB`], GH: [`h`, `H`], GI: [`H`, `h`, `hb`, `hB`], GL: [`H`, `h`], GM: [`h`, `hb`, `H`, `hB`], GN: [`H`, `hB`], GP: [`H`, `hB`], GQ: [`H`, `hB`, `h`, `hb`], GR: [`h`, `H`, `hb`, `hB`], GS: [`H`, `h`, `hb`, `hB`], GT: [`h`, `H`, `hB`, `hb`], GU: [`h`, `hb`, `H`, `hB`], GW: [`H`, `hB`], GY: [`h`, `hb`, `H`, `hB`], HK: [`h`, `hB`, `hb`, `H`], HN: [`h`, `H`, `hB`, `hb`], HR: [`H`, `hB`], HU: [`H`, `h`], IC: [`H`, `h`, `hB`, `hb`], ID: [`H`], IE: [`H`, `h`, `hb`, `hB`], IL: [`H`, `hB`], IM: [`H`, `h`, `hb`, `hB`], IN: [`h`, `H`], IO: [`H`, `h`, `hb`, `hB`], IQ: [`h`, `hB`, `hb`, `H`], IR: [`hB`, `H`], IS: [`H`], IT: [`H`, `hB`], JE: [`H`, `h`, `hb`, `hB`], JM: [`h`, `hb`, `H`, `hB`], JO: [`h`, `hB`, `hb`, `H`], JP: [`H`, `K`, `h`], KE: [`hB`, `hb`, `H`, `h`], KG: [`H`, `h`, `hB`, `hb`], KH: [`hB`, `h`, `H`, `hb`], KI: [`h`, `hb`, `H`, `hB`], KM: [`H`, `h`, `hB`, `hb`], KN: [`h`, `hb`, `H`, `hB`], KP: [`h`, `H`, `hB`, `hb`], KR: [`h`, `H`, `hB`, `hb`], KW: [`h`, `hB`, `hb`, `H`], KY: [`h`, `hb`, `H`, `hB`], KZ: [`H`, `hB`], LA: [`H`, `hb`, `hB`, `h`], LB: [`h`, `hB`, `hb`, `H`], LC: [`h`, `hb`, `H`, `hB`], LI: [`H`, `hB`, `h`], LK: [`H`, `h`, `hB`, `hb`], LR: [`h`, `hb`, `H`, `hB`], LS: [`h`, `H`], LT: [`H`, `h`, `hb`, `hB`], LU: [`H`, `h`, `hB`], LV: [`H`, `hB`, `hb`, `h`], LY: [`h`, `hB`, `hb`, `H`], MA: [`H`, `h`, `hB`, `hb`], MC: [`H`, `hB`], MD: [`H`, `hB`], ME: [`H`, `hB`, `h`], MF: [`H`, `hB`], MG: [`H`, `h`], MH: [`h`, `hb`, `H`, `hB`], MK: [`H`, `h`, `hb`, `hB`], ML: [`H`], MM: [`hB`, `hb`, `H`, `h`], MN: [`H`, `h`, `hb`, `hB`], MO: [`h`, `hB`, `hb`, `H`], MP: [`h`, `hb`, `H`, `hB`], MQ: [`H`, `hB`], MR: [`h`, `hB`, `hb`, `H`], MS: [`H`, `h`, `hb`, `hB`], MT: [`H`, `h`], MU: [`H`, `h`], MV: [`H`, `h`], MW: [`h`, `hb`, `H`, `hB`], MX: [`h`, `H`, `hB`, `hb`], MY: [`hb`, `hB`, `h`, `H`], MZ: [`H`, `hB`], NA: [`h`, `H`, `hB`, `hb`], NC: [`H`, `hB`], NE: [`H`], NF: [`H`, `h`, `hb`, `hB`], NG: [`H`, `h`, `hb`, `hB`], NI: [`h`, `H`, `hB`, `hb`], NL: [`H`, `hB`], NO: [`H`, `h`], NP: [`H`, `h`, `hB`], NR: [`H`, `h`, `hb`, `hB`], NU: [`H`, `h`, `hb`, `hB`], NZ: [`h`, `hb`, `H`, `hB`], OM: [`h`, `hB`, `hb`, `H`], PA: [`h`, `H`, `hB`, `hb`], PE: [`h`, `H`, `hB`, `hb`], PF: [`H`, `h`, `hB`], PG: [`h`, `H`], PH: [`h`, `hB`, `hb`, `H`], PK: [`h`, `hB`, `H`], PL: [`H`, `h`], PM: [`H`, `hB`], PN: [`H`, `h`, `hb`, `hB`], PR: [`h`, `H`, `hB`, `hb`], PS: [`h`, `hB`, `hb`, `H`], PT: [`H`, `hB`], PW: [`h`, `H`], PY: [`h`, `H`, `hB`, `hb`], QA: [`h`, `hB`, `hb`, `H`], RE: [`H`, `hB`], RO: [`H`, `hB`], RS: [`H`, `hB`, `h`], RU: [`H`], RW: [`H`, `h`], SA: [`h`, `hB`, `hb`, `H`], SB: [`h`, `hb`, `H`, `hB`], SC: [`H`, `h`, `hB`], SD: [`h`, `hB`, `hb`, `H`], SE: [`H`], SG: [`h`, `hb`, `H`, `hB`], SH: [`H`, `h`, `hb`, `hB`], SI: [`H`, `hB`], SJ: [`H`], SK: [`H`], SL: [`h`, `hb`, `H`, `hB`], SM: [`H`, `h`, `hB`], SN: [`H`, `h`, `hB`], SO: [`h`, `H`], SR: [`H`, `hB`], SS: [`h`, `hb`, `H`, `hB`], ST: [`H`, `hB`], SV: [`h`, `H`, `hB`, `hb`], SX: [`H`, `h`, `hb`, `hB`], SY: [`h`, `hB`, `hb`, `H`], SZ: [`h`, `hb`, `H`, `hB`], TA: [`H`, `h`, `hb`, `hB`], TC: [`h`, `hb`, `H`, `hB`], TD: [`h`, `H`, `hB`], TF: [`H`, `h`, `hB`], TG: [`H`, `hB`], TH: [`H`, `h`], TJ: [`H`, `h`], TL: [`H`, `hB`, `hb`, `h`], TM: [`H`, `h`], TN: [`h`, `hB`, `hb`, `H`], TO: [`h`, `H`], TR: [`H`, `hB`], TT: [`h`, `hb`, `H`, `hB`], TW: [`hB`, `hb`, `h`, `H`], TZ: [`hB`, `hb`, `H`, `h`], UA: [`H`, `hB`, `h`], UG: [`hB`, `hb`, `H`, `h`], UM: [`h`, `hb`, `H`, `hB`], US: [`h`, `hb`, `H`, `hB`], UY: [`h`, `H`, `hB`, `hb`], UZ: [`H`, `hB`, `h`], VA: [`H`, `h`, `hB`], VC: [`h`, `hb`, `H`, `hB`], VE: [`h`, `H`, `hB`, `hb`], VG: [`h`, `hb`, `H`, `hB`], VI: [`h`, `hb`, `H`, `hB`], VN: [`H`, `h`], VU: [`h`, `H`], WF: [`H`, `hB`], WS: [`h`, `H`], XK: [`H`, `hB`, `h`], YE: [`h`, `hB`, `hb`, `H`], YT: [`H`, `hB`], ZA: [`H`, `h`, `hb`, `hB`], ZM: [`h`, `hb`, `H`, `hB`], ZW: [`H`, `h`], "af-ZA": [`H`, `h`, `hB`, `hb`], "ar-001": [`h`, `hB`, `hb`, `H`], "ca-ES": [`H`, `h`, `hB`], "en-001": [`h`, `hb`, `H`, `hB`], "en-HK": [`h`, `hb`, `H`, `hB`], "en-IL": [`H`, `h`, `hb`, `hB`], "en-MY": [`h`, `hb`, `H`, `hB`], "es-BR": [`H`, `h`, `hB`, `hb`], "es-ES": [`H`, `h`, `hB`, `hb`], "es-GQ": [`H`, `h`, `hB`, `hb`], "fr-CA": [`H`, `h`, `hB`], "gl-ES": [`H`, `h`, `hB`], "gu-IN": [`hB`, `hb`, `h`, `H`], "hi-IN": [`hB`, `h`, `H`], "it-CH": [`H`, `h`, `hB`], "it-IT": [`H`, `h`, `hB`], "kn-IN": [`hB`, `h`, `H`], "ku-SY": [`H`, `hB`], "ml-IN": [`hB`, `h`, `H`], "mr-IN": [`hB`, `hb`, `h`, `H`], "pa-IN": [`hB`, `hb`, `h`, `H`], "ta-IN": [`hB`, `h`, `hb`, `H`], "te-IN": [`hB`, `h`, `H`], "zu-ZA": [`H`, `hB`, `hb`, `h`] };
|
|
2585
|
+
function oa(e6, t2) {
|
|
2586
2586
|
let n2 = ``;
|
|
2587
2587
|
for (let r2 = 0; r2 < e6.length; r2++) {
|
|
2588
2588
|
let i2 = e6.charAt(r2);
|
|
2589
2589
|
if (i2 === `j`) {
|
|
2590
2590
|
let a2 = 0;
|
|
2591
2591
|
for (; r2 + 1 < e6.length && e6.charAt(r2 + 1) === i2; ) a2++, r2++;
|
|
2592
|
-
let o2 = 1 + (a2 & 1), s2 = a2 < 2 ? 1 : 3 + (a2 >> 1), c2 =
|
|
2592
|
+
let o2 = 1 + (a2 & 1), s2 = a2 < 2 ? 1 : 3 + (a2 >> 1), c2 = sa(t2);
|
|
2593
2593
|
for ((c2 == `H` || c2 == `k`) && (s2 = 0); s2-- > 0; ) n2 += `a`;
|
|
2594
2594
|
for (; o2-- > 0; ) n2 = c2 + n2;
|
|
2595
2595
|
} else n2 += i2 === `J` ? `H` : i2;
|
|
2596
2596
|
}
|
|
2597
2597
|
return n2;
|
|
2598
2598
|
}
|
|
2599
|
-
function
|
|
2599
|
+
function sa(e6) {
|
|
2600
2600
|
let t2 = e6.hourCycle;
|
|
2601
2601
|
if (t2 === void 0) {
|
|
2602
2602
|
let n3 = e6;
|
|
@@ -2615,36 +2615,36 @@ function oa(e6) {
|
|
|
2615
2615
|
throw Error(`Invalid hourCycle`);
|
|
2616
2616
|
}
|
|
2617
2617
|
let n2 = e6.language, r2;
|
|
2618
|
-
return n2 !== `root` && (r2 = e6.maximize().region), (
|
|
2618
|
+
return n2 !== `root` && (r2 = e6.maximize().region), (V[`${n2}-${r2}`] || V[r2 || ``] || V[n2 || ``] || V[`${n2}-001`] || V[`001`])[0].charAt(0);
|
|
2619
2619
|
}
|
|
2620
|
-
var
|
|
2621
|
-
var
|
|
2622
|
-
function
|
|
2620
|
+
var ca = RegExp(`^${aa.source}*`);
|
|
2621
|
+
var la = RegExp(`${aa.source}*$`);
|
|
2622
|
+
function H(e6, t2) {
|
|
2623
2623
|
return { start: e6, end: t2 };
|
|
2624
2624
|
}
|
|
2625
|
-
var
|
|
2626
|
-
var
|
|
2627
|
-
var
|
|
2628
|
-
var
|
|
2625
|
+
var ua = !!Object.fromEntries;
|
|
2626
|
+
var da = !!String.prototype.trimStart;
|
|
2627
|
+
var fa = !!String.prototype.trimEnd;
|
|
2628
|
+
var pa = ua ? Object.fromEntries : function(e6) {
|
|
2629
2629
|
let t2 = {};
|
|
2630
2630
|
for (let [n2, r2] of e6) t2[n2] = r2;
|
|
2631
2631
|
return t2;
|
|
2632
2632
|
};
|
|
2633
|
-
var
|
|
2633
|
+
var ma = da ? function(e6) {
|
|
2634
2634
|
return e6.trimStart();
|
|
2635
2635
|
} : function(e6) {
|
|
2636
|
-
return e6.replace(
|
|
2636
|
+
return e6.replace(ca, ``);
|
|
2637
2637
|
};
|
|
2638
|
-
var
|
|
2638
|
+
var ha = fa ? function(e6) {
|
|
2639
2639
|
return e6.trimEnd();
|
|
2640
2640
|
} : function(e6) {
|
|
2641
|
-
return e6.replace(
|
|
2641
|
+
return e6.replace(la, ``);
|
|
2642
2642
|
};
|
|
2643
|
-
var
|
|
2644
|
-
function
|
|
2645
|
-
return
|
|
2643
|
+
var ga = RegExp(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`, `yu`);
|
|
2644
|
+
function _a(e6, t2) {
|
|
2645
|
+
return ga.lastIndex = t2, ga.exec(e6)[1] ?? ``;
|
|
2646
2646
|
}
|
|
2647
|
-
function
|
|
2647
|
+
function va(e6) {
|
|
2648
2648
|
if (e6.length === 0) return null;
|
|
2649
2649
|
let t2 = 1, n2 = 1;
|
|
2650
2650
|
for (let r2 = 0; r2 < e6.length; ) {
|
|
@@ -2665,7 +2665,7 @@ function _a(e6) {
|
|
|
2665
2665
|
}
|
|
2666
2666
|
return { offset: e6.length, line: t2, column: n2 };
|
|
2667
2667
|
}
|
|
2668
|
-
var
|
|
2668
|
+
var ya = class {
|
|
2669
2669
|
constructor(e6, t2 = {}) {
|
|
2670
2670
|
this.message = e6, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!t2.ignoreTag, this.locale = t2.locale, this.requiresOtherClause = !!t2.requiresOtherClause, this.shouldParseSkeletons = !!t2.shouldParseSkeletons;
|
|
2671
2671
|
}
|
|
@@ -2674,10 +2674,10 @@ var va = class {
|
|
|
2674
2674
|
if (this.message.length > 0) {
|
|
2675
2675
|
let e6 = this.message.charCodeAt(0);
|
|
2676
2676
|
if (e6 !== 35 && e6 !== 39 && e6 !== 60 && e6 !== 123 && e6 !== 125) {
|
|
2677
|
-
let e7 =
|
|
2677
|
+
let e7 = va(this.message);
|
|
2678
2678
|
if (e7) {
|
|
2679
2679
|
let t2 = this.clonePosition();
|
|
2680
|
-
return this.position = e7, { val: [{ type: 0, value: this.message, location:
|
|
2680
|
+
return this.position = e7, { val: [{ type: 0, value: this.message, location: H(t2, this.clonePosition()) }], err: null };
|
|
2681
2681
|
}
|
|
2682
2682
|
}
|
|
2683
2683
|
}
|
|
@@ -2694,11 +2694,11 @@ var va = class {
|
|
|
2694
2694
|
} else if (i2 === 125 && e6 > 0) break;
|
|
2695
2695
|
else if (i2 === 35 && (t2 === `plural` || t2 === `selectordinal`)) {
|
|
2696
2696
|
let e7 = this.clonePosition();
|
|
2697
|
-
this.bump(), r2.push({ type: 7, location:
|
|
2697
|
+
this.bump(), r2.push({ type: 7, location: H(e7, this.clonePosition()) });
|
|
2698
2698
|
} else if (i2 === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2699
2699
|
if (n2) break;
|
|
2700
|
-
return this.error(26,
|
|
2701
|
-
} else if (i2 === 60 && !this.ignoreTag &&
|
|
2700
|
+
return this.error(26, H(this.clonePosition(), this.clonePosition()));
|
|
2701
|
+
} else if (i2 === 60 && !this.ignoreTag && ba(this.peek() || 0)) {
|
|
2702
2702
|
let n3 = this.parseTag(e6, t2);
|
|
2703
2703
|
if (n3.err) return n3;
|
|
2704
2704
|
r2.push(n3.val);
|
|
@@ -2714,23 +2714,23 @@ var va = class {
|
|
|
2714
2714
|
let n2 = this.clonePosition();
|
|
2715
2715
|
this.bump();
|
|
2716
2716
|
let r2 = this.parseTagName();
|
|
2717
|
-
if (this.bumpSpace(), this.bumpIf(`/>`)) return { val: { type: 0, value: `<${r2}/>`, location:
|
|
2717
|
+
if (this.bumpSpace(), this.bumpIf(`/>`)) return { val: { type: 0, value: `<${r2}/>`, location: H(n2, this.clonePosition()) }, err: null };
|
|
2718
2718
|
if (this.bumpIf(`>`)) {
|
|
2719
2719
|
let i2 = this.parseMessage(e6 + 1, t2, true);
|
|
2720
2720
|
if (i2.err) return i2;
|
|
2721
2721
|
let a2 = i2.val, o2 = this.clonePosition();
|
|
2722
2722
|
if (this.bumpIf(`</`)) {
|
|
2723
|
-
if (this.isEOF() || !
|
|
2723
|
+
if (this.isEOF() || !ba(this.char())) return this.error(23, H(o2, this.clonePosition()));
|
|
2724
2724
|
let e7 = this.clonePosition();
|
|
2725
|
-
return r2 === this.parseTagName() ? (this.bumpSpace(), this.bumpIf(`>`) ? { val: { type: 8, value: r2, children: a2, location:
|
|
2725
|
+
return r2 === this.parseTagName() ? (this.bumpSpace(), this.bumpIf(`>`) ? { val: { type: 8, value: r2, children: a2, location: H(n2, this.clonePosition()) }, err: null } : this.error(23, H(o2, this.clonePosition()))) : this.error(26, H(e7, this.clonePosition()));
|
|
2726
2726
|
}
|
|
2727
|
-
return this.error(27,
|
|
2727
|
+
return this.error(27, H(n2, this.clonePosition()));
|
|
2728
2728
|
}
|
|
2729
|
-
return this.error(23,
|
|
2729
|
+
return this.error(23, H(n2, this.clonePosition()));
|
|
2730
2730
|
}
|
|
2731
2731
|
parseTagName() {
|
|
2732
2732
|
let e6 = this.offset();
|
|
2733
|
-
for (this.bump(); !this.isEOF() &&
|
|
2733
|
+
for (this.bump(); !this.isEOF() && Sa(this.char()); ) this.bump();
|
|
2734
2734
|
return this.message.slice(e6, this.offset());
|
|
2735
2735
|
}
|
|
2736
2736
|
parseLiteral(e6, t2) {
|
|
@@ -2750,11 +2750,11 @@ var va = class {
|
|
|
2750
2750
|
if (a2) r2 += a2;
|
|
2751
2751
|
else break;
|
|
2752
2752
|
}
|
|
2753
|
-
let i2 =
|
|
2753
|
+
let i2 = H(n2, this.clonePosition());
|
|
2754
2754
|
return { val: { type: 0, value: r2, location: i2 }, err: null };
|
|
2755
2755
|
}
|
|
2756
2756
|
tryParseLeftAngleBracket() {
|
|
2757
|
-
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !
|
|
2757
|
+
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !xa(this.peek() || 0)) ? (this.bump(), `<`) : null;
|
|
2758
2758
|
}
|
|
2759
2759
|
tryParseQuote(e6) {
|
|
2760
2760
|
if (this.isEOF() || this.char() !== 39) return null;
|
|
@@ -2794,29 +2794,29 @@ var va = class {
|
|
|
2794
2794
|
}
|
|
2795
2795
|
parseArgument(e6, t2) {
|
|
2796
2796
|
let n2 = this.clonePosition();
|
|
2797
|
-
if (this.bump(), this.bumpSpace(), this.isEOF()) return this.error(1,
|
|
2798
|
-
if (this.char() === 125) return this.bump(), this.error(2,
|
|
2797
|
+
if (this.bump(), this.bumpSpace(), this.isEOF()) return this.error(1, H(n2, this.clonePosition()));
|
|
2798
|
+
if (this.char() === 125) return this.bump(), this.error(2, H(n2, this.clonePosition()));
|
|
2799
2799
|
let r2 = this.parseIdentifierIfPossible().value;
|
|
2800
|
-
if (!r2) return this.error(3,
|
|
2801
|
-
if (this.bumpSpace(), this.isEOF()) return this.error(1,
|
|
2800
|
+
if (!r2) return this.error(3, H(n2, this.clonePosition()));
|
|
2801
|
+
if (this.bumpSpace(), this.isEOF()) return this.error(1, H(n2, this.clonePosition()));
|
|
2802
2802
|
switch (this.char()) {
|
|
2803
2803
|
case 125:
|
|
2804
|
-
return this.bump(), { val: { type: 1, value: r2, location:
|
|
2804
|
+
return this.bump(), { val: { type: 1, value: r2, location: H(n2, this.clonePosition()) }, err: null };
|
|
2805
2805
|
case 44:
|
|
2806
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(1,
|
|
2806
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(1, H(n2, this.clonePosition())) : this.parseArgumentOptions(e6, t2, r2, n2);
|
|
2807
2807
|
default:
|
|
2808
|
-
return this.error(3,
|
|
2808
|
+
return this.error(3, H(n2, this.clonePosition()));
|
|
2809
2809
|
}
|
|
2810
2810
|
}
|
|
2811
2811
|
parseIdentifierIfPossible() {
|
|
2812
|
-
let e6 = this.clonePosition(), t2 = this.offset(), n2 =
|
|
2813
|
-
return this.bumpTo(r2), { value: n2, location:
|
|
2812
|
+
let e6 = this.clonePosition(), t2 = this.offset(), n2 = _a(this.message, t2), r2 = t2 + n2.length;
|
|
2813
|
+
return this.bumpTo(r2), { value: n2, location: H(e6, this.clonePosition()) };
|
|
2814
2814
|
}
|
|
2815
2815
|
parseArgumentOptions(e6, t2, n2, r2) {
|
|
2816
2816
|
let i2 = this.clonePosition(), a2 = this.parseIdentifierIfPossible().value, o2 = this.clonePosition();
|
|
2817
2817
|
switch (a2) {
|
|
2818
2818
|
case ``:
|
|
2819
|
-
return this.error(4,
|
|
2819
|
+
return this.error(4, H(i2, o2));
|
|
2820
2820
|
case `number`:
|
|
2821
2821
|
case `date`:
|
|
2822
2822
|
case `time`: {
|
|
@@ -2826,15 +2826,15 @@ var va = class {
|
|
|
2826
2826
|
this.bumpSpace();
|
|
2827
2827
|
let t4 = this.clonePosition(), n3 = this.parseSimpleArgStyleIfPossible();
|
|
2828
2828
|
if (n3.err) return n3;
|
|
2829
|
-
let r3 =
|
|
2830
|
-
if (r3.length === 0) return this.error(6,
|
|
2831
|
-
e7 = { style: r3, styleLocation:
|
|
2829
|
+
let r3 = ha(n3.val);
|
|
2830
|
+
if (r3.length === 0) return this.error(6, H(this.clonePosition(), this.clonePosition()));
|
|
2831
|
+
e7 = { style: r3, styleLocation: H(t4, this.clonePosition()) };
|
|
2832
2832
|
}
|
|
2833
2833
|
let t3 = this.tryParseArgumentClose(r2);
|
|
2834
2834
|
if (t3.err) return t3;
|
|
2835
|
-
let i3 =
|
|
2835
|
+
let i3 = H(r2, this.clonePosition());
|
|
2836
2836
|
if (e7 && e7.style.startsWith(`::`)) {
|
|
2837
|
-
let t4 =
|
|
2837
|
+
let t4 = ma(e7.style.slice(2));
|
|
2838
2838
|
if (a2 === `number`) {
|
|
2839
2839
|
let r3 = this.parseNumberSkeletonFromString(t4, e7.styleLocation);
|
|
2840
2840
|
return r3.err ? r3 : { val: { type: 2, value: n2, location: i3, style: r3.val }, err: null };
|
|
@@ -2842,8 +2842,8 @@ var va = class {
|
|
|
2842
2842
|
{
|
|
2843
2843
|
if (t4.length === 0) return this.error(10, i3);
|
|
2844
2844
|
let r3 = t4;
|
|
2845
|
-
this.locale && (r3 =
|
|
2846
|
-
let o3 = { type: 1, pattern: r3, location: e7.styleLocation, parsedOptions: this.shouldParseSkeletons ?
|
|
2845
|
+
this.locale && (r3 = oa(t4, this.locale));
|
|
2846
|
+
let o3 = { type: 1, pattern: r3, location: e7.styleLocation, parsedOptions: this.shouldParseSkeletons ? Pi(r3) : {} };
|
|
2847
2847
|
return { val: { type: a2 === `date` ? 3 : 4, value: n2, location: i3, style: o3 }, err: null };
|
|
2848
2848
|
}
|
|
2849
2849
|
}
|
|
@@ -2853,11 +2853,11 @@ var va = class {
|
|
|
2853
2853
|
case `selectordinal`:
|
|
2854
2854
|
case `select`: {
|
|
2855
2855
|
let i3 = this.clonePosition();
|
|
2856
|
-
if (this.bumpSpace(), !this.bumpIf(`,`)) return this.error(12,
|
|
2856
|
+
if (this.bumpSpace(), !this.bumpIf(`,`)) return this.error(12, H(i3, { ...i3 }));
|
|
2857
2857
|
this.bumpSpace();
|
|
2858
2858
|
let o3 = this.parseIdentifierIfPossible(), s2 = 0;
|
|
2859
2859
|
if (a2 !== `select` && o3.value === `offset`) {
|
|
2860
|
-
if (!this.bumpIf(`:`)) return this.error(13,
|
|
2860
|
+
if (!this.bumpIf(`:`)) return this.error(13, H(this.clonePosition(), this.clonePosition()));
|
|
2861
2861
|
this.bumpSpace();
|
|
2862
2862
|
let e7 = this.tryParseDecimalInteger(13, 14);
|
|
2863
2863
|
if (e7.err) return e7;
|
|
@@ -2867,15 +2867,15 @@ var va = class {
|
|
|
2867
2867
|
if (c2.err) return c2;
|
|
2868
2868
|
let l2 = this.tryParseArgumentClose(r2);
|
|
2869
2869
|
if (l2.err) return l2;
|
|
2870
|
-
let u2 =
|
|
2871
|
-
return a2 === `select` ? { val: { type: 5, value: n2, options:
|
|
2870
|
+
let u2 = H(r2, this.clonePosition());
|
|
2871
|
+
return a2 === `select` ? { val: { type: 5, value: n2, options: pa(c2.val), location: u2 }, err: null } : { val: { type: 6, value: n2, options: pa(c2.val), offset: s2, pluralType: a2 === `plural` ? `cardinal` : `ordinal`, location: u2 }, err: null };
|
|
2872
2872
|
}
|
|
2873
2873
|
default:
|
|
2874
|
-
return this.error(5,
|
|
2874
|
+
return this.error(5, H(i2, o2));
|
|
2875
2875
|
}
|
|
2876
2876
|
}
|
|
2877
2877
|
tryParseArgumentClose(e6) {
|
|
2878
|
-
return this.isEOF() || this.char() !== 125 ? this.error(1,
|
|
2878
|
+
return this.isEOF() || this.char() !== 125 ? this.error(1, H(e6, this.clonePosition())) : (this.bump(), { val: true, err: null });
|
|
2879
2879
|
}
|
|
2880
2880
|
parseSimpleArgStyleIfPossible() {
|
|
2881
2881
|
let e6 = 0, t2 = this.clonePosition();
|
|
@@ -2883,7 +2883,7 @@ var va = class {
|
|
|
2883
2883
|
case 39: {
|
|
2884
2884
|
this.bump();
|
|
2885
2885
|
let e7 = this.clonePosition();
|
|
2886
|
-
if (!this.bumpUntil(`'`)) return this.error(11,
|
|
2886
|
+
if (!this.bumpUntil(`'`)) return this.error(11, H(e7, this.clonePosition()));
|
|
2887
2887
|
this.bump();
|
|
2888
2888
|
break;
|
|
2889
2889
|
}
|
|
@@ -2902,11 +2902,11 @@ var va = class {
|
|
|
2902
2902
|
parseNumberSkeletonFromString(e6, t2) {
|
|
2903
2903
|
let n2 = [];
|
|
2904
2904
|
try {
|
|
2905
|
-
n2 =
|
|
2905
|
+
n2 = Ii(e6);
|
|
2906
2906
|
} catch {
|
|
2907
2907
|
return this.error(7, t2);
|
|
2908
2908
|
}
|
|
2909
|
-
return { val: { type: 0, tokens: n2, location: t2, parsedOptions: this.shouldParseSkeletons ?
|
|
2909
|
+
return { val: { type: 0, tokens: n2, location: t2, parsedOptions: this.shouldParseSkeletons ? Ki(n2) : {} }, err: null };
|
|
2910
2910
|
}
|
|
2911
2911
|
tryParsePluralOrSelectOptions(e6, t2, n2, r2) {
|
|
2912
2912
|
let i2 = false, a2 = [], o2 = /* @__PURE__ */ new Set(), { value: s2, location: c2 } = r2;
|
|
@@ -2916,20 +2916,20 @@ var va = class {
|
|
|
2916
2916
|
if (t2 !== `select` && this.bumpIf(`=`)) {
|
|
2917
2917
|
let t3 = this.tryParseDecimalInteger(16, 19);
|
|
2918
2918
|
if (t3.err) return t3;
|
|
2919
|
-
c2 =
|
|
2919
|
+
c2 = H(e7, this.clonePosition()), s2 = this.message.slice(e7.offset, this.offset());
|
|
2920
2920
|
} else break;
|
|
2921
2921
|
}
|
|
2922
2922
|
if (o2.has(s2)) return this.error(t2 === `select` ? 21 : 20, c2);
|
|
2923
2923
|
s2 === `other` && (i2 = true), this.bumpSpace();
|
|
2924
2924
|
let r3 = this.clonePosition();
|
|
2925
|
-
if (!this.bumpIf(`{`)) return this.error(t2 === `select` ? 17 : 18,
|
|
2925
|
+
if (!this.bumpIf(`{`)) return this.error(t2 === `select` ? 17 : 18, H(this.clonePosition(), this.clonePosition()));
|
|
2926
2926
|
let l2 = this.parseMessage(e6 + 1, t2, n2);
|
|
2927
2927
|
if (l2.err) return l2;
|
|
2928
2928
|
let u2 = this.tryParseArgumentClose(r3);
|
|
2929
2929
|
if (u2.err) return u2;
|
|
2930
|
-
a2.push([s2, { value: l2.val, location:
|
|
2930
|
+
a2.push([s2, { value: l2.val, location: H(r3, this.clonePosition()) }]), o2.add(s2), this.bumpSpace(), { value: s2, location: c2 } = this.parseIdentifierIfPossible();
|
|
2931
2931
|
}
|
|
2932
|
-
return a2.length === 0 ? this.error(t2 === `select` ? 15 : 16,
|
|
2932
|
+
return a2.length === 0 ? this.error(t2 === `select` ? 15 : 16, H(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !i2 ? this.error(22, H(this.clonePosition(), this.clonePosition())) : { val: a2, err: null };
|
|
2933
2933
|
}
|
|
2934
2934
|
tryParseDecimalInteger(e6, t2) {
|
|
2935
2935
|
let n2 = 1, r2 = this.clonePosition();
|
|
@@ -2940,7 +2940,7 @@ var va = class {
|
|
|
2940
2940
|
if (e7 >= 48 && e7 <= 57) i2 = true, a2 = a2 * 10 + (e7 - 48), this.bump();
|
|
2941
2941
|
else break;
|
|
2942
2942
|
}
|
|
2943
|
-
let o2 =
|
|
2943
|
+
let o2 = H(r2, this.clonePosition());
|
|
2944
2944
|
return i2 ? (a2 *= n2, Number.isSafeInteger(a2) ? { val: a2, err: null } : this.error(t2, o2)) : this.error(e6, o2);
|
|
2945
2945
|
}
|
|
2946
2946
|
offset() {
|
|
@@ -2988,7 +2988,7 @@ var va = class {
|
|
|
2988
2988
|
}
|
|
2989
2989
|
}
|
|
2990
2990
|
bumpSpace() {
|
|
2991
|
-
for (; !this.isEOF() &&
|
|
2991
|
+
for (; !this.isEOF() && Ca(this.char()); ) this.bump();
|
|
2992
2992
|
}
|
|
2993
2993
|
peek() {
|
|
2994
2994
|
if (this.isEOF()) return null;
|
|
@@ -2996,34 +2996,34 @@ var va = class {
|
|
|
2996
2996
|
return this.message.charCodeAt(t2 + (e6 >= 65536 ? 2 : 1)) ?? null;
|
|
2997
2997
|
}
|
|
2998
2998
|
};
|
|
2999
|
-
function ya(e6) {
|
|
3000
|
-
return e6 >= 97 && e6 <= 122 || e6 >= 65 && e6 <= 90;
|
|
3001
|
-
}
|
|
3002
2999
|
function ba(e6) {
|
|
3003
|
-
return
|
|
3000
|
+
return e6 >= 97 && e6 <= 122 || e6 >= 65 && e6 <= 90;
|
|
3004
3001
|
}
|
|
3005
3002
|
function xa(e6) {
|
|
3006
|
-
return e6
|
|
3003
|
+
return ba(e6) || e6 === 47;
|
|
3007
3004
|
}
|
|
3008
3005
|
function Sa(e6) {
|
|
3009
|
-
return e6 >=
|
|
3006
|
+
return e6 === 45 || e6 === 46 || e6 >= 48 && e6 <= 57 || e6 === 95 || e6 >= 97 && e6 <= 122 || e6 >= 65 && e6 <= 90 || e6 == 183 || e6 >= 192 && e6 <= 214 || e6 >= 216 && e6 <= 246 || e6 >= 248 && e6 <= 893 || e6 >= 895 && e6 <= 8191 || e6 >= 8204 && e6 <= 8205 || e6 >= 8255 && e6 <= 8256 || e6 >= 8304 && e6 <= 8591 || e6 >= 11264 && e6 <= 12271 || e6 >= 12289 && e6 <= 55295 || e6 >= 63744 && e6 <= 64975 || e6 >= 65008 && e6 <= 65533 || e6 >= 65536 && e6 <= 983039;
|
|
3010
3007
|
}
|
|
3011
3008
|
function Ca(e6) {
|
|
3009
|
+
return e6 >= 9 && e6 <= 13 || e6 === 32 || e6 === 133 || e6 >= 8206 && e6 <= 8207 || e6 === 8232 || e6 === 8233;
|
|
3010
|
+
}
|
|
3011
|
+
function wa(e6) {
|
|
3012
3012
|
e6.forEach((e7) => {
|
|
3013
|
-
if (delete e7.location,
|
|
3014
|
-
else
|
|
3013
|
+
if (delete e7.location, $i(e7) || ea(e7)) for (let t2 in e7.options) delete e7.options[t2].location, wa(e7.options[t2].value);
|
|
3014
|
+
else Xi(e7) && ra(e7.style) || (Zi(e7) || Qi(e7)) && ia(e7.style) ? delete e7.style.location : na(e7) && wa(e7.children);
|
|
3015
3015
|
});
|
|
3016
3016
|
}
|
|
3017
|
-
function
|
|
3017
|
+
function Ta(e6, t2 = {}) {
|
|
3018
3018
|
t2 = { shouldParseSkeletons: true, requiresOtherClause: true, ...t2 };
|
|
3019
|
-
let n2 = new
|
|
3019
|
+
let n2 = new ya(e6, t2).parse();
|
|
3020
3020
|
if (n2.err) {
|
|
3021
|
-
let e7 = SyntaxError(
|
|
3021
|
+
let e7 = SyntaxError(qi[n2.err.kind]);
|
|
3022
3022
|
throw e7.location = n2.err.location, e7.originalMessage = n2.err.message, e7;
|
|
3023
3023
|
}
|
|
3024
|
-
return t2?.captureLocation ||
|
|
3024
|
+
return t2?.captureLocation || wa(n2.val), n2.val;
|
|
3025
3025
|
}
|
|
3026
|
-
var
|
|
3026
|
+
var Ea = class extends Error {
|
|
3027
3027
|
constructor(e6, t2, n2) {
|
|
3028
3028
|
super(e6), this.code = t2, this.originalMessage = n2;
|
|
3029
3029
|
}
|
|
@@ -3031,54 +3031,54 @@ var Ta = class extends Error {
|
|
|
3031
3031
|
return `[formatjs Error: ${this.code}] ${this.message}`;
|
|
3032
3032
|
}
|
|
3033
3033
|
};
|
|
3034
|
-
var
|
|
3034
|
+
var Da = class extends Ea {
|
|
3035
3035
|
constructor(e6, t2, n2, r2) {
|
|
3036
3036
|
super(`Invalid values for "${e6}": "${t2}". Options are "${Object.keys(n2).join(`", "`)}"`, `INVALID_VALUE`, r2);
|
|
3037
3037
|
}
|
|
3038
3038
|
};
|
|
3039
|
-
var
|
|
3039
|
+
var Oa = class extends Ea {
|
|
3040
3040
|
constructor(e6, t2, n2) {
|
|
3041
3041
|
super(`Value for "${e6}" must be of type ${t2}`, `INVALID_VALUE`, n2);
|
|
3042
3042
|
}
|
|
3043
3043
|
};
|
|
3044
|
-
var
|
|
3044
|
+
var ka = class extends Ea {
|
|
3045
3045
|
constructor(e6, t2) {
|
|
3046
3046
|
super(`The intl string context variable "${e6}" was not provided to the string "${t2}"`, `MISSING_VALUE`, t2);
|
|
3047
3047
|
}
|
|
3048
3048
|
};
|
|
3049
|
-
function
|
|
3049
|
+
function Aa(e6) {
|
|
3050
3050
|
return e6.length < 2 ? e6 : e6.reduce((e7, t2) => {
|
|
3051
3051
|
let n2 = e7[e7.length - 1];
|
|
3052
3052
|
return !n2 || n2.type !== 0 || t2.type !== 0 ? e7.push(t2) : n2.value += t2.value, e7;
|
|
3053
3053
|
}, []);
|
|
3054
3054
|
}
|
|
3055
|
-
function
|
|
3055
|
+
function ja(e6) {
|
|
3056
3056
|
return typeof e6 == `function`;
|
|
3057
3057
|
}
|
|
3058
|
-
function
|
|
3059
|
-
if (e6.length === 1 &&
|
|
3058
|
+
function Ma(e6, t2, n2, r2, i2, a2, o2) {
|
|
3059
|
+
if (e6.length === 1 && Ji(e6[0])) return [{ type: 0, value: e6[0].value }];
|
|
3060
3060
|
let s2 = [];
|
|
3061
3061
|
for (let c2 of e6) {
|
|
3062
|
-
if (
|
|
3062
|
+
if (Ji(c2)) {
|
|
3063
3063
|
s2.push({ type: 0, value: c2.value });
|
|
3064
3064
|
continue;
|
|
3065
3065
|
}
|
|
3066
|
-
if (
|
|
3066
|
+
if (ta(c2)) {
|
|
3067
3067
|
typeof a2 == `number` && s2.push({ type: 0, value: n2.getNumberFormat(t2).format(a2) });
|
|
3068
3068
|
continue;
|
|
3069
3069
|
}
|
|
3070
3070
|
let { value: e7 } = c2;
|
|
3071
|
-
if (!(i2 && e7 in i2)) throw new
|
|
3071
|
+
if (!(i2 && e7 in i2)) throw new ka(e7, o2);
|
|
3072
3072
|
let l2 = i2[e7];
|
|
3073
|
-
if (
|
|
3074
|
-
else if (
|
|
3075
|
-
let e8 = typeof c2.style == `string` ? r2.date[c2.style] :
|
|
3073
|
+
if (Yi(c2)) (!l2 || typeof l2 == `string` || typeof l2 == `number` || typeof l2 == `bigint`) && (l2 = typeof l2 == `string` || typeof l2 == `number` || typeof l2 == `bigint` ? String(l2) : ``), s2.push({ type: typeof l2 == `string` ? 0 : 1, value: l2 });
|
|
3074
|
+
else if (Zi(c2)) {
|
|
3075
|
+
let e8 = typeof c2.style == `string` ? r2.date[c2.style] : ia(c2.style) ? c2.style.parsedOptions : void 0;
|
|
3076
3076
|
s2.push({ type: 0, value: n2.getDateTimeFormat(t2, e8).format(l2) });
|
|
3077
|
-
} else if (
|
|
3078
|
-
let e8 = typeof c2.style == `string` ? r2.time[c2.style] :
|
|
3077
|
+
} else if (Qi(c2)) {
|
|
3078
|
+
let e8 = typeof c2.style == `string` ? r2.time[c2.style] : ia(c2.style) ? c2.style.parsedOptions : r2.time.medium;
|
|
3079
3079
|
s2.push({ type: 0, value: n2.getDateTimeFormat(t2, e8).format(l2) });
|
|
3080
|
-
} else if (
|
|
3081
|
-
let e8 = typeof c2.style == `string` ? r2.number[c2.style] :
|
|
3080
|
+
} else if (Xi(c2)) {
|
|
3081
|
+
let e8 = typeof c2.style == `string` ? r2.number[c2.style] : ra(c2.style) ? c2.style.parsedOptions : void 0;
|
|
3082
3082
|
if (e8 && e8.scale) {
|
|
3083
3083
|
let t3 = e8.scale || 1;
|
|
3084
3084
|
if (typeof l2 == `bigint`) {
|
|
@@ -3088,40 +3088,40 @@ function ja(e6, t2, n2, r2, i2, a2, o2) {
|
|
|
3088
3088
|
}
|
|
3089
3089
|
s2.push({ type: 0, value: n2.getNumberFormat(t2, e8).format(l2) });
|
|
3090
3090
|
} else {
|
|
3091
|
-
if (
|
|
3091
|
+
if (na(c2)) {
|
|
3092
3092
|
let { children: e8, value: l3 } = c2, u2 = i2[l3];
|
|
3093
|
-
if (!
|
|
3094
|
-
let d2 = u2(
|
|
3093
|
+
if (!ja(u2)) throw new Oa(l3, `function`, o2);
|
|
3094
|
+
let d2 = u2(Ma(e8, t2, n2, r2, i2, a2).map((e9) => e9.value));
|
|
3095
3095
|
Array.isArray(d2) || (d2 = [d2]), s2.push(...d2.map((e9) => ({ type: typeof e9 == `string` ? 0 : 1, value: e9 })));
|
|
3096
3096
|
}
|
|
3097
|
-
if (
|
|
3097
|
+
if ($i(c2)) {
|
|
3098
3098
|
let e8 = l2, a3 = (Object.prototype.hasOwnProperty.call(c2.options, e8) ? c2.options[e8] : void 0) || c2.options.other;
|
|
3099
|
-
if (!a3) throw new
|
|
3100
|
-
s2.push(...
|
|
3101
|
-
} else if (
|
|
3099
|
+
if (!a3) throw new Da(c2.value, l2, Object.keys(c2.options), o2);
|
|
3100
|
+
s2.push(...Ma(a3.value, t2, n2, r2, i2));
|
|
3101
|
+
} else if (ea(c2)) {
|
|
3102
3102
|
let e8 = `=${l2}`, a3 = Object.prototype.hasOwnProperty.call(c2.options, e8) ? c2.options[e8] : void 0;
|
|
3103
3103
|
if (!a3) {
|
|
3104
|
-
if (!Intl.PluralRules) throw new
|
|
3104
|
+
if (!Intl.PluralRules) throw new Ea(`Intl.PluralRules is not available in this environment.
|
|
3105
3105
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3106
3106
|
`, `MISSING_INTL_API`, o2);
|
|
3107
3107
|
let e9 = typeof l2 == `bigint` ? Number(l2) : l2, r3 = n2.getPluralRules(t2, { type: c2.pluralType }).select(e9 - (c2.offset || 0));
|
|
3108
3108
|
a3 = (Object.prototype.hasOwnProperty.call(c2.options, r3) ? c2.options[r3] : void 0) || c2.options.other;
|
|
3109
3109
|
}
|
|
3110
|
-
if (!a3) throw new
|
|
3110
|
+
if (!a3) throw new Da(c2.value, l2, Object.keys(c2.options), o2);
|
|
3111
3111
|
let u2 = typeof l2 == `bigint` ? Number(l2) : l2;
|
|
3112
|
-
s2.push(...
|
|
3112
|
+
s2.push(...Ma(a3.value, t2, n2, r2, i2, u2 - (c2.offset || 0)));
|
|
3113
3113
|
}
|
|
3114
3114
|
}
|
|
3115
3115
|
}
|
|
3116
|
-
return
|
|
3116
|
+
return Aa(s2);
|
|
3117
3117
|
}
|
|
3118
|
-
function
|
|
3118
|
+
function Na(e6, t2) {
|
|
3119
3119
|
return t2 ? { ...e6, ...t2, ...Object.keys(e6).reduce((n2, r2) => (n2[r2] = { ...e6[r2], ...t2[r2] }, n2), {}) } : e6;
|
|
3120
3120
|
}
|
|
3121
|
-
function
|
|
3122
|
-
return t2 ? Object.keys(e6).reduce((n2, r2) => (n2[r2] =
|
|
3121
|
+
function Pa(e6, t2) {
|
|
3122
|
+
return t2 ? Object.keys(e6).reduce((n2, r2) => (n2[r2] = Na(e6[r2], t2[r2]), n2), { ...e6 }) : e6;
|
|
3123
3123
|
}
|
|
3124
|
-
function
|
|
3124
|
+
function Fa(e6) {
|
|
3125
3125
|
return { create() {
|
|
3126
3126
|
return { get(t2) {
|
|
3127
3127
|
return e6[t2];
|
|
@@ -3130,23 +3130,23 @@ function Pa(e6) {
|
|
|
3130
3130
|
} };
|
|
3131
3131
|
} };
|
|
3132
3132
|
}
|
|
3133
|
-
function
|
|
3134
|
-
return { getNumberFormat:
|
|
3133
|
+
function Ia(e6 = { number: {}, dateTime: {}, pluralRules: {} }) {
|
|
3134
|
+
return { getNumberFormat: xi((...e7) => new Intl.NumberFormat(...e7), { cache: Fa(e6.number), strategy: Mi.variadic }), getDateTimeFormat: xi((...e7) => new Intl.DateTimeFormat(...e7), { cache: Fa(e6.dateTime), strategy: Mi.variadic }), getPluralRules: xi((...e7) => new Intl.PluralRules(...e7), { cache: Fa(e6.pluralRules), strategy: Mi.variadic }) };
|
|
3135
3135
|
}
|
|
3136
|
-
var
|
|
3136
|
+
var La = class e5 {
|
|
3137
3137
|
constructor(t2, n2 = e5.defaultLocale, r2, i2) {
|
|
3138
3138
|
if (this.formatterCache = { number: {}, dateTime: {}, pluralRules: {} }, this.format = (e6) => {
|
|
3139
3139
|
let t3 = this.formatToParts(e6);
|
|
3140
3140
|
if (t3.length === 1) return t3[0].value;
|
|
3141
3141
|
let n3 = t3.reduce((e7, t4) => (!e7.length || t4.type !== 0 || typeof e7[e7.length - 1] != `string` ? e7.push(t4.value) : e7[e7.length - 1] += t4.value, e7), []);
|
|
3142
3142
|
return n3.length <= 1 ? n3[0] || `` : n3;
|
|
3143
|
-
}, this.formatToParts = (e6) =>
|
|
3143
|
+
}, this.formatToParts = (e6) => Ma(this.ast, this.locales, this.formatters, this.formats, e6, void 0, this.message), this.resolvedOptions = () => ({ locale: this.resolvedLocale?.toString() || Intl.NumberFormat.supportedLocalesOf(this.locales)[0] }), this.getAst = () => this.ast, this.locales = n2, this.resolvedLocale = e5.resolveLocale(n2), typeof t2 == `string`) {
|
|
3144
3144
|
if (this.message = t2, !e5.__parse) throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3145
3145
|
let { ...n3 } = i2 || {};
|
|
3146
3146
|
this.ast = e5.__parse(t2, { ...n3, locale: this.resolvedLocale });
|
|
3147
3147
|
} else this.ast = t2;
|
|
3148
3148
|
if (!Array.isArray(this.ast)) throw TypeError(`A message must be provided as a String or AST.`);
|
|
3149
|
-
this.formats =
|
|
3149
|
+
this.formats = Pa(e5.formats, r2), this.formatters = i2 && i2.formatters || Ia(this.formatterCache);
|
|
3150
3150
|
}
|
|
3151
3151
|
static {
|
|
3152
3152
|
this.memoizedDefaultLocale = null;
|
|
@@ -3162,32 +3162,32 @@ var Ia = class e5 {
|
|
|
3162
3162
|
};
|
|
3163
3163
|
}
|
|
3164
3164
|
static {
|
|
3165
|
-
this.__parse =
|
|
3165
|
+
this.__parse = Ta;
|
|
3166
3166
|
}
|
|
3167
3167
|
static {
|
|
3168
3168
|
this.formats = { number: { integer: { maximumFractionDigits: 0 }, currency: { style: `currency` }, percent: { style: `percent` } }, date: { short: { month: `numeric`, day: `numeric`, year: `2-digit` }, medium: { month: `short`, day: `numeric`, year: `numeric` }, long: { month: `long`, day: `numeric`, year: `numeric` }, full: { weekday: `long`, month: `long`, day: `numeric`, year: `numeric` } }, time: { short: { hour: `numeric`, minute: `numeric` }, medium: { hour: `numeric`, minute: `numeric`, second: `numeric` }, long: { hour: `numeric`, minute: `numeric`, second: `numeric`, timeZoneName: `short` }, full: { hour: `numeric`, minute: `numeric`, second: `numeric`, timeZoneName: `short` } } };
|
|
3169
3169
|
}
|
|
3170
3170
|
};
|
|
3171
|
-
function
|
|
3172
|
-
return
|
|
3171
|
+
function Ra(e6, t2) {
|
|
3172
|
+
return Ua(e6) || Ha(e6, t2) || Ba(e6, t2) || za();
|
|
3173
3173
|
}
|
|
3174
|
-
function
|
|
3174
|
+
function za() {
|
|
3175
3175
|
throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3176
3176
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
3177
3177
|
}
|
|
3178
|
-
function
|
|
3178
|
+
function Ba(e6, t2) {
|
|
3179
3179
|
if (e6) {
|
|
3180
|
-
if (typeof e6 == `string`) return
|
|
3180
|
+
if (typeof e6 == `string`) return Va(e6, t2);
|
|
3181
3181
|
var n2 = {}.toString.call(e6).slice(8, -1);
|
|
3182
|
-
return n2 === `Object` && e6.constructor && (n2 = e6.constructor.name), n2 === `Map` || n2 === `Set` ? Array.from(e6) : n2 === `Arguments` || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2) ?
|
|
3182
|
+
return n2 === `Object` && e6.constructor && (n2 = e6.constructor.name), n2 === `Map` || n2 === `Set` ? Array.from(e6) : n2 === `Arguments` || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2) ? Va(e6, t2) : void 0;
|
|
3183
3183
|
}
|
|
3184
3184
|
}
|
|
3185
|
-
function
|
|
3185
|
+
function Va(e6, t2) {
|
|
3186
3186
|
(t2 == null || t2 > e6.length) && (t2 = e6.length);
|
|
3187
3187
|
for (var n2 = 0, r2 = Array(t2); n2 < t2; n2++) r2[n2] = e6[n2];
|
|
3188
3188
|
return r2;
|
|
3189
3189
|
}
|
|
3190
|
-
function
|
|
3190
|
+
function Ha(e6, t2) {
|
|
3191
3191
|
var n2 = e6 == null ? null : typeof Symbol < `u` && e6[Symbol.iterator] || e6[`@@iterator`];
|
|
3192
3192
|
if (n2 != null) {
|
|
3193
3193
|
var r2, i2, a2, o2, s2 = [], c2 = true, l2 = false;
|
|
@@ -3208,18 +3208,18 @@ function Va(e6, t2) {
|
|
|
3208
3208
|
return s2;
|
|
3209
3209
|
}
|
|
3210
3210
|
}
|
|
3211
|
-
function
|
|
3211
|
+
function Ua(e6) {
|
|
3212
3212
|
if (Array.isArray(e6)) return e6;
|
|
3213
3213
|
}
|
|
3214
|
-
function
|
|
3214
|
+
function U(e6) {
|
|
3215
3215
|
"@babel/helpers - typeof";
|
|
3216
|
-
return
|
|
3216
|
+
return U = typeof Symbol == `function` && typeof Symbol.iterator == `symbol` ? function(e7) {
|
|
3217
3217
|
return typeof e7;
|
|
3218
3218
|
} : function(e7) {
|
|
3219
3219
|
return e7 && typeof Symbol == `function` && e7.constructor === Symbol && e7 !== Symbol.prototype ? `symbol` : typeof e7;
|
|
3220
|
-
},
|
|
3220
|
+
}, U(e6);
|
|
3221
3221
|
}
|
|
3222
|
-
function
|
|
3222
|
+
function Wa(e6, t2) {
|
|
3223
3223
|
var n2 = Object.keys(e6);
|
|
3224
3224
|
if (Object.getOwnPropertySymbols) {
|
|
3225
3225
|
var r2 = Object.getOwnPropertySymbols(e6);
|
|
@@ -3229,74 +3229,74 @@ function Ua(e6, t2) {
|
|
|
3229
3229
|
}
|
|
3230
3230
|
return n2;
|
|
3231
3231
|
}
|
|
3232
|
-
function
|
|
3232
|
+
function Ga(e6) {
|
|
3233
3233
|
for (var t2 = 1; t2 < arguments.length; t2++) {
|
|
3234
3234
|
var n2 = arguments[t2] == null ? {} : arguments[t2];
|
|
3235
|
-
t2 % 2 ?
|
|
3236
|
-
|
|
3237
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e6, Object.getOwnPropertyDescriptors(n2)) :
|
|
3235
|
+
t2 % 2 ? Wa(Object(n2), true).forEach(function(t3) {
|
|
3236
|
+
Ka(e6, t3, n2[t3]);
|
|
3237
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e6, Object.getOwnPropertyDescriptors(n2)) : Wa(Object(n2)).forEach(function(t3) {
|
|
3238
3238
|
Object.defineProperty(e6, t3, Object.getOwnPropertyDescriptor(n2, t3));
|
|
3239
3239
|
});
|
|
3240
3240
|
}
|
|
3241
3241
|
return e6;
|
|
3242
3242
|
}
|
|
3243
|
-
function
|
|
3244
|
-
return (t2 =
|
|
3243
|
+
function Ka(e6, t2, n2) {
|
|
3244
|
+
return (t2 = Xa(t2)) in e6 ? Object.defineProperty(e6, t2, { value: n2, enumerable: true, configurable: true, writable: true }) : e6[t2] = n2, e6;
|
|
3245
3245
|
}
|
|
3246
|
-
function
|
|
3246
|
+
function qa(e6, t2) {
|
|
3247
3247
|
if (!(e6 instanceof t2)) throw TypeError(`Cannot call a class as a function`);
|
|
3248
3248
|
}
|
|
3249
|
-
function
|
|
3249
|
+
function Ja(e6, t2) {
|
|
3250
3250
|
for (var n2 = 0; n2 < t2.length; n2++) {
|
|
3251
3251
|
var r2 = t2[n2];
|
|
3252
|
-
r2.enumerable = r2.enumerable || false, r2.configurable = true, `value` in r2 && (r2.writable = true), Object.defineProperty(e6,
|
|
3252
|
+
r2.enumerable = r2.enumerable || false, r2.configurable = true, `value` in r2 && (r2.writable = true), Object.defineProperty(e6, Xa(r2.key), r2);
|
|
3253
3253
|
}
|
|
3254
3254
|
}
|
|
3255
|
-
function
|
|
3256
|
-
return t2 &&
|
|
3255
|
+
function Ya(e6, t2, n2) {
|
|
3256
|
+
return t2 && Ja(e6.prototype, t2), n2 && Ja(e6, n2), Object.defineProperty(e6, "prototype", { writable: false }), e6;
|
|
3257
3257
|
}
|
|
3258
|
-
function
|
|
3259
|
-
var t2 =
|
|
3260
|
-
return
|
|
3258
|
+
function Xa(e6) {
|
|
3259
|
+
var t2 = Za(e6, `string`);
|
|
3260
|
+
return U(t2) == `symbol` ? t2 : t2 + ``;
|
|
3261
3261
|
}
|
|
3262
|
-
function
|
|
3263
|
-
if (
|
|
3262
|
+
function Za(e6, t2) {
|
|
3263
|
+
if (U(e6) != `object` || !e6) return e6;
|
|
3264
3264
|
var n2 = e6[Symbol.toPrimitive];
|
|
3265
3265
|
if (n2 !== void 0) {
|
|
3266
3266
|
var r2 = n2.call(e6, t2 || `default`);
|
|
3267
|
-
if (
|
|
3267
|
+
if (U(r2) != `object`) return r2;
|
|
3268
3268
|
throw TypeError(`@@toPrimitive must return a primitive value.`);
|
|
3269
3269
|
}
|
|
3270
3270
|
return (t2 === `string` ? String : Number)(e6);
|
|
3271
3271
|
}
|
|
3272
|
-
function
|
|
3272
|
+
function Qa() {
|
|
3273
3273
|
return { memoize: true, memoizeFallback: false, bindI18n: ``, bindI18nStore: ``, parseErrorHandler: function(e6, t2, n2, r2) {
|
|
3274
3274
|
return n2;
|
|
3275
3275
|
}, parseLngForICU: function(e6) {
|
|
3276
3276
|
return e6;
|
|
3277
3277
|
}, escapeVariables: false };
|
|
3278
3278
|
}
|
|
3279
|
-
var
|
|
3279
|
+
var $a = function() {
|
|
3280
3280
|
function e6(t2) {
|
|
3281
|
-
|
|
3281
|
+
qa(this, e6), this.type = `i18nFormat`, this.mem = {}, this.init(null, t2);
|
|
3282
3282
|
}
|
|
3283
|
-
return
|
|
3283
|
+
return Ya(e6, [{ key: `init`, value: function(e7, t2) {
|
|
3284
3284
|
var n2 = this, r2 = e7 && e7.options && e7.options.i18nFormat || {};
|
|
3285
|
-
if (this.options =
|
|
3285
|
+
if (this.options = bi(r2, t2, this.options || {}, Qa()), this.formats = this.options.formats, e7) {
|
|
3286
3286
|
var i2 = this.options, a2 = i2.bindI18n, o2 = i2.bindI18nStore, s2 = i2.memoize;
|
|
3287
|
-
e7.IntlMessageFormat =
|
|
3287
|
+
e7.IntlMessageFormat = La, e7.ICU = this, s2 && (a2 && e7.on(a2, function() {
|
|
3288
3288
|
return n2.clearCache();
|
|
3289
3289
|
}), o2 && e7.store.on(o2, function() {
|
|
3290
3290
|
return n2.clearCache();
|
|
3291
3291
|
}));
|
|
3292
3292
|
}
|
|
3293
3293
|
} }, { key: `addUserDefinedFormats`, value: function(e7) {
|
|
3294
|
-
this.formats = this.formats ?
|
|
3294
|
+
this.formats = this.formats ? Ga(Ga({}, this.formats), e7) : e7;
|
|
3295
3295
|
} }, { key: `parse`, value: function(e7, t2, n2, r2, i2, a2) {
|
|
3296
3296
|
var o2 = a2 && a2.resolved && a2.resolved.res, s2 = this.options.memoize && `${n2}.${r2}.${i2.replace(/\./g, `###`)}`, c2;
|
|
3297
|
-
this.options.memoize && (c2 =
|
|
3297
|
+
this.options.memoize && (c2 = gi(this.mem, s2));
|
|
3298
3298
|
try {
|
|
3299
|
-
return c2 || (c2 = new
|
|
3299
|
+
return c2 || (c2 = new La(e7, this.options.parseLngForICU(n2), this.formats, { ignoreTag: true }), this.options.memoize && (this.options.memoizeFallback || !a2 || o2) && hi(this.mem, s2, c2)), c2.format(this.escapeVariableValues(t2));
|
|
3300
3300
|
} catch (n3) {
|
|
3301
3301
|
return this.options.parseErrorHandler(n3, i2, e7, t2);
|
|
3302
3302
|
}
|
|
@@ -3305,29 +3305,29 @@ var Qa = function() {
|
|
|
3305
3305
|
} }, { key: `clearCache`, value: function() {
|
|
3306
3306
|
this.mem = {};
|
|
3307
3307
|
} }, { key: `escapeVariableValues`, value: function(e7) {
|
|
3308
|
-
if (!this.options.escapeVariables || !e7 ||
|
|
3308
|
+
if (!this.options.escapeVariables || !e7 || U(e7) !== `object`) return e7;
|
|
3309
3309
|
for (var t2 = {}, n2 = 0, r2 = Object.entries(e7); n2 < r2.length; n2++) {
|
|
3310
|
-
var i2 =
|
|
3310
|
+
var i2 = Ra(r2[n2], 2), a2 = i2[0], o2 = i2[1];
|
|
3311
3311
|
t2[a2] = typeof o2 == `string` ? o2.replace(/&/g, `&`).replace(/</g, `<`).replace(/>/g, `>`).replace(/"/g, `"`).replace(/'/g, `'`) : o2;
|
|
3312
3312
|
}
|
|
3313
3313
|
return t2;
|
|
3314
3314
|
} }]), e6;
|
|
3315
3315
|
}();
|
|
3316
|
-
|
|
3317
|
-
function
|
|
3316
|
+
$a.type = `i18nFormat`;
|
|
3317
|
+
function eo({ icuOptions: e6 = {}, ...t2 }) {
|
|
3318
3318
|
let { parseErrorHandler: n2 = void 0 } = t2;
|
|
3319
|
-
return
|
|
3319
|
+
return fi(t2, { icu: new $a({ parseErrorHandler: n2, bindI18n: t2.bindI18n, ...e6 }) });
|
|
3320
3320
|
}
|
|
3321
|
-
var
|
|
3321
|
+
var to = (e6, t2, n2, r2) => {
|
|
3322
3322
|
let i2 = [n2, { code: t2, ...r2 || {} }];
|
|
3323
3323
|
if (e6?.services?.logger?.forward) return e6.services.logger.forward(i2, `warn`, `react-i18next::`, true);
|
|
3324
|
-
|
|
3324
|
+
W(i2[0]) && (i2[0] = `react-i18next:: ${i2[0]}`), e6?.services?.logger?.warn ? e6.services.logger.warn(...i2) : console?.warn && console.warn(...i2);
|
|
3325
3325
|
};
|
|
3326
|
-
var
|
|
3327
|
-
var
|
|
3328
|
-
|
|
3326
|
+
var no = {};
|
|
3327
|
+
var ro = (e6, t2, n2, r2) => {
|
|
3328
|
+
W(n2) && no[n2] || (W(n2) && (no[n2] = /* @__PURE__ */ new Date()), to(e6, t2, n2, r2));
|
|
3329
3329
|
};
|
|
3330
|
-
var
|
|
3330
|
+
var io = (e6, t2) => () => {
|
|
3331
3331
|
if (e6.isInitialized) t2();
|
|
3332
3332
|
else {
|
|
3333
3333
|
let n2 = () => {
|
|
@@ -3338,29 +3338,29 @@ var ro = (e6, t2) => () => {
|
|
|
3338
3338
|
e6.on(`initialized`, n2);
|
|
3339
3339
|
}
|
|
3340
3340
|
};
|
|
3341
|
-
var
|
|
3342
|
-
e6.loadNamespaces(t2,
|
|
3341
|
+
var ao = (e6, t2, n2) => {
|
|
3342
|
+
e6.loadNamespaces(t2, io(e6, n2));
|
|
3343
3343
|
};
|
|
3344
|
-
var
|
|
3345
|
-
if (
|
|
3344
|
+
var oo = (e6, t2, n2, r2) => {
|
|
3345
|
+
if (W(n2) && (n2 = [n2]), e6.options.preload && e6.options.preload.indexOf(t2) > -1) return ao(e6, n2, r2);
|
|
3346
3346
|
n2.forEach((t3) => {
|
|
3347
3347
|
e6.options.ns.indexOf(t3) < 0 && e6.options.ns.push(t3);
|
|
3348
|
-
}), e6.loadLanguages(t2,
|
|
3348
|
+
}), e6.loadLanguages(t2, io(e6, r2));
|
|
3349
3349
|
};
|
|
3350
|
-
var
|
|
3350
|
+
var so = (e6, t2, n2 = {}) => !t2.languages || !t2.languages.length ? (ro(t2, `NO_LANGUAGES`, `i18n.languages were undefined or empty`, { languages: t2.languages }), true) : t2.hasLoadedNamespace(e6, { lng: n2.lng, precheck: (t3, r2) => {
|
|
3351
3351
|
if (n2.bindI18n && n2.bindI18n.indexOf(`languageChanging`) > -1 && t3.services.backendConnector.backend && t3.isLanguageChangingTo && !r2(t3.isLanguageChangingTo, e6)) return false;
|
|
3352
3352
|
} });
|
|
3353
|
-
var
|
|
3354
|
-
var
|
|
3355
|
-
var
|
|
3356
|
-
var
|
|
3357
|
-
var
|
|
3358
|
-
var
|
|
3359
|
-
var
|
|
3360
|
-
var
|
|
3361
|
-
var
|
|
3362
|
-
var
|
|
3363
|
-
var
|
|
3353
|
+
var W = (e6) => typeof e6 == `string`;
|
|
3354
|
+
var co = (e6) => typeof e6 == `object` && !!e6;
|
|
3355
|
+
var lo = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
|
|
3356
|
+
var uo = { "&": `&`, "&": `&`, "<": `<`, "<": `<`, ">": `>`, ">": `>`, "'": `'`, "'": `'`, """: `"`, """: `"`, " ": ` `, " ": ` `, "©": `\xA9`, "©": `\xA9`, "®": `\xAE`, "®": `\xAE`, "…": `\u2026`, "…": `\u2026`, "/": `/`, "/": `/` };
|
|
3357
|
+
var fo = (e6) => uo[e6];
|
|
3358
|
+
var po = { bindI18n: `languageChanged`, bindI18nStore: ``, transEmptyNodeValue: ``, transSupportBasicHtmlNodes: true, transWrapTextNodes: ``, transKeepBasicHtmlNodesFor: [`br`, `strong`, `i`, `p`], useSuspense: true, unescape: (e6) => e6.replace(lo, fo) };
|
|
3359
|
+
var mo = () => po;
|
|
3360
|
+
var ho;
|
|
3361
|
+
var go = () => ho;
|
|
3362
|
+
var _o = (0, import_react.createContext)();
|
|
3363
|
+
var vo = class {
|
|
3364
3364
|
constructor() {
|
|
3365
3365
|
this.usedNamespaces = {};
|
|
3366
3366
|
}
|
|
@@ -3373,32 +3373,32 @@ var _o = class {
|
|
|
3373
3373
|
return Object.keys(this.usedNamespaces);
|
|
3374
3374
|
}
|
|
3375
3375
|
};
|
|
3376
|
-
var
|
|
3376
|
+
var yo = (e6, t2) => {
|
|
3377
3377
|
let n2 = (0, import_react.useRef)();
|
|
3378
3378
|
return (0, import_react.useEffect)(() => {
|
|
3379
3379
|
n2.current = t2 ? n2.current : e6;
|
|
3380
3380
|
}, [e6, t2]), n2.current;
|
|
3381
3381
|
};
|
|
3382
|
-
var
|
|
3383
|
-
var
|
|
3384
|
-
var
|
|
3385
|
-
let { i18n: n2 } = t2, { i18n: r2, defaultNS: i2 } = (0, import_react.useContext)(
|
|
3386
|
-
if (a2 && !a2.reportNamespaces && (a2.reportNamespaces = new
|
|
3387
|
-
|
|
3388
|
-
let e7 = (e8, t4) =>
|
|
3382
|
+
var bo = (e6, t2, n2, r2) => e6.getFixedT(t2, n2, r2);
|
|
3383
|
+
var xo = (e6, t2, n2, r2) => (0, import_react.useCallback)(bo(e6, t2, n2, r2), [e6, t2, n2, r2]);
|
|
3384
|
+
var So = (e6, t2 = {}) => {
|
|
3385
|
+
let { i18n: n2 } = t2, { i18n: r2, defaultNS: i2 } = (0, import_react.useContext)(_o) || {}, a2 = n2 || r2 || go();
|
|
3386
|
+
if (a2 && !a2.reportNamespaces && (a2.reportNamespaces = new vo()), !a2) {
|
|
3387
|
+
ro(a2, `NO_I18NEXT_INSTANCE`, `useTranslation: You will need to pass in an i18next instance by using initReactI18next`);
|
|
3388
|
+
let e7 = (e8, t4) => W(t4) ? t4 : co(t4) && W(t4.defaultValue) ? t4.defaultValue : Array.isArray(e8) ? e8[e8.length - 1] : e8, t3 = [e7, {}, false];
|
|
3389
3389
|
return t3.t = e7, t3.i18n = {}, t3.ready = false, t3;
|
|
3390
3390
|
}
|
|
3391
|
-
a2.options.react?.wait &&
|
|
3392
|
-
let c2 = { ...
|
|
3393
|
-
p2 =
|
|
3394
|
-
let m2 = (a2.isInitialized || a2.initializedStoreOnce) && p2.every((e7) =>
|
|
3391
|
+
a2.options.react?.wait && ro(a2, `DEPRECATED_OPTION`, `useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.`);
|
|
3392
|
+
let c2 = { ...mo(), ...a2.options.react, ...t2 }, { useSuspense: d2, keyPrefix: f2 } = c2, p2 = e6 || i2 || a2.options?.defaultNS;
|
|
3393
|
+
p2 = W(p2) ? [p2] : p2 || [`translation`], a2.reportNamespaces.addUsedNamespaces?.(p2);
|
|
3394
|
+
let m2 = (a2.isInitialized || a2.initializedStoreOnce) && p2.every((e7) => so(e7, a2, c2)), h2 = xo(a2, t2.lng || null, c2.nsMode === `fallback` ? p2 : p2[0], f2), g2 = () => h2, _2 = () => bo(a2, t2.lng || null, c2.nsMode === `fallback` ? p2 : p2[0], f2), [v2, y2] = (0, import_react.useState)(g2), b2 = p2.join();
|
|
3395
3395
|
t2.lng && (b2 = `${t2.lng}${b2}`);
|
|
3396
|
-
let x2 =
|
|
3396
|
+
let x2 = yo(b2), S2 = (0, import_react.useRef)(true);
|
|
3397
3397
|
(0, import_react.useEffect)(() => {
|
|
3398
3398
|
let { bindI18n: e7, bindI18nStore: n3 } = c2;
|
|
3399
|
-
S2.current = true, !m2 && !d2 && (t2.lng ?
|
|
3399
|
+
S2.current = true, !m2 && !d2 && (t2.lng ? oo(a2, t2.lng, p2, () => {
|
|
3400
3400
|
S2.current && y2(_2);
|
|
3401
|
-
}) :
|
|
3401
|
+
}) : ao(a2, p2, () => {
|
|
3402
3402
|
S2.current && y2(_2);
|
|
3403
3403
|
})), m2 && x2 && x2 !== b2 && S2.current && y2(_2);
|
|
3404
3404
|
let r3 = () => {
|
|
@@ -3413,131 +3413,131 @@ var xo = (e6, t2 = {}) => {
|
|
|
3413
3413
|
let C2 = [v2, a2, m2];
|
|
3414
3414
|
if (C2.t = v2, C2.i18n = a2, C2.ready = m2, m2 || !m2 && !d2) return C2;
|
|
3415
3415
|
throw new Promise((e7) => {
|
|
3416
|
-
t2.lng ?
|
|
3416
|
+
t2.lng ? oo(a2, t2.lng, p2, () => e7()) : ao(a2, p2, () => e7());
|
|
3417
3417
|
});
|
|
3418
3418
|
};
|
|
3419
|
-
function
|
|
3419
|
+
function Co({ i18n: e6, defaultNS: t2, children: n2 }) {
|
|
3420
3420
|
let i2 = (0, import_react.useMemo)(() => ({ i18n: e6, defaultNS: t2 }), [e6, t2]);
|
|
3421
|
-
return (0, import_react.createElement)(
|
|
3421
|
+
return (0, import_react.createElement)(_o.Provider, { value: i2 }, n2);
|
|
3422
3422
|
}
|
|
3423
|
-
var
|
|
3424
|
-
var
|
|
3425
|
-
function
|
|
3423
|
+
var wo = `wix-warmup-data`;
|
|
3424
|
+
var To = null;
|
|
3425
|
+
function Eo(e6) {
|
|
3426
3426
|
if (typeof document < `u`) try {
|
|
3427
|
-
let t2 = document.getElementById(
|
|
3428
|
-
return t2 ? (
|
|
3427
|
+
let t2 = document.getElementById(wo)?.textContent;
|
|
3428
|
+
return t2 ? (To?.text !== t2 && (To = { text: t2, data: JSON.parse(t2).builderComponentsWarmupData ?? {} }), To.data[e6] ?? void 0) : void 0;
|
|
3429
3429
|
} catch {
|
|
3430
3430
|
return;
|
|
3431
3431
|
}
|
|
3432
3432
|
}
|
|
3433
|
-
var
|
|
3434
|
-
var
|
|
3435
|
-
var
|
|
3436
|
-
var
|
|
3437
|
-
var
|
|
3438
|
-
let t2 = e6.scope ??
|
|
3439
|
-
return n2 || (n2 = /* @__PURE__ */ new Map(),
|
|
3433
|
+
var Do = 5e3;
|
|
3434
|
+
var Oo = 100;
|
|
3435
|
+
var ko = {};
|
|
3436
|
+
var Ao = /* @__PURE__ */ new WeakMap();
|
|
3437
|
+
var jo = (e6) => {
|
|
3438
|
+
let t2 = e6.scope ?? ko, n2 = Ao.get(t2);
|
|
3439
|
+
return n2 || (n2 = /* @__PURE__ */ new Map(), Ao.set(t2, n2)), n2;
|
|
3440
3440
|
};
|
|
3441
|
-
function
|
|
3441
|
+
function Mo({ key: e6, warmupData: t2, fetchData: n2 }) {
|
|
3442
3442
|
if (e6 === null) return n2();
|
|
3443
3443
|
if (t2.isServer) return n2().then((n3) => (t2.set(e6, n3), n3));
|
|
3444
|
-
let r2 =
|
|
3444
|
+
let r2 = jo(t2), i2 = Date.now();
|
|
3445
3445
|
for (let [e7, t3] of r2) t3.expiresAt <= i2 && r2.delete(e7);
|
|
3446
3446
|
let a2 = r2.get(e6);
|
|
3447
3447
|
if (a2) return a2.promise;
|
|
3448
|
-
let o2 =
|
|
3448
|
+
let o2 = Eo(e6);
|
|
3449
3449
|
if (o2 !== void 0) {
|
|
3450
3450
|
let t3 = Rn(o2);
|
|
3451
|
-
return r2.set(e6, { promise: t3, expiresAt: i2 +
|
|
3451
|
+
return r2.set(e6, { promise: t3, expiresAt: i2 + Do }), t3;
|
|
3452
3452
|
}
|
|
3453
3453
|
let s2 = (async () => await t2.get(e6) ?? n2())();
|
|
3454
|
-
r2.size >=
|
|
3454
|
+
r2.size >= Oo && r2.delete(r2.keys().next().value);
|
|
3455
3455
|
let c2 = { promise: s2, expiresAt: 1 / 0 };
|
|
3456
3456
|
return r2.set(e6, c2), s2.then(() => {
|
|
3457
|
-
c2.expiresAt = Date.now() +
|
|
3457
|
+
c2.expiresAt = Date.now() + Do;
|
|
3458
3458
|
}, () => {
|
|
3459
3459
|
r2.get(e6) === c2 && r2.delete(e6);
|
|
3460
3460
|
}), s2;
|
|
3461
3461
|
}
|
|
3462
|
-
var
|
|
3463
|
-
var
|
|
3464
|
-
var
|
|
3465
|
-
var
|
|
3466
|
-
function
|
|
3467
|
-
let n2 =
|
|
3462
|
+
var No = `blog-builder:i18n`;
|
|
3463
|
+
var Po = `translation`;
|
|
3464
|
+
var Fo = () => Eo(No);
|
|
3465
|
+
var Io = /* @__PURE__ */ new Map();
|
|
3466
|
+
function Lo(e6, t2) {
|
|
3467
|
+
let n2 = Io.get(e6);
|
|
3468
3468
|
if (n2) return n2;
|
|
3469
|
-
let r2 =
|
|
3470
|
-
return
|
|
3469
|
+
let r2 = Fo(), i2 = r2?.locale === e6 ? r2.messages : void 0, a2 = eo({ locale: e6, useSuspense: true, ...i2 ? { messages: i2 } : { asyncMessagesLoader: t2 } });
|
|
3470
|
+
return Io.set(e6, a2), a2;
|
|
3471
3471
|
}
|
|
3472
|
-
function
|
|
3473
|
-
let t2 = () => e6.loadNamespaces(
|
|
3472
|
+
function Ro(e6) {
|
|
3473
|
+
let t2 = () => e6.loadNamespaces(Po).then(() => void 0, () => void 0);
|
|
3474
3474
|
return e6.isInitialized ? t2() : new Promise((n2) => {
|
|
3475
3475
|
e6.on(`initialized`, () => void t2().then(n2));
|
|
3476
3476
|
});
|
|
3477
3477
|
}
|
|
3478
|
-
function
|
|
3478
|
+
function zo(e6, t2) {
|
|
3479
3479
|
return e6.getResourceBundle(t2, `translation`) ?? e6.getResourceBundle(`en`, `translation`);
|
|
3480
3480
|
}
|
|
3481
|
-
var
|
|
3481
|
+
var Bo = (e6, t2, n2) => {
|
|
3482
3482
|
let r2 = t2.lastIndexOf(`?`), i2 = e6[r2 === -1 || r2 < t2.lastIndexOf(`/`) ? t2 : t2.slice(0, r2)];
|
|
3483
3483
|
return i2 ? typeof i2 == `function` ? i2() : Promise.resolve(i2) : new Promise((e7, r3) => {
|
|
3484
3484
|
(typeof queueMicrotask == `function` ? queueMicrotask : setTimeout)(r3.bind(null, Error(`Unknown variable dynamic import: ` + t2 + (t2.split(`/`).length === n2 ? `` : `. Note that variables only represent file names one level deep.`))));
|
|
3485
3485
|
});
|
|
3486
3486
|
};
|
|
3487
|
-
var
|
|
3488
|
-
br({ isDev: false, loadMessages: (e6) =>
|
|
3489
|
-
var
|
|
3490
|
-
function
|
|
3491
|
-
let t2 =
|
|
3492
|
-
return t2 || (t2 =
|
|
3487
|
+
var Vo = (e6) => e6.split(`-`)[0] ?? e6;
|
|
3488
|
+
br({ isDev: false, loadMessages: (e6) => Bo(Object.assign({ "../assets/locale/messages_en.dev.json": () => gn(() => Promise.resolve().then(() => Ko), void 0, import_meta.url), "../assets/locale/messages_en.json": () => gn(() => Promise.resolve().then(() => Jo), void 0, import_meta.url) }), `../assets/locale/messages_${Vo(e6)}.json`, 4), loadDevMessages: (e6) => Bo(Object.assign({ "../assets/locale/messages_en.dev.json": () => gn(() => Promise.resolve().then(() => Ko), void 0, import_meta.url) }), `../assets/locale/messages_${Vo(e6)}.dev.json`, 4) });
|
|
3489
|
+
var Ho = /* @__PURE__ */ new WeakMap();
|
|
3490
|
+
function Uo(e6) {
|
|
3491
|
+
let t2 = Ho.get(e6);
|
|
3492
|
+
return t2 || (t2 = Ro(e6).finally(() => Ho.delete(e6)), Ho.set(e6, t2)), t2;
|
|
3493
3493
|
}
|
|
3494
|
-
function
|
|
3494
|
+
function Wo({ i18n: e6, locale: t2 }) {
|
|
3495
3495
|
let n2 = Gn(), r2 = _r();
|
|
3496
3496
|
if (!n2) return null;
|
|
3497
|
-
if (!e6.isInitialized || !e6.hasLoadedNamespace(`translation`)) throw
|
|
3498
|
-
let i2 =
|
|
3499
|
-
return i2 && r2.set(
|
|
3500
|
-
}
|
|
3501
|
-
function
|
|
3502
|
-
let t2 = mr(), n2 =
|
|
3503
|
-
return { i18n:
|
|
3504
|
-
}
|
|
3505
|
-
var
|
|
3506
|
-
var
|
|
3507
|
-
var
|
|
3508
|
-
var
|
|
3509
|
-
var
|
|
3510
|
-
var
|
|
3511
|
-
var
|
|
3512
|
-
let n2 =
|
|
3497
|
+
if (!e6.isInitialized || !e6.hasLoadedNamespace(`translation`)) throw Uo(e6);
|
|
3498
|
+
let i2 = zo(e6, t2);
|
|
3499
|
+
return i2 && r2.set(No, { locale: t2, messages: i2 }), null;
|
|
3500
|
+
}
|
|
3501
|
+
function Go(e6) {
|
|
3502
|
+
let t2 = mr(), n2 = Fo()?.locale ?? t2 ?? `en`;
|
|
3503
|
+
return { i18n: Lo(n2, e6), locale: n2 };
|
|
3504
|
+
}
|
|
3505
|
+
var Ko = g({ default: () => qo });
|
|
3506
|
+
var qo = { "post.time-to-read": `{count, plural, one {# min read} other {# min read}}`, "post.view-count": `{count, plural, one {{formatted} view} other {{formatted} views}}`, "post.comment-count": `{count, plural, one {{formatted} comment} other {{formatted} comments}}`, "post.like-count": `{count, plural, one {{formatted} like} other {{formatted} likes}}`, "post-list.empty-state.title": `No posts yet`, "post-list.empty-state.description": `Once posts are published, they will appear here.`, "related-posts.empty-state.title": `No related posts yet`, "related-posts.empty-state.description": `Once more posts are published, they will appear here.`, "post-actions.like": `Like post`, "post-actions.unlike": `Unlike post`, "post-actions.share": `Share post`, "post-actions.share-dialog": `Share post`, "post-actions.link-copied": `Link copied`, "post-actions.copy-manually": `Copy the link below to share this post.`, "post-actions.link-label": `Post link`, "post-actions.copy-link": `Copy link`, "post-actions.close": `Close`, "post-counters.loading-likes": `Loading likes`, "cover-media.play": `Play video`, "cover-media.placeholder-alt": `Post cover image`, "post-comments.loading": `Loading comments\u2026`, "post-comments.no-post": `No post resolved for this URL yet.`, "post-comments.unavailable": `Comments are unavailable \u2014 no app instance.`, "post-comments.demo-notice": `Sample comments are shown while editing. Visitors will see real comments.`, "canvas.post-title": `Post Title`, "canvas.author-name": `Author Name`, "canvas.excerpt": `Share the key idea of your post here. This short summary shows on feed cards and in search results, and tells readers why the post is worth their time.`, "canvas.content": `This is where the full post appears. Write your story here, add images, galleries and video from the dashboard, and use headings and quotes to keep it easy to read.`, "canvas.category": `Category`, "canvas.category-numbered": `Category {number}`, "canvas.tag-numbered": `Tag {number}`, "canvas.author-photo-alt": `Author photo`, "category-header.all-posts": `All Posts` };
|
|
3507
|
+
var Jo = g({ default: () => Xo, title: () => Yo });
|
|
3508
|
+
var Yo = `My App`;
|
|
3509
|
+
var Xo = { "canvas.category": `Category`, "post-list.empty-state.description": `Once posts are published, they will appear here.`, "canvas.tag-numbered": `Tag {number}`, "cover-media.play": `Play video`, "post-comments.unavailable": `Comments are unavailable \u2014 no app instance.`, "post-counters.loading-likes": `Loading likes`, "post-comments.loading": `Loading comments\u2026`, "post-actions.like": `Like post`, "canvas.content": `This is where the full post appears. Write your story here, add images, galleries and video from the dashboard, and use headings and quotes to keep it easy to read.`, "related-posts.empty-state.title": `No related posts yet`, "post.time-to-read": `{count, plural, one {# min read} other {# min read}}`, "post-actions.link-copied": `Link copied`, "category-header.all-posts": `All Posts`, "post-actions.copy-manually": `Copy the link below to share this post.`, "post-actions.copy-link": `Copy link`, "cover-media.placeholder-alt": `Post cover image`, "post-actions.link-label": `Post link`, "post-list.empty-state.title": `No posts yet`, "post-actions.share-dialog": `Share post`, "canvas.post-title": `Post Title`, "post-actions.unlike": `Unlike post`, "post-comments.no-post": `No post resolved for this URL yet.`, "post.like-count": `{count, plural, one {{formatted} like} other {{formatted} likes}}`, "canvas.category-numbered": `Category {number}`, "post.comment-count": `{count, plural, one {{formatted} comment} other {{formatted} comments}}`, "post-actions.share": `Share post`, "post.view-count": `{count, plural, one {{formatted} view} other {{formatted} views}}`, "post-actions.close": `Close`, "canvas.category-description": `Add a short description of this category so readers know what they will find here. It shows under the category title, above the posts.`, "canvas.author-photo-alt": `Author photo`, "canvas.author-name": `Author Name`, "post-comments.demo-notice": `Sample comments are shown while editing. Visitors will see real comments.`, title: Yo, "related-posts.empty-state.description": `Once more posts are published, they will appear here.`, "canvas.excerpt": `Share the key idea of your post here. This short summary shows on feed cards and in search results, and tells readers why the post is worth their time.` };
|
|
3510
|
+
var Zo = Object.assign({ "../assets/locale/messages_en.dev.json": Ko, "../assets/locale/messages_en.json": Jo });
|
|
3511
|
+
var Qo = (e6, t2) => {
|
|
3512
|
+
let n2 = Zo[`../assets/locale/messages_${Vo(e6)}${t2}.json`];
|
|
3513
3513
|
return n2 ? Promise.resolve(n2) : Promise.reject(Error(`no messages file`));
|
|
3514
3514
|
};
|
|
3515
|
-
var
|
|
3516
|
-
var
|
|
3517
|
-
var
|
|
3518
|
-
var
|
|
3519
|
-
let n2 = (n3) => (r2) => e6(n3, { count: r2, formatted:
|
|
3520
|
-
return { timeToRead: (t3) => e6(
|
|
3515
|
+
var $o = br({ isDev: false, loadMessages: (e6) => Qo(e6, ``), loadDevMessages: (e6) => Qo(e6, `.dev`) });
|
|
3516
|
+
var es = (e6, t2, n2) => typeof e6 != `number` || !Number.isFinite(e6) || e6 < 0 ? `` : new Intl.NumberFormat(n2, t2 === `compact` ? { notation: `compact`, maximumFractionDigits: 1 } : void 0).format(e6);
|
|
3517
|
+
var G = { timeToRead: `post.time-to-read`, viewCount: `post.view-count`, commentCount: `post.comment-count`, likeCount: `post.like-count`, noPostsTitle: `post-list.empty-state.title`, noPostsDescription: `post-list.empty-state.description`, noRelatedPostsTitle: `related-posts.empty-state.title`, noRelatedPostsDescription: `related-posts.empty-state.description`, canvasPostTitle: `canvas.post-title`, canvasAuthorName: `canvas.author-name`, canvasExcerpt: `canvas.excerpt`, canvasContent: `canvas.content`, canvasCategory: `canvas.category`, canvasCategoryNumbered: `canvas.category-numbered`, canvasTagNumbered: `canvas.tag-numbered`, canvasCoverAlt: `cover-media.placeholder-alt`, canvasAuthorPhotoAlt: `canvas.author-photo-alt` };
|
|
3518
|
+
var ts = (e6, t2) => {
|
|
3519
|
+
let n2 = (n3) => (r2) => e6(n3, { count: r2, formatted: es(r2, `full`, t2) });
|
|
3520
|
+
return { timeToRead: (t3) => e6(G.timeToRead, { count: t3 }), viewCount: n2(G.viewCount), commentCount: n2(G.commentCount), likeCount: n2(G.likeCount), noPostsEmptyState: () => ({ title: e6(G.noPostsTitle), description: e6(G.noPostsDescription) }), noRelatedPostsEmptyState: () => ({ title: e6(G.noRelatedPostsTitle), description: e6(G.noRelatedPostsDescription) }), canvas: { postTitle: () => e6(G.canvasPostTitle), authorName: () => e6(G.canvasAuthorName), excerpt: () => e6(G.canvasExcerpt), content: () => e6(G.canvasContent), category: () => e6(G.canvasCategory), categoryNumbered: (t3) => e6(G.canvasCategoryNumbered, { number: t3 }), tagNumbered: (t3) => e6(G.canvasTagNumbered, { number: t3 }), coverAlt: () => e6(G.canvasCoverAlt), authorPhotoAlt: () => e6(G.canvasAuthorPhotoAlt) } };
|
|
3521
3521
|
};
|
|
3522
|
-
function
|
|
3522
|
+
function ns(e6) {
|
|
3523
3523
|
return Object.keys(e6).length === 1 && `$and` in e6 && Array.isArray(e6.$and);
|
|
3524
3524
|
}
|
|
3525
|
-
function
|
|
3525
|
+
function rs(e6) {
|
|
3526
3526
|
return Object.keys(e6).length === 1 && `$or` in e6 && Array.isArray(e6.$or);
|
|
3527
3527
|
}
|
|
3528
|
-
function
|
|
3528
|
+
function is(e6) {
|
|
3529
3529
|
return Object.keys(e6).length === 1 && `$not` in e6 && typeof e6.$not == `object`;
|
|
3530
3530
|
}
|
|
3531
|
-
function
|
|
3532
|
-
return e6 === void 0 || Object.keys(e6).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e6 : { $and: [...
|
|
3531
|
+
function K(e6, t2) {
|
|
3532
|
+
return e6 === void 0 || Object.keys(e6).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e6 : { $and: [...ns(e6) ? e6.$and : [e6], ...ns(t2) ? t2.$and : [t2]] };
|
|
3533
3533
|
}
|
|
3534
|
-
function
|
|
3535
|
-
return e6 === void 0 || Object.keys(e6).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e6 : { $or: [...
|
|
3534
|
+
function as(e6, t2) {
|
|
3535
|
+
return e6 === void 0 || Object.keys(e6).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e6 : { $or: [...rs(e6) ? e6.$or : [e6], ...rs(t2) ? t2.$or : [t2]] };
|
|
3536
3536
|
}
|
|
3537
|
-
function
|
|
3538
|
-
if (e6 !== void 0 && Object.keys(e6).length !== 0) return
|
|
3537
|
+
function os(e6) {
|
|
3538
|
+
if (e6 !== void 0 && Object.keys(e6).length !== 0) return is(e6) ? e6.$not : { $not: e6 };
|
|
3539
3539
|
}
|
|
3540
|
-
var
|
|
3540
|
+
var ss = class {
|
|
3541
3541
|
_items;
|
|
3542
3542
|
_fetchNextPage;
|
|
3543
3543
|
_fetchPrevPage;
|
|
@@ -3567,7 +3567,7 @@ var os = class {
|
|
|
3567
3567
|
return await this._fetchPrevPage();
|
|
3568
3568
|
}
|
|
3569
3569
|
};
|
|
3570
|
-
var
|
|
3570
|
+
var cs = class extends ss {
|
|
3571
3571
|
_nextCursor;
|
|
3572
3572
|
_prevCursor;
|
|
3573
3573
|
cursors;
|
|
@@ -3581,7 +3581,7 @@ var ss = class extends os {
|
|
|
3581
3581
|
return !!this._prevCursor;
|
|
3582
3582
|
}
|
|
3583
3583
|
};
|
|
3584
|
-
var
|
|
3584
|
+
var ls = class extends ss {
|
|
3585
3585
|
_totalCount;
|
|
3586
3586
|
_offset;
|
|
3587
3587
|
_tooManyToCount;
|
|
@@ -3604,76 +3604,76 @@ var cs = class extends os {
|
|
|
3604
3604
|
return !!(this._limit !== 0 && this.currentPage && this.currentPage > 0);
|
|
3605
3605
|
}
|
|
3606
3606
|
};
|
|
3607
|
-
function
|
|
3607
|
+
function us(e6) {
|
|
3608
3608
|
let t2 = (n2) => ({ query: n2, async find() {
|
|
3609
3609
|
try {
|
|
3610
3610
|
let r2 = e6.requestTransformer(e6.pagingMethod === `CURSOR` && n2.cursorPaging.cursor ? { cursorPaging: n2.cursorPaging } : n2), i2 = await e6.func(r2), { [Xe]: a2, [Ze]: o2 } = e6.responseTransformer(i2);
|
|
3611
3611
|
if (e6.pagingMethod === `OFFSET`) {
|
|
3612
3612
|
let e7 = n2;
|
|
3613
|
-
return new
|
|
3613
|
+
return new ls({ items: a2 ?? [], fetchNextPage: () => t2({ ...e7, paging: { offset: e7.paging.offset + e7.paging.limit, limit: e7.paging.limit } }).find(), fetchPrevPage: () => t2({ ...n2, paging: { offset: Math.max(e7.paging.offset - e7.paging.limit, 0), limit: e7.paging.limit } }).find(), offset: e7.paging.offset, limit: e7.paging.limit, totalCount: o2?.total, tooManyToCount: o2?.tooManyToCount, originQuery: this });
|
|
3614
3614
|
}
|
|
3615
3615
|
let s2 = n2.cursorPaging;
|
|
3616
|
-
return new
|
|
3616
|
+
return new cs({ items: a2 ?? [], limit: s2.limit, originQuery: this, fetchNextPage: () => t2({ ...n2, cursorPaging: { cursor: o2?.cursors?.next ?? void 0, limit: s2.limit } }).find(), fetchPrevPage: () => t2({ ...n2, cursorPaging: { cursor: o2?.cursors?.prev ?? void 0, limit: s2.limit } }).find(), prevCursor: o2?.cursors?.prev ?? void 0, nextCursor: o2?.cursors?.next ?? void 0 });
|
|
3617
3617
|
} catch (t3) {
|
|
3618
3618
|
throw e6.errorTransformer(t3);
|
|
3619
3619
|
}
|
|
3620
3620
|
}, skipTo(e7) {
|
|
3621
3621
|
return t2({ ...n2, cursorPaging: { cursor: e7, limit: n2.cursorPaging.limit } });
|
|
3622
3622
|
}, eq(r2, i2) {
|
|
3623
|
-
let a2 = i2 === void 0 ? null : i2, o2 = { [
|
|
3624
|
-
return t2({ ...n2, filter:
|
|
3623
|
+
let a2 = i2 === void 0 ? null : i2, o2 = { [q(e6.transformationPaths, r2)]: a2 };
|
|
3624
|
+
return t2({ ...n2, filter: K(n2.filter, o2) });
|
|
3625
3625
|
}, ne(r2, i2) {
|
|
3626
|
-
let a2 = i2 === void 0 ? null : i2, o2 = { [
|
|
3627
|
-
return t2({ ...n2, filter:
|
|
3626
|
+
let a2 = i2 === void 0 ? null : i2, o2 = { [q(e6.transformationPaths, r2)]: { $ne: a2 } };
|
|
3627
|
+
return t2({ ...n2, filter: K(n2.filter, o2) });
|
|
3628
3628
|
}, ge(r2, i2) {
|
|
3629
|
-
let a2 = { [
|
|
3630
|
-
return t2({ ...n2, filter:
|
|
3629
|
+
let a2 = { [q(e6.transformationPaths, r2)]: { $gte: i2 } };
|
|
3630
|
+
return t2({ ...n2, filter: K(n2.filter, a2) });
|
|
3631
3631
|
}, gt(r2, i2) {
|
|
3632
|
-
let a2 = { [
|
|
3633
|
-
return t2({ ...n2, filter:
|
|
3632
|
+
let a2 = { [q(e6.transformationPaths, r2)]: { $gt: i2 } };
|
|
3633
|
+
return t2({ ...n2, filter: K(n2.filter, a2) });
|
|
3634
3634
|
}, le(r2, i2) {
|
|
3635
|
-
let a2 = { [
|
|
3636
|
-
return t2({ ...n2, filter:
|
|
3635
|
+
let a2 = { [q(e6.transformationPaths, r2)]: { $lte: i2 } };
|
|
3636
|
+
return t2({ ...n2, filter: K(n2.filter, a2) });
|
|
3637
3637
|
}, lt(r2, i2) {
|
|
3638
|
-
let a2 = { [
|
|
3639
|
-
return t2({ ...n2, filter:
|
|
3638
|
+
let a2 = { [q(e6.transformationPaths, r2)]: { $lt: i2 } };
|
|
3639
|
+
return t2({ ...n2, filter: K(n2.filter, a2) });
|
|
3640
3640
|
}, isNotEmpty(e7) {
|
|
3641
3641
|
return this.ne(e7, null);
|
|
3642
3642
|
}, isEmpty(e7) {
|
|
3643
3643
|
return this.eq(e7, null);
|
|
3644
3644
|
}, startsWith(r2, i2) {
|
|
3645
|
-
let a2 = { [
|
|
3646
|
-
return t2({ ...n2, filter:
|
|
3645
|
+
let a2 = { [q(e6.transformationPaths, r2)]: { $startsWith: i2 } };
|
|
3646
|
+
return t2({ ...n2, filter: K(n2.filter, a2) });
|
|
3647
3647
|
}, endsWith(r2, i2) {
|
|
3648
|
-
let a2 = { [
|
|
3649
|
-
return t2({ ...n2, filter:
|
|
3648
|
+
let a2 = { [q(e6.transformationPaths, r2)]: { $endsWith: i2 } };
|
|
3649
|
+
return t2({ ...n2, filter: K(n2.filter, a2) });
|
|
3650
3650
|
}, contains(r2, i2) {
|
|
3651
|
-
let a2 = { [
|
|
3652
|
-
return t2({ ...n2, filter:
|
|
3651
|
+
let a2 = { [q(e6.transformationPaths, r2)]: { $contains: i2 } };
|
|
3652
|
+
return t2({ ...n2, filter: K(n2.filter, a2) });
|
|
3653
3653
|
}, hasSome(r2, ...i2) {
|
|
3654
|
-
let a2 = { [
|
|
3655
|
-
return t2({ ...n2, filter:
|
|
3654
|
+
let a2 = { [q(e6.transformationPaths, r2)]: { $hasSome: Array.isArray(i2[0]) ? i2[0] : i2 } };
|
|
3655
|
+
return t2({ ...n2, filter: K(n2.filter, a2) });
|
|
3656
3656
|
}, hasAll(r2, ...i2) {
|
|
3657
|
-
let a2 = { [
|
|
3658
|
-
return t2({ ...n2, filter:
|
|
3657
|
+
let a2 = { [q(e6.transformationPaths, r2)]: { $hasAll: Array.isArray(i2[0]) ? i2[0] : i2 } };
|
|
3658
|
+
return t2({ ...n2, filter: K(n2.filter, a2) });
|
|
3659
3659
|
}, between(e7, t3, n3) {
|
|
3660
3660
|
return this.ge(e7, t3).lt(e7, n3);
|
|
3661
3661
|
}, in(r2, i2) {
|
|
3662
|
-
let a2 = { [
|
|
3663
|
-
return t2({ ...n2, filter:
|
|
3662
|
+
let a2 = { [q(e6.transformationPaths, r2)]: { $in: i2 } };
|
|
3663
|
+
return t2({ ...n2, filter: K(n2.filter, a2) });
|
|
3664
3664
|
}, exists(r2, i2 = true) {
|
|
3665
|
-
let a2 = { [
|
|
3666
|
-
return t2({ ...n2, filter:
|
|
3665
|
+
let a2 = { [q(e6.transformationPaths, r2)]: { $exists: i2 } };
|
|
3666
|
+
return t2({ ...n2, filter: K(n2.filter, a2) });
|
|
3667
3667
|
}, or(e7) {
|
|
3668
|
-
return t2({ ...n2, filter:
|
|
3668
|
+
return t2({ ...n2, filter: as(n2.filter, e7.query.filter) });
|
|
3669
3669
|
}, and(e7) {
|
|
3670
|
-
return t2({ ...n2, filter:
|
|
3670
|
+
return t2({ ...n2, filter: K(n2.filter, e7.query.filter) });
|
|
3671
3671
|
}, not(e7) {
|
|
3672
|
-
return t2({ ...n2, filter:
|
|
3672
|
+
return t2({ ...n2, filter: os(e7.query.filter) });
|
|
3673
3673
|
}, ascending(...r2) {
|
|
3674
|
-
return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName:
|
|
3674
|
+
return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName: q(e6.transformationPaths, t3), order: `ASC` }))] });
|
|
3675
3675
|
}, descending(...r2) {
|
|
3676
|
-
return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName:
|
|
3676
|
+
return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName: q(e6.transformationPaths, t3), order: `DESC` }))] });
|
|
3677
3677
|
}, skip(e7) {
|
|
3678
3678
|
return t2({ ...n2, paging: { offset: e7, limit: `limit` in n2.paging ? n2.paging.limit : 50 } });
|
|
3679
3679
|
}, limit(r2) {
|
|
@@ -3686,82 +3686,82 @@ function ls(e6) {
|
|
|
3686
3686
|
} });
|
|
3687
3687
|
return t2({ filter: {}, ...e6.pagingMethod === `OFFSET` ? { paging: { offset: 0, limit: 50 } } : { cursorPaging: { limit: 50 } } });
|
|
3688
3688
|
}
|
|
3689
|
-
function
|
|
3689
|
+
function q(e6, t2) {
|
|
3690
3690
|
let n2 = Object.entries(e6).find(([e7]) => e7 === t2 || t2.startsWith(`${e7}.`))?.[0];
|
|
3691
3691
|
return n2 ? t2.replace(n2, e6[n2]) : $e(t2, { ...e6, ...Qe });
|
|
3692
3692
|
}
|
|
3693
|
-
var
|
|
3694
|
-
var
|
|
3695
|
-
var
|
|
3696
|
-
var
|
|
3697
|
-
var
|
|
3698
|
-
var
|
|
3699
|
-
function
|
|
3693
|
+
var ds = `filter`;
|
|
3694
|
+
var fs = `sort`;
|
|
3695
|
+
var ps = `cursorPaging`;
|
|
3696
|
+
var ms = `paging`;
|
|
3697
|
+
var hs = [ds, fs, ps];
|
|
3698
|
+
var gs = [ds, fs, ms];
|
|
3699
|
+
function _s(e6, t2) {
|
|
3700
3700
|
return !e6 || typeof e6 != `object` ? false : t2.some((t3) => e6.hasOwnProperty(t3));
|
|
3701
3701
|
}
|
|
3702
|
-
function _s(e6) {
|
|
3703
|
-
return gs(e6, ms);
|
|
3704
|
-
}
|
|
3705
3702
|
function vs(e6) {
|
|
3706
|
-
return
|
|
3703
|
+
return _s(e6, hs);
|
|
3707
3704
|
}
|
|
3708
3705
|
function ys(e6) {
|
|
3706
|
+
return _s(e6, gs);
|
|
3707
|
+
}
|
|
3708
|
+
function bs(e6) {
|
|
3709
3709
|
let { hasOptionsParameter: t2 } = e6;
|
|
3710
3710
|
return function(...n2) {
|
|
3711
|
-
return t2 ?
|
|
3711
|
+
return t2 ? Ss(n2, e6) : xs(n2, e6);
|
|
3712
3712
|
};
|
|
3713
3713
|
}
|
|
3714
|
-
function
|
|
3714
|
+
function xs(e6, t2) {
|
|
3715
3715
|
return e6.length === 0 ? t2.builderQueryFunction() : t2.typedQueryFunction(e6[0]);
|
|
3716
3716
|
}
|
|
3717
|
-
function
|
|
3717
|
+
function Ss(e6, t2) {
|
|
3718
3718
|
switch (e6.length) {
|
|
3719
3719
|
case 0:
|
|
3720
3720
|
return t2.builderQueryFunction();
|
|
3721
3721
|
case 1:
|
|
3722
|
-
return
|
|
3722
|
+
return vs(e6[0]) || ys(e6[0]) ? t2.typedQueryFunction(e6[0]) : t2.builderQueryFunction(e6[0]);
|
|
3723
3723
|
default:
|
|
3724
3724
|
return t2.typedQueryFunction(e6[0], e6[1]);
|
|
3725
3725
|
}
|
|
3726
3726
|
}
|
|
3727
|
-
function
|
|
3727
|
+
function J(e6) {
|
|
3728
3728
|
if (!e6) return;
|
|
3729
3729
|
let t2 = ``;
|
|
3730
3730
|
return (e6.filename || e6.altText) && (t2 = `/${encodeURIComponent(e6.filename || e6.altText)}`), e6.id ? `wix:image://v1/${e6.id}${t2}#originWidth=${e6.width}&originHeight=${e6.height}` : e6.url;
|
|
3731
3731
|
}
|
|
3732
|
-
function
|
|
3732
|
+
function Y(e6) {
|
|
3733
3733
|
if (e6) return [`http://`, `https://`].some((t2) => e6.base?.startsWith(t2)) ? `${e6.base}${e6.path}` : `http://${e6.base}${e6.path}`;
|
|
3734
3734
|
}
|
|
3735
|
-
var
|
|
3736
|
-
var
|
|
3737
|
-
function
|
|
3735
|
+
var Cs = [{ path: `categories.updatedDate` }, { path: `categories.coverImage.urlExpirationDate` }];
|
|
3736
|
+
var ws = [{ path: `categories.coverImage.focalPoint.x` }, { path: `categories.coverImage.focalPoint.y` }];
|
|
3737
|
+
function Ts(e6) {
|
|
3738
3738
|
return It(Object.assign(e6, { domainToMappings: { "manage._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }, { srcPath: `/_api/communities-blog-node-api/v3/bulk/category`, destPath: `/v3/bulk/category` }, { srcPath: `/_api/communities-blog-node-api/v3/bulk/categories`, destPath: `/v3/bulk/categories` }], "*.pub.wix-code.com": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "bo._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "wixbo.ai": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "wix-bo.com": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "editor.wixapps.net": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "editor._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "blocks._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "create.editorx": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "social-blog._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], _: [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "apps._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "www._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "www.wixapis.com": [{ srcPath: `/blog/v3/categories`, destPath: `/v3/categories` }, { srcPath: `/v3/categories`, destPath: `/v3/categories` }], "*.dev.wix-code.com": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "api._api_base_domain_": [{ srcPath: `/category-service-api-proxy`, destPath: `` }] } }));
|
|
3739
3739
|
}
|
|
3740
|
-
var
|
|
3741
|
-
function
|
|
3740
|
+
var Es = `@wix/auto_sdk_blog_categories`;
|
|
3741
|
+
function Ds(e6) {
|
|
3742
3742
|
function t2({ host: t3 }) {
|
|
3743
|
-
return { entityFqdn: `wix.blog.v3.category`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.CategoryService.ListCategories`, packageName:
|
|
3743
|
+
return { entityFqdn: `wix.blog.v3.category`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.CategoryService.ListCategories`, packageName: Es, migrationOptions: { optInTransformResponse: true }, url: Ts({ protoPath: `/v3/categories`, data: e6, host: t3 }), params: Ft(e6), transformResponse: (e7) => A(e7, [{ transformFn: k, paths: Cs }, { transformFn: N, paths: ws }]) };
|
|
3744
3744
|
}
|
|
3745
3745
|
return t2;
|
|
3746
3746
|
}
|
|
3747
|
-
var
|
|
3748
|
-
var
|
|
3749
|
-
async function
|
|
3750
|
-
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 =
|
|
3747
|
+
var Os = [{ path: `categories.url` }, { path: `categories.translations.url` }];
|
|
3748
|
+
var ks = [{ path: `categories.coverImage` }];
|
|
3749
|
+
async function As(e6) {
|
|
3750
|
+
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Ds(D({ paging: e6?.paging, fieldsets: e6?.fieldsets, language: e6?.language }));
|
|
3751
3751
|
n2?.onSiteCall?.();
|
|
3752
3752
|
try {
|
|
3753
3753
|
let e7 = await t2.request(r2);
|
|
3754
|
-
return n2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn:
|
|
3754
|
+
return n2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: Y, paths: Os }, { transformFn: J, paths: ks }]));
|
|
3755
3755
|
} catch (e7) {
|
|
3756
3756
|
let t3 = j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { paging: `$[0].paging`, fieldsets: `$[0].fieldsets`, language: `$[0].language` }, singleArgumentUnchanged: false }, [`options`]);
|
|
3757
3757
|
throw n2?.onError?.(e7), t3;
|
|
3758
3758
|
}
|
|
3759
3759
|
}
|
|
3760
|
-
function
|
|
3761
|
-
return (t2) =>
|
|
3760
|
+
function js(e6) {
|
|
3761
|
+
return (t2) => As(t2, { httpClient: e6 });
|
|
3762
3762
|
}
|
|
3763
|
-
var
|
|
3764
|
-
function
|
|
3763
|
+
var Ms = M(js);
|
|
3764
|
+
function X(e6) {
|
|
3765
3765
|
if (!e6) return;
|
|
3766
3766
|
let t2 = ``;
|
|
3767
3767
|
e6?.filename && (t2 = `/${encodeURIComponent(e6.filename)}`);
|
|
@@ -3818,7 +3818,7 @@ async function Zs(e6, t2) {
|
|
|
3818
3818
|
r2?.onSiteCall?.();
|
|
3819
3819
|
try {
|
|
3820
3820
|
let e7 = await n2.request(i2);
|
|
3821
|
-
return r2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn:
|
|
3821
|
+
return r2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: Y, paths: Gs }, { transformFn: J, paths: Ks }, { transformFn: X, paths: qs }]), [`post.richContent`, `post.rich_content`]);
|
|
3822
3822
|
} catch (e7) {
|
|
3823
3823
|
let t3 = j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { slug: `$[0]`, fieldsets: `$[1].fieldsets`, language: `$[1].language` }, singleArgumentUnchanged: false }, [`slug`, `options`]);
|
|
3824
3824
|
throw r2?.onError?.(e7), t3;
|
|
@@ -3829,7 +3829,7 @@ async function Qs(e6) {
|
|
|
3829
3829
|
n2?.onSiteCall?.();
|
|
3830
3830
|
try {
|
|
3831
3831
|
let e7 = await t2.request(r2);
|
|
3832
|
-
return n2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn:
|
|
3832
|
+
return n2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: Y, paths: Js }, { transformFn: J, paths: Ys }, { transformFn: X, paths: Xs }]), [`posts.richContent`, `posts.rich_content`]);
|
|
3833
3833
|
} catch (e7) {
|
|
3834
3834
|
let t3 = j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { featured: `$[0].featured`, hashtags: `$[0].hashtags`, categoryIds: `$[0].categoryIds`, tagIds: `$[0].tagIds`, sort: `$[0].sort`, paging: `$[0].paging`, language: `$[0].language`, memberId: `$[0].memberId`, fieldsets: `$[0].fieldsets` }, singleArgumentUnchanged: false }, [`options`]);
|
|
3835
3835
|
throw n2?.onError?.(e7), t3;
|
|
@@ -3837,7 +3837,7 @@ async function Qs(e6) {
|
|
|
3837
3837
|
}
|
|
3838
3838
|
function $s(e6) {
|
|
3839
3839
|
let { httpClient: t2, sideEffects: n2 } = arguments[1];
|
|
3840
|
-
return
|
|
3840
|
+
return us({ func: async (r2) => {
|
|
3841
3841
|
let i2 = Ws({ ...r2, ...e6 ?? {} });
|
|
3842
3842
|
n2?.onSiteCall?.();
|
|
3843
3843
|
try {
|
|
@@ -3850,7 +3850,7 @@ function $s(e6) {
|
|
|
3850
3850
|
let n3 = [t3, e6];
|
|
3851
3851
|
return D({ ...n3?.[1], query: n3?.[0] }, []);
|
|
3852
3852
|
}, responseTransformer: ({ data: e7 }) => {
|
|
3853
|
-
let t3 = O(A(e7, [{ transformFn:
|
|
3853
|
+
let t3 = O(A(e7, [{ transformFn: Y, paths: Js }, { transformFn: J, paths: Ys }, { transformFn: X, paths: Xs }]), [`posts.richContent`, `posts.rich_content`]);
|
|
3854
3854
|
return { items: t3?.posts, pagingMetadata: t3?.pagingMetadata };
|
|
3855
3855
|
}, errorTransformer: (e7) => {
|
|
3856
3856
|
throw j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
|
|
@@ -3861,7 +3861,7 @@ async function ec(e6, t2) {
|
|
|
3861
3861
|
r2?.onSiteCall?.();
|
|
3862
3862
|
try {
|
|
3863
3863
|
let e7 = await n2.request(i2);
|
|
3864
|
-
return r2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn:
|
|
3864
|
+
return r2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: Y, paths: Js }, { transformFn: J, paths: Ys }, { transformFn: X, paths: Xs }]), [`posts.richContent`, `posts.rich_content`]);
|
|
3865
3865
|
} catch (e7) {
|
|
3866
3866
|
let t3 = j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`, `options`]);
|
|
3867
3867
|
throw r2?.onError?.(e7), t3;
|
|
@@ -3880,7 +3880,7 @@ function ic(e6) {
|
|
|
3880
3880
|
return (t2, n2) => ec(t2, n2, { httpClient: e6 });
|
|
3881
3881
|
}
|
|
3882
3882
|
function ac(e6) {
|
|
3883
|
-
let t2 =
|
|
3883
|
+
let t2 = bs({ builderQueryFunction: (t3) => rc(e6)(t3), typedQueryFunction: (t3, n3) => ic(e6)(t3, n3), hasOptionsParameter: true });
|
|
3884
3884
|
function n2(e7, n3) {
|
|
3885
3885
|
return t2(...arguments);
|
|
3886
3886
|
}
|
|
@@ -3889,23 +3889,37 @@ function ac(e6) {
|
|
|
3889
3889
|
var oc = M(tc);
|
|
3890
3890
|
var sc = M(nc);
|
|
3891
3891
|
var cc = M(ac);
|
|
3892
|
-
var lc = [{ path: `
|
|
3893
|
-
var uc =
|
|
3894
|
-
|
|
3892
|
+
var lc = (e6) => O(A(e6, [{ transformFn: Y, paths: [{ path: `posts.url` }, { path: `posts.translations.url` }] }, { transformFn: J, paths: [{ path: `posts.heroImage` }, { path: `posts.media.wixMedia.image` }] }, { transformFn: X, paths: [{ path: `posts.media.wixMedia.videoV2` }] }]), [`posts.richContent`, `posts.rich_content`]).posts ?? [];
|
|
3893
|
+
var uc = `https://blog.wixsite.com/blog-demo-posts`;
|
|
3894
|
+
var dc = M((e6) => async (t2) => {
|
|
3895
|
+
let n2 = await e6.fetchWithAuth(`${globalThis.location.origin}/_serverless/blog-demo-posts/v3/demo-posts?${Ft(t2)}`);
|
|
3896
|
+
if (!n2.ok) throw Error(`ListDemoPosts answered ${n2.status}`);
|
|
3897
|
+
return lc(await n2.json()).filter((e7) => !e7.url?.startsWith(uc));
|
|
3898
|
+
});
|
|
3899
|
+
var fc = async (e6) => {
|
|
3900
|
+
try {
|
|
3901
|
+
return await dc(e6);
|
|
3902
|
+
} catch (e7) {
|
|
3903
|
+
return console.info(`[blog demo posts]`, `read failed`, e7), [];
|
|
3904
|
+
}
|
|
3905
|
+
};
|
|
3906
|
+
var pc = [{ path: `members.createdDate` }, { path: `members.updatedDate` }, { path: `members.lastLoginDate` }];
|
|
3907
|
+
var mc = [{ path: `query.sorting.origin.latitude` }, { path: `query.sorting.origin.longitude` }];
|
|
3908
|
+
function hc(e6) {
|
|
3895
3909
|
return It(Object.assign(e6, { domainToMappings: { "www.wixapis.com": [{ srcPath: `/members/v1/members`, destPath: `/v1/members` }], "api._api_base_domain_": [{ srcPath: `/members-ng-api`, destPath: `` }], "www._base_domain_": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "manage._base_domain_": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "editor._base_domain_": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "blocks._base_domain_": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "create.editorx": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "editor.wixapps.net": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "*.dev.wix-code.com": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "bo._base_domain_": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "wixbo.ai": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "wix-bo.com": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], _: [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "members.wixapps.net": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }] } }));
|
|
3896
3910
|
}
|
|
3897
|
-
var
|
|
3898
|
-
function
|
|
3911
|
+
var gc = `@wix/auto_sdk_members_members`;
|
|
3912
|
+
function _c(e6) {
|
|
3899
3913
|
function t2({ host: t3 }) {
|
|
3900
|
-
let n2 = A(e6, [{ transformFn: ln, paths:
|
|
3901
|
-
return { entityFqdn: `wix.members.v1.member`, method: `POST`, methodFqn: `com.wixpress.members.api.Members.QueryMembers`, packageName:
|
|
3914
|
+
let n2 = A(e6, [{ transformFn: ln, paths: mc }]);
|
|
3915
|
+
return { entityFqdn: `wix.members.v1.member`, method: `POST`, methodFqn: `com.wixpress.members.api.Members.QueryMembers`, packageName: gc, migrationOptions: { optInTransformResponse: true }, url: hc({ protoPath: `/v1/members/query`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => A(e7, [{ transformFn: k, paths: pc }]) };
|
|
3902
3916
|
}
|
|
3903
3917
|
return t2;
|
|
3904
3918
|
}
|
|
3905
|
-
function
|
|
3919
|
+
function vc(e6) {
|
|
3906
3920
|
let { httpClient: t2, sideEffects: n2 } = arguments[1];
|
|
3907
|
-
return
|
|
3908
|
-
let i2 =
|
|
3921
|
+
return us({ func: async (r2) => {
|
|
3922
|
+
let i2 = _c({ ...r2, ...e6 ?? {} });
|
|
3909
3923
|
n2?.onSiteCall?.();
|
|
3910
3924
|
try {
|
|
3911
3925
|
let e7 = await t2.request(i2);
|
|
@@ -3923,8 +3937,8 @@ function mc(e6) {
|
|
|
3923
3937
|
throw j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
|
|
3924
3938
|
}, pagingMethod: `OFFSET`, transformationPaths: {} });
|
|
3925
3939
|
}
|
|
3926
|
-
async function
|
|
3927
|
-
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 =
|
|
3940
|
+
async function yc(e6, t2) {
|
|
3941
|
+
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = _c(D({ query: e6, ...t2 }));
|
|
3928
3942
|
r2?.onSiteCall?.();
|
|
3929
3943
|
try {
|
|
3930
3944
|
let e7 = await n2.request(i2);
|
|
@@ -3934,25 +3948,25 @@ async function hc(e6, t2) {
|
|
|
3934
3948
|
throw r2?.onError?.(e7), t3;
|
|
3935
3949
|
}
|
|
3936
3950
|
}
|
|
3937
|
-
function
|
|
3938
|
-
return (t2) =>
|
|
3951
|
+
function bc(e6) {
|
|
3952
|
+
return (t2) => vc(t2, { httpClient: e6 });
|
|
3939
3953
|
}
|
|
3940
|
-
function
|
|
3941
|
-
return (t2, n2) =>
|
|
3954
|
+
function xc(e6) {
|
|
3955
|
+
return (t2, n2) => yc(t2, n2, { httpClient: e6 });
|
|
3942
3956
|
}
|
|
3943
|
-
function
|
|
3944
|
-
let t2 =
|
|
3957
|
+
function Sc(e6) {
|
|
3958
|
+
let t2 = bs({ builderQueryFunction: (t3) => bc(e6)(t3), typedQueryFunction: (t3, n3) => xc(e6)(t3, n3), hasOptionsParameter: true });
|
|
3945
3959
|
function n2(e7, n3) {
|
|
3946
3960
|
return t2(...arguments);
|
|
3947
3961
|
}
|
|
3948
3962
|
return n2;
|
|
3949
3963
|
}
|
|
3950
|
-
var
|
|
3951
|
-
var
|
|
3964
|
+
var Cc = M(Sc);
|
|
3965
|
+
var wc = async (e6) => {
|
|
3952
3966
|
let t2 = [...new Set(e6.filter((e7) => !!e7))];
|
|
3953
3967
|
if (t2.length === 0) return {};
|
|
3954
3968
|
try {
|
|
3955
|
-
let { items: e7 } = await
|
|
3969
|
+
let { items: e7 } = await Cc({ fieldsets: [`PUBLIC`] }).in(`_id`, t2).limit(t2.length).find();
|
|
3956
3970
|
return Object.fromEntries(e7.flatMap((e8) => {
|
|
3957
3971
|
let { _id: t3 } = e8;
|
|
3958
3972
|
return t3 ? [[t3, e8]] : [];
|
|
@@ -3961,32 +3975,32 @@ var bc = async (e6) => {
|
|
|
3961
3975
|
return {};
|
|
3962
3976
|
}
|
|
3963
3977
|
};
|
|
3964
|
-
var
|
|
3965
|
-
var
|
|
3966
|
-
var Cc = [{ path: `posts.heroImage.focalPoint.x` }, { path: `posts.heroImage.focalPoint.y` }, { path: `posts.media.wixMedia.image.focalPoint.x` }, { path: `posts.media.wixMedia.image.focalPoint.y` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y` }, { path: `posts.media.wixMedia.videoV2.posters.focalPoint.x` }, { path: `posts.media.wixMedia.videoV2.posters.focalPoint.y` }, { path: `posts.metrics.averageRating` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.centerX` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.centerY` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `posts.richContent.nodes.galleryData.items.image.media.duration` }, { path: `posts.richContent.nodes.galleryData.items.video.media.duration` }, { path: `posts.richContent.nodes.galleryData.items.video.thumbnail.duration` }, { path: `posts.richContent.nodes.galleryData.options.item.ratio` }, { path: `posts.richContent.nodes.imageData.image.duration` }, { path: `posts.richContent.nodes.imageData.crop.x` }, { path: `posts.richContent.nodes.imageData.crop.y` }, { path: `posts.richContent.nodes.imageData.crop.width` }, { path: `posts.richContent.nodes.imageData.crop.height` }, { path: `posts.richContent.nodes.mapData.mapSettings.lat` }, { path: `posts.richContent.nodes.mapData.mapSettings.lng` }, { path: `posts.richContent.nodes.pollData.poll.image.duration` }, { path: `posts.richContent.nodes.pollData.poll.options.image.duration` }, { path: `posts.richContent.nodes.pollData.design.poll.background.image.duration` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.nodes.appEmbedData.image.duration` }, { path: `posts.richContent.nodes.videoData.video.duration` }, { path: `posts.richContent.nodes.videoData.thumbnail.duration` }, { path: `posts.richContent.nodes.audioData.audio.duration` }, { path: `posts.richContent.nodes.audioData.coverImage.duration` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.media.duration` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.backdropImage.media.duration` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.background.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.background.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.background.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `posts.richContent.nodes.shapeData.shape.duration` }, { path: `posts.richContent.nodes.cardData.background.gradient.centerX` }, { path: `posts.richContent.nodes.cardData.background.gradient.centerY` }, { path: `posts.richContent.nodes.cardData.background.gradient.stops.position` }, { path: `posts.richContent.nodes.cardData.backgroundImage.media.duration` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.tocData.fontSize` }, { path: `posts.richContent.nodes.tocData.itemSpacing` }, { path: `posts.richContent.nodes.smartBlockCellData.shape.duration` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position` }];
|
|
3967
|
-
var
|
|
3968
|
-
function
|
|
3978
|
+
var Tc = [{ path: `posts.firstPublishedDate` }, { path: `posts.lastPublishedDate` }, { path: `posts.heroImage.urlExpirationDate` }, { path: `posts.richContent.metadata.createdTimestamp` }, { path: `posts.richContent.metadata.updatedTimestamp` }, { path: `posts.moderationDetails.submittedDate` }, { path: `posts.moderationDetails.moderationDate` }, { path: `posts.media.wixMedia.image.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.resolutions.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.posters.urlExpirationDate` }];
|
|
3979
|
+
var Ec = [{ path: `posts.richContentCompressed` }];
|
|
3980
|
+
var Dc = [{ path: `posts.heroImage.focalPoint.x` }, { path: `posts.heroImage.focalPoint.y` }, { path: `posts.media.wixMedia.image.focalPoint.x` }, { path: `posts.media.wixMedia.image.focalPoint.y` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y` }, { path: `posts.media.wixMedia.videoV2.posters.focalPoint.x` }, { path: `posts.media.wixMedia.videoV2.posters.focalPoint.y` }, { path: `posts.metrics.averageRating` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.centerX` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.centerY` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `posts.richContent.nodes.galleryData.items.image.media.duration` }, { path: `posts.richContent.nodes.galleryData.items.video.media.duration` }, { path: `posts.richContent.nodes.galleryData.items.video.thumbnail.duration` }, { path: `posts.richContent.nodes.galleryData.options.item.ratio` }, { path: `posts.richContent.nodes.imageData.image.duration` }, { path: `posts.richContent.nodes.imageData.crop.x` }, { path: `posts.richContent.nodes.imageData.crop.y` }, { path: `posts.richContent.nodes.imageData.crop.width` }, { path: `posts.richContent.nodes.imageData.crop.height` }, { path: `posts.richContent.nodes.mapData.mapSettings.lat` }, { path: `posts.richContent.nodes.mapData.mapSettings.lng` }, { path: `posts.richContent.nodes.pollData.poll.image.duration` }, { path: `posts.richContent.nodes.pollData.poll.options.image.duration` }, { path: `posts.richContent.nodes.pollData.design.poll.background.image.duration` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.nodes.appEmbedData.image.duration` }, { path: `posts.richContent.nodes.videoData.video.duration` }, { path: `posts.richContent.nodes.videoData.thumbnail.duration` }, { path: `posts.richContent.nodes.audioData.audio.duration` }, { path: `posts.richContent.nodes.audioData.coverImage.duration` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.media.duration` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.backdropImage.media.duration` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.background.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.background.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.background.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `posts.richContent.nodes.shapeData.shape.duration` }, { path: `posts.richContent.nodes.cardData.background.gradient.centerX` }, { path: `posts.richContent.nodes.cardData.background.gradient.centerY` }, { path: `posts.richContent.nodes.cardData.background.gradient.stops.position` }, { path: `posts.richContent.nodes.cardData.backgroundImage.media.duration` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.tocData.fontSize` }, { path: `posts.richContent.nodes.tocData.itemSpacing` }, { path: `posts.richContent.nodes.smartBlockCellData.shape.duration` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position` }];
|
|
3981
|
+
var Oc = [{ path: `sort.origin.latitude` }, { path: `sort.origin.longitude` }, { path: `query.sort.origin.latitude` }, { path: `query.sort.origin.longitude` }];
|
|
3982
|
+
function kc(e6) {
|
|
3969
3983
|
return It(Object.assign(e6, { domainToMappings: { _: [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "apps._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "www._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "www.wixapis.com": [{ srcPath: `/v3/posts`, destPath: `/v3/posts` }, { srcPath: `/blog/v3/posts`, destPath: `/v3/posts` }, { srcPath: `/_api/v3/posts`, destPath: `/v3/posts` }], "manage._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }, { srcPath: `/_api/post-service-api-proxy/v3/bulk/posts`, destPath: `/v3/bulk/posts` }], "*.dev.wix-code.com": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "editor._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "blocks._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "create.editorx": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "editor.wixapps.net": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "dev._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }] } }));
|
|
3970
3984
|
}
|
|
3971
|
-
var
|
|
3972
|
-
function
|
|
3985
|
+
var Ac = `@wix/auto_sdk_blog_posts`;
|
|
3986
|
+
function jc(e6) {
|
|
3973
3987
|
function t2({ host: t3 }) {
|
|
3974
|
-
let n2 = A(e6, [{ transformFn: ln, paths:
|
|
3975
|
-
return { entityFqdn: `wix.blog.v3.post`, method: `POST`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts`, packageName:
|
|
3988
|
+
let n2 = A(e6, [{ transformFn: ln, paths: Oc }]);
|
|
3989
|
+
return { entityFqdn: `wix.blog.v3.post`, method: `POST`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts`, packageName: Ac, migrationOptions: { optInTransformResponse: true }, url: kc({ protoPath: `/v3/posts/query`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => A(e7, [{ transformFn: k, paths: Tc }, { transformFn: un, paths: Ec }, { transformFn: N, paths: Dc }]) };
|
|
3976
3990
|
}
|
|
3977
3991
|
return t2;
|
|
3978
3992
|
}
|
|
3979
|
-
function
|
|
3980
|
-
let e6 =
|
|
3993
|
+
function Mc() {
|
|
3994
|
+
let e6 = jc({});
|
|
3981
3995
|
return { getUrl: (t2) => {
|
|
3982
3996
|
let { url: n2 } = e6(t2);
|
|
3983
3997
|
return n2;
|
|
3984
3998
|
}, httpMethod: `POST`, path: `/v3/posts/query`, pathParams: {}, __requestType: null, __originalRequestType: null, __responseType: null, __originalResponseType: null };
|
|
3985
3999
|
}
|
|
3986
|
-
var
|
|
3987
|
-
var
|
|
3988
|
-
var
|
|
3989
|
-
let { data: n2 } = await e6.request(
|
|
4000
|
+
var Nc = Mc();
|
|
4001
|
+
var Pc = (e6) => (t2) => ({ method: `POST`, url: Nc.getUrl(t2), data: { query: { filter: { id: { $in: e6 } }, paging: { limit: e6.length } } } });
|
|
4002
|
+
var Fc = M((e6) => async (t2) => {
|
|
4003
|
+
let { data: n2 } = await e6.request(Pc(t2)), r2 = {};
|
|
3990
4004
|
for (let e7 of n2.posts ?? []) {
|
|
3991
4005
|
let { id: t3 } = e7, n3 = e7.media?.wixMedia?.videoV2?.resolutions;
|
|
3992
4006
|
if (!t3 || !n3?.length) continue;
|
|
@@ -3995,52 +4009,52 @@ var jc = M((e6) => async (t2) => {
|
|
|
3995
4009
|
}
|
|
3996
4010
|
return r2;
|
|
3997
4011
|
});
|
|
3998
|
-
var
|
|
4012
|
+
var Ic = async (e6) => {
|
|
3999
4013
|
if (e6.length === 0) return {};
|
|
4000
4014
|
try {
|
|
4001
|
-
return await
|
|
4015
|
+
return await Fc(e6);
|
|
4002
4016
|
} catch {
|
|
4003
4017
|
return {};
|
|
4004
4018
|
}
|
|
4005
4019
|
};
|
|
4006
|
-
var
|
|
4020
|
+
var Lc = class extends Error {
|
|
4007
4021
|
constructor(e6, t2) {
|
|
4008
4022
|
super(`SSR fetch "${e6}" exceeded its ${t2}ms deadline`), this.name = `SsrDeadlineError`;
|
|
4009
4023
|
}
|
|
4010
4024
|
};
|
|
4011
|
-
var
|
|
4025
|
+
var Rc = (e6, t2, n2) => {
|
|
4012
4026
|
let r2, i2 = new Promise((e7, i3) => {
|
|
4013
|
-
r2 = setTimeout(() => i3(new
|
|
4027
|
+
r2 = setTimeout(() => i3(new Lc(n2, t2)), t2);
|
|
4014
4028
|
});
|
|
4015
4029
|
return Promise.race([e6, i2]).finally(() => clearTimeout(r2));
|
|
4016
4030
|
};
|
|
4017
4031
|
Z.RICH_CONTENT, Z.SEO, Z.URL, Z.CONTENT_TEXT, Z.RICH_CONTENT, Z.URL;
|
|
4018
|
-
var
|
|
4019
|
-
var
|
|
4032
|
+
var zc = [Z.URL, Z.METRICS];
|
|
4033
|
+
var Bc = (e6) => {
|
|
4020
4034
|
let { status: t2, details: n2 } = e6 ?? {};
|
|
4021
4035
|
return t2 === 404 || String(n2?.applicationError?.code ?? ``).includes(`NOT_FOUND`);
|
|
4022
4036
|
};
|
|
4023
|
-
var
|
|
4024
|
-
if (t2 && !
|
|
4037
|
+
var Vc = (e6, t2) => {
|
|
4038
|
+
if (t2 && !Bc(e6)) throw e6;
|
|
4025
4039
|
};
|
|
4026
|
-
var
|
|
4027
|
-
var
|
|
4028
|
-
var
|
|
4040
|
+
var Hc = (e6) => wc(e6.map(({ memberId: e7 }) => e7));
|
|
4041
|
+
var Uc = (e6) => Ic(e6.filter((e7) => e7.media?.wixMedia?.videoV2).map(({ _id: e7 }) => e7).filter((e7) => !!e7));
|
|
4042
|
+
var Wc = async (e6, t2, n2 = false, r2) => {
|
|
4029
4043
|
try {
|
|
4030
4044
|
let { post: n3 } = await oc(e6, { ...t2 && { fieldsets: t2 }, ...r2 && { language: r2 } });
|
|
4031
4045
|
if (n3) return n3;
|
|
4032
4046
|
} catch (e7) {
|
|
4033
|
-
|
|
4047
|
+
Vc(e7, n2);
|
|
4034
4048
|
}
|
|
4035
4049
|
try {
|
|
4036
4050
|
let { items: n3 } = await cc(t2 ? { fieldsets: t2 } : void 0).eq(`slug`, e6).limit(1).find();
|
|
4037
4051
|
return n3[0];
|
|
4038
4052
|
} catch (e7) {
|
|
4039
|
-
|
|
4053
|
+
Vc(e7, n2);
|
|
4040
4054
|
return;
|
|
4041
4055
|
}
|
|
4042
4056
|
};
|
|
4043
|
-
var
|
|
4057
|
+
var Gc = async (e6, t2 = false, n2) => {
|
|
4044
4058
|
try {
|
|
4045
4059
|
let t3 = async (t4) => {
|
|
4046
4060
|
let { posts: r2 } = await sc({ paging: { limit: 1 }, ...e6 && { fieldsets: e6 }, ...t4 && n2 && { language: n2 } });
|
|
@@ -4048,63 +4062,65 @@ var Vc = async (e6, t2 = false, n2) => {
|
|
|
4048
4062
|
};
|
|
4049
4063
|
return await t3(true) ?? (n2 ? await t3(false) : void 0);
|
|
4050
4064
|
} catch (e7) {
|
|
4051
|
-
|
|
4065
|
+
Vc(e7, t2);
|
|
4052
4066
|
return;
|
|
4053
4067
|
}
|
|
4054
4068
|
};
|
|
4055
|
-
var
|
|
4056
|
-
var
|
|
4069
|
+
var Kc = 100;
|
|
4070
|
+
var qc = async () => {
|
|
4057
4071
|
try {
|
|
4058
|
-
let { categories: e6 } = await
|
|
4072
|
+
let { categories: e6 } = await Ms({ paging: { limit: Kc } });
|
|
4059
4073
|
return e6 ?? [];
|
|
4060
4074
|
} catch {
|
|
4061
4075
|
return [];
|
|
4062
4076
|
}
|
|
4063
4077
|
};
|
|
4064
|
-
var
|
|
4078
|
+
var Jc = (e6, t2) => {
|
|
4065
4079
|
let { categoryIds: n2 } = e6 ?? {};
|
|
4066
4080
|
if (!n2?.length) return [];
|
|
4067
4081
|
let r2 = new Map(t2.map((e7) => [e7._id, e7]));
|
|
4068
4082
|
return n2.map((e7) => r2.get(e7)).filter((e7) => e7 !== void 0);
|
|
4069
4083
|
};
|
|
4070
|
-
var
|
|
4084
|
+
var Yc = (e6, t2) => {
|
|
4071
4085
|
let n2 = {};
|
|
4072
|
-
for (let r2 of e6) for (let { _id: e7, label: i2 } of
|
|
4086
|
+
for (let r2 of e6) for (let { _id: e7, label: i2 } of Jc(r2, t2)) e7 && (n2[e7] = i2 ?? ``);
|
|
4073
4087
|
return n2;
|
|
4074
4088
|
};
|
|
4075
|
-
var
|
|
4076
|
-
let n2 = e6 ? await
|
|
4089
|
+
var Xc = async (e6, t2) => {
|
|
4090
|
+
let n2 = e6 ? await Wc(e6, void 0, false, t2) : void 0, { _id: r2, categoryIds: i2, relatedPostIds: a2 } = n2 ?? await Gc(void 0, false, t2) ?? {};
|
|
4077
4091
|
return { currentPostId: r2 ?? void 0, categoryIds: i2, relatedPostIds: n2 ? a2 : void 0 };
|
|
4078
4092
|
};
|
|
4079
|
-
var
|
|
4080
|
-
let { items: r2 } = await cc({ fieldsets:
|
|
4093
|
+
var Zc = async ({ ids: e6, currentPostId: t2, limit: n2 }) => {
|
|
4094
|
+
let { items: r2 } = await cc({ fieldsets: zc }).in(`_id`, e6).limit(n2).find(), i2 = new Map(r2.map((e7) => {
|
|
4081
4095
|
let { _id: t3 } = e7;
|
|
4082
4096
|
return [t3, e7];
|
|
4083
4097
|
}));
|
|
4084
4098
|
return e6.filter((e7) => e7 !== t2).map((e7) => i2.get(e7)).filter((e7) => e7 !== void 0).slice(0, n2);
|
|
4085
4099
|
};
|
|
4086
|
-
var
|
|
4087
|
-
let i2 = cc({ fieldsets:
|
|
4100
|
+
var Qc = async ({ currentPostId: e6, categoryIds: t2, language: n2, limit: r2 }) => {
|
|
4101
|
+
let i2 = cc({ fieldsets: zc }).ne(`_id`, e6).descending(`firstPublishedDate`).limit(r2);
|
|
4088
4102
|
t2?.length && (i2 = i2.hasSome(`categoryIds`, t2)), n2 && (i2 = i2.eq(`language`, n2));
|
|
4089
4103
|
let { items: a2 } = await i2.find();
|
|
4090
4104
|
return a2;
|
|
4091
4105
|
};
|
|
4092
|
-
var
|
|
4093
|
-
let o2 =
|
|
4106
|
+
var $c = async ({ slug: e6, language: t2, limit: n2 = 3, propagateErrors: r2 = false, source: i2, sourcePromise: a2 }) => {
|
|
4107
|
+
let o2 = qc();
|
|
4094
4108
|
try {
|
|
4095
|
-
let { currentPostId: r3, categoryIds: s2, relatedPostIds: c2 } = i2 ?? (a2 ? await a2 : await
|
|
4109
|
+
let { currentPostId: r3, categoryIds: s2, relatedPostIds: c2 } = i2 ?? (a2 ? await a2 : await Xc(e6, t2));
|
|
4096
4110
|
if (!r3) return { posts: [], authorsByMemberId: {}, categoryLabelsById: {}, videoSourcesByPostId: {} };
|
|
4097
|
-
let l2 = c2?.length ? await
|
|
4098
|
-
return { posts: u2, authorsByMemberId: d2, categoryLabelsById:
|
|
4111
|
+
let l2 = c2?.length ? await Zc({ ids: c2, currentPostId: r3, limit: n2 }) : [], u2 = l2.length > 0 ? l2 : await Qc({ currentPostId: r3, categoryIds: s2, language: t2, limit: n2 }), [d2, f2, p2] = await Promise.all([Hc(u2), o2, Uc(u2)]);
|
|
4112
|
+
return { posts: u2, authorsByMemberId: d2, categoryLabelsById: Yc(u2, f2), videoSourcesByPostId: p2 };
|
|
4099
4113
|
} catch (e7) {
|
|
4100
4114
|
if (r2) throw e7;
|
|
4101
4115
|
return { posts: [], authorsByMemberId: {}, categoryLabelsById: {}, videoSourcesByPostId: {} };
|
|
4102
4116
|
}
|
|
4103
4117
|
};
|
|
4104
|
-
var
|
|
4105
|
-
var
|
|
4106
|
-
var
|
|
4107
|
-
var
|
|
4118
|
+
var el = { newest: `FEED`, oldest: `PUBLISHED_DATE_ASC`, titleAsc: `TITLE_ASC`, titleDesc: `TITLE_DESC`, mostViewed: `VIEW_COUNT`, mostLiked: `LIKE_COUNT` };
|
|
4119
|
+
var tl = async (e6, { limit: t2, offset: n2 = 0, language: r2, sortOrder: i2 }) => e6.posts.length > 0 ? e6 : { ...e6, demoPosts: await fc({ paging: { limit: t2, offset: n2 }, fieldsets: zc, ...r2 && { language: r2 }, ...i2 && { sort: el[i2] } }) };
|
|
4120
|
+
var nl = (0, import_react.createContext)({ isEditor: false, isPreview: false });
|
|
4121
|
+
var rl = () => (0, import_react.useContext)(nl);
|
|
4122
|
+
var il = ({ isEditor: e6, isPreview: t2 }) => e6 && !t2;
|
|
4123
|
+
var al = () => {
|
|
4108
4124
|
try {
|
|
4109
4125
|
let { SSR: e6, SEO: t2 } = (0, import_services_manager_react.useService)(Wn);
|
|
4110
4126
|
return e6 || t2;
|
|
@@ -4112,38 +4128,38 @@ var $c = () => {
|
|
|
4112
4128
|
return false;
|
|
4113
4129
|
}
|
|
4114
4130
|
};
|
|
4115
|
-
var
|
|
4116
|
-
let e6 =
|
|
4117
|
-
return
|
|
4131
|
+
var ol = () => {
|
|
4132
|
+
let e6 = al();
|
|
4133
|
+
return il(rl()) && !e6;
|
|
4118
4134
|
};
|
|
4119
|
-
var
|
|
4120
|
-
var
|
|
4135
|
+
var sl = { post: `post`, feed: `feed`, relatedPosts: `related-posts`, comments: `comments`, seo: `seo`, likes: `likes` };
|
|
4136
|
+
var cl = (e6) => {
|
|
4121
4137
|
try {
|
|
4122
4138
|
return e6.getMonitoringClient?.() ?? null;
|
|
4123
4139
|
} catch {
|
|
4124
4140
|
return null;
|
|
4125
4141
|
}
|
|
4126
4142
|
};
|
|
4127
|
-
var
|
|
4128
|
-
function
|
|
4129
|
-
let o2 =
|
|
4143
|
+
var ll = (e6, t2) => e6 && typeof e6[t2] == `function` ? e6 : null;
|
|
4144
|
+
function ul(e6, t2, { feature: n2, action: r2, level: i2 = `error`, contexts: a2 }) {
|
|
4145
|
+
let o2 = ll(e6, `captureException`);
|
|
4130
4146
|
if (!o2) return;
|
|
4131
4147
|
let s2 = t2 instanceof Error ? t2 : Error(String(t2));
|
|
4132
4148
|
o2.captureException(s2, { level: i2, tags: { feature: n2, action: r2 }, ...a2 ? { contexts: a2 } : {} });
|
|
4133
4149
|
}
|
|
4134
|
-
function
|
|
4135
|
-
let a2 =
|
|
4150
|
+
function dl(e6, t2, { feature: n2, tags: r2 }, i2) {
|
|
4151
|
+
let a2 = ll(e6, `startSpanManual`);
|
|
4136
4152
|
if (!a2) return i2;
|
|
4137
4153
|
let o2 = a2.startSpanManual({ name: t2, tags: { feature: n2, ...r2 } });
|
|
4138
4154
|
return i2.then(() => o2.end(), (e7) => o2.fail(e7 instanceof Error ? e7 : Error(String(e7)))), i2;
|
|
4139
4155
|
}
|
|
4140
|
-
var
|
|
4156
|
+
var fl = class extends import_react.Component {
|
|
4141
4157
|
state = { error: void 0 };
|
|
4142
4158
|
static getDerivedStateFromError(e6) {
|
|
4143
4159
|
return { error: e6 ?? Error(`Unknown render error`) };
|
|
4144
4160
|
}
|
|
4145
4161
|
componentDidCatch(e6, t2) {
|
|
4146
|
-
|
|
4162
|
+
ul(this.props.monitoringClient, e6, { feature: this.props.feature, action: `render`, contexts: { react: { componentStack: t2.componentStack } } });
|
|
4147
4163
|
}
|
|
4148
4164
|
render() {
|
|
4149
4165
|
if (this.state.error === void 0) return this.props.children;
|
|
@@ -4151,201 +4167,201 @@ var ol = class extends import_react.Component {
|
|
|
4151
4167
|
return this.props.fallback;
|
|
4152
4168
|
}
|
|
4153
4169
|
};
|
|
4154
|
-
var
|
|
4155
|
-
var
|
|
4156
|
-
function
|
|
4157
|
-
return (0, import_react.useContext)(
|
|
4170
|
+
var pl = (e6) => e6.then((e7) => ({ ...e7, fetchedAt: Date.now() }));
|
|
4171
|
+
var ml = (0, import_react.createContext)(void 0);
|
|
4172
|
+
function hl() {
|
|
4173
|
+
return (0, import_react.useContext)(ml);
|
|
4158
4174
|
}
|
|
4159
|
-
var
|
|
4160
|
-
function
|
|
4161
|
-
return (0, import_react.useContext)(
|
|
4175
|
+
var gl = (0, import_react.createContext)(void 0);
|
|
4176
|
+
function _l() {
|
|
4177
|
+
return (0, import_react.useContext)(gl);
|
|
4162
4178
|
}
|
|
4163
|
-
var
|
|
4164
|
-
var
|
|
4165
|
-
var
|
|
4166
|
-
var
|
|
4167
|
-
var
|
|
4168
|
-
var
|
|
4179
|
+
var vl = 6e4;
|
|
4180
|
+
var yl = vl * 60;
|
|
4181
|
+
var bl = yl * 24;
|
|
4182
|
+
var xl = bl * 7;
|
|
4183
|
+
var Sl = (e6) => e6 < vl ? [`second`, e6 / 1e3] : e6 < yl ? [`minute`, e6 / vl] : e6 < bl ? [`hour`, e6 / yl] : [`day`, e6 / bl];
|
|
4184
|
+
var Cl = (e6, t2, n2 = Date.now()) => {
|
|
4169
4185
|
let r2 = e6 instanceof Date ? e6 : new Date(e6), i2 = n2 - r2.getTime();
|
|
4170
|
-
if (i2 >= 0 && i2 <
|
|
4171
|
-
let [e7, n3] =
|
|
4186
|
+
if (i2 >= 0 && i2 < xl) {
|
|
4187
|
+
let [e7, n3] = Sl(i2);
|
|
4172
4188
|
return new Intl.RelativeTimeFormat(t2).format(-Math.round(n3), e7);
|
|
4173
4189
|
}
|
|
4174
4190
|
let a2 = r2.getFullYear() === new Date(n2).getFullYear();
|
|
4175
4191
|
return new Intl.DateTimeFormat(t2, { ...a2 ? {} : { year: `numeric` }, month: `short`, day: `numeric` }).format(r2);
|
|
4176
4192
|
};
|
|
4177
|
-
var
|
|
4178
|
-
var
|
|
4179
|
-
var
|
|
4193
|
+
var wl = `https://static.wixstatic.com/media/`;
|
|
4194
|
+
var Tl = 100;
|
|
4195
|
+
var El = (e6, t2 = ``) => {
|
|
4180
4196
|
let n2 = e6?.profile?.photo;
|
|
4181
4197
|
if (!n2?.url) return;
|
|
4182
|
-
let r2 = e6?.profile?.nickname, { _id: i2 } = n2, a2 = i2 || (n2.url.startsWith(
|
|
4183
|
-
return { ...a2 && { uri: a2 }, url: n2.url, name: r2 ?? a2 ?? `author-photo`, width: n2.width ||
|
|
4184
|
-
};
|
|
4185
|
-
var
|
|
4186
|
-
var
|
|
4187
|
-
var
|
|
4188
|
-
var
|
|
4189
|
-
var
|
|
4198
|
+
let r2 = e6?.profile?.nickname, { _id: i2 } = n2, a2 = i2 || (n2.url.startsWith(wl) ? n2.url.slice(35).split(/[?#]/)[0] : void 0);
|
|
4199
|
+
return { ...a2 && { uri: a2 }, url: n2.url, name: r2 ?? a2 ?? `author-photo`, width: n2.width || Tl, height: n2.height || Tl, alt: r2 ?? t2 };
|
|
4200
|
+
};
|
|
4201
|
+
var Dl = `https://static.wixstatic.com/media/`;
|
|
4202
|
+
var Ol = `wix:image://`;
|
|
4203
|
+
var kl = 1200;
|
|
4204
|
+
var Al = 800;
|
|
4205
|
+
var jl = (e6) => {
|
|
4190
4206
|
if (!e6) return;
|
|
4191
4207
|
let t2 = Number.parseInt(e6, 10);
|
|
4192
4208
|
return Number.isFinite(t2) && t2 > 0 ? t2 : void 0;
|
|
4193
4209
|
};
|
|
4194
|
-
var
|
|
4195
|
-
if (!e6.startsWith(
|
|
4210
|
+
var Ml = (e6) => {
|
|
4211
|
+
if (!e6.startsWith(Ol)) {
|
|
4196
4212
|
let t3 = e6.split(/[?#]/)[0];
|
|
4197
4213
|
return t3 ? { uri: t3 } : void 0;
|
|
4198
4214
|
}
|
|
4199
4215
|
let [t2, n2] = e6.slice(12).split(`#`), [, r2, i2] = t2.split(`/`).filter(Boolean);
|
|
4200
4216
|
if (!r2) return;
|
|
4201
4217
|
let a2 = new URLSearchParams(n2 ?? ``);
|
|
4202
|
-
return { uri: decodeURIComponent(r2), name: i2 ? decodeURIComponent(i2) : void 0, width:
|
|
4218
|
+
return { uri: decodeURIComponent(r2), name: i2 ? decodeURIComponent(i2) : void 0, width: jl(a2.get(`originWidth`)), height: jl(a2.get(`originHeight`)) };
|
|
4203
4219
|
};
|
|
4204
|
-
var
|
|
4220
|
+
var Nl = (e6, t2) => {
|
|
4205
4221
|
if (!e6) return;
|
|
4206
|
-
let n2 =
|
|
4222
|
+
let n2 = Ml(e6);
|
|
4207
4223
|
if (!n2) return;
|
|
4208
4224
|
let r2 = n2.name ?? n2.uri;
|
|
4209
|
-
return { uri: n2.uri, url: `${
|
|
4225
|
+
return { uri: n2.uri, url: `${Dl}${n2.uri}`, name: r2, width: n2.width ?? kl, height: n2.height ?? Al, alt: t2 ?? r2 };
|
|
4210
4226
|
};
|
|
4211
|
-
var
|
|
4227
|
+
var Pl = (e6) => {
|
|
4212
4228
|
let t2 = e6?.media?.wixMedia?.image;
|
|
4213
4229
|
if (!t2) return;
|
|
4214
|
-
let n2 =
|
|
4230
|
+
let n2 = Ml(t2);
|
|
4215
4231
|
if (!n2) return;
|
|
4216
4232
|
let r2 = n2.name ?? n2.uri;
|
|
4217
|
-
return { uri: n2.uri, url: `${
|
|
4233
|
+
return { uri: n2.uri, url: `${Dl}${n2.uri}`, name: r2, width: n2.width ?? kl, height: n2.height ?? Al, alt: e6?.media?.altText ?? e6?.title ?? r2 };
|
|
4218
4234
|
};
|
|
4219
|
-
var
|
|
4220
|
-
var
|
|
4221
|
-
var
|
|
4235
|
+
var Fl = `https://static.wixstatic.com/media/`;
|
|
4236
|
+
var Il = `wix:video://`;
|
|
4237
|
+
var Ll = (e6) => {
|
|
4222
4238
|
if (!e6) return;
|
|
4223
4239
|
let t2 = Number.parseInt(e6, 10);
|
|
4224
4240
|
return Number.isFinite(t2) && t2 > 0 ? t2 : void 0;
|
|
4225
4241
|
};
|
|
4226
|
-
var
|
|
4227
|
-
if (!e6.startsWith(
|
|
4242
|
+
var Rl = (e6) => {
|
|
4243
|
+
if (!e6.startsWith(Il)) return;
|
|
4228
4244
|
let [t2, n2] = e6.slice(12).split(`#`), [, r2] = t2.split(`/`).filter(Boolean);
|
|
4229
4245
|
if (!r2) return;
|
|
4230
4246
|
let i2 = new URLSearchParams(n2 ?? ``), a2 = i2.get(`posterUri`);
|
|
4231
|
-
return { id: decodeURIComponent(r2), posterUrl: a2 ? `${
|
|
4247
|
+
return { id: decodeURIComponent(r2), posterUrl: a2 ? `${Fl}${a2}` : void 0, posterWidth: Ll(i2.get(`posterWidth`)), posterHeight: Ll(i2.get(`posterHeight`)) };
|
|
4232
4248
|
};
|
|
4233
|
-
var
|
|
4234
|
-
var
|
|
4235
|
-
var
|
|
4249
|
+
var zl = [/https?:\/\/(?:www\.|m\.)?youtube\.com\/watch\?(?:[^#]*&)?v=([\w-]+)/i, /https?:\/\/(?:www\.)?youtube\.com\/embed\/([\w-]+)/i, /https?:\/\/youtu\.be\/([\w-]+)/i];
|
|
4250
|
+
var Bl = [/https?:\/\/player\.vimeo\.com\/video\/(\d+)/i, /https?:\/\/vimeo\.com\/(\d+)/i];
|
|
4251
|
+
var Vl = (e6, t2) => {
|
|
4236
4252
|
for (let n2 of e6) {
|
|
4237
4253
|
let e7 = n2.exec(t2);
|
|
4238
4254
|
if (e7) return e7[1];
|
|
4239
4255
|
}
|
|
4240
4256
|
};
|
|
4241
|
-
var
|
|
4242
|
-
let t2 =
|
|
4257
|
+
var Hl = (e6) => {
|
|
4258
|
+
let t2 = Vl(zl, e6);
|
|
4243
4259
|
if (t2) return { provider: `youtube`, embedUrl: `https://www.youtube.com/embed/${t2}?autoplay=1` };
|
|
4244
|
-
let n2 =
|
|
4260
|
+
let n2 = Vl(Bl, e6);
|
|
4245
4261
|
return n2 ? { provider: `vimeo`, embedUrl: `https://player.vimeo.com/video/${n2}?autoplay=1` } : { provider: `unknown` };
|
|
4246
4262
|
};
|
|
4247
|
-
var
|
|
4263
|
+
var Ul = (e6, t2 = []) => {
|
|
4248
4264
|
let n2 = e6?.media;
|
|
4249
4265
|
if (!n2 || n2.displayed === false) return;
|
|
4250
|
-
let r2 =
|
|
4266
|
+
let r2 = Pl(e6);
|
|
4251
4267
|
if (r2) return { kind: `image`, image: r2 };
|
|
4252
|
-
let i2 = n2.altText ?? e6?.title ?? ``, a2 = n2.wixMedia?.videoV2 ?
|
|
4268
|
+
let i2 = n2.altText ?? e6?.title ?? ``, a2 = n2.wixMedia?.videoV2 ? Rl(n2.wixMedia.videoV2) : void 0;
|
|
4253
4269
|
if (a2) return { kind: `wixVideo`, ...a2, sources: t2, altText: i2 };
|
|
4254
4270
|
let o2 = n2.embedMedia?.video?.url;
|
|
4255
4271
|
if (o2) {
|
|
4256
4272
|
let { thumbnail: e7 } = n2.embedMedia ?? {};
|
|
4257
|
-
return { kind: `embed`, videoUrl: o2, ...
|
|
4273
|
+
return { kind: `embed`, videoUrl: o2, ...Hl(o2), thumbnailUrl: e7?.url, thumbnailWidth: e7?.width, thumbnailHeight: e7?.height, altText: i2 };
|
|
4258
4274
|
}
|
|
4259
4275
|
};
|
|
4260
|
-
var
|
|
4261
|
-
let t2 =
|
|
4276
|
+
var Wl = (e6) => {
|
|
4277
|
+
let t2 = Pl(e6), n2 = e6?.media?.wixMedia?.videoV2;
|
|
4262
4278
|
if (t2 || !n2) return t2;
|
|
4263
|
-
let r2 =
|
|
4279
|
+
let r2 = Rl(n2), i2 = Nl(r2?.posterUrl?.slice(35), e6?.media?.altText ?? e6?.title);
|
|
4264
4280
|
return i2 && { ...i2, width: r2?.posterWidth ?? i2.width, height: r2?.posterHeight ?? i2.height };
|
|
4265
4281
|
};
|
|
4266
|
-
var
|
|
4267
|
-
var
|
|
4268
|
-
var
|
|
4269
|
-
var
|
|
4282
|
+
var Gl = `2026-05-12T12:00:00.000Z`;
|
|
4283
|
+
var Kl = (e6) => ({ href: e6 ?? `#`, target: `_self` });
|
|
4284
|
+
var ql = (e6) => `https://static.wixstatic.com/media/${e6}/v1/fit/w_1200,h_1200,al_c,q_85/cover.jpg`;
|
|
4285
|
+
var Jl = (e6) => {
|
|
4270
4286
|
if (!e6) return;
|
|
4271
4287
|
let t2 = e6 instanceof Date ? e6 : new Date(e6);
|
|
4272
4288
|
return Number.isFinite(t2.getTime()) ? t2.toISOString() : void 0;
|
|
4273
4289
|
};
|
|
4274
|
-
var
|
|
4275
|
-
var
|
|
4276
|
-
var Q = (e6) => ({ text: e6, html: `<p>${
|
|
4290
|
+
var Yl = (e6) => typeof e6 == `number` && e6 > 0 ? e6 : void 0;
|
|
4291
|
+
var Xl = (e6) => e6.replace(/&/g, `&`).replace(/</g, `<`).replace(/>/g, `>`).replace(/"/g, `"`).replace(/'/g, `'`);
|
|
4292
|
+
var Q = (e6) => ({ text: e6, html: `<p>${Xl(e6)}</p>`, linkList: [] });
|
|
4277
4293
|
var $ = { minutesToRead: 5, views: 120, comments: 4 };
|
|
4278
|
-
var
|
|
4294
|
+
var Zl = (e6) => {
|
|
4279
4295
|
let { metrics: t2 } = e6;
|
|
4280
4296
|
return { views: typeof t2?.views == `number` ? t2.views : void 0, comments: typeof t2?.comments == `number` ? t2.comments : void 0 };
|
|
4281
4297
|
};
|
|
4282
|
-
var
|
|
4283
|
-
var
|
|
4298
|
+
var Ql = (e6, t2, n2, r2) => Q(e6 === void 0 ? n2 ? r2(t2) : `` : r2(e6));
|
|
4299
|
+
var $l = (e6, t2, n2, r2) => {
|
|
4284
4300
|
let i2 = e6.categoryIds?.map((e7) => t2[e7]).find(Boolean);
|
|
4285
4301
|
return Q(i2 ?? (n2 ? r2.canvas.category() : ``));
|
|
4286
4302
|
};
|
|
4287
|
-
var
|
|
4288
|
-
let { _id: l2, memberId: u2 } = e6, d2 = u2 ? i2[u2] : void 0, f2 =
|
|
4289
|
-
return { _id: l2 ?? e6.slug ?? ``, title: e6.title ?? ``, itemTitle: Q(e6.title ?? ``), itemExcerpt: Q(e6.excerpt ?? ``), itemCoverImage:
|
|
4303
|
+
var eu = (e6, t2, n2, r2, i2 = {}, a2 = {}, o2 = false, s2 = {}, c2 = Date.now()) => {
|
|
4304
|
+
let { _id: l2, memberId: u2 } = e6, d2 = u2 ? i2[u2] : void 0, f2 = Zl(e6);
|
|
4305
|
+
return { _id: l2 ?? e6.slug ?? ``, title: e6.title ?? ``, itemTitle: Q(e6.title ?? ``), itemExcerpt: Q(e6.excerpt ?? ``), itemCoverImage: Wl(e6), itemCoverMedia: Ul(e6, s2[l2 ?? ``] ?? []), itemLink: ar(e6, r2), itemPublishedDate: Q(Cl(e6.firstPublishedDate ?? new Date(c2), n2, c2)), publishedDateValue: Jl(e6.firstPublishedDate), clockValue: c2, minutesToReadValue: Yl(e6.minutesToRead), initialViewCount: f2.views ?? (o2 ? $.views : void 0), initialCommentCount: f2.comments ?? (o2 ? $.comments : void 0), authorName: Q(d2?.profile?.nickname ?? ``), authorImage: El(d2, t2.canvas.authorPhotoAlt()), timeToRead: Q(typeof e6.minutesToRead == `number` && e6.minutesToRead > 0 ? t2.timeToRead(e6.minutesToRead) : ``), viewCount: Ql(f2.views, $.views, o2, t2.viewCount), commentCount: Ql(f2.comments, $.comments, o2, t2.commentCount), itemCategoryLabel: $l(e6, a2, o2, t2), recentPostItem: { title: e6.title ?? ``, slug: e6.slug ?? `` }, commentingEnabled: e6.commentingEnabled };
|
|
4290
4306
|
};
|
|
4291
|
-
var
|
|
4292
|
-
var
|
|
4293
|
-
var
|
|
4294
|
-
let { uri: n2, width: r2, height: i2 } =
|
|
4295
|
-
return { uri: n2, url:
|
|
4307
|
+
var tu = 3;
|
|
4308
|
+
var nu = [{ uri: `728f9d_a03266fe4a4d4651b9aa06077eef5d9c~mv2.png`, width: 2304, height: 1728 }, { uri: `728f9d_635778e429524b59856cb2a18ed0d4f8~mv2.jpg`, width: 2624, height: 1472 }, { uri: `728f9d_d6071d5e8a0544098238188bae67e5e4~mv2.png`, width: 2304, height: 1728 }];
|
|
4309
|
+
var ru = (e6, t2) => {
|
|
4310
|
+
let { uri: n2, width: r2, height: i2 } = nu[e6 % nu.length];
|
|
4311
|
+
return { uri: n2, url: ql(n2), name: n2, width: r2, height: i2, alt: t2 };
|
|
4296
4312
|
};
|
|
4297
|
-
var
|
|
4298
|
-
let { uri: n2 } =
|
|
4299
|
-
return { uri: n2, url:
|
|
4313
|
+
var iu = (e6, t2) => {
|
|
4314
|
+
let { uri: n2 } = nu[(e6 + 1) % nu.length];
|
|
4315
|
+
return { uri: n2, url: ql(n2), name: n2, width: 100, height: 100, alt: t2 };
|
|
4300
4316
|
};
|
|
4301
|
-
var
|
|
4302
|
-
let o2 = e6.canvas.postTitle(), s2 =
|
|
4303
|
-
return { _id: `placeholder-${a2}`, title: o2, itemTitle: Q(o2), itemExcerpt: Q(e6.canvas.excerpt()), itemCoverImage: s2, itemCoverMedia: { kind: `image`, image: s2 }, itemLink:
|
|
4317
|
+
var au = (e6, t2, n2, r2 = Date.now()) => Array.from({ length: tu }, (i2, a2) => {
|
|
4318
|
+
let o2 = e6.canvas.postTitle(), s2 = ru(a2, e6.canvas.coverAlt());
|
|
4319
|
+
return { _id: `placeholder-${a2}`, title: o2, itemTitle: Q(o2), itemExcerpt: Q(e6.canvas.excerpt()), itemCoverImage: s2, itemCoverMedia: { kind: `image`, image: s2 }, itemLink: Kl(n2), itemPublishedDate: Q(Cl(new Date(r2), t2, r2)), publishedDateValue: Gl, clockValue: r2, minutesToReadValue: $.minutesToRead, initialViewCount: $.views, initialCommentCount: $.comments, authorName: Q(e6.canvas.authorName()), authorImage: iu(a2, e6.canvas.authorPhotoAlt()), timeToRead: Q(e6.timeToRead($.minutesToRead)), viewCount: Q(e6.viewCount($.views)), commentCount: Q(e6.commentCount($.comments)), itemCategoryLabel: Q(e6.canvas.category()), recentPostItem: { title: o2, slug: `` }, commentingEnabled: void 0 };
|
|
4304
4320
|
});
|
|
4305
|
-
var
|
|
4306
|
-
function
|
|
4307
|
-
let e6 = (0, import_react.useContext)(
|
|
4321
|
+
var ou = (0, import_react.createContext)(void 0);
|
|
4322
|
+
function su() {
|
|
4323
|
+
let e6 = (0, import_react.useContext)(ou);
|
|
4308
4324
|
if (!e6) throw Error(`useRelatedPostsContext must be used within a RelatedPostsProvider`);
|
|
4309
4325
|
return e6;
|
|
4310
4326
|
}
|
|
4311
|
-
var
|
|
4312
|
-
var
|
|
4313
|
-
var
|
|
4314
|
-
var
|
|
4315
|
-
var
|
|
4327
|
+
var cu = 3;
|
|
4328
|
+
var lu = (e6) => typeof e6 == `number` && Number.isFinite(e6) && e6 >= 1 ? Math.min(Math.floor(e6), 12) : cu;
|
|
4329
|
+
var uu = 2e3;
|
|
4330
|
+
var du = /* @__PURE__ */ new WeakMap();
|
|
4331
|
+
var fu = (e6, t2, n2) => {
|
|
4316
4332
|
if (!e6) return n2();
|
|
4317
|
-
let r2 =
|
|
4318
|
-
r2 || (r2 = /* @__PURE__ */ new Map(),
|
|
4333
|
+
let r2 = du.get(e6);
|
|
4334
|
+
r2 || (r2 = /* @__PURE__ */ new Map(), du.set(e6, r2));
|
|
4319
4335
|
let i2 = r2.get(t2);
|
|
4320
4336
|
if (i2) return i2;
|
|
4321
4337
|
let a2 = n2();
|
|
4322
4338
|
return r2.set(t2, a2), a2;
|
|
4323
4339
|
};
|
|
4324
|
-
var
|
|
4325
|
-
var
|
|
4326
|
-
var
|
|
4327
|
-
var
|
|
4328
|
-
var
|
|
4340
|
+
var pu = { relatedPosts: [], emptyState: null, isLoadingRelatedPosts: true, hasError: false };
|
|
4341
|
+
var mu = { ...pu, isLoadingRelatedPosts: false, hasError: true };
|
|
4342
|
+
var hu = (e6) => ({ strip: e6, hasError: false });
|
|
4343
|
+
var gu = () => ({ strip: { posts: [], authorsByMemberId: {}, categoryLabelsById: {}, videoSourcesByPostId: {}, fetchedAt: Date.now() }, hasError: true });
|
|
4344
|
+
var _u = (e6) => {
|
|
4329
4345
|
throw e6;
|
|
4330
4346
|
};
|
|
4331
|
-
var
|
|
4332
|
-
let { strip: { posts: i2, authorsByMemberId: a2, categoryLabelsById: o2, videoSourcesByPostId: s2, fetchedAt: l2 }, hasError:
|
|
4333
|
-
let e7 = i2.map((e8) =>
|
|
4334
|
-
return { relatedPosts: e7.length === 0 &&
|
|
4335
|
-
}, [i2, a2, o2, s2,
|
|
4336
|
-
return dr(lr.relatedPostsProvider,
|
|
4337
|
-
};
|
|
4338
|
-
function
|
|
4339
|
-
let r2 = cr(), i2 = mr(), a2 = Gn(), o2 =
|
|
4340
|
-
let e7 = `blog-builder:related:${JSON.stringify({ slug: r2 ?? ``, language: i2 ?? ``, limit: o2, ...
|
|
4341
|
-
return { slug: r2, language: i2, stripLoadPromise: Vn(
|
|
4342
|
-
let e8 =
|
|
4343
|
-
return
|
|
4344
|
-
} })),
|
|
4345
|
-
}, [r2, i2, a2, s2,
|
|
4346
|
-
return (0, import_jsx_runtime.jsx)(
|
|
4347
|
-
}
|
|
4348
|
-
var
|
|
4347
|
+
var vu = ({ children: e6, stripLoadPromise: t2, slug: n2, language: r2 }) => {
|
|
4348
|
+
let { strip: { posts: i2, authorsByMemberId: a2, categoryLabelsById: o2, videoSourcesByPostId: s2, fetchedAt: l2, demoPosts: u2 }, hasError: d2 } = zn(t2), f2 = Un(l2), m2 = ol(), h2 = or(n2), { t: g2 } = So(), _2 = hr(), v2 = (0, import_react.useMemo)(() => ts(g2, _2), [g2, _2]), y2 = (0, import_react.useMemo)(() => {
|
|
4349
|
+
let e7 = (i2.length === 0 && m2 ? u2 ?? [] : i2).map((e8) => eu(e8, v2, _2, h2, a2, o2, m2, s2, f2));
|
|
4350
|
+
return { relatedPosts: e7.length === 0 && m2 ? au(v2, _2, h2, f2) : e7, emptyState: i2.length === 0 && !d2 ? v2.noRelatedPostsEmptyState() : null, isLoadingRelatedPosts: false, hasError: d2 };
|
|
4351
|
+
}, [i2, u2, a2, o2, s2, v2, _2, r2, h2, m2, f2, d2]);
|
|
4352
|
+
return dr(lr.relatedPostsProvider, d2 ? `error` : i2.length > 0 ? `data` : `empty`), (0, import_jsx_runtime.jsx)(ou.Provider, { value: y2, children: e6 });
|
|
4353
|
+
};
|
|
4354
|
+
function yu({ children: e6, postsCount: n2 }) {
|
|
4355
|
+
let r2 = cr(), i2 = mr(), a2 = Gn(), o2 = lu(n2), s2 = ol(), l2 = hl(), u2 = _l(), d2 = _r(), f2 = (0, import_react.useMemo)(() => cl(Ln), []), { i18n: h2, locale: g2 } = Go($o), _2 = qn(() => {
|
|
4356
|
+
let e7 = `blog-builder:related:${JSON.stringify({ slug: r2 ?? ``, language: i2 ?? ``, limit: o2, ...u2 && { postId: u2 } })}`;
|
|
4357
|
+
return { slug: r2, language: i2, stripLoadPromise: Vn(fu(l2, e7, () => Mo({ key: e7, warmupData: d2, fetchData: () => {
|
|
4358
|
+
let e8 = $c({ slug: r2, language: i2, limit: o2, propagateErrors: true, sourcePromise: l2 }).then((e9) => s2 ? tl(e9, { limit: o2, language: i2 }) : e9);
|
|
4359
|
+
return pl(dl(f2, `related-posts-read`, { feature: sl.relatedPosts, tags: { limit: o2 } }, a2 ? Rc(e8, uu, `related-posts`) : e8));
|
|
4360
|
+
} })), hu, a2 ? _u : gu) };
|
|
4361
|
+
}, [r2, i2, a2, s2, l2, d2, o2, f2, u2]);
|
|
4362
|
+
return (0, import_jsx_runtime.jsx)(Co, { i18n: h2, children: (0, import_jsx_runtime.jsxs)(import_react.Suspense, { fallback: (0, import_jsx_runtime.jsx)(ou.Provider, { value: pu, children: e6 }), children: [(0, import_jsx_runtime.jsx)(Wo, { i18n: h2, locale: g2 }), (0, import_jsx_runtime.jsx)(fl, { fallback: (0, import_jsx_runtime.jsx)(ou.Provider, { value: mu, children: e6 }), feature: sl.relatedPosts, monitoringClient: f2, rethrow: a2, children: (0, import_jsx_runtime.jsx)(vu, { stripLoadPromise: _2.stripLoadPromise, slug: _2.slug, language: _2.language, children: e6 }, `${_2.language ?? ``}|${_2.slug ?? ``}`) })] }) });
|
|
4363
|
+
}
|
|
4364
|
+
var bu = An(`7d10ae29-fb0a-4361-8bc0-c3b8a3b96e34`);
|
|
4349
4365
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4350
4366
|
0 && (module.exports = {
|
|
4351
4367
|
RelatedPostsProvider,
|