@reown/appkit-cdn 1.1.0 → 1.1.2

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 (37) hide show
  1. package/dist/appkit.js +11430 -0
  2. package/dist/appkit.js.map +1 -0
  3. package/package.json +11 -8
  4. package/dist/W3MFrameProviderSingleton--HSg3nEz.js +0 -66075
  5. package/dist/W3MFrameProviderSingleton-SRLqDWgO.cjs +0 -11301
  6. package/dist/ethers.cjs +0 -1
  7. package/dist/ethers.js +0 -17811
  8. package/dist/hooks.module-B_N3JvEN.js +0 -763
  9. package/dist/hooks.module-CmpdbiRp.cjs +0 -1
  10. package/dist/index-2d-aRmQF.js +0 -250
  11. package/dist/index-3Tles8GF.js +0 -2055
  12. package/dist/index-3jinrfKR.cjs +0 -1
  13. package/dist/index-BBwc05vi.cjs +0 -64
  14. package/dist/index-BmU807V9.cjs +0 -7
  15. package/dist/index-CDAn9JfZ.cjs +0 -47
  16. package/dist/index-CIzqgU5q.cjs +0 -1
  17. package/dist/index-CJq05jyL.js +0 -129
  18. package/dist/index-CO1X8Cxc.js +0 -254
  19. package/dist/index-CQ4-w5mp.cjs +0 -1
  20. package/dist/index-DDwvGjhD.js +0 -161
  21. package/dist/index-DSzXjBUF.js +0 -3175
  22. package/dist/index-Dlv7g3Jh.js +0 -9034
  23. package/dist/index-_Sw9VWRf.js +0 -930
  24. package/dist/index-sfhFJZJt.cjs +0 -1
  25. package/dist/index-v7RnFZTP.cjs +0 -41
  26. package/dist/index.es-CXs4mA1g.cjs +0 -43
  27. package/dist/index.es-TVTbcEaP.js +0 -11685
  28. package/dist/metamask-sdk-CaVruToV.js +0 -40484
  29. package/dist/metamask-sdk-CsUP8MhX.cjs +0 -217
  30. package/dist/native-BiFy-msx.js +0 -16
  31. package/dist/native-gXKXtBE3.cjs +0 -1
  32. package/dist/w3m-modal-Dc1peoIh.cjs +0 -150
  33. package/dist/w3m-modal-DwtACkc9.js +0 -276
  34. package/dist/wagmi-GgXheXd8.cjs +0 -46
  35. package/dist/wagmi-IogORaa7.js +0 -18186
  36. package/dist/wagmi.cjs +0 -1
  37. package/dist/wagmi.js +0 -9
@@ -1,763 +0,0 @@
1
- import { B as D, bi as Ze, bg as Yt } from "./W3MFrameProviderSingleton--HSg3nEz.js";
2
- const { Transform: xn } = Ze;
3
- var $n = (t) => class tn extends xn {
4
- constructor(n, _, o, i, c) {
5
- super(c), this._rate = n, this._capacity = _, this._delimitedSuffix = o, this._hashBitLength = i, this._options = c, this._state = new t(), this._state.initialize(n, _), this._finalized = !1;
6
- }
7
- _transform(n, _, o) {
8
- let i = null;
9
- try {
10
- this.update(n, _);
11
- } catch (c) {
12
- i = c;
13
- }
14
- o(i);
15
- }
16
- _flush(n) {
17
- let _ = null;
18
- try {
19
- this.push(this.digest());
20
- } catch (o) {
21
- _ = o;
22
- }
23
- n(_);
24
- }
25
- update(n, _) {
26
- if (!D.isBuffer(n) && typeof n != "string")
27
- throw new TypeError("Data must be a string or a buffer");
28
- if (this._finalized)
29
- throw new Error("Digest already called");
30
- return D.isBuffer(n) || (n = D.from(n, _)), this._state.absorb(n), this;
31
- }
32
- digest(n) {
33
- if (this._finalized)
34
- throw new Error("Digest already called");
35
- this._finalized = !0, this._delimitedSuffix && this._state.absorbLastFewBits(this._delimitedSuffix);
36
- let _ = this._state.squeeze(this._hashBitLength / 8);
37
- return n !== void 0 && (_ = _.toString(n)), this._resetState(), _;
38
- }
39
- // remove result from memory
40
- _resetState() {
41
- return this._state.initialize(this._rate, this._capacity), this;
42
- }
43
- // because sometimes we need hash right now and little later
44
- _clone() {
45
- const n = new tn(this._rate, this._capacity, this._delimitedSuffix, this._hashBitLength, this._options);
46
- return this._state.copy(n._state), n._finalized = this._finalized, n;
47
- }
48
- };
49
- const { Transform: zn } = Ze;
50
- var Cn = (t) => class en extends zn {
51
- constructor(n, _, o, i) {
52
- super(i), this._rate = n, this._capacity = _, this._delimitedSuffix = o, this._options = i, this._state = new t(), this._state.initialize(n, _), this._finalized = !1;
53
- }
54
- _transform(n, _, o) {
55
- let i = null;
56
- try {
57
- this.update(n, _);
58
- } catch (c) {
59
- i = c;
60
- }
61
- o(i);
62
- }
63
- _flush() {
64
- }
65
- _read(n) {
66
- this.push(this.squeeze(n));
67
- }
68
- update(n, _) {
69
- if (!D.isBuffer(n) && typeof n != "string")
70
- throw new TypeError("Data must be a string or a buffer");
71
- if (this._finalized)
72
- throw new Error("Squeeze already called");
73
- return D.isBuffer(n) || (n = D.from(n, _)), this._state.absorb(n), this;
74
- }
75
- squeeze(n, _) {
76
- this._finalized || (this._finalized = !0, this._state.absorbLastFewBits(this._delimitedSuffix));
77
- let o = this._state.squeeze(n);
78
- return _ !== void 0 && (o = o.toString(_)), o;
79
- }
80
- _resetState() {
81
- return this._state.initialize(this._rate, this._capacity), this;
82
- }
83
- _clone() {
84
- const n = new en(this._rate, this._capacity, this._delimitedSuffix, this._options);
85
- return this._state.copy(n._state), n._finalized = this._finalized, n;
86
- }
87
- };
88
- const Pn = $n, En = Cn;
89
- var Hn = function(t) {
90
- const e = Pn(t), n = En(t);
91
- return function(_, o) {
92
- switch (typeof _ == "string" ? _.toLowerCase() : _) {
93
- case "keccak224":
94
- return new e(1152, 448, null, 224, o);
95
- case "keccak256":
96
- return new e(1088, 512, null, 256, o);
97
- case "keccak384":
98
- return new e(832, 768, null, 384, o);
99
- case "keccak512":
100
- return new e(576, 1024, null, 512, o);
101
- case "sha3-224":
102
- return new e(1152, 448, 6, 224, o);
103
- case "sha3-256":
104
- return new e(1088, 512, 6, 256, o);
105
- case "sha3-384":
106
- return new e(832, 768, 6, 384, o);
107
- case "sha3-512":
108
- return new e(576, 1024, 6, 512, o);
109
- case "shake128":
110
- return new n(1344, 256, 31, o);
111
- case "shake256":
112
- return new n(1088, 512, 31, o);
113
- default:
114
- throw new Error("Invald algorithm: " + _);
115
- }
116
- };
117
- }, nn = {};
118
- const Me = [1, 0, 32898, 0, 32906, 2147483648, 2147516416, 2147483648, 32907, 0, 2147483649, 0, 2147516545, 2147483648, 32777, 2147483648, 138, 0, 136, 0, 2147516425, 0, 2147483658, 0, 2147516555, 0, 139, 2147483648, 32905, 2147483648, 32771, 2147483648, 32770, 2147483648, 128, 2147483648, 32778, 0, 2147483658, 2147483648, 2147516545, 2147483648, 32896, 2147483648, 2147483649, 0, 2147516424, 2147483648];
119
- nn.p1600 = function(t) {
120
- for (let e = 0; e < 24; ++e) {
121
- const n = t[0] ^ t[10] ^ t[20] ^ t[30] ^ t[40], _ = t[1] ^ t[11] ^ t[21] ^ t[31] ^ t[41], o = t[2] ^ t[12] ^ t[22] ^ t[32] ^ t[42], i = t[3] ^ t[13] ^ t[23] ^ t[33] ^ t[43], c = t[4] ^ t[14] ^ t[24] ^ t[34] ^ t[44], l = t[5] ^ t[15] ^ t[25] ^ t[35] ^ t[45], h = t[6] ^ t[16] ^ t[26] ^ t[36] ^ t[46], u = t[7] ^ t[17] ^ t[27] ^ t[37] ^ t[47], f = t[8] ^ t[18] ^ t[28] ^ t[38] ^ t[48], r = t[9] ^ t[19] ^ t[29] ^ t[39] ^ t[49];
122
- let a = f ^ (o << 1 | i >>> 31), s = r ^ (i << 1 | o >>> 31);
123
- const g = t[0] ^ a, k = t[1] ^ s, b = t[10] ^ a, p = t[11] ^ s, v = t[20] ^ a, z = t[21] ^ s, S = t[30] ^ a, P = t[31] ^ s, C = t[40] ^ a, F = t[41] ^ s;
124
- a = n ^ (c << 1 | l >>> 31), s = _ ^ (l << 1 | c >>> 31);
125
- const E = t[2] ^ a, U = t[3] ^ s, w = t[12] ^ a, H = t[13] ^ s, oe = t[22] ^ a, ie = t[23] ^ s, re = t[32] ^ a, se = t[33] ^ s, ce = t[42] ^ a, le = t[43] ^ s;
126
- a = o ^ (h << 1 | u >>> 31), s = i ^ (u << 1 | h >>> 31);
127
- const ue = t[4] ^ a, ae = t[5] ^ s, he = t[14] ^ a, fe = t[15] ^ s, pe = t[24] ^ a, de = t[25] ^ s, ve = t[34] ^ a, me = t[35] ^ s, ye = t[44] ^ a, ge = t[45] ^ s;
128
- a = c ^ (f << 1 | r >>> 31), s = l ^ (r << 1 | f >>> 31);
129
- const be = t[6] ^ a, ke = t[7] ^ s, we = t[16] ^ a, Se = t[17] ^ s, xe = t[26] ^ a, $e = t[27] ^ s, ze = t[36] ^ a, Ce = t[37] ^ s, Pe = t[46] ^ a, Ee = t[47] ^ s;
130
- a = h ^ (n << 1 | _ >>> 31), s = u ^ (_ << 1 | n >>> 31);
131
- const He = t[8] ^ a, Te = t[9] ^ s, De = t[18] ^ a, Ne = t[19] ^ s, Ue = t[28] ^ a, qe = t[29] ^ s, Le = t[38] ^ a, Be = t[39] ^ s, Fe = t[48] ^ a, Ae = t[49] ^ s, J = g, Q = k, X = p << 4 | b >>> 28, Y = b << 4 | p >>> 28, Z = v << 3 | z >>> 29, tt = z << 3 | v >>> 29, et = P << 9 | S >>> 23, nt = S << 9 | P >>> 23, _t = C << 18 | F >>> 14, ot = F << 18 | C >>> 14, it = E << 1 | U >>> 31, rt = U << 1 | E >>> 31, st = H << 12 | w >>> 20, ct = w << 12 | H >>> 20, lt = oe << 10 | ie >>> 22, ut = ie << 10 | oe >>> 22, at = se << 13 | re >>> 19, ht = re << 13 | se >>> 19, ft = ce << 2 | le >>> 30, pt = le << 2 | ce >>> 30, dt = ae << 30 | ue >>> 2, vt = ue << 30 | ae >>> 2, mt = he << 6 | fe >>> 26, yt = fe << 6 | he >>> 26, gt = de << 11 | pe >>> 21, bt = pe << 11 | de >>> 21, kt = ve << 15 | me >>> 17, wt = me << 15 | ve >>> 17, St = ge << 29 | ye >>> 3, xt = ye << 29 | ge >>> 3, $t = be << 28 | ke >>> 4, zt = ke << 28 | be >>> 4, Ct = Se << 23 | we >>> 9, Pt = we << 23 | Se >>> 9, Et = xe << 25 | $e >>> 7, Ht = $e << 25 | xe >>> 7, Tt = ze << 21 | Ce >>> 11, Dt = Ce << 21 | ze >>> 11, Nt = Ee << 24 | Pe >>> 8, Ut = Pe << 24 | Ee >>> 8, qt = He << 27 | Te >>> 5, Lt = Te << 27 | He >>> 5, Bt = De << 20 | Ne >>> 12, Ft = Ne << 20 | De >>> 12, At = qe << 7 | Ue >>> 25, Mt = Ue << 7 | qe >>> 25, Ot = Le << 8 | Be >>> 24, Wt = Be << 8 | Le >>> 24, jt = Fe << 14 | Ae >>> 18, It = Ae << 14 | Fe >>> 18;
132
- t[0] = J ^ ~st & gt, t[1] = Q ^ ~ct & bt, t[10] = $t ^ ~Bt & Z, t[11] = zt ^ ~Ft & tt, t[20] = it ^ ~mt & Et, t[21] = rt ^ ~yt & Ht, t[30] = qt ^ ~X & lt, t[31] = Lt ^ ~Y & ut, t[40] = dt ^ ~Ct & At, t[41] = vt ^ ~Pt & Mt, t[2] = st ^ ~gt & Tt, t[3] = ct ^ ~bt & Dt, t[12] = Bt ^ ~Z & at, t[13] = Ft ^ ~tt & ht, t[22] = mt ^ ~Et & Ot, t[23] = yt ^ ~Ht & Wt, t[32] = X ^ ~lt & kt, t[33] = Y ^ ~ut & wt, t[42] = Ct ^ ~At & et, t[43] = Pt ^ ~Mt & nt, t[4] = gt ^ ~Tt & jt, t[5] = bt ^ ~Dt & It, t[14] = Z ^ ~at & St, t[15] = tt ^ ~ht & xt, t[24] = Et ^ ~Ot & _t, t[25] = Ht ^ ~Wt & ot, t[34] = lt ^ ~kt & Nt, t[35] = ut ^ ~wt & Ut, t[44] = At ^ ~et & ft, t[45] = Mt ^ ~nt & pt, t[6] = Tt ^ ~jt & J, t[7] = Dt ^ ~It & Q, t[16] = at ^ ~St & $t, t[17] = ht ^ ~xt & zt, t[26] = Ot ^ ~_t & it, t[27] = Wt ^ ~ot & rt, t[36] = kt ^ ~Nt & qt, t[37] = wt ^ ~Ut & Lt, t[46] = et ^ ~ft & dt, t[47] = nt ^ ~pt & vt, t[8] = jt ^ ~J & st, t[9] = It ^ ~Q & ct, t[18] = St ^ ~$t & Bt, t[19] = xt ^ ~zt & Ft, t[28] = _t ^ ~it & mt, t[29] = ot ^ ~rt & yt, t[38] = Nt ^ ~qt & X, t[39] = Ut ^ ~Lt & Y, t[48] = ft ^ ~dt & Ct, t[49] = pt ^ ~vt & Pt, t[0] ^= Me[e * 2], t[1] ^= Me[e * 2 + 1];
133
- }
134
- };
135
- const V = nn;
136
- function B() {
137
- this.state = [
138
- 0,
139
- 0,
140
- 0,
141
- 0,
142
- 0,
143
- 0,
144
- 0,
145
- 0,
146
- 0,
147
- 0,
148
- 0,
149
- 0,
150
- 0,
151
- 0,
152
- 0,
153
- 0,
154
- 0,
155
- 0,
156
- 0,
157
- 0,
158
- 0,
159
- 0,
160
- 0,
161
- 0,
162
- 0
163
- ], this.blockSize = null, this.count = 0, this.squeezing = !1;
164
- }
165
- B.prototype.initialize = function(t, e) {
166
- for (let n = 0; n < 50; ++n)
167
- this.state[n] = 0;
168
- this.blockSize = t / 8, this.count = 0, this.squeezing = !1;
169
- };
170
- B.prototype.absorb = function(t) {
171
- for (let e = 0; e < t.length; ++e)
172
- this.state[~~(this.count / 4)] ^= t[e] << 8 * (this.count % 4), this.count += 1, this.count === this.blockSize && (V.p1600(this.state), this.count = 0);
173
- };
174
- B.prototype.absorbLastFewBits = function(t) {
175
- this.state[~~(this.count / 4)] ^= t << 8 * (this.count % 4), t & 128 && this.count === this.blockSize - 1 && V.p1600(this.state), this.state[~~((this.blockSize - 1) / 4)] ^= 128 << 8 * ((this.blockSize - 1) % 4), V.p1600(this.state), this.count = 0, this.squeezing = !0;
176
- };
177
- B.prototype.squeeze = function(t) {
178
- this.squeezing || this.absorbLastFewBits(1);
179
- const e = D.alloc(t);
180
- for (let n = 0; n < t; ++n)
181
- e[n] = this.state[~~(this.count / 4)] >>> 8 * (this.count % 4) & 255, this.count += 1, this.count === this.blockSize && (V.p1600(this.state), this.count = 0);
182
- return e;
183
- };
184
- B.prototype.copy = function(t) {
185
- for (let e = 0; e < 50; ++e)
186
- t.state[e] = this.state[e];
187
- t.blockSize = this.blockSize, t.count = this.count, t.squeezing = this.squeezing;
188
- };
189
- var Tn = B, t_ = Hn(Tn);
190
- function _n(t) {
191
- var e, n, _ = "";
192
- if (typeof t == "string" || typeof t == "number")
193
- _ += t;
194
- else if (typeof t == "object")
195
- if (Array.isArray(t))
196
- for (e = 0; e < t.length; e++)
197
- t[e] && (n = _n(t[e])) && (_ && (_ += " "), _ += n);
198
- else
199
- for (e in t)
200
- t[e] && (_ && (_ += " "), _ += e);
201
- return _;
202
- }
203
- function Oe() {
204
- for (var t, e, n = 0, _ = ""; n < arguments.length; )
205
- (t = arguments[n++]) && (e = _n(t)) && (_ && (_ += " "), _ += e);
206
- return _;
207
- }
208
- const Dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
209
- __proto__: null,
210
- clsx: Oe,
211
- default: Oe
212
- }, Symbol.toStringTag, { value: "Module" })), e_ = /* @__PURE__ */ Yt(Dn);
213
- var W, m, on, rn, T, We, sn, Vt, Zt, Kt, Gt, cn, O = {}, ln = [], Nn = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, G = Array.isArray;
214
- function x(t, e) {
215
- for (var n in e)
216
- t[n] = e[n];
217
- return t;
218
- }
219
- function un(t) {
220
- t && t.parentNode && t.parentNode.removeChild(t);
221
- }
222
- function Jt(t, e, n) {
223
- var _, o, i, c = {};
224
- for (i in e)
225
- i == "key" ? _ = e[i] : i == "ref" ? o = e[i] : c[i] = e[i];
226
- if (arguments.length > 2 && (c.children = arguments.length > 3 ? W.call(arguments, 2) : n), typeof t == "function" && t.defaultProps != null)
227
- for (i in t.defaultProps)
228
- c[i] === void 0 && (c[i] = t.defaultProps[i]);
229
- return A(t, c, _, o, null);
230
- }
231
- function A(t, e, n, _, o) {
232
- var i = { type: t, props: e, key: n, ref: _, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: o ?? ++on, __i: -1, __u: 0 };
233
- return o == null && m.vnode != null && m.vnode(i), i;
234
- }
235
- function Un() {
236
- return { current: null };
237
- }
238
- function j(t) {
239
- return t.children;
240
- }
241
- function M(t, e) {
242
- this.props = t, this.context = e;
243
- }
244
- function q(t, e) {
245
- if (e == null)
246
- return t.__ ? q(t.__, t.__i + 1) : null;
247
- for (var n; e < t.__k.length; e++)
248
- if ((n = t.__k[e]) != null && n.__e != null)
249
- return n.__e;
250
- return typeof t.type == "function" ? q(t) : null;
251
- }
252
- function an(t) {
253
- var e, n;
254
- if ((t = t.__) != null && t.__c != null) {
255
- for (t.__e = t.__c.base = null, e = 0; e < t.__k.length; e++)
256
- if ((n = t.__k[e]) != null && n.__e != null) {
257
- t.__e = t.__c.base = n.__e;
258
- break;
259
- }
260
- return an(t);
261
- }
262
- }
263
- function Qt(t) {
264
- (!t.__d && (t.__d = !0) && T.push(t) && !K.__r++ || We !== m.debounceRendering) && ((We = m.debounceRendering) || sn)(K);
265
- }
266
- function K() {
267
- var t, e, n, _, o, i, c, l;
268
- for (T.sort(Vt); t = T.shift(); )
269
- t.__d && (e = T.length, _ = void 0, i = (o = (n = t).__v).__e, c = [], l = [], n.__P && ((_ = x({}, o)).__v = o.__v + 1, m.vnode && m.vnode(_), te(n.__P, _, o, n.__n, n.__P.namespaceURI, 32 & o.__u ? [i] : null, c, i ?? q(o), !!(32 & o.__u), l), _.__v = o.__v, _.__.__k[_.__i] = _, dn(c, _, l), _.__e != i && an(_)), T.length > e && T.sort(Vt));
270
- K.__r = 0;
271
- }
272
- function hn(t, e, n, _, o, i, c, l, h, u, f) {
273
- var r, a, s, g, k, b = _ && _.__k || ln, p = e.length;
274
- for (n.__d = h, qn(n, e, b), h = n.__d, r = 0; r < p; r++)
275
- (s = n.__k[r]) != null && (a = s.__i === -1 ? O : b[s.__i] || O, s.__i = r, te(t, s, a, o, i, c, l, h, u, f), g = s.__e, s.ref && a.ref != s.ref && (a.ref && ee(a.ref, null, s), f.push(s.ref, s.__c || g, s)), k == null && g != null && (k = g), 65536 & s.__u || a.__k === s.__k ? h = fn(s, h, t) : typeof s.type == "function" && s.__d !== void 0 ? h = s.__d : g && (h = g.nextSibling), s.__d = void 0, s.__u &= -196609);
276
- n.__d = h, n.__e = k;
277
- }
278
- function qn(t, e, n) {
279
- var _, o, i, c, l, h = e.length, u = n.length, f = u, r = 0;
280
- for (t.__k = [], _ = 0; _ < h; _++)
281
- (o = e[_]) != null && typeof o != "boolean" && typeof o != "function" ? (c = _ + r, (o = t.__k[_] = typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? A(null, o, null, null, null) : G(o) ? A(j, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? A(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : o).__ = t, o.__b = t.__b + 1, i = null, (l = o.__i = Ln(o, n, c, f)) !== -1 && (f--, (i = n[l]) && (i.__u |= 131072)), i == null || i.__v === null ? (l == -1 && r--, typeof o.type != "function" && (o.__u |= 65536)) : l !== c && (l == c - 1 ? r-- : l == c + 1 ? r++ : (l > c ? r-- : r++, o.__u |= 65536))) : o = t.__k[_] = null;
282
- if (f)
283
- for (_ = 0; _ < u; _++)
284
- (i = n[_]) != null && !(131072 & i.__u) && (i.__e == t.__d && (t.__d = q(i)), vn(i, i));
285
- }
286
- function fn(t, e, n) {
287
- var _, o;
288
- if (typeof t.type == "function") {
289
- for (_ = t.__k, o = 0; _ && o < _.length; o++)
290
- _[o] && (_[o].__ = t, e = fn(_[o], e, n));
291
- return e;
292
- }
293
- t.__e != e && (e && t.type && !n.contains(e) && (e = q(t)), n.insertBefore(t.__e, e || null), e = t.__e);
294
- do
295
- e = e && e.nextSibling;
296
- while (e != null && e.nodeType === 8);
297
- return e;
298
- }
299
- function pn(t, e) {
300
- return e = e || [], t == null || typeof t == "boolean" || (G(t) ? t.some(function(n) {
301
- pn(n, e);
302
- }) : e.push(t)), e;
303
- }
304
- function Ln(t, e, n, _) {
305
- var o = t.key, i = t.type, c = n - 1, l = n + 1, h = e[n];
306
- if (h === null || h && o == h.key && i === h.type && !(131072 & h.__u))
307
- return n;
308
- if (_ > (h != null && !(131072 & h.__u) ? 1 : 0))
309
- for (; c >= 0 || l < e.length; ) {
310
- if (c >= 0) {
311
- if ((h = e[c]) && !(131072 & h.__u) && o == h.key && i === h.type)
312
- return c;
313
- c--;
314
- }
315
- if (l < e.length) {
316
- if ((h = e[l]) && !(131072 & h.__u) && o == h.key && i === h.type)
317
- return l;
318
- l++;
319
- }
320
- }
321
- return -1;
322
- }
323
- function je(t, e, n) {
324
- e[0] === "-" ? t.setProperty(e, n ?? "") : t[e] = n == null ? "" : typeof n != "number" || Nn.test(e) ? n : n + "px";
325
- }
326
- function I(t, e, n, _, o) {
327
- var i;
328
- t:
329
- if (e === "style")
330
- if (typeof n == "string")
331
- t.style.cssText = n;
332
- else {
333
- if (typeof _ == "string" && (t.style.cssText = _ = ""), _)
334
- for (e in _)
335
- n && e in n || je(t.style, e, "");
336
- if (n)
337
- for (e in n)
338
- _ && n[e] === _[e] || je(t.style, e, n[e]);
339
- }
340
- else if (e[0] === "o" && e[1] === "n")
341
- i = e !== (e = e.replace(/(PointerCapture)$|Capture$/i, "$1")), e = e.toLowerCase() in t || e === "onFocusOut" || e === "onFocusIn" ? e.toLowerCase().slice(2) : e.slice(2), t.l || (t.l = {}), t.l[e + i] = n, n ? _ ? n.u = _.u : (n.u = Zt, t.addEventListener(e, i ? Gt : Kt, i)) : t.removeEventListener(e, i ? Gt : Kt, i);
342
- else {
343
- if (o == "http://www.w3.org/2000/svg")
344
- e = e.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
345
- else if (e != "width" && e != "height" && e != "href" && e != "list" && e != "form" && e != "tabIndex" && e != "download" && e != "rowSpan" && e != "colSpan" && e != "role" && e != "popover" && e in t)
346
- try {
347
- t[e] = n ?? "";
348
- break t;
349
- } catch {
350
- }
351
- typeof n == "function" || (n == null || n === !1 && e[4] !== "-" ? t.removeAttribute(e) : t.setAttribute(e, e == "popover" && n == 1 ? "" : n));
352
- }
353
- }
354
- function Ie(t) {
355
- return function(e) {
356
- if (this.l) {
357
- var n = this.l[e.type + t];
358
- if (e.t == null)
359
- e.t = Zt++;
360
- else if (e.t < n.u)
361
- return;
362
- return n(m.event ? m.event(e) : e);
363
- }
364
- };
365
- }
366
- function te(t, e, n, _, o, i, c, l, h, u) {
367
- var f, r, a, s, g, k, b, p, v, z, S, P, C, F, E, U, w = e.type;
368
- if (e.constructor !== void 0)
369
- return null;
370
- 128 & n.__u && (h = !!(32 & n.__u), i = [l = e.__e = n.__e]), (f = m.__b) && f(e);
371
- t:
372
- if (typeof w == "function")
373
- try {
374
- if (p = e.props, v = "prototype" in w && w.prototype.render, z = (f = w.contextType) && _[f.__c], S = f ? z ? z.props.value : f.__ : _, n.__c ? b = (r = e.__c = n.__c).__ = r.__E : (v ? e.__c = r = new w(p, S) : (e.__c = r = new M(p, S), r.constructor = w, r.render = Fn), z && z.sub(r), r.props = p, r.state || (r.state = {}), r.context = S, r.__n = _, a = r.__d = !0, r.__h = [], r._sb = []), v && r.__s == null && (r.__s = r.state), v && w.getDerivedStateFromProps != null && (r.__s == r.state && (r.__s = x({}, r.__s)), x(r.__s, w.getDerivedStateFromProps(p, r.__s))), s = r.props, g = r.state, r.__v = e, a)
375
- v && w.getDerivedStateFromProps == null && r.componentWillMount != null && r.componentWillMount(), v && r.componentDidMount != null && r.__h.push(r.componentDidMount);
376
- else {
377
- if (v && w.getDerivedStateFromProps == null && p !== s && r.componentWillReceiveProps != null && r.componentWillReceiveProps(p, S), !r.__e && (r.shouldComponentUpdate != null && r.shouldComponentUpdate(p, r.__s, S) === !1 || e.__v === n.__v)) {
378
- for (e.__v !== n.__v && (r.props = p, r.state = r.__s, r.__d = !1), e.__e = n.__e, e.__k = n.__k, e.__k.some(function(H) {
379
- H && (H.__ = e);
380
- }), P = 0; P < r._sb.length; P++)
381
- r.__h.push(r._sb[P]);
382
- r._sb = [], r.__h.length && c.push(r);
383
- break t;
384
- }
385
- r.componentWillUpdate != null && r.componentWillUpdate(p, r.__s, S), v && r.componentDidUpdate != null && r.__h.push(function() {
386
- r.componentDidUpdate(s, g, k);
387
- });
388
- }
389
- if (r.context = S, r.props = p, r.__P = t, r.__e = !1, C = m.__r, F = 0, v) {
390
- for (r.state = r.__s, r.__d = !1, C && C(e), f = r.render(r.props, r.state, r.context), E = 0; E < r._sb.length; E++)
391
- r.__h.push(r._sb[E]);
392
- r._sb = [];
393
- } else
394
- do
395
- r.__d = !1, C && C(e), f = r.render(r.props, r.state, r.context), r.state = r.__s;
396
- while (r.__d && ++F < 25);
397
- r.state = r.__s, r.getChildContext != null && (_ = x(x({}, _), r.getChildContext())), v && !a && r.getSnapshotBeforeUpdate != null && (k = r.getSnapshotBeforeUpdate(s, g)), hn(t, G(U = f != null && f.type === j && f.key == null ? f.props.children : f) ? U : [U], e, n, _, o, i, c, l, h, u), r.base = e.__e, e.__u &= -161, r.__h.length && c.push(r), b && (r.__E = r.__ = null);
398
- } catch (H) {
399
- if (e.__v = null, h || i != null) {
400
- for (e.__u |= h ? 160 : 32; l && l.nodeType === 8 && l.nextSibling; )
401
- l = l.nextSibling;
402
- i[i.indexOf(l)] = null, e.__e = l;
403
- } else
404
- e.__e = n.__e, e.__k = n.__k;
405
- m.__e(H, e, n);
406
- }
407
- else
408
- i == null && e.__v === n.__v ? (e.__k = n.__k, e.__e = n.__e) : e.__e = Bn(n.__e, e, n, _, o, i, c, h, u);
409
- (f = m.diffed) && f(e);
410
- }
411
- function dn(t, e, n) {
412
- e.__d = void 0;
413
- for (var _ = 0; _ < n.length; _++)
414
- ee(n[_], n[++_], n[++_]);
415
- m.__c && m.__c(e, t), t.some(function(o) {
416
- try {
417
- t = o.__h, o.__h = [], t.some(function(i) {
418
- i.call(o);
419
- });
420
- } catch (i) {
421
- m.__e(i, o.__v);
422
- }
423
- });
424
- }
425
- function Bn(t, e, n, _, o, i, c, l, h) {
426
- var u, f, r, a, s, g, k, b = n.props, p = e.props, v = e.type;
427
- if (v === "svg" ? o = "http://www.w3.org/2000/svg" : v === "math" ? o = "http://www.w3.org/1998/Math/MathML" : o || (o = "http://www.w3.org/1999/xhtml"), i != null) {
428
- for (u = 0; u < i.length; u++)
429
- if ((s = i[u]) && "setAttribute" in s == !!v && (v ? s.localName === v : s.nodeType === 3)) {
430
- t = s, i[u] = null;
431
- break;
432
- }
433
- }
434
- if (t == null) {
435
- if (v === null)
436
- return document.createTextNode(p);
437
- t = document.createElementNS(o, v, p.is && p), l && (m.__m && m.__m(e, i), l = !1), i = null;
438
- }
439
- if (v === null)
440
- b === p || l && t.data === p || (t.data = p);
441
- else {
442
- if (i = i && W.call(t.childNodes), b = n.props || O, !l && i != null)
443
- for (b = {}, u = 0; u < t.attributes.length; u++)
444
- b[(s = t.attributes[u]).name] = s.value;
445
- for (u in b)
446
- if (s = b[u], u != "children") {
447
- if (u == "dangerouslySetInnerHTML")
448
- r = s;
449
- else if (!(u in p)) {
450
- if (u == "value" && "defaultValue" in p || u == "checked" && "defaultChecked" in p)
451
- continue;
452
- I(t, u, null, s, o);
453
- }
454
- }
455
- for (u in p)
456
- s = p[u], u == "children" ? a = s : u == "dangerouslySetInnerHTML" ? f = s : u == "value" ? g = s : u == "checked" ? k = s : l && typeof s != "function" || b[u] === s || I(t, u, s, b[u], o);
457
- if (f)
458
- l || r && (f.__html === r.__html || f.__html === t.innerHTML) || (t.innerHTML = f.__html), e.__k = [];
459
- else if (r && (t.innerHTML = ""), hn(t, G(a) ? a : [a], e, n, _, v === "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, i, c, i ? i[0] : n.__k && q(n, 0), l, h), i != null)
460
- for (u = i.length; u--; )
461
- un(i[u]);
462
- l || (u = "value", v === "progress" && g == null ? t.removeAttribute("value") : g !== void 0 && (g !== t[u] || v === "progress" && !g || v === "option" && g !== b[u]) && I(t, u, g, b[u], o), u = "checked", k !== void 0 && k !== t[u] && I(t, u, k, b[u], o));
463
- }
464
- return t;
465
- }
466
- function ee(t, e, n) {
467
- try {
468
- if (typeof t == "function") {
469
- var _ = typeof t.__u == "function";
470
- _ && t.__u(), _ && e == null || (t.__u = t(e));
471
- } else
472
- t.current = e;
473
- } catch (o) {
474
- m.__e(o, n);
475
- }
476
- }
477
- function vn(t, e, n) {
478
- var _, o;
479
- if (m.unmount && m.unmount(t), (_ = t.ref) && (_.current && _.current !== t.__e || ee(_, null, e)), (_ = t.__c) != null) {
480
- if (_.componentWillUnmount)
481
- try {
482
- _.componentWillUnmount();
483
- } catch (i) {
484
- m.__e(i, e);
485
- }
486
- _.base = _.__P = null;
487
- }
488
- if (_ = t.__k)
489
- for (o = 0; o < _.length; o++)
490
- _[o] && vn(_[o], e, n || typeof t.type != "function");
491
- n || un(t.__e), t.__c = t.__ = t.__e = t.__d = void 0;
492
- }
493
- function Fn(t, e, n) {
494
- return this.constructor(t, n);
495
- }
496
- function mn(t, e, n) {
497
- var _, o, i, c;
498
- m.__ && m.__(t, e), o = (_ = typeof n == "function") ? null : n && n.__k || e.__k, i = [], c = [], te(e, t = (!_ && n || e).__k = Jt(j, null, [t]), o || O, O, e.namespaceURI, !_ && n ? [n] : o ? null : e.firstChild ? W.call(e.childNodes) : null, i, !_ && n ? n : o ? o.__e : e.firstChild, _, c), dn(i, t, c);
499
- }
500
- function yn(t, e) {
501
- mn(t, e, yn);
502
- }
503
- function An(t, e, n) {
504
- var _, o, i, c, l = x({}, t.props);
505
- for (i in t.type && t.type.defaultProps && (c = t.type.defaultProps), e)
506
- i == "key" ? _ = e[i] : i == "ref" ? o = e[i] : l[i] = e[i] === void 0 && c !== void 0 ? c[i] : e[i];
507
- return arguments.length > 2 && (l.children = arguments.length > 3 ? W.call(arguments, 2) : n), A(t.type, l, _ || t.key, o || t.ref, null);
508
- }
509
- function Mn(t, e) {
510
- var n = { __c: e = "__cC" + cn++, __: t, Consumer: function(_, o) {
511
- return _.children(o);
512
- }, Provider: function(_) {
513
- var o, i;
514
- return this.getChildContext || (o = [], (i = {})[e] = this, this.getChildContext = function() {
515
- return i;
516
- }, this.componentWillUnmount = function() {
517
- o = null;
518
- }, this.shouldComponentUpdate = function(c) {
519
- this.props.value !== c.value && o.some(function(l) {
520
- l.__e = !0, Qt(l);
521
- });
522
- }, this.sub = function(c) {
523
- o.push(c);
524
- var l = c.componentWillUnmount;
525
- c.componentWillUnmount = function() {
526
- o && o.splice(o.indexOf(c), 1), l && l.call(c);
527
- };
528
- }), _.children;
529
- } };
530
- return n.Provider.__ = n.Consumer.contextType = n;
531
- }
532
- W = ln.slice, m = { __e: function(t, e, n, _) {
533
- for (var o, i, c; e = e.__; )
534
- if ((o = e.__c) && !o.__)
535
- try {
536
- if ((i = o.constructor) && i.getDerivedStateFromError != null && (o.setState(i.getDerivedStateFromError(t)), c = o.__d), o.componentDidCatch != null && (o.componentDidCatch(t, _ || {}), c = o.__d), c)
537
- return o.__E = o;
538
- } catch (l) {
539
- t = l;
540
- }
541
- throw t;
542
- } }, on = 0, rn = function(t) {
543
- return t != null && t.constructor == null;
544
- }, M.prototype.setState = function(t, e) {
545
- var n;
546
- n = this.__s != null && this.__s !== this.state ? this.__s : this.__s = x({}, this.state), typeof t == "function" && (t = t(x({}, n), this.props)), t && x(n, t), t != null && this.__v && (e && this._sb.push(e), Qt(this));
547
- }, M.prototype.forceUpdate = function(t) {
548
- this.__v && (this.__e = !0, t && this.__h.push(t), Qt(this));
549
- }, M.prototype.render = j, T = [], sn = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Vt = function(t, e) {
550
- return t.__v.__b - e.__v.__b;
551
- }, K.__r = 0, Zt = 0, Kt = Ie(!1), Gt = Ie(!0), cn = 0;
552
- const On = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
553
- __proto__: null,
554
- Component: M,
555
- Fragment: j,
556
- cloneElement: An,
557
- createContext: Mn,
558
- createElement: Jt,
559
- createRef: Un,
560
- h: Jt,
561
- hydrate: yn,
562
- get isValidElement() {
563
- return rn;
564
- },
565
- get options() {
566
- return m;
567
- },
568
- render: mn,
569
- toChildArray: pn
570
- }, Symbol.toStringTag, { value: "Module" })), n_ = /* @__PURE__ */ Yt(On);
571
- var $, d, Rt, Re, L = 0, gn = [], y = m, Ve = y.__b, Ke = y.__r, Ge = y.diffed, Je = y.__c, Qe = y.unmount, Xe = y.__;
572
- function N(t, e) {
573
- y.__h && y.__h(d, t, L || e), L = 0;
574
- var n = d.__H || (d.__H = { __: [], __h: [] });
575
- return t >= n.__.length && n.__.push({}), n.__[t];
576
- }
577
- function bn(t) {
578
- return L = 1, kn(Sn, t);
579
- }
580
- function kn(t, e, n) {
581
- var _ = N($++, 2);
582
- if (_.t = t, !_.__c && (_.__ = [n ? n(e) : Sn(void 0, e), function(l) {
583
- var h = _.__N ? _.__N[0] : _.__[0], u = _.t(h, l);
584
- h !== u && (_.__N = [u, _.__[1]], _.__c.setState({}));
585
- }], _.__c = d, !d.u)) {
586
- var o = function(l, h, u) {
587
- if (!_.__c.__H)
588
- return !0;
589
- var f = _.__c.__H.__.filter(function(a) {
590
- return !!a.__c;
591
- });
592
- if (f.every(function(a) {
593
- return !a.__N;
594
- }))
595
- return !i || i.call(this, l, h, u);
596
- var r = !1;
597
- return f.forEach(function(a) {
598
- if (a.__N) {
599
- var s = a.__[0];
600
- a.__ = a.__N, a.__N = void 0, s !== a.__[0] && (r = !0);
601
- }
602
- }), !(!r && _.__c.props === l) && (!i || i.call(this, l, h, u));
603
- };
604
- d.u = !0;
605
- var i = d.shouldComponentUpdate, c = d.componentWillUpdate;
606
- d.componentWillUpdate = function(l, h, u) {
607
- if (this.__e) {
608
- var f = i;
609
- i = void 0, o(l, h, u), i = f;
610
- }
611
- c && c.call(this, l, h, u);
612
- }, d.shouldComponentUpdate = o;
613
- }
614
- return _.__N || _.__;
615
- }
616
- function Wn(t, e) {
617
- var n = N($++, 3);
618
- !y.__s && _e(n.__H, e) && (n.__ = t, n.i = e, d.__H.__h.push(n));
619
- }
620
- function wn(t, e) {
621
- var n = N($++, 4);
622
- !y.__s && _e(n.__H, e) && (n.__ = t, n.i = e, d.__h.push(n));
623
- }
624
- function jn(t) {
625
- return L = 5, ne(function() {
626
- return { current: t };
627
- }, []);
628
- }
629
- function In(t, e, n) {
630
- L = 6, wn(function() {
631
- return typeof t == "function" ? (t(e()), function() {
632
- return t(null);
633
- }) : t ? (t.current = e(), function() {
634
- return t.current = null;
635
- }) : void 0;
636
- }, n == null ? n : n.concat(t));
637
- }
638
- function ne(t, e) {
639
- var n = N($++, 7);
640
- return _e(n.__H, e) && (n.__ = t(), n.__H = e, n.__h = t), n.__;
641
- }
642
- function Rn(t, e) {
643
- return L = 8, ne(function() {
644
- return t;
645
- }, e);
646
- }
647
- function Vn(t) {
648
- var e = d.context[t.__c], n = N($++, 9);
649
- return n.c = t, e ? (n.__ == null && (n.__ = !0, e.sub(d)), e.props.value) : t.__;
650
- }
651
- function Kn(t, e) {
652
- y.useDebugValue && y.useDebugValue(e ? e(t) : t);
653
- }
654
- function Gn(t) {
655
- var e = N($++, 10), n = bn();
656
- return e.__ = t, d.componentDidCatch || (d.componentDidCatch = function(_, o) {
657
- e.__ && e.__(_, o), n[1](_);
658
- }), [n[0], function() {
659
- n[1](void 0);
660
- }];
661
- }
662
- function Jn() {
663
- var t = N($++, 11);
664
- if (!t.__) {
665
- for (var e = d.__v; e !== null && !e.__m && e.__ !== null; )
666
- e = e.__;
667
- var n = e.__m || (e.__m = [0, 0]);
668
- t.__ = "P" + n[0] + "-" + n[1]++;
669
- }
670
- return t.__;
671
- }
672
- function Qn() {
673
- for (var t; t = gn.shift(); )
674
- if (t.__P && t.__H)
675
- try {
676
- t.__H.__h.forEach(R), t.__H.__h.forEach(Xt), t.__H.__h = [];
677
- } catch (e) {
678
- t.__H.__h = [], y.__e(e, t.__v);
679
- }
680
- }
681
- y.__b = function(t) {
682
- d = null, Ve && Ve(t);
683
- }, y.__ = function(t, e) {
684
- t && e.__k && e.__k.__m && (t.__m = e.__k.__m), Xe && Xe(t, e);
685
- }, y.__r = function(t) {
686
- Ke && Ke(t), $ = 0;
687
- var e = (d = t.__c).__H;
688
- e && (Rt === d ? (e.__h = [], d.__h = [], e.__.forEach(function(n) {
689
- n.__N && (n.__ = n.__N), n.i = n.__N = void 0;
690
- })) : (e.__h.forEach(R), e.__h.forEach(Xt), e.__h = [], $ = 0)), Rt = d;
691
- }, y.diffed = function(t) {
692
- Ge && Ge(t);
693
- var e = t.__c;
694
- e && e.__H && (e.__H.__h.length && (gn.push(e) !== 1 && Re === y.requestAnimationFrame || ((Re = y.requestAnimationFrame) || Xn)(Qn)), e.__H.__.forEach(function(n) {
695
- n.i && (n.__H = n.i), n.i = void 0;
696
- })), Rt = d = null;
697
- }, y.__c = function(t, e) {
698
- e.some(function(n) {
699
- try {
700
- n.__h.forEach(R), n.__h = n.__h.filter(function(_) {
701
- return !_.__ || Xt(_);
702
- });
703
- } catch (_) {
704
- e.some(function(o) {
705
- o.__h && (o.__h = []);
706
- }), e = [], y.__e(_, n.__v);
707
- }
708
- }), Je && Je(t, e);
709
- }, y.unmount = function(t) {
710
- Qe && Qe(t);
711
- var e, n = t.__c;
712
- n && n.__H && (n.__H.__.forEach(function(_) {
713
- try {
714
- R(_);
715
- } catch (o) {
716
- e = o;
717
- }
718
- }), n.__H = void 0, e && y.__e(e, n.__v));
719
- };
720
- var Ye = typeof requestAnimationFrame == "function";
721
- function Xn(t) {
722
- var e, n = function() {
723
- clearTimeout(_), Ye && cancelAnimationFrame(e), setTimeout(t);
724
- }, _ = setTimeout(n, 100);
725
- Ye && (e = requestAnimationFrame(n));
726
- }
727
- function R(t) {
728
- var e = d, n = t.__c;
729
- typeof n == "function" && (t.__c = void 0, n()), d = e;
730
- }
731
- function Xt(t) {
732
- var e = d;
733
- t.__c = t.__(), d = e;
734
- }
735
- function _e(t, e) {
736
- return !t || t.length !== e.length || e.some(function(n, _) {
737
- return n !== t[_];
738
- });
739
- }
740
- function Sn(t, e) {
741
- return typeof e == "function" ? e(t) : e;
742
- }
743
- const Yn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
744
- __proto__: null,
745
- useCallback: Rn,
746
- useContext: Vn,
747
- useDebugValue: Kn,
748
- useEffect: Wn,
749
- useErrorBoundary: Gn,
750
- useId: Jn,
751
- useImperativeHandle: In,
752
- useLayoutEffect: wn,
753
- useMemo: ne,
754
- useReducer: kn,
755
- useRef: jn,
756
- useState: bn
757
- }, Symbol.toStringTag, { value: "Module" })), __ = /* @__PURE__ */ Yt(Yn);
758
- export {
759
- n_ as a,
760
- __ as b,
761
- t_ as j,
762
- e_ as r
763
- };