vendors-node_modules_taro_weapp_prebundle_react-redux_js.js 74 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589
  1. "use strict";
  2. (wx["webpackJsonp"] = wx["webpackJsonp"] || []).push([["vendors-node_modules_taro_weapp_prebundle_react-redux_js"],{
  3. /***/ "./node_modules/.taro/weapp/prebundle/react-redux.js":
  4. /*!***********************************************************!*\
  5. !*** ./node_modules/.taro/weapp/prebundle/react-redux.js ***!
  6. \***********************************************************/
  7. /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
  8. __webpack_require__.r(__webpack_exports__);
  9. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  10. /* harmony export */ Provider: function() { return /* binding */ Provider_default; },
  11. /* harmony export */ ReactReduxContext: function() { return /* binding */ ReactReduxContext; },
  12. /* harmony export */ batch: function() { return /* reexport safe */ _chunk_2Y2U3MWF_js__WEBPACK_IMPORTED_MODULE_0__.unstable_batchedUpdates; },
  13. /* harmony export */ connect: function() { return /* binding */ connect_default; },
  14. /* harmony export */ createDispatchHook: function() { return /* binding */ createDispatchHook; },
  15. /* harmony export */ createSelectorHook: function() { return /* binding */ createSelectorHook; },
  16. /* harmony export */ createStoreHook: function() { return /* binding */ createStoreHook; },
  17. /* harmony export */ shallowEqual: function() { return /* binding */ shallowEqual; },
  18. /* harmony export */ useDispatch: function() { return /* binding */ useDispatch; },
  19. /* harmony export */ useSelector: function() { return /* binding */ useSelector; },
  20. /* harmony export */ useStore: function() { return /* binding */ useStore; }
  21. /* harmony export */ });
  22. /* harmony import */ var _chunk_2Y2U3MWF_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-2Y2U3MWF.js */ "./node_modules/.taro/weapp/prebundle/chunk-2Y2U3MWF.js");
  23. /* harmony import */ var _chunk_3EXGJ5BE_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./chunk-3EXGJ5BE.js */ "./node_modules/.taro/weapp/prebundle/chunk-3EXGJ5BE.js");
  24. /* harmony import */ var _chunk_77KB62LY_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-77KB62LY.js */ "./node_modules/.taro/weapp/prebundle/chunk-77KB62LY.js");
  25. /* harmony import */ var _chunk_LNJCN3VW_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-LNJCN3VW.js */ "./node_modules/.taro/weapp/prebundle/chunk-LNJCN3VW.js");
  26. /* harmony import */ var _chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./chunk-P7VEE7PG.js */ "./node_modules/.taro/weapp/prebundle/chunk-P7VEE7PG.js");
  27. /* provided dependency */ var window = __webpack_require__(/*! ./node_modules/.taro/weapp/prebundle/chunk-3EXGJ5BE.js */ "./node_modules/.taro/weapp/prebundle/chunk-3EXGJ5BE.js")["window$1"];
  28. // node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js
  29. var require_use_sync_external_store_shim_development = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_4__.__commonJS)({
  30. "node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js" (exports) {
  31. "use strict";
  32. if (true) {
  33. (function() {
  34. "use strict";
  35. if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
  36. __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
  37. }
  38. var React5 = (0,_chunk_LNJCN3VW_js__WEBPACK_IMPORTED_MODULE_3__.require_react_production_min)();
  39. var ReactSharedInternals = React5.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
  40. function error(format) {
  41. {
  42. {
  43. for(var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++){
  44. args[_key2 - 1] = arguments[_key2];
  45. }
  46. printWarning("error", format, args);
  47. }
  48. }
  49. }
  50. function printWarning(level, format, args) {
  51. {
  52. var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
  53. var stack = ReactDebugCurrentFrame.getStackAddendum();
  54. if (stack !== "") {
  55. format += "%s";
  56. args = args.concat([
  57. stack
  58. ]);
  59. }
  60. var argsWithFormat = args.map(function(item) {
  61. return String(item);
  62. });
  63. argsWithFormat.unshift("Warning: " + format);
  64. Function.prototype.apply.call(console[level], console, argsWithFormat);
  65. }
  66. }
  67. function is2(x, y) {
  68. return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y;
  69. }
  70. var objectIs = typeof Object.is === "function" ? Object.is : is2;
  71. var useState = React5.useState, useEffect2 = React5.useEffect, useLayoutEffect2 = React5.useLayoutEffect, useDebugValue2 = React5.useDebugValue;
  72. var didWarnOld18Alpha = false;
  73. var didWarnUncachedGetSnapshot = false;
  74. function useSyncExternalStore3(subscribe, getSnapshot, getServerSnapshot) {
  75. {
  76. if (!didWarnOld18Alpha) {
  77. if (React5.startTransition !== void 0) {
  78. didWarnOld18Alpha = true;
  79. error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.");
  80. }
  81. }
  82. }
  83. var value = getSnapshot();
  84. {
  85. if (!didWarnUncachedGetSnapshot) {
  86. var cachedValue = getSnapshot();
  87. if (!objectIs(value, cachedValue)) {
  88. error("The result of getSnapshot should be cached to avoid an infinite loop");
  89. didWarnUncachedGetSnapshot = true;
  90. }
  91. }
  92. }
  93. var _useState = useState({
  94. inst: {
  95. value,
  96. getSnapshot
  97. }
  98. }), inst = _useState[0].inst, forceUpdate = _useState[1];
  99. useLayoutEffect2(function() {
  100. inst.value = value;
  101. inst.getSnapshot = getSnapshot;
  102. if (checkIfSnapshotChanged(inst)) {
  103. forceUpdate({
  104. inst
  105. });
  106. }
  107. }, [
  108. subscribe,
  109. value,
  110. getSnapshot
  111. ]);
  112. useEffect2(function() {
  113. if (checkIfSnapshotChanged(inst)) {
  114. forceUpdate({
  115. inst
  116. });
  117. }
  118. var handleStoreChange = function() {
  119. if (checkIfSnapshotChanged(inst)) {
  120. forceUpdate({
  121. inst
  122. });
  123. }
  124. };
  125. return subscribe(handleStoreChange);
  126. }, [
  127. subscribe
  128. ]);
  129. useDebugValue2(value);
  130. return value;
  131. }
  132. function checkIfSnapshotChanged(inst) {
  133. var latestGetSnapshot = inst.getSnapshot;
  134. var prevValue = inst.value;
  135. try {
  136. var nextValue = latestGetSnapshot();
  137. return !objectIs(prevValue, nextValue);
  138. } catch (error2) {
  139. return true;
  140. }
  141. }
  142. function useSyncExternalStore$1(subscribe, getSnapshot, getServerSnapshot) {
  143. return getSnapshot();
  144. }
  145. var canUseDOM2 = !!(typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined");
  146. var isServerEnvironment = !canUseDOM2;
  147. var shim = isServerEnvironment ? useSyncExternalStore$1 : useSyncExternalStore3;
  148. var useSyncExternalStore$2 = React5.useSyncExternalStore !== void 0 ? React5.useSyncExternalStore : shim;
  149. exports.useSyncExternalStore = useSyncExternalStore$2;
  150. if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
  151. __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
  152. }
  153. })();
  154. }
  155. }
  156. });
  157. // node_modules/use-sync-external-store/shim/index.js
  158. var require_shim = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_4__.__commonJS)({
  159. "node_modules/use-sync-external-store/shim/index.js" (exports, module) {
  160. "use strict";
  161. if (false) {} else {
  162. module.exports = require_use_sync_external_store_shim_development();
  163. }
  164. }
  165. });
  166. // node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js
  167. var require_with_selector_development = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_4__.__commonJS)({
  168. "node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js" (exports) {
  169. "use strict";
  170. if (true) {
  171. (function() {
  172. "use strict";
  173. if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
  174. __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
  175. }
  176. var React5 = (0,_chunk_LNJCN3VW_js__WEBPACK_IMPORTED_MODULE_3__.require_react_production_min)();
  177. var shim = require_shim();
  178. function is2(x, y) {
  179. return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y;
  180. }
  181. var objectIs = typeof Object.is === "function" ? Object.is : is2;
  182. var useSyncExternalStore3 = shim.useSyncExternalStore;
  183. var useRef3 = React5.useRef, useEffect2 = React5.useEffect, useMemo3 = React5.useMemo, useDebugValue2 = React5.useDebugValue;
  184. function useSyncExternalStoreWithSelector3(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
  185. var instRef = useRef3(null);
  186. var inst;
  187. if (instRef.current === null) {
  188. inst = {
  189. hasValue: false,
  190. value: null
  191. };
  192. instRef.current = inst;
  193. } else {
  194. inst = instRef.current;
  195. }
  196. var _useMemo = useMemo3(function() {
  197. var hasMemo = false;
  198. var memoizedSnapshot;
  199. var memoizedSelection;
  200. var memoizedSelector = function(nextSnapshot) {
  201. if (!hasMemo) {
  202. hasMemo = true;
  203. memoizedSnapshot = nextSnapshot;
  204. var _nextSelection = selector(nextSnapshot);
  205. if (isEqual !== void 0) {
  206. if (inst.hasValue) {
  207. var currentSelection = inst.value;
  208. if (isEqual(currentSelection, _nextSelection)) {
  209. memoizedSelection = currentSelection;
  210. return currentSelection;
  211. }
  212. }
  213. }
  214. memoizedSelection = _nextSelection;
  215. return _nextSelection;
  216. }
  217. var prevSnapshot = memoizedSnapshot;
  218. var prevSelection = memoizedSelection;
  219. if (objectIs(prevSnapshot, nextSnapshot)) {
  220. return prevSelection;
  221. }
  222. var nextSelection = selector(nextSnapshot);
  223. if (isEqual !== void 0 && isEqual(prevSelection, nextSelection)) {
  224. return prevSelection;
  225. }
  226. memoizedSnapshot = nextSnapshot;
  227. memoizedSelection = nextSelection;
  228. return nextSelection;
  229. };
  230. var maybeGetServerSnapshot = getServerSnapshot === void 0 ? null : getServerSnapshot;
  231. var getSnapshotWithSelector = function() {
  232. return memoizedSelector(getSnapshot());
  233. };
  234. var getServerSnapshotWithSelector = maybeGetServerSnapshot === null ? void 0 : function() {
  235. return memoizedSelector(maybeGetServerSnapshot());
  236. };
  237. return [
  238. getSnapshotWithSelector,
  239. getServerSnapshotWithSelector
  240. ];
  241. }, [
  242. getSnapshot,
  243. getServerSnapshot,
  244. selector,
  245. isEqual
  246. ]), getSelection = _useMemo[0], getServerSelection = _useMemo[1];
  247. var value = useSyncExternalStore3(subscribe, getSelection, getServerSelection);
  248. useEffect2(function() {
  249. inst.hasValue = true;
  250. inst.value = value;
  251. }, [
  252. value
  253. ]);
  254. useDebugValue2(value);
  255. return value;
  256. }
  257. exports.useSyncExternalStoreWithSelector = useSyncExternalStoreWithSelector3;
  258. if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
  259. __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
  260. }
  261. })();
  262. }
  263. }
  264. });
  265. // node_modules/use-sync-external-store/shim/with-selector.js
  266. var require_with_selector = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_4__.__commonJS)({
  267. "node_modules/use-sync-external-store/shim/with-selector.js" (exports, module) {
  268. "use strict";
  269. if (false) {} else {
  270. module.exports = require_with_selector_development();
  271. }
  272. }
  273. });
  274. // node_modules/react-is/cjs/react-is.development.js
  275. var require_react_is_development = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_4__.__commonJS)({
  276. "node_modules/react-is/cjs/react-is.development.js" (exports) {
  277. "use strict";
  278. if (true) {
  279. (function() {
  280. "use strict";
  281. var hasSymbol = typeof Symbol === "function" && Symbol.for;
  282. var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
  283. var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
  284. var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
  285. var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
  286. var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
  287. var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
  288. var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
  289. var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
  290. var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
  291. var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
  292. var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
  293. var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
  294. var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
  295. var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
  296. var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
  297. var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
  298. var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
  299. var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
  300. function isValidElementType2(type) {
  301. return typeof type === "string" || typeof type === "function" || type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
  302. }
  303. function typeOf(object) {
  304. if (typeof object === "object" && object !== null) {
  305. var $$typeof = object.$$typeof;
  306. switch($$typeof){
  307. case REACT_ELEMENT_TYPE:
  308. var type = object.type;
  309. switch(type){
  310. case REACT_ASYNC_MODE_TYPE:
  311. case REACT_CONCURRENT_MODE_TYPE:
  312. case REACT_FRAGMENT_TYPE:
  313. case REACT_PROFILER_TYPE:
  314. case REACT_STRICT_MODE_TYPE:
  315. case REACT_SUSPENSE_TYPE:
  316. return type;
  317. default:
  318. var $$typeofType = type && type.$$typeof;
  319. switch($$typeofType){
  320. case REACT_CONTEXT_TYPE:
  321. case REACT_FORWARD_REF_TYPE:
  322. case REACT_LAZY_TYPE:
  323. case REACT_MEMO_TYPE:
  324. case REACT_PROVIDER_TYPE:
  325. return $$typeofType;
  326. default:
  327. return $$typeof;
  328. }
  329. }
  330. case REACT_PORTAL_TYPE:
  331. return $$typeof;
  332. }
  333. }
  334. return void 0;
  335. }
  336. var AsyncMode = REACT_ASYNC_MODE_TYPE;
  337. var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
  338. var ContextConsumer = REACT_CONTEXT_TYPE;
  339. var ContextProvider = REACT_PROVIDER_TYPE;
  340. var Element = REACT_ELEMENT_TYPE;
  341. var ForwardRef = REACT_FORWARD_REF_TYPE;
  342. var Fragment = REACT_FRAGMENT_TYPE;
  343. var Lazy = REACT_LAZY_TYPE;
  344. var Memo = REACT_MEMO_TYPE;
  345. var Portal = REACT_PORTAL_TYPE;
  346. var Profiler = REACT_PROFILER_TYPE;
  347. var StrictMode = REACT_STRICT_MODE_TYPE;
  348. var Suspense = REACT_SUSPENSE_TYPE;
  349. var hasWarnedAboutDeprecatedIsAsyncMode = false;
  350. function isAsyncMode(object) {
  351. {
  352. if (!hasWarnedAboutDeprecatedIsAsyncMode) {
  353. hasWarnedAboutDeprecatedIsAsyncMode = true;
  354. console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.");
  355. }
  356. }
  357. return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
  358. }
  359. function isConcurrentMode(object) {
  360. return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
  361. }
  362. function isContextConsumer2(object) {
  363. return typeOf(object) === REACT_CONTEXT_TYPE;
  364. }
  365. function isContextProvider(object) {
  366. return typeOf(object) === REACT_PROVIDER_TYPE;
  367. }
  368. function isElement(object) {
  369. return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
  370. }
  371. function isForwardRef(object) {
  372. return typeOf(object) === REACT_FORWARD_REF_TYPE;
  373. }
  374. function isFragment(object) {
  375. return typeOf(object) === REACT_FRAGMENT_TYPE;
  376. }
  377. function isLazy(object) {
  378. return typeOf(object) === REACT_LAZY_TYPE;
  379. }
  380. function isMemo(object) {
  381. return typeOf(object) === REACT_MEMO_TYPE;
  382. }
  383. function isPortal(object) {
  384. return typeOf(object) === REACT_PORTAL_TYPE;
  385. }
  386. function isProfiler(object) {
  387. return typeOf(object) === REACT_PROFILER_TYPE;
  388. }
  389. function isStrictMode(object) {
  390. return typeOf(object) === REACT_STRICT_MODE_TYPE;
  391. }
  392. function isSuspense(object) {
  393. return typeOf(object) === REACT_SUSPENSE_TYPE;
  394. }
  395. exports.AsyncMode = AsyncMode;
  396. exports.ConcurrentMode = ConcurrentMode;
  397. exports.ContextConsumer = ContextConsumer;
  398. exports.ContextProvider = ContextProvider;
  399. exports.Element = Element;
  400. exports.ForwardRef = ForwardRef;
  401. exports.Fragment = Fragment;
  402. exports.Lazy = Lazy;
  403. exports.Memo = Memo;
  404. exports.Portal = Portal;
  405. exports.Profiler = Profiler;
  406. exports.StrictMode = StrictMode;
  407. exports.Suspense = Suspense;
  408. exports.isAsyncMode = isAsyncMode;
  409. exports.isConcurrentMode = isConcurrentMode;
  410. exports.isContextConsumer = isContextConsumer2;
  411. exports.isContextProvider = isContextProvider;
  412. exports.isElement = isElement;
  413. exports.isForwardRef = isForwardRef;
  414. exports.isFragment = isFragment;
  415. exports.isLazy = isLazy;
  416. exports.isMemo = isMemo;
  417. exports.isPortal = isPortal;
  418. exports.isProfiler = isProfiler;
  419. exports.isStrictMode = isStrictMode;
  420. exports.isSuspense = isSuspense;
  421. exports.isValidElementType = isValidElementType2;
  422. exports.typeOf = typeOf;
  423. })();
  424. }
  425. }
  426. });
  427. // node_modules/react-is/index.js
  428. var require_react_is = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_4__.__commonJS)({
  429. "node_modules/react-is/index.js" (exports, module) {
  430. "use strict";
  431. if (false) {} else {
  432. module.exports = require_react_is_development();
  433. }
  434. }
  435. });
  436. // node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
  437. var require_hoist_non_react_statics_cjs = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_4__.__commonJS)({
  438. "node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js" (exports, module) {
  439. "use strict";
  440. var reactIs = require_react_is();
  441. var REACT_STATICS = {
  442. childContextTypes: true,
  443. contextType: true,
  444. contextTypes: true,
  445. defaultProps: true,
  446. displayName: true,
  447. getDefaultProps: true,
  448. getDerivedStateFromError: true,
  449. getDerivedStateFromProps: true,
  450. mixins: true,
  451. propTypes: true,
  452. type: true
  453. };
  454. var KNOWN_STATICS = {
  455. name: true,
  456. length: true,
  457. prototype: true,
  458. caller: true,
  459. callee: true,
  460. arguments: true,
  461. arity: true
  462. };
  463. var FORWARD_REF_STATICS = {
  464. "$$typeof": true,
  465. render: true,
  466. defaultProps: true,
  467. displayName: true,
  468. propTypes: true
  469. };
  470. var MEMO_STATICS = {
  471. "$$typeof": true,
  472. compare: true,
  473. defaultProps: true,
  474. displayName: true,
  475. propTypes: true,
  476. type: true
  477. };
  478. var TYPE_STATICS = {};
  479. TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
  480. TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
  481. function getStatics(component) {
  482. if (reactIs.isMemo(component)) {
  483. return MEMO_STATICS;
  484. }
  485. return TYPE_STATICS[component["$$typeof"]] || REACT_STATICS;
  486. }
  487. var defineProperty = Object.defineProperty;
  488. var getOwnPropertyNames = Object.getOwnPropertyNames;
  489. var getOwnPropertySymbols = Object.getOwnPropertySymbols;
  490. var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  491. var getPrototypeOf = Object.getPrototypeOf;
  492. var objectPrototype = Object.prototype;
  493. function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
  494. if (typeof sourceComponent !== "string") {
  495. if (objectPrototype) {
  496. var inheritedComponent = getPrototypeOf(sourceComponent);
  497. if (inheritedComponent && inheritedComponent !== objectPrototype) {
  498. hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
  499. }
  500. }
  501. var keys = getOwnPropertyNames(sourceComponent);
  502. if (getOwnPropertySymbols) {
  503. keys = keys.concat(getOwnPropertySymbols(sourceComponent));
  504. }
  505. var targetStatics = getStatics(targetComponent);
  506. var sourceStatics = getStatics(sourceComponent);
  507. for(var i = 0; i < keys.length; ++i){
  508. var key = keys[i];
  509. if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
  510. var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
  511. try {
  512. defineProperty(targetComponent, key, descriptor);
  513. } catch (e) {}
  514. }
  515. }
  516. }
  517. return targetComponent;
  518. }
  519. module.exports = hoistNonReactStatics;
  520. }
  521. });
  522. // node_modules/react-redux/node_modules/react-is/cjs/react-is.development.js
  523. var require_react_is_development2 = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_4__.__commonJS)({
  524. "node_modules/react-redux/node_modules/react-is/cjs/react-is.development.js" (exports) {
  525. "use strict";
  526. if (true) {
  527. (function() {
  528. "use strict";
  529. var REACT_ELEMENT_TYPE = Symbol.for("react.element");
  530. var REACT_PORTAL_TYPE = Symbol.for("react.portal");
  531. var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
  532. var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
  533. var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
  534. var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
  535. var REACT_CONTEXT_TYPE = Symbol.for("react.context");
  536. var REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context");
  537. var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
  538. var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
  539. var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
  540. var REACT_MEMO_TYPE = Symbol.for("react.memo");
  541. var REACT_LAZY_TYPE = Symbol.for("react.lazy");
  542. var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
  543. var enableScopeAPI = false;
  544. var enableCacheElement = false;
  545. var enableTransitionTracing = false;
  546. var enableLegacyHidden = false;
  547. var enableDebugTracing = false;
  548. var REACT_MODULE_REFERENCE;
  549. {
  550. REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
  551. }
  552. function isValidElementType2(type) {
  553. if (typeof type === "string" || typeof type === "function") {
  554. return true;
  555. }
  556. 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) {
  557. return true;
  558. }
  559. if (typeof type === "object" && type !== null) {
  560. 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 || type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
  561. return true;
  562. }
  563. }
  564. return false;
  565. }
  566. function typeOf(object) {
  567. if (typeof object === "object" && object !== null) {
  568. var $$typeof = object.$$typeof;
  569. switch($$typeof){
  570. case REACT_ELEMENT_TYPE:
  571. var type = object.type;
  572. switch(type){
  573. case REACT_FRAGMENT_TYPE:
  574. case REACT_PROFILER_TYPE:
  575. case REACT_STRICT_MODE_TYPE:
  576. case REACT_SUSPENSE_TYPE:
  577. case REACT_SUSPENSE_LIST_TYPE:
  578. return type;
  579. default:
  580. var $$typeofType = type && type.$$typeof;
  581. switch($$typeofType){
  582. case REACT_SERVER_CONTEXT_TYPE:
  583. case REACT_CONTEXT_TYPE:
  584. case REACT_FORWARD_REF_TYPE:
  585. case REACT_LAZY_TYPE:
  586. case REACT_MEMO_TYPE:
  587. case REACT_PROVIDER_TYPE:
  588. return $$typeofType;
  589. default:
  590. return $$typeof;
  591. }
  592. }
  593. case REACT_PORTAL_TYPE:
  594. return $$typeof;
  595. }
  596. }
  597. return void 0;
  598. }
  599. var ContextConsumer = REACT_CONTEXT_TYPE;
  600. var ContextProvider = REACT_PROVIDER_TYPE;
  601. var Element = REACT_ELEMENT_TYPE;
  602. var ForwardRef = REACT_FORWARD_REF_TYPE;
  603. var Fragment = REACT_FRAGMENT_TYPE;
  604. var Lazy = REACT_LAZY_TYPE;
  605. var Memo = REACT_MEMO_TYPE;
  606. var Portal = REACT_PORTAL_TYPE;
  607. var Profiler = REACT_PROFILER_TYPE;
  608. var StrictMode = REACT_STRICT_MODE_TYPE;
  609. var Suspense = REACT_SUSPENSE_TYPE;
  610. var SuspenseList = REACT_SUSPENSE_LIST_TYPE;
  611. var hasWarnedAboutDeprecatedIsAsyncMode = false;
  612. var hasWarnedAboutDeprecatedIsConcurrentMode = false;
  613. function isAsyncMode(object) {
  614. {
  615. if (!hasWarnedAboutDeprecatedIsAsyncMode) {
  616. hasWarnedAboutDeprecatedIsAsyncMode = true;
  617. console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.");
  618. }
  619. }
  620. return false;
  621. }
  622. function isConcurrentMode(object) {
  623. {
  624. if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
  625. hasWarnedAboutDeprecatedIsConcurrentMode = true;
  626. console["warn"]("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.");
  627. }
  628. }
  629. return false;
  630. }
  631. function isContextConsumer2(object) {
  632. return typeOf(object) === REACT_CONTEXT_TYPE;
  633. }
  634. function isContextProvider(object) {
  635. return typeOf(object) === REACT_PROVIDER_TYPE;
  636. }
  637. function isElement(object) {
  638. return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
  639. }
  640. function isForwardRef(object) {
  641. return typeOf(object) === REACT_FORWARD_REF_TYPE;
  642. }
  643. function isFragment(object) {
  644. return typeOf(object) === REACT_FRAGMENT_TYPE;
  645. }
  646. function isLazy(object) {
  647. return typeOf(object) === REACT_LAZY_TYPE;
  648. }
  649. function isMemo(object) {
  650. return typeOf(object) === REACT_MEMO_TYPE;
  651. }
  652. function isPortal(object) {
  653. return typeOf(object) === REACT_PORTAL_TYPE;
  654. }
  655. function isProfiler(object) {
  656. return typeOf(object) === REACT_PROFILER_TYPE;
  657. }
  658. function isStrictMode(object) {
  659. return typeOf(object) === REACT_STRICT_MODE_TYPE;
  660. }
  661. function isSuspense(object) {
  662. return typeOf(object) === REACT_SUSPENSE_TYPE;
  663. }
  664. function isSuspenseList(object) {
  665. return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
  666. }
  667. exports.ContextConsumer = ContextConsumer;
  668. exports.ContextProvider = ContextProvider;
  669. exports.Element = Element;
  670. exports.ForwardRef = ForwardRef;
  671. exports.Fragment = Fragment;
  672. exports.Lazy = Lazy;
  673. exports.Memo = Memo;
  674. exports.Portal = Portal;
  675. exports.Profiler = Profiler;
  676. exports.StrictMode = StrictMode;
  677. exports.Suspense = Suspense;
  678. exports.SuspenseList = SuspenseList;
  679. exports.isAsyncMode = isAsyncMode;
  680. exports.isConcurrentMode = isConcurrentMode;
  681. exports.isContextConsumer = isContextConsumer2;
  682. exports.isContextProvider = isContextProvider;
  683. exports.isElement = isElement;
  684. exports.isForwardRef = isForwardRef;
  685. exports.isFragment = isFragment;
  686. exports.isLazy = isLazy;
  687. exports.isMemo = isMemo;
  688. exports.isPortal = isPortal;
  689. exports.isProfiler = isProfiler;
  690. exports.isStrictMode = isStrictMode;
  691. exports.isSuspense = isSuspense;
  692. exports.isSuspenseList = isSuspenseList;
  693. exports.isValidElementType = isValidElementType2;
  694. exports.typeOf = typeOf;
  695. })();
  696. }
  697. }
  698. });
  699. // node_modules/react-redux/node_modules/react-is/index.js
  700. var require_react_is2 = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_4__.__commonJS)({
  701. "node_modules/react-redux/node_modules/react-is/index.js" (exports, module) {
  702. "use strict";
  703. if (false) {} else {
  704. module.exports = require_react_is_development2();
  705. }
  706. }
  707. });
  708. // node_modules/react-redux/es/index.js
  709. var import_shim = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_4__.__toESM)(require_shim());
  710. var import_with_selector = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_4__.__toESM)(require_with_selector());
  711. // node_modules/react-redux/es/utils/batch.js
  712. function defaultNoopBatch(callback) {
  713. callback();
  714. }
  715. var batch = defaultNoopBatch;
  716. var setBatch = (newBatch)=>batch = newBatch;
  717. var getBatch = ()=>batch;
  718. // node_modules/react-redux/es/hooks/useSelector.js
  719. var import_react2 = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_4__.__toESM)((0,_chunk_LNJCN3VW_js__WEBPACK_IMPORTED_MODULE_3__.require_react_production_min)());
  720. // node_modules/react-redux/es/hooks/useReduxContext.js
  721. var import_react = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_4__.__toESM)((0,_chunk_LNJCN3VW_js__WEBPACK_IMPORTED_MODULE_3__.require_react_production_min)());
  722. // node_modules/react-redux/es/components/Context.js
  723. var React = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_4__.__toESM)((0,_chunk_LNJCN3VW_js__WEBPACK_IMPORTED_MODULE_3__.require_react_production_min)());
  724. var ContextKey = Symbol.for(`react-redux-context`);
  725. var gT = typeof globalThis !== "undefined" ? globalThis : {};
  726. function getContext() {
  727. var _gT$ContextKey;
  728. if (!React.createContext) return {};
  729. const contextMap = (_gT$ContextKey = gT[ContextKey]) != null ? _gT$ContextKey : gT[ContextKey] = /* @__PURE__ */ new Map();
  730. let realContext = contextMap.get(React.createContext);
  731. if (!realContext) {
  732. realContext = React.createContext(null);
  733. if (true) {
  734. realContext.displayName = "ReactRedux";
  735. }
  736. contextMap.set(React.createContext, realContext);
  737. }
  738. return realContext;
  739. }
  740. var ReactReduxContext = getContext();
  741. // node_modules/react-redux/es/hooks/useReduxContext.js
  742. function createReduxContextHook(context = ReactReduxContext) {
  743. return function useReduxContext2() {
  744. const contextValue = (0, import_react.useContext)(context);
  745. if (!contextValue) {
  746. throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");
  747. }
  748. return contextValue;
  749. };
  750. }
  751. var useReduxContext = createReduxContextHook();
  752. // node_modules/react-redux/es/utils/useSyncExternalStore.js
  753. var notInitialized = ()=>{
  754. throw new Error("uSES not initialized!");
  755. };
  756. // node_modules/react-redux/es/hooks/useSelector.js
  757. var useSyncExternalStoreWithSelector = notInitialized;
  758. var initializeUseSelector = (fn)=>{
  759. useSyncExternalStoreWithSelector = fn;
  760. };
  761. var refEquality = (a, b)=>a === b;
  762. function createSelectorHook(context = ReactReduxContext) {
  763. const useReduxContext2 = context === ReactReduxContext ? useReduxContext : createReduxContextHook(context);
  764. return function useSelector2(selector, equalityFnOrOptions = {}) {
  765. const { equalityFn =refEquality , stabilityCheck =void 0 , noopCheck =void 0 } = typeof equalityFnOrOptions === "function" ? {
  766. equalityFn: equalityFnOrOptions
  767. } : equalityFnOrOptions;
  768. if (true) {
  769. if (!selector) {
  770. throw new Error(`You must pass a selector to useSelector`);
  771. }
  772. if (typeof selector !== "function") {
  773. throw new Error(`You must pass a function as a selector to useSelector`);
  774. }
  775. if (typeof equalityFn !== "function") {
  776. throw new Error(`You must pass a function as an equality function to useSelector`);
  777. }
  778. }
  779. const { store , subscription , getServerState , stabilityCheck: globalStabilityCheck , noopCheck: globalNoopCheck } = useReduxContext2();
  780. const firstRun = (0, import_react2.useRef)(true);
  781. const wrappedSelector = (0, import_react2.useCallback)({
  782. [selector.name] (state) {
  783. const selected = selector(state);
  784. if (true) {
  785. const finalStabilityCheck = typeof stabilityCheck === "undefined" ? globalStabilityCheck : stabilityCheck;
  786. if (finalStabilityCheck === "always" || finalStabilityCheck === "once" && firstRun.current) {
  787. const toCompare = selector(state);
  788. if (!equalityFn(selected, toCompare)) {
  789. let stack = void 0;
  790. try {
  791. throw new Error();
  792. } catch (e) {
  793. ;
  794. ({ stack } = e);
  795. }
  796. console.warn("Selector " + (selector.name || "unknown") + " returned a different result when called with the same parameters. This can lead to unnecessary rerenders.\nSelectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization", {
  797. state,
  798. selected,
  799. selected2: toCompare,
  800. stack
  801. });
  802. }
  803. }
  804. const finalNoopCheck = typeof noopCheck === "undefined" ? globalNoopCheck : noopCheck;
  805. if (finalNoopCheck === "always" || finalNoopCheck === "once" && firstRun.current) {
  806. if (selected === state) {
  807. let stack1 = void 0;
  808. try {
  809. throw new Error();
  810. } catch (e1) {
  811. ;
  812. ({ stack: stack1 } = e1);
  813. }
  814. console.warn("Selector " + (selector.name || "unknown") + " returned the root state when called. This can lead to unnecessary rerenders.\nSelectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.", {
  815. stack: stack1
  816. });
  817. }
  818. }
  819. if (firstRun.current) firstRun.current = false;
  820. }
  821. return selected;
  822. }
  823. }[selector.name], [
  824. selector,
  825. globalStabilityCheck,
  826. stabilityCheck
  827. ]);
  828. const selectedState = useSyncExternalStoreWithSelector(subscription.addNestedSub, store.getState, getServerState || store.getState, wrappedSelector, equalityFn);
  829. (0, import_react2.useDebugValue)(selectedState);
  830. return selectedState;
  831. };
  832. }
  833. var useSelector = createSelectorHook();
  834. // node_modules/react-redux/node_modules/@babel/runtime/helpers/esm/extends.js
  835. function _extends() {
  836. _extends = Object.assign ? Object.assign.bind() : function(target) {
  837. for(var i = 1; i < arguments.length; i++){
  838. var source = arguments[i];
  839. for(var key in source){
  840. if (Object.prototype.hasOwnProperty.call(source, key)) {
  841. target[key] = source[key];
  842. }
  843. }
  844. }
  845. return target;
  846. };
  847. return _extends.apply(this, arguments);
  848. }
  849. // node_modules/react-redux/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
  850. function _objectWithoutPropertiesLoose(source, excluded) {
  851. if (source == null) return {};
  852. var target = {};
  853. var sourceKeys = Object.keys(source);
  854. var key, i;
  855. for(i = 0; i < sourceKeys.length; i++){
  856. key = sourceKeys[i];
  857. if (excluded.indexOf(key) >= 0) continue;
  858. target[key] = source[key];
  859. }
  860. return target;
  861. }
  862. // node_modules/react-redux/es/components/connect.js
  863. var import_hoist_non_react_statics = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_4__.__toESM)(require_hoist_non_react_statics_cjs());
  864. var React3 = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_4__.__toESM)((0,_chunk_LNJCN3VW_js__WEBPACK_IMPORTED_MODULE_3__.require_react_production_min)());
  865. var import_react_is = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_4__.__toESM)(require_react_is2());
  866. // node_modules/react-redux/es/utils/warning.js
  867. function warning(message) {
  868. if (typeof console !== "undefined" && typeof console.error === "function") {
  869. console.error(message);
  870. }
  871. try {
  872. throw new Error(message);
  873. } catch (e) {}
  874. }
  875. // node_modules/react-redux/es/connect/verifySubselectors.js
  876. function verify(selector, methodName) {
  877. if (!selector) {
  878. throw new Error(`Unexpected value for ${methodName} in connect.`);
  879. } else if (methodName === "mapStateToProps" || methodName === "mapDispatchToProps") {
  880. if (!Object.prototype.hasOwnProperty.call(selector, "dependsOnOwnProps")) {
  881. warning(`The selector for ${methodName} of connect did not specify a value for dependsOnOwnProps.`);
  882. }
  883. }
  884. }
  885. function verifySubselectors(mapStateToProps, mapDispatchToProps, mergeProps) {
  886. verify(mapStateToProps, "mapStateToProps");
  887. verify(mapDispatchToProps, "mapDispatchToProps");
  888. verify(mergeProps, "mergeProps");
  889. }
  890. // node_modules/react-redux/es/connect/selectorFactory.js
  891. var _excluded = [
  892. "initMapStateToProps",
  893. "initMapDispatchToProps",
  894. "initMergeProps"
  895. ];
  896. function pureFinalPropsSelectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch, { areStatesEqual , areOwnPropsEqual , areStatePropsEqual }) {
  897. let hasRunAtLeastOnce = false;
  898. let state;
  899. let ownProps;
  900. let stateProps;
  901. let dispatchProps;
  902. let mergedProps;
  903. function handleFirstCall(firstState, firstOwnProps) {
  904. state = firstState;
  905. ownProps = firstOwnProps;
  906. stateProps = mapStateToProps(state, ownProps);
  907. dispatchProps = mapDispatchToProps(dispatch, ownProps);
  908. mergedProps = mergeProps(stateProps, dispatchProps, ownProps);
  909. hasRunAtLeastOnce = true;
  910. return mergedProps;
  911. }
  912. function handleNewPropsAndNewState() {
  913. stateProps = mapStateToProps(state, ownProps);
  914. if (mapDispatchToProps.dependsOnOwnProps) dispatchProps = mapDispatchToProps(dispatch, ownProps);
  915. mergedProps = mergeProps(stateProps, dispatchProps, ownProps);
  916. return mergedProps;
  917. }
  918. function handleNewProps() {
  919. if (mapStateToProps.dependsOnOwnProps) stateProps = mapStateToProps(state, ownProps);
  920. if (mapDispatchToProps.dependsOnOwnProps) dispatchProps = mapDispatchToProps(dispatch, ownProps);
  921. mergedProps = mergeProps(stateProps, dispatchProps, ownProps);
  922. return mergedProps;
  923. }
  924. function handleNewState() {
  925. const nextStateProps = mapStateToProps(state, ownProps);
  926. const statePropsChanged = !areStatePropsEqual(nextStateProps, stateProps);
  927. stateProps = nextStateProps;
  928. if (statePropsChanged) mergedProps = mergeProps(stateProps, dispatchProps, ownProps);
  929. return mergedProps;
  930. }
  931. function handleSubsequentCalls(nextState, nextOwnProps) {
  932. const propsChanged = !areOwnPropsEqual(nextOwnProps, ownProps);
  933. const stateChanged = !areStatesEqual(nextState, state, nextOwnProps, ownProps);
  934. state = nextState;
  935. ownProps = nextOwnProps;
  936. if (propsChanged && stateChanged) return handleNewPropsAndNewState();
  937. if (propsChanged) return handleNewProps();
  938. if (stateChanged) return handleNewState();
  939. return mergedProps;
  940. }
  941. return function pureFinalPropsSelector(nextState, nextOwnProps) {
  942. return hasRunAtLeastOnce ? handleSubsequentCalls(nextState, nextOwnProps) : handleFirstCall(nextState, nextOwnProps);
  943. };
  944. }
  945. function finalPropsSelectorFactory(dispatch, _ref) {
  946. let { initMapStateToProps , initMapDispatchToProps , initMergeProps } = _ref, options = _objectWithoutPropertiesLoose(_ref, _excluded);
  947. const mapStateToProps = initMapStateToProps(dispatch, options);
  948. const mapDispatchToProps = initMapDispatchToProps(dispatch, options);
  949. const mergeProps = initMergeProps(dispatch, options);
  950. if (true) {
  951. verifySubselectors(mapStateToProps, mapDispatchToProps, mergeProps);
  952. }
  953. return pureFinalPropsSelectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch, options);
  954. }
  955. // node_modules/react-redux/es/utils/bindActionCreators.js
  956. function bindActionCreators(actionCreators, dispatch) {
  957. const boundActionCreators = {};
  958. for(const key in actionCreators){
  959. const actionCreator = actionCreators[key];
  960. if (typeof actionCreator === "function") {
  961. boundActionCreators[key] = (...args)=>dispatch(actionCreator(...args));
  962. }
  963. }
  964. return boundActionCreators;
  965. }
  966. // node_modules/react-redux/es/utils/isPlainObject.js
  967. function isPlainObject(obj) {
  968. if (typeof obj !== "object" || obj === null) return false;
  969. let proto = Object.getPrototypeOf(obj);
  970. if (proto === null) return true;
  971. let baseProto = proto;
  972. while(Object.getPrototypeOf(baseProto) !== null){
  973. baseProto = Object.getPrototypeOf(baseProto);
  974. }
  975. return proto === baseProto;
  976. }
  977. // node_modules/react-redux/es/utils/verifyPlainObject.js
  978. function verifyPlainObject(value, displayName, methodName) {
  979. if (!isPlainObject(value)) {
  980. warning(`${methodName}() in ${displayName} must return a plain object. Instead received ${value}.`);
  981. }
  982. }
  983. // node_modules/react-redux/es/connect/wrapMapToProps.js
  984. function wrapMapToPropsConstant(getConstant) {
  985. return function initConstantSelector(dispatch) {
  986. const constant = getConstant(dispatch);
  987. function constantSelector() {
  988. return constant;
  989. }
  990. constantSelector.dependsOnOwnProps = false;
  991. return constantSelector;
  992. };
  993. }
  994. function getDependsOnOwnProps(mapToProps) {
  995. return mapToProps.dependsOnOwnProps ? Boolean(mapToProps.dependsOnOwnProps) : mapToProps.length !== 1;
  996. }
  997. function wrapMapToPropsFunc(mapToProps, methodName) {
  998. return function initProxySelector(dispatch, { displayName }) {
  999. const proxy = function mapToPropsProxy(stateOrDispatch, ownProps) {
  1000. return proxy.dependsOnOwnProps ? proxy.mapToProps(stateOrDispatch, ownProps) : proxy.mapToProps(stateOrDispatch, void 0);
  1001. };
  1002. proxy.dependsOnOwnProps = true;
  1003. proxy.mapToProps = function detectFactoryAndVerify(stateOrDispatch, ownProps) {
  1004. proxy.mapToProps = mapToProps;
  1005. proxy.dependsOnOwnProps = getDependsOnOwnProps(mapToProps);
  1006. let props = proxy(stateOrDispatch, ownProps);
  1007. if (typeof props === "function") {
  1008. proxy.mapToProps = props;
  1009. proxy.dependsOnOwnProps = getDependsOnOwnProps(props);
  1010. props = proxy(stateOrDispatch, ownProps);
  1011. }
  1012. if (true) verifyPlainObject(props, displayName, methodName);
  1013. return props;
  1014. };
  1015. return proxy;
  1016. };
  1017. }
  1018. // node_modules/react-redux/es/connect/invalidArgFactory.js
  1019. function createInvalidArgFactory(arg, name) {
  1020. return (dispatch, options)=>{
  1021. throw new Error(`Invalid value of type ${typeof arg} for ${name} argument when connecting component ${options.wrappedComponentName}.`);
  1022. };
  1023. }
  1024. // node_modules/react-redux/es/connect/mapDispatchToProps.js
  1025. function mapDispatchToPropsFactory(mapDispatchToProps) {
  1026. return mapDispatchToProps && typeof mapDispatchToProps === "object" ? wrapMapToPropsConstant((dispatch)=>bindActionCreators(mapDispatchToProps, dispatch)) : !mapDispatchToProps ? wrapMapToPropsConstant((dispatch)=>({
  1027. dispatch
  1028. })) : typeof mapDispatchToProps === "function" ? wrapMapToPropsFunc(mapDispatchToProps, "mapDispatchToProps") : createInvalidArgFactory(mapDispatchToProps, "mapDispatchToProps");
  1029. }
  1030. // node_modules/react-redux/es/connect/mapStateToProps.js
  1031. function mapStateToPropsFactory(mapStateToProps) {
  1032. return !mapStateToProps ? wrapMapToPropsConstant(()=>({})) : typeof mapStateToProps === "function" ? wrapMapToPropsFunc(mapStateToProps, "mapStateToProps") : createInvalidArgFactory(mapStateToProps, "mapStateToProps");
  1033. }
  1034. // node_modules/react-redux/es/connect/mergeProps.js
  1035. function defaultMergeProps(stateProps, dispatchProps, ownProps) {
  1036. return _extends({}, ownProps, stateProps, dispatchProps);
  1037. }
  1038. function wrapMergePropsFunc(mergeProps) {
  1039. return function initMergePropsProxy(dispatch, { displayName , areMergedPropsEqual }) {
  1040. let hasRunOnce = false;
  1041. let mergedProps;
  1042. return function mergePropsProxy(stateProps, dispatchProps, ownProps) {
  1043. const nextMergedProps = mergeProps(stateProps, dispatchProps, ownProps);
  1044. if (hasRunOnce) {
  1045. if (!areMergedPropsEqual(nextMergedProps, mergedProps)) mergedProps = nextMergedProps;
  1046. } else {
  1047. hasRunOnce = true;
  1048. mergedProps = nextMergedProps;
  1049. if (true) verifyPlainObject(mergedProps, displayName, "mergeProps");
  1050. }
  1051. return mergedProps;
  1052. };
  1053. };
  1054. }
  1055. function mergePropsFactory(mergeProps) {
  1056. return !mergeProps ? ()=>defaultMergeProps : typeof mergeProps === "function" ? wrapMergePropsFunc(mergeProps) : createInvalidArgFactory(mergeProps, "mergeProps");
  1057. }
  1058. // node_modules/react-redux/es/utils/Subscription.js
  1059. function createListenerCollection() {
  1060. const batch2 = getBatch();
  1061. let first = null;
  1062. let last = null;
  1063. return {
  1064. clear () {
  1065. first = null;
  1066. last = null;
  1067. },
  1068. notify () {
  1069. batch2(()=>{
  1070. let listener = first;
  1071. while(listener){
  1072. listener.callback();
  1073. listener = listener.next;
  1074. }
  1075. });
  1076. },
  1077. get () {
  1078. let listeners = [];
  1079. let listener = first;
  1080. while(listener){
  1081. listeners.push(listener);
  1082. listener = listener.next;
  1083. }
  1084. return listeners;
  1085. },
  1086. subscribe (callback) {
  1087. let isSubscribed = true;
  1088. let listener = last = {
  1089. callback,
  1090. next: null,
  1091. prev: last
  1092. };
  1093. if (listener.prev) {
  1094. listener.prev.next = listener;
  1095. } else {
  1096. first = listener;
  1097. }
  1098. return function unsubscribe() {
  1099. if (!isSubscribed || first === null) return;
  1100. isSubscribed = false;
  1101. if (listener.next) {
  1102. listener.next.prev = listener.prev;
  1103. } else {
  1104. last = listener.prev;
  1105. }
  1106. if (listener.prev) {
  1107. listener.prev.next = listener.next;
  1108. } else {
  1109. first = listener.next;
  1110. }
  1111. };
  1112. }
  1113. };
  1114. }
  1115. var nullListeners = {
  1116. notify () {},
  1117. get: ()=>[]
  1118. };
  1119. function createSubscription(store, parentSub) {
  1120. let unsubscribe;
  1121. let listeners = nullListeners;
  1122. let subscriptionsAmount = 0;
  1123. let selfSubscribed = false;
  1124. function addNestedSub(listener) {
  1125. trySubscribe();
  1126. const cleanupListener = listeners.subscribe(listener);
  1127. let removed = false;
  1128. return ()=>{
  1129. if (!removed) {
  1130. removed = true;
  1131. cleanupListener();
  1132. tryUnsubscribe();
  1133. }
  1134. };
  1135. }
  1136. function notifyNestedSubs() {
  1137. listeners.notify();
  1138. }
  1139. function handleChangeWrapper() {
  1140. if (subscription.onStateChange) {
  1141. subscription.onStateChange();
  1142. }
  1143. }
  1144. function isSubscribed() {
  1145. return selfSubscribed;
  1146. }
  1147. function trySubscribe() {
  1148. subscriptionsAmount++;
  1149. if (!unsubscribe) {
  1150. unsubscribe = parentSub ? parentSub.addNestedSub(handleChangeWrapper) : store.subscribe(handleChangeWrapper);
  1151. listeners = createListenerCollection();
  1152. }
  1153. }
  1154. function tryUnsubscribe() {
  1155. subscriptionsAmount--;
  1156. if (unsubscribe && subscriptionsAmount === 0) {
  1157. unsubscribe();
  1158. unsubscribe = void 0;
  1159. listeners.clear();
  1160. listeners = nullListeners;
  1161. }
  1162. }
  1163. function trySubscribeSelf() {
  1164. if (!selfSubscribed) {
  1165. selfSubscribed = true;
  1166. trySubscribe();
  1167. }
  1168. }
  1169. function tryUnsubscribeSelf() {
  1170. if (selfSubscribed) {
  1171. selfSubscribed = false;
  1172. tryUnsubscribe();
  1173. }
  1174. }
  1175. const subscription = {
  1176. addNestedSub,
  1177. notifyNestedSubs,
  1178. handleChangeWrapper,
  1179. isSubscribed,
  1180. trySubscribe: trySubscribeSelf,
  1181. tryUnsubscribe: tryUnsubscribeSelf,
  1182. getListeners: ()=>listeners
  1183. };
  1184. return subscription;
  1185. }
  1186. // node_modules/react-redux/es/utils/useIsomorphicLayoutEffect.js
  1187. var React2 = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_4__.__toESM)((0,_chunk_LNJCN3VW_js__WEBPACK_IMPORTED_MODULE_3__.require_react_production_min)());
  1188. var canUseDOM = !!(typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined");
  1189. var useIsomorphicLayoutEffect = canUseDOM ? React2.useLayoutEffect : React2.useEffect;
  1190. // node_modules/react-redux/es/utils/shallowEqual.js
  1191. function is(x, y) {
  1192. if (x === y) {
  1193. return x !== 0 || y !== 0 || 1 / x === 1 / y;
  1194. } else {
  1195. return x !== x && y !== y;
  1196. }
  1197. }
  1198. function shallowEqual(objA, objB) {
  1199. if (is(objA, objB)) return true;
  1200. if (typeof objA !== "object" || objA === null || typeof objB !== "object" || objB === null) {
  1201. return false;
  1202. }
  1203. const keysA = Object.keys(objA);
  1204. const keysB = Object.keys(objB);
  1205. if (keysA.length !== keysB.length) return false;
  1206. for(let i = 0; i < keysA.length; i++){
  1207. if (!Object.prototype.hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {
  1208. return false;
  1209. }
  1210. }
  1211. return true;
  1212. }
  1213. // node_modules/react-redux/es/components/connect.js
  1214. var _excluded2 = [
  1215. "reactReduxForwardedRef"
  1216. ];
  1217. var useSyncExternalStore = notInitialized;
  1218. var initializeConnect = (fn)=>{
  1219. useSyncExternalStore = fn;
  1220. };
  1221. var NO_SUBSCRIPTION_ARRAY = [
  1222. null,
  1223. null
  1224. ];
  1225. var stringifyComponent = (Comp)=>{
  1226. try {
  1227. return JSON.stringify(Comp);
  1228. } catch (err) {
  1229. return String(Comp);
  1230. }
  1231. };
  1232. function useIsomorphicLayoutEffectWithArgs(effectFunc, effectArgs, dependencies) {
  1233. useIsomorphicLayoutEffect(()=>effectFunc(...effectArgs), dependencies);
  1234. }
  1235. function captureWrapperProps(lastWrapperProps, lastChildProps, renderIsScheduled, wrapperProps, childPropsFromStoreUpdate, notifyNestedSubs) {
  1236. lastWrapperProps.current = wrapperProps;
  1237. renderIsScheduled.current = false;
  1238. if (childPropsFromStoreUpdate.current) {
  1239. childPropsFromStoreUpdate.current = null;
  1240. notifyNestedSubs();
  1241. }
  1242. }
  1243. function subscribeUpdates(shouldHandleStateChanges, store, subscription, childPropsSelector, lastWrapperProps, lastChildProps, renderIsScheduled, isMounted, childPropsFromStoreUpdate, notifyNestedSubs, additionalSubscribeListener) {
  1244. if (!shouldHandleStateChanges) return ()=>{};
  1245. let didUnsubscribe = false;
  1246. let lastThrownError = null;
  1247. const checkForUpdates = ()=>{
  1248. if (didUnsubscribe || !isMounted.current) {
  1249. return;
  1250. }
  1251. const latestStoreState = store.getState();
  1252. let newChildProps, error;
  1253. try {
  1254. newChildProps = childPropsSelector(latestStoreState, lastWrapperProps.current);
  1255. } catch (e) {
  1256. error = e;
  1257. lastThrownError = e;
  1258. }
  1259. if (!error) {
  1260. lastThrownError = null;
  1261. }
  1262. if (newChildProps === lastChildProps.current) {
  1263. if (!renderIsScheduled.current) {
  1264. notifyNestedSubs();
  1265. }
  1266. } else {
  1267. lastChildProps.current = newChildProps;
  1268. childPropsFromStoreUpdate.current = newChildProps;
  1269. renderIsScheduled.current = true;
  1270. additionalSubscribeListener();
  1271. }
  1272. };
  1273. subscription.onStateChange = checkForUpdates;
  1274. subscription.trySubscribe();
  1275. checkForUpdates();
  1276. const unsubscribeWrapper = ()=>{
  1277. didUnsubscribe = true;
  1278. subscription.tryUnsubscribe();
  1279. subscription.onStateChange = null;
  1280. if (lastThrownError) {
  1281. throw lastThrownError;
  1282. }
  1283. };
  1284. return unsubscribeWrapper;
  1285. }
  1286. function strictEqual(a, b) {
  1287. return a === b;
  1288. }
  1289. var hasWarnedAboutDeprecatedPureOption = false;
  1290. function connect(mapStateToProps, mapDispatchToProps, mergeProps, { pure , areStatesEqual =strictEqual , areOwnPropsEqual =shallowEqual , areStatePropsEqual =shallowEqual , areMergedPropsEqual =shallowEqual , forwardRef: forwardRef2 = false , context =ReactReduxContext } = {}) {
  1291. if (true) {
  1292. if (pure !== void 0 && !hasWarnedAboutDeprecatedPureOption) {
  1293. hasWarnedAboutDeprecatedPureOption = true;
  1294. warning('The `pure` option has been removed. `connect` is now always a "pure/memoized" component');
  1295. }
  1296. }
  1297. const Context = context;
  1298. const initMapStateToProps = mapStateToPropsFactory(mapStateToProps);
  1299. const initMapDispatchToProps = mapDispatchToPropsFactory(mapDispatchToProps);
  1300. const initMergeProps = mergePropsFactory(mergeProps);
  1301. const shouldHandleStateChanges = Boolean(mapStateToProps);
  1302. const wrapWithConnect = (WrappedComponent)=>{
  1303. if (!(0, import_react_is.isValidElementType)(WrappedComponent)) {
  1304. throw new Error(`You must pass a component to the function returned by connect. Instead received ${stringifyComponent(WrappedComponent)}`);
  1305. }
  1306. const wrappedComponentName = WrappedComponent.displayName || WrappedComponent.name || "Component";
  1307. const displayName = `Connect(${wrappedComponentName})`;
  1308. const selectorFactoryOptions = {
  1309. shouldHandleStateChanges,
  1310. displayName,
  1311. wrappedComponentName,
  1312. WrappedComponent,
  1313. initMapStateToProps,
  1314. initMapDispatchToProps,
  1315. initMergeProps,
  1316. areStatesEqual,
  1317. areStatePropsEqual,
  1318. areOwnPropsEqual,
  1319. areMergedPropsEqual
  1320. };
  1321. function ConnectFunction(props) {
  1322. const [propsContext, reactReduxForwardedRef, wrapperProps] = React3.useMemo(()=>{
  1323. const { reactReduxForwardedRef: reactReduxForwardedRef2 } = props, wrapperProps2 = _objectWithoutPropertiesLoose(props, _excluded2);
  1324. return [
  1325. props.context,
  1326. reactReduxForwardedRef2,
  1327. wrapperProps2
  1328. ];
  1329. }, [
  1330. props
  1331. ]);
  1332. const ContextToUse = React3.useMemo(()=>{
  1333. return propsContext && propsContext.Consumer && (0, import_react_is.isContextConsumer)(React3.createElement(propsContext.Consumer, null)) ? propsContext : Context;
  1334. }, [
  1335. propsContext,
  1336. Context
  1337. ]);
  1338. const contextValue = React3.useContext(ContextToUse);
  1339. const didStoreComeFromProps = Boolean(props.store) && Boolean(props.store.getState) && Boolean(props.store.dispatch);
  1340. const didStoreComeFromContext = Boolean(contextValue) && Boolean(contextValue.store);
  1341. if (!didStoreComeFromProps && !didStoreComeFromContext) {
  1342. throw new Error(`Could not find "store" in the context of "${displayName}". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to ${displayName} in connect options.`);
  1343. }
  1344. const store = didStoreComeFromProps ? props.store : contextValue.store;
  1345. const getServerState = didStoreComeFromContext ? contextValue.getServerState : store.getState;
  1346. const childPropsSelector = React3.useMemo(()=>{
  1347. return finalPropsSelectorFactory(store.dispatch, selectorFactoryOptions);
  1348. }, [
  1349. store
  1350. ]);
  1351. const [subscription, notifyNestedSubs] = React3.useMemo(()=>{
  1352. if (!shouldHandleStateChanges) return NO_SUBSCRIPTION_ARRAY;
  1353. const subscription2 = createSubscription(store, didStoreComeFromProps ? void 0 : contextValue.subscription);
  1354. const notifyNestedSubs2 = subscription2.notifyNestedSubs.bind(subscription2);
  1355. return [
  1356. subscription2,
  1357. notifyNestedSubs2
  1358. ];
  1359. }, [
  1360. store,
  1361. didStoreComeFromProps,
  1362. contextValue
  1363. ]);
  1364. const overriddenContextValue = React3.useMemo(()=>{
  1365. if (didStoreComeFromProps) {
  1366. return contextValue;
  1367. }
  1368. return _extends({}, contextValue, {
  1369. subscription
  1370. });
  1371. }, [
  1372. didStoreComeFromProps,
  1373. contextValue,
  1374. subscription
  1375. ]);
  1376. const lastChildProps = React3.useRef();
  1377. const lastWrapperProps = React3.useRef(wrapperProps);
  1378. const childPropsFromStoreUpdate = React3.useRef();
  1379. const renderIsScheduled = React3.useRef(false);
  1380. const isProcessingDispatch = React3.useRef(false);
  1381. const isMounted = React3.useRef(false);
  1382. const latestSubscriptionCallbackError = React3.useRef();
  1383. useIsomorphicLayoutEffect(()=>{
  1384. isMounted.current = true;
  1385. return ()=>{
  1386. isMounted.current = false;
  1387. };
  1388. }, []);
  1389. const actualChildPropsSelector = React3.useMemo(()=>{
  1390. const selector = ()=>{
  1391. if (childPropsFromStoreUpdate.current && wrapperProps === lastWrapperProps.current) {
  1392. return childPropsFromStoreUpdate.current;
  1393. }
  1394. return childPropsSelector(store.getState(), wrapperProps);
  1395. };
  1396. return selector;
  1397. }, [
  1398. store,
  1399. wrapperProps
  1400. ]);
  1401. const subscribeForReact = React3.useMemo(()=>{
  1402. const subscribe = (reactListener)=>{
  1403. if (!subscription) {
  1404. return ()=>{};
  1405. }
  1406. return subscribeUpdates(shouldHandleStateChanges, store, subscription, childPropsSelector, lastWrapperProps, lastChildProps, renderIsScheduled, isMounted, childPropsFromStoreUpdate, notifyNestedSubs, reactListener);
  1407. };
  1408. return subscribe;
  1409. }, [
  1410. subscription
  1411. ]);
  1412. useIsomorphicLayoutEffectWithArgs(captureWrapperProps, [
  1413. lastWrapperProps,
  1414. lastChildProps,
  1415. renderIsScheduled,
  1416. wrapperProps,
  1417. childPropsFromStoreUpdate,
  1418. notifyNestedSubs
  1419. ]);
  1420. let actualChildProps;
  1421. try {
  1422. actualChildProps = useSyncExternalStore(subscribeForReact, actualChildPropsSelector, getServerState ? ()=>childPropsSelector(getServerState(), wrapperProps) : actualChildPropsSelector);
  1423. } catch (err) {
  1424. if (latestSubscriptionCallbackError.current) {
  1425. ;
  1426. err.message += `
  1427. The error may be correlated with this previous error:
  1428. ${latestSubscriptionCallbackError.current.stack}
  1429. `;
  1430. }
  1431. throw err;
  1432. }
  1433. useIsomorphicLayoutEffect(()=>{
  1434. latestSubscriptionCallbackError.current = void 0;
  1435. childPropsFromStoreUpdate.current = void 0;
  1436. lastChildProps.current = actualChildProps;
  1437. });
  1438. const renderedWrappedComponent = React3.useMemo(()=>{
  1439. return React3.createElement(WrappedComponent, _extends({}, actualChildProps, {
  1440. ref: reactReduxForwardedRef
  1441. }));
  1442. }, [
  1443. reactReduxForwardedRef,
  1444. WrappedComponent,
  1445. actualChildProps
  1446. ]);
  1447. const renderedChild = React3.useMemo(()=>{
  1448. if (shouldHandleStateChanges) {
  1449. return React3.createElement(ContextToUse.Provider, {
  1450. value: overriddenContextValue
  1451. }, renderedWrappedComponent);
  1452. }
  1453. return renderedWrappedComponent;
  1454. }, [
  1455. ContextToUse,
  1456. renderedWrappedComponent,
  1457. overriddenContextValue
  1458. ]);
  1459. return renderedChild;
  1460. }
  1461. const _Connect = React3.memo(ConnectFunction);
  1462. const Connect = _Connect;
  1463. Connect.WrappedComponent = WrappedComponent;
  1464. Connect.displayName = ConnectFunction.displayName = displayName;
  1465. if (forwardRef2) {
  1466. const _forwarded = React3.forwardRef(function forwardConnectRef(props, ref) {
  1467. return React3.createElement(Connect, _extends({}, props, {
  1468. reactReduxForwardedRef: ref
  1469. }));
  1470. });
  1471. const forwarded = _forwarded;
  1472. forwarded.displayName = displayName;
  1473. forwarded.WrappedComponent = WrappedComponent;
  1474. return (0, import_hoist_non_react_statics.default)(forwarded, WrappedComponent);
  1475. }
  1476. return (0, import_hoist_non_react_statics.default)(Connect, WrappedComponent);
  1477. };
  1478. return wrapWithConnect;
  1479. }
  1480. var connect_default = connect;
  1481. // node_modules/react-redux/es/components/Provider.js
  1482. var React4 = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_4__.__toESM)((0,_chunk_LNJCN3VW_js__WEBPACK_IMPORTED_MODULE_3__.require_react_production_min)());
  1483. function Provider({ store , context , children , serverState , stabilityCheck ="once" , noopCheck ="once" }) {
  1484. const contextValue = React4.useMemo(()=>{
  1485. const subscription = createSubscription(store);
  1486. return {
  1487. store,
  1488. subscription,
  1489. getServerState: serverState ? ()=>serverState : void 0,
  1490. stabilityCheck,
  1491. noopCheck
  1492. };
  1493. }, [
  1494. store,
  1495. serverState,
  1496. stabilityCheck,
  1497. noopCheck
  1498. ]);
  1499. const previousState = React4.useMemo(()=>store.getState(), [
  1500. store
  1501. ]);
  1502. useIsomorphicLayoutEffect(()=>{
  1503. const { subscription } = contextValue;
  1504. subscription.onStateChange = subscription.notifyNestedSubs;
  1505. subscription.trySubscribe();
  1506. if (previousState !== store.getState()) {
  1507. subscription.notifyNestedSubs();
  1508. }
  1509. return ()=>{
  1510. subscription.tryUnsubscribe();
  1511. subscription.onStateChange = void 0;
  1512. };
  1513. }, [
  1514. contextValue,
  1515. previousState
  1516. ]);
  1517. const Context = context || ReactReduxContext;
  1518. return React4.createElement(Context.Provider, {
  1519. value: contextValue
  1520. }, children);
  1521. }
  1522. var Provider_default = Provider;
  1523. // node_modules/react-redux/es/hooks/useStore.js
  1524. function createStoreHook(context = ReactReduxContext) {
  1525. const useReduxContext2 = context === ReactReduxContext ? useReduxContext : createReduxContextHook(context);
  1526. return function useStore2() {
  1527. const { store } = useReduxContext2();
  1528. return store;
  1529. };
  1530. }
  1531. var useStore = createStoreHook();
  1532. // node_modules/react-redux/es/hooks/useDispatch.js
  1533. function createDispatchHook(context = ReactReduxContext) {
  1534. const useStore2 = context === ReactReduxContext ? useStore : createStoreHook(context);
  1535. return function useDispatch2() {
  1536. const store = useStore2();
  1537. return store.dispatch;
  1538. };
  1539. }
  1540. var useDispatch = createDispatchHook();
  1541. // node_modules/react-redux/es/index.js
  1542. initializeUseSelector(import_with_selector.useSyncExternalStoreWithSelector);
  1543. initializeConnect(import_shim.useSyncExternalStore);
  1544. setBatch(_chunk_2Y2U3MWF_js__WEBPACK_IMPORTED_MODULE_0__.unstable_batchedUpdates);
  1545. /**
  1546. * @license React
  1547. * react-is.development.js
  1548. *
  1549. * Copyright (c) Facebook, Inc. and its affiliates.
  1550. *
  1551. * This source code is licensed under the MIT license found in the
  1552. * LICENSE file in the root directory of this source tree.
  1553. */ /**
  1554. * @license React
  1555. * use-sync-external-store-shim.development.js
  1556. *
  1557. * Copyright (c) Facebook, Inc. and its affiliates.
  1558. *
  1559. * This source code is licensed under the MIT license found in the
  1560. * LICENSE file in the root directory of this source tree.
  1561. */ /**
  1562. * @license React
  1563. * use-sync-external-store-shim/with-selector.development.js
  1564. *
  1565. * Copyright (c) Facebook, Inc. and its affiliates.
  1566. *
  1567. * This source code is licensed under the MIT license found in the
  1568. * LICENSE file in the root directory of this source tree.
  1569. */ /** @license React v16.13.1
  1570. * react-is.development.js
  1571. *
  1572. * Copyright (c) Facebook, Inc. and its affiliates.
  1573. *
  1574. * This source code is licensed under the MIT license found in the
  1575. * LICENSE file in the root directory of this source tree.
  1576. */
  1577. /***/ })
  1578. }]);