@motiadev/plugin-logs 0.13.0-beta.162-158257 → 0.13.0-beta.162-687645
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/dist/index.js +1050 -235
- package/dist/index.js.map +1 -1
- package/dist/plugin.js.map +1 -1
- package/package.json +4 -6
package/dist/index.js
CHANGED
|
@@ -1,23 +1,40 @@
|
|
|
1
1
|
import { Stream } from "@motiadev/stream-client-browser";
|
|
2
2
|
import { create } from "zustand";
|
|
3
|
-
import { useMemo, useState } from "react";
|
|
4
3
|
import { Button, Input, LevelDot, Sidebar, Table, TableBody, TableCell, TableRow, cn } from "@motiadev/ui";
|
|
5
4
|
import { Search, Trash, X } from "lucide-react";
|
|
6
5
|
import ReactJson from "react18-json-view";
|
|
7
6
|
import "react18-json-view/src/dark.css";
|
|
8
7
|
import "react18-json-view/src/style.css";
|
|
9
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
8
|
|
|
11
9
|
import './index.css';
|
|
12
10
|
//#region rolldown:runtime
|
|
11
|
+
var __create = Object.create;
|
|
12
|
+
var __defProp = Object.defineProperty;
|
|
13
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13
14
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
15
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
16
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
17
|
var __commonJS = (cb, mod) => function() {
|
|
15
18
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
16
19
|
};
|
|
17
|
-
var
|
|
18
|
-
if (typeof
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
var __copyProps = (to, from, except, desc) => {
|
|
21
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
22
|
+
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
23
|
+
key = keys[i];
|
|
24
|
+
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
25
|
+
__defProp(to, key, {
|
|
26
|
+
get: ((k) => from[k]).bind(null, key),
|
|
27
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return to;
|
|
33
|
+
};
|
|
34
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
35
|
+
value: mod,
|
|
36
|
+
enumerable: true
|
|
37
|
+
}) : target, mod));
|
|
21
38
|
|
|
22
39
|
//#endregion
|
|
23
40
|
//#region src/stores/use-logs-store.ts
|
|
@@ -50,61 +67,774 @@ const initLogListener = () => {
|
|
|
50
67
|
};
|
|
51
68
|
|
|
52
69
|
//#endregion
|
|
53
|
-
//#region ../../node_modules/.pnpm/react@19.2.0/node_modules/react/cjs/react
|
|
54
|
-
/**
|
|
55
|
-
* @license React
|
|
56
|
-
* react-compiler-runtime.production.js
|
|
57
|
-
*
|
|
58
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
59
|
-
*
|
|
60
|
-
* This source code is licensed under the MIT license found in the
|
|
61
|
-
* LICENSE file in the root directory of this source tree.
|
|
62
|
-
*/
|
|
63
|
-
var require_react_compiler_runtime_production = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/react@19.2.0/node_modules/react/cjs/react-compiler-runtime.production.js": ((exports) => {
|
|
64
|
-
var ReactSharedInternals = __require("react").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
65
|
-
exports.c = function(size) {
|
|
66
|
-
return ReactSharedInternals.H.useMemoCache(size);
|
|
67
|
-
};
|
|
68
|
-
}) });
|
|
69
|
-
|
|
70
|
-
//#endregion
|
|
71
|
-
//#region ../../node_modules/.pnpm/react@19.2.0/node_modules/react/cjs/react-compiler-runtime.development.js
|
|
70
|
+
//#region ../../node_modules/.pnpm/react@19.2.0/node_modules/react/cjs/react.development.js
|
|
72
71
|
/**
|
|
73
72
|
* @license React
|
|
74
|
-
* react
|
|
73
|
+
* react.development.js
|
|
75
74
|
*
|
|
76
75
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
77
76
|
*
|
|
78
77
|
* This source code is licensed under the MIT license found in the
|
|
79
78
|
* LICENSE file in the root directory of this source tree.
|
|
80
79
|
*/
|
|
81
|
-
var
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
80
|
+
var require_react_development = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/react@19.2.0/node_modules/react/cjs/react.development.js": ((exports, module) => {
|
|
81
|
+
(function() {
|
|
82
|
+
function defineDeprecationWarning(methodName, info) {
|
|
83
|
+
Object.defineProperty(Component.prototype, methodName, { get: function() {
|
|
84
|
+
console.warn("%s(...) is deprecated in plain JavaScript React classes. %s", info[0], info[1]);
|
|
85
|
+
} });
|
|
86
|
+
}
|
|
87
|
+
function getIteratorFn(maybeIterable) {
|
|
88
|
+
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
89
|
+
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
90
|
+
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
91
|
+
}
|
|
92
|
+
function warnNoop(publicInstance, callerName) {
|
|
93
|
+
publicInstance = (publicInstance = publicInstance.constructor) && (publicInstance.displayName || publicInstance.name) || "ReactClass";
|
|
94
|
+
var warningKey = publicInstance + "." + callerName;
|
|
95
|
+
didWarnStateUpdateForUnmountedComponent[warningKey] || (console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", callerName, publicInstance), didWarnStateUpdateForUnmountedComponent[warningKey] = !0);
|
|
96
|
+
}
|
|
97
|
+
function Component(props, context, updater) {
|
|
98
|
+
this.props = props;
|
|
99
|
+
this.context = context;
|
|
100
|
+
this.refs = emptyObject;
|
|
101
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
102
|
+
}
|
|
103
|
+
function ComponentDummy() {}
|
|
104
|
+
function PureComponent(props, context, updater) {
|
|
105
|
+
this.props = props;
|
|
106
|
+
this.context = context;
|
|
107
|
+
this.refs = emptyObject;
|
|
108
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
109
|
+
}
|
|
110
|
+
function noop() {}
|
|
111
|
+
function testStringCoercion(value) {
|
|
112
|
+
return "" + value;
|
|
113
|
+
}
|
|
114
|
+
function checkKeyStringCoercion(value) {
|
|
115
|
+
try {
|
|
116
|
+
testStringCoercion(value);
|
|
117
|
+
var JSCompiler_inline_result = !1;
|
|
118
|
+
} catch (e) {
|
|
119
|
+
JSCompiler_inline_result = !0;
|
|
120
|
+
}
|
|
121
|
+
if (JSCompiler_inline_result) {
|
|
122
|
+
JSCompiler_inline_result = console;
|
|
123
|
+
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
124
|
+
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
125
|
+
JSCompiler_temp_const.call(JSCompiler_inline_result, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", JSCompiler_inline_result$jscomp$0);
|
|
126
|
+
return testStringCoercion(value);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
function getComponentNameFromType(type$1) {
|
|
130
|
+
if (null == type$1) return null;
|
|
131
|
+
if ("function" === typeof type$1) return type$1.$$typeof === REACT_CLIENT_REFERENCE ? null : type$1.displayName || type$1.name || null;
|
|
132
|
+
if ("string" === typeof type$1) return type$1;
|
|
133
|
+
switch (type$1) {
|
|
134
|
+
case REACT_FRAGMENT_TYPE: return "Fragment";
|
|
135
|
+
case REACT_PROFILER_TYPE: return "Profiler";
|
|
136
|
+
case REACT_STRICT_MODE_TYPE: return "StrictMode";
|
|
137
|
+
case REACT_SUSPENSE_TYPE: return "Suspense";
|
|
138
|
+
case REACT_SUSPENSE_LIST_TYPE: return "SuspenseList";
|
|
139
|
+
case REACT_ACTIVITY_TYPE: return "Activity";
|
|
140
|
+
}
|
|
141
|
+
if ("object" === typeof type$1) switch ("number" === typeof type$1.tag && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), type$1.$$typeof) {
|
|
142
|
+
case REACT_PORTAL_TYPE: return "Portal";
|
|
143
|
+
case REACT_CONTEXT_TYPE: return type$1.displayName || "Context";
|
|
144
|
+
case REACT_CONSUMER_TYPE: return (type$1._context.displayName || "Context") + ".Consumer";
|
|
145
|
+
case REACT_FORWARD_REF_TYPE:
|
|
146
|
+
var innerType = type$1.render;
|
|
147
|
+
type$1 = type$1.displayName;
|
|
148
|
+
type$1 || (type$1 = innerType.displayName || innerType.name || "", type$1 = "" !== type$1 ? "ForwardRef(" + type$1 + ")" : "ForwardRef");
|
|
149
|
+
return type$1;
|
|
150
|
+
case REACT_MEMO_TYPE: return innerType = type$1.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type$1.type) || "Memo";
|
|
151
|
+
case REACT_LAZY_TYPE:
|
|
152
|
+
innerType = type$1._payload;
|
|
153
|
+
type$1 = type$1._init;
|
|
154
|
+
try {
|
|
155
|
+
return getComponentNameFromType(type$1(innerType));
|
|
156
|
+
} catch (x) {}
|
|
157
|
+
}
|
|
158
|
+
return null;
|
|
159
|
+
}
|
|
160
|
+
function getTaskName(type$1) {
|
|
161
|
+
if (type$1 === REACT_FRAGMENT_TYPE) return "<>";
|
|
162
|
+
if ("object" === typeof type$1 && null !== type$1 && type$1.$$typeof === REACT_LAZY_TYPE) return "<...>";
|
|
163
|
+
try {
|
|
164
|
+
var name = getComponentNameFromType(type$1);
|
|
165
|
+
return name ? "<" + name + ">" : "<...>";
|
|
166
|
+
} catch (x) {
|
|
167
|
+
return "<...>";
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
function getOwner() {
|
|
171
|
+
var dispatcher = ReactSharedInternals.A;
|
|
172
|
+
return null === dispatcher ? null : dispatcher.getOwner();
|
|
173
|
+
}
|
|
174
|
+
function UnknownOwner() {
|
|
175
|
+
return Error("react-stack-top-frame");
|
|
176
|
+
}
|
|
177
|
+
function hasValidKey(config) {
|
|
178
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
179
|
+
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
180
|
+
if (getter && getter.isReactWarning) return !1;
|
|
181
|
+
}
|
|
182
|
+
return void 0 !== config.key;
|
|
183
|
+
}
|
|
184
|
+
function defineKeyPropWarningGetter(props, displayName) {
|
|
185
|
+
function warnAboutAccessingKey() {
|
|
186
|
+
specialPropKeyWarningShown || (specialPropKeyWarningShown = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", displayName));
|
|
187
|
+
}
|
|
188
|
+
warnAboutAccessingKey.isReactWarning = !0;
|
|
189
|
+
Object.defineProperty(props, "key", {
|
|
190
|
+
get: warnAboutAccessingKey,
|
|
191
|
+
configurable: !0
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
function elementRefGetterWithDeprecationWarning() {
|
|
195
|
+
var componentName = getComponentNameFromType(this.type);
|
|
196
|
+
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."));
|
|
197
|
+
componentName = this.props.ref;
|
|
198
|
+
return void 0 !== componentName ? componentName : null;
|
|
199
|
+
}
|
|
200
|
+
function ReactElement(type$1, key, props, owner, debugStack, debugTask) {
|
|
201
|
+
var refProp = props.ref;
|
|
202
|
+
type$1 = {
|
|
203
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
204
|
+
type: type$1,
|
|
205
|
+
key,
|
|
206
|
+
props,
|
|
207
|
+
_owner: owner
|
|
208
|
+
};
|
|
209
|
+
null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type$1, "ref", {
|
|
210
|
+
enumerable: !1,
|
|
211
|
+
get: elementRefGetterWithDeprecationWarning
|
|
212
|
+
}) : Object.defineProperty(type$1, "ref", {
|
|
213
|
+
enumerable: !1,
|
|
214
|
+
value: null
|
|
215
|
+
});
|
|
216
|
+
type$1._store = {};
|
|
217
|
+
Object.defineProperty(type$1._store, "validated", {
|
|
218
|
+
configurable: !1,
|
|
219
|
+
enumerable: !1,
|
|
220
|
+
writable: !0,
|
|
221
|
+
value: 0
|
|
222
|
+
});
|
|
223
|
+
Object.defineProperty(type$1, "_debugInfo", {
|
|
224
|
+
configurable: !1,
|
|
225
|
+
enumerable: !1,
|
|
226
|
+
writable: !0,
|
|
227
|
+
value: null
|
|
228
|
+
});
|
|
229
|
+
Object.defineProperty(type$1, "_debugStack", {
|
|
230
|
+
configurable: !1,
|
|
231
|
+
enumerable: !1,
|
|
232
|
+
writable: !0,
|
|
233
|
+
value: debugStack
|
|
234
|
+
});
|
|
235
|
+
Object.defineProperty(type$1, "_debugTask", {
|
|
236
|
+
configurable: !1,
|
|
237
|
+
enumerable: !1,
|
|
238
|
+
writable: !0,
|
|
239
|
+
value: debugTask
|
|
240
|
+
});
|
|
241
|
+
Object.freeze && (Object.freeze(type$1.props), Object.freeze(type$1));
|
|
242
|
+
return type$1;
|
|
243
|
+
}
|
|
244
|
+
function cloneAndReplaceKey(oldElement, newKey) {
|
|
245
|
+
newKey = ReactElement(oldElement.type, newKey, oldElement.props, oldElement._owner, oldElement._debugStack, oldElement._debugTask);
|
|
246
|
+
oldElement._store && (newKey._store.validated = oldElement._store.validated);
|
|
247
|
+
return newKey;
|
|
248
|
+
}
|
|
249
|
+
function validateChildKeys(node) {
|
|
250
|
+
isValidElement(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
|
|
251
|
+
}
|
|
252
|
+
function isValidElement(object) {
|
|
253
|
+
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
254
|
+
}
|
|
255
|
+
function escape(key) {
|
|
256
|
+
var escaperLookup = {
|
|
257
|
+
"=": "=0",
|
|
258
|
+
":": "=2"
|
|
259
|
+
};
|
|
260
|
+
return "$" + key.replace(/[=:]/g, function(match) {
|
|
261
|
+
return escaperLookup[match];
|
|
262
|
+
});
|
|
263
|
+
}
|
|
264
|
+
function getElementKey(element, index) {
|
|
265
|
+
return "object" === typeof element && null !== element && null != element.key ? (checkKeyStringCoercion(element.key), escape("" + element.key)) : index.toString(36);
|
|
266
|
+
}
|
|
267
|
+
function resolveThenable(thenable) {
|
|
268
|
+
switch (thenable.status) {
|
|
269
|
+
case "fulfilled": return thenable.value;
|
|
270
|
+
case "rejected": throw thenable.reason;
|
|
271
|
+
default: switch ("string" === typeof thenable.status ? thenable.then(noop, noop) : (thenable.status = "pending", thenable.then(function(fulfilledValue) {
|
|
272
|
+
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
273
|
+
}, function(error) {
|
|
274
|
+
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
275
|
+
})), thenable.status) {
|
|
276
|
+
case "fulfilled": return thenable.value;
|
|
277
|
+
case "rejected": throw thenable.reason;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
throw thenable;
|
|
281
|
+
}
|
|
282
|
+
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
283
|
+
var type$1 = typeof children;
|
|
284
|
+
if ("undefined" === type$1 || "boolean" === type$1) children = null;
|
|
285
|
+
var invokeCallback = !1;
|
|
286
|
+
if (null === children) invokeCallback = !0;
|
|
287
|
+
else switch (type$1) {
|
|
288
|
+
case "bigint":
|
|
289
|
+
case "string":
|
|
290
|
+
case "number":
|
|
291
|
+
invokeCallback = !0;
|
|
292
|
+
break;
|
|
293
|
+
case "object": switch (children.$$typeof) {
|
|
294
|
+
case REACT_ELEMENT_TYPE:
|
|
295
|
+
case REACT_PORTAL_TYPE:
|
|
296
|
+
invokeCallback = !0;
|
|
297
|
+
break;
|
|
298
|
+
case REACT_LAZY_TYPE: return invokeCallback = children._init, mapIntoArray(invokeCallback(children._payload), array, escapedPrefix, nameSoFar, callback);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
if (invokeCallback) {
|
|
302
|
+
invokeCallback = children;
|
|
303
|
+
callback = callback(invokeCallback);
|
|
304
|
+
var childKey = "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
|
|
305
|
+
isArrayImpl(callback) ? (escapedPrefix = "", null != childKey && (escapedPrefix = childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
|
|
306
|
+
return c;
|
|
307
|
+
})) : null != callback && (isValidElement(callback) && (null != callback.key && (invokeCallback && invokeCallback.key === callback.key || checkKeyStringCoercion(callback.key)), escapedPrefix = cloneAndReplaceKey(callback, escapedPrefix + (null == callback.key || invokeCallback && invokeCallback.key === callback.key ? "" : ("" + callback.key).replace(userProvidedKeyEscapeRegex, "$&/") + "/") + childKey), "" !== nameSoFar && null != invokeCallback && isValidElement(invokeCallback) && null == invokeCallback.key && invokeCallback._store && !invokeCallback._store.validated && (escapedPrefix._store.validated = 2), callback = escapedPrefix), array.push(callback));
|
|
308
|
+
return 1;
|
|
309
|
+
}
|
|
310
|
+
invokeCallback = 0;
|
|
311
|
+
childKey = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
312
|
+
if (isArrayImpl(children)) for (var i = 0; i < children.length; i++) nameSoFar = children[i], type$1 = childKey + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(nameSoFar, array, escapedPrefix, type$1, callback);
|
|
313
|
+
else if (i = getIteratorFn(children), "function" === typeof i) for (i === children.entries && (didWarnAboutMaps || console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), didWarnAboutMaps = !0), children = i.call(children), i = 0; !(nameSoFar = children.next()).done;) nameSoFar = nameSoFar.value, type$1 = childKey + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(nameSoFar, array, escapedPrefix, type$1, callback);
|
|
314
|
+
else if ("object" === type$1) {
|
|
315
|
+
if ("function" === typeof children.then) return mapIntoArray(resolveThenable(children), array, escapedPrefix, nameSoFar, callback);
|
|
316
|
+
array = String(children);
|
|
317
|
+
throw Error("Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead.");
|
|
318
|
+
}
|
|
319
|
+
return invokeCallback;
|
|
320
|
+
}
|
|
321
|
+
function mapChildren(children, func, context) {
|
|
322
|
+
if (null == children) return children;
|
|
323
|
+
var result = [], count = 0;
|
|
324
|
+
mapIntoArray(children, result, "", "", function(child) {
|
|
325
|
+
return func.call(context, child, count++);
|
|
326
|
+
});
|
|
327
|
+
return result;
|
|
328
|
+
}
|
|
329
|
+
function lazyInitializer(payload) {
|
|
330
|
+
if (-1 === payload._status) {
|
|
331
|
+
var ioInfo = payload._ioInfo;
|
|
332
|
+
null != ioInfo && (ioInfo.start = ioInfo.end = performance.now());
|
|
333
|
+
ioInfo = payload._result;
|
|
334
|
+
var thenable = ioInfo();
|
|
335
|
+
thenable.then(function(moduleObject) {
|
|
336
|
+
if (0 === payload._status || -1 === payload._status) {
|
|
337
|
+
payload._status = 1;
|
|
338
|
+
payload._result = moduleObject;
|
|
339
|
+
var _ioInfo = payload._ioInfo;
|
|
340
|
+
null != _ioInfo && (_ioInfo.end = performance.now());
|
|
341
|
+
void 0 === thenable.status && (thenable.status = "fulfilled", thenable.value = moduleObject);
|
|
342
|
+
}
|
|
343
|
+
}, function(error) {
|
|
344
|
+
if (0 === payload._status || -1 === payload._status) {
|
|
345
|
+
payload._status = 2;
|
|
346
|
+
payload._result = error;
|
|
347
|
+
var _ioInfo2 = payload._ioInfo;
|
|
348
|
+
null != _ioInfo2 && (_ioInfo2.end = performance.now());
|
|
349
|
+
void 0 === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
350
|
+
}
|
|
351
|
+
});
|
|
352
|
+
ioInfo = payload._ioInfo;
|
|
353
|
+
if (null != ioInfo) {
|
|
354
|
+
ioInfo.value = thenable;
|
|
355
|
+
var displayName = thenable.displayName;
|
|
356
|
+
"string" === typeof displayName && (ioInfo.name = displayName);
|
|
357
|
+
}
|
|
358
|
+
-1 === payload._status && (payload._status = 0, payload._result = thenable);
|
|
359
|
+
}
|
|
360
|
+
if (1 === payload._status) return ioInfo = payload._result, void 0 === ioInfo && console.error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?", ioInfo), "default" in ioInfo || console.error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", ioInfo), ioInfo.default;
|
|
361
|
+
throw payload._result;
|
|
362
|
+
}
|
|
363
|
+
function resolveDispatcher() {
|
|
364
|
+
var dispatcher = ReactSharedInternals.H;
|
|
86
365
|
null === dispatcher && console.error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.");
|
|
87
|
-
return dispatcher
|
|
366
|
+
return dispatcher;
|
|
367
|
+
}
|
|
368
|
+
function releaseAsyncTransition() {
|
|
369
|
+
ReactSharedInternals.asyncTransitions--;
|
|
370
|
+
}
|
|
371
|
+
function enqueueTask(task) {
|
|
372
|
+
if (null === enqueueTaskImpl) try {
|
|
373
|
+
var requireString = ("require" + Math.random()).slice(0, 7);
|
|
374
|
+
enqueueTaskImpl = (module && module[requireString]).call(module, "timers").setImmediate;
|
|
375
|
+
} catch (_err) {
|
|
376
|
+
enqueueTaskImpl = function(callback) {
|
|
377
|
+
!1 === didWarnAboutMessageChannel && (didWarnAboutMessageChannel = !0, "undefined" === typeof MessageChannel && console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));
|
|
378
|
+
var channel = new MessageChannel();
|
|
379
|
+
channel.port1.onmessage = callback;
|
|
380
|
+
channel.port2.postMessage(void 0);
|
|
381
|
+
};
|
|
382
|
+
}
|
|
383
|
+
return enqueueTaskImpl(task);
|
|
384
|
+
}
|
|
385
|
+
function aggregateErrors(errors) {
|
|
386
|
+
return 1 < errors.length && "function" === typeof AggregateError ? new AggregateError(errors) : errors[0];
|
|
387
|
+
}
|
|
388
|
+
function popActScope(prevActQueue, prevActScopeDepth) {
|
|
389
|
+
prevActScopeDepth !== actScopeDepth - 1 && console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. ");
|
|
390
|
+
actScopeDepth = prevActScopeDepth;
|
|
391
|
+
}
|
|
392
|
+
function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
|
|
393
|
+
var queue = ReactSharedInternals.actQueue;
|
|
394
|
+
if (null !== queue) if (0 !== queue.length) try {
|
|
395
|
+
flushActQueue(queue);
|
|
396
|
+
enqueueTask(function() {
|
|
397
|
+
return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
398
|
+
});
|
|
399
|
+
return;
|
|
400
|
+
} catch (error) {
|
|
401
|
+
ReactSharedInternals.thrownErrors.push(error);
|
|
402
|
+
}
|
|
403
|
+
else ReactSharedInternals.actQueue = null;
|
|
404
|
+
0 < ReactSharedInternals.thrownErrors.length ? (queue = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(queue)) : resolve(returnValue);
|
|
405
|
+
}
|
|
406
|
+
function flushActQueue(queue) {
|
|
407
|
+
if (!isFlushing) {
|
|
408
|
+
isFlushing = !0;
|
|
409
|
+
var i = 0;
|
|
410
|
+
try {
|
|
411
|
+
for (; i < queue.length; i++) {
|
|
412
|
+
var callback = queue[i];
|
|
413
|
+
do {
|
|
414
|
+
ReactSharedInternals.didUsePromise = !1;
|
|
415
|
+
var continuation = callback(!1);
|
|
416
|
+
if (null !== continuation) {
|
|
417
|
+
if (ReactSharedInternals.didUsePromise) {
|
|
418
|
+
queue[i] = callback;
|
|
419
|
+
queue.splice(0, i);
|
|
420
|
+
return;
|
|
421
|
+
}
|
|
422
|
+
callback = continuation;
|
|
423
|
+
} else break;
|
|
424
|
+
} while (1);
|
|
425
|
+
}
|
|
426
|
+
queue.length = 0;
|
|
427
|
+
} catch (error) {
|
|
428
|
+
queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
|
|
429
|
+
} finally {
|
|
430
|
+
isFlushing = !1;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
435
|
+
var 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"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, didWarnStateUpdateForUnmountedComponent = {}, ReactNoopUpdateQueue = {
|
|
436
|
+
isMounted: function() {
|
|
437
|
+
return !1;
|
|
438
|
+
},
|
|
439
|
+
enqueueForceUpdate: function(publicInstance) {
|
|
440
|
+
warnNoop(publicInstance, "forceUpdate");
|
|
441
|
+
},
|
|
442
|
+
enqueueReplaceState: function(publicInstance) {
|
|
443
|
+
warnNoop(publicInstance, "replaceState");
|
|
444
|
+
},
|
|
445
|
+
enqueueSetState: function(publicInstance) {
|
|
446
|
+
warnNoop(publicInstance, "setState");
|
|
447
|
+
}
|
|
448
|
+
}, assign = Object.assign, emptyObject = {};
|
|
449
|
+
Object.freeze(emptyObject);
|
|
450
|
+
Component.prototype.isReactComponent = {};
|
|
451
|
+
Component.prototype.setState = function(partialState, callback) {
|
|
452
|
+
if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState) throw Error("takes an object of state variables to update or a function which returns an object of state variables.");
|
|
453
|
+
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
454
|
+
};
|
|
455
|
+
Component.prototype.forceUpdate = function(callback) {
|
|
456
|
+
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
457
|
+
};
|
|
458
|
+
var deprecatedAPIs = {
|
|
459
|
+
isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
|
|
460
|
+
replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
|
|
461
|
+
};
|
|
462
|
+
for (fnName in deprecatedAPIs) deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
|
|
463
|
+
ComponentDummy.prototype = Component.prototype;
|
|
464
|
+
deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
|
|
465
|
+
deprecatedAPIs.constructor = PureComponent;
|
|
466
|
+
assign(deprecatedAPIs, Component.prototype);
|
|
467
|
+
deprecatedAPIs.isPureReactComponent = !0;
|
|
468
|
+
var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = {
|
|
469
|
+
H: null,
|
|
470
|
+
A: null,
|
|
471
|
+
T: null,
|
|
472
|
+
S: null,
|
|
473
|
+
actQueue: null,
|
|
474
|
+
asyncTransitions: 0,
|
|
475
|
+
isBatchingLegacy: !1,
|
|
476
|
+
didScheduleLegacyUpdate: !1,
|
|
477
|
+
didUsePromise: !1,
|
|
478
|
+
thrownErrors: [],
|
|
479
|
+
getCurrentStack: null,
|
|
480
|
+
recentlyCreatedOwnerStacks: 0
|
|
481
|
+
}, hasOwnProperty = Object.prototype.hasOwnProperty, createTask = console.createTask ? console.createTask : function() {
|
|
482
|
+
return null;
|
|
483
|
+
};
|
|
484
|
+
deprecatedAPIs = { react_stack_bottom_frame: function(callStackForError) {
|
|
485
|
+
return callStackForError();
|
|
486
|
+
} };
|
|
487
|
+
var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
|
|
488
|
+
var didWarnAboutElementRef = {};
|
|
489
|
+
var unknownOwnerDebugStack = deprecatedAPIs.react_stack_bottom_frame.bind(deprecatedAPIs, UnknownOwner)();
|
|
490
|
+
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
491
|
+
var didWarnAboutMaps = !1, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
492
|
+
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
493
|
+
var event = new window.ErrorEvent("error", {
|
|
494
|
+
bubbles: !0,
|
|
495
|
+
cancelable: !0,
|
|
496
|
+
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
497
|
+
error
|
|
498
|
+
});
|
|
499
|
+
if (!window.dispatchEvent(event)) return;
|
|
500
|
+
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
501
|
+
process.emit("uncaughtException", error);
|
|
502
|
+
return;
|
|
503
|
+
}
|
|
504
|
+
console.error(error);
|
|
505
|
+
}, didWarnAboutMessageChannel = !1, enqueueTaskImpl = null, actScopeDepth = 0, didWarnNoAwaitAct = !1, isFlushing = !1, queueSeveralMicrotasks = "function" === typeof queueMicrotask ? function(callback) {
|
|
506
|
+
queueMicrotask(function() {
|
|
507
|
+
return queueMicrotask(callback);
|
|
508
|
+
});
|
|
509
|
+
} : enqueueTask;
|
|
510
|
+
deprecatedAPIs = Object.freeze({
|
|
511
|
+
__proto__: null,
|
|
512
|
+
c: function(size) {
|
|
513
|
+
return resolveDispatcher().useMemoCache(size);
|
|
514
|
+
}
|
|
515
|
+
});
|
|
516
|
+
var fnName = {
|
|
517
|
+
map: mapChildren,
|
|
518
|
+
forEach: function(children, forEachFunc, forEachContext) {
|
|
519
|
+
mapChildren(children, function() {
|
|
520
|
+
forEachFunc.apply(this, arguments);
|
|
521
|
+
}, forEachContext);
|
|
522
|
+
},
|
|
523
|
+
count: function(children) {
|
|
524
|
+
var n = 0;
|
|
525
|
+
mapChildren(children, function() {
|
|
526
|
+
n++;
|
|
527
|
+
});
|
|
528
|
+
return n;
|
|
529
|
+
},
|
|
530
|
+
toArray: function(children) {
|
|
531
|
+
return mapChildren(children, function(child) {
|
|
532
|
+
return child;
|
|
533
|
+
}) || [];
|
|
534
|
+
},
|
|
535
|
+
only: function(children) {
|
|
536
|
+
if (!isValidElement(children)) throw Error("React.Children.only expected to receive a single React element child.");
|
|
537
|
+
return children;
|
|
538
|
+
}
|
|
539
|
+
};
|
|
540
|
+
exports.Activity = REACT_ACTIVITY_TYPE;
|
|
541
|
+
exports.Children = fnName;
|
|
542
|
+
exports.Component = Component;
|
|
543
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
544
|
+
exports.Profiler = REACT_PROFILER_TYPE;
|
|
545
|
+
exports.PureComponent = PureComponent;
|
|
546
|
+
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
547
|
+
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
548
|
+
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
549
|
+
exports.__COMPILER_RUNTIME = deprecatedAPIs;
|
|
550
|
+
exports.act = function(callback) {
|
|
551
|
+
var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
|
|
552
|
+
actScopeDepth++;
|
|
553
|
+
var queue = ReactSharedInternals.actQueue = null !== prevActQueue ? prevActQueue : [], didAwaitActCall = !1;
|
|
554
|
+
try {
|
|
555
|
+
var result = callback();
|
|
556
|
+
} catch (error) {
|
|
557
|
+
ReactSharedInternals.thrownErrors.push(error);
|
|
558
|
+
}
|
|
559
|
+
if (0 < ReactSharedInternals.thrownErrors.length) throw popActScope(prevActQueue, prevActScopeDepth), callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
|
|
560
|
+
if (null !== result && "object" === typeof result && "function" === typeof result.then) {
|
|
561
|
+
var thenable = result;
|
|
562
|
+
queueSeveralMicrotasks(function() {
|
|
563
|
+
didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = !0, console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"));
|
|
564
|
+
});
|
|
565
|
+
return { then: function(resolve, reject) {
|
|
566
|
+
didAwaitActCall = !0;
|
|
567
|
+
thenable.then(function(returnValue) {
|
|
568
|
+
popActScope(prevActQueue, prevActScopeDepth);
|
|
569
|
+
if (0 === prevActScopeDepth) {
|
|
570
|
+
try {
|
|
571
|
+
flushActQueue(queue), enqueueTask(function() {
|
|
572
|
+
return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
573
|
+
});
|
|
574
|
+
} catch (error$0) {
|
|
575
|
+
ReactSharedInternals.thrownErrors.push(error$0);
|
|
576
|
+
}
|
|
577
|
+
if (0 < ReactSharedInternals.thrownErrors.length) {
|
|
578
|
+
var _thrownError = aggregateErrors(ReactSharedInternals.thrownErrors);
|
|
579
|
+
ReactSharedInternals.thrownErrors.length = 0;
|
|
580
|
+
reject(_thrownError);
|
|
581
|
+
}
|
|
582
|
+
} else resolve(returnValue);
|
|
583
|
+
}, function(error) {
|
|
584
|
+
popActScope(prevActQueue, prevActScopeDepth);
|
|
585
|
+
0 < ReactSharedInternals.thrownErrors.length ? (error = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(error)) : reject(error);
|
|
586
|
+
});
|
|
587
|
+
} };
|
|
588
|
+
}
|
|
589
|
+
var returnValue$jscomp$0 = result;
|
|
590
|
+
popActScope(prevActQueue, prevActScopeDepth);
|
|
591
|
+
0 === prevActScopeDepth && (flushActQueue(queue), 0 !== queue.length && queueSeveralMicrotasks(function() {
|
|
592
|
+
didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = !0, console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"));
|
|
593
|
+
}), ReactSharedInternals.actQueue = null);
|
|
594
|
+
if (0 < ReactSharedInternals.thrownErrors.length) throw callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
|
|
595
|
+
return { then: function(resolve, reject) {
|
|
596
|
+
didAwaitActCall = !0;
|
|
597
|
+
0 === prevActScopeDepth ? (ReactSharedInternals.actQueue = queue, enqueueTask(function() {
|
|
598
|
+
return recursivelyFlushAsyncActWork(returnValue$jscomp$0, resolve, reject);
|
|
599
|
+
})) : resolve(returnValue$jscomp$0);
|
|
600
|
+
} };
|
|
601
|
+
};
|
|
602
|
+
exports.cache = function(fn) {
|
|
603
|
+
return function() {
|
|
604
|
+
return fn.apply(null, arguments);
|
|
605
|
+
};
|
|
606
|
+
};
|
|
607
|
+
exports.cacheSignal = function() {
|
|
608
|
+
return null;
|
|
609
|
+
};
|
|
610
|
+
exports.captureOwnerStack = function() {
|
|
611
|
+
var getCurrentStack = ReactSharedInternals.getCurrentStack;
|
|
612
|
+
return null === getCurrentStack ? null : getCurrentStack();
|
|
613
|
+
};
|
|
614
|
+
exports.cloneElement = function(element, config, children) {
|
|
615
|
+
if (null === element || void 0 === element) throw Error("The argument must be a React element, but you passed " + element + ".");
|
|
616
|
+
var props = assign({}, element.props), key = element.key, owner = element._owner;
|
|
617
|
+
if (null != config) {
|
|
618
|
+
var JSCompiler_inline_result;
|
|
619
|
+
a: {
|
|
620
|
+
if (hasOwnProperty.call(config, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(config, "ref").get) && JSCompiler_inline_result.isReactWarning) {
|
|
621
|
+
JSCompiler_inline_result = !1;
|
|
622
|
+
break a;
|
|
623
|
+
}
|
|
624
|
+
JSCompiler_inline_result = void 0 !== config.ref;
|
|
625
|
+
}
|
|
626
|
+
JSCompiler_inline_result && (owner = getOwner());
|
|
627
|
+
hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key);
|
|
628
|
+
for (propName in config) !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
629
|
+
}
|
|
630
|
+
var propName = arguments.length - 2;
|
|
631
|
+
if (1 === propName) props.children = children;
|
|
632
|
+
else if (1 < propName) {
|
|
633
|
+
JSCompiler_inline_result = Array(propName);
|
|
634
|
+
for (var i = 0; i < propName; i++) JSCompiler_inline_result[i] = arguments[i + 2];
|
|
635
|
+
props.children = JSCompiler_inline_result;
|
|
636
|
+
}
|
|
637
|
+
props = ReactElement(element.type, key, props, owner, element._debugStack, element._debugTask);
|
|
638
|
+
for (key = 2; key < arguments.length; key++) validateChildKeys(arguments[key]);
|
|
639
|
+
return props;
|
|
640
|
+
};
|
|
641
|
+
exports.createContext = function(defaultValue) {
|
|
642
|
+
defaultValue = {
|
|
643
|
+
$$typeof: REACT_CONTEXT_TYPE,
|
|
644
|
+
_currentValue: defaultValue,
|
|
645
|
+
_currentValue2: defaultValue,
|
|
646
|
+
_threadCount: 0,
|
|
647
|
+
Provider: null,
|
|
648
|
+
Consumer: null
|
|
649
|
+
};
|
|
650
|
+
defaultValue.Provider = defaultValue;
|
|
651
|
+
defaultValue.Consumer = {
|
|
652
|
+
$$typeof: REACT_CONSUMER_TYPE,
|
|
653
|
+
_context: defaultValue
|
|
654
|
+
};
|
|
655
|
+
defaultValue._currentRenderer = null;
|
|
656
|
+
defaultValue._currentRenderer2 = null;
|
|
657
|
+
return defaultValue;
|
|
658
|
+
};
|
|
659
|
+
exports.createElement = function(type$1, config, children) {
|
|
660
|
+
for (var i = 2; i < arguments.length; i++) validateChildKeys(arguments[i]);
|
|
661
|
+
i = {};
|
|
662
|
+
var key = null;
|
|
663
|
+
if (null != config) for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = !0, console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")), hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key), config) hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i[propName] = config[propName]);
|
|
664
|
+
var childrenLength = arguments.length - 2;
|
|
665
|
+
if (1 === childrenLength) i.children = children;
|
|
666
|
+
else if (1 < childrenLength) {
|
|
667
|
+
for (var childArray = Array(childrenLength), _i = 0; _i < childrenLength; _i++) childArray[_i] = arguments[_i + 2];
|
|
668
|
+
Object.freeze && Object.freeze(childArray);
|
|
669
|
+
i.children = childArray;
|
|
670
|
+
}
|
|
671
|
+
if (type$1 && type$1.defaultProps) for (propName in childrenLength = type$1.defaultProps, childrenLength) void 0 === i[propName] && (i[propName] = childrenLength[propName]);
|
|
672
|
+
key && defineKeyPropWarningGetter(i, "function" === typeof type$1 ? type$1.displayName || type$1.name || "Unknown" : type$1);
|
|
673
|
+
var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
674
|
+
return ReactElement(type$1, key, i, getOwner(), propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack, propName ? createTask(getTaskName(type$1)) : unknownOwnerDebugTask);
|
|
675
|
+
};
|
|
676
|
+
exports.createRef = function() {
|
|
677
|
+
var refObject = { current: null };
|
|
678
|
+
Object.seal(refObject);
|
|
679
|
+
return refObject;
|
|
680
|
+
};
|
|
681
|
+
exports.forwardRef = function(render) {
|
|
682
|
+
null != render && render.$$typeof === REACT_MEMO_TYPE ? console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : "function" !== typeof render ? console.error("forwardRef requires a render function but was given %s.", null === render ? "null" : typeof render) : 0 !== render.length && 2 !== render.length && console.error("forwardRef render functions accept exactly two parameters: props and ref. %s", 1 === render.length ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined.");
|
|
683
|
+
null != render && null != render.defaultProps && console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");
|
|
684
|
+
var elementType = {
|
|
685
|
+
$$typeof: REACT_FORWARD_REF_TYPE,
|
|
686
|
+
render
|
|
687
|
+
}, ownName;
|
|
688
|
+
Object.defineProperty(elementType, "displayName", {
|
|
689
|
+
enumerable: !1,
|
|
690
|
+
configurable: !0,
|
|
691
|
+
get: function() {
|
|
692
|
+
return ownName;
|
|
693
|
+
},
|
|
694
|
+
set: function(name) {
|
|
695
|
+
ownName = name;
|
|
696
|
+
render.name || render.displayName || (Object.defineProperty(render, "name", { value: name }), render.displayName = name);
|
|
697
|
+
}
|
|
698
|
+
});
|
|
699
|
+
return elementType;
|
|
700
|
+
};
|
|
701
|
+
exports.isValidElement = isValidElement;
|
|
702
|
+
exports.lazy = function(ctor) {
|
|
703
|
+
ctor = {
|
|
704
|
+
_status: -1,
|
|
705
|
+
_result: ctor
|
|
706
|
+
};
|
|
707
|
+
var lazyType = {
|
|
708
|
+
$$typeof: REACT_LAZY_TYPE,
|
|
709
|
+
_payload: ctor,
|
|
710
|
+
_init: lazyInitializer
|
|
711
|
+
}, ioInfo = {
|
|
712
|
+
name: "lazy",
|
|
713
|
+
start: -1,
|
|
714
|
+
end: -1,
|
|
715
|
+
value: null,
|
|
716
|
+
owner: null,
|
|
717
|
+
debugStack: Error("react-stack-top-frame"),
|
|
718
|
+
debugTask: console.createTask ? console.createTask("lazy()") : null
|
|
719
|
+
};
|
|
720
|
+
ctor._ioInfo = ioInfo;
|
|
721
|
+
lazyType._debugInfo = [{ awaited: ioInfo }];
|
|
722
|
+
return lazyType;
|
|
723
|
+
};
|
|
724
|
+
exports.memo = function(type$1, compare) {
|
|
725
|
+
type$1 ?? console.error("memo: The first argument must be a component. Instead received: %s", null === type$1 ? "null" : typeof type$1);
|
|
726
|
+
compare = {
|
|
727
|
+
$$typeof: REACT_MEMO_TYPE,
|
|
728
|
+
type: type$1,
|
|
729
|
+
compare: void 0 === compare ? null : compare
|
|
730
|
+
};
|
|
731
|
+
var ownName;
|
|
732
|
+
Object.defineProperty(compare, "displayName", {
|
|
733
|
+
enumerable: !1,
|
|
734
|
+
configurable: !0,
|
|
735
|
+
get: function() {
|
|
736
|
+
return ownName;
|
|
737
|
+
},
|
|
738
|
+
set: function(name) {
|
|
739
|
+
ownName = name;
|
|
740
|
+
type$1.name || type$1.displayName || (Object.defineProperty(type$1, "name", { value: name }), type$1.displayName = name);
|
|
741
|
+
}
|
|
742
|
+
});
|
|
743
|
+
return compare;
|
|
744
|
+
};
|
|
745
|
+
exports.startTransition = function(scope) {
|
|
746
|
+
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
747
|
+
currentTransition._updatedFibers = /* @__PURE__ */ new Set();
|
|
748
|
+
ReactSharedInternals.T = currentTransition;
|
|
749
|
+
try {
|
|
750
|
+
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
751
|
+
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
752
|
+
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && (ReactSharedInternals.asyncTransitions++, returnValue.then(releaseAsyncTransition, releaseAsyncTransition), returnValue.then(noop, reportGlobalError));
|
|
753
|
+
} catch (error) {
|
|
754
|
+
reportGlobalError(error);
|
|
755
|
+
} finally {
|
|
756
|
+
null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")), null !== prevTransition && null !== currentTransition.types && (null !== prevTransition.types && prevTransition.types !== currentTransition.types && console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."), prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
|
|
757
|
+
}
|
|
758
|
+
};
|
|
759
|
+
exports.unstable_useCacheRefresh = function() {
|
|
760
|
+
return resolveDispatcher().useCacheRefresh();
|
|
88
761
|
};
|
|
89
|
-
|
|
762
|
+
exports.use = function(usable) {
|
|
763
|
+
return resolveDispatcher().use(usable);
|
|
764
|
+
};
|
|
765
|
+
exports.useActionState = function(action, initialState, permalink) {
|
|
766
|
+
return resolveDispatcher().useActionState(action, initialState, permalink);
|
|
767
|
+
};
|
|
768
|
+
exports.useCallback = function(callback, deps) {
|
|
769
|
+
return resolveDispatcher().useCallback(callback, deps);
|
|
770
|
+
};
|
|
771
|
+
exports.useContext = function(Context) {
|
|
772
|
+
var dispatcher = resolveDispatcher();
|
|
773
|
+
Context.$$typeof === REACT_CONSUMER_TYPE && console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?");
|
|
774
|
+
return dispatcher.useContext(Context);
|
|
775
|
+
};
|
|
776
|
+
exports.useDebugValue = function(value, formatterFn) {
|
|
777
|
+
return resolveDispatcher().useDebugValue(value, formatterFn);
|
|
778
|
+
};
|
|
779
|
+
exports.useDeferredValue = function(value, initialValue) {
|
|
780
|
+
return resolveDispatcher().useDeferredValue(value, initialValue);
|
|
781
|
+
};
|
|
782
|
+
exports.useEffect = function(create$1, deps) {
|
|
783
|
+
create$1 ?? console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");
|
|
784
|
+
return resolveDispatcher().useEffect(create$1, deps);
|
|
785
|
+
};
|
|
786
|
+
exports.useEffectEvent = function(callback) {
|
|
787
|
+
return resolveDispatcher().useEffectEvent(callback);
|
|
788
|
+
};
|
|
789
|
+
exports.useId = function() {
|
|
790
|
+
return resolveDispatcher().useId();
|
|
791
|
+
};
|
|
792
|
+
exports.useImperativeHandle = function(ref, create$1, deps) {
|
|
793
|
+
return resolveDispatcher().useImperativeHandle(ref, create$1, deps);
|
|
794
|
+
};
|
|
795
|
+
exports.useInsertionEffect = function(create$1, deps) {
|
|
796
|
+
create$1 ?? console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?");
|
|
797
|
+
return resolveDispatcher().useInsertionEffect(create$1, deps);
|
|
798
|
+
};
|
|
799
|
+
exports.useLayoutEffect = function(create$1, deps) {
|
|
800
|
+
create$1 ?? console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?");
|
|
801
|
+
return resolveDispatcher().useLayoutEffect(create$1, deps);
|
|
802
|
+
};
|
|
803
|
+
exports.useMemo = function(create$1, deps) {
|
|
804
|
+
return resolveDispatcher().useMemo(create$1, deps);
|
|
805
|
+
};
|
|
806
|
+
exports.useOptimistic = function(passthrough, reducer) {
|
|
807
|
+
return resolveDispatcher().useOptimistic(passthrough, reducer);
|
|
808
|
+
};
|
|
809
|
+
exports.useReducer = function(reducer, initialArg, init) {
|
|
810
|
+
return resolveDispatcher().useReducer(reducer, initialArg, init);
|
|
811
|
+
};
|
|
812
|
+
exports.useRef = function(initialValue) {
|
|
813
|
+
return resolveDispatcher().useRef(initialValue);
|
|
814
|
+
};
|
|
815
|
+
exports.useState = function(initialState) {
|
|
816
|
+
return resolveDispatcher().useState(initialState);
|
|
817
|
+
};
|
|
818
|
+
exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
819
|
+
return resolveDispatcher().useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
|
|
820
|
+
};
|
|
821
|
+
exports.useTransition = function() {
|
|
822
|
+
return resolveDispatcher().useTransition();
|
|
823
|
+
};
|
|
824
|
+
exports.version = "19.2.0";
|
|
825
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
826
|
+
})();
|
|
90
827
|
}) });
|
|
91
828
|
|
|
92
829
|
//#endregion
|
|
93
|
-
//#region ../../node_modules/.pnpm/react@19.2.0/node_modules/react/
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
*
|
|
97
|
-
* This source code is licensed under the MIT license found in the
|
|
98
|
-
* LICENSE file in the root directory of this source tree.
|
|
99
|
-
*/
|
|
100
|
-
var require_compiler_runtime = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/react@19.2.0/node_modules/react/compiler-runtime.js": ((exports, module) => {
|
|
101
|
-
if (process.env.NODE_ENV === "production") module.exports = require_react_compiler_runtime_production();
|
|
102
|
-
else module.exports = require_react_compiler_runtime_development();
|
|
830
|
+
//#region ../../node_modules/.pnpm/react@19.2.0/node_modules/react/index.js
|
|
831
|
+
var require_react = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/react@19.2.0/node_modules/react/index.js": ((exports, module) => {
|
|
832
|
+
module.exports = require_react_development();
|
|
103
833
|
}) });
|
|
104
834
|
|
|
105
835
|
//#endregion
|
|
106
836
|
//#region src/utils/format-timestamp.ts
|
|
107
|
-
var
|
|
837
|
+
var import_react = /* @__PURE__ */ __toESM(require_react());
|
|
108
838
|
const formatTimestamp = (time) => {
|
|
109
839
|
const date = new Date(Number(time));
|
|
110
840
|
return `${date.toLocaleDateString("en-US", {
|
|
@@ -119,8 +849,215 @@ const formatTimestamp = (time) => {
|
|
|
119
849
|
})}.${date.getMilliseconds().toString().padStart(3, "0")}`;
|
|
120
850
|
};
|
|
121
851
|
|
|
852
|
+
//#endregion
|
|
853
|
+
//#region ../../node_modules/.pnpm/react@19.2.0/node_modules/react/cjs/react-jsx-runtime.development.js
|
|
854
|
+
/**
|
|
855
|
+
* @license React
|
|
856
|
+
* react-jsx-runtime.development.js
|
|
857
|
+
*
|
|
858
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
859
|
+
*
|
|
860
|
+
* This source code is licensed under the MIT license found in the
|
|
861
|
+
* LICENSE file in the root directory of this source tree.
|
|
862
|
+
*/
|
|
863
|
+
var require_react_jsx_runtime_development = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/react@19.2.0/node_modules/react/cjs/react-jsx-runtime.development.js": ((exports) => {
|
|
864
|
+
(function() {
|
|
865
|
+
function getComponentNameFromType(type$1) {
|
|
866
|
+
if (null == type$1) return null;
|
|
867
|
+
if ("function" === typeof type$1) return type$1.$$typeof === REACT_CLIENT_REFERENCE ? null : type$1.displayName || type$1.name || null;
|
|
868
|
+
if ("string" === typeof type$1) return type$1;
|
|
869
|
+
switch (type$1) {
|
|
870
|
+
case REACT_FRAGMENT_TYPE: return "Fragment";
|
|
871
|
+
case REACT_PROFILER_TYPE: return "Profiler";
|
|
872
|
+
case REACT_STRICT_MODE_TYPE: return "StrictMode";
|
|
873
|
+
case REACT_SUSPENSE_TYPE: return "Suspense";
|
|
874
|
+
case REACT_SUSPENSE_LIST_TYPE: return "SuspenseList";
|
|
875
|
+
case REACT_ACTIVITY_TYPE: return "Activity";
|
|
876
|
+
}
|
|
877
|
+
if ("object" === typeof type$1) switch ("number" === typeof type$1.tag && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), type$1.$$typeof) {
|
|
878
|
+
case REACT_PORTAL_TYPE: return "Portal";
|
|
879
|
+
case REACT_CONTEXT_TYPE: return type$1.displayName || "Context";
|
|
880
|
+
case REACT_CONSUMER_TYPE: return (type$1._context.displayName || "Context") + ".Consumer";
|
|
881
|
+
case REACT_FORWARD_REF_TYPE:
|
|
882
|
+
var innerType = type$1.render;
|
|
883
|
+
type$1 = type$1.displayName;
|
|
884
|
+
type$1 || (type$1 = innerType.displayName || innerType.name || "", type$1 = "" !== type$1 ? "ForwardRef(" + type$1 + ")" : "ForwardRef");
|
|
885
|
+
return type$1;
|
|
886
|
+
case REACT_MEMO_TYPE: return innerType = type$1.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type$1.type) || "Memo";
|
|
887
|
+
case REACT_LAZY_TYPE:
|
|
888
|
+
innerType = type$1._payload;
|
|
889
|
+
type$1 = type$1._init;
|
|
890
|
+
try {
|
|
891
|
+
return getComponentNameFromType(type$1(innerType));
|
|
892
|
+
} catch (x) {}
|
|
893
|
+
}
|
|
894
|
+
return null;
|
|
895
|
+
}
|
|
896
|
+
function testStringCoercion(value) {
|
|
897
|
+
return "" + value;
|
|
898
|
+
}
|
|
899
|
+
function checkKeyStringCoercion(value) {
|
|
900
|
+
try {
|
|
901
|
+
testStringCoercion(value);
|
|
902
|
+
var JSCompiler_inline_result = !1;
|
|
903
|
+
} catch (e) {
|
|
904
|
+
JSCompiler_inline_result = !0;
|
|
905
|
+
}
|
|
906
|
+
if (JSCompiler_inline_result) {
|
|
907
|
+
JSCompiler_inline_result = console;
|
|
908
|
+
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
909
|
+
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
910
|
+
JSCompiler_temp_const.call(JSCompiler_inline_result, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", JSCompiler_inline_result$jscomp$0);
|
|
911
|
+
return testStringCoercion(value);
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
function getTaskName(type$1) {
|
|
915
|
+
if (type$1 === REACT_FRAGMENT_TYPE) return "<>";
|
|
916
|
+
if ("object" === typeof type$1 && null !== type$1 && type$1.$$typeof === REACT_LAZY_TYPE) return "<...>";
|
|
917
|
+
try {
|
|
918
|
+
var name = getComponentNameFromType(type$1);
|
|
919
|
+
return name ? "<" + name + ">" : "<...>";
|
|
920
|
+
} catch (x) {
|
|
921
|
+
return "<...>";
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
function getOwner() {
|
|
925
|
+
var dispatcher = ReactSharedInternals.A;
|
|
926
|
+
return null === dispatcher ? null : dispatcher.getOwner();
|
|
927
|
+
}
|
|
928
|
+
function UnknownOwner() {
|
|
929
|
+
return Error("react-stack-top-frame");
|
|
930
|
+
}
|
|
931
|
+
function hasValidKey(config) {
|
|
932
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
933
|
+
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
934
|
+
if (getter && getter.isReactWarning) return !1;
|
|
935
|
+
}
|
|
936
|
+
return void 0 !== config.key;
|
|
937
|
+
}
|
|
938
|
+
function defineKeyPropWarningGetter(props, displayName) {
|
|
939
|
+
function warnAboutAccessingKey() {
|
|
940
|
+
specialPropKeyWarningShown || (specialPropKeyWarningShown = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", displayName));
|
|
941
|
+
}
|
|
942
|
+
warnAboutAccessingKey.isReactWarning = !0;
|
|
943
|
+
Object.defineProperty(props, "key", {
|
|
944
|
+
get: warnAboutAccessingKey,
|
|
945
|
+
configurable: !0
|
|
946
|
+
});
|
|
947
|
+
}
|
|
948
|
+
function elementRefGetterWithDeprecationWarning() {
|
|
949
|
+
var componentName = getComponentNameFromType(this.type);
|
|
950
|
+
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."));
|
|
951
|
+
componentName = this.props.ref;
|
|
952
|
+
return void 0 !== componentName ? componentName : null;
|
|
953
|
+
}
|
|
954
|
+
function ReactElement(type$1, key, props, owner, debugStack, debugTask) {
|
|
955
|
+
var refProp = props.ref;
|
|
956
|
+
type$1 = {
|
|
957
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
958
|
+
type: type$1,
|
|
959
|
+
key,
|
|
960
|
+
props,
|
|
961
|
+
_owner: owner
|
|
962
|
+
};
|
|
963
|
+
null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type$1, "ref", {
|
|
964
|
+
enumerable: !1,
|
|
965
|
+
get: elementRefGetterWithDeprecationWarning
|
|
966
|
+
}) : Object.defineProperty(type$1, "ref", {
|
|
967
|
+
enumerable: !1,
|
|
968
|
+
value: null
|
|
969
|
+
});
|
|
970
|
+
type$1._store = {};
|
|
971
|
+
Object.defineProperty(type$1._store, "validated", {
|
|
972
|
+
configurable: !1,
|
|
973
|
+
enumerable: !1,
|
|
974
|
+
writable: !0,
|
|
975
|
+
value: 0
|
|
976
|
+
});
|
|
977
|
+
Object.defineProperty(type$1, "_debugInfo", {
|
|
978
|
+
configurable: !1,
|
|
979
|
+
enumerable: !1,
|
|
980
|
+
writable: !0,
|
|
981
|
+
value: null
|
|
982
|
+
});
|
|
983
|
+
Object.defineProperty(type$1, "_debugStack", {
|
|
984
|
+
configurable: !1,
|
|
985
|
+
enumerable: !1,
|
|
986
|
+
writable: !0,
|
|
987
|
+
value: debugStack
|
|
988
|
+
});
|
|
989
|
+
Object.defineProperty(type$1, "_debugTask", {
|
|
990
|
+
configurable: !1,
|
|
991
|
+
enumerable: !1,
|
|
992
|
+
writable: !0,
|
|
993
|
+
value: debugTask
|
|
994
|
+
});
|
|
995
|
+
Object.freeze && (Object.freeze(type$1.props), Object.freeze(type$1));
|
|
996
|
+
return type$1;
|
|
997
|
+
}
|
|
998
|
+
function jsxDEVImpl(type$1, config, maybeKey, isStaticChildren, debugStack, debugTask) {
|
|
999
|
+
var children = config.children;
|
|
1000
|
+
if (void 0 !== children) if (isStaticChildren) if (isArrayImpl(children)) {
|
|
1001
|
+
for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++) validateChildKeys(children[isStaticChildren]);
|
|
1002
|
+
Object.freeze && Object.freeze(children);
|
|
1003
|
+
} else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
1004
|
+
else validateChildKeys(children);
|
|
1005
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
1006
|
+
children = getComponentNameFromType(type$1);
|
|
1007
|
+
var keys = Object.keys(config).filter(function(k) {
|
|
1008
|
+
return "key" !== k;
|
|
1009
|
+
});
|
|
1010
|
+
isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
1011
|
+
didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", isStaticChildren, children, keys, children), didWarnAboutKeySpread[children + isStaticChildren] = !0);
|
|
1012
|
+
}
|
|
1013
|
+
children = null;
|
|
1014
|
+
void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
|
|
1015
|
+
hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
|
|
1016
|
+
if ("key" in config) {
|
|
1017
|
+
maybeKey = {};
|
|
1018
|
+
for (var propName in config) "key" !== propName && (maybeKey[propName] = config[propName]);
|
|
1019
|
+
} else maybeKey = config;
|
|
1020
|
+
children && defineKeyPropWarningGetter(maybeKey, "function" === typeof type$1 ? type$1.displayName || type$1.name || "Unknown" : type$1);
|
|
1021
|
+
return ReactElement(type$1, children, maybeKey, getOwner(), debugStack, debugTask);
|
|
1022
|
+
}
|
|
1023
|
+
function validateChildKeys(node) {
|
|
1024
|
+
isValidElement(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
|
|
1025
|
+
}
|
|
1026
|
+
function isValidElement(object) {
|
|
1027
|
+
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
1028
|
+
}
|
|
1029
|
+
var React = require_react(), 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"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
|
|
1030
|
+
return null;
|
|
1031
|
+
};
|
|
1032
|
+
React = { react_stack_bottom_frame: function(callStackForError) {
|
|
1033
|
+
return callStackForError();
|
|
1034
|
+
} };
|
|
1035
|
+
var specialPropKeyWarningShown;
|
|
1036
|
+
var didWarnAboutElementRef = {};
|
|
1037
|
+
var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(React, UnknownOwner)();
|
|
1038
|
+
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
1039
|
+
var didWarnAboutKeySpread = {};
|
|
1040
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
1041
|
+
exports.jsx = function(type$1, config, maybeKey) {
|
|
1042
|
+
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
1043
|
+
return jsxDEVImpl(type$1, config, maybeKey, !1, trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack, trackActualOwner ? createTask(getTaskName(type$1)) : unknownOwnerDebugTask);
|
|
1044
|
+
};
|
|
1045
|
+
exports.jsxs = function(type$1, config, maybeKey) {
|
|
1046
|
+
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
1047
|
+
return jsxDEVImpl(type$1, config, maybeKey, !0, trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack, trackActualOwner ? createTask(getTaskName(type$1)) : unknownOwnerDebugTask);
|
|
1048
|
+
};
|
|
1049
|
+
})();
|
|
1050
|
+
}) });
|
|
1051
|
+
|
|
1052
|
+
//#endregion
|
|
1053
|
+
//#region ../../node_modules/.pnpm/react@19.2.0/node_modules/react/jsx-runtime.js
|
|
1054
|
+
var require_jsx_runtime = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/react@19.2.0/node_modules/react/jsx-runtime.js": ((exports, module) => {
|
|
1055
|
+
module.exports = require_react_jsx_runtime_development();
|
|
1056
|
+
}) });
|
|
1057
|
+
|
|
122
1058
|
//#endregion
|
|
123
1059
|
//#region src/components/log-detail.tsx
|
|
1060
|
+
var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
|
|
124
1061
|
const defaultProps = [
|
|
125
1062
|
"id",
|
|
126
1063
|
"msg",
|
|
@@ -131,32 +1068,32 @@ const defaultProps = [
|
|
|
131
1068
|
"traceId"
|
|
132
1069
|
];
|
|
133
1070
|
const LogDetail = ({ log, onClose }) => {
|
|
134
|
-
const [hasOtherProps, setHasOtherProps] = useState(false);
|
|
135
|
-
const otherPropsObject = useMemo(() => {
|
|
1071
|
+
const [hasOtherProps, setHasOtherProps] = (0, import_react.useState)(false);
|
|
1072
|
+
const otherPropsObject = (0, import_react.useMemo)(() => {
|
|
136
1073
|
if (!log) return null;
|
|
137
1074
|
const otherProps = Object.keys(log ?? {}).filter((key) => !defaultProps.includes(key));
|
|
138
1075
|
setHasOtherProps(otherProps.length > 0);
|
|
139
|
-
return otherProps.reduce((acc,
|
|
140
|
-
acc[
|
|
1076
|
+
return otherProps.reduce((acc, key) => {
|
|
1077
|
+
acc[key] = log[key];
|
|
141
1078
|
return acc;
|
|
142
1079
|
}, {});
|
|
143
1080
|
}, [log]);
|
|
144
1081
|
if (!log) return null;
|
|
145
|
-
return /* @__PURE__ */ jsx(Sidebar, {
|
|
1082
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Sidebar, {
|
|
146
1083
|
onClose,
|
|
147
1084
|
title: "Logs Details",
|
|
148
1085
|
subtitle: "Details including custom properties",
|
|
149
1086
|
actions: [{
|
|
150
|
-
icon: /* @__PURE__ */ jsx(X, {}),
|
|
1087
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(X, {}),
|
|
151
1088
|
onClick: onClose,
|
|
152
1089
|
label: "Close"
|
|
153
1090
|
}],
|
|
154
1091
|
details: [
|
|
155
1092
|
{
|
|
156
1093
|
label: "Level",
|
|
157
|
-
value: /* @__PURE__ */ jsxs("div", {
|
|
1094
|
+
value: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
158
1095
|
className: "flex items-center gap-2",
|
|
159
|
-
children: [/* @__PURE__ */ jsx(LevelDot, { level: log.level }), /* @__PURE__ */ jsx("div", {
|
|
1096
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(LevelDot, { level: log.level }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
160
1097
|
className: "capitalize",
|
|
161
1098
|
children: log.level
|
|
162
1099
|
})]
|
|
@@ -179,7 +1116,7 @@ const LogDetail = ({ log, onClose }) => {
|
|
|
179
1116
|
value: log.traceId
|
|
180
1117
|
}
|
|
181
1118
|
],
|
|
182
|
-
children: hasOtherProps && /* @__PURE__ */ jsx(ReactJson, {
|
|
1119
|
+
children: hasOtherProps && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ReactJson, {
|
|
183
1120
|
src: otherPropsObject,
|
|
184
1121
|
theme: "default",
|
|
185
1122
|
enableClipboard: true
|
|
@@ -190,208 +1127,86 @@ const LogDetail = ({ log, onClose }) => {
|
|
|
190
1127
|
//#endregion
|
|
191
1128
|
//#region src/components/logs-page.tsx
|
|
192
1129
|
const LogsPage = () => {
|
|
193
|
-
const
|
|
194
|
-
const
|
|
195
|
-
const
|
|
196
|
-
const
|
|
197
|
-
const
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
$[1] = selectedLogId;
|
|
203
|
-
$[2] = t0;
|
|
204
|
-
} else t0 = $[2];
|
|
205
|
-
const selectedLog = t0;
|
|
206
|
-
const [search, setSearch] = useState("");
|
|
207
|
-
let t1;
|
|
208
|
-
if ($[3] !== logs || $[4] !== search) {
|
|
209
|
-
let t2$1;
|
|
210
|
-
if ($[6] !== search) {
|
|
211
|
-
t2$1 = (log_0) => log_0.msg.toLowerCase().includes(search.toLowerCase()) || log_0.traceId.toLowerCase().includes(search.toLowerCase()) || log_0.step.toLowerCase().includes(search.toLowerCase());
|
|
212
|
-
$[6] = search;
|
|
213
|
-
$[7] = t2$1;
|
|
214
|
-
} else t2$1 = $[7];
|
|
215
|
-
t1 = logs.filter(t2$1);
|
|
216
|
-
$[3] = logs;
|
|
217
|
-
$[4] = search;
|
|
218
|
-
$[5] = t1;
|
|
219
|
-
} else t1 = $[5];
|
|
220
|
-
const filteredLogs = t1;
|
|
221
|
-
let t2;
|
|
222
|
-
if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
|
|
223
|
-
t2 = (e) => setSearch(e.target.value);
|
|
224
|
-
$[8] = t2;
|
|
225
|
-
} else t2 = $[8];
|
|
226
|
-
let t3;
|
|
227
|
-
if ($[9] !== search) {
|
|
228
|
-
t3 = /* @__PURE__ */ jsx(Input, {
|
|
229
|
-
variant: "shade",
|
|
230
|
-
value: search,
|
|
231
|
-
onChange: t2,
|
|
232
|
-
className: "px-9! font-medium",
|
|
233
|
-
placeholder: "Search by Trace ID or Message"
|
|
234
|
-
});
|
|
235
|
-
$[9] = search;
|
|
236
|
-
$[10] = t3;
|
|
237
|
-
} else t3 = $[10];
|
|
238
|
-
let t4;
|
|
239
|
-
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
240
|
-
t4 = /* @__PURE__ */ jsx(Search, { className: "absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground/50" });
|
|
241
|
-
$[11] = t4;
|
|
242
|
-
} else t4 = $[11];
|
|
243
|
-
let t5;
|
|
244
|
-
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
245
|
-
t5 = /* @__PURE__ */ jsx(X, {
|
|
246
|
-
className: "cursor-pointer absolute right-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground/50 hover:text-muted-foreground",
|
|
247
|
-
onClick: () => setSearch("")
|
|
1130
|
+
const logs = useLogsStore((state) => state.logs);
|
|
1131
|
+
const resetLogs = useLogsStore((state) => state.resetLogs);
|
|
1132
|
+
const selectedLogId = useLogsStore((state) => state.selectedLogId);
|
|
1133
|
+
const selectLogId = useLogsStore((state) => state.selectLogId);
|
|
1134
|
+
const selectedLog = (0, import_react.useMemo)(() => selectedLogId ? logs.find((log) => log.id === selectedLogId) : void 0, [logs, selectedLogId]);
|
|
1135
|
+
const [search, setSearch] = (0, import_react.useState)("");
|
|
1136
|
+
const filteredLogs = (0, import_react.useMemo)(() => {
|
|
1137
|
+
return logs.filter((log) => {
|
|
1138
|
+
return log.msg.toLowerCase().includes(search.toLowerCase()) || log.traceId.toLowerCase().includes(search.toLowerCase()) || log.step.toLowerCase().includes(search.toLowerCase());
|
|
248
1139
|
});
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
className: "flex-1 relative",
|
|
255
|
-
children: [
|
|
256
|
-
t3,
|
|
257
|
-
t4,
|
|
258
|
-
t5
|
|
259
|
-
]
|
|
260
|
-
});
|
|
261
|
-
$[13] = t3;
|
|
262
|
-
$[14] = t6;
|
|
263
|
-
} else t6 = $[14];
|
|
264
|
-
let t7;
|
|
265
|
-
if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
|
|
266
|
-
t7 = /* @__PURE__ */ jsx(Trash, {});
|
|
267
|
-
$[15] = t7;
|
|
268
|
-
} else t7 = $[15];
|
|
269
|
-
let t8;
|
|
270
|
-
if ($[16] !== resetLogs) {
|
|
271
|
-
t8 = /* @__PURE__ */ jsxs(Button, {
|
|
272
|
-
variant: "default",
|
|
273
|
-
onClick: resetLogs,
|
|
274
|
-
className: "h-[34px]",
|
|
275
|
-
children: [t7, " Clear"]
|
|
276
|
-
});
|
|
277
|
-
$[16] = resetLogs;
|
|
278
|
-
$[17] = t8;
|
|
279
|
-
} else t8 = $[17];
|
|
280
|
-
let t9;
|
|
281
|
-
if ($[18] !== t6 || $[19] !== t8) {
|
|
282
|
-
t9 = /* @__PURE__ */ jsxs("div", {
|
|
1140
|
+
}, [logs, search]);
|
|
1141
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
1142
|
+
className: "grid grid-rows-[auto_1fr] h-full",
|
|
1143
|
+
"data-testid": "logs-container",
|
|
1144
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
283
1145
|
className: "flex p-2 border-b gap-2",
|
|
284
1146
|
"data-testid": "logs-search-container",
|
|
285
|
-
children: [
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
1147
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
1148
|
+
className: "flex-1 relative",
|
|
1149
|
+
children: [
|
|
1150
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Input, {
|
|
1151
|
+
variant: "shade",
|
|
1152
|
+
value: search,
|
|
1153
|
+
onChange: (e) => setSearch(e.target.value),
|
|
1154
|
+
className: "px-9! font-medium",
|
|
1155
|
+
placeholder: "Search by Trace ID or Message"
|
|
1156
|
+
}),
|
|
1157
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Search, { className: "absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground/50" }),
|
|
1158
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(X, {
|
|
1159
|
+
className: "cursor-pointer absolute right-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground/50 hover:text-muted-foreground",
|
|
1160
|
+
onClick: () => setSearch("")
|
|
1161
|
+
})
|
|
1162
|
+
]
|
|
1163
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button, {
|
|
1164
|
+
variant: "default",
|
|
1165
|
+
onClick: resetLogs,
|
|
1166
|
+
className: "h-[34px]",
|
|
1167
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Trash, {}), " Clear"]
|
|
1168
|
+
})]
|
|
1169
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Table, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableBody, {
|
|
1170
|
+
className: "font-mono font-medium",
|
|
1171
|
+
children: filteredLogs.map((log, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
296
1172
|
"data-testid": "log-row",
|
|
297
1173
|
className: cn("font-mono font-semibold cursor-pointer border-0", {
|
|
298
|
-
"bg-muted-foreground/10 hover:bg-muted-foreground/20": selectedLogId ===
|
|
299
|
-
"hover:bg-muted-foreground/10": selectedLogId !==
|
|
1174
|
+
"bg-muted-foreground/10 hover:bg-muted-foreground/20": selectedLogId === log.id,
|
|
1175
|
+
"hover:bg-muted-foreground/10": selectedLogId !== log.id
|
|
300
1176
|
}),
|
|
301
|
-
onClick: () => selectLogId(
|
|
1177
|
+
onClick: () => selectLogId(log.id),
|
|
302
1178
|
children: [
|
|
303
|
-
/* @__PURE__ */ jsxs(TableCell, {
|
|
1179
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TableCell, {
|
|
304
1180
|
"data-testid": `time-${index}`,
|
|
305
1181
|
className: "whitespace-nowrap flex items-center gap-2 text-muted-foreground",
|
|
306
|
-
children: [/* @__PURE__ */ jsx(LevelDot, { level:
|
|
1182
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(LevelDot, { level: log.level }), formatTimestamp(log.time)]
|
|
307
1183
|
}),
|
|
308
|
-
/* @__PURE__ */ jsx(TableCell, {
|
|
309
|
-
"data-testid": `trace-${
|
|
1184
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
1185
|
+
"data-testid": `trace-${log.traceId}`,
|
|
310
1186
|
className: "whitespace-nowrap cursor-pointer hover:text-primary text-muted-foreground",
|
|
311
|
-
onClick: () => setSearch(
|
|
312
|
-
children:
|
|
1187
|
+
onClick: () => setSearch(log.traceId),
|
|
1188
|
+
children: log.traceId
|
|
313
1189
|
}),
|
|
314
|
-
/* @__PURE__ */ jsx(TableCell, {
|
|
1190
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
315
1191
|
"data-testid": `step-${index}`,
|
|
316
|
-
"aria-label":
|
|
1192
|
+
"aria-label": log.step,
|
|
317
1193
|
className: "whitespace-nowrap",
|
|
318
|
-
children:
|
|
1194
|
+
children: log.step
|
|
319
1195
|
}),
|
|
320
|
-
/* @__PURE__ */ jsx(TableCell, {
|
|
1196
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
321
1197
|
"data-testid": `msg-${index}`,
|
|
322
|
-
"aria-label":
|
|
1198
|
+
"aria-label": log.msg,
|
|
323
1199
|
className: "whitespace-nowrap max-w-[500px] truncate w-full",
|
|
324
|
-
children:
|
|
1200
|
+
children: log.msg
|
|
325
1201
|
})
|
|
326
1202
|
]
|
|
327
|
-
}, index)
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
$[21] = filteredLogs;
|
|
334
|
-
$[22] = selectLogId;
|
|
335
|
-
$[23] = selectedLogId;
|
|
336
|
-
$[24] = t10;
|
|
337
|
-
} else t10 = $[24];
|
|
338
|
-
let t11;
|
|
339
|
-
if ($[28] !== t10) {
|
|
340
|
-
t11 = /* @__PURE__ */ jsx(Table, { children: /* @__PURE__ */ jsx(TableBody, {
|
|
341
|
-
className: "font-mono font-medium",
|
|
342
|
-
children: t10
|
|
343
|
-
}) });
|
|
344
|
-
$[28] = t10;
|
|
345
|
-
$[29] = t11;
|
|
346
|
-
} else t11 = $[29];
|
|
347
|
-
let t12;
|
|
348
|
-
if ($[30] !== t11 || $[31] !== t9) {
|
|
349
|
-
t12 = /* @__PURE__ */ jsxs("div", {
|
|
350
|
-
className: "grid grid-rows-[auto_1fr] h-full",
|
|
351
|
-
"data-testid": "logs-container",
|
|
352
|
-
children: [t9, t11]
|
|
353
|
-
});
|
|
354
|
-
$[30] = t11;
|
|
355
|
-
$[31] = t9;
|
|
356
|
-
$[32] = t12;
|
|
357
|
-
} else t12 = $[32];
|
|
358
|
-
let t13;
|
|
359
|
-
if ($[33] !== selectLogId) {
|
|
360
|
-
t13 = () => selectLogId(void 0);
|
|
361
|
-
$[33] = selectLogId;
|
|
362
|
-
$[34] = t13;
|
|
363
|
-
} else t13 = $[34];
|
|
364
|
-
let t14;
|
|
365
|
-
if ($[35] !== selectedLog || $[36] !== t13) {
|
|
366
|
-
t14 = /* @__PURE__ */ jsx(LogDetail, {
|
|
367
|
-
log: selectedLog,
|
|
368
|
-
onClose: t13
|
|
369
|
-
});
|
|
370
|
-
$[35] = selectedLog;
|
|
371
|
-
$[36] = t13;
|
|
372
|
-
$[37] = t14;
|
|
373
|
-
} else t14 = $[37];
|
|
374
|
-
let t15;
|
|
375
|
-
if ($[38] !== t12 || $[39] !== t14) {
|
|
376
|
-
t15 = /* @__PURE__ */ jsxs(Fragment, { children: [t12, t14] });
|
|
377
|
-
$[38] = t12;
|
|
378
|
-
$[39] = t14;
|
|
379
|
-
$[40] = t15;
|
|
380
|
-
} else t15 = $[40];
|
|
381
|
-
return t15;
|
|
1203
|
+
}, index))
|
|
1204
|
+
}) })]
|
|
1205
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LogDetail, {
|
|
1206
|
+
log: selectedLog,
|
|
1207
|
+
onClose: () => selectLogId(void 0)
|
|
1208
|
+
})] });
|
|
382
1209
|
};
|
|
383
|
-
function _temp(state) {
|
|
384
|
-
return state.logs;
|
|
385
|
-
}
|
|
386
|
-
function _temp2(state_0) {
|
|
387
|
-
return state_0.resetLogs;
|
|
388
|
-
}
|
|
389
|
-
function _temp3(state_1) {
|
|
390
|
-
return state_1.selectedLogId;
|
|
391
|
-
}
|
|
392
|
-
function _temp4(state_2) {
|
|
393
|
-
return state_2.selectLogId;
|
|
394
|
-
}
|
|
395
1210
|
|
|
396
1211
|
//#endregion
|
|
397
1212
|
//#region src/index.ts
|