react-intl 6.7.2 → 6.8.1
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/index.js +3 -3
- package/lib/src/components/injectIntl.js +4 -2
- package/lib/src/components/provider.d.ts +1 -1
- package/lib/src/types.d.ts +1 -1
- package/package.json +11 -11
- package/react-intl.iife.js +352 -294
- package/src/components/createFormattedComponent.js +3 -3
- package/src/components/injectIntl.js +5 -3
- package/src/components/provider.d.ts +1 -1
- package/src/components/useIntl.js +1 -1
- package/src/types.d.ts +1 -1
- package/src/utils.js +4 -4
package/react-intl.iife.js
CHANGED
|
@@ -1,17 +1,46 @@
|
|
|
1
1
|
var ReactIntl = (() => {
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
|
+
var __defProps = Object.defineProperties;
|
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
5
7
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
9
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
10
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
12
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13
|
+
var __spreadValues = (a, b) => {
|
|
14
|
+
for (var prop in b || (b = {}))
|
|
15
|
+
if (__hasOwnProp.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
if (__getOwnPropSymbols)
|
|
18
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
19
|
+
if (__propIsEnum.call(b, prop))
|
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
|
21
|
+
}
|
|
22
|
+
return a;
|
|
23
|
+
};
|
|
24
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
8
25
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
9
26
|
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
10
27
|
}) : x)(function(x) {
|
|
11
28
|
if (typeof require !== "undefined")
|
|
12
29
|
return require.apply(this, arguments);
|
|
13
|
-
throw
|
|
30
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
14
31
|
});
|
|
32
|
+
var __objRest = (source, exclude) => {
|
|
33
|
+
var target = {};
|
|
34
|
+
for (var prop in source)
|
|
35
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36
|
+
target[prop] = source[prop];
|
|
37
|
+
if (source != null && __getOwnPropSymbols)
|
|
38
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
39
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
40
|
+
target[prop] = source[prop];
|
|
41
|
+
}
|
|
42
|
+
return target;
|
|
43
|
+
};
|
|
15
44
|
var __commonJS = (cb, mod) => function __require2() {
|
|
16
45
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
17
46
|
};
|
|
@@ -36,10 +65,14 @@ var ReactIntl = (() => {
|
|
|
36
65
|
mod
|
|
37
66
|
));
|
|
38
67
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
68
|
+
var __publicField = (obj, key, value) => {
|
|
69
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
70
|
+
return value;
|
|
71
|
+
};
|
|
39
72
|
|
|
40
|
-
//
|
|
73
|
+
// node_modules/.aspect_rules_js/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js
|
|
41
74
|
var require_react_is_development = __commonJS({
|
|
42
|
-
"
|
|
75
|
+
"node_modules/.aspect_rules_js/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js"(exports) {
|
|
43
76
|
"use strict";
|
|
44
77
|
if (true) {
|
|
45
78
|
(function() {
|
|
@@ -192,9 +225,9 @@ var ReactIntl = (() => {
|
|
|
192
225
|
}
|
|
193
226
|
});
|
|
194
227
|
|
|
195
|
-
//
|
|
228
|
+
// node_modules/.aspect_rules_js/react-is@16.13.1/node_modules/react-is/index.js
|
|
196
229
|
var require_react_is = __commonJS({
|
|
197
|
-
"
|
|
230
|
+
"node_modules/.aspect_rules_js/react-is@16.13.1/node_modules/react-is/index.js"(exports, module) {
|
|
198
231
|
"use strict";
|
|
199
232
|
if (false) {
|
|
200
233
|
module.exports = null;
|
|
@@ -204,9 +237,9 @@ var ReactIntl = (() => {
|
|
|
204
237
|
}
|
|
205
238
|
});
|
|
206
239
|
|
|
207
|
-
//
|
|
240
|
+
// node_modules/.aspect_rules_js/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
|
|
208
241
|
var require_hoist_non_react_statics_cjs = __commonJS({
|
|
209
|
-
"
|
|
242
|
+
"node_modules/.aspect_rules_js/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(exports, module) {
|
|
210
243
|
"use strict";
|
|
211
244
|
var reactIs = require_react_is();
|
|
212
245
|
var REACT_STATICS = {
|
|
@@ -292,9 +325,9 @@ var ReactIntl = (() => {
|
|
|
292
325
|
}
|
|
293
326
|
});
|
|
294
327
|
|
|
295
|
-
//
|
|
296
|
-
var
|
|
297
|
-
__export(
|
|
328
|
+
// packages/react-intl/index.ts
|
|
329
|
+
var react_intl_exports = {};
|
|
330
|
+
__export(react_intl_exports, {
|
|
298
331
|
FormattedDate: () => FormattedDate,
|
|
299
332
|
FormattedDateParts: () => FormattedDateParts,
|
|
300
333
|
FormattedDateTimeRange: () => dateTimeRange_default,
|
|
@@ -309,7 +342,7 @@ var ReactIntl = (() => {
|
|
|
309
342
|
FormattedTime: () => FormattedTime,
|
|
310
343
|
FormattedTimeParts: () => FormattedTimeParts,
|
|
311
344
|
IntlContext: () => Context,
|
|
312
|
-
IntlProvider: () =>
|
|
345
|
+
IntlProvider: () => IntlProvider2,
|
|
313
346
|
InvalidConfigError: () => InvalidConfigError,
|
|
314
347
|
MessageFormatError: () => MessageFormatError,
|
|
315
348
|
MissingDataError: () => MissingDataError,
|
|
@@ -326,79 +359,23 @@ var ReactIntl = (() => {
|
|
|
326
359
|
useIntl: () => useIntl
|
|
327
360
|
});
|
|
328
361
|
|
|
329
|
-
//
|
|
330
|
-
var extendStatics = function(d, b) {
|
|
331
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
332
|
-
d2.__proto__ = b2;
|
|
333
|
-
} || function(d2, b2) {
|
|
334
|
-
for (var p in b2)
|
|
335
|
-
if (Object.prototype.hasOwnProperty.call(b2, p))
|
|
336
|
-
d2[p] = b2[p];
|
|
337
|
-
};
|
|
338
|
-
return extendStatics(d, b);
|
|
339
|
-
};
|
|
340
|
-
function __extends(d, b) {
|
|
341
|
-
if (typeof b !== "function" && b !== null)
|
|
342
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
343
|
-
extendStatics(d, b);
|
|
344
|
-
function __() {
|
|
345
|
-
this.constructor = d;
|
|
346
|
-
}
|
|
347
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
348
|
-
}
|
|
349
|
-
var __assign = function() {
|
|
350
|
-
__assign = Object.assign || function __assign2(t) {
|
|
351
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
352
|
-
s = arguments[i];
|
|
353
|
-
for (var p in s)
|
|
354
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
355
|
-
t[p] = s[p];
|
|
356
|
-
}
|
|
357
|
-
return t;
|
|
358
|
-
};
|
|
359
|
-
return __assign.apply(this, arguments);
|
|
360
|
-
};
|
|
361
|
-
function __rest(s, e) {
|
|
362
|
-
var t = {};
|
|
363
|
-
for (var p in s)
|
|
364
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
365
|
-
t[p] = s[p];
|
|
366
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
367
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
368
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
369
|
-
t[p[i]] = s[p[i]];
|
|
370
|
-
}
|
|
371
|
-
return t;
|
|
372
|
-
}
|
|
373
|
-
function __spreadArray(to, from, pack) {
|
|
374
|
-
if (pack || arguments.length === 2)
|
|
375
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
376
|
-
if (ar || !(i in from)) {
|
|
377
|
-
if (!ar)
|
|
378
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
379
|
-
ar[i] = from[i];
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/react-intl/lib/src/components/createFormattedComponent.js
|
|
362
|
+
// packages/react-intl/src/components/createFormattedComponent.tsx
|
|
386
363
|
var React4 = __toESM(window.React);
|
|
387
364
|
|
|
388
|
-
//
|
|
365
|
+
// packages/react-intl/src/components/useIntl.ts
|
|
389
366
|
var React3 = __toESM(window.React);
|
|
390
367
|
|
|
391
|
-
//
|
|
368
|
+
// packages/react-intl/src/utils.ts
|
|
392
369
|
var React = __toESM(window.React);
|
|
393
370
|
|
|
394
|
-
//
|
|
371
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/262.js
|
|
395
372
|
var MINUTES_PER_HOUR = 60;
|
|
396
373
|
var SECONDS_PER_MINUTE = 60;
|
|
397
374
|
var MS_PER_SECOND = 1e3;
|
|
398
375
|
var MS_PER_MINUTE = MS_PER_SECOND * SECONDS_PER_MINUTE;
|
|
399
376
|
var MS_PER_HOUR = MS_PER_MINUTE * MINUTES_PER_HOUR;
|
|
400
377
|
|
|
401
|
-
//
|
|
378
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/IsSanctionedSimpleUnitIdentifier.js
|
|
402
379
|
var SANCTIONED_UNITS = [
|
|
403
380
|
"angle-degree",
|
|
404
381
|
"area-acre",
|
|
@@ -449,7 +426,63 @@ var ReactIntl = (() => {
|
|
|
449
426
|
}
|
|
450
427
|
var SIMPLE_UNITS = SANCTIONED_UNITS.map(removeUnitNamespace);
|
|
451
428
|
|
|
452
|
-
//
|
|
429
|
+
// node_modules/.aspect_rules_js/tslib@2.8.0/node_modules/tslib/tslib.es6.mjs
|
|
430
|
+
var extendStatics = function(d, b) {
|
|
431
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
432
|
+
d2.__proto__ = b2;
|
|
433
|
+
} || function(d2, b2) {
|
|
434
|
+
for (var p in b2)
|
|
435
|
+
if (Object.prototype.hasOwnProperty.call(b2, p))
|
|
436
|
+
d2[p] = b2[p];
|
|
437
|
+
};
|
|
438
|
+
return extendStatics(d, b);
|
|
439
|
+
};
|
|
440
|
+
function __extends(d, b) {
|
|
441
|
+
if (typeof b !== "function" && b !== null)
|
|
442
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
443
|
+
extendStatics(d, b);
|
|
444
|
+
function __() {
|
|
445
|
+
this.constructor = d;
|
|
446
|
+
}
|
|
447
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
448
|
+
}
|
|
449
|
+
var __assign = function() {
|
|
450
|
+
__assign = Object.assign || function __assign2(t) {
|
|
451
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
452
|
+
s = arguments[i];
|
|
453
|
+
for (var p in s)
|
|
454
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
455
|
+
t[p] = s[p];
|
|
456
|
+
}
|
|
457
|
+
return t;
|
|
458
|
+
};
|
|
459
|
+
return __assign.apply(this, arguments);
|
|
460
|
+
};
|
|
461
|
+
function __rest(s, e) {
|
|
462
|
+
var t = {};
|
|
463
|
+
for (var p in s)
|
|
464
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
465
|
+
t[p] = s[p];
|
|
466
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
467
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
468
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
469
|
+
t[p[i]] = s[p[i]];
|
|
470
|
+
}
|
|
471
|
+
return t;
|
|
472
|
+
}
|
|
473
|
+
function __spreadArray(to, from, pack) {
|
|
474
|
+
if (pack || arguments.length === 2)
|
|
475
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
476
|
+
if (ar || !(i in from)) {
|
|
477
|
+
if (!ar)
|
|
478
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
479
|
+
ar[i] = from[i];
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
// node_modules/.aspect_rules_js/@formatjs+fast-memoize@0.0.0/node_modules/@formatjs/fast-memoize/lib/index.js
|
|
453
486
|
function memoize(fn, options) {
|
|
454
487
|
var cache = options && options.cache ? options.cache : cacheDefault;
|
|
455
488
|
var serializer = options && options.serializer ? options.serializer : serializerDefault;
|
|
@@ -516,7 +549,7 @@ var ReactIntl = (() => {
|
|
|
516
549
|
monadic: strategyMonadic
|
|
517
550
|
};
|
|
518
551
|
|
|
519
|
-
//
|
|
552
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/utils.js
|
|
520
553
|
function invariant(condition, message, Err) {
|
|
521
554
|
if (Err === void 0) {
|
|
522
555
|
Err = Error;
|
|
@@ -576,14 +609,14 @@ var ReactIntl = (() => {
|
|
|
576
609
|
strategy: strategies.variadic
|
|
577
610
|
});
|
|
578
611
|
|
|
579
|
-
//
|
|
612
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/regex.generated.js
|
|
580
613
|
var S_UNICODE_REGEX = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEE0-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDD78\uDD7A-\uDDCB\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6\uDF00-\uDF92\uDF94-\uDFCA]/;
|
|
581
614
|
|
|
582
|
-
//
|
|
615
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/format_to_parts.js
|
|
583
616
|
var CARET_S_UNICODE_REGEX = new RegExp("^".concat(S_UNICODE_REGEX.source));
|
|
584
617
|
var S_DOLLAR_UNICODE_REGEX = new RegExp("".concat(S_UNICODE_REGEX.source, "$"));
|
|
585
618
|
|
|
586
|
-
//
|
|
619
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/data.js
|
|
587
620
|
var MissingLocaleDataError = (
|
|
588
621
|
/** @class */
|
|
589
622
|
function(_super) {
|
|
@@ -597,7 +630,7 @@ var ReactIntl = (() => {
|
|
|
597
630
|
}(Error)
|
|
598
631
|
);
|
|
599
632
|
|
|
600
|
-
//
|
|
633
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/types/date-time.js
|
|
601
634
|
var RangePatternType;
|
|
602
635
|
(function(RangePatternType2) {
|
|
603
636
|
RangePatternType2["startRange"] = "startRange";
|
|
@@ -605,7 +638,7 @@ var ReactIntl = (() => {
|
|
|
605
638
|
RangePatternType2["endRange"] = "endRange";
|
|
606
639
|
})(RangePatternType || (RangePatternType = {}));
|
|
607
640
|
|
|
608
|
-
//
|
|
641
|
+
// node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/error.js
|
|
609
642
|
var ErrorKind;
|
|
610
643
|
(function(ErrorKind2) {
|
|
611
644
|
ErrorKind2[ErrorKind2["EXPECT_ARGUMENT_CLOSING_BRACE"] = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE";
|
|
@@ -636,7 +669,7 @@ var ReactIntl = (() => {
|
|
|
636
669
|
ErrorKind2[ErrorKind2["UNCLOSED_TAG"] = 27] = "UNCLOSED_TAG";
|
|
637
670
|
})(ErrorKind || (ErrorKind = {}));
|
|
638
671
|
|
|
639
|
-
//
|
|
672
|
+
// node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/types.js
|
|
640
673
|
var TYPE;
|
|
641
674
|
(function(TYPE2) {
|
|
642
675
|
TYPE2[TYPE2["literal"] = 0] = "literal";
|
|
@@ -688,10 +721,10 @@ var ReactIntl = (() => {
|
|
|
688
721
|
return !!(el && typeof el === "object" && el.type === SKELETON_TYPE.dateTime);
|
|
689
722
|
}
|
|
690
723
|
|
|
691
|
-
//
|
|
724
|
+
// node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/regex.generated.js
|
|
692
725
|
var SPACE_SEPARATOR_REGEX = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
|
|
693
726
|
|
|
694
|
-
//
|
|
727
|
+
// node_modules/.aspect_rules_js/@formatjs+icu-skeleton-parser@0.0.0/node_modules/@formatjs/icu-skeleton-parser/lib/date-time.js
|
|
695
728
|
var DATE_TIME_REGEX = /(?:[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;
|
|
696
729
|
function parseDateTimeSkeleton(skeleton) {
|
|
697
730
|
var result = {};
|
|
@@ -792,10 +825,10 @@ var ReactIntl = (() => {
|
|
|
792
825
|
return result;
|
|
793
826
|
}
|
|
794
827
|
|
|
795
|
-
//
|
|
828
|
+
// node_modules/.aspect_rules_js/@formatjs+icu-skeleton-parser@0.0.0/node_modules/@formatjs/icu-skeleton-parser/lib/regex.generated.js
|
|
796
829
|
var WHITE_SPACE_REGEX = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
797
830
|
|
|
798
|
-
//
|
|
831
|
+
// node_modules/.aspect_rules_js/@formatjs+icu-skeleton-parser@0.0.0/node_modules/@formatjs/icu-skeleton-parser/lib/number.js
|
|
799
832
|
function parseNumberSkeletonFromString(skeleton) {
|
|
800
833
|
if (skeleton.length === 0) {
|
|
801
834
|
throw new Error("Number skeleton cannot be empty");
|
|
@@ -1082,12 +1115,18 @@ var ReactIntl = (() => {
|
|
|
1082
1115
|
return result;
|
|
1083
1116
|
}
|
|
1084
1117
|
|
|
1085
|
-
//
|
|
1118
|
+
// node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/time-data.generated.js
|
|
1086
1119
|
var timeData = {
|
|
1087
1120
|
"001": [
|
|
1088
1121
|
"H",
|
|
1089
1122
|
"h"
|
|
1090
1123
|
],
|
|
1124
|
+
"419": [
|
|
1125
|
+
"h",
|
|
1126
|
+
"H",
|
|
1127
|
+
"hB",
|
|
1128
|
+
"hb"
|
|
1129
|
+
],
|
|
1091
1130
|
"AC": [
|
|
1092
1131
|
"H",
|
|
1093
1132
|
"h",
|
|
@@ -1136,8 +1175,8 @@ var ReactIntl = (() => {
|
|
|
1136
1175
|
"hB"
|
|
1137
1176
|
],
|
|
1138
1177
|
"AR": [
|
|
1139
|
-
"H",
|
|
1140
1178
|
"h",
|
|
1179
|
+
"H",
|
|
1141
1180
|
"hB",
|
|
1142
1181
|
"hb"
|
|
1143
1182
|
],
|
|
@@ -1227,9 +1266,9 @@ var ReactIntl = (() => {
|
|
|
1227
1266
|
"H"
|
|
1228
1267
|
],
|
|
1229
1268
|
"BO": [
|
|
1269
|
+
"h",
|
|
1230
1270
|
"H",
|
|
1231
1271
|
"hB",
|
|
1232
|
-
"h",
|
|
1233
1272
|
"hb"
|
|
1234
1273
|
],
|
|
1235
1274
|
"BQ": [
|
|
@@ -1306,8 +1345,8 @@ var ReactIntl = (() => {
|
|
|
1306
1345
|
"hB"
|
|
1307
1346
|
],
|
|
1308
1347
|
"CL": [
|
|
1309
|
-
"H",
|
|
1310
1348
|
"h",
|
|
1349
|
+
"H",
|
|
1311
1350
|
"hB",
|
|
1312
1351
|
"hb"
|
|
1313
1352
|
],
|
|
@@ -1332,14 +1371,14 @@ var ReactIntl = (() => {
|
|
|
1332
1371
|
"H"
|
|
1333
1372
|
],
|
|
1334
1373
|
"CR": [
|
|
1335
|
-
"H",
|
|
1336
1374
|
"h",
|
|
1375
|
+
"H",
|
|
1337
1376
|
"hB",
|
|
1338
1377
|
"hb"
|
|
1339
1378
|
],
|
|
1340
1379
|
"CU": [
|
|
1341
|
-
"H",
|
|
1342
1380
|
"h",
|
|
1381
|
+
"H",
|
|
1343
1382
|
"hB",
|
|
1344
1383
|
"hb"
|
|
1345
1384
|
],
|
|
@@ -1408,9 +1447,9 @@ var ReactIntl = (() => {
|
|
|
1408
1447
|
"hb"
|
|
1409
1448
|
],
|
|
1410
1449
|
"EC": [
|
|
1450
|
+
"h",
|
|
1411
1451
|
"H",
|
|
1412
1452
|
"hB",
|
|
1413
|
-
"h",
|
|
1414
1453
|
"hb"
|
|
1415
1454
|
],
|
|
1416
1455
|
"EE": [
|
|
@@ -1546,8 +1585,8 @@ var ReactIntl = (() => {
|
|
|
1546
1585
|
"hB"
|
|
1547
1586
|
],
|
|
1548
1587
|
"GT": [
|
|
1549
|
-
"H",
|
|
1550
1588
|
"h",
|
|
1589
|
+
"H",
|
|
1551
1590
|
"hB",
|
|
1552
1591
|
"hb"
|
|
1553
1592
|
],
|
|
@@ -1574,8 +1613,8 @@ var ReactIntl = (() => {
|
|
|
1574
1613
|
"H"
|
|
1575
1614
|
],
|
|
1576
1615
|
"HN": [
|
|
1577
|
-
"H",
|
|
1578
1616
|
"h",
|
|
1617
|
+
"H",
|
|
1579
1618
|
"hB",
|
|
1580
1619
|
"hb"
|
|
1581
1620
|
],
|
|
@@ -1889,8 +1928,8 @@ var ReactIntl = (() => {
|
|
|
1889
1928
|
"hB"
|
|
1890
1929
|
],
|
|
1891
1930
|
"MX": [
|
|
1892
|
-
"H",
|
|
1893
1931
|
"h",
|
|
1932
|
+
"H",
|
|
1894
1933
|
"hB",
|
|
1895
1934
|
"hb"
|
|
1896
1935
|
],
|
|
@@ -1930,8 +1969,8 @@ var ReactIntl = (() => {
|
|
|
1930
1969
|
"hB"
|
|
1931
1970
|
],
|
|
1932
1971
|
"NI": [
|
|
1933
|
-
"H",
|
|
1934
1972
|
"h",
|
|
1973
|
+
"H",
|
|
1935
1974
|
"hB",
|
|
1936
1975
|
"hb"
|
|
1937
1976
|
],
|
|
@@ -1979,9 +2018,9 @@ var ReactIntl = (() => {
|
|
|
1979
2018
|
"hb"
|
|
1980
2019
|
],
|
|
1981
2020
|
"PE": [
|
|
2021
|
+
"h",
|
|
1982
2022
|
"H",
|
|
1983
2023
|
"hB",
|
|
1984
|
-
"h",
|
|
1985
2024
|
"hb"
|
|
1986
2025
|
],
|
|
1987
2026
|
"PF": [
|
|
@@ -2039,8 +2078,8 @@ var ReactIntl = (() => {
|
|
|
2039
2078
|
"H"
|
|
2040
2079
|
],
|
|
2041
2080
|
"PY": [
|
|
2042
|
-
"H",
|
|
2043
2081
|
"h",
|
|
2082
|
+
"H",
|
|
2044
2083
|
"hB",
|
|
2045
2084
|
"hb"
|
|
2046
2085
|
],
|
|
@@ -2153,8 +2192,8 @@ var ReactIntl = (() => {
|
|
|
2153
2192
|
"hB"
|
|
2154
2193
|
],
|
|
2155
2194
|
"SV": [
|
|
2156
|
-
"H",
|
|
2157
2195
|
"h",
|
|
2196
|
+
"H",
|
|
2158
2197
|
"hB",
|
|
2159
2198
|
"hb"
|
|
2160
2199
|
],
|
|
@@ -2276,8 +2315,8 @@ var ReactIntl = (() => {
|
|
|
2276
2315
|
"hB"
|
|
2277
2316
|
],
|
|
2278
2317
|
"UY": [
|
|
2279
|
-
"H",
|
|
2280
2318
|
"h",
|
|
2319
|
+
"H",
|
|
2281
2320
|
"hB",
|
|
2282
2321
|
"hb"
|
|
2283
2322
|
],
|
|
@@ -2385,24 +2424,12 @@ var ReactIntl = (() => {
|
|
|
2385
2424
|
"H",
|
|
2386
2425
|
"hB"
|
|
2387
2426
|
],
|
|
2388
|
-
"es-BO": [
|
|
2389
|
-
"H",
|
|
2390
|
-
"h",
|
|
2391
|
-
"hB",
|
|
2392
|
-
"hb"
|
|
2393
|
-
],
|
|
2394
2427
|
"es-BR": [
|
|
2395
2428
|
"H",
|
|
2396
2429
|
"h",
|
|
2397
2430
|
"hB",
|
|
2398
2431
|
"hb"
|
|
2399
2432
|
],
|
|
2400
|
-
"es-EC": [
|
|
2401
|
-
"H",
|
|
2402
|
-
"h",
|
|
2403
|
-
"hB",
|
|
2404
|
-
"hb"
|
|
2405
|
-
],
|
|
2406
2433
|
"es-ES": [
|
|
2407
2434
|
"H",
|
|
2408
2435
|
"h",
|
|
@@ -2415,12 +2442,6 @@ var ReactIntl = (() => {
|
|
|
2415
2442
|
"hB",
|
|
2416
2443
|
"hb"
|
|
2417
2444
|
],
|
|
2418
|
-
"es-PE": [
|
|
2419
|
-
"H",
|
|
2420
|
-
"h",
|
|
2421
|
-
"hB",
|
|
2422
|
-
"hb"
|
|
2423
|
-
],
|
|
2424
2445
|
"fr-CA": [
|
|
2425
2446
|
"H",
|
|
2426
2447
|
"h",
|
|
@@ -2493,7 +2514,7 @@ var ReactIntl = (() => {
|
|
|
2493
2514
|
]
|
|
2494
2515
|
};
|
|
2495
2516
|
|
|
2496
|
-
//
|
|
2517
|
+
// node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/date-time-pattern-generator.js
|
|
2497
2518
|
function getBestPattern(skeleton, locale) {
|
|
2498
2519
|
var skeletonCopy = "";
|
|
2499
2520
|
for (var patternPos = 0; patternPos < skeleton.length; patternPos++) {
|
|
@@ -2555,7 +2576,7 @@ var ReactIntl = (() => {
|
|
|
2555
2576
|
return hourCycles[0];
|
|
2556
2577
|
}
|
|
2557
2578
|
|
|
2558
|
-
//
|
|
2579
|
+
// node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/parser.js
|
|
2559
2580
|
var _a;
|
|
2560
2581
|
var SPACE_SEPARATOR_START_REGEX = new RegExp("^".concat(SPACE_SEPARATOR_REGEX.source, "*"));
|
|
2561
2582
|
var SPACE_SEPARATOR_END_REGEX = new RegExp("".concat(SPACE_SEPARATOR_REGEX.source, "*$"));
|
|
@@ -3360,7 +3381,7 @@ var ReactIntl = (() => {
|
|
|
3360
3381
|
return c >= 33 && c <= 35 || c === 36 || c >= 37 && c <= 39 || c === 40 || c === 41 || c === 42 || c === 43 || c === 44 || c === 45 || c >= 46 && c <= 47 || c >= 58 && c <= 59 || c >= 60 && c <= 62 || c >= 63 && c <= 64 || c === 91 || c === 92 || c === 93 || c === 94 || c === 96 || c === 123 || c === 124 || c === 125 || c === 126 || c === 161 || c >= 162 && c <= 165 || c === 166 || c === 167 || c === 169 || c === 171 || c === 172 || c === 174 || c === 176 || c === 177 || c === 182 || c === 187 || c === 191 || c === 215 || c === 247 || c >= 8208 && c <= 8213 || c >= 8214 && c <= 8215 || c === 8216 || c === 8217 || c === 8218 || c >= 8219 && c <= 8220 || c === 8221 || c === 8222 || c === 8223 || c >= 8224 && c <= 8231 || c >= 8240 && c <= 8248 || c === 8249 || c === 8250 || c >= 8251 && c <= 8254 || c >= 8257 && c <= 8259 || c === 8260 || c === 8261 || c === 8262 || c >= 8263 && c <= 8273 || c === 8274 || c === 8275 || c >= 8277 && c <= 8286 || c >= 8592 && c <= 8596 || c >= 8597 && c <= 8601 || c >= 8602 && c <= 8603 || c >= 8604 && c <= 8607 || c === 8608 || c >= 8609 && c <= 8610 || c === 8611 || c >= 8612 && c <= 8613 || c === 8614 || c >= 8615 && c <= 8621 || c === 8622 || c >= 8623 && c <= 8653 || c >= 8654 && c <= 8655 || c >= 8656 && c <= 8657 || c === 8658 || c === 8659 || c === 8660 || c >= 8661 && c <= 8691 || c >= 8692 && c <= 8959 || c >= 8960 && c <= 8967 || c === 8968 || c === 8969 || c === 8970 || c === 8971 || c >= 8972 && c <= 8991 || c >= 8992 && c <= 8993 || c >= 8994 && c <= 9e3 || c === 9001 || c === 9002 || c >= 9003 && c <= 9083 || c === 9084 || c >= 9085 && c <= 9114 || c >= 9115 && c <= 9139 || c >= 9140 && c <= 9179 || c >= 9180 && c <= 9185 || c >= 9186 && c <= 9254 || c >= 9255 && c <= 9279 || c >= 9280 && c <= 9290 || c >= 9291 && c <= 9311 || c >= 9472 && c <= 9654 || c === 9655 || c >= 9656 && c <= 9664 || c === 9665 || c >= 9666 && c <= 9719 || c >= 9720 && c <= 9727 || c >= 9728 && c <= 9838 || c === 9839 || c >= 9840 && c <= 10087 || c === 10088 || c === 10089 || c === 10090 || c === 10091 || c === 10092 || c === 10093 || c === 10094 || c === 10095 || c === 10096 || c === 10097 || c === 10098 || c === 10099 || c === 10100 || c === 10101 || c >= 10132 && c <= 10175 || c >= 10176 && c <= 10180 || c === 10181 || c === 10182 || c >= 10183 && c <= 10213 || c === 10214 || c === 10215 || c === 10216 || c === 10217 || c === 10218 || c === 10219 || c === 10220 || c === 10221 || c === 10222 || c === 10223 || c >= 10224 && c <= 10239 || c >= 10240 && c <= 10495 || c >= 10496 && c <= 10626 || c === 10627 || c === 10628 || c === 10629 || c === 10630 || c === 10631 || c === 10632 || c === 10633 || c === 10634 || c === 10635 || c === 10636 || c === 10637 || c === 10638 || c === 10639 || c === 10640 || c === 10641 || c === 10642 || c === 10643 || c === 10644 || c === 10645 || c === 10646 || c === 10647 || c === 10648 || c >= 10649 && c <= 10711 || c === 10712 || c === 10713 || c === 10714 || c === 10715 || c >= 10716 && c <= 10747 || c === 10748 || c === 10749 || c >= 10750 && c <= 11007 || c >= 11008 && c <= 11055 || c >= 11056 && c <= 11076 || c >= 11077 && c <= 11078 || c >= 11079 && c <= 11084 || c >= 11085 && c <= 11123 || c >= 11124 && c <= 11125 || c >= 11126 && c <= 11157 || c === 11158 || c >= 11159 && c <= 11263 || c >= 11776 && c <= 11777 || c === 11778 || c === 11779 || c === 11780 || c === 11781 || c >= 11782 && c <= 11784 || c === 11785 || c === 11786 || c === 11787 || c === 11788 || c === 11789 || c >= 11790 && c <= 11798 || c === 11799 || c >= 11800 && c <= 11801 || c === 11802 || c === 11803 || c === 11804 || c === 11805 || c >= 11806 && c <= 11807 || c === 11808 || c === 11809 || c === 11810 || c === 11811 || c === 11812 || c === 11813 || c === 11814 || c === 11815 || c === 11816 || c === 11817 || c >= 11818 && c <= 11822 || c === 11823 || c >= 11824 && c <= 11833 || c >= 11834 && c <= 11835 || c >= 11836 && c <= 11839 || c === 11840 || c === 11841 || c === 11842 || c >= 11843 && c <= 11855 || c >= 11856 && c <= 11857 || c === 11858 || c >= 11859 && c <= 11903 || c >= 12289 && c <= 12291 || c === 12296 || c === 12297 || c === 12298 || c === 12299 || c === 12300 || c === 12301 || c === 12302 || c === 12303 || c === 12304 || c === 12305 || c >= 12306 && c <= 12307 || c === 12308 || c === 12309 || c === 12310 || c === 12311 || c === 12312 || c === 12313 || c === 12314 || c === 12315 || c === 12316 || c === 12317 || c >= 12318 && c <= 12319 || c === 12320 || c === 12336 || c === 64830 || c === 64831 || c >= 65093 && c <= 65094;
|
|
3361
3382
|
}
|
|
3362
3383
|
|
|
3363
|
-
//
|
|
3384
|
+
// node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/index.js
|
|
3364
3385
|
function pruneLocation(els) {
|
|
3365
3386
|
els.forEach(function(el) {
|
|
3366
3387
|
delete el.location;
|
|
@@ -3396,7 +3417,7 @@ var ReactIntl = (() => {
|
|
|
3396
3417
|
return result.val;
|
|
3397
3418
|
}
|
|
3398
3419
|
|
|
3399
|
-
//
|
|
3420
|
+
// node_modules/.aspect_rules_js/intl-messageformat@0.0.0/node_modules/intl-messageformat/lib/src/error.js
|
|
3400
3421
|
var ErrorCode;
|
|
3401
3422
|
(function(ErrorCode2) {
|
|
3402
3423
|
ErrorCode2["MISSING_VALUE"] = "MISSING_VALUE";
|
|
@@ -3450,7 +3471,7 @@ var ReactIntl = (() => {
|
|
|
3450
3471
|
}(FormatError)
|
|
3451
3472
|
);
|
|
3452
3473
|
|
|
3453
|
-
//
|
|
3474
|
+
// node_modules/.aspect_rules_js/intl-messageformat@0.0.0/node_modules/intl-messageformat/lib/src/formatters.js
|
|
3454
3475
|
var PART_TYPE;
|
|
3455
3476
|
(function(PART_TYPE2) {
|
|
3456
3477
|
PART_TYPE2[PART_TYPE2["literal"] = 0] = "literal";
|
|
@@ -3590,7 +3611,7 @@ var ReactIntl = (() => {
|
|
|
3590
3611
|
return mergeLiteral(result);
|
|
3591
3612
|
}
|
|
3592
3613
|
|
|
3593
|
-
//
|
|
3614
|
+
// node_modules/.aspect_rules_js/intl-messageformat@0.0.0/node_modules/intl-messageformat/lib/src/core.js
|
|
3594
3615
|
function mergeConfig(c1, c2) {
|
|
3595
3616
|
if (!c2) {
|
|
3596
3617
|
return c1;
|
|
@@ -3671,10 +3692,10 @@ var ReactIntl = (() => {
|
|
|
3671
3692
|
/** @class */
|
|
3672
3693
|
function() {
|
|
3673
3694
|
function IntlMessageFormat2(message, locales, overrideFormats, opts) {
|
|
3674
|
-
var _this = this;
|
|
3675
3695
|
if (locales === void 0) {
|
|
3676
3696
|
locales = IntlMessageFormat2.defaultLocale;
|
|
3677
3697
|
}
|
|
3698
|
+
var _this = this;
|
|
3678
3699
|
this.formatterCache = {
|
|
3679
3700
|
number: {},
|
|
3680
3701
|
dateTime: {},
|
|
@@ -3813,7 +3834,7 @@ var ReactIntl = (() => {
|
|
|
3813
3834
|
}()
|
|
3814
3835
|
);
|
|
3815
3836
|
|
|
3816
|
-
//
|
|
3837
|
+
// node_modules/.aspect_rules_js/@formatjs+intl@0.0.0/node_modules/@formatjs/intl/lib/src/error.js
|
|
3817
3838
|
var IntlErrorCode;
|
|
3818
3839
|
(function(IntlErrorCode2) {
|
|
3819
3840
|
IntlErrorCode2["FORMAT_ERROR"] = "FORMAT_ERROR";
|
|
@@ -3910,7 +3931,7 @@ var ReactIntl = (() => {
|
|
|
3910
3931
|
}(IntlError)
|
|
3911
3932
|
);
|
|
3912
3933
|
|
|
3913
|
-
//
|
|
3934
|
+
// node_modules/.aspect_rules_js/@formatjs+intl@0.0.0/node_modules/@formatjs/intl/lib/src/utils.js
|
|
3914
3935
|
function filterProps(props, allowlist, defaults) {
|
|
3915
3936
|
if (defaults === void 0) {
|
|
3916
3937
|
defaults = {};
|
|
@@ -4067,7 +4088,7 @@ var ReactIntl = (() => {
|
|
|
4067
4088
|
onError(new UnsupportedFormatterError("No ".concat(type, " format named: ").concat(name)));
|
|
4068
4089
|
}
|
|
4069
4090
|
|
|
4070
|
-
//
|
|
4091
|
+
// node_modules/.aspect_rules_js/@formatjs+intl@0.0.0/node_modules/@formatjs/intl/lib/src/message.js
|
|
4071
4092
|
function setTimeZoneInOptions(opts, timeZone) {
|
|
4072
4093
|
return Object.keys(opts).reduce(function(all, k) {
|
|
4073
4094
|
all[k] = __assign({ timeZone }, opts[k]);
|
|
@@ -4152,7 +4173,7 @@ var ReactIntl = (() => {
|
|
|
4152
4173
|
return id;
|
|
4153
4174
|
};
|
|
4154
4175
|
|
|
4155
|
-
//
|
|
4176
|
+
// node_modules/.aspect_rules_js/@formatjs+intl@0.0.0/node_modules/@formatjs/intl/lib/src/dateTime.js
|
|
4156
4177
|
var DATE_TIME_FORMAT_OPTIONS = [
|
|
4157
4178
|
"formatMatcher",
|
|
4158
4179
|
"timeZone",
|
|
@@ -4259,7 +4280,7 @@ var ReactIntl = (() => {
|
|
|
4259
4280
|
return [];
|
|
4260
4281
|
}
|
|
4261
4282
|
|
|
4262
|
-
//
|
|
4283
|
+
// node_modules/.aspect_rules_js/@formatjs+intl@0.0.0/node_modules/@formatjs/intl/lib/src/displayName.js
|
|
4263
4284
|
var DISPLAY_NAMES_OPTONS = [
|
|
4264
4285
|
"style",
|
|
4265
4286
|
"type",
|
|
@@ -4280,7 +4301,7 @@ var ReactIntl = (() => {
|
|
|
4280
4301
|
}
|
|
4281
4302
|
}
|
|
4282
4303
|
|
|
4283
|
-
//
|
|
4304
|
+
// node_modules/.aspect_rules_js/@formatjs+intl@0.0.0/node_modules/@formatjs/intl/lib/src/list.js
|
|
4284
4305
|
var LIST_FORMAT_OPTIONS = [
|
|
4285
4306
|
"type",
|
|
4286
4307
|
"style"
|
|
@@ -4335,7 +4356,7 @@ var ReactIntl = (() => {
|
|
|
4335
4356
|
return values;
|
|
4336
4357
|
}
|
|
4337
4358
|
|
|
4338
|
-
//
|
|
4359
|
+
// node_modules/.aspect_rules_js/@formatjs+intl@0.0.0/node_modules/@formatjs/intl/lib/src/plural.js
|
|
4339
4360
|
var PLURAL_FORMAT_OPTIONS = ["type"];
|
|
4340
4361
|
function formatPlural(_a2, getPluralRules, value, options) {
|
|
4341
4362
|
var locale = _a2.locale, onError = _a2.onError;
|
|
@@ -4354,7 +4375,7 @@ var ReactIntl = (() => {
|
|
|
4354
4375
|
return "other";
|
|
4355
4376
|
}
|
|
4356
4377
|
|
|
4357
|
-
//
|
|
4378
|
+
// node_modules/.aspect_rules_js/@formatjs+intl@0.0.0/node_modules/@formatjs/intl/lib/src/relativeTime.js
|
|
4358
4379
|
var RELATIVE_TIME_FORMAT_OPTIONS = ["numeric", "style"];
|
|
4359
4380
|
function getFormatter2(_a2, getRelativeTimeFormat, options) {
|
|
4360
4381
|
var locale = _a2.locale, formats = _a2.formats, onError = _a2.onError;
|
|
@@ -4385,7 +4406,7 @@ var ReactIntl = (() => {
|
|
|
4385
4406
|
return String(value);
|
|
4386
4407
|
}
|
|
4387
4408
|
|
|
4388
|
-
//
|
|
4409
|
+
// node_modules/.aspect_rules_js/@formatjs+intl@0.0.0/node_modules/@formatjs/intl/lib/src/number.js
|
|
4389
4410
|
var NUMBER_FORMAT_OPTIONS = [
|
|
4390
4411
|
"style",
|
|
4391
4412
|
"currency",
|
|
@@ -4445,7 +4466,7 @@ var ReactIntl = (() => {
|
|
|
4445
4466
|
return [];
|
|
4446
4467
|
}
|
|
4447
4468
|
|
|
4448
|
-
//
|
|
4469
|
+
// node_modules/.aspect_rules_js/@formatjs+intl@0.0.0/node_modules/@formatjs/intl/lib/src/create-intl.js
|
|
4449
4470
|
function messagesContainString(messages) {
|
|
4450
4471
|
var firstMessage = messages ? messages[Object.keys(messages)[0]] : void 0;
|
|
4451
4472
|
return typeof firstMessage === "string";
|
|
@@ -4491,11 +4512,16 @@ var ReactIntl = (() => {
|
|
|
4491
4512
|
});
|
|
4492
4513
|
}
|
|
4493
4514
|
|
|
4494
|
-
//
|
|
4515
|
+
// packages/react-intl/src/utils.ts
|
|
4495
4516
|
function invariantIntlContext(intl) {
|
|
4496
|
-
invariant(
|
|
4517
|
+
invariant(
|
|
4518
|
+
intl,
|
|
4519
|
+
"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry."
|
|
4520
|
+
);
|
|
4497
4521
|
}
|
|
4498
|
-
var DEFAULT_INTL_CONFIG2 =
|
|
4522
|
+
var DEFAULT_INTL_CONFIG2 = __spreadProps(__spreadValues({}, DEFAULT_INTL_CONFIG), {
|
|
4523
|
+
textComponent: React.Fragment
|
|
4524
|
+
});
|
|
4499
4525
|
function assignUniqueKeysToParts(formatXMLElementFn) {
|
|
4500
4526
|
return function(parts) {
|
|
4501
4527
|
return formatXMLElementFn(React.Children.toArray(parts));
|
|
@@ -4523,140 +4549,150 @@ var ReactIntl = (() => {
|
|
|
4523
4549
|
return true;
|
|
4524
4550
|
}
|
|
4525
4551
|
|
|
4526
|
-
//
|
|
4527
|
-
var React2 = __toESM(window.React);
|
|
4552
|
+
// packages/react-intl/src/components/injectIntl.tsx
|
|
4528
4553
|
var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
|
|
4554
|
+
var React2 = __toESM(window.React);
|
|
4529
4555
|
function getDisplayName(Component) {
|
|
4530
4556
|
return Component.displayName || Component.name || "Component";
|
|
4531
4557
|
}
|
|
4532
|
-
var IntlContext = typeof window !== "undefined" && !window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__ ? window.__REACT_INTL_CONTEXT__ || (window.__REACT_INTL_CONTEXT__ = React2.createContext(
|
|
4533
|
-
|
|
4534
|
-
|
|
4558
|
+
var IntlContext = typeof window !== "undefined" && !window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__ ? window.__REACT_INTL_CONTEXT__ || (window.__REACT_INTL_CONTEXT__ = React2.createContext(
|
|
4559
|
+
null
|
|
4560
|
+
)) : React2.createContext(null);
|
|
4561
|
+
var { Consumer: IntlConsumer, Provider: IntlProvider } = IntlContext;
|
|
4535
4562
|
var Provider = IntlProvider;
|
|
4536
4563
|
var Context = IntlContext;
|
|
4537
4564
|
function injectIntl(WrappedComponent, options) {
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
}
|
|
4548
|
-
|
|
4549
|
-
|
|
4565
|
+
const {
|
|
4566
|
+
intlPropName = "intl",
|
|
4567
|
+
forwardRef: forwardRef2 = false,
|
|
4568
|
+
enforceContext = true
|
|
4569
|
+
} = options || {};
|
|
4570
|
+
const WithIntl = (props) => React2.createElement(IntlConsumer, null, (intl) => {
|
|
4571
|
+
if (enforceContext) {
|
|
4572
|
+
invariantIntlContext(intl);
|
|
4573
|
+
}
|
|
4574
|
+
const intlProp = { [intlPropName]: intl };
|
|
4575
|
+
return React2.createElement(
|
|
4576
|
+
WrappedComponent,
|
|
4577
|
+
__spreadProps(__spreadValues(__spreadValues({}, props), intlProp), {
|
|
4578
|
+
ref: forwardRef2 ? props.forwardedRef : null
|
|
4579
|
+
})
|
|
4580
|
+
);
|
|
4581
|
+
});
|
|
4582
|
+
WithIntl.displayName = `injectIntl(${getDisplayName(WrappedComponent)})`;
|
|
4550
4583
|
WithIntl.WrappedComponent = WrappedComponent;
|
|
4551
4584
|
if (forwardRef2) {
|
|
4552
|
-
return (0, import_hoist_non_react_statics.default)(
|
|
4553
|
-
|
|
4554
|
-
|
|
4585
|
+
return (0, import_hoist_non_react_statics.default)(
|
|
4586
|
+
// @ts-expect-error
|
|
4587
|
+
React2.forwardRef((props, ref) => React2.createElement(WithIntl, __spreadProps(__spreadValues({}, props), { forwardedRef: ref }))),
|
|
4588
|
+
WrappedComponent
|
|
4589
|
+
);
|
|
4555
4590
|
}
|
|
4556
4591
|
return (0, import_hoist_non_react_statics.default)(WithIntl, WrappedComponent);
|
|
4557
4592
|
}
|
|
4558
4593
|
|
|
4559
|
-
//
|
|
4594
|
+
// packages/react-intl/src/components/useIntl.ts
|
|
4560
4595
|
function useIntl() {
|
|
4561
|
-
|
|
4596
|
+
const intl = React3.useContext(Context);
|
|
4562
4597
|
invariantIntlContext(intl);
|
|
4563
4598
|
return intl;
|
|
4564
4599
|
}
|
|
4565
4600
|
|
|
4566
|
-
//
|
|
4567
|
-
var DisplayName
|
|
4568
|
-
(function(DisplayName2) {
|
|
4601
|
+
// packages/react-intl/src/components/createFormattedComponent.tsx
|
|
4602
|
+
var DisplayName = /* @__PURE__ */ ((DisplayName2) => {
|
|
4569
4603
|
DisplayName2["formatDate"] = "FormattedDate";
|
|
4570
4604
|
DisplayName2["formatTime"] = "FormattedTime";
|
|
4571
4605
|
DisplayName2["formatNumber"] = "FormattedNumber";
|
|
4572
4606
|
DisplayName2["formatList"] = "FormattedList";
|
|
4573
4607
|
DisplayName2["formatDisplayName"] = "FormattedDisplayName";
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
(
|
|
4608
|
+
return DisplayName2;
|
|
4609
|
+
})(DisplayName || {});
|
|
4610
|
+
var DisplayNameParts = /* @__PURE__ */ ((DisplayNameParts2) => {
|
|
4577
4611
|
DisplayNameParts2["formatDate"] = "FormattedDateParts";
|
|
4578
4612
|
DisplayNameParts2["formatTime"] = "FormattedTimeParts";
|
|
4579
4613
|
DisplayNameParts2["formatNumber"] = "FormattedNumberParts";
|
|
4580
4614
|
DisplayNameParts2["formatList"] = "FormattedListParts";
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4615
|
+
return DisplayNameParts2;
|
|
4616
|
+
})(DisplayNameParts || {});
|
|
4617
|
+
var FormattedNumberParts = (props) => {
|
|
4618
|
+
const intl = useIntl();
|
|
4619
|
+
const _a2 = props, { value, children } = _a2, formatProps = __objRest(_a2, ["value", "children"]);
|
|
4585
4620
|
return children(intl.formatNumberToParts(value, formatProps));
|
|
4586
4621
|
};
|
|
4587
4622
|
FormattedNumberParts.displayName = "FormattedNumberParts";
|
|
4588
|
-
var FormattedListParts =
|
|
4589
|
-
|
|
4590
|
-
|
|
4623
|
+
var FormattedListParts = (props) => {
|
|
4624
|
+
const intl = useIntl();
|
|
4625
|
+
const _a2 = props, { value, children } = _a2, formatProps = __objRest(_a2, ["value", "children"]);
|
|
4591
4626
|
return children(intl.formatListToParts(value, formatProps));
|
|
4592
4627
|
};
|
|
4593
4628
|
FormattedNumberParts.displayName = "FormattedNumberParts";
|
|
4594
4629
|
function createFormattedDateTimePartsComponent(name) {
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4630
|
+
const ComponentParts = (props) => {
|
|
4631
|
+
const intl = useIntl();
|
|
4632
|
+
const _a2 = props, { value, children } = _a2, formatProps = __objRest(_a2, ["value", "children"]);
|
|
4633
|
+
const date = typeof value === "string" ? new Date(value || 0) : value;
|
|
4634
|
+
const formattedParts = name === "formatDate" ? intl.formatDateToParts(date, formatProps) : intl.formatTimeToParts(date, formatProps);
|
|
4600
4635
|
return children(formattedParts);
|
|
4601
4636
|
};
|
|
4602
4637
|
ComponentParts.displayName = DisplayNameParts[name];
|
|
4603
4638
|
return ComponentParts;
|
|
4604
4639
|
}
|
|
4605
4640
|
function createFormattedComponent(name) {
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
["value", "children"]
|
|
4611
|
-
);
|
|
4612
|
-
var formattedValue = intl[name](value, formatProps);
|
|
4641
|
+
const Component = (props) => {
|
|
4642
|
+
const intl = useIntl();
|
|
4643
|
+
const _a2 = props, { value, children } = _a2, formatProps = __objRest(_a2, ["value", "children"]);
|
|
4644
|
+
const formattedValue = intl[name](value, formatProps);
|
|
4613
4645
|
if (typeof children === "function") {
|
|
4614
4646
|
return children(formattedValue);
|
|
4615
4647
|
}
|
|
4616
|
-
|
|
4648
|
+
const Text = intl.textComponent || React4.Fragment;
|
|
4617
4649
|
return React4.createElement(Text, null, formattedValue);
|
|
4618
4650
|
};
|
|
4619
4651
|
Component.displayName = DisplayName[name];
|
|
4620
4652
|
return Component;
|
|
4621
4653
|
}
|
|
4622
4654
|
|
|
4623
|
-
//
|
|
4655
|
+
// packages/react-intl/src/components/provider.tsx
|
|
4624
4656
|
var React6 = __toESM(window.React);
|
|
4625
4657
|
|
|
4626
|
-
//
|
|
4658
|
+
// packages/react-intl/src/components/createIntl.ts
|
|
4627
4659
|
var React5 = __toESM(window.React);
|
|
4628
4660
|
function assignUniqueKeysToFormatXMLElementFnArgument(values) {
|
|
4629
4661
|
if (!values) {
|
|
4630
4662
|
return values;
|
|
4631
4663
|
}
|
|
4632
|
-
return Object.keys(values).reduce(
|
|
4633
|
-
|
|
4664
|
+
return Object.keys(values).reduce((acc, k) => {
|
|
4665
|
+
const v = values[k];
|
|
4634
4666
|
acc[k] = isFormatXMLElementFn(v) ? assignUniqueKeysToParts(v) : v;
|
|
4635
4667
|
return acc;
|
|
4636
4668
|
}, {});
|
|
4637
4669
|
}
|
|
4638
|
-
var formatMessage2 =
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
rest[_i - 4] = arguments[_i];
|
|
4642
|
-
}
|
|
4643
|
-
var values = assignUniqueKeysToFormatXMLElementFnArgument(rawValues);
|
|
4644
|
-
var chunks = formatMessage.apply(void 0, __spreadArray([
|
|
4670
|
+
var formatMessage2 = (config, formatters, descriptor, rawValues, ...rest) => {
|
|
4671
|
+
const values = assignUniqueKeysToFormatXMLElementFnArgument(rawValues);
|
|
4672
|
+
const chunks = formatMessage(
|
|
4645
4673
|
config,
|
|
4646
4674
|
formatters,
|
|
4647
4675
|
descriptor,
|
|
4648
|
-
values
|
|
4649
|
-
|
|
4676
|
+
values,
|
|
4677
|
+
...rest
|
|
4678
|
+
);
|
|
4650
4679
|
if (Array.isArray(chunks)) {
|
|
4651
4680
|
return React5.Children.toArray(chunks);
|
|
4652
4681
|
}
|
|
4653
4682
|
return chunks;
|
|
4654
4683
|
};
|
|
4655
|
-
var createIntl2 =
|
|
4656
|
-
var
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4684
|
+
var createIntl2 = (_a2, cache) => {
|
|
4685
|
+
var _b = _a2, { defaultRichTextElements: rawDefaultRichTextElements } = _b, config = __objRest(_b, ["defaultRichTextElements"]);
|
|
4686
|
+
const defaultRichTextElements = assignUniqueKeysToFormatXMLElementFnArgument(
|
|
4687
|
+
rawDefaultRichTextElements
|
|
4688
|
+
);
|
|
4689
|
+
const coreIntl = createIntl(
|
|
4690
|
+
__spreadProps(__spreadValues(__spreadValues({}, DEFAULT_INTL_CONFIG2), config), {
|
|
4691
|
+
defaultRichTextElements
|
|
4692
|
+
}),
|
|
4693
|
+
cache
|
|
4694
|
+
);
|
|
4695
|
+
const resolvedConfig = {
|
|
4660
4696
|
locale: coreIntl.locale,
|
|
4661
4697
|
timeZone: coreIntl.timeZone,
|
|
4662
4698
|
fallbackOnEmptyString: coreIntl.fallbackOnEmptyString,
|
|
@@ -4667,7 +4703,7 @@ var ReactIntl = (() => {
|
|
|
4667
4703
|
onError: coreIntl.onError,
|
|
4668
4704
|
defaultRichTextElements
|
|
4669
4705
|
};
|
|
4670
|
-
return
|
|
4706
|
+
return __spreadProps(__spreadValues({}, coreIntl), {
|
|
4671
4707
|
formatMessage: formatMessage2.bind(
|
|
4672
4708
|
null,
|
|
4673
4709
|
resolvedConfig,
|
|
@@ -4679,7 +4715,7 @@ var ReactIntl = (() => {
|
|
|
4679
4715
|
});
|
|
4680
4716
|
};
|
|
4681
4717
|
|
|
4682
|
-
//
|
|
4718
|
+
// packages/react-intl/src/components/provider.tsx
|
|
4683
4719
|
function processIntlConfig(config) {
|
|
4684
4720
|
return {
|
|
4685
4721
|
locale: config.locale,
|
|
@@ -4696,49 +4732,41 @@ var ReactIntl = (() => {
|
|
|
4696
4732
|
defaultRichTextElements: config.defaultRichTextElements
|
|
4697
4733
|
};
|
|
4698
4734
|
}
|
|
4699
|
-
var IntlProvider2 =
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4735
|
+
var IntlProvider2 = class extends React6.PureComponent {
|
|
4736
|
+
constructor() {
|
|
4737
|
+
super(...arguments);
|
|
4738
|
+
__publicField(this, "cache", createIntlCache());
|
|
4739
|
+
__publicField(this, "state", {
|
|
4740
|
+
cache: this.cache,
|
|
4741
|
+
intl: createIntl2(processIntlConfig(this.props), this.cache),
|
|
4742
|
+
prevConfig: processIntlConfig(this.props)
|
|
4743
|
+
});
|
|
4744
|
+
}
|
|
4745
|
+
static getDerivedStateFromProps(props, { prevConfig, cache }) {
|
|
4746
|
+
const config = processIntlConfig(props);
|
|
4747
|
+
if (!shallowEqual(prevConfig, config)) {
|
|
4748
|
+
return {
|
|
4749
|
+
intl: createIntl2(config, cache),
|
|
4750
|
+
prevConfig: config
|
|
4710
4751
|
};
|
|
4711
|
-
return _this;
|
|
4712
4752
|
}
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
return null;
|
|
4723
|
-
};
|
|
4724
|
-
IntlProvider3.prototype.render = function() {
|
|
4725
|
-
invariantIntlContext(this.state.intl);
|
|
4726
|
-
return React6.createElement(Provider, { value: this.state.intl }, this.props.children);
|
|
4727
|
-
};
|
|
4728
|
-
IntlProvider3.displayName = "IntlProvider";
|
|
4729
|
-
IntlProvider3.defaultProps = DEFAULT_INTL_CONFIG2;
|
|
4730
|
-
return IntlProvider3;
|
|
4731
|
-
}(React6.PureComponent)
|
|
4732
|
-
);
|
|
4733
|
-
var provider_default = IntlProvider2;
|
|
4753
|
+
return null;
|
|
4754
|
+
}
|
|
4755
|
+
render() {
|
|
4756
|
+
invariantIntlContext(this.state.intl);
|
|
4757
|
+
return React6.createElement(Provider, { value: this.state.intl }, this.props.children);
|
|
4758
|
+
}
|
|
4759
|
+
};
|
|
4760
|
+
__publicField(IntlProvider2, "displayName", "IntlProvider");
|
|
4761
|
+
__publicField(IntlProvider2, "defaultProps", DEFAULT_INTL_CONFIG2);
|
|
4734
4762
|
|
|
4735
|
-
//
|
|
4763
|
+
// packages/react-intl/src/components/relative.tsx
|
|
4736
4764
|
var React7 = __toESM(window.React);
|
|
4737
4765
|
var MINUTE = 60;
|
|
4738
4766
|
var HOUR = 60 * 60;
|
|
4739
4767
|
var DAY = 60 * 60 * 24;
|
|
4740
4768
|
function selectUnit(seconds) {
|
|
4741
|
-
|
|
4769
|
+
const absValue = Math.abs(seconds);
|
|
4742
4770
|
if (absValue < MINUTE) {
|
|
4743
4771
|
return "second";
|
|
4744
4772
|
}
|
|
@@ -4780,16 +4808,13 @@ var ReactIntl = (() => {
|
|
|
4780
4808
|
"minute",
|
|
4781
4809
|
"hour"
|
|
4782
4810
|
];
|
|
4783
|
-
function canIncrement(unit) {
|
|
4784
|
-
if (unit === void 0) {
|
|
4785
|
-
unit = "second";
|
|
4786
|
-
}
|
|
4811
|
+
function canIncrement(unit = "second") {
|
|
4787
4812
|
return INCREMENTABLE_UNITS.indexOf(unit) > -1;
|
|
4788
4813
|
}
|
|
4789
|
-
var SimpleFormattedRelativeTime =
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4814
|
+
var SimpleFormattedRelativeTime = (props) => {
|
|
4815
|
+
const { formatRelativeTime: formatRelativeTime2, textComponent: Text } = useIntl();
|
|
4816
|
+
const _a2 = props, { children, value, unit } = _a2, otherProps = __objRest(_a2, ["children", "value", "unit"]);
|
|
4817
|
+
const formattedRelativeTime = formatRelativeTime2(value || 0, unit, otherProps);
|
|
4793
4818
|
if (typeof children === "function") {
|
|
4794
4819
|
return children(formattedRelativeTime);
|
|
4795
4820
|
}
|
|
@@ -4798,19 +4823,32 @@ var ReactIntl = (() => {
|
|
|
4798
4823
|
}
|
|
4799
4824
|
return React7.createElement(React7.Fragment, null, formattedRelativeTime);
|
|
4800
4825
|
};
|
|
4801
|
-
var FormattedRelativeTime =
|
|
4802
|
-
var _b = _a2
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4826
|
+
var FormattedRelativeTime = (_a2) => {
|
|
4827
|
+
var _b = _a2, {
|
|
4828
|
+
value = 0,
|
|
4829
|
+
unit = "second",
|
|
4830
|
+
updateIntervalInSeconds
|
|
4831
|
+
} = _b, otherProps = __objRest(_b, [
|
|
4832
|
+
"value",
|
|
4833
|
+
"unit",
|
|
4834
|
+
"updateIntervalInSeconds"
|
|
4835
|
+
]);
|
|
4836
|
+
invariant(
|
|
4837
|
+
!updateIntervalInSeconds || !!(updateIntervalInSeconds && canIncrement(unit)),
|
|
4838
|
+
"Cannot schedule update with unit longer than hour"
|
|
4839
|
+
);
|
|
4840
|
+
const [prevUnit, setPrevUnit] = React7.useState();
|
|
4841
|
+
const [prevValue, setPrevValue] = React7.useState(0);
|
|
4842
|
+
const [currentValueInSeconds, setCurrentValueInSeconds] = React7.useState(0);
|
|
4843
|
+
let updateTimer;
|
|
4808
4844
|
if (unit !== prevUnit || value !== prevValue) {
|
|
4809
4845
|
setPrevValue(value || 0);
|
|
4810
4846
|
setPrevUnit(unit);
|
|
4811
|
-
setCurrentValueInSeconds(
|
|
4847
|
+
setCurrentValueInSeconds(
|
|
4848
|
+
canIncrement(unit) ? valueToSeconds(value, unit) : 0
|
|
4849
|
+
);
|
|
4812
4850
|
}
|
|
4813
|
-
React7.useEffect(
|
|
4851
|
+
React7.useEffect(() => {
|
|
4814
4852
|
function clearUpdateTimer() {
|
|
4815
4853
|
clearTimeout(updateTimer);
|
|
4816
4854
|
}
|
|
@@ -4818,42 +4856,51 @@ var ReactIntl = (() => {
|
|
|
4818
4856
|
if (!updateIntervalInSeconds || !canIncrement(unit)) {
|
|
4819
4857
|
return clearUpdateTimer;
|
|
4820
4858
|
}
|
|
4821
|
-
|
|
4822
|
-
|
|
4859
|
+
const nextValueInSeconds = currentValueInSeconds - updateIntervalInSeconds;
|
|
4860
|
+
const nextUnit = selectUnit(nextValueInSeconds);
|
|
4823
4861
|
if (nextUnit === "day") {
|
|
4824
4862
|
return clearUpdateTimer;
|
|
4825
4863
|
}
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4864
|
+
const unitDuration = getDurationInSeconds(nextUnit);
|
|
4865
|
+
const remainder = nextValueInSeconds % unitDuration;
|
|
4866
|
+
const prevInterestingValueInSeconds = nextValueInSeconds - remainder;
|
|
4867
|
+
const nextInterestingValueInSeconds = prevInterestingValueInSeconds >= currentValueInSeconds ? prevInterestingValueInSeconds - unitDuration : prevInterestingValueInSeconds;
|
|
4868
|
+
const delayInSeconds = Math.abs(
|
|
4869
|
+
nextInterestingValueInSeconds - currentValueInSeconds
|
|
4870
|
+
);
|
|
4831
4871
|
if (currentValueInSeconds !== nextInterestingValueInSeconds) {
|
|
4832
|
-
updateTimer = setTimeout(
|
|
4833
|
-
|
|
4834
|
-
|
|
4872
|
+
updateTimer = setTimeout(
|
|
4873
|
+
() => setCurrentValueInSeconds(nextInterestingValueInSeconds),
|
|
4874
|
+
delayInSeconds * 1e3
|
|
4875
|
+
);
|
|
4835
4876
|
}
|
|
4836
4877
|
return clearUpdateTimer;
|
|
4837
4878
|
}, [currentValueInSeconds, updateIntervalInSeconds, unit]);
|
|
4838
|
-
|
|
4839
|
-
|
|
4879
|
+
let currentValue = value || 0;
|
|
4880
|
+
let currentUnit = unit;
|
|
4840
4881
|
if (canIncrement(unit) && typeof currentValueInSeconds === "number" && updateIntervalInSeconds) {
|
|
4841
4882
|
currentUnit = selectUnit(currentValueInSeconds);
|
|
4842
|
-
|
|
4883
|
+
const unitDuration = getDurationInSeconds(currentUnit);
|
|
4843
4884
|
currentValue = Math.round(currentValueInSeconds / unitDuration);
|
|
4844
4885
|
}
|
|
4845
|
-
return React7.createElement(
|
|
4886
|
+
return React7.createElement(
|
|
4887
|
+
SimpleFormattedRelativeTime,
|
|
4888
|
+
__spreadValues({
|
|
4889
|
+
value: currentValue,
|
|
4890
|
+
unit: currentUnit
|
|
4891
|
+
}, otherProps)
|
|
4892
|
+
);
|
|
4846
4893
|
};
|
|
4847
4894
|
FormattedRelativeTime.displayName = "FormattedRelativeTime";
|
|
4848
4895
|
var relative_default = FormattedRelativeTime;
|
|
4849
4896
|
|
|
4850
|
-
//
|
|
4897
|
+
// packages/react-intl/src/components/plural.tsx
|
|
4851
4898
|
var React8 = __toESM(window.React);
|
|
4852
|
-
var FormattedPlural =
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
|
|
4899
|
+
var FormattedPlural = (props) => {
|
|
4900
|
+
const { formatPlural: formatPlural2, textComponent: Text } = useIntl();
|
|
4901
|
+
const { value, other, children } = props;
|
|
4902
|
+
const pluralCategory = formatPlural2(value, props);
|
|
4903
|
+
const formattedPlural = props[pluralCategory] || other;
|
|
4857
4904
|
if (typeof children === "function") {
|
|
4858
4905
|
return children(formattedPlural);
|
|
4859
4906
|
}
|
|
@@ -4865,19 +4912,27 @@ var ReactIntl = (() => {
|
|
|
4865
4912
|
FormattedPlural.displayName = "FormattedPlural";
|
|
4866
4913
|
var plural_default = FormattedPlural;
|
|
4867
4914
|
|
|
4868
|
-
//
|
|
4915
|
+
// packages/react-intl/src/components/message.tsx
|
|
4869
4916
|
var React9 = __toESM(window.React);
|
|
4870
4917
|
function areEqual(prevProps, nextProps) {
|
|
4871
|
-
|
|
4872
|
-
|
|
4918
|
+
const _a2 = prevProps, { values } = _a2, otherProps = __objRest(_a2, ["values"]);
|
|
4919
|
+
const _b = nextProps, { values: nextValues } = _b, nextOtherProps = __objRest(_b, ["values"]);
|
|
4873
4920
|
return shallowEqual(nextValues, values) && shallowEqual(otherProps, nextOtherProps);
|
|
4874
4921
|
}
|
|
4875
4922
|
function FormattedMessage(props) {
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4923
|
+
const intl = useIntl();
|
|
4924
|
+
const { formatMessage: formatMessage3, textComponent: Text = React9.Fragment } = intl;
|
|
4925
|
+
const {
|
|
4926
|
+
id,
|
|
4927
|
+
description,
|
|
4928
|
+
defaultMessage,
|
|
4929
|
+
values,
|
|
4930
|
+
children,
|
|
4931
|
+
tagName: Component = Text,
|
|
4932
|
+
ignoreTag
|
|
4933
|
+
} = props;
|
|
4934
|
+
const descriptor = { id, description, defaultMessage };
|
|
4935
|
+
let nodes = formatMessage3(descriptor, values, {
|
|
4881
4936
|
ignoreTag
|
|
4882
4937
|
});
|
|
4883
4938
|
if (typeof children === "function") {
|
|
@@ -4889,26 +4944,29 @@ var ReactIntl = (() => {
|
|
|
4889
4944
|
return React9.createElement(React9.Fragment, null, nodes);
|
|
4890
4945
|
}
|
|
4891
4946
|
FormattedMessage.displayName = "FormattedMessage";
|
|
4892
|
-
var MemoizedFormattedMessage = React9.memo(
|
|
4947
|
+
var MemoizedFormattedMessage = React9.memo(
|
|
4948
|
+
FormattedMessage,
|
|
4949
|
+
areEqual
|
|
4950
|
+
);
|
|
4893
4951
|
MemoizedFormattedMessage.displayName = "MemoizedFormattedMessage";
|
|
4894
4952
|
var message_default = MemoizedFormattedMessage;
|
|
4895
4953
|
|
|
4896
|
-
//
|
|
4954
|
+
// packages/react-intl/src/components/dateTimeRange.tsx
|
|
4897
4955
|
var React10 = __toESM(window.React);
|
|
4898
|
-
var FormattedDateTimeRange =
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4956
|
+
var FormattedDateTimeRange = (props) => {
|
|
4957
|
+
const intl = useIntl();
|
|
4958
|
+
const _a2 = props, { from, to, children } = _a2, formatProps = __objRest(_a2, ["from", "to", "children"]);
|
|
4959
|
+
const formattedValue = intl.formatDateTimeRange(from, to, formatProps);
|
|
4902
4960
|
if (typeof children === "function") {
|
|
4903
4961
|
return children(formattedValue);
|
|
4904
4962
|
}
|
|
4905
|
-
|
|
4963
|
+
const Text = intl.textComponent || React10.Fragment;
|
|
4906
4964
|
return React10.createElement(Text, null, formattedValue);
|
|
4907
4965
|
};
|
|
4908
4966
|
FormattedDateTimeRange.displayName = "FormattedDateTimeRange";
|
|
4909
4967
|
var dateTimeRange_default = FormattedDateTimeRange;
|
|
4910
4968
|
|
|
4911
|
-
//
|
|
4969
|
+
// packages/react-intl/index.ts
|
|
4912
4970
|
function defineMessages(msgs) {
|
|
4913
4971
|
return msgs;
|
|
4914
4972
|
}
|
|
@@ -4922,7 +4980,7 @@ var ReactIntl = (() => {
|
|
|
4922
4980
|
var FormattedDisplayName = createFormattedComponent("formatDisplayName");
|
|
4923
4981
|
var FormattedDateParts = createFormattedDateTimePartsComponent("formatDate");
|
|
4924
4982
|
var FormattedTimeParts = createFormattedDateTimePartsComponent("formatTime");
|
|
4925
|
-
return __toCommonJS(
|
|
4983
|
+
return __toCommonJS(react_intl_exports);
|
|
4926
4984
|
})();
|
|
4927
4985
|
/*! Bundled license information:
|
|
4928
4986
|
|