react-server-dom-webpack 19.0.2 → 19.0.4
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.
- package/cjs/react-server-dom-webpack-client.browser.development.js +94 -76
- package/cjs/react-server-dom-webpack-client.browser.production.js +63 -51
- package/cjs/react-server-dom-webpack-client.edge.development.js +92 -74
- package/cjs/react-server-dom-webpack-client.edge.production.js +63 -51
- package/cjs/react-server-dom-webpack-client.node.development.js +92 -74
- package/cjs/react-server-dom-webpack-client.node.production.js +63 -51
- package/cjs/react-server-dom-webpack-client.node.unbundled.development.js +92 -74
- package/cjs/react-server-dom-webpack-client.node.unbundled.production.js +63 -51
- package/cjs/react-server-dom-webpack-server.browser.development.js +626 -346
- package/cjs/react-server-dom-webpack-server.browser.production.js +599 -310
- package/cjs/react-server-dom-webpack-server.edge.development.js +626 -346
- package/cjs/react-server-dom-webpack-server.edge.production.js +599 -310
- package/cjs/react-server-dom-webpack-server.node.development.js +632 -350
- package/cjs/react-server-dom-webpack-server.node.production.js +605 -314
- package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +632 -350
- package/cjs/react-server-dom-webpack-server.node.unbundled.production.js +605 -314
- package/package.json +3 -3
|
@@ -438,6 +438,11 @@
|
|
|
438
438
|
return "$" + (iterable ? "x" : "X") + streamId.toString(16);
|
|
439
439
|
}
|
|
440
440
|
function resolveToJSON(key, value) {
|
|
441
|
+
"__proto__" === key &&
|
|
442
|
+
console.error(
|
|
443
|
+
"Expected not to serialize an object with own property `__proto__`. When parsed this property will be omitted.%s",
|
|
444
|
+
describeObjectForErrorMessage(this, key)
|
|
445
|
+
);
|
|
441
446
|
var originalValue = this[key];
|
|
442
447
|
"object" !== typeof originalValue ||
|
|
443
448
|
originalValue === value ||
|
|
@@ -682,14 +687,17 @@
|
|
|
682
687
|
if ("undefined" === typeof value) return "$undefined";
|
|
683
688
|
if ("function" === typeof value) {
|
|
684
689
|
parentReference = knownServerReferences.get(value);
|
|
685
|
-
if (void 0 !== parentReference)
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
);
|
|
690
|
+
if (void 0 !== parentReference) {
|
|
691
|
+
key = writtenObjects.get(value);
|
|
692
|
+
if (void 0 !== key) return key;
|
|
693
|
+
key = JSON.stringify(parentReference, resolveToJSON);
|
|
694
|
+
null === formData && (formData = new FormData());
|
|
695
|
+
parentReference = nextPartId++;
|
|
696
|
+
formData.set(formFieldPrefix + parentReference, key);
|
|
697
|
+
key = "$h" + parentReference.toString(16);
|
|
698
|
+
writtenObjects.set(value, key);
|
|
699
|
+
return key;
|
|
700
|
+
}
|
|
693
701
|
if (
|
|
694
702
|
void 0 !== temporaryReferences &&
|
|
695
703
|
-1 === key.indexOf(":") &&
|
|
@@ -1112,10 +1120,17 @@
|
|
|
1112
1120
|
value.then(fulfill, reject);
|
|
1113
1121
|
return;
|
|
1114
1122
|
}
|
|
1115
|
-
|
|
1123
|
+
var name = path[i];
|
|
1124
|
+
if (
|
|
1125
|
+
"object" === typeof value &&
|
|
1126
|
+
null !== value &&
|
|
1127
|
+
hasOwnProperty.call(value, name)
|
|
1128
|
+
)
|
|
1129
|
+
value = value[name];
|
|
1130
|
+
else throw Error("Invalid reference.");
|
|
1116
1131
|
}
|
|
1117
1132
|
i = map(response, value, parentObject, key);
|
|
1118
|
-
parentObject[key] = i;
|
|
1133
|
+
"__proto__" !== key && (parentObject[key] = i);
|
|
1119
1134
|
"" === key && null === handler.value && (handler.value = i);
|
|
1120
1135
|
if (
|
|
1121
1136
|
parentObject[0] === REACT_ELEMENT_TYPE &&
|
|
@@ -1208,7 +1223,7 @@
|
|
|
1208
1223
|
boundArgs.unshift(null);
|
|
1209
1224
|
resolvedValue = resolvedValue.bind.apply(resolvedValue, boundArgs);
|
|
1210
1225
|
}
|
|
1211
|
-
parentObject[key] = resolvedValue;
|
|
1226
|
+
"__proto__" !== key && (parentObject[key] = resolvedValue);
|
|
1212
1227
|
"" === key &&
|
|
1213
1228
|
null === handler.value &&
|
|
1214
1229
|
(handler.value = resolvedValue);
|
|
@@ -1466,13 +1481,14 @@
|
|
|
1466
1481
|
}
|
|
1467
1482
|
case "Y":
|
|
1468
1483
|
return (
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1484
|
+
"__proto__" !== key &&
|
|
1485
|
+
Object.defineProperty(parentObject, key, {
|
|
1486
|
+
get: function () {
|
|
1487
|
+
return "This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.";
|
|
1488
|
+
},
|
|
1489
|
+
enumerable: !0,
|
|
1490
|
+
configurable: !1
|
|
1491
|
+
}),
|
|
1476
1492
|
null
|
|
1477
1493
|
);
|
|
1478
1494
|
default:
|
|
@@ -2122,64 +2138,66 @@
|
|
|
2122
2138
|
}
|
|
2123
2139
|
function createFromJSONCallback(response) {
|
|
2124
2140
|
return function (key, value) {
|
|
2125
|
-
if ("
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
if (
|
|
2129
|
-
if (
|
|
2130
|
-
(
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2141
|
+
if ("__proto__" !== key) {
|
|
2142
|
+
if ("string" === typeof value)
|
|
2143
|
+
return parseModelString(response, this, key, value);
|
|
2144
|
+
if ("object" === typeof value && null !== value) {
|
|
2145
|
+
if (value[0] === REACT_ELEMENT_TYPE)
|
|
2146
|
+
if (
|
|
2147
|
+
((key = value[4]),
|
|
2148
|
+
(value = {
|
|
2149
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
2150
|
+
type: value[1],
|
|
2151
|
+
key: value[2],
|
|
2152
|
+
props: value[3],
|
|
2153
|
+
_owner: null === key ? response._debugRootOwner : key
|
|
2154
|
+
}),
|
|
2155
|
+
Object.defineProperty(value, "ref", {
|
|
2156
|
+
enumerable: !1,
|
|
2157
|
+
get: nullRefGetter
|
|
2158
|
+
}),
|
|
2159
|
+
(value._store = {}),
|
|
2160
|
+
Object.defineProperty(value._store, "validated", {
|
|
2161
|
+
configurable: !1,
|
|
2162
|
+
enumerable: !1,
|
|
2163
|
+
writable: !0,
|
|
2164
|
+
value: 1
|
|
2165
|
+
}),
|
|
2166
|
+
Object.defineProperty(value, "_debugInfo", {
|
|
2167
|
+
configurable: !1,
|
|
2168
|
+
enumerable: !1,
|
|
2169
|
+
writable: !0,
|
|
2170
|
+
value: null
|
|
2171
|
+
}),
|
|
2172
|
+
null !== initializingHandler)
|
|
2173
|
+
) {
|
|
2174
|
+
var handler = initializingHandler;
|
|
2175
|
+
initializingHandler = handler.parent;
|
|
2176
|
+
handler.errored
|
|
2177
|
+
? ((key = new ReactPromise(
|
|
2178
|
+
"rejected",
|
|
2179
|
+
null,
|
|
2180
|
+
handler.value,
|
|
2181
|
+
response
|
|
2182
|
+
)),
|
|
2183
|
+
(value = {
|
|
2184
|
+
name: getComponentNameFromType(value.type) || "",
|
|
2185
|
+
owner: value._owner
|
|
2186
|
+
}),
|
|
2187
|
+
(key._debugInfo = [value]),
|
|
2188
|
+
(value = createLazyChunkWrapper(key)))
|
|
2189
|
+
: 0 < handler.deps &&
|
|
2190
|
+
((key = new ReactPromise("blocked", null, null, response)),
|
|
2191
|
+
(handler.value = value),
|
|
2192
|
+
(handler.chunk = key),
|
|
2193
|
+
(value = Object.freeze.bind(Object, value.props)),
|
|
2194
|
+
key.then(value, value),
|
|
2195
|
+
(value = createLazyChunkWrapper(key)));
|
|
2196
|
+
} else Object.freeze(value.props);
|
|
2197
|
+
return value;
|
|
2198
|
+
}
|
|
2180
2199
|
return value;
|
|
2181
2200
|
}
|
|
2182
|
-
return value;
|
|
2183
2201
|
};
|
|
2184
2202
|
}
|
|
2185
2203
|
function createResponseFromOptions(options) {
|
|
@@ -2473,10 +2491,10 @@
|
|
|
2473
2491
|
return hook.checkDCE ? !0 : !1;
|
|
2474
2492
|
})({
|
|
2475
2493
|
bundleType: 1,
|
|
2476
|
-
version: "19.0.
|
|
2494
|
+
version: "19.0.4",
|
|
2477
2495
|
rendererPackageName: "react-server-dom-webpack",
|
|
2478
2496
|
currentDispatcherRef: ReactSharedInternals,
|
|
2479
|
-
reconcilerVersion: "19.0.
|
|
2497
|
+
reconcilerVersion: "19.0.4",
|
|
2480
2498
|
getCurrentComponentInfo: function () {
|
|
2481
2499
|
return currentOwnerInDEV;
|
|
2482
2500
|
}
|
|
@@ -444,14 +444,17 @@ function processReply(
|
|
|
444
444
|
if ("undefined" === typeof value) return "$undefined";
|
|
445
445
|
if ("function" === typeof value) {
|
|
446
446
|
parentReference = knownServerReferences.get(value);
|
|
447
|
-
if (void 0 !== parentReference)
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
);
|
|
447
|
+
if (void 0 !== parentReference) {
|
|
448
|
+
key = writtenObjects.get(value);
|
|
449
|
+
if (void 0 !== key) return key;
|
|
450
|
+
key = JSON.stringify(parentReference, resolveToJSON);
|
|
451
|
+
null === formData && (formData = new FormData());
|
|
452
|
+
parentReference = nextPartId++;
|
|
453
|
+
formData.set(formFieldPrefix + parentReference, key);
|
|
454
|
+
key = "$h" + parentReference.toString(16);
|
|
455
|
+
writtenObjects.set(value, key);
|
|
456
|
+
return key;
|
|
457
|
+
}
|
|
455
458
|
if (
|
|
456
459
|
void 0 !== temporaryReferences &&
|
|
457
460
|
-1 === key.indexOf(":") &&
|
|
@@ -729,10 +732,17 @@ function waitForReference(
|
|
|
729
732
|
value.then(fulfill, reject);
|
|
730
733
|
return;
|
|
731
734
|
}
|
|
732
|
-
|
|
735
|
+
var name = path[i];
|
|
736
|
+
if (
|
|
737
|
+
"object" === typeof value &&
|
|
738
|
+
null !== value &&
|
|
739
|
+
hasOwnProperty.call(value, name)
|
|
740
|
+
)
|
|
741
|
+
value = value[name];
|
|
742
|
+
else throw Error("Invalid reference.");
|
|
733
743
|
}
|
|
734
744
|
i = map(response, value, parentObject, key);
|
|
735
|
-
parentObject[key] = i;
|
|
745
|
+
"__proto__" !== key && (parentObject[key] = i);
|
|
736
746
|
"" === key && null === handler.value && (handler.value = i);
|
|
737
747
|
if (
|
|
738
748
|
parentObject[0] === REACT_ELEMENT_TYPE &&
|
|
@@ -808,7 +818,7 @@ function loadServerReference(response, metaData, parentObject, key) {
|
|
|
808
818
|
boundArgs.unshift(null);
|
|
809
819
|
resolvedValue = resolvedValue.bind.apply(resolvedValue, boundArgs);
|
|
810
820
|
}
|
|
811
|
-
parentObject[key] = resolvedValue;
|
|
821
|
+
"__proto__" !== key && (parentObject[key] = resolvedValue);
|
|
812
822
|
"" === key && null === handler.value && (handler.value = resolvedValue);
|
|
813
823
|
if (
|
|
814
824
|
parentObject[0] === REACT_ELEMENT_TYPE &&
|
|
@@ -1123,8 +1133,8 @@ function startReadableStream(response, id, type) {
|
|
|
1123
1133
|
(previousBlockedChunk = chunk));
|
|
1124
1134
|
} else {
|
|
1125
1135
|
chunk = previousBlockedChunk;
|
|
1126
|
-
var chunk$
|
|
1127
|
-
chunk$
|
|
1136
|
+
var chunk$53 = createPendingChunk(response);
|
|
1137
|
+
chunk$53.then(
|
|
1128
1138
|
function (v) {
|
|
1129
1139
|
return controller.enqueue(v);
|
|
1130
1140
|
},
|
|
@@ -1132,10 +1142,10 @@ function startReadableStream(response, id, type) {
|
|
|
1132
1142
|
return controller.error(e);
|
|
1133
1143
|
}
|
|
1134
1144
|
);
|
|
1135
|
-
previousBlockedChunk = chunk$
|
|
1145
|
+
previousBlockedChunk = chunk$53;
|
|
1136
1146
|
chunk.then(function () {
|
|
1137
|
-
previousBlockedChunk === chunk$
|
|
1138
|
-
resolveModelChunk(chunk$
|
|
1147
|
+
previousBlockedChunk === chunk$53 && (previousBlockedChunk = null);
|
|
1148
|
+
resolveModelChunk(chunk$53, json);
|
|
1139
1149
|
});
|
|
1140
1150
|
}
|
|
1141
1151
|
},
|
|
@@ -1270,8 +1280,8 @@ function mergeBuffer(buffer, lastChunk) {
|
|
|
1270
1280
|
for (var l = buffer.length, byteLength = lastChunk.length, i = 0; i < l; i++)
|
|
1271
1281
|
byteLength += buffer[i].byteLength;
|
|
1272
1282
|
byteLength = new Uint8Array(byteLength);
|
|
1273
|
-
for (var i$
|
|
1274
|
-
var chunk = buffer[i$
|
|
1283
|
+
for (var i$54 = (i = 0); i$54 < l; i$54++) {
|
|
1284
|
+
var chunk = buffer[i$54];
|
|
1275
1285
|
byteLength.set(chunk, i);
|
|
1276
1286
|
i += chunk.byteLength;
|
|
1277
1287
|
}
|
|
@@ -1449,42 +1459,44 @@ function processFullBinaryRow(response, id, tag, buffer, chunk) {
|
|
|
1449
1459
|
}
|
|
1450
1460
|
function createFromJSONCallback(response) {
|
|
1451
1461
|
return function (key, value) {
|
|
1452
|
-
if ("
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
if (
|
|
1456
|
-
if (
|
|
1457
|
-
((key = {
|
|
1458
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
1459
|
-
type: value[1],
|
|
1460
|
-
key: value[2],
|
|
1461
|
-
ref: null,
|
|
1462
|
-
props: value[3]
|
|
1463
|
-
}),
|
|
1464
|
-
null !== initializingHandler)
|
|
1465
|
-
)
|
|
1462
|
+
if ("__proto__" !== key) {
|
|
1463
|
+
if ("string" === typeof value)
|
|
1464
|
+
return parseModelString(response, this, key, value);
|
|
1465
|
+
if ("object" === typeof value && null !== value) {
|
|
1466
|
+
if (value[0] === REACT_ELEMENT_TYPE) {
|
|
1466
1467
|
if (
|
|
1467
|
-
((
|
|
1468
|
-
|
|
1469
|
-
|
|
1468
|
+
((key = {
|
|
1469
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
1470
|
+
type: value[1],
|
|
1471
|
+
key: value[2],
|
|
1472
|
+
ref: null,
|
|
1473
|
+
props: value[3]
|
|
1474
|
+
}),
|
|
1475
|
+
null !== initializingHandler)
|
|
1470
1476
|
)
|
|
1471
|
-
|
|
1472
|
-
(
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
null,
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1477
|
+
if (
|
|
1478
|
+
((value = initializingHandler),
|
|
1479
|
+
(initializingHandler = value.parent),
|
|
1480
|
+
value.errored)
|
|
1481
|
+
)
|
|
1482
|
+
(key = new ReactPromise("rejected", null, value.value, response)),
|
|
1483
|
+
(key = createLazyChunkWrapper(key));
|
|
1484
|
+
else if (0 < value.deps) {
|
|
1485
|
+
var blockedChunk = new ReactPromise(
|
|
1486
|
+
"blocked",
|
|
1487
|
+
null,
|
|
1488
|
+
null,
|
|
1489
|
+
response
|
|
1490
|
+
);
|
|
1491
|
+
value.value = key;
|
|
1492
|
+
value.chunk = blockedChunk;
|
|
1493
|
+
key = createLazyChunkWrapper(blockedChunk);
|
|
1494
|
+
}
|
|
1495
|
+
} else key = value;
|
|
1496
|
+
return key;
|
|
1497
|
+
}
|
|
1498
|
+
return value;
|
|
1486
1499
|
}
|
|
1487
|
-
return value;
|
|
1488
1500
|
};
|
|
1489
1501
|
}
|
|
1490
1502
|
function createResponseFromOptions(options) {
|
|
@@ -459,6 +459,11 @@
|
|
|
459
459
|
return "$" + (iterable ? "x" : "X") + streamId.toString(16);
|
|
460
460
|
}
|
|
461
461
|
function resolveToJSON(key, value) {
|
|
462
|
+
"__proto__" === key &&
|
|
463
|
+
console.error(
|
|
464
|
+
"Expected not to serialize an object with own property `__proto__`. When parsed this property will be omitted.%s",
|
|
465
|
+
describeObjectForErrorMessage(this, key)
|
|
466
|
+
);
|
|
462
467
|
var originalValue = this[key];
|
|
463
468
|
"object" !== typeof originalValue ||
|
|
464
469
|
originalValue === value ||
|
|
@@ -703,14 +708,17 @@
|
|
|
703
708
|
if ("undefined" === typeof value) return "$undefined";
|
|
704
709
|
if ("function" === typeof value) {
|
|
705
710
|
parentReference = knownServerReferences.get(value);
|
|
706
|
-
if (void 0 !== parentReference)
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
);
|
|
711
|
+
if (void 0 !== parentReference) {
|
|
712
|
+
key = writtenObjects.get(value);
|
|
713
|
+
if (void 0 !== key) return key;
|
|
714
|
+
key = JSON.stringify(parentReference, resolveToJSON);
|
|
715
|
+
null === formData && (formData = new FormData());
|
|
716
|
+
parentReference = nextPartId++;
|
|
717
|
+
formData.set(formFieldPrefix + parentReference, key);
|
|
718
|
+
key = "$h" + parentReference.toString(16);
|
|
719
|
+
writtenObjects.set(value, key);
|
|
720
|
+
return key;
|
|
721
|
+
}
|
|
714
722
|
if (
|
|
715
723
|
void 0 !== temporaryReferences &&
|
|
716
724
|
-1 === key.indexOf(":") &&
|
|
@@ -1316,10 +1324,17 @@
|
|
|
1316
1324
|
value.then(fulfill, reject);
|
|
1317
1325
|
return;
|
|
1318
1326
|
}
|
|
1319
|
-
|
|
1327
|
+
var name = path[i];
|
|
1328
|
+
if (
|
|
1329
|
+
"object" === typeof value &&
|
|
1330
|
+
null !== value &&
|
|
1331
|
+
hasOwnProperty.call(value, name)
|
|
1332
|
+
)
|
|
1333
|
+
value = value[name];
|
|
1334
|
+
else throw Error("Invalid reference.");
|
|
1320
1335
|
}
|
|
1321
1336
|
i = map(response, value, parentObject, key);
|
|
1322
|
-
parentObject[key] = i;
|
|
1337
|
+
"__proto__" !== key && (parentObject[key] = i);
|
|
1323
1338
|
"" === key && null === handler.value && (handler.value = i);
|
|
1324
1339
|
if (
|
|
1325
1340
|
parentObject[0] === REACT_ELEMENT_TYPE &&
|
|
@@ -1412,7 +1427,7 @@
|
|
|
1412
1427
|
boundArgs.unshift(null);
|
|
1413
1428
|
resolvedValue = resolvedValue.bind.apply(resolvedValue, boundArgs);
|
|
1414
1429
|
}
|
|
1415
|
-
parentObject[key] = resolvedValue;
|
|
1430
|
+
"__proto__" !== key && (parentObject[key] = resolvedValue);
|
|
1416
1431
|
"" === key &&
|
|
1417
1432
|
null === handler.value &&
|
|
1418
1433
|
(handler.value = resolvedValue);
|
|
@@ -1670,13 +1685,14 @@
|
|
|
1670
1685
|
}
|
|
1671
1686
|
case "Y":
|
|
1672
1687
|
return (
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1688
|
+
"__proto__" !== key &&
|
|
1689
|
+
Object.defineProperty(parentObject, key, {
|
|
1690
|
+
get: function () {
|
|
1691
|
+
return "This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.";
|
|
1692
|
+
},
|
|
1693
|
+
enumerable: !0,
|
|
1694
|
+
configurable: !1
|
|
1695
|
+
}),
|
|
1680
1696
|
null
|
|
1681
1697
|
);
|
|
1682
1698
|
default:
|
|
@@ -2331,64 +2347,66 @@
|
|
|
2331
2347
|
}
|
|
2332
2348
|
function createFromJSONCallback(response) {
|
|
2333
2349
|
return function (key, value) {
|
|
2334
|
-
if ("
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
if (
|
|
2338
|
-
if (
|
|
2339
|
-
(
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2350
|
+
if ("__proto__" !== key) {
|
|
2351
|
+
if ("string" === typeof value)
|
|
2352
|
+
return parseModelString(response, this, key, value);
|
|
2353
|
+
if ("object" === typeof value && null !== value) {
|
|
2354
|
+
if (value[0] === REACT_ELEMENT_TYPE)
|
|
2355
|
+
if (
|
|
2356
|
+
((key = value[4]),
|
|
2357
|
+
(value = {
|
|
2358
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
2359
|
+
type: value[1],
|
|
2360
|
+
key: value[2],
|
|
2361
|
+
props: value[3],
|
|
2362
|
+
_owner: null === key ? response._debugRootOwner : key
|
|
2363
|
+
}),
|
|
2364
|
+
Object.defineProperty(value, "ref", {
|
|
2365
|
+
enumerable: !1,
|
|
2366
|
+
get: nullRefGetter
|
|
2367
|
+
}),
|
|
2368
|
+
(value._store = {}),
|
|
2369
|
+
Object.defineProperty(value._store, "validated", {
|
|
2370
|
+
configurable: !1,
|
|
2371
|
+
enumerable: !1,
|
|
2372
|
+
writable: !0,
|
|
2373
|
+
value: 1
|
|
2374
|
+
}),
|
|
2375
|
+
Object.defineProperty(value, "_debugInfo", {
|
|
2376
|
+
configurable: !1,
|
|
2377
|
+
enumerable: !1,
|
|
2378
|
+
writable: !0,
|
|
2379
|
+
value: null
|
|
2380
|
+
}),
|
|
2381
|
+
null !== initializingHandler)
|
|
2382
|
+
) {
|
|
2383
|
+
var handler = initializingHandler;
|
|
2384
|
+
initializingHandler = handler.parent;
|
|
2385
|
+
handler.errored
|
|
2386
|
+
? ((key = new ReactPromise(
|
|
2387
|
+
"rejected",
|
|
2388
|
+
null,
|
|
2389
|
+
handler.value,
|
|
2390
|
+
response
|
|
2391
|
+
)),
|
|
2392
|
+
(value = {
|
|
2393
|
+
name: getComponentNameFromType(value.type) || "",
|
|
2394
|
+
owner: value._owner
|
|
2395
|
+
}),
|
|
2396
|
+
(key._debugInfo = [value]),
|
|
2397
|
+
(value = createLazyChunkWrapper(key)))
|
|
2398
|
+
: 0 < handler.deps &&
|
|
2399
|
+
((key = new ReactPromise("blocked", null, null, response)),
|
|
2400
|
+
(handler.value = value),
|
|
2401
|
+
(handler.chunk = key),
|
|
2402
|
+
(value = Object.freeze.bind(Object, value.props)),
|
|
2403
|
+
key.then(value, value),
|
|
2404
|
+
(value = createLazyChunkWrapper(key)));
|
|
2405
|
+
} else Object.freeze(value.props);
|
|
2406
|
+
return value;
|
|
2407
|
+
}
|
|
2389
2408
|
return value;
|
|
2390
2409
|
}
|
|
2391
|
-
return value;
|
|
2392
2410
|
};
|
|
2393
2411
|
}
|
|
2394
2412
|
function noServerCall() {
|