@meshsdk/react 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/.babelrc +6 -0
  2. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/CardanoWallet/CardanoWallet.d.ts +1 -0
  3. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/CardanoWallet/CardanoWallet.jsx +40 -0
  4. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/CardanoWallet/CardanoWallet.jsx.map +1 -0
  5. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/CardanoWallet/WalletBalance.d.ts +5 -0
  6. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/CardanoWallet/WalletBalance.jsx +23 -0
  7. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/CardanoWallet/WalletBalance.jsx.map +1 -0
  8. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/CardanoWallet/index.d.ts +1 -0
  9. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/CardanoWallet/index.js +2 -0
  10. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/CardanoWallet/index.js.map +1 -0
  11. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/ChevronDown/ChevronDown.d.ts +1 -0
  12. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/ChevronDown/ChevronDown.jsx +6 -0
  13. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/ChevronDown/ChevronDown.jsx.map +1 -0
  14. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/ChevronDown/index.d.ts +1 -0
  15. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/ChevronDown/index.js +2 -0
  16. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/ChevronDown/index.js.map +1 -0
  17. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/MenuItem/CheckMark.d.ts +1 -0
  18. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/MenuItem/CheckMark.jsx +6 -0
  19. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/MenuItem/CheckMark.jsx.map +1 -0
  20. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/MenuItem/MenuItem.d.ts +6 -0
  21. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/MenuItem/MenuItem.jsx +33 -0
  22. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/MenuItem/MenuItem.jsx.map +1 -0
  23. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/MenuItem/index.d.ts +1 -0
  24. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/MenuItem/index.js +2 -0
  25. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/MenuItem/index.js.map +1 -0
  26. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/MeshBadge/MeshBadge.d.ts +3 -0
  27. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/MeshBadge/MeshBadge.jsx +15 -0
  28. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/MeshBadge/MeshBadge.jsx.map +1 -0
  29. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/MeshBadge/MeshLogo.d.ts +1 -0
  30. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/MeshBadge/MeshLogo.jsx +6 -0
  31. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/MeshBadge/MeshLogo.jsx.map +1 -0
  32. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/MeshBadge/index.d.ts +1 -0
  33. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/MeshBadge/index.js +2 -0
  34. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/MeshBadge/index.js.map +1 -0
  35. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/StakeButton/StakeButton.d.ts +4 -0
  36. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/StakeButton/StakeButton.jsx +119 -0
  37. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/StakeButton/StakeButton.jsx.map +1 -0
  38. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/StakeButton/index.d.ts +1 -0
  39. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/StakeButton/index.js +2 -0
  40. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/StakeButton/index.js.map +1 -0
  41. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/index.d.ts +3 -0
  42. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/index.js +4 -0
  43. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/index.js.map +1 -0
  44. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/contexts/WalletContext.d.ts +22 -0
  45. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/contexts/WalletContext.jsx +45 -0
  46. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/contexts/WalletContext.jsx.map +1 -0
  47. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/contexts/index.d.ts +4 -0
  48. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/contexts/index.jsx +9 -0
  49. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/contexts/index.jsx.map +1 -0
  50. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/hooks/index.d.ts +9 -0
  51. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/hooks/index.js +10 -0
  52. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/hooks/index.js.map +1 -0
  53. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/hooks/useAddress.d.ts +1 -0
  54. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/hooks/useAddress.js +17 -0
  55. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/hooks/useAddress.js.map +1 -0
  56. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/hooks/useAssets.d.ts +2 -0
  57. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/hooks/useAssets.js +14 -0
  58. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/hooks/useAssets.js.map +1 -0
  59. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/hooks/useLovelace.d.ts +1 -0
  60. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/hooks/useLovelace.js +14 -0
  61. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/hooks/useLovelace.js.map +1 -0
  62. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/hooks/useNetwork.d.ts +1 -0
  63. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/hooks/useNetwork.js +14 -0
  64. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/hooks/useNetwork.js.map +1 -0
  65. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/hooks/useRewardAddress.d.ts +1 -0
  66. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/hooks/useRewardAddress.js +17 -0
  67. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/hooks/useRewardAddress.js.map +1 -0
  68. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/hooks/useWallet.d.ts +9 -0
  69. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/hooks/useWallet.js +18 -0
  70. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/hooks/useWallet.js.map +1 -0
  71. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/hooks/useWalletList.d.ts +2 -0
  72. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/hooks/useWalletList.js +10 -0
  73. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/hooks/useWalletList.js.map +1 -0
  74. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/hooks/useWalletSubmit.d.ts +6 -0
  75. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/hooks/useWalletSubmit.js +30 -0
  76. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/hooks/useWalletSubmit.js.map +1 -0
  77. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/hooks/useWalletTx.d.ts +6 -0
  78. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/hooks/useWalletTx.js +19 -0
  79. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/hooks/useWalletTx.js.map +1 -0
  80. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/index.d.ts +3 -0
  81. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/index.js +4 -0
  82. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/index.js.map +1 -0
  83. package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/tsconfig.tsbuildinfo +1 -0
  84. package/.storybook/main.cjs +18 -0
  85. package/.storybook/preview-head.html +3 -0
  86. package/.storybook/preview.cjs +9 -0
  87. package/README.md +23 -0
  88. package/dist/components/CardanoWallet/CardanoWallet.d.ts +1 -0
  89. package/dist/components/CardanoWallet/WalletBalance.d.ts +5 -0
  90. package/dist/components/CardanoWallet/index.d.ts +1 -0
  91. package/dist/components/ChevronDown/ChevronDown.d.ts +1 -0
  92. package/dist/components/ChevronDown/index.d.ts +1 -0
  93. package/dist/components/MenuItem/CheckMark.d.ts +1 -0
  94. package/dist/components/MenuItem/MenuItem.d.ts +6 -0
  95. package/dist/components/MenuItem/index.d.ts +1 -0
  96. package/dist/components/MeshBadge/MeshBadge.d.ts +3 -0
  97. package/dist/components/MeshBadge/MeshLogo.d.ts +1 -0
  98. package/dist/components/MeshBadge/index.d.ts +1 -0
  99. package/dist/components/StakeButton/StakeButton.d.ts +4 -0
  100. package/dist/components/StakeButton/index.d.ts +1 -0
  101. package/dist/components/index.d.ts +3 -0
  102. package/dist/contexts/WalletContext.d.ts +22 -0
  103. package/dist/contexts/index.d.ts +4 -0
  104. package/dist/hooks/index.d.ts +9 -0
  105. package/dist/hooks/useAddress.d.ts +1 -0
  106. package/dist/hooks/useAssets.d.ts +2 -0
  107. package/dist/hooks/useLovelace.d.ts +1 -0
  108. package/dist/hooks/useNetwork.d.ts +1 -0
  109. package/dist/hooks/useRewardAddress.d.ts +1 -0
  110. package/dist/hooks/useWallet.d.ts +9 -0
  111. package/dist/hooks/useWalletList.d.ts +2 -0
  112. package/dist/hooks/useWalletSubmit.d.ts +6 -0
  113. package/dist/hooks/useWalletTx.d.ts +6 -0
  114. package/dist/index.d.ts +3 -0
  115. package/dist/react.cjs +100 -0
  116. package/dist/react.js +2477 -0
  117. package/package.json +71 -0
  118. package/postcss.config.js +6 -0
  119. package/src/components/CardanoWallet/CardanoWallet.tsx +77 -0
  120. package/src/components/CardanoWallet/WalletBalance.tsx +34 -0
  121. package/src/components/CardanoWallet/index.ts +1 -0
  122. package/src/components/ChevronDown/ChevronDown.tsx +20 -0
  123. package/src/components/ChevronDown/index.ts +1 -0
  124. package/src/components/MenuItem/CheckMark.tsx +13 -0
  125. package/src/components/MenuItem/MenuItem.tsx +41 -0
  126. package/src/components/MenuItem/index.ts +1 -0
  127. package/src/components/MeshBadge/MeshBadge.tsx +23 -0
  128. package/src/components/MeshBadge/MeshLogo.tsx +13 -0
  129. package/src/components/MeshBadge/index.ts +1 -0
  130. package/src/components/StakeButton/StakeButton.tsx +170 -0
  131. package/src/components/StakeButton/index.ts +1 -0
  132. package/src/components/index.ts +3 -0
  133. package/src/contexts/WalletContext.tsx +67 -0
  134. package/src/contexts/index.tsx +13 -0
  135. package/src/hooks/index.ts +9 -0
  136. package/src/hooks/useAddress.ts +23 -0
  137. package/src/hooks/useAssets.ts +21 -0
  138. package/src/hooks/useLovelace.ts +20 -0
  139. package/src/hooks/useNetwork.ts +20 -0
  140. package/src/hooks/useRewardAddress.ts +23 -0
  141. package/src/hooks/useWallet.ts +30 -0
  142. package/src/hooks/useWalletList.ts +13 -0
  143. package/src/hooks/useWalletSubmit.ts +38 -0
  144. package/src/hooks/useWalletTx.ts +29 -0
  145. package/src/index.ts +3 -0
  146. package/src/types/twin.d.ts +29 -0
  147. package/tailwind.config.cjs +9 -0
  148. package/tsconfig.json +103 -0
  149. package/vite.config.js +43 -0
package/dist/react.js ADDED
@@ -0,0 +1,2477 @@
1
+ import Ye, { useRef as Sr, useDebugValue as Ot, useContext as ye, createElement as Cr, createContext as Er, useState as ee, useCallback as ct, useEffect as Me } from "react";
2
+ import { BrowserWallet as qt, Transaction as _r } from "@meshsdk/core";
3
+ var qe = { exports: {} }, B = {};
4
+ /** @license React v16.13.1
5
+ * react-is.production.min.js
6
+ *
7
+ * Copyright (c) Facebook, Inc. and its affiliates.
8
+ *
9
+ * This source code is licensed under the MIT license found in the
10
+ * LICENSE file in the root directory of this source tree.
11
+ */
12
+ var It;
13
+ function xr() {
14
+ if (It)
15
+ return B;
16
+ It = 1;
17
+ var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, f = e ? Symbol.for("react.context") : 60110, h = e ? Symbol.for("react.async_mode") : 60111, v = e ? Symbol.for("react.concurrent_mode") : 60111, w = e ? Symbol.for("react.forward_ref") : 60112, C = e ? Symbol.for("react.suspense") : 60113, D = e ? Symbol.for("react.suspense_list") : 60120, F = e ? Symbol.for("react.memo") : 60115, E = e ? Symbol.for("react.lazy") : 60116, O = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117, I = e ? Symbol.for("react.responder") : 60118, g = e ? Symbol.for("react.scope") : 60119;
18
+ function T(d) {
19
+ if (typeof d == "object" && d !== null) {
20
+ var ae = d.$$typeof;
21
+ switch (ae) {
22
+ case n:
23
+ switch (d = d.type, d) {
24
+ case h:
25
+ case v:
26
+ case o:
27
+ case c:
28
+ case a:
29
+ case C:
30
+ return d;
31
+ default:
32
+ switch (d = d && d.$$typeof, d) {
33
+ case f:
34
+ case w:
35
+ case E:
36
+ case F:
37
+ case s:
38
+ return d;
39
+ default:
40
+ return ae;
41
+ }
42
+ }
43
+ case t:
44
+ return ae;
45
+ }
46
+ }
47
+ }
48
+ function _(d) {
49
+ return T(d) === v;
50
+ }
51
+ return B.AsyncMode = h, B.ConcurrentMode = v, B.ContextConsumer = f, B.ContextProvider = s, B.Element = n, B.ForwardRef = w, B.Fragment = o, B.Lazy = E, B.Memo = F, B.Portal = t, B.Profiler = c, B.StrictMode = a, B.Suspense = C, B.isAsyncMode = function(d) {
52
+ return _(d) || T(d) === h;
53
+ }, B.isConcurrentMode = _, B.isContextConsumer = function(d) {
54
+ return T(d) === f;
55
+ }, B.isContextProvider = function(d) {
56
+ return T(d) === s;
57
+ }, B.isElement = function(d) {
58
+ return typeof d == "object" && d !== null && d.$$typeof === n;
59
+ }, B.isForwardRef = function(d) {
60
+ return T(d) === w;
61
+ }, B.isFragment = function(d) {
62
+ return T(d) === o;
63
+ }, B.isLazy = function(d) {
64
+ return T(d) === E;
65
+ }, B.isMemo = function(d) {
66
+ return T(d) === F;
67
+ }, B.isPortal = function(d) {
68
+ return T(d) === t;
69
+ }, B.isProfiler = function(d) {
70
+ return T(d) === c;
71
+ }, B.isStrictMode = function(d) {
72
+ return T(d) === a;
73
+ }, B.isSuspense = function(d) {
74
+ return T(d) === C;
75
+ }, B.isValidElementType = function(d) {
76
+ return typeof d == "string" || typeof d == "function" || d === o || d === v || d === c || d === a || d === C || d === D || typeof d == "object" && d !== null && (d.$$typeof === E || d.$$typeof === F || d.$$typeof === s || d.$$typeof === f || d.$$typeof === w || d.$$typeof === x || d.$$typeof === I || d.$$typeof === g || d.$$typeof === O);
77
+ }, B.typeOf = T, B;
78
+ }
79
+ var V = {};
80
+ /** @license React v16.13.1
81
+ * react-is.development.js
82
+ *
83
+ * Copyright (c) Facebook, Inc. and its affiliates.
84
+ *
85
+ * This source code is licensed under the MIT license found in the
86
+ * LICENSE file in the root directory of this source tree.
87
+ */
88
+ var Nt;
89
+ function Rr() {
90
+ return Nt || (Nt = 1, process.env.NODE_ENV !== "production" && function() {
91
+ var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, f = e ? Symbol.for("react.context") : 60110, h = e ? Symbol.for("react.async_mode") : 60111, v = e ? Symbol.for("react.concurrent_mode") : 60111, w = e ? Symbol.for("react.forward_ref") : 60112, C = e ? Symbol.for("react.suspense") : 60113, D = e ? Symbol.for("react.suspense_list") : 60120, F = e ? Symbol.for("react.memo") : 60115, E = e ? Symbol.for("react.lazy") : 60116, O = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117, I = e ? Symbol.for("react.responder") : 60118, g = e ? Symbol.for("react.scope") : 60119;
92
+ function T(l) {
93
+ return typeof l == "string" || typeof l == "function" || l === o || l === v || l === c || l === a || l === C || l === D || typeof l == "object" && l !== null && (l.$$typeof === E || l.$$typeof === F || l.$$typeof === s || l.$$typeof === f || l.$$typeof === w || l.$$typeof === x || l.$$typeof === I || l.$$typeof === g || l.$$typeof === O);
94
+ }
95
+ function _(l) {
96
+ if (typeof l == "object" && l !== null) {
97
+ var X = l.$$typeof;
98
+ switch (X) {
99
+ case n:
100
+ var Z = l.type;
101
+ switch (Z) {
102
+ case h:
103
+ case v:
104
+ case o:
105
+ case c:
106
+ case a:
107
+ case C:
108
+ return Z;
109
+ default:
110
+ var P = Z && Z.$$typeof;
111
+ switch (P) {
112
+ case f:
113
+ case w:
114
+ case E:
115
+ case F:
116
+ case s:
117
+ return P;
118
+ default:
119
+ return X;
120
+ }
121
+ }
122
+ case t:
123
+ return X;
124
+ }
125
+ }
126
+ }
127
+ var d = h, ae = v, he = f, ce = s, ue = n, me = w, we = o, ie = E, G = F, te = t, K = c, be = a, le = C, se = !1;
128
+ function Se(l) {
129
+ return se || (se = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), ve(l) || _(l) === h;
130
+ }
131
+ function ve(l) {
132
+ return _(l) === v;
133
+ }
134
+ function Ce(l) {
135
+ return _(l) === f;
136
+ }
137
+ function S(l) {
138
+ return _(l) === s;
139
+ }
140
+ function y(l) {
141
+ return typeof l == "object" && l !== null && l.$$typeof === n;
142
+ }
143
+ function b(l) {
144
+ return _(l) === w;
145
+ }
146
+ function A(l) {
147
+ return _(l) === o;
148
+ }
149
+ function i(l) {
150
+ return _(l) === E;
151
+ }
152
+ function j(l) {
153
+ return _(l) === F;
154
+ }
155
+ function p(l) {
156
+ return _(l) === t;
157
+ }
158
+ function U(l) {
159
+ return _(l) === c;
160
+ }
161
+ function M(l) {
162
+ return _(l) === a;
163
+ }
164
+ function $(l) {
165
+ return _(l) === C;
166
+ }
167
+ V.AsyncMode = d, V.ConcurrentMode = ae, V.ContextConsumer = he, V.ContextProvider = ce, V.Element = ue, V.ForwardRef = me, V.Fragment = we, V.Lazy = ie, V.Memo = G, V.Portal = te, V.Profiler = K, V.StrictMode = be, V.Suspense = le, V.isAsyncMode = Se, V.isConcurrentMode = ve, V.isContextConsumer = Ce, V.isContextProvider = S, V.isElement = y, V.isForwardRef = b, V.isFragment = A, V.isLazy = i, V.isMemo = j, V.isPortal = p, V.isProfiler = U, V.isStrictMode = M, V.isSuspense = $, V.isValidElementType = T, V.typeOf = _;
168
+ }()), V;
169
+ }
170
+ (function(e) {
171
+ process.env.NODE_ENV === "production" ? e.exports = xr() : e.exports = Rr();
172
+ })(qe);
173
+ function kr(e) {
174
+ function n(S, y, b, A, i) {
175
+ for (var j = 0, p = 0, U = 0, M = 0, $, l, X = 0, Z = 0, P, J = P = $ = 0, z = 0, re = 0, Ee = 0, oe = 0, je = b.length, xe = je - 1, pe, R = "", q = "", We = "", Re = "", _e; z < je; ) {
176
+ if (l = b.charCodeAt(z), z === xe && p + M + U + j !== 0 && (p !== 0 && (l = p === 47 ? 10 : 47), M = U = j = 0, je++, xe++), p + M + U + j === 0) {
177
+ if (z === xe && (0 < re && (R = R.replace(D, "")), 0 < R.trim().length)) {
178
+ switch (l) {
179
+ case 32:
180
+ case 9:
181
+ case 59:
182
+ case 13:
183
+ case 10:
184
+ break;
185
+ default:
186
+ R += b.charAt(z);
187
+ }
188
+ l = 59;
189
+ }
190
+ switch (l) {
191
+ case 123:
192
+ for (R = R.trim(), $ = R.charCodeAt(0), P = 1, oe = ++z; z < je; ) {
193
+ switch (l = b.charCodeAt(z)) {
194
+ case 123:
195
+ P++;
196
+ break;
197
+ case 125:
198
+ P--;
199
+ break;
200
+ case 47:
201
+ switch (l = b.charCodeAt(z + 1)) {
202
+ case 42:
203
+ case 47:
204
+ e: {
205
+ for (J = z + 1; J < xe; ++J)
206
+ switch (b.charCodeAt(J)) {
207
+ case 47:
208
+ if (l === 42 && b.charCodeAt(J - 1) === 42 && z + 2 !== J) {
209
+ z = J + 1;
210
+ break e;
211
+ }
212
+ break;
213
+ case 10:
214
+ if (l === 47) {
215
+ z = J + 1;
216
+ break e;
217
+ }
218
+ }
219
+ z = J;
220
+ }
221
+ }
222
+ break;
223
+ case 91:
224
+ l++;
225
+ case 40:
226
+ l++;
227
+ case 34:
228
+ case 39:
229
+ for (; z++ < xe && b.charCodeAt(z) !== l; )
230
+ ;
231
+ }
232
+ if (P === 0)
233
+ break;
234
+ z++;
235
+ }
236
+ switch (P = b.substring(oe, z), $ === 0 && ($ = (R = R.replace(C, "").trim()).charCodeAt(0)), $) {
237
+ case 64:
238
+ switch (0 < re && (R = R.replace(D, "")), l = R.charCodeAt(1), l) {
239
+ case 100:
240
+ case 109:
241
+ case 115:
242
+ case 45:
243
+ re = y;
244
+ break;
245
+ default:
246
+ re = be;
247
+ }
248
+ if (P = n(y, re, P, l, i + 1), oe = P.length, 0 < se && (re = t(be, R, Ee), _e = f(3, P, re, y, G, ie, oe, l, i, A), R = re.join(""), _e !== void 0 && (oe = (P = _e.trim()).length) === 0 && (l = 0, P = "")), 0 < oe)
249
+ switch (l) {
250
+ case 115:
251
+ R = R.replace(ae, s);
252
+ case 100:
253
+ case 109:
254
+ case 45:
255
+ P = R + "{" + P + "}";
256
+ break;
257
+ case 107:
258
+ R = R.replace(g, "$1 $2"), P = R + "{" + P + "}", P = K === 1 || K === 2 && c("@" + P, 3) ? "@-webkit-" + P + "@" + P : "@" + P;
259
+ break;
260
+ default:
261
+ P = R + P, A === 112 && (P = (q += P, ""));
262
+ }
263
+ else
264
+ P = "";
265
+ break;
266
+ default:
267
+ P = n(y, t(y, R, Ee), P, A, i + 1);
268
+ }
269
+ We += P, P = Ee = re = J = $ = 0, R = "", l = b.charCodeAt(++z);
270
+ break;
271
+ case 125:
272
+ case 59:
273
+ if (R = (0 < re ? R.replace(D, "") : R).trim(), 1 < (oe = R.length))
274
+ switch (J === 0 && ($ = R.charCodeAt(0), $ === 45 || 96 < $ && 123 > $) && (oe = (R = R.replace(" ", ":")).length), 0 < se && (_e = f(1, R, y, S, G, ie, q.length, A, i, A)) !== void 0 && (oe = (R = _e.trim()).length) === 0 && (R = "\0\0"), $ = R.charCodeAt(0), l = R.charCodeAt(1), $) {
275
+ case 0:
276
+ break;
277
+ case 64:
278
+ if (l === 105 || l === 99) {
279
+ Re += R + b.charAt(z);
280
+ break;
281
+ }
282
+ default:
283
+ R.charCodeAt(oe - 1) !== 58 && (q += a(R, $, l, R.charCodeAt(2)));
284
+ }
285
+ Ee = re = J = $ = 0, R = "", l = b.charCodeAt(++z);
286
+ }
287
+ }
288
+ switch (l) {
289
+ case 13:
290
+ case 10:
291
+ p === 47 ? p = 0 : 1 + $ === 0 && A !== 107 && 0 < R.length && (re = 1, R += "\0"), 0 < se * ve && f(0, R, y, S, G, ie, q.length, A, i, A), ie = 1, G++;
292
+ break;
293
+ case 59:
294
+ case 125:
295
+ if (p + M + U + j === 0) {
296
+ ie++;
297
+ break;
298
+ }
299
+ default:
300
+ switch (ie++, pe = b.charAt(z), l) {
301
+ case 9:
302
+ case 32:
303
+ if (M + j + p === 0)
304
+ switch (X) {
305
+ case 44:
306
+ case 58:
307
+ case 9:
308
+ case 32:
309
+ pe = "";
310
+ break;
311
+ default:
312
+ l !== 32 && (pe = " ");
313
+ }
314
+ break;
315
+ case 0:
316
+ pe = "\\0";
317
+ break;
318
+ case 12:
319
+ pe = "\\f";
320
+ break;
321
+ case 11:
322
+ pe = "\\v";
323
+ break;
324
+ case 38:
325
+ M + p + j === 0 && (re = Ee = 1, pe = "\f" + pe);
326
+ break;
327
+ case 108:
328
+ if (M + p + j + te === 0 && 0 < J)
329
+ switch (z - J) {
330
+ case 2:
331
+ X === 112 && b.charCodeAt(z - 3) === 58 && (te = X);
332
+ case 8:
333
+ Z === 111 && (te = Z);
334
+ }
335
+ break;
336
+ case 58:
337
+ M + p + j === 0 && (J = z);
338
+ break;
339
+ case 44:
340
+ p + U + M + j === 0 && (re = 1, pe += "\r");
341
+ break;
342
+ case 34:
343
+ case 39:
344
+ p === 0 && (M = M === l ? 0 : M === 0 ? l : M);
345
+ break;
346
+ case 91:
347
+ M + p + U === 0 && j++;
348
+ break;
349
+ case 93:
350
+ M + p + U === 0 && j--;
351
+ break;
352
+ case 41:
353
+ M + p + j === 0 && U--;
354
+ break;
355
+ case 40:
356
+ if (M + p + j === 0) {
357
+ if ($ === 0)
358
+ switch (2 * X + 3 * Z) {
359
+ case 533:
360
+ break;
361
+ default:
362
+ $ = 1;
363
+ }
364
+ U++;
365
+ }
366
+ break;
367
+ case 64:
368
+ p + U + M + j + J + P === 0 && (P = 1);
369
+ break;
370
+ case 42:
371
+ case 47:
372
+ if (!(0 < M + j + U))
373
+ switch (p) {
374
+ case 0:
375
+ switch (2 * l + 3 * b.charCodeAt(z + 1)) {
376
+ case 235:
377
+ p = 47;
378
+ break;
379
+ case 220:
380
+ oe = z, p = 42;
381
+ }
382
+ break;
383
+ case 42:
384
+ l === 47 && X === 42 && oe + 2 !== z && (b.charCodeAt(oe + 2) === 33 && (q += b.substring(oe, z + 1)), pe = "", p = 0);
385
+ }
386
+ }
387
+ p === 0 && (R += pe);
388
+ }
389
+ Z = X, X = l, z++;
390
+ }
391
+ if (oe = q.length, 0 < oe) {
392
+ if (re = y, 0 < se && (_e = f(2, q, re, S, G, ie, oe, A, i, A), _e !== void 0 && (q = _e).length === 0))
393
+ return Re + q + We;
394
+ if (q = re.join(",") + "{" + q + "}", K * te !== 0) {
395
+ switch (K !== 2 || c(q, 2) || (te = 0), te) {
396
+ case 111:
397
+ q = q.replace(_, ":-moz-$1") + q;
398
+ break;
399
+ case 112:
400
+ q = q.replace(T, "::-webkit-input-$1") + q.replace(T, "::-moz-$1") + q.replace(T, ":-ms-input-$1") + q;
401
+ }
402
+ te = 0;
403
+ }
404
+ }
405
+ return Re + q + We;
406
+ }
407
+ function t(S, y, b) {
408
+ var A = y.trim().split(x);
409
+ y = A;
410
+ var i = A.length, j = S.length;
411
+ switch (j) {
412
+ case 0:
413
+ case 1:
414
+ var p = 0;
415
+ for (S = j === 0 ? "" : S[0] + " "; p < i; ++p)
416
+ y[p] = o(S, y[p], b).trim();
417
+ break;
418
+ default:
419
+ var U = p = 0;
420
+ for (y = []; p < i; ++p)
421
+ for (var M = 0; M < j; ++M)
422
+ y[U++] = o(S[M] + " ", A[p], b).trim();
423
+ }
424
+ return y;
425
+ }
426
+ function o(S, y, b) {
427
+ var A = y.charCodeAt(0);
428
+ switch (33 > A && (A = (y = y.trim()).charCodeAt(0)), A) {
429
+ case 38:
430
+ return y.replace(I, "$1" + S.trim());
431
+ case 58:
432
+ return S.trim() + y.replace(I, "$1" + S.trim());
433
+ default:
434
+ if (0 < 1 * b && 0 < y.indexOf("\f"))
435
+ return y.replace(I, (S.charCodeAt(0) === 58 ? "" : "$1") + S.trim());
436
+ }
437
+ return S + y;
438
+ }
439
+ function a(S, y, b, A) {
440
+ var i = S + ";", j = 2 * y + 3 * b + 4 * A;
441
+ if (j === 944) {
442
+ S = i.indexOf(":", 9) + 1;
443
+ var p = i.substring(S, i.length - 1).trim();
444
+ return p = i.substring(0, S).trim() + p + ";", K === 1 || K === 2 && c(p, 1) ? "-webkit-" + p + p : p;
445
+ }
446
+ if (K === 0 || K === 2 && !c(i, 1))
447
+ return i;
448
+ switch (j) {
449
+ case 1015:
450
+ return i.charCodeAt(10) === 97 ? "-webkit-" + i + i : i;
451
+ case 951:
452
+ return i.charCodeAt(3) === 116 ? "-webkit-" + i + i : i;
453
+ case 963:
454
+ return i.charCodeAt(5) === 110 ? "-webkit-" + i + i : i;
455
+ case 1009:
456
+ if (i.charCodeAt(4) !== 100)
457
+ break;
458
+ case 969:
459
+ case 942:
460
+ return "-webkit-" + i + i;
461
+ case 978:
462
+ return "-webkit-" + i + "-moz-" + i + i;
463
+ case 1019:
464
+ case 983:
465
+ return "-webkit-" + i + "-moz-" + i + "-ms-" + i + i;
466
+ case 883:
467
+ if (i.charCodeAt(8) === 45)
468
+ return "-webkit-" + i + i;
469
+ if (0 < i.indexOf("image-set(", 11))
470
+ return i.replace(we, "$1-webkit-$2") + i;
471
+ break;
472
+ case 932:
473
+ if (i.charCodeAt(4) === 45)
474
+ switch (i.charCodeAt(5)) {
475
+ case 103:
476
+ return "-webkit-box-" + i.replace("-grow", "") + "-webkit-" + i + "-ms-" + i.replace("grow", "positive") + i;
477
+ case 115:
478
+ return "-webkit-" + i + "-ms-" + i.replace("shrink", "negative") + i;
479
+ case 98:
480
+ return "-webkit-" + i + "-ms-" + i.replace("basis", "preferred-size") + i;
481
+ }
482
+ return "-webkit-" + i + "-ms-" + i + i;
483
+ case 964:
484
+ return "-webkit-" + i + "-ms-flex-" + i + i;
485
+ case 1023:
486
+ if (i.charCodeAt(8) !== 99)
487
+ break;
488
+ return p = i.substring(i.indexOf(":", 15)).replace("flex-", "").replace("space-between", "justify"), "-webkit-box-pack" + p + "-webkit-" + i + "-ms-flex-pack" + p + i;
489
+ case 1005:
490
+ return E.test(i) ? i.replace(F, ":-webkit-") + i.replace(F, ":-moz-") + i : i;
491
+ case 1e3:
492
+ switch (p = i.substring(13).trim(), y = p.indexOf("-") + 1, p.charCodeAt(0) + p.charCodeAt(y)) {
493
+ case 226:
494
+ p = i.replace(d, "tb");
495
+ break;
496
+ case 232:
497
+ p = i.replace(d, "tb-rl");
498
+ break;
499
+ case 220:
500
+ p = i.replace(d, "lr");
501
+ break;
502
+ default:
503
+ return i;
504
+ }
505
+ return "-webkit-" + i + "-ms-" + p + i;
506
+ case 1017:
507
+ if (i.indexOf("sticky", 9) === -1)
508
+ break;
509
+ case 975:
510
+ switch (y = (i = S).length - 10, p = (i.charCodeAt(y) === 33 ? i.substring(0, y) : i).substring(S.indexOf(":", 7) + 1).trim(), j = p.charCodeAt(0) + (p.charCodeAt(7) | 0)) {
511
+ case 203:
512
+ if (111 > p.charCodeAt(8))
513
+ break;
514
+ case 115:
515
+ i = i.replace(p, "-webkit-" + p) + ";" + i;
516
+ break;
517
+ case 207:
518
+ case 102:
519
+ i = i.replace(p, "-webkit-" + (102 < j ? "inline-" : "") + "box") + ";" + i.replace(p, "-webkit-" + p) + ";" + i.replace(p, "-ms-" + p + "box") + ";" + i;
520
+ }
521
+ return i + ";";
522
+ case 938:
523
+ if (i.charCodeAt(5) === 45)
524
+ switch (i.charCodeAt(6)) {
525
+ case 105:
526
+ return p = i.replace("-items", ""), "-webkit-" + i + "-webkit-box-" + p + "-ms-flex-" + p + i;
527
+ case 115:
528
+ return "-webkit-" + i + "-ms-flex-item-" + i.replace(ce, "") + i;
529
+ default:
530
+ return "-webkit-" + i + "-ms-flex-line-pack" + i.replace("align-content", "").replace(ce, "") + i;
531
+ }
532
+ break;
533
+ case 973:
534
+ case 989:
535
+ if (i.charCodeAt(3) !== 45 || i.charCodeAt(4) === 122)
536
+ break;
537
+ case 931:
538
+ case 953:
539
+ if (me.test(S) === !0)
540
+ return (p = S.substring(S.indexOf(":") + 1)).charCodeAt(0) === 115 ? a(S.replace("stretch", "fill-available"), y, b, A).replace(":fill-available", ":stretch") : i.replace(p, "-webkit-" + p) + i.replace(p, "-moz-" + p.replace("fill-", "")) + i;
541
+ break;
542
+ case 962:
543
+ if (i = "-webkit-" + i + (i.charCodeAt(5) === 102 ? "-ms-" + i : "") + i, b + A === 211 && i.charCodeAt(13) === 105 && 0 < i.indexOf("transform", 10))
544
+ return i.substring(0, i.indexOf(";", 27) + 1).replace(O, "$1-webkit-$2") + i;
545
+ }
546
+ return i;
547
+ }
548
+ function c(S, y) {
549
+ var b = S.indexOf(y === 1 ? ":" : "{"), A = S.substring(0, y !== 3 ? b : 10);
550
+ return b = S.substring(b + 1, S.length - 1), Se(y !== 2 ? A : A.replace(ue, "$1"), b, y);
551
+ }
552
+ function s(S, y) {
553
+ var b = a(y, y.charCodeAt(0), y.charCodeAt(1), y.charCodeAt(2));
554
+ return b !== y + ";" ? b.replace(he, " or ($1)").substring(4) : "(" + y + ")";
555
+ }
556
+ function f(S, y, b, A, i, j, p, U, M, $) {
557
+ for (var l = 0, X = y, Z; l < se; ++l)
558
+ switch (Z = le[l].call(w, S, X, b, A, i, j, p, U, M, $)) {
559
+ case void 0:
560
+ case !1:
561
+ case !0:
562
+ case null:
563
+ break;
564
+ default:
565
+ X = Z;
566
+ }
567
+ if (X !== y)
568
+ return X;
569
+ }
570
+ function h(S) {
571
+ switch (S) {
572
+ case void 0:
573
+ case null:
574
+ se = le.length = 0;
575
+ break;
576
+ default:
577
+ if (typeof S == "function")
578
+ le[se++] = S;
579
+ else if (typeof S == "object")
580
+ for (var y = 0, b = S.length; y < b; ++y)
581
+ h(S[y]);
582
+ else
583
+ ve = !!S | 0;
584
+ }
585
+ return h;
586
+ }
587
+ function v(S) {
588
+ return S = S.prefix, S !== void 0 && (Se = null, S ? typeof S != "function" ? K = 1 : (K = 2, Se = S) : K = 0), v;
589
+ }
590
+ function w(S, y) {
591
+ var b = S;
592
+ if (33 > b.charCodeAt(0) && (b = b.trim()), Ce = b, b = [Ce], 0 < se) {
593
+ var A = f(-1, y, b, b, G, ie, 0, 0, 0, 0);
594
+ A !== void 0 && typeof A == "string" && (y = A);
595
+ }
596
+ var i = n(be, b, y, 0, 0);
597
+ return 0 < se && (A = f(-2, i, b, b, G, ie, i.length, 0, 0, 0), A !== void 0 && (i = A)), Ce = "", te = 0, ie = G = 1, i;
598
+ }
599
+ var C = /^\0+/g, D = /[\0\r\f]/g, F = /: */g, E = /zoo|gra/, O = /([,: ])(transform)/g, x = /,\r+?/g, I = /([\t\r\n ])*\f?&/g, g = /@(k\w+)\s*(\S*)\s*/, T = /::(place)/g, _ = /:(read-only)/g, d = /[svh]\w+-[tblr]{2}/, ae = /\(\s*(.*)\s*\)/g, he = /([\s\S]*?);/g, ce = /-self|flex-/g, ue = /[^]*?(:[rp][el]a[\w-]+)[^]*/, me = /stretch|:\s*\w+\-(?:conte|avail)/, we = /([^-])(image-set\()/, ie = 1, G = 1, te = 0, K = 1, be = [], le = [], se = 0, Se = null, ve = 0, Ce = "";
600
+ return w.use = h, w.set = v, e !== void 0 && v(e), w;
601
+ }
602
+ var Ar = {
603
+ animationIterationCount: 1,
604
+ borderImageOutset: 1,
605
+ borderImageSlice: 1,
606
+ borderImageWidth: 1,
607
+ boxFlex: 1,
608
+ boxFlexGroup: 1,
609
+ boxOrdinalGroup: 1,
610
+ columnCount: 1,
611
+ columns: 1,
612
+ flex: 1,
613
+ flexGrow: 1,
614
+ flexPositive: 1,
615
+ flexShrink: 1,
616
+ flexNegative: 1,
617
+ flexOrder: 1,
618
+ gridRow: 1,
619
+ gridRowEnd: 1,
620
+ gridRowSpan: 1,
621
+ gridRowStart: 1,
622
+ gridColumn: 1,
623
+ gridColumnEnd: 1,
624
+ gridColumnSpan: 1,
625
+ gridColumnStart: 1,
626
+ msGridRow: 1,
627
+ msGridRowSpan: 1,
628
+ msGridColumn: 1,
629
+ msGridColumnSpan: 1,
630
+ fontWeight: 1,
631
+ lineHeight: 1,
632
+ opacity: 1,
633
+ order: 1,
634
+ orphans: 1,
635
+ tabSize: 1,
636
+ widows: 1,
637
+ zIndex: 1,
638
+ zoom: 1,
639
+ WebkitLineClamp: 1,
640
+ fillOpacity: 1,
641
+ floodOpacity: 1,
642
+ stopOpacity: 1,
643
+ strokeDasharray: 1,
644
+ strokeDashoffset: 1,
645
+ strokeMiterlimit: 1,
646
+ strokeOpacity: 1,
647
+ strokeWidth: 1
648
+ };
649
+ function Tr(e) {
650
+ var n = /* @__PURE__ */ Object.create(null);
651
+ return function(t) {
652
+ return n[t] === void 0 && (n[t] = e(t)), n[t];
653
+ };
654
+ }
655
+ var Pr = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, Dt = /* @__PURE__ */ Tr(
656
+ function(e) {
657
+ return Pr.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
658
+ }
659
+ ), vt = qe.exports, Or = {
660
+ childContextTypes: !0,
661
+ contextType: !0,
662
+ contextTypes: !0,
663
+ defaultProps: !0,
664
+ displayName: !0,
665
+ getDefaultProps: !0,
666
+ getDerivedStateFromError: !0,
667
+ getDerivedStateFromProps: !0,
668
+ mixins: !0,
669
+ propTypes: !0,
670
+ type: !0
671
+ }, Ir = {
672
+ name: !0,
673
+ length: !0,
674
+ prototype: !0,
675
+ caller: !0,
676
+ callee: !0,
677
+ arguments: !0,
678
+ arity: !0
679
+ }, Nr = {
680
+ $$typeof: !0,
681
+ render: !0,
682
+ defaultProps: !0,
683
+ displayName: !0,
684
+ propTypes: !0
685
+ }, Xt = {
686
+ $$typeof: !0,
687
+ compare: !0,
688
+ defaultProps: !0,
689
+ displayName: !0,
690
+ propTypes: !0,
691
+ type: !0
692
+ }, gt = {};
693
+ gt[vt.ForwardRef] = Nr;
694
+ gt[vt.Memo] = Xt;
695
+ function Mt(e) {
696
+ return vt.isMemo(e) ? Xt : gt[e.$$typeof] || Or;
697
+ }
698
+ var Dr = Object.defineProperty, Mr = Object.getOwnPropertyNames, jt = Object.getOwnPropertySymbols, jr = Object.getOwnPropertyDescriptor, Wr = Object.getPrototypeOf, Wt = Object.prototype;
699
+ function Kt(e, n, t) {
700
+ if (typeof n != "string") {
701
+ if (Wt) {
702
+ var o = Wr(n);
703
+ o && o !== Wt && Kt(e, o, t);
704
+ }
705
+ var a = Mr(n);
706
+ jt && (a = a.concat(jt(n)));
707
+ for (var c = Mt(e), s = Mt(n), f = 0; f < a.length; ++f) {
708
+ var h = a[f];
709
+ if (!Ir[h] && !(t && t[h]) && !(s && s[h]) && !(c && c[h])) {
710
+ var v = jr(n, h);
711
+ try {
712
+ Dr(e, h, v);
713
+ } catch {
714
+ }
715
+ }
716
+ }
717
+ }
718
+ return e;
719
+ }
720
+ var $r = Kt;
721
+ function Ae() {
722
+ return (Ae = Object.assign || function(e) {
723
+ for (var n = 1; n < arguments.length; n++) {
724
+ var t = arguments[n];
725
+ for (var o in t)
726
+ Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
727
+ }
728
+ return e;
729
+ }).apply(this, arguments);
730
+ }
731
+ var $t = function(e, n) {
732
+ for (var t = [e[0]], o = 0, a = n.length; o < a; o += 1)
733
+ t.push(n[o], e[o + 1]);
734
+ return t;
735
+ }, lt = function(e) {
736
+ return e !== null && typeof e == "object" && (e.toString ? e.toString() : Object.prototype.toString.call(e)) === "[object Object]" && !qe.exports.typeOf(e);
737
+ }, Qe = Object.freeze([]), Pe = Object.freeze({});
738
+ function Ge(e) {
739
+ return typeof e == "function";
740
+ }
741
+ function ut(e) {
742
+ return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
743
+ }
744
+ function yt(e) {
745
+ return e && typeof e.styledComponentId == "string";
746
+ }
747
+ var Fe = typeof process < "u" && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", wt = typeof window < "u" && "HTMLElement" in window, Lr = Boolean(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), Fr = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
748
+
749
+ `, 2: `Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
750
+
751
+ - Are you trying to reuse it across renders?
752
+ - Are you accidentally calling collectStyles twice?
753
+
754
+ `, 3: `Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
755
+
756
+ `, 4: `The \`StyleSheetManager\` expects a valid target or sheet prop!
757
+
758
+ - Does this error occur on the client and is your target falsy?
759
+ - Does this error occur on the server and is the sheet falsy?
760
+
761
+ `, 5: `The clone method cannot be used on the client!
762
+
763
+ - Are you running in a client-like environment on the server?
764
+ - Are you trying to run SSR on the client?
765
+
766
+ `, 6: `Trying to insert a new style tag, but the given Node is unmounted!
767
+
768
+ - Are you using a custom target that isn't mounted?
769
+ - Does your document not have a valid head element?
770
+ - Have you accidentally removed a style tag manually?
771
+
772
+ `, 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: `ThemeProvider: Please make your "theme" prop an object.
773
+
774
+ `, 9: "Missing document `<head>`\n\n", 10: `Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
775
+
776
+ `, 11: `_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
777
+
778
+ `, 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n", 13: `%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
779
+
780
+ `, 14: `ThemeProvider: "theme" prop is required.
781
+
782
+ `, 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: `Reached the limit of how many styled components may be created at group %s.
783
+ You may only create up to 1,073,741,824 components. If you're creating components dynamically,
784
+ as for instance in your render method then you may be running into this limitation.
785
+
786
+ `, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
787
+ Has styled-components' style tag been unmounted or altered by another script?
788
+ ` } : {};
789
+ function zr() {
790
+ for (var e = arguments.length <= 0 ? void 0 : arguments[0], n = [], t = 1, o = arguments.length; t < o; t += 1)
791
+ n.push(t < 0 || arguments.length <= t ? void 0 : arguments[t]);
792
+ return n.forEach(function(a) {
793
+ e = e.replace(/%[a-z]/, a);
794
+ }), e;
795
+ }
796
+ function Be(e) {
797
+ for (var n = arguments.length, t = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
798
+ t[o - 1] = arguments[o];
799
+ throw process.env.NODE_ENV === "production" ? new Error("An error occurred. See https://git.io/JUIaE#" + e + " for more information." + (t.length > 0 ? " Args: " + t.join(", ") : "")) : new Error(zr.apply(void 0, [Fr[e]].concat(t)).trim());
800
+ }
801
+ var Yr = function() {
802
+ function e(t) {
803
+ this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
804
+ }
805
+ var n = e.prototype;
806
+ return n.indexOfGroup = function(t) {
807
+ for (var o = 0, a = 0; a < t; a++)
808
+ o += this.groupSizes[a];
809
+ return o;
810
+ }, n.insertRules = function(t, o) {
811
+ if (t >= this.groupSizes.length) {
812
+ for (var a = this.groupSizes, c = a.length, s = c; t >= s; )
813
+ (s <<= 1) < 0 && Be(16, "" + t);
814
+ this.groupSizes = new Uint32Array(s), this.groupSizes.set(a), this.length = s;
815
+ for (var f = c; f < s; f++)
816
+ this.groupSizes[f] = 0;
817
+ }
818
+ for (var h = this.indexOfGroup(t + 1), v = 0, w = o.length; v < w; v++)
819
+ this.tag.insertRule(h, o[v]) && (this.groupSizes[t]++, h++);
820
+ }, n.clearGroup = function(t) {
821
+ if (t < this.length) {
822
+ var o = this.groupSizes[t], a = this.indexOfGroup(t), c = a + o;
823
+ this.groupSizes[t] = 0;
824
+ for (var s = a; s < c; s++)
825
+ this.tag.deleteRule(a);
826
+ }
827
+ }, n.getGroup = function(t) {
828
+ var o = "";
829
+ if (t >= this.length || this.groupSizes[t] === 0)
830
+ return o;
831
+ for (var a = this.groupSizes[t], c = this.indexOfGroup(t), s = c + a, f = c; f < s; f++)
832
+ o += this.tag.getRule(f) + `/*!sc*/
833
+ `;
834
+ return o;
835
+ }, e;
836
+ }(), Je = /* @__PURE__ */ new Map(), et = /* @__PURE__ */ new Map(), He = 1, Xe = function(e) {
837
+ if (Je.has(e))
838
+ return Je.get(e);
839
+ for (; et.has(He); )
840
+ He++;
841
+ var n = He++;
842
+ return process.env.NODE_ENV !== "production" && ((0 | n) < 0 || n > 1 << 30) && Be(16, "" + n), Je.set(e, n), et.set(n, e), n;
843
+ }, Br = function(e) {
844
+ return et.get(e);
845
+ }, Vr = function(e, n) {
846
+ n >= He && (He = n + 1), Je.set(e, n), et.set(n, e);
847
+ }, Ur = "style[" + Fe + '][data-styled-version="5.3.6"]', Hr = new RegExp("^" + Fe + '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'), Gr = function(e, n, t) {
848
+ for (var o, a = t.split(","), c = 0, s = a.length; c < s; c++)
849
+ (o = a[c]) && e.registerName(n, o);
850
+ }, qr = function(e, n) {
851
+ for (var t = (n.textContent || "").split(`/*!sc*/
852
+ `), o = [], a = 0, c = t.length; a < c; a++) {
853
+ var s = t[a].trim();
854
+ if (s) {
855
+ var f = s.match(Hr);
856
+ if (f) {
857
+ var h = 0 | parseInt(f[1], 10), v = f[2];
858
+ h !== 0 && (Vr(v, h), Gr(e, v, f[3]), e.getTag().insertRules(h, o)), o.length = 0;
859
+ } else
860
+ o.push(s);
861
+ }
862
+ }
863
+ }, Xr = function() {
864
+ return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
865
+ }, Zt = function(e) {
866
+ var n = document.head, t = e || n, o = document.createElement("style"), a = function(f) {
867
+ for (var h = f.childNodes, v = h.length; v >= 0; v--) {
868
+ var w = h[v];
869
+ if (w && w.nodeType === 1 && w.hasAttribute(Fe))
870
+ return w;
871
+ }
872
+ }(t), c = a !== void 0 ? a.nextSibling : null;
873
+ o.setAttribute(Fe, "active"), o.setAttribute("data-styled-version", "5.3.6");
874
+ var s = Xr();
875
+ return s && o.setAttribute("nonce", s), t.insertBefore(o, c), o;
876
+ }, Kr = function() {
877
+ function e(t) {
878
+ var o = this.element = Zt(t);
879
+ o.appendChild(document.createTextNode("")), this.sheet = function(a) {
880
+ if (a.sheet)
881
+ return a.sheet;
882
+ for (var c = document.styleSheets, s = 0, f = c.length; s < f; s++) {
883
+ var h = c[s];
884
+ if (h.ownerNode === a)
885
+ return h;
886
+ }
887
+ Be(17);
888
+ }(o), this.length = 0;
889
+ }
890
+ var n = e.prototype;
891
+ return n.insertRule = function(t, o) {
892
+ try {
893
+ return this.sheet.insertRule(o, t), this.length++, !0;
894
+ } catch {
895
+ return !1;
896
+ }
897
+ }, n.deleteRule = function(t) {
898
+ this.sheet.deleteRule(t), this.length--;
899
+ }, n.getRule = function(t) {
900
+ var o = this.sheet.cssRules[t];
901
+ return o !== void 0 && typeof o.cssText == "string" ? o.cssText : "";
902
+ }, e;
903
+ }(), Zr = function() {
904
+ function e(t) {
905
+ var o = this.element = Zt(t);
906
+ this.nodes = o.childNodes, this.length = 0;
907
+ }
908
+ var n = e.prototype;
909
+ return n.insertRule = function(t, o) {
910
+ if (t <= this.length && t >= 0) {
911
+ var a = document.createTextNode(o), c = this.nodes[t];
912
+ return this.element.insertBefore(a, c || null), this.length++, !0;
913
+ }
914
+ return !1;
915
+ }, n.deleteRule = function(t) {
916
+ this.element.removeChild(this.nodes[t]), this.length--;
917
+ }, n.getRule = function(t) {
918
+ return t < this.length ? this.nodes[t].textContent : "";
919
+ }, e;
920
+ }(), Jr = function() {
921
+ function e(t) {
922
+ this.rules = [], this.length = 0;
923
+ }
924
+ var n = e.prototype;
925
+ return n.insertRule = function(t, o) {
926
+ return t <= this.length && (this.rules.splice(t, 0, o), this.length++, !0);
927
+ }, n.deleteRule = function(t) {
928
+ this.rules.splice(t, 1), this.length--;
929
+ }, n.getRule = function(t) {
930
+ return t < this.length ? this.rules[t] : "";
931
+ }, e;
932
+ }(), Lt = wt, Qr = { isServer: !wt, useCSSOMInjection: !Lr }, Jt = function() {
933
+ function e(t, o, a) {
934
+ t === void 0 && (t = Pe), o === void 0 && (o = {}), this.options = Ae({}, Qr, {}, t), this.gs = o, this.names = new Map(a), this.server = !!t.isServer, !this.server && wt && Lt && (Lt = !1, function(c) {
935
+ for (var s = document.querySelectorAll(Ur), f = 0, h = s.length; f < h; f++) {
936
+ var v = s[f];
937
+ v && v.getAttribute(Fe) !== "active" && (qr(c, v), v.parentNode && v.parentNode.removeChild(v));
938
+ }
939
+ }(this));
940
+ }
941
+ e.registerId = function(t) {
942
+ return Xe(t);
943
+ };
944
+ var n = e.prototype;
945
+ return n.reconstructWithOptions = function(t, o) {
946
+ return o === void 0 && (o = !0), new e(Ae({}, this.options, {}, t), this.gs, o && this.names || void 0);
947
+ }, n.allocateGSInstance = function(t) {
948
+ return this.gs[t] = (this.gs[t] || 0) + 1;
949
+ }, n.getTag = function() {
950
+ return this.tag || (this.tag = (a = (o = this.options).isServer, c = o.useCSSOMInjection, s = o.target, t = a ? new Jr(s) : c ? new Kr(s) : new Zr(s), new Yr(t)));
951
+ var t, o, a, c, s;
952
+ }, n.hasNameForId = function(t, o) {
953
+ return this.names.has(t) && this.names.get(t).has(o);
954
+ }, n.registerName = function(t, o) {
955
+ if (Xe(t), this.names.has(t))
956
+ this.names.get(t).add(o);
957
+ else {
958
+ var a = /* @__PURE__ */ new Set();
959
+ a.add(o), this.names.set(t, a);
960
+ }
961
+ }, n.insertRules = function(t, o, a) {
962
+ this.registerName(t, o), this.getTag().insertRules(Xe(t), a);
963
+ }, n.clearNames = function(t) {
964
+ this.names.has(t) && this.names.get(t).clear();
965
+ }, n.clearRules = function(t) {
966
+ this.getTag().clearGroup(Xe(t)), this.clearNames(t);
967
+ }, n.clearTag = function() {
968
+ this.tag = void 0;
969
+ }, n.toString = function() {
970
+ return function(t) {
971
+ for (var o = t.getTag(), a = o.length, c = "", s = 0; s < a; s++) {
972
+ var f = Br(s);
973
+ if (f !== void 0) {
974
+ var h = t.names.get(f), v = o.getGroup(s);
975
+ if (h && v && h.size) {
976
+ var w = Fe + ".g" + s + '[id="' + f + '"]', C = "";
977
+ h !== void 0 && h.forEach(function(D) {
978
+ D.length > 0 && (C += D + ",");
979
+ }), c += "" + v + w + '{content:"' + C + `"}/*!sc*/
980
+ `;
981
+ }
982
+ }
983
+ }
984
+ return c;
985
+ }(this);
986
+ }, e;
987
+ }(), en = /(a)(d)/gi, Ft = function(e) {
988
+ return String.fromCharCode(e + (e > 25 ? 39 : 97));
989
+ };
990
+ function dt(e) {
991
+ var n, t = "";
992
+ for (n = Math.abs(e); n > 52; n = n / 52 | 0)
993
+ t = Ft(n % 52) + t;
994
+ return (Ft(n % 52) + t).replace(en, "$1-$2");
995
+ }
996
+ var Oe = function(e, n) {
997
+ for (var t = n.length; t; )
998
+ e = 33 * e ^ n.charCodeAt(--t);
999
+ return e;
1000
+ }, Qt = function(e) {
1001
+ return Oe(5381, e);
1002
+ };
1003
+ function tn(e) {
1004
+ for (var n = 0; n < e.length; n += 1) {
1005
+ var t = e[n];
1006
+ if (Ge(t) && !yt(t))
1007
+ return !1;
1008
+ }
1009
+ return !0;
1010
+ }
1011
+ var rn = Qt("5.3.6"), nn = function() {
1012
+ function e(n, t, o) {
1013
+ this.rules = n, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (o === void 0 || o.isStatic) && tn(n), this.componentId = t, this.baseHash = Oe(rn, t), this.baseStyle = o, Jt.registerId(t);
1014
+ }
1015
+ return e.prototype.generateAndInjectStyles = function(n, t, o) {
1016
+ var a = this.componentId, c = [];
1017
+ if (this.baseStyle && c.push(this.baseStyle.generateAndInjectStyles(n, t, o)), this.isStatic && !o.hash)
1018
+ if (this.staticRulesId && t.hasNameForId(a, this.staticRulesId))
1019
+ c.push(this.staticRulesId);
1020
+ else {
1021
+ var s = ze(this.rules, n, t, o).join(""), f = dt(Oe(this.baseHash, s) >>> 0);
1022
+ if (!t.hasNameForId(a, f)) {
1023
+ var h = o(s, "." + f, void 0, a);
1024
+ t.insertRules(a, f, h);
1025
+ }
1026
+ c.push(f), this.staticRulesId = f;
1027
+ }
1028
+ else {
1029
+ for (var v = this.rules.length, w = Oe(this.baseHash, o.hash), C = "", D = 0; D < v; D++) {
1030
+ var F = this.rules[D];
1031
+ if (typeof F == "string")
1032
+ C += F, process.env.NODE_ENV !== "production" && (w = Oe(w, F + D));
1033
+ else if (F) {
1034
+ var E = ze(F, n, t, o), O = Array.isArray(E) ? E.join("") : E;
1035
+ w = Oe(w, O + D), C += O;
1036
+ }
1037
+ }
1038
+ if (C) {
1039
+ var x = dt(w >>> 0);
1040
+ if (!t.hasNameForId(a, x)) {
1041
+ var I = o(C, "." + x, void 0, a);
1042
+ t.insertRules(a, x, I);
1043
+ }
1044
+ c.push(x);
1045
+ }
1046
+ }
1047
+ return c.join(" ");
1048
+ }, e;
1049
+ }(), on = /^\s*\/\/.*$/gm, an = [":", "[", ".", "#"];
1050
+ function sn(e) {
1051
+ var n, t, o, a, c = e === void 0 ? Pe : e, s = c.options, f = s === void 0 ? Pe : s, h = c.plugins, v = h === void 0 ? Qe : h, w = new kr(f), C = [], D = function(O) {
1052
+ function x(I) {
1053
+ if (I)
1054
+ try {
1055
+ O(I + "}");
1056
+ } catch {
1057
+ }
1058
+ }
1059
+ return function(I, g, T, _, d, ae, he, ce, ue, me) {
1060
+ switch (I) {
1061
+ case 1:
1062
+ if (ue === 0 && g.charCodeAt(0) === 64)
1063
+ return O(g + ";"), "";
1064
+ break;
1065
+ case 2:
1066
+ if (ce === 0)
1067
+ return g + "/*|*/";
1068
+ break;
1069
+ case 3:
1070
+ switch (ce) {
1071
+ case 102:
1072
+ case 112:
1073
+ return O(T[0] + g), "";
1074
+ default:
1075
+ return g + (me === 0 ? "/*|*/" : "");
1076
+ }
1077
+ case -2:
1078
+ g.split("/*|*/}").forEach(x);
1079
+ }
1080
+ };
1081
+ }(function(O) {
1082
+ C.push(O);
1083
+ }), F = function(O, x, I) {
1084
+ return x === 0 && an.indexOf(I[t.length]) !== -1 || I.match(a) ? O : "." + n;
1085
+ };
1086
+ function E(O, x, I, g) {
1087
+ g === void 0 && (g = "&");
1088
+ var T = O.replace(on, ""), _ = x && I ? I + " " + x + " { " + T + " }" : T;
1089
+ return n = g, t = x, o = new RegExp("\\" + t + "\\b", "g"), a = new RegExp("(\\" + t + "\\b){2,}"), w(I || !x ? "" : x, _);
1090
+ }
1091
+ return w.use([].concat(v, [function(O, x, I) {
1092
+ O === 2 && I.length && I[0].lastIndexOf(t) > 0 && (I[0] = I[0].replace(o, F));
1093
+ }, D, function(O) {
1094
+ if (O === -2) {
1095
+ var x = C;
1096
+ return C = [], x;
1097
+ }
1098
+ }])), E.hash = v.length ? v.reduce(function(O, x) {
1099
+ return x.name || Be(15), Oe(O, x.name);
1100
+ }, 5381).toString() : "", E;
1101
+ }
1102
+ var er = Ye.createContext();
1103
+ er.Consumer;
1104
+ var tr = Ye.createContext(), cn = (tr.Consumer, new Jt()), ft = sn();
1105
+ function ln() {
1106
+ return ye(er) || cn;
1107
+ }
1108
+ function un() {
1109
+ return ye(tr) || ft;
1110
+ }
1111
+ var dn = function() {
1112
+ function e(n, t) {
1113
+ var o = this;
1114
+ this.inject = function(a, c) {
1115
+ c === void 0 && (c = ft);
1116
+ var s = o.name + c.hash;
1117
+ a.hasNameForId(o.id, s) || a.insertRules(o.id, s, c(o.rules, s, "@keyframes"));
1118
+ }, this.toString = function() {
1119
+ return Be(12, String(o.name));
1120
+ }, this.name = n, this.id = "sc-keyframes-" + n, this.rules = t;
1121
+ }
1122
+ return e.prototype.getName = function(n) {
1123
+ return n === void 0 && (n = ft), this.name + n.hash;
1124
+ }, e;
1125
+ }(), fn = /([A-Z])/, pn = /([A-Z])/g, hn = /^ms-/, mn = function(e) {
1126
+ return "-" + e.toLowerCase();
1127
+ };
1128
+ function zt(e) {
1129
+ return fn.test(e) ? e.replace(pn, mn).replace(hn, "-ms-") : e;
1130
+ }
1131
+ var Yt = function(e) {
1132
+ return e == null || e === !1 || e === "";
1133
+ };
1134
+ function ze(e, n, t, o) {
1135
+ if (Array.isArray(e)) {
1136
+ for (var a, c = [], s = 0, f = e.length; s < f; s += 1)
1137
+ (a = ze(e[s], n, t, o)) !== "" && (Array.isArray(a) ? c.push.apply(c, a) : c.push(a));
1138
+ return c;
1139
+ }
1140
+ if (Yt(e))
1141
+ return "";
1142
+ if (yt(e))
1143
+ return "." + e.styledComponentId;
1144
+ if (Ge(e)) {
1145
+ if (typeof (v = e) != "function" || v.prototype && v.prototype.isReactComponent || !n)
1146
+ return e;
1147
+ var h = e(n);
1148
+ return process.env.NODE_ENV !== "production" && qe.exports.isElement(h) && console.warn(ut(e) + " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."), ze(h, n, t, o);
1149
+ }
1150
+ var v;
1151
+ return e instanceof dn ? t ? (e.inject(t, o), e.getName(o)) : e : lt(e) ? function w(C, D) {
1152
+ var F, E, O = [];
1153
+ for (var x in C)
1154
+ C.hasOwnProperty(x) && !Yt(C[x]) && (Array.isArray(C[x]) && C[x].isCss || Ge(C[x]) ? O.push(zt(x) + ":", C[x], ";") : lt(C[x]) ? O.push.apply(O, w(C[x], x)) : O.push(zt(x) + ": " + (F = x, (E = C[x]) == null || typeof E == "boolean" || E === "" ? "" : typeof E != "number" || E === 0 || F in Ar ? String(E).trim() : E + "px") + ";"));
1155
+ return D ? [D + " {"].concat(O, ["}"]) : O;
1156
+ }(e) : e.toString();
1157
+ }
1158
+ var Bt = function(e) {
1159
+ return Array.isArray(e) && (e.isCss = !0), e;
1160
+ };
1161
+ function vn(e) {
1162
+ for (var n = arguments.length, t = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
1163
+ t[o - 1] = arguments[o];
1164
+ return Ge(e) || lt(e) ? Bt(ze($t(Qe, [e].concat(t)))) : t.length === 0 && e.length === 1 && typeof e[0] == "string" ? e : Bt(ze($t(e, t)));
1165
+ }
1166
+ var Vt = /invalid hook call/i, Ke = /* @__PURE__ */ new Set(), gn = function(e, n) {
1167
+ if (process.env.NODE_ENV !== "production") {
1168
+ var t = "The component " + e + (n ? ' with the id of "' + n + '"' : "") + ` has been created dynamically.
1169
+ You may see this warning because you've called styled inside another component.
1170
+ To resolve this only create new StyledComponents outside of any render method and function component.`, o = console.error;
1171
+ try {
1172
+ var a = !0;
1173
+ console.error = function(c) {
1174
+ if (Vt.test(c))
1175
+ a = !1, Ke.delete(t);
1176
+ else {
1177
+ for (var s = arguments.length, f = new Array(s > 1 ? s - 1 : 0), h = 1; h < s; h++)
1178
+ f[h - 1] = arguments[h];
1179
+ o.apply(void 0, [c].concat(f));
1180
+ }
1181
+ }, Sr(), a && !Ke.has(t) && (console.warn(t), Ke.add(t));
1182
+ } catch (c) {
1183
+ Vt.test(c.message) && Ke.delete(t);
1184
+ } finally {
1185
+ console.error = o;
1186
+ }
1187
+ }
1188
+ }, yn = function(e, n, t) {
1189
+ return t === void 0 && (t = Pe), e.theme !== t.theme && e.theme || n || t.theme;
1190
+ }, wn = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, bn = /(^-|-$)/g;
1191
+ function it(e) {
1192
+ return e.replace(wn, "-").replace(bn, "");
1193
+ }
1194
+ var Sn = function(e) {
1195
+ return dt(Qt(e) >>> 0);
1196
+ };
1197
+ function Ze(e) {
1198
+ return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
1199
+ }
1200
+ var pt = function(e) {
1201
+ return typeof e == "function" || typeof e == "object" && e !== null && !Array.isArray(e);
1202
+ }, Cn = function(e) {
1203
+ return e !== "__proto__" && e !== "constructor" && e !== "prototype";
1204
+ };
1205
+ function En(e, n, t) {
1206
+ var o = e[t];
1207
+ pt(n) && pt(o) ? rr(o, n) : e[t] = n;
1208
+ }
1209
+ function rr(e) {
1210
+ for (var n = arguments.length, t = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
1211
+ t[o - 1] = arguments[o];
1212
+ for (var a = 0, c = t; a < c.length; a++) {
1213
+ var s = c[a];
1214
+ if (pt(s))
1215
+ for (var f in s)
1216
+ Cn(f) && En(e, s[f], f);
1217
+ }
1218
+ return e;
1219
+ }
1220
+ var nr = Ye.createContext();
1221
+ nr.Consumer;
1222
+ var st = {};
1223
+ function or(e, n, t) {
1224
+ var o = yt(e), a = !Ze(e), c = n.attrs, s = c === void 0 ? Qe : c, f = n.componentId, h = f === void 0 ? function(g, T) {
1225
+ var _ = typeof g != "string" ? "sc" : it(g);
1226
+ st[_] = (st[_] || 0) + 1;
1227
+ var d = _ + "-" + Sn("5.3.6" + _ + st[_]);
1228
+ return T ? T + "-" + d : d;
1229
+ }(n.displayName, n.parentComponentId) : f, v = n.displayName, w = v === void 0 ? function(g) {
1230
+ return Ze(g) ? "styled." + g : "Styled(" + ut(g) + ")";
1231
+ }(e) : v, C = n.displayName && n.componentId ? it(n.displayName) + "-" + n.componentId : n.componentId || h, D = o && e.attrs ? Array.prototype.concat(e.attrs, s).filter(Boolean) : s, F = n.shouldForwardProp;
1232
+ o && e.shouldForwardProp && (F = n.shouldForwardProp ? function(g, T, _) {
1233
+ return e.shouldForwardProp(g, T, _) && n.shouldForwardProp(g, T, _);
1234
+ } : e.shouldForwardProp);
1235
+ var E, O = new nn(t, C, o ? e.componentStyle : void 0), x = O.isStatic && s.length === 0, I = function(g, T) {
1236
+ return function(_, d, ae, he) {
1237
+ var ce = _.attrs, ue = _.componentStyle, me = _.defaultProps, we = _.foldedComponentIds, ie = _.shouldForwardProp, G = _.styledComponentId, te = _.target;
1238
+ process.env.NODE_ENV !== "production" && Ot(G);
1239
+ var K = function(A, i, j) {
1240
+ A === void 0 && (A = Pe);
1241
+ var p = Ae({}, i, { theme: A }), U = {};
1242
+ return j.forEach(function(M) {
1243
+ var $, l, X, Z = M;
1244
+ for ($ in Ge(Z) && (Z = Z(p)), Z)
1245
+ p[$] = U[$] = $ === "className" ? (l = U[$], X = Z[$], l && X ? l + " " + X : l || X) : Z[$];
1246
+ }), [p, U];
1247
+ }(yn(d, ye(nr), me) || Pe, d, ce), be = K[0], le = K[1], se = function(A, i, j, p) {
1248
+ var U = ln(), M = un(), $ = i ? A.generateAndInjectStyles(Pe, U, M) : A.generateAndInjectStyles(j, U, M);
1249
+ return process.env.NODE_ENV !== "production" && Ot($), process.env.NODE_ENV !== "production" && !i && p && p($), $;
1250
+ }(ue, he, be, process.env.NODE_ENV !== "production" ? _.warnTooManyClasses : void 0), Se = ae, ve = le.$as || d.$as || le.as || d.as || te, Ce = Ze(ve), S = le !== d ? Ae({}, d, {}, le) : d, y = {};
1251
+ for (var b in S)
1252
+ b[0] !== "$" && b !== "as" && (b === "forwardedAs" ? y.as = S[b] : (ie ? ie(b, Dt, ve) : !Ce || Dt(b)) && (y[b] = S[b]));
1253
+ return d.style && le.style !== d.style && (y.style = Ae({}, d.style, {}, le.style)), y.className = Array.prototype.concat(we, G, se !== G ? se : null, d.className, le.className).filter(Boolean).join(" "), y.ref = Se, Cr(ve, y);
1254
+ }(E, g, T, x);
1255
+ };
1256
+ return I.displayName = w, (E = Ye.forwardRef(I)).attrs = D, E.componentStyle = O, E.displayName = w, E.shouldForwardProp = F, E.foldedComponentIds = o ? Array.prototype.concat(e.foldedComponentIds, e.styledComponentId) : Qe, E.styledComponentId = C, E.target = o ? e.target : e, E.withComponent = function(g) {
1257
+ var T = n.componentId, _ = function(ae, he) {
1258
+ if (ae == null)
1259
+ return {};
1260
+ var ce, ue, me = {}, we = Object.keys(ae);
1261
+ for (ue = 0; ue < we.length; ue++)
1262
+ ce = we[ue], he.indexOf(ce) >= 0 || (me[ce] = ae[ce]);
1263
+ return me;
1264
+ }(n, ["componentId"]), d = T && T + "-" + (Ze(g) ? g : it(ut(g)));
1265
+ return or(g, Ae({}, _, { attrs: D, componentId: d }), t);
1266
+ }, Object.defineProperty(E, "defaultProps", { get: function() {
1267
+ return this._foldedDefaultProps;
1268
+ }, set: function(g) {
1269
+ this._foldedDefaultProps = o ? rr({}, e.defaultProps, g) : g;
1270
+ } }), process.env.NODE_ENV !== "production" && (gn(w, C), E.warnTooManyClasses = function(g, T) {
1271
+ var _ = {}, d = !1;
1272
+ return function(ae) {
1273
+ if (!d && (_[ae] = !0, Object.keys(_).length >= 200)) {
1274
+ var he = T ? ' with the id of "' + T + '"' : "";
1275
+ console.warn("Over 200 classes were generated for component " + g + he + `.
1276
+ Consider using the attrs method, together with a style object for frequently changed styles.
1277
+ Example:
1278
+ const Component = styled.div.attrs(props => ({
1279
+ style: {
1280
+ background: props.background,
1281
+ },
1282
+ }))\`width: 100%;\`
1283
+
1284
+ <Component />`), d = !0, _ = {};
1285
+ }
1286
+ };
1287
+ }(w, C)), E.toString = function() {
1288
+ return "." + E.styledComponentId;
1289
+ }, a && $r(E, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0, withComponent: !0 }), E;
1290
+ }
1291
+ var ht = function(e) {
1292
+ return function n(t, o, a) {
1293
+ if (a === void 0 && (a = Pe), !qe.exports.isValidElementType(o))
1294
+ return Be(1, String(o));
1295
+ var c = function() {
1296
+ return t(o, a, vn.apply(void 0, arguments));
1297
+ };
1298
+ return c.withConfig = function(s) {
1299
+ return n(t, o, Ae({}, a, {}, s));
1300
+ }, c.attrs = function(s) {
1301
+ return n(t, o, Ae({}, a, { attrs: Array.prototype.concat(a.attrs, s).filter(Boolean) }));
1302
+ }, c;
1303
+ }(or, e);
1304
+ };
1305
+ ["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "marquee", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "textPath", "tspan"].forEach(function(e) {
1306
+ ht[e] = ht(e);
1307
+ });
1308
+ process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
1309
+ Perhaps you're looking to import 'styled-components/native'?
1310
+ Read more about this at https://www.styled-components.com/docs/basics#react-native`), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window["__styled-components-init__"] = window["__styled-components-init__"] || 0, window["__styled-components-init__"] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
1311
+
1312
+ See https://s-c.sh/2BAXzed for more info.`), window["__styled-components-init__"] += 1);
1313
+ const fe = ht, Ie = {
1314
+ walletName: "",
1315
+ walletInstance: {}
1316
+ }, _n = () => {
1317
+ const [e, n] = ee(void 0), [t, o] = ee(!1), [a, c] = ee(Ie.walletInstance), [s, f] = ee(Ie.walletName), h = ct(async (w) => {
1318
+ o(!0);
1319
+ try {
1320
+ const C = await qt.enable(w);
1321
+ c(C), f(w), n(void 0);
1322
+ } catch (C) {
1323
+ n(C), console.error(C);
1324
+ }
1325
+ o(!1);
1326
+ }, []), v = ct(() => {
1327
+ f(Ie.walletName), c(Ie.walletInstance);
1328
+ }, []);
1329
+ return {
1330
+ hasConnectedWallet: Ie.walletName !== s,
1331
+ connectedWalletInstance: a,
1332
+ connectedWalletName: s,
1333
+ connectingWallet: t,
1334
+ connectWallet: h,
1335
+ disconnect: v,
1336
+ error: e
1337
+ };
1338
+ }, Te = Er({
1339
+ hasConnectedWallet: !1,
1340
+ connectedWalletInstance: Ie.walletInstance,
1341
+ connectedWalletName: Ie.walletName,
1342
+ connectingWallet: !1
1343
+ });
1344
+ var tt = { exports: {} }, Ve = {};
1345
+ /**
1346
+ * @license React
1347
+ * react-jsx-runtime.production.min.js
1348
+ *
1349
+ * Copyright (c) Facebook, Inc. and its affiliates.
1350
+ *
1351
+ * This source code is licensed under the MIT license found in the
1352
+ * LICENSE file in the root directory of this source tree.
1353
+ */
1354
+ var Ut;
1355
+ function xn() {
1356
+ if (Ut)
1357
+ return Ve;
1358
+ Ut = 1;
1359
+ var e = Ye, n = Symbol.for("react.element"), t = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
1360
+ function s(f, h, v) {
1361
+ var w, C = {}, D = null, F = null;
1362
+ v !== void 0 && (D = "" + v), h.key !== void 0 && (D = "" + h.key), h.ref !== void 0 && (F = h.ref);
1363
+ for (w in h)
1364
+ o.call(h, w) && !c.hasOwnProperty(w) && (C[w] = h[w]);
1365
+ if (f && f.defaultProps)
1366
+ for (w in h = f.defaultProps, h)
1367
+ C[w] === void 0 && (C[w] = h[w]);
1368
+ return { $$typeof: n, type: f, key: D, ref: F, props: C, _owner: a.current };
1369
+ }
1370
+ return Ve.Fragment = t, Ve.jsx = s, Ve.jsxs = s, Ve;
1371
+ }
1372
+ var Ue = {};
1373
+ /**
1374
+ * @license React
1375
+ * react-jsx-runtime.development.js
1376
+ *
1377
+ * Copyright (c) Facebook, Inc. and its affiliates.
1378
+ *
1379
+ * This source code is licensed under the MIT license found in the
1380
+ * LICENSE file in the root directory of this source tree.
1381
+ */
1382
+ var Ht;
1383
+ function Rn() {
1384
+ return Ht || (Ht = 1, process.env.NODE_ENV !== "production" && function() {
1385
+ var e = Ye, n = Symbol.for("react.element"), t = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), f = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), w = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), F = Symbol.for("react.offscreen"), E = Symbol.iterator, O = "@@iterator";
1386
+ function x(r) {
1387
+ if (r === null || typeof r != "object")
1388
+ return null;
1389
+ var u = E && r[E] || r[O];
1390
+ return typeof u == "function" ? u : null;
1391
+ }
1392
+ var I = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
1393
+ function g(r) {
1394
+ {
1395
+ for (var u = arguments.length, m = new Array(u > 1 ? u - 1 : 0), k = 1; k < u; k++)
1396
+ m[k - 1] = arguments[k];
1397
+ T("error", r, m);
1398
+ }
1399
+ }
1400
+ function T(r, u, m) {
1401
+ {
1402
+ var k = I.ReactDebugCurrentFrame, Y = k.getStackAddendum();
1403
+ Y !== "" && (u += "%s", m = m.concat([Y]));
1404
+ var H = m.map(function(L) {
1405
+ return String(L);
1406
+ });
1407
+ H.unshift("Warning: " + u), Function.prototype.apply.call(console[r], console, H);
1408
+ }
1409
+ }
1410
+ var _ = !1, d = !1, ae = !1, he = !1, ce = !1, ue;
1411
+ ue = Symbol.for("react.module.reference");
1412
+ function me(r) {
1413
+ return !!(typeof r == "string" || typeof r == "function" || r === o || r === c || ce || r === a || r === v || r === w || he || r === F || _ || d || ae || typeof r == "object" && r !== null && (r.$$typeof === D || r.$$typeof === C || r.$$typeof === s || r.$$typeof === f || r.$$typeof === h || r.$$typeof === ue || r.getModuleId !== void 0));
1414
+ }
1415
+ function we(r, u, m) {
1416
+ var k = r.displayName;
1417
+ if (k)
1418
+ return k;
1419
+ var Y = u.displayName || u.name || "";
1420
+ return Y !== "" ? m + "(" + Y + ")" : m;
1421
+ }
1422
+ function ie(r) {
1423
+ return r.displayName || "Context";
1424
+ }
1425
+ function G(r) {
1426
+ if (r == null)
1427
+ return null;
1428
+ if (typeof r.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
1429
+ return r.displayName || r.name || null;
1430
+ if (typeof r == "string")
1431
+ return r;
1432
+ switch (r) {
1433
+ case o:
1434
+ return "Fragment";
1435
+ case t:
1436
+ return "Portal";
1437
+ case c:
1438
+ return "Profiler";
1439
+ case a:
1440
+ return "StrictMode";
1441
+ case v:
1442
+ return "Suspense";
1443
+ case w:
1444
+ return "SuspenseList";
1445
+ }
1446
+ if (typeof r == "object")
1447
+ switch (r.$$typeof) {
1448
+ case f:
1449
+ var u = r;
1450
+ return ie(u) + ".Consumer";
1451
+ case s:
1452
+ var m = r;
1453
+ return ie(m._context) + ".Provider";
1454
+ case h:
1455
+ return we(r, r.render, "ForwardRef");
1456
+ case C:
1457
+ var k = r.displayName || null;
1458
+ return k !== null ? k : G(r.type) || "Memo";
1459
+ case D: {
1460
+ var Y = r, H = Y._payload, L = Y._init;
1461
+ try {
1462
+ return G(L(H));
1463
+ } catch {
1464
+ return null;
1465
+ }
1466
+ }
1467
+ }
1468
+ return null;
1469
+ }
1470
+ var te = Object.assign, K = 0, be, le, se, Se, ve, Ce, S;
1471
+ function y() {
1472
+ }
1473
+ y.__reactDisabledLog = !0;
1474
+ function b() {
1475
+ {
1476
+ if (K === 0) {
1477
+ be = console.log, le = console.info, se = console.warn, Se = console.error, ve = console.group, Ce = console.groupCollapsed, S = console.groupEnd;
1478
+ var r = {
1479
+ configurable: !0,
1480
+ enumerable: !0,
1481
+ value: y,
1482
+ writable: !0
1483
+ };
1484
+ Object.defineProperties(console, {
1485
+ info: r,
1486
+ log: r,
1487
+ warn: r,
1488
+ error: r,
1489
+ group: r,
1490
+ groupCollapsed: r,
1491
+ groupEnd: r
1492
+ });
1493
+ }
1494
+ K++;
1495
+ }
1496
+ }
1497
+ function A() {
1498
+ {
1499
+ if (K--, K === 0) {
1500
+ var r = {
1501
+ configurable: !0,
1502
+ enumerable: !0,
1503
+ writable: !0
1504
+ };
1505
+ Object.defineProperties(console, {
1506
+ log: te({}, r, {
1507
+ value: be
1508
+ }),
1509
+ info: te({}, r, {
1510
+ value: le
1511
+ }),
1512
+ warn: te({}, r, {
1513
+ value: se
1514
+ }),
1515
+ error: te({}, r, {
1516
+ value: Se
1517
+ }),
1518
+ group: te({}, r, {
1519
+ value: ve
1520
+ }),
1521
+ groupCollapsed: te({}, r, {
1522
+ value: Ce
1523
+ }),
1524
+ groupEnd: te({}, r, {
1525
+ value: S
1526
+ })
1527
+ });
1528
+ }
1529
+ K < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
1530
+ }
1531
+ }
1532
+ var i = I.ReactCurrentDispatcher, j;
1533
+ function p(r, u, m) {
1534
+ {
1535
+ if (j === void 0)
1536
+ try {
1537
+ throw Error();
1538
+ } catch (Y) {
1539
+ var k = Y.stack.trim().match(/\n( *(at )?)/);
1540
+ j = k && k[1] || "";
1541
+ }
1542
+ return `
1543
+ ` + j + r;
1544
+ }
1545
+ }
1546
+ var U = !1, M;
1547
+ {
1548
+ var $ = typeof WeakMap == "function" ? WeakMap : Map;
1549
+ M = new $();
1550
+ }
1551
+ function l(r, u) {
1552
+ if (!r || U)
1553
+ return "";
1554
+ {
1555
+ var m = M.get(r);
1556
+ if (m !== void 0)
1557
+ return m;
1558
+ }
1559
+ var k;
1560
+ U = !0;
1561
+ var Y = Error.prepareStackTrace;
1562
+ Error.prepareStackTrace = void 0;
1563
+ var H;
1564
+ H = i.current, i.current = null, b();
1565
+ try {
1566
+ if (u) {
1567
+ var L = function() {
1568
+ throw Error();
1569
+ };
1570
+ if (Object.defineProperty(L.prototype, "props", {
1571
+ set: function() {
1572
+ throw Error();
1573
+ }
1574
+ }), typeof Reflect == "object" && Reflect.construct) {
1575
+ try {
1576
+ Reflect.construct(L, []);
1577
+ } catch (ke) {
1578
+ k = ke;
1579
+ }
1580
+ Reflect.construct(r, [], L);
1581
+ } else {
1582
+ try {
1583
+ L.call();
1584
+ } catch (ke) {
1585
+ k = ke;
1586
+ }
1587
+ r.call(L.prototype);
1588
+ }
1589
+ } else {
1590
+ try {
1591
+ throw Error();
1592
+ } catch (ke) {
1593
+ k = ke;
1594
+ }
1595
+ r();
1596
+ }
1597
+ } catch (ke) {
1598
+ if (ke && k && typeof ke.stack == "string") {
1599
+ for (var W = ke.stack.split(`
1600
+ `), de = k.stack.split(`
1601
+ `), Q = W.length - 1, ne = de.length - 1; Q >= 1 && ne >= 0 && W[Q] !== de[ne]; )
1602
+ ne--;
1603
+ for (; Q >= 1 && ne >= 0; Q--, ne--)
1604
+ if (W[Q] !== de[ne]) {
1605
+ if (Q !== 1 || ne !== 1)
1606
+ do
1607
+ if (Q--, ne--, ne < 0 || W[Q] !== de[ne]) {
1608
+ var ge = `
1609
+ ` + W[Q].replace(" at new ", " at ");
1610
+ return r.displayName && ge.includes("<anonymous>") && (ge = ge.replace("<anonymous>", r.displayName)), typeof r == "function" && M.set(r, ge), ge;
1611
+ }
1612
+ while (Q >= 1 && ne >= 0);
1613
+ break;
1614
+ }
1615
+ }
1616
+ } finally {
1617
+ U = !1, i.current = H, A(), Error.prepareStackTrace = Y;
1618
+ }
1619
+ var Le = r ? r.displayName || r.name : "", Pt = Le ? p(Le) : "";
1620
+ return typeof r == "function" && M.set(r, Pt), Pt;
1621
+ }
1622
+ function X(r, u, m) {
1623
+ return l(r, !1);
1624
+ }
1625
+ function Z(r) {
1626
+ var u = r.prototype;
1627
+ return !!(u && u.isReactComponent);
1628
+ }
1629
+ function P(r, u, m) {
1630
+ if (r == null)
1631
+ return "";
1632
+ if (typeof r == "function")
1633
+ return l(r, Z(r));
1634
+ if (typeof r == "string")
1635
+ return p(r);
1636
+ switch (r) {
1637
+ case v:
1638
+ return p("Suspense");
1639
+ case w:
1640
+ return p("SuspenseList");
1641
+ }
1642
+ if (typeof r == "object")
1643
+ switch (r.$$typeof) {
1644
+ case h:
1645
+ return X(r.render);
1646
+ case C:
1647
+ return P(r.type, u, m);
1648
+ case D: {
1649
+ var k = r, Y = k._payload, H = k._init;
1650
+ try {
1651
+ return P(H(Y), u, m);
1652
+ } catch {
1653
+ }
1654
+ }
1655
+ }
1656
+ return "";
1657
+ }
1658
+ var J = Object.prototype.hasOwnProperty, z = {}, re = I.ReactDebugCurrentFrame;
1659
+ function Ee(r) {
1660
+ if (r) {
1661
+ var u = r._owner, m = P(r.type, r._source, u ? u.type : null);
1662
+ re.setExtraStackFrame(m);
1663
+ } else
1664
+ re.setExtraStackFrame(null);
1665
+ }
1666
+ function oe(r, u, m, k, Y) {
1667
+ {
1668
+ var H = Function.call.bind(J);
1669
+ for (var L in r)
1670
+ if (H(r, L)) {
1671
+ var W = void 0;
1672
+ try {
1673
+ if (typeof r[L] != "function") {
1674
+ var de = Error((k || "React class") + ": " + m + " type `" + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[L] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1675
+ throw de.name = "Invariant Violation", de;
1676
+ }
1677
+ W = r[L](u, L, k, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1678
+ } catch (Q) {
1679
+ W = Q;
1680
+ }
1681
+ W && !(W instanceof Error) && (Ee(Y), g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", k || "React class", m, L, typeof W), Ee(null)), W instanceof Error && !(W.message in z) && (z[W.message] = !0, Ee(Y), g("Failed %s type: %s", m, W.message), Ee(null));
1682
+ }
1683
+ }
1684
+ }
1685
+ var je = Array.isArray;
1686
+ function xe(r) {
1687
+ return je(r);
1688
+ }
1689
+ function pe(r) {
1690
+ {
1691
+ var u = typeof Symbol == "function" && Symbol.toStringTag, m = u && r[Symbol.toStringTag] || r.constructor.name || "Object";
1692
+ return m;
1693
+ }
1694
+ }
1695
+ function R(r) {
1696
+ try {
1697
+ return q(r), !1;
1698
+ } catch {
1699
+ return !0;
1700
+ }
1701
+ }
1702
+ function q(r) {
1703
+ return "" + r;
1704
+ }
1705
+ function We(r) {
1706
+ if (R(r))
1707
+ return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", pe(r)), q(r);
1708
+ }
1709
+ var Re = I.ReactCurrentOwner, _e = {
1710
+ key: !0,
1711
+ ref: !0,
1712
+ __self: !0,
1713
+ __source: !0
1714
+ }, Ct, Et, rt;
1715
+ rt = {};
1716
+ function ir(r) {
1717
+ if (J.call(r, "ref")) {
1718
+ var u = Object.getOwnPropertyDescriptor(r, "ref").get;
1719
+ if (u && u.isReactWarning)
1720
+ return !1;
1721
+ }
1722
+ return r.ref !== void 0;
1723
+ }
1724
+ function sr(r) {
1725
+ if (J.call(r, "key")) {
1726
+ var u = Object.getOwnPropertyDescriptor(r, "key").get;
1727
+ if (u && u.isReactWarning)
1728
+ return !1;
1729
+ }
1730
+ return r.key !== void 0;
1731
+ }
1732
+ function cr(r, u) {
1733
+ if (typeof r.ref == "string" && Re.current && u && Re.current.stateNode !== u) {
1734
+ var m = G(Re.current.type);
1735
+ rt[m] || (g('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', G(Re.current.type), r.ref), rt[m] = !0);
1736
+ }
1737
+ }
1738
+ function lr(r, u) {
1739
+ {
1740
+ var m = function() {
1741
+ Ct || (Ct = !0, g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", u));
1742
+ };
1743
+ m.isReactWarning = !0, Object.defineProperty(r, "key", {
1744
+ get: m,
1745
+ configurable: !0
1746
+ });
1747
+ }
1748
+ }
1749
+ function ur(r, u) {
1750
+ {
1751
+ var m = function() {
1752
+ Et || (Et = !0, g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", u));
1753
+ };
1754
+ m.isReactWarning = !0, Object.defineProperty(r, "ref", {
1755
+ get: m,
1756
+ configurable: !0
1757
+ });
1758
+ }
1759
+ }
1760
+ var dr = function(r, u, m, k, Y, H, L) {
1761
+ var W = {
1762
+ $$typeof: n,
1763
+ type: r,
1764
+ key: u,
1765
+ ref: m,
1766
+ props: L,
1767
+ _owner: H
1768
+ };
1769
+ return W._store = {}, Object.defineProperty(W._store, "validated", {
1770
+ configurable: !1,
1771
+ enumerable: !1,
1772
+ writable: !0,
1773
+ value: !1
1774
+ }), Object.defineProperty(W, "_self", {
1775
+ configurable: !1,
1776
+ enumerable: !1,
1777
+ writable: !1,
1778
+ value: k
1779
+ }), Object.defineProperty(W, "_source", {
1780
+ configurable: !1,
1781
+ enumerable: !1,
1782
+ writable: !1,
1783
+ value: Y
1784
+ }), Object.freeze && (Object.freeze(W.props), Object.freeze(W)), W;
1785
+ };
1786
+ function fr(r, u, m, k, Y) {
1787
+ {
1788
+ var H, L = {}, W = null, de = null;
1789
+ m !== void 0 && (We(m), W = "" + m), sr(u) && (We(u.key), W = "" + u.key), ir(u) && (de = u.ref, cr(u, Y));
1790
+ for (H in u)
1791
+ J.call(u, H) && !_e.hasOwnProperty(H) && (L[H] = u[H]);
1792
+ if (r && r.defaultProps) {
1793
+ var Q = r.defaultProps;
1794
+ for (H in Q)
1795
+ L[H] === void 0 && (L[H] = Q[H]);
1796
+ }
1797
+ if (W || de) {
1798
+ var ne = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
1799
+ W && lr(L, ne), de && ur(L, ne);
1800
+ }
1801
+ return dr(r, W, de, Y, k, Re.current, L);
1802
+ }
1803
+ }
1804
+ var nt = I.ReactCurrentOwner, _t = I.ReactDebugCurrentFrame;
1805
+ function $e(r) {
1806
+ if (r) {
1807
+ var u = r._owner, m = P(r.type, r._source, u ? u.type : null);
1808
+ _t.setExtraStackFrame(m);
1809
+ } else
1810
+ _t.setExtraStackFrame(null);
1811
+ }
1812
+ var ot;
1813
+ ot = !1;
1814
+ function at(r) {
1815
+ return typeof r == "object" && r !== null && r.$$typeof === n;
1816
+ }
1817
+ function xt() {
1818
+ {
1819
+ if (nt.current) {
1820
+ var r = G(nt.current.type);
1821
+ if (r)
1822
+ return `
1823
+
1824
+ Check the render method of \`` + r + "`.";
1825
+ }
1826
+ return "";
1827
+ }
1828
+ }
1829
+ function pr(r) {
1830
+ {
1831
+ if (r !== void 0) {
1832
+ var u = r.fileName.replace(/^.*[\\\/]/, ""), m = r.lineNumber;
1833
+ return `
1834
+
1835
+ Check your code at ` + u + ":" + m + ".";
1836
+ }
1837
+ return "";
1838
+ }
1839
+ }
1840
+ var Rt = {};
1841
+ function hr(r) {
1842
+ {
1843
+ var u = xt();
1844
+ if (!u) {
1845
+ var m = typeof r == "string" ? r : r.displayName || r.name;
1846
+ m && (u = `
1847
+
1848
+ Check the top-level render call using <` + m + ">.");
1849
+ }
1850
+ return u;
1851
+ }
1852
+ }
1853
+ function kt(r, u) {
1854
+ {
1855
+ if (!r._store || r._store.validated || r.key != null)
1856
+ return;
1857
+ r._store.validated = !0;
1858
+ var m = hr(u);
1859
+ if (Rt[m])
1860
+ return;
1861
+ Rt[m] = !0;
1862
+ var k = "";
1863
+ r && r._owner && r._owner !== nt.current && (k = " It was passed a child from " + G(r._owner.type) + "."), $e(r), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, k), $e(null);
1864
+ }
1865
+ }
1866
+ function At(r, u) {
1867
+ {
1868
+ if (typeof r != "object")
1869
+ return;
1870
+ if (xe(r))
1871
+ for (var m = 0; m < r.length; m++) {
1872
+ var k = r[m];
1873
+ at(k) && kt(k, u);
1874
+ }
1875
+ else if (at(r))
1876
+ r._store && (r._store.validated = !0);
1877
+ else if (r) {
1878
+ var Y = x(r);
1879
+ if (typeof Y == "function" && Y !== r.entries)
1880
+ for (var H = Y.call(r), L; !(L = H.next()).done; )
1881
+ at(L.value) && kt(L.value, u);
1882
+ }
1883
+ }
1884
+ }
1885
+ function mr(r) {
1886
+ {
1887
+ var u = r.type;
1888
+ if (u == null || typeof u == "string")
1889
+ return;
1890
+ var m;
1891
+ if (typeof u == "function")
1892
+ m = u.propTypes;
1893
+ else if (typeof u == "object" && (u.$$typeof === h || u.$$typeof === C))
1894
+ m = u.propTypes;
1895
+ else
1896
+ return;
1897
+ if (m) {
1898
+ var k = G(u);
1899
+ oe(m, r.props, "prop", k, r);
1900
+ } else if (u.PropTypes !== void 0 && !ot) {
1901
+ ot = !0;
1902
+ var Y = G(u);
1903
+ g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Y || "Unknown");
1904
+ }
1905
+ typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1906
+ }
1907
+ }
1908
+ function vr(r) {
1909
+ {
1910
+ for (var u = Object.keys(r.props), m = 0; m < u.length; m++) {
1911
+ var k = u[m];
1912
+ if (k !== "children" && k !== "key") {
1913
+ $e(r), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", k), $e(null);
1914
+ break;
1915
+ }
1916
+ }
1917
+ r.ref !== null && ($e(r), g("Invalid attribute `ref` supplied to `React.Fragment`."), $e(null));
1918
+ }
1919
+ }
1920
+ function Tt(r, u, m, k, Y, H) {
1921
+ {
1922
+ var L = me(r);
1923
+ if (!L) {
1924
+ var W = "";
1925
+ (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (W += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
1926
+ var de = pr(Y);
1927
+ de ? W += de : W += xt();
1928
+ var Q;
1929
+ r === null ? Q = "null" : xe(r) ? Q = "array" : r !== void 0 && r.$$typeof === n ? (Q = "<" + (G(r.type) || "Unknown") + " />", W = " Did you accidentally export a JSX literal instead of a component?") : Q = typeof r, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Q, W);
1930
+ }
1931
+ var ne = fr(r, u, m, Y, H);
1932
+ if (ne == null)
1933
+ return ne;
1934
+ if (L) {
1935
+ var ge = u.children;
1936
+ if (ge !== void 0)
1937
+ if (k)
1938
+ if (xe(ge)) {
1939
+ for (var Le = 0; Le < ge.length; Le++)
1940
+ At(ge[Le], r);
1941
+ Object.freeze && Object.freeze(ge);
1942
+ } else
1943
+ g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
1944
+ else
1945
+ At(ge, r);
1946
+ }
1947
+ return r === o ? vr(ne) : mr(ne), ne;
1948
+ }
1949
+ }
1950
+ function gr(r, u, m) {
1951
+ return Tt(r, u, m, !0);
1952
+ }
1953
+ function yr(r, u, m) {
1954
+ return Tt(r, u, m, !1);
1955
+ }
1956
+ var wr = yr, br = gr;
1957
+ Ue.Fragment = o, Ue.jsx = wr, Ue.jsxs = br;
1958
+ }()), Ue;
1959
+ }
1960
+ (function(e) {
1961
+ process.env.NODE_ENV === "production" ? e.exports = xn() : e.exports = Rn();
1962
+ })(tt);
1963
+ const Ne = tt.exports.Fragment, N = tt.exports.jsx, De = tt.exports.jsxs, Xn = ({
1964
+ children: e
1965
+ }) => {
1966
+ const n = _n();
1967
+ return /* @__PURE__ */ N(Te.Provider, {
1968
+ value: n,
1969
+ children: e
1970
+ });
1971
+ }, Kn = (e = 0) => {
1972
+ const [n, t] = ee(), {
1973
+ hasConnectedWallet: o,
1974
+ connectedWalletName: a,
1975
+ connectedWalletInstance: c
1976
+ } = ye(Te);
1977
+ return Me(() => {
1978
+ o && c.getUsedAddresses().then((s) => {
1979
+ s[e] && t(s[e]);
1980
+ });
1981
+ }, [e, a]), n;
1982
+ }, Zn = () => {
1983
+ const [e, n] = ee(), {
1984
+ hasConnectedWallet: t,
1985
+ connectedWalletName: o,
1986
+ connectedWalletInstance: a
1987
+ } = ye(Te);
1988
+ return Me(() => {
1989
+ t && a.getAssets().then(n);
1990
+ }, [o]), e;
1991
+ }, bt = () => {
1992
+ const [e, n] = ee([]);
1993
+ return Me(() => {
1994
+ n(qt.getInstalledWallets());
1995
+ }, []), e;
1996
+ }, kn = () => {
1997
+ const [e, n] = ee(), {
1998
+ hasConnectedWallet: t,
1999
+ connectedWalletName: o,
2000
+ connectedWalletInstance: a
2001
+ } = ye(Te);
2002
+ return Me(() => {
2003
+ t && a.getLovelace().then(n);
2004
+ }, [o]), e;
2005
+ }, Jn = () => {
2006
+ const [e, n] = ee(), {
2007
+ hasConnectedWallet: t,
2008
+ connectedWalletName: o,
2009
+ connectedWalletInstance: a
2010
+ } = ye(Te);
2011
+ return Me(() => {
2012
+ t && a.getNetworkId().then(n);
2013
+ }, [o]), e;
2014
+ }, An = (e = 0) => {
2015
+ const [n, t] = ee(), {
2016
+ hasConnectedWallet: o,
2017
+ connectedWalletName: a,
2018
+ connectedWalletInstance: c
2019
+ } = ye(Te);
2020
+ return Me(() => {
2021
+ o && c.getRewardAddresses().then((s) => {
2022
+ s[e] && t(s[e]);
2023
+ });
2024
+ }, [e, a]), n;
2025
+ }, St = () => {
2026
+ const {
2027
+ hasConnectedWallet: e,
2028
+ connectedWalletName: n,
2029
+ connectedWalletInstance: t,
2030
+ connectingWallet: o,
2031
+ connectWallet: a,
2032
+ disconnect: c,
2033
+ error: s
2034
+ } = ye(Te);
2035
+ if (a === void 0 || c === void 0)
2036
+ throw new Error("Can't call useWallet outside of the WalletProvider context");
2037
+ return {
2038
+ name: n,
2039
+ connecting: o,
2040
+ connected: e,
2041
+ wallet: t,
2042
+ connect: a,
2043
+ disconnect: c,
2044
+ error: s
2045
+ };
2046
+ }, Qn = () => {
2047
+ const [e, n] = ee(), [t, o] = ee(), [a, c] = ee(!1), {
2048
+ hasConnectedWallet: s,
2049
+ connectedWalletInstance: f
2050
+ } = ye(Te), h = ct(async (v) => {
2051
+ c(!0);
2052
+ try {
2053
+ if (s) {
2054
+ const w = await f.submitTx(v);
2055
+ n(void 0), o(w);
2056
+ }
2057
+ throw new Error("Please make sure to connect a wallet before calling useWalletSubmit");
2058
+ } catch (w) {
2059
+ n(w), console.error(w);
2060
+ }
2061
+ c(!1);
2062
+ }, []);
2063
+ return {
2064
+ error: e,
2065
+ result: t,
2066
+ submitting: a,
2067
+ submitTx: h
2068
+ };
2069
+ }, Tn = (e = {}) => {
2070
+ const {
2071
+ era: n,
2072
+ parameters: t
2073
+ } = e, {
2074
+ hasConnectedWallet: o,
2075
+ connectedWalletInstance: a
2076
+ } = ye(Te), [c] = ee(() => {
2077
+ if (o)
2078
+ return new _r({
2079
+ initiator: a,
2080
+ parameters: t,
2081
+ era: n
2082
+ });
2083
+ throw new Error("Please make sure to connect a wallet before calling useWalletTx");
2084
+ });
2085
+ return c;
2086
+ }, Pn = fe.svg.withConfig({
2087
+ displayName: "CheckMark__StyledCheckMark",
2088
+ componentId: "sc-bdkad9-0"
2089
+ })({
2090
+ margin: "0.5rem",
2091
+ height: "1.5rem"
2092
+ }), On = () => /* @__PURE__ */ N(Pn, {
2093
+ fill: "currentColor",
2094
+ viewBox: "0 0 512 512",
2095
+ xmlns: "http://www.w3.org/2000/svg",
2096
+ children: /* @__PURE__ */ N("path", {
2097
+ d: "M470.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 338.7 425.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"
2098
+ })
2099
+ }), In = fe.div.withConfig({
2100
+ displayName: "MenuItem__StyledItem",
2101
+ componentId: "sc-obisy3-0"
2102
+ })({
2103
+ display: "flex",
2104
+ cursor: "pointer",
2105
+ alignItems: "center",
2106
+ paddingLeft: "1rem",
2107
+ paddingRight: "1rem",
2108
+ paddingTop: "0.5rem",
2109
+ paddingBottom: "0.5rem",
2110
+ opacity: "0.8",
2111
+ ":hover": {
2112
+ opacity: "1"
2113
+ }
2114
+ }), Nn = fe.img.withConfig({
2115
+ displayName: "MenuItem__StyledIcon",
2116
+ componentId: "sc-obisy3-1"
2117
+ })({
2118
+ margin: "0.25rem",
2119
+ height: "2rem",
2120
+ paddingRight: "0.5rem"
2121
+ }), Dn = fe.span.withConfig({
2122
+ displayName: "MenuItem__StyledName",
2123
+ componentId: "sc-obisy3-2"
2124
+ })({
2125
+ fontSize: "1.25rem",
2126
+ lineHeight: "1.75rem",
2127
+ fontWeight: "400"
2128
+ }), Mn = fe.span.withConfig({
2129
+ displayName: "MenuItem__StyledActive",
2130
+ componentId: "sc-obisy3-3"
2131
+ })({
2132
+ marginLeft: "auto"
2133
+ }), mt = ({
2134
+ icon: e,
2135
+ label: n,
2136
+ action: t,
2137
+ active: o
2138
+ }) => /* @__PURE__ */ De(In, {
2139
+ onClick: t,
2140
+ children: [e && /* @__PURE__ */ N(Nn, {
2141
+ src: e
2142
+ }), /* @__PURE__ */ N(Dn, {
2143
+ children: n.split(" ").map((a) => a.charAt(0).toUpperCase() + a.slice(1).toLowerCase()).join(" ")
2144
+ }), o && /* @__PURE__ */ N(Mn, {
2145
+ children: /* @__PURE__ */ N(On, {})
2146
+ })]
2147
+ }), jn = fe.svg.withConfig({
2148
+ displayName: "ChevronDown__StyledChevronDown",
2149
+ componentId: "sc-17n3mfh-0"
2150
+ })({
2151
+ margin: "0.5rem",
2152
+ height: "1.5rem"
2153
+ }), ar = () => /* @__PURE__ */ N(jn, {
2154
+ fill: "none",
2155
+ "aria-hidden": "true",
2156
+ viewBox: "0 0 24 24",
2157
+ stroke: "currentColor",
2158
+ xmlns: "http://www.w3.org/2000/svg",
2159
+ children: /* @__PURE__ */ N("path", {
2160
+ strokeLinecap: "round",
2161
+ strokeLinejoin: "round",
2162
+ strokeWidth: "2",
2163
+ d: "M19 9l-7 7-7-7"
2164
+ })
2165
+ }), Gt = fe.img.withConfig({
2166
+ displayName: "WalletBalance__StyledIcon",
2167
+ componentId: "sc-8if913-0"
2168
+ })({
2169
+ margin: "0.5rem",
2170
+ height: "1.5rem"
2171
+ }), Wn = fe.span.withConfig({
2172
+ displayName: "WalletBalance__StyledSmall",
2173
+ componentId: "sc-8if913-1"
2174
+ })({
2175
+ fontSize: "0.75rem",
2176
+ lineHeight: "1rem"
2177
+ }), $n = ({
2178
+ connected: e,
2179
+ name: n,
2180
+ connecting: t
2181
+ }) => {
2182
+ const o = bt().find((c) => c.name === n), a = kn();
2183
+ return e && a && o?.icon ? /* @__PURE__ */ De(Ne, {
2184
+ children: [/* @__PURE__ */ N(Gt, {
2185
+ src: o.icon
2186
+ }), "\u20B3 ", parseInt((parseInt(a, 10) / 1e6).toString(), 10), ".", /* @__PURE__ */ N(Wn, {
2187
+ children: a.substr(a.length - 6)
2188
+ })]
2189
+ }) : e && o?.icon ? /* @__PURE__ */ N(Ne, {
2190
+ children: /* @__PURE__ */ N(Gt, {
2191
+ src: o.icon
2192
+ })
2193
+ }) : t ? /* @__PURE__ */ N(Ne, {
2194
+ children: "Connecting..."
2195
+ }) : /* @__PURE__ */ De(Ne, {
2196
+ children: ["Connect Wallet ", /* @__PURE__ */ N(ar, {})]
2197
+ });
2198
+ }, Ln = fe.button.withConfig({
2199
+ displayName: "CardanoWallet__StyledMenuButton",
2200
+ componentId: "sc-13vl5pq-0"
2201
+ })({
2202
+ display: "flex",
2203
+ width: "15rem",
2204
+ alignItems: "center",
2205
+ justifyContent: "center",
2206
+ borderTopLeftRadius: "0.375rem",
2207
+ borderTopRightRadius: "0.375rem",
2208
+ borderWidth: "1px",
2209
+ paddingLeft: "1rem",
2210
+ paddingRight: "1rem",
2211
+ paddingTop: "0.5rem",
2212
+ paddingBottom: "0.5rem",
2213
+ fontSize: "1.125rem",
2214
+ lineHeight: "1.75rem",
2215
+ fontWeight: "400",
2216
+ "--tw-shadow": "0 1px 2px 0 rgb(0 0 0 / 0.05)",
2217
+ "--tw-shadow-colored": "0 1px 2px 0 var(--tw-shadow-color)",
2218
+ boxShadow: "var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"
2219
+ }), Fn = fe.div.withConfig({
2220
+ displayName: "CardanoWallet__StyledMenuList",
2221
+ componentId: "sc-13vl5pq-1"
2222
+ })(({
2223
+ hidden: e
2224
+ }) => [{
2225
+ position: "absolute",
2226
+ width: "15rem",
2227
+ borderBottomRightRadius: "0.375rem",
2228
+ borderBottomLeftRadius: "0.375rem",
2229
+ borderWidth: "1px",
2230
+ textAlign: "center",
2231
+ "--tw-shadow": "0 1px 2px 0 rgb(0 0 0 / 0.05)",
2232
+ "--tw-shadow-colored": "0 1px 2px 0 var(--tw-shadow-color)",
2233
+ boxShadow: "var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",
2234
+ "--tw-backdrop-blur": "blur(8px)",
2235
+ backdropFilter: "var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)"
2236
+ }, e && {
2237
+ display: "none"
2238
+ }]), eo = () => {
2239
+ const e = bt(), [n, t] = ee(!0), {
2240
+ connect: o,
2241
+ connecting: a,
2242
+ connected: c,
2243
+ disconnect: s,
2244
+ name: f
2245
+ } = St();
2246
+ return /* @__PURE__ */ De("div", {
2247
+ style: {
2248
+ width: "fit-content"
2249
+ },
2250
+ onMouseEnter: () => t(!1),
2251
+ onMouseLeave: () => t(!0),
2252
+ children: [/* @__PURE__ */ N(Ln, {
2253
+ type: "button",
2254
+ onClick: () => t(!n),
2255
+ children: /* @__PURE__ */ N($n, {
2256
+ name: f,
2257
+ connected: c,
2258
+ connecting: a
2259
+ })
2260
+ }), /* @__PURE__ */ N(Fn, {
2261
+ hidden: n,
2262
+ children: !c && e.length > 0 ? e.map((h, v) => /* @__PURE__ */ N(mt, {
2263
+ icon: h.icon,
2264
+ label: h.name,
2265
+ action: () => {
2266
+ o(h.name), t(!n);
2267
+ },
2268
+ active: f === h.name
2269
+ }, v)) : e.length === 0 ? /* @__PURE__ */ N("span", {
2270
+ children: "No Wallet Found"
2271
+ }) : /* @__PURE__ */ N(Ne, {
2272
+ children: /* @__PURE__ */ N(mt, {
2273
+ active: !1,
2274
+ label: "disconnect",
2275
+ action: s,
2276
+ icon: void 0
2277
+ })
2278
+ })
2279
+ })]
2280
+ });
2281
+ }, zn = fe.svg.withConfig({
2282
+ displayName: "MeshLogo__StyledLogo",
2283
+ componentId: "sc-1nwgent-0"
2284
+ })({
2285
+ height: "4rem",
2286
+ padding: "0.5rem"
2287
+ }), Yn = () => /* @__PURE__ */ N(zn, {
2288
+ fill: "currentColor",
2289
+ viewBox: "0 0 300 200",
2290
+ xmlns: "http://www.w3.org/2000/svg",
2291
+ children: /* @__PURE__ */ N("path", {
2292
+ d: "m289 127-45-60-45-60c-.9-1.3-2.4-2-4-2s-3.1.7-4 2l-37 49.3c-2 2.7-6 2.7-8 0l-37-49.3c-.9-1.3-2.4-2-4-2s-3.1.7-4 2l-45 60-45 60c-1.3 1.8-1.3 4.2 0 6l45 60c.9 1.3 2.4 2 4 2s3.1-.7 4-2l37-49.3c2-2.7 6-2.7 8 0l37 49.3c.9 1.3 2.4 2 4 2s3.1-.7 4-2l37-49.3c2-2.7 6-2.7 8 0l37 49.3c.9 1.3 2.4 2 4 2s3.1-.7 4-2l45-60c1.3-1.8 1.3-4.2 0-6zm-90-103.3 32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0l-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0zm-90 0 32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0l-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0zm-53 152.6-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0l32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0zm90 0-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0l32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0zm90 0-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0l32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0z"
2293
+ })
2294
+ }), Bn = fe.a.withConfig({
2295
+ displayName: "MeshBadge__StyledLink",
2296
+ componentId: "sc-fcpuc3-0"
2297
+ })({
2298
+ display: "flex",
2299
+ maxWidth: "fit-content",
2300
+ flexDirection: "column",
2301
+ alignItems: "center",
2302
+ borderRadius: "0.375rem",
2303
+ borderWidth: "1px",
2304
+ borderStyle: "solid",
2305
+ borderColor: "currentColor",
2306
+ padding: "0.25rem",
2307
+ fontSize: "1.25rem",
2308
+ lineHeight: "1.75rem",
2309
+ fontWeight: "600",
2310
+ "--tw-text-opacity": "1",
2311
+ color: "rgb(68 64 60 / var(--tw-text-opacity))",
2312
+ textDecorationLine: "none"
2313
+ }), to = ({
2314
+ dark: e = !1
2315
+ }) => /* @__PURE__ */ De(Bn, {
2316
+ style: {
2317
+ color: e ? "#EEEEEE" : "#111111",
2318
+ backgroundColor: e ? "#111111" : "#EEEEEE"
2319
+ },
2320
+ href: "https://meshjs.dev/",
2321
+ rel: "noopener noreferrer",
2322
+ target: "_blank",
2323
+ children: [/* @__PURE__ */ N(Yn, {}), "Mesh"]
2324
+ }), Vn = fe.button.withConfig({
2325
+ displayName: "StakeButton__StyledMenuButton",
2326
+ componentId: "sc-2hlzah-0"
2327
+ })({
2328
+ display: "flex",
2329
+ width: "15rem",
2330
+ alignItems: "center",
2331
+ justifyContent: "center",
2332
+ borderTopLeftRadius: "0.375rem",
2333
+ borderTopRightRadius: "0.375rem",
2334
+ borderWidth: "1px",
2335
+ paddingLeft: "1rem",
2336
+ paddingRight: "1rem",
2337
+ paddingTop: "0.5rem",
2338
+ paddingBottom: "0.5rem",
2339
+ fontSize: "1.125rem",
2340
+ lineHeight: "1.75rem",
2341
+ fontWeight: "400",
2342
+ "--tw-shadow": "0 1px 2px 0 rgb(0 0 0 / 0.05)",
2343
+ "--tw-shadow-colored": "0 1px 2px 0 var(--tw-shadow-color)",
2344
+ boxShadow: "var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"
2345
+ }), Un = fe.div.withConfig({
2346
+ displayName: "StakeButton__StyledMenuList",
2347
+ componentId: "sc-2hlzah-1"
2348
+ })(({
2349
+ hidden: e
2350
+ }) => [{
2351
+ position: "absolute",
2352
+ width: "15rem",
2353
+ borderBottomRightRadius: "0.375rem",
2354
+ borderBottomLeftRadius: "0.375rem",
2355
+ borderWidth: "1px",
2356
+ textAlign: "center",
2357
+ "--tw-shadow": "0 1px 2px 0 rgb(0 0 0 / 0.05)",
2358
+ "--tw-shadow-colored": "0 1px 2px 0 var(--tw-shadow-color)",
2359
+ boxShadow: "var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",
2360
+ "--tw-backdrop-blur": "blur(8px)",
2361
+ backdropFilter: "var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)"
2362
+ }, e && {
2363
+ display: "none"
2364
+ }]), ro = ({
2365
+ poolId: e,
2366
+ onCheck: n
2367
+ }) => {
2368
+ const t = bt(), [o, a] = ee(!0), {
2369
+ connect: c,
2370
+ connecting: s,
2371
+ connected: f,
2372
+ name: h
2373
+ } = St();
2374
+ return /* @__PURE__ */ De("div", {
2375
+ style: {
2376
+ width: "fit-content"
2377
+ },
2378
+ onMouseEnter: () => a(!1),
2379
+ onMouseLeave: () => a(!0),
2380
+ children: [/* @__PURE__ */ N(Vn, {
2381
+ type: "button",
2382
+ onClick: () => a(!o),
2383
+ children: f ? /* @__PURE__ */ N(Hn, {
2384
+ poolId: e,
2385
+ onCheck: n
2386
+ }) : s ? /* @__PURE__ */ N(Ne, {
2387
+ children: "Connecting..."
2388
+ }) : /* @__PURE__ */ De(Ne, {
2389
+ children: ["Connect Wallet ", /* @__PURE__ */ N(ar, {})]
2390
+ })
2391
+ }), /* @__PURE__ */ N(Un, {
2392
+ hidden: o || f,
2393
+ children: t.length > 0 ? t.map((v, w) => /* @__PURE__ */ N(mt, {
2394
+ icon: v.icon,
2395
+ label: v.name,
2396
+ action: () => {
2397
+ c(v.name), a(!o);
2398
+ },
2399
+ active: h === v.name
2400
+ }, w)) : /* @__PURE__ */ N("span", {
2401
+ children: "No Wallet Found"
2402
+ })
2403
+ })]
2404
+ });
2405
+ }, Hn = ({
2406
+ poolId: e,
2407
+ onCheck: n
2408
+ }) => {
2409
+ const t = Tn(), {
2410
+ wallet: o
2411
+ } = St(), a = An(), [c, s] = ee(), [f, h] = ee(!1), [v, w] = ee(), [C, D] = ee(!1), [F, E] = ee(!1), O = async () => {
2412
+ try {
2413
+ if (h(!0), a) {
2414
+ const g = await n(a);
2415
+ w(g);
2416
+ }
2417
+ h(!1);
2418
+ } catch (g) {
2419
+ s(g);
2420
+ }
2421
+ }, x = async () => {
2422
+ D(!0), E(!1);
2423
+ try {
2424
+ if (a) {
2425
+ const g = await t.registerStake(a).delegateStake(a, e).build(), T = await o.signTx(g), _ = await o.submitTx(T);
2426
+ console.log("txHash", _), E(!0);
2427
+ }
2428
+ } catch (g) {
2429
+ console.error("error", g), s(g);
2430
+ }
2431
+ D(!1);
2432
+ }, I = async () => {
2433
+ D(!0), E(!1);
2434
+ try {
2435
+ if (a) {
2436
+ const g = await t.delegateStake(a, e).build(), T = await o.signTx(g), _ = await o.submitTx(T);
2437
+ E(!0);
2438
+ }
2439
+ } catch (g) {
2440
+ console.error("error", g), s(g);
2441
+ }
2442
+ D(!1);
2443
+ };
2444
+ return Me(() => {
2445
+ O();
2446
+ }, [a]), f ? /* @__PURE__ */ N("span", {
2447
+ children: "Checking..."
2448
+ }) : C ? /* @__PURE__ */ N("span", {
2449
+ children: "Loading..."
2450
+ }) : F ? /* @__PURE__ */ N("span", {
2451
+ children: "Stake Delegated"
2452
+ }) : v?.active ? v.poolId === e ? /* @__PURE__ */ N("span", {
2453
+ children: "Stake Delegated"
2454
+ }) : /* @__PURE__ */ N("span", {
2455
+ onClick: I,
2456
+ children: "Delegate Stake"
2457
+ }) : /* @__PURE__ */ N("span", {
2458
+ onClick: x,
2459
+ children: "Register Address"
2460
+ });
2461
+ };
2462
+ export {
2463
+ eo as CardanoWallet,
2464
+ to as MeshBadge,
2465
+ Xn as MeshProvider,
2466
+ ro as StakeButton,
2467
+ Te as WalletContext,
2468
+ Kn as useAddress,
2469
+ Zn as useAssets,
2470
+ kn as useLovelace,
2471
+ Jn as useNetwork,
2472
+ An as useRewardAddress,
2473
+ St as useWallet,
2474
+ bt as useWalletList,
2475
+ Qn as useWalletSubmit,
2476
+ Tn as useWalletTx
2477
+ };