astra-modal-test 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -0
- package/dist/astra-sdk.es.js +8 -0
- package/dist/astra-sdk.umd.js +12576 -0
- package/dist/ccip-Bpb4GlU6.mjs +146 -0
- package/dist/hooks.module-BBZfodGH.mjs +506 -0
- package/dist/index-BTsa09iy.mjs +84805 -0
- package/dist/index-CEtKkuP2.mjs +133 -0
- package/dist/index-CbWGAz3l.mjs +445 -0
- package/dist/index-DRPxIWUd.mjs +13720 -0
- package/dist/index-h9_6XS0r.mjs +2929 -0
- package/dist/secp256k1-3OC5y4qp.mjs +1578 -0
- package/dist/vite.svg +1 -0
- package/dist/w3m-modal-R9m1z1SQ.mjs +267 -0
- package/eslint.config.js +39 -0
- package/index.html +13 -0
- package/package.json +50 -0
- package/public/vite.svg +1 -0
- package/src/App.css +170 -0
- package/src/apis/lspApi.js +59 -0
- package/src/apis/request.js +59 -0
- package/src/assets/arrow-right.svg +3 -0
- package/src/assets/astr.svg +13 -0
- package/src/assets/bridge-loading.png +0 -0
- package/src/assets/network/base.png +0 -0
- package/src/assets/network/eth.png +0 -0
- package/src/assets/network/lighting.png +0 -0
- package/src/assets/network/ligtning.svg +22 -0
- package/src/assets/network/solona.png +0 -0
- package/src/assets/powerby.svg +14 -0
- package/src/assets/react.svg +1 -0
- package/src/assets/success.svg +3 -0
- package/src/assets/tip.svg +5 -0
- package/src/assets/tokens/sol.png +0 -0
- package/src/assets/tokens/usdc.png +0 -0
- package/src/assets/tokens/usdt.png +0 -0
- package/src/comps/AstraImage.jsx +23 -0
- package/src/comps/AstraModal.jsx +207 -0
- package/src/comps/AstraModalLogo.jsx +53 -0
- package/src/comps/AstraNetwork.jsx +115 -0
- package/src/comps/CheckErc20Button.jsx +28 -0
- package/src/comps/ConnectButton.jsx +37 -0
- package/src/comps/EllipsisMiddle.jsx +42 -0
- package/src/comps/ResultModal.jsx +307 -0
- package/src/comps/ToLightning.jsx +502 -0
- package/src/comps/ToToken.jsx +467 -0
- package/src/constants/contracts/abi/bridge.js +1246 -0
- package/src/constants/contracts/abi/index.js +3 -0
- package/src/constants/contracts/abi/usdt.js +130 -0
- package/src/constants/contracts/abi/watcher.js +523 -0
- package/src/constants/contracts/index.js +37 -0
- package/src/constants/index.js +5 -0
- package/src/font/ClashDisplay-Variable.ttf +0 -0
- package/src/font/ClashDisplay-Variable.woff +0 -0
- package/src/font/ClashDisplay-Variable.woff2 +0 -0
- package/src/hooks/useContract.js +127 -0
- package/src/hooks/useLspApi.js +53 -0
- package/src/hooks/useParseInvoice.js +85 -0
- package/src/index.css +69 -0
- package/src/index.jsx +112 -0
- package/src/lib/bolt11.min.js +1 -0
- package/src/main.jsx +41 -0
- package/src/store/index.js +25 -0
- package/src/theme.js +108 -0
- package/src/utils/index.js +36 -0
- package/vite.config.js +44 -0
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { ba as l, bb as m, bc as y, bd as w, be as k, bf as O, bg as E, bh as L, bi as h, bj as x } from "./index-BTsa09iy.mjs";
|
|
2
|
+
class M extends l {
|
|
3
|
+
constructor({ callbackSelector: r, cause: a, data: o, extraData: i, sender: d, urls: t }) {
|
|
4
|
+
var n;
|
|
5
|
+
super(a.shortMessage || "An error occurred while fetching for an offchain result.", {
|
|
6
|
+
cause: a,
|
|
7
|
+
metaMessages: [
|
|
8
|
+
...a.metaMessages || [],
|
|
9
|
+
(n = a.metaMessages) != null && n.length ? "" : [],
|
|
10
|
+
"Offchain Gateway Call:",
|
|
11
|
+
t && [
|
|
12
|
+
" Gateway URL(s):",
|
|
13
|
+
...t.map((f) => ` ${m(f)}`)
|
|
14
|
+
],
|
|
15
|
+
` Sender: ${d}`,
|
|
16
|
+
` Data: ${o}`,
|
|
17
|
+
` Callback selector: ${r}`,
|
|
18
|
+
` Extra data: ${i}`
|
|
19
|
+
].flat(),
|
|
20
|
+
name: "OffchainLookupError"
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
class R extends l {
|
|
25
|
+
constructor({ result: r, url: a }) {
|
|
26
|
+
super("Offchain gateway response is malformed. Response data must be a hex value.", {
|
|
27
|
+
metaMessages: [
|
|
28
|
+
`Gateway URL: ${m(a)}`,
|
|
29
|
+
`Response: ${y(r)}`
|
|
30
|
+
],
|
|
31
|
+
name: "OffchainLookupResponseMalformedError"
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
class S extends l {
|
|
36
|
+
constructor({ sender: r, to: a }) {
|
|
37
|
+
super("Reverted sender address does not match target contract address (`to`).", {
|
|
38
|
+
metaMessages: [
|
|
39
|
+
`Contract address: ${a}`,
|
|
40
|
+
`OffchainLookup sender address: ${r}`
|
|
41
|
+
],
|
|
42
|
+
name: "OffchainLookupSenderMismatchError"
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
const A = "0x556f1830", $ = {
|
|
47
|
+
name: "OffchainLookup",
|
|
48
|
+
type: "error",
|
|
49
|
+
inputs: [
|
|
50
|
+
{
|
|
51
|
+
name: "sender",
|
|
52
|
+
type: "address"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: "urls",
|
|
56
|
+
type: "string[]"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: "callData",
|
|
60
|
+
type: "bytes"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
name: "callbackFunction",
|
|
64
|
+
type: "bytes4"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: "extraData",
|
|
68
|
+
type: "bytes"
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
};
|
|
72
|
+
async function C(c, { blockNumber: r, blockTag: a, data: o, to: i }) {
|
|
73
|
+
const { args: d } = w({
|
|
74
|
+
data: o,
|
|
75
|
+
abi: [$]
|
|
76
|
+
}), [t, n, f, u, s] = d, { ccipRead: e } = c, b = e && typeof (e == null ? void 0 : e.request) == "function" ? e.request : T;
|
|
77
|
+
try {
|
|
78
|
+
if (!k(i, t))
|
|
79
|
+
throw new S({ sender: t, to: i });
|
|
80
|
+
const p = await b({ data: f, sender: t, urls: n }), { data: g } = await O(c, {
|
|
81
|
+
blockNumber: r,
|
|
82
|
+
blockTag: a,
|
|
83
|
+
data: E([
|
|
84
|
+
u,
|
|
85
|
+
L([{ type: "bytes" }, { type: "bytes" }], [p, s])
|
|
86
|
+
]),
|
|
87
|
+
to: i
|
|
88
|
+
});
|
|
89
|
+
return g;
|
|
90
|
+
} catch (p) {
|
|
91
|
+
throw new M({
|
|
92
|
+
callbackSelector: u,
|
|
93
|
+
cause: p,
|
|
94
|
+
data: o,
|
|
95
|
+
extraData: s,
|
|
96
|
+
sender: t,
|
|
97
|
+
urls: n
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
async function T({ data: c, sender: r, urls: a }) {
|
|
102
|
+
var i;
|
|
103
|
+
let o = new Error("An unknown error occurred.");
|
|
104
|
+
for (let d = 0; d < a.length; d++) {
|
|
105
|
+
const t = a[d], n = t.includes("{data}") ? "GET" : "POST", f = n === "POST" ? { data: c, sender: r } : void 0, u = n === "POST" ? { "Content-Type": "application/json" } : {};
|
|
106
|
+
try {
|
|
107
|
+
const s = await fetch(t.replace("{sender}", r).replace("{data}", c), {
|
|
108
|
+
body: JSON.stringify(f),
|
|
109
|
+
headers: u,
|
|
110
|
+
method: n
|
|
111
|
+
});
|
|
112
|
+
let e;
|
|
113
|
+
if ((i = s.headers.get("Content-Type")) != null && i.startsWith("application/json") ? e = (await s.json()).data : e = await s.text(), !s.ok) {
|
|
114
|
+
o = new h({
|
|
115
|
+
body: f,
|
|
116
|
+
details: e != null && e.error ? y(e.error) : s.statusText,
|
|
117
|
+
headers: s.headers,
|
|
118
|
+
status: s.status,
|
|
119
|
+
url: t
|
|
120
|
+
});
|
|
121
|
+
continue;
|
|
122
|
+
}
|
|
123
|
+
if (!x(e)) {
|
|
124
|
+
o = new R({
|
|
125
|
+
result: e,
|
|
126
|
+
url: t
|
|
127
|
+
});
|
|
128
|
+
continue;
|
|
129
|
+
}
|
|
130
|
+
return e;
|
|
131
|
+
} catch (s) {
|
|
132
|
+
o = new h({
|
|
133
|
+
body: f,
|
|
134
|
+
details: s.message,
|
|
135
|
+
url: t
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
throw o;
|
|
140
|
+
}
|
|
141
|
+
export {
|
|
142
|
+
T as ccipRequest,
|
|
143
|
+
C as offchainLookup,
|
|
144
|
+
$ as offchainLookupAbiItem,
|
|
145
|
+
A as offchainLookupSignature
|
|
146
|
+
};
|
|
@@ -0,0 +1,506 @@
|
|
|
1
|
+
function y_(e) {
|
|
2
|
+
var _, t, n = "";
|
|
3
|
+
if (typeof e == "string" || typeof e == "number") n += e;
|
|
4
|
+
else if (typeof e == "object") if (Array.isArray(e)) for (_ = 0; _ < e.length; _++) e[_] && (t = y_(e[_])) && (n && (n += " "), n += t);
|
|
5
|
+
else for (_ in e) e[_] && (n && (n += " "), n += _);
|
|
6
|
+
return n;
|
|
7
|
+
}
|
|
8
|
+
function i_() {
|
|
9
|
+
for (var e, _, t = 0, n = ""; t < arguments.length; ) (e = arguments[t++]) && (_ = y_(e)) && (n && (n += " "), n += _);
|
|
10
|
+
return n;
|
|
11
|
+
}
|
|
12
|
+
const te = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
13
|
+
__proto__: null,
|
|
14
|
+
clsx: i_,
|
|
15
|
+
default: i_
|
|
16
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
17
|
+
var F, m, g_, b_, H, u_, k_, G, $_, Z, J, K, w_, M = {}, C_ = [], W_ = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, q = Array.isArray;
|
|
18
|
+
function w(e, _) {
|
|
19
|
+
for (var t in _) e[t] = _[t];
|
|
20
|
+
return e;
|
|
21
|
+
}
|
|
22
|
+
function __(e) {
|
|
23
|
+
e && e.parentNode && e.parentNode.removeChild(e);
|
|
24
|
+
}
|
|
25
|
+
function Q(e, _, t) {
|
|
26
|
+
var n, i, r, u = {};
|
|
27
|
+
for (r in _) r == "key" ? n = _[r] : r == "ref" ? i = _[r] : u[r] = _[r];
|
|
28
|
+
if (arguments.length > 2 && (u.children = arguments.length > 3 ? F.call(arguments, 2) : t), typeof e == "function" && e.defaultProps != null) for (r in e.defaultProps) u[r] === void 0 && (u[r] = e.defaultProps[r]);
|
|
29
|
+
return N(e, u, n, i, null);
|
|
30
|
+
}
|
|
31
|
+
function N(e, _, t, n, i) {
|
|
32
|
+
var r = { type: e, props: _, key: t, ref: n, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: i ?? ++g_, __i: -1, __u: 0 };
|
|
33
|
+
return i == null && m.vnode != null && m.vnode(r), r;
|
|
34
|
+
}
|
|
35
|
+
function j_() {
|
|
36
|
+
return { current: null };
|
|
37
|
+
}
|
|
38
|
+
function L(e) {
|
|
39
|
+
return e.children;
|
|
40
|
+
}
|
|
41
|
+
function A(e, _) {
|
|
42
|
+
this.props = e, this.context = _;
|
|
43
|
+
}
|
|
44
|
+
function S(e, _) {
|
|
45
|
+
if (_ == null) return e.__ ? S(e.__, e.__i + 1) : null;
|
|
46
|
+
for (var t; _ < e.__k.length; _++) if ((t = e.__k[_]) != null && t.__e != null) return t.__e;
|
|
47
|
+
return typeof e.type == "function" ? S(e) : null;
|
|
48
|
+
}
|
|
49
|
+
function x_(e) {
|
|
50
|
+
var _, t;
|
|
51
|
+
if ((e = e.__) != null && e.__c != null) {
|
|
52
|
+
for (e.__e = e.__c.base = null, _ = 0; _ < e.__k.length; _++) if ((t = e.__k[_]) != null && t.__e != null) {
|
|
53
|
+
e.__e = e.__c.base = t.__e;
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
return x_(e);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
function X(e) {
|
|
60
|
+
(!e.__d && (e.__d = !0) && H.push(e) && !R.__r++ || u_ !== m.debounceRendering) && ((u_ = m.debounceRendering) || k_)(R);
|
|
61
|
+
}
|
|
62
|
+
function R() {
|
|
63
|
+
var e, _, t, n, i, r, u, l;
|
|
64
|
+
for (H.sort(G); e = H.shift(); ) e.__d && (_ = H.length, n = void 0, r = (i = (t = e).__v).__e, u = [], l = [], t.__P && ((n = w({}, i)).__v = i.__v + 1, m.vnode && m.vnode(n), e_(t.__P, n, i, t.__n, t.__P.namespaceURI, 32 & i.__u ? [r] : null, u, r ?? S(i), !!(32 & i.__u), l), n.__v = i.__v, n.__.__k[n.__i] = n, E_(u, n, l), n.__e != r && x_(n)), H.length > _ && H.sort(G));
|
|
65
|
+
R.__r = 0;
|
|
66
|
+
}
|
|
67
|
+
function H_(e, _, t, n, i, r, u, l, f, c, p) {
|
|
68
|
+
var o, a, s, g, k, b, d = n && n.__k || C_, v = _.length;
|
|
69
|
+
for (f = I_(t, _, d, f, v), o = 0; o < v; o++) (s = t.__k[o]) != null && (a = s.__i === -1 ? M : d[s.__i] || M, s.__i = o, b = e_(e, s, a, i, r, u, l, f, c, p), g = s.__e, s.ref && a.ref != s.ref && (a.ref && t_(a.ref, null, s), p.push(s.ref, s.__c || g, s)), k == null && g != null && (k = g), 4 & s.__u || a.__k === s.__k ? f = P_(s, f, e) : typeof s.type == "function" && b !== void 0 ? f = b : g && (f = g.nextSibling), s.__u &= -7);
|
|
70
|
+
return t.__e = k, f;
|
|
71
|
+
}
|
|
72
|
+
function I_(e, _, t, n, i) {
|
|
73
|
+
var r, u, l, f, c, p = t.length, o = p, a = 0;
|
|
74
|
+
for (e.__k = new Array(i), r = 0; r < i; r++) (u = _[r]) != null && typeof u != "boolean" && typeof u != "function" ? (f = r + a, (u = e.__k[r] = typeof u == "string" || typeof u == "number" || typeof u == "bigint" || u.constructor == String ? N(null, u, null, null, null) : q(u) ? N(L, { children: u }, null, null, null) : u.constructor === void 0 && u.__b > 0 ? N(u.type, u.props, u.key, u.ref ? u.ref : null, u.__v) : u).__ = e, u.__b = e.__b + 1, l = null, (c = u.__i = O_(u, t, f, o)) !== -1 && (o--, (l = t[c]) && (l.__u |= 2)), l == null || l.__v === null ? (c == -1 && a--, typeof u.type != "function" && (u.__u |= 4)) : c != f && (c == f - 1 ? a-- : c == f + 1 ? a++ : (c > f ? a-- : a++, u.__u |= 4))) : e.__k[r] = null;
|
|
75
|
+
if (o) for (r = 0; r < p; r++) (l = t[r]) != null && !(2 & l.__u) && (l.__e == n && (n = S(l)), T_(l, l));
|
|
76
|
+
return n;
|
|
77
|
+
}
|
|
78
|
+
function P_(e, _, t) {
|
|
79
|
+
var n, i;
|
|
80
|
+
if (typeof e.type == "function") {
|
|
81
|
+
for (n = e.__k, i = 0; n && i < n.length; i++) n[i] && (n[i].__ = e, _ = P_(n[i], _, t));
|
|
82
|
+
return _;
|
|
83
|
+
}
|
|
84
|
+
e.__e != _ && (_ && e.type && !t.contains(_) && (_ = S(e)), t.insertBefore(e.__e, _ || null), _ = e.__e);
|
|
85
|
+
do
|
|
86
|
+
_ = _ && _.nextSibling;
|
|
87
|
+
while (_ != null && _.nodeType == 8);
|
|
88
|
+
return _;
|
|
89
|
+
}
|
|
90
|
+
function S_(e, _) {
|
|
91
|
+
return _ = _ || [], e == null || typeof e == "boolean" || (q(e) ? e.some(function(t) {
|
|
92
|
+
S_(t, _);
|
|
93
|
+
}) : _.push(e)), _;
|
|
94
|
+
}
|
|
95
|
+
function O_(e, _, t, n) {
|
|
96
|
+
var i, r, u = e.key, l = e.type, f = _[t];
|
|
97
|
+
if (f === null || f && u == f.key && l === f.type && !(2 & f.__u)) return t;
|
|
98
|
+
if (n > (f != null && !(2 & f.__u) ? 1 : 0)) for (i = t - 1, r = t + 1; i >= 0 || r < _.length; ) {
|
|
99
|
+
if (i >= 0) {
|
|
100
|
+
if ((f = _[i]) && !(2 & f.__u) && u == f.key && l === f.type) return i;
|
|
101
|
+
i--;
|
|
102
|
+
}
|
|
103
|
+
if (r < _.length) {
|
|
104
|
+
if ((f = _[r]) && !(2 & f.__u) && u == f.key && l === f.type) return r;
|
|
105
|
+
r++;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
return -1;
|
|
109
|
+
}
|
|
110
|
+
function l_(e, _, t) {
|
|
111
|
+
_[0] == "-" ? e.setProperty(_, t ?? "") : e[_] = t == null ? "" : typeof t != "number" || W_.test(_) ? t : t + "px";
|
|
112
|
+
}
|
|
113
|
+
function I(e, _, t, n, i) {
|
|
114
|
+
var r;
|
|
115
|
+
_: if (_ == "style") if (typeof t == "string") e.style.cssText = t;
|
|
116
|
+
else {
|
|
117
|
+
if (typeof n == "string" && (e.style.cssText = n = ""), n) for (_ in n) t && _ in t || l_(e.style, _, "");
|
|
118
|
+
if (t) for (_ in t) n && t[_] === n[_] || l_(e.style, _, t[_]);
|
|
119
|
+
}
|
|
120
|
+
else if (_[0] == "o" && _[1] == "n") r = _ != (_ = _.replace($_, "$1")), _ = _.toLowerCase() in e || _ == "onFocusOut" || _ == "onFocusIn" ? _.toLowerCase().slice(2) : _.slice(2), e.l || (e.l = {}), e.l[_ + r] = t, t ? n ? t.u = n.u : (t.u = Z, e.addEventListener(_, r ? K : J, r)) : e.removeEventListener(_, r ? K : J, r);
|
|
121
|
+
else {
|
|
122
|
+
if (i == "http://www.w3.org/2000/svg") _ = _.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
123
|
+
else if (_ != "width" && _ != "height" && _ != "href" && _ != "list" && _ != "form" && _ != "tabIndex" && _ != "download" && _ != "rowSpan" && _ != "colSpan" && _ != "role" && _ != "popover" && _ in e) try {
|
|
124
|
+
e[_] = t ?? "";
|
|
125
|
+
break _;
|
|
126
|
+
} catch {
|
|
127
|
+
}
|
|
128
|
+
typeof t == "function" || (t == null || t === !1 && _[4] != "-" ? e.removeAttribute(_) : e.setAttribute(_, _ == "popover" && t == 1 ? "" : t));
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
function c_(e) {
|
|
132
|
+
return function(_) {
|
|
133
|
+
if (this.l) {
|
|
134
|
+
var t = this.l[_.type + e];
|
|
135
|
+
if (_.t == null) _.t = Z++;
|
|
136
|
+
else if (_.t < t.u) return;
|
|
137
|
+
return t(m.event ? m.event(_) : _);
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
function e_(e, _, t, n, i, r, u, l, f, c) {
|
|
142
|
+
var p, o, a, s, g, k, b, d, v, T, x, W, U, o_, j, z, B, $ = _.type;
|
|
143
|
+
if (_.constructor !== void 0) return null;
|
|
144
|
+
128 & t.__u && (f = !!(32 & t.__u), r = [l = _.__e = t.__e]), (p = m.__b) && p(_);
|
|
145
|
+
_: if (typeof $ == "function") try {
|
|
146
|
+
if (d = _.props, v = "prototype" in $ && $.prototype.render, T = (p = $.contextType) && n[p.__c], x = p ? T ? T.props.value : p.__ : n, t.__c ? b = (o = _.__c = t.__c).__ = o.__E : (v ? _.__c = o = new $(d, x) : (_.__c = o = new A(d, x), o.constructor = $, o.render = q_), T && T.sub(o), o.props = d, o.state || (o.state = {}), o.context = x, o.__n = n, a = o.__d = !0, o.__h = [], o._sb = []), v && o.__s == null && (o.__s = o.state), v && $.getDerivedStateFromProps != null && (o.__s == o.state && (o.__s = w({}, o.__s)), w(o.__s, $.getDerivedStateFromProps(d, o.__s))), s = o.props, g = o.state, o.__v = _, a) v && $.getDerivedStateFromProps == null && o.componentWillMount != null && o.componentWillMount(), v && o.componentDidMount != null && o.__h.push(o.componentDidMount);
|
|
147
|
+
else {
|
|
148
|
+
if (v && $.getDerivedStateFromProps == null && d !== s && o.componentWillReceiveProps != null && o.componentWillReceiveProps(d, x), !o.__e && (o.shouldComponentUpdate != null && o.shouldComponentUpdate(d, o.__s, x) === !1 || _.__v == t.__v)) {
|
|
149
|
+
for (_.__v != t.__v && (o.props = d, o.state = o.__s, o.__d = !1), _.__e = t.__e, _.__k = t.__k, _.__k.some(function(D) {
|
|
150
|
+
D && (D.__ = _);
|
|
151
|
+
}), W = 0; W < o._sb.length; W++) o.__h.push(o._sb[W]);
|
|
152
|
+
o._sb = [], o.__h.length && u.push(o);
|
|
153
|
+
break _;
|
|
154
|
+
}
|
|
155
|
+
o.componentWillUpdate != null && o.componentWillUpdate(d, o.__s, x), v && o.componentDidUpdate != null && o.__h.push(function() {
|
|
156
|
+
o.componentDidUpdate(s, g, k);
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
if (o.context = x, o.props = d, o.__P = e, o.__e = !1, U = m.__r, o_ = 0, v) {
|
|
160
|
+
for (o.state = o.__s, o.__d = !1, U && U(_), p = o.render(o.props, o.state, o.context), j = 0; j < o._sb.length; j++) o.__h.push(o._sb[j]);
|
|
161
|
+
o._sb = [];
|
|
162
|
+
} else do
|
|
163
|
+
o.__d = !1, U && U(_), p = o.render(o.props, o.state, o.context), o.state = o.__s;
|
|
164
|
+
while (o.__d && ++o_ < 25);
|
|
165
|
+
o.state = o.__s, o.getChildContext != null && (n = w(w({}, n), o.getChildContext())), v && !a && o.getSnapshotBeforeUpdate != null && (k = o.getSnapshotBeforeUpdate(s, g)), l = H_(e, q(z = p != null && p.type === L && p.key == null ? p.props.children : p) ? z : [z], _, t, n, i, r, u, l, f, c), o.base = _.__e, _.__u &= -161, o.__h.length && u.push(o), b && (o.__E = o.__ = null);
|
|
166
|
+
} catch (D) {
|
|
167
|
+
if (_.__v = null, f || r != null) if (D.then) {
|
|
168
|
+
for (_.__u |= f ? 160 : 128; l && l.nodeType == 8 && l.nextSibling; ) l = l.nextSibling;
|
|
169
|
+
r[r.indexOf(l)] = null, _.__e = l;
|
|
170
|
+
} else for (B = r.length; B--; ) __(r[B]);
|
|
171
|
+
else _.__e = t.__e, _.__k = t.__k;
|
|
172
|
+
m.__e(D, _, t);
|
|
173
|
+
}
|
|
174
|
+
else r == null && _.__v == t.__v ? (_.__k = t.__k, _.__e = t.__e) : l = _.__e = R_(t.__e, _, t, n, i, r, u, f, c);
|
|
175
|
+
return (p = m.diffed) && p(_), 128 & _.__u ? void 0 : l;
|
|
176
|
+
}
|
|
177
|
+
function E_(e, _, t) {
|
|
178
|
+
for (var n = 0; n < t.length; n++) t_(t[n], t[++n], t[++n]);
|
|
179
|
+
m.__c && m.__c(_, e), e.some(function(i) {
|
|
180
|
+
try {
|
|
181
|
+
e = i.__h, i.__h = [], e.some(function(r) {
|
|
182
|
+
r.call(i);
|
|
183
|
+
});
|
|
184
|
+
} catch (r) {
|
|
185
|
+
m.__e(r, i.__v);
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
function R_(e, _, t, n, i, r, u, l, f) {
|
|
190
|
+
var c, p, o, a, s, g, k, b = t.props, d = _.props, v = _.type;
|
|
191
|
+
if (v == "svg" ? i = "http://www.w3.org/2000/svg" : v == "math" ? i = "http://www.w3.org/1998/Math/MathML" : i || (i = "http://www.w3.org/1999/xhtml"), r != null) {
|
|
192
|
+
for (c = 0; c < r.length; c++) if ((s = r[c]) && "setAttribute" in s == !!v && (v ? s.localName == v : s.nodeType == 3)) {
|
|
193
|
+
e = s, r[c] = null;
|
|
194
|
+
break;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
if (e == null) {
|
|
198
|
+
if (v == null) return document.createTextNode(d);
|
|
199
|
+
e = document.createElementNS(i, v, d.is && d), l && (m.__m && m.__m(_, r), l = !1), r = null;
|
|
200
|
+
}
|
|
201
|
+
if (v === null) b === d || l && e.data === d || (e.data = d);
|
|
202
|
+
else {
|
|
203
|
+
if (r = r && F.call(e.childNodes), b = t.props || M, !l && r != null) for (b = {}, c = 0; c < e.attributes.length; c++) b[(s = e.attributes[c]).name] = s.value;
|
|
204
|
+
for (c in b) if (s = b[c], c != "children") {
|
|
205
|
+
if (c == "dangerouslySetInnerHTML") o = s;
|
|
206
|
+
else if (!(c in d)) {
|
|
207
|
+
if (c == "value" && "defaultValue" in d || c == "checked" && "defaultChecked" in d) continue;
|
|
208
|
+
I(e, c, null, s, i);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
for (c in d) s = d[c], c == "children" ? a = s : c == "dangerouslySetInnerHTML" ? p = s : c == "value" ? g = s : c == "checked" ? k = s : l && typeof s != "function" || b[c] === s || I(e, c, s, b[c], i);
|
|
212
|
+
if (p) l || o && (p.__html === o.__html || p.__html === e.innerHTML) || (e.innerHTML = p.__html), _.__k = [];
|
|
213
|
+
else if (o && (e.innerHTML = ""), H_(e, q(a) ? a : [a], _, t, n, v == "foreignObject" ? "http://www.w3.org/1999/xhtml" : i, r, u, r ? r[0] : t.__k && S(t, 0), l, f), r != null) for (c = r.length; c--; ) __(r[c]);
|
|
214
|
+
l || (c = "value", v == "progress" && g == null ? e.removeAttribute("value") : g !== void 0 && (g !== e[c] || v == "progress" && !g || v == "option" && g !== b[c]) && I(e, c, g, b[c], i), c = "checked", k !== void 0 && k !== e[c] && I(e, c, k, b[c], i));
|
|
215
|
+
}
|
|
216
|
+
return e;
|
|
217
|
+
}
|
|
218
|
+
function t_(e, _, t) {
|
|
219
|
+
try {
|
|
220
|
+
if (typeof e == "function") {
|
|
221
|
+
var n = typeof e.__u == "function";
|
|
222
|
+
n && e.__u(), n && _ == null || (e.__u = e(_));
|
|
223
|
+
} else e.current = _;
|
|
224
|
+
} catch (i) {
|
|
225
|
+
m.__e(i, t);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
function T_(e, _, t) {
|
|
229
|
+
var n, i;
|
|
230
|
+
if (m.unmount && m.unmount(e), (n = e.ref) && (n.current && n.current !== e.__e || t_(n, null, _)), (n = e.__c) != null) {
|
|
231
|
+
if (n.componentWillUnmount) try {
|
|
232
|
+
n.componentWillUnmount();
|
|
233
|
+
} catch (r) {
|
|
234
|
+
m.__e(r, _);
|
|
235
|
+
}
|
|
236
|
+
n.base = n.__P = null;
|
|
237
|
+
}
|
|
238
|
+
if (n = e.__k) for (i = 0; i < n.length; i++) n[i] && T_(n[i], _, t || typeof e.type != "function");
|
|
239
|
+
t || __(e.__e), e.__c = e.__ = e.__e = void 0;
|
|
240
|
+
}
|
|
241
|
+
function q_(e, _, t) {
|
|
242
|
+
return this.constructor(e, t);
|
|
243
|
+
}
|
|
244
|
+
function U_(e, _, t) {
|
|
245
|
+
var n, i, r, u;
|
|
246
|
+
_ == document && (_ = document.documentElement), m.__ && m.__(e, _), i = (n = typeof t == "function") ? null : t && t.__k || _.__k, r = [], u = [], e_(_, e = (!n && t || _).__k = Q(L, null, [e]), i || M, M, _.namespaceURI, !n && t ? [t] : i ? null : _.firstChild ? F.call(_.childNodes) : null, r, !n && t ? t : i ? i.__e : _.firstChild, n, u), E_(r, e, u);
|
|
247
|
+
}
|
|
248
|
+
function D_(e, _) {
|
|
249
|
+
U_(e, _, D_);
|
|
250
|
+
}
|
|
251
|
+
function z_(e, _, t) {
|
|
252
|
+
var n, i, r, u, l = w({}, e.props);
|
|
253
|
+
for (r in e.type && e.type.defaultProps && (u = e.type.defaultProps), _) r == "key" ? n = _[r] : r == "ref" ? i = _[r] : l[r] = _[r] === void 0 && u !== void 0 ? u[r] : _[r];
|
|
254
|
+
return arguments.length > 2 && (l.children = arguments.length > 3 ? F.call(arguments, 2) : t), N(e.type, l, n || e.key, i || e.ref, null);
|
|
255
|
+
}
|
|
256
|
+
function B_(e, _) {
|
|
257
|
+
var t = { __c: _ = "__cC" + w_++, __: e, Consumer: function(n, i) {
|
|
258
|
+
return n.children(i);
|
|
259
|
+
}, Provider: function(n) {
|
|
260
|
+
var i, r;
|
|
261
|
+
return this.getChildContext || (i = /* @__PURE__ */ new Set(), (r = {})[_] = this, this.getChildContext = function() {
|
|
262
|
+
return r;
|
|
263
|
+
}, this.componentWillUnmount = function() {
|
|
264
|
+
i = null;
|
|
265
|
+
}, this.shouldComponentUpdate = function(u) {
|
|
266
|
+
this.props.value !== u.value && i.forEach(function(l) {
|
|
267
|
+
l.__e = !0, X(l);
|
|
268
|
+
});
|
|
269
|
+
}, this.sub = function(u) {
|
|
270
|
+
i.add(u);
|
|
271
|
+
var l = u.componentWillUnmount;
|
|
272
|
+
u.componentWillUnmount = function() {
|
|
273
|
+
i && i.delete(u), l && l.call(u);
|
|
274
|
+
};
|
|
275
|
+
}), n.children;
|
|
276
|
+
} };
|
|
277
|
+
return t.Provider.__ = t.Consumer.contextType = t;
|
|
278
|
+
}
|
|
279
|
+
F = C_.slice, m = { __e: function(e, _, t, n) {
|
|
280
|
+
for (var i, r, u; _ = _.__; ) if ((i = _.__c) && !i.__) try {
|
|
281
|
+
if ((r = i.constructor) && r.getDerivedStateFromError != null && (i.setState(r.getDerivedStateFromError(e)), u = i.__d), i.componentDidCatch != null && (i.componentDidCatch(e, n || {}), u = i.__d), u) return i.__E = i;
|
|
282
|
+
} catch (l) {
|
|
283
|
+
e = l;
|
|
284
|
+
}
|
|
285
|
+
throw e;
|
|
286
|
+
} }, g_ = 0, b_ = function(e) {
|
|
287
|
+
return e != null && e.constructor == null;
|
|
288
|
+
}, A.prototype.setState = function(e, _) {
|
|
289
|
+
var t;
|
|
290
|
+
t = this.__s != null && this.__s !== this.state ? this.__s : this.__s = w({}, this.state), typeof e == "function" && (e = e(w({}, t), this.props)), e && w(t, e), e != null && this.__v && (_ && this._sb.push(_), X(this));
|
|
291
|
+
}, A.prototype.forceUpdate = function(e) {
|
|
292
|
+
this.__v && (this.__e = !0, e && this.__h.push(e), X(this));
|
|
293
|
+
}, A.prototype.render = L, H = [], k_ = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, G = function(e, _) {
|
|
294
|
+
return e.__v.__b - _.__v.__b;
|
|
295
|
+
}, R.__r = 0, $_ = /(PointerCapture)$|Capture$/i, Z = 0, J = c_(!1), K = c_(!0), w_ = 0;
|
|
296
|
+
const ne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
297
|
+
__proto__: null,
|
|
298
|
+
Component: A,
|
|
299
|
+
Fragment: L,
|
|
300
|
+
cloneElement: z_,
|
|
301
|
+
createContext: B_,
|
|
302
|
+
createElement: Q,
|
|
303
|
+
createRef: j_,
|
|
304
|
+
h: Q,
|
|
305
|
+
hydrate: D_,
|
|
306
|
+
get isValidElement() {
|
|
307
|
+
return b_;
|
|
308
|
+
},
|
|
309
|
+
get options() {
|
|
310
|
+
return m;
|
|
311
|
+
},
|
|
312
|
+
render: U_,
|
|
313
|
+
toChildArray: S_
|
|
314
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
315
|
+
var C, h, V, f_, E = 0, N_ = [], y = m, s_ = y.__b, a_ = y.__r, p_ = y.diffed, h_ = y.__c, d_ = y.unmount, v_ = y.__;
|
|
316
|
+
function P(e, _) {
|
|
317
|
+
y.__h && y.__h(h, e, E || _), E = 0;
|
|
318
|
+
var t = h.__H || (h.__H = { __: [], __h: [] });
|
|
319
|
+
return e >= t.__.length && t.__.push({}), t.__[e];
|
|
320
|
+
}
|
|
321
|
+
function A_(e) {
|
|
322
|
+
return E = 1, M_(L_, e);
|
|
323
|
+
}
|
|
324
|
+
function M_(e, _, t) {
|
|
325
|
+
var n = P(C++, 2);
|
|
326
|
+
if (n.t = e, !n.__c && (n.__ = [t ? t(_) : L_(void 0, _), function(l) {
|
|
327
|
+
var f = n.__N ? n.__N[0] : n.__[0], c = n.t(f, l);
|
|
328
|
+
f !== c && (n.__N = [c, n.__[1]], n.__c.setState({}));
|
|
329
|
+
}], n.__c = h, !h.u)) {
|
|
330
|
+
var i = function(l, f, c) {
|
|
331
|
+
if (!n.__c.__H) return !0;
|
|
332
|
+
var p = n.__c.__H.__.filter(function(a) {
|
|
333
|
+
return !!a.__c;
|
|
334
|
+
});
|
|
335
|
+
if (p.every(function(a) {
|
|
336
|
+
return !a.__N;
|
|
337
|
+
})) return !r || r.call(this, l, f, c);
|
|
338
|
+
var o = n.__c.props !== l;
|
|
339
|
+
return p.forEach(function(a) {
|
|
340
|
+
if (a.__N) {
|
|
341
|
+
var s = a.__[0];
|
|
342
|
+
a.__ = a.__N, a.__N = void 0, s !== a.__[0] && (o = !0);
|
|
343
|
+
}
|
|
344
|
+
}), r && r.call(this, l, f, c) || o;
|
|
345
|
+
};
|
|
346
|
+
h.u = !0;
|
|
347
|
+
var r = h.shouldComponentUpdate, u = h.componentWillUpdate;
|
|
348
|
+
h.componentWillUpdate = function(l, f, c) {
|
|
349
|
+
if (this.__e) {
|
|
350
|
+
var p = r;
|
|
351
|
+
r = void 0, i(l, f, c), r = p;
|
|
352
|
+
}
|
|
353
|
+
u && u.call(this, l, f, c);
|
|
354
|
+
}, h.shouldComponentUpdate = i;
|
|
355
|
+
}
|
|
356
|
+
return n.__N || n.__;
|
|
357
|
+
}
|
|
358
|
+
function V_(e, _) {
|
|
359
|
+
var t = P(C++, 3);
|
|
360
|
+
!y.__s && r_(t.__H, _) && (t.__ = e, t.i = _, h.__H.__h.push(t));
|
|
361
|
+
}
|
|
362
|
+
function F_(e, _) {
|
|
363
|
+
var t = P(C++, 4);
|
|
364
|
+
!y.__s && r_(t.__H, _) && (t.__ = e, t.i = _, h.__h.push(t));
|
|
365
|
+
}
|
|
366
|
+
function G_(e) {
|
|
367
|
+
return E = 5, n_(function() {
|
|
368
|
+
return { current: e };
|
|
369
|
+
}, []);
|
|
370
|
+
}
|
|
371
|
+
function J_(e, _, t) {
|
|
372
|
+
E = 6, F_(function() {
|
|
373
|
+
return typeof e == "function" ? (e(_()), function() {
|
|
374
|
+
return e(null);
|
|
375
|
+
}) : e ? (e.current = _(), function() {
|
|
376
|
+
return e.current = null;
|
|
377
|
+
}) : void 0;
|
|
378
|
+
}, t == null ? t : t.concat(e));
|
|
379
|
+
}
|
|
380
|
+
function n_(e, _) {
|
|
381
|
+
var t = P(C++, 7);
|
|
382
|
+
return r_(t.__H, _) && (t.__ = e(), t.__H = _, t.__h = e), t.__;
|
|
383
|
+
}
|
|
384
|
+
function K_(e, _) {
|
|
385
|
+
return E = 8, n_(function() {
|
|
386
|
+
return e;
|
|
387
|
+
}, _);
|
|
388
|
+
}
|
|
389
|
+
function Q_(e) {
|
|
390
|
+
var _ = h.context[e.__c], t = P(C++, 9);
|
|
391
|
+
return t.c = e, _ ? (t.__ == null && (t.__ = !0, _.sub(h)), _.props.value) : e.__;
|
|
392
|
+
}
|
|
393
|
+
function X_(e, _) {
|
|
394
|
+
y.useDebugValue && y.useDebugValue(_ ? _(e) : e);
|
|
395
|
+
}
|
|
396
|
+
function Y_(e) {
|
|
397
|
+
var _ = P(C++, 10), t = A_();
|
|
398
|
+
return _.__ = e, h.componentDidCatch || (h.componentDidCatch = function(n, i) {
|
|
399
|
+
_.__ && _.__(n, i), t[1](n);
|
|
400
|
+
}), [t[0], function() {
|
|
401
|
+
t[1](void 0);
|
|
402
|
+
}];
|
|
403
|
+
}
|
|
404
|
+
function Z_() {
|
|
405
|
+
var e = P(C++, 11);
|
|
406
|
+
if (!e.__) {
|
|
407
|
+
for (var _ = h.__v; _ !== null && !_.__m && _.__ !== null; ) _ = _.__;
|
|
408
|
+
var t = _.__m || (_.__m = [0, 0]);
|
|
409
|
+
e.__ = "P" + t[0] + "-" + t[1]++;
|
|
410
|
+
}
|
|
411
|
+
return e.__;
|
|
412
|
+
}
|
|
413
|
+
function _e() {
|
|
414
|
+
for (var e; e = N_.shift(); ) if (e.__P && e.__H) try {
|
|
415
|
+
e.__H.__h.forEach(O), e.__H.__h.forEach(Y), e.__H.__h = [];
|
|
416
|
+
} catch (_) {
|
|
417
|
+
e.__H.__h = [], y.__e(_, e.__v);
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
y.__b = function(e) {
|
|
421
|
+
h = null, s_ && s_(e);
|
|
422
|
+
}, y.__ = function(e, _) {
|
|
423
|
+
e && _.__k && _.__k.__m && (e.__m = _.__k.__m), v_ && v_(e, _);
|
|
424
|
+
}, y.__r = function(e) {
|
|
425
|
+
a_ && a_(e), C = 0;
|
|
426
|
+
var _ = (h = e.__c).__H;
|
|
427
|
+
_ && (V === h ? (_.__h = [], h.__h = [], _.__.forEach(function(t) {
|
|
428
|
+
t.__N && (t.__ = t.__N), t.i = t.__N = void 0;
|
|
429
|
+
})) : (_.__h.forEach(O), _.__h.forEach(Y), _.__h = [], C = 0)), V = h;
|
|
430
|
+
}, y.diffed = function(e) {
|
|
431
|
+
p_ && p_(e);
|
|
432
|
+
var _ = e.__c;
|
|
433
|
+
_ && _.__H && (_.__H.__h.length && (N_.push(_) !== 1 && f_ === y.requestAnimationFrame || ((f_ = y.requestAnimationFrame) || ee)(_e)), _.__H.__.forEach(function(t) {
|
|
434
|
+
t.i && (t.__H = t.i), t.i = void 0;
|
|
435
|
+
})), V = h = null;
|
|
436
|
+
}, y.__c = function(e, _) {
|
|
437
|
+
_.some(function(t) {
|
|
438
|
+
try {
|
|
439
|
+
t.__h.forEach(O), t.__h = t.__h.filter(function(n) {
|
|
440
|
+
return !n.__ || Y(n);
|
|
441
|
+
});
|
|
442
|
+
} catch (n) {
|
|
443
|
+
_.some(function(i) {
|
|
444
|
+
i.__h && (i.__h = []);
|
|
445
|
+
}), _ = [], y.__e(n, t.__v);
|
|
446
|
+
}
|
|
447
|
+
}), h_ && h_(e, _);
|
|
448
|
+
}, y.unmount = function(e) {
|
|
449
|
+
d_ && d_(e);
|
|
450
|
+
var _, t = e.__c;
|
|
451
|
+
t && t.__H && (t.__H.__.forEach(function(n) {
|
|
452
|
+
try {
|
|
453
|
+
O(n);
|
|
454
|
+
} catch (i) {
|
|
455
|
+
_ = i;
|
|
456
|
+
}
|
|
457
|
+
}), t.__H = void 0, _ && y.__e(_, t.__v));
|
|
458
|
+
};
|
|
459
|
+
var m_ = typeof requestAnimationFrame == "function";
|
|
460
|
+
function ee(e) {
|
|
461
|
+
var _, t = function() {
|
|
462
|
+
clearTimeout(n), m_ && cancelAnimationFrame(_), setTimeout(e);
|
|
463
|
+
}, n = setTimeout(t, 100);
|
|
464
|
+
m_ && (_ = requestAnimationFrame(t));
|
|
465
|
+
}
|
|
466
|
+
function O(e) {
|
|
467
|
+
var _ = h, t = e.__c;
|
|
468
|
+
typeof t == "function" && (e.__c = void 0, t()), h = _;
|
|
469
|
+
}
|
|
470
|
+
function Y(e) {
|
|
471
|
+
var _ = h;
|
|
472
|
+
e.__c = e.__(), h = _;
|
|
473
|
+
}
|
|
474
|
+
function r_(e, _) {
|
|
475
|
+
return !e || e.length !== _.length || _.some(function(t, n) {
|
|
476
|
+
return t !== e[n];
|
|
477
|
+
});
|
|
478
|
+
}
|
|
479
|
+
function L_(e, _) {
|
|
480
|
+
return typeof _ == "function" ? _(e) : _;
|
|
481
|
+
}
|
|
482
|
+
const re = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
483
|
+
__proto__: null,
|
|
484
|
+
useCallback: K_,
|
|
485
|
+
useContext: Q_,
|
|
486
|
+
useDebugValue: X_,
|
|
487
|
+
useEffect: V_,
|
|
488
|
+
useErrorBoundary: Y_,
|
|
489
|
+
useId: Z_,
|
|
490
|
+
useImperativeHandle: J_,
|
|
491
|
+
useLayoutEffect: F_,
|
|
492
|
+
useMemo: n_,
|
|
493
|
+
useReducer: M_,
|
|
494
|
+
useRef: G_,
|
|
495
|
+
useState: A_
|
|
496
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
497
|
+
export {
|
|
498
|
+
U_ as D,
|
|
499
|
+
te as a,
|
|
500
|
+
re as b,
|
|
501
|
+
i_ as c,
|
|
502
|
+
Q as g,
|
|
503
|
+
A_ as h,
|
|
504
|
+
ne as p,
|
|
505
|
+
V_ as y
|
|
506
|
+
};
|