@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.
Files changed (102) hide show
  1. package/dist/cli/polly.js +4 -4
  2. package/dist/cli/polly.js.map +2 -2
  3. package/dist/gallery/gallery.css +51 -59
  4. package/dist/gallery/gallery.js +1155 -1047
  5. package/dist/src/actions/index.js +5 -78
  6. package/dist/src/actions/index.js.map +2 -2
  7. package/dist/src/background/index.js +126 -152
  8. package/dist/src/background/index.js.map +4 -4
  9. package/dist/src/background/message-router.js +126 -152
  10. package/dist/src/background/message-router.js.map +4 -4
  11. package/dist/src/client/index.js +186 -259
  12. package/dist/src/client/index.js.map +5 -5
  13. package/dist/src/elysia/index.js +21 -35
  14. package/dist/src/elysia/index.js.map +2 -2
  15. package/dist/src/index.js +218 -246
  16. package/dist/src/index.js.map +10 -10
  17. package/dist/src/mesh.js +49 -61
  18. package/dist/src/mesh.js.map +4 -4
  19. package/dist/src/peer.js +23 -52
  20. package/dist/src/peer.js.map +2 -2
  21. package/dist/src/polly-ui/Button.d.ts +7 -0
  22. package/dist/src/polly-ui/Collapsible.d.ts +3 -1
  23. package/dist/src/polly-ui/Layout.d.ts +16 -1
  24. package/dist/src/polly-ui/index.css +47 -59
  25. package/dist/src/polly-ui/index.js +112 -124
  26. package/dist/src/polly-ui/index.js.map +13 -13
  27. package/dist/src/polly-ui/markdown.js +72 -145
  28. package/dist/src/polly-ui/markdown.js.map +2 -2
  29. package/dist/src/polly-ui/styles.css +47 -59
  30. package/dist/src/polly-ui/theme.css +10 -0
  31. package/dist/src/shared/adapters/index.js +31 -44
  32. package/dist/src/shared/adapters/index.js.map +2 -2
  33. package/dist/src/shared/lib/context-helpers.js +126 -152
  34. package/dist/src/shared/lib/context-helpers.js.map +4 -4
  35. package/dist/src/shared/lib/errors.js +1 -74
  36. package/dist/src/shared/lib/errors.js.map +2 -2
  37. package/dist/src/shared/lib/guards.js +1 -74
  38. package/dist/src/shared/lib/guards.js.map +2 -2
  39. package/dist/src/shared/lib/message-bus.js +126 -152
  40. package/dist/src/shared/lib/message-bus.js.map +4 -4
  41. package/dist/src/shared/lib/resource.js +16 -27
  42. package/dist/src/shared/lib/resource.js.map +5 -5
  43. package/dist/src/shared/lib/state.js +13 -26
  44. package/dist/src/shared/lib/state.js.map +2 -2
  45. package/dist/src/shared/lib/test-helpers.js +1 -74
  46. package/dist/src/shared/lib/test-helpers.js.map +2 -2
  47. package/dist/src/shared/state/app-state.js +35 -46
  48. package/dist/src/shared/state/app-state.js.map +5 -5
  49. package/dist/src/shared/types/messages.js +1 -74
  50. package/dist/src/shared/types/messages.js.map +2 -2
  51. package/dist/tools/bdd/src/cli.js +11 -15
  52. package/dist/tools/bdd/src/cli.js.map +2 -2
  53. package/dist/tools/bdd/src/index.js +11 -19
  54. package/dist/tools/bdd/src/index.js.map +2 -2
  55. package/dist/tools/gallery/src/cli.js +1 -18
  56. package/dist/tools/gallery/src/cli.js.map +2 -2
  57. package/dist/tools/init/src/cli.js +1 -18
  58. package/dist/tools/init/src/cli.js.map +2 -2
  59. package/dist/tools/mutate/src/cli.js +8 -25
  60. package/dist/tools/mutate/src/cli.js.map +2 -2
  61. package/dist/tools/mutate/src/index.js +8 -26
  62. package/dist/tools/mutate/src/index.js.map +2 -2
  63. package/dist/tools/quality/src/cli.js +39 -46
  64. package/dist/tools/quality/src/cli.js.map +3 -3
  65. package/dist/tools/quality/src/css/check-layout.d.ts +5 -3
  66. package/dist/tools/quality/src/index.js +39 -47
  67. package/dist/tools/quality/src/index.js.map +3 -3
  68. package/dist/tools/test/src/adapters/index.js +4 -77
  69. package/dist/tools/test/src/adapters/index.js.map +2 -2
  70. package/dist/tools/test/src/browser/index.js +1 -74
  71. package/dist/tools/test/src/browser/index.js.map +2 -2
  72. package/dist/tools/test/src/browser/run.js +5 -22
  73. package/dist/tools/test/src/browser/run.js.map +2 -2
  74. package/dist/tools/test/src/contrast/index.js +1 -74
  75. package/dist/tools/test/src/contrast/index.js.map +2 -2
  76. package/dist/tools/test/src/coverage-policy/cli.js +13 -25
  77. package/dist/tools/test/src/coverage-policy/cli.js.map +2 -2
  78. package/dist/tools/test/src/coverage-policy/index.js +11 -23
  79. package/dist/tools/test/src/coverage-policy/index.js.map +2 -2
  80. package/dist/tools/test/src/e2e-mesh/index.js +18 -43
  81. package/dist/tools/test/src/e2e-mesh/index.js.map +2 -2
  82. package/dist/tools/test/src/e2e-relay/index.js +615 -623
  83. package/dist/tools/test/src/e2e-relay/index.js.map +2 -2
  84. package/dist/tools/test/src/index.js +30 -103
  85. package/dist/tools/test/src/index.js.map +5 -5
  86. package/dist/tools/test/src/test-utils.js +1 -74
  87. package/dist/tools/test/src/test-utils.js.map +2 -2
  88. package/dist/tools/test/src/tiers/cli.js +1 -18
  89. package/dist/tools/test/src/tiers/cli.js.map +2 -2
  90. package/dist/tools/test/src/tiers/worker.js +11 -15
  91. package/dist/tools/test/src/tiers/worker.js.map +2 -2
  92. package/dist/tools/test/src/visual/index.js +1112 -1134
  93. package/dist/tools/test/src/visual/index.js.map +3 -3
  94. package/dist/tools/verify/src/cli.js +103 -169
  95. package/dist/tools/verify/src/cli.js.map +2 -2
  96. package/dist/tools/verify/src/config.js +1 -74
  97. package/dist/tools/verify/src/config.js.map +2 -2
  98. package/dist/tools/verify/src/stryker/index.js +1 -19
  99. package/dist/tools/verify/src/stryker/index.js.map +2 -2
  100. package/dist/tools/visualize/src/cli.js +69 -85
  101. package/dist/tools/visualize/src/cli.js.map +2 -2
  102. package/package.json +1 -1
@@ -1,26 +1,18 @@
1
1
  import { createRequire } from "node:module";
2
- var __defProp = Object.defineProperty;
3
- var __returnValue = (v) => v;
4
- function __exportSetter(name, newValue) {
5
- this[name] = __returnValue.bind(null, newValue);
6
- }
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, {
10
- get: all[name],
11
- enumerable: true,
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((a4, b4) => (a4.key[1] === "snapshot" ? 0 : 1) - (b4.key[1] === "snapshot" ? 0 : 1));
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(n2, l2) {
177
- for (var u2 in l2)
178
- n2[u2] = l2[u2];
179
- return n2;
180
- }
181
- function b(n2) {
182
- n2 && n2.parentNode && n2.parentNode.removeChild(n2);
183
- }
184
- function x(n2, t2, i2, r2, o2) {
185
- var e2 = { type: n2, props: t2, key: i2, ref: r2, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: undefined, __v: o2 == null ? ++u : o2, __i: -1, __u: 0 };
186
- return o2 == null && l.vnode != null && l.vnode(e2), e2;
187
- }
188
- function S(n2) {
189
- return n2.children;
190
- }
191
- function C(n2, l2) {
192
- this.props = n2, this.context = l2;
193
- }
194
- function $(n2, l2) {
195
- if (l2 == null)
196
- return n2.__ ? $(n2.__, n2.__i + 1) : null;
197
- for (var u2;l2 < n2.__k.length; l2++)
198
- if ((u2 = n2.__k[l2]) != null && u2.__e != null)
199
- return u2.__e;
200
- return typeof n2.type == "function" ? $(n2) : null;
201
- }
202
- function I(n2) {
203
- if (n2.__P && n2.__d) {
204
- var u2 = n2.__v, t2 = u2.__e, i2 = [], r2 = [], o2 = m({}, u2);
205
- o2.__v = u2.__v + 1, l.vnode && l.vnode(o2), q(n2.__P, o2, u2, n2.__n, n2.__P.namespaceURI, 32 & u2.__u ? [t2] : null, i2, t2 == null ? $(u2) : t2, !!(32 & u2.__u), r2), o2.__v = u2.__v, o2.__.__k[o2.__i] = o2, D(i2, o2, r2), u2.__e = u2.__ = null, o2.__e != t2 && P(o2);
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(n2) {
209
- if ((n2 = n2.__) != null && n2.__c != null)
210
- return n2.__e = n2.__c.base = null, n2.__k.some(function(l2) {
211
- if (l2 != null && l2.__e != null)
212
- return n2.__e = n2.__c.base = l2.__e;
213
- }), P(n2);
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(n2) {
216
- (!n2.__d && (n2.__d = true) && i.push(n2) && !H.__r++ || r != l.debounceRendering) && ((r = l.debounceRendering) || o)(H);
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 n2, l2 = 1;i.length; )
221
- i.length > l2 && i.sort(e), n2 = i.shift(), l2 = i.length, I(n2);
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(n2, l2, u2, t2, i2, r2, o2, e2, f2, c2, s2) {
227
- var a2, h2, p2, v2, y2, _2, g2, m2 = t2 && t2.__k || w, b2 = l2.length;
228
- for (f2 = T(u2, l2, m2, f2, b2), a2 = 0;a2 < b2; a2++)
229
- (p2 = u2.__k[a2]) != null && (h2 = p2.__i != -1 && m2[p2.__i] || d, p2.__i = a2, _2 = q(n2, p2, h2, i2, r2, o2, e2, f2, c2, s2), v2 = p2.__e, p2.ref && h2.ref != p2.ref && (h2.ref && J(h2.ref, null, p2), s2.push(p2.ref, p2.__c || v2, p2)), y2 == null && v2 != null && (y2 = v2), (g2 = !!(4 & p2.__u)) || h2.__k === p2.__k ? (f2 = j(p2, f2, n2, g2), g2 && h2.__e && (h2.__e = null)) : typeof p2.type == "function" && _2 !== undefined ? f2 = _2 : v2 && (f2 = v2.nextSibling), p2.__u &= -7);
230
- return u2.__e = y2, f2;
231
- }
232
- function T(n2, l2, u2, t2, i2) {
233
- var r2, o2, e2, f2, c2, s2 = u2.length, a2 = s2, h2 = 0;
234
- for (n2.__k = new Array(i2), r2 = 0;r2 < i2; r2++)
235
- (o2 = l2[r2]) != null && typeof o2 != "boolean" && typeof o2 != "function" ? (typeof o2 == "string" || typeof o2 == "number" || typeof o2 == "bigint" || o2.constructor == String ? o2 = n2.__k[r2] = x(null, o2, null, null, null) : g(o2) ? o2 = n2.__k[r2] = x(S, { children: o2 }, null, null, null) : o2.constructor === undefined && o2.__b > 0 ? o2 = n2.__k[r2] = x(o2.type, o2.props, o2.key, o2.ref ? o2.ref : null, o2.__v) : n2.__k[r2] = o2, f2 = r2 + h2, o2.__ = n2, o2.__b = n2.__b + 1, e2 = null, (c2 = o2.__i = O(o2, u2, f2, a2)) != -1 && (a2--, (e2 = u2[c2]) && (e2.__u |= 2)), e2 == null || e2.__v == null ? (c2 == -1 && (i2 > s2 ? h2-- : i2 < s2 && h2++), typeof o2.type != "function" && (o2.__u |= 4)) : c2 != f2 && (c2 == f2 - 1 ? h2-- : c2 == f2 + 1 ? h2++ : (c2 > f2 ? h2-- : h2++, o2.__u |= 4))) : n2.__k[r2] = null;
236
- if (a2)
237
- for (r2 = 0;r2 < s2; r2++)
238
- (e2 = u2[r2]) != null && (2 & e2.__u) == 0 && (e2.__e == t2 && (t2 = $(e2)), K(e2, e2));
239
- return t2;
240
- }
241
- function j(n2, l2, u2, t2) {
242
- var i2, r2;
243
- if (typeof n2.type == "function") {
244
- for (i2 = n2.__k, r2 = 0;i2 && r2 < i2.length; r2++)
245
- i2[r2] && (i2[r2].__ = n2, l2 = j(i2[r2], l2, u2, t2));
246
- return l2;
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
- n2.__e != l2 && (t2 && (l2 && n2.type && !l2.parentNode && (l2 = $(n2)), u2.insertBefore(n2.__e, l2 || null)), l2 = n2.__e);
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
- l2 = l2 && l2.nextSibling;
251
- } while (l2 != null && l2.nodeType == 8);
252
- return l2;
253
- }
254
- function O(n2, l2, u2, t2) {
255
- var i2, r2, o2, e2 = n2.key, f2 = n2.type, c2 = l2[u2], s2 = c2 != null && (2 & c2.__u) == 0;
256
- if (c2 === null && e2 == null || s2 && e2 == c2.key && f2 == c2.type)
257
- return u2;
258
- if (t2 > (s2 ? 1 : 0)) {
259
- for (i2 = u2 - 1, r2 = u2 + 1;i2 >= 0 || r2 < l2.length; )
260
- if ((c2 = l2[o2 = i2 >= 0 ? i2-- : r2++]) != null && (2 & c2.__u) == 0 && e2 == c2.key && f2 == c2.type)
261
- return o2;
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(n2, l2, u2) {
266
- l2[0] == "-" ? n2.setProperty(l2, u2 == null ? "" : u2) : n2[l2] = u2 == null ? "" : typeof u2 != "number" || _.test(l2) ? u2 : u2 + "px";
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(n2, l2, u2, t2, i2) {
269
- var r2, o2;
260
+ function N(n, l, u, t, i) {
261
+ var r, o;
270
262
  n:
271
- if (l2 == "style")
272
- if (typeof u2 == "string")
273
- n2.style.cssText = u2;
263
+ if (l == "style")
264
+ if (typeof u == "string")
265
+ n.style.cssText = u;
274
266
  else {
275
- if (typeof t2 == "string" && (n2.style.cssText = t2 = ""), t2)
276
- for (l2 in t2)
277
- u2 && l2 in u2 || z(n2.style, l2, "");
278
- if (u2)
279
- for (l2 in u2)
280
- t2 && u2[l2] == t2[l2] || z(n2.style, l2, u2[l2]);
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 (l2[0] == "o" && l2[1] == "n")
283
- r2 = l2 != (l2 = l2.replace(a, "$1")), o2 = l2.toLowerCase(), l2 = o2 in n2 || l2 == "onFocusOut" || l2 == "onFocusIn" ? o2.slice(2) : l2.slice(2), n2.l || (n2.l = {}), n2.l[l2 + r2] = u2, u2 ? t2 ? u2[s] = t2[s] : (u2[s] = h, n2.addEventListener(l2, r2 ? v : p, r2)) : n2.removeEventListener(l2, r2 ? v : p, r2);
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 (i2 == "http://www.w3.org/2000/svg")
286
- l2 = l2.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
287
- else if (l2 != "width" && l2 != "height" && l2 != "href" && l2 != "list" && l2 != "form" && l2 != "tabIndex" && l2 != "download" && l2 != "rowSpan" && l2 != "colSpan" && l2 != "role" && l2 != "popover" && l2 in n2)
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
- n2[l2] = u2 == null ? "" : u2;
281
+ n[l] = u == null ? "" : u;
290
282
  break n;
291
- } catch (n3) {}
292
- typeof u2 == "function" || (u2 == null || u2 === false && l2[4] != "-" ? n2.removeAttribute(l2) : n2.setAttribute(l2, l2 == "popover" && u2 == 1 ? "" : u2));
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(n2) {
296
- return function(u2) {
287
+ function V(n) {
288
+ return function(u) {
297
289
  if (this.l) {
298
- var t2 = this.l[u2.type + n2];
299
- if (u2[c] == null)
300
- u2[c] = h++;
301
- else if (u2[c] < t2[s])
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 t2(l.event ? l.event(u2) : u2);
295
+ return t(l.event ? l.event(u) : u);
304
296
  }
305
297
  };
306
298
  }
307
- function q(n2, u2, t2, i2, r2, o2, e2, f2, c2, s2) {
308
- var a2, h2, p2, v2, y2, d2, _2, k, x2, M, $2, I2, P2, A2, H2, T2 = u2.type;
309
- if (u2.constructor !== undefined)
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 & t2.__u && (c2 = !!(32 & t2.__u), o2 = [f2 = u2.__e = t2.__e]), (a2 = l.__b) && a2(u2);
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 T2 == "function")
305
+ if (typeof T == "function")
314
306
  try {
315
- if (k = u2.props, x2 = T2.prototype && T2.prototype.render, M = (a2 = T2.contextType) && i2[a2.__c], $2 = a2 ? M ? M.props.value : a2.__ : i2, t2.__c ? _2 = (h2 = u2.__c = t2.__c).__ = h2.__E : (x2 ? u2.__c = h2 = new T2(k, $2) : (u2.__c = h2 = new C(k, $2), h2.constructor = T2, h2.render = Q), M && M.sub(h2), h2.state || (h2.state = {}), h2.__n = i2, p2 = h2.__d = true, h2.__h = [], h2._sb = []), x2 && h2.__s == null && (h2.__s = h2.state), x2 && T2.getDerivedStateFromProps != null && (h2.__s == h2.state && (h2.__s = m({}, h2.__s)), m(h2.__s, T2.getDerivedStateFromProps(k, h2.__s))), v2 = h2.props, y2 = h2.state, h2.__v = u2, p2)
316
- x2 && T2.getDerivedStateFromProps == null && h2.componentWillMount != null && h2.componentWillMount(), x2 && h2.componentDidMount != null && h2.__h.push(h2.componentDidMount);
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 (x2 && T2.getDerivedStateFromProps == null && k !== v2 && h2.componentWillReceiveProps != null && h2.componentWillReceiveProps(k, $2), u2.__v == t2.__v || !h2.__e && h2.shouldComponentUpdate != null && h2.shouldComponentUpdate(k, h2.__s, $2) === false) {
319
- u2.__v != t2.__v && (h2.props = k, h2.state = h2.__s, h2.__d = false), u2.__e = t2.__e, u2.__k = t2.__k, u2.__k.some(function(n3) {
320
- n3 && (n3.__ = u2);
321
- }), w.push.apply(h2.__h, h2._sb), h2._sb = [], h2.__h.length && e2.push(h2);
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
- h2.componentWillUpdate != null && h2.componentWillUpdate(k, h2.__s, $2), x2 && h2.componentDidUpdate != null && h2.__h.push(function() {
325
- h2.componentDidUpdate(v2, y2, d2);
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 (h2.context = $2, h2.props = k, h2.__P = n2, h2.__e = false, I2 = l.__r, P2 = 0, x2)
329
- h2.state = h2.__s, h2.__d = false, I2 && I2(u2), a2 = h2.render(h2.props, h2.state, h2.context), w.push.apply(h2.__h, h2._sb), h2._sb = [];
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
- h2.__d = false, I2 && I2(u2), a2 = h2.render(h2.props, h2.state, h2.context), h2.state = h2.__s;
333
- } while (h2.__d && ++P2 < 25);
334
- h2.state = h2.__s, h2.getChildContext != null && (i2 = m(m({}, i2), h2.getChildContext())), x2 && !p2 && h2.getSnapshotBeforeUpdate != null && (d2 = h2.getSnapshotBeforeUpdate(v2, y2)), A2 = a2 != null && a2.type === S && a2.key == null ? E(a2.props.children) : a2, f2 = L(n2, g(A2) ? A2 : [A2], u2, t2, i2, r2, o2, e2, f2, c2, s2), h2.base = u2.__e, u2.__u &= -161, h2.__h.length && e2.push(h2), _2 && (h2.__E = h2.__ = null);
335
- } catch (n3) {
336
- if (u2.__v = null, c2 || o2 != null)
337
- if (n3.then) {
338
- for (u2.__u |= c2 ? 160 : 128;f2 && f2.nodeType == 8 && f2.nextSibling; )
339
- f2 = f2.nextSibling;
340
- o2[o2.indexOf(f2)] = null, u2.__e = f2;
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 (H2 = o2.length;H2--; )
343
- b(o2[H2]);
344
- B(u2);
334
+ for (H = o.length;H--; )
335
+ b(o[H]);
336
+ B(u);
345
337
  }
346
338
  else
347
- u2.__e = t2.__e, u2.__k = t2.__k, n3.then || B(u2);
348
- l.__e(n3, u2, t2);
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
- o2 == null && u2.__v == t2.__v ? (u2.__k = t2.__k, u2.__e = t2.__e) : f2 = u2.__e = G(t2.__e, u2, t2, i2, r2, o2, e2, c2, s2);
352
- return (a2 = l.diffed) && a2(u2), 128 & u2.__u ? undefined : f2;
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(n2) {
355
- n2 && (n2.__c && (n2.__c.__e = true), n2.__k && n2.__k.some(B));
346
+ function B(n) {
347
+ n && (n.__c && (n.__c.__e = true), n.__k && n.__k.some(B));
356
348
  }
357
- function D(n2, u2, t2) {
358
- for (var i2 = 0;i2 < t2.length; i2++)
359
- J(t2[i2], t2[++i2], t2[++i2]);
360
- l.__c && l.__c(u2, n2), n2.some(function(u3) {
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
- n2 = u3.__h, u3.__h = [], n2.some(function(n3) {
363
- n3.call(u3);
354
+ n = u.__h, u.__h = [], n.some(function(n) {
355
+ n.call(u);
364
356
  });
365
- } catch (n3) {
366
- l.__e(n3, u3.__v);
357
+ } catch (n) {
358
+ l.__e(n, u.__v);
367
359
  }
368
360
  });
369
361
  }
370
- function E(n2) {
371
- return typeof n2 != "object" || n2 == null || n2.__b > 0 ? n2 : g(n2) ? n2.map(E) : m({}, n2);
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(u2, t2, i2, r2, o2, e2, f2, c2, s2) {
374
- var a2, h2, p2, v2, y2, w2, _2, m2 = i2.props || d, k = t2.props, x2 = t2.type;
375
- if (x2 == "svg" ? o2 = "http://www.w3.org/2000/svg" : x2 == "math" ? o2 = "http://www.w3.org/1998/Math/MathML" : o2 || (o2 = "http://www.w3.org/1999/xhtml"), e2 != null) {
376
- for (a2 = 0;a2 < e2.length; a2++)
377
- if ((y2 = e2[a2]) && "setAttribute" in y2 == !!x2 && (x2 ? y2.localName == x2 : y2.nodeType == 3)) {
378
- u2 = y2, e2[a2] = null;
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 (u2 == null) {
383
- if (x2 == null)
374
+ if (u == null) {
375
+ if (x == null)
384
376
  return document.createTextNode(k);
385
- u2 = document.createElementNS(o2, x2, k.is && k), c2 && (l.__m && l.__m(t2, e2), c2 = false), e2 = null;
377
+ u = document.createElementNS(o, x, k.is && k), c && (l.__m && l.__m(t, e), c = false), e = null;
386
378
  }
387
- if (x2 == null)
388
- m2 === k || c2 && u2.data == k || (u2.data = k);
379
+ if (x == null)
380
+ m === k || c && u.data == k || (u.data = k);
389
381
  else {
390
- if (e2 = e2 && n.call(u2.childNodes), !c2 && e2 != null)
391
- for (m2 = {}, a2 = 0;a2 < u2.attributes.length; a2++)
392
- m2[(y2 = u2.attributes[a2]).name] = y2.value;
393
- for (a2 in m2)
394
- y2 = m2[a2], a2 == "dangerouslySetInnerHTML" ? p2 = y2 : a2 == "children" || (a2 in k) || a2 == "value" && ("defaultValue" in k) || a2 == "checked" && ("defaultChecked" in k) || N(u2, a2, null, y2, o2);
395
- for (a2 in k)
396
- y2 = k[a2], a2 == "children" ? v2 = y2 : a2 == "dangerouslySetInnerHTML" ? h2 = y2 : a2 == "value" ? w2 = y2 : a2 == "checked" ? _2 = y2 : c2 && typeof y2 != "function" || m2[a2] === y2 || N(u2, a2, y2, m2[a2], o2);
397
- if (h2)
398
- c2 || p2 && (h2.__html == p2.__html || h2.__html == u2.innerHTML) || (u2.innerHTML = h2.__html), t2.__k = [];
399
- else if (p2 && (u2.innerHTML = ""), L(t2.type == "template" ? u2.content : u2, g(v2) ? v2 : [v2], t2, i2, r2, x2 == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o2, e2, f2, e2 ? e2[0] : i2.__k && $(i2, 0), c2, s2), e2 != null)
400
- for (a2 = e2.length;a2--; )
401
- b(e2[a2]);
402
- c2 || (a2 = "value", x2 == "progress" && w2 == null ? u2.removeAttribute("value") : w2 != null && (w2 !== u2[a2] || x2 == "progress" && !w2 || x2 == "option" && w2 != m2[a2]) && N(u2, a2, w2, m2[a2], o2), a2 = "checked", _2 != null && _2 != u2[a2] && N(u2, a2, _2, m2[a2], o2));
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 u2;
396
+ return u;
405
397
  }
406
- function J(n2, u2, t2) {
398
+ function J(n, u, t) {
407
399
  try {
408
- if (typeof n2 == "function") {
409
- var i2 = typeof n2.__u == "function";
410
- i2 && n2.__u(), i2 && u2 == null || (n2.__u = n2(u2));
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
- n2.current = u2;
413
- } catch (n3) {
414
- l.__e(n3, t2);
404
+ n.current = u;
405
+ } catch (n) {
406
+ l.__e(n, t);
415
407
  }
416
408
  }
417
- function K(n2, u2, t2) {
418
- var i2, r2;
419
- if (l.unmount && l.unmount(n2), (i2 = n2.ref) && (i2.current && i2.current != n2.__e || J(i2, null, u2)), (i2 = n2.__c) != null) {
420
- if (i2.componentWillUnmount)
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
- i2.componentWillUnmount();
423
- } catch (n3) {
424
- l.__e(n3, u2);
414
+ i.componentWillUnmount();
415
+ } catch (n) {
416
+ l.__e(n, u);
425
417
  }
426
- i2.base = i2.__P = null;
418
+ i.base = i.__P = null;
427
419
  }
428
- if (i2 = n2.__k)
429
- for (r2 = 0;r2 < i2.length; r2++)
430
- i2[r2] && K(i2[r2], u2, t2 || typeof n2.type != "function");
431
- t2 || b(n2.__e), n2.__c = n2.__ = n2.__e = undefined;
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(n2, l2, u2) {
434
- return this.constructor(n2, u2);
425
+ function Q(n, l, u) {
426
+ return this.constructor(n, u);
435
427
  }
436
- n = w.slice, l = { __e: function(n2, l2, u2, t2) {
437
- for (var i2, r2, o2;l2 = l2.__; )
438
- if ((i2 = l2.__c) && !i2.__)
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 ((r2 = i2.constructor) && r2.getDerivedStateFromError != null && (i2.setState(r2.getDerivedStateFromError(n2)), o2 = i2.__d), i2.componentDidCatch != null && (i2.componentDidCatch(n2, t2 || {}), o2 = i2.__d), o2)
441
- return i2.__E = i2;
442
- } catch (l3) {
443
- n2 = l3;
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 n2;
446
- } }, u = 0, t = function(n2) {
447
- return n2 != null && n2.constructor === undefined;
448
- }, C.prototype.setState = function(n2, l2) {
449
- var u2;
450
- u2 = this.__s != null && this.__s != this.state ? this.__s : this.__s = m({}, this.state), typeof n2 == "function" && (n2 = n2(m({}, u2), this.props)), n2 && m(u2, n2), n2 != null && this.__v && (l2 && this._sb.push(l2), A(this));
451
- }, C.prototype.forceUpdate = function(n2) {
452
- this.__v && (this.__e = true, n2 && this.__h.push(n2), A(this));
453
- }, C.prototype.render = S, i = [], o = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, e = function(n2, l2) {
454
- return n2.__v.__b - l2.__v.__b;
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(n2, t3) {
472
- c2.__h && c2.__h(r2, n2, o2 || t3), o2 = 0;
473
- var u3 = r2.__H || (r2.__H = { __: [], __h: [] });
474
- return n2 >= u3.__.length && u3.__.push({}), u3.__[n2];
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(n2, r3) {
477
- var u3 = p2(t2++, 7);
478
- return C2(u3.__H, r3) && (u3.__ = n2(), u3.__H = r3, u3.__h = n2), u3.__;
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 n2;n2 = f2.shift(); ) {
482
- var t3 = n2.__H;
483
- if (n2.__P && t3)
473
+ for (var n;n = f2.shift(); ) {
474
+ var t = n.__H;
475
+ if (n.__P && t)
484
476
  try {
485
- t3.__h.some(z2), t3.__h.some(B2), t3.__h = [];
486
- } catch (r3) {
487
- t3.__h = [], c2.__e(r3, n2.__v);
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(n2) {
492
- r2 = null, e2 && e2(n2);
493
- }, c2.__ = function(n2, t3) {
494
- n2 && t3.__k && t3.__k.__m && (n2.__m = t3.__k.__m), s2 && s2(n2, t3);
495
- }, c2.__r = function(n2) {
496
- a2 && a2(n2), t2 = 0;
497
- var i3 = (r2 = n2.__c).__H;
498
- i3 && (u2 === r2 ? (i3.__h = [], r2.__h = [], i3.__.some(function(n3) {
499
- n3.__N && (n3.__ = n3.__N), n3.u = n3.__N = undefined;
500
- })) : (i3.__h.some(z2), i3.__h.some(B2), i3.__h = [], t2 = 0)), u2 = r2;
501
- }, c2.diffed = function(n2) {
502
- v2 && v2(n2);
503
- var t3 = n2.__c;
504
- t3 && t3.__H && (t3.__H.__h.length && (f2.push(t3) !== 1 && i2 === c2.requestAnimationFrame || ((i2 = c2.requestAnimationFrame) || w2)(j2)), t3.__H.__.some(function(n3) {
505
- n3.u && (n3.__H = n3.u), n3.u = undefined;
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(n2, t3) {
508
- t3.some(function(n3) {
499
+ }, c2.__c = function(n, t) {
500
+ t.some(function(n) {
509
501
  try {
510
- n3.__h.some(z2), n3.__h = n3.__h.filter(function(n4) {
511
- return !n4.__ || B2(n4);
502
+ n.__h.some(z2), n.__h = n.__h.filter(function(n) {
503
+ return !n.__ || B2(n);
512
504
  });
513
- } catch (r3) {
514
- t3.some(function(n4) {
515
- n4.__h && (n4.__h = []);
516
- }), t3 = [], c2.__e(r3, n3.__v);
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(n2, t3);
519
- }, c2.unmount = function(n2) {
520
- m2 && m2(n2);
521
- var t3, r3 = n2.__c;
522
- r3 && r3.__H && (r3.__H.__.some(function(n3) {
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(n3);
525
- } catch (n4) {
526
- t3 = n4;
516
+ z2(n);
517
+ } catch (n) {
518
+ t = n;
527
519
  }
528
- }), r3.__H = undefined, t3 && c2.__e(t3, r3.__v));
520
+ }), r.__H = undefined, t && c2.__e(t, r.__v));
529
521
  };
530
522
  var k = typeof requestAnimationFrame == "function";
531
- function w2(n2) {
532
- var t3, r3 = function() {
533
- clearTimeout(u3), k && cancelAnimationFrame(t3), setTimeout(n2);
534
- }, u3 = setTimeout(r3, 35);
535
- k && (t3 = requestAnimationFrame(r3));
536
- }
537
- function z2(n2) {
538
- var t3 = r2, u3 = n2.__c;
539
- typeof u3 == "function" && (n2.__c = undefined, u3()), r2 = t3;
540
- }
541
- function B2(n2) {
542
- var t3 = r2;
543
- n2.__c = n2.__(), r2 = t3;
544
- }
545
- function C2(n2, t3) {
546
- return !n2 || n2.length !== t3.length || t3.some(function(t4, r3) {
547
- return t4 !== n2[r3];
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 i4, t4 = false;
550
+ let i, t = false;
559
551
  (function() {
560
- let i5 = r3;
552
+ let i = r3;
561
553
  r3 = undefined;
562
- while (i5 !== undefined) {
563
- if (i5.S.v === i5.v)
564
- i5.S.i = i5.i;
565
- i5 = i5.o;
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 n2 = s3;
561
+ let n = s3;
570
562
  s3 = undefined;
571
563
  u3++;
572
- while (n2 !== undefined) {
573
- const o3 = n2.u;
574
- n2.u = undefined;
575
- n2.f &= -3;
576
- if (!(8 & n2.f) && w3(n2))
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
- n2.c();
579
- } catch (n3) {
580
- if (!t4) {
581
- i4 = n3;
582
- t4 = true;
570
+ n.c();
571
+ } catch (n) {
572
+ if (!t) {
573
+ i = n;
574
+ t = true;
583
575
  }
584
576
  }
585
- n2 = o3;
577
+ n = o;
586
578
  }
587
579
  }
588
580
  u3 = 0;
589
581
  e3--;
590
- if (t4)
591
- throw i4;
582
+ if (t)
583
+ throw i;
592
584
  }
593
- function n2(i4) {
585
+ function n2(i) {
594
586
  if (e3 > 0)
595
- return i4();
587
+ return i();
596
588
  d2 = ++c3;
597
589
  e3++;
598
590
  try {
599
- return i4();
591
+ return i();
600
592
  } finally {
601
593
  t3();
602
594
  }
603
595
  }
604
596
  var o3;
605
597
  var s3;
606
- function h2(i4) {
607
- const t4 = o3;
598
+ function h2(i) {
599
+ const t = o3;
608
600
  o3 = undefined;
609
601
  try {
610
- return i4();
602
+ return i();
611
603
  } finally {
612
- o3 = t4;
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(i4) {
614
+ function l3(i) {
623
615
  if (o3 === undefined)
624
616
  return;
625
- let t4 = i4.n;
626
- if (t4 === undefined || t4.t !== o3) {
627
- t4 = { i: 0, S: i4, p: o3.s, n: undefined, t: o3, e: undefined, x: undefined, r: t4 };
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 = t4;
630
- o3.s = t4;
631
- i4.n = t4;
621
+ o3.s.n = t;
622
+ o3.s = t;
623
+ i.n = t;
632
624
  if (32 & o3.f)
633
- i4.S(t4);
634
- return t4;
635
- } else if (t4.i === -1) {
636
- t4.i = 0;
637
- if (t4.n !== undefined) {
638
- t4.n.p = t4.p;
639
- if (t4.p !== undefined)
640
- t4.p.n = t4.n;
641
- t4.p = o3.s;
642
- t4.n = undefined;
643
- o3.s.n = t4;
644
- o3.s = t4;
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 t4;
638
+ return t;
647
639
  }
648
640
  }
649
- function y2(i4, t4) {
650
- this.v = i4;
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 = t4 == null ? undefined : t4.watched;
656
- this.Z = t4 == null ? undefined : t4.unwatched;
657
- this.name = t4 == null ? undefined : t4.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(i4) {
664
- const t4 = this.t;
665
- if (t4 !== i4 && i4.e === undefined) {
666
- i4.x = t4;
667
- this.t = i4;
668
- if (t4 !== undefined)
669
- t4.e = i4;
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 i5;
673
- (i5 = this.W) == null || i5.call(this);
664
+ var i;
665
+ (i = this.W) == null || i.call(this);
674
666
  });
675
667
  }
676
668
  };
677
- y2.prototype.U = function(i4) {
669
+ y2.prototype.U = function(i) {
678
670
  if (this.t !== undefined) {
679
- const { e: t4, x: n3 } = i4;
680
- if (t4 !== undefined) {
681
- t4.x = n3;
682
- i4.e = undefined;
671
+ const { e: t, x: n } = i;
672
+ if (t !== undefined) {
673
+ t.x = n;
674
+ i.e = undefined;
683
675
  }
684
- if (n3 !== undefined) {
685
- n3.e = t4;
686
- i4.x = undefined;
676
+ if (n !== undefined) {
677
+ n.e = t;
678
+ i.x = undefined;
687
679
  }
688
- if (i4 === this.t) {
689
- this.t = n3;
690
- if (n3 === undefined)
680
+ if (i === this.t) {
681
+ this.t = n;
682
+ if (n === undefined)
691
683
  h2(() => {
692
- var i5;
693
- (i5 = this.Z) == null || i5.call(this);
684
+ var i;
685
+ (i = this.Z) == null || i.call(this);
694
686
  });
695
687
  }
696
688
  }
697
689
  };
698
- y2.prototype.subscribe = function(i4) {
690
+ y2.prototype.subscribe = function(i) {
699
691
  return j3(() => {
700
- const t4 = this.value, n3 = o3;
692
+ const t = this.value, n = o3;
701
693
  o3 = undefined;
702
694
  try {
703
- i4(t4);
695
+ i(t);
704
696
  } finally {
705
- o3 = n3;
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 i4 = l3(this);
723
- if (i4 !== undefined)
724
- i4.i = this.i;
714
+ const i = l3(this);
715
+ if (i !== undefined)
716
+ i.i = this.i;
725
717
  return this.v;
726
- }, set(i4) {
727
- if (i4 !== this.v) {
718
+ }, set(i) {
719
+ if (i !== this.v) {
728
720
  if (u3 > 100)
729
721
  throw new Error("Cycle detected");
730
- (function(i5) {
722
+ (function(i) {
731
723
  if (e3 !== 0 && u3 === 0) {
732
- if (i5.l !== d2) {
733
- i5.l = d2;
734
- r3 = { S: i5, v: i5.v, i: i5.i, o: r3 };
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 = i4;
730
+ this.v = i;
739
731
  this.i++;
740
732
  v3++;
741
733
  e3++;
742
734
  try {
743
- for (let i5 = this.t;i5 !== undefined; i5 = i5.x)
744
- i5.t.N();
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(i4, t4) {
751
- return new y2(i4, t4);
742
+ function a3(i, t) {
743
+ return new y2(i, t);
752
744
  }
753
- function w3(i4) {
754
- for (let t4 = i4.s;t4 !== undefined; t4 = t4.n)
755
- if (t4.S.i !== t4.i || !t4.S.h() || t4.S.i !== t4.i)
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(i4) {
760
- for (let t4 = i4.s;t4 !== undefined; t4 = t4.n) {
761
- const n3 = t4.S.n;
762
- if (n3 !== undefined)
763
- t4.r = n3;
764
- t4.S.n = t4;
765
- t4.i = -1;
766
- if (t4.n === undefined) {
767
- i4.s = t4;
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(i4) {
773
- let t4, n3 = i4.s;
774
- while (n3 !== undefined) {
775
- const i5 = n3.p;
776
- if (n3.i === -1) {
777
- n3.S.U(n3);
778
- if (i5 !== undefined)
779
- i5.n = n3.n;
780
- if (n3.n !== undefined)
781
- n3.n.p = i5;
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
- t4 = n3;
784
- n3.S.n = n3.r;
785
- if (n3.r !== undefined)
786
- n3.r = undefined;
787
- n3 = i5;
775
+ t = n;
776
+ n.S.n = n.r;
777
+ if (n.r !== undefined)
778
+ n.r = undefined;
779
+ n = i;
788
780
  }
789
- i4.s = t4;
781
+ i.s = t;
790
782
  }
791
- function p3(i4, t4) {
783
+ function p3(i, t) {
792
784
  y2.call(this, undefined);
793
- this.x = i4;
785
+ this.x = i;
794
786
  this.s = undefined;
795
787
  this.g = v3 - 1;
796
788
  this.f = 4;
797
- this.W = t4 == null ? undefined : t4.watched;
798
- this.Z = t4 == null ? undefined : t4.unwatched;
799
- this.name = t4 == null ? undefined : t4.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 i4 = o3;
809
+ const i = o3;
818
810
  try {
819
811
  _2(this);
820
812
  o3 = this;
821
- const i5 = this.x();
822
- if (16 & this.f || this.v !== i5 || this.i === 0) {
823
- this.v = i5;
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 (i5) {
828
- this.v = i5;
819
+ } catch (i) {
820
+ this.v = i;
829
821
  this.f |= 16;
830
822
  this.i++;
831
823
  }
832
- o3 = i4;
824
+ o3 = i;
833
825
  b2(this);
834
826
  this.f &= -2;
835
827
  return true;
836
828
  };
837
- p3.prototype.S = function(i4) {
829
+ p3.prototype.S = function(i) {
838
830
  if (this.t === undefined) {
839
831
  this.f |= 36;
840
- for (let i5 = this.s;i5 !== undefined; i5 = i5.n)
841
- i5.S.S(i5);
832
+ for (let i = this.s;i !== undefined; i = i.n)
833
+ i.S.S(i);
842
834
  }
843
- y2.prototype.S.call(this, i4);
835
+ y2.prototype.S.call(this, i);
844
836
  };
845
- p3.prototype.U = function(i4) {
837
+ p3.prototype.U = function(i) {
846
838
  if (this.t !== undefined) {
847
- y2.prototype.U.call(this, i4);
839
+ y2.prototype.U.call(this, i);
848
840
  if (this.t === undefined) {
849
841
  this.f &= -33;
850
- for (let i5 = this.s;i5 !== undefined; i5 = i5.n)
851
- i5.S.U(i5);
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 i4 = this.t;i4 !== undefined; i4 = i4.x)
859
- i4.t.N();
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 i4 = l3(this);
857
+ const i = l3(this);
866
858
  this.h();
867
- if (i4 !== undefined)
868
- i4.i = this.i;
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(i4, t4) {
874
- return new p3(i4, t4);
865
+ function g2(i, t) {
866
+ return new p3(i, t);
875
867
  }
876
- function S2(i4) {
877
- const n3 = i4.m;
878
- i4.m = undefined;
879
- if (typeof n3 == "function") {
868
+ function S2(i) {
869
+ const n = i.m;
870
+ i.m = undefined;
871
+ if (typeof n == "function") {
880
872
  e3++;
881
- const s4 = o3;
873
+ const s = o3;
882
874
  o3 = undefined;
883
875
  try {
884
- n3();
885
- } catch (t4) {
886
- i4.f &= -2;
887
- i4.f |= 8;
888
- m3(i4);
889
- throw t4;
876
+ n();
877
+ } catch (t) {
878
+ i.f &= -2;
879
+ i.f |= 8;
880
+ m3(i);
881
+ throw t;
890
882
  } finally {
891
- o3 = s4;
883
+ o3 = s;
892
884
  t3();
893
885
  }
894
886
  }
895
887
  }
896
- function m3(i4) {
897
- for (let t4 = i4.s;t4 !== undefined; t4 = t4.n)
898
- t4.S.U(t4);
899
- i4.x = undefined;
900
- i4.s = undefined;
901
- S2(i4);
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(i4) {
895
+ function x2(i) {
904
896
  if (o3 !== this)
905
897
  throw new Error("Out-of-order effect");
906
898
  b2(this);
907
- o3 = i4;
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(i4, t4) {
914
- this.x = i4;
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 = t4 == null ? undefined : t4.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 i4 = this.S();
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 t4 = this.x();
931
- if (typeof t4 == "function")
932
- this.m = t4;
922
+ const t = this.x();
923
+ if (typeof t == "function")
924
+ this.m = t;
933
925
  } finally {
934
- i4();
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 i4 = o3;
937
+ const i = o3;
946
938
  o3 = this;
947
- return x2.bind(this, i4);
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(i4, t4) {
965
- const n3 = new E2(i4, t4);
956
+ function j3(i, t) {
957
+ const n = new E2(i, t);
966
958
  try {
967
- n3.c();
968
- } catch (i5) {
969
- n3.d();
970
- throw i5;
959
+ n.c();
960
+ } catch (i) {
961
+ n.d();
962
+ throw i;
971
963
  }
972
- const o4 = n3.d.bind(n3);
973
- o4[Symbol.dispose] = o4;
974
- return o4;
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(t4, e4) {
987
- l[t4] = e4.bind(null, l[t4] || (() => {}));
978
+ function g3(t, e) {
979
+ l[t] = e.bind(null, l[t] || (() => {}));
988
980
  }
989
- function b3(t4) {
981
+ function b3(t) {
990
982
  if (v4) {
991
- const t5 = v4;
983
+ const t = v4;
992
984
  v4 = undefined;
993
- t5();
985
+ t();
994
986
  }
995
- v4 = t4 && t4.S();
996
- }
997
- function y4({ data: t4 }) {
998
- const i4 = useSignal(t4);
999
- i4.value = t4;
1000
- const [n3, r4] = T2(() => {
1001
- let t5 = this, n4 = this.__v;
1002
- while (n4 = n4.__)
1003
- if (n4.__c) {
1004
- n4.__c.__$f |= 4;
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 o4 = g2(() => {
1008
- let t6 = i4.value.value;
1009
- return t6 === 0 ? 0 : t6 === true ? "" : t6 || "";
1010
- }), r5 = g2(() => !Array.isArray(o4.value) && !t(o4.value)), f4 = j3(function() {
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 (r5.value) {
1013
- const i5 = o4.value;
1014
- if (t5.__v && t5.__v.__e && t5.__v.__e.nodeType === 3)
1015
- t5.__v.__e.data = i5;
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
- }), s4 = this.__$u.d;
1009
+ }), s = this.__$u.d;
1018
1010
  this.__$u.d = function() {
1019
- f4();
1020
- s4.call(this);
1011
+ f();
1012
+ s.call(this);
1021
1013
  };
1022
- return [r5, o4];
1014
+ return [r, o];
1023
1015
  }, []);
1024
- return n3.value ? r4.peek() : r4.value;
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 t4 = this;
1020
+ const t = this;
1029
1021
  return { data: { get value() {
1030
- return t4.value;
1022
+ return t.value;
1031
1023
  } } };
1032
1024
  } }, __b: { configurable: true, value: 1 } });
1033
- g3("__b", (t4, i4) => {
1034
- if (typeof i4.type == "string") {
1035
- let t5, e4 = i4.props;
1036
- for (let n3 in e4) {
1037
- if (n3 === "children")
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 o4 = e4[n3];
1040
- if (o4 instanceof y2) {
1041
- if (!t5)
1042
- i4.__np = t5 = {};
1043
- t5[n3] = o4;
1044
- e4[n3] = o4.peek();
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
- t4(i4);
1040
+ t(i);
1049
1041
  });
1050
- g3("__r", (t4, i4) => {
1051
- t4(i4);
1052
- if (i4.type !== S) {
1042
+ g3("__r", (t, i) => {
1043
+ t(i);
1044
+ if (i.type !== S) {
1053
1045
  b3();
1054
- let t5, e4 = i4.__c;
1055
- if (e4) {
1056
- e4.__$f &= -2;
1057
- t5 = e4.__$u;
1058
- if (t5 === undefined)
1059
- e4.__$u = t5 = function(t6, i5) {
1060
- let e5;
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
- e5 = this;
1063
- }, { name: i5 });
1064
- e5.c = t6;
1065
- return e5;
1054
+ e = this;
1055
+ }, { name: i });
1056
+ e.c = t;
1057
+ return e;
1066
1058
  }(() => {
1067
- var i5;
1059
+ var i;
1068
1060
  if (d3)
1069
- (i5 = t5.y) == null || i5.call(t5);
1070
- e4.__$f |= 1;
1071
- e4.setState({});
1072
- }, typeof i4.type == "function" ? i4.type.displayName || i4.type.name : "");
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 = e4;
1075
- b3(t5);
1066
+ p4 = e;
1067
+ b3(t);
1076
1068
  }
1077
1069
  });
1078
- g3("__e", (t4, i4, e4, n3) => {
1070
+ g3("__e", (t, i, e, n) => {
1079
1071
  b3();
1080
1072
  p4 = undefined;
1081
- t4(i4, e4, n3);
1073
+ t(i, e, n);
1082
1074
  });
1083
- g3("diffed", (t4, i4) => {
1075
+ g3("diffed", (t, i) => {
1084
1076
  b3();
1085
1077
  p4 = undefined;
1086
- let e4;
1087
- if (typeof i4.type == "string" && (e4 = i4.__e)) {
1088
- let { __np: t5, props: n3 } = i4;
1089
- if (t5) {
1090
- let i5 = e4.U;
1091
- if (i5)
1092
- for (let e5 in i5) {
1093
- let n4 = i5[e5];
1094
- if (n4 !== undefined && !(e5 in t5)) {
1095
- n4.d();
1096
- i5[e5] = undefined;
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
- i5 = {};
1101
- e4.U = i5;
1092
+ i = {};
1093
+ e.U = i;
1102
1094
  }
1103
- for (let o4 in t5) {
1104
- let r4 = i5[o4], f4 = t5[o4];
1105
- if (r4 === undefined) {
1106
- r4 = w4(e4, o4, f4);
1107
- i5[o4] = r4;
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
- r4.o(f4, n3);
1101
+ r.o(f, n);
1110
1102
  }
1111
- for (let i6 in t5)
1112
- n3[i6] = t5[i6];
1103
+ for (let i in t)
1104
+ n[i] = t[i];
1113
1105
  }
1114
1106
  }
1115
- t4(i4);
1107
+ t(i);
1116
1108
  });
1117
- function w4(t4, i4, e4, n3) {
1118
- const o4 = i4 in t4 && t4.ownerSVGElement === undefined, r4 = a3(e4);
1119
- let f4 = e4.peek();
1120
- return { o: (t5, i5) => {
1121
- r4.value = t5;
1122
- f4 = t5.peek();
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 e5 = r4.value.value;
1126
- if (f4 !== e5) {
1127
- f4 = undefined;
1128
- if (o4)
1129
- t4[i4] = e5;
1130
- else if (e5 != null && (e5 !== false || i4[4] === "-"))
1131
- t4.setAttribute(i4, e5);
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
- t4.removeAttribute(i4);
1125
+ t.removeAttribute(i);
1134
1126
  } else
1135
- f4 = undefined;
1127
+ f = undefined;
1136
1128
  }) };
1137
1129
  }
1138
- g3("unmount", (t4, i4) => {
1139
- if (typeof i4.type == "string") {
1140
- let t5 = i4.__e;
1141
- if (t5) {
1142
- const i5 = t5.U;
1143
- if (i5) {
1144
- t5.U = undefined;
1145
- for (let t6 in i5) {
1146
- let e4 = i5[t6];
1147
- if (e4)
1148
- e4.d();
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
- i4.__np = undefined;
1144
+ i.__np = undefined;
1153
1145
  } else {
1154
- let t5 = i4.__c;
1155
- if (t5) {
1156
- const i5 = t5.__$u;
1157
- if (i5) {
1158
- t5.__$u = undefined;
1159
- i5.d();
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
- t4(i4);
1155
+ t(i);
1164
1156
  });
1165
- g3("__h", (t4, i4, e4, n3) => {
1166
- if (n3 < 3 || n3 === 9)
1167
- i4.__$f |= 2;
1168
- t4(i4, e4, n3);
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(t4, i4) {
1162
+ C.prototype.shouldComponentUpdate = function(t, i) {
1171
1163
  if (this.__R)
1172
1164
  return true;
1173
- const e4 = this.__$u, n3 = e4 && e4.s !== undefined;
1174
- for (let t5 in i4)
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 t5 = 2 & this.__$f;
1178
- if (!(n3 || t5 || 4 & this.__$f))
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 (!(n3 || 4 & this.__$f))
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 i5 in t4)
1189
- if (i5 !== "__source" && t4[i5] !== this.props[i5])
1180
+ for (let i in t)
1181
+ if (i !== "__source" && t[i] !== this.props[i])
1190
1182
  return true;
1191
- for (let i5 in this.props)
1192
- if (!(i5 in t4))
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(t4, i4) {
1197
- return T2(() => a3(t4, i4), []);
1188
+ function useSignal(t, i) {
1189
+ return T2(() => a3(t, i), []);
1198
1190
  }
1199
- var q2 = (t4) => {
1191
+ var q2 = (t) => {
1200
1192
  queueMicrotask(() => {
1201
- queueMicrotask(t4);
1193
+ queueMicrotask(t);
1202
1194
  });
1203
1195
  };
1204
1196
  function x3() {
1205
1197
  n2(() => {
1206
- let t4;
1207
- while (t4 = _3.shift())
1208
- h3.call(t4);
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: Repo2 }, { WebSocketServerAdapter }, { NodeFSStorageAdapter }, ws] = await Promise.all([
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 Repo2({
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
- const { sweepSealed: sweepSealed2 } = await Promise.resolve().then(() => (init_sweep_sealed(), exports_sweep_sealed));
1357
- return sweepSealed2({ repo, storage, documentIds, ...sweepOptions });
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=6C8C17E04B17562B64756E2164756E21
1413
+ //# debugId=B049880B0B8E230164756E2164756E21