@netlify/spark-ui 0.0.47-alpha → 1.0.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 (55) hide show
  1. package/README.md +24 -0
  2. package/dist/assets/SearchHeading.css +1 -1
  3. package/dist/assets/SearchLink.css +1 -1
  4. package/dist/assets/SearchModal.css +1 -1
  5. package/dist/assets/SearchToggle.css +1 -1
  6. package/dist/chunks/compat.module.DT16W4Wr.js +175 -0
  7. package/dist/chunks/hooks.module.CNV9mxng.js +138 -0
  8. package/dist/chunks/{useTimeout.DYuvQwFN.js → useTimeout.DOkYFG64.js} +1 -1
  9. package/dist/components/index.d.ts +0 -4
  10. package/dist/components/preact/Modal/Modal.js +1 -1
  11. package/dist/components/preact/SearchModal/components/SearchInput.js +2 -2
  12. package/dist/components/preact/SearchModal/components/SearchLink/SearchLink.js +1 -1
  13. package/dist/components/preact/SearchModal/components/SearchModal/SearchModal.js +1 -1
  14. package/dist/components/preact/SearchModal/components/SearchToggle/SearchToggle.js +3 -3
  15. package/dist/components/preact/SearchModal/components/SearchWindow.js +1 -1
  16. package/dist/components/preact/SearchModal/hooks/useKeyboardNav.js +1 -1
  17. package/dist/components/preact/SearchModal/hooks/useSearch.js +2 -2
  18. package/dist/components/preact/SearchModal/hooks/useSearchHotkeys.js +1 -1
  19. package/dist/components/preact/SearchModal/hooks/useSearchLogger.js +1 -1
  20. package/dist/components/preact/SearchModal/hooks/useSearchParams.js +1 -1
  21. package/dist/components/preact/SearchModal/hooks/useSearchToggles.js +1 -1
  22. package/dist/components/preact/index.d.ts +0 -1
  23. package/dist/components/preact/index.js +5 -7
  24. package/package.json +8 -5
  25. package/packages/assets/fonts/README.md +5 -0
  26. package/packages/assets/fonts/figtree/Figtree-Italic[wght].woff2 +0 -0
  27. package/packages/assets/fonts/figtree/Figtree[wght].woff2 +0 -0
  28. package/packages/assets/fonts/instrument-sans/InstrumentSans-Italic[wdth,wght].woff2 +0 -0
  29. package/packages/assets/fonts/instrument-sans/InstrumentSans[wdth,wght].woff2 +0 -0
  30. package/packages/assets/fonts/martian-mono/MartianMono-Bold.woff2 +0 -0
  31. package/packages/assets/fonts/martian-mono/MartianMono-Medium.woff2 +0 -0
  32. package/packages/assets/fonts/martian-mono/MartianMono-Regular.woff2 +0 -0
  33. package/packages/assets/fonts/martian-mono/MartianMono-SemiBold.woff2 +0 -0
  34. package/packages/components/Ticker.astro +1 -0
  35. package/packages/components/index.ts +0 -6
  36. package/packages/components/preact/SearchModal/components/SearchHeading/SearchHeading.css +6 -6
  37. package/packages/components/preact/SearchModal/components/SearchLink/SearchLink.css +18 -17
  38. package/packages/components/preact/SearchModal/components/SearchModal/SearchModal.css +27 -26
  39. package/packages/components/preact/SearchModal/components/SearchToggle/SearchToggle.css +8 -2
  40. package/packages/components/preact/SearchModal/components/SearchToggle/SearchToggle.tsx +1 -1
  41. package/packages/components/preact/index.ts +0 -1
  42. package/packages/styles/base.css +1 -0
  43. package/packages/styles/buttons.css +40 -33
  44. package/packages/styles/code-block.css +15 -11
  45. package/packages/styles/fonts.css +125 -10
  46. package/packages/styles/layout.css +4 -0
  47. package/packages/styles/reset.css +97 -0
  48. package/packages/styles/tokens.css +162 -66
  49. package/dist/assets/ChatApp.css +0 -1
  50. package/dist/chunks/compat.module.BjTzMHXJ.js +0 -296
  51. package/dist/chunks/hooks.module.DeYLzLnU.js +0 -177
  52. package/dist/components/preact/ChatApp/ChatApp.d.ts +0 -2
  53. package/dist/components/preact/ChatApp/ChatApp.js +0 -5346
  54. package/packages/components/preact/ChatApp/ChatApp.css +0 -142
  55. package/packages/components/preact/ChatApp/ChatApp.tsx +0 -237
@@ -1,296 +0,0 @@
1
- import { Component as p, options as l, createElement as f, Fragment as h, toChildArray as s, createRef as Q, createContext as X, cloneElement as ee, render as m, hydrate as te } from "preact";
2
- import { x as T, d as N, A as D, h as I, T as L, _ as y, F as M, g as V, y as S, P as F, q as W } from "./hooks.module.DeYLzLnU.js";
3
- function H(e, t) {
4
- for (var n in t) e[n] = t[n];
5
- return e;
6
- }
7
- function g(e, t) {
8
- for (var n in e) if (n !== "__source" && !(n in t)) return !0;
9
- for (var r in t) if (r !== "__source" && e[r] !== t[r]) return !0;
10
- return !1;
11
- }
12
- function B(e, t) {
13
- var n = t(), r = N({ t: { __: n, u: t } }), o = r[0].t, a = r[1];
14
- return y(function() {
15
- o.__ = n, o.u = t, C(o) && a({ t: o });
16
- }, [e, n, t]), S(function() {
17
- return C(o) && a({ t: o }), e(function() {
18
- C(o) && a({ t: o });
19
- });
20
- }, [e]), n;
21
- }
22
- function C(e) {
23
- var t, n, r = e.u, o = e.__;
24
- try {
25
- var a = r();
26
- return !((t = o) === (n = a) && (t !== 0 || 1 / t == 1 / n) || t != t && n != n);
27
- } catch {
28
- return !0;
29
- }
30
- }
31
- function z(e) {
32
- e();
33
- }
34
- function j(e) {
35
- return e;
36
- }
37
- function q() {
38
- return [!1, z];
39
- }
40
- var Z = y;
41
- function E(e, t) {
42
- this.props = e, this.context = t;
43
- }
44
- function ne(e, t) {
45
- function n(o) {
46
- var a = this.props.ref, u = a == o.ref;
47
- return !u && a && (a.call ? a(null) : a.current = null), t ? !t(this.props, o) || !u : g(this.props, o);
48
- }
49
- function r(o) {
50
- return this.shouldComponentUpdate = n, f(e, o);
51
- }
52
- return r.displayName = "Memo(" + (e.displayName || e.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r;
53
- }
54
- (E.prototype = new p()).isPureReactComponent = !0, E.prototype.shouldComponentUpdate = function(e, t) {
55
- return g(this.props, e) || g(this.state, t);
56
- };
57
- var R = l.__b;
58
- l.__b = function(e) {
59
- e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), R && R(e);
60
- };
61
- var re = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
62
- function oe(e) {
63
- function t(n) {
64
- var r = H({}, n);
65
- return delete r.ref, e(r, n.ref || null);
66
- }
67
- return t.$$typeof = re, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
68
- }
69
- var k = function(e, t) {
70
- return e == null ? null : s(s(e).map(t));
71
- }, ue = { map: k, forEach: k, count: function(e) {
72
- return e ? s(e).length : 0;
73
- }, only: function(e) {
74
- var t = s(e);
75
- if (t.length !== 1) throw "Children.only";
76
- return t[0];
77
- }, toArray: s }, ae = l.__e;
78
- l.__e = function(e, t, n, r) {
79
- if (e.then) {
80
- for (var o, a = t; a = a.__; ) if ((o = a.__c) && o.__c) return t.__e == null && (t.__e = n.__e, t.__k = n.__k), o.__c(e, t);
81
- }
82
- ae(e, t, n, r);
83
- };
84
- var O = l.unmount;
85
- function Y(e, t, n) {
86
- return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(r) {
87
- typeof r.__c == "function" && r.__c();
88
- }), e.__c.__H = null), (e = H({}, e)).__c != null && (e.__c.__P === n && (e.__c.__P = t), e.__c.__e = !0, e.__c = null), e.__k = e.__k && e.__k.map(function(r) {
89
- return Y(r, t, n);
90
- })), e;
91
- }
92
- function G(e, t, n) {
93
- return e && n && (e.__v = null, e.__k = e.__k && e.__k.map(function(r) {
94
- return G(r, t, n);
95
- }), e.__c && e.__c.__P === t && (e.__e && n.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = n)), e;
96
- }
97
- function v() {
98
- this.__u = 0, this.o = null, this.__b = null;
99
- }
100
- function J(e) {
101
- var t = e.__.__c;
102
- return t && t.__a && t.__a(e);
103
- }
104
- function ie(e) {
105
- var t, n, r;
106
- function o(a) {
107
- if (t || (t = e()).then(function(u) {
108
- n = u.default || u;
109
- }, function(u) {
110
- r = u;
111
- }), r) throw r;
112
- if (!n) throw t;
113
- return f(n, a);
114
- }
115
- return o.displayName = "Lazy", o.__f = !0, o;
116
- }
117
- function d() {
118
- this.i = null, this.l = null;
119
- }
120
- l.unmount = function(e) {
121
- var t = e.__c;
122
- t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), O && O(e);
123
- }, (v.prototype = new p()).__c = function(e, t) {
124
- var n = t.__c, r = this;
125
- r.o == null && (r.o = []), r.o.push(n);
126
- var o = J(r.__v), a = !1, u = function() {
127
- a || (a = !0, n.__R = null, o ? o(_) : _());
128
- };
129
- n.__R = u;
130
- var _ = function() {
131
- if (!--r.__u) {
132
- if (r.state.__a) {
133
- var i = r.state.__a;
134
- r.__v.__k[0] = G(i, i.__c.__P, i.__c.__O);
135
- }
136
- var c;
137
- for (r.setState({ __a: r.__b = null }); c = r.o.pop(); ) c.forceUpdate();
138
- }
139
- };
140
- r.__u++ || 32 & t.__u || r.setState({ __a: r.__b = r.__v.__k[0] }), e.then(u, u);
141
- }, v.prototype.componentWillUnmount = function() {
142
- this.o = [];
143
- }, v.prototype.render = function(e, t) {
144
- if (this.__b) {
145
- if (this.__v.__k) {
146
- var n = document.createElement("div"), r = this.__v.__k[0].__c;
147
- this.__v.__k[0] = Y(this.__b, n, r.__O = r.__P);
148
- }
149
- this.__b = null;
150
- }
151
- var o = t.__a && f(h, null, e.fallback);
152
- return o && (o.__u &= -33), [f(h, null, t.__a ? null : e.children), o];
153
- };
154
- var P = function(e, t, n) {
155
- if (++n[1] === n[0] && e.l.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.l.size)) for (n = e.i; n; ) {
156
- for (; n.length > 3; ) n.pop()();
157
- if (n[1] < n[0]) break;
158
- e.i = n = n[2];
159
- }
160
- };
161
- function le(e) {
162
- return this.getChildContext = function() {
163
- return e.context;
164
- }, e.children;
165
- }
166
- function _e(e) {
167
- var t = this, n = e.h;
168
- t.componentWillUnmount = function() {
169
- m(null, t.v), t.v = null, t.h = null;
170
- }, t.h && t.h !== n && t.componentWillUnmount(), t.v || (t.h = n, t.v = { nodeType: 1, parentNode: n, childNodes: [], contains: function() {
171
- return !0;
172
- }, appendChild: function(r) {
173
- this.childNodes.push(r), t.h.appendChild(r);
174
- }, insertBefore: function(r, o) {
175
- this.childNodes.push(r), t.h.insertBefore(r, o);
176
- }, removeChild: function(r) {
177
- this.childNodes.splice(this.childNodes.indexOf(r) >>> 1, 1), t.h.removeChild(r);
178
- } }), m(f(le, { context: t.context }, e.__v), t.v);
179
- }
180
- function ce(e, t) {
181
- var n = f(_e, { __v: e, h: t });
182
- return n.containerInfo = t, n;
183
- }
184
- (d.prototype = new p()).__a = function(e) {
185
- var t = this, n = J(t.__v), r = t.l.get(e);
186
- return r[0]++, function(o) {
187
- var a = function() {
188
- t.props.revealOrder ? (r.push(o), P(t, e, r)) : o();
189
- };
190
- n ? n(a) : a();
191
- };
192
- }, d.prototype.render = function(e) {
193
- this.i = null, this.l = /* @__PURE__ */ new Map();
194
- var t = s(e.children);
195
- e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
196
- for (var n = t.length; n--; ) this.l.set(t[n], this.i = [1, 0, this.i]);
197
- return e.children;
198
- }, d.prototype.componentDidUpdate = d.prototype.componentDidMount = function() {
199
- var e = this;
200
- this.l.forEach(function(t, n) {
201
- P(e, n, t);
202
- });
203
- };
204
- var K = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, se = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, fe = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, pe = /[A-Z0-9]/g, de = typeof document < "u", he = function(e) {
205
- return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
206
- };
207
- function ve(e, t, n) {
208
- return t.__k == null && (t.textContent = ""), m(e, t), typeof n == "function" && n(), e ? e.__c : null;
209
- }
210
- function me(e, t, n) {
211
- return te(e, t), typeof n == "function" && n(), e ? e.__c : null;
212
- }
213
- p.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
214
- Object.defineProperty(p.prototype, e, { configurable: !0, get: function() {
215
- return this["UNSAFE_" + e];
216
- }, set: function(t) {
217
- Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
218
- } });
219
- });
220
- var w = l.event;
221
- function ye() {
222
- }
223
- function be() {
224
- return this.cancelBubble;
225
- }
226
- function Ce() {
227
- return this.defaultPrevented;
228
- }
229
- l.event = function(e) {
230
- return w && (e = w(e)), e.persist = ye, e.isPropagationStopped = be, e.isDefaultPrevented = Ce, e.nativeEvent = e;
231
- };
232
- var x, ge = { enumerable: !1, configurable: !0, get: function() {
233
- return this.class;
234
- } }, U = l.vnode;
235
- l.vnode = function(e) {
236
- typeof e.type == "string" && function(t) {
237
- var n = t.props, r = t.type, o = {}, a = r.indexOf("-") === -1;
238
- for (var u in n) {
239
- var _ = n[u];
240
- if (!(u === "value" && "defaultValue" in n && _ == null || de && u === "children" && r === "noscript" || u === "class" || u === "className")) {
241
- var i = u.toLowerCase();
242
- u === "defaultValue" && "value" in n && n.value == null ? u = "value" : u === "download" && _ === !0 ? _ = "" : i === "translate" && _ === "no" ? _ = !1 : i[0] === "o" && i[1] === "n" ? i === "ondoubleclick" ? u = "ondblclick" : i !== "onchange" || r !== "input" && r !== "textarea" || he(n.type) ? i === "onfocus" ? u = "onfocusin" : i === "onblur" ? u = "onfocusout" : fe.test(u) && (u = i) : i = u = "oninput" : a && se.test(u) ? u = u.replace(pe, "-$&").toLowerCase() : _ === null && (_ = void 0), i === "oninput" && o[u = i] && (u = "oninputCapture"), o[u] = _;
243
- }
244
- }
245
- r == "select" && o.multiple && Array.isArray(o.value) && (o.value = s(n.children).forEach(function(c) {
246
- c.props.selected = o.value.indexOf(c.props.value) != -1;
247
- })), r == "select" && o.defaultValue != null && (o.value = s(n.children).forEach(function(c) {
248
- c.props.selected = o.multiple ? o.defaultValue.indexOf(c.props.value) != -1 : o.defaultValue == c.props.value;
249
- })), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", ge)) : (n.className && !n.class || n.class && n.className) && (o.class = o.className = n.className), t.props = o;
250
- }(e), e.$$typeof = K, U && U(e);
251
- };
252
- var $ = l.__r;
253
- l.__r = function(e) {
254
- $ && $(e), x = e.__c;
255
- };
256
- var A = l.diffed;
257
- l.diffed = function(e) {
258
- A && A(e);
259
- var t = e.props, n = e.__e;
260
- n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), x = null;
261
- };
262
- var Ee = { ReactCurrentDispatcher: { current: { readContext: function(e) {
263
- return x.__n[e.__c].props.value;
264
- }, useCallback: W, useContext: T, useDebugValue: F, useDeferredValue: j, useEffect: S, useId: V, useImperativeHandle: M, useInsertionEffect: Z, useLayoutEffect: y, useMemo: L, useReducer: I, useRef: D, useState: N, useSyncExternalStore: B, useTransition: q } } };
265
- function Ne(e) {
266
- return f.bind(null, e);
267
- }
268
- function b(e) {
269
- return !!e && e.$$typeof === K;
270
- }
271
- function Se(e) {
272
- return b(e) && e.type === h;
273
- }
274
- function xe(e) {
275
- return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo(");
276
- }
277
- function Re(e) {
278
- return b(e) ? ee.apply(null, arguments) : e;
279
- }
280
- function ke(e) {
281
- return !!e.__k && (m(null, e), !0);
282
- }
283
- function Oe(e) {
284
- return e && (e.base || e.nodeType === 1 && e) || null;
285
- }
286
- var Pe = function(e, t) {
287
- return e(t);
288
- }, we = function(e, t) {
289
- return e(t);
290
- }, Ue = h, $e = b, De = { useState: N, useId: V, useReducer: I, useEffect: S, useLayoutEffect: y, useInsertionEffect: Z, useTransition: q, useDeferredValue: j, useSyncExternalStore: B, startTransition: z, useRef: D, useImperativeHandle: M, useMemo: L, useCallback: W, useContext: T, useDebugValue: F, version: "18.3.1", Children: ue, render: ve, hydrate: me, unmountComponentAtNode: ke, createPortal: ce, createElement: f, createContext: X, createFactory: Ne, cloneElement: Re, createRef: Q, Fragment: h, isValidElement: b, isElement: $e, isFragment: Se, isMemo: xe, findDOMNode: Oe, Component: p, PureComponent: E, memo: ne, forwardRef: oe, flushSync: we, unstable_batchedUpdates: Pe, StrictMode: Ue, Suspense: v, SuspenseList: d, lazy: ie, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Ee };
291
- export {
292
- B as C,
293
- oe as D,
294
- De as R,
295
- Re as _
296
- };
@@ -1,177 +0,0 @@
1
- import { options as V } from "preact";
2
- var a, r, H, g, v = 0, x = [], o = V, A = o.__b, F = o.__r, b = o.diffed, q = o.__c, k = o.unmount, T = o.__;
3
- function m(_, t) {
4
- o.__h && o.__h(r, _, v || t), v = 0;
5
- var u = r.__H || (r.__H = { __: [], __h: [] });
6
- return _ >= u.__.length && u.__.push({}), u.__[_];
7
- }
8
- function S(_) {
9
- return v = 1, W(D, _);
10
- }
11
- function W(_, t, u) {
12
- var n = m(a++, 2);
13
- if (n.t = _, !n.__c && (n.__ = [u ? u(t) : D(void 0, t), function(e) {
14
- var c = n.__N ? n.__N[0] : n.__[0], f = n.t(c, e);
15
- c !== f && (n.__N = [f, n.__[1]], n.__c.setState({}));
16
- }], n.__c = r, !r.__f)) {
17
- var h = function(e, c, f) {
18
- if (!n.__c.__H) return !0;
19
- var s = n.__c.__H.__.filter(function(i) {
20
- return !!i.__c;
21
- });
22
- if (s.every(function(i) {
23
- return !i.__N;
24
- })) return !l || l.call(this, e, c, f);
25
- var E = n.__c.props !== e;
26
- return s.forEach(function(i) {
27
- if (i.__N) {
28
- var P = i.__[0];
29
- i.__ = i.__N, i.__N = void 0, P !== i.__[0] && (E = !0);
30
- }
31
- }), l && l.call(this, e, c, f) || E;
32
- };
33
- r.__f = !0;
34
- var l = r.shouldComponentUpdate, y = r.componentWillUpdate;
35
- r.componentWillUpdate = function(e, c, f) {
36
- if (this.__e) {
37
- var s = l;
38
- l = void 0, h(e, c, f), l = s;
39
- }
40
- y && y.call(this, e, c, f);
41
- }, r.shouldComponentUpdate = h;
42
- }
43
- return n.__N || n.__;
44
- }
45
- function G(_, t) {
46
- var u = m(a++, 3);
47
- !o.__s && N(u.__H, t) && (u.__ = _, u.u = t, r.__H.__h.push(u));
48
- }
49
- function j(_, t) {
50
- var u = m(a++, 4);
51
- !o.__s && N(u.__H, t) && (u.__ = _, u.u = t, r.__h.push(u));
52
- }
53
- function I(_) {
54
- return v = 5, C(function() {
55
- return { current: _ };
56
- }, []);
57
- }
58
- function J(_, t, u) {
59
- v = 6, j(function() {
60
- if (typeof _ == "function") {
61
- var n = _(t());
62
- return function() {
63
- _(null), n && typeof n == "function" && n();
64
- };
65
- }
66
- if (_) return _.current = t(), function() {
67
- return _.current = null;
68
- };
69
- }, u == null ? u : u.concat(_));
70
- }
71
- function C(_, t) {
72
- var u = m(a++, 7);
73
- return N(u.__H, t) && (u.__ = _(), u.__H = t, u.__h = _), u.__;
74
- }
75
- function K(_, t) {
76
- return v = 8, C(function() {
77
- return _;
78
- }, t);
79
- }
80
- function L(_) {
81
- var t = r.context[_.__c], u = m(a++, 9);
82
- return u.c = _, t ? (u.__ == null && (u.__ = !0, t.sub(r)), t.props.value) : _.__;
83
- }
84
- function M(_, t) {
85
- o.useDebugValue && o.useDebugValue(t ? t(_) : _);
86
- }
87
- function O() {
88
- var _ = m(a++, 11);
89
- if (!_.__) {
90
- for (var t = r.__v; t !== null && !t.__m && t.__ !== null; ) t = t.__;
91
- var u = t.__m || (t.__m = [0, 0]);
92
- _.__ = "P" + u[0] + "-" + u[1]++;
93
- }
94
- return _.__;
95
- }
96
- function w() {
97
- for (var _; _ = x.shift(); ) if (_.__P && _.__H) try {
98
- _.__H.__h.forEach(p), _.__H.__h.forEach(d), _.__H.__h = [];
99
- } catch (t) {
100
- _.__H.__h = [], o.__e(t, _.__v);
101
- }
102
- }
103
- o.__b = function(_) {
104
- r = null, A && A(_);
105
- }, o.__ = function(_, t) {
106
- _ && t.__k && t.__k.__m && (_.__m = t.__k.__m), T && T(_, t);
107
- }, o.__r = function(_) {
108
- F && F(_), a = 0;
109
- var t = (r = _.__c).__H;
110
- t && (H === r ? (t.__h = [], r.__h = [], t.__.forEach(function(u) {
111
- u.__N && (u.__ = u.__N), u.u = u.__N = void 0;
112
- })) : (t.__h.forEach(p), t.__h.forEach(d), t.__h = [], a = 0)), H = r;
113
- }, o.diffed = function(_) {
114
- b && b(_);
115
- var t = _.__c;
116
- t && t.__H && (t.__H.__h.length && (x.push(t) !== 1 && g === o.requestAnimationFrame || ((g = o.requestAnimationFrame) || z)(w)), t.__H.__.forEach(function(u) {
117
- u.u && (u.__H = u.u), u.u = void 0;
118
- })), H = r = null;
119
- }, o.__c = function(_, t) {
120
- t.some(function(u) {
121
- try {
122
- u.__h.forEach(p), u.__h = u.__h.filter(function(n) {
123
- return !n.__ || d(n);
124
- });
125
- } catch (n) {
126
- t.some(function(h) {
127
- h.__h && (h.__h = []);
128
- }), t = [], o.__e(n, u.__v);
129
- }
130
- }), q && q(_, t);
131
- }, o.unmount = function(_) {
132
- k && k(_);
133
- var t, u = _.__c;
134
- u && u.__H && (u.__H.__.forEach(function(n) {
135
- try {
136
- p(n);
137
- } catch (h) {
138
- t = h;
139
- }
140
- }), u.__H = void 0, t && o.__e(t, u.__v));
141
- };
142
- var U = typeof requestAnimationFrame == "function";
143
- function z(_) {
144
- var t, u = function() {
145
- clearTimeout(n), U && cancelAnimationFrame(t), setTimeout(_);
146
- }, n = setTimeout(u, 100);
147
- U && (t = requestAnimationFrame(u));
148
- }
149
- function p(_) {
150
- var t = r, u = _.__c;
151
- typeof u == "function" && (_.__c = void 0, u()), r = t;
152
- }
153
- function d(_) {
154
- var t = r;
155
- _.__c = _.__(), r = t;
156
- }
157
- function N(_, t) {
158
- return !_ || _.length !== t.length || t.some(function(u, n) {
159
- return u !== _[n];
160
- });
161
- }
162
- function D(_, t) {
163
- return typeof t == "function" ? t(_) : t;
164
- }
165
- export {
166
- I as A,
167
- J as F,
168
- M as P,
169
- C as T,
170
- j as _,
171
- S as d,
172
- O as g,
173
- W as h,
174
- K as q,
175
- L as x,
176
- G as y
177
- };
@@ -1,2 +0,0 @@
1
- declare function ChatApp(): import("preact").JSX.Element;
2
- export default ChatApp;