@netlify/spark-ui 1.23.1 → 1.24.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/chunks/AskNetlify.BiMhcpol.js +2795 -0
- package/dist/chunks/compat.module.BaLKWB4y.js +300 -0
- package/dist/chunks/hooks.module.DRcxknIz.js +180 -0
- package/dist/chunks/{useTimeout.Cq4aqnDe.js → useTimeout.w16oNznN.js} +1 -1
- package/dist/components/preact/AskNetlify/AskNetlify.js +2 -2
- package/dist/components/preact/AskNetlify/hooks/useAskAnalytics.js +1 -1
- package/dist/components/preact/Modal/Modal.js +1 -1
- package/dist/components/preact/Popover/Popover.js +1 -1
- package/dist/components/preact/SearchModal/components/SearchInput.js +2 -2
- package/dist/components/preact/SearchModal/components/SearchLink/SearchLink.js +1 -1
- package/dist/components/preact/SearchModal/components/SearchModal/SearchModal.d.ts +2 -0
- package/dist/components/preact/SearchModal/components/SearchModal/SearchModal.js +44 -38
- package/dist/components/preact/SearchModal/components/SearchToggle/SearchToggle.js +1 -1
- package/dist/components/preact/SearchModal/hooks/useKeyboardNav.js +1 -1
- package/dist/components/preact/SearchModal/hooks/useSearch.d.ts +2 -2
- package/dist/components/preact/SearchModal/hooks/useSearch.js +29 -27
- package/dist/components/preact/SearchModal/hooks/useSearchAnalytics.js +1 -1
- package/dist/components/preact/SearchModal/hooks/useSearchHotkeys.js +1 -1
- package/dist/components/preact/SearchModal/hooks/useSearchParams.js +1 -1
- package/dist/components/preact/SearchModal/hooks/useSearchToggles.js +1 -1
- package/dist/components/preact/SearchModal/types/search.types.d.ts +19 -0
- package/dist/components/preact/index.js +2 -2
- package/package.json +4 -4
- package/packages/components/preact/SearchModal/components/SearchModal/SearchModal.tsx +11 -3
- package/packages/components/preact/SearchModal/hooks/useSearch.ts +8 -6
- package/packages/components/preact/SearchModal/types/search.types.tsx +24 -0
- package/packages/components/preact/index.ts +1 -1
- package/dist/chunks/AskNetlify.CpaPeYsd.js +0 -4389
- package/dist/chunks/compat.module.8cuvf1_R.js +0 -298
- package/dist/chunks/hooks.module.DGkdD5n9.js +0 -177
|
@@ -1,298 +0,0 @@
|
|
|
1
|
-
import { Component as p, options as i, createElement as f, Fragment as v, 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.DGkdD5n9.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.type = e, 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 x = i.__b;
|
|
58
|
-
i.__b = function(e) {
|
|
59
|
-
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), x && x(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 = e, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
|
|
68
|
-
}
|
|
69
|
-
var R = function(e, t) {
|
|
70
|
-
return e == null ? null : s(s(e).map(t));
|
|
71
|
-
}, ue = { map: R, forEach: R, 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 = i.__e;
|
|
78
|
-
i.__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 = i.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 h() {
|
|
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 le(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
|
-
i.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
|
-
}, (h.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 l = r.state.__a;
|
|
134
|
-
r.__v.__k[0] = G(l, l.__c.__P, l.__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
|
-
}, h.prototype.componentWillUnmount = function() {
|
|
142
|
-
this.o = [];
|
|
143
|
-
}, h.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(v, null, e.fallback);
|
|
152
|
-
return o && (o.__u &= -33), [f(v, 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 ie(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
|
-
if (t.componentWillUnmount = function() {
|
|
169
|
-
m(null, t.v), t.v = null, t.h = null;
|
|
170
|
-
}, t.h && t.h !== n && t.componentWillUnmount(), !t.v) {
|
|
171
|
-
for (var r = t.__v; r !== null && !r.__m && r.__ !== null; ) r = r.__;
|
|
172
|
-
t.h = n, t.v = { nodeType: 1, parentNode: n, childNodes: [], __k: { __m: r.__m }, contains: function() {
|
|
173
|
-
return !0;
|
|
174
|
-
}, insertBefore: function(o, a) {
|
|
175
|
-
this.childNodes.push(o), t.h.insertBefore(o, a);
|
|
176
|
-
}, removeChild: function(o) {
|
|
177
|
-
this.childNodes.splice(this.childNodes.indexOf(o) >>> 1, 1), t.h.removeChild(o);
|
|
178
|
-
} };
|
|
179
|
-
}
|
|
180
|
-
m(f(ie, { context: t.context }, e.__v), t.v);
|
|
181
|
-
}
|
|
182
|
-
function ce(e, t) {
|
|
183
|
-
var n = f(_e, { __v: e, h: t });
|
|
184
|
-
return n.containerInfo = t, n;
|
|
185
|
-
}
|
|
186
|
-
(d.prototype = new p()).__a = function(e) {
|
|
187
|
-
var t = this, n = J(t.__v), r = t.l.get(e);
|
|
188
|
-
return r[0]++, function(o) {
|
|
189
|
-
var a = function() {
|
|
190
|
-
t.props.revealOrder ? (r.push(o), P(t, e, r)) : o();
|
|
191
|
-
};
|
|
192
|
-
n ? n(a) : a();
|
|
193
|
-
};
|
|
194
|
-
}, d.prototype.render = function(e) {
|
|
195
|
-
this.i = null, this.l = /* @__PURE__ */ new Map();
|
|
196
|
-
var t = s(e.children);
|
|
197
|
-
e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
|
|
198
|
-
for (var n = t.length; n--; ) this.l.set(t[n], this.i = [1, 0, this.i]);
|
|
199
|
-
return e.children;
|
|
200
|
-
}, d.prototype.componentDidUpdate = d.prototype.componentDidMount = function() {
|
|
201
|
-
var e = this;
|
|
202
|
-
this.l.forEach(function(t, n) {
|
|
203
|
-
P(e, n, t);
|
|
204
|
-
});
|
|
205
|
-
};
|
|
206
|
-
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", ve = function(e) {
|
|
207
|
-
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
|
|
208
|
-
};
|
|
209
|
-
function he(e, t, n) {
|
|
210
|
-
return t.__k == null && (t.textContent = ""), m(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
211
|
-
}
|
|
212
|
-
function me(e, t, n) {
|
|
213
|
-
return te(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
214
|
-
}
|
|
215
|
-
p.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
|
|
216
|
-
Object.defineProperty(p.prototype, e, { configurable: !0, get: function() {
|
|
217
|
-
return this["UNSAFE_" + e];
|
|
218
|
-
}, set: function(t) {
|
|
219
|
-
Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
|
|
220
|
-
} });
|
|
221
|
-
});
|
|
222
|
-
var w = i.event;
|
|
223
|
-
function ye() {
|
|
224
|
-
}
|
|
225
|
-
function be() {
|
|
226
|
-
return this.cancelBubble;
|
|
227
|
-
}
|
|
228
|
-
function Ce() {
|
|
229
|
-
return this.defaultPrevented;
|
|
230
|
-
}
|
|
231
|
-
i.event = function(e) {
|
|
232
|
-
return w && (e = w(e)), e.persist = ye, e.isPropagationStopped = be, e.isDefaultPrevented = Ce, e.nativeEvent = e;
|
|
233
|
-
};
|
|
234
|
-
var k, ge = { enumerable: !1, configurable: !0, get: function() {
|
|
235
|
-
return this.class;
|
|
236
|
-
} }, U = i.vnode;
|
|
237
|
-
i.vnode = function(e) {
|
|
238
|
-
typeof e.type == "string" && function(t) {
|
|
239
|
-
var n = t.props, r = t.type, o = {}, a = r.indexOf("-") === -1;
|
|
240
|
-
for (var u in n) {
|
|
241
|
-
var _ = n[u];
|
|
242
|
-
if (!(u === "value" && "defaultValue" in n && _ == null || de && u === "children" && r === "noscript" || u === "class" || u === "className")) {
|
|
243
|
-
var l = u.toLowerCase();
|
|
244
|
-
u === "defaultValue" && "value" in n && n.value == null ? u = "value" : u === "download" && _ === !0 ? _ = "" : l === "translate" && _ === "no" ? _ = !1 : l[0] === "o" && l[1] === "n" ? l === "ondoubleclick" ? u = "ondblclick" : l !== "onchange" || r !== "input" && r !== "textarea" || ve(n.type) ? l === "onfocus" ? u = "onfocusin" : l === "onblur" ? u = "onfocusout" : fe.test(u) && (u = l) : l = u = "oninput" : a && se.test(u) ? u = u.replace(pe, "-$&").toLowerCase() : _ === null && (_ = void 0), l === "oninput" && o[u = l] && (u = "oninputCapture"), o[u] = _;
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
r == "select" && o.multiple && Array.isArray(o.value) && (o.value = s(n.children).forEach(function(c) {
|
|
248
|
-
c.props.selected = o.value.indexOf(c.props.value) != -1;
|
|
249
|
-
})), r == "select" && o.defaultValue != null && (o.value = s(n.children).forEach(function(c) {
|
|
250
|
-
c.props.selected = o.multiple ? o.defaultValue.indexOf(c.props.value) != -1 : o.defaultValue == c.props.value;
|
|
251
|
-
})), 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;
|
|
252
|
-
}(e), e.$$typeof = K, U && U(e);
|
|
253
|
-
};
|
|
254
|
-
var $ = i.__r;
|
|
255
|
-
i.__r = function(e) {
|
|
256
|
-
$ && $(e), k = e.__c;
|
|
257
|
-
};
|
|
258
|
-
var A = i.diffed;
|
|
259
|
-
i.diffed = function(e) {
|
|
260
|
-
A && A(e);
|
|
261
|
-
var t = e.props, n = e.__e;
|
|
262
|
-
n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), k = null;
|
|
263
|
-
};
|
|
264
|
-
var Ee = { ReactCurrentDispatcher: { current: { readContext: function(e) {
|
|
265
|
-
return k.__n[e.__c].props.value;
|
|
266
|
-
}, 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 } } };
|
|
267
|
-
function Ne(e) {
|
|
268
|
-
return f.bind(null, e);
|
|
269
|
-
}
|
|
270
|
-
function b(e) {
|
|
271
|
-
return !!e && e.$$typeof === K;
|
|
272
|
-
}
|
|
273
|
-
function Se(e) {
|
|
274
|
-
return b(e) && e.type === v;
|
|
275
|
-
}
|
|
276
|
-
function ke(e) {
|
|
277
|
-
return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo(");
|
|
278
|
-
}
|
|
279
|
-
function xe(e) {
|
|
280
|
-
return b(e) ? ee.apply(null, arguments) : e;
|
|
281
|
-
}
|
|
282
|
-
function Re(e) {
|
|
283
|
-
return !!e.__k && (m(null, e), !0);
|
|
284
|
-
}
|
|
285
|
-
function Oe(e) {
|
|
286
|
-
return e && (e.base || e.nodeType === 1 && e) || null;
|
|
287
|
-
}
|
|
288
|
-
var Pe = function(e, t) {
|
|
289
|
-
return e(t);
|
|
290
|
-
}, we = function(e, t) {
|
|
291
|
-
return e(t);
|
|
292
|
-
}, Ue = v, $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: he, hydrate: me, unmountComponentAtNode: Re, createPortal: ce, createElement: f, createContext: X, createFactory: Ne, cloneElement: xe, createRef: Q, Fragment: v, isValidElement: b, isElement: $e, isFragment: Se, isMemo: ke, findDOMNode: Oe, Component: p, PureComponent: E, memo: ne, forwardRef: oe, flushSync: we, unstable_batchedUpdates: Pe, StrictMode: Ue, Suspense: h, SuspenseList: d, lazy: le, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Ee };
|
|
293
|
-
export {
|
|
294
|
-
B as C,
|
|
295
|
-
oe as D,
|
|
296
|
-
De as R,
|
|
297
|
-
xe as _
|
|
298
|
-
};
|
|
@@ -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, 35);
|
|
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
|
-
};
|