react-intl 5.17.7 → 5.18.3

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.
@@ -34,1369 +34,6 @@ var ReactIntl = (function() {
34
34
  }, enumerable: true} : {value: module, enumerable: true})), module);
35
35
  };
36
36
 
37
- // node_modules/object-assign/index.js
38
- var require_object_assign = __commonJS({
39
- "node_modules/object-assign/index.js": function(exports, module) {
40
- "use strict";
41
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
42
- var hasOwnProperty = Object.prototype.hasOwnProperty;
43
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
44
- function toObject(val) {
45
- if (val === null || val === void 0) {
46
- throw new TypeError("Object.assign cannot be called with null or undefined");
47
- }
48
- return Object(val);
49
- }
50
- function shouldUseNative() {
51
- try {
52
- if (!Object.assign) {
53
- return false;
54
- }
55
- var test1 = new String("abc");
56
- test1[5] = "de";
57
- if (Object.getOwnPropertyNames(test1)[0] === "5") {
58
- return false;
59
- }
60
- var test2 = {};
61
- for (var i = 0; i < 10; i++) {
62
- test2["_" + String.fromCharCode(i)] = i;
63
- }
64
- var order2 = Object.getOwnPropertyNames(test2).map(function(n) {
65
- return test2[n];
66
- });
67
- if (order2.join("") !== "0123456789") {
68
- return false;
69
- }
70
- var test3 = {};
71
- "abcdefghijklmnopqrst".split("").forEach(function(letter) {
72
- test3[letter] = letter;
73
- });
74
- if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
75
- return false;
76
- }
77
- return true;
78
- } catch (err) {
79
- return false;
80
- }
81
- }
82
- module.exports = shouldUseNative() ? Object.assign : function(target, source) {
83
- var from;
84
- var to = toObject(target);
85
- var symbols;
86
- for (var s = 1; s < arguments.length; s++) {
87
- from = Object(arguments[s]);
88
- for (var key in from) {
89
- if (hasOwnProperty.call(from, key)) {
90
- to[key] = from[key];
91
- }
92
- }
93
- if (getOwnPropertySymbols) {
94
- symbols = getOwnPropertySymbols(from);
95
- for (var i = 0; i < symbols.length; i++) {
96
- if (propIsEnumerable.call(from, symbols[i])) {
97
- to[symbols[i]] = from[symbols[i]];
98
- }
99
- }
100
- }
101
- }
102
- return to;
103
- };
104
- }
105
- });
106
-
107
- // node_modules/prop-types/lib/ReactPropTypesSecret.js
108
- var require_ReactPropTypesSecret = __commonJS({
109
- "node_modules/prop-types/lib/ReactPropTypesSecret.js": function(exports, module) {
110
- "use strict";
111
- var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
112
- module.exports = ReactPropTypesSecret;
113
- }
114
- });
115
-
116
- // node_modules/prop-types/checkPropTypes.js
117
- var require_checkPropTypes = __commonJS({
118
- "node_modules/prop-types/checkPropTypes.js": function(exports, module) {
119
- "use strict";
120
- var printWarning = function() {
121
- };
122
- if (true) {
123
- ReactPropTypesSecret = require_ReactPropTypesSecret();
124
- loggedTypeFailures = {};
125
- has = Function.call.bind(Object.prototype.hasOwnProperty);
126
- printWarning = function(text) {
127
- var message = "Warning: " + text;
128
- if (typeof console !== "undefined") {
129
- console.error(message);
130
- }
131
- try {
132
- throw new Error(message);
133
- } catch (x) {
134
- }
135
- };
136
- }
137
- var ReactPropTypesSecret;
138
- var loggedTypeFailures;
139
- var has;
140
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
141
- if (true) {
142
- for (var typeSpecName in typeSpecs) {
143
- if (has(typeSpecs, typeSpecName)) {
144
- var error;
145
- try {
146
- if (typeof typeSpecs[typeSpecName] !== "function") {
147
- var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.");
148
- err.name = "Invariant Violation";
149
- throw err;
150
- }
151
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
152
- } catch (ex) {
153
- error = ex;
154
- }
155
- if (error && !(error instanceof Error)) {
156
- printWarning((componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof error + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).");
157
- }
158
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
159
- loggedTypeFailures[error.message] = true;
160
- var stack = getStack ? getStack() : "";
161
- printWarning("Failed " + location + " type: " + error.message + (stack != null ? stack : ""));
162
- }
163
- }
164
- }
165
- }
166
- }
167
- checkPropTypes.resetWarningCache = function() {
168
- if (true) {
169
- loggedTypeFailures = {};
170
- }
171
- };
172
- module.exports = checkPropTypes;
173
- }
174
- });
175
-
176
- // node_modules/react/cjs/react.development.js
177
- var require_react_development = __commonJS({
178
- "node_modules/react/cjs/react.development.js": function(exports) {
179
- "use strict";
180
- if (true) {
181
- (function() {
182
- "use strict";
183
- var _assign = require_object_assign();
184
- var checkPropTypes = require_checkPropTypes();
185
- var ReactVersion = "16.14.0";
186
- var hasSymbol = typeof Symbol === "function" && Symbol.for;
187
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
188
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
189
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
190
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
191
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
192
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
193
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
194
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
195
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
196
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
197
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
198
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
199
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
200
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
201
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
202
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
203
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
204
- var MAYBE_ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
205
- var FAUX_ITERATOR_SYMBOL = "@@iterator";
206
- function getIteratorFn(maybeIterable) {
207
- if (maybeIterable === null || typeof maybeIterable !== "object") {
208
- return null;
209
- }
210
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
211
- if (typeof maybeIterator === "function") {
212
- return maybeIterator;
213
- }
214
- return null;
215
- }
216
- var ReactCurrentDispatcher = {
217
- current: null
218
- };
219
- var ReactCurrentBatchConfig = {
220
- suspense: null
221
- };
222
- var ReactCurrentOwner = {
223
- current: null
224
- };
225
- var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
226
- function describeComponentFrame(name, source, ownerName) {
227
- var sourceInfo = "";
228
- if (source) {
229
- var path = source.fileName;
230
- var fileName = path.replace(BEFORE_SLASH_RE, "");
231
- {
232
- if (/^index\./.test(fileName)) {
233
- var match = path.match(BEFORE_SLASH_RE);
234
- if (match) {
235
- var pathBeforeSlash = match[1];
236
- if (pathBeforeSlash) {
237
- var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, "");
238
- fileName = folderName + "/" + fileName;
239
- }
240
- }
241
- }
242
- }
243
- sourceInfo = " (at " + fileName + ":" + source.lineNumber + ")";
244
- } else if (ownerName) {
245
- sourceInfo = " (created by " + ownerName + ")";
246
- }
247
- return "\n in " + (name || "Unknown") + sourceInfo;
248
- }
249
- var Resolved = 1;
250
- function refineResolvedLazyComponent(lazyComponent) {
251
- return lazyComponent._status === Resolved ? lazyComponent._result : null;
252
- }
253
- function getWrappedName(outerType, innerType, wrapperName) {
254
- var functionName = innerType.displayName || innerType.name || "";
255
- return outerType.displayName || (functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName);
256
- }
257
- function getComponentName(type) {
258
- if (type == null) {
259
- return null;
260
- }
261
- {
262
- if (typeof type.tag === "number") {
263
- error("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue.");
264
- }
265
- }
266
- if (typeof type === "function") {
267
- return type.displayName || type.name || null;
268
- }
269
- if (typeof type === "string") {
270
- return type;
271
- }
272
- switch (type) {
273
- case REACT_FRAGMENT_TYPE:
274
- return "Fragment";
275
- case REACT_PORTAL_TYPE:
276
- return "Portal";
277
- case REACT_PROFILER_TYPE:
278
- return "Profiler";
279
- case REACT_STRICT_MODE_TYPE:
280
- return "StrictMode";
281
- case REACT_SUSPENSE_TYPE:
282
- return "Suspense";
283
- case REACT_SUSPENSE_LIST_TYPE:
284
- return "SuspenseList";
285
- }
286
- if (typeof type === "object") {
287
- switch (type.$$typeof) {
288
- case REACT_CONTEXT_TYPE:
289
- return "Context.Consumer";
290
- case REACT_PROVIDER_TYPE:
291
- return "Context.Provider";
292
- case REACT_FORWARD_REF_TYPE:
293
- return getWrappedName(type, type.render, "ForwardRef");
294
- case REACT_MEMO_TYPE:
295
- return getComponentName(type.type);
296
- case REACT_BLOCK_TYPE:
297
- return getComponentName(type.render);
298
- case REACT_LAZY_TYPE: {
299
- var thenable = type;
300
- var resolvedThenable = refineResolvedLazyComponent(thenable);
301
- if (resolvedThenable) {
302
- return getComponentName(resolvedThenable);
303
- }
304
- break;
305
- }
306
- }
307
- }
308
- return null;
309
- }
310
- var ReactDebugCurrentFrame = {};
311
- var currentlyValidatingElement = null;
312
- function setCurrentlyValidatingElement(element) {
313
- {
314
- currentlyValidatingElement = element;
315
- }
316
- }
317
- {
318
- ReactDebugCurrentFrame.getCurrentStack = null;
319
- ReactDebugCurrentFrame.getStackAddendum = function() {
320
- var stack = "";
321
- if (currentlyValidatingElement) {
322
- var name = getComponentName(currentlyValidatingElement.type);
323
- var owner = currentlyValidatingElement._owner;
324
- stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type));
325
- }
326
- var impl = ReactDebugCurrentFrame.getCurrentStack;
327
- if (impl) {
328
- stack += impl() || "";
329
- }
330
- return stack;
331
- };
332
- }
333
- var IsSomeRendererActing = {
334
- current: false
335
- };
336
- var ReactSharedInternals = {
337
- ReactCurrentDispatcher: ReactCurrentDispatcher,
338
- ReactCurrentBatchConfig: ReactCurrentBatchConfig,
339
- ReactCurrentOwner: ReactCurrentOwner,
340
- IsSomeRendererActing: IsSomeRendererActing,
341
- assign: _assign
342
- };
343
- {
344
- _assign(ReactSharedInternals, {
345
- ReactDebugCurrentFrame: ReactDebugCurrentFrame,
346
- ReactComponentTreeHook: {}
347
- });
348
- }
349
- function warn(format) {
350
- {
351
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
352
- args[_key - 1] = arguments[_key];
353
- }
354
- printWarning("warn", format, args);
355
- }
356
- }
357
- function error(format) {
358
- {
359
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
360
- args[_key2 - 1] = arguments[_key2];
361
- }
362
- printWarning("error", format, args);
363
- }
364
- }
365
- function printWarning(level, format, args) {
366
- {
367
- var hasExistingStack = args.length > 0 && typeof args[args.length - 1] === "string" && args[args.length - 1].indexOf("\n in") === 0;
368
- if (!hasExistingStack) {
369
- var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
370
- var stack = ReactDebugCurrentFrame2.getStackAddendum();
371
- if (stack !== "") {
372
- format += "%s";
373
- args = args.concat([stack]);
374
- }
375
- }
376
- var argsWithFormat = args.map(function(item) {
377
- return "" + item;
378
- });
379
- argsWithFormat.unshift("Warning: " + format);
380
- Function.prototype.apply.call(console[level], console, argsWithFormat);
381
- try {
382
- var argIndex = 0;
383
- var message = "Warning: " + format.replace(/%s/g, function() {
384
- return args[argIndex++];
385
- });
386
- throw new Error(message);
387
- } catch (x) {
388
- }
389
- }
390
- }
391
- var didWarnStateUpdateForUnmountedComponent = {};
392
- function warnNoop(publicInstance, callerName) {
393
- {
394
- var _constructor = publicInstance.constructor;
395
- var componentName = _constructor && (_constructor.displayName || _constructor.name) || "ReactClass";
396
- var warningKey = componentName + "." + callerName;
397
- if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
398
- return;
399
- }
400
- error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", callerName, componentName);
401
- didWarnStateUpdateForUnmountedComponent[warningKey] = true;
402
- }
403
- }
404
- var ReactNoopUpdateQueue = {
405
- isMounted: function(publicInstance) {
406
- return false;
407
- },
408
- enqueueForceUpdate: function(publicInstance, callback, callerName) {
409
- warnNoop(publicInstance, "forceUpdate");
410
- },
411
- enqueueReplaceState: function(publicInstance, completeState, callback, callerName) {
412
- warnNoop(publicInstance, "replaceState");
413
- },
414
- enqueueSetState: function(publicInstance, partialState, callback, callerName) {
415
- warnNoop(publicInstance, "setState");
416
- }
417
- };
418
- var emptyObject = {};
419
- {
420
- Object.freeze(emptyObject);
421
- }
422
- function Component(props, context, updater) {
423
- this.props = props;
424
- this.context = context;
425
- this.refs = emptyObject;
426
- this.updater = updater || ReactNoopUpdateQueue;
427
- }
428
- Component.prototype.isReactComponent = {};
429
- Component.prototype.setState = function(partialState, callback) {
430
- if (!(typeof partialState === "object" || typeof partialState === "function" || partialState == null)) {
431
- {
432
- throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
433
- }
434
- }
435
- this.updater.enqueueSetState(this, partialState, callback, "setState");
436
- };
437
- Component.prototype.forceUpdate = function(callback) {
438
- this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
439
- };
440
- {
441
- var deprecatedAPIs = {
442
- isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
443
- replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
444
- };
445
- var defineDeprecationWarning = function(methodName, info) {
446
- Object.defineProperty(Component.prototype, methodName, {
447
- get: function() {
448
- warn("%s(...) is deprecated in plain JavaScript React classes. %s", info[0], info[1]);
449
- return void 0;
450
- }
451
- });
452
- };
453
- for (var fnName in deprecatedAPIs) {
454
- if (deprecatedAPIs.hasOwnProperty(fnName)) {
455
- defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
456
- }
457
- }
458
- }
459
- function ComponentDummy() {
460
- }
461
- ComponentDummy.prototype = Component.prototype;
462
- function PureComponent2(props, context, updater) {
463
- this.props = props;
464
- this.context = context;
465
- this.refs = emptyObject;
466
- this.updater = updater || ReactNoopUpdateQueue;
467
- }
468
- var pureComponentPrototype = PureComponent2.prototype = new ComponentDummy();
469
- pureComponentPrototype.constructor = PureComponent2;
470
- _assign(pureComponentPrototype, Component.prototype);
471
- pureComponentPrototype.isPureReactComponent = true;
472
- function createRef() {
473
- var refObject = {
474
- current: null
475
- };
476
- {
477
- Object.seal(refObject);
478
- }
479
- return refObject;
480
- }
481
- var hasOwnProperty = Object.prototype.hasOwnProperty;
482
- var RESERVED_PROPS = {
483
- key: true,
484
- ref: true,
485
- __self: true,
486
- __source: true
487
- };
488
- var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
489
- {
490
- didWarnAboutStringRefs = {};
491
- }
492
- function hasValidRef(config) {
493
- {
494
- if (hasOwnProperty.call(config, "ref")) {
495
- var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
496
- if (getter && getter.isReactWarning) {
497
- return false;
498
- }
499
- }
500
- }
501
- return config.ref !== void 0;
502
- }
503
- function hasValidKey(config) {
504
- {
505
- if (hasOwnProperty.call(config, "key")) {
506
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
507
- if (getter && getter.isReactWarning) {
508
- return false;
509
- }
510
- }
511
- }
512
- return config.key !== void 0;
513
- }
514
- function defineKeyPropWarningGetter(props, displayName) {
515
- var warnAboutAccessingKey = function() {
516
- {
517
- if (!specialPropKeyWarningShown) {
518
- specialPropKeyWarningShown = true;
519
- error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)", displayName);
520
- }
521
- }
522
- };
523
- warnAboutAccessingKey.isReactWarning = true;
524
- Object.defineProperty(props, "key", {
525
- get: warnAboutAccessingKey,
526
- configurable: true
527
- });
528
- }
529
- function defineRefPropWarningGetter(props, displayName) {
530
- var warnAboutAccessingRef = function() {
531
- {
532
- if (!specialPropRefWarningShown) {
533
- specialPropRefWarningShown = true;
534
- error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)", displayName);
535
- }
536
- }
537
- };
538
- warnAboutAccessingRef.isReactWarning = true;
539
- Object.defineProperty(props, "ref", {
540
- get: warnAboutAccessingRef,
541
- configurable: true
542
- });
543
- }
544
- function warnIfStringRefCannotBeAutoConverted(config) {
545
- {
546
- if (typeof config.ref === "string" && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
547
- var componentName = getComponentName(ReactCurrentOwner.current.type);
548
- if (!didWarnAboutStringRefs[componentName]) {
549
- error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref', getComponentName(ReactCurrentOwner.current.type), config.ref);
550
- didWarnAboutStringRefs[componentName] = true;
551
- }
552
- }
553
- }
554
- }
555
- var ReactElement = function(type, key, ref, self, source, owner, props) {
556
- var element = {
557
- $$typeof: REACT_ELEMENT_TYPE,
558
- type: type,
559
- key: key,
560
- ref: ref,
561
- props: props,
562
- _owner: owner
563
- };
564
- {
565
- element._store = {};
566
- Object.defineProperty(element._store, "validated", {
567
- configurable: false,
568
- enumerable: false,
569
- writable: true,
570
- value: false
571
- });
572
- Object.defineProperty(element, "_self", {
573
- configurable: false,
574
- enumerable: false,
575
- writable: false,
576
- value: self
577
- });
578
- Object.defineProperty(element, "_source", {
579
- configurable: false,
580
- enumerable: false,
581
- writable: false,
582
- value: source
583
- });
584
- if (Object.freeze) {
585
- Object.freeze(element.props);
586
- Object.freeze(element);
587
- }
588
- }
589
- return element;
590
- };
591
- function createElement8(type, config, children) {
592
- var propName;
593
- var props = {};
594
- var key = null;
595
- var ref = null;
596
- var self = null;
597
- var source = null;
598
- if (config != null) {
599
- if (hasValidRef(config)) {
600
- ref = config.ref;
601
- {
602
- warnIfStringRefCannotBeAutoConverted(config);
603
- }
604
- }
605
- if (hasValidKey(config)) {
606
- key = "" + config.key;
607
- }
608
- self = config.__self === void 0 ? null : config.__self;
609
- source = config.__source === void 0 ? null : config.__source;
610
- for (propName in config) {
611
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
612
- props[propName] = config[propName];
613
- }
614
- }
615
- }
616
- var childrenLength = arguments.length - 2;
617
- if (childrenLength === 1) {
618
- props.children = children;
619
- } else if (childrenLength > 1) {
620
- var childArray = Array(childrenLength);
621
- for (var i = 0; i < childrenLength; i++) {
622
- childArray[i] = arguments[i + 2];
623
- }
624
- {
625
- if (Object.freeze) {
626
- Object.freeze(childArray);
627
- }
628
- }
629
- props.children = childArray;
630
- }
631
- if (type && type.defaultProps) {
632
- var defaultProps = type.defaultProps;
633
- for (propName in defaultProps) {
634
- if (props[propName] === void 0) {
635
- props[propName] = defaultProps[propName];
636
- }
637
- }
638
- }
639
- {
640
- if (key || ref) {
641
- var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
642
- if (key) {
643
- defineKeyPropWarningGetter(props, displayName);
644
- }
645
- if (ref) {
646
- defineRefPropWarningGetter(props, displayName);
647
- }
648
- }
649
- }
650
- return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
651
- }
652
- function cloneAndReplaceKey(oldElement, newKey) {
653
- var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
654
- return newElement;
655
- }
656
- function cloneElement(element, config, children) {
657
- if (!!(element === null || element === void 0)) {
658
- {
659
- throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + ".");
660
- }
661
- }
662
- var propName;
663
- var props = _assign({}, element.props);
664
- var key = element.key;
665
- var ref = element.ref;
666
- var self = element._self;
667
- var source = element._source;
668
- var owner = element._owner;
669
- if (config != null) {
670
- if (hasValidRef(config)) {
671
- ref = config.ref;
672
- owner = ReactCurrentOwner.current;
673
- }
674
- if (hasValidKey(config)) {
675
- key = "" + config.key;
676
- }
677
- var defaultProps;
678
- if (element.type && element.type.defaultProps) {
679
- defaultProps = element.type.defaultProps;
680
- }
681
- for (propName in config) {
682
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
683
- if (config[propName] === void 0 && defaultProps !== void 0) {
684
- props[propName] = defaultProps[propName];
685
- } else {
686
- props[propName] = config[propName];
687
- }
688
- }
689
- }
690
- }
691
- var childrenLength = arguments.length - 2;
692
- if (childrenLength === 1) {
693
- props.children = children;
694
- } else if (childrenLength > 1) {
695
- var childArray = Array(childrenLength);
696
- for (var i = 0; i < childrenLength; i++) {
697
- childArray[i] = arguments[i + 2];
698
- }
699
- props.children = childArray;
700
- }
701
- return ReactElement(element.type, key, ref, self, source, owner, props);
702
- }
703
- function isValidElement(object) {
704
- return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
705
- }
706
- var SEPARATOR = ".";
707
- var SUBSEPARATOR = ":";
708
- function escape(key) {
709
- var escapeRegex = /[=:]/g;
710
- var escaperLookup = {
711
- "=": "=0",
712
- ":": "=2"
713
- };
714
- var escapedString = ("" + key).replace(escapeRegex, function(match) {
715
- return escaperLookup[match];
716
- });
717
- return "$" + escapedString;
718
- }
719
- var didWarnAboutMaps = false;
720
- var userProvidedKeyEscapeRegex = /\/+/g;
721
- function escapeUserProvidedKey(text) {
722
- return ("" + text).replace(userProvidedKeyEscapeRegex, "$&/");
723
- }
724
- var POOL_SIZE = 10;
725
- var traverseContextPool = [];
726
- function getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) {
727
- if (traverseContextPool.length) {
728
- var traverseContext = traverseContextPool.pop();
729
- traverseContext.result = mapResult;
730
- traverseContext.keyPrefix = keyPrefix;
731
- traverseContext.func = mapFunction;
732
- traverseContext.context = mapContext;
733
- traverseContext.count = 0;
734
- return traverseContext;
735
- } else {
736
- return {
737
- result: mapResult,
738
- keyPrefix: keyPrefix,
739
- func: mapFunction,
740
- context: mapContext,
741
- count: 0
742
- };
743
- }
744
- }
745
- function releaseTraverseContext(traverseContext) {
746
- traverseContext.result = null;
747
- traverseContext.keyPrefix = null;
748
- traverseContext.func = null;
749
- traverseContext.context = null;
750
- traverseContext.count = 0;
751
- if (traverseContextPool.length < POOL_SIZE) {
752
- traverseContextPool.push(traverseContext);
753
- }
754
- }
755
- function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
756
- var type = typeof children;
757
- if (type === "undefined" || type === "boolean") {
758
- children = null;
759
- }
760
- var invokeCallback = false;
761
- if (children === null) {
762
- invokeCallback = true;
763
- } else {
764
- switch (type) {
765
- case "string":
766
- case "number":
767
- invokeCallback = true;
768
- break;
769
- case "object":
770
- switch (children.$$typeof) {
771
- case REACT_ELEMENT_TYPE:
772
- case REACT_PORTAL_TYPE:
773
- invokeCallback = true;
774
- }
775
- }
776
- }
777
- if (invokeCallback) {
778
- callback(traverseContext, children, nameSoFar === "" ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);
779
- return 1;
780
- }
781
- var child;
782
- var nextName;
783
- var subtreeCount = 0;
784
- var nextNamePrefix = nameSoFar === "" ? SEPARATOR : nameSoFar + SUBSEPARATOR;
785
- if (Array.isArray(children)) {
786
- for (var i = 0; i < children.length; i++) {
787
- child = children[i];
788
- nextName = nextNamePrefix + getComponentKey(child, i);
789
- subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
790
- }
791
- } else {
792
- var iteratorFn = getIteratorFn(children);
793
- if (typeof iteratorFn === "function") {
794
- {
795
- if (iteratorFn === children.entries) {
796
- if (!didWarnAboutMaps) {
797
- warn("Using Maps as children is deprecated and will be removed in a future major release. Consider converting children to an array of keyed ReactElements instead.");
798
- }
799
- didWarnAboutMaps = true;
800
- }
801
- }
802
- var iterator = iteratorFn.call(children);
803
- var step;
804
- var ii = 0;
805
- while (!(step = iterator.next()).done) {
806
- child = step.value;
807
- nextName = nextNamePrefix + getComponentKey(child, ii++);
808
- subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
809
- }
810
- } else if (type === "object") {
811
- var addendum = "";
812
- {
813
- addendum = " If you meant to render a collection of children, use an array instead." + ReactDebugCurrentFrame.getStackAddendum();
814
- }
815
- var childrenString = "" + children;
816
- {
817
- {
818
- throw Error("Objects are not valid as a React child (found: " + (childrenString === "[object Object]" ? "object with keys {" + Object.keys(children).join(", ") + "}" : childrenString) + ")." + addendum);
819
- }
820
- }
821
- }
822
- }
823
- return subtreeCount;
824
- }
825
- function traverseAllChildren(children, callback, traverseContext) {
826
- if (children == null) {
827
- return 0;
828
- }
829
- return traverseAllChildrenImpl(children, "", callback, traverseContext);
830
- }
831
- function getComponentKey(component, index) {
832
- if (typeof component === "object" && component !== null && component.key != null) {
833
- return escape(component.key);
834
- }
835
- return index.toString(36);
836
- }
837
- function forEachSingleChild(bookKeeping, child, name) {
838
- var func = bookKeeping.func, context = bookKeeping.context;
839
- func.call(context, child, bookKeeping.count++);
840
- }
841
- function forEachChildren(children, forEachFunc, forEachContext) {
842
- if (children == null) {
843
- return children;
844
- }
845
- var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext);
846
- traverseAllChildren(children, forEachSingleChild, traverseContext);
847
- releaseTraverseContext(traverseContext);
848
- }
849
- function mapSingleChildIntoContext(bookKeeping, child, childKey) {
850
- var result = bookKeeping.result, keyPrefix = bookKeeping.keyPrefix, func = bookKeeping.func, context = bookKeeping.context;
851
- var mappedChild = func.call(context, child, bookKeeping.count++);
852
- if (Array.isArray(mappedChild)) {
853
- mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, function(c) {
854
- return c;
855
- });
856
- } else if (mappedChild != null) {
857
- if (isValidElement(mappedChild)) {
858
- mappedChild = cloneAndReplaceKey(mappedChild, keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + "/" : "") + childKey);
859
- }
860
- result.push(mappedChild);
861
- }
862
- }
863
- function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
864
- var escapedPrefix = "";
865
- if (prefix != null) {
866
- escapedPrefix = escapeUserProvidedKey(prefix) + "/";
867
- }
868
- var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);
869
- traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
870
- releaseTraverseContext(traverseContext);
871
- }
872
- function mapChildren(children, func, context) {
873
- if (children == null) {
874
- return children;
875
- }
876
- var result = [];
877
- mapIntoWithKeyPrefixInternal(children, result, null, func, context);
878
- return result;
879
- }
880
- function countChildren(children) {
881
- return traverseAllChildren(children, function() {
882
- return null;
883
- }, null);
884
- }
885
- function toArray(children) {
886
- var result = [];
887
- mapIntoWithKeyPrefixInternal(children, result, null, function(child) {
888
- return child;
889
- });
890
- return result;
891
- }
892
- function onlyChild(children) {
893
- if (!isValidElement(children)) {
894
- {
895
- throw Error("React.Children.only expected to receive a single React element child.");
896
- }
897
- }
898
- return children;
899
- }
900
- function createContext2(defaultValue, calculateChangedBits) {
901
- if (calculateChangedBits === void 0) {
902
- calculateChangedBits = null;
903
- } else {
904
- {
905
- if (calculateChangedBits !== null && typeof calculateChangedBits !== "function") {
906
- error("createContext: Expected the optional second argument to be a function. Instead received: %s", calculateChangedBits);
907
- }
908
- }
909
- }
910
- var context = {
911
- $$typeof: REACT_CONTEXT_TYPE,
912
- _calculateChangedBits: calculateChangedBits,
913
- _currentValue: defaultValue,
914
- _currentValue2: defaultValue,
915
- _threadCount: 0,
916
- Provider: null,
917
- Consumer: null
918
- };
919
- context.Provider = {
920
- $$typeof: REACT_PROVIDER_TYPE,
921
- _context: context
922
- };
923
- var hasWarnedAboutUsingNestedContextConsumers = false;
924
- var hasWarnedAboutUsingConsumerProvider = false;
925
- {
926
- var Consumer = {
927
- $$typeof: REACT_CONTEXT_TYPE,
928
- _context: context,
929
- _calculateChangedBits: context._calculateChangedBits
930
- };
931
- Object.defineProperties(Consumer, {
932
- Provider: {
933
- get: function() {
934
- if (!hasWarnedAboutUsingConsumerProvider) {
935
- hasWarnedAboutUsingConsumerProvider = true;
936
- error("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?");
937
- }
938
- return context.Provider;
939
- },
940
- set: function(_Provider) {
941
- context.Provider = _Provider;
942
- }
943
- },
944
- _currentValue: {
945
- get: function() {
946
- return context._currentValue;
947
- },
948
- set: function(_currentValue) {
949
- context._currentValue = _currentValue;
950
- }
951
- },
952
- _currentValue2: {
953
- get: function() {
954
- return context._currentValue2;
955
- },
956
- set: function(_currentValue2) {
957
- context._currentValue2 = _currentValue2;
958
- }
959
- },
960
- _threadCount: {
961
- get: function() {
962
- return context._threadCount;
963
- },
964
- set: function(_threadCount) {
965
- context._threadCount = _threadCount;
966
- }
967
- },
968
- Consumer: {
969
- get: function() {
970
- if (!hasWarnedAboutUsingNestedContextConsumers) {
971
- hasWarnedAboutUsingNestedContextConsumers = true;
972
- error("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?");
973
- }
974
- return context.Consumer;
975
- }
976
- }
977
- });
978
- context.Consumer = Consumer;
979
- }
980
- {
981
- context._currentRenderer = null;
982
- context._currentRenderer2 = null;
983
- }
984
- return context;
985
- }
986
- function lazy(ctor) {
987
- var lazyType = {
988
- $$typeof: REACT_LAZY_TYPE,
989
- _ctor: ctor,
990
- _status: -1,
991
- _result: null
992
- };
993
- {
994
- var defaultProps;
995
- var propTypes;
996
- Object.defineProperties(lazyType, {
997
- defaultProps: {
998
- configurable: true,
999
- get: function() {
1000
- return defaultProps;
1001
- },
1002
- set: function(newDefaultProps) {
1003
- error("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it.");
1004
- defaultProps = newDefaultProps;
1005
- Object.defineProperty(lazyType, "defaultProps", {
1006
- enumerable: true
1007
- });
1008
- }
1009
- },
1010
- propTypes: {
1011
- configurable: true,
1012
- get: function() {
1013
- return propTypes;
1014
- },
1015
- set: function(newPropTypes) {
1016
- error("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it.");
1017
- propTypes = newPropTypes;
1018
- Object.defineProperty(lazyType, "propTypes", {
1019
- enumerable: true
1020
- });
1021
- }
1022
- }
1023
- });
1024
- }
1025
- return lazyType;
1026
- }
1027
- function forwardRef2(render) {
1028
- {
1029
- if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
1030
- error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).");
1031
- } else if (typeof render !== "function") {
1032
- error("forwardRef requires a render function but was given %s.", render === null ? "null" : typeof render);
1033
- } else {
1034
- if (render.length !== 0 && render.length !== 2) {
1035
- error("forwardRef render functions accept exactly two parameters: props and ref. %s", render.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined.");
1036
- }
1037
- }
1038
- if (render != null) {
1039
- if (render.defaultProps != null || render.propTypes != null) {
1040
- error("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
1041
- }
1042
- }
1043
- }
1044
- return {
1045
- $$typeof: REACT_FORWARD_REF_TYPE,
1046
- render: render
1047
- };
1048
- }
1049
- function isValidElementType(type) {
1050
- return typeof type === "string" || typeof type === "function" || type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
1051
- }
1052
- function memo2(type, compare) {
1053
- {
1054
- if (!isValidElementType(type)) {
1055
- error("memo: The first argument must be a component. Instead received: %s", type === null ? "null" : typeof type);
1056
- }
1057
- }
1058
- return {
1059
- $$typeof: REACT_MEMO_TYPE,
1060
- type: type,
1061
- compare: compare === void 0 ? null : compare
1062
- };
1063
- }
1064
- function resolveDispatcher() {
1065
- var dispatcher = ReactCurrentDispatcher.current;
1066
- if (!(dispatcher !== null)) {
1067
- {
1068
- throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.");
1069
- }
1070
- }
1071
- return dispatcher;
1072
- }
1073
- function useContext2(Context2, unstable_observedBits) {
1074
- var dispatcher = resolveDispatcher();
1075
- {
1076
- if (unstable_observedBits !== void 0) {
1077
- error("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s", unstable_observedBits, typeof unstable_observedBits === "number" && Array.isArray(arguments[2]) ? "\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks" : "");
1078
- }
1079
- if (Context2._context !== void 0) {
1080
- var realContext = Context2._context;
1081
- if (realContext.Consumer === Context2) {
1082
- error("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?");
1083
- } else if (realContext.Provider === Context2) {
1084
- error("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
1085
- }
1086
- }
1087
- }
1088
- return dispatcher.useContext(Context2, unstable_observedBits);
1089
- }
1090
- function useState2(initialState) {
1091
- var dispatcher = resolveDispatcher();
1092
- return dispatcher.useState(initialState);
1093
- }
1094
- function useReducer(reducer, initialArg, init) {
1095
- var dispatcher = resolveDispatcher();
1096
- return dispatcher.useReducer(reducer, initialArg, init);
1097
- }
1098
- function useRef(initialValue) {
1099
- var dispatcher = resolveDispatcher();
1100
- return dispatcher.useRef(initialValue);
1101
- }
1102
- function useEffect2(create2, deps) {
1103
- var dispatcher = resolveDispatcher();
1104
- return dispatcher.useEffect(create2, deps);
1105
- }
1106
- function useLayoutEffect(create2, deps) {
1107
- var dispatcher = resolveDispatcher();
1108
- return dispatcher.useLayoutEffect(create2, deps);
1109
- }
1110
- function useCallback(callback, deps) {
1111
- var dispatcher = resolveDispatcher();
1112
- return dispatcher.useCallback(callback, deps);
1113
- }
1114
- function useMemo(create2, deps) {
1115
- var dispatcher = resolveDispatcher();
1116
- return dispatcher.useMemo(create2, deps);
1117
- }
1118
- function useImperativeHandle(ref, create2, deps) {
1119
- var dispatcher = resolveDispatcher();
1120
- return dispatcher.useImperativeHandle(ref, create2, deps);
1121
- }
1122
- function useDebugValue(value, formatterFn) {
1123
- {
1124
- var dispatcher = resolveDispatcher();
1125
- return dispatcher.useDebugValue(value, formatterFn);
1126
- }
1127
- }
1128
- var propTypesMisspellWarningShown;
1129
- {
1130
- propTypesMisspellWarningShown = false;
1131
- }
1132
- function getDeclarationErrorAddendum() {
1133
- if (ReactCurrentOwner.current) {
1134
- var name = getComponentName(ReactCurrentOwner.current.type);
1135
- if (name) {
1136
- return "\n\nCheck the render method of `" + name + "`.";
1137
- }
1138
- }
1139
- return "";
1140
- }
1141
- function getSourceInfoErrorAddendum(source) {
1142
- if (source !== void 0) {
1143
- var fileName = source.fileName.replace(/^.*[\\\/]/, "");
1144
- var lineNumber = source.lineNumber;
1145
- return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
1146
- }
1147
- return "";
1148
- }
1149
- function getSourceInfoErrorAddendumForProps(elementProps) {
1150
- if (elementProps !== null && elementProps !== void 0) {
1151
- return getSourceInfoErrorAddendum(elementProps.__source);
1152
- }
1153
- return "";
1154
- }
1155
- var ownerHasKeyUseWarning = {};
1156
- function getCurrentComponentErrorInfo(parentType) {
1157
- var info = getDeclarationErrorAddendum();
1158
- if (!info) {
1159
- var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
1160
- if (parentName) {
1161
- info = "\n\nCheck the top-level render call using <" + parentName + ">.";
1162
- }
1163
- }
1164
- return info;
1165
- }
1166
- function validateExplicitKey(element, parentType) {
1167
- if (!element._store || element._store.validated || element.key != null) {
1168
- return;
1169
- }
1170
- element._store.validated = true;
1171
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
1172
- if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
1173
- return;
1174
- }
1175
- ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
1176
- var childOwner = "";
1177
- if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
1178
- childOwner = " It was passed a child from " + getComponentName(element._owner.type) + ".";
1179
- }
1180
- setCurrentlyValidatingElement(element);
1181
- {
1182
- error('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.', currentComponentErrorInfo, childOwner);
1183
- }
1184
- setCurrentlyValidatingElement(null);
1185
- }
1186
- function validateChildKeys(node, parentType) {
1187
- if (typeof node !== "object") {
1188
- return;
1189
- }
1190
- if (Array.isArray(node)) {
1191
- for (var i = 0; i < node.length; i++) {
1192
- var child = node[i];
1193
- if (isValidElement(child)) {
1194
- validateExplicitKey(child, parentType);
1195
- }
1196
- }
1197
- } else if (isValidElement(node)) {
1198
- if (node._store) {
1199
- node._store.validated = true;
1200
- }
1201
- } else if (node) {
1202
- var iteratorFn = getIteratorFn(node);
1203
- if (typeof iteratorFn === "function") {
1204
- if (iteratorFn !== node.entries) {
1205
- var iterator = iteratorFn.call(node);
1206
- var step;
1207
- while (!(step = iterator.next()).done) {
1208
- if (isValidElement(step.value)) {
1209
- validateExplicitKey(step.value, parentType);
1210
- }
1211
- }
1212
- }
1213
- }
1214
- }
1215
- }
1216
- function validatePropTypes(element) {
1217
- {
1218
- var type = element.type;
1219
- if (type === null || type === void 0 || typeof type === "string") {
1220
- return;
1221
- }
1222
- var name = getComponentName(type);
1223
- var propTypes;
1224
- if (typeof type === "function") {
1225
- propTypes = type.propTypes;
1226
- } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_MEMO_TYPE)) {
1227
- propTypes = type.propTypes;
1228
- } else {
1229
- return;
1230
- }
1231
- if (propTypes) {
1232
- setCurrentlyValidatingElement(element);
1233
- checkPropTypes(propTypes, element.props, "prop", name, ReactDebugCurrentFrame.getStackAddendum);
1234
- setCurrentlyValidatingElement(null);
1235
- } else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
1236
- propTypesMisspellWarningShown = true;
1237
- error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", name || "Unknown");
1238
- }
1239
- if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
1240
- error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1241
- }
1242
- }
1243
- }
1244
- function validateFragmentProps(fragment) {
1245
- {
1246
- setCurrentlyValidatingElement(fragment);
1247
- var keys = Object.keys(fragment.props);
1248
- for (var i = 0; i < keys.length; i++) {
1249
- var key = keys[i];
1250
- if (key !== "children" && key !== "key") {
1251
- error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
1252
- break;
1253
- }
1254
- }
1255
- if (fragment.ref !== null) {
1256
- error("Invalid attribute `ref` supplied to `React.Fragment`.");
1257
- }
1258
- setCurrentlyValidatingElement(null);
1259
- }
1260
- }
1261
- function createElementWithValidation(type, props, children) {
1262
- var validType = isValidElementType(type);
1263
- if (!validType) {
1264
- var info = "";
1265
- if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
1266
- info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
1267
- }
1268
- var sourceInfo = getSourceInfoErrorAddendumForProps(props);
1269
- if (sourceInfo) {
1270
- info += sourceInfo;
1271
- } else {
1272
- info += getDeclarationErrorAddendum();
1273
- }
1274
- var typeString;
1275
- if (type === null) {
1276
- typeString = "null";
1277
- } else if (Array.isArray(type)) {
1278
- typeString = "array";
1279
- } else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
1280
- typeString = "<" + (getComponentName(type.type) || "Unknown") + " />";
1281
- info = " Did you accidentally export a JSX literal instead of a component?";
1282
- } else {
1283
- typeString = typeof type;
1284
- }
1285
- {
1286
- error("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
1287
- }
1288
- }
1289
- var element = createElement8.apply(this, arguments);
1290
- if (element == null) {
1291
- return element;
1292
- }
1293
- if (validType) {
1294
- for (var i = 2; i < arguments.length; i++) {
1295
- validateChildKeys(arguments[i], type);
1296
- }
1297
- }
1298
- if (type === REACT_FRAGMENT_TYPE) {
1299
- validateFragmentProps(element);
1300
- } else {
1301
- validatePropTypes(element);
1302
- }
1303
- return element;
1304
- }
1305
- var didWarnAboutDeprecatedCreateFactory = false;
1306
- function createFactoryWithValidation(type) {
1307
- var validatedFactory = createElementWithValidation.bind(null, type);
1308
- validatedFactory.type = type;
1309
- {
1310
- if (!didWarnAboutDeprecatedCreateFactory) {
1311
- didWarnAboutDeprecatedCreateFactory = true;
1312
- warn("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.");
1313
- }
1314
- Object.defineProperty(validatedFactory, "type", {
1315
- enumerable: false,
1316
- get: function() {
1317
- warn("Factory.type is deprecated. Access the class directly before passing it to createFactory.");
1318
- Object.defineProperty(this, "type", {
1319
- value: type
1320
- });
1321
- return type;
1322
- }
1323
- });
1324
- }
1325
- return validatedFactory;
1326
- }
1327
- function cloneElementWithValidation(element, props, children) {
1328
- var newElement = cloneElement.apply(this, arguments);
1329
- for (var i = 2; i < arguments.length; i++) {
1330
- validateChildKeys(arguments[i], newElement.type);
1331
- }
1332
- validatePropTypes(newElement);
1333
- return newElement;
1334
- }
1335
- {
1336
- try {
1337
- var frozenObject = Object.freeze({});
1338
- var testMap = new Map([[frozenObject, null]]);
1339
- var testSet = new Set([frozenObject]);
1340
- testMap.set(0, 0);
1341
- testSet.add(0);
1342
- } catch (e) {
1343
- }
1344
- }
1345
- var createElement$1 = createElementWithValidation;
1346
- var cloneElement$1 = cloneElementWithValidation;
1347
- var createFactory = createFactoryWithValidation;
1348
- var Children4 = {
1349
- map: mapChildren,
1350
- forEach: forEachChildren,
1351
- count: countChildren,
1352
- toArray: toArray,
1353
- only: onlyChild
1354
- };
1355
- exports.Children = Children4;
1356
- exports.Component = Component;
1357
- exports.Fragment = REACT_FRAGMENT_TYPE;
1358
- exports.Profiler = REACT_PROFILER_TYPE;
1359
- exports.PureComponent = PureComponent2;
1360
- exports.StrictMode = REACT_STRICT_MODE_TYPE;
1361
- exports.Suspense = REACT_SUSPENSE_TYPE;
1362
- exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
1363
- exports.cloneElement = cloneElement$1;
1364
- exports.createContext = createContext2;
1365
- exports.createElement = createElement$1;
1366
- exports.createFactory = createFactory;
1367
- exports.createRef = createRef;
1368
- exports.forwardRef = forwardRef2;
1369
- exports.isValidElement = isValidElement;
1370
- exports.lazy = lazy;
1371
- exports.memo = memo2;
1372
- exports.useCallback = useCallback;
1373
- exports.useContext = useContext2;
1374
- exports.useDebugValue = useDebugValue;
1375
- exports.useEffect = useEffect2;
1376
- exports.useImperativeHandle = useImperativeHandle;
1377
- exports.useLayoutEffect = useLayoutEffect;
1378
- exports.useMemo = useMemo;
1379
- exports.useReducer = useReducer;
1380
- exports.useRef = useRef;
1381
- exports.useState = useState2;
1382
- exports.version = ReactVersion;
1383
- })();
1384
- }
1385
- }
1386
- });
1387
-
1388
- // node_modules/react/index.js
1389
- var require_react = __commonJS({
1390
- "node_modules/react/index.js": function(exports, module) {
1391
- "use strict";
1392
- if (false) {
1393
- module.exports = null;
1394
- } else {
1395
- module.exports = require_react_development();
1396
- }
1397
- }
1398
- });
1399
-
1400
37
  // node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js
1401
38
  var require_react_is_development = __commonJS({
1402
39
  "node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js": function(exports) {
@@ -1669,6 +306,9 @@ var ReactIntl = (function() {
1669
306
  FormattedList: function() {
1670
307
  return FormattedList;
1671
308
  },
309
+ FormattedListParts: function() {
310
+ return FormattedListParts;
311
+ },
1672
312
  FormattedMessage: function() {
1673
313
  return message_default;
1674
314
  },
@@ -1791,35 +431,17 @@ var ReactIntl = (function() {
1791
431
  }
1792
432
 
1793
433
  // bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/components/createFormattedComponent.js
1794
- var React4 = __toModule(require_react());
434
+ var React4 = __toModule(window.React);
1795
435
 
1796
436
  // bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/components/useIntl.js
1797
- var React3 = __toModule(require_react());
437
+ var React3 = __toModule(window.React);
1798
438
 
1799
439
  // bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/components/injectIntl.js
1800
- var React2 = __toModule(require_react());
440
+ var React2 = __toModule(window.React);
1801
441
  var import_hoist_non_react_statics = __toModule(require_hoist_non_react_statics_cjs());
1802
442
 
1803
443
  // bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/utils.js
1804
- var React = __toModule(require_react());
1805
-
1806
- // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/utils.js
1807
- function invariant(condition, message, Err) {
1808
- if (Err === void 0) {
1809
- Err = Error;
1810
- }
1811
- if (!condition) {
1812
- throw new Err(message);
1813
- }
1814
- }
1815
-
1816
- // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/types/date-time.js
1817
- var RangePatternType;
1818
- (function(RangePatternType2) {
1819
- RangePatternType2["startRange"] = "startRange";
1820
- RangePatternType2["shared"] = "shared";
1821
- RangePatternType2["endRange"] = "endRange";
1822
- })(RangePatternType || (RangePatternType = {}));
444
+ var React = __toModule(window.React);
1823
445
 
1824
446
  // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/262.js
1825
447
  var MINUTES_PER_HOUR = 60;
@@ -1879,6 +501,16 @@ var ReactIntl = (function() {
1879
501
  }
1880
502
  var SIMPLE_UNITS = SANCTIONED_UNITS.map(removeUnitNamespace);
1881
503
 
504
+ // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/utils.js
505
+ function invariant(condition, message, Err) {
506
+ if (Err === void 0) {
507
+ Err = Error;
508
+ }
509
+ if (!condition) {
510
+ throw new Err(message);
511
+ }
512
+ }
513
+
1882
514
  // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/regex.generated.js
1883
515
  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]/;
1884
516
 
@@ -1897,6 +529,14 @@ var ReactIntl = (function() {
1897
529
  return MissingLocaleDataError2;
1898
530
  }(Error);
1899
531
 
532
+ // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/types/date-time.js
533
+ var RangePatternType;
534
+ (function(RangePatternType2) {
535
+ RangePatternType2["startRange"] = "startRange";
536
+ RangePatternType2["shared"] = "shared";
537
+ RangePatternType2["endRange"] = "endRange";
538
+ })(RangePatternType || (RangePatternType = {}));
539
+
1900
540
  // bazel-out/darwin-fastbuild/bin/packages/icu-messageformat-parser/lib/error.js
1901
541
  var ErrorKind;
1902
542
  (function(ErrorKind2) {
@@ -1985,7 +625,7 @@ var ReactIntl = (function() {
1985
625
 
1986
626
  // bazel-out/darwin-fastbuild/bin/packages/icu-skeleton-parser/lib/date-time.js
1987
627
  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;
1988
- function parseDateTimeSkeleton2(skeleton) {
628
+ function parseDateTimeSkeleton(skeleton) {
1989
629
  var result = {};
1990
630
  skeleton.replace(DATE_TIME_REGEX, function(match) {
1991
631
  var len = match.length;
@@ -2756,7 +1396,7 @@ var ReactIntl = (function() {
2756
1396
  type: SKELETON_TYPE.dateTime,
2757
1397
  pattern: skeleton,
2758
1398
  location: styleAndLocation.styleLocation,
2759
- parsedOptions: this.shouldParseSkeletons ? parseDateTimeSkeleton2(skeleton) : {}
1399
+ parsedOptions: this.shouldParseSkeletons ? parseDateTimeSkeleton(skeleton) : {}
2760
1400
  };
2761
1401
  var type = argType === "date" ? TYPE.date : TYPE.time;
2762
1402
  return {
@@ -4032,7 +2672,24 @@ var ReactIntl = (function() {
4032
2672
  function generateToken(i) {
4033
2673
  return now + "_" + i + "_" + now;
4034
2674
  }
4035
- function formatList(_a2, getListFormat, values, options) {
2675
+ function formatList(opts, getListFormat, values, options) {
2676
+ if (options === void 0) {
2677
+ options = {};
2678
+ }
2679
+ var results = formatListToParts(opts, getListFormat, values, options).reduce(function(all, el) {
2680
+ var val = el.value;
2681
+ if (typeof val !== "string") {
2682
+ all.push(val);
2683
+ } else if (typeof all[all.length - 1] === "string") {
2684
+ all[all.length - 1] += val;
2685
+ } else {
2686
+ all.push(val);
2687
+ }
2688
+ return all;
2689
+ }, []);
2690
+ return results.length === 1 ? results[0] : results;
2691
+ }
2692
+ function formatListToParts(_a2, getListFormat, values, options) {
4036
2693
  var locale = _a2.locale, onError = _a2.onError;
4037
2694
  if (options === void 0) {
4038
2695
  options = {};
@@ -4052,21 +2709,9 @@ var ReactIntl = (function() {
4052
2709
  }
4053
2710
  return String(v);
4054
2711
  });
4055
- if (!Object.keys(richValues_1).length) {
4056
- return getListFormat(locale, filteredOptions).format(serializedValues);
4057
- }
4058
- var parts = getListFormat(locale, filteredOptions).formatToParts(serializedValues);
4059
- return parts.reduce(function(all, el) {
4060
- var val = el.value;
4061
- if (richValues_1[val]) {
4062
- all.push(richValues_1[val]);
4063
- } else if (typeof all[all.length - 1] === "string") {
4064
- all[all.length - 1] += val;
4065
- } else {
4066
- all.push(val);
4067
- }
4068
- return all;
4069
- }, []);
2712
+ return getListFormat(locale, filteredOptions).formatToParts(serializedValues).map(function(part) {
2713
+ return part.type === "literal" ? part : __assign(__assign({}, part), {value: richValues_1[part.value] || part.value});
2714
+ });
4070
2715
  } catch (e) {
4071
2716
  onError(new IntlError(IntlErrorCode.FORMAT_ERROR, "Error formatting list.", e));
4072
2717
  }
@@ -4206,7 +2851,7 @@ var ReactIntl = (function() {
4206
2851
  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'));
4207
2852
  }
4208
2853
  verifyConfigMessages(resolvedConfig);
4209
- 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), formatDisplayName: formatDisplayName.bind(null, resolvedConfig, formatters.getDisplayNames)});
2854
+ 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)});
4210
2855
  }
4211
2856
 
4212
2857
  // bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/utils.js
@@ -4301,6 +2946,12 @@ var ReactIntl = (function() {
4301
2946
  return children(intl.formatNumberToParts(value, formatProps));
4302
2947
  };
4303
2948
  FormattedNumberParts.displayName = "FormattedNumberParts";
2949
+ var FormattedListParts = function(props) {
2950
+ var intl = useIntl();
2951
+ var value = props.value, children = props.children, formatProps = __rest(props, ["value", "children"]);
2952
+ return children(intl.formatListToParts(value, formatProps));
2953
+ };
2954
+ FormattedNumberParts.displayName = "FormattedNumberParts";
4304
2955
  function createFormattedDateTimePartsComponent(name) {
4305
2956
  var ComponentParts = function(props) {
4306
2957
  var intl = useIntl();
@@ -4328,7 +2979,7 @@ var ReactIntl = (function() {
4328
2979
  }
4329
2980
 
4330
2981
  // bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/components/provider.js
4331
- var React5 = __toModule(require_react());
2982
+ var React5 = __toModule(window.React);
4332
2983
  function processIntlConfig(config) {
4333
2984
  return {
4334
2985
  locale: config.locale,
@@ -4419,7 +3070,7 @@ var ReactIntl = (function() {
4419
3070
  var provider_default = IntlProvider2;
4420
3071
 
4421
3072
  // bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/components/relative.js
4422
- var React6 = __toModule(require_react());
3073
+ var React6 = __toModule(window.React);
4423
3074
  var MINUTE = 60;
4424
3075
  var HOUR = 60 * 60;
4425
3076
  var DAY = 60 * 60 * 24;
@@ -4538,7 +3189,7 @@ var ReactIntl = (function() {
4538
3189
  var relative_default = FormattedRelativeTime;
4539
3190
 
4540
3191
  // bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/components/plural.js
4541
- var React7 = __toModule(require_react());
3192
+ var React7 = __toModule(window.React);
4542
3193
  var FormattedPlural = function(props) {
4543
3194
  var _a2 = useIntl(), formatPlural2 = _a2.formatPlural, Text = _a2.textComponent;
4544
3195
  var value = props.value, other = props.other, children = props.children;
@@ -4559,7 +3210,7 @@ var ReactIntl = (function() {
4559
3210
  var plural_default = FormattedPlural;
4560
3211
 
4561
3212
  // bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/components/message.js
4562
- var React8 = __toModule(require_react());
3213
+ var React8 = __toModule(window.React);
4563
3214
  function areEqual(prevProps, nextProps) {
4564
3215
  var values = prevProps.values, otherProps = __rest(prevProps, ["values"]);
4565
3216
  var nextValues = nextProps.values, nextOtherProps = __rest(nextProps, ["values"]);
@@ -4590,7 +3241,7 @@ var ReactIntl = (function() {
4590
3241
  var message_default = MemoizedFormattedMessage;
4591
3242
 
4592
3243
  // bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/components/dateTimeRange.js
4593
- var React9 = __toModule(require_react());
3244
+ var React9 = __toModule(window.React);
4594
3245
  var FormattedDateTimeRange = function(props) {
4595
3246
  var intl = useIntl();
4596
3247
  var from = props.from, to = props.to, children = props.children, formatProps = __rest(props, ["from", "to", "children"]);
@@ -4620,11 +3271,6 @@ var ReactIntl = (function() {
4620
3271
  var FormattedTimeParts = createFormattedDateTimePartsComponent("formatTime");
4621
3272
  return lib_exports;
4622
3273
  })();
4623
- /*
4624
- object-assign
4625
- (c) Sindre Sorhus
4626
- @license MIT
4627
- */
4628
3274
  /*! *****************************************************************************
4629
3275
  Copyright (c) Microsoft Corporation.
4630
3276
 
@@ -4647,12 +3293,4 @@ PERFORMANCE OF THIS SOFTWARE.
4647
3293
  * This source code is licensed under the MIT license found in the
4648
3294
  * LICENSE file in the root directory of this source tree.
4649
3295
  */
4650
- /** @license React v16.14.0
4651
- * react.development.js
4652
- *
4653
- * Copyright (c) Facebook, Inc. and its affiliates.
4654
- *
4655
- * This source code is licensed under the MIT license found in the
4656
- * LICENSE file in the root directory of this source tree.
4657
- */
4658
- //# sourceMappingURL=react-intl.iife.js.map
3296
+ //# sourceMappingURL=react-intl.esbuild.iife.js.map