@fairfox/polly 0.88.1 → 0.89.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/polly.js +4 -4
- package/dist/cli/polly.js.map +2 -2
- package/dist/gallery/gallery.css +51 -59
- package/dist/gallery/gallery.js +1155 -1047
- package/dist/src/actions/index.js +5 -78
- package/dist/src/actions/index.js.map +2 -2
- package/dist/src/background/index.js +126 -152
- package/dist/src/background/index.js.map +4 -4
- package/dist/src/background/message-router.js +126 -152
- package/dist/src/background/message-router.js.map +4 -4
- package/dist/src/client/index.js +186 -259
- package/dist/src/client/index.js.map +5 -5
- package/dist/src/elysia/index.js +21 -35
- package/dist/src/elysia/index.js.map +2 -2
- package/dist/src/index.js +218 -246
- package/dist/src/index.js.map +10 -10
- package/dist/src/mesh.js +49 -61
- package/dist/src/mesh.js.map +4 -4
- package/dist/src/peer.js +23 -52
- package/dist/src/peer.js.map +2 -2
- package/dist/src/polly-ui/Button.d.ts +7 -0
- package/dist/src/polly-ui/Collapsible.d.ts +3 -1
- package/dist/src/polly-ui/Layout.d.ts +16 -1
- package/dist/src/polly-ui/index.css +47 -59
- package/dist/src/polly-ui/index.js +112 -124
- package/dist/src/polly-ui/index.js.map +13 -13
- package/dist/src/polly-ui/markdown.js +72 -145
- package/dist/src/polly-ui/markdown.js.map +2 -2
- package/dist/src/polly-ui/styles.css +47 -59
- package/dist/src/polly-ui/theme.css +10 -0
- package/dist/src/shared/adapters/index.js +31 -44
- package/dist/src/shared/adapters/index.js.map +2 -2
- package/dist/src/shared/lib/context-helpers.js +126 -152
- package/dist/src/shared/lib/context-helpers.js.map +4 -4
- package/dist/src/shared/lib/errors.js +1 -74
- package/dist/src/shared/lib/errors.js.map +2 -2
- package/dist/src/shared/lib/guards.js +1 -74
- package/dist/src/shared/lib/guards.js.map +2 -2
- package/dist/src/shared/lib/message-bus.js +126 -152
- package/dist/src/shared/lib/message-bus.js.map +4 -4
- package/dist/src/shared/lib/resource.js +16 -27
- package/dist/src/shared/lib/resource.js.map +5 -5
- package/dist/src/shared/lib/state.js +13 -26
- package/dist/src/shared/lib/state.js.map +2 -2
- package/dist/src/shared/lib/test-helpers.js +1 -74
- package/dist/src/shared/lib/test-helpers.js.map +2 -2
- package/dist/src/shared/state/app-state.js +35 -46
- package/dist/src/shared/state/app-state.js.map +5 -5
- package/dist/src/shared/types/messages.js +1 -74
- package/dist/src/shared/types/messages.js.map +2 -2
- package/dist/tools/bdd/src/cli.js +11 -15
- package/dist/tools/bdd/src/cli.js.map +2 -2
- package/dist/tools/bdd/src/index.js +11 -19
- package/dist/tools/bdd/src/index.js.map +2 -2
- package/dist/tools/gallery/src/cli.js +1 -18
- package/dist/tools/gallery/src/cli.js.map +2 -2
- package/dist/tools/init/src/cli.js +1 -18
- package/dist/tools/init/src/cli.js.map +2 -2
- package/dist/tools/mutate/src/cli.js +8 -25
- package/dist/tools/mutate/src/cli.js.map +2 -2
- package/dist/tools/mutate/src/index.js +8 -26
- package/dist/tools/mutate/src/index.js.map +2 -2
- package/dist/tools/quality/src/cli.js +39 -46
- package/dist/tools/quality/src/cli.js.map +3 -3
- package/dist/tools/quality/src/css/check-layout.d.ts +5 -3
- package/dist/tools/quality/src/index.js +39 -47
- package/dist/tools/quality/src/index.js.map +3 -3
- package/dist/tools/test/src/adapters/index.js +4 -77
- package/dist/tools/test/src/adapters/index.js.map +2 -2
- package/dist/tools/test/src/browser/index.js +1 -74
- package/dist/tools/test/src/browser/index.js.map +2 -2
- package/dist/tools/test/src/browser/run.js +5 -22
- package/dist/tools/test/src/browser/run.js.map +2 -2
- package/dist/tools/test/src/contrast/index.js +1 -74
- package/dist/tools/test/src/contrast/index.js.map +2 -2
- package/dist/tools/test/src/coverage-policy/cli.js +13 -25
- package/dist/tools/test/src/coverage-policy/cli.js.map +2 -2
- package/dist/tools/test/src/coverage-policy/index.js +11 -23
- package/dist/tools/test/src/coverage-policy/index.js.map +2 -2
- package/dist/tools/test/src/e2e-mesh/index.js +18 -43
- package/dist/tools/test/src/e2e-mesh/index.js.map +2 -2
- package/dist/tools/test/src/e2e-relay/index.js +615 -623
- package/dist/tools/test/src/e2e-relay/index.js.map +2 -2
- package/dist/tools/test/src/index.js +30 -103
- package/dist/tools/test/src/index.js.map +5 -5
- package/dist/tools/test/src/test-utils.js +1 -74
- package/dist/tools/test/src/test-utils.js.map +2 -2
- package/dist/tools/test/src/tiers/cli.js +1 -18
- package/dist/tools/test/src/tiers/cli.js.map +2 -2
- package/dist/tools/test/src/tiers/worker.js +11 -15
- package/dist/tools/test/src/tiers/worker.js.map +2 -2
- package/dist/tools/test/src/visual/index.js +1112 -1134
- package/dist/tools/test/src/visual/index.js.map +3 -3
- package/dist/tools/verify/src/cli.js +103 -169
- package/dist/tools/verify/src/cli.js.map +2 -2
- package/dist/tools/verify/src/config.js +1 -74
- package/dist/tools/verify/src/config.js.map +2 -2
- package/dist/tools/verify/src/stryker/index.js +1 -19
- package/dist/tools/verify/src/stryker/index.js.map +2 -2
- package/dist/tools/visualize/src/cli.js +69 -85
- package/dist/tools/visualize/src/cli.js.map +2 -2
- package/package.json +1 -1
|
@@ -1,26 +1,18 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
configurable: true,
|
|
13
|
-
set: __exportSetter.bind(all, name)
|
|
14
|
-
});
|
|
2
|
+
var __esm = (fn, res, err) => () => {
|
|
3
|
+
if (fn)
|
|
4
|
+
try {
|
|
5
|
+
res = fn(fn = 0);
|
|
6
|
+
} catch (e) {
|
|
7
|
+
err = [e];
|
|
8
|
+
}
|
|
9
|
+
if (err)
|
|
10
|
+
throw err[0];
|
|
11
|
+
return res;
|
|
15
12
|
};
|
|
16
|
-
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
17
13
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
18
14
|
|
|
19
15
|
// src/shared/lib/sweep-sealed.ts
|
|
20
|
-
var exports_sweep_sealed = {};
|
|
21
|
-
__export(exports_sweep_sealed, {
|
|
22
|
-
sweepSealed: () => sweepSealed
|
|
23
|
-
});
|
|
24
16
|
import { Automerge as Automerge3 } from "@automerge/automerge-repo/slim";
|
|
25
17
|
function concat(parts) {
|
|
26
18
|
let total = 0;
|
|
@@ -35,7 +27,7 @@ function concat(parts) {
|
|
|
35
27
|
return out;
|
|
36
28
|
}
|
|
37
29
|
function materialise(chunks) {
|
|
38
|
-
const content = chunks.filter((chunk) => chunk.key[1] !== "sync-state" && chunk.data !== undefined).sort((
|
|
30
|
+
const content = chunks.filter((chunk) => chunk.key[1] !== "sync-state" && chunk.data !== undefined).sort((a, b) => (a.key[1] === "snapshot" ? 0 : 1) - (b.key[1] === "snapshot" ? 0 : 1));
|
|
39
31
|
if (content.length === 0)
|
|
40
32
|
return;
|
|
41
33
|
try {
|
|
@@ -173,285 +165,285 @@ var d = {};
|
|
|
173
165
|
var w = [];
|
|
174
166
|
var _ = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
|
|
175
167
|
var g = Array.isArray;
|
|
176
|
-
function m(
|
|
177
|
-
for (var
|
|
178
|
-
|
|
179
|
-
return
|
|
180
|
-
}
|
|
181
|
-
function b(
|
|
182
|
-
|
|
183
|
-
}
|
|
184
|
-
function x(
|
|
185
|
-
var
|
|
186
|
-
return
|
|
187
|
-
}
|
|
188
|
-
function S(
|
|
189
|
-
return
|
|
190
|
-
}
|
|
191
|
-
function C(
|
|
192
|
-
this.props =
|
|
193
|
-
}
|
|
194
|
-
function $(
|
|
195
|
-
if (
|
|
196
|
-
return
|
|
197
|
-
for (var
|
|
198
|
-
if ((
|
|
199
|
-
return
|
|
200
|
-
return typeof
|
|
201
|
-
}
|
|
202
|
-
function I(
|
|
203
|
-
if (
|
|
204
|
-
var
|
|
205
|
-
|
|
168
|
+
function m(n, l) {
|
|
169
|
+
for (var u in l)
|
|
170
|
+
n[u] = l[u];
|
|
171
|
+
return n;
|
|
172
|
+
}
|
|
173
|
+
function b(n) {
|
|
174
|
+
n && n.parentNode && n.parentNode.removeChild(n);
|
|
175
|
+
}
|
|
176
|
+
function x(n, t, i, r, o) {
|
|
177
|
+
var e = { type: n, props: t, key: i, ref: r, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: undefined, __v: o == null ? ++u : o, __i: -1, __u: 0 };
|
|
178
|
+
return o == null && l.vnode != null && l.vnode(e), e;
|
|
179
|
+
}
|
|
180
|
+
function S(n) {
|
|
181
|
+
return n.children;
|
|
182
|
+
}
|
|
183
|
+
function C(n, l) {
|
|
184
|
+
this.props = n, this.context = l;
|
|
185
|
+
}
|
|
186
|
+
function $(n, l) {
|
|
187
|
+
if (l == null)
|
|
188
|
+
return n.__ ? $(n.__, n.__i + 1) : null;
|
|
189
|
+
for (var u;l < n.__k.length; l++)
|
|
190
|
+
if ((u = n.__k[l]) != null && u.__e != null)
|
|
191
|
+
return u.__e;
|
|
192
|
+
return typeof n.type == "function" ? $(n) : null;
|
|
193
|
+
}
|
|
194
|
+
function I(n) {
|
|
195
|
+
if (n.__P && n.__d) {
|
|
196
|
+
var u = n.__v, t = u.__e, i = [], r = [], o = m({}, u);
|
|
197
|
+
o.__v = u.__v + 1, l.vnode && l.vnode(o), q(n.__P, o, u, n.__n, n.__P.namespaceURI, 32 & u.__u ? [t] : null, i, t == null ? $(u) : t, !!(32 & u.__u), r), o.__v = u.__v, o.__.__k[o.__i] = o, D(i, o, r), u.__e = u.__ = null, o.__e != t && P(o);
|
|
206
198
|
}
|
|
207
199
|
}
|
|
208
|
-
function P(
|
|
209
|
-
if ((
|
|
210
|
-
return
|
|
211
|
-
if (
|
|
212
|
-
return
|
|
213
|
-
}), P(
|
|
200
|
+
function P(n) {
|
|
201
|
+
if ((n = n.__) != null && n.__c != null)
|
|
202
|
+
return n.__e = n.__c.base = null, n.__k.some(function(l) {
|
|
203
|
+
if (l != null && l.__e != null)
|
|
204
|
+
return n.__e = n.__c.base = l.__e;
|
|
205
|
+
}), P(n);
|
|
214
206
|
}
|
|
215
|
-
function A(
|
|
216
|
-
(!
|
|
207
|
+
function A(n) {
|
|
208
|
+
(!n.__d && (n.__d = true) && i.push(n) && !H.__r++ || r != l.debounceRendering) && ((r = l.debounceRendering) || o)(H);
|
|
217
209
|
}
|
|
218
210
|
function H() {
|
|
219
211
|
try {
|
|
220
|
-
for (var
|
|
221
|
-
i.length >
|
|
212
|
+
for (var n, l = 1;i.length; )
|
|
213
|
+
i.length > l && i.sort(e), n = i.shift(), l = i.length, I(n);
|
|
222
214
|
} finally {
|
|
223
215
|
i.length = H.__r = 0;
|
|
224
216
|
}
|
|
225
217
|
}
|
|
226
|
-
function L(
|
|
227
|
-
var
|
|
228
|
-
for (
|
|
229
|
-
(
|
|
230
|
-
return
|
|
231
|
-
}
|
|
232
|
-
function T(
|
|
233
|
-
var
|
|
234
|
-
for (
|
|
235
|
-
(
|
|
236
|
-
if (
|
|
237
|
-
for (
|
|
238
|
-
(
|
|
239
|
-
return
|
|
240
|
-
}
|
|
241
|
-
function j(
|
|
242
|
-
var
|
|
243
|
-
if (typeof
|
|
244
|
-
for (
|
|
245
|
-
|
|
246
|
-
return
|
|
218
|
+
function L(n, l, u, t, i, r, o, e, f, c, s) {
|
|
219
|
+
var a, h, p, v, y, _, g, m = t && t.__k || w, b = l.length;
|
|
220
|
+
for (f = T(u, l, m, f, b), a = 0;a < b; a++)
|
|
221
|
+
(p = u.__k[a]) != null && (h = p.__i != -1 && m[p.__i] || d, p.__i = a, _ = q(n, p, h, i, r, o, e, f, c, s), v = p.__e, p.ref && h.ref != p.ref && (h.ref && J(h.ref, null, p), s.push(p.ref, p.__c || v, p)), y == null && v != null && (y = v), (g = !!(4 & p.__u)) || h.__k === p.__k ? (f = j(p, f, n, g), g && h.__e && (h.__e = null)) : typeof p.type == "function" && _ !== undefined ? f = _ : v && (f = v.nextSibling), p.__u &= -7);
|
|
222
|
+
return u.__e = y, f;
|
|
223
|
+
}
|
|
224
|
+
function T(n, l, u, t, i) {
|
|
225
|
+
var r, o, e, f, c, s = u.length, a = s, h = 0;
|
|
226
|
+
for (n.__k = new Array(i), r = 0;r < i; r++)
|
|
227
|
+
(o = l[r]) != null && typeof o != "boolean" && typeof o != "function" ? (typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? o = n.__k[r] = x(null, o, null, null, null) : g(o) ? o = n.__k[r] = x(S, { children: o }, null, null, null) : o.constructor === undefined && o.__b > 0 ? o = n.__k[r] = x(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : n.__k[r] = o, f = r + h, o.__ = n, o.__b = n.__b + 1, e = null, (c = o.__i = O(o, u, f, a)) != -1 && (a--, (e = u[c]) && (e.__u |= 2)), e == null || e.__v == null ? (c == -1 && (i > s ? h-- : i < s && h++), typeof o.type != "function" && (o.__u |= 4)) : c != f && (c == f - 1 ? h-- : c == f + 1 ? h++ : (c > f ? h-- : h++, o.__u |= 4))) : n.__k[r] = null;
|
|
228
|
+
if (a)
|
|
229
|
+
for (r = 0;r < s; r++)
|
|
230
|
+
(e = u[r]) != null && (2 & e.__u) == 0 && (e.__e == t && (t = $(e)), K(e, e));
|
|
231
|
+
return t;
|
|
232
|
+
}
|
|
233
|
+
function j(n, l, u, t) {
|
|
234
|
+
var i, r;
|
|
235
|
+
if (typeof n.type == "function") {
|
|
236
|
+
for (i = n.__k, r = 0;i && r < i.length; r++)
|
|
237
|
+
i[r] && (i[r].__ = n, l = j(i[r], l, u, t));
|
|
238
|
+
return l;
|
|
247
239
|
}
|
|
248
|
-
|
|
240
|
+
n.__e != l && (t && (l && n.type && !l.parentNode && (l = $(n)), u.insertBefore(n.__e, l || null)), l = n.__e);
|
|
249
241
|
do {
|
|
250
|
-
|
|
251
|
-
} while (
|
|
252
|
-
return
|
|
253
|
-
}
|
|
254
|
-
function O(
|
|
255
|
-
var
|
|
256
|
-
if (
|
|
257
|
-
return
|
|
258
|
-
if (
|
|
259
|
-
for (
|
|
260
|
-
if ((
|
|
261
|
-
return
|
|
242
|
+
l = l && l.nextSibling;
|
|
243
|
+
} while (l != null && l.nodeType == 8);
|
|
244
|
+
return l;
|
|
245
|
+
}
|
|
246
|
+
function O(n, l, u, t) {
|
|
247
|
+
var i, r, o, { key: e, type: f } = n, c = l[u], s = c != null && (2 & c.__u) == 0;
|
|
248
|
+
if (c === null && e == null || s && e == c.key && f == c.type)
|
|
249
|
+
return u;
|
|
250
|
+
if (t > (s ? 1 : 0)) {
|
|
251
|
+
for (i = u - 1, r = u + 1;i >= 0 || r < l.length; )
|
|
252
|
+
if ((c = l[o = i >= 0 ? i-- : r++]) != null && (2 & c.__u) == 0 && e == c.key && f == c.type)
|
|
253
|
+
return o;
|
|
262
254
|
}
|
|
263
255
|
return -1;
|
|
264
256
|
}
|
|
265
|
-
function z(
|
|
266
|
-
|
|
257
|
+
function z(n, l, u) {
|
|
258
|
+
l[0] == "-" ? n.setProperty(l, u == null ? "" : u) : n[l] = u == null ? "" : typeof u != "number" || _.test(l) ? u : u + "px";
|
|
267
259
|
}
|
|
268
|
-
function N(
|
|
269
|
-
var
|
|
260
|
+
function N(n, l, u, t, i) {
|
|
261
|
+
var r, o;
|
|
270
262
|
n:
|
|
271
|
-
if (
|
|
272
|
-
if (typeof
|
|
273
|
-
|
|
263
|
+
if (l == "style")
|
|
264
|
+
if (typeof u == "string")
|
|
265
|
+
n.style.cssText = u;
|
|
274
266
|
else {
|
|
275
|
-
if (typeof
|
|
276
|
-
for (
|
|
277
|
-
|
|
278
|
-
if (
|
|
279
|
-
for (
|
|
280
|
-
|
|
267
|
+
if (typeof t == "string" && (n.style.cssText = t = ""), t)
|
|
268
|
+
for (l in t)
|
|
269
|
+
u && l in u || z(n.style, l, "");
|
|
270
|
+
if (u)
|
|
271
|
+
for (l in u)
|
|
272
|
+
t && u[l] == t[l] || z(n.style, l, u[l]);
|
|
281
273
|
}
|
|
282
|
-
else if (
|
|
283
|
-
|
|
274
|
+
else if (l[0] == "o" && l[1] == "n")
|
|
275
|
+
r = l != (l = l.replace(a, "$1")), o = l.toLowerCase(), l = o in n || l == "onFocusOut" || l == "onFocusIn" ? o.slice(2) : l.slice(2), n.l || (n.l = {}), n.l[l + r] = u, u ? t ? u[s] = t[s] : (u[s] = h, n.addEventListener(l, r ? v : p, r)) : n.removeEventListener(l, r ? v : p, r);
|
|
284
276
|
else {
|
|
285
|
-
if (
|
|
286
|
-
|
|
287
|
-
else if (
|
|
277
|
+
if (i == "http://www.w3.org/2000/svg")
|
|
278
|
+
l = l.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
279
|
+
else if (l != "width" && l != "height" && l != "href" && l != "list" && l != "form" && l != "tabIndex" && l != "download" && l != "rowSpan" && l != "colSpan" && l != "role" && l != "popover" && l in n)
|
|
288
280
|
try {
|
|
289
|
-
|
|
281
|
+
n[l] = u == null ? "" : u;
|
|
290
282
|
break n;
|
|
291
|
-
} catch (
|
|
292
|
-
typeof
|
|
283
|
+
} catch (n) {}
|
|
284
|
+
typeof u == "function" || (u == null || u === false && l[4] != "-" ? n.removeAttribute(l) : n.setAttribute(l, l == "popover" && u == 1 ? "" : u));
|
|
293
285
|
}
|
|
294
286
|
}
|
|
295
|
-
function V(
|
|
296
|
-
return function(
|
|
287
|
+
function V(n) {
|
|
288
|
+
return function(u) {
|
|
297
289
|
if (this.l) {
|
|
298
|
-
var
|
|
299
|
-
if (
|
|
300
|
-
|
|
301
|
-
else if (
|
|
290
|
+
var t = this.l[u.type + n];
|
|
291
|
+
if (u[c] == null)
|
|
292
|
+
u[c] = h++;
|
|
293
|
+
else if (u[c] < t[s])
|
|
302
294
|
return;
|
|
303
|
-
return
|
|
295
|
+
return t(l.event ? l.event(u) : u);
|
|
304
296
|
}
|
|
305
297
|
};
|
|
306
298
|
}
|
|
307
|
-
function q(
|
|
308
|
-
var
|
|
309
|
-
if (
|
|
299
|
+
function q(n, u, t, i, r, o, e, f, c, s) {
|
|
300
|
+
var a, h, p, v, y, d, _, k, x, M, $, I, P, A, H, T = u.type;
|
|
301
|
+
if (u.constructor !== undefined)
|
|
310
302
|
return null;
|
|
311
|
-
128 &
|
|
303
|
+
128 & t.__u && (c = !!(32 & t.__u), o = [f = u.__e = t.__e]), (a = l.__b) && a(u);
|
|
312
304
|
n:
|
|
313
|
-
if (typeof
|
|
305
|
+
if (typeof T == "function")
|
|
314
306
|
try {
|
|
315
|
-
if (k =
|
|
316
|
-
|
|
307
|
+
if (k = u.props, x = T.prototype && T.prototype.render, M = (a = T.contextType) && i[a.__c], $ = a ? M ? M.props.value : a.__ : i, t.__c ? _ = (h = u.__c = t.__c).__ = h.__E : (x ? u.__c = h = new T(k, $) : (u.__c = h = new C(k, $), h.constructor = T, h.render = Q), M && M.sub(h), h.state || (h.state = {}), h.__n = i, p = h.__d = true, h.__h = [], h._sb = []), x && h.__s == null && (h.__s = h.state), x && T.getDerivedStateFromProps != null && (h.__s == h.state && (h.__s = m({}, h.__s)), m(h.__s, T.getDerivedStateFromProps(k, h.__s))), v = h.props, y = h.state, h.__v = u, p)
|
|
308
|
+
x && T.getDerivedStateFromProps == null && h.componentWillMount != null && h.componentWillMount(), x && h.componentDidMount != null && h.__h.push(h.componentDidMount);
|
|
317
309
|
else {
|
|
318
|
-
if (
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
}), w.push.apply(
|
|
310
|
+
if (x && T.getDerivedStateFromProps == null && k !== v && h.componentWillReceiveProps != null && h.componentWillReceiveProps(k, $), u.__v == t.__v || !h.__e && h.shouldComponentUpdate != null && h.shouldComponentUpdate(k, h.__s, $) === false) {
|
|
311
|
+
u.__v != t.__v && (h.props = k, h.state = h.__s, h.__d = false), u.__e = t.__e, u.__k = t.__k, u.__k.some(function(n) {
|
|
312
|
+
n && (n.__ = u);
|
|
313
|
+
}), w.push.apply(h.__h, h._sb), h._sb = [], h.__h.length && e.push(h);
|
|
322
314
|
break n;
|
|
323
315
|
}
|
|
324
|
-
|
|
325
|
-
|
|
316
|
+
h.componentWillUpdate != null && h.componentWillUpdate(k, h.__s, $), x && h.componentDidUpdate != null && h.__h.push(function() {
|
|
317
|
+
h.componentDidUpdate(v, y, d);
|
|
326
318
|
});
|
|
327
319
|
}
|
|
328
|
-
if (
|
|
329
|
-
|
|
320
|
+
if (h.context = $, h.props = k, h.__P = n, h.__e = false, I = l.__r, P = 0, x)
|
|
321
|
+
h.state = h.__s, h.__d = false, I && I(u), a = h.render(h.props, h.state, h.context), w.push.apply(h.__h, h._sb), h._sb = [];
|
|
330
322
|
else
|
|
331
323
|
do {
|
|
332
|
-
|
|
333
|
-
} while (
|
|
334
|
-
|
|
335
|
-
} catch (
|
|
336
|
-
if (
|
|
337
|
-
if (
|
|
338
|
-
for (
|
|
339
|
-
|
|
340
|
-
|
|
324
|
+
h.__d = false, I && I(u), a = h.render(h.props, h.state, h.context), h.state = h.__s;
|
|
325
|
+
} while (h.__d && ++P < 25);
|
|
326
|
+
h.state = h.__s, h.getChildContext != null && (i = m(m({}, i), h.getChildContext())), x && !p && h.getSnapshotBeforeUpdate != null && (d = h.getSnapshotBeforeUpdate(v, y)), A = a != null && a.type === S && a.key == null ? E(a.props.children) : a, f = L(n, g(A) ? A : [A], u, t, i, r, o, e, f, c, s), h.base = u.__e, u.__u &= -161, h.__h.length && e.push(h), _ && (h.__E = h.__ = null);
|
|
327
|
+
} catch (n) {
|
|
328
|
+
if (u.__v = null, c || o != null)
|
|
329
|
+
if (n.then) {
|
|
330
|
+
for (u.__u |= c ? 160 : 128;f && f.nodeType == 8 && f.nextSibling; )
|
|
331
|
+
f = f.nextSibling;
|
|
332
|
+
o[o.indexOf(f)] = null, u.__e = f;
|
|
341
333
|
} else {
|
|
342
|
-
for (
|
|
343
|
-
b(
|
|
344
|
-
B(
|
|
334
|
+
for (H = o.length;H--; )
|
|
335
|
+
b(o[H]);
|
|
336
|
+
B(u);
|
|
345
337
|
}
|
|
346
338
|
else
|
|
347
|
-
|
|
348
|
-
l.__e(
|
|
339
|
+
u.__e = t.__e, u.__k = t.__k, n.then || B(u);
|
|
340
|
+
l.__e(n, u, t);
|
|
349
341
|
}
|
|
350
342
|
else
|
|
351
|
-
|
|
352
|
-
return (
|
|
343
|
+
o == null && u.__v == t.__v ? (u.__k = t.__k, u.__e = t.__e) : f = u.__e = G(t.__e, u, t, i, r, o, e, c, s);
|
|
344
|
+
return (a = l.diffed) && a(u), 128 & u.__u ? undefined : f;
|
|
353
345
|
}
|
|
354
|
-
function B(
|
|
355
|
-
|
|
346
|
+
function B(n) {
|
|
347
|
+
n && (n.__c && (n.__c.__e = true), n.__k && n.__k.some(B));
|
|
356
348
|
}
|
|
357
|
-
function D(
|
|
358
|
-
for (var
|
|
359
|
-
J(
|
|
360
|
-
l.__c && l.__c(
|
|
349
|
+
function D(n, u, t) {
|
|
350
|
+
for (var i = 0;i < t.length; i++)
|
|
351
|
+
J(t[i], t[++i], t[++i]);
|
|
352
|
+
l.__c && l.__c(u, n), n.some(function(u) {
|
|
361
353
|
try {
|
|
362
|
-
|
|
363
|
-
|
|
354
|
+
n = u.__h, u.__h = [], n.some(function(n) {
|
|
355
|
+
n.call(u);
|
|
364
356
|
});
|
|
365
|
-
} catch (
|
|
366
|
-
l.__e(
|
|
357
|
+
} catch (n) {
|
|
358
|
+
l.__e(n, u.__v);
|
|
367
359
|
}
|
|
368
360
|
});
|
|
369
361
|
}
|
|
370
|
-
function E(
|
|
371
|
-
return typeof
|
|
362
|
+
function E(n) {
|
|
363
|
+
return typeof n != "object" || n == null || n.__b > 0 ? n : g(n) ? n.map(E) : m({}, n);
|
|
372
364
|
}
|
|
373
|
-
function G(
|
|
374
|
-
var
|
|
375
|
-
if (
|
|
376
|
-
for (
|
|
377
|
-
if ((
|
|
378
|
-
|
|
365
|
+
function G(u, t, i, r, o, e, f, c, s) {
|
|
366
|
+
var a, h, p, v, y, w, _, m = i.props || d, { props: k, type: x } = t;
|
|
367
|
+
if (x == "svg" ? o = "http://www.w3.org/2000/svg" : x == "math" ? o = "http://www.w3.org/1998/Math/MathML" : o || (o = "http://www.w3.org/1999/xhtml"), e != null) {
|
|
368
|
+
for (a = 0;a < e.length; a++)
|
|
369
|
+
if ((y = e[a]) && "setAttribute" in y == !!x && (x ? y.localName == x : y.nodeType == 3)) {
|
|
370
|
+
u = y, e[a] = null;
|
|
379
371
|
break;
|
|
380
372
|
}
|
|
381
373
|
}
|
|
382
|
-
if (
|
|
383
|
-
if (
|
|
374
|
+
if (u == null) {
|
|
375
|
+
if (x == null)
|
|
384
376
|
return document.createTextNode(k);
|
|
385
|
-
|
|
377
|
+
u = document.createElementNS(o, x, k.is && k), c && (l.__m && l.__m(t, e), c = false), e = null;
|
|
386
378
|
}
|
|
387
|
-
if (
|
|
388
|
-
|
|
379
|
+
if (x == null)
|
|
380
|
+
m === k || c && u.data == k || (u.data = k);
|
|
389
381
|
else {
|
|
390
|
-
if (
|
|
391
|
-
for (
|
|
392
|
-
|
|
393
|
-
for (
|
|
394
|
-
|
|
395
|
-
for (
|
|
396
|
-
|
|
397
|
-
if (
|
|
398
|
-
|
|
399
|
-
else if (
|
|
400
|
-
for (
|
|
401
|
-
b(
|
|
402
|
-
|
|
382
|
+
if (e = e && n.call(u.childNodes), !c && e != null)
|
|
383
|
+
for (m = {}, a = 0;a < u.attributes.length; a++)
|
|
384
|
+
m[(y = u.attributes[a]).name] = y.value;
|
|
385
|
+
for (a in m)
|
|
386
|
+
y = m[a], a == "dangerouslySetInnerHTML" ? p = y : a == "children" || (a in k) || a == "value" && ("defaultValue" in k) || a == "checked" && ("defaultChecked" in k) || N(u, a, null, y, o);
|
|
387
|
+
for (a in k)
|
|
388
|
+
y = k[a], a == "children" ? v = y : a == "dangerouslySetInnerHTML" ? h = y : a == "value" ? w = y : a == "checked" ? _ = y : c && typeof y != "function" || m[a] === y || N(u, a, y, m[a], o);
|
|
389
|
+
if (h)
|
|
390
|
+
c || p && (h.__html == p.__html || h.__html == u.innerHTML) || (u.innerHTML = h.__html), t.__k = [];
|
|
391
|
+
else if (p && (u.innerHTML = ""), L(t.type == "template" ? u.content : u, g(v) ? v : [v], t, i, r, x == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, e, f, e ? e[0] : i.__k && $(i, 0), c, s), e != null)
|
|
392
|
+
for (a = e.length;a--; )
|
|
393
|
+
b(e[a]);
|
|
394
|
+
c || (a = "value", x == "progress" && w == null ? u.removeAttribute("value") : w != null && (w !== u[a] || x == "progress" && !w || x == "option" && w != m[a]) && N(u, a, w, m[a], o), a = "checked", _ != null && _ != u[a] && N(u, a, _, m[a], o));
|
|
403
395
|
}
|
|
404
|
-
return
|
|
396
|
+
return u;
|
|
405
397
|
}
|
|
406
|
-
function J(
|
|
398
|
+
function J(n, u, t) {
|
|
407
399
|
try {
|
|
408
|
-
if (typeof
|
|
409
|
-
var
|
|
410
|
-
|
|
400
|
+
if (typeof n == "function") {
|
|
401
|
+
var i = typeof n.__u == "function";
|
|
402
|
+
i && n.__u(), i && u == null || (n.__u = n(u));
|
|
411
403
|
} else
|
|
412
|
-
|
|
413
|
-
} catch (
|
|
414
|
-
l.__e(
|
|
404
|
+
n.current = u;
|
|
405
|
+
} catch (n) {
|
|
406
|
+
l.__e(n, t);
|
|
415
407
|
}
|
|
416
408
|
}
|
|
417
|
-
function K(
|
|
418
|
-
var
|
|
419
|
-
if (l.unmount && l.unmount(
|
|
420
|
-
if (
|
|
409
|
+
function K(n, u, t) {
|
|
410
|
+
var i, r;
|
|
411
|
+
if (l.unmount && l.unmount(n), (i = n.ref) && (i.current && i.current != n.__e || J(i, null, u)), (i = n.__c) != null) {
|
|
412
|
+
if (i.componentWillUnmount)
|
|
421
413
|
try {
|
|
422
|
-
|
|
423
|
-
} catch (
|
|
424
|
-
l.__e(
|
|
414
|
+
i.componentWillUnmount();
|
|
415
|
+
} catch (n) {
|
|
416
|
+
l.__e(n, u);
|
|
425
417
|
}
|
|
426
|
-
|
|
418
|
+
i.base = i.__P = null;
|
|
427
419
|
}
|
|
428
|
-
if (
|
|
429
|
-
for (
|
|
430
|
-
|
|
431
|
-
|
|
420
|
+
if (i = n.__k)
|
|
421
|
+
for (r = 0;r < i.length; r++)
|
|
422
|
+
i[r] && K(i[r], u, t || typeof n.type != "function");
|
|
423
|
+
t || b(n.__e), n.__c = n.__ = n.__e = undefined;
|
|
432
424
|
}
|
|
433
|
-
function Q(
|
|
434
|
-
return this.constructor(
|
|
425
|
+
function Q(n, l, u) {
|
|
426
|
+
return this.constructor(n, u);
|
|
435
427
|
}
|
|
436
|
-
n = w.slice, l = { __e: function(
|
|
437
|
-
for (var
|
|
438
|
-
if ((
|
|
428
|
+
n = w.slice, l = { __e: function(n, l, u, t) {
|
|
429
|
+
for (var i, r, o;l = l.__; )
|
|
430
|
+
if ((i = l.__c) && !i.__)
|
|
439
431
|
try {
|
|
440
|
-
if ((
|
|
441
|
-
return
|
|
442
|
-
} catch (
|
|
443
|
-
|
|
432
|
+
if ((r = i.constructor) && r.getDerivedStateFromError != null && (i.setState(r.getDerivedStateFromError(n)), o = i.__d), i.componentDidCatch != null && (i.componentDidCatch(n, t || {}), o = i.__d), o)
|
|
433
|
+
return i.__E = i;
|
|
434
|
+
} catch (l) {
|
|
435
|
+
n = l;
|
|
444
436
|
}
|
|
445
|
-
throw
|
|
446
|
-
} }, u = 0, t = function(
|
|
447
|
-
return
|
|
448
|
-
}, C.prototype.setState = function(
|
|
449
|
-
var
|
|
450
|
-
|
|
451
|
-
}, C.prototype.forceUpdate = function(
|
|
452
|
-
this.__v && (this.__e = true,
|
|
453
|
-
}, C.prototype.render = S, i = [], o = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, e = function(
|
|
454
|
-
return
|
|
437
|
+
throw n;
|
|
438
|
+
} }, u = 0, t = function(n) {
|
|
439
|
+
return n != null && n.constructor === undefined;
|
|
440
|
+
}, C.prototype.setState = function(n, l) {
|
|
441
|
+
var u;
|
|
442
|
+
u = this.__s != null && this.__s != this.state ? this.__s : this.__s = m({}, this.state), typeof n == "function" && (n = n(m({}, u), this.props)), n && m(u, n), n != null && this.__v && (l && this._sb.push(l), A(this));
|
|
443
|
+
}, C.prototype.forceUpdate = function(n) {
|
|
444
|
+
this.__v && (this.__e = true, n && this.__h.push(n), A(this));
|
|
445
|
+
}, C.prototype.render = S, i = [], o = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, e = function(n, l) {
|
|
446
|
+
return n.__v.__b - l.__v.__b;
|
|
455
447
|
}, H.__r = 0, f = Math.random().toString(8), c = "__d" + f, s = "__a" + f, a = /(PointerCapture)$|Capture$/i, h = 0, p = V(false), v = V(true), y = 0;
|
|
456
448
|
|
|
457
449
|
// ../../node_modules/.bun/preact@10.29.1/node_modules/preact/hooks/dist/hooks.mjs
|
|
@@ -468,83 +460,83 @@ var v2 = c2.diffed;
|
|
|
468
460
|
var l2 = c2.__c;
|
|
469
461
|
var m2 = c2.unmount;
|
|
470
462
|
var s2 = c2.__;
|
|
471
|
-
function p2(
|
|
472
|
-
c2.__h && c2.__h(r2,
|
|
473
|
-
var
|
|
474
|
-
return
|
|
463
|
+
function p2(n, t) {
|
|
464
|
+
c2.__h && c2.__h(r2, n, o2 || t), o2 = 0;
|
|
465
|
+
var u = r2.__H || (r2.__H = { __: [], __h: [] });
|
|
466
|
+
return n >= u.__.length && u.__.push({}), u.__[n];
|
|
475
467
|
}
|
|
476
|
-
function T2(
|
|
477
|
-
var
|
|
478
|
-
return C2(
|
|
468
|
+
function T2(n, r) {
|
|
469
|
+
var u = p2(t2++, 7);
|
|
470
|
+
return C2(u.__H, r) && (u.__ = n(), u.__H = r, u.__h = n), u.__;
|
|
479
471
|
}
|
|
480
472
|
function j2() {
|
|
481
|
-
for (var
|
|
482
|
-
var
|
|
483
|
-
if (
|
|
473
|
+
for (var n;n = f2.shift(); ) {
|
|
474
|
+
var t = n.__H;
|
|
475
|
+
if (n.__P && t)
|
|
484
476
|
try {
|
|
485
|
-
|
|
486
|
-
} catch (
|
|
487
|
-
|
|
477
|
+
t.__h.some(z2), t.__h.some(B2), t.__h = [];
|
|
478
|
+
} catch (r) {
|
|
479
|
+
t.__h = [], c2.__e(r, n.__v);
|
|
488
480
|
}
|
|
489
481
|
}
|
|
490
482
|
}
|
|
491
|
-
c2.__b = function(
|
|
492
|
-
r2 = null, e2 && e2(
|
|
493
|
-
}, c2.__ = function(
|
|
494
|
-
|
|
495
|
-
}, c2.__r = function(
|
|
496
|
-
a2 && a2(
|
|
497
|
-
var
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
})) : (
|
|
501
|
-
}, c2.diffed = function(
|
|
502
|
-
v2 && v2(
|
|
503
|
-
var
|
|
504
|
-
|
|
505
|
-
|
|
483
|
+
c2.__b = function(n) {
|
|
484
|
+
r2 = null, e2 && e2(n);
|
|
485
|
+
}, c2.__ = function(n, t) {
|
|
486
|
+
n && t.__k && t.__k.__m && (n.__m = t.__k.__m), s2 && s2(n, t);
|
|
487
|
+
}, c2.__r = function(n) {
|
|
488
|
+
a2 && a2(n), t2 = 0;
|
|
489
|
+
var i = (r2 = n.__c).__H;
|
|
490
|
+
i && (u2 === r2 ? (i.__h = [], r2.__h = [], i.__.some(function(n) {
|
|
491
|
+
n.__N && (n.__ = n.__N), n.u = n.__N = undefined;
|
|
492
|
+
})) : (i.__h.some(z2), i.__h.some(B2), i.__h = [], t2 = 0)), u2 = r2;
|
|
493
|
+
}, c2.diffed = function(n) {
|
|
494
|
+
v2 && v2(n);
|
|
495
|
+
var t = n.__c;
|
|
496
|
+
t && t.__H && (t.__H.__h.length && (f2.push(t) !== 1 && i2 === c2.requestAnimationFrame || ((i2 = c2.requestAnimationFrame) || w2)(j2)), t.__H.__.some(function(n) {
|
|
497
|
+
n.u && (n.__H = n.u), n.u = undefined;
|
|
506
498
|
})), u2 = r2 = null;
|
|
507
|
-
}, c2.__c = function(
|
|
508
|
-
|
|
499
|
+
}, c2.__c = function(n, t) {
|
|
500
|
+
t.some(function(n) {
|
|
509
501
|
try {
|
|
510
|
-
|
|
511
|
-
return !
|
|
502
|
+
n.__h.some(z2), n.__h = n.__h.filter(function(n) {
|
|
503
|
+
return !n.__ || B2(n);
|
|
512
504
|
});
|
|
513
|
-
} catch (
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
}),
|
|
505
|
+
} catch (r) {
|
|
506
|
+
t.some(function(n) {
|
|
507
|
+
n.__h && (n.__h = []);
|
|
508
|
+
}), t = [], c2.__e(r, n.__v);
|
|
517
509
|
}
|
|
518
|
-
}), l2 && l2(
|
|
519
|
-
}, c2.unmount = function(
|
|
520
|
-
m2 && m2(
|
|
521
|
-
var
|
|
522
|
-
|
|
510
|
+
}), l2 && l2(n, t);
|
|
511
|
+
}, c2.unmount = function(n) {
|
|
512
|
+
m2 && m2(n);
|
|
513
|
+
var t, r = n.__c;
|
|
514
|
+
r && r.__H && (r.__H.__.some(function(n) {
|
|
523
515
|
try {
|
|
524
|
-
z2(
|
|
525
|
-
} catch (
|
|
526
|
-
|
|
516
|
+
z2(n);
|
|
517
|
+
} catch (n) {
|
|
518
|
+
t = n;
|
|
527
519
|
}
|
|
528
|
-
}),
|
|
520
|
+
}), r.__H = undefined, t && c2.__e(t, r.__v));
|
|
529
521
|
};
|
|
530
522
|
var k = typeof requestAnimationFrame == "function";
|
|
531
|
-
function w2(
|
|
532
|
-
var
|
|
533
|
-
clearTimeout(
|
|
534
|
-
},
|
|
535
|
-
k && (
|
|
536
|
-
}
|
|
537
|
-
function z2(
|
|
538
|
-
var
|
|
539
|
-
typeof
|
|
540
|
-
}
|
|
541
|
-
function B2(
|
|
542
|
-
var
|
|
543
|
-
|
|
544
|
-
}
|
|
545
|
-
function C2(
|
|
546
|
-
return !
|
|
547
|
-
return
|
|
523
|
+
function w2(n) {
|
|
524
|
+
var t, r = function() {
|
|
525
|
+
clearTimeout(u), k && cancelAnimationFrame(t), setTimeout(n);
|
|
526
|
+
}, u = setTimeout(r, 35);
|
|
527
|
+
k && (t = requestAnimationFrame(r));
|
|
528
|
+
}
|
|
529
|
+
function z2(n) {
|
|
530
|
+
var t = r2, u = n.__c;
|
|
531
|
+
typeof u == "function" && (n.__c = undefined, u()), r2 = t;
|
|
532
|
+
}
|
|
533
|
+
function B2(n) {
|
|
534
|
+
var t = r2;
|
|
535
|
+
n.__c = n.__(), r2 = t;
|
|
536
|
+
}
|
|
537
|
+
function C2(n, t) {
|
|
538
|
+
return !n || n.length !== t.length || t.some(function(t, r) {
|
|
539
|
+
return t !== n[r];
|
|
548
540
|
});
|
|
549
541
|
}
|
|
550
542
|
|
|
@@ -555,61 +547,61 @@ function t3() {
|
|
|
555
547
|
e3--;
|
|
556
548
|
return;
|
|
557
549
|
}
|
|
558
|
-
let
|
|
550
|
+
let i, t = false;
|
|
559
551
|
(function() {
|
|
560
|
-
let
|
|
552
|
+
let i = r3;
|
|
561
553
|
r3 = undefined;
|
|
562
|
-
while (
|
|
563
|
-
if (
|
|
564
|
-
|
|
565
|
-
|
|
554
|
+
while (i !== undefined) {
|
|
555
|
+
if (i.S.v === i.v)
|
|
556
|
+
i.S.i = i.i;
|
|
557
|
+
i = i.o;
|
|
566
558
|
}
|
|
567
559
|
})();
|
|
568
560
|
while (s3 !== undefined) {
|
|
569
|
-
let
|
|
561
|
+
let n = s3;
|
|
570
562
|
s3 = undefined;
|
|
571
563
|
u3++;
|
|
572
|
-
while (
|
|
573
|
-
const
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
if (!(8 &
|
|
564
|
+
while (n !== undefined) {
|
|
565
|
+
const o = n.u;
|
|
566
|
+
n.u = undefined;
|
|
567
|
+
n.f &= -3;
|
|
568
|
+
if (!(8 & n.f) && w3(n))
|
|
577
569
|
try {
|
|
578
|
-
|
|
579
|
-
} catch (
|
|
580
|
-
if (!
|
|
581
|
-
|
|
582
|
-
|
|
570
|
+
n.c();
|
|
571
|
+
} catch (n) {
|
|
572
|
+
if (!t) {
|
|
573
|
+
i = n;
|
|
574
|
+
t = true;
|
|
583
575
|
}
|
|
584
576
|
}
|
|
585
|
-
|
|
577
|
+
n = o;
|
|
586
578
|
}
|
|
587
579
|
}
|
|
588
580
|
u3 = 0;
|
|
589
581
|
e3--;
|
|
590
|
-
if (
|
|
591
|
-
throw
|
|
582
|
+
if (t)
|
|
583
|
+
throw i;
|
|
592
584
|
}
|
|
593
|
-
function n2(
|
|
585
|
+
function n2(i) {
|
|
594
586
|
if (e3 > 0)
|
|
595
|
-
return
|
|
587
|
+
return i();
|
|
596
588
|
d2 = ++c3;
|
|
597
589
|
e3++;
|
|
598
590
|
try {
|
|
599
|
-
return
|
|
591
|
+
return i();
|
|
600
592
|
} finally {
|
|
601
593
|
t3();
|
|
602
594
|
}
|
|
603
595
|
}
|
|
604
596
|
var o3;
|
|
605
597
|
var s3;
|
|
606
|
-
function h2(
|
|
607
|
-
const
|
|
598
|
+
function h2(i) {
|
|
599
|
+
const t = o3;
|
|
608
600
|
o3 = undefined;
|
|
609
601
|
try {
|
|
610
|
-
return
|
|
602
|
+
return i();
|
|
611
603
|
} finally {
|
|
612
|
-
o3 =
|
|
604
|
+
o3 = t;
|
|
613
605
|
}
|
|
614
606
|
}
|
|
615
607
|
var r3;
|
|
@@ -619,90 +611,90 @@ var u3 = 0;
|
|
|
619
611
|
var c3 = 0;
|
|
620
612
|
var d2 = 0;
|
|
621
613
|
var v3 = 0;
|
|
622
|
-
function l3(
|
|
614
|
+
function l3(i) {
|
|
623
615
|
if (o3 === undefined)
|
|
624
616
|
return;
|
|
625
|
-
let
|
|
626
|
-
if (
|
|
627
|
-
|
|
617
|
+
let t = i.n;
|
|
618
|
+
if (t === undefined || t.t !== o3) {
|
|
619
|
+
t = { i: 0, S: i, p: o3.s, n: undefined, t: o3, e: undefined, x: undefined, r: t };
|
|
628
620
|
if (o3.s !== undefined)
|
|
629
|
-
o3.s.n =
|
|
630
|
-
o3.s =
|
|
631
|
-
|
|
621
|
+
o3.s.n = t;
|
|
622
|
+
o3.s = t;
|
|
623
|
+
i.n = t;
|
|
632
624
|
if (32 & o3.f)
|
|
633
|
-
|
|
634
|
-
return
|
|
635
|
-
} else if (
|
|
636
|
-
|
|
637
|
-
if (
|
|
638
|
-
|
|
639
|
-
if (
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
o3.s.n =
|
|
644
|
-
o3.s =
|
|
625
|
+
i.S(t);
|
|
626
|
+
return t;
|
|
627
|
+
} else if (t.i === -1) {
|
|
628
|
+
t.i = 0;
|
|
629
|
+
if (t.n !== undefined) {
|
|
630
|
+
t.n.p = t.p;
|
|
631
|
+
if (t.p !== undefined)
|
|
632
|
+
t.p.n = t.n;
|
|
633
|
+
t.p = o3.s;
|
|
634
|
+
t.n = undefined;
|
|
635
|
+
o3.s.n = t;
|
|
636
|
+
o3.s = t;
|
|
645
637
|
}
|
|
646
|
-
return
|
|
638
|
+
return t;
|
|
647
639
|
}
|
|
648
640
|
}
|
|
649
|
-
function y2(
|
|
650
|
-
this.v =
|
|
641
|
+
function y2(i, t) {
|
|
642
|
+
this.v = i;
|
|
651
643
|
this.i = 0;
|
|
652
644
|
this.n = undefined;
|
|
653
645
|
this.t = undefined;
|
|
654
646
|
this.l = 0;
|
|
655
|
-
this.W =
|
|
656
|
-
this.Z =
|
|
657
|
-
this.name =
|
|
647
|
+
this.W = t == null ? undefined : t.watched;
|
|
648
|
+
this.Z = t == null ? undefined : t.unwatched;
|
|
649
|
+
this.name = t == null ? undefined : t.name;
|
|
658
650
|
}
|
|
659
651
|
y2.prototype.brand = i3;
|
|
660
652
|
y2.prototype.h = function() {
|
|
661
653
|
return true;
|
|
662
654
|
};
|
|
663
|
-
y2.prototype.S = function(
|
|
664
|
-
const
|
|
665
|
-
if (
|
|
666
|
-
|
|
667
|
-
this.t =
|
|
668
|
-
if (
|
|
669
|
-
|
|
655
|
+
y2.prototype.S = function(i) {
|
|
656
|
+
const t = this.t;
|
|
657
|
+
if (t !== i && i.e === undefined) {
|
|
658
|
+
i.x = t;
|
|
659
|
+
this.t = i;
|
|
660
|
+
if (t !== undefined)
|
|
661
|
+
t.e = i;
|
|
670
662
|
else
|
|
671
663
|
h2(() => {
|
|
672
|
-
var
|
|
673
|
-
(
|
|
664
|
+
var i;
|
|
665
|
+
(i = this.W) == null || i.call(this);
|
|
674
666
|
});
|
|
675
667
|
}
|
|
676
668
|
};
|
|
677
|
-
y2.prototype.U = function(
|
|
669
|
+
y2.prototype.U = function(i) {
|
|
678
670
|
if (this.t !== undefined) {
|
|
679
|
-
const { e:
|
|
680
|
-
if (
|
|
681
|
-
|
|
682
|
-
|
|
671
|
+
const { e: t, x: n } = i;
|
|
672
|
+
if (t !== undefined) {
|
|
673
|
+
t.x = n;
|
|
674
|
+
i.e = undefined;
|
|
683
675
|
}
|
|
684
|
-
if (
|
|
685
|
-
|
|
686
|
-
|
|
676
|
+
if (n !== undefined) {
|
|
677
|
+
n.e = t;
|
|
678
|
+
i.x = undefined;
|
|
687
679
|
}
|
|
688
|
-
if (
|
|
689
|
-
this.t =
|
|
690
|
-
if (
|
|
680
|
+
if (i === this.t) {
|
|
681
|
+
this.t = n;
|
|
682
|
+
if (n === undefined)
|
|
691
683
|
h2(() => {
|
|
692
|
-
var
|
|
693
|
-
(
|
|
684
|
+
var i;
|
|
685
|
+
(i = this.Z) == null || i.call(this);
|
|
694
686
|
});
|
|
695
687
|
}
|
|
696
688
|
}
|
|
697
689
|
};
|
|
698
|
-
y2.prototype.subscribe = function(
|
|
690
|
+
y2.prototype.subscribe = function(i) {
|
|
699
691
|
return j3(() => {
|
|
700
|
-
const
|
|
692
|
+
const t = this.value, n = o3;
|
|
701
693
|
o3 = undefined;
|
|
702
694
|
try {
|
|
703
|
-
|
|
695
|
+
i(t);
|
|
704
696
|
} finally {
|
|
705
|
-
o3 =
|
|
697
|
+
o3 = n;
|
|
706
698
|
}
|
|
707
699
|
}, { name: "sub" });
|
|
708
700
|
};
|
|
@@ -719,84 +711,84 @@ y2.prototype.peek = function() {
|
|
|
719
711
|
return h2(() => this.value);
|
|
720
712
|
};
|
|
721
713
|
Object.defineProperty(y2.prototype, "value", { get() {
|
|
722
|
-
const
|
|
723
|
-
if (
|
|
724
|
-
|
|
714
|
+
const i = l3(this);
|
|
715
|
+
if (i !== undefined)
|
|
716
|
+
i.i = this.i;
|
|
725
717
|
return this.v;
|
|
726
|
-
}, set(
|
|
727
|
-
if (
|
|
718
|
+
}, set(i) {
|
|
719
|
+
if (i !== this.v) {
|
|
728
720
|
if (u3 > 100)
|
|
729
721
|
throw new Error("Cycle detected");
|
|
730
|
-
(function(
|
|
722
|
+
(function(i) {
|
|
731
723
|
if (e3 !== 0 && u3 === 0) {
|
|
732
|
-
if (
|
|
733
|
-
|
|
734
|
-
r3 = { S:
|
|
724
|
+
if (i.l !== d2) {
|
|
725
|
+
i.l = d2;
|
|
726
|
+
r3 = { S: i, v: i.v, i: i.i, o: r3 };
|
|
735
727
|
}
|
|
736
728
|
}
|
|
737
729
|
})(this);
|
|
738
|
-
this.v =
|
|
730
|
+
this.v = i;
|
|
739
731
|
this.i++;
|
|
740
732
|
v3++;
|
|
741
733
|
e3++;
|
|
742
734
|
try {
|
|
743
|
-
for (let
|
|
744
|
-
|
|
735
|
+
for (let i = this.t;i !== undefined; i = i.x)
|
|
736
|
+
i.t.N();
|
|
745
737
|
} finally {
|
|
746
738
|
t3();
|
|
747
739
|
}
|
|
748
740
|
}
|
|
749
741
|
} });
|
|
750
|
-
function a3(
|
|
751
|
-
return new y2(
|
|
742
|
+
function a3(i, t) {
|
|
743
|
+
return new y2(i, t);
|
|
752
744
|
}
|
|
753
|
-
function w3(
|
|
754
|
-
for (let
|
|
755
|
-
if (
|
|
745
|
+
function w3(i) {
|
|
746
|
+
for (let t = i.s;t !== undefined; t = t.n)
|
|
747
|
+
if (t.S.i !== t.i || !t.S.h() || t.S.i !== t.i)
|
|
756
748
|
return true;
|
|
757
749
|
return false;
|
|
758
750
|
}
|
|
759
|
-
function _2(
|
|
760
|
-
for (let
|
|
761
|
-
const
|
|
762
|
-
if (
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
if (
|
|
767
|
-
|
|
751
|
+
function _2(i) {
|
|
752
|
+
for (let t = i.s;t !== undefined; t = t.n) {
|
|
753
|
+
const n = t.S.n;
|
|
754
|
+
if (n !== undefined)
|
|
755
|
+
t.r = n;
|
|
756
|
+
t.S.n = t;
|
|
757
|
+
t.i = -1;
|
|
758
|
+
if (t.n === undefined) {
|
|
759
|
+
i.s = t;
|
|
768
760
|
break;
|
|
769
761
|
}
|
|
770
762
|
}
|
|
771
763
|
}
|
|
772
|
-
function b2(
|
|
773
|
-
let
|
|
774
|
-
while (
|
|
775
|
-
const
|
|
776
|
-
if (
|
|
777
|
-
|
|
778
|
-
if (
|
|
779
|
-
|
|
780
|
-
if (
|
|
781
|
-
|
|
764
|
+
function b2(i) {
|
|
765
|
+
let t, n = i.s;
|
|
766
|
+
while (n !== undefined) {
|
|
767
|
+
const i = n.p;
|
|
768
|
+
if (n.i === -1) {
|
|
769
|
+
n.S.U(n);
|
|
770
|
+
if (i !== undefined)
|
|
771
|
+
i.n = n.n;
|
|
772
|
+
if (n.n !== undefined)
|
|
773
|
+
n.n.p = i;
|
|
782
774
|
} else
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
if (
|
|
786
|
-
|
|
787
|
-
|
|
775
|
+
t = n;
|
|
776
|
+
n.S.n = n.r;
|
|
777
|
+
if (n.r !== undefined)
|
|
778
|
+
n.r = undefined;
|
|
779
|
+
n = i;
|
|
788
780
|
}
|
|
789
|
-
|
|
781
|
+
i.s = t;
|
|
790
782
|
}
|
|
791
|
-
function p3(
|
|
783
|
+
function p3(i, t) {
|
|
792
784
|
y2.call(this, undefined);
|
|
793
|
-
this.x =
|
|
785
|
+
this.x = i;
|
|
794
786
|
this.s = undefined;
|
|
795
787
|
this.g = v3 - 1;
|
|
796
788
|
this.f = 4;
|
|
797
|
-
this.W =
|
|
798
|
-
this.Z =
|
|
799
|
-
this.name =
|
|
789
|
+
this.W = t == null ? undefined : t.watched;
|
|
790
|
+
this.Z = t == null ? undefined : t.unwatched;
|
|
791
|
+
this.name = t == null ? undefined : t.name;
|
|
800
792
|
}
|
|
801
793
|
p3.prototype = new y2;
|
|
802
794
|
p3.prototype.h = function() {
|
|
@@ -814,124 +806,124 @@ p3.prototype.h = function() {
|
|
|
814
806
|
this.f &= -2;
|
|
815
807
|
return true;
|
|
816
808
|
}
|
|
817
|
-
const
|
|
809
|
+
const i = o3;
|
|
818
810
|
try {
|
|
819
811
|
_2(this);
|
|
820
812
|
o3 = this;
|
|
821
|
-
const
|
|
822
|
-
if (16 & this.f || this.v !==
|
|
823
|
-
this.v =
|
|
813
|
+
const i = this.x();
|
|
814
|
+
if (16 & this.f || this.v !== i || this.i === 0) {
|
|
815
|
+
this.v = i;
|
|
824
816
|
this.f &= -17;
|
|
825
817
|
this.i++;
|
|
826
818
|
}
|
|
827
|
-
} catch (
|
|
828
|
-
this.v =
|
|
819
|
+
} catch (i) {
|
|
820
|
+
this.v = i;
|
|
829
821
|
this.f |= 16;
|
|
830
822
|
this.i++;
|
|
831
823
|
}
|
|
832
|
-
o3 =
|
|
824
|
+
o3 = i;
|
|
833
825
|
b2(this);
|
|
834
826
|
this.f &= -2;
|
|
835
827
|
return true;
|
|
836
828
|
};
|
|
837
|
-
p3.prototype.S = function(
|
|
829
|
+
p3.prototype.S = function(i) {
|
|
838
830
|
if (this.t === undefined) {
|
|
839
831
|
this.f |= 36;
|
|
840
|
-
for (let
|
|
841
|
-
|
|
832
|
+
for (let i = this.s;i !== undefined; i = i.n)
|
|
833
|
+
i.S.S(i);
|
|
842
834
|
}
|
|
843
|
-
y2.prototype.S.call(this,
|
|
835
|
+
y2.prototype.S.call(this, i);
|
|
844
836
|
};
|
|
845
|
-
p3.prototype.U = function(
|
|
837
|
+
p3.prototype.U = function(i) {
|
|
846
838
|
if (this.t !== undefined) {
|
|
847
|
-
y2.prototype.U.call(this,
|
|
839
|
+
y2.prototype.U.call(this, i);
|
|
848
840
|
if (this.t === undefined) {
|
|
849
841
|
this.f &= -33;
|
|
850
|
-
for (let
|
|
851
|
-
|
|
842
|
+
for (let i = this.s;i !== undefined; i = i.n)
|
|
843
|
+
i.S.U(i);
|
|
852
844
|
}
|
|
853
845
|
}
|
|
854
846
|
};
|
|
855
847
|
p3.prototype.N = function() {
|
|
856
848
|
if (!(2 & this.f)) {
|
|
857
849
|
this.f |= 6;
|
|
858
|
-
for (let
|
|
859
|
-
|
|
850
|
+
for (let i = this.t;i !== undefined; i = i.x)
|
|
851
|
+
i.t.N();
|
|
860
852
|
}
|
|
861
853
|
};
|
|
862
854
|
Object.defineProperty(p3.prototype, "value", { get() {
|
|
863
855
|
if (1 & this.f)
|
|
864
856
|
throw new Error("Cycle detected");
|
|
865
|
-
const
|
|
857
|
+
const i = l3(this);
|
|
866
858
|
this.h();
|
|
867
|
-
if (
|
|
868
|
-
|
|
859
|
+
if (i !== undefined)
|
|
860
|
+
i.i = this.i;
|
|
869
861
|
if (16 & this.f)
|
|
870
862
|
throw this.v;
|
|
871
863
|
return this.v;
|
|
872
864
|
} });
|
|
873
|
-
function g2(
|
|
874
|
-
return new p3(
|
|
865
|
+
function g2(i, t) {
|
|
866
|
+
return new p3(i, t);
|
|
875
867
|
}
|
|
876
|
-
function S2(
|
|
877
|
-
const
|
|
878
|
-
|
|
879
|
-
if (typeof
|
|
868
|
+
function S2(i) {
|
|
869
|
+
const n = i.m;
|
|
870
|
+
i.m = undefined;
|
|
871
|
+
if (typeof n == "function") {
|
|
880
872
|
e3++;
|
|
881
|
-
const
|
|
873
|
+
const s = o3;
|
|
882
874
|
o3 = undefined;
|
|
883
875
|
try {
|
|
884
|
-
|
|
885
|
-
} catch (
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
m3(
|
|
889
|
-
throw
|
|
876
|
+
n();
|
|
877
|
+
} catch (t) {
|
|
878
|
+
i.f &= -2;
|
|
879
|
+
i.f |= 8;
|
|
880
|
+
m3(i);
|
|
881
|
+
throw t;
|
|
890
882
|
} finally {
|
|
891
|
-
o3 =
|
|
883
|
+
o3 = s;
|
|
892
884
|
t3();
|
|
893
885
|
}
|
|
894
886
|
}
|
|
895
887
|
}
|
|
896
|
-
function m3(
|
|
897
|
-
for (let
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
S2(
|
|
888
|
+
function m3(i) {
|
|
889
|
+
for (let t = i.s;t !== undefined; t = t.n)
|
|
890
|
+
t.S.U(t);
|
|
891
|
+
i.x = undefined;
|
|
892
|
+
i.s = undefined;
|
|
893
|
+
S2(i);
|
|
902
894
|
}
|
|
903
|
-
function x2(
|
|
895
|
+
function x2(i) {
|
|
904
896
|
if (o3 !== this)
|
|
905
897
|
throw new Error("Out-of-order effect");
|
|
906
898
|
b2(this);
|
|
907
|
-
o3 =
|
|
899
|
+
o3 = i;
|
|
908
900
|
this.f &= -2;
|
|
909
901
|
if (8 & this.f)
|
|
910
902
|
m3(this);
|
|
911
903
|
t3();
|
|
912
904
|
}
|
|
913
|
-
function E2(
|
|
914
|
-
this.x =
|
|
905
|
+
function E2(i, t) {
|
|
906
|
+
this.x = i;
|
|
915
907
|
this.m = undefined;
|
|
916
908
|
this.s = undefined;
|
|
917
909
|
this.u = undefined;
|
|
918
910
|
this.f = 32;
|
|
919
|
-
this.name =
|
|
911
|
+
this.name = t == null ? undefined : t.name;
|
|
920
912
|
if (f3)
|
|
921
913
|
f3.push(this);
|
|
922
914
|
}
|
|
923
915
|
E2.prototype.c = function() {
|
|
924
|
-
const
|
|
916
|
+
const i = this.S();
|
|
925
917
|
try {
|
|
926
918
|
if (8 & this.f)
|
|
927
919
|
return;
|
|
928
920
|
if (this.x === undefined)
|
|
929
921
|
return;
|
|
930
|
-
const
|
|
931
|
-
if (typeof
|
|
932
|
-
this.m =
|
|
922
|
+
const t = this.x();
|
|
923
|
+
if (typeof t == "function")
|
|
924
|
+
this.m = t;
|
|
933
925
|
} finally {
|
|
934
|
-
|
|
926
|
+
i();
|
|
935
927
|
}
|
|
936
928
|
};
|
|
937
929
|
E2.prototype.S = function() {
|
|
@@ -942,9 +934,9 @@ E2.prototype.S = function() {
|
|
|
942
934
|
S2(this);
|
|
943
935
|
_2(this);
|
|
944
936
|
e3++;
|
|
945
|
-
const
|
|
937
|
+
const i = o3;
|
|
946
938
|
o3 = this;
|
|
947
|
-
return x2.bind(this,
|
|
939
|
+
return x2.bind(this, i);
|
|
948
940
|
};
|
|
949
941
|
E2.prototype.N = function() {
|
|
950
942
|
if (!(2 & this.f)) {
|
|
@@ -961,17 +953,17 @@ E2.prototype.d = function() {
|
|
|
961
953
|
E2.prototype.dispose = function() {
|
|
962
954
|
this.d();
|
|
963
955
|
};
|
|
964
|
-
function j3(
|
|
965
|
-
const
|
|
956
|
+
function j3(i, t) {
|
|
957
|
+
const n = new E2(i, t);
|
|
966
958
|
try {
|
|
967
|
-
|
|
968
|
-
} catch (
|
|
969
|
-
|
|
970
|
-
throw
|
|
959
|
+
n.c();
|
|
960
|
+
} catch (i) {
|
|
961
|
+
n.d();
|
|
962
|
+
throw i;
|
|
971
963
|
}
|
|
972
|
-
const
|
|
973
|
-
|
|
974
|
-
return
|
|
964
|
+
const o = n.d.bind(n);
|
|
965
|
+
o[Symbol.dispose] = o;
|
|
966
|
+
return o;
|
|
975
967
|
}
|
|
976
968
|
|
|
977
969
|
// ../../node_modules/.bun/@preact+signals@2.9.0+8ade602ed6c36360/node_modules/@preact/signals/dist/signals.mjs
|
|
@@ -983,229 +975,229 @@ var _3 = [];
|
|
|
983
975
|
j3(function() {
|
|
984
976
|
h3 = this.N;
|
|
985
977
|
})();
|
|
986
|
-
function g3(
|
|
987
|
-
l[
|
|
978
|
+
function g3(t, e) {
|
|
979
|
+
l[t] = e.bind(null, l[t] || (() => {}));
|
|
988
980
|
}
|
|
989
|
-
function b3(
|
|
981
|
+
function b3(t) {
|
|
990
982
|
if (v4) {
|
|
991
|
-
const
|
|
983
|
+
const t = v4;
|
|
992
984
|
v4 = undefined;
|
|
993
|
-
|
|
985
|
+
t();
|
|
994
986
|
}
|
|
995
|
-
v4 =
|
|
996
|
-
}
|
|
997
|
-
function y4({ data:
|
|
998
|
-
const
|
|
999
|
-
|
|
1000
|
-
const [
|
|
1001
|
-
let
|
|
1002
|
-
while (
|
|
1003
|
-
if (
|
|
1004
|
-
|
|
987
|
+
v4 = t && t.S();
|
|
988
|
+
}
|
|
989
|
+
function y4({ data: t2 }) {
|
|
990
|
+
const i = useSignal(t2);
|
|
991
|
+
i.value = t2;
|
|
992
|
+
const [n, r] = T2(() => {
|
|
993
|
+
let t2 = this, n = this.__v;
|
|
994
|
+
while (n = n.__)
|
|
995
|
+
if (n.__c) {
|
|
996
|
+
n.__c.__$f |= 4;
|
|
1005
997
|
break;
|
|
1006
998
|
}
|
|
1007
|
-
const
|
|
1008
|
-
let
|
|
1009
|
-
return
|
|
1010
|
-
}),
|
|
999
|
+
const o = g2(() => {
|
|
1000
|
+
let t2 = i.value.value;
|
|
1001
|
+
return t2 === 0 ? 0 : t2 === true ? "" : t2 || "";
|
|
1002
|
+
}), r = g2(() => !Array.isArray(o.value) && !t(o.value)), f = j3(function() {
|
|
1011
1003
|
this.N = F;
|
|
1012
|
-
if (
|
|
1013
|
-
const
|
|
1014
|
-
if (
|
|
1015
|
-
|
|
1004
|
+
if (r.value) {
|
|
1005
|
+
const i = o.value;
|
|
1006
|
+
if (t2.__v && t2.__v.__e && t2.__v.__e.nodeType === 3)
|
|
1007
|
+
t2.__v.__e.data = i;
|
|
1016
1008
|
}
|
|
1017
|
-
}),
|
|
1009
|
+
}), s = this.__$u.d;
|
|
1018
1010
|
this.__$u.d = function() {
|
|
1019
|
-
|
|
1020
|
-
|
|
1011
|
+
f();
|
|
1012
|
+
s.call(this);
|
|
1021
1013
|
};
|
|
1022
|
-
return [
|
|
1014
|
+
return [r, o];
|
|
1023
1015
|
}, []);
|
|
1024
|
-
return
|
|
1016
|
+
return n.value ? r.peek() : r.value;
|
|
1025
1017
|
}
|
|
1026
1018
|
y4.displayName = "ReactiveTextNode";
|
|
1027
1019
|
Object.defineProperties(y2.prototype, { constructor: { configurable: true, value: undefined }, type: { configurable: true, value: y4 }, props: { configurable: true, get() {
|
|
1028
|
-
const
|
|
1020
|
+
const t = this;
|
|
1029
1021
|
return { data: { get value() {
|
|
1030
|
-
return
|
|
1022
|
+
return t.value;
|
|
1031
1023
|
} } };
|
|
1032
1024
|
} }, __b: { configurable: true, value: 1 } });
|
|
1033
|
-
g3("__b", (
|
|
1034
|
-
if (typeof
|
|
1035
|
-
let
|
|
1036
|
-
for (let
|
|
1037
|
-
if (
|
|
1025
|
+
g3("__b", (t, i) => {
|
|
1026
|
+
if (typeof i.type == "string") {
|
|
1027
|
+
let t, e = i.props;
|
|
1028
|
+
for (let n in e) {
|
|
1029
|
+
if (n === "children")
|
|
1038
1030
|
continue;
|
|
1039
|
-
let
|
|
1040
|
-
if (
|
|
1041
|
-
if (!
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1031
|
+
let o = e[n];
|
|
1032
|
+
if (o instanceof y2) {
|
|
1033
|
+
if (!t)
|
|
1034
|
+
i.__np = t = {};
|
|
1035
|
+
t[n] = o;
|
|
1036
|
+
e[n] = o.peek();
|
|
1045
1037
|
}
|
|
1046
1038
|
}
|
|
1047
1039
|
}
|
|
1048
|
-
|
|
1040
|
+
t(i);
|
|
1049
1041
|
});
|
|
1050
|
-
g3("__r", (
|
|
1051
|
-
|
|
1052
|
-
if (
|
|
1042
|
+
g3("__r", (t, i) => {
|
|
1043
|
+
t(i);
|
|
1044
|
+
if (i.type !== S) {
|
|
1053
1045
|
b3();
|
|
1054
|
-
let
|
|
1055
|
-
if (
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
if (
|
|
1059
|
-
|
|
1060
|
-
let
|
|
1046
|
+
let t, e = i.__c;
|
|
1047
|
+
if (e) {
|
|
1048
|
+
e.__$f &= -2;
|
|
1049
|
+
t = e.__$u;
|
|
1050
|
+
if (t === undefined)
|
|
1051
|
+
e.__$u = t = function(t, i) {
|
|
1052
|
+
let e;
|
|
1061
1053
|
j3(function() {
|
|
1062
|
-
|
|
1063
|
-
}, { name:
|
|
1064
|
-
|
|
1065
|
-
return
|
|
1054
|
+
e = this;
|
|
1055
|
+
}, { name: i });
|
|
1056
|
+
e.c = t;
|
|
1057
|
+
return e;
|
|
1066
1058
|
}(() => {
|
|
1067
|
-
var
|
|
1059
|
+
var i;
|
|
1068
1060
|
if (d3)
|
|
1069
|
-
(
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
}, typeof
|
|
1061
|
+
(i = t.y) == null || i.call(t);
|
|
1062
|
+
e.__$f |= 1;
|
|
1063
|
+
e.setState({});
|
|
1064
|
+
}, typeof i.type == "function" ? i.type.displayName || i.type.name : "");
|
|
1073
1065
|
}
|
|
1074
|
-
p4 =
|
|
1075
|
-
b3(
|
|
1066
|
+
p4 = e;
|
|
1067
|
+
b3(t);
|
|
1076
1068
|
}
|
|
1077
1069
|
});
|
|
1078
|
-
g3("__e", (
|
|
1070
|
+
g3("__e", (t, i, e, n) => {
|
|
1079
1071
|
b3();
|
|
1080
1072
|
p4 = undefined;
|
|
1081
|
-
|
|
1073
|
+
t(i, e, n);
|
|
1082
1074
|
});
|
|
1083
|
-
g3("diffed", (
|
|
1075
|
+
g3("diffed", (t, i) => {
|
|
1084
1076
|
b3();
|
|
1085
1077
|
p4 = undefined;
|
|
1086
|
-
let
|
|
1087
|
-
if (typeof
|
|
1088
|
-
let { __np:
|
|
1089
|
-
if (
|
|
1090
|
-
let
|
|
1091
|
-
if (
|
|
1092
|
-
for (let
|
|
1093
|
-
let
|
|
1094
|
-
if (
|
|
1095
|
-
|
|
1096
|
-
|
|
1078
|
+
let e;
|
|
1079
|
+
if (typeof i.type == "string" && (e = i.__e)) {
|
|
1080
|
+
let { __np: t, props: n } = i;
|
|
1081
|
+
if (t) {
|
|
1082
|
+
let i = e.U;
|
|
1083
|
+
if (i)
|
|
1084
|
+
for (let e in i) {
|
|
1085
|
+
let n = i[e];
|
|
1086
|
+
if (n !== undefined && !(e in t)) {
|
|
1087
|
+
n.d();
|
|
1088
|
+
i[e] = undefined;
|
|
1097
1089
|
}
|
|
1098
1090
|
}
|
|
1099
1091
|
else {
|
|
1100
|
-
|
|
1101
|
-
|
|
1092
|
+
i = {};
|
|
1093
|
+
e.U = i;
|
|
1102
1094
|
}
|
|
1103
|
-
for (let
|
|
1104
|
-
let
|
|
1105
|
-
if (
|
|
1106
|
-
|
|
1107
|
-
|
|
1095
|
+
for (let o in t) {
|
|
1096
|
+
let r = i[o], f = t[o];
|
|
1097
|
+
if (r === undefined) {
|
|
1098
|
+
r = w4(e, o, f);
|
|
1099
|
+
i[o] = r;
|
|
1108
1100
|
} else
|
|
1109
|
-
|
|
1101
|
+
r.o(f, n);
|
|
1110
1102
|
}
|
|
1111
|
-
for (let
|
|
1112
|
-
|
|
1103
|
+
for (let i in t)
|
|
1104
|
+
n[i] = t[i];
|
|
1113
1105
|
}
|
|
1114
1106
|
}
|
|
1115
|
-
|
|
1107
|
+
t(i);
|
|
1116
1108
|
});
|
|
1117
|
-
function w4(
|
|
1118
|
-
const
|
|
1119
|
-
let
|
|
1120
|
-
return { o: (
|
|
1121
|
-
|
|
1122
|
-
|
|
1109
|
+
function w4(t, i, e, n) {
|
|
1110
|
+
const o = i in t && t.ownerSVGElement === undefined, r = a3(e);
|
|
1111
|
+
let f = e.peek();
|
|
1112
|
+
return { o: (t, i) => {
|
|
1113
|
+
r.value = t;
|
|
1114
|
+
f = t.peek();
|
|
1123
1115
|
}, d: j3(function() {
|
|
1124
1116
|
this.N = F;
|
|
1125
|
-
const
|
|
1126
|
-
if (
|
|
1127
|
-
|
|
1128
|
-
if (
|
|
1129
|
-
|
|
1130
|
-
else if (
|
|
1131
|
-
|
|
1117
|
+
const e = r.value.value;
|
|
1118
|
+
if (f !== e) {
|
|
1119
|
+
f = undefined;
|
|
1120
|
+
if (o)
|
|
1121
|
+
t[i] = e;
|
|
1122
|
+
else if (e != null && (e !== false || i[4] === "-"))
|
|
1123
|
+
t.setAttribute(i, e);
|
|
1132
1124
|
else
|
|
1133
|
-
|
|
1125
|
+
t.removeAttribute(i);
|
|
1134
1126
|
} else
|
|
1135
|
-
|
|
1127
|
+
f = undefined;
|
|
1136
1128
|
}) };
|
|
1137
1129
|
}
|
|
1138
|
-
g3("unmount", (
|
|
1139
|
-
if (typeof
|
|
1140
|
-
let
|
|
1141
|
-
if (
|
|
1142
|
-
const
|
|
1143
|
-
if (
|
|
1144
|
-
|
|
1145
|
-
for (let
|
|
1146
|
-
let
|
|
1147
|
-
if (
|
|
1148
|
-
|
|
1130
|
+
g3("unmount", (t, i) => {
|
|
1131
|
+
if (typeof i.type == "string") {
|
|
1132
|
+
let t = i.__e;
|
|
1133
|
+
if (t) {
|
|
1134
|
+
const i = t.U;
|
|
1135
|
+
if (i) {
|
|
1136
|
+
t.U = undefined;
|
|
1137
|
+
for (let t in i) {
|
|
1138
|
+
let e = i[t];
|
|
1139
|
+
if (e)
|
|
1140
|
+
e.d();
|
|
1149
1141
|
}
|
|
1150
1142
|
}
|
|
1151
1143
|
}
|
|
1152
|
-
|
|
1144
|
+
i.__np = undefined;
|
|
1153
1145
|
} else {
|
|
1154
|
-
let
|
|
1155
|
-
if (
|
|
1156
|
-
const
|
|
1157
|
-
if (
|
|
1158
|
-
|
|
1159
|
-
|
|
1146
|
+
let t = i.__c;
|
|
1147
|
+
if (t) {
|
|
1148
|
+
const i = t.__$u;
|
|
1149
|
+
if (i) {
|
|
1150
|
+
t.__$u = undefined;
|
|
1151
|
+
i.d();
|
|
1160
1152
|
}
|
|
1161
1153
|
}
|
|
1162
1154
|
}
|
|
1163
|
-
|
|
1155
|
+
t(i);
|
|
1164
1156
|
});
|
|
1165
|
-
g3("__h", (
|
|
1166
|
-
if (
|
|
1167
|
-
|
|
1168
|
-
|
|
1157
|
+
g3("__h", (t, i, e, n) => {
|
|
1158
|
+
if (n < 3 || n === 9)
|
|
1159
|
+
i.__$f |= 2;
|
|
1160
|
+
t(i, e, n);
|
|
1169
1161
|
});
|
|
1170
|
-
C.prototype.shouldComponentUpdate = function(
|
|
1162
|
+
C.prototype.shouldComponentUpdate = function(t, i) {
|
|
1171
1163
|
if (this.__R)
|
|
1172
1164
|
return true;
|
|
1173
|
-
const
|
|
1174
|
-
for (let
|
|
1165
|
+
const e = this.__$u, n = e && e.s !== undefined;
|
|
1166
|
+
for (let t in i)
|
|
1175
1167
|
return true;
|
|
1176
1168
|
if (this.__f || typeof this.u == "boolean" && this.u === true) {
|
|
1177
|
-
const
|
|
1178
|
-
if (!(
|
|
1169
|
+
const t = 2 & this.__$f;
|
|
1170
|
+
if (!(n || t || 4 & this.__$f))
|
|
1179
1171
|
return true;
|
|
1180
1172
|
if (1 & this.__$f)
|
|
1181
1173
|
return true;
|
|
1182
1174
|
} else {
|
|
1183
|
-
if (!(
|
|
1175
|
+
if (!(n || 4 & this.__$f))
|
|
1184
1176
|
return true;
|
|
1185
1177
|
if (3 & this.__$f)
|
|
1186
1178
|
return true;
|
|
1187
1179
|
}
|
|
1188
|
-
for (let
|
|
1189
|
-
if (
|
|
1180
|
+
for (let i in t)
|
|
1181
|
+
if (i !== "__source" && t[i] !== this.props[i])
|
|
1190
1182
|
return true;
|
|
1191
|
-
for (let
|
|
1192
|
-
if (!(
|
|
1183
|
+
for (let i in this.props)
|
|
1184
|
+
if (!(i in t))
|
|
1193
1185
|
return true;
|
|
1194
1186
|
return false;
|
|
1195
1187
|
};
|
|
1196
|
-
function useSignal(
|
|
1197
|
-
return T2(() => a3(
|
|
1188
|
+
function useSignal(t, i) {
|
|
1189
|
+
return T2(() => a3(t, i), []);
|
|
1198
1190
|
}
|
|
1199
|
-
var q2 = (
|
|
1191
|
+
var q2 = (t) => {
|
|
1200
1192
|
queueMicrotask(() => {
|
|
1201
|
-
queueMicrotask(
|
|
1193
|
+
queueMicrotask(t);
|
|
1202
1194
|
});
|
|
1203
1195
|
};
|
|
1204
1196
|
function x3() {
|
|
1205
1197
|
n2(() => {
|
|
1206
|
-
let
|
|
1207
|
-
while (
|
|
1208
|
-
h3.call(
|
|
1198
|
+
let t;
|
|
1199
|
+
while (t = _3.shift())
|
|
1200
|
+
h3.call(t);
|
|
1209
1201
|
});
|
|
1210
1202
|
}
|
|
1211
1203
|
function F() {
|
|
@@ -1325,7 +1317,7 @@ async function listNodeFSDocumentIds(baseDirectory) {
|
|
|
1325
1317
|
return documentIds;
|
|
1326
1318
|
}
|
|
1327
1319
|
async function createPeerRepoServer(options) {
|
|
1328
|
-
const [{ Repo
|
|
1320
|
+
const [{ Repo }, { WebSocketServerAdapter }, { NodeFSStorageAdapter }, ws] = await Promise.all([
|
|
1329
1321
|
import("@automerge/automerge-repo/slim"),
|
|
1330
1322
|
import("@automerge/automerge-repo-network-websocket"),
|
|
1331
1323
|
import("@automerge/automerge-repo-storage-nodefs"),
|
|
@@ -1341,7 +1333,7 @@ async function createPeerRepoServer(options) {
|
|
|
1341
1333
|
const adapter = new WebSocketServerAdapter(wss);
|
|
1342
1334
|
const storagePath = options.storagePath ?? "automerge-repo-data";
|
|
1343
1335
|
const storage = new NodeFSStorageAdapter(storagePath);
|
|
1344
|
-
const repo = new
|
|
1336
|
+
const repo = new Repo({
|
|
1345
1337
|
network: [adapter],
|
|
1346
1338
|
storage
|
|
1347
1339
|
});
|
|
@@ -1353,8 +1345,8 @@ async function createPeerRepoServer(options) {
|
|
|
1353
1345
|
storage,
|
|
1354
1346
|
sweepSealed: async (sweepOptions) => {
|
|
1355
1347
|
const documentIds = await listNodeFSDocumentIds(storagePath);
|
|
1356
|
-
|
|
1357
|
-
return
|
|
1348
|
+
await Promise.resolve().then(() => init_sweep_sealed());
|
|
1349
|
+
return sweepSealed({ repo, storage, documentIds, ...sweepOptions });
|
|
1358
1350
|
},
|
|
1359
1351
|
close: async () => {
|
|
1360
1352
|
for (const client of wss.clients) {
|
|
@@ -1418,4 +1410,4 @@ export {
|
|
|
1418
1410
|
withRepoServer
|
|
1419
1411
|
};
|
|
1420
1412
|
|
|
1421
|
-
//# debugId=
|
|
1413
|
+
//# debugId=B049880B0B8E230164756E2164756E21
|