@my-react/react-reconciler-compact 0.0.13 → 0.0.14

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 (32) hide show
  1. package/dist/cjs/index.development.js +755 -663
  2. package/dist/cjs/index.production.js +688 -607
  3. package/dist/esm/index.mjs +1432 -1258
  4. package/dist/types/api/append.d.ts.map +1 -1
  5. package/dist/types/api/create.d.ts.map +1 -1
  6. package/dist/types/api/position.d.ts.map +1 -1
  7. package/dist/types/api/ref.d.ts.map +1 -1
  8. package/dist/types/api/remove.d.ts.map +1 -1
  9. package/dist/types/api/update.d.ts.map +1 -1
  10. package/dist/types/config.d.ts.map +1 -1
  11. package/dist/types/constants.d.ts.map +1 -1
  12. package/dist/types/devtool.d.ts.map +1 -1
  13. package/dist/types/{dispatchFiber.d.ts → dispatch-fiber.d.ts} +1 -1
  14. package/dist/types/dispatch-fiber.d.ts.map +1 -0
  15. package/dist/types/{dispatchMap.d.ts → dispatch-map.d.ts} +1 -1
  16. package/dist/types/dispatch-map.d.ts.map +1 -0
  17. package/dist/types/{dispatchMount.d.ts → dispatch-mount.d.ts} +1 -1
  18. package/dist/types/dispatch-mount.d.ts.map +1 -0
  19. package/dist/types/{dispatchUpdate.d.ts → dispatch-update.d.ts} +1 -1
  20. package/dist/types/dispatch-update.d.ts.map +1 -0
  21. package/dist/types/dispatch.d.ts +34 -206
  22. package/dist/types/dispatch.d.ts.map +1 -1
  23. package/dist/types/feature.d.ts +34 -206
  24. package/dist/types/feature.d.ts.map +1 -1
  25. package/dist/types/hmr.d.ts.map +1 -1
  26. package/dist/types/index.d.ts.map +1 -1
  27. package/dist/types/portal.d.ts.map +1 -1
  28. package/package.json +5 -5
  29. package/dist/types/dispatchFiber.d.ts.map +0 -1
  30. package/dist/types/dispatchMap.d.ts.map +0 -1
  31. package/dist/types/dispatchMount.d.ts.map +0 -1
  32. package/dist/types/dispatchUpdate.d.ts.map +0 -1
@@ -108,7 +108,7 @@ var hasRequiredIndex_development;
108
108
  function requireIndex_development () {
109
109
  if (hasRequiredIndex_development) return index_development;
110
110
  hasRequiredIndex_development = 1;
111
- (function (exports) {
111
+ (function (exports$1) {
112
112
 
113
113
  var react = require$$0;
114
114
 
@@ -153,6 +153,10 @@ function requireIndex_development () {
153
153
  var Comment = Symbol.for("react.comment");
154
154
  var Activity = Symbol.for("react.activity");
155
155
  var Profiler = Symbol.for("react.profiler");
156
+ /**
157
+ * Symbol for server reference type
158
+ */
159
+ var SERVER_REFERENCE_SYMBOL = Symbol.for("react.server.reference");
156
160
 
157
161
  function isObject(target) {
158
162
  return typeof target === "object" && target !== null;
@@ -755,7 +759,7 @@ function requireIndex_development () {
755
759
  var enableValidMyReactElement = react.createRef(false);
756
760
  var enableLogForCurrentFlowIsRunning = react.createRef(false);
757
761
 
758
- exports.NODE_TYPE = void 0;
762
+ exports$1.NODE_TYPE = void 0;
759
763
  (function (NODE_TYPE) {
760
764
  NODE_TYPE[NODE_TYPE["__initial__"] = 0] = "__initial__";
761
765
  NODE_TYPE[NODE_TYPE["__class__"] = 1] = "__class__";
@@ -781,24 +785,25 @@ function requireIndex_development () {
781
785
  NODE_TYPE[NODE_TYPE["__scopeLazy__"] = 1048576] = "__scopeLazy__";
782
786
  NODE_TYPE[NODE_TYPE["__scopeSuspense__"] = 2097152] = "__scopeSuspense__";
783
787
  NODE_TYPE[NODE_TYPE["__activity__"] = 4194304] = "__activity__";
784
- })(exports.NODE_TYPE || (exports.NODE_TYPE = {}));
788
+ NODE_TYPE[NODE_TYPE["__serverComponent__"] = 8388608] = "__serverComponent__";
789
+ })(exports$1.NODE_TYPE || (exports$1.NODE_TYPE = {}));
785
790
 
786
791
  var enableSyncFlush$1 = react.__my_react_shared__.enableSyncFlush;
787
792
  /**
788
793
  * @deprecated
789
794
  */
790
- exports.syncFlush = false;
795
+ exports$1.syncFlush = false;
791
796
  /**
792
797
  * @deprecated
793
798
  */
794
799
  var beforeSyncFlush = function () {
795
- exports.syncFlush = true;
800
+ exports$1.syncFlush = true;
796
801
  };
797
802
  /**
798
803
  * @deprecated
799
804
  */
800
805
  var afterSyncFlush = function () {
801
- exports.syncFlush = false;
806
+ exports$1.syncFlush = false;
802
807
  };
803
808
  var stack = [enableSyncFlush$1.current];
804
809
  var beforeSyncUpdate = function () {
@@ -1030,7 +1035,7 @@ function requireIndex_development () {
1030
1035
  if (owner) {
1031
1036
  var ownerFiber = owner;
1032
1037
  var ownerFiberElementType = ownerFiber.elementType;
1033
- if (include(ownerFiber.type, exports.NODE_TYPE.__class__ | exports.NODE_TYPE.__function__)) {
1038
+ if (include(ownerFiber.type, exports$1.NODE_TYPE.__class__ | exports$1.NODE_TYPE.__function__)) {
1034
1039
  var ownerElement = ownerFiber._debugElement;
1035
1040
  var typedOwnerElementType = ownerFiberElementType;
1036
1041
  var name_1 = typedOwnerElementType.displayName || typedOwnerElementType.name;
@@ -1042,48 +1047,50 @@ function requireIndex_development () {
1042
1047
  }
1043
1048
  };
1044
1049
  var shouldIncludeLog = function (fiber) {
1045
- if (include(fiber.type, exports.NODE_TYPE.__class__ | exports.NODE_TYPE.__function__)) {
1050
+ if (include(fiber.type, exports$1.NODE_TYPE.__class__ | exports$1.NODE_TYPE.__function__)) {
1046
1051
  return true;
1047
1052
  }
1048
1053
  return false;
1049
1054
  };
1050
1055
  var getFiberTagName = function (fiber) {
1051
1056
  var tag = [];
1052
- if (fiber.type & exports.NODE_TYPE.__memo__) {
1057
+ if (fiber.type & exports$1.NODE_TYPE.__memo__) {
1053
1058
  tag.push("memo");
1054
1059
  }
1055
- if (fiber.type & exports.NODE_TYPE.__forwardRef__) {
1060
+ if (fiber.type & exports$1.NODE_TYPE.__forwardRef__) {
1056
1061
  tag.push("forwardRef");
1057
1062
  }
1058
- if (fiber.type & exports.NODE_TYPE.__lazy__) {
1063
+ if (fiber.type & exports$1.NODE_TYPE.__lazy__) {
1059
1064
  tag.push("lazy");
1060
1065
  }
1061
- if (fiber.type & exports.NODE_TYPE.__fragment__ && fiber.pendingProps["wrap"]) {
1066
+ if (fiber.type & exports$1.NODE_TYPE.__fragment__ && fiber.pendingProps["wrap"]) {
1062
1067
  tag.push("auto-wrap");
1063
1068
  }
1064
1069
  return tag.join("-");
1065
1070
  };
1066
1071
  var getPlainFiberName = function (fiber) {
1067
1072
  var typedFiber = fiber;
1068
- if (fiber.type & exports.NODE_TYPE.__provider__) {
1073
+ if (fiber.type & exports$1.NODE_TYPE.__provider__) {
1069
1074
  var typedElementType = fiber.elementType;
1070
1075
  var name_2 = typedElementType.Context.displayName;
1071
1076
  return "".concat(name_2 || "Context", ".Provider");
1072
1077
  }
1073
- if (fiber.type & exports.NODE_TYPE.__context__) {
1078
+ if (fiber.type & exports$1.NODE_TYPE.__context__) {
1074
1079
  var typedElementType = fiber.elementType;
1075
1080
  var name_3 = typedElementType.displayName;
1076
1081
  return "".concat(name_3 || "Context");
1077
1082
  }
1078
- if (fiber.type & exports.NODE_TYPE.__consumer__) {
1083
+ if (fiber.type & exports$1.NODE_TYPE.__consumer__) {
1079
1084
  var typedElementType = fiber.elementType;
1080
1085
  var name_4 = typedElementType.Context.displayName;
1081
1086
  return "".concat(name_4 || "Context", ".Consumer");
1082
1087
  }
1083
- if (fiber.type & exports.NODE_TYPE.__lazy__) {
1088
+ if (fiber.type & exports$1.NODE_TYPE.__lazy__) {
1084
1089
  var typedElementType = fiber.elementType;
1085
1090
  var typedRender = typedElementType === null || typedElementType === void 0 ? void 0 : typedElementType.render;
1086
1091
  var name_5 = (typedRender === null || typedRender === void 0 ? void 0 : typedRender.displayName) || (typedRender === null || typedRender === void 0 ? void 0 : typedRender.name) || "";
1092
+ var loader = typedElementType.loader;
1093
+ name_5 = loader["displayName"] || name_5;
1087
1094
  {
1088
1095
  var element = typedFiber._debugElement;
1089
1096
  // may be a Suspense element
@@ -1092,31 +1099,31 @@ function requireIndex_development () {
1092
1099
  }
1093
1100
  return "".concat(name_5 || "Anonymous");
1094
1101
  }
1095
- if (fiber.type & exports.NODE_TYPE.__portal__)
1102
+ if (fiber.type & exports$1.NODE_TYPE.__portal__)
1096
1103
  return "Portal";
1097
- if (fiber.type & exports.NODE_TYPE.__null__)
1104
+ if (fiber.type & exports$1.NODE_TYPE.__null__)
1098
1105
  return "Null";
1099
- if (fiber.type & exports.NODE_TYPE.__empty__)
1106
+ if (fiber.type & exports$1.NODE_TYPE.__empty__)
1100
1107
  return "Empty";
1101
- if (fiber.type & exports.NODE_TYPE.__scope__)
1108
+ if (fiber.type & exports$1.NODE_TYPE.__scope__)
1102
1109
  return "Scope";
1103
- if (fiber.type & exports.NODE_TYPE.__scopeLazy__)
1110
+ if (fiber.type & exports$1.NODE_TYPE.__scopeLazy__)
1104
1111
  return "ScopeLazy";
1105
- if (fiber.type & exports.NODE_TYPE.__scopeSuspense__)
1112
+ if (fiber.type & exports$1.NODE_TYPE.__scopeSuspense__)
1106
1113
  return "ScopeSuspense";
1107
- if (fiber.type & exports.NODE_TYPE.__strict__)
1114
+ if (fiber.type & exports$1.NODE_TYPE.__strict__)
1108
1115
  return "Strict";
1109
- if (fiber.type & exports.NODE_TYPE.__profiler__)
1116
+ if (fiber.type & exports$1.NODE_TYPE.__profiler__)
1110
1117
  return "Profiler";
1111
- if (fiber.type & exports.NODE_TYPE.__suspense__)
1118
+ if (fiber.type & exports$1.NODE_TYPE.__suspense__)
1112
1119
  return "Suspense";
1113
- if (fiber.type & exports.NODE_TYPE.__comment__)
1120
+ if (fiber.type & exports$1.NODE_TYPE.__comment__)
1114
1121
  return "Comment";
1115
- if (fiber.type & exports.NODE_TYPE.__root__)
1122
+ if (fiber.type & exports$1.NODE_TYPE.__root__)
1116
1123
  return "Root";
1117
- if (fiber.type & exports.NODE_TYPE.__fragment__)
1124
+ if (fiber.type & exports$1.NODE_TYPE.__fragment__)
1118
1125
  return "Fragment";
1119
- if (fiber.type & exports.NODE_TYPE.__text__)
1126
+ if (fiber.type & exports$1.NODE_TYPE.__text__)
1120
1127
  return "text";
1121
1128
  if (typeof fiber.elementType === "string")
1122
1129
  return "".concat(fiber.elementType);
@@ -1181,7 +1188,7 @@ function requireIndex_development () {
1181
1188
  while (temp) {
1182
1189
  res ? (res += "\n".concat(preString).concat(getFiberNodeNameWithFiber(temp))) : (res = "".concat(preString).concat(getFiberNodeNameWithFiber(temp)));
1183
1190
  var isMount = temp._debugIsMount;
1184
- var isPlain = temp.type & exports.NODE_TYPE.__plain__;
1191
+ var isPlain = temp.type & exports$1.NODE_TYPE.__plain__;
1185
1192
  arr.push("color: white;background-color: ".concat(isMount ? (isPlain ? typeColor.plain : typeColor.normal) : typeColor.unmount, "; border-radius: 2px; padding: 1px 5px; margin: 1px 0px"));
1186
1193
  arr.push("");
1187
1194
  arr.push(temp);
@@ -1256,7 +1263,7 @@ function requireIndex_development () {
1256
1263
  return type;
1257
1264
  };
1258
1265
  var getTypeFromElementNode = function (element) {
1259
- var nodeType = exports.NODE_TYPE.__initial__;
1266
+ var nodeType = exports$1.NODE_TYPE.__initial__;
1260
1267
  if (enableValidMyReactElement.current) {
1261
1268
  checkIsMyReactElement(element);
1262
1269
  }
@@ -1268,17 +1275,17 @@ function requireIndex_development () {
1268
1275
  {
1269
1276
  devWarn("[@my-react/react] invalid object element type \"".concat(JSON.stringify(element), "\""));
1270
1277
  }
1271
- nodeType = merge(nodeType, exports.NODE_TYPE.__empty__);
1278
+ nodeType = merge(nodeType, exports$1.NODE_TYPE.__empty__);
1272
1279
  }
1273
1280
  else if (element === null || element === undefined || typeof element === "boolean" || typeof element === "function" || element === "") {
1274
- nodeType = merge(nodeType, exports.NODE_TYPE.__null__);
1281
+ nodeType = merge(nodeType, exports$1.NODE_TYPE.__null__);
1275
1282
  }
1276
1283
  else {
1277
1284
  // text element
1278
1285
  return {
1279
1286
  key: null,
1280
1287
  ref: null,
1281
- nodeType: exports.NODE_TYPE.__text__,
1288
+ nodeType: exports$1.NODE_TYPE.__text__,
1282
1289
  elementType: String(element),
1283
1290
  pendingProps: emptyProps$1,
1284
1291
  finalElement: element,
@@ -1290,7 +1297,7 @@ function requireIndex_development () {
1290
1297
  };
1291
1298
  var getTypeFromElement = function (element) {
1292
1299
  var _a, _b, _c, _d, _e, _f, _g;
1293
- var nodeType = exports.NODE_TYPE.__initial__;
1300
+ var nodeType = exports$1.NODE_TYPE.__initial__;
1294
1301
  var elementType = element.type;
1295
1302
  var finalElement = element;
1296
1303
  var pendingProps = element.props;
@@ -1307,108 +1314,108 @@ function requireIndex_development () {
1307
1314
  var typedElementType = elementType;
1308
1315
  switch (typedElementType[TYPEKEY]) {
1309
1316
  case Provider:
1310
- nodeType = merge(nodeType, exports.NODE_TYPE.__provider__);
1317
+ nodeType = merge(nodeType, exports$1.NODE_TYPE.__provider__);
1311
1318
  break;
1312
1319
  // support react 19 context api
1313
1320
  case Context:
1314
- nodeType = merge(nodeType, exports.NODE_TYPE.__context__);
1321
+ nodeType = merge(nodeType, exports$1.NODE_TYPE.__context__);
1315
1322
  break;
1316
1323
  case Consumer:
1317
- nodeType = merge(nodeType, exports.NODE_TYPE.__consumer__);
1324
+ nodeType = merge(nodeType, exports$1.NODE_TYPE.__consumer__);
1318
1325
  break;
1319
1326
  case Memo:
1320
- nodeType = merge(nodeType, exports.NODE_TYPE.__memo__);
1327
+ nodeType = merge(nodeType, exports$1.NODE_TYPE.__memo__);
1321
1328
  elementType = typedElementType.render;
1322
1329
  break;
1323
1330
  case ForwardRef:
1324
- nodeType = merge(nodeType, exports.NODE_TYPE.__forwardRef__);
1331
+ nodeType = merge(nodeType, exports$1.NODE_TYPE.__forwardRef__);
1325
1332
  elementType = typedElementType.render;
1326
1333
  break;
1327
1334
  case Lazy:
1328
- nodeType = merge(nodeType, exports.NODE_TYPE.__lazy__);
1335
+ nodeType = merge(nodeType, exports$1.NODE_TYPE.__lazy__);
1329
1336
  break;
1330
1337
  default:
1331
1338
  throw new Error("[@my-react/react] invalid object element type \"".concat((_e = typedElementType[TYPEKEY]) === null || _e === void 0 ? void 0 : _e.toString(), "\""));
1332
1339
  }
1333
1340
  if (typeof elementType === "object") {
1334
1341
  if (elementType[TYPEKEY] === ForwardRef) {
1335
- nodeType = merge(nodeType, exports.NODE_TYPE.__forwardRef__);
1342
+ nodeType = merge(nodeType, exports$1.NODE_TYPE.__forwardRef__);
1336
1343
  elementType = elementType.render;
1337
1344
  }
1338
1345
  if (elementType[TYPEKEY] === Provider) {
1339
- nodeType = merge(nodeType, exports.NODE_TYPE.__provider__);
1346
+ nodeType = merge(nodeType, exports$1.NODE_TYPE.__provider__);
1340
1347
  }
1341
1348
  if (elementType[TYPEKEY] === Context) {
1342
- nodeType = merge(nodeType, exports.NODE_TYPE.__context__);
1349
+ nodeType = merge(nodeType, exports$1.NODE_TYPE.__context__);
1343
1350
  }
1344
1351
  if (elementType[TYPEKEY] === Consumer) {
1345
- nodeType = merge(nodeType, exports.NODE_TYPE.__consumer__);
1352
+ nodeType = merge(nodeType, exports$1.NODE_TYPE.__consumer__);
1346
1353
  }
1347
1354
  }
1348
1355
  if (typeof elementType === "function") {
1349
1356
  if ((_f = elementType.prototype) === null || _f === void 0 ? void 0 : _f.isMyReactComponent) {
1350
- nodeType = merge(nodeType, exports.NODE_TYPE.__class__);
1357
+ nodeType = merge(nodeType, exports$1.NODE_TYPE.__class__);
1351
1358
  }
1352
1359
  else {
1353
- nodeType = merge(nodeType, exports.NODE_TYPE.__function__);
1360
+ nodeType = merge(nodeType, exports$1.NODE_TYPE.__function__);
1354
1361
  }
1355
1362
  }
1356
1363
  }
1357
1364
  else if (typeof elementType === "function") {
1358
1365
  if ((_g = elementType.prototype) === null || _g === void 0 ? void 0 : _g.isMyReactComponent) {
1359
- nodeType = merge(nodeType, exports.NODE_TYPE.__class__);
1366
+ nodeType = merge(nodeType, exports$1.NODE_TYPE.__class__);
1360
1367
  }
1361
1368
  else {
1362
- nodeType = merge(nodeType, exports.NODE_TYPE.__function__);
1369
+ nodeType = merge(nodeType, exports$1.NODE_TYPE.__function__);
1363
1370
  }
1364
1371
  }
1365
1372
  else if (typeof elementType === "symbol") {
1366
1373
  switch (elementType) {
1367
1374
  case Root:
1368
- nodeType = merge(nodeType, exports.NODE_TYPE.__root__);
1375
+ nodeType = merge(nodeType, exports$1.NODE_TYPE.__root__);
1369
1376
  break;
1370
1377
  case Fragment:
1371
- nodeType = merge(nodeType, exports.NODE_TYPE.__fragment__);
1378
+ nodeType = merge(nodeType, exports$1.NODE_TYPE.__fragment__);
1372
1379
  break;
1373
1380
  case Strict:
1374
- nodeType = merge(nodeType, exports.NODE_TYPE.__strict__);
1381
+ nodeType = merge(nodeType, exports$1.NODE_TYPE.__strict__);
1375
1382
  break;
1376
1383
  case Suspense:
1377
- nodeType = merge(nodeType, exports.NODE_TYPE.__suspense__);
1384
+ nodeType = merge(nodeType, exports$1.NODE_TYPE.__suspense__);
1378
1385
  break;
1379
1386
  case Scope:
1380
- nodeType = merge(nodeType, exports.NODE_TYPE.__scope__);
1387
+ nodeType = merge(nodeType, exports$1.NODE_TYPE.__scope__);
1381
1388
  break;
1382
1389
  case ScopeLazy:
1383
- nodeType = merge(nodeType, exports.NODE_TYPE.__scopeLazy__);
1390
+ nodeType = merge(nodeType, exports$1.NODE_TYPE.__scopeLazy__);
1384
1391
  break;
1385
1392
  case ScopeSuspense:
1386
- nodeType = merge(nodeType, exports.NODE_TYPE.__scopeSuspense__);
1393
+ nodeType = merge(nodeType, exports$1.NODE_TYPE.__scopeSuspense__);
1387
1394
  break;
1388
1395
  case Comment:
1389
- nodeType = merge(nodeType, exports.NODE_TYPE.__comment__);
1396
+ nodeType = merge(nodeType, exports$1.NODE_TYPE.__comment__);
1390
1397
  break;
1391
1398
  case Portal:
1392
- nodeType = merge(nodeType, exports.NODE_TYPE.__portal__);
1399
+ nodeType = merge(nodeType, exports$1.NODE_TYPE.__portal__);
1393
1400
  break;
1394
1401
  case Profiler:
1395
- nodeType = merge(nodeType, exports.NODE_TYPE.__profiler__);
1402
+ nodeType = merge(nodeType, exports$1.NODE_TYPE.__profiler__);
1396
1403
  break;
1397
1404
  case Activity:
1398
- nodeType = merge(nodeType, exports.NODE_TYPE.__activity__);
1405
+ nodeType = merge(nodeType, exports$1.NODE_TYPE.__activity__);
1399
1406
  break;
1400
1407
  default:
1401
1408
  throw new Error("[@my-react/react] invalid symbol element type \"".concat(elementType === null || elementType === void 0 ? void 0 : elementType.toString(), "\""));
1402
1409
  }
1403
1410
  }
1404
1411
  else if (typeof elementType === "string" && elementType !== "") {
1405
- nodeType = merge(nodeType, exports.NODE_TYPE.__plain__);
1412
+ nodeType = merge(nodeType, exports$1.NODE_TYPE.__plain__);
1406
1413
  }
1407
1414
  else {
1408
1415
  {
1409
1416
  devWarn("[@my-react/react] invalid element type \"".concat(elementType === null || elementType === void 0 ? void 0 : elementType.toString(), "\""));
1410
1417
  }
1411
- nodeType = merge(nodeType, exports.NODE_TYPE.__empty__);
1418
+ nodeType = merge(nodeType, exports$1.NODE_TYPE.__empty__);
1412
1419
  }
1413
1420
  return { key: key, ref: ref, nodeType: nodeType, elementType: elementType, pendingProps: pendingProps, finalElement: finalElement };
1414
1421
  };
@@ -1426,7 +1433,7 @@ function requireIndex_development () {
1426
1433
  }
1427
1434
  };
1428
1435
  var setRefreshTypeMap = function (fiber) {
1429
- if (include(fiber.type, exports.NODE_TYPE.__class__ | exports.NODE_TYPE.__function__)) {
1436
+ if (include(fiber.type, exports$1.NODE_TYPE.__class__ | exports$1.NODE_TYPE.__function__)) {
1430
1437
  var elementType = fiber.elementType;
1431
1438
  var exist = typeToFibersMap.get(elementType) || new Set();
1432
1439
  exist.add(fiber);
@@ -1615,7 +1622,7 @@ function requireIndex_development () {
1615
1622
  var _a = getTypeFromElementNode(element), nodeType = _a.nodeType, elementType = _a.elementType;
1616
1623
  if (p.type === nodeType) {
1617
1624
  if (react.isValidElement(element)) {
1618
- if (enableHMRForDev.current && include(nodeType, exports.NODE_TYPE.__class__ | exports.NODE_TYPE.__function__)) {
1625
+ if (enableHMRForDev.current && include(nodeType, exports$1.NODE_TYPE.__class__ | exports$1.NODE_TYPE.__function__)) {
1619
1626
  // type error
1620
1627
  return Object.is(getCurrentTypeFromRefresh(p.elementType), getCurrentTypeFromRefresh(elementType));
1621
1628
  }
@@ -1638,7 +1645,7 @@ function requireIndex_development () {
1638
1645
  if (react.isValidElement(element)) {
1639
1646
  var typedExistElement = p;
1640
1647
  var typedIncomingElement = element;
1641
- if (enableHMRForDev.current && include(existElementType.nodeType, exports.NODE_TYPE.__class__ | exports.NODE_TYPE.__function__)) {
1648
+ if (enableHMRForDev.current && include(existElementType.nodeType, exports$1.NODE_TYPE.__class__ | exports$1.NODE_TYPE.__function__)) {
1642
1649
  return Object.is(getCurrentTypeFromRefresh(typedIncomingElement.type), getCurrentTypeFromRefresh(typedExistElement.type));
1643
1650
  }
1644
1651
  else {
@@ -1847,7 +1854,7 @@ function requireIndex_development () {
1847
1854
  var _a;
1848
1855
  var parent = fiber.parent;
1849
1856
  while (parent) {
1850
- if (include(parent.type, exports.NODE_TYPE.__suspense__)) {
1857
+ if (include(parent.type, exports$1.NODE_TYPE.__suspense__)) {
1851
1858
  return (_a = parent.pendingProps) === null || _a === void 0 ? void 0 : _a["fallback"];
1852
1859
  }
1853
1860
  parent = parent.parent;
@@ -1857,7 +1864,7 @@ function requireIndex_development () {
1857
1864
  var defaultResolveSuspenseFiber = function (fiber) {
1858
1865
  var parent = fiber.parent;
1859
1866
  while (parent) {
1860
- if (include(parent.type, exports.NODE_TYPE.__suspense__)) {
1867
+ if (include(parent.type, exports$1.NODE_TYPE.__suspense__)) {
1861
1868
  return parent;
1862
1869
  }
1863
1870
  parent = parent.parent;
@@ -1866,7 +1873,7 @@ function requireIndex_development () {
1866
1873
  };
1867
1874
  var defaultResolveAliveSuspenseFiber = function (fiber) {
1868
1875
  while (fiber) {
1869
- if (include(fiber.type, exports.NODE_TYPE.__suspense__) && exclude(fiber.state, STATE_TYPE.__unmount__)) {
1876
+ if (include(fiber.type, exports$1.NODE_TYPE.__suspense__) && exclude(fiber.state, STATE_TYPE.__unmount__)) {
1870
1877
  return fiber;
1871
1878
  }
1872
1879
  fiber = fiber.parent;
@@ -2028,7 +2035,6 @@ function requireIndex_development () {
2028
2035
  case 0:
2029
2036
  node = renderDispatch.pendingSuspenseFiberArray.uniShift();
2030
2037
  suspenseField = getInstanceFieldByInstance(node.instance);
2031
- renderDispatch.pendingSuspenseFiberArray.clear();
2032
2038
  list = suspenseField.asyncLoadList.getAll();
2033
2039
  return [4 /*yield*/, Promise.all(list.map(function (item) { return __awaiter(void 0, void 0, void 0, function () {
2034
2040
  var set;
@@ -2113,8 +2119,9 @@ function requireIndex_development () {
2113
2119
  }); };
2114
2120
  var processAsyncLoadListOnSyncMount = function (renderDispatch) {
2115
2121
  var _a;
2116
- if ((_a = renderDispatch.pendingSuspenseFiberArray) === null || _a === void 0 ? void 0 : _a.length) {
2122
+ var _loop_2 = function () {
2117
2123
  var allPendingSuspenseFiberArray = renderDispatch.pendingSuspenseFiberArray.getAll();
2124
+ renderDispatch.pendingSuspenseFiberArray.clear();
2118
2125
  if (renderDispatch.enableAsyncLoad) {
2119
2126
  var allField_1 = [];
2120
2127
  allPendingSuspenseFiberArray.forEach(function (node) {
@@ -2125,7 +2132,9 @@ function requireIndex_development () {
2125
2132
  return typeof item.status !== "string";
2126
2133
  }
2127
2134
  else {
2128
- return !item._loading && !item._loaded && !item._error;
2135
+ // return !item._loading && !item._loaded && !item._error;
2136
+ // return !item._loading;
2137
+ return true;
2129
2138
  }
2130
2139
  });
2131
2140
  if (allPendingLoadArray.length) {
@@ -2173,11 +2182,13 @@ function requireIndex_development () {
2173
2182
  // TODO use hide tree to improve
2174
2183
  mountLoopAll(renderDispatch, root);
2175
2184
  allField_1.forEach(function (field) { return (field.isHidden = false); });
2176
- renderDispatch.pendingSuspenseFiberArray.clear();
2177
2185
  }
2178
2186
  else {
2179
2187
  throw new Error("[@my-react/reconciler] should not process async load list on sync mount without enableAsyncLoad, you may use a wrong renderDispatch instance");
2180
2188
  }
2189
+ };
2190
+ while ((_a = renderDispatch.pendingSuspenseFiberArray) === null || _a === void 0 ? void 0 : _a.length) {
2191
+ _loop_2();
2181
2192
  }
2182
2193
  if (enableSuspenseRoot$3.current) {
2183
2194
  var suspenseField_2 = getInstanceFieldByInstance(renderDispatch);
@@ -2240,13 +2251,13 @@ function requireIndex_development () {
2240
2251
 
2241
2252
  var enableSuspenseRoot$2 = react.__my_react_shared__.enableSuspenseRoot;
2242
2253
  var currentScheduler$d = react.__my_react_internal__.currentScheduler;
2243
- exports.updateTypeEnum = void 0;
2254
+ exports$1.updateTypeEnum = void 0;
2244
2255
  (function (updateTypeEnum) {
2245
2256
  updateTypeEnum[updateTypeEnum["syncFromRoot"] = 0] = "syncFromRoot";
2246
2257
  updateTypeEnum[updateTypeEnum["syncFromTrigger"] = 1] = "syncFromTrigger";
2247
2258
  updateTypeEnum[updateTypeEnum["concurrentFromRoot"] = 2] = "concurrentFromRoot";
2248
2259
  updateTypeEnum[updateTypeEnum["concurrentFromTrigger"] = 3] = "concurrentFromTrigger";
2249
- })(exports.updateTypeEnum || (exports.updateTypeEnum = {}));
2260
+ })(exports$1.updateTypeEnum || (exports$1.updateTypeEnum = {}));
2250
2261
  var triggerFiberUpdateListener = function (renderDispatch, fiber) {
2251
2262
  safeCallWithCurrentFiber({
2252
2263
  fiber: fiber,
@@ -2287,8 +2298,9 @@ function requireIndex_development () {
2287
2298
  };
2288
2299
  var processAsyncLoadListOnUpdate = function (renderDispatch) {
2289
2300
  var _a;
2290
- if ((_a = renderDispatch.pendingSuspenseFiberArray) === null || _a === void 0 ? void 0 : _a.length) {
2301
+ var _loop_1 = function () {
2291
2302
  var allPendingSuspenseFiberArray = renderDispatch.pendingSuspenseFiberArray.getAll();
2303
+ renderDispatch.pendingSuspenseFiberArray.clear();
2292
2304
  if (renderDispatch.enableAsyncLoad) {
2293
2305
  var allField_1 = [];
2294
2306
  allPendingSuspenseFiberArray.forEach(function (node) {
@@ -2299,7 +2311,9 @@ function requireIndex_development () {
2299
2311
  return typeof item.status !== "string";
2300
2312
  }
2301
2313
  else {
2302
- return !item._loading && !item._loaded && !item._error;
2314
+ // return !item._loading && !item._loaded && !item._error;
2315
+ // return !item._loading;
2316
+ return true;
2303
2317
  }
2304
2318
  });
2305
2319
  if (allPendingLoadArray.length) {
@@ -2348,11 +2362,13 @@ function requireIndex_development () {
2348
2362
  // TODO use hide tree to improve
2349
2363
  mountLoopAll(renderDispatch, root);
2350
2364
  allField_1.forEach(function (field) { return (field.isHidden = false); });
2351
- renderDispatch.pendingSuspenseFiberArray.clear();
2352
2365
  }
2353
2366
  else {
2354
2367
  throw new Error("[@my-react/reconciler] should not process async load list on sync mount without enableAsyncLoad, you may use a wrong renderDispatch instance");
2355
2368
  }
2369
+ };
2370
+ while ((_a = renderDispatch.pendingSuspenseFiberArray) === null || _a === void 0 ? void 0 : _a.length) {
2371
+ _loop_1();
2356
2372
  }
2357
2373
  // TODO update flow
2358
2374
  if (enableSuspenseRoot$2.current) {
@@ -2413,7 +2429,7 @@ function requireIndex_development () {
2413
2429
  return typeof instance.componentDidCatch === "function" || typeof Component.getDerivedStateFromError === "function";
2414
2430
  };
2415
2431
  var isErrorBoundariesComponent = function (fiber) {
2416
- if (include(fiber.type, exports.NODE_TYPE.__class__) && include(fiber.state, STATE_TYPE.__stable__)) {
2432
+ if (include(fiber.type, exports$1.NODE_TYPE.__class__) && include(fiber.state, STATE_TYPE.__stable__)) {
2417
2433
  var Component = fiber.elementType;
2418
2434
  var typedComponent = Component;
2419
2435
  var typedInstance = fiber.instance;
@@ -2453,7 +2469,6 @@ function requireIndex_development () {
2453
2469
  return field;
2454
2470
  };
2455
2471
 
2456
- /* eslint-disable max-lines */
2457
2472
  var enableLegacyLifeCycle = react.__my_react_shared__.enableLegacyLifeCycle;
2458
2473
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2459
2474
  // @ts-ignore
@@ -2541,7 +2556,7 @@ function requireIndex_development () {
2541
2556
  var processComponentDidMountOnMount = function (renderDispatch, fiber) {
2542
2557
  var typedInstance = fiber.instance;
2543
2558
  var effect = getInstanceEffectState(typedInstance);
2544
- if (exclude(effect, Effect_TYPE.__effect__)) {
2559
+ if (typeof effect === "number" && exclude(effect, Effect_TYPE.__effect__)) {
2545
2560
  setEffectForInstance(typedInstance, Effect_TYPE.__effect__);
2546
2561
  renderDispatch.pendingLayoutEffect(fiber, function invokeComponentDidMountOnInstance() {
2547
2562
  var _a;
@@ -2610,7 +2625,7 @@ function requireIndex_development () {
2610
2625
  var baseState = _a.baseState, baseProps = _a.baseProps, snapshot = _a.snapshot;
2611
2626
  var typedInstance = fiber.instance;
2612
2627
  var effect = getInstanceEffectState(typedInstance);
2613
- if (typedInstance.componentDidUpdate && exclude(effect, Effect_TYPE.__effect__)) {
2628
+ if (typedInstance.componentDidUpdate && typeof effect === "number" && exclude(effect, Effect_TYPE.__effect__)) {
2614
2629
  setEffectForInstance(typedInstance, Effect_TYPE.__effect__);
2615
2630
  renderDispatch.pendingLayoutEffect(fiber, function invokeComponentDidUpdateOnInstance() {
2616
2631
  var _a;
@@ -2762,7 +2777,7 @@ function requireIndex_development () {
2762
2777
  var nextContext = processComponentContextOnUpdate(renderDispatch, fiber);
2763
2778
  var shouldUpdate = Boolean(include(fiber.state, STATE_TYPE.__triggerSyncForce__ | STATE_TYPE.__triggerConcurrentForce__));
2764
2779
  if (!shouldUpdate) {
2765
- shouldUpdate = processComponentShouldUpdateOnUpdate(fiber, {
2780
+ shouldUpdate = !!processComponentShouldUpdateOnUpdate(fiber, {
2766
2781
  nextState: nextState,
2767
2782
  nextProps: nextProps,
2768
2783
  nextContext: nextContext,
@@ -2821,13 +2836,13 @@ function requireIndex_development () {
2821
2836
  };
2822
2837
 
2823
2838
  /* eslint-disable max-lines */
2824
- var enableDebugFiled$8 = react.__my_react_shared__.enableDebugFiled;
2839
+ var enableDebugFiled$a = react.__my_react_shared__.enableDebugFiled;
2825
2840
  var currentScheduler$c = react.__my_react_internal__.currentScheduler;
2826
2841
  // TODO 整合
2827
2842
  var processClassComponentUpdateQueueLatest = function (renderDispatch, fiber, enableTaskPriority) {
2828
2843
  if (include(fiber.state, STATE_TYPE.__unmount__))
2829
2844
  return;
2830
- if (exclude(fiber.type, exports.NODE_TYPE.__class__))
2845
+ if (exclude(fiber.type, exports$1.NODE_TYPE.__class__))
2831
2846
  throw new Error("[@my-react/react] current fiber is not a class component, look like a bug for @my-react");
2832
2847
  var renderScheduler = currentScheduler$c.current;
2833
2848
  var allQueue = fiber.updateQueue;
@@ -2844,7 +2859,7 @@ function requireIndex_development () {
2844
2859
  var baseState = Object.assign({}, fiber.pendingState);
2845
2860
  var baseProps = Object.assign({}, typedInstance.props);
2846
2861
  var pendingState = Object.assign({}, fiber.pendingState);
2847
- if (enableDebugFiled$8.current && enableDebugUpdateQueue.current) {
2862
+ if (enableDebugFiled$a.current && enableDebugUpdateQueue.current) {
2848
2863
  typedFiber._debugLatestUpdateQueue = new ListTree();
2849
2864
  }
2850
2865
  if (enableTaskPriority && allQueue.some(function (l) { return l.isSync; })) {
@@ -2872,7 +2887,7 @@ function requireIndex_development () {
2872
2887
  isImmediate = isImmediate || updater.isImmediate;
2873
2888
  isRetrigger = isRetrigger || updater.isRetrigger;
2874
2889
  updater.callback && callbacks.push(updater.callback);
2875
- if (enableDebugFiled$8.current) {
2890
+ if (enableDebugFiled$a.current) {
2876
2891
  var typedNode = updater;
2877
2892
  typedNode._debugRunTime = Date.now();
2878
2893
  typedNode._debugBeforeValue = pendingState;
@@ -2893,7 +2908,7 @@ function requireIndex_development () {
2893
2908
  isImmediate = isImmediate || updater.isImmediate;
2894
2909
  isRetrigger = isRetrigger || updater.isRetrigger;
2895
2910
  updater.callback && callbacks.push(updater.callback);
2896
- if (enableDebugFiled$8.current) {
2911
+ if (enableDebugFiled$a.current) {
2897
2912
  var typedNode = updater;
2898
2913
  typedNode._debugRunTime = Date.now();
2899
2914
  typedNode._debugBeforeValue = pendingState;
@@ -2955,7 +2970,7 @@ function requireIndex_development () {
2955
2970
  isImmediate = isImmediate || updater.isImmediate;
2956
2971
  isRetrigger = isRetrigger || updater.isRetrigger;
2957
2972
  updater.callback && callbacks.push(updater.callback);
2958
- if (enableDebugFiled$8.current) {
2973
+ if (enableDebugFiled$a.current) {
2959
2974
  var typedNode = updater;
2960
2975
  typedNode._debugRunTime = Date.now();
2961
2976
  typedNode._debugBeforeValue = pendingState;
@@ -2976,7 +2991,7 @@ function requireIndex_development () {
2976
2991
  isImmediate = isImmediate || updater.isImmediate;
2977
2992
  isRetrigger = isRetrigger || updater.isRetrigger;
2978
2993
  updater.callback && callbacks.push(updater.callback);
2979
- if (enableDebugFiled$8.current) {
2994
+ if (enableDebugFiled$a.current) {
2980
2995
  var typedNode = updater;
2981
2996
  typedNode._debugRunTime = Date.now();
2982
2997
  typedNode._debugBeforeValue = pendingState;
@@ -3013,7 +3028,7 @@ function requireIndex_development () {
3013
3028
  var processClassComponentUpdateQueueLegacy = function (renderDispatch, fiber) {
3014
3029
  if (include(fiber.state, STATE_TYPE.__unmount__))
3015
3030
  return;
3016
- if (exclude(fiber.type, exports.NODE_TYPE.__class__))
3031
+ if (exclude(fiber.type, exports$1.NODE_TYPE.__class__))
3017
3032
  throw new Error("[@my-react/react] current fiber is not a class component, look like a bug for @my-react");
3018
3033
  var renderScheduler = currentScheduler$c.current;
3019
3034
  var allQueue = fiber.updateQueue;
@@ -3030,7 +3045,7 @@ function requireIndex_development () {
3030
3045
  var baseState = Object.assign({}, fiber.pendingState);
3031
3046
  var baseProps = Object.assign({}, typedInstance.props);
3032
3047
  var pendingState = Object.assign({}, fiber.pendingState);
3033
- if (enableDebugFiled$8.current && enableDebugUpdateQueue.current) {
3048
+ if (enableDebugFiled$a.current && enableDebugUpdateQueue.current) {
3034
3049
  typedFiber._debugLatestUpdateQueue = new ListTree();
3035
3050
  }
3036
3051
  if (node) {
@@ -3055,7 +3070,7 @@ function requireIndex_development () {
3055
3070
  isImmediate = isImmediate || updater.isImmediate;
3056
3071
  isRetrigger = isRetrigger || updater.isRetrigger;
3057
3072
  updater.callback && callbacks.push(updater.callback);
3058
- if (enableDebugFiled$8.current) {
3073
+ if (enableDebugFiled$a.current) {
3059
3074
  var typedNode = updater;
3060
3075
  typedNode._debugRunTime = Date.now();
3061
3076
  typedNode._debugBeforeValue = pendingState;
@@ -3076,7 +3091,7 @@ function requireIndex_development () {
3076
3091
  isImmediate = isImmediate || updater.isImmediate;
3077
3092
  isRetrigger = isRetrigger || updater.isRetrigger;
3078
3093
  updater.callback && callbacks.push(updater.callback);
3079
- if (enableDebugFiled$8.current) {
3094
+ if (enableDebugFiled$a.current) {
3080
3095
  var typedNode = updater;
3081
3096
  typedNode._debugRunTime = Date.now();
3082
3097
  typedNode._debugBeforeValue = pendingState;
@@ -3114,7 +3129,7 @@ function requireIndex_development () {
3114
3129
  var _a, _b;
3115
3130
  if (include(fiber.state, STATE_TYPE.__unmount__))
3116
3131
  return;
3117
- if (exclude(fiber.type, exports.NODE_TYPE.__function__)) {
3132
+ if (exclude(fiber.type, exports$1.NODE_TYPE.__function__)) {
3118
3133
  throw new Error("[@my-react/react] current fiber is not a function component, look like a bug for @my-react");
3119
3134
  }
3120
3135
  var renderScheduler = currentScheduler$c.current;
@@ -3128,7 +3143,7 @@ function requireIndex_development () {
3128
3143
  var isRetrigger = false;
3129
3144
  var processedNodes = [];
3130
3145
  var callbacks = [];
3131
- if (enableDebugFiled$8.current && enableDebugUpdateQueue.current) {
3146
+ if (enableDebugFiled$a.current && enableDebugUpdateQueue.current) {
3132
3147
  typedFiber._debugLatestUpdateQueue = new ListTree();
3133
3148
  }
3134
3149
  if (enableTaskPriority && allQueue.some(function (l) { return l.isSync; })) {
@@ -3170,7 +3185,7 @@ function requireIndex_development () {
3170
3185
  updater.callback && callbacks.push(updater.callback);
3171
3186
  if (!needUpdate && (isForce || hasError_1 || callbacks.length || !Object.is(lastResult_1, typedTrigger_1.result)))
3172
3187
  needUpdate = true;
3173
- if (enableDebugFiled$8.current) {
3188
+ if (enableDebugFiled$a.current) {
3174
3189
  var typedNode = updater;
3175
3190
  typedNode._debugRunTime = Date.now();
3176
3191
  typedNode._debugBeforeValue = lastResult_1;
@@ -3194,7 +3209,7 @@ function requireIndex_development () {
3194
3209
  isRetrigger = isRetrigger || updater.isRetrigger;
3195
3210
  updater.callback && callbacks.push(updater.callback);
3196
3211
  needUpdate = true;
3197
- if (enableDebugFiled$8.current) {
3212
+ if (enableDebugFiled$a.current) {
3198
3213
  var typedNode = updater;
3199
3214
  typedNode._debugRunTime = Date.now();
3200
3215
  typedNode._debugBeforeValue = undefined;
@@ -3270,7 +3285,7 @@ function requireIndex_development () {
3270
3285
  updater.callback && callbacks.push(updater.callback);
3271
3286
  if (!needUpdate && (isForce || hasError_2 || callbacks.length || !Object.is(lastResult_2, typedTrigger_2.result)))
3272
3287
  needUpdate = true;
3273
- if (enableDebugFiled$8.current) {
3288
+ if (enableDebugFiled$a.current) {
3274
3289
  var typedNode = updater;
3275
3290
  typedNode._debugRunTime = Date.now();
3276
3291
  typedNode._debugBeforeValue = lastResult_2;
@@ -3294,7 +3309,7 @@ function requireIndex_development () {
3294
3309
  isRetrigger = isRetrigger || updater.isRetrigger;
3295
3310
  updater.callback && callbacks.push(updater.callback);
3296
3311
  needUpdate = true;
3297
- if (enableDebugFiled$8.current) {
3312
+ if (enableDebugFiled$a.current) {
3298
3313
  var typedNode = updater;
3299
3314
  typedNode._debugRunTime = Date.now();
3300
3315
  typedNode._debugBeforeValue = undefined;
@@ -3331,7 +3346,7 @@ function requireIndex_development () {
3331
3346
  var _a;
3332
3347
  if (include(fiber.state, STATE_TYPE.__unmount__))
3333
3348
  return;
3334
- if (exclude(fiber.type, exports.NODE_TYPE.__function__)) {
3349
+ if (exclude(fiber.type, exports$1.NODE_TYPE.__function__)) {
3335
3350
  throw new Error("[@my-react/react] current fiber is not a function component, look like a bug for @my-react");
3336
3351
  }
3337
3352
  var renderScheduler = currentScheduler$c.current;
@@ -3345,7 +3360,7 @@ function requireIndex_development () {
3345
3360
  var isRetrigger = false;
3346
3361
  var processedNodes = [];
3347
3362
  var callbacks = [];
3348
- if (enableDebugFiled$8.current && enableDebugUpdateQueue.current) {
3363
+ if (enableDebugFiled$a.current && enableDebugUpdateQueue.current) {
3349
3364
  typedFiber._debugLatestUpdateQueue = new ListTree();
3350
3365
  }
3351
3366
  if (node) {
@@ -3385,7 +3400,7 @@ function requireIndex_development () {
3385
3400
  updater.callback && callbacks.push(updater.callback);
3386
3401
  if (!needUpdate && (isForce || hasError_3 || callbacks.length || !Object.is(lastResult_3, typedTrigger_3.result)))
3387
3402
  needUpdate = true;
3388
- if (enableDebugFiled$8.current) {
3403
+ if (enableDebugFiled$a.current) {
3389
3404
  var typedNode = updater;
3390
3405
  typedNode._debugRunTime = Date.now();
3391
3406
  typedNode._debugBeforeValue = lastResult_3;
@@ -3409,7 +3424,7 @@ function requireIndex_development () {
3409
3424
  isRetrigger = isRetrigger || updater.isRetrigger;
3410
3425
  updater.callback && callbacks.push(updater.callback);
3411
3426
  needUpdate = true;
3412
- if (enableDebugFiled$8.current) {
3427
+ if (enableDebugFiled$a.current) {
3413
3428
  var typedNode = updater;
3414
3429
  typedNode._debugRunTime = Date.now();
3415
3430
  typedNode._debugBeforeValue = undefined;
@@ -3455,7 +3470,7 @@ function requireIndex_development () {
3455
3470
  var isRetrigger = false;
3456
3471
  var processedNodes = [];
3457
3472
  var callbacks = [];
3458
- if (enableDebugFiled$8.current && enableDebugUpdateQueue.current) {
3473
+ if (enableDebugFiled$a.current && enableDebugUpdateQueue.current) {
3459
3474
  typedFiber._debugLatestUpdateQueue = new ListTree();
3460
3475
  }
3461
3476
  while (node) {
@@ -3469,7 +3484,7 @@ function requireIndex_development () {
3469
3484
  isImmediate = isImmediate || updater.isImmediate;
3470
3485
  isRetrigger = isRetrigger || updater.isRetrigger;
3471
3486
  updater.callback && callbacks.push(updater.callback);
3472
- if (enableDebugFiled$8.current) {
3487
+ if (enableDebugFiled$a.current) {
3473
3488
  var typedNode = updater;
3474
3489
  typedNode._debugRunTime = Date.now();
3475
3490
  typedNode._debugBeforeValue = undefined;
@@ -3511,7 +3526,7 @@ function requireIndex_development () {
3511
3526
  var isRetrigger = false;
3512
3527
  var processedNodes = [];
3513
3528
  var callbacks = [];
3514
- if (enableDebugFiled$8.current && enableDebugUpdateQueue.current) {
3529
+ if (enableDebugFiled$a.current && enableDebugUpdateQueue.current) {
3515
3530
  typedFiber._debugLatestUpdateQueue = new ListTree();
3516
3531
  }
3517
3532
  if (node) {
@@ -3524,7 +3539,7 @@ function requireIndex_development () {
3524
3539
  isImmediate = isImmediate || updater.isImmediate;
3525
3540
  isRetrigger = isRetrigger || updater.isRetrigger;
3526
3541
  updater.callback && callbacks.push(updater.callback);
3527
- if (enableDebugFiled$8.current) {
3542
+ if (enableDebugFiled$a.current) {
3528
3543
  var typedNode = updater;
3529
3544
  typedNode._debugRunTime = Date.now();
3530
3545
  typedNode._debugBeforeValue = undefined;
@@ -3575,13 +3590,13 @@ function requireIndex_development () {
3575
3590
  };
3576
3591
 
3577
3592
  var currentComponentFiber$4 = react.__my_react_internal__.currentComponentFiber, currentRunningFiber$1 = react.__my_react_internal__.currentRunningFiber;
3578
- var enableDebugFiled$7 = react.__my_react_shared__.enableDebugFiled;
3593
+ var enableDebugFiled$9 = react.__my_react_shared__.enableDebugFiled;
3579
3594
  var MAX_UPDATE_COUNT = 25;
3580
3595
  var lastRenderComponentFiber = null;
3581
3596
  var lastRenderComponentTimeStep = null;
3582
3597
  var renderCount = 0;
3583
3598
  var processState = function (renderDispatch, _params) {
3584
- if (enableDebugFiled$7.current) {
3599
+ if (enableDebugFiled$9.current) {
3585
3600
  var typedUpdateQueue = _params;
3586
3601
  typedUpdateQueue._debugCreateTime = Date.now();
3587
3602
  typedUpdateQueue._debugType = UpdateQueueType[_params.type];
@@ -3605,7 +3620,7 @@ function requireIndex_development () {
3605
3620
  if (_params.type === UpdateQueueType.component) {
3606
3621
  if (!ownerFiber || include(ownerFiber.state, STATE_TYPE.__unmount__))
3607
3622
  return;
3608
- if (!exports.syncFlush && currentComponentFiber$4.current) {
3623
+ if (!exports$1.syncFlush && currentComponentFiber$4.current) {
3609
3624
  var currentRFiber = currentRunningFiber$1.current;
3610
3625
  var currentCFiber = currentComponentFiber$4.current;
3611
3626
  var now = Date.now();
@@ -3624,12 +3639,10 @@ function requireIndex_development () {
3624
3639
  renderCount = 0;
3625
3640
  throw new Error("[@my-react/react] look like there are infinity update for current component ".concat(currentComponentFiber$4.current && getElementName(currentComponentFiber$4.current)));
3626
3641
  }
3627
- else if (!isErrorBoundariesComponent(ownerFiber)) {
3642
+ else if (enableLogForCurrentFlowIsRunning.current && !isErrorBoundariesComponent(ownerFiber)) {
3628
3643
  var triggeredElementName = getElementName(ownerFiber);
3629
3644
  var currentElementName = getElementName(currentCFiber);
3630
- if (enableLogForCurrentFlowIsRunning.current) {
3631
- onceWarnWithKeyAndFiber(currentRFiber, "updateWhenCurrentFlowIsRunning-".concat(triggeredElementName), "[@my-react/react] trigger an update for ".concat(triggeredElementName, " when current update flow is running, this is a unexpected behavior, please make sure current render function for ").concat(currentElementName, " is a pure function"));
3632
- }
3645
+ onceWarnWithKeyAndFiber(currentRFiber, "updateWhenCurrentFlowIsRunning-".concat(triggeredElementName), "[@my-react/react] trigger an update for ".concat(triggeredElementName, " when current update flow is running, this is a unexpected behavior, please make sure current render function for ").concat(currentElementName, " is a pure function"));
3633
3646
  }
3634
3647
  lastRenderComponentFiber = currentCFiber;
3635
3648
  lastRenderComponentTimeStep = now;
@@ -3648,7 +3661,7 @@ function requireIndex_development () {
3648
3661
  else if (_params.type === UpdateQueueType.hook) {
3649
3662
  if (!ownerFiber || include(ownerFiber === null || ownerFiber === void 0 ? void 0 : ownerFiber.state, STATE_TYPE.__unmount__))
3650
3663
  return;
3651
- if (!exports.syncFlush && currentComponentFiber$4.current) {
3664
+ if (!exports$1.syncFlush && currentComponentFiber$4.current) {
3652
3665
  var currentRFiber = currentRunningFiber$1.current;
3653
3666
  var currentCFiber = currentComponentFiber$4.current;
3654
3667
  var now = Date.now();
@@ -3667,12 +3680,10 @@ function requireIndex_development () {
3667
3680
  renderCount = 0;
3668
3681
  throw new Error("[@my-react/react] look like there are infinity update for current component ".concat(currentComponentFiber$4.current && getElementName(currentComponentFiber$4.current)));
3669
3682
  }
3670
- else if (!isErrorBoundariesComponent(ownerFiber)) {
3683
+ else if (enableLogForCurrentFlowIsRunning.current && !isErrorBoundariesComponent(ownerFiber)) {
3671
3684
  var triggeredElementName = getElementName(ownerFiber);
3672
3685
  var currentElementName = getElementName(currentCFiber);
3673
- if (enableLogForCurrentFlowIsRunning.current) {
3674
- onceWarnWithKeyAndFiber(currentRFiber, "updateWhenCurrentFlowIsRunning-".concat(triggeredElementName), "[@my-react/react] trigger an update for ".concat(triggeredElementName, " when current update flow is running, this is a unexpected behavior, please make sure current render function for ").concat(currentElementName, " is a pure function"));
3675
- }
3686
+ onceWarnWithKeyAndFiber(currentRFiber, "updateWhenCurrentFlowIsRunning-".concat(triggeredElementName), "[@my-react/react] trigger an update for ".concat(triggeredElementName, " when current update flow is running, this is a unexpected behavior, please make sure current render function for ").concat(currentElementName, " is a pure function"));
3676
3687
  }
3677
3688
  lastRenderComponentFiber = currentCFiber;
3678
3689
  lastRenderComponentTimeStep = now;
@@ -3764,7 +3775,7 @@ function requireIndex_development () {
3764
3775
  var applyTriggerFiberCb = function (renderDispatch, fiber) {
3765
3776
  var _a, _b;
3766
3777
  var cbArray = renderDispatch.runtimeMap.triggerCallbackMap.get(fiber);
3767
- if (include(fiber.type, exports.NODE_TYPE.__class__)) {
3778
+ if (include(fiber.type, exports$1.NODE_TYPE.__class__)) {
3768
3779
  (_a = cbArray === null || cbArray === void 0 ? void 0 : cbArray.listToFoot) === null || _a === void 0 ? void 0 : _a.call(cbArray, function (cb) {
3769
3780
  renderDispatch.pendingLayoutEffect(fiber, cb, { stickyToFoot: true });
3770
3781
  });
@@ -4206,7 +4217,7 @@ function requireIndex_development () {
4206
4217
  return MyReactSignal;
4207
4218
  }());
4208
4219
 
4209
- var enableDebugLog$1 = react.__my_react_shared__.enableDebugLog, enableDebugFiled$6 = react.__my_react_shared__.enableDebugFiled;
4220
+ var enableDebugLog$1 = react.__my_react_shared__.enableDebugLog, enableDebugFiled$8 = react.__my_react_shared__.enableDebugFiled;
4210
4221
  var currentHookTreeNode$2 = react.__my_react_internal__.currentHookTreeNode, currentHookNodeIndex$2 = react.__my_react_internal__.currentHookNodeIndex;
4211
4222
  var defaultReducer = function (state, action) {
4212
4223
  return typeof action === "function" ? action(state) : action;
@@ -4223,8 +4234,9 @@ function requireIndex_development () {
4223
4234
  if (currentHookIndex === 0) {
4224
4235
  defaultDeleteChildEffect(renderDispatch, fiber);
4225
4236
  defaultDeleteCurrentEffect(renderDispatch, fiber);
4226
- fiber.hookList.clear();
4227
4237
  }
4238
+ return currentHook;
4239
+ // fiber.hookList.clear();
4228
4240
  }
4229
4241
  else {
4230
4242
  throw new Error("[@my-react/react] should not have a hookList for current node, this is a bug for @my-react");
@@ -4383,7 +4395,7 @@ function requireIndex_development () {
4383
4395
  };
4384
4396
  }
4385
4397
  var typedHook = hookNode;
4386
- if (enableDebugFiled$6.current) {
4398
+ if (enableDebugFiled$8.current) {
4387
4399
  var typedFiber = fiber;
4388
4400
  typedFiber._debugHookTypes = typedFiber._debugHookTypes || [];
4389
4401
  typedFiber._debugHookTypes.push(HOOK_TYPE[hookNode.type]);
@@ -4671,7 +4683,7 @@ function requireIndex_development () {
4671
4683
  });
4672
4684
  };
4673
4685
 
4674
- var enableDebugFiled$5 = react.__my_react_shared__.enableDebugFiled;
4686
+ var enableDebugFiled$7 = react.__my_react_shared__.enableDebugFiled;
4675
4687
  var clearFiberNode = function (renderDispatch, fiber) {
4676
4688
  hookListUnmount(renderDispatch, fiber);
4677
4689
  processClassComponentUnmount(renderDispatch, fiber);
@@ -4680,7 +4692,7 @@ function requireIndex_development () {
4680
4692
  fiber.hookList = null;
4681
4693
  fiber.updateQueue = null;
4682
4694
  renderDispatch.commitUnsetRef(fiber);
4683
- if (enableDebugFiled$5.current) {
4695
+ if (enableDebugFiled$7.current) {
4684
4696
  var typedFiber = fiber;
4685
4697
  typedFiber._debugHookTypes = [];
4686
4698
  }
@@ -4756,10 +4768,10 @@ function requireIndex_development () {
4756
4768
  var renderScheduler = currentScheduler$5.current;
4757
4769
  var flag = renderDispatch.enableConcurrentMode;
4758
4770
  var updateState = null;
4759
- if (include(fiber.type, exports.NODE_TYPE.__class__)) {
4771
+ if (include(fiber.type, exports$1.NODE_TYPE.__class__)) {
4760
4772
  updateState = flag ? processClassComponentUpdateQueueLatest(renderDispatch, fiber, flag) : processClassComponentUpdateQueueLegacy(renderDispatch, fiber);
4761
4773
  }
4762
- else if (include(fiber.type, exports.NODE_TYPE.__function__)) {
4774
+ else if (include(fiber.type, exports$1.NODE_TYPE.__function__)) {
4763
4775
  updateState = flag
4764
4776
  ? processFunctionComponentUpdateQueueLatest(renderDispatch, fiber, flag)
4765
4777
  : processFunctionComponentUpdateQueueLegacy(renderDispatch, fiber);
@@ -4845,7 +4857,7 @@ function requireIndex_development () {
4845
4857
  function MyReactFiberNode(element) {
4846
4858
  this.state = STATE_TYPE.__initial__;
4847
4859
  this.patch = PATCH_TYPE.__initial__;
4848
- this.type = exports.NODE_TYPE.__initial__;
4860
+ this.type = exports$1.NODE_TYPE.__initial__;
4849
4861
  this.child = null;
4850
4862
  this.parent = null;
4851
4863
  this.sibling = null;
@@ -4860,7 +4872,7 @@ function requireIndex_development () {
4860
4872
  this.key = key;
4861
4873
  this.type = nodeType;
4862
4874
  this.elementType = elementType;
4863
- if (include(nodeType, exports.NODE_TYPE.__function__)) {
4875
+ if (include(nodeType, exports$1.NODE_TYPE.__function__)) {
4864
4876
  this.elementRawType = element === null || element === void 0 ? void 0 : element.type;
4865
4877
  }
4866
4878
  this.pendingProps = pendingProps;
@@ -4968,7 +4980,7 @@ function requireIndex_development () {
4968
4980
  var nextProps = fiber.pendingProps;
4969
4981
  var nextRef = fiber.ref;
4970
4982
  if (prevElementType !== nextElementType || prevProps !== nextProps) {
4971
- if (include(fiber.type, exports.NODE_TYPE.__memo__)) {
4983
+ if (include(fiber.type, exports$1.NODE_TYPE.__memo__)) {
4972
4984
  var typedElement = nextElement;
4973
4985
  var typedElementType = typedElement.type;
4974
4986
  var compare = typedElementType.compare || isNormalEquals;
@@ -4987,12 +4999,12 @@ function requireIndex_development () {
4987
4999
  }
4988
5000
  }
4989
5001
  if (fiber.state !== STATE_TYPE.__stable__) {
4990
- if (include(fiber.type, exports.NODE_TYPE.__plain__)) {
5002
+ if (include(fiber.type, exports$1.NODE_TYPE.__plain__)) {
4991
5003
  if (!isNormalEquals(fiber.pendingProps, fiber.memoizedProps, function (key) { return key === "children"; })) {
4992
5004
  renderDispatch.pendingUpdate(fiber);
4993
5005
  }
4994
5006
  }
4995
- if (include(fiber.type, exports.NODE_TYPE.__text__)) {
5007
+ if (include(fiber.type, exports$1.NODE_TYPE.__text__)) {
4996
5008
  renderDispatch.pendingUpdate(fiber);
4997
5009
  }
4998
5010
  }
@@ -5034,7 +5046,7 @@ function requireIndex_development () {
5034
5046
  return fiber;
5035
5047
  };
5036
5048
 
5037
- var enableDebugFiled$4 = react.__my_react_shared__.enableDebugFiled;
5049
+ var enableDebugFiled$6 = react.__my_react_shared__.enableDebugFiled;
5038
5050
  var unmountFiberNode = function (renderDispatch, fiber) {
5039
5051
  if (include(fiber.state, STATE_TYPE.__unmount__))
5040
5052
  return;
@@ -5083,7 +5095,7 @@ function requireIndex_development () {
5083
5095
  }
5084
5096
  fiber.patch = PATCH_TYPE.__initial__;
5085
5097
  fiber.state = STATE_TYPE.__unmount__;
5086
- if (enableDebugFiled$4.current) {
5098
+ if (enableDebugFiled$6.current) {
5087
5099
  var typedFiber = fiber;
5088
5100
  typedFiber._debugIsMount = false;
5089
5101
  delete typedFiber._debugStrict;
@@ -5092,7 +5104,7 @@ function requireIndex_development () {
5092
5104
  }
5093
5105
  };
5094
5106
 
5095
- var enableDebugFiled$3 = react.__my_react_shared__.enableDebugFiled;
5107
+ var enableDebugFiled$5 = react.__my_react_shared__.enableDebugFiled;
5096
5108
  var getIsSameTypeNode = function (newChild, draftFiber) {
5097
5109
  if (!draftFiber)
5098
5110
  return false;
@@ -5145,7 +5157,7 @@ function requireIndex_development () {
5145
5157
  existingChildren.delete(index);
5146
5158
  }
5147
5159
  // same type
5148
- if (include(draftFiber_1 === null || draftFiber_1 === void 0 ? void 0 : draftFiber_1.type, exports.NODE_TYPE.__fragment__)) {
5160
+ if (include(draftFiber_1 === null || draftFiber_1 === void 0 ? void 0 : draftFiber_1.type, exports$1.NODE_TYPE.__fragment__)) {
5149
5161
  var newElement = react.createElement(Fragment, dynamicFragmentProps, newChild);
5150
5162
  return updateFiberNode(renderDispatch, { fiber: draftFiber_1, parent: parentFiber, prevFiber: prevFiberChild }, newElement);
5151
5163
  }
@@ -5191,7 +5203,7 @@ function requireIndex_development () {
5191
5203
  var _a = getExistingChildren(parentFiber), existingChildrenMap = _a.existingChildrenMap, existingChildrenArray = _a.existingChildrenArray;
5192
5204
  parentFiber.child = null;
5193
5205
  var typedParentFiber = parentFiber;
5194
- if (enableDebugFiled$3.current) {
5206
+ if (enableDebugFiled$5.current) {
5195
5207
  typedParentFiber._debugRenderChildrenCurrent && (typedParentFiber._debugRenderChildrenPrevious = typedParentFiber._debugRenderChildrenCurrent);
5196
5208
  typedParentFiber._debugRenderChildrenCurrent = [];
5197
5209
  }
@@ -5204,14 +5216,14 @@ function requireIndex_development () {
5204
5216
  var newFiber = getNewFiberWithUpdate(renderDispatch, newChild, parentFiber, existingChildrenMap, existingChildrenArray[index] || null, index);
5205
5217
  lastFiber && (lastFiber.sibling = newFiber);
5206
5218
  lastFiber = newFiber;
5207
- if (enableDebugFiled$3.current)
5219
+ if (enableDebugFiled$5.current)
5208
5220
  typedParentFiber._debugRenderChildrenCurrent.push(newChild);
5209
5221
  index++;
5210
5222
  }
5211
5223
  }
5212
5224
  else {
5213
5225
  getNewFiberWithUpdate(renderDispatch, children, parentFiber, existingChildrenMap, existingChildrenArray[0], 0);
5214
- if (enableDebugFiled$3.current)
5226
+ if (enableDebugFiled$5.current)
5215
5227
  typedParentFiber._debugRenderChildrenCurrent.push(children);
5216
5228
  }
5217
5229
  deleteIfNeed(renderDispatch, parentFiber, existingChildrenMap);
@@ -5220,7 +5232,7 @@ function requireIndex_development () {
5220
5232
  var existingChildrenMap = getExistingChildren(parentFiber).existingChildrenMap;
5221
5233
  deleteIfNeed(renderDispatch, parentFiber, existingChildrenMap);
5222
5234
  var typedParentFiber = parentFiber;
5223
- if (enableDebugFiled$3.current) {
5235
+ if (enableDebugFiled$5.current) {
5224
5236
  typedParentFiber._debugRenderChildrenCurrent && (typedParentFiber._debugRenderChildrenPrevious = typedParentFiber._debugRenderChildrenCurrent);
5225
5237
  typedParentFiber._debugRenderChildrenCurrent = [];
5226
5238
  }
@@ -5234,14 +5246,14 @@ function requireIndex_development () {
5234
5246
  var newFiber = getNewFiberWithInitial(renderDispatch, newChild, parentFiber);
5235
5247
  lastFiber && (lastFiber.sibling = newFiber);
5236
5248
  lastFiber = newFiber;
5237
- if (enableDebugFiled$3.current)
5249
+ if (enableDebugFiled$5.current)
5238
5250
  typedParentFiber._debugRenderChildrenCurrent.push(newChild);
5239
5251
  index++;
5240
5252
  }
5241
5253
  }
5242
5254
  else {
5243
5255
  getNewFiberWithInitial(renderDispatch, children, parentFiber);
5244
- if (enableDebugFiled$3.current)
5256
+ if (enableDebugFiled$5.current)
5245
5257
  typedParentFiber._debugRenderChildrenCurrent.push(children);
5246
5258
  }
5247
5259
  }
@@ -5296,7 +5308,7 @@ function requireIndex_development () {
5296
5308
  return children;
5297
5309
  };
5298
5310
 
5299
- var currentHookTreeNode = react.__my_react_internal__.currentHookTreeNode, currentHookNodeIndex$1 = react.__my_react_internal__.currentHookNodeIndex, currentScheduler$4 = react.__my_react_internal__.currentScheduler;
5311
+ var currentHookTreeNode = react.__my_react_internal__.currentHookTreeNode, currentHookNodeIndex$1 = react.__my_react_internal__.currentHookNodeIndex, currentScheduler$4 = react.__my_react_internal__.currentScheduler, cacheLazy = react.__my_react_internal__.cacheLazy;
5300
5312
  var triggerState = STATE_TYPE.__triggerSync__ |
5301
5313
  STATE_TYPE.__triggerSyncForce__ |
5302
5314
  STATE_TYPE.__triggerConcurrent__ |
@@ -5308,7 +5320,7 @@ function requireIndex_development () {
5308
5320
  currentHookNodeIndex$1.current = 0;
5309
5321
  var typedElementType = fiber.elementType;
5310
5322
  var children = null;
5311
- if (include(fiber.type, exports.NODE_TYPE.__forwardRef__)) {
5323
+ if (include(fiber.type, exports$1.NODE_TYPE.__forwardRef__)) {
5312
5324
  var typedElementTypeWithRef_1 = typedElementType;
5313
5325
  children = safeCallWithCurrentFiber({
5314
5326
  fiber: fiber,
@@ -5316,7 +5328,17 @@ function requireIndex_development () {
5316
5328
  var _a, _b, _c, _d;
5317
5329
  var re = undefined;
5318
5330
  try {
5319
- re = typedElementTypeWithRef_1(fiber.pendingProps, fiber.ref);
5331
+ if (typedElementTypeWithRef_1[TYPEKEY] === SERVER_REFERENCE_SYMBOL) {
5332
+ var cacheFun = react.cache(typedElementTypeWithRef_1);
5333
+ re = cacheFun(fiber.pendingProps, fiber.ref);
5334
+ // support rsc
5335
+ // rsc return promise, so we transform promise to lazy, and try to keep the lazy stable
5336
+ if (isPromise(re))
5337
+ return react.createElement(cacheLazy(re));
5338
+ }
5339
+ else {
5340
+ re = typedElementTypeWithRef_1(fiber.pendingProps, fiber.ref);
5341
+ }
5320
5342
  }
5321
5343
  catch (e) {
5322
5344
  if (isPromise(e)) {
@@ -5343,7 +5365,16 @@ function requireIndex_development () {
5343
5365
  var _a, _b, _c, _d;
5344
5366
  var re = undefined;
5345
5367
  try {
5346
- re = typedElementType(fiber.pendingProps);
5368
+ if (typedElementType[TYPEKEY] === SERVER_REFERENCE_SYMBOL) {
5369
+ var cacheFun = react.cache(typedElementType);
5370
+ re = cacheFun(fiber.pendingProps);
5371
+ // support rsc
5372
+ if (isPromise(re))
5373
+ return react.createElement(cacheLazy(re));
5374
+ }
5375
+ else {
5376
+ re = typedElementType(fiber.pendingProps);
5377
+ }
5347
5378
  }
5348
5379
  catch (e) {
5349
5380
  if (isPromise(e)) {
@@ -5372,7 +5403,7 @@ function requireIndex_development () {
5372
5403
  var WrapperBySuspenseScope = function (children) {
5373
5404
  return react.createElement(ScopeSuspense, null, react.createElement(Comment, { mode: "s" }), children, react.createElement(Comment, { mode: "e" }));
5374
5405
  };
5375
- var isCommentElement = function (fiber) { return include(fiber.type, exports.NODE_TYPE.__comment__); };
5406
+ var isCommentElement = function (fiber) { return include(fiber.type, exports$1.NODE_TYPE.__comment__); };
5376
5407
  var isCommentStartElement = function (fiber) {
5377
5408
  if (isCommentElement(fiber)) {
5378
5409
  return fiber.pendingProps["mode"] === "s";
@@ -5386,7 +5417,7 @@ function requireIndex_development () {
5386
5417
  return false;
5387
5418
  };
5388
5419
 
5389
- var enableSuspenseRoot$1 = react.__my_react_shared__.enableSuspenseRoot;
5420
+ var enableSuspenseRoot$1 = react.__my_react_shared__.enableSuspenseRoot, enableDebugFiled$4 = react.__my_react_shared__.enableDebugFiled;
5390
5421
  var currentScheduler$3 = react.__my_react_internal__.currentScheduler;
5391
5422
  var loadLazy = function (renderDispatch, typedElementType) { return __awaiter(void 0, void 0, void 0, function () {
5392
5423
  var loadedPromise, loaded, render, e_1;
@@ -5416,6 +5447,9 @@ function requireIndex_development () {
5416
5447
  case 4:
5417
5448
  typedElementType._loaded = true;
5418
5449
  typedElementType._loading = false;
5450
+ if (enableDebugFiled$4.current) {
5451
+ typedElementType._debugResolveTime = typedElementType._debugResolveTime || Date.now();
5452
+ }
5419
5453
  return [7 /*endfinally*/];
5420
5454
  case 5: return [2 /*return*/];
5421
5455
  }
@@ -5430,7 +5464,15 @@ function requireIndex_development () {
5430
5464
  }
5431
5465
  if (typedElementType._loaded === true) {
5432
5466
  var render = typedElementType.render;
5433
- return WrapperByLazyScope(react.createElement(render, fiber.pendingProps));
5467
+ if (react.isValidElement(render)) {
5468
+ return WrapperByLazyScope(react.cloneElement(render));
5469
+ }
5470
+ else {
5471
+ return WrapperByLazyScope(react.createElement(render, fiber.pendingProps));
5472
+ }
5473
+ }
5474
+ if (enableDebugFiled$4.current) {
5475
+ typedElementType._debugCreateTime = typedElementType._debugCreateTime || Date.now();
5434
5476
  }
5435
5477
  typedElementType._list = typedElementType._list || new Set();
5436
5478
  typedElementType._list.add(fiber);
@@ -5606,7 +5648,7 @@ function requireIndex_development () {
5606
5648
  }
5607
5649
 
5608
5650
  var currentComponentFiber$1 = react.__my_react_internal__.currentComponentFiber, MyReactInternalInstance$1 = react.__my_react_internal__.MyReactInternalInstance;
5609
- var enablePerformanceLog = react.__my_react_shared__.enablePerformanceLog, enableDebugFiled$2 = react.__my_react_shared__.enableDebugFiled;
5651
+ var enablePerformanceLog = react.__my_react_shared__.enablePerformanceLog, enableDebugFiled$3 = react.__my_react_shared__.enableDebugFiled;
5610
5652
  var nextWorkCommon = function (renderDispatch, fiber, children) {
5611
5653
  if (isPromise(children)) {
5612
5654
  console.error("[@my-react/react] render function should not return a promise, please check your code");
@@ -5649,7 +5691,7 @@ function requireIndex_development () {
5649
5691
  nextWorkCommon(renderDispatch, fiber, children);
5650
5692
  };
5651
5693
  var nextWorkComponent = function (renderDispatch, fiber) {
5652
- if (include(fiber.type, exports.NODE_TYPE.__function__)) {
5694
+ if (include(fiber.type, exports$1.NODE_TYPE.__function__)) {
5653
5695
  currentComponentFiber$1.current = fiber;
5654
5696
  nextWorkFunctionComponent(renderDispatch, fiber);
5655
5697
  currentComponentFiber$1.current = null;
@@ -5723,7 +5765,7 @@ function requireIndex_development () {
5723
5765
  });
5724
5766
  }
5725
5767
  var timeNow = end;
5726
- if (enableDebugFiled$2.current) {
5768
+ if (enableDebugFiled$3.current) {
5727
5769
  if (typedFiber.state === STATE_TYPE.__create__) {
5728
5770
  typedFiber._debugRenderState = {
5729
5771
  mountTimeStep: timeNow,
@@ -5754,7 +5796,7 @@ function requireIndex_development () {
5754
5796
  });
5755
5797
  };
5756
5798
 
5757
- var enableDebugFiled$1 = react.__my_react_shared__.enableDebugFiled;
5799
+ var enableDebugFiled$2 = react.__my_react_shared__.enableDebugFiled;
5758
5800
  var currentRunningFiber = react.__my_react_internal__.currentRunningFiber, MyReactInternalInstance = react.__my_react_internal__.MyReactInternalInstance;
5759
5801
  var defaultGetContextValue = function (fiber, ContextObject) {
5760
5802
  var _a;
@@ -5769,14 +5811,14 @@ function requireIndex_development () {
5769
5811
  if ((fiber === null || fiber === void 0 ? void 0 : fiber.parent) && ContextObject) {
5770
5812
  var parent_1 = fiber.parent;
5771
5813
  while (parent_1) {
5772
- if (include(parent_1.type, exports.NODE_TYPE.__provider__)) {
5814
+ if (include(parent_1.type, exports$1.NODE_TYPE.__provider__)) {
5773
5815
  var typedElementType = parent_1.elementType;
5774
5816
  var contextObj = typedElementType["Context"];
5775
5817
  if (contextObj === ContextObject) {
5776
5818
  return parent_1;
5777
5819
  }
5778
5820
  }
5779
- if (include(parent_1.type, exports.NODE_TYPE.__context__)) {
5821
+ if (include(parent_1.type, exports$1.NODE_TYPE.__context__)) {
5780
5822
  var typedElementType = parent_1.elementType;
5781
5823
  var contextObj = typedElementType;
5782
5824
  if (contextObj === ContextObject) {
@@ -5826,7 +5868,7 @@ function requireIndex_development () {
5826
5868
  isImmediate: true,
5827
5869
  isRetrigger: true,
5828
5870
  };
5829
- if (enableDebugFiled$1.current) {
5871
+ if (enableDebugFiled$2.current) {
5830
5872
  var now = Date.now();
5831
5873
  updater._debugBeforeValue = beforeValue;
5832
5874
  updater._debugAfterValue = afterValue;
@@ -5924,7 +5966,7 @@ function requireIndex_development () {
5924
5966
  var defaultResolveScope = function (fiber) {
5925
5967
  var parent = fiber.parent;
5926
5968
  while (parent) {
5927
- if (include(parent.type, exports.NODE_TYPE.__scope__) || include(parent.type, exports.NODE_TYPE.__scopeSuspense__)) {
5969
+ if (include(parent.type, exports$1.NODE_TYPE.__scope__) || include(parent.type, exports$1.NODE_TYPE.__scopeSuspense__)) {
5928
5970
  return parent;
5929
5971
  }
5930
5972
  parent = parent.parent;
@@ -5932,21 +5974,21 @@ function requireIndex_development () {
5932
5974
  return null;
5933
5975
  };
5934
5976
 
5935
- var enableDebugFiled = react.__my_react_shared__.enableDebugFiled;
5977
+ var enableDebugFiled$1 = react.__my_react_shared__.enableDebugFiled;
5936
5978
  var defaultGenerateStrict = function (fiber) {
5937
5979
  {
5938
5980
  var parent_1 = fiber.parent;
5939
5981
  var isStrict = false;
5940
5982
  var typedParent = parent_1;
5941
5983
  if (parent_1) {
5942
- if (include(parent_1.type, exports.NODE_TYPE.__strict__)) {
5984
+ if (include(parent_1.type, exports$1.NODE_TYPE.__strict__)) {
5943
5985
  isStrict = true;
5944
5986
  }
5945
5987
  if (typedParent._debugStrict) {
5946
5988
  isStrict = true;
5947
5989
  }
5948
5990
  }
5949
- if (enableDebugFiled.current) {
5991
+ if (enableDebugFiled$1.current) {
5950
5992
  var typedFiber = fiber;
5951
5993
  typedFiber._debugStrict = isStrict;
5952
5994
  }
@@ -5981,22 +6023,22 @@ function requireIndex_development () {
5981
6023
  });
5982
6024
  }
5983
6025
  });
5984
- _list.listToHead(function invokePositionList(_fiber) {
6026
+ _list.listToFoot(function invokeAppendList(_fiber) {
5985
6027
  if (exclude(_fiber.state, STATE_TYPE.__unmount__) && !_dispatch.isAppUnmounted) {
5986
6028
  safeCallWithCurrentFiber({
5987
6029
  fiber: _fiber,
5988
- action: function safeCallPosition() {
5989
- _dispatch.commitPosition(_fiber);
6030
+ action: function safeCallAppendList() {
6031
+ _dispatch.commitAppend(_fiber);
5990
6032
  },
5991
6033
  });
5992
6034
  }
5993
6035
  });
5994
- _list.listToFoot(function invokeAppendList(_fiber) {
6036
+ _list.listToHead(function invokePositionList(_fiber) {
5995
6037
  if (exclude(_fiber.state, STATE_TYPE.__unmount__) && !_dispatch.isAppUnmounted) {
5996
6038
  safeCallWithCurrentFiber({
5997
6039
  fiber: _fiber,
5998
- action: function safeCallAppendList() {
5999
- _dispatch.commitAppend(_fiber);
6040
+ action: function safeCallPosition() {
6041
+ _dispatch.commitPosition(_fiber);
6000
6042
  },
6001
6043
  });
6002
6044
  }
@@ -6094,7 +6136,7 @@ function requireIndex_development () {
6094
6136
  return resolveHookValue(currentHook, field);
6095
6137
  };
6096
6138
 
6097
- var enableSuspenseRoot = react.__my_react_shared__.enableSuspenseRoot;
6139
+ var enableSuspenseRoot = react.__my_react_shared__.enableSuspenseRoot, enableDebugFiled = react.__my_react_shared__.enableDebugFiled;
6098
6140
  var currentScheduler = react.__my_react_internal__.currentScheduler;
6099
6141
  var loadPromise = function (renderDispatch, promise) { return __awaiter(void 0, void 0, void 0, function () {
6100
6142
  var value, reason_1;
@@ -6105,20 +6147,25 @@ function requireIndex_development () {
6105
6147
  return [2 /*return*/];
6106
6148
  _a.label = 1;
6107
6149
  case 1:
6108
- _a.trys.push([1, 3, , 4]);
6150
+ _a.trys.push([1, 3, 4, 5]);
6109
6151
  promise.status = "pending";
6110
6152
  return [4 /*yield*/, Promise.resolve(promise)];
6111
6153
  case 2:
6112
6154
  value = _a.sent();
6113
6155
  promise.status = "fulfilled";
6114
6156
  promise._value = value;
6115
- return [3 /*break*/, 4];
6157
+ return [3 /*break*/, 5];
6116
6158
  case 3:
6117
6159
  reason_1 = _a.sent();
6118
6160
  promise.status = "rejected";
6119
6161
  promise._reason = reason_1;
6120
- return [3 /*break*/, 4];
6121
- case 4: return [2 /*return*/];
6162
+ return [3 /*break*/, 5];
6163
+ case 4:
6164
+ if (enableDebugFiled.current) {
6165
+ promise._debugResolveTime = promise._debugResolveTime || Date.now();
6166
+ }
6167
+ return [7 /*endfinally*/];
6168
+ case 5: return [2 /*return*/];
6122
6169
  }
6123
6170
  });
6124
6171
  }); };
@@ -6134,6 +6181,9 @@ function requireIndex_development () {
6134
6181
  console.warn("[@my-react/react] throw a promise what has already fulfilled, this is not a valid usage");
6135
6182
  }
6136
6183
  }
6184
+ if (enableDebugFiled.current) {
6185
+ promise._debugCreateTime = promise._debugCreateTime || Date.now();
6186
+ }
6137
6187
  promise._list = promise._list || new Set();
6138
6188
  promise._list.add(fiber);
6139
6189
  var suspenseFiber = renderDispatch.resolveSuspenseFiber(fiber);
@@ -6188,6 +6238,9 @@ function requireIndex_development () {
6188
6238
  console.warn("[@my-react/react] throw a promise what has already fulfilled, this is not a valid usage");
6189
6239
  }
6190
6240
  }
6241
+ if (enableDebugFiled.current) {
6242
+ promise._debugCreateTime = promise._debugCreateTime || Date.now();
6243
+ }
6191
6244
  promise._list = promise._list || new Set();
6192
6245
  promise._list.add(fiber);
6193
6246
  if (promise._loading)
@@ -6265,11 +6318,11 @@ function requireIndex_development () {
6265
6318
  retriggerFiber: null,
6266
6319
  }); };
6267
6320
  var initialRef = {
6268
- typeForRef: exports.NODE_TYPE.__plain__ | exports.NODE_TYPE.__class__,
6269
- typeForCreate: exports.NODE_TYPE.__text__ | exports.NODE_TYPE.__plain__ | exports.NODE_TYPE.__portal__ | exports.NODE_TYPE.__comment__,
6270
- typeForUpdate: exports.NODE_TYPE.__text__ | exports.NODE_TYPE.__plain__ | exports.NODE_TYPE.__comment__,
6271
- typeForAppend: exports.NODE_TYPE.__text__ | exports.NODE_TYPE.__plain__ | exports.NODE_TYPE.__comment__,
6272
- typeForNativeNode: exports.NODE_TYPE.__text__ | exports.NODE_TYPE.__plain__ | exports.NODE_TYPE.__portal__ | exports.NODE_TYPE.__comment__,
6321
+ typeForRef: exports$1.NODE_TYPE.__plain__ | exports$1.NODE_TYPE.__class__,
6322
+ typeForCreate: exports$1.NODE_TYPE.__text__ | exports$1.NODE_TYPE.__plain__ | exports$1.NODE_TYPE.__portal__ | exports$1.NODE_TYPE.__comment__,
6323
+ typeForUpdate: exports$1.NODE_TYPE.__text__ | exports$1.NODE_TYPE.__plain__ | exports$1.NODE_TYPE.__comment__,
6324
+ typeForAppend: exports$1.NODE_TYPE.__text__ | exports$1.NODE_TYPE.__plain__ | exports$1.NODE_TYPE.__comment__,
6325
+ typeForNativeNode: exports$1.NODE_TYPE.__text__ | exports$1.NODE_TYPE.__plain__ | exports$1.NODE_TYPE.__portal__ | exports$1.NODE_TYPE.__comment__,
6273
6326
  };
6274
6327
  var listenerMap = dispatchToListenerMap;
6275
6328
  var RenderDispatchEvent = /** @class */ (function (_super) {
@@ -6373,628 +6426,668 @@ function requireIndex_development () {
6373
6426
  RenderDispatchEvent.prototype.resetYield = function () {
6374
6427
  };
6375
6428
  RenderDispatchEvent.prototype.onFiberInitial = function (cb) {
6376
- var set = listenerMap.get(this).fiberInitial;
6377
- set.add(cb);
6378
- return function () { return set.delete(cb); };
6429
+ var _a;
6430
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.fiberInitial;
6431
+ set === null || set === void 0 ? void 0 : set.add(cb);
6432
+ return function () { return set === null || set === void 0 ? void 0 : set.delete(cb); };
6379
6433
  };
6380
6434
  RenderDispatchEvent.prototype.onceFiberInitial = function (cb) {
6381
- var set = listenerMap.get(this).fiberInitial;
6435
+ var _a;
6436
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.fiberInitial;
6382
6437
  var onceCb = function (_fiber) {
6383
6438
  cb(_fiber);
6384
- set.delete(onceCb);
6439
+ set === null || set === void 0 ? void 0 : set.delete(onceCb);
6385
6440
  };
6386
- set.add(onceCb);
6441
+ set === null || set === void 0 ? void 0 : set.add(onceCb);
6387
6442
  };
6388
6443
  RenderDispatchEvent.prototype.callOnFiberInitial = function (_fiber) {
6389
- var _a;
6390
- var set = listenerMap.get(this).fiberInitial;
6391
- (_a = set === null || set === void 0 ? void 0 : set.forEach) === null || _a === void 0 ? void 0 : _a.call(set, function (cb) { return cb(_fiber); });
6444
+ var _a, _b;
6445
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.fiberInitial;
6446
+ (_b = set === null || set === void 0 ? void 0 : set.forEach) === null || _b === void 0 ? void 0 : _b.call(set, function (cb) { return cb(_fiber); });
6392
6447
  };
6393
6448
  RenderDispatchEvent.prototype.onFiberUpdate = function (cb) {
6394
- var set = listenerMap.get(this).fiberUpdate;
6395
- set.add(cb);
6396
- return function () { return set.delete(cb); };
6449
+ var _a;
6450
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.fiberUpdate;
6451
+ set === null || set === void 0 ? void 0 : set.add(cb);
6452
+ return function () { return set === null || set === void 0 ? void 0 : set.delete(cb); };
6397
6453
  };
6398
6454
  RenderDispatchEvent.prototype.onceFiberUpdate = function (cb) {
6399
- var set = listenerMap.get(this).fiberUpdate;
6455
+ var _a;
6456
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.fiberUpdate;
6400
6457
  var onceCb = function (_fiber) {
6401
6458
  cb(_fiber);
6402
- set.delete(onceCb);
6459
+ set === null || set === void 0 ? void 0 : set.delete(onceCb);
6403
6460
  };
6404
- set.add(onceCb);
6461
+ set === null || set === void 0 ? void 0 : set.add(onceCb);
6405
6462
  };
6406
6463
  RenderDispatchEvent.prototype.callOnFiberUpdate = function (_fiber) {
6407
- var _a;
6408
- var set = listenerMap.get(this).fiberUpdate;
6409
- (_a = set === null || set === void 0 ? void 0 : set.forEach) === null || _a === void 0 ? void 0 : _a.call(set, function (cb) { return cb(_fiber); });
6464
+ var _a, _b;
6465
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.fiberUpdate;
6466
+ (_b = set === null || set === void 0 ? void 0 : set.forEach) === null || _b === void 0 ? void 0 : _b.call(set, function (cb) { return cb(_fiber); });
6410
6467
  };
6411
6468
  RenderDispatchEvent.prototype.onFiberChange = function (cb) {
6412
- var set = listenerMap.get(this).fiberHasChange;
6413
- set.add(cb);
6414
- return function () { return set.delete(cb); };
6469
+ var _a;
6470
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.fiberHasChange;
6471
+ set === null || set === void 0 ? void 0 : set.add(cb);
6472
+ return function () { return set === null || set === void 0 ? void 0 : set.delete(cb); };
6415
6473
  };
6416
6474
  RenderDispatchEvent.prototype.onceFiberChange = function (cb) {
6417
- var set = listenerMap.get(this).fiberHasChange;
6475
+ var _a;
6476
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.fiberHasChange;
6418
6477
  var onceCb = function (_list) {
6419
6478
  cb(_list);
6420
- set.delete(onceCb);
6479
+ set === null || set === void 0 ? void 0 : set.delete(onceCb);
6421
6480
  };
6422
- set.add(onceCb);
6481
+ set === null || set === void 0 ? void 0 : set.add(onceCb);
6423
6482
  };
6424
6483
  RenderDispatchEvent.prototype.callOnFiberChange = function (_list) {
6425
- var _a;
6426
- var set = listenerMap.get(this).fiberHasChange;
6427
- (_a = set === null || set === void 0 ? void 0 : set.forEach) === null || _a === void 0 ? void 0 : _a.call(set, function (cb) { return cb(_list); });
6484
+ var _a, _b;
6485
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.fiberHasChange;
6486
+ (_b = set === null || set === void 0 ? void 0 : set.forEach) === null || _b === void 0 ? void 0 : _b.call(set, function (cb) { return cb(_list); });
6428
6487
  };
6429
6488
  RenderDispatchEvent.prototype.onFiberUnmount = function (cb) {
6430
- var set = listenerMap.get(this).fiberUnmount;
6431
- set.add(cb);
6432
- return function () { return set.delete(cb); };
6489
+ var _a;
6490
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.fiberUnmount;
6491
+ set === null || set === void 0 ? void 0 : set.add(cb);
6492
+ return function () { return set === null || set === void 0 ? void 0 : set.delete(cb); };
6433
6493
  };
6434
6494
  RenderDispatchEvent.prototype.onceFiberUnmount = function (cb) {
6435
- var set = listenerMap.get(this).fiberUnmount;
6495
+ var _a;
6496
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.fiberUnmount;
6436
6497
  var onceCb = function (_fiber) {
6437
6498
  cb(_fiber);
6438
- set.delete(onceCb);
6499
+ set === null || set === void 0 ? void 0 : set.delete(onceCb);
6439
6500
  };
6440
- set.add(onceCb);
6501
+ set === null || set === void 0 ? void 0 : set.add(onceCb);
6441
6502
  };
6442
6503
  RenderDispatchEvent.prototype.callOnFiberUnmount = function (_fiber) {
6443
- var _a;
6444
- var set = listenerMap.get(this).fiberUnmount;
6445
- (_a = set === null || set === void 0 ? void 0 : set.forEach) === null || _a === void 0 ? void 0 : _a.call(set, function (cb) { return cb(_fiber); });
6504
+ var _a, _b;
6505
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.fiberUnmount;
6506
+ (_b = set === null || set === void 0 ? void 0 : set.forEach) === null || _b === void 0 ? void 0 : _b.call(set, function (cb) { return cb(_fiber); });
6446
6507
  };
6447
6508
  RenderDispatchEvent.prototype.onFiberState = function (cb) {
6448
- var set = listenerMap.get(this).fiberState;
6449
- set.add(cb);
6450
- return function () { return set.delete(cb); };
6509
+ var _a;
6510
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.fiberState;
6511
+ set === null || set === void 0 ? void 0 : set.add(cb);
6512
+ return function () { return set === null || set === void 0 ? void 0 : set.delete(cb); };
6451
6513
  };
6452
6514
  RenderDispatchEvent.prototype.onceFiberState = function (cb) {
6453
- var set = listenerMap.get(this).fiberState;
6515
+ var _a;
6516
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.fiberState;
6454
6517
  var onceCb = function (_fiber, _updater) {
6455
6518
  cb(_fiber, _updater);
6456
- set.delete(onceCb);
6519
+ set === null || set === void 0 ? void 0 : set.delete(onceCb);
6457
6520
  };
6458
- set.add(onceCb);
6521
+ set === null || set === void 0 ? void 0 : set.add(onceCb);
6459
6522
  };
6460
6523
  RenderDispatchEvent.prototype.callOnFiberState = function (_fiber, _updater) {
6461
- var _a;
6462
- var set = listenerMap.get(this).fiberState;
6463
- (_a = set === null || set === void 0 ? void 0 : set.forEach) === null || _a === void 0 ? void 0 : _a.call(set, function (cb) { return cb(_fiber, _updater); });
6524
+ var _a, _b;
6525
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.fiberState;
6526
+ (_b = set === null || set === void 0 ? void 0 : set.forEach) === null || _b === void 0 ? void 0 : _b.call(set, function (cb) { return cb(_fiber, _updater); });
6464
6527
  };
6465
6528
  RenderDispatchEvent.prototype.onFiberTrigger = function (cb) {
6466
- var set = listenerMap.get(this).fiberTrigger;
6467
- set.add(cb);
6468
- return function () { return set.delete(cb); };
6529
+ var _a;
6530
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.fiberTrigger;
6531
+ set === null || set === void 0 ? void 0 : set.add(cb);
6532
+ return function () { return set === null || set === void 0 ? void 0 : set.delete(cb); };
6469
6533
  };
6470
6534
  RenderDispatchEvent.prototype.onceFiberTrigger = function (cb) {
6471
- var set = listenerMap.get(this).fiberTrigger;
6535
+ var _a;
6536
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.fiberTrigger;
6472
6537
  var onceCb = function (_fiber, _state) {
6473
6538
  cb(_fiber, _state);
6474
- set.delete(onceCb);
6539
+ set === null || set === void 0 ? void 0 : set.delete(onceCb);
6475
6540
  };
6476
- set.add(onceCb);
6541
+ set === null || set === void 0 ? void 0 : set.add(onceCb);
6477
6542
  };
6478
6543
  RenderDispatchEvent.prototype.callOnFiberTrigger = function (_fiber, _state) {
6479
- var _a;
6480
- var set = listenerMap.get(this).fiberTrigger;
6481
- (_a = set === null || set === void 0 ? void 0 : set.forEach) === null || _a === void 0 ? void 0 : _a.call(set, function (cb) { return cb(_fiber, _state); });
6544
+ var _a, _b;
6545
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.fiberTrigger;
6546
+ (_b = set === null || set === void 0 ? void 0 : set.forEach) === null || _b === void 0 ? void 0 : _b.call(set, function (cb) { return cb(_fiber, _state); });
6482
6547
  };
6483
6548
  RenderDispatchEvent.prototype.onFiberHMR = function (cb) {
6484
- var _a;
6485
- var set = listenerMap.get(this).fiberHMR;
6486
- (_a = set === null || set === void 0 ? void 0 : set.add) === null || _a === void 0 ? void 0 : _a.call(set, cb);
6549
+ var _a, _b;
6550
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.fiberHMR;
6551
+ (_b = set === null || set === void 0 ? void 0 : set.add) === null || _b === void 0 ? void 0 : _b.call(set, cb);
6487
6552
  return function () { var _a; return (_a = set === null || set === void 0 ? void 0 : set.delete) === null || _a === void 0 ? void 0 : _a.call(set, cb); };
6488
6553
  };
6489
6554
  RenderDispatchEvent.prototype.onceFiberHMR = function (cb) {
6490
- var _a;
6491
- var set = listenerMap.get(this).fiberHMR;
6555
+ var _a, _b;
6556
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.fiberHMR;
6492
6557
  var onceCb = function (_fiber, _forceRefresh) {
6493
6558
  var _a;
6494
6559
  cb(_fiber, _forceRefresh);
6495
6560
  (_a = set === null || set === void 0 ? void 0 : set.delete) === null || _a === void 0 ? void 0 : _a.call(set, onceCb);
6496
6561
  };
6497
- (_a = set === null || set === void 0 ? void 0 : set.add) === null || _a === void 0 ? void 0 : _a.call(set, onceCb);
6562
+ (_b = set === null || set === void 0 ? void 0 : set.add) === null || _b === void 0 ? void 0 : _b.call(set, onceCb);
6498
6563
  };
6499
6564
  RenderDispatchEvent.prototype.callOnFiberHMR = function (_fiber, _forceRefresh) {
6500
- var _a;
6501
- var set = listenerMap.get(this).fiberHMR;
6502
- (_a = set === null || set === void 0 ? void 0 : set.forEach) === null || _a === void 0 ? void 0 : _a.call(set, function (cb) { return cb(_fiber, _forceRefresh); });
6565
+ var _a, _b;
6566
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.fiberHMR;
6567
+ (_b = set === null || set === void 0 ? void 0 : set.forEach) === null || _b === void 0 ? void 0 : _b.call(set, function (cb) { return cb(_fiber, _forceRefresh); });
6503
6568
  };
6504
6569
  RenderDispatchEvent.prototype.onFiberWarn = function (cb) {
6505
- var _a;
6506
- var set = listenerMap.get(this).fiberWarn;
6507
- (_a = set === null || set === void 0 ? void 0 : set.add) === null || _a === void 0 ? void 0 : _a.call(set, cb);
6570
+ var _a, _b;
6571
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.fiberWarn;
6572
+ (_b = set === null || set === void 0 ? void 0 : set.add) === null || _b === void 0 ? void 0 : _b.call(set, cb);
6508
6573
  return function () { var _a; return (_a = set === null || set === void 0 ? void 0 : set.delete) === null || _a === void 0 ? void 0 : _a.call(set, cb); };
6509
6574
  };
6510
6575
  RenderDispatchEvent.prototype.onceFiberWarn = function (cb) {
6511
- var _a;
6512
- var set = listenerMap.get(this).fiberWarn;
6576
+ var _a, _b;
6577
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.fiberWarn;
6513
6578
  var onceCb = function (_fiber) {
6514
6579
  var _a;
6515
6580
  cb(_fiber);
6516
6581
  (_a = set === null || set === void 0 ? void 0 : set.delete) === null || _a === void 0 ? void 0 : _a.call(set, onceCb);
6517
6582
  };
6518
- (_a = set === null || set === void 0 ? void 0 : set.add) === null || _a === void 0 ? void 0 : _a.call(set, onceCb);
6583
+ (_b = set === null || set === void 0 ? void 0 : set.add) === null || _b === void 0 ? void 0 : _b.call(set, onceCb);
6519
6584
  };
6520
6585
  RenderDispatchEvent.prototype.callOnFiberWarn = function (_fiber) {
6521
- var _a;
6586
+ var _a, _b;
6522
6587
  var args = [];
6523
6588
  for (var _i = 1; _i < arguments.length; _i++) {
6524
6589
  args[_i - 1] = arguments[_i];
6525
6590
  }
6526
- var set = listenerMap.get(this).fiberWarn;
6527
- (_a = set === null || set === void 0 ? void 0 : set.forEach) === null || _a === void 0 ? void 0 : _a.call(set, function (cb) { return cb.apply(void 0, __spreadArray([_fiber], args, false)); });
6591
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.fiberWarn;
6592
+ (_b = set === null || set === void 0 ? void 0 : set.forEach) === null || _b === void 0 ? void 0 : _b.call(set, function (cb) { return cb.apply(void 0, __spreadArray([_fiber], args, false)); });
6528
6593
  };
6529
6594
  RenderDispatchEvent.prototype.onFiberError = function (cb) {
6530
- var _a;
6531
- var set = listenerMap.get(this).fiberError;
6532
- (_a = set === null || set === void 0 ? void 0 : set.add) === null || _a === void 0 ? void 0 : _a.call(set, cb);
6595
+ var _a, _b;
6596
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.fiberError;
6597
+ (_b = set === null || set === void 0 ? void 0 : set.add) === null || _b === void 0 ? void 0 : _b.call(set, cb);
6533
6598
  return function () { var _a; return (_a = set === null || set === void 0 ? void 0 : set.delete) === null || _a === void 0 ? void 0 : _a.call(set, cb); };
6534
6599
  };
6535
6600
  RenderDispatchEvent.prototype.onceFiberError = function (cb) {
6536
- var _a;
6537
- var set = listenerMap.get(this).fiberError;
6601
+ var _a, _b;
6602
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.fiberError;
6538
6603
  var onceCb = function (_fiber) {
6539
6604
  var _a;
6540
6605
  cb(_fiber);
6541
6606
  (_a = set === null || set === void 0 ? void 0 : set.delete) === null || _a === void 0 ? void 0 : _a.call(set, onceCb);
6542
6607
  };
6543
- (_a = set === null || set === void 0 ? void 0 : set.add) === null || _a === void 0 ? void 0 : _a.call(set, onceCb);
6608
+ (_b = set === null || set === void 0 ? void 0 : set.add) === null || _b === void 0 ? void 0 : _b.call(set, onceCb);
6544
6609
  };
6545
6610
  RenderDispatchEvent.prototype.callOnFiberError = function (_fiber) {
6546
- var _a;
6611
+ var _a, _b;
6547
6612
  var args = [];
6548
6613
  for (var _i = 1; _i < arguments.length; _i++) {
6549
6614
  args[_i - 1] = arguments[_i];
6550
6615
  }
6551
- var set = listenerMap.get(this).fiberError;
6552
- (_a = set === null || set === void 0 ? void 0 : set.forEach) === null || _a === void 0 ? void 0 : _a.call(set, function (cb) { return cb.apply(void 0, __spreadArray([_fiber], args, false)); });
6616
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.fiberError;
6617
+ (_b = set === null || set === void 0 ? void 0 : set.forEach) === null || _b === void 0 ? void 0 : _b.call(set, function (cb) { return cb.apply(void 0, __spreadArray([_fiber], args, false)); });
6553
6618
  };
6554
6619
  RenderDispatchEvent.prototype.onPerformanceWarn = function (cb) {
6555
- var _a;
6556
- var set = listenerMap.get(this).performanceWarn;
6557
- (_a = set === null || set === void 0 ? void 0 : set.add) === null || _a === void 0 ? void 0 : _a.call(set, cb);
6620
+ var _a, _b;
6621
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.performanceWarn;
6622
+ (_b = set === null || set === void 0 ? void 0 : set.add) === null || _b === void 0 ? void 0 : _b.call(set, cb);
6558
6623
  return function () { var _a; return (_a = set === null || set === void 0 ? void 0 : set.delete) === null || _a === void 0 ? void 0 : _a.call(set, cb); };
6559
6624
  };
6560
6625
  RenderDispatchEvent.prototype.oncePerformanceWarn = function (cb) {
6561
- var _a;
6562
- var set = listenerMap.get(this).performanceWarn;
6626
+ var _a, _b;
6627
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.performanceWarn;
6563
6628
  var onceCb = function (_fiber, _renderTime) {
6564
6629
  var _a;
6565
6630
  cb(_fiber, _renderTime);
6566
6631
  (_a = set === null || set === void 0 ? void 0 : set.delete) === null || _a === void 0 ? void 0 : _a.call(set, onceCb);
6567
6632
  };
6568
- (_a = set === null || set === void 0 ? void 0 : set.add) === null || _a === void 0 ? void 0 : _a.call(set, onceCb);
6633
+ (_b = set === null || set === void 0 ? void 0 : set.add) === null || _b === void 0 ? void 0 : _b.call(set, onceCb);
6569
6634
  };
6570
6635
  RenderDispatchEvent.prototype.callOnPerformanceWarn = function (_fiber, _renderTime) {
6571
- var _a;
6572
- var set = listenerMap.get(this).performanceWarn;
6573
- (_a = set === null || set === void 0 ? void 0 : set.forEach) === null || _a === void 0 ? void 0 : _a.call(set, function (cb) { return cb(_fiber, _renderTime); });
6636
+ var _a, _b;
6637
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.performanceWarn;
6638
+ (_b = set === null || set === void 0 ? void 0 : set.forEach) === null || _b === void 0 ? void 0 : _b.call(set, function (cb) { return cb(_fiber, _renderTime); });
6574
6639
  };
6575
6640
  RenderDispatchEvent.prototype.onBeforeFiberRun = function (cb) {
6576
- var _a;
6577
- var set = listenerMap.get(this).beforeFiberRun;
6578
- (_a = set === null || set === void 0 ? void 0 : set.add) === null || _a === void 0 ? void 0 : _a.call(set, cb);
6641
+ var _a, _b;
6642
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.beforeFiberRun;
6643
+ (_b = set === null || set === void 0 ? void 0 : set.add) === null || _b === void 0 ? void 0 : _b.call(set, cb);
6579
6644
  return function () { var _a; return (_a = set === null || set === void 0 ? void 0 : set.delete) === null || _a === void 0 ? void 0 : _a.call(set, cb); };
6580
6645
  };
6581
6646
  RenderDispatchEvent.prototype.onceBeforeFiberRun = function (cb) {
6582
- var _a;
6583
- var set = listenerMap.get(this).beforeFiberRun;
6647
+ var _a, _b;
6648
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.beforeFiberRun;
6584
6649
  var onceCb = function (_fiber) {
6585
6650
  var _a;
6586
6651
  cb(_fiber);
6587
6652
  (_a = set === null || set === void 0 ? void 0 : set.delete) === null || _a === void 0 ? void 0 : _a.call(set, onceCb);
6588
6653
  };
6589
- (_a = set === null || set === void 0 ? void 0 : set.add) === null || _a === void 0 ? void 0 : _a.call(set, onceCb);
6654
+ (_b = set === null || set === void 0 ? void 0 : set.add) === null || _b === void 0 ? void 0 : _b.call(set, onceCb);
6590
6655
  };
6591
6656
  RenderDispatchEvent.prototype.callOnBeforeFiberRun = function (_fiber) {
6592
- var _a;
6593
- var set = listenerMap.get(this).beforeFiberRun;
6594
- (_a = set === null || set === void 0 ? void 0 : set.forEach) === null || _a === void 0 ? void 0 : _a.call(set, function (cb) { return cb(_fiber); });
6657
+ var _a, _b;
6658
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.beforeFiberRun;
6659
+ (_b = set === null || set === void 0 ? void 0 : set.forEach) === null || _b === void 0 ? void 0 : _b.call(set, function (cb) { return cb(_fiber); });
6595
6660
  };
6596
6661
  RenderDispatchEvent.prototype.onAfterFiberRun = function (cb) {
6597
- var _a;
6598
- var set = listenerMap.get(this).afterFiberRun;
6599
- (_a = set === null || set === void 0 ? void 0 : set.add) === null || _a === void 0 ? void 0 : _a.call(set, cb);
6662
+ var _a, _b;
6663
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.afterFiberRun;
6664
+ (_b = set === null || set === void 0 ? void 0 : set.add) === null || _b === void 0 ? void 0 : _b.call(set, cb);
6600
6665
  return function () { var _a; return (_a = set === null || set === void 0 ? void 0 : set.delete) === null || _a === void 0 ? void 0 : _a.call(set, cb); };
6601
6666
  };
6602
6667
  RenderDispatchEvent.prototype.onceAfterFiberRun = function (cb) {
6603
- var _a;
6604
- var set = listenerMap.get(this).afterFiberRun;
6668
+ var _a, _b;
6669
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.afterFiberRun;
6605
6670
  var onceCb = function (_fiber) {
6606
6671
  var _a;
6607
6672
  cb(_fiber);
6608
6673
  (_a = set === null || set === void 0 ? void 0 : set.delete) === null || _a === void 0 ? void 0 : _a.call(set, onceCb);
6609
6674
  };
6610
- (_a = set === null || set === void 0 ? void 0 : set.add) === null || _a === void 0 ? void 0 : _a.call(set, onceCb);
6675
+ (_b = set === null || set === void 0 ? void 0 : set.add) === null || _b === void 0 ? void 0 : _b.call(set, onceCb);
6611
6676
  };
6612
6677
  RenderDispatchEvent.prototype.callOnAfterFiberRun = function (_fiber) {
6613
- var _a;
6614
- var set = listenerMap.get(this).afterFiberRun;
6615
- (_a = set === null || set === void 0 ? void 0 : set.forEach) === null || _a === void 0 ? void 0 : _a.call(set, function (cb) { return cb(_fiber); });
6678
+ var _a, _b;
6679
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.afterFiberRun;
6680
+ (_b = set === null || set === void 0 ? void 0 : set.forEach) === null || _b === void 0 ? void 0 : _b.call(set, function (cb) { return cb(_fiber); });
6616
6681
  };
6617
6682
  RenderDispatchEvent.prototype.onAfterFiberDone = function (cb) {
6618
- var _a;
6619
- var set = listenerMap.get(this).afterFiberDone;
6620
- (_a = set === null || set === void 0 ? void 0 : set.add) === null || _a === void 0 ? void 0 : _a.call(set, cb);
6683
+ var _a, _b;
6684
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.afterFiberDone;
6685
+ (_b = set === null || set === void 0 ? void 0 : set.add) === null || _b === void 0 ? void 0 : _b.call(set, cb);
6621
6686
  return function () { var _a; return (_a = set === null || set === void 0 ? void 0 : set.delete) === null || _a === void 0 ? void 0 : _a.call(set, cb); };
6622
6687
  };
6623
6688
  RenderDispatchEvent.prototype.onceAfterFiberDone = function (cb) {
6624
- var _a;
6625
- var set = listenerMap.get(this).afterFiberDone;
6689
+ var _a, _b;
6690
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.afterFiberDone;
6626
6691
  var onceCb = function (_fiber) {
6627
6692
  var _a;
6628
6693
  cb(_fiber);
6629
6694
  (_a = set === null || set === void 0 ? void 0 : set.delete) === null || _a === void 0 ? void 0 : _a.call(set, onceCb);
6630
6695
  };
6631
- (_a = set === null || set === void 0 ? void 0 : set.add) === null || _a === void 0 ? void 0 : _a.call(set, onceCb);
6696
+ (_b = set === null || set === void 0 ? void 0 : set.add) === null || _b === void 0 ? void 0 : _b.call(set, onceCb);
6632
6697
  };
6633
6698
  RenderDispatchEvent.prototype.callOnAfterFiberDone = function (_fiber) {
6634
- var _a;
6635
- var set = listenerMap.get(this).afterFiberDone;
6636
- (_a = set === null || set === void 0 ? void 0 : set.forEach) === null || _a === void 0 ? void 0 : _a.call(set, function (cb) { return cb(_fiber); });
6699
+ var _a, _b;
6700
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.afterFiberDone;
6701
+ (_b = set === null || set === void 0 ? void 0 : set.forEach) === null || _b === void 0 ? void 0 : _b.call(set, function (cb) { return cb(_fiber); });
6637
6702
  };
6638
6703
  RenderDispatchEvent.prototype.onBeforeDispatchRender = function (cb) {
6639
- var _a;
6640
- var set = listenerMap.get(this).beforeDispatchRender;
6641
- (_a = set === null || set === void 0 ? void 0 : set.add) === null || _a === void 0 ? void 0 : _a.call(set, cb);
6704
+ var _a, _b;
6705
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.beforeDispatchRender;
6706
+ (_b = set === null || set === void 0 ? void 0 : set.add) === null || _b === void 0 ? void 0 : _b.call(set, cb);
6642
6707
  return function () { var _a; return (_a = set === null || set === void 0 ? void 0 : set.delete) === null || _a === void 0 ? void 0 : _a.call(set, cb); };
6643
6708
  };
6644
6709
  RenderDispatchEvent.prototype.onceBeforeDispatchRender = function (cb) {
6645
- var _a;
6646
- var set = listenerMap.get(this).beforeDispatchRender;
6710
+ var _a, _b;
6711
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.beforeDispatchRender;
6647
6712
  var onceCb = function (renderDispatch, fiber) {
6648
6713
  var _a;
6649
6714
  cb(renderDispatch, fiber);
6650
6715
  (_a = set === null || set === void 0 ? void 0 : set.delete) === null || _a === void 0 ? void 0 : _a.call(set, onceCb);
6651
6716
  };
6652
- (_a = set === null || set === void 0 ? void 0 : set.add) === null || _a === void 0 ? void 0 : _a.call(set, onceCb);
6717
+ (_b = set === null || set === void 0 ? void 0 : set.add) === null || _b === void 0 ? void 0 : _b.call(set, onceCb);
6653
6718
  };
6654
6719
  RenderDispatchEvent.prototype.callOnBeforeDispatchRender = function (renderDispatch, fiber) {
6655
- var _a;
6656
- var set = listenerMap.get(this).beforeDispatchRender;
6657
- (_a = set === null || set === void 0 ? void 0 : set.forEach) === null || _a === void 0 ? void 0 : _a.call(set, function (cb) { return cb(renderDispatch, fiber); });
6720
+ var _a, _b;
6721
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.beforeDispatchRender;
6722
+ (_b = set === null || set === void 0 ? void 0 : set.forEach) === null || _b === void 0 ? void 0 : _b.call(set, function (cb) { return cb(renderDispatch, fiber); });
6658
6723
  };
6659
6724
  RenderDispatchEvent.prototype.onAfterDispatchRender = function (cb) {
6660
- var _a;
6661
- var set = listenerMap.get(this).afterDispatchRender;
6662
- (_a = set === null || set === void 0 ? void 0 : set.add) === null || _a === void 0 ? void 0 : _a.call(set, cb);
6725
+ var _a, _b;
6726
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.afterDispatchRender;
6727
+ (_b = set === null || set === void 0 ? void 0 : set.add) === null || _b === void 0 ? void 0 : _b.call(set, cb);
6663
6728
  return function () { var _a; return (_a = set === null || set === void 0 ? void 0 : set.delete) === null || _a === void 0 ? void 0 : _a.call(set, cb); };
6664
6729
  };
6665
6730
  RenderDispatchEvent.prototype.onceAfterDispatchRender = function (cb) {
6666
- var _a;
6667
- var set = listenerMap.get(this).afterDispatchRender;
6731
+ var _a, _b;
6732
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.afterDispatchRender;
6668
6733
  var onceCb = function (renderDispatch) {
6669
6734
  var _a;
6670
6735
  cb(renderDispatch);
6671
6736
  (_a = set === null || set === void 0 ? void 0 : set.delete) === null || _a === void 0 ? void 0 : _a.call(set, onceCb);
6672
6737
  };
6673
- (_a = set === null || set === void 0 ? void 0 : set.add) === null || _a === void 0 ? void 0 : _a.call(set, onceCb);
6738
+ (_b = set === null || set === void 0 ? void 0 : set.add) === null || _b === void 0 ? void 0 : _b.call(set, onceCb);
6674
6739
  };
6675
6740
  RenderDispatchEvent.prototype.callOnAfterDispatchRender = function (renderDispatch) {
6676
- var _a;
6677
- var set = listenerMap.get(this).afterDispatchRender;
6678
- (_a = set === null || set === void 0 ? void 0 : set.forEach) === null || _a === void 0 ? void 0 : _a.call(set, function (cb) { return cb(renderDispatch); });
6741
+ var _a, _b;
6742
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.afterDispatchRender;
6743
+ (_b = set === null || set === void 0 ? void 0 : set.forEach) === null || _b === void 0 ? void 0 : _b.call(set, function (cb) { return cb(renderDispatch); });
6679
6744
  };
6680
6745
  RenderDispatchEvent.prototype.onBeforeDispatchUpdate = function (cb) {
6681
- var _a;
6682
- var set = listenerMap.get(this).beforeDispatchUpdate;
6683
- (_a = set === null || set === void 0 ? void 0 : set.add) === null || _a === void 0 ? void 0 : _a.call(set, cb);
6746
+ var _a, _b;
6747
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.beforeDispatchUpdate;
6748
+ (_b = set === null || set === void 0 ? void 0 : set.add) === null || _b === void 0 ? void 0 : _b.call(set, cb);
6684
6749
  return function () { var _a; return (_a = set === null || set === void 0 ? void 0 : set.delete) === null || _a === void 0 ? void 0 : _a.call(set, cb); };
6685
6750
  };
6686
6751
  RenderDispatchEvent.prototype.onceBeforeDispatchUpdate = function (cb) {
6687
- var _a;
6688
- var set = listenerMap.get(this).beforeDispatchUpdate;
6752
+ var _a, _b;
6753
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.beforeDispatchUpdate;
6689
6754
  var onceCb = function (renderDispatch, list) {
6690
6755
  var _a;
6691
6756
  cb(renderDispatch, list);
6692
6757
  (_a = set === null || set === void 0 ? void 0 : set.delete) === null || _a === void 0 ? void 0 : _a.call(set, onceCb);
6693
6758
  };
6694
- (_a = set === null || set === void 0 ? void 0 : set.add) === null || _a === void 0 ? void 0 : _a.call(set, onceCb);
6759
+ (_b = set === null || set === void 0 ? void 0 : set.add) === null || _b === void 0 ? void 0 : _b.call(set, onceCb);
6695
6760
  };
6696
6761
  RenderDispatchEvent.prototype.callOnBeforeDispatchUpdate = function (renderDispatch, list) {
6697
- var _a;
6698
- var set = listenerMap.get(this).beforeDispatchUpdate;
6699
- (_a = set === null || set === void 0 ? void 0 : set.forEach) === null || _a === void 0 ? void 0 : _a.call(set, function (cb) { return cb(renderDispatch, list); });
6762
+ var _a, _b;
6763
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.beforeDispatchUpdate;
6764
+ (_b = set === null || set === void 0 ? void 0 : set.forEach) === null || _b === void 0 ? void 0 : _b.call(set, function (cb) { return cb(renderDispatch, list); });
6700
6765
  };
6701
6766
  RenderDispatchEvent.prototype.onAfterDispatchUpdate = function (cb) {
6702
- var _a;
6703
- var set = listenerMap.get(this).afterDispatchUpdate;
6704
- (_a = set === null || set === void 0 ? void 0 : set.add) === null || _a === void 0 ? void 0 : _a.call(set, cb);
6767
+ var _a, _b;
6768
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.afterDispatchUpdate;
6769
+ (_b = set === null || set === void 0 ? void 0 : set.add) === null || _b === void 0 ? void 0 : _b.call(set, cb);
6705
6770
  return function () { var _a; return (_a = set === null || set === void 0 ? void 0 : set.delete) === null || _a === void 0 ? void 0 : _a.call(set, cb); };
6706
6771
  };
6707
6772
  RenderDispatchEvent.prototype.onceAfterDispatchUpdate = function (cb) {
6708
- var _a;
6709
- var set = listenerMap.get(this).afterDispatchUpdate;
6773
+ var _a, _b;
6774
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.afterDispatchUpdate;
6710
6775
  var onceCb = function (renderDispatch) {
6711
6776
  var _a;
6712
6777
  cb(renderDispatch);
6713
6778
  (_a = set === null || set === void 0 ? void 0 : set.delete) === null || _a === void 0 ? void 0 : _a.call(set, onceCb);
6714
6779
  };
6715
- (_a = set === null || set === void 0 ? void 0 : set.add) === null || _a === void 0 ? void 0 : _a.call(set, onceCb);
6780
+ (_b = set === null || set === void 0 ? void 0 : set.add) === null || _b === void 0 ? void 0 : _b.call(set, onceCb);
6716
6781
  };
6717
6782
  RenderDispatchEvent.prototype.callOnAfterDispatchUpdate = function (renderDispatch) {
6718
- var _a;
6719
- var set = listenerMap.get(this).afterDispatchUpdate;
6720
- (_a = set === null || set === void 0 ? void 0 : set.forEach) === null || _a === void 0 ? void 0 : _a.call(set, function (cb) { return cb(renderDispatch); });
6783
+ var _a, _b;
6784
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.afterDispatchUpdate;
6785
+ (_b = set === null || set === void 0 ? void 0 : set.forEach) === null || _b === void 0 ? void 0 : _b.call(set, function (cb) { return cb(renderDispatch); });
6721
6786
  };
6722
6787
  RenderDispatchEvent.prototype.onInstanceInitial = function (cb) {
6723
- var set = listenerMap.get(this).instanceInitial;
6724
- set.add(cb);
6725
- return function () { return set.delete(cb); };
6788
+ var _a;
6789
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.instanceInitial;
6790
+ set === null || set === void 0 ? void 0 : set.add(cb);
6791
+ return function () { return set === null || set === void 0 ? void 0 : set.delete(cb); };
6726
6792
  };
6727
6793
  RenderDispatchEvent.prototype.onceInstanceInitial = function (cb) {
6728
- var set = listenerMap.get(this).instanceInitial;
6794
+ var _a;
6795
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.instanceInitial;
6729
6796
  var onceCb = function (_instance, _fiber) {
6730
6797
  cb(_instance, _fiber);
6731
- set.delete(onceCb);
6798
+ set === null || set === void 0 ? void 0 : set.delete(onceCb);
6732
6799
  };
6733
- set.add(onceCb);
6800
+ set === null || set === void 0 ? void 0 : set.add(onceCb);
6734
6801
  };
6735
6802
  RenderDispatchEvent.prototype.callOnInstanceInitial = function (_instance, _fiber) {
6736
- var _a;
6737
- var set = listenerMap.get(this).instanceInitial;
6738
- (_a = set === null || set === void 0 ? void 0 : set.forEach) === null || _a === void 0 ? void 0 : _a.call(set, function (cb) { return cb(_instance, _fiber); });
6803
+ var _a, _b;
6804
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.instanceInitial;
6805
+ (_b = set === null || set === void 0 ? void 0 : set.forEach) === null || _b === void 0 ? void 0 : _b.call(set, function (cb) { return cb(_instance, _fiber); });
6739
6806
  };
6740
6807
  RenderDispatchEvent.prototype.onInstanceUpdate = function (cb) {
6741
- var set = listenerMap.get(this).instanceUpdate;
6742
- set.add(cb);
6743
- return function () { return set.delete(cb); };
6808
+ var _a;
6809
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.instanceUpdate;
6810
+ set === null || set === void 0 ? void 0 : set.add(cb);
6811
+ return function () { return set === null || set === void 0 ? void 0 : set.delete(cb); };
6744
6812
  };
6745
6813
  RenderDispatchEvent.prototype.onceInstanceUpdate = function (cb) {
6746
- var set = listenerMap.get(this).instanceUpdate;
6814
+ var _a;
6815
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.instanceUpdate;
6747
6816
  var onceCb = function (_instance, _fiber) {
6748
6817
  cb(_instance, _fiber);
6749
- set.delete(onceCb);
6818
+ set === null || set === void 0 ? void 0 : set.delete(onceCb);
6750
6819
  };
6751
- set.add(onceCb);
6820
+ set === null || set === void 0 ? void 0 : set.add(onceCb);
6752
6821
  };
6753
6822
  RenderDispatchEvent.prototype.callOnInstanceUpdate = function (_instance, _fiber) {
6754
- var _a;
6755
- var set = listenerMap.get(this).instanceUpdate;
6756
- (_a = set === null || set === void 0 ? void 0 : set.forEach) === null || _a === void 0 ? void 0 : _a.call(set, function (cb) { return cb(_instance, _fiber); });
6823
+ var _a, _b;
6824
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.instanceUpdate;
6825
+ (_b = set === null || set === void 0 ? void 0 : set.forEach) === null || _b === void 0 ? void 0 : _b.call(set, function (cb) { return cb(_instance, _fiber); });
6757
6826
  };
6758
6827
  RenderDispatchEvent.prototype.onInstanceState = function (cb) {
6759
- var set = listenerMap.get(this).instanceState;
6760
- set.add(cb);
6761
- return function () { return set.delete(cb); };
6828
+ var _a;
6829
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.instanceState;
6830
+ set === null || set === void 0 ? void 0 : set.add(cb);
6831
+ return function () { return set === null || set === void 0 ? void 0 : set.delete(cb); };
6762
6832
  };
6763
6833
  RenderDispatchEvent.prototype.onceInstanceState = function (cb) {
6764
- var set = listenerMap.get(this).instanceState;
6834
+ var _a;
6835
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.instanceState;
6765
6836
  var onceCb = function (_instance, _fiber, _updater) {
6766
6837
  cb(_instance, _fiber, _updater);
6767
- set.delete(onceCb);
6838
+ set === null || set === void 0 ? void 0 : set.delete(onceCb);
6768
6839
  };
6769
- set.add(onceCb);
6840
+ set === null || set === void 0 ? void 0 : set.add(onceCb);
6770
6841
  };
6771
6842
  RenderDispatchEvent.prototype.callOnInstanceState = function (_instance, _fiber, _updater) {
6772
- var _a;
6773
- var set = listenerMap.get(this).instanceState;
6774
- (_a = set === null || set === void 0 ? void 0 : set.forEach) === null || _a === void 0 ? void 0 : _a.call(set, function (cb) { return cb(_instance, _fiber, _updater); });
6843
+ var _a, _b;
6844
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.instanceState;
6845
+ (_b = set === null || set === void 0 ? void 0 : set.forEach) === null || _b === void 0 ? void 0 : _b.call(set, function (cb) { return cb(_instance, _fiber, _updater); });
6775
6846
  };
6776
6847
  RenderDispatchEvent.prototype.onInstanceUnmount = function (cb) {
6777
- var set = listenerMap.get(this).instanceUnmount;
6778
- set.add(cb);
6779
- return function () { return set.delete(cb); };
6848
+ var _a;
6849
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.instanceUnmount;
6850
+ set === null || set === void 0 ? void 0 : set.add(cb);
6851
+ return function () { return set === null || set === void 0 ? void 0 : set.delete(cb); };
6780
6852
  };
6781
6853
  RenderDispatchEvent.prototype.onceInstanceUnmount = function (cb) {
6782
- var set = listenerMap.get(this).instanceUnmount;
6854
+ var _a;
6855
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.instanceUnmount;
6783
6856
  var onceCb = function (_instance, _fiber) {
6784
6857
  cb(_instance, _fiber);
6785
- set.delete(onceCb);
6858
+ set === null || set === void 0 ? void 0 : set.delete(onceCb);
6786
6859
  };
6787
- set.add(onceCb);
6860
+ set === null || set === void 0 ? void 0 : set.add(onceCb);
6788
6861
  };
6789
6862
  RenderDispatchEvent.prototype.callOnInstanceUnmount = function (_instance, _fiber) {
6790
- var _a;
6791
- var set = listenerMap.get(this).instanceUnmount;
6792
- (_a = set === null || set === void 0 ? void 0 : set.forEach) === null || _a === void 0 ? void 0 : _a.call(set, function (cb) { return cb(_instance, _fiber); });
6863
+ var _a, _b;
6864
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.instanceUnmount;
6865
+ (_b = set === null || set === void 0 ? void 0 : set.forEach) === null || _b === void 0 ? void 0 : _b.call(set, function (cb) { return cb(_instance, _fiber); });
6793
6866
  };
6794
6867
  RenderDispatchEvent.prototype.onHookInitial = function (cb) {
6795
- var set = listenerMap.get(this).hookInitial;
6796
- set.add(cb);
6797
- return function () { return set.delete(cb); };
6868
+ var _a;
6869
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.hookInitial;
6870
+ set === null || set === void 0 ? void 0 : set.add(cb);
6871
+ return function () { return set === null || set === void 0 ? void 0 : set.delete(cb); };
6798
6872
  };
6799
6873
  RenderDispatchEvent.prototype.onceHookInitial = function (cb) {
6800
- var set = listenerMap.get(this).hookInitial;
6874
+ var _a;
6875
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.hookInitial;
6801
6876
  var onceCb = function (_hook, _fiber) {
6802
6877
  cb(_hook, _fiber);
6803
- set.delete(onceCb);
6878
+ set === null || set === void 0 ? void 0 : set.delete(onceCb);
6804
6879
  };
6805
- set.add(onceCb);
6880
+ set === null || set === void 0 ? void 0 : set.add(onceCb);
6806
6881
  };
6807
6882
  RenderDispatchEvent.prototype.callOnHookInitial = function (_hook, _fiber) {
6808
- var _a;
6809
- var set = listenerMap.get(this).hookInitial;
6810
- (_a = set === null || set === void 0 ? void 0 : set.forEach) === null || _a === void 0 ? void 0 : _a.call(set, function (cb) { return cb(_hook, _fiber); });
6883
+ var _a, _b;
6884
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.hookInitial;
6885
+ (_b = set === null || set === void 0 ? void 0 : set.forEach) === null || _b === void 0 ? void 0 : _b.call(set, function (cb) { return cb(_hook, _fiber); });
6811
6886
  };
6812
6887
  RenderDispatchEvent.prototype.onHookUpdate = function (cb) {
6813
- var set = listenerMap.get(this).hookUpdate;
6814
- set.add(cb);
6815
- return function () { return set.delete(cb); };
6888
+ var _a;
6889
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.hookUpdate;
6890
+ set === null || set === void 0 ? void 0 : set.add(cb);
6891
+ return function () { return set === null || set === void 0 ? void 0 : set.delete(cb); };
6816
6892
  };
6817
6893
  RenderDispatchEvent.prototype.onceHookUpdate = function (cb) {
6818
- var set = listenerMap.get(this).hookUpdate;
6894
+ var _a;
6895
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.hookUpdate;
6819
6896
  var onceCb = function (_hook, _fiber) {
6820
6897
  cb(_hook, _fiber);
6821
- set.delete(onceCb);
6898
+ set === null || set === void 0 ? void 0 : set.delete(onceCb);
6822
6899
  };
6823
- set.add(onceCb);
6900
+ set === null || set === void 0 ? void 0 : set.add(onceCb);
6824
6901
  };
6825
6902
  RenderDispatchEvent.prototype.callOnHookUpdate = function (_hook, _fiber) {
6826
- var _a;
6827
- var set = listenerMap.get(this).hookUpdate;
6828
- (_a = set === null || set === void 0 ? void 0 : set.forEach) === null || _a === void 0 ? void 0 : _a.call(set, function (cb) { return cb(_hook, _fiber); });
6903
+ var _a, _b;
6904
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.hookUpdate;
6905
+ (_b = set === null || set === void 0 ? void 0 : set.forEach) === null || _b === void 0 ? void 0 : _b.call(set, function (cb) { return cb(_hook, _fiber); });
6829
6906
  };
6830
6907
  RenderDispatchEvent.prototype.onHookUnmount = function (cb) {
6831
- var set = listenerMap.get(this).hookUnmount;
6832
- set.add(cb);
6833
- return function () { return set.delete(cb); };
6908
+ var _a;
6909
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.hookUnmount;
6910
+ set === null || set === void 0 ? void 0 : set.add(cb);
6911
+ return function () { return set === null || set === void 0 ? void 0 : set.delete(cb); };
6834
6912
  };
6835
6913
  RenderDispatchEvent.prototype.onceHookUnmount = function (cb) {
6836
- var set = listenerMap.get(this).hookUnmount;
6914
+ var _a;
6915
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.hookUnmount;
6837
6916
  var onceCb = function (_hook, _fiber) {
6838
6917
  cb(_hook, _fiber);
6839
- set.delete(onceCb);
6918
+ set === null || set === void 0 ? void 0 : set.delete(onceCb);
6840
6919
  };
6841
- set.add(onceCb);
6920
+ set === null || set === void 0 ? void 0 : set.add(onceCb);
6842
6921
  };
6843
6922
  RenderDispatchEvent.prototype.callOnHookUnmount = function (_hook, _fiber) {
6844
- var _a;
6845
- var set = listenerMap.get(this).hookUnmount;
6846
- (_a = set === null || set === void 0 ? void 0 : set.forEach) === null || _a === void 0 ? void 0 : _a.call(set, function (cb) { return cb(_hook, _fiber); });
6923
+ var _a, _b;
6924
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.hookUnmount;
6925
+ (_b = set === null || set === void 0 ? void 0 : set.forEach) === null || _b === void 0 ? void 0 : _b.call(set, function (cb) { return cb(_hook, _fiber); });
6847
6926
  };
6848
6927
  RenderDispatchEvent.prototype.onHookState = function (cb) {
6849
- var set = listenerMap.get(this).hookState;
6850
- set.add(cb);
6851
- return function () { return set.delete(cb); };
6928
+ var _a;
6929
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.hookState;
6930
+ set === null || set === void 0 ? void 0 : set.add(cb);
6931
+ return function () { return set === null || set === void 0 ? void 0 : set.delete(cb); };
6852
6932
  };
6853
6933
  RenderDispatchEvent.prototype.onceHookTrigger = function (cb) {
6854
- var set = listenerMap.get(this).hookState;
6934
+ var _a;
6935
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.hookState;
6855
6936
  var onceCb = function (_hook, _fiber, _updater) {
6856
6937
  cb(_hook, _fiber, _updater);
6857
- set.delete(onceCb);
6938
+ set === null || set === void 0 ? void 0 : set.delete(onceCb);
6858
6939
  };
6859
- set.add(onceCb);
6940
+ set === null || set === void 0 ? void 0 : set.add(onceCb);
6860
6941
  };
6861
6942
  RenderDispatchEvent.prototype.callOnHookState = function (_hook, _fiber, _updater) {
6862
- var _a;
6863
- var set = listenerMap.get(this).hookState;
6864
- (_a = set === null || set === void 0 ? void 0 : set.forEach) === null || _a === void 0 ? void 0 : _a.call(set, function (cb) { return cb(_hook, _fiber, _updater); });
6943
+ var _a, _b;
6944
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.hookState;
6945
+ (_b = set === null || set === void 0 ? void 0 : set.forEach) === null || _b === void 0 ? void 0 : _b.call(set, function (cb) { return cb(_hook, _fiber, _updater); });
6865
6946
  };
6866
6947
  RenderDispatchEvent.prototype.onBeforeCommitMount = function (cb) {
6867
- var set = listenerMap.get(this).beforeCommitMount;
6868
- set.add(cb);
6869
- return function () { return set.delete(cb); };
6948
+ var _a;
6949
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.beforeCommitMount;
6950
+ set === null || set === void 0 ? void 0 : set.add(cb);
6951
+ return function () { return set === null || set === void 0 ? void 0 : set.delete(cb); };
6870
6952
  };
6871
6953
  RenderDispatchEvent.prototype.onceBeforeCommitMount = function (cb) {
6872
- var set = listenerMap.get(this).beforeCommitMount;
6954
+ var _a;
6955
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.beforeCommitMount;
6873
6956
  var onceCb = function (renderDispatch) {
6874
6957
  cb(renderDispatch);
6875
- set.delete(onceCb);
6958
+ set === null || set === void 0 ? void 0 : set.delete(onceCb);
6876
6959
  };
6877
- set.add(onceCb);
6960
+ set === null || set === void 0 ? void 0 : set.add(onceCb);
6878
6961
  };
6879
6962
  RenderDispatchEvent.prototype.callOnBeforeCommitMount = function (renderDispatch) {
6880
- var _a;
6881
- var set = listenerMap.get(this).beforeCommitMount;
6882
- (_a = set === null || set === void 0 ? void 0 : set.forEach) === null || _a === void 0 ? void 0 : _a.call(set, function (cb) { return cb(renderDispatch); });
6963
+ var _a, _b;
6964
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.beforeCommitMount;
6965
+ (_b = set === null || set === void 0 ? void 0 : set.forEach) === null || _b === void 0 ? void 0 : _b.call(set, function (cb) { return cb(renderDispatch); });
6883
6966
  };
6884
6967
  RenderDispatchEvent.prototype.onAfterCommitMount = function (cb) {
6885
- var set = listenerMap.get(this).afterCommitMount;
6886
- set.add(cb);
6887
- return function () { return set.delete(cb); };
6968
+ var _a;
6969
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.afterCommitMount;
6970
+ set === null || set === void 0 ? void 0 : set.add(cb);
6971
+ return function () { return set === null || set === void 0 ? void 0 : set.delete(cb); };
6888
6972
  };
6889
6973
  RenderDispatchEvent.prototype.onceAfterCommitMount = function (cb) {
6890
- var set = listenerMap.get(this).afterCommitMount;
6974
+ var _a;
6975
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.afterCommitMount;
6891
6976
  var onceCb = function (renderDispatch) {
6892
6977
  cb(renderDispatch);
6893
- set.delete(onceCb);
6978
+ set === null || set === void 0 ? void 0 : set.delete(onceCb);
6894
6979
  };
6895
- set.add(onceCb);
6980
+ set === null || set === void 0 ? void 0 : set.add(onceCb);
6896
6981
  };
6897
6982
  RenderDispatchEvent.prototype.callOnAfterCommitMount = function (renderDispatch) {
6898
- var _a;
6899
- var set = listenerMap.get(this).afterCommitMount;
6900
- (_a = set === null || set === void 0 ? void 0 : set.forEach) === null || _a === void 0 ? void 0 : _a.call(set, function (cb) { return cb(renderDispatch); });
6983
+ var _a, _b;
6984
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.afterCommitMount;
6985
+ (_b = set === null || set === void 0 ? void 0 : set.forEach) === null || _b === void 0 ? void 0 : _b.call(set, function (cb) { return cb(renderDispatch); });
6901
6986
  };
6902
6987
  RenderDispatchEvent.prototype.onBeforeCommitUpdate = function (cb) {
6903
- var set = listenerMap.get(this).beforeCommitUpdate;
6904
- set.add(cb);
6905
- return function () { return set.delete(cb); };
6988
+ var _a;
6989
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.beforeCommitUpdate;
6990
+ set === null || set === void 0 ? void 0 : set.add(cb);
6991
+ return function () { return set === null || set === void 0 ? void 0 : set.delete(cb); };
6906
6992
  };
6907
6993
  RenderDispatchEvent.prototype.onceBeforeCommitUpdate = function (cb) {
6908
- var set = listenerMap.get(this).beforeCommitUpdate;
6994
+ var _a;
6995
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.beforeCommitUpdate;
6909
6996
  var onceCb = function (renderDispatch) {
6910
6997
  cb(renderDispatch);
6911
- set.delete(onceCb);
6998
+ set === null || set === void 0 ? void 0 : set.delete(onceCb);
6912
6999
  };
6913
- set.add(onceCb);
7000
+ set === null || set === void 0 ? void 0 : set.add(onceCb);
6914
7001
  };
6915
7002
  RenderDispatchEvent.prototype.callOnBeforeCommitUpdate = function (renderDispatch) {
6916
- var _a;
6917
- var set = listenerMap.get(this).beforeCommitUpdate;
6918
- (_a = set === null || set === void 0 ? void 0 : set.forEach) === null || _a === void 0 ? void 0 : _a.call(set, function (cb) { return cb(renderDispatch); });
7003
+ var _a, _b;
7004
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.beforeCommitUpdate;
7005
+ (_b = set === null || set === void 0 ? void 0 : set.forEach) === null || _b === void 0 ? void 0 : _b.call(set, function (cb) { return cb(renderDispatch); });
6919
7006
  };
6920
7007
  RenderDispatchEvent.prototype.onAfterCommitUpdate = function (cb) {
6921
- var set = listenerMap.get(this).afterCommitUpdate;
6922
- set.add(cb);
6923
- return function () { return set.delete(cb); };
7008
+ var _a;
7009
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.afterCommitUpdate;
7010
+ set === null || set === void 0 ? void 0 : set.add(cb);
7011
+ return function () { return set === null || set === void 0 ? void 0 : set.delete(cb); };
6924
7012
  };
6925
7013
  RenderDispatchEvent.prototype.onceAfterCommitUpdate = function (cb) {
6926
- var set = listenerMap.get(this).afterCommitUpdate;
7014
+ var _a;
7015
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.afterCommitUpdate;
6927
7016
  var onceCb = function (renderDispatch) {
6928
7017
  cb(renderDispatch);
6929
- set.delete(onceCb);
7018
+ set === null || set === void 0 ? void 0 : set.delete(onceCb);
6930
7019
  };
6931
- set.add(onceCb);
7020
+ set === null || set === void 0 ? void 0 : set.add(onceCb);
6932
7021
  };
6933
7022
  RenderDispatchEvent.prototype.callOnAfterCommitUpdate = function (renderDispatch) {
6934
- var _a;
6935
- var set = listenerMap.get(this).afterCommitUpdate;
6936
- (_a = set === null || set === void 0 ? void 0 : set.forEach) === null || _a === void 0 ? void 0 : _a.call(set, function (cb) { return cb(renderDispatch); });
7023
+ var _a, _b;
7024
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.afterCommitUpdate;
7025
+ (_b = set === null || set === void 0 ? void 0 : set.forEach) === null || _b === void 0 ? void 0 : _b.call(set, function (cb) { return cb(renderDispatch); });
6937
7026
  };
6938
7027
  RenderDispatchEvent.prototype.onBeforeCommitUnmount = function (cb) {
6939
- var set = listenerMap.get(this).beforeCommitUnmount;
6940
- set.add(cb);
6941
- return function () { return set.delete(cb); };
7028
+ var _a;
7029
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.beforeCommitUnmount;
7030
+ set === null || set === void 0 ? void 0 : set.add(cb);
7031
+ return function () { return set === null || set === void 0 ? void 0 : set.delete(cb); };
6942
7032
  };
6943
7033
  RenderDispatchEvent.prototype.onceBeforeCommitUnmount = function (cb) {
6944
- var set = listenerMap.get(this).beforeCommitUnmount;
7034
+ var _a;
7035
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.beforeCommitUnmount;
6945
7036
  var onceCb = function (renderDispatch) {
6946
7037
  cb(renderDispatch);
6947
- set.delete(onceCb);
7038
+ set === null || set === void 0 ? void 0 : set.delete(onceCb);
6948
7039
  };
6949
- set.add(onceCb);
7040
+ set === null || set === void 0 ? void 0 : set.add(onceCb);
6950
7041
  };
6951
7042
  RenderDispatchEvent.prototype.callOnBeforeCommitUnmount = function (renderDispatch) {
6952
- var _a;
6953
- var set = listenerMap.get(this).beforeCommitUnmount;
6954
- (_a = set === null || set === void 0 ? void 0 : set.forEach) === null || _a === void 0 ? void 0 : _a.call(set, function (cb) { return cb(renderDispatch); });
7043
+ var _a, _b;
7044
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.beforeCommitUnmount;
7045
+ (_b = set === null || set === void 0 ? void 0 : set.forEach) === null || _b === void 0 ? void 0 : _b.call(set, function (cb) { return cb(renderDispatch); });
6955
7046
  };
6956
7047
  RenderDispatchEvent.prototype.onAfterCommitUnmount = function (cb) {
6957
- var set = listenerMap.get(this).afterCommitUnmount;
6958
- set.add(cb);
6959
- return function () { return set.delete(cb); };
7048
+ var _a;
7049
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.afterCommitUnmount;
7050
+ set === null || set === void 0 ? void 0 : set.add(cb);
7051
+ return function () { return set === null || set === void 0 ? void 0 : set.delete(cb); };
6960
7052
  };
6961
7053
  RenderDispatchEvent.prototype.onceAfterCommitUnmount = function (cb) {
6962
- var set = listenerMap.get(this).afterCommitUnmount;
7054
+ var _a;
7055
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.afterCommitUnmount;
6963
7056
  var onceCb = function (renderDispatch) {
6964
7057
  cb(renderDispatch);
6965
- set.delete(onceCb);
7058
+ set === null || set === void 0 ? void 0 : set.delete(onceCb);
6966
7059
  };
6967
- set.add(onceCb);
7060
+ set === null || set === void 0 ? void 0 : set.add(onceCb);
6968
7061
  };
6969
7062
  RenderDispatchEvent.prototype.callOnAfterCommitUnmount = function (renderDispatch) {
6970
- var _a;
6971
- var set = listenerMap.get(this).afterCommitUnmount;
6972
- (_a = set === null || set === void 0 ? void 0 : set.forEach) === null || _a === void 0 ? void 0 : _a.call(set, function (cb) { return cb(renderDispatch); });
7063
+ var _a, _b;
7064
+ var set = (_a = listenerMap.get(this)) === null || _a === void 0 ? void 0 : _a.afterCommitUnmount;
7065
+ (_b = set === null || set === void 0 ? void 0 : set.forEach) === null || _b === void 0 ? void 0 : _b.call(set, function (cb) { return cb(renderDispatch); });
6973
7066
  };
6974
7067
  return RenderDispatchEvent;
6975
7068
  }(MyReactInternalInstanceClass));
6976
7069
 
6977
7070
  var defaultDispatchFiber = function (renderDispatch, fiber) {
6978
- if (include(fiber.type, exports.NODE_TYPE.__root__)) {
7071
+ if (include(fiber.type, exports$1.NODE_TYPE.__root__)) {
6979
7072
  // TODO
6980
7073
  nextWorkRoot(renderDispatch, fiber);
6981
7074
  }
6982
- else if (include(fiber.type, exports.NODE_TYPE.__class__ | exports.NODE_TYPE.__function__)) {
7075
+ else if (include(fiber.type, exports$1.NODE_TYPE.__class__ | exports$1.NODE_TYPE.__function__)) {
6983
7076
  nextWorkComponent(renderDispatch, fiber);
6984
7077
  }
6985
- else if (include(fiber.type, exports.NODE_TYPE.__lazy__)) {
7078
+ else if (include(fiber.type, exports$1.NODE_TYPE.__lazy__)) {
6986
7079
  nextWorkLazy(renderDispatch, fiber);
6987
7080
  }
6988
- else if (include(fiber.type, exports.NODE_TYPE.__suspense__)) {
7081
+ else if (include(fiber.type, exports$1.NODE_TYPE.__suspense__)) {
6989
7082
  nextWorkSuspense(renderDispatch, fiber);
6990
7083
  }
6991
- else if (include(fiber.type, exports.NODE_TYPE.__consumer__)) {
7084
+ else if (include(fiber.type, exports$1.NODE_TYPE.__consumer__)) {
6992
7085
  nextWorkConsumer(renderDispatch, fiber);
6993
7086
  }
6994
- else if (include(fiber.type, exports.NODE_TYPE.__provider__ | exports.NODE_TYPE.__context__)) {
7087
+ else if (include(fiber.type, exports$1.NODE_TYPE.__provider__ | exports$1.NODE_TYPE.__context__)) {
6995
7088
  nextWorkProvider(renderDispatch, fiber);
6996
7089
  }
6997
- else if (include(fiber.type, exports.NODE_TYPE.__activity__)) {
7090
+ else if (include(fiber.type, exports$1.NODE_TYPE.__activity__)) {
6998
7091
  nextWorkActivity(renderDispatch, fiber);
6999
7092
  }
7000
7093
  else {
@@ -7011,7 +7104,7 @@ function requireIndex_development () {
7011
7104
  _this.isAppMounted = false;
7012
7105
  _this.isAppCrashed = false;
7013
7106
  _this.isAppUnmounted = false;
7014
- _this.version = "0.3.22";
7107
+ _this.version = "0.3.23";
7015
7108
  _this.id = Math.random().toString(16).slice(2);
7016
7109
  _this.mode = "development" ;
7017
7110
  _this.renderMode = "render";
@@ -7057,7 +7150,7 @@ function requireIndex_development () {
7057
7150
  if (include(_fiber.type, this.runtimeRef.typeForRef)) {
7058
7151
  _fiber.patch = merge(_fiber.patch, PATCH_TYPE.__ref__);
7059
7152
  }
7060
- else if (exclude(_fiber.type, exports.NODE_TYPE.__forwardRef__)) {
7153
+ else if (exclude(_fiber.type, exports$1.NODE_TYPE.__forwardRef__)) {
7061
7154
  onceWarnWithKeyAndFiber(_fiber, "ref", "[@my-react/react] set ref for current element will be ignored");
7062
7155
  }
7063
7156
  }
@@ -7269,192 +7362,192 @@ function requireIndex_development () {
7269
7362
  });
7270
7363
  }); };
7271
7364
 
7272
- var version = "0.3.22";
7365
+ var version = "0.3.23";
7273
7366
 
7274
- exports.CustomRenderDispatch = CustomRenderDispatch;
7275
- exports.MyReactFiberNode = MyReactFiberNode;
7276
- exports.MyReactHookNode = MyReactHookNode;
7277
- exports.MyWeakMap = MyWeakMap;
7278
- exports.RenderDispatchEvent = RenderDispatchEvent;
7279
- exports.WrapperByLazyScope = WrapperByLazyScope;
7280
- exports.WrapperBySuspenseScope = WrapperBySuspenseScope;
7281
- exports.addEffectCallback = addEffectCallback;
7282
- exports.afterSyncFlush = afterSyncFlush;
7283
- exports.afterSyncUpdate = afterSyncUpdate;
7284
- exports.applyTriggerFiberCb = applyTriggerFiberCb;
7285
- exports.beforeSyncFlush = beforeSyncFlush;
7286
- exports.beforeSyncUpdate = beforeSyncUpdate;
7287
- exports.callWithFiber = callWithFiber;
7288
- exports.checkIsMyReactFiberNode = checkIsMyReactFiberNode;
7289
- exports.checkIsSameType = checkIsSameType;
7290
- exports.clearContainer = clearContainer;
7291
- exports.clearFiberNode = clearFiberNode;
7292
- exports.createFiberNode = createFiberNode;
7293
- exports.createHookNode = createHookNode;
7294
- exports.currentRefreshHandler = currentRefreshHandler;
7295
- exports.currentTriggerFiber = currentTriggerFiber;
7296
- exports.debugWithNode = debugWithNode;
7297
- exports.defaultDeleteChildEffect = defaultDeleteChildEffect;
7298
- exports.defaultDeleteCurrentEffect = defaultDeleteCurrentEffect;
7299
- exports.defaultDispatchMount = defaultDispatchMount;
7300
- exports.defaultDispatchMountLatest = defaultDispatchMountLatest;
7301
- exports.defaultDispatchUnmount = defaultDispatchUnmount;
7302
- exports.defaultDispatchUpdate = defaultDispatchUpdate;
7303
- exports.defaultGenerateEffectMap = defaultGenerateEffectMap;
7304
- exports.defaultGenerateStrict = defaultGenerateStrict;
7305
- exports.defaultGenerateUnmountMap = defaultGenerateUnmountMap;
7306
- exports.defaultGetContextFiber = defaultGetContextFiber;
7307
- exports.defaultGetContextValue = defaultGetContextValue;
7308
- exports.defaultInvokeEffect = defaultInvokeEffect;
7309
- exports.defaultInvokeInsertionEffect = defaultInvokeInsertionEffect;
7310
- exports.defaultInvokeLayoutEffect = defaultInvokeLayoutEffect;
7311
- exports.defaultInvokeUnmountList = defaultInvokeUnmountList;
7312
- exports.defaultReadContext = defaultReadContext;
7313
- exports.defaultReadPromise = defaultReadPromise;
7314
- exports.defaultResolveAliveSuspenseFiber = defaultResolveAliveSuspenseFiber;
7315
- exports.defaultResolveErrorBoundaries = defaultResolveErrorBoundaries;
7316
- exports.defaultResolveScope = defaultResolveScope;
7317
- exports.defaultResolveSuspenseFiber = defaultResolveSuspenseFiber;
7318
- exports.defaultResolveSuspenseValue = defaultResolveSuspenseValue;
7319
- exports.devError = devError;
7320
- exports.devErrorWithFiber = devErrorWithFiber;
7321
- exports.devWarn = devWarn;
7322
- exports.devWarnWithFiber = devWarnWithFiber;
7323
- exports.effect = effect;
7324
- exports.effectHookNode = effectHookNode;
7325
- exports.emptyProps = emptyProps;
7326
- exports.enableDebugUpdateQueue = enableDebugUpdateQueue;
7327
- exports.enableFiberForLog = enableFiberForLog;
7328
- exports.enableLogForCurrentFlowIsRunning = enableLogForCurrentFlowIsRunning;
7329
- exports.enableValidMyReactElement = enableValidMyReactElement;
7330
- exports.fiberToDispatchMap = fiberToDispatchMap;
7331
- exports.flushEffectCallback = flushEffectCallback;
7332
- exports.generateFiberToListWithAction = generateFiberToListWithAction;
7333
- exports.generateFiberToMountList = generateFiberToMountList;
7334
- exports.generateFiberToUnmountList = generateFiberToUnmountList;
7335
- exports.getClassInstanceFieldByInstance = getClassInstanceFieldByInstance;
7336
- exports.getCurrentDispatchFromFiber = getCurrentDispatchFromFiber;
7337
- exports.getCurrentDispatchFromType = getCurrentDispatchFromType;
7338
- exports.getCurrentFibersFromType = getCurrentFibersFromType;
7339
- exports.getCurrentTypeFromRefresh = getCurrentTypeFromRefresh;
7340
- exports.getCurrentTypeFromRefreshOnly = getCurrentTypeFromRefreshOnly;
7341
- exports.getElementFromRefreshIfExist = getElementFromRefreshIfExist;
7342
- exports.getElementName = getElementName;
7343
- exports.getElementTypeFromType = getElementTypeFromType;
7344
- exports.getFiberTree = getFiberTree$1;
7345
- exports.getFiberTreeWithFiber = getFiberTreeWithFiber;
7346
- exports.getHookTree = getHookTree;
7347
- exports.getInstanceContextFiber = getInstanceContextFiber;
7348
- exports.getInstanceEffectState = getInstanceEffectState;
7349
- exports.getInstanceFieldByInstance = getInstanceFieldByInstance;
7350
- exports.getInstanceOwnerFiber = getInstanceOwnerFiber;
7351
- exports.getPlainFiberName = getPlainFiberName;
7352
- exports.getStackTree = getStackTree;
7353
- exports.getTypeFromElement = getTypeFromElement;
7354
- exports.getTypeFromElementNode = getTypeFromElementNode;
7355
- exports.hmr = hmr;
7356
- exports.hmrRevert = hmrRevert;
7357
- exports.hmrUpdate = hmrUpdate;
7358
- exports.hookListUnmount = hookListUnmount;
7359
- exports.initClassInstance = initClassInstance;
7360
- exports.initHMR = initHMR;
7361
- exports.initHookInstance = initHookInstance;
7362
- exports.initInstance = initInstance;
7363
- exports.initScheduler = initScheduler;
7364
- exports.initSuspenseInstance = initSuspenseInstance;
7365
- exports.initVisibleInstance = initVisibleInstance;
7366
- exports.initialFiberNode = initialFiberNode;
7367
- exports.insertionEffect = insertionEffect;
7368
- exports.isCommentElement = isCommentElement;
7369
- exports.isCommentEndElement = isCommentEndElement;
7370
- exports.isCommentStartElement = isCommentStartElement;
7371
- exports.isErrorBoundariesComponent = isErrorBoundariesComponent;
7372
- exports.isErrorBoundariesInstance = isErrorBoundariesInstance;
7373
- exports.layoutEffect = layoutEffect;
7374
- exports.loadLazy = loadLazy;
7375
- exports.loadPromise = loadPromise;
7376
- exports.mountAsync = mountAsync;
7377
- exports.mountClassInstance = mountClassInstance;
7378
- exports.mountLoopAll = mountLoopAll;
7379
- exports.mountLoopAllFromScheduler = mountLoopAllFromScheduler;
7380
- exports.mountSync = mountSync;
7381
- exports.mountToNextFiberFromRoot = mountToNextFiberFromRoot;
7382
- exports.nextWorkActivity = nextWorkActivity;
7383
- exports.nextWorkClassComponent = nextWorkClassComponent;
7384
- exports.nextWorkCommon = nextWorkCommon;
7385
- exports.nextWorkComponent = nextWorkComponent;
7386
- exports.nextWorkConsumer = nextWorkConsumer;
7387
- exports.nextWorkFunctionComponent = nextWorkFunctionComponent;
7388
- exports.nextWorkLazy = nextWorkLazy;
7389
- exports.nextWorkNormal = nextWorkNormal;
7390
- exports.nextWorkProvider = nextWorkProvider;
7391
- exports.nextWorkRoot = nextWorkRoot;
7392
- exports.nextWorkSuspense = nextWorkSuspense;
7393
- exports.onceErrorWithKeyAndFiber = onceErrorWithKeyAndFiber;
7394
- exports.onceWarnWithKeyAndFiber = onceWarnWithKeyAndFiber;
7395
- exports.originalError = originalError;
7396
- exports.originalWarn = originalWarn;
7397
- exports.performToNextFiberFromRoot = performToNextFiberFromRoot;
7398
- exports.prepareUpdateAllDependence = prepareUpdateAllDependence;
7399
- exports.prepareUpdateOnFiber = prepareUpdateOnFiber;
7400
- exports.processAsyncLoadListOnAsyncMount = processAsyncLoadListOnAsyncMount;
7401
- exports.processAsyncLoadListOnSyncMount = processAsyncLoadListOnSyncMount;
7402
- exports.processAsyncLoadListOnUpdate = processAsyncLoadListOnUpdate;
7403
- exports.processClassComponentActive = processClassComponentActive;
7404
- exports.processClassComponentMount = processClassComponentMount;
7405
- exports.processClassComponentUnmount = processClassComponentUnmount;
7406
- exports.processClassComponentUpdate = processClassComponentUpdate;
7407
- exports.processClassComponentUpdateQueueLatest = processClassComponentUpdateQueueLatest;
7408
- exports.processClassComponentUpdateQueueLegacy = processClassComponentUpdateQueueLegacy;
7409
- exports.processConsumer = processConsumer;
7410
- exports.processFunction = processFunction;
7411
- exports.processFunctionComponentUpdateQueueLatest = processFunctionComponentUpdateQueueLatest;
7412
- exports.processFunctionComponentUpdateQueueLegacy = processFunctionComponentUpdateQueueLegacy;
7413
- exports.processHook = processHook;
7414
- exports.processLazy = processLazy;
7415
- exports.processNormalComponentUpdateLatest = processNormalComponentUpdateLatest;
7416
- exports.processNormalComponentUpdateLegacy = processNormalComponentUpdateLegacy;
7417
- exports.processPromise = processPromise;
7418
- exports.processProvider = processProvider;
7419
- exports.processState = processState;
7420
- exports.processSuspense = processSuspense;
7421
- exports.processSuspensePromise = processSuspensePromise;
7422
- exports.resetLogScope = resetLogScope;
7423
- exports.runtimeNextWork = runtimeNextWork;
7424
- exports.runtimeNextWorkDev = runtimeNextWorkDev;
7425
- exports.safeCall = safeCall;
7426
- exports.safeCallWithCurrentFiber = safeCallWithCurrentFiber;
7427
- exports.safeCallWithSync = safeCallWithSync;
7428
- exports.scheduleNext = scheduleNext;
7429
- exports.scheduleUpdate = scheduleUpdate;
7430
- exports.setContextForInstance = setContextForInstance;
7431
- exports.setEffectForInstance = setEffectForInstance;
7432
- exports.setLogScope = setLogScope;
7433
- exports.setOwnerForInstance = setOwnerForInstance;
7434
- exports.setRefreshHandler = setRefreshHandler;
7435
- exports.setRefreshTypeMap = setRefreshTypeMap;
7436
- exports.setSubscribeForInstance = setSubscribeForInstance;
7437
- exports.syncComponentStateToFiber = syncComponentStateToFiber;
7438
- exports.syncFiberStateToComponent = syncFiberStateToComponent;
7439
- exports.syncFlushComponentQueue = syncFlushComponentQueue;
7440
- exports.transformChildrenFiber = transformChildrenFiber;
7441
- exports.triggerError = triggerError;
7442
- exports.triggerFiberUpdateListener = triggerFiberUpdateListener;
7443
- exports.triggerRevert = triggerRevert;
7444
- exports.triggerUpdate = triggerUpdate;
7445
- exports.triggerUpdateOnFiber = triggerUpdateOnFiber;
7446
- exports.typeToFibersMap = typeToFibersMap;
7447
- exports.unmountContainer = unmountContainer;
7448
- exports.unmountFiber = unmountFiber;
7449
- exports.unmountFiberNode = unmountFiberNode;
7450
- exports.unmountInstance = unmountInstance;
7451
- exports.updateConcurrentFromRoot = updateConcurrentFromRoot;
7452
- exports.updateFiberNode = updateFiberNode;
7453
- exports.updateHookNode = updateHookNode;
7454
- exports.updateLoopConcurrentFromRoot = updateLoopConcurrentFromRoot;
7455
- exports.updateLoopSyncFromRoot = updateLoopSyncFromRoot;
7456
- exports.updateSyncFromRoot = updateSyncFromRoot;
7457
- exports.version = version;
7367
+ exports$1.CustomRenderDispatch = CustomRenderDispatch;
7368
+ exports$1.MyReactFiberNode = MyReactFiberNode;
7369
+ exports$1.MyReactHookNode = MyReactHookNode;
7370
+ exports$1.MyWeakMap = MyWeakMap;
7371
+ exports$1.RenderDispatchEvent = RenderDispatchEvent;
7372
+ exports$1.WrapperByLazyScope = WrapperByLazyScope;
7373
+ exports$1.WrapperBySuspenseScope = WrapperBySuspenseScope;
7374
+ exports$1.addEffectCallback = addEffectCallback;
7375
+ exports$1.afterSyncFlush = afterSyncFlush;
7376
+ exports$1.afterSyncUpdate = afterSyncUpdate;
7377
+ exports$1.applyTriggerFiberCb = applyTriggerFiberCb;
7378
+ exports$1.beforeSyncFlush = beforeSyncFlush;
7379
+ exports$1.beforeSyncUpdate = beforeSyncUpdate;
7380
+ exports$1.callWithFiber = callWithFiber;
7381
+ exports$1.checkIsMyReactFiberNode = checkIsMyReactFiberNode;
7382
+ exports$1.checkIsSameType = checkIsSameType;
7383
+ exports$1.clearContainer = clearContainer;
7384
+ exports$1.clearFiberNode = clearFiberNode;
7385
+ exports$1.createFiberNode = createFiberNode;
7386
+ exports$1.createHookNode = createHookNode;
7387
+ exports$1.currentRefreshHandler = currentRefreshHandler;
7388
+ exports$1.currentTriggerFiber = currentTriggerFiber;
7389
+ exports$1.debugWithNode = debugWithNode;
7390
+ exports$1.defaultDeleteChildEffect = defaultDeleteChildEffect;
7391
+ exports$1.defaultDeleteCurrentEffect = defaultDeleteCurrentEffect;
7392
+ exports$1.defaultDispatchMount = defaultDispatchMount;
7393
+ exports$1.defaultDispatchMountLatest = defaultDispatchMountLatest;
7394
+ exports$1.defaultDispatchUnmount = defaultDispatchUnmount;
7395
+ exports$1.defaultDispatchUpdate = defaultDispatchUpdate;
7396
+ exports$1.defaultGenerateEffectMap = defaultGenerateEffectMap;
7397
+ exports$1.defaultGenerateStrict = defaultGenerateStrict;
7398
+ exports$1.defaultGenerateUnmountMap = defaultGenerateUnmountMap;
7399
+ exports$1.defaultGetContextFiber = defaultGetContextFiber;
7400
+ exports$1.defaultGetContextValue = defaultGetContextValue;
7401
+ exports$1.defaultInvokeEffect = defaultInvokeEffect;
7402
+ exports$1.defaultInvokeInsertionEffect = defaultInvokeInsertionEffect;
7403
+ exports$1.defaultInvokeLayoutEffect = defaultInvokeLayoutEffect;
7404
+ exports$1.defaultInvokeUnmountList = defaultInvokeUnmountList;
7405
+ exports$1.defaultReadContext = defaultReadContext;
7406
+ exports$1.defaultReadPromise = defaultReadPromise;
7407
+ exports$1.defaultResolveAliveSuspenseFiber = defaultResolveAliveSuspenseFiber;
7408
+ exports$1.defaultResolveErrorBoundaries = defaultResolveErrorBoundaries;
7409
+ exports$1.defaultResolveScope = defaultResolveScope;
7410
+ exports$1.defaultResolveSuspenseFiber = defaultResolveSuspenseFiber;
7411
+ exports$1.defaultResolveSuspenseValue = defaultResolveSuspenseValue;
7412
+ exports$1.devError = devError;
7413
+ exports$1.devErrorWithFiber = devErrorWithFiber;
7414
+ exports$1.devWarn = devWarn;
7415
+ exports$1.devWarnWithFiber = devWarnWithFiber;
7416
+ exports$1.effect = effect;
7417
+ exports$1.effectHookNode = effectHookNode;
7418
+ exports$1.emptyProps = emptyProps;
7419
+ exports$1.enableDebugUpdateQueue = enableDebugUpdateQueue;
7420
+ exports$1.enableFiberForLog = enableFiberForLog;
7421
+ exports$1.enableLogForCurrentFlowIsRunning = enableLogForCurrentFlowIsRunning;
7422
+ exports$1.enableValidMyReactElement = enableValidMyReactElement;
7423
+ exports$1.fiberToDispatchMap = fiberToDispatchMap;
7424
+ exports$1.flushEffectCallback = flushEffectCallback;
7425
+ exports$1.generateFiberToListWithAction = generateFiberToListWithAction;
7426
+ exports$1.generateFiberToMountList = generateFiberToMountList;
7427
+ exports$1.generateFiberToUnmountList = generateFiberToUnmountList;
7428
+ exports$1.getClassInstanceFieldByInstance = getClassInstanceFieldByInstance;
7429
+ exports$1.getCurrentDispatchFromFiber = getCurrentDispatchFromFiber;
7430
+ exports$1.getCurrentDispatchFromType = getCurrentDispatchFromType;
7431
+ exports$1.getCurrentFibersFromType = getCurrentFibersFromType;
7432
+ exports$1.getCurrentTypeFromRefresh = getCurrentTypeFromRefresh;
7433
+ exports$1.getCurrentTypeFromRefreshOnly = getCurrentTypeFromRefreshOnly;
7434
+ exports$1.getElementFromRefreshIfExist = getElementFromRefreshIfExist;
7435
+ exports$1.getElementName = getElementName;
7436
+ exports$1.getElementTypeFromType = getElementTypeFromType;
7437
+ exports$1.getFiberTree = getFiberTree$1;
7438
+ exports$1.getFiberTreeWithFiber = getFiberTreeWithFiber;
7439
+ exports$1.getHookTree = getHookTree;
7440
+ exports$1.getInstanceContextFiber = getInstanceContextFiber;
7441
+ exports$1.getInstanceEffectState = getInstanceEffectState;
7442
+ exports$1.getInstanceFieldByInstance = getInstanceFieldByInstance;
7443
+ exports$1.getInstanceOwnerFiber = getInstanceOwnerFiber;
7444
+ exports$1.getPlainFiberName = getPlainFiberName;
7445
+ exports$1.getStackTree = getStackTree;
7446
+ exports$1.getTypeFromElement = getTypeFromElement;
7447
+ exports$1.getTypeFromElementNode = getTypeFromElementNode;
7448
+ exports$1.hmr = hmr;
7449
+ exports$1.hmrRevert = hmrRevert;
7450
+ exports$1.hmrUpdate = hmrUpdate;
7451
+ exports$1.hookListUnmount = hookListUnmount;
7452
+ exports$1.initClassInstance = initClassInstance;
7453
+ exports$1.initHMR = initHMR;
7454
+ exports$1.initHookInstance = initHookInstance;
7455
+ exports$1.initInstance = initInstance;
7456
+ exports$1.initScheduler = initScheduler;
7457
+ exports$1.initSuspenseInstance = initSuspenseInstance;
7458
+ exports$1.initVisibleInstance = initVisibleInstance;
7459
+ exports$1.initialFiberNode = initialFiberNode;
7460
+ exports$1.insertionEffect = insertionEffect;
7461
+ exports$1.isCommentElement = isCommentElement;
7462
+ exports$1.isCommentEndElement = isCommentEndElement;
7463
+ exports$1.isCommentStartElement = isCommentStartElement;
7464
+ exports$1.isErrorBoundariesComponent = isErrorBoundariesComponent;
7465
+ exports$1.isErrorBoundariesInstance = isErrorBoundariesInstance;
7466
+ exports$1.layoutEffect = layoutEffect;
7467
+ exports$1.loadLazy = loadLazy;
7468
+ exports$1.loadPromise = loadPromise;
7469
+ exports$1.mountAsync = mountAsync;
7470
+ exports$1.mountClassInstance = mountClassInstance;
7471
+ exports$1.mountLoopAll = mountLoopAll;
7472
+ exports$1.mountLoopAllFromScheduler = mountLoopAllFromScheduler;
7473
+ exports$1.mountSync = mountSync;
7474
+ exports$1.mountToNextFiberFromRoot = mountToNextFiberFromRoot;
7475
+ exports$1.nextWorkActivity = nextWorkActivity;
7476
+ exports$1.nextWorkClassComponent = nextWorkClassComponent;
7477
+ exports$1.nextWorkCommon = nextWorkCommon;
7478
+ exports$1.nextWorkComponent = nextWorkComponent;
7479
+ exports$1.nextWorkConsumer = nextWorkConsumer;
7480
+ exports$1.nextWorkFunctionComponent = nextWorkFunctionComponent;
7481
+ exports$1.nextWorkLazy = nextWorkLazy;
7482
+ exports$1.nextWorkNormal = nextWorkNormal;
7483
+ exports$1.nextWorkProvider = nextWorkProvider;
7484
+ exports$1.nextWorkRoot = nextWorkRoot;
7485
+ exports$1.nextWorkSuspense = nextWorkSuspense;
7486
+ exports$1.onceErrorWithKeyAndFiber = onceErrorWithKeyAndFiber;
7487
+ exports$1.onceWarnWithKeyAndFiber = onceWarnWithKeyAndFiber;
7488
+ exports$1.originalError = originalError;
7489
+ exports$1.originalWarn = originalWarn;
7490
+ exports$1.performToNextFiberFromRoot = performToNextFiberFromRoot;
7491
+ exports$1.prepareUpdateAllDependence = prepareUpdateAllDependence;
7492
+ exports$1.prepareUpdateOnFiber = prepareUpdateOnFiber;
7493
+ exports$1.processAsyncLoadListOnAsyncMount = processAsyncLoadListOnAsyncMount;
7494
+ exports$1.processAsyncLoadListOnSyncMount = processAsyncLoadListOnSyncMount;
7495
+ exports$1.processAsyncLoadListOnUpdate = processAsyncLoadListOnUpdate;
7496
+ exports$1.processClassComponentActive = processClassComponentActive;
7497
+ exports$1.processClassComponentMount = processClassComponentMount;
7498
+ exports$1.processClassComponentUnmount = processClassComponentUnmount;
7499
+ exports$1.processClassComponentUpdate = processClassComponentUpdate;
7500
+ exports$1.processClassComponentUpdateQueueLatest = processClassComponentUpdateQueueLatest;
7501
+ exports$1.processClassComponentUpdateQueueLegacy = processClassComponentUpdateQueueLegacy;
7502
+ exports$1.processConsumer = processConsumer;
7503
+ exports$1.processFunction = processFunction;
7504
+ exports$1.processFunctionComponentUpdateQueueLatest = processFunctionComponentUpdateQueueLatest;
7505
+ exports$1.processFunctionComponentUpdateQueueLegacy = processFunctionComponentUpdateQueueLegacy;
7506
+ exports$1.processHook = processHook;
7507
+ exports$1.processLazy = processLazy;
7508
+ exports$1.processNormalComponentUpdateLatest = processNormalComponentUpdateLatest;
7509
+ exports$1.processNormalComponentUpdateLegacy = processNormalComponentUpdateLegacy;
7510
+ exports$1.processPromise = processPromise;
7511
+ exports$1.processProvider = processProvider;
7512
+ exports$1.processState = processState;
7513
+ exports$1.processSuspense = processSuspense;
7514
+ exports$1.processSuspensePromise = processSuspensePromise;
7515
+ exports$1.resetLogScope = resetLogScope;
7516
+ exports$1.runtimeNextWork = runtimeNextWork;
7517
+ exports$1.runtimeNextWorkDev = runtimeNextWorkDev;
7518
+ exports$1.safeCall = safeCall;
7519
+ exports$1.safeCallWithCurrentFiber = safeCallWithCurrentFiber;
7520
+ exports$1.safeCallWithSync = safeCallWithSync;
7521
+ exports$1.scheduleNext = scheduleNext;
7522
+ exports$1.scheduleUpdate = scheduleUpdate;
7523
+ exports$1.setContextForInstance = setContextForInstance;
7524
+ exports$1.setEffectForInstance = setEffectForInstance;
7525
+ exports$1.setLogScope = setLogScope;
7526
+ exports$1.setOwnerForInstance = setOwnerForInstance;
7527
+ exports$1.setRefreshHandler = setRefreshHandler;
7528
+ exports$1.setRefreshTypeMap = setRefreshTypeMap;
7529
+ exports$1.setSubscribeForInstance = setSubscribeForInstance;
7530
+ exports$1.syncComponentStateToFiber = syncComponentStateToFiber;
7531
+ exports$1.syncFiberStateToComponent = syncFiberStateToComponent;
7532
+ exports$1.syncFlushComponentQueue = syncFlushComponentQueue;
7533
+ exports$1.transformChildrenFiber = transformChildrenFiber;
7534
+ exports$1.triggerError = triggerError;
7535
+ exports$1.triggerFiberUpdateListener = triggerFiberUpdateListener;
7536
+ exports$1.triggerRevert = triggerRevert;
7537
+ exports$1.triggerUpdate = triggerUpdate;
7538
+ exports$1.triggerUpdateOnFiber = triggerUpdateOnFiber;
7539
+ exports$1.typeToFibersMap = typeToFibersMap;
7540
+ exports$1.unmountContainer = unmountContainer;
7541
+ exports$1.unmountFiber = unmountFiber;
7542
+ exports$1.unmountFiberNode = unmountFiberNode;
7543
+ exports$1.unmountInstance = unmountInstance;
7544
+ exports$1.updateConcurrentFromRoot = updateConcurrentFromRoot;
7545
+ exports$1.updateFiberNode = updateFiberNode;
7546
+ exports$1.updateHookNode = updateHookNode;
7547
+ exports$1.updateLoopConcurrentFromRoot = updateLoopConcurrentFromRoot;
7548
+ exports$1.updateLoopSyncFromRoot = updateLoopSyncFromRoot;
7549
+ exports$1.updateSyncFromRoot = updateSyncFromRoot;
7550
+ exports$1.version = version;
7458
7551
  } (index_development));
7459
7552
  return index_development;
7460
7553
  }
@@ -8544,24 +8637,24 @@ var ReconcilerDispatchUpdate = function (_dispatch, _list, config, sync) {
8544
8637
  }
8545
8638
  }
8546
8639
  });
8547
- _list.listToHead(function invokePositionList(_fiber) {
8640
+ _list.listToFoot(function invokeAppendList(_fiber) {
8548
8641
  if (exclude(_fiber.state, STATE_TYPE.__unmount__) && !_dispatch.isAppUnmounted) {
8549
8642
  myreactReconcilerExports.safeCallWithCurrentFiber({
8550
8643
  fiber: _fiber,
8551
- action: function safeCallPosition() {
8552
- _dispatch.commitPosition(_fiber);
8644
+ action: function safeCallAppendList() {
8645
+ _dispatch.commitAppend(_fiber);
8553
8646
  var parentFiber = getValidParentFiberWithNode(_dispatch, _fiber);
8554
8647
  parentFiber && pendingFinalizeInitialChildrenFiberSet.add(parentFiber);
8555
8648
  },
8556
8649
  });
8557
8650
  }
8558
8651
  });
8559
- _list.listToFoot(function invokeAppendList(_fiber) {
8652
+ _list.listToHead(function invokePositionList(_fiber) {
8560
8653
  if (exclude(_fiber.state, STATE_TYPE.__unmount__) && !_dispatch.isAppUnmounted) {
8561
8654
  myreactReconcilerExports.safeCallWithCurrentFiber({
8562
8655
  fiber: _fiber,
8563
- action: function safeCallAppendList() {
8564
- _dispatch.commitAppend(_fiber);
8656
+ action: function safeCallPosition() {
8657
+ _dispatch.commitPosition(_fiber);
8565
8658
  var parentFiber = getValidParentFiberWithNode(_dispatch, _fiber);
8566
8659
  parentFiber && pendingFinalizeInitialChildrenFiberSet.add(parentFiber);
8567
8660
  },
@@ -8783,10 +8876,10 @@ var autoSetDevHMR = function (dispatch) {
8783
8876
 
8784
8877
  /* eslint-disable @typescript-eslint/no-unused-vars */
8785
8878
  /* eslint-disable @typescript-eslint/ban-ts-comment */
8786
- function loadRemoteScript(url, options) {
8787
- if (options === void 0) { options = {}; }
8788
- return __awaiter(this, void 0, void 0, function () {
8879
+ function loadRemoteScript(url_1) {
8880
+ return __awaiter(this, arguments, void 0, function (url, options) {
8789
8881
  var _a, timeout, _b, context, _c, useEval, controller_1, timeoutId, response, code, error_1, errorMsg;
8882
+ if (options === void 0) { options = {}; }
8790
8883
  return __generator(this, function (_d) {
8791
8884
  switch (_d.label) {
8792
8885
  case 0:
@@ -9136,10 +9229,10 @@ function createSafeRequire() {
9136
9229
  };
9137
9230
  }
9138
9231
  // 增强的模块加载版本(支持导出)
9139
- function loadRemoteModule(url, options) {
9140
- if (options === void 0) { options = {}; }
9141
- return __awaiter(this, void 0, void 0, function () {
9232
+ function loadRemoteModule(url_1) {
9233
+ return __awaiter(this, arguments, void 0, function (url, options) {
9142
9234
  var _a, context, moduleExports, moduleContext;
9235
+ if (options === void 0) { options = {}; }
9143
9236
  return __generator(this, function (_b) {
9144
9237
  switch (_b.label) {
9145
9238
  case 0:
@@ -9288,8 +9381,7 @@ var Reconciler = function (_config) {
9288
9381
  };
9289
9382
  };
9290
9383
 
9291
- /* eslint-disable import/export */
9292
- var version = "0.0.13";
9384
+ var version = "0.0.14";
9293
9385
  var createReconciler = Reconciler;
9294
9386
 
9295
9387
  exports.createReconciler = createReconciler;