react-intl 5.22.0 → 5.24.2

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.
@@ -20,7 +20,7 @@ export default function injectIntl(WrappedComponent, options) {
20
20
  var intlProp = (_a = {}, _a[intlPropName] = intl, _a);
21
21
  return (React.createElement(WrappedComponent, __assign({}, props, intlProp, { ref: forwardRef ? props.forwardedRef : null })));
22
22
  })); };
23
- WithIntl.displayName = "injectIntl(" + getDisplayName(WrappedComponent) + ")";
23
+ WithIntl.displayName = "injectIntl(".concat(getDisplayName(WrappedComponent), ")");
24
24
  WithIntl.WrappedComponent = WrappedComponent;
25
25
  if (forwardRef) {
26
26
  return hoistNonReactStatics(React.forwardRef(function (props, ref) { return (React.createElement(WithIntl, __assign({}, props, { forwardedRef: ref }))); }), WrappedComponent);
@@ -1 +1 @@
1
- {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/react-intl/src/components/provider.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAQ9B,OAAO,EAAC,UAAU,EAAE,SAAS,EAAC,MAAM,UAAU,CAAA;AAC9C,OAAO,EAEL,SAAS,EAET,YAAY,EAEb,MAAM,gBAAgB,CAAA;AAQvB,UAAU,KAAK;IACb;;OAEG;IACH,KAAK,EAAE,SAAS,CAAA;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB;;;;OAIG;IACH,UAAU,EAAE,UAAU,CAAA;CACvB;AAkED;;;;GAIG;AACH,eAAO,MAAM,UAAU,EAAE,YAAY,CAAC,KAAK,CAAC,SAAS,EAAE,UAAU,EAAE,SAAS,CA8BzE,CAAA;AAEH,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,KAAK,CAAC,aAAa,CAG3D,KAAK,CAAC,iBAAiB,CAAC,UAAU,CAAC,EACnC,KAAK,CACN;IACC,MAAM,CAAC,WAAW,SAAiB;IACnC,MAAM,CAAC,YAAY,gLAAsB;IACzC,OAAO,CAAC,KAAK,CAA+B;IAC5C,KAAK,EAAE,KAAK,CAIX;IAED,MAAM,CAAC,wBAAwB,CAC7B,KAAK,EAAE,QAAQ,CAAC,UAAU,CAAC,EAC3B,EAAC,UAAU,EAAE,KAAK,EAAC,EAAE,KAAK,GACzB,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI;IAWxB,MAAM,IAAI,GAAG,CAAC,OAAO;CAItB"}
1
+ {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/react-intl/src/components/provider.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAQ9B,OAAO,EAAC,UAAU,EAAE,SAAS,EAAC,MAAM,UAAU,CAAA;AAC9C,OAAO,EAEL,SAAS,EAET,YAAY,EAEb,MAAM,gBAAgB,CAAA;AAQvB,UAAU,KAAK;IACb;;OAEG;IACH,KAAK,EAAE,SAAS,CAAA;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB;;;;OAIG;IACH,UAAU,EAAE,UAAU,CAAA;CACvB;AAkED;;;;GAIG;AACH,eAAO,MAAM,UAAU,EAAE,YAAY,CACnC,KAAK,CAAC,SAAS,EACf,UAAU,EACV,SAAS,CAkCV,CAAA;AAED,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,KAAK,CAAC,aAAa,CAG3D,KAAK,CAAC,iBAAiB,CAAC,UAAU,CAAC,EACnC,KAAK,CACN;IACC,MAAM,CAAC,WAAW,SAAiB;IACnC,MAAM,CAAC,YAAY,gLAAsB;IACzC,OAAO,CAAC,KAAK,CAA+B;IAC5C,KAAK,EAAE,KAAK,CAIX;IAED,MAAM,CAAC,wBAAwB,CAC7B,KAAK,EAAE,QAAQ,CAAC,UAAU,CAAC,EAC3B,EAAC,UAAU,EAAE,KAAK,EAAC,EAAE,KAAK,GACzB,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI;IAWxB,MAAM,IAAI,GAAG,CAAC,OAAO;CAItB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-intl",
3
- "version": "5.22.0",
3
+ "version": "5.24.2",
4
4
  "description": "Internationalize React apps. This library provides React components and an API to format dates, numbers, and strings, including pluralization and handling translations.",
5
5
  "keywords": [
6
6
  "intl",
@@ -128,20 +128,20 @@
128
128
  "types": "index.d.ts",
129
129
  "sideEffects": false,
130
130
  "dependencies": {
131
- "@formatjs/ecma402-abstract": "1.10.0",
132
- "@formatjs/icu-messageformat-parser": "2.0.14",
133
- "@formatjs/intl": "1.16.0",
134
- "@formatjs/intl-displaynames": "5.2.5",
135
- "@formatjs/intl-listformat": "6.3.5",
131
+ "@formatjs/ecma402-abstract": "1.11.1",
132
+ "@formatjs/icu-messageformat-parser": "2.0.16",
133
+ "@formatjs/intl": "1.18.2",
134
+ "@formatjs/intl-displaynames": "5.4.0",
135
+ "@formatjs/intl-listformat": "6.5.0",
136
136
  "@types/hoist-non-react-statics": "^3.3.1",
137
137
  "@types/react": "16 || 17",
138
138
  "hoist-non-react-statics": "^3.3.2",
139
- "intl-messageformat": "9.9.6",
139
+ "intl-messageformat": "9.11.1",
140
140
  "tslib": "^2.1.0"
141
141
  },
142
142
  "peerDependencies": {
143
143
  "react": "^16.3.0 || 17",
144
- "typescript": "^4.4"
144
+ "typescript": "^4.5"
145
145
  },
146
146
  "peerDependenciesMeta": {
147
147
  "typescript": {
@@ -21,30 +21,34 @@ var ReactIntl = (function() {
21
21
  });
22
22
  var __commonJS = function(cb, mod) {
23
23
  return function __require2() {
24
- return mod || (0, cb[Object.keys(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
24
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
25
25
  };
26
26
  };
27
27
  var __export = function(target, all) {
28
- __markAsModule(target);
29
28
  for (var name in all)
30
29
  __defProp(target, name, { get: all[name], enumerable: true });
31
30
  };
32
- var __reExport = function(target, module, desc) {
31
+ var __reExport = function(target, module, copyDefault, desc) {
33
32
  if (module && typeof module === "object" || typeof module === "function")
34
33
  for (var keys = __getOwnPropNames(module), i = 0, n = keys.length, key; i < n; i++) {
35
34
  key = keys[i];
36
- if (!__hasOwnProp.call(target, key) && key !== "default")
35
+ if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
37
36
  __defProp(target, key, { get: function(k) {
38
37
  return module[k];
39
38
  }.bind(null, key), enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
40
39
  }
41
40
  return target;
42
41
  };
43
- var __toModule = function(module) {
44
- return __reExport(__markAsModule(__defProp(module != null ? __create(__getProtoOf(module)) : {}, "default", module && module.__esModule && "default" in module ? { get: function() {
42
+ var __toESM = function(module, isNodeMode) {
43
+ return __reExport(__markAsModule(__defProp(module != null ? __create(__getProtoOf(module)) : {}, "default", !isNodeMode && module && module.__esModule ? { get: function() {
45
44
  return module.default;
46
45
  }, enumerable: true } : { value: module, enumerable: true })), module);
47
46
  };
47
+ var __toCommonJS = /* @__PURE__ */ function(cache) {
48
+ return function(module, temp) {
49
+ return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
50
+ };
51
+ }(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
48
52
 
49
53
  // node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js
50
54
  var require_react_is_development = __commonJS({
@@ -263,7 +267,7 @@ var ReactIntl = (function() {
263
267
  }
264
268
  return TYPE_STATICS[component["$$typeof"]] || REACT_STATICS;
265
269
  }
266
- var defineProperty2 = Object.defineProperty;
270
+ var defineProperty = Object.defineProperty;
267
271
  var getOwnPropertyNames = Object.getOwnPropertyNames;
268
272
  var getOwnPropertySymbols = Object.getOwnPropertySymbols;
269
273
  var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
@@ -288,7 +292,7 @@ var ReactIntl = (function() {
288
292
  if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
289
293
  var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
290
294
  try {
291
- defineProperty2(targetComponent, key, descriptor);
295
+ defineProperty(targetComponent, key, descriptor);
292
296
  } catch (e) {
293
297
  }
294
298
  }
@@ -300,309 +304,6 @@ var ReactIntl = (function() {
300
304
  }
301
305
  });
302
306
 
303
- // bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/utils.js
304
- var require_utils = __commonJS({
305
- "bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/utils.js": function(exports) {
306
- "use strict";
307
- Object.defineProperty(exports, "__esModule", { value: true });
308
- exports.invariant = exports.UNICODE_EXTENSION_SEQUENCE_REGEX = void 0;
309
- exports.UNICODE_EXTENSION_SEQUENCE_REGEX = /-u(?:-[0-9a-z]{2,8})+/gi;
310
- function invariant2(condition, message, Err) {
311
- if (Err === void 0) {
312
- Err = Error;
313
- }
314
- if (!condition) {
315
- throw new Err(message);
316
- }
317
- }
318
- exports.invariant = invariant2;
319
- }
320
- });
321
-
322
- // bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/BestAvailableLocale.js
323
- var require_BestAvailableLocale = __commonJS({
324
- "bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/BestAvailableLocale.js": function(exports) {
325
- "use strict";
326
- Object.defineProperty(exports, "__esModule", { value: true });
327
- exports.BestAvailableLocale = void 0;
328
- function BestAvailableLocale(availableLocales, locale) {
329
- var candidate = locale;
330
- while (true) {
331
- if (availableLocales.has(candidate)) {
332
- return candidate;
333
- }
334
- var pos = candidate.lastIndexOf("-");
335
- if (!~pos) {
336
- return void 0;
337
- }
338
- if (pos >= 2 && candidate[pos - 2] === "-") {
339
- pos -= 2;
340
- }
341
- candidate = candidate.slice(0, pos);
342
- }
343
- }
344
- exports.BestAvailableLocale = BestAvailableLocale;
345
- }
346
- });
347
-
348
- // bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/LookupMatcher.js
349
- var require_LookupMatcher = __commonJS({
350
- "bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/LookupMatcher.js": function(exports) {
351
- "use strict";
352
- Object.defineProperty(exports, "__esModule", { value: true });
353
- exports.LookupMatcher = void 0;
354
- var utils_1 = require_utils();
355
- var BestAvailableLocale_1 = require_BestAvailableLocale();
356
- function LookupMatcher(availableLocales, requestedLocales, getDefaultLocale) {
357
- var result = { locale: "" };
358
- for (var _i = 0, requestedLocales_1 = requestedLocales; _i < requestedLocales_1.length; _i++) {
359
- var locale = requestedLocales_1[_i];
360
- var noExtensionLocale = locale.replace(utils_1.UNICODE_EXTENSION_SEQUENCE_REGEX, "");
361
- var availableLocale = (0, BestAvailableLocale_1.BestAvailableLocale)(availableLocales, noExtensionLocale);
362
- if (availableLocale) {
363
- result.locale = availableLocale;
364
- if (locale !== noExtensionLocale) {
365
- result.extension = locale.slice(noExtensionLocale.length + 1, locale.length);
366
- }
367
- return result;
368
- }
369
- }
370
- result.locale = getDefaultLocale();
371
- return result;
372
- }
373
- exports.LookupMatcher = LookupMatcher;
374
- }
375
- });
376
-
377
- // bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/BestFitMatcher.js
378
- var require_BestFitMatcher = __commonJS({
379
- "bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/BestFitMatcher.js": function(exports) {
380
- "use strict";
381
- Object.defineProperty(exports, "__esModule", { value: true });
382
- exports.BestFitMatcher = void 0;
383
- var BestAvailableLocale_1 = require_BestAvailableLocale();
384
- var utils_1 = require_utils();
385
- function BestFitMatcher(availableLocales, requestedLocales, getDefaultLocale) {
386
- var minimizedAvailableLocaleMap = Array.from(availableLocales).reduce(function(all, l2) {
387
- all[l2] = l2;
388
- return all;
389
- }, {});
390
- var minimizedAvailableLocales = new Set();
391
- availableLocales.forEach(function(locale2) {
392
- var minimizedLocale = new Intl.Locale(locale2).minimize().toString();
393
- minimizedAvailableLocaleMap[minimizedLocale] = locale2;
394
- minimizedAvailableLocales.add(minimizedLocale);
395
- });
396
- var foundLocale;
397
- for (var _i = 0, requestedLocales_1 = requestedLocales; _i < requestedLocales_1.length; _i++) {
398
- var l = requestedLocales_1[_i];
399
- if (foundLocale) {
400
- break;
401
- }
402
- var noExtensionLocale = l.replace(utils_1.UNICODE_EXTENSION_SEQUENCE_REGEX, "");
403
- if (availableLocales.has(noExtensionLocale)) {
404
- foundLocale = noExtensionLocale;
405
- break;
406
- }
407
- if (minimizedAvailableLocales.has(noExtensionLocale)) {
408
- foundLocale = noExtensionLocale;
409
- break;
410
- }
411
- var locale = new Intl.Locale(noExtensionLocale);
412
- var maximizedRequestedLocale = locale.maximize().toString();
413
- var minimizedRequestedLocale = locale.minimize().toString();
414
- if (minimizedAvailableLocales.has(minimizedRequestedLocale)) {
415
- foundLocale = minimizedRequestedLocale;
416
- break;
417
- }
418
- foundLocale = (0, BestAvailableLocale_1.BestAvailableLocale)(minimizedAvailableLocales, maximizedRequestedLocale);
419
- }
420
- return {
421
- locale: foundLocale && minimizedAvailableLocaleMap[foundLocale] || getDefaultLocale()
422
- };
423
- }
424
- exports.BestFitMatcher = BestFitMatcher;
425
- }
426
- });
427
-
428
- // bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/UnicodeExtensionValue.js
429
- var require_UnicodeExtensionValue = __commonJS({
430
- "bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/UnicodeExtensionValue.js": function(exports) {
431
- "use strict";
432
- Object.defineProperty(exports, "__esModule", { value: true });
433
- exports.UnicodeExtensionValue = void 0;
434
- var utils_1 = require_utils();
435
- function UnicodeExtensionValue(extension, key) {
436
- (0, utils_1.invariant)(key.length === 2, "key must have 2 elements");
437
- var size = extension.length;
438
- var searchValue = "-" + key + "-";
439
- var pos = extension.indexOf(searchValue);
440
- if (pos !== -1) {
441
- var start = pos + 4;
442
- var end = start;
443
- var k = start;
444
- var done = false;
445
- while (!done) {
446
- var e = extension.indexOf("-", k);
447
- var len = void 0;
448
- if (e === -1) {
449
- len = size - k;
450
- } else {
451
- len = e - k;
452
- }
453
- if (len === 2) {
454
- done = true;
455
- } else if (e === -1) {
456
- end = size;
457
- done = true;
458
- } else {
459
- end = e;
460
- k = e + 1;
461
- }
462
- }
463
- return extension.slice(start, end);
464
- }
465
- searchValue = "-" + key;
466
- pos = extension.indexOf(searchValue);
467
- if (pos !== -1 && pos + 3 === size) {
468
- return "";
469
- }
470
- return void 0;
471
- }
472
- exports.UnicodeExtensionValue = UnicodeExtensionValue;
473
- }
474
- });
475
-
476
- // bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/ResolveLocale.js
477
- var require_ResolveLocale = __commonJS({
478
- "bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/ResolveLocale.js": function(exports) {
479
- "use strict";
480
- Object.defineProperty(exports, "__esModule", { value: true });
481
- exports.ResolveLocale = void 0;
482
- var LookupMatcher_1 = require_LookupMatcher();
483
- var BestFitMatcher_1 = require_BestFitMatcher();
484
- var utils_1 = require_utils();
485
- var UnicodeExtensionValue_1 = require_UnicodeExtensionValue();
486
- function ResolveLocale2(availableLocales, requestedLocales, options, relevantExtensionKeys, localeData, getDefaultLocale) {
487
- var matcher = options.localeMatcher;
488
- var r;
489
- if (matcher === "lookup") {
490
- r = (0, LookupMatcher_1.LookupMatcher)(availableLocales, requestedLocales, getDefaultLocale);
491
- } else {
492
- r = (0, BestFitMatcher_1.BestFitMatcher)(availableLocales, requestedLocales, getDefaultLocale);
493
- }
494
- var foundLocale = r.locale;
495
- var result = { locale: "", dataLocale: foundLocale };
496
- var supportedExtension = "-u";
497
- for (var _i = 0, relevantExtensionKeys_1 = relevantExtensionKeys; _i < relevantExtensionKeys_1.length; _i++) {
498
- var key = relevantExtensionKeys_1[_i];
499
- (0, utils_1.invariant)(foundLocale in localeData, "Missing locale data for " + foundLocale);
500
- var foundLocaleData = localeData[foundLocale];
501
- (0, utils_1.invariant)(typeof foundLocaleData === "object" && foundLocaleData !== null, "locale data " + key + " must be an object");
502
- var keyLocaleData = foundLocaleData[key];
503
- (0, utils_1.invariant)(Array.isArray(keyLocaleData), "keyLocaleData for " + key + " must be an array");
504
- var value = keyLocaleData[0];
505
- (0, utils_1.invariant)(typeof value === "string" || value === null, "value must be string or null but got " + typeof value + " in key " + key);
506
- var supportedExtensionAddition = "";
507
- if (r.extension) {
508
- var requestedValue = (0, UnicodeExtensionValue_1.UnicodeExtensionValue)(r.extension, key);
509
- if (requestedValue !== void 0) {
510
- if (requestedValue !== "") {
511
- if (~keyLocaleData.indexOf(requestedValue)) {
512
- value = requestedValue;
513
- supportedExtensionAddition = "-" + key + "-" + value;
514
- }
515
- } else if (~requestedValue.indexOf("true")) {
516
- value = "true";
517
- supportedExtensionAddition = "-" + key;
518
- }
519
- }
520
- }
521
- if (key in options) {
522
- var optionsValue = options[key];
523
- (0, utils_1.invariant)(typeof optionsValue === "string" || typeof optionsValue === "undefined" || optionsValue === null, "optionsValue must be String, Undefined or Null");
524
- if (~keyLocaleData.indexOf(optionsValue)) {
525
- if (optionsValue !== value) {
526
- value = optionsValue;
527
- supportedExtensionAddition = "";
528
- }
529
- }
530
- }
531
- result[key] = value;
532
- supportedExtension += supportedExtensionAddition;
533
- }
534
- if (supportedExtension.length > 2) {
535
- var privateIndex = foundLocale.indexOf("-x-");
536
- if (privateIndex === -1) {
537
- foundLocale = foundLocale + supportedExtension;
538
- } else {
539
- var preExtension = foundLocale.slice(0, privateIndex);
540
- var postExtension = foundLocale.slice(privateIndex, foundLocale.length);
541
- foundLocale = preExtension + supportedExtension + postExtension;
542
- }
543
- foundLocale = Intl.getCanonicalLocales(foundLocale)[0];
544
- }
545
- result.locale = foundLocale;
546
- return result;
547
- }
548
- exports.ResolveLocale = ResolveLocale2;
549
- }
550
- });
551
-
552
- // bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/LookupSupportedLocales.js
553
- var require_LookupSupportedLocales = __commonJS({
554
- "bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/LookupSupportedLocales.js": function(exports) {
555
- "use strict";
556
- Object.defineProperty(exports, "__esModule", { value: true });
557
- exports.LookupSupportedLocales = void 0;
558
- var utils_1 = require_utils();
559
- var BestAvailableLocale_1 = require_BestAvailableLocale();
560
- function LookupSupportedLocales2(availableLocales, requestedLocales) {
561
- var subset = [];
562
- for (var _i = 0, requestedLocales_1 = requestedLocales; _i < requestedLocales_1.length; _i++) {
563
- var locale = requestedLocales_1[_i];
564
- var noExtensionLocale = locale.replace(utils_1.UNICODE_EXTENSION_SEQUENCE_REGEX, "");
565
- var availableLocale = (0, BestAvailableLocale_1.BestAvailableLocale)(availableLocales, noExtensionLocale);
566
- if (availableLocale) {
567
- subset.push(availableLocale);
568
- }
569
- }
570
- return subset;
571
- }
572
- exports.LookupSupportedLocales = LookupSupportedLocales2;
573
- }
574
- });
575
-
576
- // bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/index.js
577
- var require_intl_localematcher = __commonJS({
578
- "bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/index.js": function(exports) {
579
- "use strict";
580
- Object.defineProperty(exports, "__esModule", { value: true });
581
- exports.ResolveLocale = exports.LookupSupportedLocales = exports.match = void 0;
582
- var ResolveLocale_1 = require_ResolveLocale();
583
- function match(requestedLocales, availableLocales, defaultLocale, opts) {
584
- var locales = availableLocales.reduce(function(all, l) {
585
- all.add(l);
586
- return all;
587
- }, new Set());
588
- return (0, ResolveLocale_1.ResolveLocale)(locales, requestedLocales, {
589
- localeMatcher: (opts === null || opts === void 0 ? void 0 : opts.algorithm) || "best fit"
590
- }, [], {}, function() {
591
- return defaultLocale;
592
- }).locale;
593
- }
594
- exports.match = match;
595
- var LookupSupportedLocales_1 = require_LookupSupportedLocales();
596
- Object.defineProperty(exports, "LookupSupportedLocales", { enumerable: true, get: function() {
597
- return LookupSupportedLocales_1.LookupSupportedLocales;
598
- } });
599
- var ResolveLocale_2 = require_ResolveLocale();
600
- Object.defineProperty(exports, "ResolveLocale", { enumerable: true, get: function() {
601
- return ResolveLocale_2.ResolveLocale;
602
- } });
603
- }
604
- });
605
-
606
307
  // bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/index.js
607
308
  var lib_exports = {};
608
309
  __export(lib_exports, {
@@ -748,79 +449,21 @@ var ReactIntl = (function() {
748
449
  ar[i] = from[i];
749
450
  }
750
451
  }
751
- return to.concat(ar || from);
452
+ return to.concat(ar || Array.prototype.slice.call(from));
752
453
  }
753
454
 
754
455
  // bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/components/createFormattedComponent.js
755
- var React4 = __toModule(window.React);
456
+ var React4 = __toESM(window.React);
756
457
 
757
458
  // bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/components/useIntl.js
758
- var React3 = __toModule(window.React);
459
+ var React3 = __toESM(window.React);
759
460
 
760
461
  // bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/components/injectIntl.js
761
- var React2 = __toModule(window.React);
762
- var import_hoist_non_react_statics = __toModule(require_hoist_non_react_statics_cjs());
462
+ var React2 = __toESM(window.React);
463
+ var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
763
464
 
764
465
  // bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/utils.js
765
- var React = __toModule(window.React);
766
-
767
- // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/262.js
768
- var MINUTES_PER_HOUR = 60;
769
- var SECONDS_PER_MINUTE = 60;
770
- var MS_PER_SECOND = 1e3;
771
- var MS_PER_MINUTE = MS_PER_SECOND * SECONDS_PER_MINUTE;
772
- var MS_PER_HOUR = MS_PER_MINUTE * MINUTES_PER_HOUR;
773
-
774
- // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/IsSanctionedSimpleUnitIdentifier.js
775
- var SANCTIONED_UNITS = [
776
- "angle-degree",
777
- "area-acre",
778
- "area-hectare",
779
- "concentr-percent",
780
- "digital-bit",
781
- "digital-byte",
782
- "digital-gigabit",
783
- "digital-gigabyte",
784
- "digital-kilobit",
785
- "digital-kilobyte",
786
- "digital-megabit",
787
- "digital-megabyte",
788
- "digital-petabyte",
789
- "digital-terabit",
790
- "digital-terabyte",
791
- "duration-day",
792
- "duration-hour",
793
- "duration-millisecond",
794
- "duration-minute",
795
- "duration-month",
796
- "duration-second",
797
- "duration-week",
798
- "duration-year",
799
- "length-centimeter",
800
- "length-foot",
801
- "length-inch",
802
- "length-kilometer",
803
- "length-meter",
804
- "length-mile-scandinavian",
805
- "length-mile",
806
- "length-millimeter",
807
- "length-yard",
808
- "mass-gram",
809
- "mass-kilogram",
810
- "mass-ounce",
811
- "mass-pound",
812
- "mass-stone",
813
- "temperature-celsius",
814
- "temperature-fahrenheit",
815
- "volume-fluid-ounce",
816
- "volume-gallon",
817
- "volume-liter",
818
- "volume-milliliter"
819
- ];
820
- function removeUnitNamespace(unit) {
821
- return unit.slice(unit.indexOf("-") + 1);
822
- }
823
- var SIMPLE_UNITS = SANCTIONED_UNITS.map(removeUnitNamespace);
466
+ var React = __toESM(window.React);
824
467
 
825
468
  // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/utils.js
826
469
  function invariant(condition, message, Err) {
@@ -832,38 +475,6 @@ var ReactIntl = (function() {
832
475
  }
833
476
  }
834
477
 
835
- // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/regex.generated.js
836
- 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]/;
837
-
838
- // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/NumberFormat/format_to_parts.js
839
- var CARET_S_UNICODE_REGEX = new RegExp("^" + S_UNICODE_REGEX.source);
840
- var S_DOLLAR_UNICODE_REGEX = new RegExp(S_UNICODE_REGEX.source + "$");
841
-
842
- // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/NumberFormat/InitializeNumberFormat.js
843
- var import_intl_localematcher = __toModule(require_intl_localematcher());
844
-
845
- // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/SupportedLocales.js
846
- var import_intl_localematcher2 = __toModule(require_intl_localematcher());
847
-
848
- // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/data.js
849
- var MissingLocaleDataError = function(_super) {
850
- __extends(MissingLocaleDataError2, _super);
851
- function MissingLocaleDataError2() {
852
- var _this = _super !== null && _super.apply(this, arguments) || this;
853
- _this.type = "MISSING_LOCALE_DATA";
854
- return _this;
855
- }
856
- return MissingLocaleDataError2;
857
- }(Error);
858
-
859
- // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/types/date-time.js
860
- var RangePatternType;
861
- (function(RangePatternType2) {
862
- RangePatternType2["startRange"] = "startRange";
863
- RangePatternType2["shared"] = "shared";
864
- RangePatternType2["endRange"] = "endRange";
865
- })(RangePatternType || (RangePatternType = {}));
866
-
867
478
  // bazel-out/darwin-fastbuild/bin/packages/icu-messageformat-parser/lib/error.js
868
479
  var ErrorKind;
869
480
  (function(ErrorKind2) {
@@ -1322,8 +933,8 @@ var ReactIntl = (function() {
1322
933
 
1323
934
  // bazel-out/darwin-fastbuild/bin/packages/icu-messageformat-parser/lib/parser.js
1324
935
  var _a;
1325
- var SPACE_SEPARATOR_START_REGEX = new RegExp("^" + SPACE_SEPARATOR_REGEX.source + "*");
1326
- var SPACE_SEPARATOR_END_REGEX = new RegExp(SPACE_SEPARATOR_REGEX.source + "*$");
936
+ var SPACE_SEPARATOR_START_REGEX = new RegExp("^".concat(SPACE_SEPARATOR_REGEX.source, "*"));
937
+ var SPACE_SEPARATOR_END_REGEX = new RegExp("".concat(SPACE_SEPARATOR_REGEX.source, "*$"));
1327
938
  function createLocation(start, end) {
1328
939
  return { start: start, end: end };
1329
940
  }
@@ -1490,7 +1101,7 @@ var ReactIntl = (function() {
1490
1101
  return {
1491
1102
  val: {
1492
1103
  type: TYPE.literal,
1493
- value: "<" + tagName + "/>",
1104
+ value: "<".concat(tagName, "/>"),
1494
1105
  location: createLocation(startPosition, this.clonePosition())
1495
1106
  },
1496
1107
  err: null
@@ -1880,7 +1491,7 @@ var ReactIntl = (function() {
1880
1491
  var _a2;
1881
1492
  var hasOtherClause = false;
1882
1493
  var options = [];
1883
- var parsedSelectors = new Set();
1494
+ var parsedSelectors = /* @__PURE__ */ new Set();
1884
1495
  var selector = parsedFirstIdentifier.value, selectorLocation = parsedFirstIdentifier.location;
1885
1496
  while (true) {
1886
1497
  if (selector.length === 0) {
@@ -1983,7 +1594,7 @@ var ReactIntl = (function() {
1983
1594
  }
1984
1595
  var code = codePointAt(this.message, offset);
1985
1596
  if (code === void 0) {
1986
- throw Error("Offset " + offset + " is at invalid UTF-16 code unit boundary");
1597
+ throw Error("Offset ".concat(offset, " is at invalid UTF-16 code unit boundary"));
1987
1598
  }
1988
1599
  return code;
1989
1600
  };
@@ -2033,7 +1644,7 @@ var ReactIntl = (function() {
2033
1644
  };
2034
1645
  Parser2.prototype.bumpTo = function(targetOffset) {
2035
1646
  if (this.offset() > targetOffset) {
2036
- throw Error("targetOffset " + targetOffset + " must be greater than or equal to the current offset " + this.offset());
1647
+ throw Error("targetOffset ".concat(targetOffset, " must be greater than or equal to the current offset ").concat(this.offset()));
2037
1648
  }
2038
1649
  targetOffset = Math.min(targetOffset, this.message.length);
2039
1650
  while (true) {
@@ -2042,7 +1653,7 @@ var ReactIntl = (function() {
2042
1653
  break;
2043
1654
  }
2044
1655
  if (offset > targetOffset) {
2045
- throw Error("targetOffset " + targetOffset + " is at invalid UTF-16 code unit boundary");
1656
+ throw Error("targetOffset ".concat(targetOffset, " is at invalid UTF-16 code unit boundary"));
2046
1657
  }
2047
1658
  this.bump();
2048
1659
  if (this.isEOF()) {
@@ -2201,28 +1812,28 @@ var ReactIntl = (function() {
2201
1812
  return _this;
2202
1813
  }
2203
1814
  FormatError2.prototype.toString = function() {
2204
- return "[formatjs Error: " + this.code + "] " + this.message;
1815
+ return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
2205
1816
  };
2206
1817
  return FormatError2;
2207
1818
  }(Error);
2208
1819
  var InvalidValueError = function(_super) {
2209
1820
  __extends(InvalidValueError2, _super);
2210
1821
  function InvalidValueError2(variableId, value, options, originalMessage) {
2211
- return _super.call(this, 'Invalid values for "' + variableId + '": "' + value + '". Options are "' + Object.keys(options).join('", "') + '"', ErrorCode.INVALID_VALUE, originalMessage) || this;
1822
+ return _super.call(this, 'Invalid values for "'.concat(variableId, '": "').concat(value, '". Options are "').concat(Object.keys(options).join('", "'), '"'), ErrorCode.INVALID_VALUE, originalMessage) || this;
2212
1823
  }
2213
1824
  return InvalidValueError2;
2214
1825
  }(FormatError);
2215
1826
  var InvalidValueTypeError = function(_super) {
2216
1827
  __extends(InvalidValueTypeError2, _super);
2217
1828
  function InvalidValueTypeError2(value, type, originalMessage) {
2218
- return _super.call(this, 'Value for "' + value + '" must be of type ' + type, ErrorCode.INVALID_VALUE, originalMessage) || this;
1829
+ return _super.call(this, 'Value for "'.concat(value, '" must be of type ').concat(type), ErrorCode.INVALID_VALUE, originalMessage) || this;
2219
1830
  }
2220
1831
  return InvalidValueTypeError2;
2221
1832
  }(FormatError);
2222
1833
  var MissingValueError = function(_super) {
2223
1834
  __extends(MissingValueError2, _super);
2224
1835
  function MissingValueError2(variableId, originalMessage) {
2225
- return _super.call(this, 'The intl string context variable "' + variableId + '" was not provided to the string "' + originalMessage + '"', ErrorCode.MISSING_VALUE, originalMessage) || this;
1836
+ return _super.call(this, 'The intl string context variable "'.concat(variableId, '" was not provided to the string "').concat(originalMessage, '"'), ErrorCode.MISSING_VALUE, originalMessage) || this;
2226
1837
  }
2227
1838
  return MissingValueError2;
2228
1839
  }(FormatError);
@@ -2250,7 +1861,7 @@ var ReactIntl = (function() {
2250
1861
  function isFormatXMLElementFn(el) {
2251
1862
  return typeof el === "function";
2252
1863
  }
2253
- function formatToParts2(els, locales, formatters, formats, values, currentPluralValue, originalMessage) {
1864
+ function formatToParts(els, locales, formatters, formats, values, currentPluralValue, originalMessage) {
2254
1865
  if (els.length === 1 && isLiteralElement(els[0])) {
2255
1866
  return [
2256
1867
  {
@@ -2326,7 +1937,7 @@ var ReactIntl = (function() {
2326
1937
  if (!isFormatXMLElementFn(formatFn)) {
2327
1938
  throw new InvalidValueTypeError(value_1, "function", originalMessage);
2328
1939
  }
2329
- var parts = formatToParts2(children, locales, formatters, formats, values, currentPluralValue);
1940
+ var parts = formatToParts(children, locales, formatters, formats, values, currentPluralValue);
2330
1941
  var chunks = formatFn(parts.map(function(p) {
2331
1942
  return p.value;
2332
1943
  }));
@@ -2345,11 +1956,11 @@ var ReactIntl = (function() {
2345
1956
  if (!opt) {
2346
1957
  throw new InvalidValueError(el.value, value, Object.keys(el.options), originalMessage);
2347
1958
  }
2348
- result.push.apply(result, formatToParts2(opt.value, locales, formatters, formats, values));
1959
+ result.push.apply(result, formatToParts(opt.value, locales, formatters, formats, values));
2349
1960
  continue;
2350
1961
  }
2351
1962
  if (isPluralElement(el)) {
2352
- var opt = el.options["=" + value];
1963
+ var opt = el.options["=".concat(value)];
2353
1964
  if (!opt) {
2354
1965
  if (!Intl.PluralRules) {
2355
1966
  throw new FormatError('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n', ErrorCode.MISSING_INTL_API, originalMessage);
@@ -2360,7 +1971,7 @@ var ReactIntl = (function() {
2360
1971
  if (!opt) {
2361
1972
  throw new InvalidValueError(el.value, value, Object.keys(el.options), originalMessage);
2362
1973
  }
2363
- result.push.apply(result, formatToParts2(opt.value, locales, formatters, formats, values, value - (el.offset || 0)));
1974
+ result.push.apply(result, formatToParts(opt.value, locales, formatters, formats, values, value - (el.offset || 0)));
2364
1975
  continue;
2365
1976
  }
2366
1977
  }
@@ -2474,7 +2085,7 @@ var ReactIntl = (function() {
2474
2085
  return result;
2475
2086
  };
2476
2087
  this.formatToParts = function(values) {
2477
- return formatToParts2(_this.ast, _this.locales, _this.formatters, _this.formats, values, void 0, _this.message);
2088
+ return formatToParts(_this.ast, _this.locales, _this.formatters, _this.formats, values, void 0, _this.message);
2478
2089
  };
2479
2090
  this.resolvedOptions = function() {
2480
2091
  return {
@@ -2590,7 +2201,7 @@ var ReactIntl = (function() {
2590
2201
  function IntlError2(code, message, exception) {
2591
2202
  var _this = this;
2592
2203
  var err = exception ? exception instanceof Error ? exception : new Error(String(exception)) : void 0;
2593
- _this = _super.call(this, "[@formatjs/intl Error " + code + "] " + message + " \n" + (err ? "\n" + err.message + "\n" + err.stack : "")) || this;
2204
+ _this = _super.call(this, "[@formatjs/intl Error ".concat(code, "] ").concat(message, " \n").concat(err ? "\n".concat(err.message, "\n").concat(err.stack) : "")) || this;
2594
2205
  _this.code = code;
2595
2206
  if (typeof Error.captureStackTrace === "function") {
2596
2207
  Error.captureStackTrace(_this, IntlError2);
@@ -2623,14 +2234,14 @@ var ReactIntl = (function() {
2623
2234
  var IntlFormatError = function(_super) {
2624
2235
  __extends(IntlFormatError2, _super);
2625
2236
  function IntlFormatError2(message, locale, exception) {
2626
- return _super.call(this, IntlErrorCode.FORMAT_ERROR, message + " \nLocale: " + locale + "\n", exception) || this;
2237
+ return _super.call(this, IntlErrorCode.FORMAT_ERROR, "".concat(message, " \nLocale: ").concat(locale, "\n"), exception) || this;
2627
2238
  }
2628
2239
  return IntlFormatError2;
2629
2240
  }(IntlError);
2630
2241
  var MessageFormatError = function(_super) {
2631
2242
  __extends(MessageFormatError2, _super);
2632
2243
  function MessageFormatError2(message, locale, descriptor, exception) {
2633
- var _this = _super.call(this, message + " \nMessageID: " + (descriptor === null || descriptor === void 0 ? void 0 : descriptor.id) + "\nDefault Message: " + (descriptor === null || descriptor === void 0 ? void 0 : descriptor.defaultMessage) + "\nDescription: " + (descriptor === null || descriptor === void 0 ? void 0 : descriptor.description) + " \n", locale, exception) || this;
2244
+ var _this = _super.call(this, "".concat(message, " \nMessageID: ").concat(descriptor === null || descriptor === void 0 ? void 0 : descriptor.id, "\nDefault Message: ").concat(descriptor === null || descriptor === void 0 ? void 0 : descriptor.defaultMessage, "\nDescription: ").concat(descriptor === null || descriptor === void 0 ? void 0 : descriptor.description, " \n"), locale, exception) || this;
2634
2245
  _this.descriptor = descriptor;
2635
2246
  return _this;
2636
2247
  }
@@ -2639,7 +2250,7 @@ var ReactIntl = (function() {
2639
2250
  var MissingTranslationError = function(_super) {
2640
2251
  __extends(MissingTranslationError2, _super);
2641
2252
  function MissingTranslationError2(descriptor, locale) {
2642
- var _this = _super.call(this, IntlErrorCode.MISSING_TRANSLATION, 'Missing message: "' + descriptor.id + '" for locale "' + locale + '", using ' + (descriptor.defaultMessage ? "default message" : "id") + " as fallback.") || this;
2253
+ var _this = _super.call(this, IntlErrorCode.MISSING_TRANSLATION, 'Missing message: "'.concat(descriptor.id, '" for locale "').concat(locale, '", using ').concat(descriptor.defaultMessage ? "default message" : "id", " as fallback.")) || this;
2643
2254
  _this.descriptor = descriptor;
2644
2255
  return _this;
2645
2256
  }
@@ -2794,7 +2405,7 @@ var ReactIntl = (function() {
2794
2405
  if (format) {
2795
2406
  return format;
2796
2407
  }
2797
- onError(new UnsupportedFormatterError("No " + type + " format named: " + name));
2408
+ onError(new UnsupportedFormatterError("No ".concat(type, " format named: ").concat(name)));
2798
2409
  }
2799
2410
 
2800
2411
  // bazel-out/darwin-fastbuild/bin/packages/intl/lib/src/message.js
@@ -2848,7 +2459,7 @@ var ReactIntl = (function() {
2848
2459
  var formatter = state.getMessageFormat(defaultMessage, defaultLocale, defaultFormats, opts);
2849
2460
  return formatter.format(values);
2850
2461
  } catch (e) {
2851
- onError(new MessageFormatError('Error formatting default message for: "' + id + '", rendering default message verbatim', locale, messageDescriptor, e));
2462
+ onError(new MessageFormatError('Error formatting default message for: "'.concat(id, '", rendering default message verbatim'), locale, messageDescriptor, e));
2852
2463
  return typeof defaultMessage === "string" ? defaultMessage : id;
2853
2464
  }
2854
2465
  }
@@ -2858,14 +2469,14 @@ var ReactIntl = (function() {
2858
2469
  var formatter = state.getMessageFormat(message, locale, formats, __assign({ formatters: state }, opts || {}));
2859
2470
  return formatter.format(values);
2860
2471
  } catch (e) {
2861
- onError(new MessageFormatError('Error formatting message: "' + id + '", using ' + (defaultMessage ? "default message" : "id") + " as fallback.", locale, messageDescriptor, e));
2472
+ onError(new MessageFormatError('Error formatting message: "'.concat(id, '", using ').concat(defaultMessage ? "default message" : "id", " as fallback."), locale, messageDescriptor, e));
2862
2473
  }
2863
2474
  if (defaultMessage) {
2864
2475
  try {
2865
2476
  var formatter = state.getMessageFormat(defaultMessage, defaultLocale, defaultFormats, opts);
2866
2477
  return formatter.format(values);
2867
2478
  } catch (e) {
2868
- onError(new MessageFormatError('Error formatting the default message for: "' + id + '", rendering message verbatim', locale, messageDescriptor, e));
2479
+ onError(new MessageFormatError('Error formatting the default message for: "'.concat(id, '", rendering message verbatim'), locale, messageDescriptor, e));
2869
2480
  }
2870
2481
  }
2871
2482
  if (typeof message === "string") {
@@ -3012,7 +2623,7 @@ var ReactIntl = (function() {
3012
2623
  ];
3013
2624
  var now = Date.now();
3014
2625
  function generateToken(i) {
3015
- return now + "_" + i + "_" + now;
2626
+ return "".concat(now, "_").concat(i, "_").concat(now);
3016
2627
  }
3017
2628
  function formatList(opts, getListFormat, values, options) {
3018
2629
  if (options === void 0) {
@@ -3185,13 +2796,13 @@ var ReactIntl = (function() {
3185
2796
  var locale = resolvedConfig.locale, defaultLocale = resolvedConfig.defaultLocale, onError = resolvedConfig.onError;
3186
2797
  if (!locale) {
3187
2798
  if (onError) {
3188
- onError(new InvalidConfigError('"locale" was not configured, using "' + defaultLocale + '" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'));
2799
+ onError(new InvalidConfigError('"locale" was not configured, using "'.concat(defaultLocale, '" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details')));
3189
2800
  }
3190
2801
  resolvedConfig.locale = resolvedConfig.defaultLocale || "en";
3191
2802
  } else if (!Intl.NumberFormat.supportedLocalesOf(locale).length && onError) {
3192
- onError(new MissingDataError('Missing locale data for locale: "' + locale + '" in Intl.NumberFormat. Using default locale: "' + defaultLocale + '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'));
2803
+ onError(new MissingDataError('Missing locale data for locale: "'.concat(locale, '" in Intl.NumberFormat. Using default locale: "').concat(defaultLocale, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')));
3193
2804
  } else if (!Intl.DateTimeFormat.supportedLocalesOf(locale).length && onError) {
3194
- onError(new MissingDataError('Missing locale data for locale: "' + locale + '" in Intl.DateTimeFormat. Using default locale: "' + defaultLocale + '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'));
2805
+ onError(new MissingDataError('Missing locale data for locale: "'.concat(locale, '" in Intl.DateTimeFormat. Using default locale: "').concat(defaultLocale, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')));
3195
2806
  }
3196
2807
  verifyConfigMessages(resolvedConfig);
3197
2808
  return __assign(__assign({}, resolvedConfig), { formatters: formatters, formatNumber: formatNumber.bind(null, resolvedConfig, formatters.getNumberFormat), formatNumberToParts: formatNumberToParts.bind(null, resolvedConfig, formatters.getNumberFormat), formatRelativeTime: formatRelativeTime.bind(null, resolvedConfig, formatters.getRelativeTimeFormat), formatDate: formatDate.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatDateToParts: formatDateToParts.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatTime: formatTime.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatDateTimeRange: formatDateTimeRange.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatTimeToParts: formatTimeToParts.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatPlural: formatPlural.bind(null, resolvedConfig, formatters.getPluralRules), formatMessage: formatMessage.bind(null, resolvedConfig, formatters), formatList: formatList.bind(null, resolvedConfig, formatters.getListFormat), formatListToParts: formatListToParts.bind(null, resolvedConfig, formatters.getListFormat), formatDisplayName: formatDisplayName.bind(null, resolvedConfig, formatters.getDisplayNames) });
@@ -3250,7 +2861,7 @@ var ReactIntl = (function() {
3250
2861
  return React2.createElement(WrappedComponent, __assign({}, props, intlProp, { ref: forwardRef2 ? props.forwardedRef : null }));
3251
2862
  });
3252
2863
  };
3253
- WithIntl.displayName = "injectIntl(" + getDisplayName(WrappedComponent) + ")";
2864
+ WithIntl.displayName = "injectIntl(".concat(getDisplayName(WrappedComponent), ")");
3254
2865
  WithIntl.WrappedComponent = WrappedComponent;
3255
2866
  if (forwardRef2) {
3256
2867
  return (0, import_hoist_non_react_statics.default)(React2.forwardRef(function(props, ref) {
@@ -3322,7 +2933,7 @@ var ReactIntl = (function() {
3322
2933
  }
3323
2934
 
3324
2935
  // bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/components/provider.js
3325
- var React5 = __toModule(window.React);
2936
+ var React5 = __toESM(window.React);
3326
2937
  function processIntlConfig(config) {
3327
2938
  return {
3328
2939
  locale: config.locale,
@@ -3414,7 +3025,7 @@ var ReactIntl = (function() {
3414
3025
  var provider_default = IntlProvider2;
3415
3026
 
3416
3027
  // bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/components/relative.js
3417
- var React6 = __toModule(window.React);
3028
+ var React6 = __toESM(window.React);
3418
3029
  var MINUTE = 60;
3419
3030
  var HOUR = 60 * 60;
3420
3031
  var DAY = 60 * 60 * 24;
@@ -3533,7 +3144,7 @@ var ReactIntl = (function() {
3533
3144
  var relative_default = FormattedRelativeTime;
3534
3145
 
3535
3146
  // bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/components/plural.js
3536
- var React7 = __toModule(window.React);
3147
+ var React7 = __toESM(window.React);
3537
3148
  var FormattedPlural = function(props) {
3538
3149
  var _a2 = useIntl(), formatPlural2 = _a2.formatPlural, Text = _a2.textComponent;
3539
3150
  var value = props.value, other = props.other, children = props.children;
@@ -3554,7 +3165,7 @@ var ReactIntl = (function() {
3554
3165
  var plural_default = FormattedPlural;
3555
3166
 
3556
3167
  // bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/components/message.js
3557
- var React8 = __toModule(window.React);
3168
+ var React8 = __toESM(window.React);
3558
3169
  function areEqual(prevProps, nextProps) {
3559
3170
  var values = prevProps.values, otherProps = __rest(prevProps, ["values"]);
3560
3171
  var nextValues = nextProps.values, nextOtherProps = __rest(nextProps, ["values"]);
@@ -3582,7 +3193,7 @@ var ReactIntl = (function() {
3582
3193
  var message_default = MemoizedFormattedMessage;
3583
3194
 
3584
3195
  // bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/components/dateTimeRange.js
3585
- var React9 = __toModule(window.React);
3196
+ var React9 = __toESM(window.React);
3586
3197
  var FormattedDateTimeRange = function(props) {
3587
3198
  var intl = useIntl();
3588
3199
  var from = props.from, to = props.to, children = props.children, formatProps = __rest(props, ["from", "to", "children"]);
@@ -3610,7 +3221,7 @@ var ReactIntl = (function() {
3610
3221
  var FormattedDisplayName = createFormattedComponent("formatDisplayName");
3611
3222
  var FormattedDateParts = createFormattedDateTimePartsComponent("formatDate");
3612
3223
  var FormattedTimeParts = createFormattedDateTimePartsComponent("formatTime");
3613
- return lib_exports;
3224
+ return __toCommonJS(lib_exports);
3614
3225
  })();
3615
3226
  /*! *****************************************************************************
3616
3227
  Copyright (c) Microsoft Corporation.
@@ -23,7 +23,7 @@ function injectIntl(WrappedComponent, options) {
23
23
  var intlProp = (_a = {}, _a[intlPropName] = intl, _a);
24
24
  return (React.createElement(WrappedComponent, (0, tslib_1.__assign)({}, props, intlProp, { ref: forwardRef ? props.forwardedRef : null })));
25
25
  })); };
26
- WithIntl.displayName = "injectIntl(" + getDisplayName(WrappedComponent) + ")";
26
+ WithIntl.displayName = "injectIntl(".concat(getDisplayName(WrappedComponent), ")");
27
27
  WithIntl.WrappedComponent = WrappedComponent;
28
28
  if (forwardRef) {
29
29
  return (0, hoist_non_react_statics_1.default)(React.forwardRef(function (props, ref) { return (React.createElement(WithIntl, (0, tslib_1.__assign)({}, props, { forwardedRef: ref }))); }), WrappedComponent);
@@ -1 +1 @@
1
- {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../../../../../packages/react-intl/src/components/provider.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAQ9B,OAAO,EAAC,UAAU,EAAE,SAAS,EAAC,MAAM,UAAU,CAAA;AAC9C,OAAO,EAEL,SAAS,EAET,YAAY,EAEb,MAAM,gBAAgB,CAAA;AAQvB,UAAU,KAAK;IACb;;OAEG;IACH,KAAK,EAAE,SAAS,CAAA;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB;;;;OAIG;IACH,UAAU,EAAE,UAAU,CAAA;CACvB;AAkED;;;;GAIG;AACH,eAAO,MAAM,UAAU,EAAE,YAAY,CAAC,KAAK,CAAC,SAAS,EAAE,UAAU,EAAE,SAAS,CA8BzE,CAAA;AAEH,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,KAAK,CAAC,aAAa,CAG3D,KAAK,CAAC,iBAAiB,CAAC,UAAU,CAAC,EACnC,KAAK,CACN;IACC,MAAM,CAAC,WAAW,SAAiB;IACnC,MAAM,CAAC,YAAY,gLAAsB;IACzC,OAAO,CAAC,KAAK,CAA+B;IAC5C,KAAK,EAAE,KAAK,CAIX;IAED,MAAM,CAAC,wBAAwB,CAC7B,KAAK,EAAE,QAAQ,CAAC,UAAU,CAAC,EAC3B,EAAC,UAAU,EAAE,KAAK,EAAC,EAAE,KAAK,GACzB,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI;IAWxB,MAAM,IAAI,GAAG,CAAC,OAAO;CAItB"}
1
+ {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../../../../../packages/react-intl/src/components/provider.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAQ9B,OAAO,EAAC,UAAU,EAAE,SAAS,EAAC,MAAM,UAAU,CAAA;AAC9C,OAAO,EAEL,SAAS,EAET,YAAY,EAEb,MAAM,gBAAgB,CAAA;AAQvB,UAAU,KAAK;IACb;;OAEG;IACH,KAAK,EAAE,SAAS,CAAA;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB;;;;OAIG;IACH,UAAU,EAAE,UAAU,CAAA;CACvB;AAkED;;;;GAIG;AACH,eAAO,MAAM,UAAU,EAAE,YAAY,CACnC,KAAK,CAAC,SAAS,EACf,UAAU,EACV,SAAS,CAkCV,CAAA;AAED,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,KAAK,CAAC,aAAa,CAG3D,KAAK,CAAC,iBAAiB,CAAC,UAAU,CAAC,EACnC,KAAK,CACN;IACC,MAAM,CAAC,WAAW,SAAiB;IACnC,MAAM,CAAC,YAAY,gLAAsB;IACzC,OAAO,CAAC,KAAK,CAA+B;IAC5C,KAAK,EAAE,KAAK,CAIX;IAED,MAAM,CAAC,wBAAwB,CAC7B,KAAK,EAAE,QAAQ,CAAC,UAAU,CAAC,EAC3B,EAAC,UAAU,EAAE,KAAK,EAAC,EAAE,KAAK,GACzB,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI;IAWxB,MAAM,IAAI,GAAG,CAAC,OAAO;CAItB"}