@quantajs/react 2.0.0-beta.5 → 2.0.0-beta.7
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/LICENSE +21 -21
- package/dist/index.cjs +23 -23
- package/dist/index.d.ts +17 -8
- package/dist/index.js +1154 -309
- package/package.json +5 -4
package/dist/index.js
CHANGED
|
@@ -1,426 +1,1271 @@
|
|
|
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 { logger as
|
|
25
|
-
import { computed as
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
import ut, { useRef as fe, useCallback as F, useSyncExternalStore as Te, createContext as xt, useContext as yt, useEffect as _t } from "react";
|
|
24
|
+
import { logger as A, createStore as gt } from "@quantajs/core";
|
|
25
|
+
import { computed as fr, createStore as pr, logger as ur, reactive as xr, watch as yr } from "@quantajs/core";
|
|
26
|
+
const wt = (e, t) => {
|
|
27
|
+
try {
|
|
28
|
+
return e && typeof e == "object" && "value" in e ? e.value : typeof e == "function" ? e.bind(t) : e;
|
|
29
|
+
} catch {
|
|
30
|
+
return e;
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
function Ae(e, t) {
|
|
34
|
+
if (!e.subscribe) {
|
|
35
|
+
const h = new Error(
|
|
29
36
|
"QuantaJS store missing `subscribe`—ensure core v0.1.0-beta.2+."
|
|
30
37
|
);
|
|
31
|
-
throw
|
|
38
|
+
throw A.error(`useQuantaStore: ${h.message}`), h;
|
|
39
|
+
}
|
|
40
|
+
if (!t) {
|
|
41
|
+
const h = fe(null), f = F(() => {
|
|
42
|
+
if (h.current) return h.current;
|
|
43
|
+
const o = {};
|
|
44
|
+
return Object.keys(e.state || {}).forEach((u) => {
|
|
45
|
+
o[u] = e[u];
|
|
46
|
+
}), Object.keys(e.getters || {}).forEach((u) => {
|
|
47
|
+
const x = e.getters[u];
|
|
48
|
+
o[u] = wt(x, e);
|
|
49
|
+
}), Object.keys(e.actions || {}).forEach((u) => {
|
|
50
|
+
o[u] = e.actions[u].bind(e);
|
|
51
|
+
}), o.$reset = e.$reset, o.$persist = e.$persist, o.$destroy = e.$destroy, h.current = o, o;
|
|
52
|
+
}, [e]), d = F(
|
|
53
|
+
(o) => {
|
|
54
|
+
const u = (x) => {
|
|
55
|
+
h.current = null, o();
|
|
56
|
+
};
|
|
57
|
+
return e.subscribe(u);
|
|
58
|
+
},
|
|
59
|
+
[e]
|
|
60
|
+
), p = F(
|
|
61
|
+
() => f(),
|
|
62
|
+
[f]
|
|
63
|
+
);
|
|
64
|
+
return Te(d, f, p);
|
|
32
65
|
}
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
return
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
const
|
|
39
|
-
g[p] = typeof m == "function" ? m.bind(r) : m;
|
|
40
|
-
}), g;
|
|
41
|
-
}, [r]);
|
|
42
|
-
n.current === null && (n.current = u());
|
|
43
|
-
const o = x(
|
|
44
|
-
(a) => {
|
|
45
|
-
const g = (p) => {
|
|
66
|
+
const r = fe(null), i = F(() => {
|
|
67
|
+
const h = t(e);
|
|
68
|
+
return r.current = h, h;
|
|
69
|
+
}, [e, t]), l = F(
|
|
70
|
+
(h) => {
|
|
71
|
+
const f = (d) => {
|
|
46
72
|
try {
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
R[E] = typeof h == "function" ? h.bind(r) : h;
|
|
53
|
-
}), n.current = R, a();
|
|
54
|
-
} catch (m) {
|
|
55
|
-
d.warn(
|
|
56
|
-
`useQuantaStore: Failed to update snapshot: ${m instanceof Error ? m.message : String(m)}`
|
|
73
|
+
const p = t(e);
|
|
74
|
+
r.current !== p && (r.current = p, h());
|
|
75
|
+
} catch (p) {
|
|
76
|
+
A.warn(
|
|
77
|
+
`useQuantaStore: Selector update failed: ${String(p)}`
|
|
57
78
|
);
|
|
58
79
|
}
|
|
59
80
|
};
|
|
60
|
-
return
|
|
81
|
+
return e.subscribe(f);
|
|
61
82
|
},
|
|
62
|
-
[
|
|
63
|
-
),
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
`useQuantaStore: getSnapshot failed: ${a instanceof Error ? a.message : String(a)}`
|
|
69
|
-
), a;
|
|
70
|
-
}
|
|
71
|
-
}, [c, u]), S = x(() => {
|
|
72
|
-
try {
|
|
73
|
-
const a = u();
|
|
74
|
-
return c ? c(a) : a;
|
|
75
|
-
} catch (a) {
|
|
76
|
-
throw d.error(
|
|
77
|
-
`useQuantaStore: getServerSnapshot failed: ${a instanceof Error ? a.message : String(a)}`
|
|
78
|
-
), a;
|
|
79
|
-
}
|
|
80
|
-
}, [c, u]);
|
|
81
|
-
return se(o, i, S);
|
|
83
|
+
[e, t]
|
|
84
|
+
), a = F(() => (r.current === null && i(), r.current), [i]), s = F(
|
|
85
|
+
() => i(),
|
|
86
|
+
[i]
|
|
87
|
+
);
|
|
88
|
+
return Te(l, a, s);
|
|
82
89
|
}
|
|
83
|
-
const
|
|
84
|
-
function
|
|
90
|
+
const Je = xt({ stores: {} });
|
|
91
|
+
function vt() {
|
|
85
92
|
try {
|
|
86
|
-
const
|
|
87
|
-
if (!
|
|
88
|
-
const
|
|
89
|
-
throw
|
|
93
|
+
const e = yt(Je);
|
|
94
|
+
if (!e) {
|
|
95
|
+
const t = "useQuantaContext must be used within a QuantaProvider";
|
|
96
|
+
throw A.error(`QuantaContext: ${t}`), new Error(t);
|
|
90
97
|
}
|
|
91
|
-
return
|
|
92
|
-
} catch (
|
|
93
|
-
throw
|
|
94
|
-
`QuantaContext: Failed to access context: ${
|
|
95
|
-
),
|
|
98
|
+
return e;
|
|
99
|
+
} catch (e) {
|
|
100
|
+
throw A.error(
|
|
101
|
+
`QuantaContext: Failed to access context: ${e instanceof Error ? e.message : String(e)}`
|
|
102
|
+
), e;
|
|
96
103
|
}
|
|
97
104
|
}
|
|
98
|
-
function
|
|
105
|
+
function ar(e, t) {
|
|
99
106
|
try {
|
|
100
|
-
const { stores:
|
|
101
|
-
if (!
|
|
102
|
-
const
|
|
103
|
-
throw
|
|
107
|
+
const { stores: r } = vt(), i = r[e];
|
|
108
|
+
if (!i) {
|
|
109
|
+
const l = `Store with name "${e}" does not exist in the context.`;
|
|
110
|
+
throw A.error(`useStore: ${l}`), new Error(l);
|
|
104
111
|
}
|
|
105
|
-
return
|
|
106
|
-
} catch (
|
|
107
|
-
throw
|
|
108
|
-
`useStore: Failed to access store "${
|
|
109
|
-
),
|
|
112
|
+
return t ? Ae(i, t) : Ae(i);
|
|
113
|
+
} catch (r) {
|
|
114
|
+
throw A.error(
|
|
115
|
+
`useStore: Failed to access store "${e}": ${r instanceof Error ? r.message : String(r)}`
|
|
116
|
+
), r;
|
|
110
117
|
}
|
|
111
118
|
}
|
|
112
|
-
function
|
|
119
|
+
function cr(e, t, r, i) {
|
|
113
120
|
try {
|
|
114
|
-
const
|
|
115
|
-
|
|
121
|
+
const l = fe(
|
|
122
|
+
void 0
|
|
123
|
+
);
|
|
124
|
+
if (!l.current)
|
|
116
125
|
try {
|
|
117
|
-
|
|
118
|
-
state:
|
|
119
|
-
getters:
|
|
120
|
-
actions:
|
|
126
|
+
l.current = gt(e, {
|
|
127
|
+
state: t,
|
|
128
|
+
getters: r,
|
|
129
|
+
actions: i
|
|
121
130
|
});
|
|
122
|
-
} catch (
|
|
123
|
-
throw
|
|
124
|
-
`useCreateStore: Failed to create store "${
|
|
125
|
-
),
|
|
131
|
+
} catch (a) {
|
|
132
|
+
throw A.error(
|
|
133
|
+
`useCreateStore: Failed to create store "${e}": ${a instanceof Error ? a.message : String(a)}`
|
|
134
|
+
), a;
|
|
126
135
|
}
|
|
127
|
-
return
|
|
128
|
-
} catch (
|
|
129
|
-
throw
|
|
130
|
-
`useCreateStore: Hook execution failed: ${
|
|
131
|
-
),
|
|
136
|
+
return l.current;
|
|
137
|
+
} catch (l) {
|
|
138
|
+
throw A.error(
|
|
139
|
+
`useCreateStore: Hook execution failed: ${l instanceof Error ? l.message : String(l)}`
|
|
140
|
+
), l;
|
|
132
141
|
}
|
|
133
142
|
}
|
|
134
|
-
var
|
|
135
|
-
var
|
|
136
|
-
function
|
|
137
|
-
if (
|
|
138
|
-
|
|
139
|
-
var
|
|
140
|
-
function
|
|
141
|
-
var
|
|
142
|
-
if (
|
|
143
|
-
|
|
144
|
-
for (var
|
|
145
|
-
|
|
146
|
-
} else
|
|
147
|
-
return
|
|
148
|
-
$$typeof:
|
|
149
|
-
type:
|
|
150
|
-
key:
|
|
151
|
-
ref:
|
|
152
|
-
props:
|
|
143
|
+
var K = { exports: {} }, q = {};
|
|
144
|
+
var Re;
|
|
145
|
+
function mt() {
|
|
146
|
+
if (Re) return q;
|
|
147
|
+
Re = 1;
|
|
148
|
+
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
149
|
+
function r(i, l, a) {
|
|
150
|
+
var s = null;
|
|
151
|
+
if (a !== void 0 && (s = "" + a), l.key !== void 0 && (s = "" + l.key), "key" in l) {
|
|
152
|
+
a = {};
|
|
153
|
+
for (var h in l)
|
|
154
|
+
h !== "key" && (a[h] = l[h]);
|
|
155
|
+
} else a = l;
|
|
156
|
+
return l = a.ref, {
|
|
157
|
+
$$typeof: e,
|
|
158
|
+
type: i,
|
|
159
|
+
key: s,
|
|
160
|
+
ref: l !== void 0 ? l : null,
|
|
161
|
+
props: a
|
|
153
162
|
};
|
|
154
163
|
}
|
|
155
|
-
return
|
|
156
|
-
}
|
|
157
|
-
var
|
|
158
|
-
var
|
|
159
|
-
function
|
|
160
|
-
return
|
|
161
|
-
function
|
|
162
|
-
if (
|
|
163
|
-
if (typeof
|
|
164
|
-
return
|
|
165
|
-
if (typeof
|
|
166
|
-
switch (
|
|
167
|
-
case
|
|
164
|
+
return q.Fragment = t, q.jsx = r, q.jsxs = r, q;
|
|
165
|
+
}
|
|
166
|
+
var W = {};
|
|
167
|
+
var je;
|
|
168
|
+
function bt() {
|
|
169
|
+
return je || (je = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
170
|
+
function e(c) {
|
|
171
|
+
if (c == null) return null;
|
|
172
|
+
if (typeof c == "function")
|
|
173
|
+
return c.$$typeof === T ? null : c.displayName || c.name || null;
|
|
174
|
+
if (typeof c == "string") return c;
|
|
175
|
+
switch (c) {
|
|
176
|
+
case v:
|
|
168
177
|
return "Fragment";
|
|
169
|
-
case
|
|
178
|
+
case g:
|
|
170
179
|
return "Profiler";
|
|
171
|
-
case
|
|
180
|
+
case _:
|
|
172
181
|
return "StrictMode";
|
|
173
|
-
case
|
|
182
|
+
case z:
|
|
174
183
|
return "Suspense";
|
|
175
|
-
case
|
|
184
|
+
case X:
|
|
176
185
|
return "SuspenseList";
|
|
177
|
-
case
|
|
186
|
+
case Q:
|
|
178
187
|
return "Activity";
|
|
179
188
|
}
|
|
180
|
-
if (typeof
|
|
181
|
-
switch (typeof
|
|
189
|
+
if (typeof c == "object")
|
|
190
|
+
switch (typeof c.tag == "number" && console.error(
|
|
182
191
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
183
|
-
),
|
|
184
|
-
case
|
|
192
|
+
), c.$$typeof) {
|
|
193
|
+
case C:
|
|
185
194
|
return "Portal";
|
|
195
|
+
case j:
|
|
196
|
+
return c.displayName || "Context";
|
|
197
|
+
case R:
|
|
198
|
+
return (c._context.displayName || "Context") + ".Consumer";
|
|
199
|
+
case U:
|
|
200
|
+
var y = c.render;
|
|
201
|
+
return c = c.displayName, c || (c = y.displayName || y.name || "", c = c !== "" ? "ForwardRef(" + c + ")" : "ForwardRef"), c;
|
|
186
202
|
case H:
|
|
187
|
-
return
|
|
188
|
-
case
|
|
189
|
-
|
|
190
|
-
case B:
|
|
191
|
-
var t = e.render;
|
|
192
|
-
return e = e.displayName, e || (e = t.displayName || t.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
193
|
-
case ee:
|
|
194
|
-
return t = e.displayName || null, t !== null ? t : r(e.type) || "Memo";
|
|
195
|
-
case $:
|
|
196
|
-
t = e._payload, e = e._init;
|
|
203
|
+
return y = c.displayName || null, y !== null ? y : e(c.type) || "Memo";
|
|
204
|
+
case P:
|
|
205
|
+
y = c._payload, c = c._init;
|
|
197
206
|
try {
|
|
198
|
-
return
|
|
207
|
+
return e(c(y));
|
|
199
208
|
} catch {
|
|
200
209
|
}
|
|
201
210
|
}
|
|
202
211
|
return null;
|
|
203
212
|
}
|
|
204
|
-
function c
|
|
205
|
-
return "" +
|
|
213
|
+
function t(c) {
|
|
214
|
+
return "" + c;
|
|
206
215
|
}
|
|
207
|
-
function
|
|
216
|
+
function r(c) {
|
|
208
217
|
try {
|
|
209
|
-
c
|
|
210
|
-
var
|
|
218
|
+
t(c);
|
|
219
|
+
var y = !1;
|
|
211
220
|
} catch {
|
|
212
|
-
|
|
221
|
+
y = !0;
|
|
213
222
|
}
|
|
214
|
-
if (
|
|
215
|
-
|
|
216
|
-
var
|
|
217
|
-
return
|
|
218
|
-
|
|
223
|
+
if (y) {
|
|
224
|
+
y = console;
|
|
225
|
+
var m = y.error, S = typeof Symbol == "function" && Symbol.toStringTag && c[Symbol.toStringTag] || c.constructor.name || "Object";
|
|
226
|
+
return m.call(
|
|
227
|
+
y,
|
|
219
228
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
220
|
-
|
|
221
|
-
), c
|
|
229
|
+
S
|
|
230
|
+
), t(c);
|
|
222
231
|
}
|
|
223
232
|
}
|
|
224
|
-
function
|
|
225
|
-
if (
|
|
226
|
-
if (typeof
|
|
233
|
+
function i(c) {
|
|
234
|
+
if (c === v) return "<>";
|
|
235
|
+
if (typeof c == "object" && c !== null && c.$$typeof === P)
|
|
227
236
|
return "<...>";
|
|
228
237
|
try {
|
|
229
|
-
var
|
|
230
|
-
return
|
|
238
|
+
var y = e(c);
|
|
239
|
+
return y ? "<" + y + ">" : "<...>";
|
|
231
240
|
} catch {
|
|
232
241
|
return "<...>";
|
|
233
242
|
}
|
|
234
243
|
}
|
|
235
|
-
function
|
|
236
|
-
var
|
|
237
|
-
return
|
|
244
|
+
function l() {
|
|
245
|
+
var c = O.A;
|
|
246
|
+
return c === null ? null : c.getOwner();
|
|
238
247
|
}
|
|
239
|
-
function
|
|
248
|
+
function a() {
|
|
240
249
|
return Error("react-stack-top-frame");
|
|
241
250
|
}
|
|
242
|
-
function
|
|
243
|
-
if (
|
|
244
|
-
var
|
|
245
|
-
if (
|
|
251
|
+
function s(c) {
|
|
252
|
+
if (be.call(c, "key")) {
|
|
253
|
+
var y = Object.getOwnPropertyDescriptor(c, "key").get;
|
|
254
|
+
if (y && y.isReactWarning) return !1;
|
|
246
255
|
}
|
|
247
|
-
return
|
|
256
|
+
return c.key !== void 0;
|
|
248
257
|
}
|
|
249
|
-
function
|
|
250
|
-
function
|
|
251
|
-
|
|
258
|
+
function h(c, y) {
|
|
259
|
+
function m() {
|
|
260
|
+
ke || (ke = !0, console.error(
|
|
252
261
|
"%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)",
|
|
253
|
-
|
|
262
|
+
y
|
|
254
263
|
));
|
|
255
264
|
}
|
|
256
|
-
|
|
257
|
-
get:
|
|
265
|
+
m.isReactWarning = !0, Object.defineProperty(c, "key", {
|
|
266
|
+
get: m,
|
|
258
267
|
configurable: !0
|
|
259
268
|
});
|
|
260
269
|
}
|
|
261
|
-
function
|
|
262
|
-
var
|
|
263
|
-
return
|
|
270
|
+
function f() {
|
|
271
|
+
var c = e(this.type);
|
|
272
|
+
return Ne[c] || (Ne[c] = !0, console.error(
|
|
264
273
|
"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."
|
|
265
|
-
)),
|
|
274
|
+
)), c = this.props.ref, c !== void 0 ? c : null;
|
|
266
275
|
}
|
|
267
|
-
function
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
276
|
+
function d(c, y, m, S, Z, se) {
|
|
277
|
+
var E = m.ref;
|
|
278
|
+
return c = {
|
|
279
|
+
$$typeof: b,
|
|
280
|
+
type: c,
|
|
281
|
+
key: y,
|
|
282
|
+
props: m,
|
|
283
|
+
_owner: S
|
|
284
|
+
}, (E !== void 0 ? E : null) !== null ? Object.defineProperty(c, "ref", {
|
|
275
285
|
enumerable: !1,
|
|
276
|
-
get:
|
|
277
|
-
}) : Object.defineProperty(
|
|
286
|
+
get: f
|
|
287
|
+
}) : Object.defineProperty(c, "ref", { enumerable: !1, value: null }), c._store = {}, Object.defineProperty(c._store, "validated", {
|
|
278
288
|
configurable: !1,
|
|
279
289
|
enumerable: !1,
|
|
280
290
|
writable: !0,
|
|
281
291
|
value: 0
|
|
282
|
-
}), Object.defineProperty(
|
|
292
|
+
}), Object.defineProperty(c, "_debugInfo", {
|
|
283
293
|
configurable: !1,
|
|
284
294
|
enumerable: !1,
|
|
285
295
|
writable: !0,
|
|
286
296
|
value: null
|
|
287
|
-
}), Object.defineProperty(
|
|
297
|
+
}), Object.defineProperty(c, "_debugStack", {
|
|
288
298
|
configurable: !1,
|
|
289
299
|
enumerable: !1,
|
|
290
300
|
writable: !0,
|
|
291
|
-
value:
|
|
292
|
-
}), Object.defineProperty(
|
|
301
|
+
value: Z
|
|
302
|
+
}), Object.defineProperty(c, "_debugTask", {
|
|
293
303
|
configurable: !1,
|
|
294
304
|
enumerable: !1,
|
|
295
305
|
writable: !0,
|
|
296
|
-
value:
|
|
297
|
-
}), Object.freeze && (Object.freeze(
|
|
306
|
+
value: se
|
|
307
|
+
}), Object.freeze && (Object.freeze(c.props), Object.freeze(c)), c;
|
|
298
308
|
}
|
|
299
|
-
function
|
|
300
|
-
var
|
|
301
|
-
if (
|
|
302
|
-
if (
|
|
303
|
-
if (
|
|
304
|
-
for (
|
|
305
|
-
|
|
306
|
-
Object.freeze && Object.freeze(
|
|
309
|
+
function p(c, y, m, S, Z, se) {
|
|
310
|
+
var E = y.children;
|
|
311
|
+
if (E !== void 0)
|
|
312
|
+
if (S)
|
|
313
|
+
if (ft(E)) {
|
|
314
|
+
for (S = 0; S < E.length; S++)
|
|
315
|
+
o(E[S]);
|
|
316
|
+
Object.freeze && Object.freeze(E);
|
|
307
317
|
} else
|
|
308
318
|
console.error(
|
|
309
319
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
310
320
|
);
|
|
311
|
-
else
|
|
312
|
-
if (
|
|
313
|
-
|
|
314
|
-
var
|
|
315
|
-
return
|
|
321
|
+
else o(E);
|
|
322
|
+
if (be.call(y, "key")) {
|
|
323
|
+
E = e(c);
|
|
324
|
+
var B = Object.keys(y).filter(function(pt) {
|
|
325
|
+
return pt !== "key";
|
|
316
326
|
});
|
|
317
|
-
|
|
327
|
+
S = 0 < B.length ? "{key: someKey, " + B.join(": ..., ") + ": ...}" : "{key: someKey}", Ce[E + S] || (B = 0 < B.length ? "{" + B.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
318
328
|
`A props object containing a "key" prop is being spread into JSX:
|
|
319
329
|
let props = %s;
|
|
320
330
|
<%s {...props} />
|
|
321
331
|
React keys must be passed directly to JSX without using spread:
|
|
322
332
|
let props = %s;
|
|
323
333
|
<%s key={someKey} {...props} />`,
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
),
|
|
334
|
+
S,
|
|
335
|
+
E,
|
|
336
|
+
B,
|
|
337
|
+
E
|
|
338
|
+
), Ce[E + S] = !0);
|
|
329
339
|
}
|
|
330
|
-
if (
|
|
331
|
-
|
|
332
|
-
for (var
|
|
333
|
-
|
|
334
|
-
} else
|
|
335
|
-
return
|
|
336
|
-
|
|
337
|
-
typeof
|
|
338
|
-
),
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
y,
|
|
346
|
-
A
|
|
340
|
+
if (E = null, m !== void 0 && (r(m), E = "" + m), s(y) && (r(y.key), E = "" + y.key), "key" in y) {
|
|
341
|
+
m = {};
|
|
342
|
+
for (var he in y)
|
|
343
|
+
he !== "key" && (m[he] = y[he]);
|
|
344
|
+
} else m = y;
|
|
345
|
+
return E && h(
|
|
346
|
+
m,
|
|
347
|
+
typeof c == "function" ? c.displayName || c.name || "Unknown" : c
|
|
348
|
+
), d(
|
|
349
|
+
c,
|
|
350
|
+
E,
|
|
351
|
+
m,
|
|
352
|
+
l(),
|
|
353
|
+
Z,
|
|
354
|
+
se
|
|
347
355
|
);
|
|
348
356
|
}
|
|
349
|
-
function
|
|
350
|
-
typeof
|
|
357
|
+
function o(c) {
|
|
358
|
+
u(c) ? c._store && (c._store.validated = 1) : typeof c == "object" && c !== null && c.$$typeof === P && (c._payload.status === "fulfilled" ? u(c._payload.value) && c._payload.value._store && (c._payload.value._store.validated = 1) : c._store && (c._store.validated = 1));
|
|
351
359
|
}
|
|
352
|
-
|
|
360
|
+
function u(c) {
|
|
361
|
+
return typeof c == "object" && c !== null && c.$$typeof === b;
|
|
362
|
+
}
|
|
363
|
+
var x = ut, b = Symbol.for("react.transitional.element"), C = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), R = Symbol.for("react.consumer"), j = Symbol.for("react.context"), U = Symbol.for("react.forward_ref"), z = Symbol.for("react.suspense"), X = Symbol.for("react.suspense_list"), H = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), Q = Symbol.for("react.activity"), T = Symbol.for("react.client.reference"), O = x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, be = Object.prototype.hasOwnProperty, ft = Array.isArray, ne = console.createTask ? console.createTask : function() {
|
|
353
364
|
return null;
|
|
354
365
|
};
|
|
355
|
-
|
|
356
|
-
react_stack_bottom_frame: function(
|
|
357
|
-
return
|
|
366
|
+
x = {
|
|
367
|
+
react_stack_bottom_frame: function(c) {
|
|
368
|
+
return c();
|
|
358
369
|
}
|
|
359
370
|
};
|
|
360
|
-
var
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
)(),
|
|
364
|
-
|
|
365
|
-
var
|
|
366
|
-
return
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
371
|
+
var ke, Ne = {}, Se = x.react_stack_bottom_frame.bind(
|
|
372
|
+
x,
|
|
373
|
+
a
|
|
374
|
+
)(), Ee = ne(i(a)), Ce = {};
|
|
375
|
+
W.Fragment = v, W.jsx = function(c, y, m) {
|
|
376
|
+
var S = 1e4 > O.recentlyCreatedOwnerStacks++;
|
|
377
|
+
return p(
|
|
378
|
+
c,
|
|
379
|
+
y,
|
|
380
|
+
m,
|
|
370
381
|
!1,
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
b ? Error("react-stack-top-frame") : I,
|
|
374
|
-
b ? j(u(e)) : Q
|
|
382
|
+
S ? Error("react-stack-top-frame") : Se,
|
|
383
|
+
S ? ne(i(c)) : Ee
|
|
375
384
|
);
|
|
376
|
-
},
|
|
377
|
-
var
|
|
378
|
-
return
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
385
|
+
}, W.jsxs = function(c, y, m) {
|
|
386
|
+
var S = 1e4 > O.recentlyCreatedOwnerStacks++;
|
|
387
|
+
return p(
|
|
388
|
+
c,
|
|
389
|
+
y,
|
|
390
|
+
m,
|
|
382
391
|
!0,
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
b ? Error("react-stack-top-frame") : I,
|
|
386
|
-
b ? j(u(e)) : Q
|
|
392
|
+
S ? Error("react-stack-top-frame") : Se,
|
|
393
|
+
S ? ne(i(c)) : Ee
|
|
387
394
|
);
|
|
388
395
|
};
|
|
389
|
-
})()),
|
|
396
|
+
})()), W;
|
|
390
397
|
}
|
|
391
|
-
var
|
|
392
|
-
function
|
|
393
|
-
return
|
|
398
|
+
var Oe;
|
|
399
|
+
function kt() {
|
|
400
|
+
return Oe || (Oe = 1, process.env.NODE_ENV === "production" ? K.exports = mt() : K.exports = bt()), K.exports;
|
|
394
401
|
}
|
|
395
|
-
var
|
|
396
|
-
function
|
|
402
|
+
var Nt = kt();
|
|
403
|
+
function nr({ stores: e, children: t }) {
|
|
397
404
|
try {
|
|
398
|
-
if (!
|
|
399
|
-
const
|
|
400
|
-
throw
|
|
405
|
+
if (!e || typeof e != "object") {
|
|
406
|
+
const r = "QuantaProvider: Invalid stores prop provided";
|
|
407
|
+
throw A.error(r), new Error(r);
|
|
401
408
|
}
|
|
402
|
-
for (const [
|
|
403
|
-
if (!
|
|
404
|
-
const
|
|
405
|
-
throw
|
|
409
|
+
for (const [r, i] of Object.entries(e))
|
|
410
|
+
if (!i || typeof i != "object") {
|
|
411
|
+
const l = `QuantaProvider: Invalid store "${r}" provided`;
|
|
412
|
+
throw A.error(l), new Error(l);
|
|
406
413
|
}
|
|
407
|
-
return /* @__PURE__ */
|
|
408
|
-
} catch (
|
|
409
|
-
throw
|
|
410
|
-
`QuantaProvider: Failed to render provider: ${
|
|
411
|
-
),
|
|
414
|
+
return /* @__PURE__ */ Nt.jsx(Je.Provider, { value: { stores: e }, children: t });
|
|
415
|
+
} catch (r) {
|
|
416
|
+
throw A.error(
|
|
417
|
+
`QuantaProvider: Failed to render provider: ${r instanceof Error ? r.message : String(r)}`
|
|
418
|
+
), r;
|
|
412
419
|
}
|
|
413
420
|
}
|
|
421
|
+
var ae, w, Ge, I, Pe, Xe, Ze, Ke, ge, pe, ue, V = {}, et = [], St = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, G = Array.isArray;
|
|
422
|
+
function $(e, t) {
|
|
423
|
+
for (var r in t) e[r] = t[r];
|
|
424
|
+
return e;
|
|
425
|
+
}
|
|
426
|
+
function we(e) {
|
|
427
|
+
e && e.parentNode && e.parentNode.removeChild(e);
|
|
428
|
+
}
|
|
429
|
+
function J(e, t, r) {
|
|
430
|
+
var i, l, a, s = {};
|
|
431
|
+
for (a in t) a == "key" ? i = t[a] : a == "ref" ? l = t[a] : s[a] = t[a];
|
|
432
|
+
if (arguments.length > 2 && (s.children = arguments.length > 3 ? ae.call(arguments, 2) : r), typeof e == "function" && e.defaultProps != null) for (a in e.defaultProps) s[a] === void 0 && (s[a] = e.defaultProps[a]);
|
|
433
|
+
return te(e, s, i, l, null);
|
|
434
|
+
}
|
|
435
|
+
function te(e, t, r, i, l) {
|
|
436
|
+
var a = { type: e, props: t, key: r, ref: i, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: l ?? ++Ge, __i: -1, __u: 0 };
|
|
437
|
+
return l == null && w.vnode != null && w.vnode(a), a;
|
|
438
|
+
}
|
|
439
|
+
function ce(e) {
|
|
440
|
+
return e.children;
|
|
441
|
+
}
|
|
442
|
+
function re(e, t) {
|
|
443
|
+
this.props = e, this.context = t;
|
|
444
|
+
}
|
|
445
|
+
function L(e, t) {
|
|
446
|
+
if (t == null) return e.__ ? L(e.__, e.__i + 1) : null;
|
|
447
|
+
for (var r; t < e.__k.length; t++) if ((r = e.__k[t]) != null && r.__e != null) return r.__e;
|
|
448
|
+
return typeof e.type == "function" ? L(e) : null;
|
|
449
|
+
}
|
|
450
|
+
function tt(e) {
|
|
451
|
+
var t, r;
|
|
452
|
+
if ((e = e.__) != null && e.__c != null) {
|
|
453
|
+
for (e.__e = e.__c.base = null, t = 0; t < e.__k.length; t++) if ((r = e.__k[t]) != null && r.__e != null) {
|
|
454
|
+
e.__e = e.__c.base = r.__e;
|
|
455
|
+
break;
|
|
456
|
+
}
|
|
457
|
+
return tt(e);
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
function $e(e) {
|
|
461
|
+
(!e.__d && (e.__d = !0) && I.push(e) && !le.__r++ || Pe != w.debounceRendering) && ((Pe = w.debounceRendering) || Xe)(le);
|
|
462
|
+
}
|
|
463
|
+
function le() {
|
|
464
|
+
for (var e, t, r, i, l, a, s, h = 1; I.length; ) I.length > h && I.sort(Ze), e = I.shift(), h = I.length, e.__d && (r = void 0, i = void 0, l = (i = (t = e).__v).__e, a = [], s = [], t.__P && ((r = $({}, i)).__v = i.__v + 1, w.vnode && w.vnode(r), ve(t.__P, r, i, t.__n, t.__P.namespaceURI, 32 & i.__u ? [l] : null, a, l ?? L(i), !!(32 & i.__u), s), r.__v = i.__v, r.__.__k[r.__i] = r, ot(a, r, s), i.__e = i.__ = null, r.__e != l && tt(r)));
|
|
465
|
+
le.__r = 0;
|
|
466
|
+
}
|
|
467
|
+
function rt(e, t, r, i, l, a, s, h, f, d, p) {
|
|
468
|
+
var o, u, x, b, C, v, _, g = i && i.__k || et, R = t.length;
|
|
469
|
+
for (f = Et(r, t, g, f, R), o = 0; o < R; o++) (x = r.__k[o]) != null && (u = x.__i == -1 ? V : g[x.__i] || V, x.__i = o, v = ve(e, x, u, l, a, s, h, f, d, p), b = x.__e, x.ref && u.ref != x.ref && (u.ref && me(u.ref, null, x), p.push(x.ref, x.__c || b, x)), C == null && b != null && (C = b), (_ = !!(4 & x.__u)) || u.__k === x.__k ? f = it(x, f, e, _) : typeof x.type == "function" && v !== void 0 ? f = v : b && (f = b.nextSibling), x.__u &= -7);
|
|
470
|
+
return r.__e = C, f;
|
|
471
|
+
}
|
|
472
|
+
function Et(e, t, r, i, l) {
|
|
473
|
+
var a, s, h, f, d, p = r.length, o = p, u = 0;
|
|
474
|
+
for (e.__k = new Array(l), a = 0; a < l; a++) (s = t[a]) != null && typeof s != "boolean" && typeof s != "function" ? (f = a + u, (s = e.__k[a] = typeof s == "string" || typeof s == "number" || typeof s == "bigint" || s.constructor == String ? te(null, s, null, null, null) : G(s) ? te(ce, { children: s }, null, null, null) : s.constructor == null && s.__b > 0 ? te(s.type, s.props, s.key, s.ref ? s.ref : null, s.__v) : s).__ = e, s.__b = e.__b + 1, h = null, (d = s.__i = Ct(s, r, f, o)) != -1 && (o--, (h = r[d]) && (h.__u |= 2)), h == null || h.__v == null ? (d == -1 && (l > p ? u-- : l < p && u++), typeof s.type != "function" && (s.__u |= 4)) : d != f && (d == f - 1 ? u-- : d == f + 1 ? u++ : (d > f ? u-- : u++, s.__u |= 4))) : e.__k[a] = null;
|
|
475
|
+
if (o) for (a = 0; a < p; a++) (h = r[a]) != null && (2 & h.__u) == 0 && (h.__e == i && (i = L(h)), ct(h, h));
|
|
476
|
+
return i;
|
|
477
|
+
}
|
|
478
|
+
function it(e, t, r, i) {
|
|
479
|
+
var l, a;
|
|
480
|
+
if (typeof e.type == "function") {
|
|
481
|
+
for (l = e.__k, a = 0; l && a < l.length; a++) l[a] && (l[a].__ = e, t = it(l[a], t, r, i));
|
|
482
|
+
return t;
|
|
483
|
+
}
|
|
484
|
+
e.__e != t && (i && (t && e.type && !t.parentNode && (t = L(e)), r.insertBefore(e.__e, t || null)), t = e.__e);
|
|
485
|
+
do
|
|
486
|
+
t = t && t.nextSibling;
|
|
487
|
+
while (t != null && t.nodeType == 8);
|
|
488
|
+
return t;
|
|
489
|
+
}
|
|
490
|
+
function lt(e, t) {
|
|
491
|
+
return t = t || [], e == null || typeof e == "boolean" || (G(e) ? e.some(function(r) {
|
|
492
|
+
lt(r, t);
|
|
493
|
+
}) : t.push(e)), t;
|
|
494
|
+
}
|
|
495
|
+
function Ct(e, t, r, i) {
|
|
496
|
+
var l, a, s, h = e.key, f = e.type, d = t[r], p = d != null && (2 & d.__u) == 0;
|
|
497
|
+
if (d === null && e.key == null || p && h == d.key && f == d.type) return r;
|
|
498
|
+
if (i > (p ? 1 : 0)) {
|
|
499
|
+
for (l = r - 1, a = r + 1; l >= 0 || a < t.length; ) if ((d = t[s = l >= 0 ? l-- : a++]) != null && (2 & d.__u) == 0 && h == d.key && f == d.type) return s;
|
|
500
|
+
}
|
|
501
|
+
return -1;
|
|
502
|
+
}
|
|
503
|
+
function Me(e, t, r) {
|
|
504
|
+
t[0] == "-" ? e.setProperty(t, r ?? "") : e[t] = r == null ? "" : typeof r != "number" || St.test(t) ? r : r + "px";
|
|
505
|
+
}
|
|
506
|
+
function ee(e, t, r, i, l) {
|
|
507
|
+
var a, s;
|
|
508
|
+
e: if (t == "style") if (typeof r == "string") e.style.cssText = r;
|
|
509
|
+
else {
|
|
510
|
+
if (typeof i == "string" && (e.style.cssText = i = ""), i) for (t in i) r && t in r || Me(e.style, t, "");
|
|
511
|
+
if (r) for (t in r) i && r[t] == i[t] || Me(e.style, t, r[t]);
|
|
512
|
+
}
|
|
513
|
+
else if (t[0] == "o" && t[1] == "n") a = t != (t = t.replace(Ke, "$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 + a] = r, r ? i ? r.u = i.u : (r.u = ge, e.addEventListener(t, a ? ue : pe, a)) : e.removeEventListener(t, a ? ue : pe, a);
|
|
514
|
+
else {
|
|
515
|
+
if (l == "http://www.w3.org/2000/svg") t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
516
|
+
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 {
|
|
517
|
+
e[t] = r ?? "";
|
|
518
|
+
break e;
|
|
519
|
+
} catch {
|
|
520
|
+
}
|
|
521
|
+
typeof r == "function" || (r == null || r === !1 && t[4] != "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && r == 1 ? "" : r));
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
function De(e) {
|
|
525
|
+
return function(t) {
|
|
526
|
+
if (this.l) {
|
|
527
|
+
var r = this.l[t.type + e];
|
|
528
|
+
if (t.t == null) t.t = ge++;
|
|
529
|
+
else if (t.t < r.u) return;
|
|
530
|
+
return r(w.event ? w.event(t) : t);
|
|
531
|
+
}
|
|
532
|
+
};
|
|
533
|
+
}
|
|
534
|
+
function ve(e, t, r, i, l, a, s, h, f, d) {
|
|
535
|
+
var p, o, u, x, b, C, v, _, g, R, j, U, z, X, H, P, Q, T = t.type;
|
|
536
|
+
if (t.constructor != null) return null;
|
|
537
|
+
128 & r.__u && (f = !!(32 & r.__u), a = [h = t.__e = r.__e]), (p = w.__b) && p(t);
|
|
538
|
+
e: if (typeof T == "function") try {
|
|
539
|
+
if (_ = t.props, g = "prototype" in T && T.prototype.render, R = (p = T.contextType) && i[p.__c], j = p ? R ? R.props.value : p.__ : i, r.__c ? v = (o = t.__c = r.__c).__ = o.__E : (g ? t.__c = o = new T(_, j) : (t.__c = o = new re(_, j), o.constructor = T, o.render = At), R && R.sub(o), o.props = _, o.state || (o.state = {}), o.context = j, o.__n = i, u = o.__d = !0, o.__h = [], o._sb = []), g && o.__s == null && (o.__s = o.state), g && T.getDerivedStateFromProps != null && (o.__s == o.state && (o.__s = $({}, o.__s)), $(o.__s, T.getDerivedStateFromProps(_, o.__s))), x = o.props, b = o.state, o.__v = t, u) g && T.getDerivedStateFromProps == null && o.componentWillMount != null && o.componentWillMount(), g && o.componentDidMount != null && o.__h.push(o.componentDidMount);
|
|
540
|
+
else {
|
|
541
|
+
if (g && T.getDerivedStateFromProps == null && _ !== x && o.componentWillReceiveProps != null && o.componentWillReceiveProps(_, j), !o.__e && o.shouldComponentUpdate != null && o.shouldComponentUpdate(_, o.__s, j) === !1 || t.__v == r.__v) {
|
|
542
|
+
for (t.__v != r.__v && (o.props = _, o.state = o.__s, o.__d = !1), t.__e = r.__e, t.__k = r.__k, t.__k.some(function(O) {
|
|
543
|
+
O && (O.__ = t);
|
|
544
|
+
}), U = 0; U < o._sb.length; U++) o.__h.push(o._sb[U]);
|
|
545
|
+
o._sb = [], o.__h.length && s.push(o);
|
|
546
|
+
break e;
|
|
547
|
+
}
|
|
548
|
+
o.componentWillUpdate != null && o.componentWillUpdate(_, o.__s, j), g && o.componentDidUpdate != null && o.__h.push(function() {
|
|
549
|
+
o.componentDidUpdate(x, b, C);
|
|
550
|
+
});
|
|
551
|
+
}
|
|
552
|
+
if (o.context = j, o.props = _, o.__P = e, o.__e = !1, z = w.__r, X = 0, g) {
|
|
553
|
+
for (o.state = o.__s, o.__d = !1, z && z(t), p = o.render(o.props, o.state, o.context), H = 0; H < o._sb.length; H++) o.__h.push(o._sb[H]);
|
|
554
|
+
o._sb = [];
|
|
555
|
+
} else do
|
|
556
|
+
o.__d = !1, z && z(t), p = o.render(o.props, o.state, o.context), o.state = o.__s;
|
|
557
|
+
while (o.__d && ++X < 25);
|
|
558
|
+
o.state = o.__s, o.getChildContext != null && (i = $($({}, i), o.getChildContext())), g && !u && o.getSnapshotBeforeUpdate != null && (C = o.getSnapshotBeforeUpdate(x, b)), P = p, p != null && p.type === ce && p.key == null && (P = at(p.props.children)), h = rt(e, G(P) ? P : [P], t, r, i, l, a, s, h, f, d), o.base = t.__e, t.__u &= -161, o.__h.length && s.push(o), v && (o.__E = o.__ = null);
|
|
559
|
+
} catch (O) {
|
|
560
|
+
if (t.__v = null, f || a != null) if (O.then) {
|
|
561
|
+
for (t.__u |= f ? 160 : 128; h && h.nodeType == 8 && h.nextSibling; ) h = h.nextSibling;
|
|
562
|
+
a[a.indexOf(h)] = null, t.__e = h;
|
|
563
|
+
} else {
|
|
564
|
+
for (Q = a.length; Q--; ) we(a[Q]);
|
|
565
|
+
xe(t);
|
|
566
|
+
}
|
|
567
|
+
else t.__e = r.__e, t.__k = r.__k, O.then || xe(t);
|
|
568
|
+
w.__e(O, t, r);
|
|
569
|
+
}
|
|
570
|
+
else a == null && t.__v == r.__v ? (t.__k = r.__k, t.__e = r.__e) : h = t.__e = Tt(r.__e, t, r, i, l, a, s, f, d);
|
|
571
|
+
return (p = w.diffed) && p(t), 128 & t.__u ? void 0 : h;
|
|
572
|
+
}
|
|
573
|
+
function xe(e) {
|
|
574
|
+
e && e.__c && (e.__c.__e = !0), e && e.__k && e.__k.forEach(xe);
|
|
575
|
+
}
|
|
576
|
+
function ot(e, t, r) {
|
|
577
|
+
for (var i = 0; i < r.length; i++) me(r[i], r[++i], r[++i]);
|
|
578
|
+
w.__c && w.__c(t, e), e.some(function(l) {
|
|
579
|
+
try {
|
|
580
|
+
e = l.__h, l.__h = [], e.some(function(a) {
|
|
581
|
+
a.call(l);
|
|
582
|
+
});
|
|
583
|
+
} catch (a) {
|
|
584
|
+
w.__e(a, l.__v);
|
|
585
|
+
}
|
|
586
|
+
});
|
|
587
|
+
}
|
|
588
|
+
function at(e) {
|
|
589
|
+
return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : G(e) ? e.map(at) : $({}, e);
|
|
590
|
+
}
|
|
591
|
+
function Tt(e, t, r, i, l, a, s, h, f) {
|
|
592
|
+
var d, p, o, u, x, b, C, v = r.props, _ = t.props, g = t.type;
|
|
593
|
+
if (g == "svg" ? l = "http://www.w3.org/2000/svg" : g == "math" ? l = "http://www.w3.org/1998/Math/MathML" : l || (l = "http://www.w3.org/1999/xhtml"), a != null) {
|
|
594
|
+
for (d = 0; d < a.length; d++) if ((x = a[d]) && "setAttribute" in x == !!g && (g ? x.localName == g : x.nodeType == 3)) {
|
|
595
|
+
e = x, a[d] = null;
|
|
596
|
+
break;
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
if (e == null) {
|
|
600
|
+
if (g == null) return document.createTextNode(_);
|
|
601
|
+
e = document.createElementNS(l, g, _.is && _), h && (w.__m && w.__m(t, a), h = !1), a = null;
|
|
602
|
+
}
|
|
603
|
+
if (g == null) v === _ || h && e.data == _ || (e.data = _);
|
|
604
|
+
else {
|
|
605
|
+
if (a = a && ae.call(e.childNodes), v = r.props || V, !h && a != null) for (v = {}, d = 0; d < e.attributes.length; d++) v[(x = e.attributes[d]).name] = x.value;
|
|
606
|
+
for (d in v) if (x = v[d], d != "children") {
|
|
607
|
+
if (d == "dangerouslySetInnerHTML") o = x;
|
|
608
|
+
else if (!(d in _)) {
|
|
609
|
+
if (d == "value" && "defaultValue" in _ || d == "checked" && "defaultChecked" in _) continue;
|
|
610
|
+
ee(e, d, null, x, l);
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
for (d in _) x = _[d], d == "children" ? u = x : d == "dangerouslySetInnerHTML" ? p = x : d == "value" ? b = x : d == "checked" ? C = x : h && typeof x != "function" || v[d] === x || ee(e, d, x, v[d], l);
|
|
614
|
+
if (p) h || o && (p.__html == o.__html || p.__html == e.innerHTML) || (e.innerHTML = p.__html), t.__k = [];
|
|
615
|
+
else if (o && (e.innerHTML = ""), rt(t.type == "template" ? e.content : e, G(u) ? u : [u], t, r, i, g == "foreignObject" ? "http://www.w3.org/1999/xhtml" : l, a, s, a ? a[0] : r.__k && L(r, 0), h, f), a != null) for (d = a.length; d--; ) we(a[d]);
|
|
616
|
+
h || (d = "value", g == "progress" && b == null ? e.removeAttribute("value") : b != null && (b !== e[d] || g == "progress" && !b || g == "option" && b != v[d]) && ee(e, d, b, v[d], l), d = "checked", C != null && C != e[d] && ee(e, d, C, v[d], l));
|
|
617
|
+
}
|
|
618
|
+
return e;
|
|
619
|
+
}
|
|
620
|
+
function me(e, t, r) {
|
|
621
|
+
try {
|
|
622
|
+
if (typeof e == "function") {
|
|
623
|
+
var i = typeof e.__u == "function";
|
|
624
|
+
i && e.__u(), i && t == null || (e.__u = e(t));
|
|
625
|
+
} else e.current = t;
|
|
626
|
+
} catch (l) {
|
|
627
|
+
w.__e(l, r);
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
function ct(e, t, r) {
|
|
631
|
+
var i, l;
|
|
632
|
+
if (w.unmount && w.unmount(e), (i = e.ref) && (i.current && i.current != e.__e || me(i, null, t)), (i = e.__c) != null) {
|
|
633
|
+
if (i.componentWillUnmount) try {
|
|
634
|
+
i.componentWillUnmount();
|
|
635
|
+
} catch (a) {
|
|
636
|
+
w.__e(a, t);
|
|
637
|
+
}
|
|
638
|
+
i.base = i.__P = null;
|
|
639
|
+
}
|
|
640
|
+
if (i = e.__k) for (l = 0; l < i.length; l++) i[l] && ct(i[l], t, r || typeof e.type != "function");
|
|
641
|
+
r || we(e.__e), e.__c = e.__ = e.__e = void 0;
|
|
642
|
+
}
|
|
643
|
+
function At(e, t, r) {
|
|
644
|
+
return this.constructor(e, r);
|
|
645
|
+
}
|
|
646
|
+
function ze(e, t, r) {
|
|
647
|
+
var i, l, a, s;
|
|
648
|
+
t == document && (t = document.documentElement), w.__ && w.__(e, t), l = (i = !1) ? null : t.__k, a = [], s = [], ve(t, e = t.__k = J(ce, null, [e]), l || V, V, t.namespaceURI, l ? null : t.firstChild ? ae.call(t.childNodes) : null, a, l ? l.__e : t.firstChild, i, s), ot(a, e, s);
|
|
649
|
+
}
|
|
650
|
+
ae = et.slice, w = { __e: function(e, t, r, i) {
|
|
651
|
+
for (var l, a, s; t = t.__; ) if ((l = t.__c) && !l.__) try {
|
|
652
|
+
if ((a = l.constructor) && a.getDerivedStateFromError != null && (l.setState(a.getDerivedStateFromError(e)), s = l.__d), l.componentDidCatch != null && (l.componentDidCatch(e, i || {}), s = l.__d), s) return l.__E = l;
|
|
653
|
+
} catch (h) {
|
|
654
|
+
e = h;
|
|
655
|
+
}
|
|
656
|
+
throw e;
|
|
657
|
+
} }, Ge = 0, re.prototype.setState = function(e, t) {
|
|
658
|
+
var r;
|
|
659
|
+
r = this.__s != null && this.__s != this.state ? this.__s : this.__s = $({}, this.state), typeof e == "function" && (e = e($({}, r), this.props)), e && $(r, e), e != null && this.__v && (t && this._sb.push(t), $e(this));
|
|
660
|
+
}, re.prototype.forceUpdate = function(e) {
|
|
661
|
+
this.__v && (this.__e = !0, e && this.__h.push(e), $e(this));
|
|
662
|
+
}, re.prototype.render = ce, I = [], Xe = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Ze = function(e, t) {
|
|
663
|
+
return e.__v.__b - t.__v.__b;
|
|
664
|
+
}, le.__r = 0, Ke = /(PointerCapture)$|Capture$/i, ge = 0, pe = De(!1), ue = De(!0);
|
|
665
|
+
var Rt = 0;
|
|
666
|
+
function n(e, t, r, i, l, a) {
|
|
667
|
+
t || (t = {});
|
|
668
|
+
var s, h, f = t;
|
|
669
|
+
if ("ref" in f) for (h in f = {}, t) h == "ref" ? s = t[h] : f[h] = t[h];
|
|
670
|
+
var d = { type: e, props: f, key: r, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Rt, __i: -1, __u: 0, __source: l, __self: a };
|
|
671
|
+
if (typeof e == "function" && (s = e.defaultProps)) for (h in s) f[h] === void 0 && (f[h] = s[h]);
|
|
672
|
+
return w.vnode && w.vnode(d), d;
|
|
673
|
+
}
|
|
674
|
+
var oe, k, de, Fe, ye = 0, nt = [], N = w, Ie = N.__b, Ue = N.__r, He = N.diffed, Be = N.__c, Le = N.unmount, Qe = N.__;
|
|
675
|
+
function st(e, t) {
|
|
676
|
+
N.__h && N.__h(k, e, ye || t), ye = 0;
|
|
677
|
+
var r = k.__H || (k.__H = { __: [], __h: [] });
|
|
678
|
+
return e >= r.__.length && r.__.push({}), r.__[e];
|
|
679
|
+
}
|
|
680
|
+
function Y(e) {
|
|
681
|
+
return ye = 1, jt(ht, e);
|
|
682
|
+
}
|
|
683
|
+
function jt(e, t, r) {
|
|
684
|
+
var i = st(oe++, 2);
|
|
685
|
+
if (i.t = e, !i.__c && (i.__ = [ht(void 0, t), function(h) {
|
|
686
|
+
var f = i.__N ? i.__N[0] : i.__[0], d = i.t(f, h);
|
|
687
|
+
f !== d && (i.__N = [d, i.__[1]], i.__c.setState({}));
|
|
688
|
+
}], i.__c = k, !k.__f)) {
|
|
689
|
+
var l = function(h, f, d) {
|
|
690
|
+
if (!i.__c.__H) return !0;
|
|
691
|
+
var p = i.__c.__H.__.filter(function(u) {
|
|
692
|
+
return !!u.__c;
|
|
693
|
+
});
|
|
694
|
+
if (p.every(function(u) {
|
|
695
|
+
return !u.__N;
|
|
696
|
+
})) return !a || a.call(this, h, f, d);
|
|
697
|
+
var o = i.__c.props !== h;
|
|
698
|
+
return p.forEach(function(u) {
|
|
699
|
+
if (u.__N) {
|
|
700
|
+
var x = u.__[0];
|
|
701
|
+
u.__ = u.__N, u.__N = void 0, x !== u.__[0] && (o = !0);
|
|
702
|
+
}
|
|
703
|
+
}), a && a.call(this, h, f, d) || o;
|
|
704
|
+
};
|
|
705
|
+
k.__f = !0;
|
|
706
|
+
var a = k.shouldComponentUpdate, s = k.componentWillUpdate;
|
|
707
|
+
k.componentWillUpdate = function(h, f, d) {
|
|
708
|
+
if (this.__e) {
|
|
709
|
+
var p = a;
|
|
710
|
+
a = void 0, l(h, f, d), a = p;
|
|
711
|
+
}
|
|
712
|
+
s && s.call(this, h, f, d);
|
|
713
|
+
}, k.shouldComponentUpdate = l;
|
|
714
|
+
}
|
|
715
|
+
return i.__N || i.__;
|
|
716
|
+
}
|
|
717
|
+
function Ot(e, t) {
|
|
718
|
+
var r = st(oe++, 3);
|
|
719
|
+
!N.__s && Mt(r.__H, t) && (r.__ = e, r.u = t, k.__H.__h.push(r));
|
|
720
|
+
}
|
|
721
|
+
function Pt() {
|
|
722
|
+
for (var e; e = nt.shift(); ) if (e.__P && e.__H) try {
|
|
723
|
+
e.__H.__h.forEach(ie), e.__H.__h.forEach(_e), e.__H.__h = [];
|
|
724
|
+
} catch (t) {
|
|
725
|
+
e.__H.__h = [], N.__e(t, e.__v);
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
N.__b = function(e) {
|
|
729
|
+
k = null, Ie && Ie(e);
|
|
730
|
+
}, N.__ = function(e, t) {
|
|
731
|
+
e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Qe && Qe(e, t);
|
|
732
|
+
}, N.__r = function(e) {
|
|
733
|
+
Ue && Ue(e), oe = 0;
|
|
734
|
+
var t = (k = e.__c).__H;
|
|
735
|
+
t && (de === k ? (t.__h = [], k.__h = [], t.__.forEach(function(r) {
|
|
736
|
+
r.__N && (r.__ = r.__N), r.u = r.__N = void 0;
|
|
737
|
+
})) : (t.__h.forEach(ie), t.__h.forEach(_e), t.__h = [], oe = 0)), de = k;
|
|
738
|
+
}, N.diffed = function(e) {
|
|
739
|
+
He && He(e);
|
|
740
|
+
var t = e.__c;
|
|
741
|
+
t && t.__H && (t.__H.__h.length && (nt.push(t) !== 1 && Fe === N.requestAnimationFrame || ((Fe = N.requestAnimationFrame) || $t)(Pt)), t.__H.__.forEach(function(r) {
|
|
742
|
+
r.u && (r.__H = r.u), r.u = void 0;
|
|
743
|
+
})), de = k = null;
|
|
744
|
+
}, N.__c = function(e, t) {
|
|
745
|
+
t.some(function(r) {
|
|
746
|
+
try {
|
|
747
|
+
r.__h.forEach(ie), r.__h = r.__h.filter(function(i) {
|
|
748
|
+
return !i.__ || _e(i);
|
|
749
|
+
});
|
|
750
|
+
} catch (i) {
|
|
751
|
+
t.some(function(l) {
|
|
752
|
+
l.__h && (l.__h = []);
|
|
753
|
+
}), t = [], N.__e(i, r.__v);
|
|
754
|
+
}
|
|
755
|
+
}), Be && Be(e, t);
|
|
756
|
+
}, N.unmount = function(e) {
|
|
757
|
+
Le && Le(e);
|
|
758
|
+
var t, r = e.__c;
|
|
759
|
+
r && r.__H && (r.__H.__.forEach(function(i) {
|
|
760
|
+
try {
|
|
761
|
+
ie(i);
|
|
762
|
+
} catch (l) {
|
|
763
|
+
t = l;
|
|
764
|
+
}
|
|
765
|
+
}), r.__H = void 0, t && N.__e(t, r.__v));
|
|
766
|
+
};
|
|
767
|
+
var qe = typeof requestAnimationFrame == "function";
|
|
768
|
+
function $t(e) {
|
|
769
|
+
var t, r = function() {
|
|
770
|
+
clearTimeout(i), qe && cancelAnimationFrame(t), setTimeout(e);
|
|
771
|
+
}, i = setTimeout(r, 35);
|
|
772
|
+
qe && (t = requestAnimationFrame(r));
|
|
773
|
+
}
|
|
774
|
+
function ie(e) {
|
|
775
|
+
var t = k, r = e.__c;
|
|
776
|
+
typeof r == "function" && (e.__c = void 0, r()), k = t;
|
|
777
|
+
}
|
|
778
|
+
function _e(e) {
|
|
779
|
+
var t = k;
|
|
780
|
+
e.__c = e.__(), k = t;
|
|
781
|
+
}
|
|
782
|
+
function Mt(e, t) {
|
|
783
|
+
return !e || e.length !== t.length || t.some(function(r, i) {
|
|
784
|
+
return r !== e[i];
|
|
785
|
+
});
|
|
786
|
+
}
|
|
787
|
+
function ht(e, t) {
|
|
788
|
+
return typeof t == "function" ? t(e) : t;
|
|
789
|
+
}
|
|
790
|
+
const We = "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";
|
|
791
|
+
function Dt() {
|
|
792
|
+
const [e, t] = Y({}), [r, i] = Y([]), [l, a] = Y(null);
|
|
793
|
+
return Ot(() => {
|
|
794
|
+
let s, h = 0;
|
|
795
|
+
const f = 10, d = () => {
|
|
796
|
+
const o = window.__QUANTA_DEVTOOLS__;
|
|
797
|
+
o ? (console.log("[Quanta DevTools] Connected to bridge"), s = o.subscribe(p)) : h < f ? (h++, setTimeout(d, 500)) : console.warn(
|
|
798
|
+
"[Quanta DevTools] Failed to connect to bridge after retries"
|
|
799
|
+
);
|
|
800
|
+
}, p = (o) => {
|
|
801
|
+
o.type === "STORE_INIT" ? t((u) => {
|
|
802
|
+
const x = {
|
|
803
|
+
...u,
|
|
804
|
+
[o.payload.name]: o.payload.store
|
|
805
|
+
};
|
|
806
|
+
return l || a(o.payload.name), x;
|
|
807
|
+
}) : o.type === "STATE_CHANGE" ? t((u) => {
|
|
808
|
+
const x = o.payload.storeName;
|
|
809
|
+
return u[x] ? { ...u } : u;
|
|
810
|
+
}) : o.type === "ACTION_CALL" && i((u) => [
|
|
811
|
+
{
|
|
812
|
+
id: Math.random().toString(36).substr(2, 9),
|
|
813
|
+
storeName: o.payload.storeName,
|
|
814
|
+
actionName: o.payload.actionName,
|
|
815
|
+
args: o.payload.args,
|
|
816
|
+
timestamp: Date.now()
|
|
817
|
+
},
|
|
818
|
+
...u.slice(0, 49)
|
|
819
|
+
// Keep last 50 actions
|
|
820
|
+
]);
|
|
821
|
+
};
|
|
822
|
+
return d(), () => {
|
|
823
|
+
s && s();
|
|
824
|
+
};
|
|
825
|
+
}, [l]), { stores: e, actions: r, selectedStore: l, setSelectedStore: a };
|
|
826
|
+
}
|
|
827
|
+
const Ye = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), zt = (e) => e.replace(
|
|
828
|
+
/^([A-Z])|[\s-_]+(\w)/g,
|
|
829
|
+
(t, r, i) => i ? i.toUpperCase() : r.toLowerCase()
|
|
830
|
+
), Ve = (e) => {
|
|
831
|
+
const t = zt(e);
|
|
832
|
+
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
833
|
+
}, Ft = (...e) => e.filter((t, r, i) => !!t && t.trim() !== "" && i.indexOf(t) === r).join(" ").trim();
|
|
834
|
+
var It = {
|
|
835
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
836
|
+
width: 24,
|
|
837
|
+
height: 24,
|
|
838
|
+
viewBox: "0 0 24 24",
|
|
839
|
+
fill: "none",
|
|
840
|
+
stroke: "currentColor",
|
|
841
|
+
"stroke-width": "2",
|
|
842
|
+
"stroke-linecap": "round",
|
|
843
|
+
"stroke-linejoin": "round"
|
|
844
|
+
};
|
|
845
|
+
const Ut = ({
|
|
846
|
+
color: e = "currentColor",
|
|
847
|
+
size: t = 24,
|
|
848
|
+
strokeWidth: r = 2,
|
|
849
|
+
absoluteStrokeWidth: i,
|
|
850
|
+
children: l,
|
|
851
|
+
iconNode: a,
|
|
852
|
+
class: s = "",
|
|
853
|
+
...h
|
|
854
|
+
}) => J(
|
|
855
|
+
"svg",
|
|
856
|
+
{
|
|
857
|
+
...It,
|
|
858
|
+
width: String(t),
|
|
859
|
+
height: t,
|
|
860
|
+
stroke: e,
|
|
861
|
+
"stroke-width": i ? Number(r) * 24 / Number(t) : r,
|
|
862
|
+
class: ["lucide", s].join(" "),
|
|
863
|
+
...h
|
|
864
|
+
},
|
|
865
|
+
[...a.map(([f, d]) => J(f, d)), ...lt(l)]
|
|
866
|
+
), D = (e, t) => {
|
|
867
|
+
const r = ({ class: i = "", className: l = "", children: a, ...s }) => J(
|
|
868
|
+
Ut,
|
|
869
|
+
{
|
|
870
|
+
...s,
|
|
871
|
+
iconNode: t,
|
|
872
|
+
class: Ft(
|
|
873
|
+
`lucide-${Ye(Ve(e))}`,
|
|
874
|
+
`lucide-${Ye(e)}`,
|
|
875
|
+
i,
|
|
876
|
+
l
|
|
877
|
+
)
|
|
878
|
+
},
|
|
879
|
+
a
|
|
880
|
+
);
|
|
881
|
+
return r.displayName = Ve(e), r;
|
|
882
|
+
}, Ht = D("chevron-right", [
|
|
883
|
+
["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
|
|
884
|
+
]), Bt = D("circle-x", [
|
|
885
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
886
|
+
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
887
|
+
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
888
|
+
]), Lt = D("database", [
|
|
889
|
+
["ellipse", { cx: "12", cy: "5", rx: "9", ry: "3", key: "msslwz" }],
|
|
890
|
+
["path", { d: "M3 5V19A9 3 0 0 0 21 19V5", key: "1wlel7" }],
|
|
891
|
+
["path", { d: "M3 12A9 3 0 0 0 21 12", key: "mv7ke4" }]
|
|
892
|
+
]), Qt = D("play", [
|
|
893
|
+
[
|
|
894
|
+
"path",
|
|
895
|
+
{
|
|
896
|
+
d: "M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",
|
|
897
|
+
key: "10ikf1"
|
|
898
|
+
}
|
|
899
|
+
]
|
|
900
|
+
]), qt = D("rotate-ccw", [
|
|
901
|
+
["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }],
|
|
902
|
+
["path", { d: "M3 3v5h5", key: "1xhq8a" }]
|
|
903
|
+
]), Wt = D("search", [
|
|
904
|
+
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
905
|
+
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
906
|
+
]), Yt = D("trash-2", [
|
|
907
|
+
["path", { d: "M10 11v6", key: "nco0om" }],
|
|
908
|
+
["path", { d: "M14 11v6", key: "outv1u" }],
|
|
909
|
+
["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
|
|
910
|
+
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
911
|
+
["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
|
|
912
|
+
]), Vt = D("x", [
|
|
913
|
+
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
914
|
+
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
915
|
+
]), Jt = {
|
|
916
|
+
x: Vt,
|
|
917
|
+
play: Qt,
|
|
918
|
+
database: Lt,
|
|
919
|
+
"chevron-right": Ht,
|
|
920
|
+
"rotate-ccw": qt,
|
|
921
|
+
trash: Yt,
|
|
922
|
+
search: Wt,
|
|
923
|
+
"circle-x": Bt
|
|
924
|
+
};
|
|
925
|
+
function M({ name: e, size: t = 16, color: r, className: i }) {
|
|
926
|
+
const l = Jt[e];
|
|
927
|
+
return l ? /* @__PURE__ */ n(l, { size: t, color: r, className: i }) : null;
|
|
928
|
+
}
|
|
929
|
+
const dt = ({ data: e, level: t = 0 }) => typeof e != "object" || e === null ? /* @__PURE__ */ n("span", { className: "text-green-600 dark:text-green-400", children: JSON.stringify(e) }) : /* @__PURE__ */ n("div", { style: { paddingLeft: t * 12 }, children: Object.entries(e).map(([r, i]) => /* @__PURE__ */ n("div", { className: "font-mono text-xs py-0.5", children: [
|
|
930
|
+
/* @__PURE__ */ n("span", { className: "text-purple-400", children: [
|
|
931
|
+
r,
|
|
932
|
+
": "
|
|
933
|
+
] }),
|
|
934
|
+
/* @__PURE__ */ n(dt, { data: i, level: t + 1 })
|
|
935
|
+
] }, r)) }), Gt = ({
|
|
936
|
+
stores: e,
|
|
937
|
+
selectedStore: t
|
|
938
|
+
}) => /* @__PURE__ */ n("div", { className: "flex h-full", children: /* @__PURE__ */ n("div", { className: "flex-1 overflow-y-auto p-4 bg-slate-950", children: t && e[t] ? /* @__PURE__ */ n("div", { className: "space-y-4", children: [
|
|
939
|
+
/* @__PURE__ */ n("div", { className: "bg-slate-900/50 rounded-lg border border-slate-800 p-4", children: [
|
|
940
|
+
/* @__PURE__ */ n("h3", { className: "text-xs font-bold text-slate-500 uppercase tracking-wider mb-3 border-b border-slate-800 pb-2", children: "Store Management" }),
|
|
941
|
+
/* @__PURE__ */ n("div", { className: "flex flex-col gap-3", children: [
|
|
942
|
+
/* @__PURE__ */ n("div", { className: "flex items-center justify-between", children: [
|
|
943
|
+
/* @__PURE__ */ n("div", { className: "flex items-center gap-2 text-xs", children: [
|
|
944
|
+
/* @__PURE__ */ n("span", { className: "text-slate-400", children: "Persistence:" }),
|
|
945
|
+
e[t].$persist ? /* @__PURE__ */ n("span", { className: "flex items-center gap-1.5 text-green-400 font-medium bg-green-400/10 px-2 py-0.5 rounded-full border border-green-400/20", children: [
|
|
946
|
+
/* @__PURE__ */ n("div", { className: "w-1.5 h-1.5 rounded-full bg-green-400 shadow-[0_0_6px_rgba(74,222,128,0.5)]" }),
|
|
947
|
+
"Enabled"
|
|
948
|
+
] }) : /* @__PURE__ */ n("span", { className: "flex items-center gap-1.5 text-slate-500 font-medium bg-slate-800 px-2 py-0.5 rounded-full border border-slate-700", children: [
|
|
949
|
+
/* @__PURE__ */ n("div", { className: "w-1.5 h-1.5 rounded-full bg-slate-500" }),
|
|
950
|
+
"Disabled"
|
|
951
|
+
] })
|
|
952
|
+
] }),
|
|
953
|
+
e[t].$persist && /* @__PURE__ */ n(
|
|
954
|
+
"button",
|
|
955
|
+
{
|
|
956
|
+
onClick: async () => {
|
|
957
|
+
if (confirm(
|
|
958
|
+
"Are you sure you want to clear the persisted data for this store?"
|
|
959
|
+
))
|
|
960
|
+
try {
|
|
961
|
+
await e[t].$persist.clear(), alert(
|
|
962
|
+
"Storage cleared."
|
|
963
|
+
);
|
|
964
|
+
} catch (r) {
|
|
965
|
+
console.error(r), alert(
|
|
966
|
+
"Failed to clear storage."
|
|
967
|
+
);
|
|
968
|
+
}
|
|
969
|
+
},
|
|
970
|
+
className: "flex items-center gap-1.5 px-2 py-1 bg-slate-800 hover:bg-red-500/20 text-slate-400 hover:text-red-400 rounded text-[10px] font-medium transition-colors border border-slate-700 hover:border-red-500/30",
|
|
971
|
+
title: "Clear persisted data from storage",
|
|
972
|
+
children: [
|
|
973
|
+
/* @__PURE__ */ n(M, { name: "trash", size: 12 }),
|
|
974
|
+
"Clear Storage"
|
|
975
|
+
]
|
|
976
|
+
}
|
|
977
|
+
)
|
|
978
|
+
] }),
|
|
979
|
+
/* @__PURE__ */ n("div", { className: "flex items-center justify-between pt-2 border-t border-slate-800/50", children: [
|
|
980
|
+
/* @__PURE__ */ n("span", { className: "text-xs text-slate-500", children: "Reset in-memory state to initial values." }),
|
|
981
|
+
/* @__PURE__ */ n(
|
|
982
|
+
"button",
|
|
983
|
+
{
|
|
984
|
+
onClick: () => {
|
|
985
|
+
confirm(
|
|
986
|
+
"Are you sure you want to reset the state? This will revert all changes."
|
|
987
|
+
) && e[t].$reset();
|
|
988
|
+
},
|
|
989
|
+
className: "flex items-center gap-2 px-3 py-1.5 bg-slate-800 hover:bg-slate-700 text-slate-300 hover:text-white rounded text-xs font-medium transition-colors border border-slate-700",
|
|
990
|
+
children: [
|
|
991
|
+
/* @__PURE__ */ n(M, { name: "rotate-ccw", size: 12 }),
|
|
992
|
+
"Reset State"
|
|
993
|
+
]
|
|
994
|
+
}
|
|
995
|
+
)
|
|
996
|
+
] })
|
|
997
|
+
] })
|
|
998
|
+
] }),
|
|
999
|
+
/* @__PURE__ */ n("div", { className: "bg-slate-900/50 rounded-lg border border-slate-800 p-4", children: [
|
|
1000
|
+
/* @__PURE__ */ n("h3", { className: "text-xs font-bold text-slate-500 uppercase tracking-wider mb-3 border-b border-slate-800 pb-2", children: "State" }),
|
|
1001
|
+
/* @__PURE__ */ n(dt, { data: e[t].state })
|
|
1002
|
+
] }),
|
|
1003
|
+
/* @__PURE__ */ n("div", { className: "bg-slate-900/50 rounded-lg border border-slate-800 p-4", children: [
|
|
1004
|
+
/* @__PURE__ */ n("h3", { className: "text-xs font-bold text-slate-500 uppercase tracking-wider mb-3 border-b border-slate-800 pb-2", children: "Getters" }),
|
|
1005
|
+
e[t].getters && Object.keys(e[t].getters).length > 0 ? /* @__PURE__ */ n("div", { className: "space-y-1", children: Object.entries(
|
|
1006
|
+
e[t].getters
|
|
1007
|
+
).map(([r, i]) => /* @__PURE__ */ n(
|
|
1008
|
+
"div",
|
|
1009
|
+
{
|
|
1010
|
+
className: "flex items-start gap-2 font-mono text-xs",
|
|
1011
|
+
children: [
|
|
1012
|
+
/* @__PURE__ */ n("span", { className: "text-purple-400", children: [
|
|
1013
|
+
r,
|
|
1014
|
+
":"
|
|
1015
|
+
] }),
|
|
1016
|
+
/* @__PURE__ */ n("span", { className: "text-yellow-400 break-all", children: JSON.stringify(i.value) })
|
|
1017
|
+
]
|
|
1018
|
+
},
|
|
1019
|
+
r
|
|
1020
|
+
)) }) : /* @__PURE__ */ n("div", { className: "text-xs text-slate-600 italic", children: "No getters defined" })
|
|
1021
|
+
] }),
|
|
1022
|
+
e[t].actions && Object.keys(e[t].actions).length > 0 && /* @__PURE__ */ n("div", { className: "bg-slate-900/50 rounded-lg border border-slate-800 p-4", children: [
|
|
1023
|
+
/* @__PURE__ */ n("h3", { className: "text-xs font-bold text-slate-500 uppercase tracking-wider mb-3 border-b border-slate-800 pb-2", children: "Actions" }),
|
|
1024
|
+
/* @__PURE__ */ n("div", { className: "space-y-1", children: Object.keys(
|
|
1025
|
+
e[t].actions
|
|
1026
|
+
).map((r) => /* @__PURE__ */ n(
|
|
1027
|
+
"div",
|
|
1028
|
+
{
|
|
1029
|
+
className: "flex items-center justify-between group",
|
|
1030
|
+
children: [
|
|
1031
|
+
/* @__PURE__ */ n("span", { className: "font-mono text-xs text-blue-400", children: [
|
|
1032
|
+
r,
|
|
1033
|
+
"()"
|
|
1034
|
+
] }),
|
|
1035
|
+
/* @__PURE__ */ n(
|
|
1036
|
+
"button",
|
|
1037
|
+
{
|
|
1038
|
+
onClick: () => {
|
|
1039
|
+
try {
|
|
1040
|
+
e[t].actions[r]();
|
|
1041
|
+
} catch (i) {
|
|
1042
|
+
console.error(i), alert(
|
|
1043
|
+
`Action failed: ${i}`
|
|
1044
|
+
);
|
|
1045
|
+
}
|
|
1046
|
+
},
|
|
1047
|
+
className: "p-1 text-slate-600 hover:text-cyan-400 opacity-0 group-hover:opacity-100 transition-all",
|
|
1048
|
+
title: "Trigger Action",
|
|
1049
|
+
children: /* @__PURE__ */ n(
|
|
1050
|
+
M,
|
|
1051
|
+
{
|
|
1052
|
+
name: "play",
|
|
1053
|
+
size: 12
|
|
1054
|
+
}
|
|
1055
|
+
)
|
|
1056
|
+
}
|
|
1057
|
+
)
|
|
1058
|
+
]
|
|
1059
|
+
},
|
|
1060
|
+
r
|
|
1061
|
+
)) })
|
|
1062
|
+
] })
|
|
1063
|
+
] }) : /* @__PURE__ */ n("div", { className: "h-full flex items-center justify-center text-slate-600 flex-col gap-2", children: [
|
|
1064
|
+
/* @__PURE__ */ n(
|
|
1065
|
+
M,
|
|
1066
|
+
{
|
|
1067
|
+
name: "database",
|
|
1068
|
+
size: 32,
|
|
1069
|
+
className: "opacity-20"
|
|
1070
|
+
}
|
|
1071
|
+
),
|
|
1072
|
+
/* @__PURE__ */ n("p", { children: "Select a store to inspect" })
|
|
1073
|
+
] }) }) }), Xt = ({ actions: e }) => e.length === 0 ? /* @__PURE__ */ n("div", { className: "h-full flex flex-col items-center justify-center text-slate-600", children: [
|
|
1074
|
+
/* @__PURE__ */ n(M, { size: 32, name: "play", className: "mb-2 opacity-20" }),
|
|
1075
|
+
/* @__PURE__ */ n("p", { children: "No actions recorded yet" })
|
|
1076
|
+
] }) : /* @__PURE__ */ n("div", { className: "h-full overflow-y-auto", children: /* @__PURE__ */ n("table", { className: "w-full text-left border-collapse", children: [
|
|
1077
|
+
/* @__PURE__ */ n("thead", { className: "bg-slate-900 sticky top-0 z-10", children: /* @__PURE__ */ n("tr", { children: [
|
|
1078
|
+
/* @__PURE__ */ n("th", { className: "px-4 py-2 text-xs font-semibold text-slate-500 uppercase tracking-wider border-b border-slate-800", children: "Time" }),
|
|
1079
|
+
/* @__PURE__ */ n("th", { className: "px-4 py-2 text-xs font-semibold text-slate-500 uppercase tracking-wider border-b border-slate-800", children: "Store" }),
|
|
1080
|
+
/* @__PURE__ */ n("th", { className: "px-4 py-2 text-xs font-semibold text-slate-500 uppercase tracking-wider border-b border-slate-800", children: "Action" }),
|
|
1081
|
+
/* @__PURE__ */ n("th", { className: "px-4 py-2 text-xs font-semibold text-slate-500 uppercase tracking-wider border-b border-slate-800", children: "Payload" })
|
|
1082
|
+
] }) }),
|
|
1083
|
+
/* @__PURE__ */ n("tbody", { className: "divide-y divide-slate-800/50", children: e.map((t) => /* @__PURE__ */ n(
|
|
1084
|
+
"tr",
|
|
1085
|
+
{
|
|
1086
|
+
className: "hover:bg-slate-900/50 transition-colors",
|
|
1087
|
+
children: [
|
|
1088
|
+
/* @__PURE__ */ n("td", { className: "px-4 py-3 text-xs text-slate-500 font-mono whitespace-nowrap", children: new Date(
|
|
1089
|
+
t.timestamp
|
|
1090
|
+
).toLocaleTimeString() }),
|
|
1091
|
+
/* @__PURE__ */ n("td", { className: "px-4 py-3 text-sm font-medium text-slate-200", children: t.storeName }),
|
|
1092
|
+
/* @__PURE__ */ n("td", { className: "px-4 py-3 text-sm text-cyan-400 font-mono", children: t.actionName }),
|
|
1093
|
+
/* @__PURE__ */ n("td", { className: "px-4 py-3 text-xs text-slate-400 font-mono truncate max-w-[200px]", children: JSON.stringify(t.args) })
|
|
1094
|
+
]
|
|
1095
|
+
},
|
|
1096
|
+
t.id
|
|
1097
|
+
)) })
|
|
1098
|
+
] }) }), Zt = "2.0.0-beta.6", Kt = {
|
|
1099
|
+
version: Zt
|
|
1100
|
+
};
|
|
1101
|
+
function er() {
|
|
1102
|
+
const [e, t] = Y(!1), [r, i] = Y(
|
|
1103
|
+
"inspector"
|
|
1104
|
+
), { stores: l, actions: a, selectedStore: s, setSelectedStore: h } = Dt(), f = a.length, d = Kt.version;
|
|
1105
|
+
return e ? /* @__PURE__ */ n("div", { className: "fixed bottom-6 right-6 w-[92vw] max-w-[980px] h-[80vh] md:h-[600px] bg-gradient-to-b from-[#071123] to-[#0b1220] shadow-2xl border border-slate-800 rounded-xl flex flex-col z-[9999] overflow-hidden", children: [
|
|
1106
|
+
/* @__PURE__ */ n("header", { className: "flex items-center justify-between px-4 py-3 border-b border-slate-800 bg-[rgba(255,255,255,0.02)]", children: [
|
|
1107
|
+
/* @__PURE__ */ n("div", { className: "flex items-center gap-3", children: [
|
|
1108
|
+
/* @__PURE__ */ n(
|
|
1109
|
+
"img",
|
|
1110
|
+
{
|
|
1111
|
+
src: We,
|
|
1112
|
+
alt: "Quanta DevTools",
|
|
1113
|
+
className: "w-6 h-6 rounded-full"
|
|
1114
|
+
}
|
|
1115
|
+
),
|
|
1116
|
+
/* @__PURE__ */ n("div", { children: [
|
|
1117
|
+
/* @__PURE__ */ n("div", { className: "text-sm font-semibold text-[rgba(56,178,172,1)]", children: "QuantaJS DevTools" }),
|
|
1118
|
+
/* @__PURE__ */ n("div", { className: "text-xs text-slate-400", children: "Inspect stores, replay actions & manage persistence" })
|
|
1119
|
+
] })
|
|
1120
|
+
] }),
|
|
1121
|
+
/* @__PURE__ */ n("div", { className: "flex items-center gap-3", children: [
|
|
1122
|
+
/* @__PURE__ */ n("div", { className: "flex items-center gap-2 bg-slate-900/30 px-2 py-1 rounded", children: [
|
|
1123
|
+
/* @__PURE__ */ n(
|
|
1124
|
+
"button",
|
|
1125
|
+
{
|
|
1126
|
+
className: `px-3 py-1 text-xs uppercase tracking-wider rounded ${r === "inspector" ? "text-[rgba(56,178,172,1)] bg-slate-800/40" : "text-slate-400 hover:text-slate-200 bg-transparent"}`,
|
|
1127
|
+
onClick: () => i("inspector"),
|
|
1128
|
+
children: "Inspector"
|
|
1129
|
+
}
|
|
1130
|
+
),
|
|
1131
|
+
/* @__PURE__ */ n(
|
|
1132
|
+
"button",
|
|
1133
|
+
{
|
|
1134
|
+
className: `px-3 py-1 text-xs uppercase tracking-wider rounded ${r === "actions" ? "text-[rgba(56,178,172,1)] bg-slate-800/40" : "text-slate-400 hover:text-slate-200 bg-transparent"}`,
|
|
1135
|
+
onClick: () => i("actions"),
|
|
1136
|
+
children: [
|
|
1137
|
+
"Actions (",
|
|
1138
|
+
f,
|
|
1139
|
+
")"
|
|
1140
|
+
]
|
|
1141
|
+
}
|
|
1142
|
+
)
|
|
1143
|
+
] }),
|
|
1144
|
+
/* @__PURE__ */ n(
|
|
1145
|
+
"button",
|
|
1146
|
+
{
|
|
1147
|
+
onClick: () => t(!1),
|
|
1148
|
+
className: "p-1 bg-transparent rounded-full transition text-red-500 hover:text-red-600",
|
|
1149
|
+
title: "Close",
|
|
1150
|
+
children: /* @__PURE__ */ n(M, { name: "circle-x", size: 24 })
|
|
1151
|
+
}
|
|
1152
|
+
)
|
|
1153
|
+
] })
|
|
1154
|
+
] }),
|
|
1155
|
+
/* @__PURE__ */ n("div", { className: "flex flex-1 overflow-hidden", children: [
|
|
1156
|
+
/* @__PURE__ */ n("aside", { className: "w-56 bg-[rgba(255,255,255,0.02)] border-r border-slate-800 p-3 flex flex-col gap-3", children: [
|
|
1157
|
+
/* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
1158
|
+
/* @__PURE__ */ n(
|
|
1159
|
+
M,
|
|
1160
|
+
{
|
|
1161
|
+
name: "search",
|
|
1162
|
+
size: 14,
|
|
1163
|
+
className: "text-slate-400"
|
|
1164
|
+
}
|
|
1165
|
+
),
|
|
1166
|
+
/* @__PURE__ */ n(
|
|
1167
|
+
"input",
|
|
1168
|
+
{
|
|
1169
|
+
placeholder: "Filter stor es...",
|
|
1170
|
+
className: "p-1 flex-1 bg-transparent rounded-md outline-none text-sm text-slate-200 placeholder:text-slate-500",
|
|
1171
|
+
onInput: (p) => h(p.target.value),
|
|
1172
|
+
value: s ?? ""
|
|
1173
|
+
}
|
|
1174
|
+
)
|
|
1175
|
+
] }),
|
|
1176
|
+
/* @__PURE__ */ n("div", { className: "flex-1 overflow-auto", children: Object.keys(l).length === 0 ? /* @__PURE__ */ n("div", { className: "text-xs text-slate-500", children: "No stores detected" }) : Object.keys(l).map((p) => /* @__PURE__ */ n(
|
|
1177
|
+
"button",
|
|
1178
|
+
{
|
|
1179
|
+
onClick: () => h(p),
|
|
1180
|
+
className: `w-full mb-1 text-left px-3 py-2 rounded-md flex items-center gap-2 transition ${s === p ? "text-[rgba(56,178,172,1)] hover:text-slate-100 bg-[rgba(255,255,255,0.02)]" : "text-slate-400 hover:text-slate-200 bg-transparent"}`,
|
|
1181
|
+
children: [
|
|
1182
|
+
/* @__PURE__ */ n("span", { className: "font-mono text-xs text-slate-400", children: /* @__PURE__ */ n(
|
|
1183
|
+
M,
|
|
1184
|
+
{
|
|
1185
|
+
name: "database",
|
|
1186
|
+
size: 14,
|
|
1187
|
+
className: "text-slate-400"
|
|
1188
|
+
}
|
|
1189
|
+
) }),
|
|
1190
|
+
/* @__PURE__ */ n("div", { className: "flex-1 text-sm truncate", children: p })
|
|
1191
|
+
]
|
|
1192
|
+
},
|
|
1193
|
+
p
|
|
1194
|
+
)) }),
|
|
1195
|
+
/* @__PURE__ */ n("div", { className: "flex items-center gap-2 text-xs text-slate-500", children: [
|
|
1196
|
+
/* @__PURE__ */ n("div", { className: "flex-1", children: [
|
|
1197
|
+
Object.keys(l).length,
|
|
1198
|
+
" stores"
|
|
1199
|
+
] }),
|
|
1200
|
+
/* @__PURE__ */ n("div", { className: "text-right", children: [
|
|
1201
|
+
"v",
|
|
1202
|
+
d
|
|
1203
|
+
] })
|
|
1204
|
+
] })
|
|
1205
|
+
] }),
|
|
1206
|
+
/* @__PURE__ */ n("main", { className: "flex-1 overflow-auto p-4 space-y-4", children: r === "inspector" ? /* @__PURE__ */ n(
|
|
1207
|
+
Gt,
|
|
1208
|
+
{
|
|
1209
|
+
stores: l,
|
|
1210
|
+
selectedStore: s,
|
|
1211
|
+
onClose: () => t(!1)
|
|
1212
|
+
}
|
|
1213
|
+
) : /* @__PURE__ */ n(Xt, { actions: a }) })
|
|
1214
|
+
] })
|
|
1215
|
+
] }) : /* @__PURE__ */ n(
|
|
1216
|
+
"button",
|
|
1217
|
+
{
|
|
1218
|
+
onClick: () => t(!0),
|
|
1219
|
+
className: "fixed bottom-6 right-6 flex items-center bg-black text-white shadow-xl border border-slate-700 rounded-full overflow-hidden transition-all duration-300 ease-out group z-[9999] w-12 hover:w-46 h-12",
|
|
1220
|
+
title: "Open Quanta DevTools",
|
|
1221
|
+
children: [
|
|
1222
|
+
/* @__PURE__ */ n("div", { className: "w-10 h-10 flex items-center justify-center flex-shrink-0", children: /* @__PURE__ */ n(
|
|
1223
|
+
"img",
|
|
1224
|
+
{
|
|
1225
|
+
src: We,
|
|
1226
|
+
alt: "Quanta DevTools",
|
|
1227
|
+
className: "w-10 h-10 rounded-full object-cover"
|
|
1228
|
+
}
|
|
1229
|
+
) }),
|
|
1230
|
+
/* @__PURE__ */ n("span", { className: "opacity-0 group-hover:opacity-100 whitespace-nowrap text-sm font-medium text-[rgba(56,178,172,1)] transition-opacity duration-300", children: "QuantaJS DevTools" })
|
|
1231
|
+
]
|
|
1232
|
+
}
|
|
1233
|
+
);
|
|
1234
|
+
}
|
|
1235
|
+
const tr = '@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-ease:initial}}}:root,:host{--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-yellow-400:oklch(85.2% .199 91.936);--color-green-400:oklch(79.2% .209 151.711);--color-green-600:oklch(62.7% .194 149.214);--color-cyan-400:oklch(78.9% .154 211.53);--color-blue-400:oklch(70.7% .165 254.624);--color-purple-400:oklch(71.4% .203 305.504);--color-slate-100:oklch(96.8% .007 247.896);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-300:oklch(86.9% .022 252.894);--color-slate-400:oklch(70.4% .04 256.788);--color-slate-500:oklch(55.4% .046 257.417);--color-slate-600:oklch(44.6% .043 257.281);--color-slate-700:oklch(37.2% .044 257.287);--color-slate-800:oklch(27.9% .041 260.031);--color-slate-900:oklch(20.8% .042 265.755);--color-slate-950:oklch(12.9% .042 264.695);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-wider:.05em;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-out:cubic-bezier(0,0,.2,1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1)}.visible{visibility:visible}.fixed{position:fixed}.sticky{position:sticky}.top-0{top:calc(var(--spacing)*0)}.right-6{right:calc(var(--spacing)*6)}.bottom-6{bottom:calc(var(--spacing)*6)}.z-10{z-index:10}.z-\\[9999\\]{z-index:9999}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.flex{display:flex}.h-1\\.5{height:calc(var(--spacing)*1.5)}.h-6{height:calc(var(--spacing)*6)}.h-10{height:calc(var(--spacing)*10)}.h-12{height:calc(var(--spacing)*12)}.h-\\[80vh\\]{height:80vh}.h-full{height:100%}.w-1\\.5{width:calc(var(--spacing)*1.5)}.w-6{width:calc(var(--spacing)*6)}.w-10{width:calc(var(--spacing)*10)}.w-12{width:calc(var(--spacing)*12)}.w-56{width:calc(var(--spacing)*56)}.w-\\[92vw\\]{width:92vw}.w-full{width:100%}.max-w-\\[200px\\]{max-width:200px}.max-w-\\[980px\\]{max-width:980px}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.flex-col{flex-direction:column}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1\\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px*var(--tw-divide-y-reverse));border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-slate-800\\/50>:not(:last-child)){border-color:#1d293d80}@supports (color:color-mix(in lab,red,red)){:where(.divide-slate-800\\/50>:not(:last-child)){border-color:color-mix(in oklab,var(--color-slate-800)50%,transparent)}}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-green-400\\/20{border-color:#05df7233}@supports (color:color-mix(in lab,red,red)){.border-green-400\\/20{border-color:color-mix(in oklab,var(--color-green-400)20%,transparent)}}.border-slate-700{border-color:var(--color-slate-700)}.border-slate-800{border-color:var(--color-slate-800)}.border-slate-800\\/50{border-color:#1d293d80}@supports (color:color-mix(in lab,red,red)){.border-slate-800\\/50{border-color:color-mix(in oklab,var(--color-slate-800)50%,transparent)}}.bg-\\[rgba\\(255\\,255\\,255\\,0\\.02\\)\\]{background-color:#ffffff05}.bg-black{background-color:var(--color-black)}.bg-green-400{background-color:var(--color-green-400)}.bg-green-400\\/10{background-color:#05df721a}@supports (color:color-mix(in lab,red,red)){.bg-green-400\\/10{background-color:color-mix(in oklab,var(--color-green-400)10%,transparent)}}.bg-slate-500{background-color:var(--color-slate-500)}.bg-slate-800{background-color:var(--color-slate-800)}.bg-slate-800\\/40{background-color:#1d293d66}@supports (color:color-mix(in lab,red,red)){.bg-slate-800\\/40{background-color:color-mix(in oklab,var(--color-slate-800)40%,transparent)}}.bg-slate-900{background-color:var(--color-slate-900)}.bg-slate-900\\/30{background-color:#0f172b4d}@supports (color:color-mix(in lab,red,red)){.bg-slate-900\\/30{background-color:color-mix(in oklab,var(--color-slate-900)30%,transparent)}}.bg-slate-900\\/50{background-color:#0f172b80}@supports (color:color-mix(in lab,red,red)){.bg-slate-900\\/50{background-color:color-mix(in oklab,var(--color-slate-900)50%,transparent)}}.bg-slate-950{background-color:var(--color-slate-950)}.bg-transparent{background-color:#0000}.bg-gradient-to-b{--tw-gradient-position:to bottom in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-\\[\\#071123\\]{--tw-gradient-from:#071123;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-\\[\\#0b1220\\]{--tw-gradient-to:#0b1220;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.object-cover{object-fit:cover}.p-1{padding:calc(var(--spacing)*1)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.py-0\\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.pt-2{padding-top:calc(var(--spacing)*2)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.text-left{text-align:left}.text-right{text-align:right}.font-mono{font-family:var(--font-mono)}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[10px\\]{font-size:10px}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.text-\\[rgba\\(56\\,178\\,172\\,1\\)\\]{color:#38b2ac}.text-blue-400{color:var(--color-blue-400)}.text-cyan-400{color:var(--color-cyan-400)}.text-green-400{color:var(--color-green-400)}.text-green-600{color:var(--color-green-600)}.text-purple-400{color:var(--color-purple-400)}.text-red-500{color:var(--color-red-500)}.text-slate-200{color:var(--color-slate-200)}.text-slate-300{color:var(--color-slate-300)}.text-slate-400{color:var(--color-slate-400)}.text-slate-500{color:var(--color-slate-500)}.text-slate-600{color:var(--color-slate-600)}.text-white{color:var(--color-white)}.text-yellow-400{color:var(--color-yellow-400)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.opacity-0{opacity:0}.opacity-20{opacity:.2}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\[0_0_6px_rgba\\(74\\,222\\,128\\,0\\.5\\)\\]{--tw-shadow:0 0 6px var(--tw-shadow-color,#4ade8080);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}@media(hover:hover){.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.placeholder\\:text-slate-500::placeholder{color:var(--color-slate-500)}@media(hover:hover){.hover\\:w-46:hover{width:calc(var(--spacing)*46)}.hover\\:border-red-500\\/30:hover{border-color:#fb2c364d}@supports (color:color-mix(in lab,red,red)){.hover\\:border-red-500\\/30:hover{border-color:color-mix(in oklab,var(--color-red-500)30%,transparent)}}.hover\\:bg-red-500\\/20:hover{background-color:#fb2c3633}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-red-500\\/20:hover{background-color:color-mix(in oklab,var(--color-red-500)20%,transparent)}}.hover\\:bg-slate-700:hover{background-color:var(--color-slate-700)}.hover\\:bg-slate-900\\/50:hover{background-color:#0f172b80}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-slate-900\\/50:hover{background-color:color-mix(in oklab,var(--color-slate-900)50%,transparent)}}.hover\\:text-cyan-400:hover{color:var(--color-cyan-400)}.hover\\:text-red-400:hover{color:var(--color-red-400)}.hover\\:text-red-600:hover{color:var(--color-red-600)}.hover\\:text-slate-100:hover{color:var(--color-slate-100)}.hover\\:text-slate-200:hover{color:var(--color-slate-200)}.hover\\:text-white:hover{color:var(--color-white)}}@media(min-width:48rem){.md\\:h-\\[600px\\]{height:600px}}@media(prefers-color-scheme:dark){.dark\\:text-green-400{color:var(--color-green-400)}}.quanta-devtools-root{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.quanta-devtools-root ::-webkit-scrollbar{width:6px;height:6px}.quanta-devtools-root ::-webkit-scrollbar-track{background:#0f172a80}.quanta-devtools-root ::-webkit-scrollbar-thumb{background:#38b2ac;border-radius:3px}.quanta-devtools-root ::-webkit-scrollbar-thumb:hover{background:#2c7a7b}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}';
|
|
1236
|
+
function rr() {
|
|
1237
|
+
return !!(typeof process < "u" && process.env && process.env.NODE_ENV === "development");
|
|
1238
|
+
}
|
|
1239
|
+
function ir(e = {}) {
|
|
1240
|
+
const { target: t = "body", visible: r } = e;
|
|
1241
|
+
if (!(r !== void 0 ? r : rr()))
|
|
1242
|
+
return () => {
|
|
1243
|
+
};
|
|
1244
|
+
if (console.log("[Quanta DevTools] Mounting..."), !document.getElementById("quanta-devtools-styles")) {
|
|
1245
|
+
const a = document.createElement("style");
|
|
1246
|
+
a.id = "quanta-devtools-styles", a.innerHTML = tr, document.head.appendChild(a);
|
|
1247
|
+
}
|
|
1248
|
+
let i;
|
|
1249
|
+
if (typeof t == "string" ? i = document.querySelector(t) : i = t, !i)
|
|
1250
|
+
return console.error("[Quanta DevTools] Target element not found"), () => {
|
|
1251
|
+
};
|
|
1252
|
+
const l = document.createElement("div");
|
|
1253
|
+
return l.id = "quanta-devtools-root", i.appendChild(l), ze(J(er, {}), l), () => {
|
|
1254
|
+
ze(null, l), l.remove();
|
|
1255
|
+
};
|
|
1256
|
+
}
|
|
1257
|
+
const sr = ({ visible: e }) => (_t(() => ir({ visible: e }), [e]), null);
|
|
414
1258
|
export {
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
1259
|
+
Je as QuantaContext,
|
|
1260
|
+
sr as QuantaDevTools,
|
|
1261
|
+
nr as QuantaProvider,
|
|
1262
|
+
fr as computed,
|
|
1263
|
+
pr as createStore,
|
|
1264
|
+
ur as logger,
|
|
1265
|
+
xr as reactive,
|
|
1266
|
+
cr as useCreateStore,
|
|
1267
|
+
vt as useQuantaContext,
|
|
1268
|
+
Ae as useQuantaStore,
|
|
1269
|
+
ar as useStore,
|
|
1270
|
+
yr as watch
|
|
426
1271
|
};
|