@telsho/react-google-flight-datepicker 1.0.4 → 1.0.5

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.
Files changed (311) hide show
  1. package/dist/index.d.ts.gz +0 -0
  2. package/dist/main.2e27bdd8ff7277467b40.hot-update.js +136 -0
  3. package/dist/main.2e27bdd8ff7277467b40.hot-update.js.gz +0 -0
  4. package/dist/main.2e27bdd8ff7277467b40.hot-update.js.map +1 -0
  5. package/dist/main.2e27bdd8ff7277467b40.hot-update.js.map.gz +0 -0
  6. package/dist/main.2e27bdd8ff7277467b40.hot-update.json +1 -0
  7. package/dist/main.7ecf6367a33877ea7ba6.hot-update.js +185 -0
  8. package/dist/main.7ecf6367a33877ea7ba6.hot-update.js.gz +0 -0
  9. package/dist/main.7ecf6367a33877ea7ba6.hot-update.js.map +1 -0
  10. package/dist/main.7ecf6367a33877ea7ba6.hot-update.js.map.gz +0 -0
  11. package/dist/main.7ecf6367a33877ea7ba6.hot-update.json +1 -0
  12. package/dist/main.js +4256 -0
  13. package/dist/main.js.gz +0 -0
  14. package/dist/main.js.map +1 -0
  15. package/dist/main.js.map.gz +0 -0
  16. package/dist/vendors-node_modules_a.js +1063 -0
  17. package/dist/vendors-node_modules_a.js.gz +0 -0
  18. package/dist/vendors-node_modules_a.js.map +1 -0
  19. package/dist/vendors-node_modules_a.js.map.gz +0 -0
  20. package/dist/vendors-node_modules_h.js +112 -0
  21. package/dist/vendors-node_modules_h.js.gz +0 -0
  22. package/dist/vendors-node_modules_h.js.map +1 -0
  23. package/dist/vendors-node_modules_h.js.map.gz +0 -0
  24. package/dist/vendors-node_modules_r.js +4788 -0
  25. package/dist/vendors-node_modules_r.js.gz +0 -0
  26. package/dist/vendors-node_modules_r.js.map +1 -0
  27. package/dist/vendors-node_modules_r.js.map.gz +0 -0
  28. package/dist/vendors-node_modules_react-d.js +2593 -0
  29. package/dist/vendors-node_modules_react-d.js.gz +0 -0
  30. package/dist/vendors-node_modules_react-d.js.map +1 -0
  31. package/dist/vendors-node_modules_react-d.js.map.gz +0 -0
  32. package/dist/vendors-node_modules_react-dom_cjs_react-dom_development_js-61bb2bf2.js +29933 -0
  33. package/dist/vendors-node_modules_react-dom_cjs_react-dom_development_js-61bb2bf2.js.gz +0 -0
  34. package/dist/vendors-node_modules_react-dom_cjs_react-dom_development_js-61bb2bf2.js.map +1 -0
  35. package/dist/vendors-node_modules_react-dom_cjs_react-dom_development_js-61bb2bf2.js.map.gz +0 -0
  36. package/dist/vendors-node_modules_s.js +2807 -0
  37. package/dist/vendors-node_modules_s.js.gz +0 -0
  38. package/dist/vendors-node_modules_s.js.map +1 -0
  39. package/dist/vendors-node_modules_s.js.map.gz +0 -0
  40. package/package.json +10 -19
  41. package/dist/1014.index.js +0 -2
  42. package/dist/1014.index.js.map +0 -1
  43. package/dist/1024.index.js +0 -2
  44. package/dist/1024.index.js.map +0 -1
  45. package/dist/1037.index.js +0 -2
  46. package/dist/1037.index.js.map +0 -1
  47. package/dist/1048.index.js +0 -2
  48. package/dist/1048.index.js.map +0 -1
  49. package/dist/1127.index.js +0 -2
  50. package/dist/1127.index.js.map +0 -1
  51. package/dist/1131.index.js +0 -2
  52. package/dist/1131.index.js.map +0 -1
  53. package/dist/1162.index.js +0 -2
  54. package/dist/1162.index.js.map +0 -1
  55. package/dist/1172.index.js +0 -2
  56. package/dist/1172.index.js.map +0 -1
  57. package/dist/120.index.js +0 -2
  58. package/dist/120.index.js.map +0 -1
  59. package/dist/1216.index.js +0 -2
  60. package/dist/1216.index.js.map +0 -1
  61. package/dist/1270.index.js +0 -2
  62. package/dist/1270.index.js.map +0 -1
  63. package/dist/1349.index.js +0 -2
  64. package/dist/1349.index.js.map +0 -1
  65. package/dist/1409.index.js +0 -2
  66. package/dist/1409.index.js.map +0 -1
  67. package/dist/1432.index.js +0 -2
  68. package/dist/1432.index.js.map +0 -1
  69. package/dist/164.index.js +0 -2
  70. package/dist/164.index.js.map +0 -1
  71. package/dist/1709.index.js +0 -2
  72. package/dist/1709.index.js.map +0 -1
  73. package/dist/1733.index.js +0 -2
  74. package/dist/1733.index.js.map +0 -1
  75. package/dist/1999.index.js +0 -2
  76. package/dist/1999.index.js.map +0 -1
  77. package/dist/2149.index.js +0 -2
  78. package/dist/2149.index.js.map +0 -1
  79. package/dist/2163.index.js +0 -2
  80. package/dist/2163.index.js.map +0 -1
  81. package/dist/2219.index.js +0 -2
  82. package/dist/2219.index.js.map +0 -1
  83. package/dist/2285.index.js +0 -2
  84. package/dist/2285.index.js.map +0 -1
  85. package/dist/229.index.js +0 -2
  86. package/dist/229.index.js.map +0 -1
  87. package/dist/2345.index.js +0 -2
  88. package/dist/2345.index.js.map +0 -1
  89. package/dist/2388.index.js +0 -2
  90. package/dist/2388.index.js.map +0 -1
  91. package/dist/2541.index.js +0 -2
  92. package/dist/2541.index.js.map +0 -1
  93. package/dist/2734.index.js +0 -2
  94. package/dist/2734.index.js.map +0 -1
  95. package/dist/2837.index.js +0 -2
  96. package/dist/2837.index.js.map +0 -1
  97. package/dist/2880.index.js +0 -2
  98. package/dist/2880.index.js.map +0 -1
  99. package/dist/3117.index.js +0 -2
  100. package/dist/3117.index.js.map +0 -1
  101. package/dist/3119.index.js +0 -2
  102. package/dist/3119.index.js.map +0 -1
  103. package/dist/3183.index.js +0 -2
  104. package/dist/3183.index.js.map +0 -1
  105. package/dist/3212.index.js +0 -2
  106. package/dist/3212.index.js.map +0 -1
  107. package/dist/3237.index.js +0 -2
  108. package/dist/3237.index.js.map +0 -1
  109. package/dist/3274.index.js +0 -2
  110. package/dist/3274.index.js.map +0 -1
  111. package/dist/3306.index.js +0 -2
  112. package/dist/3306.index.js.map +0 -1
  113. package/dist/3430.index.js +0 -2
  114. package/dist/3430.index.js.map +0 -1
  115. package/dist/3438.index.js +0 -2
  116. package/dist/3438.index.js.map +0 -1
  117. package/dist/3613.index.js +0 -2
  118. package/dist/3613.index.js.map +0 -1
  119. package/dist/3641.index.js +0 -2
  120. package/dist/3641.index.js.map +0 -1
  121. package/dist/3838.index.js +0 -2
  122. package/dist/3838.index.js.map +0 -1
  123. package/dist/3920.index.js +0 -2
  124. package/dist/3920.index.js.map +0 -1
  125. package/dist/3947.index.js +0 -2
  126. package/dist/3947.index.js.map +0 -1
  127. package/dist/4010.index.js +0 -2
  128. package/dist/4010.index.js.map +0 -1
  129. package/dist/406.index.js +0 -2
  130. package/dist/406.index.js.map +0 -1
  131. package/dist/4063.index.js +0 -2
  132. package/dist/4063.index.js.map +0 -1
  133. package/dist/424.index.js +0 -2
  134. package/dist/424.index.js.map +0 -1
  135. package/dist/4254.index.js +0 -2
  136. package/dist/4254.index.js.map +0 -1
  137. package/dist/4351.index.js +0 -2
  138. package/dist/4351.index.js.map +0 -1
  139. package/dist/454.index.js +0 -2
  140. package/dist/454.index.js.map +0 -1
  141. package/dist/4565.index.js +0 -2
  142. package/dist/4565.index.js.map +0 -1
  143. package/dist/4610.index.js +0 -2
  144. package/dist/4610.index.js.map +0 -1
  145. package/dist/4676.index.js +0 -2
  146. package/dist/4676.index.js.map +0 -1
  147. package/dist/4769.index.js +0 -2
  148. package/dist/4769.index.js.map +0 -1
  149. package/dist/4780.index.js +0 -2
  150. package/dist/4780.index.js.map +0 -1
  151. package/dist/4785.index.js +0 -2
  152. package/dist/4785.index.js.map +0 -1
  153. package/dist/4868.index.js +0 -2
  154. package/dist/4868.index.js.map +0 -1
  155. package/dist/4892.index.js +0 -2
  156. package/dist/4892.index.js.map +0 -1
  157. package/dist/497.index.js +0 -2
  158. package/dist/497.index.js.map +0 -1
  159. package/dist/5081.index.js +0 -2
  160. package/dist/5081.index.js.map +0 -1
  161. package/dist/5204.index.js +0 -2
  162. package/dist/5204.index.js.map +0 -1
  163. package/dist/5206.index.js +0 -2
  164. package/dist/5206.index.js.map +0 -1
  165. package/dist/5328.index.js +0 -2
  166. package/dist/5328.index.js.map +0 -1
  167. package/dist/5329.index.js +0 -2
  168. package/dist/5329.index.js.map +0 -1
  169. package/dist/5334.index.js +0 -2
  170. package/dist/5334.index.js.map +0 -1
  171. package/dist/5363.index.js +0 -2
  172. package/dist/5363.index.js.map +0 -1
  173. package/dist/5606.index.js +0 -2
  174. package/dist/5606.index.js.map +0 -1
  175. package/dist/5705.index.js +0 -2
  176. package/dist/5705.index.js.map +0 -1
  177. package/dist/5780.index.js +0 -2
  178. package/dist/5780.index.js.map +0 -1
  179. package/dist/6034.index.js +0 -2
  180. package/dist/6034.index.js.map +0 -1
  181. package/dist/6060.index.js +0 -2
  182. package/dist/6060.index.js.map +0 -1
  183. package/dist/6113.index.js +0 -2
  184. package/dist/6113.index.js.map +0 -1
  185. package/dist/6157.index.js +0 -2
  186. package/dist/6157.index.js.map +0 -1
  187. package/dist/6167.index.js +0 -2
  188. package/dist/6167.index.js.map +0 -1
  189. package/dist/6217.index.js +0 -2
  190. package/dist/6217.index.js.map +0 -1
  191. package/dist/624.index.js +0 -2
  192. package/dist/624.index.js.map +0 -1
  193. package/dist/6293.index.js +0 -2
  194. package/dist/6293.index.js.map +0 -1
  195. package/dist/6408.index.js +0 -2
  196. package/dist/6408.index.js.map +0 -1
  197. package/dist/6446.index.js +0 -2
  198. package/dist/6446.index.js.map +0 -1
  199. package/dist/645.index.js +0 -2
  200. package/dist/645.index.js.map +0 -1
  201. package/dist/6505.index.js +0 -2
  202. package/dist/6505.index.js.map +0 -1
  203. package/dist/6539.index.js +0 -2
  204. package/dist/6539.index.js.map +0 -1
  205. package/dist/6706.index.js +0 -2
  206. package/dist/6706.index.js.map +0 -1
  207. package/dist/6715.index.js +0 -2
  208. package/dist/6715.index.js.map +0 -1
  209. package/dist/6797.index.js +0 -2
  210. package/dist/6797.index.js.map +0 -1
  211. package/dist/6824.index.js +0 -2
  212. package/dist/6824.index.js.map +0 -1
  213. package/dist/6879.index.js +0 -2
  214. package/dist/6879.index.js.map +0 -1
  215. package/dist/6905.index.js +0 -2
  216. package/dist/6905.index.js.map +0 -1
  217. package/dist/6967.index.js +0 -2
  218. package/dist/6967.index.js.map +0 -1
  219. package/dist/7042.index.js +0 -2
  220. package/dist/7042.index.js.map +0 -1
  221. package/dist/7153.index.js +0 -2
  222. package/dist/7153.index.js.map +0 -1
  223. package/dist/7206.index.js +0 -2
  224. package/dist/7206.index.js.map +0 -1
  225. package/dist/7221.index.js +0 -2
  226. package/dist/7221.index.js.map +0 -1
  227. package/dist/7226.index.js +0 -2
  228. package/dist/7226.index.js.map +0 -1
  229. package/dist/7234.index.js +0 -2
  230. package/dist/7234.index.js.map +0 -1
  231. package/dist/744.index.js +0 -2
  232. package/dist/744.index.js.map +0 -1
  233. package/dist/7447.index.js +0 -2
  234. package/dist/7447.index.js.map +0 -1
  235. package/dist/7512.index.js +0 -2
  236. package/dist/7512.index.js.map +0 -1
  237. package/dist/754.index.js +0 -2
  238. package/dist/754.index.js.map +0 -1
  239. package/dist/7607.index.js +0 -2
  240. package/dist/7607.index.js.map +0 -1
  241. package/dist/7609.index.js +0 -2
  242. package/dist/7609.index.js.map +0 -1
  243. package/dist/7876.index.js +0 -2
  244. package/dist/7876.index.js.map +0 -1
  245. package/dist/7932.index.js +0 -2
  246. package/dist/7932.index.js.map +0 -1
  247. package/dist/7981.index.js +0 -2
  248. package/dist/7981.index.js.map +0 -1
  249. package/dist/8022.index.js +0 -2
  250. package/dist/8022.index.js.map +0 -1
  251. package/dist/8068.index.js +0 -2
  252. package/dist/8068.index.js.map +0 -1
  253. package/dist/8146.index.js +0 -2
  254. package/dist/8146.index.js.map +0 -1
  255. package/dist/8267.index.js +0 -2
  256. package/dist/8267.index.js.map +0 -1
  257. package/dist/833.index.js +0 -2
  258. package/dist/833.index.js.map +0 -1
  259. package/dist/8629.index.js +0 -2
  260. package/dist/8629.index.js.map +0 -1
  261. package/dist/8641.index.js +0 -2
  262. package/dist/8641.index.js.map +0 -1
  263. package/dist/8667.index.js +0 -2
  264. package/dist/8667.index.js.map +0 -1
  265. package/dist/8699.index.js +0 -2
  266. package/dist/8699.index.js.map +0 -1
  267. package/dist/8788.index.js +0 -2
  268. package/dist/8788.index.js.map +0 -1
  269. package/dist/8807.index.js +0 -2
  270. package/dist/8807.index.js.map +0 -1
  271. package/dist/8911.index.js +0 -2
  272. package/dist/8911.index.js.map +0 -1
  273. package/dist/8937.index.js +0 -2
  274. package/dist/8937.index.js.map +0 -1
  275. package/dist/8945.index.js +0 -2
  276. package/dist/8945.index.js.map +0 -1
  277. package/dist/8956.index.js +0 -2
  278. package/dist/8956.index.js.map +0 -1
  279. package/dist/8971.index.js +0 -2
  280. package/dist/8971.index.js.map +0 -1
  281. package/dist/9034.index.js +0 -2
  282. package/dist/9034.index.js.map +0 -1
  283. package/dist/905.index.js +0 -2
  284. package/dist/905.index.js.map +0 -1
  285. package/dist/9056.index.js +0 -2
  286. package/dist/9056.index.js.map +0 -1
  287. package/dist/9105.index.js +0 -2
  288. package/dist/9105.index.js.map +0 -1
  289. package/dist/9268.index.js +0 -2
  290. package/dist/9268.index.js.map +0 -1
  291. package/dist/9292.index.js +0 -2
  292. package/dist/9292.index.js.map +0 -1
  293. package/dist/9378.index.js +0 -2
  294. package/dist/9378.index.js.map +0 -1
  295. package/dist/9550.index.js +0 -2
  296. package/dist/9550.index.js.map +0 -1
  297. package/dist/9620.index.js +0 -2
  298. package/dist/9620.index.js.map +0 -1
  299. package/dist/9625.index.js +0 -2
  300. package/dist/9625.index.js.map +0 -1
  301. package/dist/9745.index.js +0 -2
  302. package/dist/9745.index.js.map +0 -1
  303. package/dist/9787.index.js +0 -2
  304. package/dist/9787.index.js.map +0 -1
  305. package/dist/9862.index.js +0 -2
  306. package/dist/9862.index.js.map +0 -1
  307. package/dist/index.js +0 -3
  308. package/dist/index.js.LICENSE.txt +0 -17
  309. package/dist/index.js.map +0 -1
  310. package/dist/styles.css +0 -3
  311. package/dist/styles.css.map +0 -1
@@ -0,0 +1,4788 @@
1
+ "use strict";
2
+ (self["webpackChunk_telsho_react_google_flight_datepicker"] = self["webpackChunk_telsho_react_google_flight_datepicker"] || []).push([["vendors-node_modules_r"],{
3
+
4
+ /***/ "./node_modules/react/cjs/react-jsx-runtime.development.js":
5
+ /*!*****************************************************************!*\
6
+ !*** ./node_modules/react/cjs/react-jsx-runtime.development.js ***!
7
+ \*****************************************************************/
8
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
9
+
10
+ /**
11
+ * @license React
12
+ * react-jsx-runtime.development.js
13
+ *
14
+ * Copyright (c) Facebook, Inc. and its affiliates.
15
+ *
16
+ * This source code is licensed under the MIT license found in the
17
+ * LICENSE file in the root directory of this source tree.
18
+ */
19
+
20
+
21
+
22
+ if (true) {
23
+ (function() {
24
+ 'use strict';
25
+
26
+ var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
27
+
28
+ // ATTENTION
29
+ // When adding new symbols to this file,
30
+ // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
31
+ // The Symbol used to tag the ReactElement-like types.
32
+ var REACT_ELEMENT_TYPE = Symbol.for('react.element');
33
+ var REACT_PORTAL_TYPE = Symbol.for('react.portal');
34
+ var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
35
+ var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
36
+ var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
37
+ var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
38
+ var REACT_CONTEXT_TYPE = Symbol.for('react.context');
39
+ var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
40
+ var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
41
+ var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
42
+ var REACT_MEMO_TYPE = Symbol.for('react.memo');
43
+ var REACT_LAZY_TYPE = Symbol.for('react.lazy');
44
+ var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
45
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
46
+ var FAUX_ITERATOR_SYMBOL = '@@iterator';
47
+ function getIteratorFn(maybeIterable) {
48
+ if (maybeIterable === null || typeof maybeIterable !== 'object') {
49
+ return null;
50
+ }
51
+
52
+ var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
53
+
54
+ if (typeof maybeIterator === 'function') {
55
+ return maybeIterator;
56
+ }
57
+
58
+ return null;
59
+ }
60
+
61
+ var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
62
+
63
+ function error(format) {
64
+ {
65
+ {
66
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
67
+ args[_key2 - 1] = arguments[_key2];
68
+ }
69
+
70
+ printWarning('error', format, args);
71
+ }
72
+ }
73
+ }
74
+
75
+ function printWarning(level, format, args) {
76
+ // When changing this logic, you might want to also
77
+ // update consoleWithStackDev.www.js as well.
78
+ {
79
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
80
+ var stack = ReactDebugCurrentFrame.getStackAddendum();
81
+
82
+ if (stack !== '') {
83
+ format += '%s';
84
+ args = args.concat([stack]);
85
+ } // eslint-disable-next-line react-internal/safe-string-coercion
86
+
87
+
88
+ var argsWithFormat = args.map(function (item) {
89
+ return String(item);
90
+ }); // Careful: RN currently depends on this prefix
91
+
92
+ argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
93
+ // breaks IE9: https://github.com/facebook/react/issues/13610
94
+ // eslint-disable-next-line react-internal/no-production-logging
95
+
96
+ Function.prototype.apply.call(console[level], console, argsWithFormat);
97
+ }
98
+ }
99
+
100
+ // -----------------------------------------------------------------------------
101
+
102
+ var enableScopeAPI = false; // Experimental Create Event Handle API.
103
+ var enableCacheElement = false;
104
+ var enableTransitionTracing = false; // No known bugs, but needs performance testing
105
+
106
+ var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
107
+ // stuff. Intended to enable React core members to more easily debug scheduling
108
+ // issues in DEV builds.
109
+
110
+ var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
111
+
112
+ var REACT_MODULE_REFERENCE;
113
+
114
+ {
115
+ REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
116
+ }
117
+
118
+ function isValidElementType(type) {
119
+ if (typeof type === 'string' || typeof type === 'function') {
120
+ return true;
121
+ } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
122
+
123
+
124
+ if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {
125
+ return true;
126
+ }
127
+
128
+ if (typeof type === 'object' && type !== null) {
129
+ if (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 || // This needs to include all possible module reference object
130
+ // types supported by any Flight configuration anywhere since
131
+ // we don't know which Flight build this will end up being used
132
+ // with.
133
+ type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
134
+ return true;
135
+ }
136
+ }
137
+
138
+ return false;
139
+ }
140
+
141
+ function getWrappedName(outerType, innerType, wrapperName) {
142
+ var displayName = outerType.displayName;
143
+
144
+ if (displayName) {
145
+ return displayName;
146
+ }
147
+
148
+ var functionName = innerType.displayName || innerType.name || '';
149
+ return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
150
+ } // Keep in sync with react-reconciler/getComponentNameFromFiber
151
+
152
+
153
+ function getContextName(type) {
154
+ return type.displayName || 'Context';
155
+ } // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
156
+
157
+
158
+ function getComponentNameFromType(type) {
159
+ if (type == null) {
160
+ // Host root, text node or just invalid type.
161
+ return null;
162
+ }
163
+
164
+ {
165
+ if (typeof type.tag === 'number') {
166
+ error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
167
+ }
168
+ }
169
+
170
+ if (typeof type === 'function') {
171
+ return type.displayName || type.name || null;
172
+ }
173
+
174
+ if (typeof type === 'string') {
175
+ return type;
176
+ }
177
+
178
+ switch (type) {
179
+ case REACT_FRAGMENT_TYPE:
180
+ return 'Fragment';
181
+
182
+ case REACT_PORTAL_TYPE:
183
+ return 'Portal';
184
+
185
+ case REACT_PROFILER_TYPE:
186
+ return 'Profiler';
187
+
188
+ case REACT_STRICT_MODE_TYPE:
189
+ return 'StrictMode';
190
+
191
+ case REACT_SUSPENSE_TYPE:
192
+ return 'Suspense';
193
+
194
+ case REACT_SUSPENSE_LIST_TYPE:
195
+ return 'SuspenseList';
196
+
197
+ }
198
+
199
+ if (typeof type === 'object') {
200
+ switch (type.$$typeof) {
201
+ case REACT_CONTEXT_TYPE:
202
+ var context = type;
203
+ return getContextName(context) + '.Consumer';
204
+
205
+ case REACT_PROVIDER_TYPE:
206
+ var provider = type;
207
+ return getContextName(provider._context) + '.Provider';
208
+
209
+ case REACT_FORWARD_REF_TYPE:
210
+ return getWrappedName(type, type.render, 'ForwardRef');
211
+
212
+ case REACT_MEMO_TYPE:
213
+ var outerName = type.displayName || null;
214
+
215
+ if (outerName !== null) {
216
+ return outerName;
217
+ }
218
+
219
+ return getComponentNameFromType(type.type) || 'Memo';
220
+
221
+ case REACT_LAZY_TYPE:
222
+ {
223
+ var lazyComponent = type;
224
+ var payload = lazyComponent._payload;
225
+ var init = lazyComponent._init;
226
+
227
+ try {
228
+ return getComponentNameFromType(init(payload));
229
+ } catch (x) {
230
+ return null;
231
+ }
232
+ }
233
+
234
+ // eslint-disable-next-line no-fallthrough
235
+ }
236
+ }
237
+
238
+ return null;
239
+ }
240
+
241
+ var assign = Object.assign;
242
+
243
+ // Helpers to patch console.logs to avoid logging during side-effect free
244
+ // replaying on render function. This currently only patches the object
245
+ // lazily which won't cover if the log function was extracted eagerly.
246
+ // We could also eagerly patch the method.
247
+ var disabledDepth = 0;
248
+ var prevLog;
249
+ var prevInfo;
250
+ var prevWarn;
251
+ var prevError;
252
+ var prevGroup;
253
+ var prevGroupCollapsed;
254
+ var prevGroupEnd;
255
+
256
+ function disabledLog() {}
257
+
258
+ disabledLog.__reactDisabledLog = true;
259
+ function disableLogs() {
260
+ {
261
+ if (disabledDepth === 0) {
262
+ /* eslint-disable react-internal/no-production-logging */
263
+ prevLog = console.log;
264
+ prevInfo = console.info;
265
+ prevWarn = console.warn;
266
+ prevError = console.error;
267
+ prevGroup = console.group;
268
+ prevGroupCollapsed = console.groupCollapsed;
269
+ prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099
270
+
271
+ var props = {
272
+ configurable: true,
273
+ enumerable: true,
274
+ value: disabledLog,
275
+ writable: true
276
+ }; // $FlowFixMe Flow thinks console is immutable.
277
+
278
+ Object.defineProperties(console, {
279
+ info: props,
280
+ log: props,
281
+ warn: props,
282
+ error: props,
283
+ group: props,
284
+ groupCollapsed: props,
285
+ groupEnd: props
286
+ });
287
+ /* eslint-enable react-internal/no-production-logging */
288
+ }
289
+
290
+ disabledDepth++;
291
+ }
292
+ }
293
+ function reenableLogs() {
294
+ {
295
+ disabledDepth--;
296
+
297
+ if (disabledDepth === 0) {
298
+ /* eslint-disable react-internal/no-production-logging */
299
+ var props = {
300
+ configurable: true,
301
+ enumerable: true,
302
+ writable: true
303
+ }; // $FlowFixMe Flow thinks console is immutable.
304
+
305
+ Object.defineProperties(console, {
306
+ log: assign({}, props, {
307
+ value: prevLog
308
+ }),
309
+ info: assign({}, props, {
310
+ value: prevInfo
311
+ }),
312
+ warn: assign({}, props, {
313
+ value: prevWarn
314
+ }),
315
+ error: assign({}, props, {
316
+ value: prevError
317
+ }),
318
+ group: assign({}, props, {
319
+ value: prevGroup
320
+ }),
321
+ groupCollapsed: assign({}, props, {
322
+ value: prevGroupCollapsed
323
+ }),
324
+ groupEnd: assign({}, props, {
325
+ value: prevGroupEnd
326
+ })
327
+ });
328
+ /* eslint-enable react-internal/no-production-logging */
329
+ }
330
+
331
+ if (disabledDepth < 0) {
332
+ error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
333
+ }
334
+ }
335
+ }
336
+
337
+ var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
338
+ var prefix;
339
+ function describeBuiltInComponentFrame(name, source, ownerFn) {
340
+ {
341
+ if (prefix === undefined) {
342
+ // Extract the VM specific prefix used by each line.
343
+ try {
344
+ throw Error();
345
+ } catch (x) {
346
+ var match = x.stack.trim().match(/\n( *(at )?)/);
347
+ prefix = match && match[1] || '';
348
+ }
349
+ } // We use the prefix to ensure our stacks line up with native stack frames.
350
+
351
+
352
+ return '\n' + prefix + name;
353
+ }
354
+ }
355
+ var reentry = false;
356
+ var componentFrameCache;
357
+
358
+ {
359
+ var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
360
+ componentFrameCache = new PossiblyWeakMap();
361
+ }
362
+
363
+ function describeNativeComponentFrame(fn, construct) {
364
+ // If something asked for a stack inside a fake render, it should get ignored.
365
+ if ( !fn || reentry) {
366
+ return '';
367
+ }
368
+
369
+ {
370
+ var frame = componentFrameCache.get(fn);
371
+
372
+ if (frame !== undefined) {
373
+ return frame;
374
+ }
375
+ }
376
+
377
+ var control;
378
+ reentry = true;
379
+ var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.
380
+
381
+ Error.prepareStackTrace = undefined;
382
+ var previousDispatcher;
383
+
384
+ {
385
+ previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function
386
+ // for warnings.
387
+
388
+ ReactCurrentDispatcher.current = null;
389
+ disableLogs();
390
+ }
391
+
392
+ try {
393
+ // This should throw.
394
+ if (construct) {
395
+ // Something should be setting the props in the constructor.
396
+ var Fake = function () {
397
+ throw Error();
398
+ }; // $FlowFixMe
399
+
400
+
401
+ Object.defineProperty(Fake.prototype, 'props', {
402
+ set: function () {
403
+ // We use a throwing setter instead of frozen or non-writable props
404
+ // because that won't throw in a non-strict mode function.
405
+ throw Error();
406
+ }
407
+ });
408
+
409
+ if (typeof Reflect === 'object' && Reflect.construct) {
410
+ // We construct a different control for this case to include any extra
411
+ // frames added by the construct call.
412
+ try {
413
+ Reflect.construct(Fake, []);
414
+ } catch (x) {
415
+ control = x;
416
+ }
417
+
418
+ Reflect.construct(fn, [], Fake);
419
+ } else {
420
+ try {
421
+ Fake.call();
422
+ } catch (x) {
423
+ control = x;
424
+ }
425
+
426
+ fn.call(Fake.prototype);
427
+ }
428
+ } else {
429
+ try {
430
+ throw Error();
431
+ } catch (x) {
432
+ control = x;
433
+ }
434
+
435
+ fn();
436
+ }
437
+ } catch (sample) {
438
+ // This is inlined manually because closure doesn't do it for us.
439
+ if (sample && control && typeof sample.stack === 'string') {
440
+ // This extracts the first frame from the sample that isn't also in the control.
441
+ // Skipping one frame that we assume is the frame that calls the two.
442
+ var sampleLines = sample.stack.split('\n');
443
+ var controlLines = control.stack.split('\n');
444
+ var s = sampleLines.length - 1;
445
+ var c = controlLines.length - 1;
446
+
447
+ while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
448
+ // We expect at least one stack frame to be shared.
449
+ // Typically this will be the root most one. However, stack frames may be
450
+ // cut off due to maximum stack limits. In this case, one maybe cut off
451
+ // earlier than the other. We assume that the sample is longer or the same
452
+ // and there for cut off earlier. So we should find the root most frame in
453
+ // the sample somewhere in the control.
454
+ c--;
455
+ }
456
+
457
+ for (; s >= 1 && c >= 0; s--, c--) {
458
+ // Next we find the first one that isn't the same which should be the
459
+ // frame that called our sample function and the control.
460
+ if (sampleLines[s] !== controlLines[c]) {
461
+ // In V8, the first line is describing the message but other VMs don't.
462
+ // If we're about to return the first line, and the control is also on the same
463
+ // line, that's a pretty good indicator that our sample threw at same line as
464
+ // the control. I.e. before we entered the sample frame. So we ignore this result.
465
+ // This can happen if you passed a class to function component, or non-function.
466
+ if (s !== 1 || c !== 1) {
467
+ do {
468
+ s--;
469
+ c--; // We may still have similar intermediate frames from the construct call.
470
+ // The next one that isn't the same should be our match though.
471
+
472
+ if (c < 0 || sampleLines[s] !== controlLines[c]) {
473
+ // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
474
+ var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "<anonymous>"
475
+ // but we have a user-provided "displayName"
476
+ // splice it in to make the stack more readable.
477
+
478
+
479
+ if (fn.displayName && _frame.includes('<anonymous>')) {
480
+ _frame = _frame.replace('<anonymous>', fn.displayName);
481
+ }
482
+
483
+ {
484
+ if (typeof fn === 'function') {
485
+ componentFrameCache.set(fn, _frame);
486
+ }
487
+ } // Return the line we found.
488
+
489
+
490
+ return _frame;
491
+ }
492
+ } while (s >= 1 && c >= 0);
493
+ }
494
+
495
+ break;
496
+ }
497
+ }
498
+ }
499
+ } finally {
500
+ reentry = false;
501
+
502
+ {
503
+ ReactCurrentDispatcher.current = previousDispatcher;
504
+ reenableLogs();
505
+ }
506
+
507
+ Error.prepareStackTrace = previousPrepareStackTrace;
508
+ } // Fallback to just using the name if we couldn't make it throw.
509
+
510
+
511
+ var name = fn ? fn.displayName || fn.name : '';
512
+ var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
513
+
514
+ {
515
+ if (typeof fn === 'function') {
516
+ componentFrameCache.set(fn, syntheticFrame);
517
+ }
518
+ }
519
+
520
+ return syntheticFrame;
521
+ }
522
+ function describeFunctionComponentFrame(fn, source, ownerFn) {
523
+ {
524
+ return describeNativeComponentFrame(fn, false);
525
+ }
526
+ }
527
+
528
+ function shouldConstruct(Component) {
529
+ var prototype = Component.prototype;
530
+ return !!(prototype && prototype.isReactComponent);
531
+ }
532
+
533
+ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
534
+
535
+ if (type == null) {
536
+ return '';
537
+ }
538
+
539
+ if (typeof type === 'function') {
540
+ {
541
+ return describeNativeComponentFrame(type, shouldConstruct(type));
542
+ }
543
+ }
544
+
545
+ if (typeof type === 'string') {
546
+ return describeBuiltInComponentFrame(type);
547
+ }
548
+
549
+ switch (type) {
550
+ case REACT_SUSPENSE_TYPE:
551
+ return describeBuiltInComponentFrame('Suspense');
552
+
553
+ case REACT_SUSPENSE_LIST_TYPE:
554
+ return describeBuiltInComponentFrame('SuspenseList');
555
+ }
556
+
557
+ if (typeof type === 'object') {
558
+ switch (type.$$typeof) {
559
+ case REACT_FORWARD_REF_TYPE:
560
+ return describeFunctionComponentFrame(type.render);
561
+
562
+ case REACT_MEMO_TYPE:
563
+ // Memo may contain any component type so we recursively resolve it.
564
+ return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
565
+
566
+ case REACT_LAZY_TYPE:
567
+ {
568
+ var lazyComponent = type;
569
+ var payload = lazyComponent._payload;
570
+ var init = lazyComponent._init;
571
+
572
+ try {
573
+ // Lazy may contain any component type so we recursively resolve it.
574
+ return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
575
+ } catch (x) {}
576
+ }
577
+ }
578
+ }
579
+
580
+ return '';
581
+ }
582
+
583
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
584
+
585
+ var loggedTypeFailures = {};
586
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
587
+
588
+ function setCurrentlyValidatingElement(element) {
589
+ {
590
+ if (element) {
591
+ var owner = element._owner;
592
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
593
+ ReactDebugCurrentFrame.setExtraStackFrame(stack);
594
+ } else {
595
+ ReactDebugCurrentFrame.setExtraStackFrame(null);
596
+ }
597
+ }
598
+ }
599
+
600
+ function checkPropTypes(typeSpecs, values, location, componentName, element) {
601
+ {
602
+ // $FlowFixMe This is okay but Flow doesn't know it.
603
+ var has = Function.call.bind(hasOwnProperty);
604
+
605
+ for (var typeSpecName in typeSpecs) {
606
+ if (has(typeSpecs, typeSpecName)) {
607
+ var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
608
+ // fail the render phase where it didn't fail before. So we log it.
609
+ // After these have been cleaned up, we'll let them throw.
610
+
611
+ try {
612
+ // This is intentionally an invariant that gets caught. It's the same
613
+ // behavior as without this statement except with a better message.
614
+ if (typeof typeSpecs[typeSpecName] !== 'function') {
615
+ // eslint-disable-next-line react-internal/prod-error-codes
616
+ 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] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
617
+ err.name = 'Invariant Violation';
618
+ throw err;
619
+ }
620
+
621
+ error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
622
+ } catch (ex) {
623
+ error$1 = ex;
624
+ }
625
+
626
+ if (error$1 && !(error$1 instanceof Error)) {
627
+ setCurrentlyValidatingElement(element);
628
+
629
+ error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);
630
+
631
+ setCurrentlyValidatingElement(null);
632
+ }
633
+
634
+ if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
635
+ // Only monitor this failure once because there tends to be a lot of the
636
+ // same error.
637
+ loggedTypeFailures[error$1.message] = true;
638
+ setCurrentlyValidatingElement(element);
639
+
640
+ error('Failed %s type: %s', location, error$1.message);
641
+
642
+ setCurrentlyValidatingElement(null);
643
+ }
644
+ }
645
+ }
646
+ }
647
+ }
648
+
649
+ var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
650
+
651
+ function isArray(a) {
652
+ return isArrayImpl(a);
653
+ }
654
+
655
+ /*
656
+ * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol
657
+ * and Temporal.* types. See https://github.com/facebook/react/pull/22064.
658
+ *
659
+ * The functions in this module will throw an easier-to-understand,
660
+ * easier-to-debug exception with a clear errors message message explaining the
661
+ * problem. (Instead of a confusing exception thrown inside the implementation
662
+ * of the `value` object).
663
+ */
664
+ // $FlowFixMe only called in DEV, so void return is not possible.
665
+ function typeName(value) {
666
+ {
667
+ // toStringTag is needed for namespaced types like Temporal.Instant
668
+ var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
669
+ var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
670
+ return type;
671
+ }
672
+ } // $FlowFixMe only called in DEV, so void return is not possible.
673
+
674
+
675
+ function willCoercionThrow(value) {
676
+ {
677
+ try {
678
+ testStringCoercion(value);
679
+ return false;
680
+ } catch (e) {
681
+ return true;
682
+ }
683
+ }
684
+ }
685
+
686
+ function testStringCoercion(value) {
687
+ // If you ended up here by following an exception call stack, here's what's
688
+ // happened: you supplied an object or symbol value to React (as a prop, key,
689
+ // DOM attribute, CSS property, string ref, etc.) and when React tried to
690
+ // coerce it to a string using `'' + value`, an exception was thrown.
691
+ //
692
+ // The most common types that will cause this exception are `Symbol` instances
693
+ // and Temporal objects like `Temporal.Instant`. But any object that has a
694
+ // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
695
+ // exception. (Library authors do this to prevent users from using built-in
696
+ // numeric operators like `+` or comparison operators like `>=` because custom
697
+ // methods are needed to perform accurate arithmetic or comparison.)
698
+ //
699
+ // To fix the problem, coerce this object or symbol value to a string before
700
+ // passing it to React. The most reliable way is usually `String(value)`.
701
+ //
702
+ // To find which value is throwing, check the browser or debugger console.
703
+ // Before this exception was thrown, there should be `console.error` output
704
+ // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
705
+ // problem and how that type was used: key, atrribute, input value prop, etc.
706
+ // In most cases, this console output also shows the component and its
707
+ // ancestor components where the exception happened.
708
+ //
709
+ // eslint-disable-next-line react-internal/safe-string-coercion
710
+ return '' + value;
711
+ }
712
+ function checkKeyStringCoercion(value) {
713
+ {
714
+ if (willCoercionThrow(value)) {
715
+ error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
716
+
717
+ return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
718
+ }
719
+ }
720
+ }
721
+
722
+ var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
723
+ var RESERVED_PROPS = {
724
+ key: true,
725
+ ref: true,
726
+ __self: true,
727
+ __source: true
728
+ };
729
+ var specialPropKeyWarningShown;
730
+ var specialPropRefWarningShown;
731
+ var didWarnAboutStringRefs;
732
+
733
+ {
734
+ didWarnAboutStringRefs = {};
735
+ }
736
+
737
+ function hasValidRef(config) {
738
+ {
739
+ if (hasOwnProperty.call(config, 'ref')) {
740
+ var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
741
+
742
+ if (getter && getter.isReactWarning) {
743
+ return false;
744
+ }
745
+ }
746
+ }
747
+
748
+ return config.ref !== undefined;
749
+ }
750
+
751
+ function hasValidKey(config) {
752
+ {
753
+ if (hasOwnProperty.call(config, 'key')) {
754
+ var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
755
+
756
+ if (getter && getter.isReactWarning) {
757
+ return false;
758
+ }
759
+ }
760
+ }
761
+
762
+ return config.key !== undefined;
763
+ }
764
+
765
+ function warnIfStringRefCannotBeAutoConverted(config, self) {
766
+ {
767
+ if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
768
+ var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
769
+
770
+ if (!didWarnAboutStringRefs[componentName]) {
771
+ 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://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
772
+
773
+ didWarnAboutStringRefs[componentName] = true;
774
+ }
775
+ }
776
+ }
777
+ }
778
+
779
+ function defineKeyPropWarningGetter(props, displayName) {
780
+ {
781
+ var warnAboutAccessingKey = function () {
782
+ if (!specialPropKeyWarningShown) {
783
+ specialPropKeyWarningShown = true;
784
+
785
+ 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://reactjs.org/link/special-props)', displayName);
786
+ }
787
+ };
788
+
789
+ warnAboutAccessingKey.isReactWarning = true;
790
+ Object.defineProperty(props, 'key', {
791
+ get: warnAboutAccessingKey,
792
+ configurable: true
793
+ });
794
+ }
795
+ }
796
+
797
+ function defineRefPropWarningGetter(props, displayName) {
798
+ {
799
+ var warnAboutAccessingRef = function () {
800
+ if (!specialPropRefWarningShown) {
801
+ specialPropRefWarningShown = true;
802
+
803
+ 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://reactjs.org/link/special-props)', displayName);
804
+ }
805
+ };
806
+
807
+ warnAboutAccessingRef.isReactWarning = true;
808
+ Object.defineProperty(props, 'ref', {
809
+ get: warnAboutAccessingRef,
810
+ configurable: true
811
+ });
812
+ }
813
+ }
814
+ /**
815
+ * Factory method to create a new React element. This no longer adheres to
816
+ * the class pattern, so do not use new to call it. Also, instanceof check
817
+ * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
818
+ * if something is a React Element.
819
+ *
820
+ * @param {*} type
821
+ * @param {*} props
822
+ * @param {*} key
823
+ * @param {string|object} ref
824
+ * @param {*} owner
825
+ * @param {*} self A *temporary* helper to detect places where `this` is
826
+ * different from the `owner` when React.createElement is called, so that we
827
+ * can warn. We want to get rid of owner and replace string `ref`s with arrow
828
+ * functions, and as long as `this` and owner are the same, there will be no
829
+ * change in behavior.
830
+ * @param {*} source An annotation object (added by a transpiler or otherwise)
831
+ * indicating filename, line number, and/or other information.
832
+ * @internal
833
+ */
834
+
835
+
836
+ var ReactElement = function (type, key, ref, self, source, owner, props) {
837
+ var element = {
838
+ // This tag allows us to uniquely identify this as a React Element
839
+ $$typeof: REACT_ELEMENT_TYPE,
840
+ // Built-in properties that belong on the element
841
+ type: type,
842
+ key: key,
843
+ ref: ref,
844
+ props: props,
845
+ // Record the component responsible for creating this element.
846
+ _owner: owner
847
+ };
848
+
849
+ {
850
+ // The validation flag is currently mutative. We put it on
851
+ // an external backing store so that we can freeze the whole object.
852
+ // This can be replaced with a WeakMap once they are implemented in
853
+ // commonly used development environments.
854
+ element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
855
+ // the validation flag non-enumerable (where possible, which should
856
+ // include every environment we run tests in), so the test framework
857
+ // ignores it.
858
+
859
+ Object.defineProperty(element._store, 'validated', {
860
+ configurable: false,
861
+ enumerable: false,
862
+ writable: true,
863
+ value: false
864
+ }); // self and source are DEV only properties.
865
+
866
+ Object.defineProperty(element, '_self', {
867
+ configurable: false,
868
+ enumerable: false,
869
+ writable: false,
870
+ value: self
871
+ }); // Two elements created in two different places should be considered
872
+ // equal for testing purposes and therefore we hide it from enumeration.
873
+
874
+ Object.defineProperty(element, '_source', {
875
+ configurable: false,
876
+ enumerable: false,
877
+ writable: false,
878
+ value: source
879
+ });
880
+
881
+ if (Object.freeze) {
882
+ Object.freeze(element.props);
883
+ Object.freeze(element);
884
+ }
885
+ }
886
+
887
+ return element;
888
+ };
889
+ /**
890
+ * https://github.com/reactjs/rfcs/pull/107
891
+ * @param {*} type
892
+ * @param {object} props
893
+ * @param {string} key
894
+ */
895
+
896
+ function jsxDEV(type, config, maybeKey, source, self) {
897
+ {
898
+ var propName; // Reserved names are extracted
899
+
900
+ var props = {};
901
+ var key = null;
902
+ var ref = null; // Currently, key can be spread in as a prop. This causes a potential
903
+ // issue if key is also explicitly declared (ie. <div {...props} key="Hi" />
904
+ // or <div key="Hi" {...props} /> ). We want to deprecate key spread,
905
+ // but as an intermediary step, we will use jsxDEV for everything except
906
+ // <div {...props} key="Hi" />, because we aren't currently able to tell if
907
+ // key is explicitly declared to be undefined or not.
908
+
909
+ if (maybeKey !== undefined) {
910
+ {
911
+ checkKeyStringCoercion(maybeKey);
912
+ }
913
+
914
+ key = '' + maybeKey;
915
+ }
916
+
917
+ if (hasValidKey(config)) {
918
+ {
919
+ checkKeyStringCoercion(config.key);
920
+ }
921
+
922
+ key = '' + config.key;
923
+ }
924
+
925
+ if (hasValidRef(config)) {
926
+ ref = config.ref;
927
+ warnIfStringRefCannotBeAutoConverted(config, self);
928
+ } // Remaining properties are added to a new props object
929
+
930
+
931
+ for (propName in config) {
932
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
933
+ props[propName] = config[propName];
934
+ }
935
+ } // Resolve default props
936
+
937
+
938
+ if (type && type.defaultProps) {
939
+ var defaultProps = type.defaultProps;
940
+
941
+ for (propName in defaultProps) {
942
+ if (props[propName] === undefined) {
943
+ props[propName] = defaultProps[propName];
944
+ }
945
+ }
946
+ }
947
+
948
+ if (key || ref) {
949
+ var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
950
+
951
+ if (key) {
952
+ defineKeyPropWarningGetter(props, displayName);
953
+ }
954
+
955
+ if (ref) {
956
+ defineRefPropWarningGetter(props, displayName);
957
+ }
958
+ }
959
+
960
+ return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
961
+ }
962
+ }
963
+
964
+ var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
965
+ var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
966
+
967
+ function setCurrentlyValidatingElement$1(element) {
968
+ {
969
+ if (element) {
970
+ var owner = element._owner;
971
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
972
+ ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
973
+ } else {
974
+ ReactDebugCurrentFrame$1.setExtraStackFrame(null);
975
+ }
976
+ }
977
+ }
978
+
979
+ var propTypesMisspellWarningShown;
980
+
981
+ {
982
+ propTypesMisspellWarningShown = false;
983
+ }
984
+ /**
985
+ * Verifies the object is a ReactElement.
986
+ * See https://reactjs.org/docs/react-api.html#isvalidelement
987
+ * @param {?object} object
988
+ * @return {boolean} True if `object` is a ReactElement.
989
+ * @final
990
+ */
991
+
992
+
993
+ function isValidElement(object) {
994
+ {
995
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
996
+ }
997
+ }
998
+
999
+ function getDeclarationErrorAddendum() {
1000
+ {
1001
+ if (ReactCurrentOwner$1.current) {
1002
+ var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
1003
+
1004
+ if (name) {
1005
+ return '\n\nCheck the render method of `' + name + '`.';
1006
+ }
1007
+ }
1008
+
1009
+ return '';
1010
+ }
1011
+ }
1012
+
1013
+ function getSourceInfoErrorAddendum(source) {
1014
+ {
1015
+ if (source !== undefined) {
1016
+ var fileName = source.fileName.replace(/^.*[\\\/]/, '');
1017
+ var lineNumber = source.lineNumber;
1018
+ return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
1019
+ }
1020
+
1021
+ return '';
1022
+ }
1023
+ }
1024
+ /**
1025
+ * Warn if there's no key explicitly set on dynamic arrays of children or
1026
+ * object keys are not valid. This allows us to keep track of children between
1027
+ * updates.
1028
+ */
1029
+
1030
+
1031
+ var ownerHasKeyUseWarning = {};
1032
+
1033
+ function getCurrentComponentErrorInfo(parentType) {
1034
+ {
1035
+ var info = getDeclarationErrorAddendum();
1036
+
1037
+ if (!info) {
1038
+ var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
1039
+
1040
+ if (parentName) {
1041
+ info = "\n\nCheck the top-level render call using <" + parentName + ">.";
1042
+ }
1043
+ }
1044
+
1045
+ return info;
1046
+ }
1047
+ }
1048
+ /**
1049
+ * Warn if the element doesn't have an explicit key assigned to it.
1050
+ * This element is in an array. The array could grow and shrink or be
1051
+ * reordered. All children that haven't already been validated are required to
1052
+ * have a "key" property assigned to it. Error statuses are cached so a warning
1053
+ * will only be shown once.
1054
+ *
1055
+ * @internal
1056
+ * @param {ReactElement} element Element that requires a key.
1057
+ * @param {*} parentType element's parent's type.
1058
+ */
1059
+
1060
+
1061
+ function validateExplicitKey(element, parentType) {
1062
+ {
1063
+ if (!element._store || element._store.validated || element.key != null) {
1064
+ return;
1065
+ }
1066
+
1067
+ element._store.validated = true;
1068
+ var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
1069
+
1070
+ if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
1071
+ return;
1072
+ }
1073
+
1074
+ ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
1075
+ // property, it may be the creator of the child that's responsible for
1076
+ // assigning it a key.
1077
+
1078
+ var childOwner = '';
1079
+
1080
+ if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
1081
+ // Give the component that originally created this child.
1082
+ childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
1083
+ }
1084
+
1085
+ setCurrentlyValidatingElement$1(element);
1086
+
1087
+ error('Each child in a list should have a unique "key" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
1088
+
1089
+ setCurrentlyValidatingElement$1(null);
1090
+ }
1091
+ }
1092
+ /**
1093
+ * Ensure that every element either is passed in a static location, in an
1094
+ * array with an explicit keys property defined, or in an object literal
1095
+ * with valid key property.
1096
+ *
1097
+ * @internal
1098
+ * @param {ReactNode} node Statically passed child of any type.
1099
+ * @param {*} parentType node's parent's type.
1100
+ */
1101
+
1102
+
1103
+ function validateChildKeys(node, parentType) {
1104
+ {
1105
+ if (typeof node !== 'object') {
1106
+ return;
1107
+ }
1108
+
1109
+ if (isArray(node)) {
1110
+ for (var i = 0; i < node.length; i++) {
1111
+ var child = node[i];
1112
+
1113
+ if (isValidElement(child)) {
1114
+ validateExplicitKey(child, parentType);
1115
+ }
1116
+ }
1117
+ } else if (isValidElement(node)) {
1118
+ // This element was passed in a valid location.
1119
+ if (node._store) {
1120
+ node._store.validated = true;
1121
+ }
1122
+ } else if (node) {
1123
+ var iteratorFn = getIteratorFn(node);
1124
+
1125
+ if (typeof iteratorFn === 'function') {
1126
+ // Entry iterators used to provide implicit keys,
1127
+ // but now we print a separate warning for them later.
1128
+ if (iteratorFn !== node.entries) {
1129
+ var iterator = iteratorFn.call(node);
1130
+ var step;
1131
+
1132
+ while (!(step = iterator.next()).done) {
1133
+ if (isValidElement(step.value)) {
1134
+ validateExplicitKey(step.value, parentType);
1135
+ }
1136
+ }
1137
+ }
1138
+ }
1139
+ }
1140
+ }
1141
+ }
1142
+ /**
1143
+ * Given an element, validate that its props follow the propTypes definition,
1144
+ * provided by the type.
1145
+ *
1146
+ * @param {ReactElement} element
1147
+ */
1148
+
1149
+
1150
+ function validatePropTypes(element) {
1151
+ {
1152
+ var type = element.type;
1153
+
1154
+ if (type === null || type === undefined || typeof type === 'string') {
1155
+ return;
1156
+ }
1157
+
1158
+ var propTypes;
1159
+
1160
+ if (typeof type === 'function') {
1161
+ propTypes = type.propTypes;
1162
+ } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
1163
+ // Inner props are checked in the reconciler.
1164
+ type.$$typeof === REACT_MEMO_TYPE)) {
1165
+ propTypes = type.propTypes;
1166
+ } else {
1167
+ return;
1168
+ }
1169
+
1170
+ if (propTypes) {
1171
+ // Intentionally inside to avoid triggering lazy initializers:
1172
+ var name = getComponentNameFromType(type);
1173
+ checkPropTypes(propTypes, element.props, 'prop', name, element);
1174
+ } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
1175
+ propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
1176
+
1177
+ var _name = getComponentNameFromType(type);
1178
+
1179
+ error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
1180
+ }
1181
+
1182
+ if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
1183
+ error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
1184
+ }
1185
+ }
1186
+ }
1187
+ /**
1188
+ * Given a fragment, validate that it can only be provided with fragment props
1189
+ * @param {ReactElement} fragment
1190
+ */
1191
+
1192
+
1193
+ function validateFragmentProps(fragment) {
1194
+ {
1195
+ var keys = Object.keys(fragment.props);
1196
+
1197
+ for (var i = 0; i < keys.length; i++) {
1198
+ var key = keys[i];
1199
+
1200
+ if (key !== 'children' && key !== 'key') {
1201
+ setCurrentlyValidatingElement$1(fragment);
1202
+
1203
+ error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
1204
+
1205
+ setCurrentlyValidatingElement$1(null);
1206
+ break;
1207
+ }
1208
+ }
1209
+
1210
+ if (fragment.ref !== null) {
1211
+ setCurrentlyValidatingElement$1(fragment);
1212
+
1213
+ error('Invalid attribute `ref` supplied to `React.Fragment`.');
1214
+
1215
+ setCurrentlyValidatingElement$1(null);
1216
+ }
1217
+ }
1218
+ }
1219
+
1220
+ var didWarnAboutKeySpread = {};
1221
+ function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
1222
+ {
1223
+ var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
1224
+ // succeed and there will likely be errors in render.
1225
+
1226
+ if (!validType) {
1227
+ var info = '';
1228
+
1229
+ if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
1230
+ 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.";
1231
+ }
1232
+
1233
+ var sourceInfo = getSourceInfoErrorAddendum(source);
1234
+
1235
+ if (sourceInfo) {
1236
+ info += sourceInfo;
1237
+ } else {
1238
+ info += getDeclarationErrorAddendum();
1239
+ }
1240
+
1241
+ var typeString;
1242
+
1243
+ if (type === null) {
1244
+ typeString = 'null';
1245
+ } else if (isArray(type)) {
1246
+ typeString = 'array';
1247
+ } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
1248
+ typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
1249
+ info = ' Did you accidentally export a JSX literal instead of a component?';
1250
+ } else {
1251
+ typeString = typeof type;
1252
+ }
1253
+
1254
+ error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
1255
+ }
1256
+
1257
+ var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.
1258
+ // TODO: Drop this when these are no longer allowed as the type argument.
1259
+
1260
+ if (element == null) {
1261
+ return element;
1262
+ } // Skip key warning if the type isn't valid since our key validation logic
1263
+ // doesn't expect a non-string/function type and can throw confusing errors.
1264
+ // We don't want exception behavior to differ between dev and prod.
1265
+ // (Rendering will throw with a helpful message and as soon as the type is
1266
+ // fixed, the key warnings will appear.)
1267
+
1268
+
1269
+ if (validType) {
1270
+ var children = props.children;
1271
+
1272
+ if (children !== undefined) {
1273
+ if (isStaticChildren) {
1274
+ if (isArray(children)) {
1275
+ for (var i = 0; i < children.length; i++) {
1276
+ validateChildKeys(children[i], type);
1277
+ }
1278
+
1279
+ if (Object.freeze) {
1280
+ Object.freeze(children);
1281
+ }
1282
+ } else {
1283
+ error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');
1284
+ }
1285
+ } else {
1286
+ validateChildKeys(children, type);
1287
+ }
1288
+ }
1289
+ }
1290
+
1291
+ {
1292
+ if (hasOwnProperty.call(props, 'key')) {
1293
+ var componentName = getComponentNameFromType(type);
1294
+ var keys = Object.keys(props).filter(function (k) {
1295
+ return k !== 'key';
1296
+ });
1297
+ var beforeExample = keys.length > 0 ? '{key: someKey, ' + keys.join(': ..., ') + ': ...}' : '{key: someKey}';
1298
+
1299
+ if (!didWarnAboutKeySpread[componentName + beforeExample]) {
1300
+ var afterExample = keys.length > 0 ? '{' + keys.join(': ..., ') + ': ...}' : '{}';
1301
+
1302
+ error('A props object containing a "key" prop is being spread into JSX:\n' + ' let props = %s;\n' + ' <%s {...props} />\n' + 'React keys must be passed directly to JSX without using spread:\n' + ' let props = %s;\n' + ' <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
1303
+
1304
+ didWarnAboutKeySpread[componentName + beforeExample] = true;
1305
+ }
1306
+ }
1307
+ }
1308
+
1309
+ if (type === REACT_FRAGMENT_TYPE) {
1310
+ validateFragmentProps(element);
1311
+ } else {
1312
+ validatePropTypes(element);
1313
+ }
1314
+
1315
+ return element;
1316
+ }
1317
+ } // These two functions exist to still get child warnings in dev
1318
+ // even with the prod transform. This means that jsxDEV is purely
1319
+ // opt-in behavior for better messages but that we won't stop
1320
+ // giving you warnings if you use production apis.
1321
+
1322
+ function jsxWithValidationStatic(type, props, key) {
1323
+ {
1324
+ return jsxWithValidation(type, props, key, true);
1325
+ }
1326
+ }
1327
+ function jsxWithValidationDynamic(type, props, key) {
1328
+ {
1329
+ return jsxWithValidation(type, props, key, false);
1330
+ }
1331
+ }
1332
+
1333
+ var jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.
1334
+ // for now we can ship identical prod functions
1335
+
1336
+ var jsxs = jsxWithValidationStatic ;
1337
+
1338
+ exports.Fragment = REACT_FRAGMENT_TYPE;
1339
+ exports.jsx = jsx;
1340
+ exports.jsxs = jsxs;
1341
+ })();
1342
+ }
1343
+
1344
+
1345
+ /***/ }),
1346
+
1347
+ /***/ "./node_modules/react/cjs/react.development.js":
1348
+ /*!*****************************************************!*\
1349
+ !*** ./node_modules/react/cjs/react.development.js ***!
1350
+ \*****************************************************/
1351
+ /***/ ((module, exports, __webpack_require__) => {
1352
+
1353
+ /* module decorator */ module = __webpack_require__.nmd(module);
1354
+ /**
1355
+ * @license React
1356
+ * react.development.js
1357
+ *
1358
+ * Copyright (c) Facebook, Inc. and its affiliates.
1359
+ *
1360
+ * This source code is licensed under the MIT license found in the
1361
+ * LICENSE file in the root directory of this source tree.
1362
+ */
1363
+
1364
+
1365
+
1366
+ if (true) {
1367
+ (function() {
1368
+
1369
+ 'use strict';
1370
+
1371
+ /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
1372
+ if (
1373
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
1374
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===
1375
+ 'function'
1376
+ ) {
1377
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
1378
+ }
1379
+ var ReactVersion = '18.3.1';
1380
+
1381
+ // ATTENTION
1382
+ // When adding new symbols to this file,
1383
+ // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
1384
+ // The Symbol used to tag the ReactElement-like types.
1385
+ var REACT_ELEMENT_TYPE = Symbol.for('react.element');
1386
+ var REACT_PORTAL_TYPE = Symbol.for('react.portal');
1387
+ var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
1388
+ var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
1389
+ var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
1390
+ var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
1391
+ var REACT_CONTEXT_TYPE = Symbol.for('react.context');
1392
+ var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
1393
+ var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
1394
+ var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
1395
+ var REACT_MEMO_TYPE = Symbol.for('react.memo');
1396
+ var REACT_LAZY_TYPE = Symbol.for('react.lazy');
1397
+ var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
1398
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
1399
+ var FAUX_ITERATOR_SYMBOL = '@@iterator';
1400
+ function getIteratorFn(maybeIterable) {
1401
+ if (maybeIterable === null || typeof maybeIterable !== 'object') {
1402
+ return null;
1403
+ }
1404
+
1405
+ var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
1406
+
1407
+ if (typeof maybeIterator === 'function') {
1408
+ return maybeIterator;
1409
+ }
1410
+
1411
+ return null;
1412
+ }
1413
+
1414
+ /**
1415
+ * Keeps track of the current dispatcher.
1416
+ */
1417
+ var ReactCurrentDispatcher = {
1418
+ /**
1419
+ * @internal
1420
+ * @type {ReactComponent}
1421
+ */
1422
+ current: null
1423
+ };
1424
+
1425
+ /**
1426
+ * Keeps track of the current batch's configuration such as how long an update
1427
+ * should suspend for if it needs to.
1428
+ */
1429
+ var ReactCurrentBatchConfig = {
1430
+ transition: null
1431
+ };
1432
+
1433
+ var ReactCurrentActQueue = {
1434
+ current: null,
1435
+ // Used to reproduce behavior of `batchedUpdates` in legacy mode.
1436
+ isBatchingLegacy: false,
1437
+ didScheduleLegacyUpdate: false
1438
+ };
1439
+
1440
+ /**
1441
+ * Keeps track of the current owner.
1442
+ *
1443
+ * The current owner is the component who should own any components that are
1444
+ * currently being constructed.
1445
+ */
1446
+ var ReactCurrentOwner = {
1447
+ /**
1448
+ * @internal
1449
+ * @type {ReactComponent}
1450
+ */
1451
+ current: null
1452
+ };
1453
+
1454
+ var ReactDebugCurrentFrame = {};
1455
+ var currentExtraStackFrame = null;
1456
+ function setExtraStackFrame(stack) {
1457
+ {
1458
+ currentExtraStackFrame = stack;
1459
+ }
1460
+ }
1461
+
1462
+ {
1463
+ ReactDebugCurrentFrame.setExtraStackFrame = function (stack) {
1464
+ {
1465
+ currentExtraStackFrame = stack;
1466
+ }
1467
+ }; // Stack implementation injected by the current renderer.
1468
+
1469
+
1470
+ ReactDebugCurrentFrame.getCurrentStack = null;
1471
+
1472
+ ReactDebugCurrentFrame.getStackAddendum = function () {
1473
+ var stack = ''; // Add an extra top frame while an element is being validated
1474
+
1475
+ if (currentExtraStackFrame) {
1476
+ stack += currentExtraStackFrame;
1477
+ } // Delegate to the injected renderer-specific implementation
1478
+
1479
+
1480
+ var impl = ReactDebugCurrentFrame.getCurrentStack;
1481
+
1482
+ if (impl) {
1483
+ stack += impl() || '';
1484
+ }
1485
+
1486
+ return stack;
1487
+ };
1488
+ }
1489
+
1490
+ // -----------------------------------------------------------------------------
1491
+
1492
+ var enableScopeAPI = false; // Experimental Create Event Handle API.
1493
+ var enableCacheElement = false;
1494
+ var enableTransitionTracing = false; // No known bugs, but needs performance testing
1495
+
1496
+ var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
1497
+ // stuff. Intended to enable React core members to more easily debug scheduling
1498
+ // issues in DEV builds.
1499
+
1500
+ var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
1501
+
1502
+ var ReactSharedInternals = {
1503
+ ReactCurrentDispatcher: ReactCurrentDispatcher,
1504
+ ReactCurrentBatchConfig: ReactCurrentBatchConfig,
1505
+ ReactCurrentOwner: ReactCurrentOwner
1506
+ };
1507
+
1508
+ {
1509
+ ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
1510
+ ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue;
1511
+ }
1512
+
1513
+ // by calls to these methods by a Babel plugin.
1514
+ //
1515
+ // In PROD (or in packages without access to React internals),
1516
+ // they are left as they are instead.
1517
+
1518
+ function warn(format) {
1519
+ {
1520
+ {
1521
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
1522
+ args[_key - 1] = arguments[_key];
1523
+ }
1524
+
1525
+ printWarning('warn', format, args);
1526
+ }
1527
+ }
1528
+ }
1529
+ function error(format) {
1530
+ {
1531
+ {
1532
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
1533
+ args[_key2 - 1] = arguments[_key2];
1534
+ }
1535
+
1536
+ printWarning('error', format, args);
1537
+ }
1538
+ }
1539
+ }
1540
+
1541
+ function printWarning(level, format, args) {
1542
+ // When changing this logic, you might want to also
1543
+ // update consoleWithStackDev.www.js as well.
1544
+ {
1545
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
1546
+ var stack = ReactDebugCurrentFrame.getStackAddendum();
1547
+
1548
+ if (stack !== '') {
1549
+ format += '%s';
1550
+ args = args.concat([stack]);
1551
+ } // eslint-disable-next-line react-internal/safe-string-coercion
1552
+
1553
+
1554
+ var argsWithFormat = args.map(function (item) {
1555
+ return String(item);
1556
+ }); // Careful: RN currently depends on this prefix
1557
+
1558
+ argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
1559
+ // breaks IE9: https://github.com/facebook/react/issues/13610
1560
+ // eslint-disable-next-line react-internal/no-production-logging
1561
+
1562
+ Function.prototype.apply.call(console[level], console, argsWithFormat);
1563
+ }
1564
+ }
1565
+
1566
+ var didWarnStateUpdateForUnmountedComponent = {};
1567
+
1568
+ function warnNoop(publicInstance, callerName) {
1569
+ {
1570
+ var _constructor = publicInstance.constructor;
1571
+ var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
1572
+ var warningKey = componentName + "." + callerName;
1573
+
1574
+ if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
1575
+ return;
1576
+ }
1577
+
1578
+ 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);
1579
+
1580
+ didWarnStateUpdateForUnmountedComponent[warningKey] = true;
1581
+ }
1582
+ }
1583
+ /**
1584
+ * This is the abstract API for an update queue.
1585
+ */
1586
+
1587
+
1588
+ var ReactNoopUpdateQueue = {
1589
+ /**
1590
+ * Checks whether or not this composite component is mounted.
1591
+ * @param {ReactClass} publicInstance The instance we want to test.
1592
+ * @return {boolean} True if mounted, false otherwise.
1593
+ * @protected
1594
+ * @final
1595
+ */
1596
+ isMounted: function (publicInstance) {
1597
+ return false;
1598
+ },
1599
+
1600
+ /**
1601
+ * Forces an update. This should only be invoked when it is known with
1602
+ * certainty that we are **not** in a DOM transaction.
1603
+ *
1604
+ * You may want to call this when you know that some deeper aspect of the
1605
+ * component's state has changed but `setState` was not called.
1606
+ *
1607
+ * This will not invoke `shouldComponentUpdate`, but it will invoke
1608
+ * `componentWillUpdate` and `componentDidUpdate`.
1609
+ *
1610
+ * @param {ReactClass} publicInstance The instance that should rerender.
1611
+ * @param {?function} callback Called after component is updated.
1612
+ * @param {?string} callerName name of the calling function in the public API.
1613
+ * @internal
1614
+ */
1615
+ enqueueForceUpdate: function (publicInstance, callback, callerName) {
1616
+ warnNoop(publicInstance, 'forceUpdate');
1617
+ },
1618
+
1619
+ /**
1620
+ * Replaces all of the state. Always use this or `setState` to mutate state.
1621
+ * You should treat `this.state` as immutable.
1622
+ *
1623
+ * There is no guarantee that `this.state` will be immediately updated, so
1624
+ * accessing `this.state` after calling this method may return the old value.
1625
+ *
1626
+ * @param {ReactClass} publicInstance The instance that should rerender.
1627
+ * @param {object} completeState Next state.
1628
+ * @param {?function} callback Called after component is updated.
1629
+ * @param {?string} callerName name of the calling function in the public API.
1630
+ * @internal
1631
+ */
1632
+ enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {
1633
+ warnNoop(publicInstance, 'replaceState');
1634
+ },
1635
+
1636
+ /**
1637
+ * Sets a subset of the state. This only exists because _pendingState is
1638
+ * internal. This provides a merging strategy that is not available to deep
1639
+ * properties which is confusing. TODO: Expose pendingState or don't use it
1640
+ * during the merge.
1641
+ *
1642
+ * @param {ReactClass} publicInstance The instance that should rerender.
1643
+ * @param {object} partialState Next partial state to be merged with state.
1644
+ * @param {?function} callback Called after component is updated.
1645
+ * @param {?string} Name of the calling function in the public API.
1646
+ * @internal
1647
+ */
1648
+ enqueueSetState: function (publicInstance, partialState, callback, callerName) {
1649
+ warnNoop(publicInstance, 'setState');
1650
+ }
1651
+ };
1652
+
1653
+ var assign = Object.assign;
1654
+
1655
+ var emptyObject = {};
1656
+
1657
+ {
1658
+ Object.freeze(emptyObject);
1659
+ }
1660
+ /**
1661
+ * Base class helpers for the updating state of a component.
1662
+ */
1663
+
1664
+
1665
+ function Component(props, context, updater) {
1666
+ this.props = props;
1667
+ this.context = context; // If a component has string refs, we will assign a different object later.
1668
+
1669
+ this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the
1670
+ // renderer.
1671
+
1672
+ this.updater = updater || ReactNoopUpdateQueue;
1673
+ }
1674
+
1675
+ Component.prototype.isReactComponent = {};
1676
+ /**
1677
+ * Sets a subset of the state. Always use this to mutate
1678
+ * state. You should treat `this.state` as immutable.
1679
+ *
1680
+ * There is no guarantee that `this.state` will be immediately updated, so
1681
+ * accessing `this.state` after calling this method may return the old value.
1682
+ *
1683
+ * There is no guarantee that calls to `setState` will run synchronously,
1684
+ * as they may eventually be batched together. You can provide an optional
1685
+ * callback that will be executed when the call to setState is actually
1686
+ * completed.
1687
+ *
1688
+ * When a function is provided to setState, it will be called at some point in
1689
+ * the future (not synchronously). It will be called with the up to date
1690
+ * component arguments (state, props, context). These values can be different
1691
+ * from this.* because your function may be called after receiveProps but before
1692
+ * shouldComponentUpdate, and this new state, props, and context will not yet be
1693
+ * assigned to this.
1694
+ *
1695
+ * @param {object|function} partialState Next partial state or function to
1696
+ * produce next partial state to be merged with current state.
1697
+ * @param {?function} callback Called after state is updated.
1698
+ * @final
1699
+ * @protected
1700
+ */
1701
+
1702
+ Component.prototype.setState = function (partialState, callback) {
1703
+ if (typeof partialState !== 'object' && typeof partialState !== 'function' && partialState != null) {
1704
+ throw new Error('setState(...): takes an object of state variables to update or a ' + 'function which returns an object of state variables.');
1705
+ }
1706
+
1707
+ this.updater.enqueueSetState(this, partialState, callback, 'setState');
1708
+ };
1709
+ /**
1710
+ * Forces an update. This should only be invoked when it is known with
1711
+ * certainty that we are **not** in a DOM transaction.
1712
+ *
1713
+ * You may want to call this when you know that some deeper aspect of the
1714
+ * component's state has changed but `setState` was not called.
1715
+ *
1716
+ * This will not invoke `shouldComponentUpdate`, but it will invoke
1717
+ * `componentWillUpdate` and `componentDidUpdate`.
1718
+ *
1719
+ * @param {?function} callback Called after update is complete.
1720
+ * @final
1721
+ * @protected
1722
+ */
1723
+
1724
+
1725
+ Component.prototype.forceUpdate = function (callback) {
1726
+ this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
1727
+ };
1728
+ /**
1729
+ * Deprecated APIs. These APIs used to exist on classic React classes but since
1730
+ * we would like to deprecate them, we're not going to move them over to this
1731
+ * modern base class. Instead, we define a getter that warns if it's accessed.
1732
+ */
1733
+
1734
+
1735
+ {
1736
+ var deprecatedAPIs = {
1737
+ isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
1738
+ replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
1739
+ };
1740
+
1741
+ var defineDeprecationWarning = function (methodName, info) {
1742
+ Object.defineProperty(Component.prototype, methodName, {
1743
+ get: function () {
1744
+ warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);
1745
+
1746
+ return undefined;
1747
+ }
1748
+ });
1749
+ };
1750
+
1751
+ for (var fnName in deprecatedAPIs) {
1752
+ if (deprecatedAPIs.hasOwnProperty(fnName)) {
1753
+ defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
1754
+ }
1755
+ }
1756
+ }
1757
+
1758
+ function ComponentDummy() {}
1759
+
1760
+ ComponentDummy.prototype = Component.prototype;
1761
+ /**
1762
+ * Convenience component with default shallow equality check for sCU.
1763
+ */
1764
+
1765
+ function PureComponent(props, context, updater) {
1766
+ this.props = props;
1767
+ this.context = context; // If a component has string refs, we will assign a different object later.
1768
+
1769
+ this.refs = emptyObject;
1770
+ this.updater = updater || ReactNoopUpdateQueue;
1771
+ }
1772
+
1773
+ var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
1774
+ pureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods.
1775
+
1776
+ assign(pureComponentPrototype, Component.prototype);
1777
+ pureComponentPrototype.isPureReactComponent = true;
1778
+
1779
+ // an immutable object with a single mutable value
1780
+ function createRef() {
1781
+ var refObject = {
1782
+ current: null
1783
+ };
1784
+
1785
+ {
1786
+ Object.seal(refObject);
1787
+ }
1788
+
1789
+ return refObject;
1790
+ }
1791
+
1792
+ var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
1793
+
1794
+ function isArray(a) {
1795
+ return isArrayImpl(a);
1796
+ }
1797
+
1798
+ /*
1799
+ * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol
1800
+ * and Temporal.* types. See https://github.com/facebook/react/pull/22064.
1801
+ *
1802
+ * The functions in this module will throw an easier-to-understand,
1803
+ * easier-to-debug exception with a clear errors message message explaining the
1804
+ * problem. (Instead of a confusing exception thrown inside the implementation
1805
+ * of the `value` object).
1806
+ */
1807
+ // $FlowFixMe only called in DEV, so void return is not possible.
1808
+ function typeName(value) {
1809
+ {
1810
+ // toStringTag is needed for namespaced types like Temporal.Instant
1811
+ var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
1812
+ var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
1813
+ return type;
1814
+ }
1815
+ } // $FlowFixMe only called in DEV, so void return is not possible.
1816
+
1817
+
1818
+ function willCoercionThrow(value) {
1819
+ {
1820
+ try {
1821
+ testStringCoercion(value);
1822
+ return false;
1823
+ } catch (e) {
1824
+ return true;
1825
+ }
1826
+ }
1827
+ }
1828
+
1829
+ function testStringCoercion(value) {
1830
+ // If you ended up here by following an exception call stack, here's what's
1831
+ // happened: you supplied an object or symbol value to React (as a prop, key,
1832
+ // DOM attribute, CSS property, string ref, etc.) and when React tried to
1833
+ // coerce it to a string using `'' + value`, an exception was thrown.
1834
+ //
1835
+ // The most common types that will cause this exception are `Symbol` instances
1836
+ // and Temporal objects like `Temporal.Instant`. But any object that has a
1837
+ // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
1838
+ // exception. (Library authors do this to prevent users from using built-in
1839
+ // numeric operators like `+` or comparison operators like `>=` because custom
1840
+ // methods are needed to perform accurate arithmetic or comparison.)
1841
+ //
1842
+ // To fix the problem, coerce this object or symbol value to a string before
1843
+ // passing it to React. The most reliable way is usually `String(value)`.
1844
+ //
1845
+ // To find which value is throwing, check the browser or debugger console.
1846
+ // Before this exception was thrown, there should be `console.error` output
1847
+ // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
1848
+ // problem and how that type was used: key, atrribute, input value prop, etc.
1849
+ // In most cases, this console output also shows the component and its
1850
+ // ancestor components where the exception happened.
1851
+ //
1852
+ // eslint-disable-next-line react-internal/safe-string-coercion
1853
+ return '' + value;
1854
+ }
1855
+ function checkKeyStringCoercion(value) {
1856
+ {
1857
+ if (willCoercionThrow(value)) {
1858
+ error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
1859
+
1860
+ return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
1861
+ }
1862
+ }
1863
+ }
1864
+
1865
+ function getWrappedName(outerType, innerType, wrapperName) {
1866
+ var displayName = outerType.displayName;
1867
+
1868
+ if (displayName) {
1869
+ return displayName;
1870
+ }
1871
+
1872
+ var functionName = innerType.displayName || innerType.name || '';
1873
+ return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
1874
+ } // Keep in sync with react-reconciler/getComponentNameFromFiber
1875
+
1876
+
1877
+ function getContextName(type) {
1878
+ return type.displayName || 'Context';
1879
+ } // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
1880
+
1881
+
1882
+ function getComponentNameFromType(type) {
1883
+ if (type == null) {
1884
+ // Host root, text node or just invalid type.
1885
+ return null;
1886
+ }
1887
+
1888
+ {
1889
+ if (typeof type.tag === 'number') {
1890
+ error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
1891
+ }
1892
+ }
1893
+
1894
+ if (typeof type === 'function') {
1895
+ return type.displayName || type.name || null;
1896
+ }
1897
+
1898
+ if (typeof type === 'string') {
1899
+ return type;
1900
+ }
1901
+
1902
+ switch (type) {
1903
+ case REACT_FRAGMENT_TYPE:
1904
+ return 'Fragment';
1905
+
1906
+ case REACT_PORTAL_TYPE:
1907
+ return 'Portal';
1908
+
1909
+ case REACT_PROFILER_TYPE:
1910
+ return 'Profiler';
1911
+
1912
+ case REACT_STRICT_MODE_TYPE:
1913
+ return 'StrictMode';
1914
+
1915
+ case REACT_SUSPENSE_TYPE:
1916
+ return 'Suspense';
1917
+
1918
+ case REACT_SUSPENSE_LIST_TYPE:
1919
+ return 'SuspenseList';
1920
+
1921
+ }
1922
+
1923
+ if (typeof type === 'object') {
1924
+ switch (type.$$typeof) {
1925
+ case REACT_CONTEXT_TYPE:
1926
+ var context = type;
1927
+ return getContextName(context) + '.Consumer';
1928
+
1929
+ case REACT_PROVIDER_TYPE:
1930
+ var provider = type;
1931
+ return getContextName(provider._context) + '.Provider';
1932
+
1933
+ case REACT_FORWARD_REF_TYPE:
1934
+ return getWrappedName(type, type.render, 'ForwardRef');
1935
+
1936
+ case REACT_MEMO_TYPE:
1937
+ var outerName = type.displayName || null;
1938
+
1939
+ if (outerName !== null) {
1940
+ return outerName;
1941
+ }
1942
+
1943
+ return getComponentNameFromType(type.type) || 'Memo';
1944
+
1945
+ case REACT_LAZY_TYPE:
1946
+ {
1947
+ var lazyComponent = type;
1948
+ var payload = lazyComponent._payload;
1949
+ var init = lazyComponent._init;
1950
+
1951
+ try {
1952
+ return getComponentNameFromType(init(payload));
1953
+ } catch (x) {
1954
+ return null;
1955
+ }
1956
+ }
1957
+
1958
+ // eslint-disable-next-line no-fallthrough
1959
+ }
1960
+ }
1961
+
1962
+ return null;
1963
+ }
1964
+
1965
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
1966
+
1967
+ var RESERVED_PROPS = {
1968
+ key: true,
1969
+ ref: true,
1970
+ __self: true,
1971
+ __source: true
1972
+ };
1973
+ var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
1974
+
1975
+ {
1976
+ didWarnAboutStringRefs = {};
1977
+ }
1978
+
1979
+ function hasValidRef(config) {
1980
+ {
1981
+ if (hasOwnProperty.call(config, 'ref')) {
1982
+ var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
1983
+
1984
+ if (getter && getter.isReactWarning) {
1985
+ return false;
1986
+ }
1987
+ }
1988
+ }
1989
+
1990
+ return config.ref !== undefined;
1991
+ }
1992
+
1993
+ function hasValidKey(config) {
1994
+ {
1995
+ if (hasOwnProperty.call(config, 'key')) {
1996
+ var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
1997
+
1998
+ if (getter && getter.isReactWarning) {
1999
+ return false;
2000
+ }
2001
+ }
2002
+ }
2003
+
2004
+ return config.key !== undefined;
2005
+ }
2006
+
2007
+ function defineKeyPropWarningGetter(props, displayName) {
2008
+ var warnAboutAccessingKey = function () {
2009
+ {
2010
+ if (!specialPropKeyWarningShown) {
2011
+ specialPropKeyWarningShown = true;
2012
+
2013
+ 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://reactjs.org/link/special-props)', displayName);
2014
+ }
2015
+ }
2016
+ };
2017
+
2018
+ warnAboutAccessingKey.isReactWarning = true;
2019
+ Object.defineProperty(props, 'key', {
2020
+ get: warnAboutAccessingKey,
2021
+ configurable: true
2022
+ });
2023
+ }
2024
+
2025
+ function defineRefPropWarningGetter(props, displayName) {
2026
+ var warnAboutAccessingRef = function () {
2027
+ {
2028
+ if (!specialPropRefWarningShown) {
2029
+ specialPropRefWarningShown = true;
2030
+
2031
+ 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://reactjs.org/link/special-props)', displayName);
2032
+ }
2033
+ }
2034
+ };
2035
+
2036
+ warnAboutAccessingRef.isReactWarning = true;
2037
+ Object.defineProperty(props, 'ref', {
2038
+ get: warnAboutAccessingRef,
2039
+ configurable: true
2040
+ });
2041
+ }
2042
+
2043
+ function warnIfStringRefCannotBeAutoConverted(config) {
2044
+ {
2045
+ if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
2046
+ var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
2047
+
2048
+ if (!didWarnAboutStringRefs[componentName]) {
2049
+ 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://reactjs.org/link/strict-mode-string-ref', componentName, config.ref);
2050
+
2051
+ didWarnAboutStringRefs[componentName] = true;
2052
+ }
2053
+ }
2054
+ }
2055
+ }
2056
+ /**
2057
+ * Factory method to create a new React element. This no longer adheres to
2058
+ * the class pattern, so do not use new to call it. Also, instanceof check
2059
+ * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
2060
+ * if something is a React Element.
2061
+ *
2062
+ * @param {*} type
2063
+ * @param {*} props
2064
+ * @param {*} key
2065
+ * @param {string|object} ref
2066
+ * @param {*} owner
2067
+ * @param {*} self A *temporary* helper to detect places where `this` is
2068
+ * different from the `owner` when React.createElement is called, so that we
2069
+ * can warn. We want to get rid of owner and replace string `ref`s with arrow
2070
+ * functions, and as long as `this` and owner are the same, there will be no
2071
+ * change in behavior.
2072
+ * @param {*} source An annotation object (added by a transpiler or otherwise)
2073
+ * indicating filename, line number, and/or other information.
2074
+ * @internal
2075
+ */
2076
+
2077
+
2078
+ var ReactElement = function (type, key, ref, self, source, owner, props) {
2079
+ var element = {
2080
+ // This tag allows us to uniquely identify this as a React Element
2081
+ $$typeof: REACT_ELEMENT_TYPE,
2082
+ // Built-in properties that belong on the element
2083
+ type: type,
2084
+ key: key,
2085
+ ref: ref,
2086
+ props: props,
2087
+ // Record the component responsible for creating this element.
2088
+ _owner: owner
2089
+ };
2090
+
2091
+ {
2092
+ // The validation flag is currently mutative. We put it on
2093
+ // an external backing store so that we can freeze the whole object.
2094
+ // This can be replaced with a WeakMap once they are implemented in
2095
+ // commonly used development environments.
2096
+ element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
2097
+ // the validation flag non-enumerable (where possible, which should
2098
+ // include every environment we run tests in), so the test framework
2099
+ // ignores it.
2100
+
2101
+ Object.defineProperty(element._store, 'validated', {
2102
+ configurable: false,
2103
+ enumerable: false,
2104
+ writable: true,
2105
+ value: false
2106
+ }); // self and source are DEV only properties.
2107
+
2108
+ Object.defineProperty(element, '_self', {
2109
+ configurable: false,
2110
+ enumerable: false,
2111
+ writable: false,
2112
+ value: self
2113
+ }); // Two elements created in two different places should be considered
2114
+ // equal for testing purposes and therefore we hide it from enumeration.
2115
+
2116
+ Object.defineProperty(element, '_source', {
2117
+ configurable: false,
2118
+ enumerable: false,
2119
+ writable: false,
2120
+ value: source
2121
+ });
2122
+
2123
+ if (Object.freeze) {
2124
+ Object.freeze(element.props);
2125
+ Object.freeze(element);
2126
+ }
2127
+ }
2128
+
2129
+ return element;
2130
+ };
2131
+ /**
2132
+ * Create and return a new ReactElement of the given type.
2133
+ * See https://reactjs.org/docs/react-api.html#createelement
2134
+ */
2135
+
2136
+ function createElement(type, config, children) {
2137
+ var propName; // Reserved names are extracted
2138
+
2139
+ var props = {};
2140
+ var key = null;
2141
+ var ref = null;
2142
+ var self = null;
2143
+ var source = null;
2144
+
2145
+ if (config != null) {
2146
+ if (hasValidRef(config)) {
2147
+ ref = config.ref;
2148
+
2149
+ {
2150
+ warnIfStringRefCannotBeAutoConverted(config);
2151
+ }
2152
+ }
2153
+
2154
+ if (hasValidKey(config)) {
2155
+ {
2156
+ checkKeyStringCoercion(config.key);
2157
+ }
2158
+
2159
+ key = '' + config.key;
2160
+ }
2161
+
2162
+ self = config.__self === undefined ? null : config.__self;
2163
+ source = config.__source === undefined ? null : config.__source; // Remaining properties are added to a new props object
2164
+
2165
+ for (propName in config) {
2166
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
2167
+ props[propName] = config[propName];
2168
+ }
2169
+ }
2170
+ } // Children can be more than one argument, and those are transferred onto
2171
+ // the newly allocated props object.
2172
+
2173
+
2174
+ var childrenLength = arguments.length - 2;
2175
+
2176
+ if (childrenLength === 1) {
2177
+ props.children = children;
2178
+ } else if (childrenLength > 1) {
2179
+ var childArray = Array(childrenLength);
2180
+
2181
+ for (var i = 0; i < childrenLength; i++) {
2182
+ childArray[i] = arguments[i + 2];
2183
+ }
2184
+
2185
+ {
2186
+ if (Object.freeze) {
2187
+ Object.freeze(childArray);
2188
+ }
2189
+ }
2190
+
2191
+ props.children = childArray;
2192
+ } // Resolve default props
2193
+
2194
+
2195
+ if (type && type.defaultProps) {
2196
+ var defaultProps = type.defaultProps;
2197
+
2198
+ for (propName in defaultProps) {
2199
+ if (props[propName] === undefined) {
2200
+ props[propName] = defaultProps[propName];
2201
+ }
2202
+ }
2203
+ }
2204
+
2205
+ {
2206
+ if (key || ref) {
2207
+ var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
2208
+
2209
+ if (key) {
2210
+ defineKeyPropWarningGetter(props, displayName);
2211
+ }
2212
+
2213
+ if (ref) {
2214
+ defineRefPropWarningGetter(props, displayName);
2215
+ }
2216
+ }
2217
+ }
2218
+
2219
+ return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
2220
+ }
2221
+ function cloneAndReplaceKey(oldElement, newKey) {
2222
+ var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
2223
+ return newElement;
2224
+ }
2225
+ /**
2226
+ * Clone and return a new ReactElement using element as the starting point.
2227
+ * See https://reactjs.org/docs/react-api.html#cloneelement
2228
+ */
2229
+
2230
+ function cloneElement(element, config, children) {
2231
+ if (element === null || element === undefined) {
2232
+ throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + ".");
2233
+ }
2234
+
2235
+ var propName; // Original props are copied
2236
+
2237
+ var props = assign({}, element.props); // Reserved names are extracted
2238
+
2239
+ var key = element.key;
2240
+ var ref = element.ref; // Self is preserved since the owner is preserved.
2241
+
2242
+ var self = element._self; // Source is preserved since cloneElement is unlikely to be targeted by a
2243
+ // transpiler, and the original source is probably a better indicator of the
2244
+ // true owner.
2245
+
2246
+ var source = element._source; // Owner will be preserved, unless ref is overridden
2247
+
2248
+ var owner = element._owner;
2249
+
2250
+ if (config != null) {
2251
+ if (hasValidRef(config)) {
2252
+ // Silently steal the ref from the parent.
2253
+ ref = config.ref;
2254
+ owner = ReactCurrentOwner.current;
2255
+ }
2256
+
2257
+ if (hasValidKey(config)) {
2258
+ {
2259
+ checkKeyStringCoercion(config.key);
2260
+ }
2261
+
2262
+ key = '' + config.key;
2263
+ } // Remaining properties override existing props
2264
+
2265
+
2266
+ var defaultProps;
2267
+
2268
+ if (element.type && element.type.defaultProps) {
2269
+ defaultProps = element.type.defaultProps;
2270
+ }
2271
+
2272
+ for (propName in config) {
2273
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
2274
+ if (config[propName] === undefined && defaultProps !== undefined) {
2275
+ // Resolve default props
2276
+ props[propName] = defaultProps[propName];
2277
+ } else {
2278
+ props[propName] = config[propName];
2279
+ }
2280
+ }
2281
+ }
2282
+ } // Children can be more than one argument, and those are transferred onto
2283
+ // the newly allocated props object.
2284
+
2285
+
2286
+ var childrenLength = arguments.length - 2;
2287
+
2288
+ if (childrenLength === 1) {
2289
+ props.children = children;
2290
+ } else if (childrenLength > 1) {
2291
+ var childArray = Array(childrenLength);
2292
+
2293
+ for (var i = 0; i < childrenLength; i++) {
2294
+ childArray[i] = arguments[i + 2];
2295
+ }
2296
+
2297
+ props.children = childArray;
2298
+ }
2299
+
2300
+ return ReactElement(element.type, key, ref, self, source, owner, props);
2301
+ }
2302
+ /**
2303
+ * Verifies the object is a ReactElement.
2304
+ * See https://reactjs.org/docs/react-api.html#isvalidelement
2305
+ * @param {?object} object
2306
+ * @return {boolean} True if `object` is a ReactElement.
2307
+ * @final
2308
+ */
2309
+
2310
+ function isValidElement(object) {
2311
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
2312
+ }
2313
+
2314
+ var SEPARATOR = '.';
2315
+ var SUBSEPARATOR = ':';
2316
+ /**
2317
+ * Escape and wrap key so it is safe to use as a reactid
2318
+ *
2319
+ * @param {string} key to be escaped.
2320
+ * @return {string} the escaped key.
2321
+ */
2322
+
2323
+ function escape(key) {
2324
+ var escapeRegex = /[=:]/g;
2325
+ var escaperLookup = {
2326
+ '=': '=0',
2327
+ ':': '=2'
2328
+ };
2329
+ var escapedString = key.replace(escapeRegex, function (match) {
2330
+ return escaperLookup[match];
2331
+ });
2332
+ return '$' + escapedString;
2333
+ }
2334
+ /**
2335
+ * TODO: Test that a single child and an array with one item have the same key
2336
+ * pattern.
2337
+ */
2338
+
2339
+
2340
+ var didWarnAboutMaps = false;
2341
+ var userProvidedKeyEscapeRegex = /\/+/g;
2342
+
2343
+ function escapeUserProvidedKey(text) {
2344
+ return text.replace(userProvidedKeyEscapeRegex, '$&/');
2345
+ }
2346
+ /**
2347
+ * Generate a key string that identifies a element within a set.
2348
+ *
2349
+ * @param {*} element A element that could contain a manual key.
2350
+ * @param {number} index Index that is used if a manual key is not provided.
2351
+ * @return {string}
2352
+ */
2353
+
2354
+
2355
+ function getElementKey(element, index) {
2356
+ // Do some typechecking here since we call this blindly. We want to ensure
2357
+ // that we don't block potential future ES APIs.
2358
+ if (typeof element === 'object' && element !== null && element.key != null) {
2359
+ // Explicit key
2360
+ {
2361
+ checkKeyStringCoercion(element.key);
2362
+ }
2363
+
2364
+ return escape('' + element.key);
2365
+ } // Implicit key determined by the index in the set
2366
+
2367
+
2368
+ return index.toString(36);
2369
+ }
2370
+
2371
+ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
2372
+ var type = typeof children;
2373
+
2374
+ if (type === 'undefined' || type === 'boolean') {
2375
+ // All of the above are perceived as null.
2376
+ children = null;
2377
+ }
2378
+
2379
+ var invokeCallback = false;
2380
+
2381
+ if (children === null) {
2382
+ invokeCallback = true;
2383
+ } else {
2384
+ switch (type) {
2385
+ case 'string':
2386
+ case 'number':
2387
+ invokeCallback = true;
2388
+ break;
2389
+
2390
+ case 'object':
2391
+ switch (children.$$typeof) {
2392
+ case REACT_ELEMENT_TYPE:
2393
+ case REACT_PORTAL_TYPE:
2394
+ invokeCallback = true;
2395
+ }
2396
+
2397
+ }
2398
+ }
2399
+
2400
+ if (invokeCallback) {
2401
+ var _child = children;
2402
+ var mappedChild = callback(_child); // If it's the only child, treat the name as if it was wrapped in an array
2403
+ // so that it's consistent if the number of children grows:
2404
+
2405
+ var childKey = nameSoFar === '' ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;
2406
+
2407
+ if (isArray(mappedChild)) {
2408
+ var escapedChildKey = '';
2409
+
2410
+ if (childKey != null) {
2411
+ escapedChildKey = escapeUserProvidedKey(childKey) + '/';
2412
+ }
2413
+
2414
+ mapIntoArray(mappedChild, array, escapedChildKey, '', function (c) {
2415
+ return c;
2416
+ });
2417
+ } else if (mappedChild != null) {
2418
+ if (isValidElement(mappedChild)) {
2419
+ {
2420
+ // The `if` statement here prevents auto-disabling of the safe
2421
+ // coercion ESLint rule, so we must manually disable it below.
2422
+ // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
2423
+ if (mappedChild.key && (!_child || _child.key !== mappedChild.key)) {
2424
+ checkKeyStringCoercion(mappedChild.key);
2425
+ }
2426
+ }
2427
+
2428
+ mappedChild = cloneAndReplaceKey(mappedChild, // Keep both the (mapped) and old keys if they differ, just as
2429
+ // traverseAllChildren used to do for objects as children
2430
+ escapedPrefix + ( // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
2431
+ mappedChild.key && (!_child || _child.key !== mappedChild.key) ? // $FlowFixMe Flow incorrectly thinks existing element's key can be a number
2432
+ // eslint-disable-next-line react-internal/safe-string-coercion
2433
+ escapeUserProvidedKey('' + mappedChild.key) + '/' : '') + childKey);
2434
+ }
2435
+
2436
+ array.push(mappedChild);
2437
+ }
2438
+
2439
+ return 1;
2440
+ }
2441
+
2442
+ var child;
2443
+ var nextName;
2444
+ var subtreeCount = 0; // Count of children found in the current subtree.
2445
+
2446
+ var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
2447
+
2448
+ if (isArray(children)) {
2449
+ for (var i = 0; i < children.length; i++) {
2450
+ child = children[i];
2451
+ nextName = nextNamePrefix + getElementKey(child, i);
2452
+ subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
2453
+ }
2454
+ } else {
2455
+ var iteratorFn = getIteratorFn(children);
2456
+
2457
+ if (typeof iteratorFn === 'function') {
2458
+ var iterableChildren = children;
2459
+
2460
+ {
2461
+ // Warn about using Maps as children
2462
+ if (iteratorFn === iterableChildren.entries) {
2463
+ if (!didWarnAboutMaps) {
2464
+ warn('Using Maps as children is not supported. ' + 'Use an array of keyed ReactElements instead.');
2465
+ }
2466
+
2467
+ didWarnAboutMaps = true;
2468
+ }
2469
+ }
2470
+
2471
+ var iterator = iteratorFn.call(iterableChildren);
2472
+ var step;
2473
+ var ii = 0;
2474
+
2475
+ while (!(step = iterator.next()).done) {
2476
+ child = step.value;
2477
+ nextName = nextNamePrefix + getElementKey(child, ii++);
2478
+ subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
2479
+ }
2480
+ } else if (type === 'object') {
2481
+ // eslint-disable-next-line react-internal/safe-string-coercion
2482
+ var childrenString = String(children);
2483
+ throw new Error("Objects are not valid as a React child (found: " + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + "). " + 'If you meant to render a collection of children, use an array ' + 'instead.');
2484
+ }
2485
+ }
2486
+
2487
+ return subtreeCount;
2488
+ }
2489
+
2490
+ /**
2491
+ * Maps children that are typically specified as `props.children`.
2492
+ *
2493
+ * See https://reactjs.org/docs/react-api.html#reactchildrenmap
2494
+ *
2495
+ * The provided mapFunction(child, index) will be called for each
2496
+ * leaf child.
2497
+ *
2498
+ * @param {?*} children Children tree container.
2499
+ * @param {function(*, int)} func The map function.
2500
+ * @param {*} context Context for mapFunction.
2501
+ * @return {object} Object containing the ordered map of results.
2502
+ */
2503
+ function mapChildren(children, func, context) {
2504
+ if (children == null) {
2505
+ return children;
2506
+ }
2507
+
2508
+ var result = [];
2509
+ var count = 0;
2510
+ mapIntoArray(children, result, '', '', function (child) {
2511
+ return func.call(context, child, count++);
2512
+ });
2513
+ return result;
2514
+ }
2515
+ /**
2516
+ * Count the number of children that are typically specified as
2517
+ * `props.children`.
2518
+ *
2519
+ * See https://reactjs.org/docs/react-api.html#reactchildrencount
2520
+ *
2521
+ * @param {?*} children Children tree container.
2522
+ * @return {number} The number of children.
2523
+ */
2524
+
2525
+
2526
+ function countChildren(children) {
2527
+ var n = 0;
2528
+ mapChildren(children, function () {
2529
+ n++; // Don't return anything
2530
+ });
2531
+ return n;
2532
+ }
2533
+
2534
+ /**
2535
+ * Iterates through children that are typically specified as `props.children`.
2536
+ *
2537
+ * See https://reactjs.org/docs/react-api.html#reactchildrenforeach
2538
+ *
2539
+ * The provided forEachFunc(child, index) will be called for each
2540
+ * leaf child.
2541
+ *
2542
+ * @param {?*} children Children tree container.
2543
+ * @param {function(*, int)} forEachFunc
2544
+ * @param {*} forEachContext Context for forEachContext.
2545
+ */
2546
+ function forEachChildren(children, forEachFunc, forEachContext) {
2547
+ mapChildren(children, function () {
2548
+ forEachFunc.apply(this, arguments); // Don't return anything.
2549
+ }, forEachContext);
2550
+ }
2551
+ /**
2552
+ * Flatten a children object (typically specified as `props.children`) and
2553
+ * return an array with appropriately re-keyed children.
2554
+ *
2555
+ * See https://reactjs.org/docs/react-api.html#reactchildrentoarray
2556
+ */
2557
+
2558
+
2559
+ function toArray(children) {
2560
+ return mapChildren(children, function (child) {
2561
+ return child;
2562
+ }) || [];
2563
+ }
2564
+ /**
2565
+ * Returns the first child in a collection of children and verifies that there
2566
+ * is only one child in the collection.
2567
+ *
2568
+ * See https://reactjs.org/docs/react-api.html#reactchildrenonly
2569
+ *
2570
+ * The current implementation of this function assumes that a single child gets
2571
+ * passed without a wrapper, but the purpose of this helper function is to
2572
+ * abstract away the particular structure of children.
2573
+ *
2574
+ * @param {?object} children Child collection structure.
2575
+ * @return {ReactElement} The first and only `ReactElement` contained in the
2576
+ * structure.
2577
+ */
2578
+
2579
+
2580
+ function onlyChild(children) {
2581
+ if (!isValidElement(children)) {
2582
+ throw new Error('React.Children.only expected to receive a single React element child.');
2583
+ }
2584
+
2585
+ return children;
2586
+ }
2587
+
2588
+ function createContext(defaultValue) {
2589
+ // TODO: Second argument used to be an optional `calculateChangedBits`
2590
+ // function. Warn to reserve for future use?
2591
+ var context = {
2592
+ $$typeof: REACT_CONTEXT_TYPE,
2593
+ // As a workaround to support multiple concurrent renderers, we categorize
2594
+ // some renderers as primary and others as secondary. We only expect
2595
+ // there to be two concurrent renderers at most: React Native (primary) and
2596
+ // Fabric (secondary); React DOM (primary) and React ART (secondary).
2597
+ // Secondary renderers store their context values on separate fields.
2598
+ _currentValue: defaultValue,
2599
+ _currentValue2: defaultValue,
2600
+ // Used to track how many concurrent renderers this context currently
2601
+ // supports within in a single renderer. Such as parallel server rendering.
2602
+ _threadCount: 0,
2603
+ // These are circular
2604
+ Provider: null,
2605
+ Consumer: null,
2606
+ // Add these to use same hidden class in VM as ServerContext
2607
+ _defaultValue: null,
2608
+ _globalName: null
2609
+ };
2610
+ context.Provider = {
2611
+ $$typeof: REACT_PROVIDER_TYPE,
2612
+ _context: context
2613
+ };
2614
+ var hasWarnedAboutUsingNestedContextConsumers = false;
2615
+ var hasWarnedAboutUsingConsumerProvider = false;
2616
+ var hasWarnedAboutDisplayNameOnConsumer = false;
2617
+
2618
+ {
2619
+ // A separate object, but proxies back to the original context object for
2620
+ // backwards compatibility. It has a different $$typeof, so we can properly
2621
+ // warn for the incorrect usage of Context as a Consumer.
2622
+ var Consumer = {
2623
+ $$typeof: REACT_CONTEXT_TYPE,
2624
+ _context: context
2625
+ }; // $FlowFixMe: Flow complains about not setting a value, which is intentional here
2626
+
2627
+ Object.defineProperties(Consumer, {
2628
+ Provider: {
2629
+ get: function () {
2630
+ if (!hasWarnedAboutUsingConsumerProvider) {
2631
+ hasWarnedAboutUsingConsumerProvider = true;
2632
+
2633
+ 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?');
2634
+ }
2635
+
2636
+ return context.Provider;
2637
+ },
2638
+ set: function (_Provider) {
2639
+ context.Provider = _Provider;
2640
+ }
2641
+ },
2642
+ _currentValue: {
2643
+ get: function () {
2644
+ return context._currentValue;
2645
+ },
2646
+ set: function (_currentValue) {
2647
+ context._currentValue = _currentValue;
2648
+ }
2649
+ },
2650
+ _currentValue2: {
2651
+ get: function () {
2652
+ return context._currentValue2;
2653
+ },
2654
+ set: function (_currentValue2) {
2655
+ context._currentValue2 = _currentValue2;
2656
+ }
2657
+ },
2658
+ _threadCount: {
2659
+ get: function () {
2660
+ return context._threadCount;
2661
+ },
2662
+ set: function (_threadCount) {
2663
+ context._threadCount = _threadCount;
2664
+ }
2665
+ },
2666
+ Consumer: {
2667
+ get: function () {
2668
+ if (!hasWarnedAboutUsingNestedContextConsumers) {
2669
+ hasWarnedAboutUsingNestedContextConsumers = true;
2670
+
2671
+ 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?');
2672
+ }
2673
+
2674
+ return context.Consumer;
2675
+ }
2676
+ },
2677
+ displayName: {
2678
+ get: function () {
2679
+ return context.displayName;
2680
+ },
2681
+ set: function (displayName) {
2682
+ if (!hasWarnedAboutDisplayNameOnConsumer) {
2683
+ warn('Setting `displayName` on Context.Consumer has no effect. ' + "You should set it directly on the context with Context.displayName = '%s'.", displayName);
2684
+
2685
+ hasWarnedAboutDisplayNameOnConsumer = true;
2686
+ }
2687
+ }
2688
+ }
2689
+ }); // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty
2690
+
2691
+ context.Consumer = Consumer;
2692
+ }
2693
+
2694
+ {
2695
+ context._currentRenderer = null;
2696
+ context._currentRenderer2 = null;
2697
+ }
2698
+
2699
+ return context;
2700
+ }
2701
+
2702
+ var Uninitialized = -1;
2703
+ var Pending = 0;
2704
+ var Resolved = 1;
2705
+ var Rejected = 2;
2706
+
2707
+ function lazyInitializer(payload) {
2708
+ if (payload._status === Uninitialized) {
2709
+ var ctor = payload._result;
2710
+ var thenable = ctor(); // Transition to the next state.
2711
+ // This might throw either because it's missing or throws. If so, we treat it
2712
+ // as still uninitialized and try again next time. Which is the same as what
2713
+ // happens if the ctor or any wrappers processing the ctor throws. This might
2714
+ // end up fixing it if the resolution was a concurrency bug.
2715
+
2716
+ thenable.then(function (moduleObject) {
2717
+ if (payload._status === Pending || payload._status === Uninitialized) {
2718
+ // Transition to the next state.
2719
+ var resolved = payload;
2720
+ resolved._status = Resolved;
2721
+ resolved._result = moduleObject;
2722
+ }
2723
+ }, function (error) {
2724
+ if (payload._status === Pending || payload._status === Uninitialized) {
2725
+ // Transition to the next state.
2726
+ var rejected = payload;
2727
+ rejected._status = Rejected;
2728
+ rejected._result = error;
2729
+ }
2730
+ });
2731
+
2732
+ if (payload._status === Uninitialized) {
2733
+ // In case, we're still uninitialized, then we're waiting for the thenable
2734
+ // to resolve. Set it as pending in the meantime.
2735
+ var pending = payload;
2736
+ pending._status = Pending;
2737
+ pending._result = thenable;
2738
+ }
2739
+ }
2740
+
2741
+ if (payload._status === Resolved) {
2742
+ var moduleObject = payload._result;
2743
+
2744
+ {
2745
+ if (moduleObject === undefined) {
2746
+ error('lazy: Expected the result of a dynamic imp' + 'ort() call. ' + 'Instead received: %s\n\nYour code should look like: \n ' + // Break up imports to avoid accidentally parsing them as dependencies.
2747
+ 'const MyComponent = lazy(() => imp' + "ort('./MyComponent'))\n\n" + 'Did you accidentally put curly braces around the import?', moduleObject);
2748
+ }
2749
+ }
2750
+
2751
+ {
2752
+ if (!('default' in moduleObject)) {
2753
+ error('lazy: Expected the result of a dynamic imp' + 'ort() call. ' + 'Instead received: %s\n\nYour code should look like: \n ' + // Break up imports to avoid accidentally parsing them as dependencies.
2754
+ 'const MyComponent = lazy(() => imp' + "ort('./MyComponent'))", moduleObject);
2755
+ }
2756
+ }
2757
+
2758
+ return moduleObject.default;
2759
+ } else {
2760
+ throw payload._result;
2761
+ }
2762
+ }
2763
+
2764
+ function lazy(ctor) {
2765
+ var payload = {
2766
+ // We use these fields to store the result.
2767
+ _status: Uninitialized,
2768
+ _result: ctor
2769
+ };
2770
+ var lazyType = {
2771
+ $$typeof: REACT_LAZY_TYPE,
2772
+ _payload: payload,
2773
+ _init: lazyInitializer
2774
+ };
2775
+
2776
+ {
2777
+ // In production, this would just set it on the object.
2778
+ var defaultProps;
2779
+ var propTypes; // $FlowFixMe
2780
+
2781
+ Object.defineProperties(lazyType, {
2782
+ defaultProps: {
2783
+ configurable: true,
2784
+ get: function () {
2785
+ return defaultProps;
2786
+ },
2787
+ set: function (newDefaultProps) {
2788
+ 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.');
2789
+
2790
+ defaultProps = newDefaultProps; // Match production behavior more closely:
2791
+ // $FlowFixMe
2792
+
2793
+ Object.defineProperty(lazyType, 'defaultProps', {
2794
+ enumerable: true
2795
+ });
2796
+ }
2797
+ },
2798
+ propTypes: {
2799
+ configurable: true,
2800
+ get: function () {
2801
+ return propTypes;
2802
+ },
2803
+ set: function (newPropTypes) {
2804
+ 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.');
2805
+
2806
+ propTypes = newPropTypes; // Match production behavior more closely:
2807
+ // $FlowFixMe
2808
+
2809
+ Object.defineProperty(lazyType, 'propTypes', {
2810
+ enumerable: true
2811
+ });
2812
+ }
2813
+ }
2814
+ });
2815
+ }
2816
+
2817
+ return lazyType;
2818
+ }
2819
+
2820
+ function forwardRef(render) {
2821
+ {
2822
+ if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
2823
+ error('forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');
2824
+ } else if (typeof render !== 'function') {
2825
+ error('forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
2826
+ } else {
2827
+ if (render.length !== 0 && render.length !== 2) {
2828
+ 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.');
2829
+ }
2830
+ }
2831
+
2832
+ if (render != null) {
2833
+ if (render.defaultProps != null || render.propTypes != null) {
2834
+ error('forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?');
2835
+ }
2836
+ }
2837
+ }
2838
+
2839
+ var elementType = {
2840
+ $$typeof: REACT_FORWARD_REF_TYPE,
2841
+ render: render
2842
+ };
2843
+
2844
+ {
2845
+ var ownName;
2846
+ Object.defineProperty(elementType, 'displayName', {
2847
+ enumerable: false,
2848
+ configurable: true,
2849
+ get: function () {
2850
+ return ownName;
2851
+ },
2852
+ set: function (name) {
2853
+ ownName = name; // The inner component shouldn't inherit this display name in most cases,
2854
+ // because the component may be used elsewhere.
2855
+ // But it's nice for anonymous functions to inherit the name,
2856
+ // so that our component-stack generation logic will display their frames.
2857
+ // An anonymous function generally suggests a pattern like:
2858
+ // React.forwardRef((props, ref) => {...});
2859
+ // This kind of inner function is not used elsewhere so the side effect is okay.
2860
+
2861
+ if (!render.name && !render.displayName) {
2862
+ render.displayName = name;
2863
+ }
2864
+ }
2865
+ });
2866
+ }
2867
+
2868
+ return elementType;
2869
+ }
2870
+
2871
+ var REACT_MODULE_REFERENCE;
2872
+
2873
+ {
2874
+ REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
2875
+ }
2876
+
2877
+ function isValidElementType(type) {
2878
+ if (typeof type === 'string' || typeof type === 'function') {
2879
+ return true;
2880
+ } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
2881
+
2882
+
2883
+ if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {
2884
+ return true;
2885
+ }
2886
+
2887
+ if (typeof type === 'object' && type !== null) {
2888
+ if (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 || // This needs to include all possible module reference object
2889
+ // types supported by any Flight configuration anywhere since
2890
+ // we don't know which Flight build this will end up being used
2891
+ // with.
2892
+ type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
2893
+ return true;
2894
+ }
2895
+ }
2896
+
2897
+ return false;
2898
+ }
2899
+
2900
+ function memo(type, compare) {
2901
+ {
2902
+ if (!isValidElementType(type)) {
2903
+ error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);
2904
+ }
2905
+ }
2906
+
2907
+ var elementType = {
2908
+ $$typeof: REACT_MEMO_TYPE,
2909
+ type: type,
2910
+ compare: compare === undefined ? null : compare
2911
+ };
2912
+
2913
+ {
2914
+ var ownName;
2915
+ Object.defineProperty(elementType, 'displayName', {
2916
+ enumerable: false,
2917
+ configurable: true,
2918
+ get: function () {
2919
+ return ownName;
2920
+ },
2921
+ set: function (name) {
2922
+ ownName = name; // The inner component shouldn't inherit this display name in most cases,
2923
+ // because the component may be used elsewhere.
2924
+ // But it's nice for anonymous functions to inherit the name,
2925
+ // so that our component-stack generation logic will display their frames.
2926
+ // An anonymous function generally suggests a pattern like:
2927
+ // React.memo((props) => {...});
2928
+ // This kind of inner function is not used elsewhere so the side effect is okay.
2929
+
2930
+ if (!type.name && !type.displayName) {
2931
+ type.displayName = name;
2932
+ }
2933
+ }
2934
+ });
2935
+ }
2936
+
2937
+ return elementType;
2938
+ }
2939
+
2940
+ function resolveDispatcher() {
2941
+ var dispatcher = ReactCurrentDispatcher.current;
2942
+
2943
+ {
2944
+ if (dispatcher === null) {
2945
+ 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:\n' + '1. You might have mismatching versions of React and the renderer (such as React DOM)\n' + '2. You might be breaking the Rules of Hooks\n' + '3. You might have more than one copy of React in the same app\n' + 'See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.');
2946
+ }
2947
+ } // Will result in a null access error if accessed outside render phase. We
2948
+ // intentionally don't throw our own error because this is in a hot path.
2949
+ // Also helps ensure this is inlined.
2950
+
2951
+
2952
+ return dispatcher;
2953
+ }
2954
+ function useContext(Context) {
2955
+ var dispatcher = resolveDispatcher();
2956
+
2957
+ {
2958
+ // TODO: add a more generic warning for invalid values.
2959
+ if (Context._context !== undefined) {
2960
+ var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs
2961
+ // and nobody should be using this in existing code.
2962
+
2963
+ if (realContext.Consumer === Context) {
2964
+ 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?');
2965
+ } else if (realContext.Provider === Context) {
2966
+ error('Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');
2967
+ }
2968
+ }
2969
+ }
2970
+
2971
+ return dispatcher.useContext(Context);
2972
+ }
2973
+ function useState(initialState) {
2974
+ var dispatcher = resolveDispatcher();
2975
+ return dispatcher.useState(initialState);
2976
+ }
2977
+ function useReducer(reducer, initialArg, init) {
2978
+ var dispatcher = resolveDispatcher();
2979
+ return dispatcher.useReducer(reducer, initialArg, init);
2980
+ }
2981
+ function useRef(initialValue) {
2982
+ var dispatcher = resolveDispatcher();
2983
+ return dispatcher.useRef(initialValue);
2984
+ }
2985
+ function useEffect(create, deps) {
2986
+ var dispatcher = resolveDispatcher();
2987
+ return dispatcher.useEffect(create, deps);
2988
+ }
2989
+ function useInsertionEffect(create, deps) {
2990
+ var dispatcher = resolveDispatcher();
2991
+ return dispatcher.useInsertionEffect(create, deps);
2992
+ }
2993
+ function useLayoutEffect(create, deps) {
2994
+ var dispatcher = resolveDispatcher();
2995
+ return dispatcher.useLayoutEffect(create, deps);
2996
+ }
2997
+ function useCallback(callback, deps) {
2998
+ var dispatcher = resolveDispatcher();
2999
+ return dispatcher.useCallback(callback, deps);
3000
+ }
3001
+ function useMemo(create, deps) {
3002
+ var dispatcher = resolveDispatcher();
3003
+ return dispatcher.useMemo(create, deps);
3004
+ }
3005
+ function useImperativeHandle(ref, create, deps) {
3006
+ var dispatcher = resolveDispatcher();
3007
+ return dispatcher.useImperativeHandle(ref, create, deps);
3008
+ }
3009
+ function useDebugValue(value, formatterFn) {
3010
+ {
3011
+ var dispatcher = resolveDispatcher();
3012
+ return dispatcher.useDebugValue(value, formatterFn);
3013
+ }
3014
+ }
3015
+ function useTransition() {
3016
+ var dispatcher = resolveDispatcher();
3017
+ return dispatcher.useTransition();
3018
+ }
3019
+ function useDeferredValue(value) {
3020
+ var dispatcher = resolveDispatcher();
3021
+ return dispatcher.useDeferredValue(value);
3022
+ }
3023
+ function useId() {
3024
+ var dispatcher = resolveDispatcher();
3025
+ return dispatcher.useId();
3026
+ }
3027
+ function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
3028
+ var dispatcher = resolveDispatcher();
3029
+ return dispatcher.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
3030
+ }
3031
+
3032
+ // Helpers to patch console.logs to avoid logging during side-effect free
3033
+ // replaying on render function. This currently only patches the object
3034
+ // lazily which won't cover if the log function was extracted eagerly.
3035
+ // We could also eagerly patch the method.
3036
+ var disabledDepth = 0;
3037
+ var prevLog;
3038
+ var prevInfo;
3039
+ var prevWarn;
3040
+ var prevError;
3041
+ var prevGroup;
3042
+ var prevGroupCollapsed;
3043
+ var prevGroupEnd;
3044
+
3045
+ function disabledLog() {}
3046
+
3047
+ disabledLog.__reactDisabledLog = true;
3048
+ function disableLogs() {
3049
+ {
3050
+ if (disabledDepth === 0) {
3051
+ /* eslint-disable react-internal/no-production-logging */
3052
+ prevLog = console.log;
3053
+ prevInfo = console.info;
3054
+ prevWarn = console.warn;
3055
+ prevError = console.error;
3056
+ prevGroup = console.group;
3057
+ prevGroupCollapsed = console.groupCollapsed;
3058
+ prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099
3059
+
3060
+ var props = {
3061
+ configurable: true,
3062
+ enumerable: true,
3063
+ value: disabledLog,
3064
+ writable: true
3065
+ }; // $FlowFixMe Flow thinks console is immutable.
3066
+
3067
+ Object.defineProperties(console, {
3068
+ info: props,
3069
+ log: props,
3070
+ warn: props,
3071
+ error: props,
3072
+ group: props,
3073
+ groupCollapsed: props,
3074
+ groupEnd: props
3075
+ });
3076
+ /* eslint-enable react-internal/no-production-logging */
3077
+ }
3078
+
3079
+ disabledDepth++;
3080
+ }
3081
+ }
3082
+ function reenableLogs() {
3083
+ {
3084
+ disabledDepth--;
3085
+
3086
+ if (disabledDepth === 0) {
3087
+ /* eslint-disable react-internal/no-production-logging */
3088
+ var props = {
3089
+ configurable: true,
3090
+ enumerable: true,
3091
+ writable: true
3092
+ }; // $FlowFixMe Flow thinks console is immutable.
3093
+
3094
+ Object.defineProperties(console, {
3095
+ log: assign({}, props, {
3096
+ value: prevLog
3097
+ }),
3098
+ info: assign({}, props, {
3099
+ value: prevInfo
3100
+ }),
3101
+ warn: assign({}, props, {
3102
+ value: prevWarn
3103
+ }),
3104
+ error: assign({}, props, {
3105
+ value: prevError
3106
+ }),
3107
+ group: assign({}, props, {
3108
+ value: prevGroup
3109
+ }),
3110
+ groupCollapsed: assign({}, props, {
3111
+ value: prevGroupCollapsed
3112
+ }),
3113
+ groupEnd: assign({}, props, {
3114
+ value: prevGroupEnd
3115
+ })
3116
+ });
3117
+ /* eslint-enable react-internal/no-production-logging */
3118
+ }
3119
+
3120
+ if (disabledDepth < 0) {
3121
+ error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
3122
+ }
3123
+ }
3124
+ }
3125
+
3126
+ var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;
3127
+ var prefix;
3128
+ function describeBuiltInComponentFrame(name, source, ownerFn) {
3129
+ {
3130
+ if (prefix === undefined) {
3131
+ // Extract the VM specific prefix used by each line.
3132
+ try {
3133
+ throw Error();
3134
+ } catch (x) {
3135
+ var match = x.stack.trim().match(/\n( *(at )?)/);
3136
+ prefix = match && match[1] || '';
3137
+ }
3138
+ } // We use the prefix to ensure our stacks line up with native stack frames.
3139
+
3140
+
3141
+ return '\n' + prefix + name;
3142
+ }
3143
+ }
3144
+ var reentry = false;
3145
+ var componentFrameCache;
3146
+
3147
+ {
3148
+ var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
3149
+ componentFrameCache = new PossiblyWeakMap();
3150
+ }
3151
+
3152
+ function describeNativeComponentFrame(fn, construct) {
3153
+ // If something asked for a stack inside a fake render, it should get ignored.
3154
+ if ( !fn || reentry) {
3155
+ return '';
3156
+ }
3157
+
3158
+ {
3159
+ var frame = componentFrameCache.get(fn);
3160
+
3161
+ if (frame !== undefined) {
3162
+ return frame;
3163
+ }
3164
+ }
3165
+
3166
+ var control;
3167
+ reentry = true;
3168
+ var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.
3169
+
3170
+ Error.prepareStackTrace = undefined;
3171
+ var previousDispatcher;
3172
+
3173
+ {
3174
+ previousDispatcher = ReactCurrentDispatcher$1.current; // Set the dispatcher in DEV because this might be call in the render function
3175
+ // for warnings.
3176
+
3177
+ ReactCurrentDispatcher$1.current = null;
3178
+ disableLogs();
3179
+ }
3180
+
3181
+ try {
3182
+ // This should throw.
3183
+ if (construct) {
3184
+ // Something should be setting the props in the constructor.
3185
+ var Fake = function () {
3186
+ throw Error();
3187
+ }; // $FlowFixMe
3188
+
3189
+
3190
+ Object.defineProperty(Fake.prototype, 'props', {
3191
+ set: function () {
3192
+ // We use a throwing setter instead of frozen or non-writable props
3193
+ // because that won't throw in a non-strict mode function.
3194
+ throw Error();
3195
+ }
3196
+ });
3197
+
3198
+ if (typeof Reflect === 'object' && Reflect.construct) {
3199
+ // We construct a different control for this case to include any extra
3200
+ // frames added by the construct call.
3201
+ try {
3202
+ Reflect.construct(Fake, []);
3203
+ } catch (x) {
3204
+ control = x;
3205
+ }
3206
+
3207
+ Reflect.construct(fn, [], Fake);
3208
+ } else {
3209
+ try {
3210
+ Fake.call();
3211
+ } catch (x) {
3212
+ control = x;
3213
+ }
3214
+
3215
+ fn.call(Fake.prototype);
3216
+ }
3217
+ } else {
3218
+ try {
3219
+ throw Error();
3220
+ } catch (x) {
3221
+ control = x;
3222
+ }
3223
+
3224
+ fn();
3225
+ }
3226
+ } catch (sample) {
3227
+ // This is inlined manually because closure doesn't do it for us.
3228
+ if (sample && control && typeof sample.stack === 'string') {
3229
+ // This extracts the first frame from the sample that isn't also in the control.
3230
+ // Skipping one frame that we assume is the frame that calls the two.
3231
+ var sampleLines = sample.stack.split('\n');
3232
+ var controlLines = control.stack.split('\n');
3233
+ var s = sampleLines.length - 1;
3234
+ var c = controlLines.length - 1;
3235
+
3236
+ while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
3237
+ // We expect at least one stack frame to be shared.
3238
+ // Typically this will be the root most one. However, stack frames may be
3239
+ // cut off due to maximum stack limits. In this case, one maybe cut off
3240
+ // earlier than the other. We assume that the sample is longer or the same
3241
+ // and there for cut off earlier. So we should find the root most frame in
3242
+ // the sample somewhere in the control.
3243
+ c--;
3244
+ }
3245
+
3246
+ for (; s >= 1 && c >= 0; s--, c--) {
3247
+ // Next we find the first one that isn't the same which should be the
3248
+ // frame that called our sample function and the control.
3249
+ if (sampleLines[s] !== controlLines[c]) {
3250
+ // In V8, the first line is describing the message but other VMs don't.
3251
+ // If we're about to return the first line, and the control is also on the same
3252
+ // line, that's a pretty good indicator that our sample threw at same line as
3253
+ // the control. I.e. before we entered the sample frame. So we ignore this result.
3254
+ // This can happen if you passed a class to function component, or non-function.
3255
+ if (s !== 1 || c !== 1) {
3256
+ do {
3257
+ s--;
3258
+ c--; // We may still have similar intermediate frames from the construct call.
3259
+ // The next one that isn't the same should be our match though.
3260
+
3261
+ if (c < 0 || sampleLines[s] !== controlLines[c]) {
3262
+ // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
3263
+ var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "<anonymous>"
3264
+ // but we have a user-provided "displayName"
3265
+ // splice it in to make the stack more readable.
3266
+
3267
+
3268
+ if (fn.displayName && _frame.includes('<anonymous>')) {
3269
+ _frame = _frame.replace('<anonymous>', fn.displayName);
3270
+ }
3271
+
3272
+ {
3273
+ if (typeof fn === 'function') {
3274
+ componentFrameCache.set(fn, _frame);
3275
+ }
3276
+ } // Return the line we found.
3277
+
3278
+
3279
+ return _frame;
3280
+ }
3281
+ } while (s >= 1 && c >= 0);
3282
+ }
3283
+
3284
+ break;
3285
+ }
3286
+ }
3287
+ }
3288
+ } finally {
3289
+ reentry = false;
3290
+
3291
+ {
3292
+ ReactCurrentDispatcher$1.current = previousDispatcher;
3293
+ reenableLogs();
3294
+ }
3295
+
3296
+ Error.prepareStackTrace = previousPrepareStackTrace;
3297
+ } // Fallback to just using the name if we couldn't make it throw.
3298
+
3299
+
3300
+ var name = fn ? fn.displayName || fn.name : '';
3301
+ var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
3302
+
3303
+ {
3304
+ if (typeof fn === 'function') {
3305
+ componentFrameCache.set(fn, syntheticFrame);
3306
+ }
3307
+ }
3308
+
3309
+ return syntheticFrame;
3310
+ }
3311
+ function describeFunctionComponentFrame(fn, source, ownerFn) {
3312
+ {
3313
+ return describeNativeComponentFrame(fn, false);
3314
+ }
3315
+ }
3316
+
3317
+ function shouldConstruct(Component) {
3318
+ var prototype = Component.prototype;
3319
+ return !!(prototype && prototype.isReactComponent);
3320
+ }
3321
+
3322
+ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
3323
+
3324
+ if (type == null) {
3325
+ return '';
3326
+ }
3327
+
3328
+ if (typeof type === 'function') {
3329
+ {
3330
+ return describeNativeComponentFrame(type, shouldConstruct(type));
3331
+ }
3332
+ }
3333
+
3334
+ if (typeof type === 'string') {
3335
+ return describeBuiltInComponentFrame(type);
3336
+ }
3337
+
3338
+ switch (type) {
3339
+ case REACT_SUSPENSE_TYPE:
3340
+ return describeBuiltInComponentFrame('Suspense');
3341
+
3342
+ case REACT_SUSPENSE_LIST_TYPE:
3343
+ return describeBuiltInComponentFrame('SuspenseList');
3344
+ }
3345
+
3346
+ if (typeof type === 'object') {
3347
+ switch (type.$$typeof) {
3348
+ case REACT_FORWARD_REF_TYPE:
3349
+ return describeFunctionComponentFrame(type.render);
3350
+
3351
+ case REACT_MEMO_TYPE:
3352
+ // Memo may contain any component type so we recursively resolve it.
3353
+ return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
3354
+
3355
+ case REACT_LAZY_TYPE:
3356
+ {
3357
+ var lazyComponent = type;
3358
+ var payload = lazyComponent._payload;
3359
+ var init = lazyComponent._init;
3360
+
3361
+ try {
3362
+ // Lazy may contain any component type so we recursively resolve it.
3363
+ return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
3364
+ } catch (x) {}
3365
+ }
3366
+ }
3367
+ }
3368
+
3369
+ return '';
3370
+ }
3371
+
3372
+ var loggedTypeFailures = {};
3373
+ var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
3374
+
3375
+ function setCurrentlyValidatingElement(element) {
3376
+ {
3377
+ if (element) {
3378
+ var owner = element._owner;
3379
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
3380
+ ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
3381
+ } else {
3382
+ ReactDebugCurrentFrame$1.setExtraStackFrame(null);
3383
+ }
3384
+ }
3385
+ }
3386
+
3387
+ function checkPropTypes(typeSpecs, values, location, componentName, element) {
3388
+ {
3389
+ // $FlowFixMe This is okay but Flow doesn't know it.
3390
+ var has = Function.call.bind(hasOwnProperty);
3391
+
3392
+ for (var typeSpecName in typeSpecs) {
3393
+ if (has(typeSpecs, typeSpecName)) {
3394
+ var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
3395
+ // fail the render phase where it didn't fail before. So we log it.
3396
+ // After these have been cleaned up, we'll let them throw.
3397
+
3398
+ try {
3399
+ // This is intentionally an invariant that gets caught. It's the same
3400
+ // behavior as without this statement except with a better message.
3401
+ if (typeof typeSpecs[typeSpecName] !== 'function') {
3402
+ // eslint-disable-next-line react-internal/prod-error-codes
3403
+ 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] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
3404
+ err.name = 'Invariant Violation';
3405
+ throw err;
3406
+ }
3407
+
3408
+ error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
3409
+ } catch (ex) {
3410
+ error$1 = ex;
3411
+ }
3412
+
3413
+ if (error$1 && !(error$1 instanceof Error)) {
3414
+ setCurrentlyValidatingElement(element);
3415
+
3416
+ error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);
3417
+
3418
+ setCurrentlyValidatingElement(null);
3419
+ }
3420
+
3421
+ if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
3422
+ // Only monitor this failure once because there tends to be a lot of the
3423
+ // same error.
3424
+ loggedTypeFailures[error$1.message] = true;
3425
+ setCurrentlyValidatingElement(element);
3426
+
3427
+ error('Failed %s type: %s', location, error$1.message);
3428
+
3429
+ setCurrentlyValidatingElement(null);
3430
+ }
3431
+ }
3432
+ }
3433
+ }
3434
+ }
3435
+
3436
+ function setCurrentlyValidatingElement$1(element) {
3437
+ {
3438
+ if (element) {
3439
+ var owner = element._owner;
3440
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
3441
+ setExtraStackFrame(stack);
3442
+ } else {
3443
+ setExtraStackFrame(null);
3444
+ }
3445
+ }
3446
+ }
3447
+
3448
+ var propTypesMisspellWarningShown;
3449
+
3450
+ {
3451
+ propTypesMisspellWarningShown = false;
3452
+ }
3453
+
3454
+ function getDeclarationErrorAddendum() {
3455
+ if (ReactCurrentOwner.current) {
3456
+ var name = getComponentNameFromType(ReactCurrentOwner.current.type);
3457
+
3458
+ if (name) {
3459
+ return '\n\nCheck the render method of `' + name + '`.';
3460
+ }
3461
+ }
3462
+
3463
+ return '';
3464
+ }
3465
+
3466
+ function getSourceInfoErrorAddendum(source) {
3467
+ if (source !== undefined) {
3468
+ var fileName = source.fileName.replace(/^.*[\\\/]/, '');
3469
+ var lineNumber = source.lineNumber;
3470
+ return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
3471
+ }
3472
+
3473
+ return '';
3474
+ }
3475
+
3476
+ function getSourceInfoErrorAddendumForProps(elementProps) {
3477
+ if (elementProps !== null && elementProps !== undefined) {
3478
+ return getSourceInfoErrorAddendum(elementProps.__source);
3479
+ }
3480
+
3481
+ return '';
3482
+ }
3483
+ /**
3484
+ * Warn if there's no key explicitly set on dynamic arrays of children or
3485
+ * object keys are not valid. This allows us to keep track of children between
3486
+ * updates.
3487
+ */
3488
+
3489
+
3490
+ var ownerHasKeyUseWarning = {};
3491
+
3492
+ function getCurrentComponentErrorInfo(parentType) {
3493
+ var info = getDeclarationErrorAddendum();
3494
+
3495
+ if (!info) {
3496
+ var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
3497
+
3498
+ if (parentName) {
3499
+ info = "\n\nCheck the top-level render call using <" + parentName + ">.";
3500
+ }
3501
+ }
3502
+
3503
+ return info;
3504
+ }
3505
+ /**
3506
+ * Warn if the element doesn't have an explicit key assigned to it.
3507
+ * This element is in an array. The array could grow and shrink or be
3508
+ * reordered. All children that haven't already been validated are required to
3509
+ * have a "key" property assigned to it. Error statuses are cached so a warning
3510
+ * will only be shown once.
3511
+ *
3512
+ * @internal
3513
+ * @param {ReactElement} element Element that requires a key.
3514
+ * @param {*} parentType element's parent's type.
3515
+ */
3516
+
3517
+
3518
+ function validateExplicitKey(element, parentType) {
3519
+ if (!element._store || element._store.validated || element.key != null) {
3520
+ return;
3521
+ }
3522
+
3523
+ element._store.validated = true;
3524
+ var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
3525
+
3526
+ if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
3527
+ return;
3528
+ }
3529
+
3530
+ ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
3531
+ // property, it may be the creator of the child that's responsible for
3532
+ // assigning it a key.
3533
+
3534
+ var childOwner = '';
3535
+
3536
+ if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
3537
+ // Give the component that originally created this child.
3538
+ childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
3539
+ }
3540
+
3541
+ {
3542
+ setCurrentlyValidatingElement$1(element);
3543
+
3544
+ error('Each child in a list should have a unique "key" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
3545
+
3546
+ setCurrentlyValidatingElement$1(null);
3547
+ }
3548
+ }
3549
+ /**
3550
+ * Ensure that every element either is passed in a static location, in an
3551
+ * array with an explicit keys property defined, or in an object literal
3552
+ * with valid key property.
3553
+ *
3554
+ * @internal
3555
+ * @param {ReactNode} node Statically passed child of any type.
3556
+ * @param {*} parentType node's parent's type.
3557
+ */
3558
+
3559
+
3560
+ function validateChildKeys(node, parentType) {
3561
+ if (typeof node !== 'object') {
3562
+ return;
3563
+ }
3564
+
3565
+ if (isArray(node)) {
3566
+ for (var i = 0; i < node.length; i++) {
3567
+ var child = node[i];
3568
+
3569
+ if (isValidElement(child)) {
3570
+ validateExplicitKey(child, parentType);
3571
+ }
3572
+ }
3573
+ } else if (isValidElement(node)) {
3574
+ // This element was passed in a valid location.
3575
+ if (node._store) {
3576
+ node._store.validated = true;
3577
+ }
3578
+ } else if (node) {
3579
+ var iteratorFn = getIteratorFn(node);
3580
+
3581
+ if (typeof iteratorFn === 'function') {
3582
+ // Entry iterators used to provide implicit keys,
3583
+ // but now we print a separate warning for them later.
3584
+ if (iteratorFn !== node.entries) {
3585
+ var iterator = iteratorFn.call(node);
3586
+ var step;
3587
+
3588
+ while (!(step = iterator.next()).done) {
3589
+ if (isValidElement(step.value)) {
3590
+ validateExplicitKey(step.value, parentType);
3591
+ }
3592
+ }
3593
+ }
3594
+ }
3595
+ }
3596
+ }
3597
+ /**
3598
+ * Given an element, validate that its props follow the propTypes definition,
3599
+ * provided by the type.
3600
+ *
3601
+ * @param {ReactElement} element
3602
+ */
3603
+
3604
+
3605
+ function validatePropTypes(element) {
3606
+ {
3607
+ var type = element.type;
3608
+
3609
+ if (type === null || type === undefined || typeof type === 'string') {
3610
+ return;
3611
+ }
3612
+
3613
+ var propTypes;
3614
+
3615
+ if (typeof type === 'function') {
3616
+ propTypes = type.propTypes;
3617
+ } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
3618
+ // Inner props are checked in the reconciler.
3619
+ type.$$typeof === REACT_MEMO_TYPE)) {
3620
+ propTypes = type.propTypes;
3621
+ } else {
3622
+ return;
3623
+ }
3624
+
3625
+ if (propTypes) {
3626
+ // Intentionally inside to avoid triggering lazy initializers:
3627
+ var name = getComponentNameFromType(type);
3628
+ checkPropTypes(propTypes, element.props, 'prop', name, element);
3629
+ } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
3630
+ propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
3631
+
3632
+ var _name = getComponentNameFromType(type);
3633
+
3634
+ error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
3635
+ }
3636
+
3637
+ if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
3638
+ error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
3639
+ }
3640
+ }
3641
+ }
3642
+ /**
3643
+ * Given a fragment, validate that it can only be provided with fragment props
3644
+ * @param {ReactElement} fragment
3645
+ */
3646
+
3647
+
3648
+ function validateFragmentProps(fragment) {
3649
+ {
3650
+ var keys = Object.keys(fragment.props);
3651
+
3652
+ for (var i = 0; i < keys.length; i++) {
3653
+ var key = keys[i];
3654
+
3655
+ if (key !== 'children' && key !== 'key') {
3656
+ setCurrentlyValidatingElement$1(fragment);
3657
+
3658
+ error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
3659
+
3660
+ setCurrentlyValidatingElement$1(null);
3661
+ break;
3662
+ }
3663
+ }
3664
+
3665
+ if (fragment.ref !== null) {
3666
+ setCurrentlyValidatingElement$1(fragment);
3667
+
3668
+ error('Invalid attribute `ref` supplied to `React.Fragment`.');
3669
+
3670
+ setCurrentlyValidatingElement$1(null);
3671
+ }
3672
+ }
3673
+ }
3674
+ function createElementWithValidation(type, props, children) {
3675
+ var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
3676
+ // succeed and there will likely be errors in render.
3677
+
3678
+ if (!validType) {
3679
+ var info = '';
3680
+
3681
+ if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
3682
+ 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.";
3683
+ }
3684
+
3685
+ var sourceInfo = getSourceInfoErrorAddendumForProps(props);
3686
+
3687
+ if (sourceInfo) {
3688
+ info += sourceInfo;
3689
+ } else {
3690
+ info += getDeclarationErrorAddendum();
3691
+ }
3692
+
3693
+ var typeString;
3694
+
3695
+ if (type === null) {
3696
+ typeString = 'null';
3697
+ } else if (isArray(type)) {
3698
+ typeString = 'array';
3699
+ } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
3700
+ typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
3701
+ info = ' Did you accidentally export a JSX literal instead of a component?';
3702
+ } else {
3703
+ typeString = typeof type;
3704
+ }
3705
+
3706
+ {
3707
+ 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);
3708
+ }
3709
+ }
3710
+
3711
+ var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used.
3712
+ // TODO: Drop this when these are no longer allowed as the type argument.
3713
+
3714
+ if (element == null) {
3715
+ return element;
3716
+ } // Skip key warning if the type isn't valid since our key validation logic
3717
+ // doesn't expect a non-string/function type and can throw confusing errors.
3718
+ // We don't want exception behavior to differ between dev and prod.
3719
+ // (Rendering will throw with a helpful message and as soon as the type is
3720
+ // fixed, the key warnings will appear.)
3721
+
3722
+
3723
+ if (validType) {
3724
+ for (var i = 2; i < arguments.length; i++) {
3725
+ validateChildKeys(arguments[i], type);
3726
+ }
3727
+ }
3728
+
3729
+ if (type === REACT_FRAGMENT_TYPE) {
3730
+ validateFragmentProps(element);
3731
+ } else {
3732
+ validatePropTypes(element);
3733
+ }
3734
+
3735
+ return element;
3736
+ }
3737
+ var didWarnAboutDeprecatedCreateFactory = false;
3738
+ function createFactoryWithValidation(type) {
3739
+ var validatedFactory = createElementWithValidation.bind(null, type);
3740
+ validatedFactory.type = type;
3741
+
3742
+ {
3743
+ if (!didWarnAboutDeprecatedCreateFactory) {
3744
+ didWarnAboutDeprecatedCreateFactory = true;
3745
+
3746
+ warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.');
3747
+ } // Legacy hook: remove it
3748
+
3749
+
3750
+ Object.defineProperty(validatedFactory, 'type', {
3751
+ enumerable: false,
3752
+ get: function () {
3753
+ warn('Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');
3754
+
3755
+ Object.defineProperty(this, 'type', {
3756
+ value: type
3757
+ });
3758
+ return type;
3759
+ }
3760
+ });
3761
+ }
3762
+
3763
+ return validatedFactory;
3764
+ }
3765
+ function cloneElementWithValidation(element, props, children) {
3766
+ var newElement = cloneElement.apply(this, arguments);
3767
+
3768
+ for (var i = 2; i < arguments.length; i++) {
3769
+ validateChildKeys(arguments[i], newElement.type);
3770
+ }
3771
+
3772
+ validatePropTypes(newElement);
3773
+ return newElement;
3774
+ }
3775
+
3776
+ function startTransition(scope, options) {
3777
+ var prevTransition = ReactCurrentBatchConfig.transition;
3778
+ ReactCurrentBatchConfig.transition = {};
3779
+ var currentTransition = ReactCurrentBatchConfig.transition;
3780
+
3781
+ {
3782
+ ReactCurrentBatchConfig.transition._updatedFibers = new Set();
3783
+ }
3784
+
3785
+ try {
3786
+ scope();
3787
+ } finally {
3788
+ ReactCurrentBatchConfig.transition = prevTransition;
3789
+
3790
+ {
3791
+ if (prevTransition === null && currentTransition._updatedFibers) {
3792
+ var updatedFibersCount = currentTransition._updatedFibers.size;
3793
+
3794
+ if (updatedFibersCount > 10) {
3795
+ warn('Detected a large number of updates inside startTransition. ' + 'If this is due to a subscription please re-write it to use React provided hooks. ' + 'Otherwise concurrent mode guarantees are off the table.');
3796
+ }
3797
+
3798
+ currentTransition._updatedFibers.clear();
3799
+ }
3800
+ }
3801
+ }
3802
+ }
3803
+
3804
+ var didWarnAboutMessageChannel = false;
3805
+ var enqueueTaskImpl = null;
3806
+ function enqueueTask(task) {
3807
+ if (enqueueTaskImpl === null) {
3808
+ try {
3809
+ // read require off the module object to get around the bundlers.
3810
+ // we don't want them to detect a require and bundle a Node polyfill.
3811
+ var requireString = ('require' + Math.random()).slice(0, 7);
3812
+ var nodeRequire = module && module[requireString]; // assuming we're in node, let's try to get node's
3813
+ // version of setImmediate, bypassing fake timers if any.
3814
+
3815
+ enqueueTaskImpl = nodeRequire.call(module, 'timers').setImmediate;
3816
+ } catch (_err) {
3817
+ // we're in a browser
3818
+ // we can't use regular timers because they may still be faked
3819
+ // so we try MessageChannel+postMessage instead
3820
+ enqueueTaskImpl = function (callback) {
3821
+ {
3822
+ if (didWarnAboutMessageChannel === false) {
3823
+ didWarnAboutMessageChannel = true;
3824
+
3825
+ if (typeof MessageChannel === 'undefined') {
3826
+ error('This browser does not have a MessageChannel implementation, ' + 'so enqueuing tasks via await act(async () => ...) will fail. ' + 'Please file an issue at https://github.com/facebook/react/issues ' + 'if you encounter this warning.');
3827
+ }
3828
+ }
3829
+ }
3830
+
3831
+ var channel = new MessageChannel();
3832
+ channel.port1.onmessage = callback;
3833
+ channel.port2.postMessage(undefined);
3834
+ };
3835
+ }
3836
+ }
3837
+
3838
+ return enqueueTaskImpl(task);
3839
+ }
3840
+
3841
+ var actScopeDepth = 0;
3842
+ var didWarnNoAwaitAct = false;
3843
+ function act(callback) {
3844
+ {
3845
+ // `act` calls can be nested, so we track the depth. This represents the
3846
+ // number of `act` scopes on the stack.
3847
+ var prevActScopeDepth = actScopeDepth;
3848
+ actScopeDepth++;
3849
+
3850
+ if (ReactCurrentActQueue.current === null) {
3851
+ // This is the outermost `act` scope. Initialize the queue. The reconciler
3852
+ // will detect the queue and use it instead of Scheduler.
3853
+ ReactCurrentActQueue.current = [];
3854
+ }
3855
+
3856
+ var prevIsBatchingLegacy = ReactCurrentActQueue.isBatchingLegacy;
3857
+ var result;
3858
+
3859
+ try {
3860
+ // Used to reproduce behavior of `batchedUpdates` in legacy mode. Only
3861
+ // set to `true` while the given callback is executed, not for updates
3862
+ // triggered during an async event, because this is how the legacy
3863
+ // implementation of `act` behaved.
3864
+ ReactCurrentActQueue.isBatchingLegacy = true;
3865
+ result = callback(); // Replicate behavior of original `act` implementation in legacy mode,
3866
+ // which flushed updates immediately after the scope function exits, even
3867
+ // if it's an async function.
3868
+
3869
+ if (!prevIsBatchingLegacy && ReactCurrentActQueue.didScheduleLegacyUpdate) {
3870
+ var queue = ReactCurrentActQueue.current;
3871
+
3872
+ if (queue !== null) {
3873
+ ReactCurrentActQueue.didScheduleLegacyUpdate = false;
3874
+ flushActQueue(queue);
3875
+ }
3876
+ }
3877
+ } catch (error) {
3878
+ popActScope(prevActScopeDepth);
3879
+ throw error;
3880
+ } finally {
3881
+ ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy;
3882
+ }
3883
+
3884
+ if (result !== null && typeof result === 'object' && typeof result.then === 'function') {
3885
+ var thenableResult = result; // The callback is an async function (i.e. returned a promise). Wait
3886
+ // for it to resolve before exiting the current scope.
3887
+
3888
+ var wasAwaited = false;
3889
+ var thenable = {
3890
+ then: function (resolve, reject) {
3891
+ wasAwaited = true;
3892
+ thenableResult.then(function (returnValue) {
3893
+ popActScope(prevActScopeDepth);
3894
+
3895
+ if (actScopeDepth === 0) {
3896
+ // We've exited the outermost act scope. Recursively flush the
3897
+ // queue until there's no remaining work.
3898
+ recursivelyFlushAsyncActWork(returnValue, resolve, reject);
3899
+ } else {
3900
+ resolve(returnValue);
3901
+ }
3902
+ }, function (error) {
3903
+ // The callback threw an error.
3904
+ popActScope(prevActScopeDepth);
3905
+ reject(error);
3906
+ });
3907
+ }
3908
+ };
3909
+
3910
+ {
3911
+ if (!didWarnNoAwaitAct && typeof Promise !== 'undefined') {
3912
+ // eslint-disable-next-line no-undef
3913
+ Promise.resolve().then(function () {}).then(function () {
3914
+ if (!wasAwaited) {
3915
+ didWarnNoAwaitAct = true;
3916
+
3917
+ error('You called act(async () => ...) without await. ' + 'This could lead to unexpected testing behaviour, ' + 'interleaving multiple act calls and mixing their ' + 'scopes. ' + 'You should - await act(async () => ...);');
3918
+ }
3919
+ });
3920
+ }
3921
+ }
3922
+
3923
+ return thenable;
3924
+ } else {
3925
+ var returnValue = result; // The callback is not an async function. Exit the current scope
3926
+ // immediately, without awaiting.
3927
+
3928
+ popActScope(prevActScopeDepth);
3929
+
3930
+ if (actScopeDepth === 0) {
3931
+ // Exiting the outermost act scope. Flush the queue.
3932
+ var _queue = ReactCurrentActQueue.current;
3933
+
3934
+ if (_queue !== null) {
3935
+ flushActQueue(_queue);
3936
+ ReactCurrentActQueue.current = null;
3937
+ } // Return a thenable. If the user awaits it, we'll flush again in
3938
+ // case additional work was scheduled by a microtask.
3939
+
3940
+
3941
+ var _thenable = {
3942
+ then: function (resolve, reject) {
3943
+ // Confirm we haven't re-entered another `act` scope, in case
3944
+ // the user does something weird like await the thenable
3945
+ // multiple times.
3946
+ if (ReactCurrentActQueue.current === null) {
3947
+ // Recursively flush the queue until there's no remaining work.
3948
+ ReactCurrentActQueue.current = [];
3949
+ recursivelyFlushAsyncActWork(returnValue, resolve, reject);
3950
+ } else {
3951
+ resolve(returnValue);
3952
+ }
3953
+ }
3954
+ };
3955
+ return _thenable;
3956
+ } else {
3957
+ // Since we're inside a nested `act` scope, the returned thenable
3958
+ // immediately resolves. The outer scope will flush the queue.
3959
+ var _thenable2 = {
3960
+ then: function (resolve, reject) {
3961
+ resolve(returnValue);
3962
+ }
3963
+ };
3964
+ return _thenable2;
3965
+ }
3966
+ }
3967
+ }
3968
+ }
3969
+
3970
+ function popActScope(prevActScopeDepth) {
3971
+ {
3972
+ if (prevActScopeDepth !== actScopeDepth - 1) {
3973
+ error('You seem to have overlapping act() calls, this is not supported. ' + 'Be sure to await previous act() calls before making a new one. ');
3974
+ }
3975
+
3976
+ actScopeDepth = prevActScopeDepth;
3977
+ }
3978
+ }
3979
+
3980
+ function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
3981
+ {
3982
+ var queue = ReactCurrentActQueue.current;
3983
+
3984
+ if (queue !== null) {
3985
+ try {
3986
+ flushActQueue(queue);
3987
+ enqueueTask(function () {
3988
+ if (queue.length === 0) {
3989
+ // No additional work was scheduled. Finish.
3990
+ ReactCurrentActQueue.current = null;
3991
+ resolve(returnValue);
3992
+ } else {
3993
+ // Keep flushing work until there's none left.
3994
+ recursivelyFlushAsyncActWork(returnValue, resolve, reject);
3995
+ }
3996
+ });
3997
+ } catch (error) {
3998
+ reject(error);
3999
+ }
4000
+ } else {
4001
+ resolve(returnValue);
4002
+ }
4003
+ }
4004
+ }
4005
+
4006
+ var isFlushing = false;
4007
+
4008
+ function flushActQueue(queue) {
4009
+ {
4010
+ if (!isFlushing) {
4011
+ // Prevent re-entrance.
4012
+ isFlushing = true;
4013
+ var i = 0;
4014
+
4015
+ try {
4016
+ for (; i < queue.length; i++) {
4017
+ var callback = queue[i];
4018
+
4019
+ do {
4020
+ callback = callback(true);
4021
+ } while (callback !== null);
4022
+ }
4023
+
4024
+ queue.length = 0;
4025
+ } catch (error) {
4026
+ // If something throws, leave the remaining callbacks on the queue.
4027
+ queue = queue.slice(i + 1);
4028
+ throw error;
4029
+ } finally {
4030
+ isFlushing = false;
4031
+ }
4032
+ }
4033
+ }
4034
+ }
4035
+
4036
+ var createElement$1 = createElementWithValidation ;
4037
+ var cloneElement$1 = cloneElementWithValidation ;
4038
+ var createFactory = createFactoryWithValidation ;
4039
+ var Children = {
4040
+ map: mapChildren,
4041
+ forEach: forEachChildren,
4042
+ count: countChildren,
4043
+ toArray: toArray,
4044
+ only: onlyChild
4045
+ };
4046
+
4047
+ exports.Children = Children;
4048
+ exports.Component = Component;
4049
+ exports.Fragment = REACT_FRAGMENT_TYPE;
4050
+ exports.Profiler = REACT_PROFILER_TYPE;
4051
+ exports.PureComponent = PureComponent;
4052
+ exports.StrictMode = REACT_STRICT_MODE_TYPE;
4053
+ exports.Suspense = REACT_SUSPENSE_TYPE;
4054
+ exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
4055
+ exports.act = act;
4056
+ exports.cloneElement = cloneElement$1;
4057
+ exports.createContext = createContext;
4058
+ exports.createElement = createElement$1;
4059
+ exports.createFactory = createFactory;
4060
+ exports.createRef = createRef;
4061
+ exports.forwardRef = forwardRef;
4062
+ exports.isValidElement = isValidElement;
4063
+ exports.lazy = lazy;
4064
+ exports.memo = memo;
4065
+ exports.startTransition = startTransition;
4066
+ exports.unstable_act = act;
4067
+ exports.useCallback = useCallback;
4068
+ exports.useContext = useContext;
4069
+ exports.useDebugValue = useDebugValue;
4070
+ exports.useDeferredValue = useDeferredValue;
4071
+ exports.useEffect = useEffect;
4072
+ exports.useId = useId;
4073
+ exports.useImperativeHandle = useImperativeHandle;
4074
+ exports.useInsertionEffect = useInsertionEffect;
4075
+ exports.useLayoutEffect = useLayoutEffect;
4076
+ exports.useMemo = useMemo;
4077
+ exports.useReducer = useReducer;
4078
+ exports.useRef = useRef;
4079
+ exports.useState = useState;
4080
+ exports.useSyncExternalStore = useSyncExternalStore;
4081
+ exports.useTransition = useTransition;
4082
+ exports.version = ReactVersion;
4083
+ /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
4084
+ if (
4085
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
4086
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
4087
+ 'function'
4088
+ ) {
4089
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
4090
+ }
4091
+
4092
+ })();
4093
+ }
4094
+
4095
+
4096
+ /***/ }),
4097
+
4098
+ /***/ "./node_modules/react/index.js":
4099
+ /*!*************************************!*\
4100
+ !*** ./node_modules/react/index.js ***!
4101
+ \*************************************/
4102
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4103
+
4104
+
4105
+
4106
+ if (false) {} else {
4107
+ module.exports = __webpack_require__(/*! ./cjs/react.development.js */ "./node_modules/react/cjs/react.development.js");
4108
+ }
4109
+
4110
+
4111
+ /***/ }),
4112
+
4113
+ /***/ "./node_modules/react/jsx-runtime.js":
4114
+ /*!*******************************************!*\
4115
+ !*** ./node_modules/react/jsx-runtime.js ***!
4116
+ \*******************************************/
4117
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4118
+
4119
+
4120
+
4121
+ if (false) {} else {
4122
+ module.exports = __webpack_require__(/*! ./cjs/react-jsx-runtime.development.js */ "./node_modules/react/cjs/react-jsx-runtime.development.js");
4123
+ }
4124
+
4125
+
4126
+ /***/ }),
4127
+
4128
+ /***/ "./node_modules/scheduler/cjs/scheduler.development.js":
4129
+ /*!*************************************************************!*\
4130
+ !*** ./node_modules/scheduler/cjs/scheduler.development.js ***!
4131
+ \*************************************************************/
4132
+ /***/ ((__unused_webpack_module, exports) => {
4133
+
4134
+ /**
4135
+ * @license React
4136
+ * scheduler.development.js
4137
+ *
4138
+ * Copyright (c) Facebook, Inc. and its affiliates.
4139
+ *
4140
+ * This source code is licensed under the MIT license found in the
4141
+ * LICENSE file in the root directory of this source tree.
4142
+ */
4143
+
4144
+
4145
+
4146
+ if (true) {
4147
+ (function() {
4148
+
4149
+ 'use strict';
4150
+
4151
+ /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
4152
+ if (
4153
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
4154
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===
4155
+ 'function'
4156
+ ) {
4157
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
4158
+ }
4159
+ var enableSchedulerDebugging = false;
4160
+ var enableProfiling = false;
4161
+ var frameYieldMs = 5;
4162
+
4163
+ function push(heap, node) {
4164
+ var index = heap.length;
4165
+ heap.push(node);
4166
+ siftUp(heap, node, index);
4167
+ }
4168
+ function peek(heap) {
4169
+ return heap.length === 0 ? null : heap[0];
4170
+ }
4171
+ function pop(heap) {
4172
+ if (heap.length === 0) {
4173
+ return null;
4174
+ }
4175
+
4176
+ var first = heap[0];
4177
+ var last = heap.pop();
4178
+
4179
+ if (last !== first) {
4180
+ heap[0] = last;
4181
+ siftDown(heap, last, 0);
4182
+ }
4183
+
4184
+ return first;
4185
+ }
4186
+
4187
+ function siftUp(heap, node, i) {
4188
+ var index = i;
4189
+
4190
+ while (index > 0) {
4191
+ var parentIndex = index - 1 >>> 1;
4192
+ var parent = heap[parentIndex];
4193
+
4194
+ if (compare(parent, node) > 0) {
4195
+ // The parent is larger. Swap positions.
4196
+ heap[parentIndex] = node;
4197
+ heap[index] = parent;
4198
+ index = parentIndex;
4199
+ } else {
4200
+ // The parent is smaller. Exit.
4201
+ return;
4202
+ }
4203
+ }
4204
+ }
4205
+
4206
+ function siftDown(heap, node, i) {
4207
+ var index = i;
4208
+ var length = heap.length;
4209
+ var halfLength = length >>> 1;
4210
+
4211
+ while (index < halfLength) {
4212
+ var leftIndex = (index + 1) * 2 - 1;
4213
+ var left = heap[leftIndex];
4214
+ var rightIndex = leftIndex + 1;
4215
+ var right = heap[rightIndex]; // If the left or right node is smaller, swap with the smaller of those.
4216
+
4217
+ if (compare(left, node) < 0) {
4218
+ if (rightIndex < length && compare(right, left) < 0) {
4219
+ heap[index] = right;
4220
+ heap[rightIndex] = node;
4221
+ index = rightIndex;
4222
+ } else {
4223
+ heap[index] = left;
4224
+ heap[leftIndex] = node;
4225
+ index = leftIndex;
4226
+ }
4227
+ } else if (rightIndex < length && compare(right, node) < 0) {
4228
+ heap[index] = right;
4229
+ heap[rightIndex] = node;
4230
+ index = rightIndex;
4231
+ } else {
4232
+ // Neither child is smaller. Exit.
4233
+ return;
4234
+ }
4235
+ }
4236
+ }
4237
+
4238
+ function compare(a, b) {
4239
+ // Compare sort index first, then task id.
4240
+ var diff = a.sortIndex - b.sortIndex;
4241
+ return diff !== 0 ? diff : a.id - b.id;
4242
+ }
4243
+
4244
+ // TODO: Use symbols?
4245
+ var ImmediatePriority = 1;
4246
+ var UserBlockingPriority = 2;
4247
+ var NormalPriority = 3;
4248
+ var LowPriority = 4;
4249
+ var IdlePriority = 5;
4250
+
4251
+ function markTaskErrored(task, ms) {
4252
+ }
4253
+
4254
+ /* eslint-disable no-var */
4255
+
4256
+ var hasPerformanceNow = typeof performance === 'object' && typeof performance.now === 'function';
4257
+
4258
+ if (hasPerformanceNow) {
4259
+ var localPerformance = performance;
4260
+
4261
+ exports.unstable_now = function () {
4262
+ return localPerformance.now();
4263
+ };
4264
+ } else {
4265
+ var localDate = Date;
4266
+ var initialTime = localDate.now();
4267
+
4268
+ exports.unstable_now = function () {
4269
+ return localDate.now() - initialTime;
4270
+ };
4271
+ } // Max 31 bit integer. The max integer size in V8 for 32-bit systems.
4272
+ // Math.pow(2, 30) - 1
4273
+ // 0b111111111111111111111111111111
4274
+
4275
+
4276
+ var maxSigned31BitInt = 1073741823; // Times out immediately
4277
+
4278
+ var IMMEDIATE_PRIORITY_TIMEOUT = -1; // Eventually times out
4279
+
4280
+ var USER_BLOCKING_PRIORITY_TIMEOUT = 250;
4281
+ var NORMAL_PRIORITY_TIMEOUT = 5000;
4282
+ var LOW_PRIORITY_TIMEOUT = 10000; // Never times out
4283
+
4284
+ var IDLE_PRIORITY_TIMEOUT = maxSigned31BitInt; // Tasks are stored on a min heap
4285
+
4286
+ var taskQueue = [];
4287
+ var timerQueue = []; // Incrementing id counter. Used to maintain insertion order.
4288
+
4289
+ var taskIdCounter = 1; // Pausing the scheduler is useful for debugging.
4290
+ var currentTask = null;
4291
+ var currentPriorityLevel = NormalPriority; // This is set while performing work, to prevent re-entrance.
4292
+
4293
+ var isPerformingWork = false;
4294
+ var isHostCallbackScheduled = false;
4295
+ var isHostTimeoutScheduled = false; // Capture local references to native APIs, in case a polyfill overrides them.
4296
+
4297
+ var localSetTimeout = typeof setTimeout === 'function' ? setTimeout : null;
4298
+ var localClearTimeout = typeof clearTimeout === 'function' ? clearTimeout : null;
4299
+ var localSetImmediate = typeof setImmediate !== 'undefined' ? setImmediate : null; // IE and Node.js + jsdom
4300
+
4301
+ var isInputPending = typeof navigator !== 'undefined' && navigator.scheduling !== undefined && navigator.scheduling.isInputPending !== undefined ? navigator.scheduling.isInputPending.bind(navigator.scheduling) : null;
4302
+
4303
+ function advanceTimers(currentTime) {
4304
+ // Check for tasks that are no longer delayed and add them to the queue.
4305
+ var timer = peek(timerQueue);
4306
+
4307
+ while (timer !== null) {
4308
+ if (timer.callback === null) {
4309
+ // Timer was cancelled.
4310
+ pop(timerQueue);
4311
+ } else if (timer.startTime <= currentTime) {
4312
+ // Timer fired. Transfer to the task queue.
4313
+ pop(timerQueue);
4314
+ timer.sortIndex = timer.expirationTime;
4315
+ push(taskQueue, timer);
4316
+ } else {
4317
+ // Remaining timers are pending.
4318
+ return;
4319
+ }
4320
+
4321
+ timer = peek(timerQueue);
4322
+ }
4323
+ }
4324
+
4325
+ function handleTimeout(currentTime) {
4326
+ isHostTimeoutScheduled = false;
4327
+ advanceTimers(currentTime);
4328
+
4329
+ if (!isHostCallbackScheduled) {
4330
+ if (peek(taskQueue) !== null) {
4331
+ isHostCallbackScheduled = true;
4332
+ requestHostCallback(flushWork);
4333
+ } else {
4334
+ var firstTimer = peek(timerQueue);
4335
+
4336
+ if (firstTimer !== null) {
4337
+ requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
4338
+ }
4339
+ }
4340
+ }
4341
+ }
4342
+
4343
+ function flushWork(hasTimeRemaining, initialTime) {
4344
+
4345
+
4346
+ isHostCallbackScheduled = false;
4347
+
4348
+ if (isHostTimeoutScheduled) {
4349
+ // We scheduled a timeout but it's no longer needed. Cancel it.
4350
+ isHostTimeoutScheduled = false;
4351
+ cancelHostTimeout();
4352
+ }
4353
+
4354
+ isPerformingWork = true;
4355
+ var previousPriorityLevel = currentPriorityLevel;
4356
+
4357
+ try {
4358
+ if (enableProfiling) {
4359
+ try {
4360
+ return workLoop(hasTimeRemaining, initialTime);
4361
+ } catch (error) {
4362
+ if (currentTask !== null) {
4363
+ var currentTime = exports.unstable_now();
4364
+ markTaskErrored(currentTask, currentTime);
4365
+ currentTask.isQueued = false;
4366
+ }
4367
+
4368
+ throw error;
4369
+ }
4370
+ } else {
4371
+ // No catch in prod code path.
4372
+ return workLoop(hasTimeRemaining, initialTime);
4373
+ }
4374
+ } finally {
4375
+ currentTask = null;
4376
+ currentPriorityLevel = previousPriorityLevel;
4377
+ isPerformingWork = false;
4378
+ }
4379
+ }
4380
+
4381
+ function workLoop(hasTimeRemaining, initialTime) {
4382
+ var currentTime = initialTime;
4383
+ advanceTimers(currentTime);
4384
+ currentTask = peek(taskQueue);
4385
+
4386
+ while (currentTask !== null && !(enableSchedulerDebugging )) {
4387
+ if (currentTask.expirationTime > currentTime && (!hasTimeRemaining || shouldYieldToHost())) {
4388
+ // This currentTask hasn't expired, and we've reached the deadline.
4389
+ break;
4390
+ }
4391
+
4392
+ var callback = currentTask.callback;
4393
+
4394
+ if (typeof callback === 'function') {
4395
+ currentTask.callback = null;
4396
+ currentPriorityLevel = currentTask.priorityLevel;
4397
+ var didUserCallbackTimeout = currentTask.expirationTime <= currentTime;
4398
+
4399
+ var continuationCallback = callback(didUserCallbackTimeout);
4400
+ currentTime = exports.unstable_now();
4401
+
4402
+ if (typeof continuationCallback === 'function') {
4403
+ currentTask.callback = continuationCallback;
4404
+ } else {
4405
+
4406
+ if (currentTask === peek(taskQueue)) {
4407
+ pop(taskQueue);
4408
+ }
4409
+ }
4410
+
4411
+ advanceTimers(currentTime);
4412
+ } else {
4413
+ pop(taskQueue);
4414
+ }
4415
+
4416
+ currentTask = peek(taskQueue);
4417
+ } // Return whether there's additional work
4418
+
4419
+
4420
+ if (currentTask !== null) {
4421
+ return true;
4422
+ } else {
4423
+ var firstTimer = peek(timerQueue);
4424
+
4425
+ if (firstTimer !== null) {
4426
+ requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
4427
+ }
4428
+
4429
+ return false;
4430
+ }
4431
+ }
4432
+
4433
+ function unstable_runWithPriority(priorityLevel, eventHandler) {
4434
+ switch (priorityLevel) {
4435
+ case ImmediatePriority:
4436
+ case UserBlockingPriority:
4437
+ case NormalPriority:
4438
+ case LowPriority:
4439
+ case IdlePriority:
4440
+ break;
4441
+
4442
+ default:
4443
+ priorityLevel = NormalPriority;
4444
+ }
4445
+
4446
+ var previousPriorityLevel = currentPriorityLevel;
4447
+ currentPriorityLevel = priorityLevel;
4448
+
4449
+ try {
4450
+ return eventHandler();
4451
+ } finally {
4452
+ currentPriorityLevel = previousPriorityLevel;
4453
+ }
4454
+ }
4455
+
4456
+ function unstable_next(eventHandler) {
4457
+ var priorityLevel;
4458
+
4459
+ switch (currentPriorityLevel) {
4460
+ case ImmediatePriority:
4461
+ case UserBlockingPriority:
4462
+ case NormalPriority:
4463
+ // Shift down to normal priority
4464
+ priorityLevel = NormalPriority;
4465
+ break;
4466
+
4467
+ default:
4468
+ // Anything lower than normal priority should remain at the current level.
4469
+ priorityLevel = currentPriorityLevel;
4470
+ break;
4471
+ }
4472
+
4473
+ var previousPriorityLevel = currentPriorityLevel;
4474
+ currentPriorityLevel = priorityLevel;
4475
+
4476
+ try {
4477
+ return eventHandler();
4478
+ } finally {
4479
+ currentPriorityLevel = previousPriorityLevel;
4480
+ }
4481
+ }
4482
+
4483
+ function unstable_wrapCallback(callback) {
4484
+ var parentPriorityLevel = currentPriorityLevel;
4485
+ return function () {
4486
+ // This is a fork of runWithPriority, inlined for performance.
4487
+ var previousPriorityLevel = currentPriorityLevel;
4488
+ currentPriorityLevel = parentPriorityLevel;
4489
+
4490
+ try {
4491
+ return callback.apply(this, arguments);
4492
+ } finally {
4493
+ currentPriorityLevel = previousPriorityLevel;
4494
+ }
4495
+ };
4496
+ }
4497
+
4498
+ function unstable_scheduleCallback(priorityLevel, callback, options) {
4499
+ var currentTime = exports.unstable_now();
4500
+ var startTime;
4501
+
4502
+ if (typeof options === 'object' && options !== null) {
4503
+ var delay = options.delay;
4504
+
4505
+ if (typeof delay === 'number' && delay > 0) {
4506
+ startTime = currentTime + delay;
4507
+ } else {
4508
+ startTime = currentTime;
4509
+ }
4510
+ } else {
4511
+ startTime = currentTime;
4512
+ }
4513
+
4514
+ var timeout;
4515
+
4516
+ switch (priorityLevel) {
4517
+ case ImmediatePriority:
4518
+ timeout = IMMEDIATE_PRIORITY_TIMEOUT;
4519
+ break;
4520
+
4521
+ case UserBlockingPriority:
4522
+ timeout = USER_BLOCKING_PRIORITY_TIMEOUT;
4523
+ break;
4524
+
4525
+ case IdlePriority:
4526
+ timeout = IDLE_PRIORITY_TIMEOUT;
4527
+ break;
4528
+
4529
+ case LowPriority:
4530
+ timeout = LOW_PRIORITY_TIMEOUT;
4531
+ break;
4532
+
4533
+ case NormalPriority:
4534
+ default:
4535
+ timeout = NORMAL_PRIORITY_TIMEOUT;
4536
+ break;
4537
+ }
4538
+
4539
+ var expirationTime = startTime + timeout;
4540
+ var newTask = {
4541
+ id: taskIdCounter++,
4542
+ callback: callback,
4543
+ priorityLevel: priorityLevel,
4544
+ startTime: startTime,
4545
+ expirationTime: expirationTime,
4546
+ sortIndex: -1
4547
+ };
4548
+
4549
+ if (startTime > currentTime) {
4550
+ // This is a delayed task.
4551
+ newTask.sortIndex = startTime;
4552
+ push(timerQueue, newTask);
4553
+
4554
+ if (peek(taskQueue) === null && newTask === peek(timerQueue)) {
4555
+ // All tasks are delayed, and this is the task with the earliest delay.
4556
+ if (isHostTimeoutScheduled) {
4557
+ // Cancel an existing timeout.
4558
+ cancelHostTimeout();
4559
+ } else {
4560
+ isHostTimeoutScheduled = true;
4561
+ } // Schedule a timeout.
4562
+
4563
+
4564
+ requestHostTimeout(handleTimeout, startTime - currentTime);
4565
+ }
4566
+ } else {
4567
+ newTask.sortIndex = expirationTime;
4568
+ push(taskQueue, newTask);
4569
+ // wait until the next time we yield.
4570
+
4571
+
4572
+ if (!isHostCallbackScheduled && !isPerformingWork) {
4573
+ isHostCallbackScheduled = true;
4574
+ requestHostCallback(flushWork);
4575
+ }
4576
+ }
4577
+
4578
+ return newTask;
4579
+ }
4580
+
4581
+ function unstable_pauseExecution() {
4582
+ }
4583
+
4584
+ function unstable_continueExecution() {
4585
+
4586
+ if (!isHostCallbackScheduled && !isPerformingWork) {
4587
+ isHostCallbackScheduled = true;
4588
+ requestHostCallback(flushWork);
4589
+ }
4590
+ }
4591
+
4592
+ function unstable_getFirstCallbackNode() {
4593
+ return peek(taskQueue);
4594
+ }
4595
+
4596
+ function unstable_cancelCallback(task) {
4597
+ // remove from the queue because you can't remove arbitrary nodes from an
4598
+ // array based heap, only the first one.)
4599
+
4600
+
4601
+ task.callback = null;
4602
+ }
4603
+
4604
+ function unstable_getCurrentPriorityLevel() {
4605
+ return currentPriorityLevel;
4606
+ }
4607
+
4608
+ var isMessageLoopRunning = false;
4609
+ var scheduledHostCallback = null;
4610
+ var taskTimeoutID = -1; // Scheduler periodically yields in case there is other work on the main
4611
+ // thread, like user events. By default, it yields multiple times per frame.
4612
+ // It does not attempt to align with frame boundaries, since most tasks don't
4613
+ // need to be frame aligned; for those that do, use requestAnimationFrame.
4614
+
4615
+ var frameInterval = frameYieldMs;
4616
+ var startTime = -1;
4617
+
4618
+ function shouldYieldToHost() {
4619
+ var timeElapsed = exports.unstable_now() - startTime;
4620
+
4621
+ if (timeElapsed < frameInterval) {
4622
+ // The main thread has only been blocked for a really short amount of time;
4623
+ // smaller than a single frame. Don't yield yet.
4624
+ return false;
4625
+ } // The main thread has been blocked for a non-negligible amount of time. We
4626
+
4627
+
4628
+ return true;
4629
+ }
4630
+
4631
+ function requestPaint() {
4632
+
4633
+ }
4634
+
4635
+ function forceFrameRate(fps) {
4636
+ if (fps < 0 || fps > 125) {
4637
+ // Using console['error'] to evade Babel and ESLint
4638
+ console['error']('forceFrameRate takes a positive int between 0 and 125, ' + 'forcing frame rates higher than 125 fps is not supported');
4639
+ return;
4640
+ }
4641
+
4642
+ if (fps > 0) {
4643
+ frameInterval = Math.floor(1000 / fps);
4644
+ } else {
4645
+ // reset the framerate
4646
+ frameInterval = frameYieldMs;
4647
+ }
4648
+ }
4649
+
4650
+ var performWorkUntilDeadline = function () {
4651
+ if (scheduledHostCallback !== null) {
4652
+ var currentTime = exports.unstable_now(); // Keep track of the start time so we can measure how long the main thread
4653
+ // has been blocked.
4654
+
4655
+ startTime = currentTime;
4656
+ var hasTimeRemaining = true; // If a scheduler task throws, exit the current browser task so the
4657
+ // error can be observed.
4658
+ //
4659
+ // Intentionally not using a try-catch, since that makes some debugging
4660
+ // techniques harder. Instead, if `scheduledHostCallback` errors, then
4661
+ // `hasMoreWork` will remain true, and we'll continue the work loop.
4662
+
4663
+ var hasMoreWork = true;
4664
+
4665
+ try {
4666
+ hasMoreWork = scheduledHostCallback(hasTimeRemaining, currentTime);
4667
+ } finally {
4668
+ if (hasMoreWork) {
4669
+ // If there's more work, schedule the next message event at the end
4670
+ // of the preceding one.
4671
+ schedulePerformWorkUntilDeadline();
4672
+ } else {
4673
+ isMessageLoopRunning = false;
4674
+ scheduledHostCallback = null;
4675
+ }
4676
+ }
4677
+ } else {
4678
+ isMessageLoopRunning = false;
4679
+ } // Yielding to the browser will give it a chance to paint, so we can
4680
+ };
4681
+
4682
+ var schedulePerformWorkUntilDeadline;
4683
+
4684
+ if (typeof localSetImmediate === 'function') {
4685
+ // Node.js and old IE.
4686
+ // There's a few reasons for why we prefer setImmediate.
4687
+ //
4688
+ // Unlike MessageChannel, it doesn't prevent a Node.js process from exiting.
4689
+ // (Even though this is a DOM fork of the Scheduler, you could get here
4690
+ // with a mix of Node.js 15+, which has a MessageChannel, and jsdom.)
4691
+ // https://github.com/facebook/react/issues/20756
4692
+ //
4693
+ // But also, it runs earlier which is the semantic we want.
4694
+ // If other browsers ever implement it, it's better to use it.
4695
+ // Although both of these would be inferior to native scheduling.
4696
+ schedulePerformWorkUntilDeadline = function () {
4697
+ localSetImmediate(performWorkUntilDeadline);
4698
+ };
4699
+ } else if (typeof MessageChannel !== 'undefined') {
4700
+ // DOM and Worker environments.
4701
+ // We prefer MessageChannel because of the 4ms setTimeout clamping.
4702
+ var channel = new MessageChannel();
4703
+ var port = channel.port2;
4704
+ channel.port1.onmessage = performWorkUntilDeadline;
4705
+
4706
+ schedulePerformWorkUntilDeadline = function () {
4707
+ port.postMessage(null);
4708
+ };
4709
+ } else {
4710
+ // We should only fallback here in non-browser environments.
4711
+ schedulePerformWorkUntilDeadline = function () {
4712
+ localSetTimeout(performWorkUntilDeadline, 0);
4713
+ };
4714
+ }
4715
+
4716
+ function requestHostCallback(callback) {
4717
+ scheduledHostCallback = callback;
4718
+
4719
+ if (!isMessageLoopRunning) {
4720
+ isMessageLoopRunning = true;
4721
+ schedulePerformWorkUntilDeadline();
4722
+ }
4723
+ }
4724
+
4725
+ function requestHostTimeout(callback, ms) {
4726
+ taskTimeoutID = localSetTimeout(function () {
4727
+ callback(exports.unstable_now());
4728
+ }, ms);
4729
+ }
4730
+
4731
+ function cancelHostTimeout() {
4732
+ localClearTimeout(taskTimeoutID);
4733
+ taskTimeoutID = -1;
4734
+ }
4735
+
4736
+ var unstable_requestPaint = requestPaint;
4737
+ var unstable_Profiling = null;
4738
+
4739
+ exports.unstable_IdlePriority = IdlePriority;
4740
+ exports.unstable_ImmediatePriority = ImmediatePriority;
4741
+ exports.unstable_LowPriority = LowPriority;
4742
+ exports.unstable_NormalPriority = NormalPriority;
4743
+ exports.unstable_Profiling = unstable_Profiling;
4744
+ exports.unstable_UserBlockingPriority = UserBlockingPriority;
4745
+ exports.unstable_cancelCallback = unstable_cancelCallback;
4746
+ exports.unstable_continueExecution = unstable_continueExecution;
4747
+ exports.unstable_forceFrameRate = forceFrameRate;
4748
+ exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel;
4749
+ exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode;
4750
+ exports.unstable_next = unstable_next;
4751
+ exports.unstable_pauseExecution = unstable_pauseExecution;
4752
+ exports.unstable_requestPaint = unstable_requestPaint;
4753
+ exports.unstable_runWithPriority = unstable_runWithPriority;
4754
+ exports.unstable_scheduleCallback = unstable_scheduleCallback;
4755
+ exports.unstable_shouldYield = shouldYieldToHost;
4756
+ exports.unstable_wrapCallback = unstable_wrapCallback;
4757
+ /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
4758
+ if (
4759
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
4760
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
4761
+ 'function'
4762
+ ) {
4763
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
4764
+ }
4765
+
4766
+ })();
4767
+ }
4768
+
4769
+
4770
+ /***/ }),
4771
+
4772
+ /***/ "./node_modules/scheduler/index.js":
4773
+ /*!*****************************************!*\
4774
+ !*** ./node_modules/scheduler/index.js ***!
4775
+ \*****************************************/
4776
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4777
+
4778
+
4779
+
4780
+ if (false) {} else {
4781
+ module.exports = __webpack_require__(/*! ./cjs/scheduler.development.js */ "./node_modules/scheduler/cjs/scheduler.development.js");
4782
+ }
4783
+
4784
+
4785
+ /***/ })
4786
+
4787
+ }]);
4788
+ //# sourceMappingURL=vendors-node_modules_r.js.map