claude-threads 1.8.2 → 1.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/README.md +2 -3
- package/dist/index.js +812 -793
- package/dist/mcp/permission-server.js +14 -23
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -5,43 +5,25 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
6
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
function __accessProp(key) {
|
|
9
|
-
return this[key];
|
|
10
|
-
}
|
|
11
|
-
var __toESMCache_node;
|
|
12
|
-
var __toESMCache_esm;
|
|
13
8
|
var __toESM = (mod, isNodeMode, target) => {
|
|
14
|
-
var canCache = mod != null && typeof mod === "object";
|
|
15
|
-
if (canCache) {
|
|
16
|
-
var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
|
|
17
|
-
var cached = cache.get(mod);
|
|
18
|
-
if (cached)
|
|
19
|
-
return cached;
|
|
20
|
-
}
|
|
21
9
|
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
22
10
|
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
23
11
|
for (let key of __getOwnPropNames(mod))
|
|
24
12
|
if (!__hasOwnProp.call(to, key))
|
|
25
13
|
__defProp(to, key, {
|
|
26
|
-
get:
|
|
14
|
+
get: () => mod[key],
|
|
27
15
|
enumerable: true
|
|
28
16
|
});
|
|
29
|
-
if (canCache)
|
|
30
|
-
cache.set(mod, to);
|
|
31
17
|
return to;
|
|
32
18
|
};
|
|
33
19
|
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
34
|
-
var __returnValue = (v) => v;
|
|
35
|
-
function __exportSetter(name, newValue) {
|
|
36
|
-
this[name] = __returnValue.bind(null, newValue);
|
|
37
|
-
}
|
|
38
20
|
var __export = (target, all) => {
|
|
39
21
|
for (var name in all)
|
|
40
22
|
__defProp(target, name, {
|
|
41
23
|
get: all[name],
|
|
42
24
|
enumerable: true,
|
|
43
25
|
configurable: true,
|
|
44
|
-
set:
|
|
26
|
+
set: (newValue) => all[name] = () => newValue
|
|
45
27
|
});
|
|
46
28
|
};
|
|
47
29
|
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
@@ -2364,7 +2346,7 @@ var require_clear = __commonJS((exports, module) => {
|
|
|
2364
2346
|
if (it)
|
|
2365
2347
|
o = it;
|
|
2366
2348
|
var i2 = 0;
|
|
2367
|
-
var F = function
|
|
2349
|
+
var F = function F() {};
|
|
2368
2350
|
return { s: F, n: function n() {
|
|
2369
2351
|
if (i2 >= o.length)
|
|
2370
2352
|
return { done: true };
|
|
@@ -4696,7 +4678,7 @@ var require_dist = __commonJS((exports, module) => {
|
|
|
4696
4678
|
if (it)
|
|
4697
4679
|
o = it;
|
|
4698
4680
|
var i2 = 0;
|
|
4699
|
-
var F = function
|
|
4681
|
+
var F = function F() {};
|
|
4700
4682
|
return { s: F, n: function n() {
|
|
4701
4683
|
if (i2 >= o.length)
|
|
4702
4684
|
return { done: true };
|
|
@@ -4799,7 +4781,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4799
4781
|
}
|
|
4800
4782
|
return question2.format ? yield question2.format(answer2, answers) : answer2;
|
|
4801
4783
|
});
|
|
4802
|
-
return function
|
|
4784
|
+
return function getFormattedAnswer(_x, _x2) {
|
|
4803
4785
|
return _ref.apply(this, arguments);
|
|
4804
4786
|
};
|
|
4805
4787
|
}();
|
|
@@ -14208,9 +14190,9 @@ GFS4: `);
|
|
|
14208
14190
|
function readdir2(path2, options2, cb) {
|
|
14209
14191
|
if (typeof options2 === "function")
|
|
14210
14192
|
cb = options2, options2 = null;
|
|
14211
|
-
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$
|
|
14193
|
+
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir(path3, options3, cb2, startTime) {
|
|
14212
14194
|
return fs$readdir(path3, fs$readdirCallback(path3, options3, cb2, startTime));
|
|
14213
|
-
} : function go$
|
|
14195
|
+
} : function go$readdir(path3, options3, cb2, startTime) {
|
|
14214
14196
|
return fs$readdir(path3, options3, fs$readdirCallback(path3, options3, cb2, startTime));
|
|
14215
14197
|
};
|
|
14216
14198
|
return go$readdir(path2, options2, cb);
|
|
@@ -15661,9 +15643,9 @@ GFS4: `);
|
|
|
15661
15643
|
function readdir2(path6, options2, cb) {
|
|
15662
15644
|
if (typeof options2 === "function")
|
|
15663
15645
|
cb = options2, options2 = null;
|
|
15664
|
-
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$
|
|
15646
|
+
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir(path7, options3, cb2, startTime) {
|
|
15665
15647
|
return fs$readdir(path7, fs$readdirCallback(path7, options3, cb2, startTime));
|
|
15666
|
-
} : function go$
|
|
15648
|
+
} : function go$readdir(path7, options3, cb2, startTime) {
|
|
15667
15649
|
return fs$readdir(path7, options3, fs$readdirCallback(path7, options3, cb2, startTime));
|
|
15668
15650
|
};
|
|
15669
15651
|
return go$readdir(path6, options2, cb);
|
|
@@ -18545,16 +18527,16 @@ var require_signal_exit = __commonJS((exports, module) => {
|
|
|
18545
18527
|
if (opts && opts.alwaysLast) {
|
|
18546
18528
|
ev = "afterexit";
|
|
18547
18529
|
}
|
|
18548
|
-
var
|
|
18530
|
+
var remove = function() {
|
|
18549
18531
|
emitter.removeListener(ev, cb);
|
|
18550
18532
|
if (emitter.listeners("exit").length === 0 && emitter.listeners("afterexit").length === 0) {
|
|
18551
18533
|
unload();
|
|
18552
18534
|
}
|
|
18553
18535
|
};
|
|
18554
18536
|
emitter.on(ev, cb);
|
|
18555
|
-
return
|
|
18537
|
+
return remove;
|
|
18556
18538
|
};
|
|
18557
|
-
unload = function
|
|
18539
|
+
unload = function unload() {
|
|
18558
18540
|
if (!loaded || !processOk(global.process)) {
|
|
18559
18541
|
return;
|
|
18560
18542
|
}
|
|
@@ -18569,7 +18551,7 @@ var require_signal_exit = __commonJS((exports, module) => {
|
|
|
18569
18551
|
emitter.count -= 1;
|
|
18570
18552
|
};
|
|
18571
18553
|
module.exports.unload = unload;
|
|
18572
|
-
emit = function
|
|
18554
|
+
emit = function emit(event, code, signal) {
|
|
18573
18555
|
if (emitter.emitted[event]) {
|
|
18574
18556
|
return;
|
|
18575
18557
|
}
|
|
@@ -18598,7 +18580,7 @@ var require_signal_exit = __commonJS((exports, module) => {
|
|
|
18598
18580
|
return signals;
|
|
18599
18581
|
};
|
|
18600
18582
|
loaded = false;
|
|
18601
|
-
load2 = function
|
|
18583
|
+
load2 = function load() {
|
|
18602
18584
|
if (loaded || !processOk(global.process)) {
|
|
18603
18585
|
return;
|
|
18604
18586
|
}
|
|
@@ -18617,7 +18599,7 @@ var require_signal_exit = __commonJS((exports, module) => {
|
|
|
18617
18599
|
};
|
|
18618
18600
|
module.exports.load = load2;
|
|
18619
18601
|
originalProcessReallyExit = process12.reallyExit;
|
|
18620
|
-
processReallyExit = function
|
|
18602
|
+
processReallyExit = function processReallyExit(code) {
|
|
18621
18603
|
if (!processOk(global.process)) {
|
|
18622
18604
|
return;
|
|
18623
18605
|
}
|
|
@@ -18627,7 +18609,7 @@ var require_signal_exit = __commonJS((exports, module) => {
|
|
|
18627
18609
|
originalProcessReallyExit.call(process12, process12.exitCode);
|
|
18628
18610
|
};
|
|
18629
18611
|
originalProcessEmit = process12.emit;
|
|
18630
|
-
processEmit = function
|
|
18612
|
+
processEmit = function processEmit(ev, arg) {
|
|
18631
18613
|
if (ev === "exit" && processOk(global.process)) {
|
|
18632
18614
|
if (arg !== undefined) {
|
|
18633
18615
|
process12.exitCode = arg;
|
|
@@ -18743,16 +18725,16 @@ var require_scheduler_development = __commonJS((exports) => {
|
|
|
18743
18725
|
function pop(heap) {
|
|
18744
18726
|
if (heap.length === 0)
|
|
18745
18727
|
return null;
|
|
18746
|
-
var first = heap[0],
|
|
18747
|
-
if (
|
|
18748
|
-
heap[0] =
|
|
18728
|
+
var first = heap[0], last = heap.pop();
|
|
18729
|
+
if (last !== first) {
|
|
18730
|
+
heap[0] = last;
|
|
18749
18731
|
a:
|
|
18750
18732
|
for (var index = 0, length = heap.length, halfLength = length >>> 1;index < halfLength; ) {
|
|
18751
18733
|
var leftIndex = 2 * (index + 1) - 1, left = heap[leftIndex], rightIndex = leftIndex + 1, right = heap[rightIndex];
|
|
18752
|
-
if (0 > compare(left,
|
|
18753
|
-
rightIndex < length && 0 > compare(right, left) ? (heap[index] = right, heap[rightIndex] =
|
|
18754
|
-
else if (rightIndex < length && 0 > compare(right,
|
|
18755
|
-
heap[index] = right, heap[rightIndex] =
|
|
18734
|
+
if (0 > compare(left, last))
|
|
18735
|
+
rightIndex < length && 0 > compare(right, left) ? (heap[index] = right, heap[rightIndex] = last, index = rightIndex) : (heap[index] = left, heap[leftIndex] = last, index = leftIndex);
|
|
18736
|
+
else if (rightIndex < length && 0 > compare(right, last))
|
|
18737
|
+
heap[index] = right, heap[rightIndex] = last, index = rightIndex;
|
|
18756
18738
|
else
|
|
18757
18739
|
break a;
|
|
18758
18740
|
}
|
|
@@ -18945,7 +18927,7 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
18945
18927
|
function copyWithSetImpl(obj, path10, index, value) {
|
|
18946
18928
|
if (index >= path10.length)
|
|
18947
18929
|
return value;
|
|
18948
|
-
var key = path10[index], updated = isArrayImpl(obj) ? obj.slice() :
|
|
18930
|
+
var key = path10[index], updated = isArrayImpl(obj) ? obj.slice() : assign({}, obj);
|
|
18949
18931
|
updated[key] = copyWithSetImpl(obj[key], path10, index + 1, value);
|
|
18950
18932
|
return updated;
|
|
18951
18933
|
}
|
|
@@ -18962,12 +18944,12 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
18962
18944
|
}
|
|
18963
18945
|
}
|
|
18964
18946
|
function copyWithRenameImpl(obj, oldPath, newPath, index) {
|
|
18965
|
-
var oldKey = oldPath[index], updated = isArrayImpl(obj) ? obj.slice() :
|
|
18947
|
+
var oldKey = oldPath[index], updated = isArrayImpl(obj) ? obj.slice() : assign({}, obj);
|
|
18966
18948
|
index + 1 === oldPath.length ? (updated[newPath[index]] = updated[oldKey], isArrayImpl(updated) ? updated.splice(oldKey, 1) : delete updated[oldKey]) : updated[oldKey] = copyWithRenameImpl(obj[oldKey], oldPath, newPath, index + 1);
|
|
18967
18949
|
return updated;
|
|
18968
18950
|
}
|
|
18969
18951
|
function copyWithDeleteImpl(obj, path10, index) {
|
|
18970
|
-
var key = path10[index], updated = isArrayImpl(obj) ? obj.slice() :
|
|
18952
|
+
var key = path10[index], updated = isArrayImpl(obj) ? obj.slice() : assign({}, obj);
|
|
18971
18953
|
if (index + 1 === path10.length)
|
|
18972
18954
|
return isArrayImpl(updated) ? updated.splice(key, 1) : delete updated[key], updated;
|
|
18973
18955
|
updated[key] = copyWithDeleteImpl(obj[key], path10, index + 1);
|
|
@@ -18985,12 +18967,12 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
18985
18967
|
function scheduleRoot(root, element) {
|
|
18986
18968
|
root.context === emptyContextObject && (updateContainerSync(element, root, null, null), flushSyncWork());
|
|
18987
18969
|
}
|
|
18988
|
-
function scheduleRefresh(root,
|
|
18970
|
+
function scheduleRefresh(root, update) {
|
|
18989
18971
|
if (resolveFamily !== null) {
|
|
18990
|
-
var staleFamilies =
|
|
18991
|
-
|
|
18972
|
+
var staleFamilies = update.staleFamilies;
|
|
18973
|
+
update = update.updatedFamilies;
|
|
18992
18974
|
flushPendingEffects();
|
|
18993
|
-
scheduleFibersWithFamiliesRecursively(root.current,
|
|
18975
|
+
scheduleFibersWithFamiliesRecursively(root.current, update, staleFamilies);
|
|
18994
18976
|
flushSyncWork();
|
|
18995
18977
|
}
|
|
18996
18978
|
}
|
|
@@ -19003,11 +18985,11 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
19003
18985
|
function warnInvalidContextAccess() {
|
|
19004
18986
|
console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");
|
|
19005
18987
|
}
|
|
19006
|
-
function
|
|
18988
|
+
function noop() {}
|
|
19007
18989
|
function warnForMissingKey() {}
|
|
19008
|
-
function setToSortedString(
|
|
18990
|
+
function setToSortedString(set2) {
|
|
19009
18991
|
var array = [];
|
|
19010
|
-
|
|
18992
|
+
set2.forEach(function(value) {
|
|
19011
18993
|
array.push(value);
|
|
19012
18994
|
});
|
|
19013
18995
|
return array.sort().join(", ");
|
|
@@ -19379,9 +19361,9 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
19379
19361
|
(nextRetryLane & 62914560) === 0 && (nextRetryLane = 4194304);
|
|
19380
19362
|
return lane;
|
|
19381
19363
|
}
|
|
19382
|
-
function createLaneMap(
|
|
19364
|
+
function createLaneMap(initial) {
|
|
19383
19365
|
for (var laneMap = [], i2 = 0;31 > i2; i2++)
|
|
19384
|
-
laneMap.push(
|
|
19366
|
+
laneMap.push(initial);
|
|
19385
19367
|
return laneMap;
|
|
19386
19368
|
}
|
|
19387
19369
|
function markRootUpdated$1(root, updateLane) {
|
|
@@ -19406,8 +19388,8 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
19406
19388
|
var hiddenUpdatesForLane = hiddenUpdates[index];
|
|
19407
19389
|
if (hiddenUpdatesForLane !== null)
|
|
19408
19390
|
for (hiddenUpdates[index] = null, index = 0;index < hiddenUpdatesForLane.length; index++) {
|
|
19409
|
-
var
|
|
19410
|
-
|
|
19391
|
+
var update = hiddenUpdatesForLane[index];
|
|
19392
|
+
update !== null && (update.lane &= -536870913);
|
|
19411
19393
|
}
|
|
19412
19394
|
remainingLanes &= ~lane;
|
|
19413
19395
|
}
|
|
@@ -19892,13 +19874,13 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
19892
19874
|
if (disabledDepth === 0) {
|
|
19893
19875
|
var props = { configurable: true, enumerable: true, writable: true };
|
|
19894
19876
|
Object.defineProperties(console, {
|
|
19895
|
-
log:
|
|
19896
|
-
info:
|
|
19897
|
-
warn:
|
|
19898
|
-
error:
|
|
19899
|
-
group:
|
|
19900
|
-
groupCollapsed:
|
|
19901
|
-
groupEnd:
|
|
19877
|
+
log: assign({}, props, { value: prevLog }),
|
|
19878
|
+
info: assign({}, props, { value: prevInfo }),
|
|
19879
|
+
warn: assign({}, props, { value: prevWarn }),
|
|
19880
|
+
error: assign({}, props, { value: prevError }),
|
|
19881
|
+
group: assign({}, props, { value: prevGroup }),
|
|
19882
|
+
groupCollapsed: assign({}, props, { value: prevGroupCollapsed }),
|
|
19883
|
+
groupEnd: assign({}, props, { value: prevGroupEnd })
|
|
19902
19884
|
});
|
|
19903
19885
|
}
|
|
19904
19886
|
0 > disabledDepth && console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
@@ -19984,9 +19966,9 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
19984
19966
|
}
|
|
19985
19967
|
(Fake = fn()) && typeof Fake.catch === "function" && Fake.catch(function() {});
|
|
19986
19968
|
}
|
|
19987
|
-
} catch (
|
|
19988
|
-
if (
|
|
19989
|
-
return [
|
|
19969
|
+
} catch (sample) {
|
|
19970
|
+
if (sample && control && typeof sample.stack === "string")
|
|
19971
|
+
return [sample.stack, control.stack];
|
|
19990
19972
|
}
|
|
19991
19973
|
return [null, null];
|
|
19992
19974
|
}
|
|
@@ -20315,7 +20297,7 @@ Error generating stack: ` + x.message + `
|
|
|
20315
20297
|
`;
|
|
20316
20298
|
}
|
|
20317
20299
|
function describePropertiesDiff(clientObject, serverObject, indent) {
|
|
20318
|
-
var properties = "", remainingServerProperties =
|
|
20300
|
+
var properties = "", remainingServerProperties = assign({}, serverObject), propName;
|
|
20319
20301
|
for (propName in clientObject)
|
|
20320
20302
|
if (clientObject.hasOwnProperty(propName)) {
|
|
20321
20303
|
delete remainingServerProperties[propName];
|
|
@@ -20817,21 +20799,21 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
20817
20799
|
cache.controller.abort();
|
|
20818
20800
|
});
|
|
20819
20801
|
}
|
|
20820
|
-
function startUpdateTimerByLane(lane,
|
|
20802
|
+
function startUpdateTimerByLane(lane, method, fiber) {
|
|
20821
20803
|
if ((lane & 127) !== 0)
|
|
20822
|
-
0 > blockingUpdateTime && (blockingUpdateTime =
|
|
20823
|
-
else if ((lane & 4194048) !== 0 && 0 > transitionUpdateTime && (transitionUpdateTime =
|
|
20804
|
+
0 > blockingUpdateTime && (blockingUpdateTime = now(), blockingUpdateTask = createTask(method), blockingUpdateMethodName = method, fiber != null && (blockingUpdateComponentName = getComponentNameFromFiber(fiber)), isAlreadyRendering() && (componentEffectSpawnedUpdate = true, blockingUpdateType = 1), lane = resolveEventTimeStamp(), method = resolveEventType(), lane !== blockingEventRepeatTime || method !== blockingEventType ? blockingEventRepeatTime = -1.1 : method !== null && (blockingUpdateType = 1), blockingEventTime = lane, blockingEventType = method);
|
|
20805
|
+
else if ((lane & 4194048) !== 0 && 0 > transitionUpdateTime && (transitionUpdateTime = now(), transitionUpdateTask = createTask(method), transitionUpdateMethodName = method, fiber != null && (transitionUpdateComponentName = getComponentNameFromFiber(fiber)), 0 > transitionStartTime)) {
|
|
20824
20806
|
lane = resolveEventTimeStamp();
|
|
20825
|
-
|
|
20826
|
-
if (lane !== transitionEventRepeatTime ||
|
|
20807
|
+
method = resolveEventType();
|
|
20808
|
+
if (lane !== transitionEventRepeatTime || method !== transitionEventType)
|
|
20827
20809
|
transitionEventRepeatTime = -1.1;
|
|
20828
20810
|
transitionEventTime = lane;
|
|
20829
|
-
transitionEventType =
|
|
20811
|
+
transitionEventType = method;
|
|
20830
20812
|
}
|
|
20831
20813
|
}
|
|
20832
20814
|
function startHostActionTimer(fiber) {
|
|
20833
20815
|
if (0 > blockingUpdateTime) {
|
|
20834
|
-
blockingUpdateTime =
|
|
20816
|
+
blockingUpdateTime = now();
|
|
20835
20817
|
blockingUpdateTask = fiber._debugTask != null ? fiber._debugTask : null;
|
|
20836
20818
|
isAlreadyRendering() && (blockingUpdateType = 1);
|
|
20837
20819
|
var newEventTime = resolveEventTimeStamp(), newEventType = resolveEventType();
|
|
@@ -20839,7 +20821,7 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
20839
20821
|
blockingEventTime = newEventTime;
|
|
20840
20822
|
blockingEventType = newEventType;
|
|
20841
20823
|
}
|
|
20842
|
-
if (0 > transitionUpdateTime && (transitionUpdateTime =
|
|
20824
|
+
if (0 > transitionUpdateTime && (transitionUpdateTime = now(), transitionUpdateTask = fiber._debugTask != null ? fiber._debugTask : null, 0 > transitionStartTime)) {
|
|
20843
20825
|
fiber = resolveEventTimeStamp();
|
|
20844
20826
|
newEventTime = resolveEventType();
|
|
20845
20827
|
if (fiber !== transitionEventRepeatTime || newEventTime !== transitionEventType)
|
|
@@ -20893,12 +20875,12 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
20893
20875
|
return prev;
|
|
20894
20876
|
}
|
|
20895
20877
|
function startProfilerTimer(fiber) {
|
|
20896
|
-
profilerStartTime =
|
|
20878
|
+
profilerStartTime = now();
|
|
20897
20879
|
0 > fiber.actualStartTime && (fiber.actualStartTime = profilerStartTime);
|
|
20898
20880
|
}
|
|
20899
20881
|
function stopProfilerTimerIfRunningAndRecordDuration(fiber) {
|
|
20900
20882
|
if (0 <= profilerStartTime) {
|
|
20901
|
-
var elapsedTime =
|
|
20883
|
+
var elapsedTime = now() - profilerStartTime;
|
|
20902
20884
|
fiber.actualDuration += elapsedTime;
|
|
20903
20885
|
fiber.selfBaseDuration = elapsedTime;
|
|
20904
20886
|
profilerStartTime = -1;
|
|
@@ -20906,14 +20888,14 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
20906
20888
|
}
|
|
20907
20889
|
function stopProfilerTimerIfRunningAndRecordIncompleteDuration(fiber) {
|
|
20908
20890
|
if (0 <= profilerStartTime) {
|
|
20909
|
-
var elapsedTime =
|
|
20891
|
+
var elapsedTime = now() - profilerStartTime;
|
|
20910
20892
|
fiber.actualDuration += elapsedTime;
|
|
20911
20893
|
profilerStartTime = -1;
|
|
20912
20894
|
}
|
|
20913
20895
|
}
|
|
20914
20896
|
function recordEffectDuration() {
|
|
20915
20897
|
if (0 <= profilerStartTime) {
|
|
20916
|
-
var endTime =
|
|
20898
|
+
var endTime = now(), elapsedTime = endTime - profilerStartTime;
|
|
20917
20899
|
profilerStartTime = -1;
|
|
20918
20900
|
profilerEffectDuration += elapsedTime;
|
|
20919
20901
|
componentEffectDuration += elapsedTime;
|
|
@@ -20927,7 +20909,7 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
20927
20909
|
commitErrors.push(errorInfo);
|
|
20928
20910
|
}
|
|
20929
20911
|
function startEffectTimer() {
|
|
20930
|
-
profilerStartTime =
|
|
20912
|
+
profilerStartTime = now();
|
|
20931
20913
|
0 > componentEffectStartTime && (componentEffectStartTime = profilerStartTime);
|
|
20932
20914
|
}
|
|
20933
20915
|
function transferActualDuration(fiber) {
|
|
@@ -21104,7 +21086,7 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
21104
21086
|
(0, listeners[i2])();
|
|
21105
21087
|
}
|
|
21106
21088
|
}
|
|
21107
|
-
function chainThenableValue(thenable,
|
|
21089
|
+
function chainThenableValue(thenable, result) {
|
|
21108
21090
|
var listeners = [], thenableWithOverride = {
|
|
21109
21091
|
status: "pending",
|
|
21110
21092
|
value: null,
|
|
@@ -21115,9 +21097,9 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
21115
21097
|
};
|
|
21116
21098
|
thenable.then(function() {
|
|
21117
21099
|
thenableWithOverride.status = "fulfilled";
|
|
21118
|
-
thenableWithOverride.value =
|
|
21100
|
+
thenableWithOverride.value = result;
|
|
21119
21101
|
for (var i2 = 0;i2 < listeners.length; i2++)
|
|
21120
|
-
(0, listeners[i2])(
|
|
21102
|
+
(0, listeners[i2])(result);
|
|
21121
21103
|
}, function(error) {
|
|
21122
21104
|
thenableWithOverride.status = "rejected";
|
|
21123
21105
|
thenableWithOverride.reason = error;
|
|
@@ -21259,8 +21241,8 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
21259
21241
|
return null;
|
|
21260
21242
|
}
|
|
21261
21243
|
function validateFragmentProps(element, fiber, returnFiber) {
|
|
21262
|
-
for (var
|
|
21263
|
-
var key =
|
|
21244
|
+
for (var keys = Object.keys(element.props), i2 = 0;i2 < keys.length; i2++) {
|
|
21245
|
+
var key = keys[i2];
|
|
21264
21246
|
if (key !== "children" && key !== "key") {
|
|
21265
21247
|
fiber === null && (fiber = createFiberFromElement(element, returnFiber.mode, 0), fiber._debugInfo = currentDebugInfo, fiber.return = returnFiber);
|
|
21266
21248
|
runWithFiberInDEV(fiber, function(erroredKey) {
|
|
@@ -21707,43 +21689,43 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
21707
21689
|
concurrentQueues[i2++] = null;
|
|
21708
21690
|
var queue = concurrentQueues[i2];
|
|
21709
21691
|
concurrentQueues[i2++] = null;
|
|
21710
|
-
var
|
|
21692
|
+
var update = concurrentQueues[i2];
|
|
21711
21693
|
concurrentQueues[i2++] = null;
|
|
21712
21694
|
var lane = concurrentQueues[i2];
|
|
21713
21695
|
concurrentQueues[i2++] = null;
|
|
21714
|
-
if (queue !== null &&
|
|
21696
|
+
if (queue !== null && update !== null) {
|
|
21715
21697
|
var pending = queue.pending;
|
|
21716
|
-
pending === null ?
|
|
21717
|
-
queue.pending =
|
|
21698
|
+
pending === null ? update.next = update : (update.next = pending.next, pending.next = update);
|
|
21699
|
+
queue.pending = update;
|
|
21718
21700
|
}
|
|
21719
|
-
lane !== 0 && markUpdateLaneFromFiberToRoot(fiber,
|
|
21701
|
+
lane !== 0 && markUpdateLaneFromFiberToRoot(fiber, update, lane);
|
|
21720
21702
|
}
|
|
21721
21703
|
}
|
|
21722
|
-
function enqueueUpdate$1(fiber, queue,
|
|
21704
|
+
function enqueueUpdate$1(fiber, queue, update, lane) {
|
|
21723
21705
|
concurrentQueues[concurrentQueuesIndex++] = fiber;
|
|
21724
21706
|
concurrentQueues[concurrentQueuesIndex++] = queue;
|
|
21725
|
-
concurrentQueues[concurrentQueuesIndex++] =
|
|
21707
|
+
concurrentQueues[concurrentQueuesIndex++] = update;
|
|
21726
21708
|
concurrentQueues[concurrentQueuesIndex++] = lane;
|
|
21727
21709
|
concurrentlyUpdatedLanes |= lane;
|
|
21728
21710
|
fiber.lanes |= lane;
|
|
21729
21711
|
fiber = fiber.alternate;
|
|
21730
21712
|
fiber !== null && (fiber.lanes |= lane);
|
|
21731
21713
|
}
|
|
21732
|
-
function enqueueConcurrentHookUpdate(fiber, queue,
|
|
21733
|
-
enqueueUpdate$1(fiber, queue,
|
|
21714
|
+
function enqueueConcurrentHookUpdate(fiber, queue, update, lane) {
|
|
21715
|
+
enqueueUpdate$1(fiber, queue, update, lane);
|
|
21734
21716
|
return getRootForUpdatedFiber(fiber);
|
|
21735
21717
|
}
|
|
21736
21718
|
function enqueueConcurrentRenderForLane(fiber, lane) {
|
|
21737
21719
|
enqueueUpdate$1(fiber, null, null, lane);
|
|
21738
21720
|
return getRootForUpdatedFiber(fiber);
|
|
21739
21721
|
}
|
|
21740
|
-
function markUpdateLaneFromFiberToRoot(sourceFiber,
|
|
21722
|
+
function markUpdateLaneFromFiberToRoot(sourceFiber, update, lane) {
|
|
21741
21723
|
sourceFiber.lanes |= lane;
|
|
21742
21724
|
var alternate = sourceFiber.alternate;
|
|
21743
21725
|
alternate !== null && (alternate.lanes |= lane);
|
|
21744
21726
|
for (var isHidden = false, parent = sourceFiber.return;parent !== null; )
|
|
21745
21727
|
parent.childLanes |= lane, alternate = parent.alternate, alternate !== null && (alternate.childLanes |= lane), parent.tag === 22 && (sourceFiber = parent.stateNode, sourceFiber === null || sourceFiber._visibility & OffscreenVisible || (isHidden = true)), sourceFiber = parent, parent = parent.return;
|
|
21746
|
-
return sourceFiber.tag === 3 ? (parent = sourceFiber.stateNode, isHidden &&
|
|
21728
|
+
return sourceFiber.tag === 3 ? (parent = sourceFiber.stateNode, isHidden && update !== null && (isHidden = 31 - clz32(lane), sourceFiber = parent.hiddenUpdates, alternate = sourceFiber[isHidden], alternate === null ? sourceFiber[isHidden] = [update] : alternate.push(update), update.lane = lane | 536870912), parent) : null;
|
|
21747
21729
|
}
|
|
21748
21730
|
function getRootForUpdatedFiber(sourceFiber) {
|
|
21749
21731
|
if (nestedUpdateCount > NESTED_UPDATE_LIMIT)
|
|
@@ -21782,7 +21764,7 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
21782
21764
|
next: null
|
|
21783
21765
|
};
|
|
21784
21766
|
}
|
|
21785
|
-
function enqueueUpdate(fiber,
|
|
21767
|
+
function enqueueUpdate(fiber, update, lane) {
|
|
21786
21768
|
var updateQueue = fiber.updateQueue;
|
|
21787
21769
|
if (updateQueue === null)
|
|
21788
21770
|
return null;
|
|
@@ -21795,8 +21777,8 @@ Please update the following component: %s`, componentName2);
|
|
|
21795
21777
|
didWarnUpdateInsideUpdate = true;
|
|
21796
21778
|
}
|
|
21797
21779
|
if ((executionContext & RenderContext) !== NoContext)
|
|
21798
|
-
return componentName2 = updateQueue.pending, componentName2 === null ?
|
|
21799
|
-
enqueueUpdate$1(fiber, updateQueue,
|
|
21780
|
+
return componentName2 = updateQueue.pending, componentName2 === null ? update.next = update : (update.next = componentName2.next, componentName2.next = update), updateQueue.pending = update, update = getRootForUpdatedFiber(fiber), markUpdateLaneFromFiberToRoot(fiber, null, lane), update;
|
|
21781
|
+
enqueueUpdate$1(fiber, updateQueue, update, lane);
|
|
21800
21782
|
return getRootForUpdatedFiber(fiber);
|
|
21801
21783
|
}
|
|
21802
21784
|
function entangleTransitions(root, fiber, lane) {
|
|
@@ -21816,14 +21798,14 @@ Please update the following component: %s`, componentName2);
|
|
|
21816
21798
|
queue = queue.firstBaseUpdate;
|
|
21817
21799
|
if (queue !== null) {
|
|
21818
21800
|
do {
|
|
21819
|
-
var
|
|
21801
|
+
var clone = {
|
|
21820
21802
|
lane: queue.lane,
|
|
21821
21803
|
tag: queue.tag,
|
|
21822
21804
|
payload: queue.payload,
|
|
21823
21805
|
callback: null,
|
|
21824
21806
|
next: null
|
|
21825
21807
|
};
|
|
21826
|
-
newLast === null ? newFirst = newLast =
|
|
21808
|
+
newLast === null ? newFirst = newLast = clone : newLast = newLast.next = clone;
|
|
21827
21809
|
queue = queue.next;
|
|
21828
21810
|
} while (queue !== null);
|
|
21829
21811
|
newLast === null ? newFirst = newLast = capturedUpdate : newLast = newLast.next = capturedUpdate;
|
|
@@ -21925,7 +21907,7 @@ Please update the following component: %s`, componentName2);
|
|
|
21925
21907
|
partialState = nextState;
|
|
21926
21908
|
if (partialState === null || partialState === undefined)
|
|
21927
21909
|
break a;
|
|
21928
|
-
newState =
|
|
21910
|
+
newState = assign({}, newState, partialState);
|
|
21929
21911
|
break a;
|
|
21930
21912
|
case ForceUpdate:
|
|
21931
21913
|
hasForceUpdate = true;
|
|
@@ -22261,7 +22243,7 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
22261
22243
|
}
|
|
22262
22244
|
throw Error("An unsupported type was passed to use(): " + String(usable));
|
|
22263
22245
|
}
|
|
22264
|
-
function useMemoCache(
|
|
22246
|
+
function useMemoCache(size) {
|
|
22265
22247
|
var memoCache = null, updateQueue = currentlyRenderingFiber.updateQueue;
|
|
22266
22248
|
updateQueue !== null && (memoCache = updateQueue.memoCache);
|
|
22267
22249
|
if (memoCache == null) {
|
|
@@ -22278,10 +22260,10 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
22278
22260
|
updateQueue.memoCache = memoCache;
|
|
22279
22261
|
updateQueue = memoCache.data[memoCache.index];
|
|
22280
22262
|
if (updateQueue === undefined || ignorePreviousDependencies)
|
|
22281
|
-
for (updateQueue = memoCache.data[memoCache.index] = Array(
|
|
22263
|
+
for (updateQueue = memoCache.data[memoCache.index] = Array(size), current2 = 0;current2 < size; current2++)
|
|
22282
22264
|
updateQueue[current2] = REACT_MEMO_CACHE_SENTINEL;
|
|
22283
22265
|
else
|
|
22284
|
-
updateQueue.length !==
|
|
22266
|
+
updateQueue.length !== size && console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.", updateQueue.length, size);
|
|
22285
22267
|
memoCache.index++;
|
|
22286
22268
|
return updateQueue;
|
|
22287
22269
|
}
|
|
@@ -22339,50 +22321,50 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
22339
22321
|
hook.memoizedState = pendingQueue;
|
|
22340
22322
|
else {
|
|
22341
22323
|
current2 = baseQueue.next;
|
|
22342
|
-
var newBaseQueueFirst = baseFirst = null, newBaseQueueLast = null,
|
|
22324
|
+
var newBaseQueueFirst = baseFirst = null, newBaseQueueLast = null, update = current2, didReadFromEntangledAsyncAction2 = false;
|
|
22343
22325
|
do {
|
|
22344
|
-
var updateLane =
|
|
22345
|
-
if (updateLane !==
|
|
22346
|
-
var revertLane =
|
|
22326
|
+
var updateLane = update.lane & -536870913;
|
|
22327
|
+
if (updateLane !== update.lane ? (workInProgressRootRenderLanes & updateLane) === updateLane : (renderLanes & updateLane) === updateLane) {
|
|
22328
|
+
var revertLane = update.revertLane;
|
|
22347
22329
|
if (revertLane === 0)
|
|
22348
22330
|
newBaseQueueLast !== null && (newBaseQueueLast = newBaseQueueLast.next = {
|
|
22349
22331
|
lane: 0,
|
|
22350
22332
|
revertLane: 0,
|
|
22351
22333
|
gesture: null,
|
|
22352
|
-
action:
|
|
22353
|
-
hasEagerState:
|
|
22354
|
-
eagerState:
|
|
22334
|
+
action: update.action,
|
|
22335
|
+
hasEagerState: update.hasEagerState,
|
|
22336
|
+
eagerState: update.eagerState,
|
|
22355
22337
|
next: null
|
|
22356
22338
|
}), updateLane === currentEntangledLane && (didReadFromEntangledAsyncAction2 = true);
|
|
22357
22339
|
else if ((renderLanes & revertLane) === revertLane) {
|
|
22358
|
-
|
|
22340
|
+
update = update.next;
|
|
22359
22341
|
revertLane === currentEntangledLane && (didReadFromEntangledAsyncAction2 = true);
|
|
22360
22342
|
continue;
|
|
22361
22343
|
} else
|
|
22362
22344
|
updateLane = {
|
|
22363
22345
|
lane: 0,
|
|
22364
|
-
revertLane:
|
|
22346
|
+
revertLane: update.revertLane,
|
|
22365
22347
|
gesture: null,
|
|
22366
|
-
action:
|
|
22367
|
-
hasEagerState:
|
|
22368
|
-
eagerState:
|
|
22348
|
+
action: update.action,
|
|
22349
|
+
hasEagerState: update.hasEagerState,
|
|
22350
|
+
eagerState: update.eagerState,
|
|
22369
22351
|
next: null
|
|
22370
22352
|
}, newBaseQueueLast === null ? (newBaseQueueFirst = newBaseQueueLast = updateLane, baseFirst = pendingQueue) : newBaseQueueLast = newBaseQueueLast.next = updateLane, currentlyRenderingFiber.lanes |= revertLane, workInProgressRootSkippedLanes |= revertLane;
|
|
22371
|
-
updateLane =
|
|
22353
|
+
updateLane = update.action;
|
|
22372
22354
|
shouldDoubleInvokeUserFnsInHooksDEV && reducer(pendingQueue, updateLane);
|
|
22373
|
-
pendingQueue =
|
|
22355
|
+
pendingQueue = update.hasEagerState ? update.eagerState : reducer(pendingQueue, updateLane);
|
|
22374
22356
|
} else
|
|
22375
22357
|
revertLane = {
|
|
22376
22358
|
lane: updateLane,
|
|
22377
|
-
revertLane:
|
|
22378
|
-
gesture:
|
|
22379
|
-
action:
|
|
22380
|
-
hasEagerState:
|
|
22381
|
-
eagerState:
|
|
22359
|
+
revertLane: update.revertLane,
|
|
22360
|
+
gesture: update.gesture,
|
|
22361
|
+
action: update.action,
|
|
22362
|
+
hasEagerState: update.hasEagerState,
|
|
22363
|
+
eagerState: update.eagerState,
|
|
22382
22364
|
next: null
|
|
22383
22365
|
}, newBaseQueueLast === null ? (newBaseQueueFirst = newBaseQueueLast = revertLane, baseFirst = pendingQueue) : newBaseQueueLast = newBaseQueueLast.next = revertLane, currentlyRenderingFiber.lanes |= updateLane, workInProgressRootSkippedLanes |= updateLane;
|
|
22384
|
-
|
|
22385
|
-
} while (
|
|
22366
|
+
update = update.next;
|
|
22367
|
+
} while (update !== null && update !== current2);
|
|
22386
22368
|
newBaseQueueLast === null ? baseFirst = pendingQueue : newBaseQueueLast.next = newBaseQueueFirst;
|
|
22387
22369
|
if (!objectIs(pendingQueue, hook.memoizedState) && (didReceiveUpdate = true, didReadFromEntangledAsyncAction2 && (reducer = currentEntangledActionThenable, reducer !== null)))
|
|
22388
22370
|
throw reducer;
|
|
@@ -22402,10 +22384,10 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
22402
22384
|
var { dispatch, pending: lastRenderPhaseUpdate } = queue, newState = hook.memoizedState;
|
|
22403
22385
|
if (lastRenderPhaseUpdate !== null) {
|
|
22404
22386
|
queue.pending = null;
|
|
22405
|
-
var
|
|
22387
|
+
var update = lastRenderPhaseUpdate = lastRenderPhaseUpdate.next;
|
|
22406
22388
|
do
|
|
22407
|
-
newState = reducer(newState,
|
|
22408
|
-
while (
|
|
22389
|
+
newState = reducer(newState, update.action), update = update.next;
|
|
22390
|
+
while (update !== lastRenderPhaseUpdate);
|
|
22409
22391
|
objectIs(newState, hook.memoizedState) || (didReceiveUpdate = true);
|
|
22410
22392
|
hook.memoizedState = newState;
|
|
22411
22393
|
hook.baseQueue === null && (hook.baseState = newState);
|
|
@@ -22448,8 +22430,8 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
22448
22430
|
if (cachedSnapshot = !objectIs((currentHook || hook).memoizedState, getServerSnapshot))
|
|
22449
22431
|
hook.memoizedState = getServerSnapshot, didReceiveUpdate = true;
|
|
22450
22432
|
hook = hook.queue;
|
|
22451
|
-
var
|
|
22452
|
-
updateEffectImpl(2048, Passive,
|
|
22433
|
+
var create = subscribeToStore.bind(null, fiber, hook, subscribe);
|
|
22434
|
+
updateEffectImpl(2048, Passive, create, [subscribe]);
|
|
22453
22435
|
if (hook.getSnapshot !== getSnapshot || cachedSnapshot || workInProgressHook !== null && workInProgressHook.memoizedState.tag & HasEffect) {
|
|
22454
22436
|
fiber.flags |= 2048;
|
|
22455
22437
|
pushSimpleEffect(HasEffect | Passive, { destroy: undefined }, updateStoreInstance.bind(null, fiber, hook, getServerSnapshot, getSnapshot), null);
|
|
@@ -22611,13 +22593,13 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
22611
22593
|
actionNode !== null && (nextState = actionNode.next, nextState === actionNode ? actionQueue.pending = null : (nextState = nextState.next, actionNode.next = nextState, runActionStateAction(actionQueue, nextState)));
|
|
22612
22594
|
}
|
|
22613
22595
|
function onActionError(actionQueue, actionNode, error) {
|
|
22614
|
-
var
|
|
22596
|
+
var last = actionQueue.pending;
|
|
22615
22597
|
actionQueue.pending = null;
|
|
22616
|
-
if (
|
|
22617
|
-
|
|
22598
|
+
if (last !== null) {
|
|
22599
|
+
last = last.next;
|
|
22618
22600
|
do
|
|
22619
22601
|
actionNode.status = "rejected", actionNode.reason = error, notifyActionListeners(actionNode), actionNode = actionNode.next;
|
|
22620
|
-
while (actionNode !==
|
|
22602
|
+
while (actionNode !== last);
|
|
22621
22603
|
}
|
|
22622
22604
|
actionQueue.action = null;
|
|
22623
22605
|
}
|
|
@@ -22714,12 +22696,12 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
22714
22696
|
currentStateHook.memoizedState = action;
|
|
22715
22697
|
return [stateHook, dispatch, false];
|
|
22716
22698
|
}
|
|
22717
|
-
function pushSimpleEffect(tag, inst,
|
|
22718
|
-
tag = { tag, create
|
|
22699
|
+
function pushSimpleEffect(tag, inst, create, deps) {
|
|
22700
|
+
tag = { tag, create, deps, inst, next: null };
|
|
22719
22701
|
inst = currentlyRenderingFiber.updateQueue;
|
|
22720
22702
|
inst === null && (inst = createFunctionComponentUpdateQueue(), currentlyRenderingFiber.updateQueue = inst);
|
|
22721
|
-
|
|
22722
|
-
|
|
22703
|
+
create = inst.lastEffect;
|
|
22704
|
+
create === null ? inst.lastEffect = tag.next = tag : (deps = create.next, create.next = tag, tag.next = deps, inst.lastEffect = tag);
|
|
22723
22705
|
return tag;
|
|
22724
22706
|
}
|
|
22725
22707
|
function mountRef(initialValue) {
|
|
@@ -22727,19 +22709,19 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
22727
22709
|
initialValue = { current: initialValue };
|
|
22728
22710
|
return hook.memoizedState = initialValue;
|
|
22729
22711
|
}
|
|
22730
|
-
function mountEffectImpl(fiberFlags, hookFlags,
|
|
22712
|
+
function mountEffectImpl(fiberFlags, hookFlags, create, deps) {
|
|
22731
22713
|
var hook = mountWorkInProgressHook();
|
|
22732
22714
|
currentlyRenderingFiber.flags |= fiberFlags;
|
|
22733
|
-
hook.memoizedState = pushSimpleEffect(HasEffect | hookFlags, { destroy: undefined },
|
|
22715
|
+
hook.memoizedState = pushSimpleEffect(HasEffect | hookFlags, { destroy: undefined }, create, deps === undefined ? null : deps);
|
|
22734
22716
|
}
|
|
22735
|
-
function updateEffectImpl(fiberFlags, hookFlags,
|
|
22717
|
+
function updateEffectImpl(fiberFlags, hookFlags, create, deps) {
|
|
22736
22718
|
var hook = updateWorkInProgressHook();
|
|
22737
22719
|
deps = deps === undefined ? null : deps;
|
|
22738
22720
|
var inst = hook.memoizedState.inst;
|
|
22739
|
-
currentHook !== null && deps !== null && areHookInputsEqual(deps, currentHook.memoizedState.deps) ? hook.memoizedState = pushSimpleEffect(hookFlags, inst,
|
|
22721
|
+
currentHook !== null && deps !== null && areHookInputsEqual(deps, currentHook.memoizedState.deps) ? hook.memoizedState = pushSimpleEffect(hookFlags, inst, create, deps) : (currentlyRenderingFiber.flags |= fiberFlags, hook.memoizedState = pushSimpleEffect(HasEffect | hookFlags, inst, create, deps));
|
|
22740
22722
|
}
|
|
22741
|
-
function mountEffect(
|
|
22742
|
-
(currentlyRenderingFiber.mode & 16) !== NoMode ? mountEffectImpl(276826112, Passive,
|
|
22723
|
+
function mountEffect(create, deps) {
|
|
22724
|
+
(currentlyRenderingFiber.mode & 16) !== NoMode ? mountEffectImpl(276826112, Passive, create, deps) : mountEffectImpl(8390656, Passive, create, deps);
|
|
22743
22725
|
}
|
|
22744
22726
|
function useEffectEventImpl(payload) {
|
|
22745
22727
|
currentlyRenderingFiber.flags |= 4;
|
|
@@ -22769,35 +22751,35 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
22769
22751
|
return ref.impl.apply(undefined, arguments);
|
|
22770
22752
|
};
|
|
22771
22753
|
}
|
|
22772
|
-
function mountLayoutEffect(
|
|
22754
|
+
function mountLayoutEffect(create, deps) {
|
|
22773
22755
|
var fiberFlags = 4194308;
|
|
22774
22756
|
(currentlyRenderingFiber.mode & 16) !== NoMode && (fiberFlags |= 134217728);
|
|
22775
|
-
return mountEffectImpl(fiberFlags, Layout,
|
|
22757
|
+
return mountEffectImpl(fiberFlags, Layout, create, deps);
|
|
22776
22758
|
}
|
|
22777
|
-
function imperativeHandleEffect(
|
|
22759
|
+
function imperativeHandleEffect(create, ref) {
|
|
22778
22760
|
if (typeof ref === "function") {
|
|
22779
|
-
|
|
22780
|
-
var refCleanup = ref(
|
|
22761
|
+
create = create();
|
|
22762
|
+
var refCleanup = ref(create);
|
|
22781
22763
|
return function() {
|
|
22782
22764
|
typeof refCleanup === "function" ? refCleanup() : ref(null);
|
|
22783
22765
|
};
|
|
22784
22766
|
}
|
|
22785
22767
|
if (ref !== null && ref !== undefined)
|
|
22786
|
-
return ref.hasOwnProperty("current") || console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.", "an object with keys {" + Object.keys(ref).join(", ") + "}"),
|
|
22768
|
+
return ref.hasOwnProperty("current") || console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.", "an object with keys {" + Object.keys(ref).join(", ") + "}"), create = create(), ref.current = create, function() {
|
|
22787
22769
|
ref.current = null;
|
|
22788
22770
|
};
|
|
22789
22771
|
}
|
|
22790
|
-
function mountImperativeHandle(ref,
|
|
22791
|
-
typeof
|
|
22772
|
+
function mountImperativeHandle(ref, create, deps) {
|
|
22773
|
+
typeof create !== "function" && console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.", create !== null ? typeof create : "null");
|
|
22792
22774
|
deps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;
|
|
22793
22775
|
var fiberFlags = 4194308;
|
|
22794
22776
|
(currentlyRenderingFiber.mode & 16) !== NoMode && (fiberFlags |= 134217728);
|
|
22795
|
-
mountEffectImpl(fiberFlags, Layout, imperativeHandleEffect.bind(null,
|
|
22777
|
+
mountEffectImpl(fiberFlags, Layout, imperativeHandleEffect.bind(null, create, ref), deps);
|
|
22796
22778
|
}
|
|
22797
|
-
function updateImperativeHandle(ref,
|
|
22798
|
-
typeof
|
|
22779
|
+
function updateImperativeHandle(ref, create, deps) {
|
|
22780
|
+
typeof create !== "function" && console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.", create !== null ? typeof create : "null");
|
|
22799
22781
|
deps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;
|
|
22800
|
-
updateEffectImpl(4, Layout, imperativeHandleEffect.bind(null,
|
|
22782
|
+
updateEffectImpl(4, Layout, imperativeHandleEffect.bind(null, create, ref), deps);
|
|
22801
22783
|
}
|
|
22802
22784
|
function mountCallback(callback, deps) {
|
|
22803
22785
|
mountWorkInProgressHook().memoizedState = [
|
|
@@ -23002,7 +22984,7 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
23002
22984
|
var args = arguments;
|
|
23003
22985
|
typeof args[3] === "function" && console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");
|
|
23004
22986
|
args = requestUpdateLane(fiber);
|
|
23005
|
-
var
|
|
22987
|
+
var update = {
|
|
23006
22988
|
lane: args,
|
|
23007
22989
|
revertLane: 0,
|
|
23008
22990
|
gesture: null,
|
|
@@ -23011,7 +22993,7 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
23011
22993
|
eagerState: null,
|
|
23012
22994
|
next: null
|
|
23013
22995
|
};
|
|
23014
|
-
isRenderPhaseUpdate(fiber) ? enqueueRenderPhaseUpdate(queue,
|
|
22996
|
+
isRenderPhaseUpdate(fiber) ? enqueueRenderPhaseUpdate(queue, update) : (update = enqueueConcurrentHookUpdate(fiber, queue, update, args), update !== null && (startUpdateTimerByLane(args, "dispatch()", fiber), scheduleUpdateOnFiber(update, fiber, args), entangleTransitionUpdate(update, queue, args)));
|
|
23015
22997
|
}
|
|
23016
22998
|
function dispatchSetState(fiber, queue, action) {
|
|
23017
22999
|
var args = arguments;
|
|
@@ -23020,7 +23002,7 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
23020
23002
|
dispatchSetStateInternal(fiber, queue, action, args) && startUpdateTimerByLane(args, "setState()", fiber);
|
|
23021
23003
|
}
|
|
23022
23004
|
function dispatchSetStateInternal(fiber, queue, action, lane) {
|
|
23023
|
-
var
|
|
23005
|
+
var update = {
|
|
23024
23006
|
lane,
|
|
23025
23007
|
revertLane: 0,
|
|
23026
23008
|
gesture: null,
|
|
@@ -23030,7 +23012,7 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
23030
23012
|
next: null
|
|
23031
23013
|
};
|
|
23032
23014
|
if (isRenderPhaseUpdate(fiber))
|
|
23033
|
-
enqueueRenderPhaseUpdate(queue,
|
|
23015
|
+
enqueueRenderPhaseUpdate(queue, update);
|
|
23034
23016
|
else {
|
|
23035
23017
|
var alternate = fiber.alternate;
|
|
23036
23018
|
if (fiber.lanes === 0 && (alternate === null || alternate.lanes === 0) && (alternate = queue.lastRenderedReducer, alternate !== null)) {
|
|
@@ -23038,15 +23020,15 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
23038
23020
|
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV;
|
|
23039
23021
|
try {
|
|
23040
23022
|
var currentState = queue.lastRenderedState, eagerState = alternate(currentState, action);
|
|
23041
|
-
|
|
23042
|
-
|
|
23023
|
+
update.hasEagerState = true;
|
|
23024
|
+
update.eagerState = eagerState;
|
|
23043
23025
|
if (objectIs(eagerState, currentState))
|
|
23044
|
-
return enqueueUpdate$1(fiber, queue,
|
|
23026
|
+
return enqueueUpdate$1(fiber, queue, update, 0), workInProgressRoot === null && finishQueueingConcurrentUpdates(), false;
|
|
23045
23027
|
} catch (error) {} finally {
|
|
23046
23028
|
ReactSharedInternals.H = prevDispatcher;
|
|
23047
23029
|
}
|
|
23048
23030
|
}
|
|
23049
|
-
action = enqueueConcurrentHookUpdate(fiber, queue,
|
|
23031
|
+
action = enqueueConcurrentHookUpdate(fiber, queue, update, lane);
|
|
23050
23032
|
if (action !== null)
|
|
23051
23033
|
return scheduleUpdateOnFiber(action, fiber, lane), entangleTransitionUpdate(action, queue, lane), true;
|
|
23052
23034
|
}
|
|
@@ -23074,11 +23056,11 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
23074
23056
|
var alternate = fiber.alternate;
|
|
23075
23057
|
return fiber === currentlyRenderingFiber || alternate !== null && alternate === currentlyRenderingFiber;
|
|
23076
23058
|
}
|
|
23077
|
-
function enqueueRenderPhaseUpdate(queue,
|
|
23059
|
+
function enqueueRenderPhaseUpdate(queue, update) {
|
|
23078
23060
|
didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = true;
|
|
23079
23061
|
var pending = queue.pending;
|
|
23080
|
-
pending === null ?
|
|
23081
|
-
queue.pending =
|
|
23062
|
+
pending === null ? update.next = update : (update.next = pending.next, pending.next = update);
|
|
23063
|
+
queue.pending = update;
|
|
23082
23064
|
}
|
|
23083
23065
|
function entangleTransitionUpdate(root, queue, lane) {
|
|
23084
23066
|
if ((lane & 4194048) !== 0) {
|
|
@@ -23106,7 +23088,7 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
23106
23088
|
}
|
|
23107
23089
|
}
|
|
23108
23090
|
partialState === undefined && (ctor = getComponentNameFromType(ctor) || "Component", didWarnAboutUndefinedDerivedState.has(ctor) || (didWarnAboutUndefinedDerivedState.add(ctor), console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.", ctor)));
|
|
23109
|
-
prevState = partialState === null || partialState === undefined ? prevState :
|
|
23091
|
+
prevState = partialState === null || partialState === undefined ? prevState : assign({}, prevState, partialState);
|
|
23110
23092
|
workInProgress2.memoizedState = prevState;
|
|
23111
23093
|
workInProgress2.lanes === 0 && (workInProgress2.updateQueue.baseState = prevState);
|
|
23112
23094
|
}
|
|
@@ -23141,7 +23123,7 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
23141
23123
|
propName !== "ref" && (newProps[propName] = baseProps[propName]);
|
|
23142
23124
|
}
|
|
23143
23125
|
if (Component = Component.defaultProps) {
|
|
23144
|
-
newProps === baseProps && (newProps =
|
|
23126
|
+
newProps === baseProps && (newProps = assign({}, newProps));
|
|
23145
23127
|
for (var _propName in Component)
|
|
23146
23128
|
newProps[_propName] === undefined && (newProps[_propName] = Component[_propName]);
|
|
23147
23129
|
}
|
|
@@ -23193,20 +23175,20 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
23193
23175
|
lane.tag = CaptureUpdate;
|
|
23194
23176
|
return lane;
|
|
23195
23177
|
}
|
|
23196
|
-
function initializeClassErrorUpdate(
|
|
23178
|
+
function initializeClassErrorUpdate(update, root, fiber, errorInfo) {
|
|
23197
23179
|
var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
|
|
23198
23180
|
if (typeof getDerivedStateFromError === "function") {
|
|
23199
23181
|
var error = errorInfo.value;
|
|
23200
|
-
|
|
23182
|
+
update.payload = function() {
|
|
23201
23183
|
return getDerivedStateFromError(error);
|
|
23202
23184
|
};
|
|
23203
|
-
|
|
23185
|
+
update.callback = function() {
|
|
23204
23186
|
markFailedErrorBoundaryForHotReloading(fiber);
|
|
23205
23187
|
runWithFiberInDEV(errorInfo.source, logCaughtError, root, fiber, errorInfo);
|
|
23206
23188
|
};
|
|
23207
23189
|
}
|
|
23208
23190
|
var inst = fiber.stateNode;
|
|
23209
|
-
inst !== null && typeof inst.componentDidCatch === "function" && (
|
|
23191
|
+
inst !== null && typeof inst.componentDidCatch === "function" && (update.callback = function() {
|
|
23210
23192
|
markFailedErrorBoundaryForHotReloading(fiber);
|
|
23211
23193
|
runWithFiberInDEV(errorInfo.source, logCaughtError, root, fiber, errorInfo);
|
|
23212
23194
|
typeof getDerivedStateFromError !== "function" && (legacyErrorBoundariesThatAlreadyFailed === null ? legacyErrorBoundariesThatAlreadyFailed = new Set([this]) : legacyErrorBoundariesThatAlreadyFailed.add(this));
|
|
@@ -23767,17 +23749,17 @@ https://react.dev/link/unsafe-component-lifecycles`, _instance, newApiName, stat
|
|
|
23767
23749
|
alternate !== null && (alternate.lanes |= renderLanes2);
|
|
23768
23750
|
scheduleContextWorkOnParentPath(fiber.return, renderLanes2, propagationRoot);
|
|
23769
23751
|
}
|
|
23770
|
-
function initSuspenseListRenderState(workInProgress2, isBackwards,
|
|
23752
|
+
function initSuspenseListRenderState(workInProgress2, isBackwards, tail, lastContentRow, tailMode, treeForkCount2) {
|
|
23771
23753
|
var renderState = workInProgress2.memoizedState;
|
|
23772
23754
|
renderState === null ? workInProgress2.memoizedState = {
|
|
23773
23755
|
isBackwards,
|
|
23774
23756
|
rendering: null,
|
|
23775
23757
|
renderingStartTime: 0,
|
|
23776
23758
|
last: lastContentRow,
|
|
23777
|
-
tail
|
|
23759
|
+
tail,
|
|
23778
23760
|
tailMode,
|
|
23779
23761
|
treeForkCount: treeForkCount2
|
|
23780
|
-
} : (renderState.isBackwards = isBackwards, renderState.rendering = null, renderState.renderingStartTime = 0, renderState.last = lastContentRow, renderState.tail =
|
|
23762
|
+
} : (renderState.isBackwards = isBackwards, renderState.rendering = null, renderState.renderingStartTime = 0, renderState.last = lastContentRow, renderState.tail = tail, renderState.tailMode = tailMode, renderState.treeForkCount = treeForkCount2);
|
|
23781
23763
|
}
|
|
23782
23764
|
function updateSuspenseListComponent(current2, workInProgress2, renderLanes2) {
|
|
23783
23765
|
var nextProps = workInProgress2.pendingProps, revealOrder = nextProps.revealOrder, tailMode = nextProps.tail, newChildren = nextProps.children, suspenseContext = suspenseStackCursor.current;
|
|
@@ -24894,21 +24876,21 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
24894
24876
|
return fiber.stateNode;
|
|
24895
24877
|
}
|
|
24896
24878
|
}
|
|
24897
|
-
function insertOrAppendPlacementNodeIntoContainer(node,
|
|
24879
|
+
function insertOrAppendPlacementNodeIntoContainer(node, before, parent) {
|
|
24898
24880
|
var tag = node.tag;
|
|
24899
24881
|
if (tag === 5 || tag === 6)
|
|
24900
|
-
node = node.stateNode,
|
|
24901
|
-
else if (tag !== 4 && (supportsSingletons && tag === 27 && isSingletonScope(node.type) && (parent = node.stateNode,
|
|
24902
|
-
for (insertOrAppendPlacementNodeIntoContainer(node,
|
|
24903
|
-
insertOrAppendPlacementNodeIntoContainer(node,
|
|
24882
|
+
node = node.stateNode, before ? insertInContainerBefore(parent, node, before) : appendChildToContainer(parent, node);
|
|
24883
|
+
else if (tag !== 4 && (supportsSingletons && tag === 27 && isSingletonScope(node.type) && (parent = node.stateNode, before = null), node = node.child, node !== null))
|
|
24884
|
+
for (insertOrAppendPlacementNodeIntoContainer(node, before, parent), node = node.sibling;node !== null; )
|
|
24885
|
+
insertOrAppendPlacementNodeIntoContainer(node, before, parent), node = node.sibling;
|
|
24904
24886
|
}
|
|
24905
|
-
function insertOrAppendPlacementNode(node,
|
|
24887
|
+
function insertOrAppendPlacementNode(node, before, parent) {
|
|
24906
24888
|
var tag = node.tag;
|
|
24907
24889
|
if (tag === 5 || tag === 6)
|
|
24908
|
-
node = node.stateNode,
|
|
24890
|
+
node = node.stateNode, before ? insertBefore(parent, node, before) : appendChild(parent, node);
|
|
24909
24891
|
else if (tag !== 4 && (supportsSingletons && tag === 27 && isSingletonScope(node.type) && (parent = node.stateNode), node = node.child, node !== null))
|
|
24910
|
-
for (insertOrAppendPlacementNode(node,
|
|
24911
|
-
insertOrAppendPlacementNode(node,
|
|
24892
|
+
for (insertOrAppendPlacementNode(node, before, parent), node = node.sibling;node !== null; )
|
|
24893
|
+
insertOrAppendPlacementNode(node, before, parent), node = node.sibling;
|
|
24912
24894
|
}
|
|
24913
24895
|
function commitPlacement(finishedWork) {
|
|
24914
24896
|
for (var hostParentFiber, parentFiber = finishedWork.return;parentFiber !== null; ) {
|
|
@@ -26183,7 +26165,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
26183
26165
|
if (startTime === RootInProgress) {
|
|
26184
26166
|
workInProgressRootIsPrerendering && !forceSync && markRootSuspended(root, lanes, 0, false);
|
|
26185
26167
|
lanes = workInProgressSuspendedReason;
|
|
26186
|
-
yieldStartTime =
|
|
26168
|
+
yieldStartTime = now();
|
|
26187
26169
|
yieldReason = lanes;
|
|
26188
26170
|
break;
|
|
26189
26171
|
} else {
|
|
@@ -26372,7 +26354,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
26372
26354
|
function prepareFreshStack(root, lanes) {
|
|
26373
26355
|
supportsUserTiming && (console.timeStamp("Blocking Track", 0.003, 0.003, "Blocking", "Scheduler ⚛", "primary-light"), console.timeStamp("Transition Track", 0.003, 0.003, "Transition", "Scheduler ⚛", "primary-light"), console.timeStamp("Suspense Track", 0.003, 0.003, "Suspense", "Scheduler ⚛", "primary-light"), console.timeStamp("Idle Track", 0.003, 0.003, "Idle", "Scheduler ⚛", "primary-light"));
|
|
26374
26356
|
var previousRenderStartTime = renderStartTime;
|
|
26375
|
-
renderStartTime =
|
|
26357
|
+
renderStartTime = now();
|
|
26376
26358
|
if (workInProgressRootRenderLanes !== 0 && 0 < previousRenderStartTime) {
|
|
26377
26359
|
setCurrentTrackFromLanes(workInProgressRootRenderLanes);
|
|
26378
26360
|
if (workInProgressRootExitStatus === RootSuspended || workInProgressRootExitStatus === RootSuspendedWithDelay)
|
|
@@ -26427,7 +26409,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
26427
26409
|
blockingSuspendedTime = -1.1;
|
|
26428
26410
|
blockingEventRepeatTime = blockingEventTime;
|
|
26429
26411
|
blockingEventTime = -1.1;
|
|
26430
|
-
blockingClampTime =
|
|
26412
|
+
blockingClampTime = now();
|
|
26431
26413
|
}
|
|
26432
26414
|
(lanes & 4194048) !== 0 && (workInProgressUpdateTask = transitionUpdateTask, debugTask = 0 <= transitionStartTime && transitionStartTime < transitionClampTime ? transitionClampTime : transitionStartTime, previousRenderStartTime = 0 <= transitionUpdateTime && transitionUpdateTime < transitionClampTime ? transitionClampTime : transitionUpdateTime, endTime = 0 <= transitionEventTime && transitionEventTime < transitionClampTime ? transitionClampTime : transitionEventTime, color = 0 <= endTime ? endTime : 0 <= previousRenderStartTime ? previousRenderStartTime : renderStartTime, 0 <= transitionSuspendedTime && (setCurrentTrackFromLanes(256), logSuspendedWithDelayPhase(transitionSuspendedTime, color, lanes, workInProgressUpdateTask)), isPingedUpdate = endTime, eventTime = transitionEventType, eventType = 0 < transitionEventRepeatTime, eventIsRepeat = transitionUpdateType === 2, color = renderStartTime, endTime = transitionUpdateTask, label = transitionUpdateMethodName, isSpawnedUpdate = transitionUpdateComponentName, supportsUserTiming && (currentTrack = "Transition", 0 < previousRenderStartTime ? previousRenderStartTime > color && (previousRenderStartTime = color) : previousRenderStartTime = color, 0 < debugTask ? debugTask > previousRenderStartTime && (debugTask = previousRenderStartTime) : debugTask = previousRenderStartTime, 0 < isPingedUpdate ? isPingedUpdate > debugTask && (isPingedUpdate = debugTask) : isPingedUpdate = debugTask, debugTask > isPingedUpdate && eventTime !== null && (color$jscomp$0 = eventType ? "secondary-light" : "warning", endTime ? endTime.run(console.timeStamp.bind(console, eventType ? "Consecutive" : "Event: " + eventTime, isPingedUpdate, debugTask, currentTrack, "Scheduler ⚛", color$jscomp$0)) : console.timeStamp(eventType ? "Consecutive" : "Event: " + eventTime, isPingedUpdate, debugTask, currentTrack, "Scheduler ⚛", color$jscomp$0)), previousRenderStartTime > debugTask && (endTime ? endTime.run(console.timeStamp.bind(console, "Action", debugTask, previousRenderStartTime, currentTrack, "Scheduler ⚛", "primary-dark")) : console.timeStamp("Action", debugTask, previousRenderStartTime, currentTrack, "Scheduler ⚛", "primary-dark")), color > previousRenderStartTime && (debugTask = eventIsRepeat ? "Promise Resolved" : 5 < color - previousRenderStartTime ? "Update Blocked" : "Update", isPingedUpdate = [], isSpawnedUpdate != null && isPingedUpdate.push(["Component name", isSpawnedUpdate]), label != null && isPingedUpdate.push(["Method name", label]), previousRenderStartTime = {
|
|
26433
26415
|
start: previousRenderStartTime,
|
|
@@ -26440,7 +26422,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
26440
26422
|
color: "primary-light"
|
|
26441
26423
|
}
|
|
26442
26424
|
}
|
|
26443
|
-
}, endTime ? endTime.run(performance.measure.bind(performance, debugTask, previousRenderStartTime)) : performance.measure(debugTask, previousRenderStartTime))), transitionUpdateTime = transitionStartTime = -1.1, transitionUpdateType = 0, transitionSuspendedTime = -1.1, transitionEventRepeatTime = transitionEventTime, transitionEventTime = -1.1, transitionClampTime =
|
|
26425
|
+
}, endTime ? endTime.run(performance.measure.bind(performance, debugTask, previousRenderStartTime)) : performance.measure(debugTask, previousRenderStartTime))), transitionUpdateTime = transitionStartTime = -1.1, transitionUpdateType = 0, transitionSuspendedTime = -1.1, transitionEventRepeatTime = transitionEventTime, transitionEventTime = -1.1, transitionClampTime = now());
|
|
26444
26426
|
previousRenderStartTime = root.timeoutHandle;
|
|
26445
26427
|
previousRenderStartTime !== noTimeout && (root.timeoutHandle = noTimeout, cancelTimeout(previousRenderStartTime));
|
|
26446
26428
|
previousRenderStartTime = root.cancelPendingCommit;
|
|
@@ -26825,7 +26807,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
26825
26807
|
return null;
|
|
26826
26808
|
})) : (root.callbackNode = null, root.callbackPriority = 0);
|
|
26827
26809
|
commitErrors = null;
|
|
26828
|
-
commitStartTime =
|
|
26810
|
+
commitStartTime = now();
|
|
26829
26811
|
suspendedCommitReason !== null && logSuspendedCommitPhase(completedRenderEndTime, commitStartTime, suspendedCommitReason, workInProgressUpdateTask);
|
|
26830
26812
|
recoverableErrors = (finishedWork.flags & 13878) !== 0;
|
|
26831
26813
|
if ((finishedWork.subtreeFlags & 13878) !== 0 || recoverableErrors) {
|
|
@@ -26873,7 +26855,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
26873
26855
|
pendingEffectsStatus = NO_PENDING_EFFECTS;
|
|
26874
26856
|
var suspendedViewTransitionReason = pendingSuspendedViewTransitionReason;
|
|
26875
26857
|
if (suspendedViewTransitionReason !== null) {
|
|
26876
|
-
commitStartTime =
|
|
26858
|
+
commitStartTime = now();
|
|
26877
26859
|
var startTime = commitEndTime, endTime = commitStartTime;
|
|
26878
26860
|
!supportsUserTiming || endTime <= startTime || (animatingTask ? animatingTask.run(console.timeStamp.bind(console, suspendedViewTransitionReason, startTime, endTime, currentTrack, "Scheduler ⚛", "secondary-light")) : console.timeStamp(suspendedViewTransitionReason, startTime, endTime, currentTrack, "Scheduler ⚛", "secondary-light"));
|
|
26879
26861
|
}
|
|
@@ -26896,7 +26878,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
26896
26878
|
}
|
|
26897
26879
|
suspendedViewTransitionReason = pendingEffectsRenderEndTime;
|
|
26898
26880
|
startTime = pendingSuspendedCommitReason;
|
|
26899
|
-
commitEndTime =
|
|
26881
|
+
commitEndTime = now();
|
|
26900
26882
|
suspendedViewTransitionReason = startTime === null ? suspendedViewTransitionReason : commitStartTime;
|
|
26901
26883
|
startTime = commitEndTime;
|
|
26902
26884
|
endTime = pendingDelayedCommitReason === ABORTED_VIEW_TRANSITION_COMMIT;
|
|
@@ -26909,7 +26891,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
26909
26891
|
if (pendingEffectsStatus === PENDING_SPAWNED_WORK || pendingEffectsStatus === PENDING_AFTER_MUTATION_PHASE) {
|
|
26910
26892
|
if (pendingEffectsStatus === PENDING_SPAWNED_WORK) {
|
|
26911
26893
|
var startViewTransitionStartTime = commitEndTime;
|
|
26912
|
-
commitEndTime =
|
|
26894
|
+
commitEndTime = now();
|
|
26913
26895
|
var endTime = commitEndTime, abortedViewTransition = pendingDelayedCommitReason === ABORTED_VIEW_TRANSITION_COMMIT;
|
|
26914
26896
|
!supportsUserTiming || endTime <= startViewTransitionStartTime || (animatingTask ? animatingTask.run(console.timeStamp.bind(console, abortedViewTransition ? "Interrupted View Transition" : "Starting Animation", startViewTransitionStartTime, endTime, currentTrack, "Scheduler ⚛", abortedViewTransition ? "error" : "secondary-light")) : console.timeStamp(abortedViewTransition ? "Interrupted View Transition" : "Starting Animation", startViewTransitionStartTime, endTime, currentTrack, "Scheduler ⚛", abortedViewTransition ? " error" : "secondary-light"));
|
|
26915
26897
|
pendingDelayedCommitReason !== ABORTED_VIEW_TRANSITION_COMMIT && (pendingDelayedCommitReason = ANIMATION_STARTED_COMMIT);
|
|
@@ -27114,7 +27096,7 @@ Error message:
|
|
|
27114
27096
|
pingCache !== null && pingCache.delete(wakeable);
|
|
27115
27097
|
root.pingedLanes |= root.suspendedLanes & pingedLanes;
|
|
27116
27098
|
root.warmLanes &= ~pingedLanes;
|
|
27117
|
-
(pingedLanes & 127) !== 0 ? 0 > blockingUpdateTime && (blockingClampTime = blockingUpdateTime =
|
|
27099
|
+
(pingedLanes & 127) !== 0 ? 0 > blockingUpdateTime && (blockingClampTime = blockingUpdateTime = now(), blockingUpdateTask = createTask("Promise Resolved"), blockingUpdateType = 2) : (pingedLanes & 4194048) !== 0 && 0 > transitionUpdateTime && (transitionClampTime = transitionUpdateTime = now(), transitionUpdateTask = createTask("Promise Resolved"), transitionUpdateType = 2);
|
|
27118
27100
|
isConcurrentActEnvironment() && ReactSharedInternals.actQueue === null && console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
27119
27101
|
|
|
27120
27102
|
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
@@ -27549,7 +27531,7 @@ Check the render method of %s.`, getComponentNameFromFiber(current) || "Unknown"
|
|
|
27549
27531
|
return current;
|
|
27550
27532
|
}
|
|
27551
27533
|
var exports2 = {};
|
|
27552
|
-
var
|
|
27534
|
+
var assign = Object.assign, REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
27553
27535
|
Symbol.for("react.scope");
|
|
27554
27536
|
var REACT_ACTIVITY_TYPE = Symbol.for("react.activity");
|
|
27555
27537
|
Symbol.for("react.legacy_hidden");
|
|
@@ -27667,14 +27649,14 @@ Check the render method of %s.`, getComponentNameFromFiber(current) || "Unknown"
|
|
|
27667
27649
|
_threadCount: 0,
|
|
27668
27650
|
_currentRenderer: null,
|
|
27669
27651
|
_currentRenderer2: null
|
|
27670
|
-
},
|
|
27652
|
+
}, now = Scheduler.unstable_now, createTask = console.createTask ? console.createTask : function() {
|
|
27671
27653
|
return null;
|
|
27672
27654
|
}, renderStartTime = -0, commitStartTime = -0, commitEndTime = -0, commitErrors = null, profilerStartTime = -1.1, profilerEffectDuration = -0, componentEffectDuration = -0, componentEffectStartTime = -1.1, componentEffectEndTime = -1.1, componentEffectErrors = null, componentEffectSpawnedUpdate = false, blockingClampTime = -0, blockingUpdateTime = -1.1, blockingUpdateTask = null, blockingUpdateType = 0, blockingUpdateMethodName = null, blockingUpdateComponentName = null, blockingEventTime = -1.1, blockingEventType = null, blockingEventRepeatTime = -1.1, blockingSuspendedTime = -1.1, transitionClampTime = -0, transitionStartTime = -1.1, transitionUpdateTime = -1.1, transitionUpdateType = 0, transitionUpdateTask = null, transitionUpdateMethodName = null, transitionUpdateComponentName = null, transitionEventTime = -1.1, transitionEventType = null, transitionEventRepeatTime = -1.1, transitionSuspendedTime = -1.1, animatingTask = null, yieldReason = 0, yieldStartTime = -1.1, currentUpdateIsNested = false, nestedUpdateScheduled = false, firstScheduledRoot = null, lastScheduledRoot = null, didScheduleMicrotask = false, didScheduleMicrotask_act = false, mightHavePendingSyncWork = false, isFlushingWork = false, currentEventTransitionLane = 0, fakeActCallbackNode$1 = {}, currentEntangledListeners = null, currentEntangledPendingCount = 0, currentEntangledLane = 0, currentEntangledActionThenable = null, prevOnStartTransitionFinish = ReactSharedInternals.S;
|
|
27673
27655
|
ReactSharedInternals.S = function(transition, returnValue) {
|
|
27674
27656
|
globalMostRecentTransitionTime = now$1();
|
|
27675
27657
|
if (typeof returnValue === "object" && returnValue !== null && typeof returnValue.then === "function") {
|
|
27676
27658
|
if (0 > transitionStartTime && 0 > transitionUpdateTime) {
|
|
27677
|
-
transitionStartTime =
|
|
27659
|
+
transitionStartTime = now();
|
|
27678
27660
|
var newEventTime = resolveEventTimeStamp(), newEventType = resolveEventType();
|
|
27679
27661
|
if (newEventTime !== transitionEventRepeatTime || newEventType !== transitionEventType)
|
|
27680
27662
|
transitionEventRepeatTime = -1.1;
|
|
@@ -27855,10 +27837,10 @@ Learn more about this warning here: https://react.dev/link/legacy-context`, sort
|
|
|
27855
27837
|
}
|
|
27856
27838
|
}, callComponentWillUnmountInDEV = callComponentWillUnmount.react_stack_bottom_frame.bind(callComponentWillUnmount), callCreate = {
|
|
27857
27839
|
react_stack_bottom_frame: function(effect) {
|
|
27858
|
-
var
|
|
27840
|
+
var create = effect.create;
|
|
27859
27841
|
effect = effect.inst;
|
|
27860
|
-
|
|
27861
|
-
return effect.destroy =
|
|
27842
|
+
create = create();
|
|
27843
|
+
return effect.destroy = create;
|
|
27862
27844
|
}
|
|
27863
27845
|
}, callCreateInDEV = callCreate.react_stack_bottom_frame.bind(callCreate), callDestroy = {
|
|
27864
27846
|
react_stack_bottom_frame: function(current2, nearestMountedAncestor, destroy) {
|
|
@@ -27958,38 +27940,38 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
27958
27940
|
mountHookTypesDev();
|
|
27959
27941
|
return readContext(context);
|
|
27960
27942
|
},
|
|
27961
|
-
useEffect: function(
|
|
27943
|
+
useEffect: function(create, deps) {
|
|
27962
27944
|
currentHookNameInDev = "useEffect";
|
|
27963
27945
|
mountHookTypesDev();
|
|
27964
27946
|
checkDepsAreArrayDev(deps);
|
|
27965
|
-
return mountEffect(
|
|
27947
|
+
return mountEffect(create, deps);
|
|
27966
27948
|
},
|
|
27967
|
-
useImperativeHandle: function(ref,
|
|
27949
|
+
useImperativeHandle: function(ref, create, deps) {
|
|
27968
27950
|
currentHookNameInDev = "useImperativeHandle";
|
|
27969
27951
|
mountHookTypesDev();
|
|
27970
27952
|
checkDepsAreArrayDev(deps);
|
|
27971
|
-
return mountImperativeHandle(ref,
|
|
27953
|
+
return mountImperativeHandle(ref, create, deps);
|
|
27972
27954
|
},
|
|
27973
|
-
useInsertionEffect: function(
|
|
27955
|
+
useInsertionEffect: function(create, deps) {
|
|
27974
27956
|
currentHookNameInDev = "useInsertionEffect";
|
|
27975
27957
|
mountHookTypesDev();
|
|
27976
27958
|
checkDepsAreArrayDev(deps);
|
|
27977
|
-
mountEffectImpl(4, Insertion,
|
|
27959
|
+
mountEffectImpl(4, Insertion, create, deps);
|
|
27978
27960
|
},
|
|
27979
|
-
useLayoutEffect: function(
|
|
27961
|
+
useLayoutEffect: function(create, deps) {
|
|
27980
27962
|
currentHookNameInDev = "useLayoutEffect";
|
|
27981
27963
|
mountHookTypesDev();
|
|
27982
27964
|
checkDepsAreArrayDev(deps);
|
|
27983
|
-
return mountLayoutEffect(
|
|
27965
|
+
return mountLayoutEffect(create, deps);
|
|
27984
27966
|
},
|
|
27985
|
-
useMemo: function(
|
|
27967
|
+
useMemo: function(create, deps) {
|
|
27986
27968
|
currentHookNameInDev = "useMemo";
|
|
27987
27969
|
mountHookTypesDev();
|
|
27988
27970
|
checkDepsAreArrayDev(deps);
|
|
27989
27971
|
var prevDispatcher = ReactSharedInternals.H;
|
|
27990
27972
|
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV;
|
|
27991
27973
|
try {
|
|
27992
|
-
return mountMemo(
|
|
27974
|
+
return mountMemo(create, deps);
|
|
27993
27975
|
} finally {
|
|
27994
27976
|
ReactSharedInternals.H = prevDispatcher;
|
|
27995
27977
|
}
|
|
@@ -28089,33 +28071,33 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
28089
28071
|
updateHookTypesDev();
|
|
28090
28072
|
return readContext(context);
|
|
28091
28073
|
},
|
|
28092
|
-
useEffect: function(
|
|
28074
|
+
useEffect: function(create, deps) {
|
|
28093
28075
|
currentHookNameInDev = "useEffect";
|
|
28094
28076
|
updateHookTypesDev();
|
|
28095
|
-
return mountEffect(
|
|
28077
|
+
return mountEffect(create, deps);
|
|
28096
28078
|
},
|
|
28097
|
-
useImperativeHandle: function(ref,
|
|
28079
|
+
useImperativeHandle: function(ref, create, deps) {
|
|
28098
28080
|
currentHookNameInDev = "useImperativeHandle";
|
|
28099
28081
|
updateHookTypesDev();
|
|
28100
|
-
return mountImperativeHandle(ref,
|
|
28082
|
+
return mountImperativeHandle(ref, create, deps);
|
|
28101
28083
|
},
|
|
28102
|
-
useInsertionEffect: function(
|
|
28084
|
+
useInsertionEffect: function(create, deps) {
|
|
28103
28085
|
currentHookNameInDev = "useInsertionEffect";
|
|
28104
28086
|
updateHookTypesDev();
|
|
28105
|
-
mountEffectImpl(4, Insertion,
|
|
28087
|
+
mountEffectImpl(4, Insertion, create, deps);
|
|
28106
28088
|
},
|
|
28107
|
-
useLayoutEffect: function(
|
|
28089
|
+
useLayoutEffect: function(create, deps) {
|
|
28108
28090
|
currentHookNameInDev = "useLayoutEffect";
|
|
28109
28091
|
updateHookTypesDev();
|
|
28110
|
-
return mountLayoutEffect(
|
|
28092
|
+
return mountLayoutEffect(create, deps);
|
|
28111
28093
|
},
|
|
28112
|
-
useMemo: function(
|
|
28094
|
+
useMemo: function(create, deps) {
|
|
28113
28095
|
currentHookNameInDev = "useMemo";
|
|
28114
28096
|
updateHookTypesDev();
|
|
28115
28097
|
var prevDispatcher = ReactSharedInternals.H;
|
|
28116
28098
|
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV;
|
|
28117
28099
|
try {
|
|
28118
|
-
return mountMemo(
|
|
28100
|
+
return mountMemo(create, deps);
|
|
28119
28101
|
} finally {
|
|
28120
28102
|
ReactSharedInternals.H = prevDispatcher;
|
|
28121
28103
|
}
|
|
@@ -28215,33 +28197,33 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
28215
28197
|
updateHookTypesDev();
|
|
28216
28198
|
return readContext(context);
|
|
28217
28199
|
},
|
|
28218
|
-
useEffect: function(
|
|
28200
|
+
useEffect: function(create, deps) {
|
|
28219
28201
|
currentHookNameInDev = "useEffect";
|
|
28220
28202
|
updateHookTypesDev();
|
|
28221
|
-
updateEffectImpl(2048, Passive,
|
|
28203
|
+
updateEffectImpl(2048, Passive, create, deps);
|
|
28222
28204
|
},
|
|
28223
|
-
useImperativeHandle: function(ref,
|
|
28205
|
+
useImperativeHandle: function(ref, create, deps) {
|
|
28224
28206
|
currentHookNameInDev = "useImperativeHandle";
|
|
28225
28207
|
updateHookTypesDev();
|
|
28226
|
-
return updateImperativeHandle(ref,
|
|
28208
|
+
return updateImperativeHandle(ref, create, deps);
|
|
28227
28209
|
},
|
|
28228
|
-
useInsertionEffect: function(
|
|
28210
|
+
useInsertionEffect: function(create, deps) {
|
|
28229
28211
|
currentHookNameInDev = "useInsertionEffect";
|
|
28230
28212
|
updateHookTypesDev();
|
|
28231
|
-
return updateEffectImpl(4, Insertion,
|
|
28213
|
+
return updateEffectImpl(4, Insertion, create, deps);
|
|
28232
28214
|
},
|
|
28233
|
-
useLayoutEffect: function(
|
|
28215
|
+
useLayoutEffect: function(create, deps) {
|
|
28234
28216
|
currentHookNameInDev = "useLayoutEffect";
|
|
28235
28217
|
updateHookTypesDev();
|
|
28236
|
-
return updateEffectImpl(4, Layout,
|
|
28218
|
+
return updateEffectImpl(4, Layout, create, deps);
|
|
28237
28219
|
},
|
|
28238
|
-
useMemo: function(
|
|
28220
|
+
useMemo: function(create, deps) {
|
|
28239
28221
|
currentHookNameInDev = "useMemo";
|
|
28240
28222
|
updateHookTypesDev();
|
|
28241
28223
|
var prevDispatcher = ReactSharedInternals.H;
|
|
28242
28224
|
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV;
|
|
28243
28225
|
try {
|
|
28244
|
-
return updateMemo(
|
|
28226
|
+
return updateMemo(create, deps);
|
|
28245
28227
|
} finally {
|
|
28246
28228
|
ReactSharedInternals.H = prevDispatcher;
|
|
28247
28229
|
}
|
|
@@ -28341,33 +28323,33 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
28341
28323
|
updateHookTypesDev();
|
|
28342
28324
|
return readContext(context);
|
|
28343
28325
|
},
|
|
28344
|
-
useEffect: function(
|
|
28326
|
+
useEffect: function(create, deps) {
|
|
28345
28327
|
currentHookNameInDev = "useEffect";
|
|
28346
28328
|
updateHookTypesDev();
|
|
28347
|
-
updateEffectImpl(2048, Passive,
|
|
28329
|
+
updateEffectImpl(2048, Passive, create, deps);
|
|
28348
28330
|
},
|
|
28349
|
-
useImperativeHandle: function(ref,
|
|
28331
|
+
useImperativeHandle: function(ref, create, deps) {
|
|
28350
28332
|
currentHookNameInDev = "useImperativeHandle";
|
|
28351
28333
|
updateHookTypesDev();
|
|
28352
|
-
return updateImperativeHandle(ref,
|
|
28334
|
+
return updateImperativeHandle(ref, create, deps);
|
|
28353
28335
|
},
|
|
28354
|
-
useInsertionEffect: function(
|
|
28336
|
+
useInsertionEffect: function(create, deps) {
|
|
28355
28337
|
currentHookNameInDev = "useInsertionEffect";
|
|
28356
28338
|
updateHookTypesDev();
|
|
28357
|
-
return updateEffectImpl(4, Insertion,
|
|
28339
|
+
return updateEffectImpl(4, Insertion, create, deps);
|
|
28358
28340
|
},
|
|
28359
|
-
useLayoutEffect: function(
|
|
28341
|
+
useLayoutEffect: function(create, deps) {
|
|
28360
28342
|
currentHookNameInDev = "useLayoutEffect";
|
|
28361
28343
|
updateHookTypesDev();
|
|
28362
|
-
return updateEffectImpl(4, Layout,
|
|
28344
|
+
return updateEffectImpl(4, Layout, create, deps);
|
|
28363
28345
|
},
|
|
28364
|
-
useMemo: function(
|
|
28346
|
+
useMemo: function(create, deps) {
|
|
28365
28347
|
currentHookNameInDev = "useMemo";
|
|
28366
28348
|
updateHookTypesDev();
|
|
28367
28349
|
var prevDispatcher = ReactSharedInternals.H;
|
|
28368
28350
|
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnRerenderInDEV;
|
|
28369
28351
|
try {
|
|
28370
|
-
return updateMemo(
|
|
28352
|
+
return updateMemo(create, deps);
|
|
28371
28353
|
} finally {
|
|
28372
28354
|
ReactSharedInternals.H = prevDispatcher;
|
|
28373
28355
|
}
|
|
@@ -28473,38 +28455,38 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
28473
28455
|
mountHookTypesDev();
|
|
28474
28456
|
return readContext(context);
|
|
28475
28457
|
},
|
|
28476
|
-
useEffect: function(
|
|
28458
|
+
useEffect: function(create, deps) {
|
|
28477
28459
|
currentHookNameInDev = "useEffect";
|
|
28478
28460
|
warnInvalidHookAccess();
|
|
28479
28461
|
mountHookTypesDev();
|
|
28480
|
-
return mountEffect(
|
|
28462
|
+
return mountEffect(create, deps);
|
|
28481
28463
|
},
|
|
28482
|
-
useImperativeHandle: function(ref,
|
|
28464
|
+
useImperativeHandle: function(ref, create, deps) {
|
|
28483
28465
|
currentHookNameInDev = "useImperativeHandle";
|
|
28484
28466
|
warnInvalidHookAccess();
|
|
28485
28467
|
mountHookTypesDev();
|
|
28486
|
-
return mountImperativeHandle(ref,
|
|
28468
|
+
return mountImperativeHandle(ref, create, deps);
|
|
28487
28469
|
},
|
|
28488
|
-
useInsertionEffect: function(
|
|
28470
|
+
useInsertionEffect: function(create, deps) {
|
|
28489
28471
|
currentHookNameInDev = "useInsertionEffect";
|
|
28490
28472
|
warnInvalidHookAccess();
|
|
28491
28473
|
mountHookTypesDev();
|
|
28492
|
-
mountEffectImpl(4, Insertion,
|
|
28474
|
+
mountEffectImpl(4, Insertion, create, deps);
|
|
28493
28475
|
},
|
|
28494
|
-
useLayoutEffect: function(
|
|
28476
|
+
useLayoutEffect: function(create, deps) {
|
|
28495
28477
|
currentHookNameInDev = "useLayoutEffect";
|
|
28496
28478
|
warnInvalidHookAccess();
|
|
28497
28479
|
mountHookTypesDev();
|
|
28498
|
-
return mountLayoutEffect(
|
|
28480
|
+
return mountLayoutEffect(create, deps);
|
|
28499
28481
|
},
|
|
28500
|
-
useMemo: function(
|
|
28482
|
+
useMemo: function(create, deps) {
|
|
28501
28483
|
currentHookNameInDev = "useMemo";
|
|
28502
28484
|
warnInvalidHookAccess();
|
|
28503
28485
|
mountHookTypesDev();
|
|
28504
28486
|
var prevDispatcher = ReactSharedInternals.H;
|
|
28505
28487
|
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV;
|
|
28506
28488
|
try {
|
|
28507
|
-
return mountMemo(
|
|
28489
|
+
return mountMemo(create, deps);
|
|
28508
28490
|
} finally {
|
|
28509
28491
|
ReactSharedInternals.H = prevDispatcher;
|
|
28510
28492
|
}
|
|
@@ -28586,9 +28568,9 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
28586
28568
|
mountHookTypesDev();
|
|
28587
28569
|
return mountOptimistic(passthrough);
|
|
28588
28570
|
},
|
|
28589
|
-
useMemoCache: function(
|
|
28571
|
+
useMemoCache: function(size) {
|
|
28590
28572
|
warnInvalidHookAccess();
|
|
28591
|
-
return useMemoCache(
|
|
28573
|
+
return useMemoCache(size);
|
|
28592
28574
|
},
|
|
28593
28575
|
useHostTransitionStatus,
|
|
28594
28576
|
useCacheRefresh: function() {
|
|
@@ -28624,38 +28606,38 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
28624
28606
|
updateHookTypesDev();
|
|
28625
28607
|
return readContext(context);
|
|
28626
28608
|
},
|
|
28627
|
-
useEffect: function(
|
|
28609
|
+
useEffect: function(create, deps) {
|
|
28628
28610
|
currentHookNameInDev = "useEffect";
|
|
28629
28611
|
warnInvalidHookAccess();
|
|
28630
28612
|
updateHookTypesDev();
|
|
28631
|
-
updateEffectImpl(2048, Passive,
|
|
28613
|
+
updateEffectImpl(2048, Passive, create, deps);
|
|
28632
28614
|
},
|
|
28633
|
-
useImperativeHandle: function(ref,
|
|
28615
|
+
useImperativeHandle: function(ref, create, deps) {
|
|
28634
28616
|
currentHookNameInDev = "useImperativeHandle";
|
|
28635
28617
|
warnInvalidHookAccess();
|
|
28636
28618
|
updateHookTypesDev();
|
|
28637
|
-
return updateImperativeHandle(ref,
|
|
28619
|
+
return updateImperativeHandle(ref, create, deps);
|
|
28638
28620
|
},
|
|
28639
|
-
useInsertionEffect: function(
|
|
28621
|
+
useInsertionEffect: function(create, deps) {
|
|
28640
28622
|
currentHookNameInDev = "useInsertionEffect";
|
|
28641
28623
|
warnInvalidHookAccess();
|
|
28642
28624
|
updateHookTypesDev();
|
|
28643
|
-
return updateEffectImpl(4, Insertion,
|
|
28625
|
+
return updateEffectImpl(4, Insertion, create, deps);
|
|
28644
28626
|
},
|
|
28645
|
-
useLayoutEffect: function(
|
|
28627
|
+
useLayoutEffect: function(create, deps) {
|
|
28646
28628
|
currentHookNameInDev = "useLayoutEffect";
|
|
28647
28629
|
warnInvalidHookAccess();
|
|
28648
28630
|
updateHookTypesDev();
|
|
28649
|
-
return updateEffectImpl(4, Layout,
|
|
28631
|
+
return updateEffectImpl(4, Layout, create, deps);
|
|
28650
28632
|
},
|
|
28651
|
-
useMemo: function(
|
|
28633
|
+
useMemo: function(create, deps) {
|
|
28652
28634
|
currentHookNameInDev = "useMemo";
|
|
28653
28635
|
warnInvalidHookAccess();
|
|
28654
28636
|
updateHookTypesDev();
|
|
28655
28637
|
var prevDispatcher = ReactSharedInternals.H;
|
|
28656
28638
|
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV;
|
|
28657
28639
|
try {
|
|
28658
|
-
return updateMemo(
|
|
28640
|
+
return updateMemo(create, deps);
|
|
28659
28641
|
} finally {
|
|
28660
28642
|
ReactSharedInternals.H = prevDispatcher;
|
|
28661
28643
|
}
|
|
@@ -28737,9 +28719,9 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
28737
28719
|
updateHookTypesDev();
|
|
28738
28720
|
return updateOptimistic(passthrough, reducer);
|
|
28739
28721
|
},
|
|
28740
|
-
useMemoCache: function(
|
|
28722
|
+
useMemoCache: function(size) {
|
|
28741
28723
|
warnInvalidHookAccess();
|
|
28742
|
-
return useMemoCache(
|
|
28724
|
+
return useMemoCache(size);
|
|
28743
28725
|
},
|
|
28744
28726
|
useHostTransitionStatus,
|
|
28745
28727
|
useCacheRefresh: function() {
|
|
@@ -28775,38 +28757,38 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
28775
28757
|
updateHookTypesDev();
|
|
28776
28758
|
return readContext(context);
|
|
28777
28759
|
},
|
|
28778
|
-
useEffect: function(
|
|
28760
|
+
useEffect: function(create, deps) {
|
|
28779
28761
|
currentHookNameInDev = "useEffect";
|
|
28780
28762
|
warnInvalidHookAccess();
|
|
28781
28763
|
updateHookTypesDev();
|
|
28782
|
-
updateEffectImpl(2048, Passive,
|
|
28764
|
+
updateEffectImpl(2048, Passive, create, deps);
|
|
28783
28765
|
},
|
|
28784
|
-
useImperativeHandle: function(ref,
|
|
28766
|
+
useImperativeHandle: function(ref, create, deps) {
|
|
28785
28767
|
currentHookNameInDev = "useImperativeHandle";
|
|
28786
28768
|
warnInvalidHookAccess();
|
|
28787
28769
|
updateHookTypesDev();
|
|
28788
|
-
return updateImperativeHandle(ref,
|
|
28770
|
+
return updateImperativeHandle(ref, create, deps);
|
|
28789
28771
|
},
|
|
28790
|
-
useInsertionEffect: function(
|
|
28772
|
+
useInsertionEffect: function(create, deps) {
|
|
28791
28773
|
currentHookNameInDev = "useInsertionEffect";
|
|
28792
28774
|
warnInvalidHookAccess();
|
|
28793
28775
|
updateHookTypesDev();
|
|
28794
|
-
return updateEffectImpl(4, Insertion,
|
|
28776
|
+
return updateEffectImpl(4, Insertion, create, deps);
|
|
28795
28777
|
},
|
|
28796
|
-
useLayoutEffect: function(
|
|
28778
|
+
useLayoutEffect: function(create, deps) {
|
|
28797
28779
|
currentHookNameInDev = "useLayoutEffect";
|
|
28798
28780
|
warnInvalidHookAccess();
|
|
28799
28781
|
updateHookTypesDev();
|
|
28800
|
-
return updateEffectImpl(4, Layout,
|
|
28782
|
+
return updateEffectImpl(4, Layout, create, deps);
|
|
28801
28783
|
},
|
|
28802
|
-
useMemo: function(
|
|
28784
|
+
useMemo: function(create, deps) {
|
|
28803
28785
|
currentHookNameInDev = "useMemo";
|
|
28804
28786
|
warnInvalidHookAccess();
|
|
28805
28787
|
updateHookTypesDev();
|
|
28806
28788
|
var prevDispatcher = ReactSharedInternals.H;
|
|
28807
28789
|
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV;
|
|
28808
28790
|
try {
|
|
28809
|
-
return updateMemo(
|
|
28791
|
+
return updateMemo(create, deps);
|
|
28810
28792
|
} finally {
|
|
28811
28793
|
ReactSharedInternals.H = prevDispatcher;
|
|
28812
28794
|
}
|
|
@@ -28888,9 +28870,9 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
28888
28870
|
updateHookTypesDev();
|
|
28889
28871
|
return rerenderOptimistic(passthrough, reducer);
|
|
28890
28872
|
},
|
|
28891
|
-
useMemoCache: function(
|
|
28873
|
+
useMemoCache: function(size) {
|
|
28892
28874
|
warnInvalidHookAccess();
|
|
28893
|
-
return useMemoCache(
|
|
28875
|
+
return useMemoCache(size);
|
|
28894
28876
|
},
|
|
28895
28877
|
useHostTransitionStatus,
|
|
28896
28878
|
useCacheRefresh: function() {
|
|
@@ -28920,27 +28902,27 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
28920
28902
|
var classComponentUpdater = {
|
|
28921
28903
|
enqueueSetState: function(inst, payload, callback) {
|
|
28922
28904
|
inst = inst._reactInternals;
|
|
28923
|
-
var lane = requestUpdateLane(inst),
|
|
28924
|
-
|
|
28925
|
-
callback !== undefined && callback !== null && (warnOnInvalidCallback(callback),
|
|
28926
|
-
payload = enqueueUpdate(inst,
|
|
28905
|
+
var lane = requestUpdateLane(inst), update = createUpdate(lane);
|
|
28906
|
+
update.payload = payload;
|
|
28907
|
+
callback !== undefined && callback !== null && (warnOnInvalidCallback(callback), update.callback = callback);
|
|
28908
|
+
payload = enqueueUpdate(inst, update, lane);
|
|
28927
28909
|
payload !== null && (startUpdateTimerByLane(lane, "this.setState()", inst), scheduleUpdateOnFiber(payload, inst, lane), entangleTransitions(payload, inst, lane));
|
|
28928
28910
|
},
|
|
28929
28911
|
enqueueReplaceState: function(inst, payload, callback) {
|
|
28930
28912
|
inst = inst._reactInternals;
|
|
28931
|
-
var lane = requestUpdateLane(inst),
|
|
28932
|
-
|
|
28933
|
-
|
|
28934
|
-
callback !== undefined && callback !== null && (warnOnInvalidCallback(callback),
|
|
28935
|
-
payload = enqueueUpdate(inst,
|
|
28913
|
+
var lane = requestUpdateLane(inst), update = createUpdate(lane);
|
|
28914
|
+
update.tag = ReplaceState;
|
|
28915
|
+
update.payload = payload;
|
|
28916
|
+
callback !== undefined && callback !== null && (warnOnInvalidCallback(callback), update.callback = callback);
|
|
28917
|
+
payload = enqueueUpdate(inst, update, lane);
|
|
28936
28918
|
payload !== null && (startUpdateTimerByLane(lane, "this.replaceState()", inst), scheduleUpdateOnFiber(payload, inst, lane), entangleTransitions(payload, inst, lane));
|
|
28937
28919
|
},
|
|
28938
28920
|
enqueueForceUpdate: function(inst, callback) {
|
|
28939
28921
|
inst = inst._reactInternals;
|
|
28940
|
-
var lane = requestUpdateLane(inst),
|
|
28941
|
-
|
|
28942
|
-
callback !== undefined && callback !== null && (warnOnInvalidCallback(callback),
|
|
28943
|
-
callback = enqueueUpdate(inst,
|
|
28922
|
+
var lane = requestUpdateLane(inst), update = createUpdate(lane);
|
|
28923
|
+
update.tag = ForceUpdate;
|
|
28924
|
+
callback !== undefined && callback !== null && (warnOnInvalidCallback(callback), update.callback = callback);
|
|
28925
|
+
callback = enqueueUpdate(inst, update, lane);
|
|
28944
28926
|
callback !== null && (startUpdateTimerByLane(lane, "this.forceUpdate()", inst), scheduleUpdateOnFiber(callback, inst, lane), entangleTransitions(callback, inst, lane));
|
|
28945
28927
|
}
|
|
28946
28928
|
}, componentName = null, errorBoundaryName = null, SelectiveHydrationException = Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."), didReceiveUpdate = false;
|
|
@@ -28995,15 +28977,15 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
28995
28977
|
var overrideHookState = null, overrideHookStateDeletePath = null, overrideHookStateRenamePath = null, overrideProps = null, overridePropsDeletePath = null, overridePropsRenamePath = null, scheduleUpdate = null, scheduleRetry = null, setErrorHandler = null, setSuspenseHandler = null;
|
|
28996
28978
|
overrideHookState = function(fiber, id, path10, value) {
|
|
28997
28979
|
id = findHook(fiber, id);
|
|
28998
|
-
id !== null && (path10 = copyWithSetImpl(id.memoizedState, path10, 0, value), id.memoizedState = path10, id.baseState = path10, fiber.memoizedProps =
|
|
28980
|
+
id !== null && (path10 = copyWithSetImpl(id.memoizedState, path10, 0, value), id.memoizedState = path10, id.baseState = path10, fiber.memoizedProps = assign({}, fiber.memoizedProps), path10 = enqueueConcurrentRenderForLane(fiber, 2), path10 !== null && scheduleUpdateOnFiber(path10, fiber, 2));
|
|
28999
28981
|
};
|
|
29000
28982
|
overrideHookStateDeletePath = function(fiber, id, path10) {
|
|
29001
28983
|
id = findHook(fiber, id);
|
|
29002
|
-
id !== null && (path10 = copyWithDeleteImpl(id.memoizedState, path10, 0), id.memoizedState = path10, id.baseState = path10, fiber.memoizedProps =
|
|
28984
|
+
id !== null && (path10 = copyWithDeleteImpl(id.memoizedState, path10, 0), id.memoizedState = path10, id.baseState = path10, fiber.memoizedProps = assign({}, fiber.memoizedProps), path10 = enqueueConcurrentRenderForLane(fiber, 2), path10 !== null && scheduleUpdateOnFiber(path10, fiber, 2));
|
|
29003
28985
|
};
|
|
29004
28986
|
overrideHookStateRenamePath = function(fiber, id, oldPath, newPath) {
|
|
29005
28987
|
id = findHook(fiber, id);
|
|
29006
|
-
id !== null && (oldPath = copyWithRename(id.memoizedState, oldPath, newPath), id.memoizedState = oldPath, id.baseState = oldPath, fiber.memoizedProps =
|
|
28988
|
+
id !== null && (oldPath = copyWithRename(id.memoizedState, oldPath, newPath), id.memoizedState = oldPath, id.baseState = oldPath, fiber.memoizedProps = assign({}, fiber.memoizedProps), oldPath = enqueueConcurrentRenderForLane(fiber, 2), oldPath !== null && scheduleUpdateOnFiber(oldPath, fiber, 2));
|
|
29007
28989
|
};
|
|
29008
28990
|
overrideProps = function(fiber, path10, value) {
|
|
29009
28991
|
fiber.pendingProps = copyWithSetImpl(fiber.memoizedProps, path10, 0, value);
|
|
@@ -29364,7 +29346,7 @@ No matching component was found for:
|
|
|
29364
29346
|
throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");
|
|
29365
29347
|
var queue = ensureFormComponentIsStateful(formFiber).queue;
|
|
29366
29348
|
startHostActionTimer(formFiber);
|
|
29367
|
-
startTransition(formFiber, queue, pendingState, NotPendingTransition, action === null ?
|
|
29349
|
+
startTransition(formFiber, queue, pendingState, NotPendingTransition, action === null ? noop : function() {
|
|
29368
29350
|
ReactSharedInternals.T === null && console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");
|
|
29369
29351
|
var stateHook = ensureFormComponentIsStateful(formFiber);
|
|
29370
29352
|
stateHook.next === null && (stateHook = formFiber.alternate.memoizedState);
|
|
@@ -29477,7 +29459,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
29477
29459
|
return o2 && typeof Symbol == "function" && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
29478
29460
|
}, _typeof(o);
|
|
29479
29461
|
}
|
|
29480
|
-
var ErrorStackParser = __webpack_require__2(206), React = __webpack_require__2(189),
|
|
29462
|
+
var ErrorStackParser = __webpack_require__2(206), React = __webpack_require__2(189), assign = Object.assign, ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), hasOwnProperty = Object.prototype.hasOwnProperty, hookLog = [], primitiveStackCache = null;
|
|
29481
29463
|
function getPrimitiveStackCache() {
|
|
29482
29464
|
if (primitiveStackCache === null) {
|
|
29483
29465
|
var cache3 = new Map;
|
|
@@ -29633,13 +29615,13 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
29633
29615
|
});
|
|
29634
29616
|
return value;
|
|
29635
29617
|
},
|
|
29636
|
-
useEffect: function useEffect(
|
|
29618
|
+
useEffect: function useEffect(create) {
|
|
29637
29619
|
nextHook();
|
|
29638
29620
|
hookLog.push({
|
|
29639
29621
|
displayName: null,
|
|
29640
29622
|
primitive: "Effect",
|
|
29641
29623
|
stackError: Error(),
|
|
29642
|
-
value:
|
|
29624
|
+
value: create,
|
|
29643
29625
|
debugInfo: null,
|
|
29644
29626
|
dispatcherHookName: "Effect"
|
|
29645
29627
|
});
|
|
@@ -29657,24 +29639,24 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
29657
29639
|
dispatcherHookName: "ImperativeHandle"
|
|
29658
29640
|
});
|
|
29659
29641
|
},
|
|
29660
|
-
useLayoutEffect: function useLayoutEffect(
|
|
29642
|
+
useLayoutEffect: function useLayoutEffect(create) {
|
|
29661
29643
|
nextHook();
|
|
29662
29644
|
hookLog.push({
|
|
29663
29645
|
displayName: null,
|
|
29664
29646
|
primitive: "LayoutEffect",
|
|
29665
29647
|
stackError: Error(),
|
|
29666
|
-
value:
|
|
29648
|
+
value: create,
|
|
29667
29649
|
debugInfo: null,
|
|
29668
29650
|
dispatcherHookName: "LayoutEffect"
|
|
29669
29651
|
});
|
|
29670
29652
|
},
|
|
29671
|
-
useInsertionEffect: function useInsertionEffect(
|
|
29653
|
+
useInsertionEffect: function useInsertionEffect(create) {
|
|
29672
29654
|
nextHook();
|
|
29673
29655
|
hookLog.push({
|
|
29674
29656
|
displayName: null,
|
|
29675
29657
|
primitive: "InsertionEffect",
|
|
29676
29658
|
stackError: Error(),
|
|
29677
|
-
value:
|
|
29659
|
+
value: create,
|
|
29678
29660
|
debugInfo: null,
|
|
29679
29661
|
dispatcherHookName: "InsertionEffect"
|
|
29680
29662
|
});
|
|
@@ -29894,7 +29876,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
29894
29876
|
});
|
|
29895
29877
|
return [passthrough, function() {}];
|
|
29896
29878
|
},
|
|
29897
|
-
useMemoCache: function useMemoCache(
|
|
29879
|
+
useMemoCache: function useMemoCache(size) {
|
|
29898
29880
|
var fiber = currentFiber;
|
|
29899
29881
|
if (fiber == null)
|
|
29900
29882
|
return [];
|
|
@@ -29903,8 +29885,8 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
29903
29885
|
return [];
|
|
29904
29886
|
var data = fiber.data[fiber.index];
|
|
29905
29887
|
if (data === undefined) {
|
|
29906
|
-
data = fiber.data[fiber.index] = Array(
|
|
29907
|
-
for (var i2 = 0;i2 <
|
|
29888
|
+
data = fiber.data[fiber.index] = Array(size);
|
|
29889
|
+
for (var i2 = 0;i2 < size; i2++)
|
|
29908
29890
|
data[i2] = REACT_MEMO_CACHE_SENTINEL;
|
|
29909
29891
|
}
|
|
29910
29892
|
fiber.index++;
|
|
@@ -29935,7 +29917,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
29935
29917
|
return callback;
|
|
29936
29918
|
}
|
|
29937
29919
|
}, DispatcherProxyHandler = {
|
|
29938
|
-
get: function
|
|
29920
|
+
get: function get(target, prop) {
|
|
29939
29921
|
if (target.hasOwnProperty(prop))
|
|
29940
29922
|
return target[prop];
|
|
29941
29923
|
target = Error("Missing method in Dispatcher: " + prop);
|
|
@@ -30129,7 +30111,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30129
30111
|
thenableState = fiber.type;
|
|
30130
30112
|
var props = fiber.memoizedProps;
|
|
30131
30113
|
if (thenableState !== fiber.elementType && thenableState && thenableState.defaultProps) {
|
|
30132
|
-
props =
|
|
30114
|
+
props = assign({}, props);
|
|
30133
30115
|
var defaultProps = thenableState.defaultProps;
|
|
30134
30116
|
for (propName in defaultProps)
|
|
30135
30117
|
props[propName] === undefined && (props[propName] = defaultProps[propName]);
|
|
@@ -30200,7 +30182,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30200
30182
|
enqueueForceUpdate: function enqueueForceUpdate() {},
|
|
30201
30183
|
enqueueReplaceState: function enqueueReplaceState() {},
|
|
30202
30184
|
enqueueSetState: function enqueueSetState() {}
|
|
30203
|
-
},
|
|
30185
|
+
}, assign = Object.assign, emptyObject = {};
|
|
30204
30186
|
function Component(props, context, updater) {
|
|
30205
30187
|
this.props = props;
|
|
30206
30188
|
this.context = context;
|
|
@@ -30226,10 +30208,10 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30226
30208
|
}
|
|
30227
30209
|
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy;
|
|
30228
30210
|
pureComponentPrototype.constructor = PureComponent;
|
|
30229
|
-
|
|
30211
|
+
assign(pureComponentPrototype, Component.prototype);
|
|
30230
30212
|
pureComponentPrototype.isPureReactComponent = true;
|
|
30231
30213
|
var isArrayImpl = Array.isArray;
|
|
30232
|
-
function
|
|
30214
|
+
function noop() {}
|
|
30233
30215
|
var ReactSharedInternals = {
|
|
30234
30216
|
H: null,
|
|
30235
30217
|
A: null,
|
|
@@ -30253,7 +30235,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30253
30235
|
function isValidElement(object) {
|
|
30254
30236
|
return _typeof(object) === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
30255
30237
|
}
|
|
30256
|
-
function
|
|
30238
|
+
function escape(key) {
|
|
30257
30239
|
var escaperLookup = {
|
|
30258
30240
|
"=": "=0",
|
|
30259
30241
|
":": "=2"
|
|
@@ -30264,7 +30246,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30264
30246
|
}
|
|
30265
30247
|
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
30266
30248
|
function getElementKey(element, index) {
|
|
30267
|
-
return _typeof(element) === "object" && element !== null && element.key != null ?
|
|
30249
|
+
return _typeof(element) === "object" && element !== null && element.key != null ? escape("" + element.key) : index.toString(36);
|
|
30268
30250
|
}
|
|
30269
30251
|
function resolveThenable(thenable) {
|
|
30270
30252
|
switch (thenable.status) {
|
|
@@ -30273,7 +30255,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30273
30255
|
case "rejected":
|
|
30274
30256
|
throw thenable.reason;
|
|
30275
30257
|
default:
|
|
30276
|
-
switch (typeof thenable.status === "string" ? thenable.then(
|
|
30258
|
+
switch (typeof thenable.status === "string" ? thenable.then(noop, noop) : (thenable.status = "pending", thenable.then(function(fulfilledValue) {
|
|
30277
30259
|
thenable.status === "pending" && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
30278
30260
|
}, function(error) {
|
|
30279
30261
|
thenable.status === "pending" && (thenable.status = "rejected", thenable.reason = error);
|
|
@@ -30333,11 +30315,11 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30333
30315
|
function mapChildren(children, func, context) {
|
|
30334
30316
|
if (children == null)
|
|
30335
30317
|
return children;
|
|
30336
|
-
var
|
|
30337
|
-
mapIntoArray(children,
|
|
30318
|
+
var result = [], count = 0;
|
|
30319
|
+
mapIntoArray(children, result, "", "", function(child) {
|
|
30338
30320
|
return func.call(context, child, count++);
|
|
30339
30321
|
});
|
|
30340
|
-
return
|
|
30322
|
+
return result;
|
|
30341
30323
|
}
|
|
30342
30324
|
function lazyInitializer(payload) {
|
|
30343
30325
|
if (payload._status === -1) {
|
|
@@ -30383,7 +30365,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30383
30365
|
try {
|
|
30384
30366
|
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
30385
30367
|
onStartTransitionFinish !== null && onStartTransitionFinish(currentTransition, returnValue);
|
|
30386
|
-
_typeof(returnValue) === "object" && returnValue !== null && typeof returnValue.then === "function" && returnValue.then(
|
|
30368
|
+
_typeof(returnValue) === "object" && returnValue !== null && typeof returnValue.then === "function" && returnValue.then(noop, reportGlobalError);
|
|
30387
30369
|
} catch (error) {
|
|
30388
30370
|
reportGlobalError(error);
|
|
30389
30371
|
} finally {
|
|
@@ -30400,7 +30382,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30400
30382
|
}
|
|
30401
30383
|
var Children = {
|
|
30402
30384
|
map: mapChildren,
|
|
30403
|
-
forEach: function
|
|
30385
|
+
forEach: function forEach(children, forEachFunc, forEachContext) {
|
|
30404
30386
|
mapChildren(children, function() {
|
|
30405
30387
|
forEachFunc.apply(this, arguments);
|
|
30406
30388
|
}, forEachContext);
|
|
@@ -30412,7 +30394,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30412
30394
|
});
|
|
30413
30395
|
return n;
|
|
30414
30396
|
},
|
|
30415
|
-
toArray: function
|
|
30397
|
+
toArray: function toArray(children) {
|
|
30416
30398
|
return mapChildren(children, function(child) {
|
|
30417
30399
|
return child;
|
|
30418
30400
|
}) || [];
|
|
@@ -30435,8 +30417,8 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30435
30417
|
exports2.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
30436
30418
|
exports2.__COMPILER_RUNTIME = {
|
|
30437
30419
|
__proto__: null,
|
|
30438
|
-
c: function c(
|
|
30439
|
-
return ReactSharedInternals.H.useMemoCache(
|
|
30420
|
+
c: function c(size) {
|
|
30421
|
+
return ReactSharedInternals.H.useMemoCache(size);
|
|
30440
30422
|
}
|
|
30441
30423
|
};
|
|
30442
30424
|
exports2.addTransitionType = addTransitionType;
|
|
@@ -30451,7 +30433,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30451
30433
|
exports2.cloneElement = function(element, config, children) {
|
|
30452
30434
|
if (element === null || element === undefined)
|
|
30453
30435
|
throw Error("The argument must be a React element, but you passed " + element + ".");
|
|
30454
|
-
var props =
|
|
30436
|
+
var props = assign({}, element.props), key = element.key;
|
|
30455
30437
|
if (config != null)
|
|
30456
30438
|
for (propName in config.key !== undefined && (key = "" + config.key), config)
|
|
30457
30439
|
!hasOwnProperty.call(config, propName) || propName === "key" || propName === "__self" || propName === "__source" || propName === "ref" && config.ref === undefined || (props[propName] = config[propName]);
|
|
@@ -30561,7 +30543,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30561
30543
|
} finally {
|
|
30562
30544
|
ReactSharedInternals.T = prevTransition;
|
|
30563
30545
|
}
|
|
30564
|
-
return
|
|
30546
|
+
return noop;
|
|
30565
30547
|
};
|
|
30566
30548
|
exports2.unstable_useCacheRefresh = function() {
|
|
30567
30549
|
return ReactSharedInternals.H.useCacheRefresh();
|
|
@@ -30582,8 +30564,8 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30582
30564
|
exports2.useDeferredValue = function(value, initialValue) {
|
|
30583
30565
|
return ReactSharedInternals.H.useDeferredValue(value, initialValue);
|
|
30584
30566
|
};
|
|
30585
|
-
exports2.useEffect = function(
|
|
30586
|
-
return ReactSharedInternals.H.useEffect(
|
|
30567
|
+
exports2.useEffect = function(create, deps) {
|
|
30568
|
+
return ReactSharedInternals.H.useEffect(create, deps);
|
|
30587
30569
|
};
|
|
30588
30570
|
exports2.useEffectEvent = function(callback) {
|
|
30589
30571
|
return ReactSharedInternals.H.useEffectEvent(callback);
|
|
@@ -30591,17 +30573,17 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30591
30573
|
exports2.useId = function() {
|
|
30592
30574
|
return ReactSharedInternals.H.useId();
|
|
30593
30575
|
};
|
|
30594
|
-
exports2.useImperativeHandle = function(ref,
|
|
30595
|
-
return ReactSharedInternals.H.useImperativeHandle(ref,
|
|
30576
|
+
exports2.useImperativeHandle = function(ref, create, deps) {
|
|
30577
|
+
return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
|
|
30596
30578
|
};
|
|
30597
|
-
exports2.useInsertionEffect = function(
|
|
30598
|
-
return ReactSharedInternals.H.useInsertionEffect(
|
|
30579
|
+
exports2.useInsertionEffect = function(create, deps) {
|
|
30580
|
+
return ReactSharedInternals.H.useInsertionEffect(create, deps);
|
|
30599
30581
|
};
|
|
30600
|
-
exports2.useLayoutEffect = function(
|
|
30601
|
-
return ReactSharedInternals.H.useLayoutEffect(
|
|
30582
|
+
exports2.useLayoutEffect = function(create, deps) {
|
|
30583
|
+
return ReactSharedInternals.H.useLayoutEffect(create, deps);
|
|
30602
30584
|
};
|
|
30603
|
-
exports2.useMemo = function(
|
|
30604
|
-
return ReactSharedInternals.H.useMemo(
|
|
30585
|
+
exports2.useMemo = function(create, deps) {
|
|
30586
|
+
return ReactSharedInternals.H.useMemo(create, deps);
|
|
30605
30587
|
};
|
|
30606
30588
|
exports2.useOptimistic = useOptimistic;
|
|
30607
30589
|
exports2.useReducer = function(reducer, initialArg, init) {
|
|
@@ -30704,8 +30686,8 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30704
30686
|
});
|
|
30705
30687
|
} else {
|
|
30706
30688
|
var functionNameRegex = /((.*".+"[^@]*)?[^@]*)(?:@)/;
|
|
30707
|
-
var
|
|
30708
|
-
var functionName =
|
|
30689
|
+
var matches = line.match(functionNameRegex);
|
|
30690
|
+
var functionName = matches && matches[1] ? matches[1] : undefined;
|
|
30709
30691
|
var locationParts = this.extractLocation(line.replace(functionNameRegex, ""));
|
|
30710
30692
|
return new StackFrame({
|
|
30711
30693
|
functionName,
|
|
@@ -30733,28 +30715,28 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30733
30715
|
var lineRE = /Line (\d+).*script (?:in )?(\S+)/i;
|
|
30734
30716
|
var lines = e.message.split(`
|
|
30735
30717
|
`);
|
|
30736
|
-
var
|
|
30718
|
+
var result = [];
|
|
30737
30719
|
for (var i2 = 2, len = lines.length;i2 < len; i2 += 2) {
|
|
30738
30720
|
var match = lineRE.exec(lines[i2]);
|
|
30739
30721
|
if (match) {
|
|
30740
|
-
|
|
30722
|
+
result.push(new StackFrame({
|
|
30741
30723
|
fileName: match[2],
|
|
30742
30724
|
lineNumber: match[1],
|
|
30743
30725
|
source: lines[i2]
|
|
30744
30726
|
}));
|
|
30745
30727
|
}
|
|
30746
30728
|
}
|
|
30747
|
-
return
|
|
30729
|
+
return result;
|
|
30748
30730
|
},
|
|
30749
30731
|
parseOpera10: function ErrorStackParser$$parseOpera10(e) {
|
|
30750
30732
|
var lineRE = /Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i;
|
|
30751
30733
|
var lines = e.stacktrace.split(`
|
|
30752
30734
|
`);
|
|
30753
|
-
var
|
|
30735
|
+
var result = [];
|
|
30754
30736
|
for (var i2 = 0, len = lines.length;i2 < len; i2 += 2) {
|
|
30755
30737
|
var match = lineRE.exec(lines[i2]);
|
|
30756
30738
|
if (match) {
|
|
30757
|
-
|
|
30739
|
+
result.push(new StackFrame({
|
|
30758
30740
|
functionName: match[3] || undefined,
|
|
30759
30741
|
fileName: match[2],
|
|
30760
30742
|
lineNumber: match[1],
|
|
@@ -30762,7 +30744,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30762
30744
|
}));
|
|
30763
30745
|
}
|
|
30764
30746
|
}
|
|
30765
|
-
return
|
|
30747
|
+
return result;
|
|
30766
30748
|
},
|
|
30767
30749
|
parseOpera11: function ErrorStackParser$$parseOpera11(error) {
|
|
30768
30750
|
var filtered = error.stack.split(`
|
|
@@ -30851,7 +30833,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30851
30833
|
var LRU_LIST = Symbol("lruList");
|
|
30852
30834
|
var CACHE = Symbol("cache");
|
|
30853
30835
|
var UPDATE_AGE_ON_GET = Symbol("updateAgeOnGet");
|
|
30854
|
-
var naiveLength = function
|
|
30836
|
+
var naiveLength = function naiveLength() {
|
|
30855
30837
|
return 1;
|
|
30856
30838
|
};
|
|
30857
30839
|
var LRUCache = /* @__PURE__ */ function() {
|
|
@@ -30865,7 +30847,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30865
30847
|
options2 = {};
|
|
30866
30848
|
if (options2.max && (typeof options2.max !== "number" || options2.max < 0))
|
|
30867
30849
|
throw new TypeError("max must be a non-negative number");
|
|
30868
|
-
var
|
|
30850
|
+
var max = this[MAX] = options2.max || Infinity;
|
|
30869
30851
|
var lc = options2.length || naiveLength;
|
|
30870
30852
|
this[LENGTH_CALCULATOR] = typeof lc !== "function" ? naiveLength : lc;
|
|
30871
30853
|
this[ALLOW_STALE] = options2.stale || false;
|
|
@@ -30879,40 +30861,40 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30879
30861
|
}
|
|
30880
30862
|
return _createClass(LRUCache2, [{
|
|
30881
30863
|
key: "max",
|
|
30882
|
-
get: function
|
|
30864
|
+
get: function get() {
|
|
30883
30865
|
return this[MAX];
|
|
30884
30866
|
},
|
|
30885
|
-
set: function
|
|
30867
|
+
set: function set(mL) {
|
|
30886
30868
|
if (typeof mL !== "number" || mL < 0)
|
|
30887
30869
|
throw new TypeError("max must be a non-negative number");
|
|
30888
30870
|
this[MAX] = mL || Infinity;
|
|
30889
|
-
|
|
30871
|
+
trim(this);
|
|
30890
30872
|
}
|
|
30891
30873
|
}, {
|
|
30892
30874
|
key: "allowStale",
|
|
30893
|
-
get: function
|
|
30875
|
+
get: function get() {
|
|
30894
30876
|
return this[ALLOW_STALE];
|
|
30895
30877
|
},
|
|
30896
|
-
set: function
|
|
30878
|
+
set: function set(allowStale) {
|
|
30897
30879
|
this[ALLOW_STALE] = !!allowStale;
|
|
30898
30880
|
}
|
|
30899
30881
|
}, {
|
|
30900
30882
|
key: "maxAge",
|
|
30901
|
-
get: function
|
|
30883
|
+
get: function get() {
|
|
30902
30884
|
return this[MAX_AGE];
|
|
30903
30885
|
},
|
|
30904
|
-
set: function
|
|
30886
|
+
set: function set(mA) {
|
|
30905
30887
|
if (typeof mA !== "number")
|
|
30906
30888
|
throw new TypeError("maxAge must be a non-negative number");
|
|
30907
30889
|
this[MAX_AGE] = mA;
|
|
30908
|
-
|
|
30890
|
+
trim(this);
|
|
30909
30891
|
}
|
|
30910
30892
|
}, {
|
|
30911
30893
|
key: "lengthCalculator",
|
|
30912
|
-
get: function
|
|
30894
|
+
get: function get() {
|
|
30913
30895
|
return this[LENGTH_CALCULATOR];
|
|
30914
30896
|
},
|
|
30915
|
-
set: function
|
|
30897
|
+
set: function set(lC) {
|
|
30916
30898
|
var _this = this;
|
|
30917
30899
|
if (typeof lC !== "function")
|
|
30918
30900
|
lC = naiveLength;
|
|
@@ -30924,16 +30906,16 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30924
30906
|
_this[LENGTH] += hit.length;
|
|
30925
30907
|
});
|
|
30926
30908
|
}
|
|
30927
|
-
|
|
30909
|
+
trim(this);
|
|
30928
30910
|
}
|
|
30929
30911
|
}, {
|
|
30930
30912
|
key: "length",
|
|
30931
|
-
get: function
|
|
30913
|
+
get: function get() {
|
|
30932
30914
|
return this[LENGTH];
|
|
30933
30915
|
}
|
|
30934
30916
|
}, {
|
|
30935
30917
|
key: "itemCount",
|
|
30936
|
-
get: function
|
|
30918
|
+
get: function get() {
|
|
30937
30919
|
return this[LRU_LIST].length;
|
|
30938
30920
|
}
|
|
30939
30921
|
}, {
|
|
@@ -30948,7 +30930,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30948
30930
|
}
|
|
30949
30931
|
}, {
|
|
30950
30932
|
key: "forEach",
|
|
30951
|
-
value: function
|
|
30933
|
+
value: function forEach(fn, thisp) {
|
|
30952
30934
|
thisp = thisp || this;
|
|
30953
30935
|
for (var walker = this[LRU_LIST].head;walker !== null; ) {
|
|
30954
30936
|
var next = walker.next;
|
|
@@ -30958,14 +30940,14 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30958
30940
|
}
|
|
30959
30941
|
}, {
|
|
30960
30942
|
key: "keys",
|
|
30961
|
-
value: function
|
|
30943
|
+
value: function keys() {
|
|
30962
30944
|
return this[LRU_LIST].toArray().map(function(k) {
|
|
30963
30945
|
return k.key;
|
|
30964
30946
|
});
|
|
30965
30947
|
}
|
|
30966
30948
|
}, {
|
|
30967
30949
|
key: "values",
|
|
30968
|
-
value: function
|
|
30950
|
+
value: function values() {
|
|
30969
30951
|
return this[LRU_LIST].toArray().map(function(k) {
|
|
30970
30952
|
return k.value;
|
|
30971
30953
|
});
|
|
@@ -30985,7 +30967,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30985
30967
|
}
|
|
30986
30968
|
}, {
|
|
30987
30969
|
key: "dump",
|
|
30988
|
-
value: function
|
|
30970
|
+
value: function dump() {
|
|
30989
30971
|
var _this3 = this;
|
|
30990
30972
|
return this[LRU_LIST].map(function(hit) {
|
|
30991
30973
|
return isStale(_this3, hit) ? false : {
|
|
@@ -31004,11 +30986,11 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31004
30986
|
}
|
|
31005
30987
|
}, {
|
|
31006
30988
|
key: "set",
|
|
31007
|
-
value: function
|
|
30989
|
+
value: function set(key, value, maxAge) {
|
|
31008
30990
|
maxAge = maxAge || this[MAX_AGE];
|
|
31009
30991
|
if (maxAge && typeof maxAge !== "number")
|
|
31010
30992
|
throw new TypeError("maxAge must be a number");
|
|
31011
|
-
var
|
|
30993
|
+
var now = maxAge ? Date.now() : 0;
|
|
31012
30994
|
var len = this[LENGTH_CALCULATOR](value, key);
|
|
31013
30995
|
if (this[CACHE].has(key)) {
|
|
31014
30996
|
if (len > this[MAX]) {
|
|
@@ -31021,16 +31003,16 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31021
31003
|
if (!this[NO_DISPOSE_ON_SET])
|
|
31022
31004
|
this[DISPOSE](key, item.value);
|
|
31023
31005
|
}
|
|
31024
|
-
item.now =
|
|
31006
|
+
item.now = now;
|
|
31025
31007
|
item.maxAge = maxAge;
|
|
31026
31008
|
item.value = value;
|
|
31027
31009
|
this[LENGTH] += len - item.length;
|
|
31028
31010
|
item.length = len;
|
|
31029
31011
|
this.get(key);
|
|
31030
|
-
|
|
31012
|
+
trim(this);
|
|
31031
31013
|
return true;
|
|
31032
31014
|
}
|
|
31033
|
-
var hit = new Entry(key, value, len,
|
|
31015
|
+
var hit = new Entry(key, value, len, now, maxAge);
|
|
31034
31016
|
if (hit.length > this[MAX]) {
|
|
31035
31017
|
if (this[DISPOSE])
|
|
31036
31018
|
this[DISPOSE](key, value);
|
|
@@ -31039,12 +31021,12 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31039
31021
|
this[LENGTH] += hit.length;
|
|
31040
31022
|
this[LRU_LIST].unshift(hit);
|
|
31041
31023
|
this[CACHE].set(key, this[LRU_LIST].head);
|
|
31042
|
-
|
|
31024
|
+
trim(this);
|
|
31043
31025
|
return true;
|
|
31044
31026
|
}
|
|
31045
31027
|
}, {
|
|
31046
31028
|
key: "has",
|
|
31047
|
-
value: function
|
|
31029
|
+
value: function has(key) {
|
|
31048
31030
|
if (!this[CACHE].has(key))
|
|
31049
31031
|
return false;
|
|
31050
31032
|
var hit = this[CACHE].get(key).value;
|
|
@@ -31052,7 +31034,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31052
31034
|
}
|
|
31053
31035
|
}, {
|
|
31054
31036
|
key: "get",
|
|
31055
|
-
value: function
|
|
31037
|
+
value: function get(key) {
|
|
31056
31038
|
return _get(this, key, true);
|
|
31057
31039
|
}
|
|
31058
31040
|
}, {
|
|
@@ -31076,16 +31058,16 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31076
31058
|
}
|
|
31077
31059
|
}, {
|
|
31078
31060
|
key: "load",
|
|
31079
|
-
value: function
|
|
31061
|
+
value: function load(arr) {
|
|
31080
31062
|
this.reset();
|
|
31081
|
-
var
|
|
31063
|
+
var now = Date.now();
|
|
31082
31064
|
for (var l = arr.length - 1;l >= 0; l--) {
|
|
31083
31065
|
var hit = arr[l];
|
|
31084
31066
|
var expiresAt = hit.e || 0;
|
|
31085
31067
|
if (expiresAt === 0)
|
|
31086
31068
|
this.set(hit.k, hit.v);
|
|
31087
31069
|
else {
|
|
31088
|
-
var maxAge = expiresAt -
|
|
31070
|
+
var maxAge = expiresAt - now;
|
|
31089
31071
|
if (maxAge > 0) {
|
|
31090
31072
|
this.set(hit.k, hit.v, maxAge);
|
|
31091
31073
|
}
|
|
@@ -31102,7 +31084,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31102
31084
|
}
|
|
31103
31085
|
}]);
|
|
31104
31086
|
}();
|
|
31105
|
-
var _get = function
|
|
31087
|
+
var _get = function _get(self2, key, doUse) {
|
|
31106
31088
|
var node = self2[CACHE].get(key);
|
|
31107
31089
|
if (node) {
|
|
31108
31090
|
var hit = node.value;
|
|
@@ -31120,13 +31102,13 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31120
31102
|
return hit.value;
|
|
31121
31103
|
}
|
|
31122
31104
|
};
|
|
31123
|
-
var isStale = function
|
|
31105
|
+
var isStale = function isStale(self2, hit) {
|
|
31124
31106
|
if (!hit || !hit.maxAge && !self2[MAX_AGE])
|
|
31125
31107
|
return false;
|
|
31126
31108
|
var diff = Date.now() - hit.now;
|
|
31127
31109
|
return hit.maxAge ? diff > hit.maxAge : self2[MAX_AGE] && diff > self2[MAX_AGE];
|
|
31128
31110
|
};
|
|
31129
|
-
var
|
|
31111
|
+
var trim = function trim(self2) {
|
|
31130
31112
|
if (self2[LENGTH] > self2[MAX]) {
|
|
31131
31113
|
for (var walker = self2[LRU_LIST].tail;self2[LENGTH] > self2[MAX] && walker !== null; ) {
|
|
31132
31114
|
var prev = walker.prev;
|
|
@@ -31135,7 +31117,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31135
31117
|
}
|
|
31136
31118
|
}
|
|
31137
31119
|
};
|
|
31138
|
-
var _del = function
|
|
31120
|
+
var _del = function _del(self2, node) {
|
|
31139
31121
|
if (node) {
|
|
31140
31122
|
var hit = node.value;
|
|
31141
31123
|
if (self2[DISPOSE])
|
|
@@ -31145,15 +31127,15 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31145
31127
|
self2[LRU_LIST].removeNode(node);
|
|
31146
31128
|
}
|
|
31147
31129
|
};
|
|
31148
|
-
var Entry = /* @__PURE__ */ _createClass(function
|
|
31149
|
-
_classCallCheck(this,
|
|
31130
|
+
var Entry = /* @__PURE__ */ _createClass(function Entry(key, value, length, now, maxAge) {
|
|
31131
|
+
_classCallCheck(this, Entry);
|
|
31150
31132
|
this.key = key;
|
|
31151
31133
|
this.value = value;
|
|
31152
31134
|
this.length = length;
|
|
31153
|
-
this.now =
|
|
31135
|
+
this.now = now;
|
|
31154
31136
|
this.maxAge = maxAge || 0;
|
|
31155
31137
|
});
|
|
31156
|
-
var forEachStep = function
|
|
31138
|
+
var forEachStep = function forEachStep(self2, fn, node, thisp) {
|
|
31157
31139
|
var hit = node.value;
|
|
31158
31140
|
if (isStale(self2, hit)) {
|
|
31159
31141
|
_del(self2, node);
|
|
@@ -31296,16 +31278,16 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31296
31278
|
process12.argv = [];
|
|
31297
31279
|
process12.version = "";
|
|
31298
31280
|
process12.versions = {};
|
|
31299
|
-
function
|
|
31300
|
-
process12.on =
|
|
31301
|
-
process12.addListener =
|
|
31302
|
-
process12.once =
|
|
31303
|
-
process12.off =
|
|
31304
|
-
process12.removeListener =
|
|
31305
|
-
process12.removeAllListeners =
|
|
31306
|
-
process12.emit =
|
|
31307
|
-
process12.prependListener =
|
|
31308
|
-
process12.prependOnceListener =
|
|
31281
|
+
function noop() {}
|
|
31282
|
+
process12.on = noop;
|
|
31283
|
+
process12.addListener = noop;
|
|
31284
|
+
process12.once = noop;
|
|
31285
|
+
process12.off = noop;
|
|
31286
|
+
process12.removeListener = noop;
|
|
31287
|
+
process12.removeAllListeners = noop;
|
|
31288
|
+
process12.emit = noop;
|
|
31289
|
+
process12.prependListener = noop;
|
|
31290
|
+
process12.prependOnceListener = noop;
|
|
31309
31291
|
process12.listeners = function(name) {
|
|
31310
31292
|
return [];
|
|
31311
31293
|
};
|
|
@@ -31384,7 +31366,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31384
31366
|
throw new TypeError("Eval Origin must be an Object or StackFrame");
|
|
31385
31367
|
}
|
|
31386
31368
|
},
|
|
31387
|
-
toString: function
|
|
31369
|
+
toString: function toString() {
|
|
31388
31370
|
var fileName = this.getFileName() || "";
|
|
31389
31371
|
var lineNumber = this.getLineNumber() || "";
|
|
31390
31372
|
var columnNumber = this.getColumnNumber() || "";
|
|
@@ -31462,7 +31444,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31462
31444
|
}
|
|
31463
31445
|
function _regeneratorRuntime() {
|
|
31464
31446
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
31465
|
-
_regeneratorRuntime = function
|
|
31447
|
+
_regeneratorRuntime = function _regeneratorRuntime() {
|
|
31466
31448
|
return e;
|
|
31467
31449
|
};
|
|
31468
31450
|
var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function(t2, e2, r2) {
|
|
@@ -31474,11 +31456,11 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31474
31456
|
try {
|
|
31475
31457
|
define2({}, "");
|
|
31476
31458
|
} catch (t2) {
|
|
31477
|
-
define2 = function
|
|
31459
|
+
define2 = function define(t3, e2, r2) {
|
|
31478
31460
|
return t3[e2] = r2;
|
|
31479
31461
|
};
|
|
31480
31462
|
}
|
|
31481
|
-
function
|
|
31463
|
+
function wrap(t2, e2, r2, n2) {
|
|
31482
31464
|
var i3 = e2 && e2.prototype instanceof Generator ? e2 : Generator, a2 = Object.create(i3.prototype), c2 = new Context(n2 || []);
|
|
31483
31465
|
return o(a2, "_invoke", { value: makeInvokeMethod(t2, r2, c2) }), a2;
|
|
31484
31466
|
}
|
|
@@ -31489,7 +31471,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31489
31471
|
return { type: "throw", arg: t3 };
|
|
31490
31472
|
}
|
|
31491
31473
|
}
|
|
31492
|
-
e.wrap =
|
|
31474
|
+
e.wrap = wrap;
|
|
31493
31475
|
var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {};
|
|
31494
31476
|
function Generator() {}
|
|
31495
31477
|
function GeneratorFunction() {}
|
|
@@ -31498,7 +31480,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31498
31480
|
define2(p, a, function() {
|
|
31499
31481
|
return this;
|
|
31500
31482
|
});
|
|
31501
|
-
var d = Object.getPrototypeOf, v = d && d(d(
|
|
31483
|
+
var d = Object.getPrototypeOf, v = d && d(d(values([])));
|
|
31502
31484
|
v && v !== r && n.call(v, a) && (p = v);
|
|
31503
31485
|
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
31504
31486
|
function defineIteratorMethods(t2) {
|
|
@@ -31509,18 +31491,18 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31509
31491
|
});
|
|
31510
31492
|
}
|
|
31511
31493
|
function AsyncIterator(t2, e2) {
|
|
31512
|
-
function
|
|
31494
|
+
function invoke(r3, o2, i3, a2) {
|
|
31513
31495
|
var c2 = tryCatch(t2[r3], t2, o2);
|
|
31514
31496
|
if (c2.type !== "throw") {
|
|
31515
31497
|
var u2 = c2.arg, h2 = u2.value;
|
|
31516
31498
|
return h2 && _typeof(h2) == "object" && n.call(h2, "__await") ? e2.resolve(h2.__await).then(function(t3) {
|
|
31517
|
-
|
|
31499
|
+
invoke("next", t3, i3, a2);
|
|
31518
31500
|
}, function(t3) {
|
|
31519
|
-
|
|
31501
|
+
invoke("throw", t3, i3, a2);
|
|
31520
31502
|
}) : e2.resolve(h2).then(function(t3) {
|
|
31521
31503
|
u2.value = t3, i3(u2);
|
|
31522
31504
|
}, function(t3) {
|
|
31523
|
-
return
|
|
31505
|
+
return invoke("throw", t3, i3, a2);
|
|
31524
31506
|
});
|
|
31525
31507
|
}
|
|
31526
31508
|
a2(c2.arg);
|
|
@@ -31529,7 +31511,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31529
31511
|
o(this, "_invoke", { value: function value(t3, n2) {
|
|
31530
31512
|
function callInvokeWithMethodAndArg() {
|
|
31531
31513
|
return new e2(function(e3, r3) {
|
|
31532
|
-
|
|
31514
|
+
invoke(t3, n2, e3, r3);
|
|
31533
31515
|
});
|
|
31534
31516
|
}
|
|
31535
31517
|
return r2 = r2 ? r2.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
@@ -31595,7 +31577,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31595
31577
|
function Context(t2) {
|
|
31596
31578
|
this.tryEntries = [{ tryLoc: "root" }], t2.forEach(pushTryEntry, this), this.reset(true);
|
|
31597
31579
|
}
|
|
31598
|
-
function
|
|
31580
|
+
function values(e2) {
|
|
31599
31581
|
if (e2 || e2 === "") {
|
|
31600
31582
|
var r2 = e2[a];
|
|
31601
31583
|
if (r2)
|
|
@@ -31625,7 +31607,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31625
31607
|
return this;
|
|
31626
31608
|
}), e.AsyncIterator = AsyncIterator, e.async = function(t2, r2, n2, o2, i3) {
|
|
31627
31609
|
i3 === undefined && (i3 = Promise);
|
|
31628
|
-
var a2 = new AsyncIterator(
|
|
31610
|
+
var a2 = new AsyncIterator(wrap(t2, r2, n2, o2), i3);
|
|
31629
31611
|
return e.isGeneratorFunction(r2) ? a2 : a2.next().then(function(t3) {
|
|
31630
31612
|
return t3.done ? t3.value : a2.next();
|
|
31631
31613
|
});
|
|
@@ -31645,11 +31627,11 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31645
31627
|
}
|
|
31646
31628
|
return next.done = true, next;
|
|
31647
31629
|
};
|
|
31648
|
-
}, e.values =
|
|
31630
|
+
}, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e2) {
|
|
31649
31631
|
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = false, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e2)
|
|
31650
31632
|
for (var r2 in this)
|
|
31651
31633
|
r2.charAt(0) === "t" && n.call(this, r2) && !isNaN(+r2.slice(1)) && (this[r2] = t);
|
|
31652
|
-
}, stop: function
|
|
31634
|
+
}, stop: function stop() {
|
|
31653
31635
|
this.done = true;
|
|
31654
31636
|
var t2 = this.tryEntries[0].completion;
|
|
31655
31637
|
if (t2.type === "throw")
|
|
@@ -31719,7 +31701,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31719
31701
|
}
|
|
31720
31702
|
throw Error("illegal catch attempt");
|
|
31721
31703
|
}, delegateYield: function delegateYield(e2, r2, n2) {
|
|
31722
|
-
return this.delegate = { iterator:
|
|
31704
|
+
return this.delegate = { iterator: values(e2), resultName: r2, nextLoc: n2 }, this.method === "next" && (this.arg = t), y;
|
|
31723
31705
|
} }, e;
|
|
31724
31706
|
}
|
|
31725
31707
|
module2.exports = function(Yallist) {
|
|
@@ -31803,11 +31785,11 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31803
31785
|
if (node.list) {
|
|
31804
31786
|
node.list.removeNode(node);
|
|
31805
31787
|
}
|
|
31806
|
-
var
|
|
31788
|
+
var head = this.head;
|
|
31807
31789
|
node.list = this;
|
|
31808
|
-
node.next =
|
|
31809
|
-
if (
|
|
31810
|
-
|
|
31790
|
+
node.next = head;
|
|
31791
|
+
if (head) {
|
|
31792
|
+
head.prev = node;
|
|
31811
31793
|
}
|
|
31812
31794
|
this.head = node;
|
|
31813
31795
|
if (!this.tail) {
|
|
@@ -31822,11 +31804,11 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31822
31804
|
if (node.list) {
|
|
31823
31805
|
node.list.removeNode(node);
|
|
31824
31806
|
}
|
|
31825
|
-
var
|
|
31807
|
+
var tail = this.tail;
|
|
31826
31808
|
node.list = this;
|
|
31827
|
-
node.prev =
|
|
31828
|
-
if (
|
|
31829
|
-
|
|
31809
|
+
node.prev = tail;
|
|
31810
|
+
if (tail) {
|
|
31811
|
+
tail.next = node;
|
|
31830
31812
|
}
|
|
31831
31813
|
this.tail = node;
|
|
31832
31814
|
if (!this.head) {
|
|
@@ -31922,11 +31904,11 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31922
31904
|
}
|
|
31923
31905
|
return res;
|
|
31924
31906
|
};
|
|
31925
|
-
Yallist.prototype.reduce = function(fn,
|
|
31907
|
+
Yallist.prototype.reduce = function(fn, initial) {
|
|
31926
31908
|
var acc;
|
|
31927
31909
|
var walker = this.head;
|
|
31928
31910
|
if (arguments.length > 1) {
|
|
31929
|
-
acc =
|
|
31911
|
+
acc = initial;
|
|
31930
31912
|
} else if (this.head) {
|
|
31931
31913
|
walker = this.head.next;
|
|
31932
31914
|
acc = this.head.value;
|
|
@@ -31939,11 +31921,11 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31939
31921
|
}
|
|
31940
31922
|
return acc;
|
|
31941
31923
|
};
|
|
31942
|
-
Yallist.prototype.reduceReverse = function(fn,
|
|
31924
|
+
Yallist.prototype.reduceReverse = function(fn, initial) {
|
|
31943
31925
|
var acc;
|
|
31944
31926
|
var walker = this.tail;
|
|
31945
31927
|
if (arguments.length > 1) {
|
|
31946
|
-
acc =
|
|
31928
|
+
acc = initial;
|
|
31947
31929
|
} else if (this.tail) {
|
|
31948
31930
|
walker = this.tail.prev;
|
|
31949
31931
|
acc = this.tail.value;
|
|
@@ -32053,15 +32035,15 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
32053
32035
|
return ret;
|
|
32054
32036
|
};
|
|
32055
32037
|
Yallist.prototype.reverse = function() {
|
|
32056
|
-
var
|
|
32057
|
-
var
|
|
32058
|
-
for (var walker =
|
|
32038
|
+
var head = this.head;
|
|
32039
|
+
var tail = this.tail;
|
|
32040
|
+
for (var walker = head;walker !== null; walker = walker.prev) {
|
|
32059
32041
|
var p = walker.prev;
|
|
32060
32042
|
walker.prev = walker.next;
|
|
32061
32043
|
walker.next = p;
|
|
32062
32044
|
}
|
|
32063
|
-
this.head =
|
|
32064
|
-
this.tail =
|
|
32045
|
+
this.head = tail;
|
|
32046
|
+
this.tail = head;
|
|
32065
32047
|
return this;
|
|
32066
32048
|
};
|
|
32067
32049
|
function insert(self2, node, value) {
|
|
@@ -32390,7 +32372,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
32390
32372
|
if (Array.isArray(arr))
|
|
32391
32373
|
return arr;
|
|
32392
32374
|
}
|
|
32393
|
-
var compareVersions = function
|
|
32375
|
+
var compareVersions = function compareVersions(v1, v2) {
|
|
32394
32376
|
var n1 = validateAndParse(v1);
|
|
32395
32377
|
var n2 = validateAndParse(v2);
|
|
32396
32378
|
var p1 = n1.pop();
|
|
@@ -32405,21 +32387,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
32405
32387
|
}
|
|
32406
32388
|
return 0;
|
|
32407
32389
|
};
|
|
32408
|
-
var validate3 = function
|
|
32390
|
+
var validate3 = function validate(version) {
|
|
32409
32391
|
return typeof version === "string" && /^[v\d]/.test(version) && semver3.test(version);
|
|
32410
32392
|
};
|
|
32411
|
-
var compare = function
|
|
32393
|
+
var compare = function compare(v1, v2, operator) {
|
|
32412
32394
|
assertValidOperator(operator);
|
|
32413
32395
|
var res = compareVersions(v1, v2);
|
|
32414
32396
|
return operatorResMap[operator].includes(res);
|
|
32415
32397
|
};
|
|
32416
|
-
var satisfies2 = function
|
|
32417
|
-
var m =
|
|
32398
|
+
var satisfies2 = function satisfies(version, range) {
|
|
32399
|
+
var m = range.match(/^([<>=~^]+)/);
|
|
32418
32400
|
var op = m ? m[1] : "=";
|
|
32419
32401
|
if (op !== "^" && op !== "~")
|
|
32420
|
-
return compare(version,
|
|
32402
|
+
return compare(version, range, op);
|
|
32421
32403
|
var _validateAndParse = validateAndParse(version), _validateAndParse2 = _slicedToArray(_validateAndParse, 5), v1 = _validateAndParse2[0], v2 = _validateAndParse2[1], v3 = _validateAndParse2[2], vp = _validateAndParse2[4];
|
|
32422
|
-
var _validateAndParse3 = validateAndParse(
|
|
32404
|
+
var _validateAndParse3 = validateAndParse(range), _validateAndParse4 = _slicedToArray(_validateAndParse3, 5), r1 = _validateAndParse4[0], r2 = _validateAndParse4[1], r3 = _validateAndParse4[2], rp = _validateAndParse4[4];
|
|
32423
32405
|
var v = [v1, v2, v3];
|
|
32424
32406
|
var r = [r1, r2 !== null && r2 !== undefined ? r2 : "x", r3 !== null && r3 !== undefined ? r3 : "x"];
|
|
32425
32407
|
if (rp) {
|
|
@@ -32441,7 +32423,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
32441
32423
|
return true;
|
|
32442
32424
|
};
|
|
32443
32425
|
var semver3 = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;
|
|
32444
|
-
var validateAndParse = function
|
|
32426
|
+
var validateAndParse = function validateAndParse(version) {
|
|
32445
32427
|
if (typeof version !== "string") {
|
|
32446
32428
|
throw new TypeError("Invalid argument expected string");
|
|
32447
32429
|
}
|
|
@@ -32452,17 +32434,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
32452
32434
|
match.shift();
|
|
32453
32435
|
return match;
|
|
32454
32436
|
};
|
|
32455
|
-
var isWildcard = function
|
|
32437
|
+
var isWildcard = function isWildcard(s) {
|
|
32456
32438
|
return s === "*" || s === "x" || s === "X";
|
|
32457
32439
|
};
|
|
32458
|
-
var tryParse = function
|
|
32440
|
+
var tryParse = function tryParse(v) {
|
|
32459
32441
|
var n = parseInt(v, 10);
|
|
32460
32442
|
return isNaN(n) ? v : n;
|
|
32461
32443
|
};
|
|
32462
|
-
var forceType = function
|
|
32444
|
+
var forceType = function forceType(a, b) {
|
|
32463
32445
|
return esm_typeof(a) !== esm_typeof(b) ? [String(a), String(b)] : [a, b];
|
|
32464
32446
|
};
|
|
32465
|
-
var compareStrings = function
|
|
32447
|
+
var compareStrings = function compareStrings(a, b) {
|
|
32466
32448
|
if (isWildcard(a) || isWildcard(b))
|
|
32467
32449
|
return 0;
|
|
32468
32450
|
var _forceType = forceType(tryParse(a), tryParse(b)), _forceType2 = _slicedToArray(_forceType, 2), ap = _forceType2[0], bp = _forceType2[1];
|
|
@@ -32472,7 +32454,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
32472
32454
|
return -1;
|
|
32473
32455
|
return 0;
|
|
32474
32456
|
};
|
|
32475
|
-
var compareSegments = function
|
|
32457
|
+
var compareSegments = function compareSegments(a, b) {
|
|
32476
32458
|
for (var i2 = 0;i2 < Math.max(a.length, b.length); i2++) {
|
|
32477
32459
|
var r = compareStrings(a[i2] || "0", b[i2] || "0");
|
|
32478
32460
|
if (r !== 0)
|
|
@@ -32488,7 +32470,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
32488
32470
|
"<": [-1]
|
|
32489
32471
|
};
|
|
32490
32472
|
var allowedOperators = Object.keys(operatorResMap);
|
|
32491
|
-
var assertValidOperator = function
|
|
32473
|
+
var assertValidOperator = function assertValidOperator(op) {
|
|
32492
32474
|
if (typeof op !== "string") {
|
|
32493
32475
|
throw new TypeError("Invalid operator type, expected string but got ".concat(esm_typeof(op)));
|
|
32494
32476
|
}
|
|
@@ -32619,8 +32601,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
32619
32601
|
var ComponentFilterHOC = 4;
|
|
32620
32602
|
var ComponentFilterEnvironmentName = 5;
|
|
32621
32603
|
var StrictMode = 1;
|
|
32622
|
-
var
|
|
32623
|
-
const src_isArray =
|
|
32604
|
+
var isArray = Array.isArray;
|
|
32605
|
+
const src_isArray = isArray;
|
|
32624
32606
|
var process12 = __webpack_require__(169);
|
|
32625
32607
|
function ownKeys(e, r) {
|
|
32626
32608
|
var t = Object.keys(e);
|
|
@@ -32727,14 +32709,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
32727
32709
|
}
|
|
32728
32710
|
}
|
|
32729
32711
|
function getAllEnumerableKeys(obj) {
|
|
32730
|
-
var
|
|
32712
|
+
var keys = new Set;
|
|
32731
32713
|
var current = obj;
|
|
32732
|
-
var _loop = function
|
|
32714
|
+
var _loop = function _loop() {
|
|
32733
32715
|
var currentKeys = [].concat(_toConsumableArray(Object.keys(current)), _toConsumableArray(Object.getOwnPropertySymbols(current)));
|
|
32734
32716
|
var descriptors = Object.getOwnPropertyDescriptors(current);
|
|
32735
32717
|
currentKeys.forEach(function(key) {
|
|
32736
32718
|
if (descriptors[key].enumerable) {
|
|
32737
|
-
|
|
32719
|
+
keys.add(key);
|
|
32738
32720
|
}
|
|
32739
32721
|
});
|
|
32740
32722
|
current = Object.getPrototypeOf(current);
|
|
@@ -32742,7 +32724,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
32742
32724
|
while (current != null) {
|
|
32743
32725
|
_loop();
|
|
32744
32726
|
}
|
|
32745
|
-
return
|
|
32727
|
+
return keys;
|
|
32746
32728
|
}
|
|
32747
32729
|
function getWrappedDisplayName(outerType, innerType, wrapperName, fallbackName) {
|
|
32748
32730
|
var displayName = outerType === null || outerType === undefined ? undefined : outerType.displayName;
|
|
@@ -33052,10 +33034,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
33052
33034
|
case ElementTypeMemo:
|
|
33053
33035
|
case ElementTypeVirtual:
|
|
33054
33036
|
if (displayName.indexOf("(") >= 0) {
|
|
33055
|
-
var
|
|
33056
|
-
if (
|
|
33057
|
-
displayName =
|
|
33058
|
-
hocDisplayNames =
|
|
33037
|
+
var matches = displayName.match(/[^()]+/g);
|
|
33038
|
+
if (matches != null) {
|
|
33039
|
+
displayName = matches.pop();
|
|
33040
|
+
hocDisplayNames = matches;
|
|
33059
33041
|
}
|
|
33060
33042
|
}
|
|
33061
33043
|
break;
|
|
@@ -33096,14 +33078,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
33096
33078
|
}
|
|
33097
33079
|
function deletePathInObject(object, path10) {
|
|
33098
33080
|
var length = path10.length;
|
|
33099
|
-
var
|
|
33081
|
+
var last = path10[length - 1];
|
|
33100
33082
|
if (object != null) {
|
|
33101
33083
|
var parent = utils_getInObject(object, path10.slice(0, length - 1));
|
|
33102
33084
|
if (parent) {
|
|
33103
33085
|
if (src_isArray(parent)) {
|
|
33104
|
-
parent.splice(
|
|
33086
|
+
parent.splice(last, 1);
|
|
33105
33087
|
} else {
|
|
33106
|
-
delete parent[
|
|
33088
|
+
delete parent[last];
|
|
33107
33089
|
}
|
|
33108
33090
|
}
|
|
33109
33091
|
}
|
|
@@ -33126,15 +33108,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
33126
33108
|
}
|
|
33127
33109
|
function utils_setInObject(object, path10, value) {
|
|
33128
33110
|
var length = path10.length;
|
|
33129
|
-
var
|
|
33111
|
+
var last = path10[length - 1];
|
|
33130
33112
|
if (object != null) {
|
|
33131
33113
|
var parent = utils_getInObject(object, path10.slice(0, length - 1));
|
|
33132
33114
|
if (parent) {
|
|
33133
|
-
parent[
|
|
33115
|
+
parent[last] = value;
|
|
33134
33116
|
}
|
|
33135
33117
|
}
|
|
33136
33118
|
}
|
|
33137
|
-
function
|
|
33119
|
+
function isError(data) {
|
|
33138
33120
|
if ("name" in data && "message" in data) {
|
|
33139
33121
|
while (data) {
|
|
33140
33122
|
if (Object.prototype.toString.call(data) === "[object Error]") {
|
|
@@ -33193,7 +33175,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
33193
33175
|
return "regexp";
|
|
33194
33176
|
} else if (typeof data.then === "function") {
|
|
33195
33177
|
return "thenable";
|
|
33196
|
-
} else if (
|
|
33178
|
+
} else if (isError(data)) {
|
|
33197
33179
|
return "error";
|
|
33198
33180
|
} else {
|
|
33199
33181
|
var toStringValue = Object.prototype.toString.call(data);
|
|
@@ -33203,7 +33185,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
33203
33185
|
return "html_all_collection";
|
|
33204
33186
|
}
|
|
33205
33187
|
}
|
|
33206
|
-
if (!
|
|
33188
|
+
if (!isPlainObject(data)) {
|
|
33207
33189
|
return "class_instance";
|
|
33208
33190
|
}
|
|
33209
33191
|
return "object";
|
|
@@ -33462,7 +33444,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
33462
33444
|
}
|
|
33463
33445
|
case "thenable":
|
|
33464
33446
|
var displayName;
|
|
33465
|
-
if (
|
|
33447
|
+
if (isPlainObject(data)) {
|
|
33466
33448
|
displayName = "Thenable";
|
|
33467
33449
|
} else {
|
|
33468
33450
|
var _resolvedConstructorName = data.constructor.name;
|
|
@@ -33497,10 +33479,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
33497
33479
|
}
|
|
33498
33480
|
case "object":
|
|
33499
33481
|
if (showFormattedValue) {
|
|
33500
|
-
var
|
|
33482
|
+
var keys = Array.from(getAllEnumerableKeys(data)).sort(alphaSortKeys);
|
|
33501
33483
|
var _formatted9 = "";
|
|
33502
|
-
for (var _i3 = 0;_i3 <
|
|
33503
|
-
var _key =
|
|
33484
|
+
for (var _i3 = 0;_i3 < keys.length; _i3++) {
|
|
33485
|
+
var _key = keys[_i3];
|
|
33504
33486
|
if (_i3 > 0) {
|
|
33505
33487
|
_formatted9 += ", ";
|
|
33506
33488
|
}
|
|
@@ -33530,7 +33512,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
33530
33512
|
}
|
|
33531
33513
|
}
|
|
33532
33514
|
}
|
|
33533
|
-
var
|
|
33515
|
+
var isPlainObject = function isPlainObject(object) {
|
|
33534
33516
|
var objectPrototype = Object.getPrototypeOf(object);
|
|
33535
33517
|
if (!objectPrototype)
|
|
33536
33518
|
return true;
|
|
@@ -33580,19 +33562,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
33580
33562
|
sessionStorageRemoveItem(SESSION_STORAGE_RECORD_TIMELINE_KEY);
|
|
33581
33563
|
}
|
|
33582
33564
|
function unionOfTwoArrays(a, b) {
|
|
33583
|
-
var
|
|
33565
|
+
var result = a;
|
|
33584
33566
|
for (var i2 = 0;i2 < b.length; i2++) {
|
|
33585
33567
|
var value = b[i2];
|
|
33586
33568
|
if (a.indexOf(value) === -1) {
|
|
33587
|
-
if (
|
|
33588
|
-
|
|
33569
|
+
if (result === a) {
|
|
33570
|
+
result = a.slice(0);
|
|
33589
33571
|
}
|
|
33590
|
-
|
|
33572
|
+
result.push(value);
|
|
33591
33573
|
}
|
|
33592
33574
|
}
|
|
33593
|
-
return
|
|
33575
|
+
return result;
|
|
33594
33576
|
}
|
|
33595
|
-
function
|
|
33577
|
+
function noop() {}
|
|
33596
33578
|
function hydration_ownKeys(e, r) {
|
|
33597
33579
|
var t = Object.keys(e);
|
|
33598
33580
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -33862,7 +33844,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
33862
33844
|
};
|
|
33863
33845
|
}
|
|
33864
33846
|
if (data.status === "resolved_model" || data.status === "resolve_module") {
|
|
33865
|
-
data.then(
|
|
33847
|
+
data.then(noop);
|
|
33866
33848
|
}
|
|
33867
33849
|
switch (data.status) {
|
|
33868
33850
|
case "fulfilled": {
|
|
@@ -34004,14 +33986,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
34004
33986
|
}
|
|
34005
33987
|
if (value !== null && data.unserializable.length > 0) {
|
|
34006
33988
|
var unserializablePath = data.unserializable[0];
|
|
34007
|
-
var
|
|
33989
|
+
var isMatch = unserializablePath.length === path10.length;
|
|
34008
33990
|
for (var i2 = 0;i2 < path10.length; i2++) {
|
|
34009
33991
|
if (path10[i2] !== unserializablePath[i2]) {
|
|
34010
|
-
|
|
33992
|
+
isMatch = false;
|
|
34011
33993
|
break;
|
|
34012
33994
|
}
|
|
34013
33995
|
}
|
|
34014
|
-
if (
|
|
33996
|
+
if (isMatch) {
|
|
34015
33997
|
upgradeUnserializable(value, value);
|
|
34016
33998
|
}
|
|
34017
33999
|
}
|
|
@@ -34020,20 +34002,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
34020
34002
|
function hydrate(object, cleaned, unserializable) {
|
|
34021
34003
|
cleaned.forEach(function(path10) {
|
|
34022
34004
|
var length = path10.length;
|
|
34023
|
-
var
|
|
34005
|
+
var last = path10[length - 1];
|
|
34024
34006
|
var parent = getInObject(object, path10.slice(0, length - 1));
|
|
34025
|
-
if (!parent || !parent.hasOwnProperty(
|
|
34007
|
+
if (!parent || !parent.hasOwnProperty(last)) {
|
|
34026
34008
|
return;
|
|
34027
34009
|
}
|
|
34028
|
-
var value = parent[
|
|
34010
|
+
var value = parent[last];
|
|
34029
34011
|
if (!value) {
|
|
34030
34012
|
return;
|
|
34031
34013
|
} else if (value.type === "infinity") {
|
|
34032
|
-
parent[
|
|
34014
|
+
parent[last] = Infinity;
|
|
34033
34015
|
} else if (value.type === "nan") {
|
|
34034
|
-
parent[
|
|
34016
|
+
parent[last] = NaN;
|
|
34035
34017
|
} else if (value.type === "undefined") {
|
|
34036
|
-
parent[
|
|
34018
|
+
parent[last] = undefined;
|
|
34037
34019
|
} else {
|
|
34038
34020
|
var replaced = {};
|
|
34039
34021
|
replaced[meta.inspectable] = !!value.inspectable;
|
|
@@ -34044,20 +34026,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
34044
34026
|
replaced[meta.size] = value.size;
|
|
34045
34027
|
replaced[meta.readonly] = !!value.readonly;
|
|
34046
34028
|
replaced[meta.type] = value.type;
|
|
34047
|
-
parent[
|
|
34029
|
+
parent[last] = replaced;
|
|
34048
34030
|
}
|
|
34049
34031
|
});
|
|
34050
34032
|
unserializable.forEach(function(path10) {
|
|
34051
34033
|
var length = path10.length;
|
|
34052
|
-
var
|
|
34034
|
+
var last = path10[length - 1];
|
|
34053
34035
|
var parent = getInObject(object, path10.slice(0, length - 1));
|
|
34054
|
-
if (!parent || !parent.hasOwnProperty(
|
|
34036
|
+
if (!parent || !parent.hasOwnProperty(last)) {
|
|
34055
34037
|
return;
|
|
34056
34038
|
}
|
|
34057
|
-
var node = parent[
|
|
34039
|
+
var node = parent[last];
|
|
34058
34040
|
var replacement = hydration_objectSpread({}, node);
|
|
34059
34041
|
upgradeUnserializable(replacement, node);
|
|
34060
|
-
parent[
|
|
34042
|
+
parent[last] = replacement;
|
|
34061
34043
|
});
|
|
34062
34044
|
return object;
|
|
34063
34045
|
}
|
|
@@ -34168,7 +34150,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
34168
34150
|
if (version == null || version === "") {
|
|
34169
34151
|
return false;
|
|
34170
34152
|
}
|
|
34171
|
-
return
|
|
34153
|
+
return gte(version, FIRST_DEVTOOLS_BACKEND_LOCKSTEP_VER);
|
|
34172
34154
|
}
|
|
34173
34155
|
function cleanForBridge(data, isPathAllowed) {
|
|
34174
34156
|
var path10 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
@@ -34316,17 +34298,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
34316
34298
|
function isSynchronousXHRSupported() {
|
|
34317
34299
|
return !!(window.document && window.document.featurePolicy && window.document.featurePolicy.allowsFeature("sync-xhr"));
|
|
34318
34300
|
}
|
|
34319
|
-
function
|
|
34301
|
+
function gt() {
|
|
34320
34302
|
var a = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
|
|
34321
34303
|
var b = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
|
|
34322
34304
|
return compareVersions(a, b) === 1;
|
|
34323
34305
|
}
|
|
34324
|
-
function
|
|
34306
|
+
function gte() {
|
|
34325
34307
|
var a = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
|
|
34326
34308
|
var b = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
|
|
34327
34309
|
return compareVersions(a, b) > -1;
|
|
34328
34310
|
}
|
|
34329
|
-
var isReactNativeEnvironment = function
|
|
34311
|
+
var isReactNativeEnvironment = function isReactNativeEnvironment() {
|
|
34330
34312
|
return window.document == null;
|
|
34331
34313
|
};
|
|
34332
34314
|
function formatDurationToMicrosecondsGranularity(duration) {
|
|
@@ -34560,14 +34542,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
34560
34542
|
}
|
|
34561
34543
|
return Overlay_createClass(OverlayRect2, [{
|
|
34562
34544
|
key: "remove",
|
|
34563
|
-
value: function
|
|
34545
|
+
value: function remove() {
|
|
34564
34546
|
if (this.node.parentNode) {
|
|
34565
34547
|
this.node.parentNode.removeChild(this.node);
|
|
34566
34548
|
}
|
|
34567
34549
|
}
|
|
34568
34550
|
}, {
|
|
34569
34551
|
key: "update",
|
|
34570
|
-
value: function
|
|
34552
|
+
value: function update(box, dims) {
|
|
34571
34553
|
boxWrap(dims, "margin", this.node);
|
|
34572
34554
|
boxWrap(dims, "border", this.border);
|
|
34573
34555
|
boxWrap(dims, "padding", this.padding);
|
|
@@ -34617,7 +34599,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
34617
34599
|
}
|
|
34618
34600
|
return Overlay_createClass(OverlayTip2, [{
|
|
34619
34601
|
key: "remove",
|
|
34620
|
-
value: function
|
|
34602
|
+
value: function remove() {
|
|
34621
34603
|
if (this.tip.parentNode) {
|
|
34622
34604
|
this.tip.parentNode.removeChild(this.tip);
|
|
34623
34605
|
}
|
|
@@ -34657,7 +34639,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
34657
34639
|
}
|
|
34658
34640
|
return Overlay_createClass(Overlay2, [{
|
|
34659
34641
|
key: "remove",
|
|
34660
|
-
value: function
|
|
34642
|
+
value: function remove() {
|
|
34661
34643
|
this.tip.remove();
|
|
34662
34644
|
this.rects.forEach(function(rect) {
|
|
34663
34645
|
rect.remove();
|
|
@@ -35066,7 +35048,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
35066
35048
|
event.preventDefault();
|
|
35067
35049
|
event.stopPropagation();
|
|
35068
35050
|
}
|
|
35069
|
-
var selectElementForNode = function
|
|
35051
|
+
var selectElementForNode = function selectElementForNode(node) {
|
|
35070
35052
|
var match = agent2.getIDForHostInstance(node, inspectOnlySuspenseNodes);
|
|
35071
35053
|
if (match !== null) {
|
|
35072
35054
|
bridge.send("selectElement", match.id);
|
|
@@ -35321,11 +35303,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
35321
35303
|
return;
|
|
35322
35304
|
nodes.forEach(function(node) {
|
|
35323
35305
|
var data = nodeToData.get(node);
|
|
35324
|
-
var
|
|
35306
|
+
var now = getCurrentTime();
|
|
35325
35307
|
var lastMeasuredAt = data != null ? data.lastMeasuredAt : 0;
|
|
35326
35308
|
var rect = data != null ? data.rect : null;
|
|
35327
|
-
if (rect === null || lastMeasuredAt + REMEASUREMENT_AFTER_DURATION <
|
|
35328
|
-
lastMeasuredAt =
|
|
35309
|
+
if (rect === null || lastMeasuredAt + REMEASUREMENT_AFTER_DURATION < now) {
|
|
35310
|
+
lastMeasuredAt = now;
|
|
35329
35311
|
rect = measureNode(node);
|
|
35330
35312
|
}
|
|
35331
35313
|
var displayName = agent.getComponentNameForHostInstance(node);
|
|
@@ -35339,7 +35321,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
35339
35321
|
}
|
|
35340
35322
|
nodeToData.set(node, {
|
|
35341
35323
|
count: data != null ? data.count + 1 : 1,
|
|
35342
|
-
expirationTime: data != null ? Math.min(
|
|
35324
|
+
expirationTime: data != null ? Math.min(now + MAX_DISPLAY_DURATION, data.expirationTime + DISPLAY_DURATION) : now + DISPLAY_DURATION,
|
|
35343
35325
|
lastMeasuredAt,
|
|
35344
35326
|
rect,
|
|
35345
35327
|
displayName
|
|
@@ -35356,10 +35338,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
35356
35338
|
function prepareToDraw() {
|
|
35357
35339
|
drawAnimationFrameID = null;
|
|
35358
35340
|
redrawTimeoutID = null;
|
|
35359
|
-
var
|
|
35341
|
+
var now = getCurrentTime();
|
|
35360
35342
|
var earliestExpiration = Number.MAX_VALUE;
|
|
35361
35343
|
nodeToData.forEach(function(data, node) {
|
|
35362
|
-
if (data.expirationTime <
|
|
35344
|
+
if (data.expirationTime < now) {
|
|
35363
35345
|
nodeToData.delete(node);
|
|
35364
35346
|
} else {
|
|
35365
35347
|
earliestExpiration = Math.min(earliestExpiration, data.expirationTime);
|
|
@@ -35367,7 +35349,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
35367
35349
|
});
|
|
35368
35350
|
draw(nodeToData, agent);
|
|
35369
35351
|
if (earliestExpiration !== Number.MAX_VALUE) {
|
|
35370
|
-
redrawTimeoutID = setTimeout(prepareToDraw, earliestExpiration -
|
|
35352
|
+
redrawTimeoutID = setTimeout(prepareToDraw, earliestExpiration - now);
|
|
35371
35353
|
}
|
|
35372
35354
|
}
|
|
35373
35355
|
function measureNode(node) {
|
|
@@ -35464,12 +35446,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
35464
35446
|
try {
|
|
35465
35447
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
35466
35448
|
} catch (t2) {}
|
|
35467
|
-
return (_isNativeReflectConstruct = function
|
|
35449
|
+
return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {
|
|
35468
35450
|
return !!t;
|
|
35469
35451
|
})();
|
|
35470
35452
|
}
|
|
35471
35453
|
function _getPrototypeOf(o) {
|
|
35472
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function
|
|
35454
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o2) {
|
|
35473
35455
|
return o2.__proto__ || Object.getPrototypeOf(o2);
|
|
35474
35456
|
};
|
|
35475
35457
|
return _getPrototypeOf(o);
|
|
@@ -35484,7 +35466,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
35484
35466
|
_setPrototypeOf(subClass, superClass);
|
|
35485
35467
|
}
|
|
35486
35468
|
function _setPrototypeOf(o, p) {
|
|
35487
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function
|
|
35469
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o2, p2) {
|
|
35488
35470
|
o2.__proto__ = p2;
|
|
35489
35471
|
return o2;
|
|
35490
35472
|
};
|
|
@@ -35604,7 +35586,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
35604
35586
|
_inherits(Bridge2, _EventEmitter);
|
|
35605
35587
|
return bridge_createClass(Bridge2, [{
|
|
35606
35588
|
key: "wall",
|
|
35607
|
-
get: function
|
|
35589
|
+
get: function get() {
|
|
35608
35590
|
return this._wall;
|
|
35609
35591
|
}
|
|
35610
35592
|
}, {
|
|
@@ -35737,12 +35719,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
35737
35719
|
try {
|
|
35738
35720
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
35739
35721
|
} catch (t2) {}
|
|
35740
|
-
return (agent_isNativeReflectConstruct = function
|
|
35722
|
+
return (agent_isNativeReflectConstruct = function _isNativeReflectConstruct() {
|
|
35741
35723
|
return !!t;
|
|
35742
35724
|
})();
|
|
35743
35725
|
}
|
|
35744
35726
|
function agent_getPrototypeOf(o) {
|
|
35745
|
-
agent_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function
|
|
35727
|
+
agent_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o2) {
|
|
35746
35728
|
return o2.__proto__ || Object.getPrototypeOf(o2);
|
|
35747
35729
|
};
|
|
35748
35730
|
return agent_getPrototypeOf(o);
|
|
@@ -35757,7 +35739,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
35757
35739
|
agent_setPrototypeOf(subClass, superClass);
|
|
35758
35740
|
}
|
|
35759
35741
|
function agent_setPrototypeOf(o, p) {
|
|
35760
|
-
agent_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function
|
|
35742
|
+
agent_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o2, p2) {
|
|
35761
35743
|
o2.__proto__ = p2;
|
|
35762
35744
|
return o2;
|
|
35763
35745
|
};
|
|
@@ -35788,7 +35770,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
35788
35770
|
}
|
|
35789
35771
|
return (r === "string" ? String : Number)(t);
|
|
35790
35772
|
}
|
|
35791
|
-
var debug = function
|
|
35773
|
+
var debug = function debug(methodName) {
|
|
35792
35774
|
if (__DEBUG__) {
|
|
35793
35775
|
var _console;
|
|
35794
35776
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1;_key < _len; _key++) {
|
|
@@ -36395,7 +36377,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
36395
36377
|
agent_inherits(Agent2, _EventEmitter);
|
|
36396
36378
|
return agent_createClass(Agent2, [{
|
|
36397
36379
|
key: "rendererInterfaces",
|
|
36398
|
-
get: function
|
|
36380
|
+
get: function get() {
|
|
36399
36381
|
return this._rendererInterfaces;
|
|
36400
36382
|
}
|
|
36401
36383
|
}, {
|
|
@@ -36487,7 +36469,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
36487
36469
|
var renderer = rendererInterface.renderer;
|
|
36488
36470
|
if (renderer !== null) {
|
|
36489
36471
|
var devRenderer = renderer.bundleType === 1;
|
|
36490
|
-
var enableSuspenseTab = devRenderer &&
|
|
36472
|
+
var enableSuspenseTab = devRenderer && gte(renderer.version, "19.3.0-canary");
|
|
36491
36473
|
if (enableSuspenseTab) {
|
|
36492
36474
|
this._bridge.send("enableSuspenseTab");
|
|
36493
36475
|
}
|
|
@@ -36740,11 +36722,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
36740
36722
|
var control;
|
|
36741
36723
|
try {
|
|
36742
36724
|
if (construct) {
|
|
36743
|
-
var Fake = function
|
|
36725
|
+
var Fake = function Fake() {
|
|
36744
36726
|
throw Error();
|
|
36745
36727
|
};
|
|
36746
36728
|
Object.defineProperty(Fake.prototype, "props", {
|
|
36747
|
-
set: function
|
|
36729
|
+
set: function set() {
|
|
36748
36730
|
throw Error();
|
|
36749
36731
|
}
|
|
36750
36732
|
});
|
|
@@ -36774,9 +36756,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
36774
36756
|
maybePromise.catch(function() {});
|
|
36775
36757
|
}
|
|
36776
36758
|
}
|
|
36777
|
-
} catch (
|
|
36778
|
-
if (
|
|
36779
|
-
return [
|
|
36759
|
+
} catch (sample) {
|
|
36760
|
+
if (sample && control && typeof sample.stack === "string") {
|
|
36761
|
+
return [sample.stack, control.stack];
|
|
36780
36762
|
}
|
|
36781
36763
|
}
|
|
36782
36764
|
return [null, null];
|
|
@@ -37231,29 +37213,29 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
37231
37213
|
var typeName = callSite.getTypeName();
|
|
37232
37214
|
var methodName = callSite.getMethodName();
|
|
37233
37215
|
var functionName = callSite.getFunctionName();
|
|
37234
|
-
var
|
|
37216
|
+
var result = "";
|
|
37235
37217
|
if (functionName) {
|
|
37236
37218
|
if (typeName && identifierRegExp.test(functionName) && functionName !== typeName) {
|
|
37237
|
-
|
|
37219
|
+
result += typeName + ".";
|
|
37238
37220
|
}
|
|
37239
|
-
|
|
37221
|
+
result += functionName;
|
|
37240
37222
|
if (methodName && functionName !== methodName && !functionName.endsWith("." + methodName) && !functionName.endsWith(" " + methodName)) {
|
|
37241
|
-
|
|
37223
|
+
result += " [as " + methodName + "]";
|
|
37242
37224
|
}
|
|
37243
37225
|
} else {
|
|
37244
37226
|
if (typeName) {
|
|
37245
|
-
|
|
37227
|
+
result += typeName + ".";
|
|
37246
37228
|
}
|
|
37247
37229
|
if (methodName) {
|
|
37248
|
-
|
|
37230
|
+
result += methodName;
|
|
37249
37231
|
} else {
|
|
37250
|
-
|
|
37232
|
+
result += "<anonymous>";
|
|
37251
37233
|
}
|
|
37252
37234
|
}
|
|
37253
|
-
return
|
|
37235
|
+
return result;
|
|
37254
37236
|
}
|
|
37255
37237
|
function collectStackTrace(error, structuredStackTrace) {
|
|
37256
|
-
var
|
|
37238
|
+
var result = [];
|
|
37257
37239
|
for (var i2 = framesToSkip;i2 < structuredStackTrace.length; i2++) {
|
|
37258
37240
|
var callSite = structuredStackTrace[i2];
|
|
37259
37241
|
var _name = callSite.getFunctionName() || "<anonymous>";
|
|
@@ -37261,7 +37243,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
37261
37243
|
break;
|
|
37262
37244
|
} else if (callSite.isNative()) {
|
|
37263
37245
|
var isAsync = callSite.isAsync();
|
|
37264
|
-
|
|
37246
|
+
result.push([_name, "", 0, 0, 0, 0, isAsync]);
|
|
37265
37247
|
} else {
|
|
37266
37248
|
if (callSite.isConstructor()) {
|
|
37267
37249
|
_name = "new " + _name;
|
|
@@ -37286,10 +37268,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
37286
37268
|
var enclosingLine = typeof callSite.getEnclosingLineNumber === "function" ? callSite.getEnclosingLineNumber() || 0 : 0;
|
|
37287
37269
|
var enclosingCol = typeof callSite.getEnclosingColumnNumber === "function" ? callSite.getEnclosingColumnNumber() || 0 : 0;
|
|
37288
37270
|
var _isAsync = callSite.isAsync();
|
|
37289
|
-
|
|
37271
|
+
result.push([_name, filename, line, col, enclosingLine, enclosingCol, _isAsync]);
|
|
37290
37272
|
}
|
|
37291
37273
|
}
|
|
37292
|
-
collectedStackTrace =
|
|
37274
|
+
collectedStackTrace = result;
|
|
37293
37275
|
var name = error.name || "Error";
|
|
37294
37276
|
var message = error.message || "";
|
|
37295
37277
|
var stack = name + ": " + message;
|
|
@@ -37317,10 +37299,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
37317
37299
|
Error.prepareStackTrace = previousPrepare;
|
|
37318
37300
|
}
|
|
37319
37301
|
if (collectedStackTrace !== null) {
|
|
37320
|
-
var
|
|
37302
|
+
var result = collectedStackTrace;
|
|
37321
37303
|
collectedStackTrace = null;
|
|
37322
|
-
stackTraceCache.set(error,
|
|
37323
|
-
return
|
|
37304
|
+
stackTraceCache.set(error, result);
|
|
37305
|
+
return result;
|
|
37324
37306
|
}
|
|
37325
37307
|
var parsedFrames = parseStackTraceFromString(stack, skipFrames);
|
|
37326
37308
|
stackTraceCache.set(error, parsedFrames);
|
|
@@ -37618,8 +37600,8 @@ Error generating stack: ` + x.message + `
|
|
|
37618
37600
|
resolvedStyles = Object.fromEntries(Object.entries(resolvedStyles).sort());
|
|
37619
37601
|
}
|
|
37620
37602
|
function crawlObjectProperties(entry, sources, resolvedStyles) {
|
|
37621
|
-
var
|
|
37622
|
-
|
|
37603
|
+
var keys = Object.keys(entry);
|
|
37604
|
+
keys.forEach(function(key) {
|
|
37623
37605
|
var value = entry[key];
|
|
37624
37606
|
if (typeof value === "string") {
|
|
37625
37607
|
if (key === value) {
|
|
@@ -37659,8 +37641,8 @@ Error generating stack: ` + x.message + `
|
|
|
37659
37641
|
if (selectorText.startsWith(".".concat(styleName))) {
|
|
37660
37642
|
var match = cssText.match(/{ *([a-z\-]+):/);
|
|
37661
37643
|
if (match !== null) {
|
|
37662
|
-
var
|
|
37663
|
-
var value = style.getPropertyValue(
|
|
37644
|
+
var property = match[1];
|
|
37645
|
+
var value = style.getPropertyValue(property);
|
|
37664
37646
|
cachedStyleNameToValueMap.set(styleName, value);
|
|
37665
37647
|
return value;
|
|
37666
37648
|
} else {
|
|
@@ -38080,11 +38062,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
38080
38062
|
var CHECK_V3_MARK = "__v3";
|
|
38081
38063
|
var markOptions = {};
|
|
38082
38064
|
Object.defineProperty(markOptions, "startTime", {
|
|
38083
|
-
get: function
|
|
38065
|
+
get: function get() {
|
|
38084
38066
|
supportsUserTimingV3 = true;
|
|
38085
38067
|
return 0;
|
|
38086
38068
|
},
|
|
38087
|
-
set: function
|
|
38069
|
+
set: function set() {}
|
|
38088
38070
|
});
|
|
38089
38071
|
try {
|
|
38090
38072
|
performance.mark(CHECK_V3_MARK, markOptions);
|
|
@@ -38154,8 +38136,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
38154
38136
|
var ranges = getInternalModuleRanges();
|
|
38155
38137
|
if (ranges) {
|
|
38156
38138
|
for (var i2 = 0;i2 < ranges.length; i2++) {
|
|
38157
|
-
var
|
|
38158
|
-
if (shared_isArray(
|
|
38139
|
+
var range = ranges[i2];
|
|
38140
|
+
if (shared_isArray(range) && range.length === 2) {
|
|
38159
38141
|
var _ranges$i = profilingHooks_slicedToArray(ranges[i2], 2), startStackFrame = _ranges$i[0], stopStackFrame = _ranges$i[1];
|
|
38160
38142
|
markAndClear("--react-internal-module-start-".concat(startStackFrame));
|
|
38161
38143
|
markAndClear("--react-internal-module-stop-".concat(stopStackFrame));
|
|
@@ -38617,8 +38599,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
38617
38599
|
var ranges = getInternalModuleRanges();
|
|
38618
38600
|
if (ranges) {
|
|
38619
38601
|
for (var i2 = 0;i2 < ranges.length; i2++) {
|
|
38620
|
-
var
|
|
38621
|
-
if (shared_isArray(
|
|
38602
|
+
var range = ranges[i2];
|
|
38603
|
+
if (shared_isArray(range) && range.length === 2) {
|
|
38622
38604
|
var _ranges$i2 = profilingHooks_slicedToArray(ranges[i2], 2), startStackFrame = _ranges$i2[0], stopStackFrame = _ranges$i2[1];
|
|
38623
38605
|
markAndClear("--react-internal-module-start-".concat(startStackFrame));
|
|
38624
38606
|
markAndClear("--react-internal-module-stop-".concat(stopStackFrame));
|
|
@@ -38806,7 +38788,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
38806
38788
|
if (it)
|
|
38807
38789
|
o = it;
|
|
38808
38790
|
var i2 = 0;
|
|
38809
|
-
var F = function
|
|
38791
|
+
var F = function F() {};
|
|
38810
38792
|
return { s: F, n: function n() {
|
|
38811
38793
|
if (i2 >= o.length)
|
|
38812
38794
|
return { done: true };
|
|
@@ -38969,7 +38951,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
38969
38951
|
IdlePriority: 95,
|
|
38970
38952
|
NoPriority: 90
|
|
38971
38953
|
};
|
|
38972
|
-
if (
|
|
38954
|
+
if (gt(version, "17.0.2")) {
|
|
38973
38955
|
ReactPriorityLevels = {
|
|
38974
38956
|
ImmediatePriority: 1,
|
|
38975
38957
|
UserBlockingPriority: 2,
|
|
@@ -38980,16 +38962,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
38980
38962
|
};
|
|
38981
38963
|
}
|
|
38982
38964
|
var StrictModeBits = 0;
|
|
38983
|
-
if (
|
|
38965
|
+
if (gte(version, "18.0.0-alpha")) {
|
|
38984
38966
|
StrictModeBits = 24;
|
|
38985
|
-
} else if (
|
|
38967
|
+
} else if (gte(version, "16.9.0")) {
|
|
38986
38968
|
StrictModeBits = 1;
|
|
38987
|
-
} else if (
|
|
38969
|
+
} else if (gte(version, "16.3.0")) {
|
|
38988
38970
|
StrictModeBits = 2;
|
|
38989
38971
|
}
|
|
38990
38972
|
var SuspenseyImagesMode = 32;
|
|
38991
38973
|
var ReactTypeOfWork = null;
|
|
38992
|
-
if (
|
|
38974
|
+
if (gt(version, "17.0.1")) {
|
|
38993
38975
|
ReactTypeOfWork = {
|
|
38994
38976
|
CacheComponent: 24,
|
|
38995
38977
|
ClassComponent: 1,
|
|
@@ -39026,7 +39008,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
39026
39008
|
ViewTransitionComponent: 30,
|
|
39027
39009
|
ActivityComponent: 31
|
|
39028
39010
|
};
|
|
39029
|
-
} else if (
|
|
39011
|
+
} else if (gte(version, "17.0.0-alpha")) {
|
|
39030
39012
|
ReactTypeOfWork = {
|
|
39031
39013
|
CacheComponent: -1,
|
|
39032
39014
|
ClassComponent: 1,
|
|
@@ -39063,7 +39045,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
39063
39045
|
ViewTransitionComponent: -1,
|
|
39064
39046
|
ActivityComponent: -1
|
|
39065
39047
|
};
|
|
39066
|
-
} else if (
|
|
39048
|
+
} else if (gte(version, "16.6.0-beta.0")) {
|
|
39067
39049
|
ReactTypeOfWork = {
|
|
39068
39050
|
CacheComponent: -1,
|
|
39069
39051
|
ClassComponent: 1,
|
|
@@ -39100,7 +39082,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
39100
39082
|
ViewTransitionComponent: -1,
|
|
39101
39083
|
ActivityComponent: -1
|
|
39102
39084
|
};
|
|
39103
|
-
} else if (
|
|
39085
|
+
} else if (gte(version, "16.4.3-alpha")) {
|
|
39104
39086
|
ReactTypeOfWork = {
|
|
39105
39087
|
CacheComponent: -1,
|
|
39106
39088
|
ClassComponent: 2,
|
|
@@ -39395,7 +39377,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
39395
39377
|
var { getLaneLabelMap, injectProfilingHooks, overrideHookState, overrideHookStateDeletePath, overrideHookStateRenamePath, overrideProps, overridePropsDeletePath, overridePropsRenamePath, scheduleRefresh, setErrorHandler, setSuspenseHandler, scheduleUpdate, scheduleRetry, getCurrentFiber } = renderer;
|
|
39396
39378
|
var supportsTogglingError = typeof setErrorHandler === "function" && typeof scheduleUpdate === "function";
|
|
39397
39379
|
var supportsTogglingSuspense = typeof setSuspenseHandler === "function" && typeof scheduleUpdate === "function";
|
|
39398
|
-
var supportsPerformanceTracks =
|
|
39380
|
+
var supportsPerformanceTracks = gte(version, "19.2.0");
|
|
39399
39381
|
if (typeof scheduleRefresh === "function") {
|
|
39400
39382
|
renderer.scheduleRefresh = function() {
|
|
39401
39383
|
try {
|
|
@@ -40000,9 +39982,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
40000
39982
|
if (prev == null || next == null) {
|
|
40001
39983
|
return null;
|
|
40002
39984
|
}
|
|
40003
|
-
var
|
|
39985
|
+
var keys = new Set([].concat(fiber_renderer_toConsumableArray(Object.keys(prev)), fiber_renderer_toConsumableArray(Object.keys(next))));
|
|
40004
39986
|
var changedKeys = [];
|
|
40005
|
-
var _iterator6 = _createForOfIteratorHelper(
|
|
39987
|
+
var _iterator6 = _createForOfIteratorHelper(keys), _step6;
|
|
40006
39988
|
try {
|
|
40007
39989
|
for (_iterator6.s();!(_step6 = _iterator6.n()).done; ) {
|
|
40008
39990
|
var key = _step6.value;
|
|
@@ -40174,7 +40156,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
40174
40156
|
height: instance.scrollHeight
|
|
40175
40157
|
}];
|
|
40176
40158
|
}
|
|
40177
|
-
var
|
|
40159
|
+
var result = [];
|
|
40178
40160
|
var win = doc && doc.defaultView;
|
|
40179
40161
|
var scrollX = win ? win.scrollX : 0;
|
|
40180
40162
|
var scrollY = win ? win.scrollY : 0;
|
|
@@ -40183,25 +40165,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
40183
40165
|
if (typeof doc.createRange !== "function") {
|
|
40184
40166
|
return null;
|
|
40185
40167
|
}
|
|
40186
|
-
var
|
|
40187
|
-
if (typeof
|
|
40168
|
+
var range = doc.createRange();
|
|
40169
|
+
if (typeof range.getClientRects !== "function") {
|
|
40188
40170
|
return null;
|
|
40189
40171
|
}
|
|
40190
|
-
|
|
40191
|
-
rects =
|
|
40172
|
+
range.selectNodeContents(instance);
|
|
40173
|
+
rects = range.getClientRects();
|
|
40192
40174
|
} else {
|
|
40193
40175
|
rects = instance.getClientRects();
|
|
40194
40176
|
}
|
|
40195
40177
|
for (var i2 = 0;i2 < rects.length; i2++) {
|
|
40196
40178
|
var rect = rects[i2];
|
|
40197
|
-
|
|
40179
|
+
result.push({
|
|
40198
40180
|
x: rect.x + scrollX,
|
|
40199
40181
|
y: rect.y + scrollY,
|
|
40200
40182
|
width: rect.width,
|
|
40201
40183
|
height: rect.height
|
|
40202
40184
|
});
|
|
40203
40185
|
}
|
|
40204
|
-
return
|
|
40186
|
+
return result;
|
|
40205
40187
|
}
|
|
40206
40188
|
if (instance.canonical) {
|
|
40207
40189
|
var publicInstance = instance.canonical.publicInstance;
|
|
@@ -40219,18 +40201,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
40219
40201
|
}
|
|
40220
40202
|
function measureInstance(instance) {
|
|
40221
40203
|
var hostInstances = findAllCurrentHostInstances(instance);
|
|
40222
|
-
var
|
|
40204
|
+
var result = null;
|
|
40223
40205
|
for (var i2 = 0;i2 < hostInstances.length; i2++) {
|
|
40224
40206
|
var childResult = measureHostInstance(hostInstances[i2]);
|
|
40225
40207
|
if (childResult !== null) {
|
|
40226
|
-
if (
|
|
40227
|
-
|
|
40208
|
+
if (result === null) {
|
|
40209
|
+
result = childResult;
|
|
40228
40210
|
} else {
|
|
40229
|
-
|
|
40211
|
+
result = result.concat(childResult);
|
|
40230
40212
|
}
|
|
40231
40213
|
}
|
|
40232
40214
|
}
|
|
40233
|
-
return
|
|
40215
|
+
return result;
|
|
40234
40216
|
}
|
|
40235
40217
|
function getStringID(string) {
|
|
40236
40218
|
if (string === null) {
|
|
@@ -42465,10 +42447,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
42465
42447
|
}
|
|
42466
42448
|
function inspectHooks(fiber) {
|
|
42467
42449
|
var originalConsoleMethods = {};
|
|
42468
|
-
for (var
|
|
42450
|
+
for (var method in console) {
|
|
42469
42451
|
try {
|
|
42470
|
-
originalConsoleMethods[
|
|
42471
|
-
console[
|
|
42452
|
+
originalConsoleMethods[method] = console[method];
|
|
42453
|
+
console[method] = function() {};
|
|
42472
42454
|
} catch (error) {}
|
|
42473
42455
|
}
|
|
42474
42456
|
try {
|
|
@@ -42482,14 +42464,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
42482
42464
|
}
|
|
42483
42465
|
}
|
|
42484
42466
|
function getSuspendedByOfSuspenseNode(suspenseNode, filterByChildInstance) {
|
|
42485
|
-
var
|
|
42467
|
+
var result = [];
|
|
42486
42468
|
if (!suspenseNode.hasUniqueSuspenders) {
|
|
42487
|
-
return
|
|
42469
|
+
return result;
|
|
42488
42470
|
}
|
|
42489
42471
|
var hooksCacheKey = null;
|
|
42490
42472
|
var hooksCache = null;
|
|
42491
42473
|
var streamEntries = new Map;
|
|
42492
|
-
suspenseNode.suspendedBy.forEach(function(
|
|
42474
|
+
suspenseNode.suspendedBy.forEach(function(set2, ioInfo) {
|
|
42493
42475
|
var parentNode = suspenseNode.parent;
|
|
42494
42476
|
while (parentNode !== null) {
|
|
42495
42477
|
if (parentNode.suspendedBy.has(ioInfo)) {
|
|
@@ -42497,14 +42479,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
42497
42479
|
}
|
|
42498
42480
|
parentNode = parentNode.parent;
|
|
42499
42481
|
}
|
|
42500
|
-
if (
|
|
42482
|
+
if (set2.size === 0) {
|
|
42501
42483
|
return;
|
|
42502
42484
|
}
|
|
42503
42485
|
var firstInstance = null;
|
|
42504
42486
|
if (filterByChildInstance === null) {
|
|
42505
|
-
firstInstance =
|
|
42487
|
+
firstInstance = set2.values().next().value;
|
|
42506
42488
|
} else {
|
|
42507
|
-
var _iterator7 = _createForOfIteratorHelper(
|
|
42489
|
+
var _iterator7 = _createForOfIteratorHelper(set2.values()), _step7;
|
|
42508
42490
|
try {
|
|
42509
42491
|
for (_iterator7.s();!(_step7 = _iterator7.n()).done; ) {
|
|
42510
42492
|
var childInstance = _step7.value;
|
|
@@ -42555,16 +42537,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
42555
42537
|
}
|
|
42556
42538
|
}
|
|
42557
42539
|
} else {
|
|
42558
|
-
|
|
42540
|
+
result.push(serializeAsyncInfo(asyncInfo, firstInstance, hooks));
|
|
42559
42541
|
}
|
|
42560
42542
|
}
|
|
42561
42543
|
}
|
|
42562
42544
|
});
|
|
42563
42545
|
streamEntries.forEach(function(_ref) {
|
|
42564
42546
|
var { asyncInfo, instance, hooks } = _ref;
|
|
42565
|
-
|
|
42547
|
+
result.push(serializeAsyncInfo(asyncInfo, instance, hooks));
|
|
42566
42548
|
});
|
|
42567
|
-
return
|
|
42549
|
+
return result;
|
|
42568
42550
|
}
|
|
42569
42551
|
function getSuspendedByOfInstance(devtoolsInstance, hooks) {
|
|
42570
42552
|
var suspendedBy = devtoolsInstance.suspendedBy;
|
|
@@ -42573,7 +42555,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
42573
42555
|
}
|
|
42574
42556
|
var foundIOEntries = new Set;
|
|
42575
42557
|
var streamEntries = new Map;
|
|
42576
|
-
var
|
|
42558
|
+
var result = [];
|
|
42577
42559
|
for (var i2 = 0;i2 < suspendedBy.length; i2++) {
|
|
42578
42560
|
var asyncInfo = suspendedBy[i2];
|
|
42579
42561
|
var ioInfo = asyncInfo.awaited;
|
|
@@ -42593,13 +42575,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
42593
42575
|
}
|
|
42594
42576
|
}
|
|
42595
42577
|
} else {
|
|
42596
|
-
|
|
42578
|
+
result.push(serializeAsyncInfo(asyncInfo, devtoolsInstance, hooks));
|
|
42597
42579
|
}
|
|
42598
42580
|
}
|
|
42599
42581
|
streamEntries.forEach(function(asyncInfo2) {
|
|
42600
|
-
|
|
42582
|
+
result.push(serializeAsyncInfo(asyncInfo2, devtoolsInstance, hooks));
|
|
42601
42583
|
});
|
|
42602
|
-
return
|
|
42584
|
+
return result;
|
|
42603
42585
|
}
|
|
42604
42586
|
function getSuspendedByOfInstanceSubtree(devtoolsInstance) {
|
|
42605
42587
|
var suspenseParentInstance = devtoolsInstance;
|
|
@@ -42614,14 +42596,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
42614
42596
|
}
|
|
42615
42597
|
var FALLBACK_THROTTLE_MS = 300;
|
|
42616
42598
|
function getSuspendedByRange(suspenseNode) {
|
|
42617
|
-
var
|
|
42618
|
-
var
|
|
42599
|
+
var min = Infinity;
|
|
42600
|
+
var max = -Infinity;
|
|
42619
42601
|
suspenseNode.suspendedBy.forEach(function(_, ioInfo) {
|
|
42620
|
-
if (ioInfo.end >
|
|
42621
|
-
|
|
42602
|
+
if (ioInfo.end > max) {
|
|
42603
|
+
max = ioInfo.end;
|
|
42622
42604
|
}
|
|
42623
|
-
if (ioInfo.start <
|
|
42624
|
-
|
|
42605
|
+
if (ioInfo.start < min) {
|
|
42606
|
+
min = ioInfo.start;
|
|
42625
42607
|
}
|
|
42626
42608
|
});
|
|
42627
42609
|
var parentSuspenseNode = suspenseNode.parent;
|
|
@@ -42633,19 +42615,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
42633
42615
|
}
|
|
42634
42616
|
});
|
|
42635
42617
|
var throttleTime = parentMax + FALLBACK_THROTTLE_MS;
|
|
42636
|
-
if (throttleTime >
|
|
42637
|
-
|
|
42618
|
+
if (throttleTime > max) {
|
|
42619
|
+
max = throttleTime;
|
|
42638
42620
|
}
|
|
42639
|
-
var startTime =
|
|
42621
|
+
var startTime = max - FALLBACK_THROTTLE_MS;
|
|
42640
42622
|
if (parentMax > startTime) {
|
|
42641
42623
|
startTime = parentMax;
|
|
42642
42624
|
}
|
|
42643
|
-
if (startTime <
|
|
42644
|
-
|
|
42625
|
+
if (startTime < min) {
|
|
42626
|
+
min = startTime;
|
|
42645
42627
|
}
|
|
42646
42628
|
}
|
|
42647
|
-
if (
|
|
42648
|
-
return [
|
|
42629
|
+
if (min < Infinity && max > -Infinity) {
|
|
42630
|
+
return [min, max];
|
|
42649
42631
|
}
|
|
42650
42632
|
return null;
|
|
42651
42633
|
}
|
|
@@ -43322,8 +43304,8 @@ The error thrown in the component is:
|
|
|
43322
43304
|
return inspectedRoots;
|
|
43323
43305
|
}
|
|
43324
43306
|
function logElementToConsole(id) {
|
|
43325
|
-
var
|
|
43326
|
-
if (
|
|
43307
|
+
var result = isMostRecentlyInspectedElementCurrent(id) ? mostRecentlyInspectedElement : inspectElementRaw(id);
|
|
43308
|
+
if (result === null) {
|
|
43327
43309
|
console.warn('Could not find DevToolsInstance with id "'.concat(id, '"'));
|
|
43328
43310
|
return;
|
|
43329
43311
|
}
|
|
@@ -43332,14 +43314,14 @@ The error thrown in the component is:
|
|
|
43332
43314
|
if (supportsGroup) {
|
|
43333
43315
|
console.groupCollapsed("[Click to expand] %c<".concat(displayName || "Component", " />"), "color: var(--dom-tag-name-color); font-weight: normal;");
|
|
43334
43316
|
}
|
|
43335
|
-
if (
|
|
43336
|
-
console.log("Props:",
|
|
43317
|
+
if (result.props !== null) {
|
|
43318
|
+
console.log("Props:", result.props);
|
|
43337
43319
|
}
|
|
43338
|
-
if (
|
|
43339
|
-
console.log("State:",
|
|
43320
|
+
if (result.state !== null) {
|
|
43321
|
+
console.log("State:", result.state);
|
|
43340
43322
|
}
|
|
43341
|
-
if (
|
|
43342
|
-
console.log("Hooks:",
|
|
43323
|
+
if (result.hooks !== null) {
|
|
43324
|
+
console.log("Hooks:", result.hooks);
|
|
43343
43325
|
}
|
|
43344
43326
|
var hostInstances = findHostInstancesForElementID(id);
|
|
43345
43327
|
if (hostInstances !== null) {
|
|
@@ -43555,8 +43537,8 @@ The error thrown in the component is:
|
|
|
43555
43537
|
if (typeof getTimelineData === "function") {
|
|
43556
43538
|
var currentTimelineData = getTimelineData();
|
|
43557
43539
|
if (currentTimelineData) {
|
|
43558
|
-
var { batchUIDToMeasuresMap, internalModuleSourceToRanges, laneToLabelMap, laneToReactMeasureMap } = currentTimelineData,
|
|
43559
|
-
timelineData = renderer_objectSpread(renderer_objectSpread({},
|
|
43540
|
+
var { batchUIDToMeasuresMap, internalModuleSourceToRanges, laneToLabelMap, laneToReactMeasureMap } = currentTimelineData, rest = _objectWithoutProperties(currentTimelineData, _excluded);
|
|
43541
|
+
timelineData = renderer_objectSpread(renderer_objectSpread({}, rest), {}, {
|
|
43560
43542
|
batchUIDToMeasuresKeyValueArray: Array.from(batchUIDToMeasuresMap.entries()),
|
|
43561
43543
|
internalModuleSourceToRanges: Array.from(internalModuleSourceToRanges.entries()),
|
|
43562
43544
|
laneToLabelKeyValueArray: Array.from(laneToLabelMap.entries()),
|
|
@@ -43974,7 +43956,7 @@ The error thrown in the component is:
|
|
|
43974
43956
|
isFullMatch: trackedPathMatchDepth === trackedPath.length - 1
|
|
43975
43957
|
};
|
|
43976
43958
|
}
|
|
43977
|
-
var formatPriorityLevel = function
|
|
43959
|
+
var formatPriorityLevel = function formatPriorityLevel(priorityLevel) {
|
|
43978
43960
|
if (priorityLevel == null) {
|
|
43979
43961
|
return "Unknown";
|
|
43980
43962
|
}
|
|
@@ -44222,19 +44204,19 @@ The error thrown in the component is:
|
|
|
44222
44204
|
var internalInstanceToRootIDMap = new WeakMap;
|
|
44223
44205
|
var getElementIDForHostInstance = null;
|
|
44224
44206
|
var findHostInstanceForInternalID;
|
|
44225
|
-
var getNearestMountedDOMNode = function
|
|
44207
|
+
var getNearestMountedDOMNode = function getNearestMountedDOMNode(node) {
|
|
44226
44208
|
return null;
|
|
44227
44209
|
};
|
|
44228
44210
|
if (renderer.ComponentTree) {
|
|
44229
|
-
getElementIDForHostInstance = function
|
|
44211
|
+
getElementIDForHostInstance = function getElementIDForHostInstance(node) {
|
|
44230
44212
|
var internalInstance = renderer.ComponentTree.getClosestInstanceFromNode(node);
|
|
44231
44213
|
return internalInstanceToIDMap.get(internalInstance) || null;
|
|
44232
44214
|
};
|
|
44233
|
-
findHostInstanceForInternalID = function
|
|
44215
|
+
findHostInstanceForInternalID = function findHostInstanceForInternalID(id) {
|
|
44234
44216
|
var internalInstance = idToInternalInstanceMap.get(id);
|
|
44235
44217
|
return renderer.ComponentTree.getNodeFromInstance(internalInstance);
|
|
44236
44218
|
};
|
|
44237
|
-
getNearestMountedDOMNode = function
|
|
44219
|
+
getNearestMountedDOMNode = function getNearestMountedDOMNode(node) {
|
|
44238
44220
|
var internalInstance = renderer.ComponentTree.getClosestInstanceFromNode(node);
|
|
44239
44221
|
if (internalInstance != null) {
|
|
44240
44222
|
return renderer.ComponentTree.getNodeFromInstance(internalInstance);
|
|
@@ -44242,10 +44224,10 @@ The error thrown in the component is:
|
|
|
44242
44224
|
return null;
|
|
44243
44225
|
};
|
|
44244
44226
|
} else if (renderer.Mount.getID && renderer.Mount.getNode) {
|
|
44245
|
-
getElementIDForHostInstance = function
|
|
44227
|
+
getElementIDForHostInstance = function getElementIDForHostInstance(node) {
|
|
44246
44228
|
return null;
|
|
44247
44229
|
};
|
|
44248
|
-
findHostInstanceForInternalID = function
|
|
44230
|
+
findHostInstanceForInternalID = function findHostInstanceForInternalID(id) {
|
|
44249
44231
|
return null;
|
|
44250
44232
|
};
|
|
44251
44233
|
}
|
|
@@ -44295,9 +44277,9 @@ The error thrown in the component is:
|
|
|
44295
44277
|
parentIDStack.push(id);
|
|
44296
44278
|
internalInstanceToRootIDMap.set(internalInstance, getID(hostContainerInfo._topLevelWrapper));
|
|
44297
44279
|
try {
|
|
44298
|
-
var
|
|
44280
|
+
var result = fn.apply(this, args);
|
|
44299
44281
|
parentIDStack.pop();
|
|
44300
|
-
return
|
|
44282
|
+
return result;
|
|
44301
44283
|
} catch (err) {
|
|
44302
44284
|
parentIDStack = [];
|
|
44303
44285
|
throw err;
|
|
@@ -44320,13 +44302,13 @@ The error thrown in the component is:
|
|
|
44320
44302
|
parentIDStack.push(id);
|
|
44321
44303
|
var prevChildren = getChildren(internalInstance);
|
|
44322
44304
|
try {
|
|
44323
|
-
var
|
|
44305
|
+
var result = fn.apply(this, args);
|
|
44324
44306
|
var nextChildren = getChildren(internalInstance);
|
|
44325
44307
|
if (!areEqualArrays(prevChildren, nextChildren)) {
|
|
44326
44308
|
recordReorder(internalInstance, id, nextChildren);
|
|
44327
44309
|
}
|
|
44328
44310
|
parentIDStack.pop();
|
|
44329
|
-
return
|
|
44311
|
+
return result;
|
|
44330
44312
|
} catch (err) {
|
|
44331
44313
|
parentIDStack = [];
|
|
44332
44314
|
throw err;
|
|
@@ -44349,13 +44331,13 @@ The error thrown in the component is:
|
|
|
44349
44331
|
parentIDStack.push(id);
|
|
44350
44332
|
var prevChildren = getChildren(internalInstance);
|
|
44351
44333
|
try {
|
|
44352
|
-
var
|
|
44334
|
+
var result = fn.apply(this, args);
|
|
44353
44335
|
var nextChildren = getChildren(internalInstance);
|
|
44354
44336
|
if (!areEqualArrays(prevChildren, nextChildren)) {
|
|
44355
44337
|
recordReorder(internalInstance, id, nextChildren);
|
|
44356
44338
|
}
|
|
44357
44339
|
parentIDStack.pop();
|
|
44358
|
-
return
|
|
44340
|
+
return result;
|
|
44359
44341
|
} catch (err) {
|
|
44360
44342
|
parentIDStack = [];
|
|
44361
44343
|
throw err;
|
|
@@ -44377,10 +44359,10 @@ The error thrown in the component is:
|
|
|
44377
44359
|
var id = getID(internalInstance);
|
|
44378
44360
|
parentIDStack.push(id);
|
|
44379
44361
|
try {
|
|
44380
|
-
var
|
|
44362
|
+
var result = fn.apply(this, args);
|
|
44381
44363
|
parentIDStack.pop();
|
|
44382
44364
|
recordUnmount(internalInstance, id);
|
|
44383
|
-
return
|
|
44365
|
+
return result;
|
|
44384
44366
|
} catch (err) {
|
|
44385
44367
|
parentIDStack = [];
|
|
44386
44368
|
throw err;
|
|
@@ -44825,8 +44807,8 @@ The error thrown in the component is:
|
|
|
44825
44807
|
return inspectedRoots;
|
|
44826
44808
|
}
|
|
44827
44809
|
function logElementToConsole(id) {
|
|
44828
|
-
var
|
|
44829
|
-
if (
|
|
44810
|
+
var result = inspectElementRaw(id);
|
|
44811
|
+
if (result === null) {
|
|
44830
44812
|
console.warn('Could not find element with id "'.concat(id, '"'));
|
|
44831
44813
|
return;
|
|
44832
44814
|
}
|
|
@@ -44835,14 +44817,14 @@ The error thrown in the component is:
|
|
|
44835
44817
|
if (supportsGroup) {
|
|
44836
44818
|
console.groupCollapsed("[Click to expand] %c<".concat(displayName || "Component", " />"), "color: var(--dom-tag-name-color); font-weight: normal;");
|
|
44837
44819
|
}
|
|
44838
|
-
if (
|
|
44839
|
-
console.log("Props:",
|
|
44820
|
+
if (result.props !== null) {
|
|
44821
|
+
console.log("Props:", result.props);
|
|
44840
44822
|
}
|
|
44841
|
-
if (
|
|
44842
|
-
console.log("State:",
|
|
44823
|
+
if (result.state !== null) {
|
|
44824
|
+
console.log("State:", result.state);
|
|
44843
44825
|
}
|
|
44844
|
-
if (
|
|
44845
|
-
console.log("Context:",
|
|
44826
|
+
if (result.context !== null) {
|
|
44827
|
+
console.log("Context:", result.context);
|
|
44846
44828
|
}
|
|
44847
44829
|
var hostInstance = findHostInstanceForInternalID(id);
|
|
44848
44830
|
if (hostInstance !== null) {
|
|
@@ -44956,29 +44938,29 @@ The error thrown in the component is:
|
|
|
44956
44938
|
}
|
|
44957
44939
|
}
|
|
44958
44940
|
}
|
|
44959
|
-
var getProfilingData = function
|
|
44941
|
+
var getProfilingData = function getProfilingData() {
|
|
44960
44942
|
throw new Error("getProfilingData not supported by this renderer");
|
|
44961
44943
|
};
|
|
44962
|
-
var handleCommitFiberRoot = function
|
|
44944
|
+
var handleCommitFiberRoot = function handleCommitFiberRoot() {
|
|
44963
44945
|
throw new Error("handleCommitFiberRoot not supported by this renderer");
|
|
44964
44946
|
};
|
|
44965
|
-
var handleCommitFiberUnmount = function
|
|
44947
|
+
var handleCommitFiberUnmount = function handleCommitFiberUnmount() {
|
|
44966
44948
|
throw new Error("handleCommitFiberUnmount not supported by this renderer");
|
|
44967
44949
|
};
|
|
44968
|
-
var handlePostCommitFiberRoot = function
|
|
44950
|
+
var handlePostCommitFiberRoot = function handlePostCommitFiberRoot() {
|
|
44969
44951
|
throw new Error("handlePostCommitFiberRoot not supported by this renderer");
|
|
44970
44952
|
};
|
|
44971
|
-
var overrideError = function
|
|
44953
|
+
var overrideError = function overrideError() {
|
|
44972
44954
|
throw new Error("overrideError not supported by this renderer");
|
|
44973
44955
|
};
|
|
44974
|
-
var overrideSuspense = function
|
|
44956
|
+
var overrideSuspense = function overrideSuspense() {
|
|
44975
44957
|
throw new Error("overrideSuspense not supported by this renderer");
|
|
44976
44958
|
};
|
|
44977
|
-
var overrideSuspenseMilestone = function
|
|
44959
|
+
var overrideSuspenseMilestone = function overrideSuspenseMilestone() {
|
|
44978
44960
|
throw new Error("overrideSuspenseMilestone not supported by this renderer");
|
|
44979
44961
|
};
|
|
44980
|
-
var startProfiling = function
|
|
44981
|
-
var stopProfiling = function
|
|
44962
|
+
var startProfiling = function startProfiling() {};
|
|
44963
|
+
var stopProfiling = function stopProfiling() {};
|
|
44982
44964
|
function getBestMatchForTrackedPath() {
|
|
44983
44965
|
return null;
|
|
44984
44966
|
}
|
|
@@ -45149,12 +45131,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
45149
45131
|
return [maybeMessage].concat(inputArgs);
|
|
45150
45132
|
}
|
|
45151
45133
|
var args = inputArgs.slice();
|
|
45152
|
-
var
|
|
45134
|
+
var template = "";
|
|
45153
45135
|
var argumentsPointer = 0;
|
|
45154
45136
|
for (var i2 = 0;i2 < maybeMessage.length; ++i2) {
|
|
45155
45137
|
var currentChar = maybeMessage[i2];
|
|
45156
45138
|
if (currentChar !== "%") {
|
|
45157
|
-
|
|
45139
|
+
template += currentChar;
|
|
45158
45140
|
continue;
|
|
45159
45141
|
}
|
|
45160
45142
|
var nextChar = maybeMessage[i2 + 1];
|
|
@@ -45164,30 +45146,30 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
45164
45146
|
case "O":
|
|
45165
45147
|
case "o": {
|
|
45166
45148
|
++argumentsPointer;
|
|
45167
|
-
|
|
45149
|
+
template += "%".concat(nextChar);
|
|
45168
45150
|
break;
|
|
45169
45151
|
}
|
|
45170
45152
|
case "d":
|
|
45171
45153
|
case "i": {
|
|
45172
45154
|
var _args$splice = args.splice(argumentsPointer, 1), _args$splice2 = formatConsoleArguments_slicedToArray(_args$splice, 1), arg = _args$splice2[0];
|
|
45173
|
-
|
|
45155
|
+
template += parseInt(arg, 10).toString();
|
|
45174
45156
|
break;
|
|
45175
45157
|
}
|
|
45176
45158
|
case "f": {
|
|
45177
45159
|
var _args$splice3 = args.splice(argumentsPointer, 1), _args$splice4 = formatConsoleArguments_slicedToArray(_args$splice3, 1), _arg = _args$splice4[0];
|
|
45178
|
-
|
|
45160
|
+
template += parseFloat(_arg).toString();
|
|
45179
45161
|
break;
|
|
45180
45162
|
}
|
|
45181
45163
|
case "s": {
|
|
45182
45164
|
var _args$splice5 = args.splice(argumentsPointer, 1), _args$splice6 = formatConsoleArguments_slicedToArray(_args$splice5, 1), _arg2 = _args$splice6[0];
|
|
45183
|
-
|
|
45165
|
+
template += String(_arg2);
|
|
45184
45166
|
break;
|
|
45185
45167
|
}
|
|
45186
45168
|
default:
|
|
45187
|
-
|
|
45169
|
+
template += "%".concat(nextChar);
|
|
45188
45170
|
}
|
|
45189
45171
|
}
|
|
45190
|
-
return [
|
|
45172
|
+
return [template].concat(formatConsoleArguments_toConsumableArray(args));
|
|
45191
45173
|
}
|
|
45192
45174
|
function hook_createForOfIteratorHelper(o, allowArrayLike) {
|
|
45193
45175
|
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
@@ -45196,7 +45178,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
45196
45178
|
if (it)
|
|
45197
45179
|
o = it;
|
|
45198
45180
|
var i2 = 0;
|
|
45199
|
-
var F = function
|
|
45181
|
+
var F = function F() {};
|
|
45200
45182
|
return { s: F, n: function n() {
|
|
45201
45183
|
if (i2 >= o.length)
|
|
45202
45184
|
return { done: true };
|
|
@@ -45444,10 +45426,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
45444
45426
|
return;
|
|
45445
45427
|
}
|
|
45446
45428
|
var consoleMethodsToOverrideForStrictMode = ["group", "groupCollapsed", "info", "log"];
|
|
45447
|
-
var _loop = function
|
|
45448
|
-
var
|
|
45449
|
-
var originalMethod = targetConsole[
|
|
45450
|
-
var overrideMethod = function
|
|
45429
|
+
var _loop = function _loop() {
|
|
45430
|
+
var method = _consoleMethodsToOver[_i];
|
|
45431
|
+
var originalMethod = targetConsole[method];
|
|
45432
|
+
var overrideMethod = function overrideMethod() {
|
|
45451
45433
|
var settings = hook.settings;
|
|
45452
45434
|
for (var _len = arguments.length, args = new Array(_len), _key = 0;_key < _len; _key++) {
|
|
45453
45435
|
args[_key] = arguments[_key];
|
|
@@ -45463,9 +45445,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
45463
45445
|
originalMethod.apply(undefined, [ANSI_STYLE_DIMMING_TEMPLATE].concat(hook_toConsumableArray(formatConsoleArguments.apply(undefined, args))));
|
|
45464
45446
|
}
|
|
45465
45447
|
};
|
|
45466
|
-
targetConsole[
|
|
45448
|
+
targetConsole[method] = overrideMethod;
|
|
45467
45449
|
unpatchConsoleCallbacks.push(function() {
|
|
45468
|
-
targetConsole[
|
|
45450
|
+
targetConsole[method] = originalMethod;
|
|
45469
45451
|
});
|
|
45470
45452
|
};
|
|
45471
45453
|
for (var _i = 0, _consoleMethodsToOver = consoleMethodsToOverrideForStrictMode;_i < _consoleMethodsToOver.length; _i++) {
|
|
@@ -45509,10 +45491,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
45509
45491
|
return;
|
|
45510
45492
|
}
|
|
45511
45493
|
var consoleMethodsToOverrideForErrorsAndWarnings = ["error", "trace", "warn"];
|
|
45512
|
-
var _loop2 = function
|
|
45513
|
-
var
|
|
45514
|
-
var originalMethod = targetConsole[
|
|
45515
|
-
var overrideMethod = function
|
|
45494
|
+
var _loop2 = function _loop2() {
|
|
45495
|
+
var method = _consoleMethodsToOver2[_i2];
|
|
45496
|
+
var originalMethod = targetConsole[method];
|
|
45497
|
+
var overrideMethod = function overrideMethod() {
|
|
45516
45498
|
var settings = hook.settings;
|
|
45517
45499
|
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0;_key2 < _len2; _key2++) {
|
|
45518
45500
|
args[_key2] = arguments[_key2];
|
|
@@ -45530,16 +45512,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
45530
45512
|
var lastArg = args.length > 0 ? args[args.length - 1] : null;
|
|
45531
45513
|
alreadyHasComponentStack = typeof lastArg === "string" && isStringComponentStack(lastArg);
|
|
45532
45514
|
}
|
|
45533
|
-
var shouldShowInlineWarningsAndErrors = settings.showInlineWarningsAndErrors && (
|
|
45515
|
+
var shouldShowInlineWarningsAndErrors = settings.showInlineWarningsAndErrors && (method === "error" || method === "warn");
|
|
45534
45516
|
var _iterator = hook_createForOfIteratorHelper(hook.rendererInterfaces.values()), _step;
|
|
45535
45517
|
try {
|
|
45536
|
-
var _loop3 = function
|
|
45518
|
+
var _loop3 = function _loop3() {
|
|
45537
45519
|
var rendererInterface = _step.value;
|
|
45538
45520
|
var { onErrorOrWarning, getComponentStack } = rendererInterface;
|
|
45539
45521
|
try {
|
|
45540
45522
|
if (shouldShowInlineWarningsAndErrors) {
|
|
45541
45523
|
if (onErrorOrWarning != null) {
|
|
45542
|
-
onErrorOrWarning(
|
|
45524
|
+
onErrorOrWarning(method, args.slice());
|
|
45543
45525
|
}
|
|
45544
45526
|
}
|
|
45545
45527
|
} catch (error) {
|
|
@@ -45604,7 +45586,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
45604
45586
|
originalMethod.apply(undefined, args);
|
|
45605
45587
|
}
|
|
45606
45588
|
};
|
|
45607
|
-
targetConsole[
|
|
45589
|
+
targetConsole[method] = overrideMethod;
|
|
45608
45590
|
};
|
|
45609
45591
|
for (var _i2 = 0, _consoleMethodsToOver2 = consoleMethodsToOverrideForErrorsAndWarnings;_i2 < _consoleMethodsToOver2.length; _i2++) {
|
|
45610
45592
|
_loop2();
|
|
@@ -45658,7 +45640,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
45658
45640
|
Object.defineProperty(target, "__REACT_DEVTOOLS_GLOBAL_HOOK__", {
|
|
45659
45641
|
configurable: false,
|
|
45660
45642
|
enumerable: false,
|
|
45661
|
-
get: function
|
|
45643
|
+
get: function get() {
|
|
45662
45644
|
return hook;
|
|
45663
45645
|
}
|
|
45664
45646
|
});
|
|
@@ -45688,7 +45670,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
45688
45670
|
});
|
|
45689
45671
|
hook.emit("react-devtools", agent2);
|
|
45690
45672
|
hook.reactDevtoolsAgent = agent2;
|
|
45691
|
-
var onAgentShutdown = function
|
|
45673
|
+
var onAgentShutdown = function onAgentShutdown() {
|
|
45692
45674
|
subs.forEach(function(fn) {
|
|
45693
45675
|
return fn();
|
|
45694
45676
|
});
|
|
@@ -45717,7 +45699,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
45717
45699
|
}
|
|
45718
45700
|
function resolveBoxStyle(prefix2, style) {
|
|
45719
45701
|
var hasParts = false;
|
|
45720
|
-
var
|
|
45702
|
+
var result = {
|
|
45721
45703
|
bottom: 0,
|
|
45722
45704
|
left: 0,
|
|
45723
45705
|
right: 0,
|
|
@@ -45725,57 +45707,57 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
45725
45707
|
};
|
|
45726
45708
|
var styleForAll = style[prefix2];
|
|
45727
45709
|
if (styleForAll != null) {
|
|
45728
|
-
for (var _i = 0, _Object$keys = Object.keys(
|
|
45710
|
+
for (var _i = 0, _Object$keys = Object.keys(result);_i < _Object$keys.length; _i++) {
|
|
45729
45711
|
var key = _Object$keys[_i];
|
|
45730
|
-
|
|
45712
|
+
result[key] = styleForAll;
|
|
45731
45713
|
}
|
|
45732
45714
|
hasParts = true;
|
|
45733
45715
|
}
|
|
45734
45716
|
var styleForHorizontal = style[prefix2 + "Horizontal"];
|
|
45735
45717
|
if (styleForHorizontal != null) {
|
|
45736
|
-
|
|
45737
|
-
|
|
45718
|
+
result.left = styleForHorizontal;
|
|
45719
|
+
result.right = styleForHorizontal;
|
|
45738
45720
|
hasParts = true;
|
|
45739
45721
|
} else {
|
|
45740
45722
|
var styleForLeft = style[prefix2 + "Left"];
|
|
45741
45723
|
if (styleForLeft != null) {
|
|
45742
|
-
|
|
45724
|
+
result.left = styleForLeft;
|
|
45743
45725
|
hasParts = true;
|
|
45744
45726
|
}
|
|
45745
45727
|
var styleForRight = style[prefix2 + "Right"];
|
|
45746
45728
|
if (styleForRight != null) {
|
|
45747
|
-
|
|
45729
|
+
result.right = styleForRight;
|
|
45748
45730
|
hasParts = true;
|
|
45749
45731
|
}
|
|
45750
45732
|
var styleForEnd = style[prefix2 + "End"];
|
|
45751
45733
|
if (styleForEnd != null) {
|
|
45752
|
-
|
|
45734
|
+
result.right = styleForEnd;
|
|
45753
45735
|
hasParts = true;
|
|
45754
45736
|
}
|
|
45755
45737
|
var styleForStart = style[prefix2 + "Start"];
|
|
45756
45738
|
if (styleForStart != null) {
|
|
45757
|
-
|
|
45739
|
+
result.left = styleForStart;
|
|
45758
45740
|
hasParts = true;
|
|
45759
45741
|
}
|
|
45760
45742
|
}
|
|
45761
45743
|
var styleForVertical = style[prefix2 + "Vertical"];
|
|
45762
45744
|
if (styleForVertical != null) {
|
|
45763
|
-
|
|
45764
|
-
|
|
45745
|
+
result.bottom = styleForVertical;
|
|
45746
|
+
result.top = styleForVertical;
|
|
45765
45747
|
hasParts = true;
|
|
45766
45748
|
} else {
|
|
45767
45749
|
var styleForBottom = style[prefix2 + "Bottom"];
|
|
45768
45750
|
if (styleForBottom != null) {
|
|
45769
|
-
|
|
45751
|
+
result.bottom = styleForBottom;
|
|
45770
45752
|
hasParts = true;
|
|
45771
45753
|
}
|
|
45772
45754
|
var styleForTop = style[prefix2 + "Top"];
|
|
45773
45755
|
if (styleForTop != null) {
|
|
45774
|
-
|
|
45756
|
+
result.top = styleForTop;
|
|
45775
45757
|
hasParts = true;
|
|
45776
45758
|
}
|
|
45777
45759
|
}
|
|
45778
|
-
return hasParts ?
|
|
45760
|
+
return hasParts ? result : null;
|
|
45779
45761
|
}
|
|
45780
45762
|
function setupNativeStyleEditor_typeof(o) {
|
|
45781
45763
|
"@babel/helpers - typeof";
|
|
@@ -46124,7 +46106,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
46124
46106
|
} else {
|
|
46125
46107
|
var lazyResolveRNStyle;
|
|
46126
46108
|
var lazyNativeStyleEditorValidAttributes;
|
|
46127
|
-
var initAfterTick = function
|
|
46109
|
+
var initAfterTick = function initAfterTick() {
|
|
46128
46110
|
if (bridge !== null) {
|
|
46129
46111
|
setupNativeStyleEditor(bridge, agent2, lazyResolveRNStyle, lazyNativeStyleEditorValidAttributes);
|
|
46130
46112
|
}
|
|
@@ -46132,10 +46114,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
46132
46114
|
if (!hook.hasOwnProperty("resolveRNStyle")) {
|
|
46133
46115
|
Object.defineProperty(hook, "resolveRNStyle", {
|
|
46134
46116
|
enumerable: false,
|
|
46135
|
-
get: function
|
|
46117
|
+
get: function get() {
|
|
46136
46118
|
return lazyResolveRNStyle;
|
|
46137
46119
|
},
|
|
46138
|
-
set: function
|
|
46120
|
+
set: function set(value) {
|
|
46139
46121
|
lazyResolveRNStyle = value;
|
|
46140
46122
|
initAfterTick();
|
|
46141
46123
|
}
|
|
@@ -46144,10 +46126,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
46144
46126
|
if (!hook.hasOwnProperty("nativeStyleEditorValidAttributes")) {
|
|
46145
46127
|
Object.defineProperty(hook, "nativeStyleEditorValidAttributes", {
|
|
46146
46128
|
enumerable: false,
|
|
46147
|
-
get: function
|
|
46129
|
+
get: function get() {
|
|
46148
46130
|
return lazyNativeStyleEditorValidAttributes;
|
|
46149
46131
|
},
|
|
46150
|
-
set: function
|
|
46132
|
+
set: function set(value) {
|
|
46151
46133
|
lazyNativeStyleEditorValidAttributes = value;
|
|
46152
46134
|
initAfterTick();
|
|
46153
46135
|
}
|
|
@@ -46352,7 +46334,7 @@ var require_stack_utils = __commonJS((exports, module) => {
|
|
|
46352
46334
|
}
|
|
46353
46335
|
let outdent = false;
|
|
46354
46336
|
let lastNonAtLine = null;
|
|
46355
|
-
const
|
|
46337
|
+
const result = [];
|
|
46356
46338
|
stack.forEach((st) => {
|
|
46357
46339
|
st = st.replace(/\\/g, "/");
|
|
46358
46340
|
if (this._internals.some((internal) => internal.test(st))) {
|
|
@@ -46371,17 +46353,17 @@ var require_stack_utils = __commonJS((exports, module) => {
|
|
|
46371
46353
|
if (st) {
|
|
46372
46354
|
if (isAtLine) {
|
|
46373
46355
|
if (lastNonAtLine) {
|
|
46374
|
-
|
|
46356
|
+
result.push(lastNonAtLine);
|
|
46375
46357
|
lastNonAtLine = null;
|
|
46376
46358
|
}
|
|
46377
|
-
|
|
46359
|
+
result.push(st);
|
|
46378
46360
|
} else {
|
|
46379
46361
|
outdent = true;
|
|
46380
46362
|
lastNonAtLine = st;
|
|
46381
46363
|
}
|
|
46382
46364
|
}
|
|
46383
46365
|
});
|
|
46384
|
-
return
|
|
46366
|
+
return result.map((line) => `${indent}${line}
|
|
46385
46367
|
`).join("");
|
|
46386
46368
|
}
|
|
46387
46369
|
captureString(limit, fn = this.captureString) {
|
|
@@ -46475,7 +46457,7 @@ var require_stack_utils = __commonJS((exports, module) => {
|
|
|
46475
46457
|
const col = match[9];
|
|
46476
46458
|
const native = match[10] === "native";
|
|
46477
46459
|
const closeParen = match[11] === ")";
|
|
46478
|
-
let
|
|
46460
|
+
let method;
|
|
46479
46461
|
const res = {};
|
|
46480
46462
|
if (lnum) {
|
|
46481
46463
|
res.line = Number(lnum);
|
|
@@ -46491,10 +46473,10 @@ var require_stack_utils = __commonJS((exports, module) => {
|
|
|
46491
46473
|
} else if (file.charAt(i2) === "(" && file.charAt(i2 - 1) === " ") {
|
|
46492
46474
|
closes--;
|
|
46493
46475
|
if (closes === -1 && file.charAt(i2 - 1) === " ") {
|
|
46494
|
-
const
|
|
46495
|
-
const
|
|
46496
|
-
file =
|
|
46497
|
-
fname += ` (${
|
|
46476
|
+
const before = file.slice(0, i2 - 1);
|
|
46477
|
+
const after = file.slice(i2 + 1);
|
|
46478
|
+
file = after;
|
|
46479
|
+
fname += ` (${before}`;
|
|
46498
46480
|
break;
|
|
46499
46481
|
}
|
|
46500
46482
|
}
|
|
@@ -46504,7 +46486,7 @@ var require_stack_utils = __commonJS((exports, module) => {
|
|
|
46504
46486
|
const methodMatch = fname.match(methodRe);
|
|
46505
46487
|
if (methodMatch) {
|
|
46506
46488
|
fname = methodMatch[1];
|
|
46507
|
-
|
|
46489
|
+
method = methodMatch[2];
|
|
46508
46490
|
}
|
|
46509
46491
|
}
|
|
46510
46492
|
setFile(res, file, this._cwd);
|
|
@@ -46526,19 +46508,19 @@ var require_stack_utils = __commonJS((exports, module) => {
|
|
|
46526
46508
|
if (fname) {
|
|
46527
46509
|
res.function = fname;
|
|
46528
46510
|
}
|
|
46529
|
-
if (
|
|
46530
|
-
res.method =
|
|
46511
|
+
if (method && fname !== method) {
|
|
46512
|
+
res.method = method;
|
|
46531
46513
|
}
|
|
46532
46514
|
return res;
|
|
46533
46515
|
}
|
|
46534
46516
|
}
|
|
46535
|
-
function setFile(
|
|
46517
|
+
function setFile(result, filename, cwd2) {
|
|
46536
46518
|
if (filename) {
|
|
46537
46519
|
filename = filename.replace(/\\/g, "/");
|
|
46538
46520
|
if (filename.startsWith(`${cwd2}/`)) {
|
|
46539
46521
|
filename = filename.slice(cwd2.length + 1);
|
|
46540
46522
|
}
|
|
46541
|
-
|
|
46523
|
+
result.file = filename;
|
|
46542
46524
|
}
|
|
46543
46525
|
}
|
|
46544
46526
|
function ignoredPackagesRegExp(ignoredPackages) {
|
|
@@ -46718,16 +46700,16 @@ var require_react_jsx_dev_runtime_development = __commonJS((exports) => {
|
|
|
46718
46700
|
validateChildKeys(children);
|
|
46719
46701
|
if (hasOwnProperty.call(config, "key")) {
|
|
46720
46702
|
children = getComponentNameFromType(type2);
|
|
46721
|
-
var
|
|
46703
|
+
var keys = Object.keys(config).filter(function(k) {
|
|
46722
46704
|
return k !== "key";
|
|
46723
46705
|
});
|
|
46724
|
-
isStaticChildren = 0 <
|
|
46725
|
-
didWarnAboutKeySpread[children + isStaticChildren] || (
|
|
46706
|
+
isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
46707
|
+
didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
46726
46708
|
let props = %s;
|
|
46727
46709
|
<%s {...props} />
|
|
46728
46710
|
React keys must be passed directly to JSX without using spread:
|
|
46729
46711
|
let props = %s;
|
|
46730
|
-
<%s key={someKey} {...props} />`, isStaticChildren, children,
|
|
46712
|
+
<%s key={someKey} {...props} />`, isStaticChildren, children, keys, children), didWarnAboutKeySpread[children + isStaticChildren] = true);
|
|
46731
46713
|
}
|
|
46732
46714
|
children = null;
|
|
46733
46715
|
maybeKey !== undefined && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
|
|
@@ -46778,7 +46760,7 @@ var require_jsx_dev_runtime = __commonJS((exports, module) => {
|
|
|
46778
46760
|
|
|
46779
46761
|
// node_modules/deepmerge/dist/cjs.js
|
|
46780
46762
|
var require_cjs = __commonJS((exports, module) => {
|
|
46781
|
-
var isMergeableObject = function
|
|
46763
|
+
var isMergeableObject = function isMergeableObject(value) {
|
|
46782
46764
|
return isNonNullObject(value) && !isSpecial(value);
|
|
46783
46765
|
};
|
|
46784
46766
|
function isNonNullObject(value) {
|
|
@@ -46819,9 +46801,9 @@ var require_cjs = __commonJS((exports, module) => {
|
|
|
46819
46801
|
function getKeys(target) {
|
|
46820
46802
|
return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target));
|
|
46821
46803
|
}
|
|
46822
|
-
function propertyIsOnObject(object,
|
|
46804
|
+
function propertyIsOnObject(object, property) {
|
|
46823
46805
|
try {
|
|
46824
|
-
return
|
|
46806
|
+
return property in object;
|
|
46825
46807
|
} catch (_) {
|
|
46826
46808
|
return false;
|
|
46827
46809
|
}
|
|
@@ -47041,16 +47023,16 @@ var require_react_jsx_runtime_development = __commonJS((exports) => {
|
|
|
47041
47023
|
validateChildKeys(children);
|
|
47042
47024
|
if (hasOwnProperty.call(config, "key")) {
|
|
47043
47025
|
children = getComponentNameFromType(type2);
|
|
47044
|
-
var
|
|
47026
|
+
var keys = Object.keys(config).filter(function(k) {
|
|
47045
47027
|
return k !== "key";
|
|
47046
47028
|
});
|
|
47047
|
-
isStaticChildren = 0 <
|
|
47048
|
-
didWarnAboutKeySpread[children + isStaticChildren] || (
|
|
47029
|
+
isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
47030
|
+
didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
47049
47031
|
let props = %s;
|
|
47050
47032
|
<%s {...props} />
|
|
47051
47033
|
React keys must be passed directly to JSX without using spread:
|
|
47052
47034
|
let props = %s;
|
|
47053
|
-
<%s key={someKey} {...props} />`, isStaticChildren, children,
|
|
47035
|
+
<%s key={someKey} {...props} />`, isStaticChildren, children, keys, children), didWarnAboutKeySpread[children + isStaticChildren] = true);
|
|
47054
47036
|
}
|
|
47055
47037
|
children = null;
|
|
47056
47038
|
maybeKey !== undefined && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
|
|
@@ -51338,7 +51320,8 @@ class BasePlatformClient extends EventEmitter {
|
|
|
51338
51320
|
clearTimeout(this.reconnectTimeout);
|
|
51339
51321
|
this.reconnectTimeout = null;
|
|
51340
51322
|
}
|
|
51341
|
-
this.
|
|
51323
|
+
this.removeAllListeners();
|
|
51324
|
+
return this.forceCloseConnection();
|
|
51342
51325
|
}
|
|
51343
51326
|
prepareForReconnect() {
|
|
51344
51327
|
wsLogger.debug("Preparing for reconnect (resetting intentional disconnect flag)");
|
|
@@ -52115,18 +52098,32 @@ class MattermostClient extends BasePlatformClient {
|
|
|
52115
52098
|
}
|
|
52116
52099
|
}
|
|
52117
52100
|
forceCloseConnection() {
|
|
52118
|
-
|
|
52119
|
-
|
|
52120
|
-
|
|
52121
|
-
|
|
52122
|
-
|
|
52123
|
-
|
|
52101
|
+
const ws = this.ws;
|
|
52102
|
+
this.ws = null;
|
|
52103
|
+
if (!ws)
|
|
52104
|
+
return Promise.resolve();
|
|
52105
|
+
ws.onopen = null;
|
|
52106
|
+
ws.onmessage = null;
|
|
52107
|
+
ws.onerror = null;
|
|
52108
|
+
if (ws.readyState === WS.CLOSED) {
|
|
52109
|
+
ws.onclose = null;
|
|
52110
|
+
return Promise.resolve();
|
|
52111
|
+
}
|
|
52112
|
+
return new Promise((resolve3) => {
|
|
52113
|
+
const done = () => {
|
|
52114
|
+
ws.onclose = null;
|
|
52115
|
+
resolve3();
|
|
52116
|
+
};
|
|
52117
|
+
ws.onclose = done;
|
|
52118
|
+
setTimeout(done, 1000);
|
|
52119
|
+
if (ws.readyState === WS.OPEN || ws.readyState === WS.CONNECTING) {
|
|
52124
52120
|
try {
|
|
52125
|
-
|
|
52126
|
-
} catch {
|
|
52121
|
+
ws.close();
|
|
52122
|
+
} catch {
|
|
52123
|
+
done();
|
|
52124
|
+
}
|
|
52127
52125
|
}
|
|
52128
|
-
|
|
52129
|
-
}
|
|
52126
|
+
});
|
|
52130
52127
|
}
|
|
52131
52128
|
async recoverMissedMessages() {
|
|
52132
52129
|
if (!this.lastProcessedPostId) {
|
|
@@ -52583,18 +52580,32 @@ class SlackClient extends BasePlatformClient {
|
|
|
52583
52580
|
}
|
|
52584
52581
|
}
|
|
52585
52582
|
forceCloseConnection() {
|
|
52586
|
-
|
|
52587
|
-
|
|
52588
|
-
|
|
52589
|
-
|
|
52590
|
-
|
|
52591
|
-
|
|
52583
|
+
const ws = this.ws;
|
|
52584
|
+
this.ws = null;
|
|
52585
|
+
if (!ws)
|
|
52586
|
+
return Promise.resolve();
|
|
52587
|
+
ws.onopen = null;
|
|
52588
|
+
ws.onmessage = null;
|
|
52589
|
+
ws.onerror = null;
|
|
52590
|
+
if (ws.readyState === WS.CLOSED) {
|
|
52591
|
+
ws.onclose = null;
|
|
52592
|
+
return Promise.resolve();
|
|
52593
|
+
}
|
|
52594
|
+
return new Promise((resolve3) => {
|
|
52595
|
+
const done = () => {
|
|
52596
|
+
ws.onclose = null;
|
|
52597
|
+
resolve3();
|
|
52598
|
+
};
|
|
52599
|
+
ws.onclose = done;
|
|
52600
|
+
setTimeout(done, 1000);
|
|
52601
|
+
if (ws.readyState === WS.OPEN || ws.readyState === WS.CONNECTING) {
|
|
52592
52602
|
try {
|
|
52593
|
-
|
|
52594
|
-
} catch {
|
|
52603
|
+
ws.close();
|
|
52604
|
+
} catch {
|
|
52605
|
+
done();
|
|
52606
|
+
}
|
|
52595
52607
|
}
|
|
52596
|
-
|
|
52597
|
-
}
|
|
52608
|
+
});
|
|
52598
52609
|
}
|
|
52599
52610
|
async recoverMissedMessages() {
|
|
52600
52611
|
if (!this.lastProcessedTs) {
|
|
@@ -54447,6 +54458,9 @@ class ClaudeCli extends EventEmitter2 {
|
|
|
54447
54458
|
this.stderrBuffer = this.stderrBuffer.slice(-10240);
|
|
54448
54459
|
}
|
|
54449
54460
|
this.log.debug(`stderr: ${text.trim()}`);
|
|
54461
|
+
if (process.env.INTEGRATION_TEST === "1") {
|
|
54462
|
+
process.stderr.write(text);
|
|
54463
|
+
}
|
|
54450
54464
|
this.maybeEmitRateLimit(text);
|
|
54451
54465
|
});
|
|
54452
54466
|
this.process.on("error", (err) => {
|
|
@@ -54470,6 +54484,12 @@ class ClaudeCli extends EventEmitter2 {
|
|
|
54470
54484
|
`;
|
|
54471
54485
|
const preview = typeof content === "string" ? content.substring(0, 50) : `[${content.length} blocks]`;
|
|
54472
54486
|
this.log.debug(`Sending: ${preview}...`);
|
|
54487
|
+
if (process.env.INTEGRATION_TEST === "1") {
|
|
54488
|
+
const stack = new Error().stack?.split(`
|
|
54489
|
+
`).slice(2, 6).join(" > ").replace(/\s+at\s+/g, " < ") ?? "?";
|
|
54490
|
+
process.stderr.write(`[claude-cli sendMessage pid=${this.process.pid}] ${preview} | ${stack}
|
|
54491
|
+
`);
|
|
54492
|
+
}
|
|
54473
54493
|
this.process.stdin.write(msg);
|
|
54474
54494
|
}
|
|
54475
54495
|
sendToolResult(toolUseId, content) {
|
|
@@ -67719,11 +67739,9 @@ ${CHAT_PLATFORM_PROMPT}`;
|
|
|
67719
67739
|
const messageText = typeof content === "string" ? content : options2.prompt;
|
|
67720
67740
|
if (replyToPostId) {
|
|
67721
67741
|
const excludePostId = triggeringPostId || replyToPostId;
|
|
67722
|
-
|
|
67723
|
-
|
|
67724
|
-
|
|
67725
|
-
return;
|
|
67726
|
-
}
|
|
67742
|
+
await ctx.ops.offerContextPrompt(session, messageText, options2.files, excludePostId);
|
|
67743
|
+
await postSkippedFilesFeedback(session.platform, actualThreadId, skipped);
|
|
67744
|
+
return;
|
|
67727
67745
|
}
|
|
67728
67746
|
session.messageCount++;
|
|
67729
67747
|
claude.sendMessage(content);
|
|
@@ -69439,6 +69457,7 @@ import process20 from "node:process";
|
|
|
69439
69457
|
// node_modules/ink/build/ink.js
|
|
69440
69458
|
var import_react13 = __toESM(require_react(), 1);
|
|
69441
69459
|
import process19 from "node:process";
|
|
69460
|
+
|
|
69442
69461
|
// node_modules/es-toolkit/dist/function/debounce.mjs
|
|
69443
69462
|
function debounce(func, debounceMs, { signal, edges } = {}) {
|
|
69444
69463
|
let pendingThis = undefined;
|
|
@@ -69766,7 +69785,7 @@ var getAllProperties = (object) => {
|
|
|
69766
69785
|
return properties;
|
|
69767
69786
|
};
|
|
69768
69787
|
function autoBind(self2, { include, exclude } = {}) {
|
|
69769
|
-
const
|
|
69788
|
+
const filter = (key) => {
|
|
69770
69789
|
const match = (pattern) => typeof pattern === "string" ? key === pattern : pattern.test(key);
|
|
69771
69790
|
if (include) {
|
|
69772
69791
|
return include.some(match);
|
|
@@ -69777,7 +69796,7 @@ function autoBind(self2, { include, exclude } = {}) {
|
|
|
69777
69796
|
return true;
|
|
69778
69797
|
};
|
|
69779
69798
|
for (const [object, key] of getAllProperties(self2.constructor.prototype)) {
|
|
69780
|
-
if (key === "constructor" || !
|
|
69799
|
+
if (key === "constructor" || !filter(key)) {
|
|
69781
69800
|
continue;
|
|
69782
69801
|
}
|
|
69783
69802
|
const descriptor = Reflect.getOwnPropertyDescriptor(object, key);
|
|
@@ -69824,13 +69843,13 @@ var patchConsole = (callback) => {
|
|
|
69824
69843
|
callback("stderr", data);
|
|
69825
69844
|
};
|
|
69826
69845
|
const internalConsole = new console.Console(stdout, stderr);
|
|
69827
|
-
for (const
|
|
69828
|
-
originalMethods[
|
|
69829
|
-
console[
|
|
69846
|
+
for (const method of consoleMethods) {
|
|
69847
|
+
originalMethods[method] = console[method];
|
|
69848
|
+
console[method] = internalConsole[method];
|
|
69830
69849
|
}
|
|
69831
69850
|
return () => {
|
|
69832
|
-
for (const
|
|
69833
|
-
console[
|
|
69851
|
+
for (const method of consoleMethods) {
|
|
69852
|
+
console[method] = originalMethods[method];
|
|
69834
69853
|
}
|
|
69835
69854
|
originalMethods = {};
|
|
69836
69855
|
};
|
|
@@ -72212,26 +72231,26 @@ $ npm install --save-dev react-devtools-core
|
|
|
72212
72231
|
}
|
|
72213
72232
|
}
|
|
72214
72233
|
}
|
|
72215
|
-
var diff = (
|
|
72216
|
-
if (
|
|
72234
|
+
var diff = (before, after) => {
|
|
72235
|
+
if (before === after) {
|
|
72217
72236
|
return;
|
|
72218
72237
|
}
|
|
72219
|
-
if (!
|
|
72220
|
-
return
|
|
72238
|
+
if (!before) {
|
|
72239
|
+
return after;
|
|
72221
72240
|
}
|
|
72222
72241
|
const changed = {};
|
|
72223
72242
|
let isChanged = false;
|
|
72224
|
-
for (const key of Object.keys(
|
|
72225
|
-
const isDeleted =
|
|
72243
|
+
for (const key of Object.keys(before)) {
|
|
72244
|
+
const isDeleted = after ? !Object.hasOwn(after, key) : true;
|
|
72226
72245
|
if (isDeleted) {
|
|
72227
72246
|
changed[key] = undefined;
|
|
72228
72247
|
isChanged = true;
|
|
72229
72248
|
}
|
|
72230
72249
|
}
|
|
72231
|
-
if (
|
|
72232
|
-
for (const key of Object.keys(
|
|
72233
|
-
if (
|
|
72234
|
-
changed[key] =
|
|
72250
|
+
if (after) {
|
|
72251
|
+
for (const key of Object.keys(after)) {
|
|
72252
|
+
if (after[key] !== before[key]) {
|
|
72253
|
+
changed[key] = after[key];
|
|
72235
72254
|
isChanged = true;
|
|
72236
72255
|
}
|
|
72237
72256
|
}
|
|
@@ -72481,21 +72500,21 @@ var colorize = (str2, color, type2) => {
|
|
|
72481
72500
|
return type2 === "foreground" ? source_default.hex(color)(str2) : source_default.bgHex(color)(str2);
|
|
72482
72501
|
}
|
|
72483
72502
|
if (color.startsWith("ansi256")) {
|
|
72484
|
-
const
|
|
72485
|
-
if (!
|
|
72503
|
+
const matches = ansiRegex2.exec(color);
|
|
72504
|
+
if (!matches) {
|
|
72486
72505
|
return str2;
|
|
72487
72506
|
}
|
|
72488
|
-
const value = Number(
|
|
72507
|
+
const value = Number(matches[1]);
|
|
72489
72508
|
return type2 === "foreground" ? source_default.ansi256(value)(str2) : source_default.bgAnsi256(value)(str2);
|
|
72490
72509
|
}
|
|
72491
72510
|
if (color.startsWith("rgb")) {
|
|
72492
|
-
const
|
|
72493
|
-
if (!
|
|
72511
|
+
const matches = rgbRegex.exec(color);
|
|
72512
|
+
if (!matches) {
|
|
72494
72513
|
return str2;
|
|
72495
72514
|
}
|
|
72496
|
-
const firstValue = Number(
|
|
72497
|
-
const secondValue = Number(
|
|
72498
|
-
const thirdValue = Number(
|
|
72515
|
+
const firstValue = Number(matches[1]);
|
|
72516
|
+
const secondValue = Number(matches[2]);
|
|
72517
|
+
const thirdValue = Number(matches[3]);
|
|
72499
72518
|
return type2 === "foreground" ? source_default.rgb(firstValue, secondValue, thirdValue)(str2) : source_default.bgRgb(firstValue, secondValue, thirdValue)(str2);
|
|
72500
72519
|
}
|
|
72501
72520
|
return str2;
|
|
@@ -73278,13 +73297,13 @@ var createIncremental = (stream, { showCursor = false } = {}) => {
|
|
|
73278
73297
|
};
|
|
73279
73298
|
return render;
|
|
73280
73299
|
};
|
|
73281
|
-
var
|
|
73300
|
+
var create = (stream, { showCursor = false, incremental = false } = {}) => {
|
|
73282
73301
|
if (incremental) {
|
|
73283
73302
|
return createIncremental(stream, { showCursor });
|
|
73284
73303
|
}
|
|
73285
73304
|
return createStandard(stream, { showCursor });
|
|
73286
73305
|
};
|
|
73287
|
-
var logUpdate = { create
|
|
73306
|
+
var logUpdate = { create };
|
|
73288
73307
|
var log_update_default = logUpdate;
|
|
73289
73308
|
|
|
73290
73309
|
// node_modules/ink/build/instances.js
|
|
@@ -73370,9 +73389,9 @@ var dist_default3 = convertToSpaces;
|
|
|
73370
73389
|
// node_modules/code-excerpt/dist/index.js
|
|
73371
73390
|
var generateLineNumbers = (line, around) => {
|
|
73372
73391
|
const lineNumbers = [];
|
|
73373
|
-
const
|
|
73374
|
-
const
|
|
73375
|
-
for (let lineNumber =
|
|
73392
|
+
const min = line - around;
|
|
73393
|
+
const max = line + around;
|
|
73394
|
+
for (let lineNumber = min;lineNumber <= max; lineNumber++) {
|
|
73376
73395
|
lineNumbers.push(lineNumber);
|
|
73377
73396
|
}
|
|
73378
73397
|
return lineNumbers;
|
|
@@ -73436,14 +73455,14 @@ var Box_default = Box;
|
|
|
73436
73455
|
|
|
73437
73456
|
// node_modules/ink/build/components/Text.js
|
|
73438
73457
|
var import_react10 = __toESM(require_react(), 1);
|
|
73439
|
-
function Text({ color, backgroundColor, dimColor = false, bold: bold2 = false, italic = false, underline = false, strikethrough = false, inverse = false, wrap
|
|
73458
|
+
function Text({ color, backgroundColor, dimColor = false, bold: bold2 = false, italic = false, underline = false, strikethrough = false, inverse = false, wrap = "wrap", children, "aria-label": ariaLabel, "aria-hidden": ariaHidden = false }) {
|
|
73440
73459
|
const { isScreenReaderEnabled } = import_react10.useContext(accessibilityContext);
|
|
73441
73460
|
const inheritedBackgroundColor = import_react10.useContext(backgroundContext);
|
|
73442
73461
|
const childrenOrAriaLabel = isScreenReaderEnabled && ariaLabel ? ariaLabel : children;
|
|
73443
73462
|
if (childrenOrAriaLabel === undefined || childrenOrAriaLabel === null) {
|
|
73444
73463
|
return null;
|
|
73445
73464
|
}
|
|
73446
|
-
const
|
|
73465
|
+
const transform = (children2) => {
|
|
73447
73466
|
if (dimColor) {
|
|
73448
73467
|
children2 = source_default.dim(children2);
|
|
73449
73468
|
}
|
|
@@ -73474,7 +73493,7 @@ function Text({ color, backgroundColor, dimColor = false, bold: bold2 = false, i
|
|
|
73474
73493
|
if (isScreenReaderEnabled && ariaHidden) {
|
|
73475
73494
|
return null;
|
|
73476
73495
|
}
|
|
73477
|
-
return import_react10.default.createElement("ink-text", { style: { flexGrow: 0, flexShrink: 1, flexDirection: "row", textWrap:
|
|
73496
|
+
return import_react10.default.createElement("ink-text", { style: { flexGrow: 0, flexShrink: 1, flexDirection: "row", textWrap: wrap }, internal_transform: transform }, isScreenReaderEnabled && ariaLabel ? ariaLabel : children);
|
|
73478
73497
|
}
|
|
73479
73498
|
|
|
73480
73499
|
// node_modules/ink/build/components/ErrorOverview.js
|
|
@@ -73514,7 +73533,7 @@ function ErrorOverview({ error }) {
|
|
|
73514
73533
|
// node_modules/ink/build/components/App.js
|
|
73515
73534
|
var tab = "\t";
|
|
73516
73535
|
var shiftTab = "\x1B[Z";
|
|
73517
|
-
var
|
|
73536
|
+
var escape = "\x1B";
|
|
73518
73537
|
|
|
73519
73538
|
class App extends import_react12.PureComponent {
|
|
73520
73539
|
static displayName = "InternalApp";
|
|
@@ -73610,17 +73629,17 @@ Read about how to prevent this error on https://github.com/vadimdemedes/ink/#isr
|
|
|
73610
73629
|
}
|
|
73611
73630
|
};
|
|
73612
73631
|
handleReadable = () => {
|
|
73613
|
-
let
|
|
73614
|
-
while ((
|
|
73615
|
-
this.handleInput(
|
|
73616
|
-
this.internal_eventEmitter.emit("input",
|
|
73632
|
+
let chunk;
|
|
73633
|
+
while ((chunk = this.props.stdin.read()) !== null) {
|
|
73634
|
+
this.handleInput(chunk);
|
|
73635
|
+
this.internal_eventEmitter.emit("input", chunk);
|
|
73617
73636
|
}
|
|
73618
73637
|
};
|
|
73619
73638
|
handleInput = (input) => {
|
|
73620
73639
|
if (input === "\x03" && this.props.exitOnCtrlC) {
|
|
73621
73640
|
this.handleExit();
|
|
73622
73641
|
}
|
|
73623
|
-
if (input ===
|
|
73642
|
+
if (input === escape && this.state.activeFocusId) {
|
|
73624
73643
|
this.setState({
|
|
73625
73644
|
activeFocusId: undefined
|
|
73626
73645
|
});
|
|
@@ -73757,7 +73776,7 @@ Read about how to prevent this error on https://github.com/vadimdemedes/ink/#isr
|
|
|
73757
73776
|
}
|
|
73758
73777
|
|
|
73759
73778
|
// node_modules/ink/build/ink.js
|
|
73760
|
-
var
|
|
73779
|
+
var noop = () => {};
|
|
73761
73780
|
|
|
73762
73781
|
class Ink {
|
|
73763
73782
|
options;
|
|
@@ -73912,7 +73931,7 @@ class Ink {
|
|
|
73912
73931
|
};
|
|
73913
73932
|
render(node) {
|
|
73914
73933
|
const tree = import_react13.default.createElement(accessibilityContext.Provider, { value: { isScreenReaderEnabled: this.isScreenReaderEnabled } }, import_react13.default.createElement(App, { stdin: this.options.stdin, stdout: this.options.stdout, stderr: this.options.stderr, writeToStdout: this.writeToStdout, writeToStderr: this.writeToStderr, exitOnCtrlC: this.options.exitOnCtrlC, onExit: this.unmount }, node));
|
|
73915
|
-
reconciler_default.updateContainerSync(tree, this.container, null,
|
|
73934
|
+
reconciler_default.updateContainerSync(tree, this.container, null, noop);
|
|
73916
73935
|
reconciler_default.flushSyncWork();
|
|
73917
73936
|
}
|
|
73918
73937
|
writeToStdout(data) {
|
|
@@ -73968,7 +73987,7 @@ class Ink {
|
|
|
73968
73987
|
this.log.done();
|
|
73969
73988
|
}
|
|
73970
73989
|
this.isUnmounted = true;
|
|
73971
|
-
reconciler_default.updateContainerSync(null, this.container, null,
|
|
73990
|
+
reconciler_default.updateContainerSync(null, this.container, null, noop);
|
|
73972
73991
|
reconciler_default.flushSyncWork();
|
|
73973
73992
|
instances_default.delete(this.options.stdout);
|
|
73974
73993
|
if (error instanceof Error) {
|
|
@@ -73978,9 +73997,9 @@ class Ink {
|
|
|
73978
73997
|
}
|
|
73979
73998
|
}
|
|
73980
73999
|
async waitUntilExit() {
|
|
73981
|
-
this.exitPromise ||= new Promise((resolve6,
|
|
74000
|
+
this.exitPromise ||= new Promise((resolve6, reject) => {
|
|
73982
74001
|
this.resolveExitPromise = resolve6;
|
|
73983
|
-
this.rejectExitPromise =
|
|
74002
|
+
this.rejectExitPromise = reject;
|
|
73984
74003
|
});
|
|
73985
74004
|
return this.exitPromise;
|
|
73986
74005
|
}
|
|
@@ -77250,8 +77269,8 @@ var MeasurableItem = ({
|
|
|
77250
77269
|
function useStateRef(initialValue) {
|
|
77251
77270
|
const [state, setStateInternal] = import_react58.useState(initialValue);
|
|
77252
77271
|
const ref = import_react58.useRef(initialValue);
|
|
77253
|
-
const setState = import_react58.useCallback((
|
|
77254
|
-
const nextValue = typeof
|
|
77272
|
+
const setState = import_react58.useCallback((update) => {
|
|
77273
|
+
const nextValue = typeof update === "function" ? update(ref.current) : update;
|
|
77255
77274
|
ref.current = nextValue;
|
|
77256
77275
|
setStateInternal(nextValue);
|
|
77257
77276
|
}, []);
|
|
@@ -77413,8 +77432,8 @@ var ControlledScrollView = import_react58.forwardRef(({
|
|
|
77413
77432
|
function useStateRef2(initialValue) {
|
|
77414
77433
|
const [state, setStateInternal] = import_react57.useState(initialValue);
|
|
77415
77434
|
const ref = import_react57.useRef(initialValue);
|
|
77416
|
-
const setState = import_react57.useCallback((
|
|
77417
|
-
const nextValue = typeof
|
|
77435
|
+
const setState = import_react57.useCallback((update) => {
|
|
77436
|
+
const nextValue = typeof update === "function" ? update(ref.current) : update;
|
|
77418
77437
|
ref.current = nextValue;
|
|
77419
77438
|
setStateInternal(nextValue);
|
|
77420
77439
|
}, []);
|
|
@@ -78741,8 +78760,8 @@ class HeadlessProvider {
|
|
|
78741
78760
|
});
|
|
78742
78761
|
}
|
|
78743
78762
|
formatTimestamp() {
|
|
78744
|
-
const
|
|
78745
|
-
return
|
|
78763
|
+
const now = new Date;
|
|
78764
|
+
return now.toTimeString().slice(0, 8);
|
|
78746
78765
|
}
|
|
78747
78766
|
log(component, message, level = "info") {
|
|
78748
78767
|
if (level === "debug" && !this.toggles.debugMode) {
|
|
@@ -78938,8 +78957,8 @@ async function handleMessage(client, session, post2, user, options2) {
|
|
|
78938
78957
|
isAllowed,
|
|
78939
78958
|
files: post2.metadata?.files
|
|
78940
78959
|
};
|
|
78941
|
-
const
|
|
78942
|
-
if (
|
|
78960
|
+
const result = await executeCommand(parsed.command, parsed.args, ctx2);
|
|
78961
|
+
if (result.handled) {
|
|
78943
78962
|
return;
|
|
78944
78963
|
}
|
|
78945
78964
|
const defaultPassthroughCommands = new Set(["context", "cost", "compact"]);
|
|
@@ -79040,24 +79059,24 @@ async function handleMessage(client, session, post2, user, options2) {
|
|
|
79040
79059
|
const cmdDef = COMMAND_REGISTRY.find((c) => c.command === parsed.command);
|
|
79041
79060
|
if (!cmdDef?.worksInFirstMessage)
|
|
79042
79061
|
break;
|
|
79043
|
-
const
|
|
79044
|
-
if (
|
|
79062
|
+
const result = await executeCommand(parsed.command, parsed.args, ctx);
|
|
79063
|
+
if (result.handled) {
|
|
79045
79064
|
return;
|
|
79046
79065
|
}
|
|
79047
|
-
if (
|
|
79048
|
-
Object.assign(initialOptions,
|
|
79066
|
+
if (result.sessionOptions) {
|
|
79067
|
+
Object.assign(initialOptions, result.sessionOptions);
|
|
79049
79068
|
}
|
|
79050
|
-
if (
|
|
79051
|
-
worktreeBranch =
|
|
79069
|
+
if (result.worktreeBranch) {
|
|
79070
|
+
worktreeBranch = result.worktreeBranch;
|
|
79052
79071
|
}
|
|
79053
|
-
if (
|
|
79054
|
-
prompt =
|
|
79072
|
+
if (result.remainingText !== undefined) {
|
|
79073
|
+
prompt = result.remainingText;
|
|
79055
79074
|
} else if (parsed.remainder !== undefined) {
|
|
79056
79075
|
prompt = parsed.remainder;
|
|
79057
79076
|
} else {
|
|
79058
79077
|
prompt = "";
|
|
79059
79078
|
}
|
|
79060
|
-
continueProcessing = !!prompt && (cmdDef.isStackable ||
|
|
79079
|
+
continueProcessing = !!prompt && (cmdDef.isStackable || result.continueProcessing === true);
|
|
79061
79080
|
}
|
|
79062
79081
|
if (!worktreeBranch) {
|
|
79063
79082
|
const branchMatch = prompt.match(/on branch\s+(\S+)/i);
|
|
@@ -79260,8 +79279,8 @@ function mergeAutoUpdateConfig(userConfig) {
|
|
|
79260
79279
|
};
|
|
79261
79280
|
}
|
|
79262
79281
|
function isInScheduledWindow(window2) {
|
|
79263
|
-
const
|
|
79264
|
-
const hour =
|
|
79282
|
+
const now = new Date;
|
|
79283
|
+
const hour = now.getHours();
|
|
79265
79284
|
if (window2.startHour > window2.endHour) {
|
|
79266
79285
|
return hour >= window2.startHour || hour < window2.endHour;
|
|
79267
79286
|
}
|
|
@@ -79820,8 +79839,8 @@ class AutoUpdateManager extends EventEmitter9 {
|
|
|
79820
79839
|
async performUpdate(updateInfo) {
|
|
79821
79840
|
this.updateStatus("installing");
|
|
79822
79841
|
await this.callbacks.broadcastUpdate((fmt) => `\uD83D\uDCE6 ${fmt.formatBold("Installing update")} v${updateInfo.latestVersion}...`).catch(() => {});
|
|
79823
|
-
const
|
|
79824
|
-
if (
|
|
79842
|
+
const result = await this.installer.install(updateInfo);
|
|
79843
|
+
if (result.success) {
|
|
79825
79844
|
this.updateStatus("pending_restart");
|
|
79826
79845
|
this.emit("update:restart", updateInfo.latestVersion);
|
|
79827
79846
|
await this.callbacks.broadcastUpdate((fmt) => `✅ ${fmt.formatBold("Update installed")} - restarting now. ${fmt.formatItalic("Sessions will resume automatically.")}`).catch(() => {});
|
|
@@ -79832,11 +79851,11 @@ class AutoUpdateManager extends EventEmitter9 {
|
|
|
79832
79851
|
process.stdout.write("\x1B[?25h");
|
|
79833
79852
|
process.exit(RESTART_EXIT_CODE);
|
|
79834
79853
|
} else {
|
|
79835
|
-
const errorMsg =
|
|
79854
|
+
const errorMsg = result.error ?? "Unknown error";
|
|
79836
79855
|
this.state.errorMessage = errorMsg;
|
|
79837
79856
|
this.updateStatus("failed", errorMsg);
|
|
79838
79857
|
this.emit("update:failed", errorMsg);
|
|
79839
|
-
const errorText =
|
|
79858
|
+
const errorText = result.error;
|
|
79840
79859
|
await this.callbacks.broadcastUpdate((fmt) => `❌ ${fmt.formatBold("Update failed")}: ${errorText}
|
|
79841
79860
|
${getRollbackInstructions(VERSION)}`).catch(() => {});
|
|
79842
79861
|
}
|
|
@@ -79880,8 +79899,8 @@ function wirePlatformEvents(platformId, client, session, ui) {
|
|
|
79880
79899
|
client.on("disconnected", () => {
|
|
79881
79900
|
ui.setPlatformStatus(platformId, { connected: false, reconnecting: true });
|
|
79882
79901
|
});
|
|
79883
|
-
client.on("reconnecting", (
|
|
79884
|
-
ui.setPlatformStatus(platformId, { reconnecting: true, reconnectAttempts:
|
|
79902
|
+
client.on("reconnecting", (attempt) => {
|
|
79903
|
+
ui.setPlatformStatus(platformId, { reconnecting: true, reconnectAttempts: attempt });
|
|
79885
79904
|
});
|
|
79886
79905
|
client.on("error", (e) => {
|
|
79887
79906
|
ui.addLog({ level: "error", component: platformId, message: String(e) });
|