@quantajs/react 2.0.0-beta.1 → 2.0.0-beta.10
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.cjs +22 -46
- package/dist/index.d.ts +36 -19
- package/dist/index.js +1243 -625
- package/package.json +64 -59
- package/readme.md +140 -133
- package/LICENSE +0 -21
package/dist/index.js
CHANGED
|
@@ -1,693 +1,1311 @@
|
|
|
1
|
-
/*! MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 QuantaJS
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
/*! MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 QuantaJS
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
22
|
*/
|
|
23
|
-
import
|
|
24
|
-
import { createStore as
|
|
25
|
-
import { computed as
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
23
|
+
import _e, { useRef as ht, useCallback as D, useSyncExternalStore as Et, createContext as xe, useContext as ye, useEffect as Vt } from "react";
|
|
24
|
+
import { logger as P, createStore as ge } from "@quantajs/core";
|
|
25
|
+
import { computed as l2, createStore as o2, logger as n2, reactive as c2, watch as a2 } from "@quantajs/core";
|
|
26
|
+
const Ct = /* @__PURE__ */ Symbol("unset");
|
|
27
|
+
function Tt(e, t) {
|
|
28
|
+
if (!e.subscribe) {
|
|
29
|
+
const a = new Error(
|
|
30
|
+
"QuantaJS store missing `subscribe`—ensure core v0.1.0-beta.2+."
|
|
31
|
+
);
|
|
32
|
+
throw P.error(`useQuantaStore: ${a.message}`), a;
|
|
33
|
+
}
|
|
34
|
+
if (!t) {
|
|
35
|
+
const a = ht(0), p = D(
|
|
36
|
+
(_) => {
|
|
37
|
+
const c = () => {
|
|
38
|
+
a.current++, _();
|
|
39
|
+
};
|
|
40
|
+
return e.subscribe(c);
|
|
41
|
+
},
|
|
42
|
+
[e]
|
|
43
|
+
), h = D(() => a.current, []);
|
|
44
|
+
return Et(p, h, h), e;
|
|
45
|
+
}
|
|
46
|
+
const r = ht(Ct), i = D(() => {
|
|
47
|
+
const a = t(e);
|
|
48
|
+
return r.current = a, a;
|
|
49
|
+
}, [e, t]), o = D(
|
|
50
|
+
(a) => {
|
|
51
|
+
const p = () => {
|
|
52
|
+
try {
|
|
53
|
+
const h = t(e);
|
|
54
|
+
Object.is(r.current, h) || (r.current = h, a());
|
|
55
|
+
} catch (h) {
|
|
56
|
+
P.warn(
|
|
57
|
+
`useQuantaStore: Selector update failed: ${String(h)}`
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
return e.subscribe(p);
|
|
62
|
+
},
|
|
63
|
+
[e, t]
|
|
64
|
+
), l = D(() => (r.current === Ct && i(), r.current), [i]), s = D(
|
|
65
|
+
() => i(),
|
|
66
|
+
[i]
|
|
31
67
|
);
|
|
68
|
+
return Et(o, l, s);
|
|
32
69
|
}
|
|
33
|
-
const
|
|
34
|
-
function
|
|
35
|
-
const
|
|
36
|
-
if (
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
);
|
|
40
|
-
return l;
|
|
41
|
-
}
|
|
42
|
-
function Sr(l) {
|
|
43
|
-
const { store: c } = br();
|
|
44
|
-
return l ? Te(c, l) : Te(c);
|
|
45
|
-
}
|
|
46
|
-
function Cr(l, c, j, R) {
|
|
47
|
-
const y = gr();
|
|
48
|
-
return y.current || (y.current = Er(l, { state: c, getters: j, actions: R })), y.current;
|
|
49
|
-
}
|
|
50
|
-
var U = { exports: {} }, A = {};
|
|
51
|
-
/**
|
|
52
|
-
* @license React
|
|
53
|
-
* react-jsx-runtime.production.min.js
|
|
54
|
-
*
|
|
55
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
56
|
-
*
|
|
57
|
-
* This source code is licensed under the MIT license found in the
|
|
58
|
-
* LICENSE file in the root directory of this source tree.
|
|
59
|
-
*/
|
|
60
|
-
var Se;
|
|
61
|
-
function hr() {
|
|
62
|
-
if (Se) return A;
|
|
63
|
-
Se = 1;
|
|
64
|
-
var l = Pe, c = Symbol.for("react.element"), j = Symbol.for("react.fragment"), R = Object.prototype.hasOwnProperty, y = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, $ = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
65
|
-
function k(m, v, O) {
|
|
66
|
-
var E, h = {}, T = null, W = null;
|
|
67
|
-
O !== void 0 && (T = "" + O), v.key !== void 0 && (T = "" + v.key), v.ref !== void 0 && (W = v.ref);
|
|
68
|
-
for (E in v) R.call(v, E) && !$.hasOwnProperty(E) && (h[E] = v[E]);
|
|
69
|
-
if (m && m.defaultProps) for (E in v = m.defaultProps, v) h[E] === void 0 && (h[E] = v[E]);
|
|
70
|
-
return { $$typeof: c, type: m, key: T, ref: W, props: h, _owner: y.current };
|
|
70
|
+
const Jt = xe(null);
|
|
71
|
+
function ve() {
|
|
72
|
+
const e = ye(Jt);
|
|
73
|
+
if (e === null) {
|
|
74
|
+
const t = "useQuantaContext must be used within a QuantaProvider. Wrap your component tree with <QuantaProvider stores={...}>.";
|
|
75
|
+
throw P.error(`QuantaContext: ${t}`), new Error(t);
|
|
71
76
|
}
|
|
72
|
-
return
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
*
|
|
81
|
-
* This source code is licensed under the MIT license found in the
|
|
82
|
-
* LICENSE file in the root directory of this source tree.
|
|
83
|
-
*/
|
|
84
|
-
var Ce;
|
|
85
|
-
function Rr() {
|
|
86
|
-
return Ce || (Ce = 1, process.env.NODE_ENV !== "production" && function() {
|
|
87
|
-
var l = Pe, c = Symbol.for("react.element"), j = Symbol.for("react.portal"), R = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), $ = Symbol.for("react.profiler"), k = Symbol.for("react.provider"), m = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), O = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), X = Symbol.iterator, xe = "@@iterator";
|
|
88
|
-
function je(e) {
|
|
89
|
-
if (e === null || typeof e != "object")
|
|
90
|
-
return null;
|
|
91
|
-
var r = X && e[X] || e[xe];
|
|
92
|
-
return typeof r == "function" ? r : null;
|
|
93
|
-
}
|
|
94
|
-
var P = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
95
|
-
function d(e) {
|
|
96
|
-
{
|
|
97
|
-
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
98
|
-
t[n - 1] = arguments[n];
|
|
99
|
-
ke("error", e, t);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
function ke(e, r, t) {
|
|
103
|
-
{
|
|
104
|
-
var n = P.ReactDebugCurrentFrame, i = n.getStackAddendum();
|
|
105
|
-
i !== "" && (r += "%s", t = t.concat([i]));
|
|
106
|
-
var u = t.map(function(o) {
|
|
107
|
-
return String(o);
|
|
108
|
-
});
|
|
109
|
-
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
var De = !1, Fe = !1, Ae = !1, Ie = !1, $e = !1, H;
|
|
113
|
-
H = Symbol.for("react.module.reference");
|
|
114
|
-
function We(e) {
|
|
115
|
-
return !!(typeof e == "string" || typeof e == "function" || e === R || e === $ || $e || e === y || e === O || e === E || Ie || e === W || De || Fe || Ae || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === h || e.$$typeof === k || e.$$typeof === m || e.$$typeof === v || // This needs to include all possible module reference object
|
|
116
|
-
// types supported by any Flight configuration anywhere since
|
|
117
|
-
// we don't know which Flight build this will end up being used
|
|
118
|
-
// with.
|
|
119
|
-
e.$$typeof === H || e.getModuleId !== void 0));
|
|
120
|
-
}
|
|
121
|
-
function Ye(e, r, t) {
|
|
122
|
-
var n = e.displayName;
|
|
123
|
-
if (n)
|
|
124
|
-
return n;
|
|
125
|
-
var i = r.displayName || r.name || "";
|
|
126
|
-
return i !== "" ? t + "(" + i + ")" : t;
|
|
77
|
+
return e;
|
|
78
|
+
}
|
|
79
|
+
function Ze(e, t) {
|
|
80
|
+
try {
|
|
81
|
+
const { stores: r } = ve(), i = r[e];
|
|
82
|
+
if (!i) {
|
|
83
|
+
const o = `Store with name "${e}" does not exist in the context.`;
|
|
84
|
+
throw P.error(`useStore: ${o}`), new Error(o);
|
|
127
85
|
}
|
|
128
|
-
|
|
129
|
-
|
|
86
|
+
return t ? Tt(i, t) : Tt(i);
|
|
87
|
+
} catch (r) {
|
|
88
|
+
throw P.error(
|
|
89
|
+
`useStore: Failed to access store "${e}": ${r instanceof Error ? r.message : String(r)}`
|
|
90
|
+
), r;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
function Ke(e, t, r, i) {
|
|
94
|
+
const o = ht(void 0);
|
|
95
|
+
if (!o.current)
|
|
96
|
+
try {
|
|
97
|
+
o.current = ge(e, {
|
|
98
|
+
state: t,
|
|
99
|
+
getters: r,
|
|
100
|
+
actions: i
|
|
101
|
+
});
|
|
102
|
+
} catch (l) {
|
|
103
|
+
throw P.error(
|
|
104
|
+
`useCreateStore: Failed to create store "${e}": ${l instanceof Error ? l.message : String(l)}`
|
|
105
|
+
), l;
|
|
130
106
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
107
|
+
return Vt(() => () => {
|
|
108
|
+
o.current?.$destroy?.();
|
|
109
|
+
}, []), o.current;
|
|
110
|
+
}
|
|
111
|
+
var V = { exports: {} }, U = {};
|
|
112
|
+
var At;
|
|
113
|
+
function be() {
|
|
114
|
+
if (At) return U;
|
|
115
|
+
At = 1;
|
|
116
|
+
var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
117
|
+
function r(i, o, l) {
|
|
118
|
+
var s = null;
|
|
119
|
+
if (l !== void 0 && (s = "" + l), o.key !== void 0 && (s = "" + o.key), "key" in o) {
|
|
120
|
+
l = {};
|
|
121
|
+
for (var a in o)
|
|
122
|
+
a !== "key" && (l[a] = o[a]);
|
|
123
|
+
} else l = o;
|
|
124
|
+
return o = l.ref, {
|
|
125
|
+
$$typeof: e,
|
|
126
|
+
type: i,
|
|
127
|
+
key: s,
|
|
128
|
+
ref: o !== void 0 ? o : null,
|
|
129
|
+
props: l
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
return U.Fragment = t, U.jsx = r, U.jsxs = r, U;
|
|
133
|
+
}
|
|
134
|
+
var L = {};
|
|
135
|
+
var Rt;
|
|
136
|
+
function we() {
|
|
137
|
+
return Rt || (Rt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
138
|
+
function e(d) {
|
|
139
|
+
if (d == null) return null;
|
|
140
|
+
if (typeof d == "function")
|
|
141
|
+
return d.$$typeof === fe ? null : d.displayName || d.name || null;
|
|
142
|
+
if (typeof d == "string") return d;
|
|
143
|
+
switch (d) {
|
|
144
|
+
case m:
|
|
140
145
|
return "Fragment";
|
|
141
|
-
case j:
|
|
142
|
-
return "Portal";
|
|
143
|
-
case $:
|
|
144
|
-
return "Profiler";
|
|
145
146
|
case y:
|
|
147
|
+
return "Profiler";
|
|
148
|
+
case g:
|
|
146
149
|
return "StrictMode";
|
|
147
|
-
case
|
|
150
|
+
case Y:
|
|
148
151
|
return "Suspense";
|
|
149
|
-
case
|
|
152
|
+
case F:
|
|
150
153
|
return "SuspenseList";
|
|
154
|
+
case z:
|
|
155
|
+
return "Activity";
|
|
151
156
|
}
|
|
152
|
-
if (typeof
|
|
153
|
-
switch (
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
return
|
|
160
|
-
case
|
|
161
|
-
return
|
|
162
|
-
case
|
|
163
|
-
var
|
|
164
|
-
return
|
|
165
|
-
case
|
|
166
|
-
|
|
157
|
+
if (typeof d == "object")
|
|
158
|
+
switch (typeof d.tag == "number" && console.error(
|
|
159
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
160
|
+
), d.$$typeof) {
|
|
161
|
+
case C:
|
|
162
|
+
return "Portal";
|
|
163
|
+
case R:
|
|
164
|
+
return d.displayName || "Context";
|
|
165
|
+
case A:
|
|
166
|
+
return (d._context.displayName || "Context") + ".Consumer";
|
|
167
|
+
case $:
|
|
168
|
+
var x = d.render;
|
|
169
|
+
return d = d.displayName, d || (d = x.displayName || x.name || "", d = d !== "" ? "ForwardRef(" + d + ")" : "ForwardRef"), d;
|
|
170
|
+
case H:
|
|
171
|
+
return x = d.displayName || null, x !== null ? x : e(d.type) || "Memo";
|
|
172
|
+
case E:
|
|
173
|
+
x = d._payload, d = d._init;
|
|
167
174
|
try {
|
|
168
|
-
return
|
|
175
|
+
return e(d(x));
|
|
169
176
|
} catch {
|
|
170
|
-
return null;
|
|
171
177
|
}
|
|
172
|
-
}
|
|
173
178
|
}
|
|
174
179
|
return null;
|
|
175
180
|
}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
}
|
|
179
|
-
ue.__reactDisabledLog = !0;
|
|
180
|
-
function Le() {
|
|
181
|
-
{
|
|
182
|
-
if (D === 0) {
|
|
183
|
-
ee = console.log, re = console.info, te = console.warn, ne = console.error, ae = console.group, oe = console.groupCollapsed, ie = console.groupEnd;
|
|
184
|
-
var e = {
|
|
185
|
-
configurable: !0,
|
|
186
|
-
enumerable: !0,
|
|
187
|
-
value: ue,
|
|
188
|
-
writable: !0
|
|
189
|
-
};
|
|
190
|
-
Object.defineProperties(console, {
|
|
191
|
-
info: e,
|
|
192
|
-
log: e,
|
|
193
|
-
warn: e,
|
|
194
|
-
error: e,
|
|
195
|
-
group: e,
|
|
196
|
-
groupCollapsed: e,
|
|
197
|
-
groupEnd: e
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
D++;
|
|
201
|
-
}
|
|
181
|
+
function t(d) {
|
|
182
|
+
return "" + d;
|
|
202
183
|
}
|
|
203
|
-
function
|
|
204
|
-
{
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
writable: !0
|
|
210
|
-
};
|
|
211
|
-
Object.defineProperties(console, {
|
|
212
|
-
log: S({}, e, {
|
|
213
|
-
value: ee
|
|
214
|
-
}),
|
|
215
|
-
info: S({}, e, {
|
|
216
|
-
value: re
|
|
217
|
-
}),
|
|
218
|
-
warn: S({}, e, {
|
|
219
|
-
value: te
|
|
220
|
-
}),
|
|
221
|
-
error: S({}, e, {
|
|
222
|
-
value: ne
|
|
223
|
-
}),
|
|
224
|
-
group: S({}, e, {
|
|
225
|
-
value: ae
|
|
226
|
-
}),
|
|
227
|
-
groupCollapsed: S({}, e, {
|
|
228
|
-
value: oe
|
|
229
|
-
}),
|
|
230
|
-
groupEnd: S({}, e, {
|
|
231
|
-
value: ie
|
|
232
|
-
})
|
|
233
|
-
});
|
|
234
|
-
}
|
|
235
|
-
D < 0 && d("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
184
|
+
function r(d) {
|
|
185
|
+
try {
|
|
186
|
+
t(d);
|
|
187
|
+
var x = !1;
|
|
188
|
+
} catch {
|
|
189
|
+
x = !0;
|
|
236
190
|
}
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
var n = i.stack.trim().match(/\n( *(at )?)/);
|
|
246
|
-
J = n && n[1] || "";
|
|
247
|
-
}
|
|
248
|
-
return `
|
|
249
|
-
` + J + e;
|
|
191
|
+
if (x) {
|
|
192
|
+
x = console;
|
|
193
|
+
var w = x.error, S = typeof Symbol == "function" && Symbol.toStringTag && d[Symbol.toStringTag] || d.constructor.name || "Object";
|
|
194
|
+
return w.call(
|
|
195
|
+
x,
|
|
196
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
197
|
+
S
|
|
198
|
+
), t(d);
|
|
250
199
|
}
|
|
251
200
|
}
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
}
|
|
257
|
-
function se(e, r) {
|
|
258
|
-
if (!e || q)
|
|
259
|
-
return "";
|
|
260
|
-
{
|
|
261
|
-
var t = L.get(e);
|
|
262
|
-
if (t !== void 0)
|
|
263
|
-
return t;
|
|
264
|
-
}
|
|
265
|
-
var n;
|
|
266
|
-
q = !0;
|
|
267
|
-
var i = Error.prepareStackTrace;
|
|
268
|
-
Error.prepareStackTrace = void 0;
|
|
269
|
-
var u;
|
|
270
|
-
u = N.current, N.current = null, Le();
|
|
201
|
+
function i(d) {
|
|
202
|
+
if (d === m) return "<>";
|
|
203
|
+
if (typeof d == "object" && d !== null && d.$$typeof === E)
|
|
204
|
+
return "<...>";
|
|
271
205
|
try {
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
if (Object.defineProperty(o.prototype, "props", {
|
|
277
|
-
set: function() {
|
|
278
|
-
throw Error();
|
|
279
|
-
}
|
|
280
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
281
|
-
try {
|
|
282
|
-
Reflect.construct(o, []);
|
|
283
|
-
} catch (g) {
|
|
284
|
-
n = g;
|
|
285
|
-
}
|
|
286
|
-
Reflect.construct(e, [], o);
|
|
287
|
-
} else {
|
|
288
|
-
try {
|
|
289
|
-
o.call();
|
|
290
|
-
} catch (g) {
|
|
291
|
-
n = g;
|
|
292
|
-
}
|
|
293
|
-
e.call(o.prototype);
|
|
294
|
-
}
|
|
295
|
-
} else {
|
|
296
|
-
try {
|
|
297
|
-
throw Error();
|
|
298
|
-
} catch (g) {
|
|
299
|
-
n = g;
|
|
300
|
-
}
|
|
301
|
-
e();
|
|
302
|
-
}
|
|
303
|
-
} catch (g) {
|
|
304
|
-
if (g && n && typeof g.stack == "string") {
|
|
305
|
-
for (var a = g.stack.split(`
|
|
306
|
-
`), p = n.stack.split(`
|
|
307
|
-
`), s = a.length - 1, f = p.length - 1; s >= 1 && f >= 0 && a[s] !== p[f]; )
|
|
308
|
-
f--;
|
|
309
|
-
for (; s >= 1 && f >= 0; s--, f--)
|
|
310
|
-
if (a[s] !== p[f]) {
|
|
311
|
-
if (s !== 1 || f !== 1)
|
|
312
|
-
do
|
|
313
|
-
if (s--, f--, f < 0 || a[s] !== p[f]) {
|
|
314
|
-
var b = `
|
|
315
|
-
` + a[s].replace(" at new ", " at ");
|
|
316
|
-
return e.displayName && b.includes("<anonymous>") && (b = b.replace("<anonymous>", e.displayName)), typeof e == "function" && L.set(e, b), b;
|
|
317
|
-
}
|
|
318
|
-
while (s >= 1 && f >= 0);
|
|
319
|
-
break;
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
} finally {
|
|
323
|
-
q = !1, N.current = u, Ve(), Error.prepareStackTrace = i;
|
|
206
|
+
var x = e(d);
|
|
207
|
+
return x ? "<" + x + ">" : "<...>";
|
|
208
|
+
} catch {
|
|
209
|
+
return "<...>";
|
|
324
210
|
}
|
|
325
|
-
var x = e ? e.displayName || e.name : "", C = x ? Y(x) : "";
|
|
326
|
-
return typeof e == "function" && L.set(e, C), C;
|
|
327
211
|
}
|
|
328
|
-
function
|
|
329
|
-
|
|
212
|
+
function o() {
|
|
213
|
+
var d = nt.A;
|
|
214
|
+
return d === null ? null : d.getOwner();
|
|
330
215
|
}
|
|
331
|
-
function
|
|
332
|
-
|
|
333
|
-
return !!(r && r.isReactComponent);
|
|
216
|
+
function l() {
|
|
217
|
+
return Error("react-stack-top-frame");
|
|
334
218
|
}
|
|
335
|
-
function
|
|
336
|
-
if (
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
return se(e, Ne(e));
|
|
340
|
-
if (typeof e == "string")
|
|
341
|
-
return Y(e);
|
|
342
|
-
switch (e) {
|
|
343
|
-
case O:
|
|
344
|
-
return Y("Suspense");
|
|
345
|
-
case E:
|
|
346
|
-
return Y("SuspenseList");
|
|
219
|
+
function s(d) {
|
|
220
|
+
if (wt.call(d, "key")) {
|
|
221
|
+
var x = Object.getOwnPropertyDescriptor(d, "key").get;
|
|
222
|
+
if (x && x.isReactWarning) return !1;
|
|
347
223
|
}
|
|
348
|
-
|
|
349
|
-
switch (e.$$typeof) {
|
|
350
|
-
case v:
|
|
351
|
-
return Ue(e.render);
|
|
352
|
-
case h:
|
|
353
|
-
return V(e.type, r, t);
|
|
354
|
-
case T: {
|
|
355
|
-
var n = e, i = n._payload, u = n._init;
|
|
356
|
-
try {
|
|
357
|
-
return V(u(i), r, t);
|
|
358
|
-
} catch {
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
return "";
|
|
224
|
+
return d.key !== void 0;
|
|
363
225
|
}
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
le.setExtraStackFrame(null);
|
|
371
|
-
}
|
|
372
|
-
function Je(e, r, t, n, i) {
|
|
373
|
-
{
|
|
374
|
-
var u = Function.call.bind(F);
|
|
375
|
-
for (var o in e)
|
|
376
|
-
if (u(e, o)) {
|
|
377
|
-
var a = void 0;
|
|
378
|
-
try {
|
|
379
|
-
if (typeof e[o] != "function") {
|
|
380
|
-
var p = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
381
|
-
throw p.name = "Invariant Violation", p;
|
|
382
|
-
}
|
|
383
|
-
a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
384
|
-
} catch (s) {
|
|
385
|
-
a = s;
|
|
386
|
-
}
|
|
387
|
-
a && !(a instanceof Error) && (M(i), d("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, o, typeof a), M(null)), a instanceof Error && !(a.message in fe) && (fe[a.message] = !0, M(i), d("Failed %s type: %s", t, a.message), M(null));
|
|
388
|
-
}
|
|
226
|
+
function a(d, x) {
|
|
227
|
+
function w() {
|
|
228
|
+
mt || (mt = !0, console.error(
|
|
229
|
+
"%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)",
|
|
230
|
+
x
|
|
231
|
+
));
|
|
389
232
|
}
|
|
233
|
+
w.isReactWarning = !0, Object.defineProperty(d, "key", {
|
|
234
|
+
get: w,
|
|
235
|
+
configurable: !0
|
|
236
|
+
});
|
|
390
237
|
}
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
return
|
|
238
|
+
function p() {
|
|
239
|
+
var d = e(this.type);
|
|
240
|
+
return qt[d] || (qt[d] = !0, console.error(
|
|
241
|
+
"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."
|
|
242
|
+
)), d = this.props.ref, d !== void 0 ? d : null;
|
|
394
243
|
}
|
|
395
|
-
function
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
244
|
+
function h(d, x, w, S, Q, at) {
|
|
245
|
+
var j = w.ref;
|
|
246
|
+
return d = {
|
|
247
|
+
$$typeof: b,
|
|
248
|
+
type: d,
|
|
249
|
+
key: x,
|
|
250
|
+
props: w,
|
|
251
|
+
_owner: S
|
|
252
|
+
}, (j !== void 0 ? j : null) !== null ? Object.defineProperty(d, "ref", {
|
|
253
|
+
enumerable: !1,
|
|
254
|
+
get: p
|
|
255
|
+
}) : Object.defineProperty(d, "ref", { enumerable: !1, value: null }), d._store = {}, Object.defineProperty(d._store, "validated", {
|
|
256
|
+
configurable: !1,
|
|
257
|
+
enumerable: !1,
|
|
258
|
+
writable: !0,
|
|
259
|
+
value: 0
|
|
260
|
+
}), Object.defineProperty(d, "_debugInfo", {
|
|
261
|
+
configurable: !1,
|
|
262
|
+
enumerable: !1,
|
|
263
|
+
writable: !0,
|
|
264
|
+
value: null
|
|
265
|
+
}), Object.defineProperty(d, "_debugStack", {
|
|
266
|
+
configurable: !1,
|
|
267
|
+
enumerable: !1,
|
|
268
|
+
writable: !0,
|
|
269
|
+
value: Q
|
|
270
|
+
}), Object.defineProperty(d, "_debugTask", {
|
|
271
|
+
configurable: !1,
|
|
272
|
+
enumerable: !1,
|
|
273
|
+
writable: !0,
|
|
274
|
+
value: at
|
|
275
|
+
}), Object.freeze && (Object.freeze(d.props), Object.freeze(d)), d;
|
|
400
276
|
}
|
|
401
|
-
function
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
277
|
+
function _(d, x, w, S, Q, at) {
|
|
278
|
+
var j = x.children;
|
|
279
|
+
if (j !== void 0)
|
|
280
|
+
if (S)
|
|
281
|
+
if (pe(j)) {
|
|
282
|
+
for (S = 0; S < j.length; S++)
|
|
283
|
+
c(j[S]);
|
|
284
|
+
Object.freeze && Object.freeze(j);
|
|
285
|
+
} else
|
|
286
|
+
console.error(
|
|
287
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
288
|
+
);
|
|
289
|
+
else c(j);
|
|
290
|
+
if (wt.call(x, "key")) {
|
|
291
|
+
j = e(d);
|
|
292
|
+
var I = Object.keys(x).filter(function(ue) {
|
|
293
|
+
return ue !== "key";
|
|
294
|
+
});
|
|
295
|
+
S = 0 < I.length ? "{key: someKey, " + I.join(": ..., ") + ": ...}" : "{key: someKey}", jt[j + S] || (I = 0 < I.length ? "{" + I.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
296
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
297
|
+
let props = %s;
|
|
298
|
+
<%s {...props} />
|
|
299
|
+
React keys must be passed directly to JSX without using spread:
|
|
300
|
+
let props = %s;
|
|
301
|
+
<%s key={someKey} {...props} />`,
|
|
302
|
+
S,
|
|
303
|
+
j,
|
|
304
|
+
I,
|
|
305
|
+
j
|
|
306
|
+
), jt[j + S] = !0);
|
|
406
307
|
}
|
|
308
|
+
if (j = null, w !== void 0 && (r(w), j = "" + w), s(x) && (r(x.key), j = "" + x.key), "key" in x) {
|
|
309
|
+
w = {};
|
|
310
|
+
for (var st in x)
|
|
311
|
+
st !== "key" && (w[st] = x[st]);
|
|
312
|
+
} else w = x;
|
|
313
|
+
return j && a(
|
|
314
|
+
w,
|
|
315
|
+
typeof d == "function" ? d.displayName || d.name || "Unknown" : d
|
|
316
|
+
), h(
|
|
317
|
+
d,
|
|
318
|
+
j,
|
|
319
|
+
w,
|
|
320
|
+
o(),
|
|
321
|
+
Q,
|
|
322
|
+
at
|
|
323
|
+
);
|
|
407
324
|
}
|
|
408
|
-
function
|
|
409
|
-
|
|
325
|
+
function c(d) {
|
|
326
|
+
u(d) ? d._store && (d._store.validated = 1) : typeof d == "object" && d !== null && d.$$typeof === E && (d._payload.status === "fulfilled" ? u(d._payload.value) && d._payload.value._store && (d._payload.value._store.validated = 1) : d._store && (d._store.validated = 1));
|
|
410
327
|
}
|
|
411
|
-
function
|
|
412
|
-
|
|
413
|
-
return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Be(e)), ce(e);
|
|
328
|
+
function u(d) {
|
|
329
|
+
return typeof d == "object" && d !== null && d.$$typeof === b;
|
|
414
330
|
}
|
|
415
|
-
var
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
function Qe(e) {
|
|
422
|
-
if (F.call(e, "ref")) {
|
|
423
|
-
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
424
|
-
if (r && r.isReactWarning)
|
|
425
|
-
return !1;
|
|
331
|
+
var f = _e, b = /* @__PURE__ */ Symbol.for("react.transitional.element"), C = /* @__PURE__ */ Symbol.for("react.portal"), m = /* @__PURE__ */ Symbol.for("react.fragment"), g = /* @__PURE__ */ Symbol.for("react.strict_mode"), y = /* @__PURE__ */ Symbol.for("react.profiler"), A = /* @__PURE__ */ Symbol.for("react.consumer"), R = /* @__PURE__ */ Symbol.for("react.context"), $ = /* @__PURE__ */ Symbol.for("react.forward_ref"), Y = /* @__PURE__ */ Symbol.for("react.suspense"), F = /* @__PURE__ */ Symbol.for("react.suspense_list"), H = /* @__PURE__ */ Symbol.for("react.memo"), E = /* @__PURE__ */ Symbol.for("react.lazy"), z = /* @__PURE__ */ Symbol.for("react.activity"), fe = /* @__PURE__ */ Symbol.for("react.client.reference"), nt = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, wt = Object.prototype.hasOwnProperty, pe = Array.isArray, ct = console.createTask ? console.createTask : function() {
|
|
332
|
+
return null;
|
|
333
|
+
};
|
|
334
|
+
f = {
|
|
335
|
+
react_stack_bottom_frame: function(d) {
|
|
336
|
+
return d();
|
|
426
337
|
}
|
|
427
|
-
|
|
338
|
+
};
|
|
339
|
+
var mt, qt = {}, kt = f.react_stack_bottom_frame.bind(
|
|
340
|
+
f,
|
|
341
|
+
l
|
|
342
|
+
)(), St = ct(i(l)), jt = {};
|
|
343
|
+
L.Fragment = m, L.jsx = function(d, x, w) {
|
|
344
|
+
var S = 1e4 > nt.recentlyCreatedOwnerStacks++;
|
|
345
|
+
return _(
|
|
346
|
+
d,
|
|
347
|
+
x,
|
|
348
|
+
w,
|
|
349
|
+
!1,
|
|
350
|
+
S ? Error("react-stack-top-frame") : kt,
|
|
351
|
+
S ? ct(i(d)) : St
|
|
352
|
+
);
|
|
353
|
+
}, L.jsxs = function(d, x, w) {
|
|
354
|
+
var S = 1e4 > nt.recentlyCreatedOwnerStacks++;
|
|
355
|
+
return _(
|
|
356
|
+
d,
|
|
357
|
+
x,
|
|
358
|
+
w,
|
|
359
|
+
!0,
|
|
360
|
+
S ? Error("react-stack-top-frame") : kt,
|
|
361
|
+
S ? ct(i(d)) : St
|
|
362
|
+
);
|
|
363
|
+
};
|
|
364
|
+
})()), L;
|
|
365
|
+
}
|
|
366
|
+
var Nt;
|
|
367
|
+
function me() {
|
|
368
|
+
return Nt || (Nt = 1, process.env.NODE_ENV === "production" ? V.exports = be() : V.exports = we()), V.exports;
|
|
369
|
+
}
|
|
370
|
+
var qe = me();
|
|
371
|
+
function t2({ stores: e, children: t }) {
|
|
372
|
+
try {
|
|
373
|
+
if (!e || typeof e != "object") {
|
|
374
|
+
const r = "QuantaProvider: Invalid stores prop provided";
|
|
375
|
+
throw P.error(r), new Error(r);
|
|
428
376
|
}
|
|
429
|
-
|
|
430
|
-
if (
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
return !1;
|
|
377
|
+
for (const [r, i] of Object.entries(e))
|
|
378
|
+
if (!i || typeof i != "object") {
|
|
379
|
+
const o = `QuantaProvider: Invalid store "${r}" provided`;
|
|
380
|
+
throw P.error(o), new Error(o);
|
|
434
381
|
}
|
|
435
|
-
|
|
382
|
+
return /* @__PURE__ */ qe.jsx(Jt.Provider, { value: { stores: e }, children: t });
|
|
383
|
+
} catch (r) {
|
|
384
|
+
throw P.error(
|
|
385
|
+
`QuantaProvider: Failed to render provider: ${r instanceof Error ? r.message : String(r)}`
|
|
386
|
+
), r;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
var it, v, Gt, M, Pt, Xt, Zt, Kt, xt, ft, pt, K = {}, tt = [], ke = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, lt = Array.isArray;
|
|
390
|
+
function N(e, t) {
|
|
391
|
+
for (var r in t) e[r] = t[r];
|
|
392
|
+
return e;
|
|
393
|
+
}
|
|
394
|
+
function yt(e) {
|
|
395
|
+
e && e.parentNode && e.parentNode.removeChild(e);
|
|
396
|
+
}
|
|
397
|
+
function te(e, t, r) {
|
|
398
|
+
var i, o, l, s = {};
|
|
399
|
+
for (l in t) l == "key" ? i = t[l] : l == "ref" ? o = t[l] : s[l] = t[l];
|
|
400
|
+
if (arguments.length > 2 && (s.children = arguments.length > 3 ? it.call(arguments, 2) : r), typeof e == "function" && e.defaultProps != null) for (l in e.defaultProps) s[l] === void 0 && (s[l] = e.defaultProps[l]);
|
|
401
|
+
return G(e, s, i, o, null);
|
|
402
|
+
}
|
|
403
|
+
function G(e, t, r, i, o) {
|
|
404
|
+
var l = { type: e, props: t, key: r, ref: i, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: o ?? ++Gt, __i: -1, __u: 0 };
|
|
405
|
+
return o == null && v.vnode != null && v.vnode(l), l;
|
|
406
|
+
}
|
|
407
|
+
function ot(e) {
|
|
408
|
+
return e.children;
|
|
409
|
+
}
|
|
410
|
+
function X(e, t) {
|
|
411
|
+
this.props = e, this.context = t;
|
|
412
|
+
}
|
|
413
|
+
function B(e, t) {
|
|
414
|
+
if (t == null) return e.__ ? B(e.__, e.__i + 1) : null;
|
|
415
|
+
for (var r; t < e.__k.length; t++) if ((r = e.__k[t]) != null && r.__e != null) return r.__e;
|
|
416
|
+
return typeof e.type == "function" ? B(e) : null;
|
|
417
|
+
}
|
|
418
|
+
function Se(e) {
|
|
419
|
+
if (e.__P && e.__d) {
|
|
420
|
+
var t = e.__v, r = t.__e, i = [], o = [], l = N({}, t);
|
|
421
|
+
l.__v = t.__v + 1, v.vnode && v.vnode(l), gt(e.__P, l, t, e.__n, e.__P.namespaceURI, 32 & t.__u ? [r] : null, i, r ?? B(t), !!(32 & t.__u), o), l.__v = t.__v, l.__.__k[l.__i] = l, le(i, l, o), t.__e = t.__ = null, l.__e != r && ee(l);
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
function ee(e) {
|
|
425
|
+
if ((e = e.__) != null && e.__c != null) return e.__e = e.__c.base = null, e.__k.some(function(t) {
|
|
426
|
+
if (t != null && t.__e != null) return e.__e = e.__c.base = t.__e;
|
|
427
|
+
}), ee(e);
|
|
428
|
+
}
|
|
429
|
+
function Ot(e) {
|
|
430
|
+
(!e.__d && (e.__d = !0) && M.push(e) && !et.__r++ || Pt != v.debounceRendering) && ((Pt = v.debounceRendering) || Xt)(et);
|
|
431
|
+
}
|
|
432
|
+
function et() {
|
|
433
|
+
for (var e, t = 1; M.length; ) M.length > t && M.sort(Zt), e = M.shift(), t = M.length, Se(e);
|
|
434
|
+
et.__r = 0;
|
|
435
|
+
}
|
|
436
|
+
function re(e, t, r, i, o, l, s, a, p, h, _) {
|
|
437
|
+
var c, u, f, b, C, m, g, y = i && i.__k || tt, A = t.length;
|
|
438
|
+
for (p = je(r, t, y, p, A), c = 0; c < A; c++) (f = r.__k[c]) != null && (u = f.__i != -1 && y[f.__i] || K, f.__i = c, m = gt(e, f, u, o, l, s, a, p, h, _), b = f.__e, f.ref && u.ref != f.ref && (u.ref && vt(u.ref, null, f), _.push(f.ref, f.__c || b, f)), C == null && b != null && (C = b), (g = !!(4 & f.__u)) || u.__k === f.__k ? p = ie(f, p, e, g) : typeof f.type == "function" && m !== void 0 ? p = m : b && (p = b.nextSibling), f.__u &= -7);
|
|
439
|
+
return r.__e = C, p;
|
|
440
|
+
}
|
|
441
|
+
function je(e, t, r, i, o) {
|
|
442
|
+
var l, s, a, p, h, _ = r.length, c = _, u = 0;
|
|
443
|
+
for (e.__k = new Array(o), l = 0; l < o; l++) (s = t[l]) != null && typeof s != "boolean" && typeof s != "function" ? (typeof s == "string" || typeof s == "number" || typeof s == "bigint" || s.constructor == String ? s = e.__k[l] = G(null, s, null, null, null) : lt(s) ? s = e.__k[l] = G(ot, { children: s }, null, null, null) : s.constructor === void 0 && s.__b > 0 ? s = e.__k[l] = G(s.type, s.props, s.key, s.ref ? s.ref : null, s.__v) : e.__k[l] = s, p = l + u, s.__ = e, s.__b = e.__b + 1, a = null, (h = s.__i = Ee(s, r, p, c)) != -1 && (c--, (a = r[h]) && (a.__u |= 2)), a == null || a.__v == null ? (h == -1 && (o > _ ? u-- : o < _ && u++), typeof s.type != "function" && (s.__u |= 4)) : h != p && (h == p - 1 ? u-- : h == p + 1 ? u++ : (h > p ? u-- : u++, s.__u |= 4))) : e.__k[l] = null;
|
|
444
|
+
if (c) for (l = 0; l < _; l++) (a = r[l]) != null && (2 & a.__u) == 0 && (a.__e == i && (i = B(a)), ne(a, a));
|
|
445
|
+
return i;
|
|
446
|
+
}
|
|
447
|
+
function ie(e, t, r, i) {
|
|
448
|
+
var o, l;
|
|
449
|
+
if (typeof e.type == "function") {
|
|
450
|
+
for (o = e.__k, l = 0; o && l < o.length; l++) o[l] && (o[l].__ = e, t = ie(o[l], t, r, i));
|
|
451
|
+
return t;
|
|
452
|
+
}
|
|
453
|
+
e.__e != t && (i && (t && e.type && !t.parentNode && (t = B(e)), r.insertBefore(e.__e, t || null)), t = e.__e);
|
|
454
|
+
do
|
|
455
|
+
t = t && t.nextSibling;
|
|
456
|
+
while (t != null && t.nodeType == 8);
|
|
457
|
+
return t;
|
|
458
|
+
}
|
|
459
|
+
function Ee(e, t, r, i) {
|
|
460
|
+
var o, l, s, a = e.key, p = e.type, h = t[r], _ = h != null && (2 & h.__u) == 0;
|
|
461
|
+
if (h === null && a == null || _ && a == h.key && p == h.type) return r;
|
|
462
|
+
if (i > (_ ? 1 : 0)) {
|
|
463
|
+
for (o = r - 1, l = r + 1; o >= 0 || l < t.length; ) if ((h = t[s = o >= 0 ? o-- : l++]) != null && (2 & h.__u) == 0 && a == h.key && p == h.type) return s;
|
|
464
|
+
}
|
|
465
|
+
return -1;
|
|
466
|
+
}
|
|
467
|
+
function zt(e, t, r) {
|
|
468
|
+
t[0] == "-" ? e.setProperty(t, r ?? "") : e[t] = r == null ? "" : typeof r != "number" || ke.test(t) ? r : r + "px";
|
|
469
|
+
}
|
|
470
|
+
function J(e, t, r, i, o) {
|
|
471
|
+
var l, s;
|
|
472
|
+
t: if (t == "style") if (typeof r == "string") e.style.cssText = r;
|
|
473
|
+
else {
|
|
474
|
+
if (typeof i == "string" && (e.style.cssText = i = ""), i) for (t in i) r && t in r || zt(e.style, t, "");
|
|
475
|
+
if (r) for (t in r) i && r[t] == i[t] || zt(e.style, t, r[t]);
|
|
476
|
+
}
|
|
477
|
+
else if (t[0] == "o" && t[1] == "n") l = t != (t = t.replace(Kt, "$1")), s = t.toLowerCase(), t = s in e || t == "onFocusOut" || t == "onFocusIn" ? s.slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + l] = r, r ? i ? r.u = i.u : (r.u = xt, e.addEventListener(t, l ? pt : ft, l)) : e.removeEventListener(t, l ? pt : ft, l);
|
|
478
|
+
else {
|
|
479
|
+
if (o == "http://www.w3.org/2000/svg") t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
480
|
+
else if (t != "width" && t != "height" && t != "href" && t != "list" && t != "form" && t != "tabIndex" && t != "download" && t != "rowSpan" && t != "colSpan" && t != "role" && t != "popover" && t in e) try {
|
|
481
|
+
e[t] = r ?? "";
|
|
482
|
+
break t;
|
|
483
|
+
} catch {
|
|
436
484
|
}
|
|
437
|
-
function
|
|
438
|
-
|
|
485
|
+
typeof r == "function" || (r == null || r === !1 && t[4] != "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && r == 1 ? "" : r));
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
function $t(e) {
|
|
489
|
+
return function(t) {
|
|
490
|
+
if (this.l) {
|
|
491
|
+
var r = this.l[t.type + e];
|
|
492
|
+
if (t.t == null) t.t = xt++;
|
|
493
|
+
else if (t.t < r.u) return;
|
|
494
|
+
return r(v.event ? v.event(t) : t);
|
|
439
495
|
}
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
496
|
+
};
|
|
497
|
+
}
|
|
498
|
+
function gt(e, t, r, i, o, l, s, a, p, h) {
|
|
499
|
+
var _, c, u, f, b, C, m, g, y, A, R, $, Y, F, H, E = t.type;
|
|
500
|
+
if (t.constructor !== void 0) return null;
|
|
501
|
+
128 & r.__u && (p = !!(32 & r.__u), l = [a = t.__e = r.__e]), (_ = v.__b) && _(t);
|
|
502
|
+
t: if (typeof E == "function") try {
|
|
503
|
+
if (g = t.props, y = "prototype" in E && E.prototype.render, A = (_ = E.contextType) && i[_.__c], R = _ ? A ? A.props.value : _.__ : i, r.__c ? m = (c = t.__c = r.__c).__ = c.__E : (y ? t.__c = c = new E(g, R) : (t.__c = c = new X(g, R), c.constructor = E, c.render = Te), A && A.sub(c), c.state || (c.state = {}), c.__n = i, u = c.__d = !0, c.__h = [], c._sb = []), y && c.__s == null && (c.__s = c.state), y && E.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = N({}, c.__s)), N(c.__s, E.getDerivedStateFromProps(g, c.__s))), f = c.props, b = c.state, c.__v = t, u) y && E.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), y && c.componentDidMount != null && c.__h.push(c.componentDidMount);
|
|
504
|
+
else {
|
|
505
|
+
if (y && E.getDerivedStateFromProps == null && g !== f && c.componentWillReceiveProps != null && c.componentWillReceiveProps(g, R), t.__v == r.__v || !c.__e && c.shouldComponentUpdate != null && c.shouldComponentUpdate(g, c.__s, R) === !1) {
|
|
506
|
+
t.__v != r.__v && (c.props = g, c.state = c.__s, c.__d = !1), t.__e = r.__e, t.__k = r.__k, t.__k.some(function(z) {
|
|
507
|
+
z && (z.__ = t);
|
|
508
|
+
}), tt.push.apply(c.__h, c._sb), c._sb = [], c.__h.length && s.push(c);
|
|
509
|
+
break t;
|
|
449
510
|
}
|
|
511
|
+
c.componentWillUpdate != null && c.componentWillUpdate(g, c.__s, R), y && c.componentDidUpdate != null && c.__h.push(function() {
|
|
512
|
+
c.componentDidUpdate(f, b, C);
|
|
513
|
+
});
|
|
450
514
|
}
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
515
|
+
if (c.context = R, c.props = g, c.__P = e, c.__e = !1, $ = v.__r, Y = 0, y) c.state = c.__s, c.__d = !1, $ && $(t), _ = c.render(c.props, c.state, c.context), tt.push.apply(c.__h, c._sb), c._sb = [];
|
|
516
|
+
else do
|
|
517
|
+
c.__d = !1, $ && $(t), _ = c.render(c.props, c.state, c.context), c.state = c.__s;
|
|
518
|
+
while (c.__d && ++Y < 25);
|
|
519
|
+
c.state = c.__s, c.getChildContext != null && (i = N(N({}, i), c.getChildContext())), y && !u && c.getSnapshotBeforeUpdate != null && (C = c.getSnapshotBeforeUpdate(f, b)), F = _ != null && _.type === ot && _.key == null ? oe(_.props.children) : _, a = re(e, lt(F) ? F : [F], t, r, i, o, l, s, a, p, h), c.base = t.__e, t.__u &= -161, c.__h.length && s.push(c), m && (c.__E = c.__ = null);
|
|
520
|
+
} catch (z) {
|
|
521
|
+
if (t.__v = null, p || l != null) if (z.then) {
|
|
522
|
+
for (t.__u |= p ? 160 : 128; a && a.nodeType == 8 && a.nextSibling; ) a = a.nextSibling;
|
|
523
|
+
l[l.indexOf(a)] = null, t.__e = a;
|
|
524
|
+
} else {
|
|
525
|
+
for (H = l.length; H--; ) yt(l[H]);
|
|
526
|
+
ut(t);
|
|
461
527
|
}
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
configurable: !1,
|
|
481
|
-
enumerable: !1,
|
|
482
|
-
writable: !1,
|
|
483
|
-
value: n
|
|
484
|
-
}), Object.defineProperty(a, "_source", {
|
|
485
|
-
configurable: !1,
|
|
486
|
-
enumerable: !1,
|
|
487
|
-
writable: !1,
|
|
488
|
-
value: i
|
|
489
|
-
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
|
|
490
|
-
};
|
|
491
|
-
function rr(e, r, t, n, i) {
|
|
492
|
-
{
|
|
493
|
-
var u, o = {}, a = null, p = null;
|
|
494
|
-
t !== void 0 && (ve(t), a = "" + t), ze(r) && (ve(r.key), a = "" + r.key), Qe(r) && (p = r.ref, Xe(r, i));
|
|
495
|
-
for (u in r)
|
|
496
|
-
F.call(r, u) && !Ge.hasOwnProperty(u) && (o[u] = r[u]);
|
|
497
|
-
if (e && e.defaultProps) {
|
|
498
|
-
var s = e.defaultProps;
|
|
499
|
-
for (u in s)
|
|
500
|
-
o[u] === void 0 && (o[u] = s[u]);
|
|
501
|
-
}
|
|
502
|
-
if (a || p) {
|
|
503
|
-
var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
504
|
-
a && He(o, f), p && Ze(o, f);
|
|
505
|
-
}
|
|
506
|
-
return er(e, a, p, i, n, de.current, o);
|
|
507
|
-
}
|
|
528
|
+
else t.__e = r.__e, t.__k = r.__k, z.then || ut(t);
|
|
529
|
+
v.__e(z, t, r);
|
|
530
|
+
}
|
|
531
|
+
else l == null && t.__v == r.__v ? (t.__k = r.__k, t.__e = r.__e) : a = t.__e = Ce(r.__e, t, r, i, o, l, s, p, h);
|
|
532
|
+
return (_ = v.diffed) && _(t), 128 & t.__u ? void 0 : a;
|
|
533
|
+
}
|
|
534
|
+
function ut(e) {
|
|
535
|
+
e && (e.__c && (e.__c.__e = !0), e.__k && e.__k.some(ut));
|
|
536
|
+
}
|
|
537
|
+
function le(e, t, r) {
|
|
538
|
+
for (var i = 0; i < r.length; i++) vt(r[i], r[++i], r[++i]);
|
|
539
|
+
v.__c && v.__c(t, e), e.some(function(o) {
|
|
540
|
+
try {
|
|
541
|
+
e = o.__h, o.__h = [], e.some(function(l) {
|
|
542
|
+
l.call(o);
|
|
543
|
+
});
|
|
544
|
+
} catch (l) {
|
|
545
|
+
v.__e(l, o.__v);
|
|
508
546
|
}
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
547
|
+
});
|
|
548
|
+
}
|
|
549
|
+
function oe(e) {
|
|
550
|
+
return typeof e != "object" || e == null || e.__b > 0 ? e : lt(e) ? e.map(oe) : N({}, e);
|
|
551
|
+
}
|
|
552
|
+
function Ce(e, t, r, i, o, l, s, a, p) {
|
|
553
|
+
var h, _, c, u, f, b, C, m = r.props || K, g = t.props, y = t.type;
|
|
554
|
+
if (y == "svg" ? o = "http://www.w3.org/2000/svg" : y == "math" ? o = "http://www.w3.org/1998/Math/MathML" : o || (o = "http://www.w3.org/1999/xhtml"), l != null) {
|
|
555
|
+
for (h = 0; h < l.length; h++) if ((f = l[h]) && "setAttribute" in f == !!y && (y ? f.localName == y : f.nodeType == 3)) {
|
|
556
|
+
e = f, l[h] = null;
|
|
557
|
+
break;
|
|
516
558
|
}
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
559
|
+
}
|
|
560
|
+
if (e == null) {
|
|
561
|
+
if (y == null) return document.createTextNode(g);
|
|
562
|
+
e = document.createElementNS(o, y, g.is && g), a && (v.__m && v.__m(t, l), a = !1), l = null;
|
|
563
|
+
}
|
|
564
|
+
if (y == null) m === g || a && e.data == g || (e.data = g);
|
|
565
|
+
else {
|
|
566
|
+
if (l = l && it.call(e.childNodes), !a && l != null) for (m = {}, h = 0; h < e.attributes.length; h++) m[(f = e.attributes[h]).name] = f.value;
|
|
567
|
+
for (h in m) f = m[h], h == "dangerouslySetInnerHTML" ? c = f : h == "children" || h in g || h == "value" && "defaultValue" in g || h == "checked" && "defaultChecked" in g || J(e, h, null, f, o);
|
|
568
|
+
for (h in g) f = g[h], h == "children" ? u = f : h == "dangerouslySetInnerHTML" ? _ = f : h == "value" ? b = f : h == "checked" ? C = f : a && typeof f != "function" || m[h] === f || J(e, h, f, m[h], o);
|
|
569
|
+
if (_) a || c && (_.__html == c.__html || _.__html == e.innerHTML) || (e.innerHTML = _.__html), t.__k = [];
|
|
570
|
+
else if (c && (e.innerHTML = ""), re(t.type == "template" ? e.content : e, lt(u) ? u : [u], t, r, i, y == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, l, s, l ? l[0] : r.__k && B(r, 0), a, p), l != null) for (h = l.length; h--; ) yt(l[h]);
|
|
571
|
+
a || (h = "value", y == "progress" && b == null ? e.removeAttribute("value") : b != null && (b !== e[h] || y == "progress" && !b || y == "option" && b != m[h]) && J(e, h, b, m[h], o), h = "checked", C != null && C != e[h] && J(e, h, C, m[h], o));
|
|
572
|
+
}
|
|
573
|
+
return e;
|
|
574
|
+
}
|
|
575
|
+
function vt(e, t, r) {
|
|
576
|
+
try {
|
|
577
|
+
if (typeof e == "function") {
|
|
578
|
+
var i = typeof e.__u == "function";
|
|
579
|
+
i && e.__u(), i && t == null || (e.__u = e(t));
|
|
580
|
+
} else e.current = t;
|
|
581
|
+
} catch (o) {
|
|
582
|
+
v.__e(o, r);
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
function ne(e, t, r) {
|
|
586
|
+
var i, o;
|
|
587
|
+
if (v.unmount && v.unmount(e), (i = e.ref) && (i.current && i.current != e.__e || vt(i, null, t)), (i = e.__c) != null) {
|
|
588
|
+
if (i.componentWillUnmount) try {
|
|
589
|
+
i.componentWillUnmount();
|
|
590
|
+
} catch (l) {
|
|
591
|
+
v.__e(l, t);
|
|
521
592
|
}
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
593
|
+
i.base = i.__P = null;
|
|
594
|
+
}
|
|
595
|
+
if (i = e.__k) for (o = 0; o < i.length; o++) i[o] && ne(i[o], t, r || typeof e.type != "function");
|
|
596
|
+
r || yt(e.__e), e.__c = e.__ = e.__e = void 0;
|
|
597
|
+
}
|
|
598
|
+
function Te(e, t, r) {
|
|
599
|
+
return this.constructor(e, r);
|
|
600
|
+
}
|
|
601
|
+
function Mt(e, t, r) {
|
|
602
|
+
var i, o, l, s;
|
|
603
|
+
t == document && (t = document.documentElement), v.__ && v.__(e, t), o = (i = !1) ? null : t.__k, l = [], s = [], gt(t, e = t.__k = te(ot, null, [e]), o || K, K, t.namespaceURI, o ? null : t.firstChild ? it.call(t.childNodes) : null, l, o ? o.__e : t.firstChild, i, s), le(l, e, s);
|
|
604
|
+
}
|
|
605
|
+
it = tt.slice, v = { __e: function(e, t, r, i) {
|
|
606
|
+
for (var o, l, s; t = t.__; ) if ((o = t.__c) && !o.__) try {
|
|
607
|
+
if ((l = o.constructor) && l.getDerivedStateFromError != null && (o.setState(l.getDerivedStateFromError(e)), s = o.__d), o.componentDidCatch != null && (o.componentDidCatch(e, i || {}), s = o.__d), s) return o.__E = o;
|
|
608
|
+
} catch (a) {
|
|
609
|
+
e = a;
|
|
610
|
+
}
|
|
611
|
+
throw e;
|
|
612
|
+
} }, Gt = 0, X.prototype.setState = function(e, t) {
|
|
613
|
+
var r;
|
|
614
|
+
r = this.__s != null && this.__s != this.state ? this.__s : this.__s = N({}, this.state), typeof e == "function" && (e = e(N({}, r), this.props)), e && N(r, e), e != null && this.__v && (t && this._sb.push(t), Ot(this));
|
|
615
|
+
}, X.prototype.forceUpdate = function(e) {
|
|
616
|
+
this.__v && (this.__e = !0, e && this.__h.push(e), Ot(this));
|
|
617
|
+
}, X.prototype.render = ot, M = [], Xt = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Zt = function(e, t) {
|
|
618
|
+
return e.__v.__b - t.__v.__b;
|
|
619
|
+
}, et.__r = 0, Kt = /(PointerCapture)$|Capture$/i, xt = 0, ft = $t(!1), pt = $t(!0);
|
|
620
|
+
var Ae = 0;
|
|
621
|
+
function n(e, t, r, i, o, l) {
|
|
622
|
+
t || (t = {});
|
|
623
|
+
var s, a, p = t;
|
|
624
|
+
if ("ref" in p) for (a in p = {}, t) a == "ref" ? s = t[a] : p[a] = t[a];
|
|
625
|
+
var h = { type: e, props: p, key: r, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Ae, __i: -1, __u: 0, __source: o, __self: l };
|
|
626
|
+
if (typeof e == "function" && (s = e.defaultProps)) for (a in s) p[a] === void 0 && (p[a] = s[a]);
|
|
627
|
+
return v.vnode && v.vnode(h), h;
|
|
628
|
+
}
|
|
629
|
+
var W, q, dt, Ft, rt = 0, ce = [], k = v, It = k.__b, Dt = k.__r, Bt = k.diffed, Ht = k.__c, Ut = k.unmount, Lt = k.__;
|
|
630
|
+
function bt(e, t) {
|
|
631
|
+
k.__h && k.__h(q, e, rt || t), rt = 0;
|
|
632
|
+
var r = q.__H || (q.__H = { __: [], __h: [] });
|
|
633
|
+
return e >= r.__.length && r.__.push({}), r.__[e];
|
|
634
|
+
}
|
|
635
|
+
function O(e) {
|
|
636
|
+
return rt = 1, Re(se, e);
|
|
637
|
+
}
|
|
638
|
+
function Re(e, t, r) {
|
|
639
|
+
var i = bt(W++, 2);
|
|
640
|
+
if (i.t = e, !i.__c && (i.__ = [se(void 0, t), function(a) {
|
|
641
|
+
var p = i.__N ? i.__N[0] : i.__[0], h = i.t(p, a);
|
|
642
|
+
p !== h && (i.__N = [h, i.__[1]], i.__c.setState({}));
|
|
643
|
+
}], i.__c = q, !q.__f)) {
|
|
644
|
+
var o = function(a, p, h) {
|
|
645
|
+
if (!i.__c.__H) return !0;
|
|
646
|
+
var _ = i.__c.__H.__.filter(function(u) {
|
|
647
|
+
return u.__c;
|
|
648
|
+
});
|
|
649
|
+
if (_.every(function(u) {
|
|
650
|
+
return !u.__N;
|
|
651
|
+
})) return !l || l.call(this, a, p, h);
|
|
652
|
+
var c = i.__c.props !== a;
|
|
653
|
+
return _.some(function(u) {
|
|
654
|
+
if (u.__N) {
|
|
655
|
+
var f = u.__[0];
|
|
656
|
+
u.__ = u.__N, u.__N = void 0, f !== u.__[0] && (c = !0);
|
|
530
657
|
}
|
|
531
|
-
|
|
658
|
+
}), l && l.call(this, a, p, h) || c;
|
|
659
|
+
};
|
|
660
|
+
q.__f = !0;
|
|
661
|
+
var l = q.shouldComponentUpdate, s = q.componentWillUpdate;
|
|
662
|
+
q.componentWillUpdate = function(a, p, h) {
|
|
663
|
+
if (this.__e) {
|
|
664
|
+
var _ = l;
|
|
665
|
+
l = void 0, o(a, p, h), l = _;
|
|
532
666
|
}
|
|
667
|
+
s && s.call(this, a, p, h);
|
|
668
|
+
}, q.shouldComponentUpdate = o;
|
|
669
|
+
}
|
|
670
|
+
return i.__N || i.__;
|
|
671
|
+
}
|
|
672
|
+
function Ne(e, t) {
|
|
673
|
+
var r = bt(W++, 3);
|
|
674
|
+
!k.__s && ae(r.__H, t) && (r.__ = e, r.u = t, q.__H.__h.push(r));
|
|
675
|
+
}
|
|
676
|
+
function Pe(e) {
|
|
677
|
+
return rt = 5, Oe(function() {
|
|
678
|
+
return { current: e };
|
|
679
|
+
}, []);
|
|
680
|
+
}
|
|
681
|
+
function Oe(e, t) {
|
|
682
|
+
var r = bt(W++, 7);
|
|
683
|
+
return ae(r.__H, t) && (r.__ = e(), r.__H = t, r.__h = e), r.__;
|
|
684
|
+
}
|
|
685
|
+
function ze() {
|
|
686
|
+
for (var e; e = ce.shift(); ) {
|
|
687
|
+
var t = e.__H;
|
|
688
|
+
if (e.__P && t) try {
|
|
689
|
+
t.__h.some(Z), t.__h.some(_t), t.__h = [];
|
|
690
|
+
} catch (r) {
|
|
691
|
+
t.__h = [], k.__e(r, e.__v);
|
|
533
692
|
}
|
|
534
|
-
|
|
535
|
-
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
k.__b = function(e) {
|
|
696
|
+
q = null, It && It(e);
|
|
697
|
+
}, k.__ = function(e, t) {
|
|
698
|
+
e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Lt && Lt(e, t);
|
|
699
|
+
}, k.__r = function(e) {
|
|
700
|
+
Dt && Dt(e), W = 0;
|
|
701
|
+
var t = (q = e.__c).__H;
|
|
702
|
+
t && (dt === q ? (t.__h = [], q.__h = [], t.__.some(function(r) {
|
|
703
|
+
r.__N && (r.__ = r.__N), r.u = r.__N = void 0;
|
|
704
|
+
})) : (t.__h.some(Z), t.__h.some(_t), t.__h = [], W = 0)), dt = q;
|
|
705
|
+
}, k.diffed = function(e) {
|
|
706
|
+
Bt && Bt(e);
|
|
707
|
+
var t = e.__c;
|
|
708
|
+
t && t.__H && (t.__H.__h.length && (ce.push(t) !== 1 && Ft === k.requestAnimationFrame || ((Ft = k.requestAnimationFrame) || $e)(ze)), t.__H.__.some(function(r) {
|
|
709
|
+
r.u && (r.__H = r.u), r.u = void 0;
|
|
710
|
+
})), dt = q = null;
|
|
711
|
+
}, k.__c = function(e, t) {
|
|
712
|
+
t.some(function(r) {
|
|
713
|
+
try {
|
|
714
|
+
r.__h.some(Z), r.__h = r.__h.filter(function(i) {
|
|
715
|
+
return !i.__ || _t(i);
|
|
716
|
+
});
|
|
717
|
+
} catch (i) {
|
|
718
|
+
t.some(function(o) {
|
|
719
|
+
o.__h && (o.__h = []);
|
|
720
|
+
}), t = [], k.__e(i, r.__v);
|
|
536
721
|
}
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
}
|
|
547
|
-
return r;
|
|
548
|
-
}
|
|
722
|
+
}), Ht && Ht(e, t);
|
|
723
|
+
}, k.unmount = function(e) {
|
|
724
|
+
Ut && Ut(e);
|
|
725
|
+
var t, r = e.__c;
|
|
726
|
+
r && r.__H && (r.__H.__.some(function(i) {
|
|
727
|
+
try {
|
|
728
|
+
Z(i);
|
|
729
|
+
} catch (o) {
|
|
730
|
+
t = o;
|
|
549
731
|
}
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
732
|
+
}), r.__H = void 0, t && k.__e(t, r.__v));
|
|
733
|
+
};
|
|
734
|
+
var Wt = typeof requestAnimationFrame == "function";
|
|
735
|
+
function $e(e) {
|
|
736
|
+
var t, r = function() {
|
|
737
|
+
clearTimeout(i), Wt && cancelAnimationFrame(t), setTimeout(e);
|
|
738
|
+
}, i = setTimeout(r, 35);
|
|
739
|
+
Wt && (t = requestAnimationFrame(r));
|
|
740
|
+
}
|
|
741
|
+
function Z(e) {
|
|
742
|
+
var t = q, r = e.__c;
|
|
743
|
+
typeof r == "function" && (e.__c = void 0, r()), q = t;
|
|
744
|
+
}
|
|
745
|
+
function _t(e) {
|
|
746
|
+
var t = q;
|
|
747
|
+
e.__c = e.__(), q = t;
|
|
748
|
+
}
|
|
749
|
+
function ae(e, t) {
|
|
750
|
+
return !e || e.length !== t.length || t.some(function(r, i) {
|
|
751
|
+
return r !== e[i];
|
|
752
|
+
});
|
|
753
|
+
}
|
|
754
|
+
function se(e, t) {
|
|
755
|
+
return typeof t == "function" ? t(e) : t;
|
|
756
|
+
}
|
|
757
|
+
const Yt = "data:image/svg+xml,%3csvg%20width='1820'%20height='1820'%20viewBox='0%200%201820%201820'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='1820'%20height='1820'%20rx='20'%20fill='%23121212'/%3e%3crect%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.6'%20x='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.3'%20x='496'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='620'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='744'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='868'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='992'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.2'%20x='1116'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.7'%20x='1240'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.6'%20x='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='124'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='248'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.3'%20x='496'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='620'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='744'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.2'%20x='868'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='992'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1116'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.8'%20x='1240'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1364'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1488'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1612'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.4'%20x='1736'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='124'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.5'%20x='248'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='496'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='620'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.5'%20x='744'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='868'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='992'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.7'%20x='1116'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1240'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.2'%20x='1364'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1488'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1612'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1736'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.7'%20y='372'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='124'%20y='372'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.7'%20x='248'%20y='372'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='372'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='496'%20y='372'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='620'%20y='372'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='744'%20y='372'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='868'%20y='372'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20x='992'%20y='372'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20x='1116'%20y='372'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20x='1240'%20y='372'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1364'%20y='372'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1488'%20y='372'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1612'%20y='372'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1736'%20y='372'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.6'%20y='496'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.6'%20x='124'%20y='496'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='248'%20y='496'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='496'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='496'%20y='496'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='620'%20y='496'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='744'%20y='496'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='868'%20y='496'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20x='992'%20y='496'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20x='1116'%20y='496'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20x='1240'%20y='496'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20opacity='0.7'%20x='1364'%20y='496'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.2'%20x='1488'%20y='496'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1612'%20y='496'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.2'%20x='1736'%20y='496'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20y='620'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='124'%20y='620'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='248'%20y='620'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='620'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='496'%20y='620'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='1116'%20y='620'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20x='1240'%20y='620'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20opacity='0.99'%20x='1364'%20y='620'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.9'%20x='1488'%20y='620'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.9'%20x='1612'%20y='620'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.9'%20x='1736'%20y='620'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20y='744'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='124'%20y='744'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.4'%20x='248'%20y='744'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='744'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='496'%20y='744'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='1116'%20y='744'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20x='1240'%20y='744'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20x='1364'%20y='744'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.3'%20x='1488'%20y='744'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1612'%20y='744'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1736'%20y='744'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.4'%20y='868'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.4'%20x='124'%20y='868'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='248'%20y='868'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='868'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='496'%20y='868'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='1116'%20y='868'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1240'%20y='868'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20opacity='0.5'%20x='1364'%20y='868'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1488'%20y='868'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1612'%20y='868'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.3'%20x='1736'%20y='868'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20y='992'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='124'%20y='992'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='248'%20y='992'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='992'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='496'%20y='992'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='992'%20y='992'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1116'%20y='992'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1240'%20y='992'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1364'%20y='992'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.6'%20x='1488'%20y='992'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.6'%20x='1612'%20y='992'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.6'%20x='1736'%20y='992'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.1'%20y='1116'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.6'%20x='124'%20y='1116'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='248'%20y='1116'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='1116'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='496'%20y='1116'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='620'%20y='1116'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='744'%20y='1116'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='868'%20y='1116'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='992'%20y='1116'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1116'%20y='1116'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1240'%20y='1116'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1364'%20y='1116'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1488'%20y='1116'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1612'%20y='1116'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1736'%20y='1116'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20y='1240'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='124'%20y='1240'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='248'%20y='1240'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.5'%20x='372'%20y='1240'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='496'%20y='1240'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='620'%20y='1240'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='744'%20y='1240'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='868'%20y='1240'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='992'%20y='1240'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1116'%20y='1240'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1240'%20y='1240'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1364'%20y='1240'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1488'%20y='1240'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.4'%20x='1612'%20y='1240'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1736'%20y='1240'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='124'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.3'%20x='248'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='496'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='620'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.98'%20x='744'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='868'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.5'%20x='992'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1116'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1240'%20y='1364'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1364'%20y='1364'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1488'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1612'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1736'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.4'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='124'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='248'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='496'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='620'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.3'%20x='744'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='868'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='992'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1116'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.5'%20x='1240'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1364'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1488'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.3'%20x='1612'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1736'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='124'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.4'%20x='248'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='496'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='620'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.7'%20x='744'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='868'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='992'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1116'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.9'%20x='1240'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1364'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.7'%20x='1488'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1612'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1736'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.5'%20x='124'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='248'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='496'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='620'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.9'%20x='744'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.3'%20x='868'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='992'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1116'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.8'%20x='1240'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1364'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1488'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.32'%20x='1612'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1736'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3c/svg%3e";
|
|
758
|
+
function Me() {
|
|
759
|
+
const [e, t] = O({}), [r, i] = O([]), [o, l] = O(null), s = Pe(o);
|
|
760
|
+
return s.current = o, Ne(() => {
|
|
761
|
+
let a, p = 0;
|
|
762
|
+
const h = 10, _ = (u) => {
|
|
763
|
+
u.type === "STORE_INIT" ? t((f) => {
|
|
764
|
+
const b = {
|
|
765
|
+
...f,
|
|
766
|
+
[u.payload.name]: u.payload.store
|
|
767
|
+
};
|
|
768
|
+
return s.current || l(u.payload.name), b;
|
|
769
|
+
}) : u.type === "STATE_CHANGE" ? t((f) => {
|
|
770
|
+
const b = u.payload.storeName;
|
|
771
|
+
return f[b] ? { ...f } : f;
|
|
772
|
+
}) : u.type === "ACTION_CALL" && i((f) => [
|
|
773
|
+
{
|
|
774
|
+
id: Math.random().toString(36).substr(2, 9),
|
|
775
|
+
storeName: u.payload.storeName,
|
|
776
|
+
actionName: u.payload.actionName,
|
|
777
|
+
args: u.payload.args,
|
|
778
|
+
timestamp: Date.now()
|
|
779
|
+
},
|
|
780
|
+
...f.slice(0, 99)
|
|
781
|
+
// Keep last 100 actions
|
|
782
|
+
]);
|
|
783
|
+
}, c = () => {
|
|
784
|
+
const u = window.__QUANTA_DEVTOOLS__;
|
|
785
|
+
u ? a = u.subscribe(_) : p < h && (p++, setTimeout(c, 500));
|
|
786
|
+
};
|
|
787
|
+
return c(), () => {
|
|
788
|
+
a && a();
|
|
789
|
+
};
|
|
790
|
+
}, []), { stores: e, actions: r, selectedStore: o, setSelectedStore: l };
|
|
791
|
+
}
|
|
792
|
+
const Fe = (e, t, r) => {
|
|
793
|
+
const { size: i = 16, color: o = "currentColor", className: l = "" } = t;
|
|
794
|
+
return /* @__PURE__ */ n(
|
|
795
|
+
"svg",
|
|
796
|
+
{
|
|
797
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
798
|
+
width: i,
|
|
799
|
+
height: i,
|
|
800
|
+
viewBox: "0 0 24 24",
|
|
801
|
+
fill: "none",
|
|
802
|
+
stroke: o,
|
|
803
|
+
"stroke-width": "2",
|
|
804
|
+
"stroke-linecap": "round",
|
|
805
|
+
"stroke-linejoin": "round",
|
|
806
|
+
class: l,
|
|
807
|
+
dangerouslySetInnerHTML: { __html: e + "" }
|
|
562
808
|
}
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
809
|
+
);
|
|
810
|
+
}, Ie = {
|
|
811
|
+
x: '<line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/>',
|
|
812
|
+
play: '<polygon points="6 3 20 12 6 21 6 3"/>',
|
|
813
|
+
database: '<ellipse cx="12" cy="5" rx="9" ry="3"/><path d="M3 5V19c0 1.66 4 3 9 3s9-1.34 9-3V5"/><path d="M3 12c0 1.66 4 3 9 3s9-1.34 9-3"/>',
|
|
814
|
+
"chevron-right": '<polyline points="9 18 15 12 9 6"/>',
|
|
815
|
+
"chevron-up": '<polyline points="18 15 12 9 6 15"/>',
|
|
816
|
+
"chevron-down": '<polyline points="6 9 12 15 18 9"/>',
|
|
817
|
+
"rotate-ccw": '<polyline points="1 4 1 10 7 10"/><path d="M3.51 15a9 9 0 1 0 2.13-9.36L1 10"/>',
|
|
818
|
+
trash: '<polyline points="3 6 5 6 21 6"/><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/><line x1="10" y1="11" x2="10" y2="17"/><line x1="14" y1="11" x2="14" y2="17"/>',
|
|
819
|
+
search: '<circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/>',
|
|
820
|
+
"circle-x": '<circle cx="12" cy="12" r="10"/><line x1="15" y1="9" x2="9" y2="15"/><line x1="9" y1="9" x2="15" y2="15"/>',
|
|
821
|
+
check: '<polyline points="20 6 9 17 4 12"/>',
|
|
822
|
+
copy: '<rect x="9" y="9" width="13" height="13" rx="2" ry="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/>',
|
|
823
|
+
zap: '<polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"/>',
|
|
824
|
+
activity: '<polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/>',
|
|
825
|
+
clock: '<circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/>',
|
|
826
|
+
filter: '<polygon points="22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"/>',
|
|
827
|
+
clear: '<path d="M21 4H8l-7 8 7 8h13a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2z"/><line x1="18" y1="9" x2="12" y2="15"/><line x1="12" y1="9" x2="18" y2="15"/>'
|
|
828
|
+
};
|
|
829
|
+
function T(e) {
|
|
830
|
+
const { name: t, ...r } = e, i = Ie[t];
|
|
831
|
+
return i ? Fe(i, r) : null;
|
|
832
|
+
}
|
|
833
|
+
function de(e) {
|
|
834
|
+
const t = /* @__PURE__ */ new WeakSet();
|
|
835
|
+
function r(i, o) {
|
|
836
|
+
if (o > 10) return "[...]";
|
|
837
|
+
if (i === null) return null;
|
|
838
|
+
if (i === void 0) return;
|
|
839
|
+
const l = typeof i;
|
|
840
|
+
if (l === "string" || l === "number" || l === "boolean")
|
|
841
|
+
return i;
|
|
842
|
+
if (l === "function") return "[Function]";
|
|
843
|
+
if (typeof Window < "u" && i instanceof Window)
|
|
844
|
+
return "[Window]";
|
|
845
|
+
if (typeof Node < "u" && i instanceof Node)
|
|
846
|
+
return "[Element]";
|
|
847
|
+
if (i instanceof Date) return i.toISOString();
|
|
848
|
+
if (i instanceof RegExp) return i.toString();
|
|
849
|
+
if (Array.isArray(i)) {
|
|
850
|
+
if (t.has(i)) return "[Circular]";
|
|
851
|
+
t.add(i);
|
|
852
|
+
const s = i.map((a) => r(a, o + 1));
|
|
853
|
+
return t.delete(i), s;
|
|
581
854
|
}
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
t = r.propTypes;
|
|
590
|
-
else if (typeof r == "object" && (r.$$typeof === v || // Note: Memo only checks outer props here.
|
|
591
|
-
// Inner props are checked in the reconciler.
|
|
592
|
-
r.$$typeof === h))
|
|
593
|
-
t = r.propTypes;
|
|
594
|
-
else
|
|
595
|
-
return;
|
|
596
|
-
if (t) {
|
|
597
|
-
var n = _(r);
|
|
598
|
-
Je(t, e.props, "prop", n, e);
|
|
599
|
-
} else if (r.PropTypes !== void 0 && !G) {
|
|
600
|
-
G = !0;
|
|
601
|
-
var i = _(r);
|
|
602
|
-
d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
|
|
603
|
-
}
|
|
604
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
605
|
-
}
|
|
855
|
+
if (l === "object") {
|
|
856
|
+
if (t.has(i)) return "[Circular]";
|
|
857
|
+
t.add(i);
|
|
858
|
+
const s = {};
|
|
859
|
+
for (const a in i)
|
|
860
|
+
Object.prototype.hasOwnProperty.call(i, a) && (s[a] = r(i[a], o + 1));
|
|
861
|
+
return t.delete(i), s;
|
|
606
862
|
}
|
|
607
|
-
|
|
863
|
+
return String(i);
|
|
864
|
+
}
|
|
865
|
+
try {
|
|
866
|
+
return JSON.stringify(r(e, 0));
|
|
867
|
+
} catch {
|
|
868
|
+
return "[Error]";
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
const he = ({ value: e, depth: t = 0 }) => {
|
|
872
|
+
if (e === null) return /* @__PURE__ */ n("span", { class: "qdt-json-null", children: "null" });
|
|
873
|
+
if (e === void 0)
|
|
874
|
+
return /* @__PURE__ */ n("span", { class: "qdt-json-null", children: "undefined" });
|
|
875
|
+
const r = typeof e;
|
|
876
|
+
return r === "string" ? /* @__PURE__ */ n("span", { class: "qdt-json-string", children: [
|
|
877
|
+
'"',
|
|
878
|
+
e,
|
|
879
|
+
'"'
|
|
880
|
+
] }) : r === "number" ? /* @__PURE__ */ n("span", { class: "qdt-json-number", children: String(e) }) : r === "boolean" ? /* @__PURE__ */ n("span", { class: "qdt-json-boolean", children: e ? "true" : "false" }) : r === "function" ? /* @__PURE__ */ n("span", { class: "qdt-json-fn", children: [
|
|
881
|
+
"ƒ ",
|
|
882
|
+
e.name || "anonymous",
|
|
883
|
+
"()"
|
|
884
|
+
] }) : r === "object" ? /* @__PURE__ */ n(De, { data: e, depth: t }) : /* @__PURE__ */ n("span", { class: "qdt-json-string", children: String(e) });
|
|
885
|
+
}, De = ({ data: e, depth: t = 0 }) => {
|
|
886
|
+
const [r, i] = O(t < 2), o = Array.isArray(e), l = Object.entries(e), s = o ? ["[", "]"] : ["{", "}"];
|
|
887
|
+
return l.length === 0 ? /* @__PURE__ */ n("span", { class: "qdt-json-bracket", children: [
|
|
888
|
+
s[0],
|
|
889
|
+
s[1]
|
|
890
|
+
] }) : /* @__PURE__ */ n("span", { children: [
|
|
891
|
+
/* @__PURE__ */ n(
|
|
892
|
+
"span",
|
|
608
893
|
{
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
894
|
+
class: "qdt-json-toggle",
|
|
895
|
+
"data-open": r,
|
|
896
|
+
onClick: () => i(!r),
|
|
897
|
+
children: /* @__PURE__ */ n(T, { name: "chevron-right", size: 10 })
|
|
898
|
+
}
|
|
899
|
+
),
|
|
900
|
+
/* @__PURE__ */ n("span", { class: "qdt-json-bracket", children: s[0] }),
|
|
901
|
+
!r && /* @__PURE__ */ n("span", { class: "qdt-json-summary", children: [
|
|
902
|
+
" ",
|
|
903
|
+
l.length,
|
|
904
|
+
" ",
|
|
905
|
+
o ? "items" : "keys",
|
|
906
|
+
" "
|
|
907
|
+
] }),
|
|
908
|
+
!r && /* @__PURE__ */ n("span", { class: "qdt-json-bracket", children: s[1] }),
|
|
909
|
+
r && /* @__PURE__ */ n("div", { class: "qdt-json-children", children: l.map(([a, p]) => /* @__PURE__ */ n("div", { class: "qdt-json-row", children: [
|
|
910
|
+
/* @__PURE__ */ n("span", { class: "qdt-json-key", children: o ? a : `"${a}"` }),
|
|
911
|
+
/* @__PURE__ */ n("span", { class: "qdt-json-colon", children: ": " }),
|
|
912
|
+
/* @__PURE__ */ n(he, { value: p, depth: t + 1 })
|
|
913
|
+
] }, a)) }),
|
|
914
|
+
r && /* @__PURE__ */ n("span", { class: "qdt-json-bracket", children: s[1] })
|
|
915
|
+
] });
|
|
916
|
+
};
|
|
917
|
+
function Be({ stores: e, selectedStore: t }) {
|
|
918
|
+
if (!t || !e[t])
|
|
919
|
+
return /* @__PURE__ */ n("div", { class: "qdt-empty", children: [
|
|
920
|
+
/* @__PURE__ */ n(T, { name: "database", size: 28 }),
|
|
921
|
+
/* @__PURE__ */ n("span", { children: "Select a store to inspect" })
|
|
922
|
+
] });
|
|
923
|
+
const r = e[t];
|
|
924
|
+
return /* @__PURE__ */ n("div", { children: [
|
|
925
|
+
/* @__PURE__ */ n("div", { class: "qdt-card", children: [
|
|
926
|
+
/* @__PURE__ */ n("div", { class: "qdt-card-title", children: [
|
|
927
|
+
"Store Management — ",
|
|
928
|
+
t
|
|
929
|
+
] }),
|
|
930
|
+
/* @__PURE__ */ n("div", { class: "qdt-row", children: [
|
|
931
|
+
/* @__PURE__ */ n(
|
|
932
|
+
"div",
|
|
933
|
+
{
|
|
934
|
+
style: {
|
|
935
|
+
display: "flex",
|
|
936
|
+
alignItems: "center",
|
|
937
|
+
gap: "8px",
|
|
938
|
+
fontSize: "11px"
|
|
939
|
+
},
|
|
940
|
+
children: [
|
|
941
|
+
/* @__PURE__ */ n("span", { style: { color: "var(--text-muted)" }, children: "Persistence:" }),
|
|
942
|
+
r.$persist ? /* @__PURE__ */ n("span", { class: "qdt-badge qdt-badge-on", children: [
|
|
943
|
+
/* @__PURE__ */ n("span", { class: "qdt-badge-dot" }),
|
|
944
|
+
"Enabled"
|
|
945
|
+
] }) : /* @__PURE__ */ n("span", { class: "qdt-badge qdt-badge-off", children: [
|
|
946
|
+
/* @__PURE__ */ n("span", { class: "qdt-badge-dot" }),
|
|
947
|
+
"Disabled"
|
|
948
|
+
] })
|
|
949
|
+
]
|
|
950
|
+
}
|
|
951
|
+
),
|
|
952
|
+
r.$persist && /* @__PURE__ */ n(
|
|
953
|
+
"button",
|
|
954
|
+
{
|
|
955
|
+
class: "qdt-btn qdt-btn-danger",
|
|
956
|
+
onClick: async () => {
|
|
957
|
+
if (confirm(
|
|
958
|
+
"Clear persisted data for this store?"
|
|
959
|
+
))
|
|
960
|
+
try {
|
|
961
|
+
await r.$persist.clear(), alert("Storage cleared.");
|
|
962
|
+
} catch (i) {
|
|
963
|
+
console.error(i), alert("Failed to clear storage.");
|
|
964
|
+
}
|
|
965
|
+
},
|
|
966
|
+
title: "Clear persisted data",
|
|
967
|
+
children: [
|
|
968
|
+
/* @__PURE__ */ n(T, { name: "trash", size: 12 }),
|
|
969
|
+
"Clear Storage"
|
|
970
|
+
]
|
|
971
|
+
}
|
|
972
|
+
)
|
|
973
|
+
] }),
|
|
974
|
+
/* @__PURE__ */ n("div", { class: "qdt-row", children: [
|
|
975
|
+
/* @__PURE__ */ n(
|
|
976
|
+
"span",
|
|
977
|
+
{
|
|
978
|
+
style: {
|
|
979
|
+
fontSize: "11px",
|
|
980
|
+
color: "var(--text-muted)"
|
|
981
|
+
},
|
|
982
|
+
children: "Reset in-memory state to initial values."
|
|
614
983
|
}
|
|
984
|
+
),
|
|
985
|
+
/* @__PURE__ */ n(
|
|
986
|
+
"button",
|
|
987
|
+
{
|
|
988
|
+
class: "qdt-btn",
|
|
989
|
+
onClick: () => {
|
|
990
|
+
confirm(
|
|
991
|
+
"Reset state? This will revert all changes."
|
|
992
|
+
) && r.$reset();
|
|
993
|
+
},
|
|
994
|
+
children: [
|
|
995
|
+
/* @__PURE__ */ n(T, { name: "rotate-ccw", size: 12 }),
|
|
996
|
+
"Reset State"
|
|
997
|
+
]
|
|
998
|
+
}
|
|
999
|
+
)
|
|
1000
|
+
] })
|
|
1001
|
+
] }),
|
|
1002
|
+
/* @__PURE__ */ n("div", { class: "qdt-card", children: [
|
|
1003
|
+
/* @__PURE__ */ n("div", { class: "qdt-card-title", children: "State" }),
|
|
1004
|
+
/* @__PURE__ */ n("div", { class: "qdt-json", children: /* @__PURE__ */ n(he, { value: r.state, depth: 0 }) })
|
|
1005
|
+
] }),
|
|
1006
|
+
/* @__PURE__ */ n("div", { class: "qdt-card", children: [
|
|
1007
|
+
/* @__PURE__ */ n("div", { class: "qdt-card-title", children: "Getters" }),
|
|
1008
|
+
r.getters && Object.keys(r.getters).length > 0 ? /* @__PURE__ */ n("div", { class: "qdt-json", children: Object.entries(r.getters).map(
|
|
1009
|
+
([i, o]) => /* @__PURE__ */ n("div", { class: "qdt-json-row", children: [
|
|
1010
|
+
/* @__PURE__ */ n("span", { class: "qdt-json-key", children: i }),
|
|
1011
|
+
/* @__PURE__ */ n("span", { class: "qdt-json-colon", children: ": " }),
|
|
1012
|
+
/* @__PURE__ */ n("span", { class: "qdt-json-number", children: de(o.value) })
|
|
1013
|
+
] }, i)
|
|
1014
|
+
) }) : /* @__PURE__ */ n(
|
|
1015
|
+
"div",
|
|
1016
|
+
{
|
|
1017
|
+
style: {
|
|
1018
|
+
fontSize: "11px",
|
|
1019
|
+
color: "var(--text-muted)",
|
|
1020
|
+
fontStyle: "italic"
|
|
1021
|
+
},
|
|
1022
|
+
children: "No getters defined"
|
|
615
1023
|
}
|
|
616
|
-
|
|
617
|
-
|
|
1024
|
+
)
|
|
1025
|
+
] }),
|
|
1026
|
+
r.actions && Object.keys(r.actions).length > 0 && /* @__PURE__ */ n("div", { class: "qdt-card", children: [
|
|
1027
|
+
/* @__PURE__ */ n("div", { class: "qdt-card-title", children: "Actions" }),
|
|
1028
|
+
Object.keys(r.actions).map((i) => /* @__PURE__ */ n("div", { class: "qdt-action-item", children: [
|
|
1029
|
+
/* @__PURE__ */ n("span", { class: "qdt-action-fn", children: [
|
|
1030
|
+
i,
|
|
1031
|
+
"()"
|
|
1032
|
+
] }),
|
|
1033
|
+
/* @__PURE__ */ n(
|
|
1034
|
+
"button",
|
|
1035
|
+
{
|
|
1036
|
+
class: "qdt-btn-ghost",
|
|
1037
|
+
onClick: () => {
|
|
1038
|
+
try {
|
|
1039
|
+
r.actions[i]();
|
|
1040
|
+
} catch (o) {
|
|
1041
|
+
console.error(o), alert(`Action failed: ${o}`);
|
|
1042
|
+
}
|
|
1043
|
+
},
|
|
1044
|
+
title: "Trigger Action",
|
|
1045
|
+
children: /* @__PURE__ */ n(T, { name: "play", size: 12 })
|
|
1046
|
+
}
|
|
1047
|
+
)
|
|
1048
|
+
] }, i))
|
|
1049
|
+
] })
|
|
1050
|
+
] });
|
|
1051
|
+
}
|
|
1052
|
+
const Qt = 100;
|
|
1053
|
+
function He({ args: e }) {
|
|
1054
|
+
const [t, r] = O(!1), [i, o] = O(!1), l = de(e), s = l.length > Qt, a = s ? l.slice(0, Qt) + "…" : l;
|
|
1055
|
+
return /* @__PURE__ */ n("td", { class: "qdt-actions-payload", children: /* @__PURE__ */ n(
|
|
1056
|
+
"div",
|
|
1057
|
+
{
|
|
1058
|
+
style: {
|
|
1059
|
+
display: "flex",
|
|
1060
|
+
alignItems: "flex-start",
|
|
1061
|
+
gap: "6px"
|
|
1062
|
+
},
|
|
1063
|
+
children: [
|
|
1064
|
+
/* @__PURE__ */ n("div", { style: { flex: 1, minWidth: 0 }, children: t ? /* @__PURE__ */ n("div", { class: "qdt-actions-payload-expanded", children: l }) : /* @__PURE__ */ n("div", { class: "qdt-actions-payload-text", title: a, children: a }) }),
|
|
1065
|
+
/* @__PURE__ */ n(
|
|
1066
|
+
"div",
|
|
1067
|
+
{
|
|
1068
|
+
style: {
|
|
1069
|
+
display: "flex",
|
|
1070
|
+
alignItems: "center",
|
|
1071
|
+
gap: "2px",
|
|
1072
|
+
flexShrink: 0
|
|
1073
|
+
},
|
|
1074
|
+
children: [
|
|
1075
|
+
s && /* @__PURE__ */ n(
|
|
1076
|
+
"button",
|
|
1077
|
+
{
|
|
1078
|
+
class: "qdt-btn-ghost",
|
|
1079
|
+
onClick: () => r(!t),
|
|
1080
|
+
title: t ? "Collapse" : "Expand",
|
|
1081
|
+
style: { opacity: 1 },
|
|
1082
|
+
children: /* @__PURE__ */ n(
|
|
1083
|
+
T,
|
|
1084
|
+
{
|
|
1085
|
+
name: t ? "chevron-up" : "chevron-down",
|
|
1086
|
+
size: 14
|
|
1087
|
+
}
|
|
1088
|
+
)
|
|
1089
|
+
}
|
|
1090
|
+
),
|
|
1091
|
+
/* @__PURE__ */ n(
|
|
1092
|
+
"button",
|
|
1093
|
+
{
|
|
1094
|
+
class: "qdt-btn-ghost",
|
|
1095
|
+
onClick: async () => {
|
|
1096
|
+
try {
|
|
1097
|
+
await navigator.clipboard.writeText(l), o(!0), setTimeout(() => o(!1), 2e3);
|
|
1098
|
+
} catch (p) {
|
|
1099
|
+
console.error("Failed to copy:", p);
|
|
1100
|
+
}
|
|
1101
|
+
},
|
|
1102
|
+
title: i ? "Copied!" : "Copy payload",
|
|
1103
|
+
style: {
|
|
1104
|
+
opacity: 1,
|
|
1105
|
+
color: i ? "var(--json-string)" : void 0
|
|
1106
|
+
},
|
|
1107
|
+
children: /* @__PURE__ */ n(T, { name: i ? "check" : "copy", size: 14 })
|
|
1108
|
+
}
|
|
1109
|
+
)
|
|
1110
|
+
]
|
|
1111
|
+
}
|
|
1112
|
+
)
|
|
1113
|
+
]
|
|
618
1114
|
}
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
1115
|
+
) });
|
|
1116
|
+
}
|
|
1117
|
+
function Ue({ actions: e }) {
|
|
1118
|
+
return e.length === 0 ? /* @__PURE__ */ n("div", { class: "qdt-empty", children: [
|
|
1119
|
+
/* @__PURE__ */ n(T, { name: "activity", size: 28 }),
|
|
1120
|
+
/* @__PURE__ */ n("span", { children: "No actions recorded yet" })
|
|
1121
|
+
] }) : /* @__PURE__ */ n("div", { style: { height: "100%", overflowY: "auto" }, children: /* @__PURE__ */ n("table", { class: "qdt-actions-table", children: [
|
|
1122
|
+
/* @__PURE__ */ n("thead", { children: /* @__PURE__ */ n("tr", { children: [
|
|
1123
|
+
/* @__PURE__ */ n("th", { children: "Time" }),
|
|
1124
|
+
/* @__PURE__ */ n("th", { children: "Store" }),
|
|
1125
|
+
/* @__PURE__ */ n("th", { children: "Action" }),
|
|
1126
|
+
/* @__PURE__ */ n("th", { children: "Payload" })
|
|
1127
|
+
] }) }),
|
|
1128
|
+
/* @__PURE__ */ n("tbody", { children: e.map((t) => /* @__PURE__ */ n("tr", { children: [
|
|
1129
|
+
/* @__PURE__ */ n("td", { class: "qdt-actions-time", children: new Date(
|
|
1130
|
+
t.timestamp
|
|
1131
|
+
).toLocaleTimeString() }),
|
|
1132
|
+
/* @__PURE__ */ n("td", { class: "qdt-actions-store", children: t.storeName }),
|
|
1133
|
+
/* @__PURE__ */ n("td", { class: "qdt-actions-name", children: t.actionName }),
|
|
1134
|
+
/* @__PURE__ */ n(He, { args: t.args })
|
|
1135
|
+
] }, t.id)) })
|
|
1136
|
+
] }) });
|
|
1137
|
+
}
|
|
1138
|
+
const Le = "2.0.0-beta.10", We = {
|
|
1139
|
+
version: Le
|
|
1140
|
+
};
|
|
1141
|
+
function Ye() {
|
|
1142
|
+
const [e, t] = O(!1), [r, i] = O(""), [o, l] = O(
|
|
1143
|
+
"inspector"
|
|
1144
|
+
), { stores: s, actions: a, selectedStore: p, setSelectedStore: h } = Me(), _ = Object.keys(s).filter(
|
|
1145
|
+
(f) => f.toLowerCase().includes(r.toLowerCase())
|
|
1146
|
+
), c = a.length, u = We.version;
|
|
1147
|
+
return e ? /* @__PURE__ */ n("div", { class: "qdt-panel", children: [
|
|
1148
|
+
/* @__PURE__ */ n("header", { class: "qdt-header", children: [
|
|
1149
|
+
/* @__PURE__ */ n("div", { class: "qdt-header-left", children: [
|
|
1150
|
+
/* @__PURE__ */ n("img", { src: Yt, alt: "", class: "qdt-header-logo" }),
|
|
1151
|
+
/* @__PURE__ */ n("div", { children: [
|
|
1152
|
+
/* @__PURE__ */ n("div", { class: "qdt-header-title", children: "QuantaJS DevTools" }),
|
|
1153
|
+
/* @__PURE__ */ n("div", { class: "qdt-header-subtitle", children: "Inspect stores & replay actions" })
|
|
1154
|
+
] })
|
|
1155
|
+
] }),
|
|
1156
|
+
/* @__PURE__ */ n("div", { class: "qdt-header-right", children: [
|
|
1157
|
+
/* @__PURE__ */ n("div", { class: "qdt-tabs", children: [
|
|
1158
|
+
/* @__PURE__ */ n(
|
|
1159
|
+
"button",
|
|
1160
|
+
{
|
|
1161
|
+
class: "qdt-tab",
|
|
1162
|
+
"data-active": o === "inspector",
|
|
1163
|
+
onClick: () => l("inspector"),
|
|
1164
|
+
children: "Inspector"
|
|
1165
|
+
}
|
|
1166
|
+
),
|
|
1167
|
+
/* @__PURE__ */ n(
|
|
1168
|
+
"button",
|
|
1169
|
+
{
|
|
1170
|
+
class: "qdt-tab",
|
|
1171
|
+
"data-active": o === "actions",
|
|
1172
|
+
onClick: () => l("actions"),
|
|
1173
|
+
children: [
|
|
1174
|
+
"Actions",
|
|
1175
|
+
c > 0 && /* @__PURE__ */ n("span", { class: "qdt-tab-badge", children: c })
|
|
1176
|
+
]
|
|
1177
|
+
}
|
|
1178
|
+
)
|
|
1179
|
+
] }),
|
|
1180
|
+
/* @__PURE__ */ n(
|
|
1181
|
+
"button",
|
|
1182
|
+
{
|
|
1183
|
+
class: "qdt-close",
|
|
1184
|
+
onClick: () => t(!1),
|
|
1185
|
+
title: "Close",
|
|
1186
|
+
children: /* @__PURE__ */ n(T, { name: "circle-x", size: 18 })
|
|
1187
|
+
}
|
|
1188
|
+
)
|
|
1189
|
+
] })
|
|
1190
|
+
] }),
|
|
1191
|
+
/* @__PURE__ */ n("div", { class: "qdt-body", children: [
|
|
1192
|
+
/* @__PURE__ */ n("aside", { class: "qdt-sidebar", children: [
|
|
1193
|
+
/* @__PURE__ */ n("div", { class: "qdt-search", children: [
|
|
1194
|
+
/* @__PURE__ */ n(T, { name: "search", size: 14 }),
|
|
1195
|
+
/* @__PURE__ */ n(
|
|
1196
|
+
"input",
|
|
1197
|
+
{
|
|
1198
|
+
type: "search",
|
|
1199
|
+
placeholder: "Filter stores...",
|
|
1200
|
+
value: r,
|
|
1201
|
+
onInput: (f) => i(f.target.value)
|
|
1202
|
+
}
|
|
1203
|
+
)
|
|
1204
|
+
] }),
|
|
1205
|
+
/* @__PURE__ */ n("div", { class: "qdt-store-list", children: Object.keys(s).length === 0 ? /* @__PURE__ */ n(
|
|
1206
|
+
"div",
|
|
1207
|
+
{
|
|
1208
|
+
class: "qdt-empty",
|
|
1209
|
+
style: { height: "auto", padding: "20px 10px" },
|
|
1210
|
+
children: [
|
|
1211
|
+
/* @__PURE__ */ n(T, { name: "database", size: 20 }),
|
|
1212
|
+
/* @__PURE__ */ n("span", { children: "No stores detected" })
|
|
1213
|
+
]
|
|
1214
|
+
}
|
|
1215
|
+
) : _.length === 0 ? /* @__PURE__ */ n(
|
|
1216
|
+
"div",
|
|
1217
|
+
{
|
|
1218
|
+
class: "qdt-empty",
|
|
1219
|
+
style: { height: "auto", padding: "20px 10px" },
|
|
1220
|
+
children: /* @__PURE__ */ n("span", { children: [
|
|
1221
|
+
'No match for "',
|
|
1222
|
+
r,
|
|
1223
|
+
'"'
|
|
1224
|
+
] })
|
|
659
1225
|
}
|
|
1226
|
+
) : _.map((f) => /* @__PURE__ */ n(
|
|
1227
|
+
"button",
|
|
1228
|
+
{
|
|
1229
|
+
class: "qdt-store-item",
|
|
1230
|
+
"data-active": p === f,
|
|
1231
|
+
onClick: () => h(f),
|
|
1232
|
+
title: f,
|
|
1233
|
+
children: [
|
|
1234
|
+
/* @__PURE__ */ n(T, { name: "database", size: 14 }),
|
|
1235
|
+
/* @__PURE__ */ n("span", { class: "qdt-store-name", children: f })
|
|
1236
|
+
]
|
|
1237
|
+
},
|
|
1238
|
+
f
|
|
1239
|
+
)) }),
|
|
1240
|
+
/* @__PURE__ */ n("div", { class: "qdt-sidebar-footer", children: [
|
|
1241
|
+
/* @__PURE__ */ n("span", { children: [
|
|
1242
|
+
_.length,
|
|
1243
|
+
r ? `/${Object.keys(s).length}` : "",
|
|
1244
|
+
" ",
|
|
1245
|
+
_.length === 1 ? "store" : "stores"
|
|
1246
|
+
] }),
|
|
1247
|
+
/* @__PURE__ */ n("span", { children: [
|
|
1248
|
+
"v",
|
|
1249
|
+
u
|
|
1250
|
+
] })
|
|
1251
|
+
] })
|
|
1252
|
+
] }),
|
|
1253
|
+
/* @__PURE__ */ n("main", { class: "qdt-main", children: o === "inspector" ? /* @__PURE__ */ n(
|
|
1254
|
+
Be,
|
|
1255
|
+
{
|
|
1256
|
+
stores: s,
|
|
1257
|
+
selectedStore: p
|
|
660
1258
|
}
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
1259
|
+
) : /* @__PURE__ */ n(Ue, { actions: a }) })
|
|
1260
|
+
] })
|
|
1261
|
+
] }) : /* @__PURE__ */ n(
|
|
1262
|
+
"button",
|
|
1263
|
+
{
|
|
1264
|
+
class: "qdt-fab",
|
|
1265
|
+
onClick: () => t(!0),
|
|
1266
|
+
title: "Open QuantaJS DevTools",
|
|
1267
|
+
children: [
|
|
1268
|
+
/* @__PURE__ */ n("img", { src: Yt, alt: "", class: "qdt-fab-logo" }),
|
|
1269
|
+
/* @__PURE__ */ n("span", { class: "qdt-fab-label", children: "QuantaJS" })
|
|
1270
|
+
]
|
|
669
1271
|
}
|
|
670
|
-
|
|
671
|
-
I.Fragment = R, I.jsx = sr, I.jsxs = fr;
|
|
672
|
-
}()), I;
|
|
1272
|
+
);
|
|
673
1273
|
}
|
|
674
|
-
var Oe;
|
|
675
|
-
function
|
|
676
|
-
return
|
|
1274
|
+
const Qe = ':host{all:initial;display:block;color-scheme:dark}.qdt{--bg-base: #0b1120;--bg-surface: #111827;--bg-elevated: #1a2332;--bg-hover: rgba(56, 178, 172, .06);--bg-active: rgba(56, 178, 172, .12);--border: rgba(148, 163, 184, .1);--border-accent: rgba(56, 178, 172, .3);--text-primary: #e2e8f0;--text-secondary: #94a3b8;--text-muted: #64748b;--text-accent: #38b2ac;--text-accent-bright: #5eead4;--json-string: #a5d6a7;--json-number: #80deea;--json-boolean: #ffd54f;--json-null: #ef9a9a;--json-key: #ce93d8;--json-fn: #90a4ae;--accent: #38b2ac;--accent-glow: rgba(56, 178, 172, .4);--danger: #f87171;--danger-hover: rgba(248, 113, 113, .15);--radius-sm: 6px;--radius-md: 10px;--radius-lg: 14px;--radius-full: 9999px;--shadow-panel: 0 25px 50px -12px rgba(0, 0, 0, .6), 0 0 0 1px rgba(148, 163, 184, .08);--shadow-fab: 0 8px 32px rgba(56, 178, 172, .25), 0 0 0 1px rgba(56, 178, 172, .2);--font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;--font-mono: "JetBrains Mono", "Fira Code", "SF Mono", ui-monospace, monospace;--transition: .2s cubic-bezier(.4, 0, .2, 1);--transition-slow: .35s cubic-bezier(.4, 0, .2, 1);font-family:var(--font-sans);font-size:13px;line-height:1.5;color:var(--text-primary);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.qdt *,.qdt *:before,.qdt *:after{margin:0;padding:0;box-sizing:border-box}.qdt button{cursor:pointer;font:inherit;background:none;border:none;color:inherit}.qdt input{font:inherit;color:inherit}.qdt img{display:block;max-width:100%}.qdt ::-webkit-scrollbar{width:5px;height:5px}.qdt ::-webkit-scrollbar-track{background:transparent}.qdt ::-webkit-scrollbar-thumb{background:#38b2ac4d;border-radius:4px}.qdt ::-webkit-scrollbar-thumb:hover{background:#38b2ac80}.qdt-fab{position:fixed;bottom:20px;right:20px;z-index:99999;display:flex;align-items:center;gap:8px;height:44px;padding:0 4px;background:var(--bg-base);border:1px solid var(--border-accent);border-radius:var(--radius-full);box-shadow:var(--shadow-fab);overflow:hidden;width:44px;transition:width var(--transition-slow),box-shadow var(--transition);cursor:pointer}.qdt-fab:hover{width:190px;box-shadow:0 8px 40px #38b2ac59,0 0 0 1px #38b2ac59}.qdt-fab-logo{width:36px;height:36px;border-radius:50%;object-fit:cover;flex-shrink:0}.qdt-fab-label{white-space:nowrap;font-size:13px;font-weight:600;color:var(--text-accent);letter-spacing:-.01em}.qdt-fab:before{content:"";position:absolute;inset:-3px;border-radius:inherit;border:2px solid var(--accent);opacity:0;animation:qdt-pulse 2.5s ease-out infinite;pointer-events:none}@keyframes qdt-pulse{0%{opacity:.6;transform:scale(1)}to{opacity:0;transform:scale(1.15)}}.qdt-panel{position:fixed;bottom:20px;right:20px;width:min(92vw,960px);height:min(80vh,580px);z-index:99999;display:flex;flex-direction:column;background:var(--bg-base);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-panel);overflow:hidden;animation:qdt-panel-in var(--transition-slow) both}@keyframes qdt-panel-in{0%{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}.qdt-header{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;border-bottom:1px solid var(--border);background:linear-gradient(180deg,rgba(56,178,172,.04) 0%,transparent 100%)}.qdt-header-left{display:flex;align-items:center;gap:10px}.qdt-header-logo{width:32px;height:32px;border-radius:50%}.qdt-header-title{font-size:13px;font-weight:700;color:var(--text-accent);letter-spacing:-.02em}.qdt-header-subtitle{font-size:11px;color:var(--text-muted);margin-top:1px}.qdt-header-right{display:flex;align-items:center;gap:6px}.qdt-tabs{display:flex;gap:2px;background:var(--bg-surface);border-radius:var(--radius-sm);padding:2px}.qdt-tab{padding:5px 12px;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);border-radius:4px;transition:all var(--transition)}.qdt-tab:hover{color:var(--text-secondary)}.qdt-tab[data-active=true]{color:var(--text-accent);background:var(--bg-active)}.qdt-tab-badge{display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;padding:0 4px;margin-left:4px;font-size:10px;font-weight:700;background:var(--accent);color:var(--bg-base);border-radius:var(--radius-full)}.qdt-close{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:var(--radius-sm);color:var(--text-muted);transition:all var(--transition)}.qdt-close:hover{color:var(--danger);background:var(--danger-hover)}.qdt-body{display:flex;flex:1;overflow:hidden}.qdt-sidebar{width:200px;flex-shrink:0;display:flex;flex-direction:column;border-right:1px solid var(--border);background:#11182766}.qdt-search{display:flex;align-items:center;gap:6px;padding:8px 10px;border-bottom:1px solid var(--border)}.qdt-search svg{flex-shrink:0;color:var(--text-muted)}.qdt-search input{flex:1;background:none;border:none;outline:none;font-size:12px;color:var(--text-primary)}.qdt-search input::placeholder{color:var(--text-muted)}.qdt-store-list{flex:1;overflow-y:auto;padding:4px}.qdt-store-item{display:flex;align-items:center;gap:8px;width:100%;padding:7px 10px;border-radius:var(--radius-sm);font-size:12px;color:var(--text-secondary);transition:all var(--transition);text-align:left}.qdt-store-item:hover{background:var(--bg-hover);color:var(--text-primary)}.qdt-store-item[data-active=true]{background:var(--bg-active);color:var(--text-accent)}.qdt-store-item svg{flex-shrink:0;opacity:.5}.qdt-store-item[data-active=true] svg{opacity:1;color:var(--text-accent)}.qdt-store-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.qdt-sidebar-footer{padding:8px 12px;display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--text-muted);border-top:1px solid var(--border)}.qdt-main{flex:1;overflow-y:auto;background:var(--bg-base)}.qdt-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;gap:8px;color:var(--text-muted);font-size:13px}.qdt-empty svg{opacity:.15}.qdt-card{margin:12px;padding:14px;background:var(--bg-surface);border:1px solid var(--border);border-radius:var(--radius-md)}.qdt-card+.qdt-card{margin-top:0}.qdt-card-title{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--text-muted);padding-bottom:10px;margin-bottom:10px;border-bottom:1px solid var(--border)}.qdt-btn{display:inline-flex;align-items:center;gap:5px;padding:5px 10px;font-size:11px;font-weight:600;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--bg-elevated);color:var(--text-secondary);transition:all var(--transition)}.qdt-btn:hover{background:var(--bg-hover);color:var(--text-primary);border-color:var(--border-accent)}.qdt-btn-danger:hover{color:var(--danger);background:var(--danger-hover);border-color:#f871714d}.qdt-btn-ghost{background:none;border:none;padding:4px;color:var(--text-muted)}.qdt-btn-ghost:hover{color:var(--text-accent)}.qdt-badge{display:inline-flex;align-items:center;gap:5px;padding:2px 8px;font-size:10px;font-weight:600;border-radius:var(--radius-full);border:1px solid}.qdt-badge-on{color:#34d399;background:#34d3991a;border-color:#34d39933}.qdt-badge-off{color:var(--text-muted);background:var(--bg-elevated);border-color:var(--border)}.qdt-badge-dot{width:6px;height:6px;border-radius:50%;background:currentColor}.qdt-badge-on .qdt-badge-dot{box-shadow:0 0 6px #34d39999}.qdt-json{font-family:var(--font-mono);font-size:11.5px;line-height:1.65}.qdt-json-row{display:flex;align-items:baseline;gap:4px;padding:1px 0;border-radius:3px}.qdt-json-row:hover{background:#94a3b80a}.qdt-json-toggle{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;flex-shrink:0;cursor:pointer;color:var(--text-muted);transition:transform var(--transition)}.qdt-json-toggle[data-open=true]{transform:rotate(90deg)}.qdt-json-key{color:var(--json-key)}.qdt-json-colon{color:var(--text-muted)}.qdt-json-string{color:var(--json-string)}.qdt-json-number{color:var(--json-number)}.qdt-json-boolean{color:var(--json-boolean)}.qdt-json-null{color:var(--json-null);font-style:italic}.qdt-json-fn{color:var(--json-fn);font-style:italic}.qdt-json-bracket{color:var(--text-muted)}.qdt-json-children{padding-left:16px;border-left:1px solid var(--border);margin-left:6px}.qdt-json-summary{color:var(--text-muted);font-style:italic;font-size:10px}.qdt-actions-table{width:100%;text-align:left;border-collapse:collapse}.qdt-actions-table thead{position:sticky;top:0;z-index:2;background:var(--bg-surface)}.qdt-actions-table th{padding:8px 14px;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted);border-bottom:1px solid var(--border)}.qdt-actions-table td{padding:8px 14px;font-size:12px;border-bottom:1px solid rgba(148,163,184,.05);vertical-align:top}.qdt-actions-table tr{transition:background var(--transition)}.qdt-actions-table tbody tr:hover{background:var(--bg-hover)}.qdt-actions-time{font-family:var(--font-mono);font-size:11px;color:var(--text-muted);white-space:nowrap}.qdt-actions-store{font-weight:600;color:var(--text-primary)}.qdt-actions-name{font-family:var(--font-mono);color:var(--text-accent)}.qdt-actions-payload{font-family:var(--font-mono);font-size:11px;color:var(--text-secondary);max-width:260px}.qdt-actions-payload-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.qdt-actions-payload-expanded{white-space:pre-wrap;word-break:break-all;background:var(--bg-elevated);padding:6px 8px;border-radius:var(--radius-sm);border:1px solid var(--border);max-height:180px;overflow-y:auto}.qdt-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.qdt-row+.qdt-row{margin-top:8px;padding-top:8px;border-top:1px solid var(--border)}.qdt-action-item{display:flex;align-items:center;justify-content:space-between;padding:3px 0}.qdt-action-item .qdt-btn-ghost{opacity:0;transition:opacity var(--transition)}.qdt-action-item:hover .qdt-btn-ghost{opacity:1}.qdt-action-fn{font-family:var(--font-mono);font-size:12px;color:var(--text-accent-bright)}';
|
|
1275
|
+
function Ve() {
|
|
1276
|
+
return !!(typeof process < "u" && process.env && process.env.NODE_ENV === "development");
|
|
677
1277
|
}
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
1278
|
+
function Je(e = {}) {
|
|
1279
|
+
const { target: t = "body", visible: r } = e;
|
|
1280
|
+
if (!(r !== void 0 ? r : Ve()))
|
|
1281
|
+
return () => {
|
|
1282
|
+
};
|
|
1283
|
+
console.log("[Quanta DevTools] Mounting...");
|
|
1284
|
+
let i;
|
|
1285
|
+
if (typeof t == "string" ? i = document.querySelector(t) : i = t, !i)
|
|
1286
|
+
return console.error("[Quanta DevTools] Target element not found"), () => {
|
|
1287
|
+
};
|
|
1288
|
+
const o = document.createElement("div");
|
|
1289
|
+
o.id = "quanta-devtools-shadow-host";
|
|
1290
|
+
const l = o.attachShadow({ mode: "open" }), s = document.createElement("style");
|
|
1291
|
+
s.textContent = Qe, l.appendChild(s);
|
|
1292
|
+
const a = document.createElement("div");
|
|
1293
|
+
return a.className = "qdt", l.appendChild(a), i.appendChild(o), Mt(te(Ye, {}), a), () => {
|
|
1294
|
+
Mt(null, a), o.remove();
|
|
1295
|
+
};
|
|
681
1296
|
}
|
|
1297
|
+
const e2 = ({ visible: e }) => (Vt(() => Je({ visible: e }), [e]), null);
|
|
682
1298
|
export {
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
1299
|
+
Jt as QuantaContext,
|
|
1300
|
+
e2 as QuantaDevTools,
|
|
1301
|
+
t2 as QuantaProvider,
|
|
1302
|
+
l2 as computed,
|
|
1303
|
+
o2 as createStore,
|
|
1304
|
+
n2 as logger,
|
|
1305
|
+
c2 as reactive,
|
|
1306
|
+
Ke as useCreateStore,
|
|
1307
|
+
ve as useQuantaContext,
|
|
1308
|
+
Tt as useQuantaStore,
|
|
1309
|
+
Ze as useStore,
|
|
1310
|
+
a2 as watch
|
|
693
1311
|
};
|