@streamlayer/react 1.23.0 → 1.23.1

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 (122) hide show
  1. package/lib/app/pause-ad.d.ts +2 -4
  2. package/lib/app/polymarket.d.ts +7 -0
  3. package/lib/cjs/Question.js +1 -1
  4. package/lib/cjs/advertisement.js +1 -1
  5. package/lib/cjs/auth.js +1 -1
  6. package/lib/cjs/bet-pack.js +1 -1
  7. package/lib/cjs/feature.js +1 -0
  8. package/lib/cjs/hooks-WfHlJH12.js +1 -0
  9. package/lib/cjs/index.js +1 -1
  10. package/lib/cjs/index10.js +1 -4
  11. package/lib/cjs/index11.js +4 -1
  12. package/lib/cjs/index12.js +1 -1
  13. package/lib/cjs/index13.js +1 -1
  14. package/lib/cjs/index14.js +1 -1
  15. package/lib/cjs/index15.js +1 -5
  16. package/lib/cjs/index16.js +5 -0
  17. package/lib/cjs/index2.js +1 -1
  18. package/lib/cjs/index3.js +1 -1
  19. package/lib/cjs/index4.js +1 -1
  20. package/lib/cjs/index7.js +1 -1
  21. package/lib/cjs/index8.js +1 -1
  22. package/lib/cjs/index9.js +1 -1
  23. package/lib/cjs/insight.js +1 -1
  24. package/lib/cjs/masters.js +1 -1
  25. package/lib/cjs/masters2.js +4 -4
  26. package/lib/cjs/notification.js +1 -1
  27. package/lib/cjs/pause-ad.js +1 -1
  28. package/lib/cjs/points.js +1 -1
  29. package/lib/cjs/polymarket.js +19 -0
  30. package/lib/cjs/storage.js +1 -1
  31. package/lib/cjs/useStreamLayerApp2.js +5 -5
  32. package/lib/classic/app/pause-ad.d.ts +2 -4
  33. package/lib/classic/app/polymarket.d.ts +7 -0
  34. package/lib/classic/cjs/Question.js +1 -1
  35. package/lib/classic/cjs/advertisement.js +1 -1
  36. package/lib/classic/cjs/analytics.js +1 -1
  37. package/lib/classic/cjs/auth.js +1 -1
  38. package/lib/classic/cjs/bet-pack.js +3 -3
  39. package/lib/classic/cjs/feature.js +1 -0
  40. package/lib/classic/cjs/hooks-WfHlJH12.js +1 -0
  41. package/lib/classic/cjs/index.js +1 -1
  42. package/lib/classic/cjs/index10.js +1 -1
  43. package/lib/classic/cjs/index11.js +1 -1
  44. package/lib/classic/cjs/index12.js +1 -4
  45. package/lib/classic/cjs/index13.js +4 -0
  46. package/lib/classic/cjs/index2.js +2 -2
  47. package/lib/classic/cjs/index5.js +1 -1
  48. package/lib/classic/cjs/index6.js +1 -1
  49. package/lib/classic/cjs/index7.js +1 -1
  50. package/lib/classic/cjs/index8.js +1 -1
  51. package/lib/classic/cjs/index9.js +1 -1
  52. package/lib/classic/cjs/insight.js +1 -1
  53. package/lib/classic/cjs/notification.js +1 -1
  54. package/lib/classic/cjs/notification2.js +1 -1
  55. package/lib/classic/cjs/pause-ad.js +1 -1
  56. package/lib/classic/cjs/points.js +1 -1
  57. package/lib/classic/cjs/polymarket.js +19 -0
  58. package/lib/classic/cjs/useStreamLayerApp2.js +5 -5
  59. package/lib/classic/es/Question.js +4 -4
  60. package/lib/classic/es/advertisement.js +6 -6
  61. package/lib/classic/es/analytics.js +1 -1
  62. package/lib/classic/es/auth.js +1 -1
  63. package/lib/classic/es/bet-pack.js +18 -17
  64. package/lib/classic/es/feature.js +63 -0
  65. package/lib/classic/es/hooks-WfHlJH12.js +98 -0
  66. package/lib/classic/es/index.js +2 -2
  67. package/lib/classic/es/index10.js +82 -2295
  68. package/lib/classic/es/index11.js +2351 -179
  69. package/lib/classic/es/index12.js +170 -822
  70. package/lib/classic/es/index13.js +835 -0
  71. package/lib/classic/es/index2.js +127 -126
  72. package/lib/classic/es/index5.js +4 -5
  73. package/lib/classic/es/index6.js +5 -11
  74. package/lib/classic/es/index7.js +5 -62
  75. package/lib/classic/es/index8.js +7 -315
  76. package/lib/classic/es/index9.js +313 -81
  77. package/lib/classic/es/insight.js +2 -2
  78. package/lib/classic/es/notification.js +2 -2
  79. package/lib/classic/es/notification2.js +14 -13
  80. package/lib/classic/es/pause-ad.js +20 -20
  81. package/lib/classic/es/points.js +15 -14
  82. package/lib/classic/es/polymarket.js +6670 -0
  83. package/lib/classic/es/useStreamLayerApp2.js +143 -119
  84. package/lib/dist/cjs/masters.js +23 -23
  85. package/lib/dist/es/masters.js +189 -165
  86. package/lib/dist/index.d.ts +17 -6
  87. package/lib/dist/style.css +1 -1
  88. package/lib/es/Question.js +2 -2
  89. package/lib/es/advertisement.js +5 -5
  90. package/lib/es/auth.js +1 -1
  91. package/lib/es/bet-pack.js +1 -1
  92. package/lib/es/feature.js +63 -0
  93. package/lib/es/hooks-WfHlJH12.js +98 -0
  94. package/lib/es/index.js +2 -2
  95. package/lib/es/index10.js +236 -804
  96. package/lib/es/index11.js +822 -170
  97. package/lib/es/index12.js +166 -302
  98. package/lib/es/index13.js +313 -81
  99. package/lib/es/index14.js +82 -2350
  100. package/lib/es/index15.js +2330 -1229
  101. package/lib/es/index16.js +1254 -0
  102. package/lib/es/index2.js +118 -117
  103. package/lib/es/index3.js +3 -61
  104. package/lib/es/index4.js +3 -3
  105. package/lib/es/index7.js +5 -7
  106. package/lib/es/index8.js +5 -9
  107. package/lib/es/index9.js +7 -263
  108. package/lib/es/insight.js +2 -2
  109. package/lib/es/masters.js +1 -1
  110. package/lib/es/masters2.js +25 -24
  111. package/lib/es/notification.js +8 -7
  112. package/lib/es/pause-ad.js +20 -20
  113. package/lib/es/points.js +6 -5
  114. package/lib/es/polymarket.js +6670 -0
  115. package/lib/es/storage.js +2 -2
  116. package/lib/es/useStreamLayerApp2.js +143 -119
  117. package/lib/style.css +1 -1
  118. package/package.json +24 -14
  119. package/lib/cjs/hooks-B0Qttldg.js +0 -1
  120. package/lib/classic/cjs/hooks-B0Qttldg.js +0 -1
  121. package/lib/classic/es/hooks-B0Qttldg.js +0 -98
  122. package/lib/es/hooks-B0Qttldg.js +0 -98
@@ -1,2300 +1,87 @@
1
- import ns from "react";
2
- var we = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3
- function ml(e) {
4
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
5
- }
6
- function Cl(e) {
7
- if (e.__esModule) return e;
8
- var r = e.default;
9
- if (typeof r == "function") {
10
- var t = function n() {
11
- return this instanceof n ? Reflect.construct(r, arguments, this.constructor) : r.apply(this, arguments);
12
- };
13
- t.prototype = r.prototype;
14
- } else t = {};
15
- return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(e).forEach(function(n) {
16
- var a = Object.getOwnPropertyDescriptor(e, n);
17
- Object.defineProperty(t, n, a.get ? a : {
18
- enumerable: !0,
19
- get: function() {
20
- return e[n];
21
- }
22
- });
23
- }), t;
24
- }
25
- var Ki = { exports: {} }, He, bn;
26
- function he() {
27
- if (bn) return He;
28
- bn = 1;
29
- function e(r) {
30
- var t = typeof r;
31
- return r != null && (t == "object" || t == "function");
32
- }
33
- return He = e, He;
34
- }
35
- var Ue, _n;
36
- function Pi() {
37
- if (_n) return Ue;
38
- _n = 1;
39
- var e = typeof we == "object" && we && we.Object === Object && we;
40
- return Ue = e, Ue;
41
- }
42
- var Ge, mn;
43
- function se() {
44
- if (mn) return Ge;
45
- mn = 1;
46
- var e = Pi(), r = typeof self == "object" && self && self.Object === Object && self, t = e || r || Function("return this")();
47
- return Ge = t, Ge;
48
- }
49
- var ke, Cn;
50
- function as() {
51
- if (Cn) return ke;
52
- Cn = 1;
53
- var e = se(), r = function() {
54
- return e.Date.now();
55
- };
56
- return ke = r, ke;
57
- }
58
- var ze, Fn;
59
- function is() {
60
- if (Fn) return ze;
61
- Fn = 1;
62
- var e = /\s/;
63
- function r(t) {
64
- for (var n = t.length; n-- && e.test(t.charAt(n)); )
65
- ;
66
- return n;
67
- }
68
- return ze = r, ze;
69
- }
70
- var We, qn;
71
- function ss() {
72
- if (qn) return We;
73
- qn = 1;
74
- var e = is(), r = /^\s+/;
75
- function t(n) {
76
- return n && n.slice(0, e(n) + 1).replace(r, "");
77
- }
78
- return We = t, We;
79
- }
80
- var Ye, Rn;
81
- function Ae() {
82
- if (Rn) return Ye;
83
- Rn = 1;
84
- var e = se(), r = e.Symbol;
85
- return Ye = r, Ye;
86
- }
87
- var Xe, wn;
88
- function os() {
89
- if (wn) return Xe;
90
- wn = 1;
91
- var e = Ae(), r = Object.prototype, t = r.hasOwnProperty, n = r.toString, a = e ? e.toStringTag : void 0;
92
- function i(o) {
93
- var u = t.call(o, a), v = o[a];
94
- try {
95
- o[a] = void 0;
96
- var h = !0;
97
- } catch {
98
- }
99
- var b = n.call(o);
100
- return h && (u ? o[a] = v : delete o[a]), b;
101
- }
102
- return Xe = i, Xe;
103
- }
104
- var Je, An;
105
- function us() {
106
- if (An) return Je;
107
- An = 1;
108
- var e = Object.prototype, r = e.toString;
109
- function t(n) {
110
- return r.call(n);
111
- }
112
- return Je = t, Je;
113
- }
114
- var Ze, Tn;
115
- function Te() {
116
- if (Tn) return Ze;
117
- Tn = 1;
118
- var e = Ae(), r = os(), t = us(), n = "[object Null]", a = "[object Undefined]", i = e ? e.toStringTag : void 0;
119
- function o(u) {
120
- return u == null ? u === void 0 ? a : n : i && i in Object(u) ? r(u) : t(u);
121
- }
122
- return Ze = o, Ze;
123
- }
124
- var Qe, On;
125
- function pe() {
126
- if (On) return Qe;
127
- On = 1;
128
- function e(r) {
129
- return r != null && typeof r == "object";
130
- }
131
- return Qe = e, Qe;
132
- }
133
- var Ve, xn;
134
- function Oe() {
135
- if (xn) return Ve;
136
- xn = 1;
137
- var e = Te(), r = pe(), t = "[object Symbol]";
138
- function n(a) {
139
- return typeof a == "symbol" || r(a) && e(a) == t;
140
- }
141
- return Ve = n, Ve;
142
- }
143
- var er, Sn;
144
- function cs() {
145
- if (Sn) return er;
146
- Sn = 1;
147
- var e = ss(), r = he(), t = Oe(), n = NaN, a = /^[-+]0x[0-9a-f]+$/i, i = /^0b[01]+$/i, o = /^0o[0-7]+$/i, u = parseInt;
148
- function v(h) {
149
- if (typeof h == "number")
150
- return h;
151
- if (t(h))
152
- return n;
153
- if (r(h)) {
154
- var b = typeof h.valueOf == "function" ? h.valueOf() : h;
155
- h = r(b) ? b + "" : b;
156
- }
157
- if (typeof h != "string")
158
- return h === 0 ? h : +h;
159
- h = e(h);
160
- var _ = i.test(h);
161
- return _ || o.test(h) ? u(h.slice(2), _ ? 2 : 8) : a.test(h) ? n : +h;
162
- }
163
- return er = v, er;
164
- }
165
- var rr, En;
166
- function Mi() {
167
- if (En) return rr;
168
- En = 1;
169
- var e = he(), r = as(), t = cs(), n = "Expected a function", a = Math.max, i = Math.min;
170
- function o(u, v, h) {
171
- var b, _, I, M, B, S, g = 0, d = !1, m = !1, C = !0;
172
- if (typeof u != "function")
173
- throw new TypeError(n);
174
- v = t(v) || 0, e(h) && (d = !!h.leading, m = "maxWait" in h, I = m ? a(t(h.maxWait) || 0, v) : I, C = "trailing" in h ? !!h.trailing : C);
175
- function y(T) {
176
- var U = b, J = _;
177
- return b = _ = void 0, g = T, M = u.apply(J, U), M;
178
- }
179
- function K(T) {
180
- return g = T, B = setTimeout(D, v), d ? y(T) : M;
181
- }
182
- function O(T) {
183
- var U = T - S, J = T - g, ne = v - U;
184
- return m ? i(ne, I - J) : ne;
185
- }
186
- function q(T) {
187
- var U = T - S, J = T - g;
188
- return S === void 0 || U >= v || U < 0 || m && J >= I;
189
- }
190
- function D() {
191
- var T = r();
192
- if (q(T))
193
- return w(T);
194
- B = setTimeout(D, O(T));
195
- }
196
- function w(T) {
197
- return B = void 0, C && b ? y(T) : (b = _ = void 0, M);
198
- }
199
- function x() {
200
- B !== void 0 && clearTimeout(B), g = 0, b = S = _ = B = void 0;
201
- }
202
- function z() {
203
- return B === void 0 ? M : w(r());
204
- }
205
- function H() {
206
- var T = r(), U = q(T);
207
- if (b = arguments, _ = this, S = T, U) {
208
- if (B === void 0)
209
- return K(S);
210
- if (m)
211
- return clearTimeout(B), B = setTimeout(D, v), y(S);
212
- }
213
- return B === void 0 && (B = setTimeout(D, v)), M;
214
- }
215
- return H.cancel = x, H.flush = z, H;
216
- }
217
- return rr = o, rr;
218
- }
219
- var tr, Kn;
220
- function Ii() {
221
- if (Kn) return tr;
222
- Kn = 1;
223
- var e = Te(), r = he(), t = "[object AsyncFunction]", n = "[object Function]", a = "[object GeneratorFunction]", i = "[object Proxy]";
224
- function o(u) {
225
- if (!r(u))
226
- return !1;
227
- var v = e(u);
228
- return v == n || v == a || v == t || v == i;
229
- }
230
- return tr = o, tr;
231
- }
232
- var fs = se(), ls = fs["__core-js_shared__"], ds = ls, nr = ds, Pn = function() {
233
- var e = /[^.]+$/.exec(nr && nr.keys && nr.keys.IE_PROTO || "");
234
- return e ? "Symbol(src)_1." + e : "";
235
- }();
236
- function hs(e) {
237
- return !!Pn && Pn in e;
238
- }
239
- var vs = hs, ps = Function.prototype, ys = ps.toString;
240
- function gs(e) {
241
- if (e != null) {
242
- try {
243
- return ys.call(e);
244
- } catch {
245
- }
246
- try {
247
- return e + "";
248
- } catch {
249
- }
250
- }
251
- return "";
252
- }
253
- var Di = gs, bs = Ii(), _s = vs, ms = he(), Cs = Di, Fs = /[\\^$.*+?()[\]{}|]/g, qs = /^\[object .+?Constructor\]$/, Rs = Function.prototype, ws = Object.prototype, As = Rs.toString, Ts = ws.hasOwnProperty, Os = RegExp(
254
- "^" + As.call(Ts).replace(Fs, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
255
- );
256
- function xs(e) {
257
- if (!ms(e) || _s(e))
258
- return !1;
259
- var r = bs(e) ? Os : qs;
260
- return r.test(Cs(e));
261
- }
262
- var Ss = xs;
263
- function Es(e, r) {
264
- return e == null ? void 0 : e[r];
265
- }
266
- var Ks = Es, Ps = Ss, Ms = Ks;
267
- function Is(e, r) {
268
- var t = Ms(e, r);
269
- return Ps(t) ? t : void 0;
270
- }
271
- var ve = Is, ar, Mn;
272
- function De() {
273
- if (Mn) return ar;
274
- Mn = 1;
275
- var e = ve, r = e(Object, "create");
276
- return ar = r, ar;
277
- }
278
- var ir, In;
279
- function Ds() {
280
- if (In) return ir;
281
- In = 1;
282
- var e = De();
283
- function r() {
284
- this.__data__ = e ? e(null) : {}, this.size = 0;
285
- }
286
- return ir = r, ir;
287
- }
288
- var sr, Dn;
289
- function Ls() {
290
- if (Dn) return sr;
291
- Dn = 1;
292
- function e(r) {
293
- var t = this.has(r) && delete this.__data__[r];
294
- return this.size -= t ? 1 : 0, t;
295
- }
296
- return sr = e, sr;
297
- }
298
- var or, Ln;
299
- function Ns() {
300
- if (Ln) return or;
301
- Ln = 1;
302
- var e = De(), r = "__lodash_hash_undefined__", t = Object.prototype, n = t.hasOwnProperty;
303
- function a(i) {
304
- var o = this.__data__;
305
- if (e) {
306
- var u = o[i];
307
- return u === r ? void 0 : u;
308
- }
309
- return n.call(o, i) ? o[i] : void 0;
310
- }
311
- return or = a, or;
312
- }
313
- var ur, Nn;
314
- function Bs() {
315
- if (Nn) return ur;
316
- Nn = 1;
317
- var e = De(), r = Object.prototype, t = r.hasOwnProperty;
318
- function n(a) {
319
- var i = this.__data__;
320
- return e ? i[a] !== void 0 : t.call(i, a);
321
- }
322
- return ur = n, ur;
323
- }
324
- var cr, Bn;
325
- function js() {
326
- if (Bn) return cr;
327
- Bn = 1;
328
- var e = De(), r = "__lodash_hash_undefined__";
329
- function t(n, a) {
330
- var i = this.__data__;
331
- return this.size += this.has(n) ? 0 : 1, i[n] = e && a === void 0 ? r : a, this;
332
- }
333
- return cr = t, cr;
334
- }
335
- var fr, jn;
336
- function $s() {
337
- if (jn) return fr;
338
- jn = 1;
339
- var e = Ds(), r = Ls(), t = Ns(), n = Bs(), a = js();
340
- function i(o) {
341
- var u = -1, v = o == null ? 0 : o.length;
342
- for (this.clear(); ++u < v; ) {
343
- var h = o[u];
344
- this.set(h[0], h[1]);
345
- }
346
- }
347
- return i.prototype.clear = e, i.prototype.delete = r, i.prototype.get = t, i.prototype.has = n, i.prototype.set = a, fr = i, fr;
348
- }
349
- function Hs() {
350
- this.__data__ = [], this.size = 0;
351
- }
352
- var Us = Hs, lr, $n;
353
- function Vt() {
354
- if ($n) return lr;
355
- $n = 1;
356
- function e(r, t) {
357
- return r === t || r !== r && t !== t;
358
- }
359
- return lr = e, lr;
360
- }
361
- var Gs = Vt();
362
- function ks(e, r) {
363
- for (var t = e.length; t--; )
364
- if (Gs(e[t][0], r))
365
- return t;
366
- return -1;
367
- }
368
- var Le = ks, zs = Le, Ws = Array.prototype, Ys = Ws.splice;
369
- function Xs(e) {
370
- var r = this.__data__, t = zs(r, e);
371
- if (t < 0)
372
- return !1;
373
- var n = r.length - 1;
374
- return t == n ? r.pop() : Ys.call(r, t, 1), --this.size, !0;
375
- }
376
- var Js = Xs, Zs = Le;
377
- function Qs(e) {
378
- var r = this.__data__, t = Zs(r, e);
379
- return t < 0 ? void 0 : r[t][1];
380
- }
381
- var Vs = Qs, eo = Le;
382
- function ro(e) {
383
- return eo(this.__data__, e) > -1;
384
- }
385
- var to = ro, no = Le;
386
- function ao(e, r) {
387
- var t = this.__data__, n = no(t, e);
388
- return n < 0 ? (++this.size, t.push([e, r])) : t[n][1] = r, this;
389
- }
390
- var io = ao, so = Us, oo = Js, uo = Vs, co = to, fo = io;
391
- function ye(e) {
392
- var r = -1, t = e == null ? 0 : e.length;
393
- for (this.clear(); ++r < t; ) {
394
- var n = e[r];
395
- this.set(n[0], n[1]);
396
- }
397
- }
398
- ye.prototype.clear = so;
399
- ye.prototype.delete = oo;
400
- ye.prototype.get = uo;
401
- ye.prototype.has = co;
402
- ye.prototype.set = fo;
403
- var Ne = ye, lo = ve, ho = se(), vo = lo(ho, "Map"), en = vo, dr, Hn;
404
- function po() {
405
- if (Hn) return dr;
406
- Hn = 1;
407
- var e = $s(), r = Ne, t = en;
408
- function n() {
409
- this.size = 0, this.__data__ = {
410
- hash: new e(),
411
- map: new (t || r)(),
412
- string: new e()
413
- };
414
- }
415
- return dr = n, dr;
416
- }
417
- var hr, Un;
418
- function yo() {
419
- if (Un) return hr;
420
- Un = 1;
421
- function e(r) {
422
- var t = typeof r;
423
- return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? r !== "__proto__" : r === null;
424
- }
425
- return hr = e, hr;
426
- }
427
- var vr, Gn;
428
- function Be() {
429
- if (Gn) return vr;
430
- Gn = 1;
431
- var e = yo();
432
- function r(t, n) {
433
- var a = t.__data__;
434
- return e(n) ? a[typeof n == "string" ? "string" : "hash"] : a.map;
435
- }
436
- return vr = r, vr;
437
- }
438
- var pr, kn;
439
- function go() {
440
- if (kn) return pr;
441
- kn = 1;
442
- var e = Be();
443
- function r(t) {
444
- var n = e(this, t).delete(t);
445
- return this.size -= n ? 1 : 0, n;
446
- }
447
- return pr = r, pr;
448
- }
449
- var yr, zn;
450
- function bo() {
451
- if (zn) return yr;
452
- zn = 1;
453
- var e = Be();
454
- function r(t) {
455
- return e(this, t).get(t);
456
- }
457
- return yr = r, yr;
458
- }
459
- var gr, Wn;
460
- function _o() {
461
- if (Wn) return gr;
462
- Wn = 1;
463
- var e = Be();
464
- function r(t) {
465
- return e(this, t).has(t);
466
- }
467
- return gr = r, gr;
468
- }
469
- var br, Yn;
470
- function mo() {
471
- if (Yn) return br;
472
- Yn = 1;
473
- var e = Be();
474
- function r(t, n) {
475
- var a = e(this, t), i = a.size;
476
- return a.set(t, n), this.size += a.size == i ? 0 : 1, this;
477
- }
478
- return br = r, br;
479
- }
480
- var _r, Xn;
481
- function rn() {
482
- if (Xn) return _r;
483
- Xn = 1;
484
- var e = po(), r = go(), t = bo(), n = _o(), a = mo();
485
- function i(o) {
486
- var u = -1, v = o == null ? 0 : o.length;
487
- for (this.clear(); ++u < v; ) {
488
- var h = o[u];
489
- this.set(h[0], h[1]);
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { d as x } from "./index11.js";
3
+ import { useEffect as h, useState as d, useCallback as p } from "react";
4
+ import { s as f, N as O, I as k, O as y, S as E } from "./sl-types.js";
5
+ import { CountdownCircleTimer as g } from "react-countdown-circle-timer";
6
+ import { B as P } from "./index4.js";
7
+ const v = (i) => {
8
+ const { Component: o, options: t, customOptions: s, autoFocus: r, ...l } = i, e = x.useFocusable({
9
+ ...t,
10
+ ...s,
11
+ onEnterPress: () => {
12
+ var a;
13
+ return (a = i.onClick) == null ? void 0 : a.call(i, { currentTarget: e.ref.current, stopPropagation: () => {
14
+ } });
490
15
  }
491
- }
492
- return i.prototype.clear = e, i.prototype.delete = r, i.prototype.get = t, i.prototype.has = n, i.prototype.set = a, _r = i, _r;
493
- }
494
- var mr, Jn;
495
- function Co() {
496
- if (Jn) return mr;
497
- Jn = 1;
498
- var e = "__lodash_hash_undefined__";
499
- function r(t) {
500
- return this.__data__.set(t, e), this;
501
- }
502
- return mr = r, mr;
503
- }
504
- var Cr, Zn;
505
- function Fo() {
506
- if (Zn) return Cr;
507
- Zn = 1;
508
- function e(r) {
509
- return this.__data__.has(r);
510
- }
511
- return Cr = e, Cr;
512
- }
513
- var Fr, Qn;
514
- function Li() {
515
- if (Qn) return Fr;
516
- Qn = 1;
517
- var e = rn(), r = Co(), t = Fo();
518
- function n(a) {
519
- var i = -1, o = a == null ? 0 : a.length;
520
- for (this.__data__ = new e(); ++i < o; )
521
- this.add(a[i]);
522
- }
523
- return n.prototype.add = n.prototype.push = r, n.prototype.has = t, Fr = n, Fr;
524
- }
525
- var qr, Vn;
526
- function qo() {
527
- if (Vn) return qr;
528
- Vn = 1;
529
- function e(r, t, n, a) {
530
- for (var i = r.length, o = n + (a ? 1 : -1); a ? o-- : ++o < i; )
531
- if (t(r[o], o, r))
532
- return o;
533
- return -1;
534
- }
535
- return qr = e, qr;
536
- }
537
- var Rr, ea;
538
- function Ro() {
539
- if (ea) return Rr;
540
- ea = 1;
541
- function e(r) {
542
- return r !== r;
543
- }
544
- return Rr = e, Rr;
545
- }
546
- var wr, ra;
547
- function wo() {
548
- if (ra) return wr;
549
- ra = 1;
550
- function e(r, t, n) {
551
- for (var a = n - 1, i = r.length; ++a < i; )
552
- if (r[a] === t)
553
- return a;
554
- return -1;
555
- }
556
- return wr = e, wr;
557
- }
558
- var Ar, ta;
559
- function Ao() {
560
- if (ta) return Ar;
561
- ta = 1;
562
- var e = qo(), r = Ro(), t = wo();
563
- function n(a, i, o) {
564
- return i === i ? t(a, i, o) : e(a, r, o);
565
- }
566
- return Ar = n, Ar;
567
- }
568
- var Tr, na;
569
- function To() {
570
- if (na) return Tr;
571
- na = 1;
572
- var e = Ao();
573
- function r(t, n) {
574
- var a = t == null ? 0 : t.length;
575
- return !!a && e(t, n, 0) > -1;
576
- }
577
- return Tr = r, Tr;
578
- }
579
- var Or, aa;
580
- function Oo() {
581
- if (aa) return Or;
582
- aa = 1;
583
- function e(r, t, n) {
584
- for (var a = -1, i = r == null ? 0 : r.length; ++a < i; )
585
- if (n(t, r[a]))
586
- return !0;
587
- return !1;
588
- }
589
- return Or = e, Or;
590
- }
591
- function xo(e, r) {
592
- for (var t = -1, n = e == null ? 0 : e.length, a = Array(n); ++t < n; )
593
- a[t] = r(e[t], t, e);
594
- return a;
595
- }
596
- var tn = xo, xr, ia;
597
- function nn() {
598
- if (ia) return xr;
599
- ia = 1;
600
- function e(r) {
601
- return function(t) {
602
- return r(t);
603
- };
604
- }
605
- return xr = e, xr;
606
- }
607
- var Sr, sa;
608
- function Ni() {
609
- if (sa) return Sr;
610
- sa = 1;
611
- function e(r, t) {
612
- return r.has(t);
613
- }
614
- return Sr = e, Sr;
615
- }
616
- var Er, oa;
617
- function So() {
618
- if (oa) return Er;
619
- oa = 1;
620
- var e = Li(), r = To(), t = Oo(), n = tn, a = nn(), i = Ni(), o = 200;
621
- function u(v, h, b, _) {
622
- var I = -1, M = r, B = !0, S = v.length, g = [], d = h.length;
623
- if (!S)
624
- return g;
625
- b && (h = n(h, a(b))), _ ? (M = t, B = !1) : h.length >= o && (M = i, B = !1, h = new e(h));
626
- e:
627
- for (; ++I < S; ) {
628
- var m = v[I], C = b == null ? m : b(m);
629
- if (m = _ || m !== 0 ? m : 0, B && C === C) {
630
- for (var y = d; y--; )
631
- if (h[y] === C)
632
- continue e;
633
- g.push(m);
634
- } else M(h, C, _) || g.push(m);
635
- }
636
- return g;
637
- }
638
- return Er = u, Er;
639
- }
640
- var Kr, ua;
641
- function Bi() {
642
- if (ua) return Kr;
643
- ua = 1;
644
- function e(r, t) {
645
- for (var n = -1, a = t.length, i = r.length; ++n < a; )
646
- r[i + n] = t[n];
647
- return r;
648
- }
649
- return Kr = e, Kr;
650
- }
651
- var Pr, ca;
652
- function Eo() {
653
- if (ca) return Pr;
654
- ca = 1;
655
- var e = Te(), r = pe(), t = "[object Arguments]";
656
- function n(a) {
657
- return r(a) && e(a) == t;
658
- }
659
- return Pr = n, Pr;
660
- }
661
- var Mr, fa;
662
- function an() {
663
- if (fa) return Mr;
664
- fa = 1;
665
- var e = Eo(), r = pe(), t = Object.prototype, n = t.hasOwnProperty, a = t.propertyIsEnumerable, i = e(/* @__PURE__ */ function() {
666
- return arguments;
667
- }()) ? e : function(o) {
668
- return r(o) && n.call(o, "callee") && !a.call(o, "callee");
669
- };
670
- return Mr = i, Mr;
671
- }
672
- var Ir, la;
673
- function te() {
674
- if (la) return Ir;
675
- la = 1;
676
- var e = Array.isArray;
677
- return Ir = e, Ir;
678
- }
679
- var Dr, da;
680
- function Ko() {
681
- if (da) return Dr;
682
- da = 1;
683
- var e = Ae(), r = an(), t = te(), n = e ? e.isConcatSpreadable : void 0;
684
- function a(i) {
685
- return t(i) || r(i) || !!(n && i && i[n]);
686
- }
687
- return Dr = a, Dr;
688
- }
689
- var Lr, ha;
690
- function ji() {
691
- if (ha) return Lr;
692
- ha = 1;
693
- var e = Bi(), r = Ko();
694
- function t(n, a, i, o, u) {
695
- var v = -1, h = n.length;
696
- for (i || (i = r), u || (u = []); ++v < h; ) {
697
- var b = n[v];
698
- a > 0 && i(b) ? a > 1 ? t(b, a - 1, i, o, u) : e(u, b) : o || (u[u.length] = b);
699
- }
700
- return u;
701
- }
702
- return Lr = t, Lr;
703
- }
704
- var Nr, va;
705
- function xe() {
706
- if (va) return Nr;
707
- va = 1;
708
- function e(r) {
709
- return r;
710
- }
711
- return Nr = e, Nr;
712
- }
713
- var Br, pa;
714
- function Po() {
715
- if (pa) return Br;
716
- pa = 1;
717
- function e(r, t, n) {
718
- switch (n.length) {
719
- case 0:
720
- return r.call(t);
721
- case 1:
722
- return r.call(t, n[0]);
723
- case 2:
724
- return r.call(t, n[0], n[1]);
725
- case 3:
726
- return r.call(t, n[0], n[1], n[2]);
727
- }
728
- return r.apply(t, n);
729
- }
730
- return Br = e, Br;
731
- }
732
- var jr, ya;
733
- function Mo() {
734
- if (ya) return jr;
735
- ya = 1;
736
- var e = Po(), r = Math.max;
737
- function t(n, a, i) {
738
- return a = r(a === void 0 ? n.length - 1 : a, 0), function() {
739
- for (var o = arguments, u = -1, v = r(o.length - a, 0), h = Array(v); ++u < v; )
740
- h[u] = o[a + u];
741
- u = -1;
742
- for (var b = Array(a + 1); ++u < a; )
743
- b[u] = o[u];
744
- return b[a] = i(h), e(n, this, b);
745
- };
746
- }
747
- return jr = t, jr;
748
- }
749
- var $r, ga;
750
- function Io() {
751
- if (ga) return $r;
752
- ga = 1;
753
- function e(r) {
754
- return function() {
755
- return r;
756
- };
757
- }
758
- return $r = e, $r;
759
- }
760
- var Hr, ba;
761
- function Do() {
762
- if (ba) return Hr;
763
- ba = 1;
764
- var e = ve, r = function() {
765
- try {
766
- var t = e(Object, "defineProperty");
767
- return t({}, "", {}), t;
768
- } catch {
769
- }
770
- }();
771
- return Hr = r, Hr;
772
- }
773
- var Ur, _a;
774
- function Lo() {
775
- if (_a) return Ur;
776
- _a = 1;
777
- var e = Io(), r = Do(), t = xe(), n = r ? function(a, i) {
778
- return r(a, "toString", {
779
- configurable: !0,
780
- enumerable: !1,
781
- value: e(i),
782
- writable: !0
783
- });
784
- } : t;
785
- return Ur = n, Ur;
786
- }
787
- var Gr, ma;
788
- function No() {
789
- if (ma) return Gr;
790
- ma = 1;
791
- var e = 800, r = 16, t = Date.now;
792
- function n(a) {
793
- var i = 0, o = 0;
794
- return function() {
795
- var u = t(), v = r - (u - o);
796
- if (o = u, v > 0) {
797
- if (++i >= e)
798
- return arguments[0];
799
- } else
800
- i = 0;
801
- return a.apply(void 0, arguments);
802
- };
803
- }
804
- return Gr = n, Gr;
805
- }
806
- var kr, Ca;
807
- function Bo() {
808
- if (Ca) return kr;
809
- Ca = 1;
810
- var e = Lo(), r = No(), t = r(e);
811
- return kr = t, kr;
812
- }
813
- var zr, Fa;
814
- function $i() {
815
- if (Fa) return zr;
816
- Fa = 1;
817
- var e = xe(), r = Mo(), t = Bo();
818
- function n(a, i) {
819
- return t(r(a, i, e), a + "");
820
- }
821
- return zr = n, zr;
822
- }
823
- var Wr, qa;
824
- function sn() {
825
- if (qa) return Wr;
826
- qa = 1;
827
- var e = 9007199254740991;
828
- function r(t) {
829
- return typeof t == "number" && t > -1 && t % 1 == 0 && t <= e;
830
- }
831
- return Wr = r, Wr;
832
- }
833
- var Yr, Ra;
834
- function Se() {
835
- if (Ra) return Yr;
836
- Ra = 1;
837
- var e = Ii(), r = sn();
838
- function t(n) {
839
- return n != null && r(n.length) && !e(n);
840
- }
841
- return Yr = t, Yr;
842
- }
843
- var Xr, wa;
844
- function jo() {
845
- if (wa) return Xr;
846
- wa = 1;
847
- var e = Se(), r = pe();
848
- function t(n) {
849
- return r(n) && e(n);
850
- }
851
- return Xr = t, Xr;
852
- }
853
- var Jr, Aa;
854
- function $o() {
855
- if (Aa) return Jr;
856
- Aa = 1;
857
- var e = So(), r = ji(), t = $i(), n = jo(), a = t(function(i, o) {
858
- return n(i) ? e(i, r(o, 1, n, !0)) : [];
859
16
  });
860
- return Jr = a, Jr;
861
- }
862
- var Zr, Ta;
863
- function Hi() {
864
- if (Ta) return Zr;
865
- Ta = 1;
866
- function e(r, t) {
867
- for (var n = -1, a = r == null ? 0 : r.length, i = 0, o = []; ++n < a; ) {
868
- var u = r[n];
869
- t(u, n, r) && (o[i++] = u);
870
- }
871
- return o;
872
- }
873
- return Zr = e, Zr;
874
- }
875
- var Qr, Oa;
876
- function Ho() {
877
- if (Oa) return Qr;
878
- Oa = 1;
879
- function e(r) {
880
- return function(t, n, a) {
881
- for (var i = -1, o = Object(t), u = a(t), v = u.length; v--; ) {
882
- var h = u[r ? v : ++i];
883
- if (n(o[h], h, o) === !1)
884
- break;
885
- }
886
- return t;
887
- };
888
- }
889
- return Qr = e, Qr;
890
- }
891
- var Vr, xa;
892
- function Uo() {
893
- if (xa) return Vr;
894
- xa = 1;
895
- var e = Ho(), r = e();
896
- return Vr = r, Vr;
897
- }
898
- function Go(e, r) {
899
- for (var t = -1, n = Array(e); ++t < e; )
900
- n[t] = r(t);
901
- return n;
902
- }
903
- var ko = Go, Me = { exports: {} };
904
- function zo() {
905
- return !1;
906
- }
907
- var Wo = zo;
908
- Me.exports;
909
- (function(e, r) {
910
- var t = se(), n = Wo, a = r && !r.nodeType && r, i = a && !0 && e && !e.nodeType && e, o = i && i.exports === a, u = o ? t.Buffer : void 0, v = u ? u.isBuffer : void 0, h = v || n;
911
- e.exports = h;
912
- })(Me, Me.exports);
913
- var Ui = Me.exports, et, Sa;
914
- function on() {
915
- if (Sa) return et;
916
- Sa = 1;
917
- var e = 9007199254740991, r = /^(?:0|[1-9]\d*)$/;
918
- function t(n, a) {
919
- var i = typeof n;
920
- return a = a ?? e, !!a && (i == "number" || i != "symbol" && r.test(n)) && n > -1 && n % 1 == 0 && n < a;
921
- }
922
- return et = t, et;
923
- }
924
- var Yo = Te(), Xo = sn(), Jo = pe(), Zo = "[object Arguments]", Qo = "[object Array]", Vo = "[object Boolean]", eu = "[object Date]", ru = "[object Error]", tu = "[object Function]", nu = "[object Map]", au = "[object Number]", iu = "[object Object]", su = "[object RegExp]", ou = "[object Set]", uu = "[object String]", cu = "[object WeakMap]", fu = "[object ArrayBuffer]", lu = "[object DataView]", du = "[object Float32Array]", hu = "[object Float64Array]", vu = "[object Int8Array]", pu = "[object Int16Array]", yu = "[object Int32Array]", gu = "[object Uint8Array]", bu = "[object Uint8ClampedArray]", _u = "[object Uint16Array]", mu = "[object Uint32Array]", G = {};
925
- G[du] = G[hu] = G[vu] = G[pu] = G[yu] = G[gu] = G[bu] = G[_u] = G[mu] = !0;
926
- G[Zo] = G[Qo] = G[fu] = G[Vo] = G[lu] = G[eu] = G[ru] = G[tu] = G[nu] = G[au] = G[iu] = G[su] = G[ou] = G[uu] = G[cu] = !1;
927
- function Cu(e) {
928
- return Jo(e) && Xo(e.length) && !!G[Yo(e)];
929
- }
930
- var Fu = Cu, Ie = { exports: {} };
931
- Ie.exports;
932
- (function(e, r) {
933
- var t = Pi(), n = r && !r.nodeType && r, a = n && !0 && e && !e.nodeType && e, i = a && a.exports === n, o = i && t.process, u = function() {
934
- try {
935
- var v = a && a.require && a.require("util").types;
936
- return v || o && o.binding && o.binding("util");
937
- } catch {
938
- }
939
- }();
940
- e.exports = u;
941
- })(Ie, Ie.exports);
942
- var qu = Ie.exports, Ru = Fu, wu = nn(), Ea = qu, Ka = Ea && Ea.isTypedArray, Au = Ka ? wu(Ka) : Ru, Gi = Au, Tu = ko, Ou = an(), xu = te(), Su = Ui, Eu = on(), Ku = Gi, Pu = Object.prototype, Mu = Pu.hasOwnProperty;
943
- function Iu(e, r) {
944
- var t = xu(e), n = !t && Ou(e), a = !t && !n && Su(e), i = !t && !n && !a && Ku(e), o = t || n || a || i, u = o ? Tu(e.length, String) : [], v = u.length;
945
- for (var h in e)
946
- (r || Mu.call(e, h)) && !(o && // Safari 9 has enumerable `arguments.length` in strict mode.
947
- (h == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
948
- a && (h == "offset" || h == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
949
- i && (h == "buffer" || h == "byteLength" || h == "byteOffset") || // Skip index properties.
950
- Eu(h, v))) && u.push(h);
951
- return u;
952
- }
953
- var Du = Iu, Lu = Object.prototype;
954
- function Nu(e) {
955
- var r = e && e.constructor, t = typeof r == "function" && r.prototype || Lu;
956
- return e === t;
957
- }
958
- var Bu = Nu;
959
- function ju(e, r) {
960
- return function(t) {
961
- return e(r(t));
962
- };
963
- }
964
- var $u = ju, Hu = $u, Uu = Hu(Object.keys, Object), Gu = Uu, ku = Bu, zu = Gu, Wu = Object.prototype, Yu = Wu.hasOwnProperty;
965
- function Xu(e) {
966
- if (!ku(e))
967
- return zu(e);
968
- var r = [];
969
- for (var t in Object(e))
970
- Yu.call(e, t) && t != "constructor" && r.push(t);
971
- return r;
972
- }
973
- var Ju = Xu, Zu = Du, Qu = Ju, Vu = Se();
974
- function ec(e) {
975
- return Vu(e) ? Zu(e) : Qu(e);
976
- }
977
- var un = ec, rt, Pa;
978
- function cn() {
979
- if (Pa) return rt;
980
- Pa = 1;
981
- var e = Uo(), r = un;
982
- function t(n, a) {
983
- return n && e(n, a, r);
984
- }
985
- return rt = t, rt;
986
- }
987
- var tt, Ma;
988
- function rc() {
989
- if (Ma) return tt;
990
- Ma = 1;
991
- var e = Se();
992
- function r(t, n) {
993
- return function(a, i) {
994
- if (a == null)
995
- return a;
996
- if (!e(a))
997
- return t(a, i);
998
- for (var o = a.length, u = n ? o : -1, v = Object(a); (n ? u-- : ++u < o) && i(v[u], u, v) !== !1; )
999
- ;
1000
- return a;
1001
- };
1002
- }
1003
- return tt = r, tt;
1004
- }
1005
- var nt, Ia;
1006
- function fn() {
1007
- if (Ia) return nt;
1008
- Ia = 1;
1009
- var e = cn(), r = rc(), t = r(e);
1010
- return nt = t, nt;
1011
- }
1012
- var at, Da;
1013
- function tc() {
1014
- if (Da) return at;
1015
- Da = 1;
1016
- var e = fn();
1017
- function r(t, n) {
1018
- var a = [];
1019
- return e(t, function(i, o, u) {
1020
- n(i, o, u) && a.push(i);
1021
- }), a;
1022
- }
1023
- return at = r, at;
1024
- }
1025
- var nc = Ne;
1026
- function ac() {
1027
- this.__data__ = new nc(), this.size = 0;
1028
- }
1029
- var ic = ac;
1030
- function sc(e) {
1031
- var r = this.__data__, t = r.delete(e);
1032
- return this.size = r.size, t;
1033
- }
1034
- var oc = sc;
1035
- function uc(e) {
1036
- return this.__data__.get(e);
1037
- }
1038
- var cc = uc;
1039
- function fc(e) {
1040
- return this.__data__.has(e);
1041
- }
1042
- var lc = fc, dc = Ne, hc = en, vc = rn(), pc = 200;
1043
- function yc(e, r) {
1044
- var t = this.__data__;
1045
- if (t instanceof dc) {
1046
- var n = t.__data__;
1047
- if (!hc || n.length < pc - 1)
1048
- return n.push([e, r]), this.size = ++t.size, this;
1049
- t = this.__data__ = new vc(n);
1050
- }
1051
- return t.set(e, r), this.size = t.size, this;
1052
- }
1053
- var gc = yc, bc = Ne, _c = ic, mc = oc, Cc = cc, Fc = lc, qc = gc;
1054
- function ge(e) {
1055
- var r = this.__data__ = new bc(e);
1056
- this.size = r.size;
1057
- }
1058
- ge.prototype.clear = _c;
1059
- ge.prototype.delete = mc;
1060
- ge.prototype.get = Cc;
1061
- ge.prototype.has = Fc;
1062
- ge.prototype.set = qc;
1063
- var ki = ge, it, La;
1064
- function Rc() {
1065
- if (La) return it;
1066
- La = 1;
1067
- function e(r, t) {
1068
- for (var n = -1, a = r == null ? 0 : r.length; ++n < a; )
1069
- if (t(r[n], n, r))
1070
- return !0;
1071
- return !1;
1072
- }
1073
- return it = e, it;
1074
- }
1075
- var st, Na;
1076
- function zi() {
1077
- if (Na) return st;
1078
- Na = 1;
1079
- var e = Li(), r = Rc(), t = Ni(), n = 1, a = 2;
1080
- function i(o, u, v, h, b, _) {
1081
- var I = v & n, M = o.length, B = u.length;
1082
- if (M != B && !(I && B > M))
1083
- return !1;
1084
- var S = _.get(o), g = _.get(u);
1085
- if (S && g)
1086
- return S == u && g == o;
1087
- var d = -1, m = !0, C = v & a ? new e() : void 0;
1088
- for (_.set(o, u), _.set(u, o); ++d < M; ) {
1089
- var y = o[d], K = u[d];
1090
- if (h)
1091
- var O = I ? h(K, y, d, u, o, _) : h(y, K, d, o, u, _);
1092
- if (O !== void 0) {
1093
- if (O)
1094
- continue;
1095
- m = !1;
1096
- break;
1097
- }
1098
- if (C) {
1099
- if (!r(u, function(q, D) {
1100
- if (!t(C, D) && (y === q || b(y, q, v, h, _)))
1101
- return C.push(D);
1102
- })) {
1103
- m = !1;
1104
- break;
1105
- }
1106
- } else if (!(y === K || b(y, K, v, h, _))) {
1107
- m = !1;
1108
- break;
1109
- }
1110
- }
1111
- return _.delete(o), _.delete(u), m;
1112
- }
1113
- return st = i, st;
1114
- }
1115
- var wc = se(), Ac = wc.Uint8Array, Tc = Ac, ot, Ba;
1116
- function Oc() {
1117
- if (Ba) return ot;
1118
- Ba = 1;
1119
- function e(r) {
1120
- var t = -1, n = Array(r.size);
1121
- return r.forEach(function(a, i) {
1122
- n[++t] = [i, a];
1123
- }), n;
1124
- }
1125
- return ot = e, ot;
1126
- }
1127
- function xc(e) {
1128
- var r = -1, t = Array(e.size);
1129
- return e.forEach(function(n) {
1130
- t[++r] = n;
1131
- }), t;
1132
- }
1133
- var Sc = xc, ut, ja;
1134
- function Ec() {
1135
- if (ja) return ut;
1136
- ja = 1;
1137
- var e = Ae(), r = Tc, t = Vt(), n = zi(), a = Oc(), i = Sc, o = 1, u = 2, v = "[object Boolean]", h = "[object Date]", b = "[object Error]", _ = "[object Map]", I = "[object Number]", M = "[object RegExp]", B = "[object Set]", S = "[object String]", g = "[object Symbol]", d = "[object ArrayBuffer]", m = "[object DataView]", C = e ? e.prototype : void 0, y = C ? C.valueOf : void 0;
1138
- function K(O, q, D, w, x, z, H) {
1139
- switch (D) {
1140
- case m:
1141
- if (O.byteLength != q.byteLength || O.byteOffset != q.byteOffset)
1142
- return !1;
1143
- O = O.buffer, q = q.buffer;
1144
- case d:
1145
- return !(O.byteLength != q.byteLength || !z(new r(O), new r(q)));
1146
- case v:
1147
- case h:
1148
- case I:
1149
- return t(+O, +q);
1150
- case b:
1151
- return O.name == q.name && O.message == q.message;
1152
- case M:
1153
- case S:
1154
- return O == q + "";
1155
- case _:
1156
- var T = a;
1157
- case B:
1158
- var U = w & o;
1159
- if (T || (T = i), O.size != q.size && !U)
1160
- return !1;
1161
- var J = H.get(O);
1162
- if (J)
1163
- return J == q;
1164
- w |= u, H.set(O, q);
1165
- var ne = n(T(O), T(q), w, x, z, H);
1166
- return H.delete(O), ne;
1167
- case g:
1168
- if (y)
1169
- return y.call(O) == y.call(q);
1170
- }
1171
- return !1;
1172
- }
1173
- return ut = K, ut;
1174
- }
1175
- var Kc = Bi(), Pc = te();
1176
- function Mc(e, r, t) {
1177
- var n = r(e);
1178
- return Pc(e) ? n : Kc(n, t(e));
1179
- }
1180
- var Ic = Mc;
1181
- function Dc() {
1182
- return [];
1183
- }
1184
- var Lc = Dc, Nc = Hi(), Bc = Lc, jc = Object.prototype, $c = jc.propertyIsEnumerable, $a = Object.getOwnPropertySymbols, Hc = $a ? function(e) {
1185
- return e == null ? [] : (e = Object(e), Nc($a(e), function(r) {
1186
- return $c.call(e, r);
1187
- }));
1188
- } : Bc, Uc = Hc, Gc = Ic, kc = Uc, zc = un;
1189
- function Wc(e) {
1190
- return Gc(e, zc, kc);
1191
- }
1192
- var Yc = Wc, ct, Ha;
1193
- function Xc() {
1194
- if (Ha) return ct;
1195
- Ha = 1;
1196
- var e = Yc, r = 1, t = Object.prototype, n = t.hasOwnProperty;
1197
- function a(i, o, u, v, h, b) {
1198
- var _ = u & r, I = e(i), M = I.length, B = e(o), S = B.length;
1199
- if (M != S && !_)
1200
- return !1;
1201
- for (var g = M; g--; ) {
1202
- var d = I[g];
1203
- if (!(_ ? d in o : n.call(o, d)))
1204
- return !1;
1205
- }
1206
- var m = b.get(i), C = b.get(o);
1207
- if (m && C)
1208
- return m == o && C == i;
1209
- var y = !0;
1210
- b.set(i, o), b.set(o, i);
1211
- for (var K = _; ++g < M; ) {
1212
- d = I[g];
1213
- var O = i[d], q = o[d];
1214
- if (v)
1215
- var D = _ ? v(q, O, d, o, i, b) : v(O, q, d, i, o, b);
1216
- if (!(D === void 0 ? O === q || h(O, q, u, v, b) : D)) {
1217
- y = !1;
1218
- break;
1219
- }
1220
- K || (K = d == "constructor");
1221
- }
1222
- if (y && !K) {
1223
- var w = i.constructor, x = o.constructor;
1224
- w != x && "constructor" in i && "constructor" in o && !(typeof w == "function" && w instanceof w && typeof x == "function" && x instanceof x) && (y = !1);
1225
- }
1226
- return b.delete(i), b.delete(o), y;
1227
- }
1228
- return ct = a, ct;
1229
- }
1230
- var Jc = ve, Zc = se(), Qc = Jc(Zc, "DataView"), Vc = Qc, ef = ve, rf = se(), tf = ef(rf, "Promise"), nf = tf, af = ve, sf = se(), of = af(sf, "Set"), uf = of, cf = ve, ff = se(), lf = cf(ff, "WeakMap"), df = lf, Yt = Vc, Xt = en, Jt = nf, Zt = uf, Qt = df, Wi = Te(), be = Di, Ua = "[object Map]", hf = "[object Object]", Ga = "[object Promise]", ka = "[object Set]", za = "[object WeakMap]", Wa = "[object DataView]", vf = be(Yt), pf = be(Xt), yf = be(Jt), gf = be(Zt), bf = be(Qt), de = Wi;
1231
- (Yt && de(new Yt(new ArrayBuffer(1))) != Wa || Xt && de(new Xt()) != Ua || Jt && de(Jt.resolve()) != Ga || Zt && de(new Zt()) != ka || Qt && de(new Qt()) != za) && (de = function(e) {
1232
- var r = Wi(e), t = r == hf ? e.constructor : void 0, n = t ? be(t) : "";
1233
- if (n)
1234
- switch (n) {
1235
- case vf:
1236
- return Wa;
1237
- case pf:
1238
- return Ua;
1239
- case yf:
1240
- return Ga;
1241
- case gf:
1242
- return ka;
1243
- case bf:
1244
- return za;
1245
- }
1246
- return r;
1247
- });
1248
- var _f = de, ft, Ya;
1249
- function mf() {
1250
- if (Ya) return ft;
1251
- Ya = 1;
1252
- var e = ki, r = zi(), t = Ec(), n = Xc(), a = _f, i = te(), o = Ui, u = Gi, v = 1, h = "[object Arguments]", b = "[object Array]", _ = "[object Object]", I = Object.prototype, M = I.hasOwnProperty;
1253
- function B(S, g, d, m, C, y) {
1254
- var K = i(S), O = i(g), q = K ? b : a(S), D = O ? b : a(g);
1255
- q = q == h ? _ : q, D = D == h ? _ : D;
1256
- var w = q == _, x = D == _, z = q == D;
1257
- if (z && o(S)) {
1258
- if (!o(g))
1259
- return !1;
1260
- K = !0, w = !1;
1261
- }
1262
- if (z && !w)
1263
- return y || (y = new e()), K || u(S) ? r(S, g, d, m, C, y) : t(S, g, q, d, m, C, y);
1264
- if (!(d & v)) {
1265
- var H = w && M.call(S, "__wrapped__"), T = x && M.call(g, "__wrapped__");
1266
- if (H || T) {
1267
- var U = H ? S.value() : S, J = T ? g.value() : g;
1268
- return y || (y = new e()), C(U, J, d, m, y);
1269
- }
1270
- }
1271
- return z ? (y || (y = new e()), n(S, g, d, m, C, y)) : !1;
1272
- }
1273
- return ft = B, ft;
1274
- }
1275
- var lt, Xa;
1276
- function Yi() {
1277
- if (Xa) return lt;
1278
- Xa = 1;
1279
- var e = mf(), r = pe();
1280
- function t(n, a, i, o, u) {
1281
- return n === a ? !0 : n == null || a == null || !r(n) && !r(a) ? n !== n && a !== a : e(n, a, i, o, t, u);
1282
- }
1283
- return lt = t, lt;
1284
- }
1285
- var dt, Ja;
1286
- function Cf() {
1287
- if (Ja) return dt;
1288
- Ja = 1;
1289
- var e = ki, r = Yi(), t = 1, n = 2;
1290
- function a(i, o, u, v) {
1291
- var h = u.length, b = h, _ = !v;
1292
- if (i == null)
1293
- return !b;
1294
- for (i = Object(i); h--; ) {
1295
- var I = u[h];
1296
- if (_ && I[2] ? I[1] !== i[I[0]] : !(I[0] in i))
1297
- return !1;
1298
- }
1299
- for (; ++h < b; ) {
1300
- I = u[h];
1301
- var M = I[0], B = i[M], S = I[1];
1302
- if (_ && I[2]) {
1303
- if (B === void 0 && !(M in i))
1304
- return !1;
1305
- } else {
1306
- var g = new e();
1307
- if (v)
1308
- var d = v(B, S, M, i, o, g);
1309
- if (!(d === void 0 ? r(S, B, t | n, v, g) : d))
1310
- return !1;
1311
- }
1312
- }
1313
- return !0;
1314
- }
1315
- return dt = a, dt;
1316
- }
1317
- var ht, Za;
1318
- function Xi() {
1319
- if (Za) return ht;
1320
- Za = 1;
1321
- var e = he();
1322
- function r(t) {
1323
- return t === t && !e(t);
1324
- }
1325
- return ht = r, ht;
1326
- }
1327
- var vt, Qa;
1328
- function Ff() {
1329
- if (Qa) return vt;
1330
- Qa = 1;
1331
- var e = Xi(), r = un;
1332
- function t(n) {
1333
- for (var a = r(n), i = a.length; i--; ) {
1334
- var o = a[i], u = n[o];
1335
- a[i] = [o, u, e(u)];
1336
- }
1337
- return a;
1338
- }
1339
- return vt = t, vt;
1340
- }
1341
- var pt, Va;
1342
- function Ji() {
1343
- if (Va) return pt;
1344
- Va = 1;
1345
- function e(r, t) {
1346
- return function(n) {
1347
- return n == null ? !1 : n[r] === t && (t !== void 0 || r in Object(n));
1348
- };
1349
- }
1350
- return pt = e, pt;
1351
- }
1352
- var yt, ei;
1353
- function qf() {
1354
- if (ei) return yt;
1355
- ei = 1;
1356
- var e = Cf(), r = Ff(), t = Ji();
1357
- function n(a) {
1358
- var i = r(a);
1359
- return i.length == 1 && i[0][2] ? t(i[0][0], i[0][1]) : function(o) {
1360
- return o === a || e(o, a, i);
1361
- };
1362
- }
1363
- return yt = n, yt;
1364
- }
1365
- var gt, ri;
1366
- function ln() {
1367
- if (ri) return gt;
1368
- ri = 1;
1369
- var e = te(), r = Oe(), t = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, n = /^\w*$/;
1370
- function a(i, o) {
1371
- if (e(i))
1372
- return !1;
1373
- var u = typeof i;
1374
- return u == "number" || u == "symbol" || u == "boolean" || i == null || r(i) ? !0 : n.test(i) || !t.test(i) || o != null && i in Object(o);
1375
- }
1376
- return gt = a, gt;
1377
- }
1378
- var Zi = rn(), Rf = "Expected a function";
1379
- function dn(e, r) {
1380
- if (typeof e != "function" || r != null && typeof r != "function")
1381
- throw new TypeError(Rf);
1382
- var t = function() {
1383
- var n = arguments, a = r ? r.apply(this, n) : n[0], i = t.cache;
1384
- if (i.has(a))
1385
- return i.get(a);
1386
- var o = e.apply(this, n);
1387
- return t.cache = i.set(a, o) || i, o;
1388
- };
1389
- return t.cache = new (dn.Cache || Zi)(), t;
1390
- }
1391
- dn.Cache = Zi;
1392
- var wf = dn, Af = wf, Tf = 500;
1393
- function Of(e) {
1394
- var r = Af(e, function(n) {
1395
- return t.size === Tf && t.clear(), n;
1396
- }), t = r.cache;
1397
- return r;
1398
- }
1399
- var xf = Of, Sf = xf, Ef = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Kf = /\\(\\)?/g, Pf = Sf(function(e) {
1400
- var r = [];
1401
- return e.charCodeAt(0) === 46 && r.push(""), e.replace(Ef, function(t, n, a, i) {
1402
- r.push(a ? i.replace(Kf, "$1") : n || t);
1403
- }), r;
1404
- }), Mf = Pf, bt, ti;
1405
- function If() {
1406
- if (ti) return bt;
1407
- ti = 1;
1408
- var e = Ae(), r = tn, t = te(), n = Oe(), a = 1 / 0, i = e ? e.prototype : void 0, o = i ? i.toString : void 0;
1409
- function u(v) {
1410
- if (typeof v == "string")
1411
- return v;
1412
- if (t(v))
1413
- return r(v, u) + "";
1414
- if (n(v))
1415
- return o ? o.call(v) : "";
1416
- var h = v + "";
1417
- return h == "0" && 1 / v == -a ? "-0" : h;
1418
- }
1419
- return bt = u, bt;
1420
- }
1421
- var _t, ni;
1422
- function Qi() {
1423
- if (ni) return _t;
1424
- ni = 1;
1425
- var e = If();
1426
- function r(t) {
1427
- return t == null ? "" : e(t);
1428
- }
1429
- return _t = r, _t;
1430
- }
1431
- var Df = te(), Lf = ln(), Nf = Mf, Bf = Qi();
1432
- function jf(e, r) {
1433
- return Df(e) ? e : Lf(e, r) ? [e] : Nf(Bf(e));
1434
- }
1435
- var Vi = jf, $f = Oe(), Hf = 1 / 0;
1436
- function Uf(e) {
1437
- if (typeof e == "string" || $f(e))
1438
- return e;
1439
- var r = e + "";
1440
- return r == "0" && 1 / e == -Hf ? "-0" : r;
1441
- }
1442
- var je = Uf, Gf = Vi, kf = je;
1443
- function zf(e, r) {
1444
- r = Gf(r, e);
1445
- for (var t = 0, n = r.length; e != null && t < n; )
1446
- e = e[kf(r[t++])];
1447
- return t && t == n ? e : void 0;
1448
- }
1449
- var hn = zf, mt, ai;
1450
- function Wf() {
1451
- if (ai) return mt;
1452
- ai = 1;
1453
- var e = hn;
1454
- function r(t, n, a) {
1455
- var i = t == null ? void 0 : e(t, n);
1456
- return i === void 0 ? a : i;
1457
- }
1458
- return mt = r, mt;
1459
- }
1460
- var Ct, ii;
1461
- function Yf() {
1462
- if (ii) return Ct;
1463
- ii = 1;
1464
- function e(r, t) {
1465
- return r != null && t in Object(r);
1466
- }
1467
- return Ct = e, Ct;
1468
- }
1469
- var Ft, si;
1470
- function Xf() {
1471
- if (si) return Ft;
1472
- si = 1;
1473
- var e = Vi, r = an(), t = te(), n = on(), a = sn(), i = je;
1474
- function o(u, v, h) {
1475
- v = e(v, u);
1476
- for (var b = -1, _ = v.length, I = !1; ++b < _; ) {
1477
- var M = i(v[b]);
1478
- if (!(I = u != null && h(u, M)))
1479
- break;
1480
- u = u[M];
1481
- }
1482
- return I || ++b != _ ? I : (_ = u == null ? 0 : u.length, !!_ && a(_) && n(M, _) && (t(u) || r(u)));
1483
- }
1484
- return Ft = o, Ft;
1485
- }
1486
- var qt, oi;
1487
- function Jf() {
1488
- if (oi) return qt;
1489
- oi = 1;
1490
- var e = Yf(), r = Xf();
1491
- function t(n, a) {
1492
- return n != null && r(n, a, e);
1493
- }
1494
- return qt = t, qt;
1495
- }
1496
- var Rt, ui;
1497
- function Zf() {
1498
- if (ui) return Rt;
1499
- ui = 1;
1500
- var e = Yi(), r = Wf(), t = Jf(), n = ln(), a = Xi(), i = Ji(), o = je, u = 1, v = 2;
1501
- function h(b, _) {
1502
- return n(b) && a(_) ? i(o(b), _) : function(I) {
1503
- var M = r(I, b);
1504
- return M === void 0 && M === _ ? t(I, b) : e(_, M, u | v);
1505
- };
1506
- }
1507
- return Rt = h, Rt;
1508
- }
1509
- var wt, ci;
1510
- function Qf() {
1511
- if (ci) return wt;
1512
- ci = 1;
1513
- function e(r) {
1514
- return function(t) {
1515
- return t == null ? void 0 : t[r];
1516
- };
1517
- }
1518
- return wt = e, wt;
1519
- }
1520
- var At, fi;
1521
- function Vf() {
1522
- if (fi) return At;
1523
- fi = 1;
1524
- var e = hn;
1525
- function r(t) {
1526
- return function(n) {
1527
- return e(n, t);
1528
- };
1529
- }
1530
- return At = r, At;
1531
- }
1532
- var Tt, li;
1533
- function el() {
1534
- if (li) return Tt;
1535
- li = 1;
1536
- var e = Qf(), r = Vf(), t = ln(), n = je;
1537
- function a(i) {
1538
- return t(i) ? e(n(i)) : r(i);
1539
- }
1540
- return Tt = a, Tt;
1541
- }
1542
- var Ot, di;
1543
- function vn() {
1544
- if (di) return Ot;
1545
- di = 1;
1546
- var e = qf(), r = Zf(), t = xe(), n = te(), a = el();
1547
- function i(o) {
1548
- return typeof o == "function" ? o : o == null ? t : typeof o == "object" ? n(o) ? r(o[0], o[1]) : e(o) : a(o);
1549
- }
1550
- return Ot = i, Ot;
1551
- }
1552
- var xt, hi;
1553
- function rl() {
1554
- if (hi) return xt;
1555
- hi = 1;
1556
- var e = Hi(), r = tc(), t = vn(), n = te();
1557
- function a(i, o) {
1558
- var u = n(i) ? e : r;
1559
- return u(i, t(o, 3));
1560
- }
1561
- return xt = a, xt;
1562
- }
1563
- var St, vi;
1564
- function tl() {
1565
- if (vi) return St;
1566
- vi = 1;
1567
- function e(r, t, n) {
1568
- var a;
1569
- return n(r, function(i, o, u) {
1570
- if (t(i, o, u))
1571
- return a = o, !1;
1572
- }), a;
1573
- }
1574
- return St = e, St;
1575
- }
1576
- var Et, pi;
1577
- function nl() {
1578
- if (pi) return Et;
1579
- pi = 1;
1580
- var e = tl(), r = cn(), t = vn();
1581
- function n(a, i) {
1582
- return e(a, t(i, 3), r);
1583
- }
1584
- return Et = n, Et;
1585
- }
1586
- var Kt, yi;
1587
- function al() {
1588
- if (yi) return Kt;
1589
- yi = 1;
1590
- function e(r) {
1591
- return r && r.length ? r[0] : void 0;
1592
- }
1593
- return Kt = e, Kt;
1594
- }
1595
- var Pt, gi;
1596
- function il() {
1597
- return gi || (gi = 1, Pt = al()), Pt;
1598
- }
1599
- var Mt, bi;
1600
- function sl() {
1601
- if (bi) return Mt;
1602
- bi = 1;
1603
- function e(r, t) {
1604
- for (var n = -1, a = r == null ? 0 : r.length; ++n < a && t(r[n], n, r) !== !1; )
1605
- ;
1606
- return r;
1607
- }
1608
- return Mt = e, Mt;
1609
- }
1610
- var It, _i;
1611
- function es() {
1612
- if (_i) return It;
1613
- _i = 1;
1614
- var e = xe();
1615
- function r(t) {
1616
- return typeof t == "function" ? t : e;
1617
- }
1618
- return It = r, It;
1619
- }
1620
- var Dt, mi;
1621
- function ol() {
1622
- if (mi) return Dt;
1623
- mi = 1;
1624
- var e = sl(), r = fn(), t = es(), n = te();
1625
- function a(i, o) {
1626
- var u = n(i) ? e : r;
1627
- return u(i, t(o));
1628
- }
1629
- return Dt = a, Dt;
1630
- }
1631
- var Lt, Ci;
1632
- function ul() {
1633
- if (Ci) return Lt;
1634
- Ci = 1;
1635
- var e = cn(), r = es();
1636
- function t(n, a) {
1637
- return n && e(n, r(a));
1638
- }
1639
- return Lt = t, Lt;
1640
- }
1641
- var Nt, Fi;
1642
- function cl() {
1643
- if (Fi) return Nt;
1644
- Fi = 1;
1645
- function e() {
1646
- }
1647
- return Nt = e, Nt;
1648
- }
1649
- var Bt, qi;
1650
- function fl() {
1651
- if (qi) return Bt;
1652
- qi = 1;
1653
- var e = fn(), r = Se();
1654
- function t(n, a) {
1655
- var i = -1, o = r(n) ? Array(n.length) : [];
1656
- return e(n, function(u, v, h) {
1657
- o[++i] = a(u, v, h);
1658
- }), o;
1659
- }
1660
- return Bt = t, Bt;
1661
- }
1662
- var jt, Ri;
1663
- function ll() {
1664
- if (Ri) return jt;
1665
- Ri = 1;
1666
- function e(r, t) {
1667
- var n = r.length;
1668
- for (r.sort(t); n--; )
1669
- r[n] = r[n].value;
1670
- return r;
1671
- }
1672
- return jt = e, jt;
1673
- }
1674
- var $t, wi;
1675
- function dl() {
1676
- if (wi) return $t;
1677
- wi = 1;
1678
- var e = Oe();
1679
- function r(t, n) {
1680
- if (t !== n) {
1681
- var a = t !== void 0, i = t === null, o = t === t, u = e(t), v = n !== void 0, h = n === null, b = n === n, _ = e(n);
1682
- if (!h && !_ && !u && t > n || u && v && b && !h && !_ || i && v && b || !a && b || !o)
1683
- return 1;
1684
- if (!i && !u && !_ && t < n || _ && a && o && !i && !u || h && a && o || !v && o || !b)
1685
- return -1;
1686
- }
1687
- return 0;
1688
- }
1689
- return $t = r, $t;
1690
- }
1691
- var Ht, Ai;
1692
- function hl() {
1693
- if (Ai) return Ht;
1694
- Ai = 1;
1695
- var e = dl();
1696
- function r(t, n, a) {
1697
- for (var i = -1, o = t.criteria, u = n.criteria, v = o.length, h = a.length; ++i < v; ) {
1698
- var b = e(o[i], u[i]);
1699
- if (b) {
1700
- if (i >= h)
1701
- return b;
1702
- var _ = a[i];
1703
- return b * (_ == "desc" ? -1 : 1);
1704
- }
1705
- }
1706
- return t.index - n.index;
1707
- }
1708
- return Ht = r, Ht;
1709
- }
1710
- var Ut, Ti;
1711
- function vl() {
1712
- if (Ti) return Ut;
1713
- Ti = 1;
1714
- var e = tn, r = hn, t = vn(), n = fl(), a = ll(), i = nn(), o = hl(), u = xe(), v = te();
1715
- function h(b, _, I) {
1716
- _.length ? _ = e(_, function(S) {
1717
- return v(S) ? function(g) {
1718
- return r(g, S.length === 1 ? S[0] : S);
1719
- } : S;
1720
- }) : _ = [u];
1721
- var M = -1;
1722
- _ = e(_, i(t));
1723
- var B = n(b, function(S, g, d) {
1724
- var m = e(_, function(C) {
1725
- return C(S);
1726
- });
1727
- return { criteria: m, index: ++M, value: S };
1728
- });
1729
- return a(B, function(S, g) {
1730
- return o(S, g, I);
1731
- });
1732
- }
1733
- return Ut = h, Ut;
1734
- }
1735
- var Gt, Oi;
1736
- function pl() {
1737
- if (Oi) return Gt;
1738
- Oi = 1;
1739
- var e = Vt(), r = Se(), t = on(), n = he();
1740
- function a(i, o, u) {
1741
- if (!n(u))
1742
- return !1;
1743
- var v = typeof o;
1744
- return (v == "number" ? r(u) && t(o, u.length) : v == "string" && o in u) ? e(u[o], i) : !1;
1745
- }
1746
- return Gt = a, Gt;
1747
- }
1748
- var kt, xi;
1749
- function yl() {
1750
- if (xi) return kt;
1751
- xi = 1;
1752
- var e = ji(), r = vl(), t = $i(), n = pl(), a = t(function(i, o) {
1753
- if (i == null)
1754
- return [];
1755
- var u = o.length;
1756
- return u > 1 && n(i, o[0], o[1]) ? o = [] : u > 2 && n(o[0], o[1], o[2]) && (o = [o[0]]), r(i, e(o, 1), []);
1757
- });
1758
- return kt = a, kt;
1759
- }
1760
- var zt, Si;
1761
- function gl() {
1762
- if (Si) return zt;
1763
- Si = 1;
1764
- var e = Mi(), r = he(), t = "Expected a function";
1765
- function n(a, i, o) {
1766
- var u = !0, v = !0;
1767
- if (typeof a != "function")
1768
- throw new TypeError(t);
1769
- return r(o) && (u = "leading" in o ? !!o.leading : u, v = "trailing" in o ? !!o.trailing : v), e(a, i, {
1770
- leading: u,
1771
- maxWait: i,
1772
- trailing: v
1773
- });
1774
- }
1775
- return zt = n, zt;
1776
- }
1777
- var Wt, Ei;
1778
- function bl() {
1779
- if (Ei) return Wt;
1780
- Ei = 1;
1781
- var e = Qi(), r = 0;
1782
- function t(n) {
1783
- var a = ++r;
1784
- return e(n) + a;
1785
- }
1786
- return Wt = t, Wt;
1787
- }
1788
- (function(e, r) {
1789
- (function(t, n) {
1790
- e.exports = n(Mi(), $o(), rl(), nl(), il(), ol(), ul(), cl(), yl(), gl(), bl(), ns);
1791
- })(we, function(t, n, a, i, o, u, v, h, b, _, I, M) {
1792
- return function() {
1793
- var B = { 654: function(g, d, m) {
1794
- var C, y = this && this.__assign || function() {
1795
- return y = Object.assign || function(p) {
1796
- for (var s, c = 1, f = arguments.length; c < f; c++) for (var l in s = arguments[c]) Object.prototype.hasOwnProperty.call(s, l) && (p[l] = s[l]);
1797
- return p;
1798
- }, y.apply(this, arguments);
1799
- }, K = this && this.__createBinding || (Object.create ? function(p, s, c, f) {
1800
- f === void 0 && (f = c);
1801
- var l = Object.getOwnPropertyDescriptor(s, c);
1802
- l && !("get" in l ? !s.__esModule : l.writable || l.configurable) || (l = { enumerable: !0, get: function() {
1803
- return s[c];
1804
- } }), Object.defineProperty(p, f, l);
1805
- } : function(p, s, c, f) {
1806
- f === void 0 && (f = c), p[f] = s[c];
1807
- }), O = this && this.__setModuleDefault || (Object.create ? function(p, s) {
1808
- Object.defineProperty(p, "default", { enumerable: !0, value: s });
1809
- } : function(p, s) {
1810
- p.default = s;
1811
- }), q = this && this.__importStar || function(p) {
1812
- if (p && p.__esModule) return p;
1813
- var s = {};
1814
- if (p != null) for (var c in p) c !== "default" && Object.prototype.hasOwnProperty.call(p, c) && K(s, p, c);
1815
- return O(s, p), s;
1816
- }, D = this && this.__spreadArray || function(p, s, c) {
1817
- if (c || arguments.length === 2) for (var f, l = 0, F = s.length; l < F; l++) !f && l in s || (f || (f = Array.prototype.slice.call(s, 0, l)), f[l] = s[l]);
1818
- return p.concat(f || Array.prototype.slice.call(s));
1819
- }, w = this && this.__importDefault || function(p) {
1820
- return p && p.__esModule ? p : { default: p };
1821
- };
1822
- Object.defineProperty(d, "__esModule", { value: !0 }), d.updateRtl = d.doesFocusableExist = d.getCurrentFocusKey = d.updateAllLayouts = d.resume = d.pause = d.navigateByDirection = d.setFocus = d.setKeyMap = d.destroy = d.setThrottle = d.init = d.SpatialNavigation = d.ROOT_FOCUS_KEY = void 0;
1823
- var x = w(m(150)), z = w(m(117)), H = w(m(747)), T = w(m(23)), U = w(m(842)), J = w(m(682)), ne = w(m(784)), _e = w(m(432)), $e = w(m(67)), Ee = w(m(35)), V = w(m(119)), me = q(m(964)), ue = "left", ce = "right", fe = "up", ae = "down", Ce = "enter", Fe = ((C = {}).left = [37, "ArrowLeft"], C.up = [38, "ArrowUp"], C.right = [39, "ArrowRight"], C.down = [40, "ArrowDown"], C.enter = [13, "Enter"], C);
1824
- d.ROOT_FOCUS_KEY = "SN:ROOT";
1825
- var qe = ["#0FF", "#FF0", "#F0F"], Ke = { leading: !0, trailing: !1 }, Pe = function() {
1826
- function p() {
1827
- this.focusableComponents = {}, this.focusKey = null, this.parentsHavingFocusedChild = [], this.domNodeFocusOptions = {}, this.enabled = !1, this.nativeMode = !1, this.throttle = 0, this.throttleKeypresses = !1, this.useGetBoundingClientRect = !1, this.shouldFocusDOMNode = !1, this.shouldUseNativeEvents = !1, this.writingDirection = V.default.LTR, this.pressedKeys = {}, this.paused = !1, this.keyDownEventListener = null, this.keyUpEventListener = null, this.keyMap = Fe, this.pause = this.pause.bind(this), this.resume = this.resume.bind(this), this.setFocus = this.setFocus.bind(this), this.updateAllLayouts = this.updateAllLayouts.bind(this), this.navigateByDirection = this.navigateByDirection.bind(this), this.init = this.init.bind(this), this.setThrottle = this.setThrottle.bind(this), this.destroy = this.destroy.bind(this), this.setKeyMap = this.setKeyMap.bind(this), this.getCurrentFocusKey = this.getCurrentFocusKey.bind(this), this.doesFocusableExist = this.doesFocusableExist.bind(this), this.updateRtl = this.updateRtl.bind(this), this.setFocusDebounced = (0, x.default)(this.setFocus, 300, { leading: !1, trailing: !0 }), this.debug = !1, this.visualDebugger = null, this.logIndex = 0, this.distanceCalculationMethod = "corners";
1828
- }
1829
- return p.getCutoffCoordinate = function(s, c, f, l, F) {
1830
- var R = s ? l.top : F === V.default.LTR ? l.left : l.right, A = s ? l.bottom : F === V.default.LTR ? l.right : l.left;
1831
- return c ? f ? R : A : f ? A : R;
1832
- }, p.getRefCorners = function(s, c, f) {
1833
- var l = { a: { x: 0, y: 0 }, b: { x: 0, y: 0 } };
1834
- switch (s) {
1835
- case fe:
1836
- var F = c ? f.bottom : f.top;
1837
- l.a = { x: f.left, y: F }, l.b = { x: f.right, y: F };
1838
- break;
1839
- case ae:
1840
- F = c ? f.top : f.bottom, l.a = { x: f.left, y: F }, l.b = { x: f.right, y: F };
1841
- break;
1842
- case ue:
1843
- var R = c ? f.right : f.left;
1844
- l.a = { x: R, y: f.top }, l.b = { x: R, y: f.bottom };
1845
- break;
1846
- case ce:
1847
- R = c ? f.left : f.right, l.a = { x: R, y: f.top }, l.b = { x: R, y: f.bottom };
1848
- }
1849
- return l;
1850
- }, p.isAdjacentSlice = function(s, c, f) {
1851
- var l = s.a, F = s.b, R = c.a, A = c.b, E = f ? "x" : "y", $ = l[E], j = F[E], N = R[E], L = A[E], P = 0.2 * (j - $);
1852
- return Math.max(0, Math.min(j, L) - Math.max($, N)) >= P;
1853
- }, p.getPrimaryAxisDistance = function(s, c, f) {
1854
- var l = s.a, F = c.a, R = f ? "y" : "x";
1855
- return Math.abs(F[R] - l[R]);
1856
- }, p.getSecondaryAxisDistance = function(s, c, f, l, F) {
1857
- if (F) return F(s, c, f, l);
1858
- var R = s.a, A = s.b, E = c.a, $ = c.b, j = f ? "x" : "y", N = R[j], L = A[j], P = E[j], X = $[j];
1859
- if (l === "center") {
1860
- var W = (N + L) / 2, Z = (P + X) / 2;
1861
- return Math.abs(W - Z);
1862
- }
1863
- if (l === "edges") {
1864
- var oe = Math.min(N, L), k = Math.min(P, X), ee = Math.max(N, L), le = Math.max(P, X), ie = Math.abs(oe - k), re = Math.abs(ee - le);
1865
- return Math.min(ie, re);
1866
- }
1867
- var Re = [Math.abs(P - N), Math.abs(P - L), Math.abs(X - N), Math.abs(X - L)];
1868
- return Math.min.apply(Math, Re);
1869
- }, p.prototype.sortSiblingsByPriority = function(s, c, f, l) {
1870
- var F = this, R = f === ae || f === fe, A = p.getRefCorners(f, !1, c);
1871
- return (0, _e.default)(s, function(E) {
1872
- var $ = p.getRefCorners(f, !0, E.layout), j = p.isAdjacentSlice(A, $, R), N = j ? p.getPrimaryAxisDistance : p.getSecondaryAxisDistance, L = j ? p.getSecondaryAxisDistance : p.getPrimaryAxisDistance, P = N(A, $, R, F.distanceCalculationMethod, F.customDistanceCalculationFunction), X = L(A, $, R, F.distanceCalculationMethod, F.customDistanceCalculationFunction), W = 5 * P + X, Z = (W + 1) / (j ? 5 : 1);
1873
- return F.log("smartNavigate", "distance (primary, secondary, total weighted) for ".concat(E.focusKey, " relative to ").concat(l, " is"), P, X, W), F.log("smartNavigate", "priority for ".concat(E.focusKey, " relative to ").concat(l, " is"), Z), F.visualDebugger && (F.visualDebugger.drawPoint($.a.x, $.a.y, "yellow", 6), F.visualDebugger.drawPoint($.b.x, $.b.y, "yellow", 6)), Z;
1874
- });
1875
- }, p.prototype.init = function(s) {
1876
- var c = this, f = s === void 0 ? {} : s, l = f.debug, F = l !== void 0 && l, R = f.visualDebug, A = R !== void 0 && R, E = f.nativeMode, $ = E !== void 0 && E, j = f.throttle, N = j === void 0 ? 0 : j, L = f.throttleKeypresses, P = L !== void 0 && L, X = f.useGetBoundingClientRect, W = X !== void 0 && X, Z = f.shouldFocusDOMNode, oe = Z !== void 0 && Z, k = f.domNodeFocusOptions, ee = k === void 0 ? {} : k, le = f.shouldUseNativeEvents, ie = le !== void 0 && le, re = f.rtl, Re = re !== void 0 && re, Y = f.distanceCalculationMethod, Q = Y === void 0 ? "corners" : Y, pn = f.customDistanceCalculationFunction, rs = pn === void 0 ? void 0 : pn;
1877
- if (!this.enabled && (this.domNodeFocusOptions = ee, this.enabled = !0, this.nativeMode = $, this.throttleKeypresses = P, this.useGetBoundingClientRect = W, this.shouldFocusDOMNode = oe && !$, this.shouldUseNativeEvents = ie, this.writingDirection = Re ? V.default.RTL : V.default.LTR, this.distanceCalculationMethod = Q, this.customDistanceCalculationFunction = rs, this.debug = F, !this.nativeMode && (Number.isInteger(N) && N > 0 && (this.throttle = N), this.bindEventHandlers(), A))) {
1878
- this.visualDebugger = new Ee.default(this.writingDirection);
1879
- var yn = function() {
1880
- requestAnimationFrame(function() {
1881
- c.visualDebugger.clearLayouts(), (0, ne.default)(c.focusableComponents, function(gn, ts) {
1882
- c.visualDebugger.drawLayout(gn.layout, ts, gn.parentFocusKey);
1883
- }), yn();
1884
- });
1885
- };
1886
- yn();
1887
- }
1888
- }, p.prototype.setThrottle = function(s) {
1889
- var c = s === void 0 ? {} : s, f = c.throttle, l = f === void 0 ? 0 : f, F = c.throttleKeypresses, R = F !== void 0 && F;
1890
- this.throttleKeypresses = R, this.nativeMode || (this.unbindEventHandlers(), Number.isInteger(l) && (this.throttle = l), this.bindEventHandlers());
1891
- }, p.prototype.destroy = function() {
1892
- this.enabled && (this.enabled = !1, this.nativeMode = !1, this.throttle = 0, this.throttleKeypresses = !1, this.focusKey = null, this.parentsHavingFocusedChild = [], this.focusableComponents = {}, this.paused = !1, this.keyMap = Fe, this.unbindEventHandlers());
1893
- }, p.prototype.getEventType = function(s) {
1894
- return (0, T.default)(this.getKeyMap(), function(c) {
1895
- return c.includes(s);
1896
- });
1897
- }, p.getKeyCode = function(s) {
1898
- return s.keyCode || s.code || s.key;
1899
- }, p.prototype.bindEventHandlers = function() {
1900
- var s = this;
1901
- typeof window < "u" && window.addEventListener && (this.keyDownEventListener = function(c) {
1902
- if (s.paused !== !0) {
1903
- s.debug && (s.logIndex += 1);
1904
- var f = p.getKeyCode(c), l = s.getEventType(f);
1905
- if (l) {
1906
- s.pressedKeys[l] = s.pressedKeys[l] ? s.pressedKeys[l] + 1 : 1, s.shouldUseNativeEvents || (c.preventDefault(), c.stopPropagation());
1907
- var F = { pressedKeys: s.pressedKeys };
1908
- if (l === Ce && s.focusKey) s.onEnterPress(F);
1909
- else {
1910
- var R = s.onArrowPress(l, F) === !1;
1911
- if (s.visualDebugger && s.visualDebugger.clear(), R) s.log("keyDownEventListener", "default navigation prevented");
1912
- else {
1913
- var A = (0, T.default)(s.getKeyMap(), function(E) {
1914
- return E.includes(f);
1915
- });
1916
- s.smartNavigate(A, null, { event: c });
1917
- }
1918
- }
1919
- }
1920
- }
1921
- }, this.throttle && (this.keyDownEventListenerThrottled = (0, $e.default)(this.keyDownEventListener.bind(this), this.throttle, Ke)), this.keyUpEventListener = function(c) {
1922
- var f = p.getKeyCode(c), l = s.getEventType(f);
1923
- delete s.pressedKeys[l], s.throttle && !s.throttleKeypresses && s.keyDownEventListenerThrottled.cancel(), l === Ce && s.focusKey && s.onEnterRelease(), !s.focusKey || l !== ue && l !== ce && l !== fe && l !== ae || s.onArrowRelease(l);
1924
- }, window.addEventListener("keyup", this.keyUpEventListener), window.addEventListener("keydown", this.throttle ? this.keyDownEventListenerThrottled : this.keyDownEventListener));
1925
- }, p.prototype.unbindEventHandlers = function() {
1926
- if (typeof window < "u" && window.removeEventListener) {
1927
- window.removeEventListener("keyup", this.keyUpEventListener), this.keyUpEventListener = null;
1928
- var s = this.throttle ? this.keyDownEventListenerThrottled : this.keyDownEventListener;
1929
- window.removeEventListener("keydown", s), this.keyDownEventListener = null;
1930
- }
1931
- }, p.prototype.onEnterPress = function(s) {
1932
- var c = this.focusableComponents[this.focusKey];
1933
- c ? c.focusable ? c.onEnterPress && c.onEnterPress(s) : this.log("onEnterPress", "componentNotFocusable") : this.log("onEnterPress", "noComponent");
1934
- }, p.prototype.onEnterRelease = function() {
1935
- var s = this.focusableComponents[this.focusKey];
1936
- s ? s.focusable ? s.onEnterRelease && s.onEnterRelease() : this.log("onEnterRelease", "componentNotFocusable") : this.log("onEnterRelease", "noComponent");
1937
- }, p.prototype.onArrowPress = function(s, c) {
1938
- var f = this.focusableComponents[this.focusKey];
1939
- if (f) return f && f.onArrowPress && f.onArrowPress(s, c);
1940
- this.log("onArrowPress", "noComponent");
1941
- }, p.prototype.onArrowRelease = function(s) {
1942
- var c = this.focusableComponents[this.focusKey];
1943
- c ? c.focusable ? c.onArrowRelease && c.onArrowRelease(s) : this.log("onArrowRelease", "componentNotFocusable") : this.log("onArrowRelease", "noComponent");
1944
- }, p.prototype.navigateByDirection = function(s, c) {
1945
- if (this.paused !== !0 && this.enabled && !this.nativeMode) {
1946
- var f = [ae, fe, ue, ce];
1947
- f.includes(s) ? (this.log("navigateByDirection", "direction", s), this.smartNavigate(s, null, c)) : this.log("navigateByDirection", "Invalid direction. You passed: `".concat(s, "`, but you can use only these: "), f);
1948
- }
1949
- }, p.prototype.smartNavigate = function(s, c, f) {
1950
- var l = this;
1951
- if (!this.nativeMode) {
1952
- var F = s === ae || s === fe, R = s === ae || (this.writingDirection === V.default.LTR ? s === ce : s === ue);
1953
- this.log("smartNavigate", "direction", s), this.log("smartNavigate", "fromParentFocusKey", c), this.log("smartNavigate", "this.focusKey", this.focusKey), c || (0, ne.default)(this.focusableComponents, function(k) {
1954
- k.layoutUpdated = !1;
1955
- });
1956
- var A = this.focusableComponents[c || this.focusKey];
1957
- if (c || A) {
1958
- if (this.log("smartNavigate", "currentComponent", A ? A.focusKey : void 0, A ? A.node : void 0, A), A) {
1959
- this.updateLayout(A.focusKey);
1960
- var E = A.parentFocusKey, $ = A.focusKey, j = A.layout, N = p.getCutoffCoordinate(F, R, !1, j, this.writingDirection), L = (0, H.default)(this.focusableComponents, function(k) {
1961
- if (k.parentFocusKey === E && k.focusable) {
1962
- l.updateLayout(k.focusKey);
1963
- var ee = p.getCutoffCoordinate(F, R, !0, k.layout, l.writingDirection);
1964
- return F || l.writingDirection === V.default.LTR ? R ? ee >= N : ee <= N : R ? ee <= N : ee >= N;
1965
- }
1966
- return !1;
1967
- });
1968
- if (this.debug && (this.log("smartNavigate", "currentCutoffCoordinate", N), this.log("smartNavigate", "siblings", "".concat(L.length, " elements:"), L.map(function(k) {
1969
- return k.focusKey;
1970
- }).join(", "), L.map(function(k) {
1971
- return k.node;
1972
- }), L.map(function(k) {
1973
- return k;
1974
- }))), this.visualDebugger) {
1975
- var P = p.getRefCorners(s, !1, j);
1976
- this.visualDebugger.drawPoint(P.a.x, P.a.y), this.visualDebugger.drawPoint(P.b.x, P.b.y);
1977
- }
1978
- var X = this.sortSiblingsByPriority(L, j, s, $), W = (0, U.default)(X);
1979
- if (this.log("smartNavigate", "nextComponent", W ? W.focusKey : void 0, W ? W.node : void 0, W), W) this.setFocus(W.focusKey, f);
1980
- else {
1981
- var Z = this.focusableComponents[E], oe = Z != null && Z.isFocusBoundary ? Z.focusBoundaryDirections || [s] : [];
1982
- Z && oe.includes(s) || this.smartNavigate(s, E, f);
1983
- }
1984
- }
1985
- } else this.setFocus(this.getForcedFocusKey());
1986
- }
1987
- }, p.prototype.saveLastFocusedChildKey = function(s, c) {
1988
- s && (this.log("saveLastFocusedChildKey", "".concat(s.focusKey, " lastFocusedChildKey set"), c), s.lastFocusedChildKey = c);
1989
- }, p.prototype.log = function(s, c) {
1990
- for (var f = [], l = 2; l < arguments.length; l++) f[l - 2] = arguments[l];
1991
- this.debug && console.log.apply(console, D(["%c".concat(s, "%c").concat(c), "background: ".concat(qe[this.logIndex % qe.length], "; color: black; padding: 1px 5px;"), "background: #333; color: #BADA55; padding: 1px 5px;"], f, !1));
1992
- }, p.prototype.getCurrentFocusKey = function() {
1993
- return this.focusKey;
1994
- }, p.prototype.getForcedFocusKey = function() {
1995
- var s, c = (0, H.default)(this.focusableComponents, function(l) {
1996
- return l.focusable && l.forceFocus;
1997
- }), f = this.sortSiblingsByPriority(c, { x: 0, y: 0, width: 0, height: 0, left: 0, top: 0, right: 0, bottom: 0, node: null }, "down", d.ROOT_FOCUS_KEY);
1998
- return (s = (0, U.default)(f)) === null || s === void 0 ? void 0 : s.focusKey;
1999
- }, p.prototype.getNextFocusKey = function(s) {
2000
- var c = this, f = this.focusableComponents[s];
2001
- if (!f || this.nativeMode) return s;
2002
- var l = (0, H.default)(this.focusableComponents, function(E) {
2003
- return E.parentFocusKey === s && E.focusable;
2004
- });
2005
- if (l.length > 0) {
2006
- var F = f.lastFocusedChildKey, R = f.preferredChildFocusKey;
2007
- if (this.log("getNextFocusKey", "lastFocusedChildKey is", F), this.log("getNextFocusKey", "preferredChildFocusKey is", R), F && f.saveLastFocusedChild && this.isParticipatingFocusableComponent(F)) return this.log("getNextFocusKey", "lastFocusedChildKey will be focused", F), this.getNextFocusKey(F);
2008
- if (R && this.isParticipatingFocusableComponent(R)) return this.log("getNextFocusKey", "preferredChildFocusKey will be focused", R), this.getNextFocusKey(R);
2009
- l.forEach(function(E) {
2010
- return c.updateLayout(E.focusKey);
2011
- });
2012
- var A = function(E, $) {
2013
- var j = $ === V.default.LTR ? function(L) {
2014
- var P = L.layout;
2015
- return Math.abs(P.left) + Math.abs(P.top);
2016
- } : function(L) {
2017
- var P = L.layout;
2018
- return Math.abs(window.innerWidth - P.right) + Math.abs(P.top);
2019
- }, N = (0, _e.default)(E, j);
2020
- return (0, U.default)(N);
2021
- }(l, this.writingDirection).focusKey;
2022
- return this.log("getNextFocusKey", "childKey will be focused", A), this.getNextFocusKey(A);
2023
- }
2024
- return this.log("getNextFocusKey", "targetFocusKey", s), s;
2025
- }, p.prototype.addFocusable = function(s) {
2026
- var c = s.focusKey, f = s.node, l = s.parentFocusKey, F = s.onEnterPress, R = s.onEnterRelease, A = s.onArrowPress, E = s.onArrowRelease, $ = s.onFocus, j = s.onBlur, N = s.saveLastFocusedChild, L = s.trackChildren, P = s.onUpdateFocus, X = s.onUpdateHasFocusedChild, W = s.preferredChildFocusKey, Z = s.autoRestoreFocus, oe = s.forceFocus, k = s.focusable, ee = s.isFocusBoundary, le = s.focusBoundaryDirections;
2027
- if (this.focusableComponents[c] = { focusKey: c, node: f, parentFocusKey: l, onEnterPress: F, onEnterRelease: R, onArrowPress: A, onArrowRelease: E, onFocus: $, onBlur: j, onUpdateFocus: P, onUpdateHasFocusedChild: X, saveLastFocusedChild: N, trackChildren: L, preferredChildFocusKey: W, focusable: k, isFocusBoundary: ee, focusBoundaryDirections: le, autoRestoreFocus: Z, forceFocus: oe, lastFocusedChildKey: null, layout: { x: 0, y: 0, width: 0, height: 0, left: 0, top: 0, right: 0, bottom: 0, node: f }, layoutUpdated: !1 }, f || console.warn('Component added without a node reference. This will result in its coordinates being empty and may cause lost focus. Check the "ref" passed to "useFocusable": ', this.focusableComponents[c]), !this.nativeMode) {
2028
- this.updateLayout(c), this.log("addFocusable", "Component added: ", this.focusableComponents[c]), c === this.focusKey && this.setFocus(W || c);
2029
- for (var ie = this.focusableComponents[this.focusKey]; ie; ) {
2030
- if (ie.parentFocusKey === c) {
2031
- this.updateParentsHasFocusedChild(this.focusKey, {}), this.updateParentsLastFocusedChild(this.focusKey);
2032
- break;
2033
- }
2034
- ie = this.focusableComponents[ie.parentFocusKey];
2035
- }
2036
- }
2037
- }, p.prototype.removeFocusable = function(s) {
2038
- var c = s.focusKey, f = this.focusableComponents[c];
2039
- if (f) {
2040
- var l = f.parentFocusKey;
2041
- (0, f.onUpdateFocus)(!1), this.log("removeFocusable", "Component removed: ", f), delete this.focusableComponents[c];
2042
- var F = this.parentsHavingFocusedChild.includes(c);
2043
- this.parentsHavingFocusedChild = this.parentsHavingFocusedChild.filter(function(E) {
2044
- return E !== c;
2045
- });
2046
- var R = this.focusableComponents[l], A = c === this.focusKey;
2047
- if (R && R.lastFocusedChildKey === c && (R.lastFocusedChildKey = null), this.nativeMode) return;
2048
- (A || F) && R && R.autoRestoreFocus && (this.log("removeFocusable", "Component removed: ", A ? "Leaf component" : "Container component", "Auto restoring focus to: ", l), this.setFocusDebounced(l));
2049
- }
2050
- }, p.prototype.getNodeLayoutByFocusKey = function(s) {
2051
- var c = this.focusableComponents[s];
2052
- return c ? (this.updateLayout(c.focusKey), c.layout) : null;
2053
- }, p.prototype.setCurrentFocusedKey = function(s, c) {
2054
- var f, l, F, R;
2055
- if (this.isFocusableComponent(this.focusKey) && s !== this.focusKey) {
2056
- var A = this.focusableComponents[this.focusKey];
2057
- A.onUpdateFocus(!1), A.onBlur(this.getNodeLayoutByFocusKey(this.focusKey), c), (l = (f = A.node) === null || f === void 0 ? void 0 : f.removeAttribute) === null || l === void 0 || l.call(f, "data-focused"), this.log("setCurrentFocusedKey", "onBlur", A);
2058
- }
2059
- if (this.focusKey = s, this.isFocusableComponent(this.focusKey)) {
2060
- var E = this.focusableComponents[this.focusKey];
2061
- this.shouldFocusDOMNode && E.node && E.node.focus(this.domNodeFocusOptions), (R = (F = E.node) === null || F === void 0 ? void 0 : F.setAttribute) === null || R === void 0 || R.call(F, "data-focused", "true"), E.onUpdateFocus(!0), E.onFocus(this.getNodeLayoutByFocusKey(this.focusKey), c), this.log("setCurrentFocusedKey", "onFocus", E);
2062
- }
2063
- }, p.prototype.updateParentsHasFocusedChild = function(s, c) {
2064
- for (var f = this, l = [], F = this.focusableComponents[s]; F; ) {
2065
- var R = F.parentFocusKey, A = this.focusableComponents[R];
2066
- if (A) {
2067
- var E = A.focusKey;
2068
- l.push(E);
2069
- }
2070
- F = A;
2071
- }
2072
- var $ = (0, z.default)(this.parentsHavingFocusedChild, l), j = (0, z.default)(l, this.parentsHavingFocusedChild);
2073
- (0, J.default)($, function(N) {
2074
- var L = f.focusableComponents[N];
2075
- L && L.trackChildren && L.onUpdateHasFocusedChild(!1), f.onIntermediateNodeBecameBlurred(N, c);
2076
- }), (0, J.default)(j, function(N) {
2077
- var L = f.focusableComponents[N];
2078
- L && L.trackChildren && L.onUpdateHasFocusedChild(!0), f.onIntermediateNodeBecameFocused(N, c);
2079
- }), this.parentsHavingFocusedChild = l;
2080
- }, p.prototype.updateParentsLastFocusedChild = function(s) {
2081
- for (var c = this.focusableComponents[s]; c; ) {
2082
- var f = c.parentFocusKey, l = this.focusableComponents[f];
2083
- l && this.saveLastFocusedChildKey(l, c.focusKey), c = l;
2084
- }
2085
- }, p.prototype.getKeyMap = function() {
2086
- return this.keyMap;
2087
- }, p.prototype.setKeyMap = function(s) {
2088
- this.keyMap = y(y({}, this.getKeyMap()), function(c) {
2089
- var f = {};
2090
- return Object.entries(c).forEach(function(l) {
2091
- var F = l[0], R = l[1];
2092
- f[F] = Array.isArray(R) ? R : [R];
2093
- }), f;
2094
- }(s));
2095
- }, p.prototype.isFocusableComponent = function(s) {
2096
- return !!this.focusableComponents[s];
2097
- }, p.prototype.isParticipatingFocusableComponent = function(s) {
2098
- return this.isFocusableComponent(s) && this.focusableComponents[s].focusable;
2099
- }, p.prototype.onIntermediateNodeBecameFocused = function(s, c) {
2100
- this.isParticipatingFocusableComponent(s) && this.focusableComponents[s].onFocus(this.getNodeLayoutByFocusKey(s), c);
2101
- }, p.prototype.onIntermediateNodeBecameBlurred = function(s, c) {
2102
- this.isParticipatingFocusableComponent(s) && this.focusableComponents[s].onBlur(this.getNodeLayoutByFocusKey(s), c);
2103
- }, p.prototype.pause = function() {
2104
- this.paused = !0;
2105
- }, p.prototype.resume = function() {
2106
- this.paused = !1;
2107
- }, p.prototype.setFocus = function(s, c) {
2108
- if (c === void 0 && (c = {}), this.setFocusDebounced.cancel(), this.enabled) {
2109
- this.log("setFocus", "focusKey", s), s && s !== d.ROOT_FOCUS_KEY || (s = this.getForcedFocusKey());
2110
- var f = this.getNextFocusKey(s);
2111
- this.log("setFocus", "newFocusKey", f), this.setCurrentFocusedKey(f, c), this.updateParentsHasFocusedChild(f, c), this.updateParentsLastFocusedChild(f);
2112
- }
2113
- }, p.prototype.updateAllLayouts = function() {
2114
- var s = this;
2115
- this.enabled && !this.nativeMode && (0, ne.default)(this.focusableComponents, function(c, f) {
2116
- s.updateLayout(f);
2117
- });
2118
- }, p.prototype.updateLayout = function(s) {
2119
- var c = this.focusableComponents[s];
2120
- if (c && !this.nativeMode && !c.layoutUpdated) {
2121
- var f = c.node, l = this.useGetBoundingClientRect ? (0, me.getBoundingClientRect)(f) : (0, me.default)(f);
2122
- c.layout = y(y({}, l), { node: f });
2123
- }
2124
- }, p.prototype.updateFocusable = function(s, c) {
2125
- var f = c.node, l = c.preferredChildFocusKey, F = c.focusable, R = c.isFocusBoundary, A = c.focusBoundaryDirections, E = c.onEnterPress, $ = c.onEnterRelease, j = c.onArrowPress, N = c.onFocus, L = c.onBlur;
2126
- if (!this.nativeMode) {
2127
- var P = this.focusableComponents[s];
2128
- P && (P.preferredChildFocusKey = l, P.focusable = F, P.isFocusBoundary = R, P.focusBoundaryDirections = A, P.onEnterPress = E, P.onEnterRelease = $, P.onArrowPress = j, P.onFocus = N, P.onBlur = L, f && (P.node = f));
2129
- }
2130
- }, p.prototype.isNativeMode = function() {
2131
- return this.nativeMode;
2132
- }, p.prototype.doesFocusableExist = function(s) {
2133
- return !!this.focusableComponents[s];
2134
- }, p.prototype.updateRtl = function(s) {
2135
- this.writingDirection = s ? V.default.RTL : V.default.LTR;
2136
- }, p;
2137
- }();
2138
- d.SpatialNavigation = new Pe(), d.init = d.SpatialNavigation.init, d.setThrottle = d.SpatialNavigation.setThrottle, d.destroy = d.SpatialNavigation.destroy, d.setKeyMap = d.SpatialNavigation.setKeyMap, d.setFocus = d.SpatialNavigation.setFocus, d.navigateByDirection = d.SpatialNavigation.navigateByDirection, d.pause = d.SpatialNavigation.pause, d.resume = d.SpatialNavigation.resume, d.updateAllLayouts = d.SpatialNavigation.updateAllLayouts, d.getCurrentFocusKey = d.SpatialNavigation.getCurrentFocusKey, d.doesFocusableExist = d.SpatialNavigation.doesFocusableExist, d.updateRtl = d.SpatialNavigation.updateRtl;
2139
- }, 35: function(g, d, m) {
2140
- var C = this && this.__importDefault || function(w) {
2141
- return w && w.__esModule ? w : { default: w };
2142
- };
2143
- Object.defineProperty(d, "__esModule", { value: !0 });
2144
- var y = C(m(119)), K = typeof window < "u" && window.document, O = K ? window.innerWidth : 0, q = K ? window.innerHeight : 0, D = function() {
2145
- function w(x) {
2146
- K && (this.debugCtx = w.createCanvas("sn-debug", "1010", x), this.layoutsCtx = w.createCanvas("sn-layouts", "1000", x), this.writingDirection = x);
2147
- }
2148
- return w.createCanvas = function(x, z, H) {
2149
- var T = document.querySelector("#".concat(x)) || document.createElement("canvas");
2150
- T.setAttribute("id", x), T.setAttribute("dir", H === y.default.LTR ? "ltr" : "rtl");
2151
- var U = T.getContext("2d");
2152
- return T.style.zIndex = z, T.style.position = "fixed", T.style.top = "0", T.style.left = "0", document.body.appendChild(T), T.width = O, T.height = q, U;
2153
- }, w.prototype.clear = function() {
2154
- K && this.debugCtx.clearRect(0, 0, O, q);
2155
- }, w.prototype.clearLayouts = function() {
2156
- K && this.layoutsCtx.clearRect(0, 0, O, q);
2157
- }, w.prototype.drawLayout = function(x, z, H) {
2158
- if (K) {
2159
- this.layoutsCtx.strokeStyle = "green", this.layoutsCtx.strokeRect(x.left, x.top, x.width, x.height), this.layoutsCtx.font = "8px monospace", this.layoutsCtx.fillStyle = "red";
2160
- var T = this.writingDirection === y.default.LTR ? "left" : "right", U = x[T];
2161
- this.layoutsCtx.fillText(z, U, x.top + 10), this.layoutsCtx.fillText(H, U, x.top + 25), this.layoutsCtx.fillText("".concat(T, ": ").concat(U), U, x.top + 40), this.layoutsCtx.fillText("top: ".concat(x.top), U, x.top + 55);
2162
- }
2163
- }, w.prototype.drawPoint = function(x, z, H, T) {
2164
- H === void 0 && (H = "blue"), T === void 0 && (T = 10), K && (this.debugCtx.strokeStyle = H, this.debugCtx.lineWidth = 3, this.debugCtx.strokeRect(x - T / 2, z - T / 2, T, T));
2165
- }, w;
2166
- }();
2167
- d.default = D;
2168
- }, 119: function(g, d) {
2169
- var m;
2170
- Object.defineProperty(d, "__esModule", { value: !0 }), function(C) {
2171
- C[C.LTR = 0] = "LTR", C[C.RTL = 1] = "RTL";
2172
- }(m || (m = {})), d.default = m;
2173
- }, 607: function(g, d, m) {
2174
- var C = this && this.__createBinding || (Object.create ? function(K, O, q, D) {
2175
- D === void 0 && (D = q);
2176
- var w = Object.getOwnPropertyDescriptor(O, q);
2177
- w && !("get" in w ? !O.__esModule : w.writable || w.configurable) || (w = { enumerable: !0, get: function() {
2178
- return O[q];
2179
- } }), Object.defineProperty(K, D, w);
2180
- } : function(K, O, q, D) {
2181
- D === void 0 && (D = q), K[D] = O[q];
2182
- }), y = this && this.__exportStar || function(K, O) {
2183
- for (var q in K) q === "default" || Object.prototype.hasOwnProperty.call(O, q) || C(O, K, q);
2184
- };
2185
- Object.defineProperty(d, "__esModule", { value: !0 }), y(m(79), d), y(m(445), d), y(m(654), d);
2186
- }, 964: function(g, d) {
2187
- Object.defineProperty(d, "__esModule", { value: !0 }), d.getBoundingClientRect = void 0;
2188
- var m = function(C) {
2189
- for (var y = C.offsetParent, K = C.offsetHeight, O = C.offsetWidth, q = C.offsetLeft, D = C.offsetTop; y && y.nodeType === 1; ) q += y.offsetLeft - y.scrollLeft, D += y.offsetTop - y.scrollTop, y = y.offsetParent;
2190
- return { height: K, left: q, top: D, width: O };
2191
- };
2192
- d.default = function(C) {
2193
- var y = C && C.parentElement;
2194
- if (C && y) {
2195
- var K = m(y), O = m(C), q = O.height, D = O.left, w = O.top, x = O.width;
2196
- return { x: D - K.left, y: w - K.top, width: x, height: q, left: D, top: w, get right() {
2197
- return this.left + this.width;
2198
- }, get bottom() {
2199
- return this.top + this.height;
2200
- } };
2201
- }
2202
- return { x: 0, y: 0, width: 0, height: 0, left: 0, top: 0, right: 0, bottom: 0 };
2203
- }, d.getBoundingClientRect = function(C) {
2204
- if (C && C.getBoundingClientRect) {
2205
- var y = C.getBoundingClientRect();
2206
- return { x: y.x, y: y.y, width: y.width, height: y.height, left: y.left, top: y.top, get right() {
2207
- return this.left + this.width;
2208
- }, get bottom() {
2209
- return this.top + this.height;
2210
- } };
2211
- }
2212
- return { x: 0, y: 0, width: 0, height: 0, left: 0, top: 0, right: 0, bottom: 0 };
2213
- };
2214
- }, 445: function(g, d, m) {
2215
- Object.defineProperty(d, "__esModule", { value: !0 }), d.useFocusContext = d.FocusContext = void 0;
2216
- var C = m(156), y = m(654);
2217
- d.FocusContext = (0, C.createContext)(y.ROOT_FOCUS_KEY), d.FocusContext.displayName = "FocusContext", d.useFocusContext = function() {
2218
- return (0, C.useContext)(d.FocusContext);
2219
- };
2220
- }, 79: function(g, d, m) {
2221
- var C = this && this.__importDefault || function(w) {
2222
- return w && w.__esModule ? w : { default: w };
2223
- };
2224
- Object.defineProperty(d, "__esModule", { value: !0 }), d.useFocusable = void 0;
2225
- var y = m(156), K = C(m(604)), O = C(m(461)), q = m(654), D = m(445);
2226
- d.useFocusable = function(w) {
2227
- var x = w === void 0 ? {} : w, z = x.focusable, H = z === void 0 || z, T = x.saveLastFocusedChild, U = T === void 0 || T, J = x.trackChildren, ne = J !== void 0 && J, _e = x.autoRestoreFocus, $e = _e === void 0 || _e, Ee = x.forceFocus, V = Ee !== void 0 && Ee, me = x.isFocusBoundary, ue = me !== void 0 && me, ce = x.focusBoundaryDirections, fe = x.focusKey, ae = x.preferredChildFocusKey, Ce = x.onEnterPress, Fe = Ce === void 0 ? K.default : Ce, qe = x.onEnterRelease, Ke = qe === void 0 ? K.default : qe, Pe = x.onArrowPress, p = Pe === void 0 ? function() {
2228
- return !0;
2229
- } : Pe, s = x.onArrowRelease, c = s === void 0 ? K.default : s, f = x.onFocus, l = f === void 0 ? K.default : f, F = x.onBlur, R = F === void 0 ? K.default : F, A = x.extraProps, E = (0, y.useCallback)(function(Y) {
2230
- Fe(A, Y);
2231
- }, [Fe, A]), $ = (0, y.useCallback)(function() {
2232
- Ke(A);
2233
- }, [Ke, A]), j = (0, y.useCallback)(function(Y, Q) {
2234
- return p(Y, A, Q);
2235
- }, [A, p]), N = (0, y.useCallback)(function(Y) {
2236
- c(Y, A);
2237
- }, [c, A]), L = (0, y.useCallback)(function(Y, Q) {
2238
- l(Y, A, Q);
2239
- }, [A, l]), P = (0, y.useCallback)(function(Y, Q) {
2240
- R(Y, A, Q);
2241
- }, [A, R]), X = (0, y.useRef)(null), W = (0, y.useState)(!1), Z = W[0], oe = W[1], k = (0, y.useState)(!1), ee = k[0], le = k[1], ie = (0, D.useFocusContext)(), re = (0, y.useMemo)(function() {
2242
- return fe || (0, O.default)("sn:focusable-item-");
2243
- }, [fe]), Re = (0, y.useCallback)(function(Y) {
2244
- Y === void 0 && (Y = {}), q.SpatialNavigation.setFocus(re, Y);
2245
- }, [re]);
2246
- return (0, y.useEffect)(function() {
2247
- var Y = X.current;
2248
- return q.SpatialNavigation.addFocusable({ focusKey: re, node: Y, parentFocusKey: ie, preferredChildFocusKey: ae, onEnterPress: E, onEnterRelease: $, onArrowPress: j, onArrowRelease: N, onFocus: L, onBlur: P, onUpdateFocus: function(Q) {
2249
- return Q === void 0 && (Q = !1), oe(Q);
2250
- }, onUpdateHasFocusedChild: function(Q) {
2251
- return Q === void 0 && (Q = !1), le(Q);
2252
- }, saveLastFocusedChild: U, trackChildren: ne, isFocusBoundary: ue, focusBoundaryDirections: ce, autoRestoreFocus: $e, forceFocus: V, focusable: H }), function() {
2253
- q.SpatialNavigation.removeFocusable({ focusKey: re });
2254
- };
2255
- }, []), (0, y.useEffect)(function() {
2256
- var Y = X.current;
2257
- q.SpatialNavigation.updateFocusable(re, { node: Y, preferredChildFocusKey: ae, focusable: H, isFocusBoundary: ue, focusBoundaryDirections: ce, onEnterPress: E, onEnterRelease: $, onArrowPress: j, onArrowRelease: N, onFocus: L, onBlur: P });
2258
- }, [re, ae, H, ue, ce, E, $, j, N, L, P]), { ref: X, focusSelf: Re, focused: Z, hasFocusedChild: ee, focusKey: re };
2259
- };
2260
- }, 150: function(g) {
2261
- g.exports = t;
2262
- }, 117: function(g) {
2263
- g.exports = n;
2264
- }, 747: function(g) {
2265
- g.exports = a;
2266
- }, 23: function(g) {
2267
- g.exports = i;
2268
- }, 842: function(g) {
2269
- g.exports = o;
2270
- }, 682: function(g) {
2271
- g.exports = u;
2272
- }, 784: function(g) {
2273
- g.exports = v;
2274
- }, 604: function(g) {
2275
- g.exports = h;
2276
- }, 432: function(g) {
2277
- g.exports = b;
2278
- }, 67: function(g) {
2279
- g.exports = _;
2280
- }, 461: function(g) {
2281
- g.exports = I;
2282
- }, 156: function(g) {
2283
- g.exports = M;
2284
- } }, S = {};
2285
- return function g(d) {
2286
- var m = S[d];
2287
- if (m !== void 0) return m.exports;
2288
- var C = S[d] = { exports: {} };
2289
- return B[d].call(C.exports, C, C.exports, g), C.exports;
2290
- }(607);
2291
- }();
17
+ return h(() => {
18
+ r && e.focusSelf();
19
+ }, []), /* @__PURE__ */ n(o, { ...l, ...e, "data-is-with-focus": "true" });
20
+ };
21
+ function B(i, o) {
22
+ return ({ webos: t, options: s, ...r }) => t ? /* @__PURE__ */ n(v, { Component: i, options: o, customOptions: s, ...r }) : /* @__PURE__ */ n(i, { ...r });
23
+ }
24
+ const w = [10, 10, 1, 0], I = /* @__PURE__ */ f("div")({
25
+ name: "RemainingTimeCircle",
26
+ class: "r165427",
27
+ propsAsIs: !1
28
+ }), S = /* @__PURE__ */ f("div")({
29
+ name: "RemainingTime",
30
+ class: "r17garf3",
31
+ propsAsIs: !1
32
+ }), b = y, c = O, u = E, F = ({
33
+ className: i,
34
+ duration: o = 30,
35
+ onTimerExpired: t,
36
+ isPlaying: s = !0
37
+ }) => /* @__PURE__ */ n(g, {
38
+ isPlaying: s,
39
+ strokeWidth: 0,
40
+ duration: o,
41
+ colors: c,
42
+ size: 24,
43
+ onComplete: t,
44
+ children: ({
45
+ remainingTime: r
46
+ }) => /* @__PURE__ */ n(S, {
47
+ className: i,
48
+ children: o === 0 ? 0 : r
49
+ })
50
+ }), j = ({
51
+ isPlaying: i = !0,
52
+ duration: o = 30,
53
+ onTimerExpired: t
54
+ }) => {
55
+ const [s, r] = d(o > 10 ? b : c), [l, e] = d(2);
56
+ h(() => {
57
+ o === 0 && (e(0), r(u));
58
+ }, [o]);
59
+ const a = ({
60
+ remainingTime: m
61
+ }) => /* @__PURE__ */ n(I, {
62
+ children: o === 0 ? 0 : m
63
+ }), C = p(() => {
64
+ t == null || t(), r(u);
65
+ }, [t, r]), T = p((m) => {
66
+ m === 10 && r(c);
67
+ }, [r]);
68
+ return /* @__PURE__ */ n(g, {
69
+ isPlaying: i,
70
+ duration: o,
71
+ colors: k,
72
+ colorsTime: w,
73
+ size: 32,
74
+ strokeWidth: l,
75
+ trailStrokeWidth: 2,
76
+ trailColor: s,
77
+ onComplete: C,
78
+ onUpdate: T,
79
+ children: a
2292
80
  });
2293
- })(Ki);
2294
- var Fl = Ki.exports;
81
+ }, G = ({ height: i = "37px", width: o = "37px" }) => /* @__PURE__ */ n("div", { style: { height: i, width: o }, children: /* @__PURE__ */ n(P, { name: "loader" }) });
2295
82
  export {
2296
- Cl as a,
2297
- we as c,
2298
- Fl as d,
2299
- ml as g
83
+ F as G,
84
+ j as L,
85
+ B as O,
86
+ G as d
2300
87
  };