astra-modal-test 1.0.5 → 1.0.7

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 (154) hide show
  1. package/.github/workflows/code-quality.yml +43 -0
  2. package/.github/workflows/publish.yml +64 -0
  3. package/README.md +204 -0
  4. package/dist/SwapController-CsNqEWIM.js +447 -0
  5. package/dist/add-Dm_oSEbv.js +19 -0
  6. package/dist/all-wallets-DfLlzQJ3.js +10 -0
  7. package/dist/app-store-BMdJkp6P.js +21 -0
  8. package/dist/apple-BetlVMKw.js +22 -0
  9. package/dist/arrow-bottom-BddPptxy.js +12 -0
  10. package/dist/arrow-bottom-circle-CvdJJniv.js +15 -0
  11. package/dist/arrow-left-Bbq-z1nQ.js +12 -0
  12. package/dist/arrow-right-Bu4_SVLC.js +12 -0
  13. package/dist/arrow-top-CynlXB-M.js +12 -0
  14. package/dist/astra-sdk.es.js +4 -4
  15. package/dist/bank-B9QscNnS.js +18 -0
  16. package/dist/bin-v-tshf8_.js +8 -0
  17. package/dist/bitcoin-C01gkYyN.js +17 -0
  18. package/dist/browser-9uNaCY31.js +18 -0
  19. package/dist/card-hKR9lRzU.js +18 -0
  20. package/dist/{ccip-oZOrZYR9.js → ccip-CUCziAPw.js} +52 -49
  21. package/dist/checkmark-D1M40aM5.js +15 -0
  22. package/dist/checkmark-bold-1_UGl24m.js +12 -0
  23. package/dist/chevron-bottom-BleoRNRL.js +12 -0
  24. package/dist/chevron-left-C9JMU-3B.js +12 -0
  25. package/dist/chevron-right-Daue4WBx.js +12 -0
  26. package/dist/chevron-top-yuXekbUC.js +12 -0
  27. package/dist/chrome-store-BsUFRR7F.js +65 -0
  28. package/dist/circle-BCxdhM5X.js +8 -0
  29. package/dist/clock-7a-DWZQa.js +12 -0
  30. package/dist/close-DMQYuJ0z.js +12 -0
  31. package/dist/clsx.m-DCYaa4RU.js +20 -0
  32. package/dist/coinPlaceholder-DjQ-HnSH.js +12 -0
  33. package/dist/compass-AMecXNVm.js +12 -0
  34. package/dist/copy-CgIPGYbU.js +19 -0
  35. package/dist/cursor-DpYbTNcO.js +7 -0
  36. package/dist/cursor-transparent-C8iPJkn8.js +16 -0
  37. package/dist/desktop-BWVQVGng.js +13 -0
  38. package/dist/disconnect-C6IQRrtF.js +12 -0
  39. package/dist/discord-gH3i-QsC.js +21 -0
  40. package/dist/email-BxYwJC5T.js +10 -0
  41. package/dist/embedded-wallet-DCcVNgkc.js +464 -0
  42. package/dist/ethereum-CGWsmZaC.js +14 -0
  43. package/dist/etherscan-D4EFsAJ4.js +10 -0
  44. package/dist/exclamation-triangle-DNwQ1Xq6.js +8 -0
  45. package/dist/extension-DxQPsN2z.js +12 -0
  46. package/dist/external-link-BeEzrdgR.js +12 -0
  47. package/dist/facebook-B2Ix8_d3.js +30 -0
  48. package/dist/farcaster-BB83p8dC.js +16 -0
  49. package/dist/filters-PzdIomB1.js +12 -0
  50. package/dist/github-gcp1rxX0.js +22 -0
  51. package/dist/google-Qv9lTZcz.js +22 -0
  52. package/dist/help-circle-BLXTMjzX.js +16 -0
  53. package/dist/id-BHg2CRhj.js +16 -0
  54. package/dist/image-DWi1V30x.js +8 -0
  55. package/dist/index-4lbsZ6RQ.js +33 -0
  56. package/dist/index-64U3D9_n.js +21034 -0
  57. package/dist/index-CRU49I0g.js +15911 -0
  58. package/dist/index-ChxXyuZj.js +572 -0
  59. package/dist/index-ClS956E1.js +74511 -0
  60. package/dist/index-Cs4fWw01.js +386 -0
  61. package/dist/index-DfWqgW4h.js +709 -0
  62. package/dist/index-VYNI76FM.js +315 -0
  63. package/dist/index-qfkTLN90.js +10785 -0
  64. package/dist/index-r2ztgVN2.js +1060 -0
  65. package/dist/index-wvh7Yd5J.js +70 -0
  66. package/dist/info-Bl5tmiBJ.js +7 -0
  67. package/dist/info-circle-D2uYywg-.js +16 -0
  68. package/dist/lightbulb-HvXH2AVF.js +7 -0
  69. package/dist/mail-DXOPfnog.js +12 -0
  70. package/dist/mobile-Dd0Gj4vZ.js +13 -0
  71. package/dist/more-DYcnClbB.js +15 -0
  72. package/dist/network-placeholder-CfRZGQfi.js +18 -0
  73. package/dist/nftPlaceholder-DHmFkY55.js +12 -0
  74. package/dist/off-CG2Y30qN.js +8 -0
  75. package/dist/onramp-DoAMTeNm.js +917 -0
  76. package/dist/play-store-B5EYBQto.js +36 -0
  77. package/dist/plus-DPo25_zL.js +17 -0
  78. package/dist/qr-code-BRTO19PL.js +10 -0
  79. package/dist/receive-BvclNdV_.js +179 -0
  80. package/dist/recycle-horizontal-ng_b2eJV.js +13 -0
  81. package/dist/refresh-3kiwRV0w.js +12 -0
  82. package/dist/reown-logo-_9cuIfJD.js +16 -0
  83. package/dist/search-CoJvIxpi.js +12 -0
  84. package/dist/secp256k1-wZyK2iIX.js +1257 -0
  85. package/dist/send-BVKGSR-Z.js +19 -0
  86. package/dist/send-Bkj5YtHe.js +1039 -0
  87. package/dist/socials-DL42HlL5.js +589 -0
  88. package/dist/solana-BjP-_Ioa.js +17 -0
  89. package/dist/swapHorizontal-Do3uBbum.js +12 -0
  90. package/dist/swapHorizontalBold-D7N75BE-.js +12 -0
  91. package/dist/swapHorizontalMedium-BahEVO2x.js +20 -0
  92. package/dist/swapHorizontalRoundedBold-D6Hoi132.js +12 -0
  93. package/dist/swapVertical-P-fnrADh.js +12 -0
  94. package/dist/swaps-DZgbVJZ2.js +1713 -0
  95. package/dist/telegram-DmaL2iB8.js +20 -0
  96. package/dist/three-dots-oXyAsUA6.js +9 -0
  97. package/dist/transactions-BjB5yZN7.js +35 -0
  98. package/dist/twitch-0UGrMr2K.js +22 -0
  99. package/dist/twitterIcon-B97KAbaJ.js +10 -0
  100. package/dist/ui-r6nnVhBA.js +812 -0
  101. package/dist/user-BG1yp56Q.js +7 -0
  102. package/dist/verify-CgzkMSuV.js +12 -0
  103. package/dist/verify-filled-D-TRpWtN.js +12 -0
  104. package/dist/w3m-modal-Drsibcs0.js +1041 -0
  105. package/dist/wallet-CAHsZdfj.js +12 -0
  106. package/dist/wallet-placeholder-agbbreqw.js +18 -0
  107. package/dist/walletconnect-Yd8iXqY9.js +36 -0
  108. package/dist/warning-circle-C0hqC6h_.js +16 -0
  109. package/dist/x-mark-D9_ai2sI.js +7 -0
  110. package/dist/x-z6v1Jegg.js +16 -0
  111. package/eslint.config.mjs +1 -1
  112. package/package.json +14 -13
  113. package/src/apis/lspApi.js +47 -24
  114. package/src/assets/ln.png +0 -0
  115. package/src/assets/network/Arbitrum.png +0 -0
  116. package/src/assets/network/Polygon.png +0 -0
  117. package/src/assets/network/Solana.png +0 -0
  118. package/src/assets/network/botanix.png +0 -0
  119. package/src/assets/network/bsc.svg +13 -0
  120. package/src/assets/pay.png +0 -0
  121. package/src/assets/tokens/usdc.png +0 -0
  122. package/src/assets/tokens/usdt.png +0 -0
  123. package/src/comps/AstraImage.jsx +17 -3
  124. package/src/comps/AstraModal.jsx +22 -16
  125. package/src/comps/AstraModalLogo.jsx +9 -9
  126. package/src/comps/AstraNetwork.jsx +174 -45
  127. package/src/comps/CheckErc20Button.jsx +1 -1
  128. package/src/comps/CommonStyle.jsx +4 -0
  129. package/src/comps/ConnectButton.jsx +16 -33
  130. package/src/comps/ResultModal.jsx +45 -39
  131. package/src/comps/ToLightning.jsx +207 -80
  132. package/src/comps/ToToken.jsx +278 -217
  133. package/src/constants/index.js +20 -4
  134. package/src/hooks/useContract.js +164 -125
  135. package/src/hooks/useGetMinAndMax.js +48 -0
  136. package/src/hooks/useLspApi.js +56 -39
  137. package/src/hooks/useParseInvoice.js +82 -72
  138. package/src/index.jsx +43 -10
  139. package/src/main.jsx +36 -5
  140. package/src/utils/index.js +136 -24
  141. package/vite.config.js +7 -1
  142. package/dist/astra-sdk.umd.js +0 -12578
  143. package/dist/hooks.module-BBZfodGH.js +0 -506
  144. package/dist/index-BKKAfRrw.js +0 -87520
  145. package/dist/index-C2MAIRET.js +0 -2929
  146. package/dist/index-CsRxokSv.js +0 -445
  147. package/dist/index-DQ6iiHxJ.js +0 -13720
  148. package/dist/index-SJhlkSif.js +0 -133
  149. package/dist/w3m-modal-CYJpmgnf.js +0 -267
  150. package/src/constants/contracts/abi/bridge.js +0 -1281
  151. package/src/constants/contracts/abi/index.js +0 -3
  152. package/src/constants/contracts/abi/usdt.js +0 -130
  153. package/src/constants/contracts/abi/watcher.js +0 -437
  154. package/src/constants/contracts/index.js +0 -37
@@ -1,506 +0,0 @@
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
- };