@blockend/widget 1.0.46 → 1.0.48-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/dist/{AllRoutes-ebEKf9Ro.js → AllRoutes-D8LuuVmM.js} +9 -9
  2. package/dist/{Box-CiCWnabh.js → Box-DM9yFOex.js} +8 -8
  3. package/dist/EstGas-BeT31S57.js +13644 -0
  4. package/dist/{Grow-C6PHu0yK.js → Grow-DOn6L3co.js} +2 -2
  5. package/dist/{InputComp-BXSYOI6T.js → InputComp-NuVHgaJr.js} +5 -5
  6. package/dist/{LoadRoute-BNZMhjBq.js → LoadRoute-B67KdzDM.js} +18 -18
  7. package/dist/QuotesProgress-QaDMFoy1.js +28 -0
  8. package/dist/{SwapAsset-5fGa7RI7.js → SwapAsset-DS1khTG7.js} +1 -1
  9. package/dist/{Tooltip-DZnPQjew.js → Tooltip-Ba3WFgGd.js} +15 -15
  10. package/dist/TxnButton-tr4Dz_jE.js +223 -0
  11. package/dist/{add-DliAEKbR.js → add-q9Nf6prg.js} +1 -1
  12. package/dist/{all-wallets-9YBmSsEh.js → all-wallets-DPeT0Mif.js} +1 -1
  13. package/dist/{app-store-cLc_fbJp.js → app-store-DN3WdWdo.js} +1 -1
  14. package/dist/{apple-DmGlSCW4.js → apple-DyzMqifv.js} +1 -1
  15. package/dist/{arrow-bottom-BNKn4j5U.js → arrow-bottom-DqoHxj9Z.js} +1 -1
  16. package/dist/{arrow-bottom-circle-CZL2vTc2.js → arrow-bottom-circle-gYCPf_-a.js} +1 -1
  17. package/dist/{arrow-left-D9JcV0Q-.js → arrow-left-BCb0WGCp.js} +1 -1
  18. package/dist/{arrow-right-DOHZnmbU.js → arrow-right-COFDKXwO.js} +1 -1
  19. package/dist/{arrow-top-Dyu4OO_u.js → arrow-top-A2hPO7gg.js} +1 -1
  20. package/dist/{bank-CtB7x5WX.js → bank-DzMH-tSV.js} +1 -1
  21. package/dist/{basic-sgi7m0S-.js → basic-C5wivloW.js} +3 -3
  22. package/dist/{browser-CPMV76Fc.js → browser-pBih3Y0E.js} +1 -1
  23. package/dist/{card-DZrjJpNd.js → card-CnPr5FkC.js} +1 -1
  24. package/dist/{ccip-rz-h0ONe.js → ccip-Di_Zaa6h.js} +16 -16
  25. package/dist/{checkmark-CO1kXDe-.js → checkmark-DuHkawx4.js} +1 -1
  26. package/dist/{checkmark-bold-g1JkiOD4.js → checkmark-bold-CbTyGrPC.js} +1 -1
  27. package/dist/{chevron-bottom-CeJz8Reo.js → chevron-bottom-ClujWrwS.js} +1 -1
  28. package/dist/{chevron-left-BcYg2UPw.js → chevron-left-Bk48p4Zx.js} +1 -1
  29. package/dist/{chevron-right-BsBn3zrb.js → chevron-right-DNGloKKX.js} +1 -1
  30. package/dist/{chevron-top-CMxkT0uL.js → chevron-top-BeF-AMWu.js} +1 -1
  31. package/dist/{chrome-store-CkCy-7ku.js → chrome-store-DbhS7z0N.js} +1 -1
  32. package/dist/{clock-DMc_CWtO.js → clock-C_6_l4to.js} +1 -1
  33. package/dist/{close-CryuK1CT.js → close-CSt1jFt2.js} +1 -1
  34. package/dist/{coinPlaceholder-DvVl4DoH.js → coinPlaceholder-BCj1y0PN.js} +1 -1
  35. package/dist/{compass-D03r7VwG.js → compass-BylNTlMa.js} +1 -1
  36. package/dist/{copy-DMvE_6eP.js → copy-B5chXsW-.js} +1 -1
  37. package/dist/{core-DCInaJVR.js → core-DMrbUYAd.js} +16 -17
  38. package/dist/{cursor-95Nxz9_g.js → cursor-DOai1hPO.js} +1 -1
  39. package/dist/{cursor-transparent-D8DY5_j7.js → cursor-transparent-Cadcmy6E.js} +1 -1
  40. package/dist/{desktop-CRGnR_c9.js → desktop-DCy_OF9q.js} +1 -1
  41. package/dist/{disconnect-JWp74w81.js → disconnect-d_9YI8yP.js} +1 -1
  42. package/dist/{discord-BRXfeglo.js → discord-C5PncbsA.js} +1 -1
  43. package/dist/{down-RANbXRSh.js → down-B0DJRPMS.js} +2 -2
  44. package/dist/{etherscan-pfbXsPpq.js → etherscan-ClGwr9lW.js} +1 -1
  45. package/dist/{exclamation-triangle-BWZ21L0p.js → exclamation-triangle-UG68kEuv.js} +1 -1
  46. package/dist/{extension-CmXIVuOr.js → extension-Bhr-Ssau.js} +1 -1
  47. package/dist/{external-link-CAybzTlO.js → external-link-BRJo7SZO.js} +1 -1
  48. package/dist/{facebook-DcDQpXBA.js → facebook-BnA-xxoO.js} +1 -1
  49. package/dist/{farcaster-CGXV2sTr.js → farcaster-CvgpGB8R.js} +1 -1
  50. package/dist/{filters-4PzOF6Y_.js → filters-2DNvXC2d.js} +1 -1
  51. package/dist/{getChainIds-DHE0M6xN.js → getChainIds-BJOBostX.js} +2 -2
  52. package/dist/getCosmosAddress-nYlLagxO.js +8398 -0
  53. package/dist/{github-z1VaBQpb.js → github-CqCIZfoi.js} +1 -1
  54. package/dist/{google-DDDXhxRD.js → google-Cb46Xe1N.js} +1 -1
  55. package/dist/{hamburger-x__CpQ8N.js → hamburger-Cj81xHVG.js} +5 -5
  56. package/dist/{help-circle-Hk0xQlw5.js → help-circle-BQm3Y4uL.js} +1 -1
  57. package/dist/{id-BPRiRQQi.js → id-DlZAWXhX.js} +1 -1
  58. package/dist/{image-CZ26oTkB.js → image-C-Rdb3yG.js} +1 -1
  59. package/dist/{index-DA6hSPnv.js → index-BEianCH_.js} +356 -331
  60. package/dist/{index-2nKvQV6S.js → index-BJtXFuWZ.js} +8 -7
  61. package/dist/{index-CAsUs2fN.js → index-BKAQ3OTd.js} +11 -11
  62. package/dist/{index-DxSSO5f_.js → index-CPAph-rb.js} +4 -4
  63. package/dist/{index-BaJGH0Wo.js → index-CUDhfiq5.js} +10 -10
  64. package/dist/{index-D6p8qIoR.js → index-CxxmgFkL.js} +1 -1
  65. package/dist/{index-D6rJMZnJ.js → index-DD4yqUTK.js} +78 -78
  66. package/dist/index-DQ-upUtl.js +85050 -0
  67. package/dist/{index-DrCKZb_R.js → index-DeBuj-lE.js} +1 -1
  68. package/dist/{index-ChjHLLtj.js → index-N4PNqcjR.js} +2 -2
  69. package/dist/index-eC9_VgZe.js +3183 -0
  70. package/dist/{index.es-D7A4rCjT.js → index.es-BkvYD6Tp.js} +3032 -3244
  71. package/dist/{index.es-9vMrGsMN.js → index.es-DGhokHli.js} +1 -1
  72. package/dist/index.es.js +1 -1
  73. package/dist/{info-circle-DBRsyv1V.js → info-circle-BweemjWa.js} +1 -1
  74. package/dist/{info-nXKAaGnK.js → info-o_cb8tTT.js} +1 -1
  75. package/dist/{lightbulb-B1ByE_z3.js → lightbulb-CIREQKfQ.js} +1 -1
  76. package/dist/{mail-BEh53yuD.js → mail-D7pla8qN.js} +1 -1
  77. package/dist/{mobile-BTInaRxp.js → mobile-BfSFqXTR.js} +1 -1
  78. package/dist/{more-BdkhRCT0.js → more-Cm2OZt-4.js} +1 -1
  79. package/dist/{network-placeholder-_q940_Fj.js → network-placeholder-cja_SKEh.js} +1 -1
  80. package/dist/{nftPlaceholder-C_vMI1Zq.js → nftPlaceholder-CPMGC0YA.js} +1 -1
  81. package/dist/{off-CjN7QcgJ.js → off-2ov8-cMg.js} +1 -1
  82. package/dist/{play-store-D0oSbUK-.js → play-store-K7jF5Tx9.js} +1 -1
  83. package/dist/{plus-lZsdp6Eh.js → plus-D2hT5Tke.js} +1 -1
  84. package/dist/{qr-code-CQEDt6E5.js → qr-code-DdAcFtyy.js} +1 -1
  85. package/dist/{recycle-horizontal-BPR3n_8r.js → recycle-horizontal-C_hgDyOE.js} +1 -1
  86. package/dist/{refresh-BJkQe_FG.js → refresh-DmHZ_uHs.js} +1 -1
  87. package/dist/{reown-logo-Bevkr0xz.js → reown-logo-C7Ew_uaV.js} +1 -1
  88. package/dist/{search-BfGI_53c.js → search-DIQ1nJd8.js} +1 -1
  89. package/dist/{send-CqRHFlOm.js → send-oPtL6xIE.js} +1 -1
  90. package/dist/{swapHorizontal-uS8nbcBj.js → swapHorizontal-Csk-Etan.js} +1 -1
  91. package/dist/{swapHorizontalBold-rzZa_A7L.js → swapHorizontalBold-BcWknhY6.js} +1 -1
  92. package/dist/{swapHorizontalMedium-DmxWOlid.js → swapHorizontalMedium-DmNmthd2.js} +1 -1
  93. package/dist/{swapHorizontalRoundedBold-Bh4Bsx-4.js → swapHorizontalRoundedBold-Cqili0jK.js} +1 -1
  94. package/dist/{swapVertical-B30qm7WO.js → swapVertical-CmQhV1BW.js} +1 -1
  95. package/dist/{telegram-CITR-rqw.js → telegram-8VqDFrbM.js} +1 -1
  96. package/dist/{three-dots-DvMlVtkk.js → three-dots-54YC22RW.js} +1 -1
  97. package/dist/{twitch-Cg70CCVs.js → twitch-BG66DH8z.js} +1 -1
  98. package/dist/{twitterIcon-lUQKP1xi.js → twitterIcon-B3TRjKnO.js} +1 -1
  99. package/dist/{unsupportedProp-BEw61JH6.js → unsupportedProp-DxJPUr4X.js} +1 -1
  100. package/dist/useRegisterError-RP3LuUvG.js +8913 -0
  101. package/dist/{verify-Dr2B20vD.js → verify-Cxrk9OZf.js} +1 -1
  102. package/dist/{verify-filled-Bc-tpntt.js → verify-filled-DTYh5fHd.js} +1 -1
  103. package/dist/{w3m-modal-BW_yp0bM.js → w3m-modal-BtzAU8Rd.js} +2 -2
  104. package/dist/{wallet-LyIKSgXv.js → wallet-CqHzy9UL.js} +1 -1
  105. package/dist/{wallet-placeholder-Dofecbxd.js → wallet-placeholder-DUpL8Wi-.js} +1 -1
  106. package/dist/{walletconnect-CIiBCeU4.js → walletconnect-CMShOjhI.js} +1 -1
  107. package/dist/{warning-circle-DSqqePjX.js → warning-circle-C-6BUTdg.js} +1 -1
  108. package/dist/widget.css +1 -1
  109. package/dist/{x-Bw4KtWr5.js → x-Bs3i9yGj.js} +1 -1
  110. package/package.json +6 -2
  111. package/dist/EstGas-BVEriilK.js +0 -12693
  112. package/dist/QuotesProgress-BuNSdVaQ.js +0 -28
  113. package/dist/TxnButton-BmnXiTl8.js +0 -208
  114. package/dist/getCosmosAddress-BkiMb5Ws.js +0 -9565
  115. package/dist/index-Bd6WahOg.js +0 -30418
  116. package/dist/index-DSkfxRgh.js +0 -3010
  117. package/dist/index-DTish3yr.js +0 -1014
  118. package/dist/useRegisterError-FSrH_Jvm.js +0 -8812
@@ -0,0 +1,3183 @@
1
+ import { jsx as l, jsxs as I, Fragment as B } from "react/jsx-runtime";
2
+ import * as H from "react";
3
+ import { useState as P, useEffect as ne } from "react";
4
+ import { useConnect as Xt, useAccount as _t, useDisconnect as Dn, useSwitchAccount as Kt, useConfig as qt, useConnectors as Tn, useConnections as kn } from "wagmi";
5
+ import { p as D, g as An, b as zn, i as En, aF as Ln, d as E, _ as Pe, s as On, e as Rn, f as ze, h as Pn, P as z, B as At, a as It, u as k, l as xe } from "./index-DQ-upUtl.js";
6
+ import { _ as en, x as Bn, C as Ve, A as Gn, i as ve, d as Un, u as Be, B as tn, W as Qn } from "./useRegisterError-RP3LuUvG.js";
7
+ import { useDynamicContext as le, useIsLoggedIn as Fe, useWalletItemActions as Nt, useSwitchWallet as He, useUserWallets as Se, useWalletOptions as Xe } from "@dynamic-labs/sdk-react-core";
8
+ import { _ as zt, C as nn, g as We } from "./getChainIds-BJOBostX.js";
9
+ import { useAccount as _e, useSuggestChain as rn, useSuggestChainAndConnect as sn, useConnect as on, WalletType as je, useActiveChainIds as Yn, useDisconnect as Zn, useActiveWalletType as Vn } from "graz";
10
+ import { B as Et } from "./Box-DM9yFOex.js";
11
+ import { v as Wn } from "./validError-CDlJpg_f.js";
12
+ import "@dynamic-labs/solana";
13
+ const an = /* @__PURE__ */ H.createContext(null);
14
+ D.env.NODE_ENV !== "production" && (an.displayName = "ThemeContext");
15
+ function Jn() {
16
+ const r = H.useContext(an);
17
+ return D.env.NODE_ENV !== "production" && H.useDebugValue(r), r;
18
+ }
19
+ const $n = typeof Symbol == "function" && Symbol.for, Fn = $n ? Symbol.for("mui.nested") : "__THEME_NESTED__";
20
+ function Oe(r) {
21
+ "@babel/helpers - typeof";
22
+ return Oe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
23
+ return typeof n;
24
+ } : function(n) {
25
+ return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
26
+ }, Oe(r);
27
+ }
28
+ function Hn(r, n) {
29
+ if (Oe(r) != "object" || !r) return r;
30
+ var t = r[Symbol.toPrimitive];
31
+ if (t !== void 0) {
32
+ var e = t.call(r, n);
33
+ if (Oe(e) != "object") return e;
34
+ throw new TypeError("@@toPrimitive must return a primitive value.");
35
+ }
36
+ return String(r);
37
+ }
38
+ function Xn(r) {
39
+ var n = Hn(r, "string");
40
+ return Oe(n) == "symbol" ? n : n + "";
41
+ }
42
+ function _n(r) {
43
+ return An("MuiTypography", r);
44
+ }
45
+ zn("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]);
46
+ const Kn = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"], qn = (r) => {
47
+ const {
48
+ align: n,
49
+ gutterBottom: t,
50
+ noWrap: e,
51
+ paragraph: i,
52
+ variant: o,
53
+ classes: a
54
+ } = r, s = {
55
+ root: ["root", o, r.align !== "inherit" && `align${ze(n)}`, t && "gutterBottom", e && "noWrap", i && "paragraph"]
56
+ };
57
+ return Pn(s, _n, a);
58
+ }, er = On("span", {
59
+ name: "MuiTypography",
60
+ slot: "Root",
61
+ overridesResolver: (r, n) => {
62
+ const {
63
+ ownerState: t
64
+ } = r;
65
+ return [n.root, t.variant && n[t.variant], t.align !== "inherit" && n[`align${ze(t.align)}`], t.noWrap && n.noWrap, t.gutterBottom && n.gutterBottom, t.paragraph && n.paragraph];
66
+ }
67
+ })(({
68
+ theme: r,
69
+ ownerState: n
70
+ }) => E({
71
+ margin: 0
72
+ }, n.variant === "inherit" && {
73
+ // Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.
74
+ font: "inherit"
75
+ }, n.variant !== "inherit" && r.typography[n.variant], n.align !== "inherit" && {
76
+ textAlign: n.align
77
+ }, n.noWrap && {
78
+ overflow: "hidden",
79
+ textOverflow: "ellipsis",
80
+ whiteSpace: "nowrap"
81
+ }, n.gutterBottom && {
82
+ marginBottom: "0.35em"
83
+ }, n.paragraph && {
84
+ marginBottom: 16
85
+ })), Lt = {
86
+ h1: "h1",
87
+ h2: "h2",
88
+ h3: "h3",
89
+ h4: "h4",
90
+ h5: "h5",
91
+ h6: "h6",
92
+ subtitle1: "h6",
93
+ subtitle2: "h6",
94
+ body1: "p",
95
+ body2: "p",
96
+ inherit: "p"
97
+ }, tr = {
98
+ primary: "primary.main",
99
+ textPrimary: "text.primary",
100
+ secondary: "secondary.main",
101
+ textSecondary: "text.secondary",
102
+ error: "error.main"
103
+ }, nr = (r) => tr[r] || r, cn = /* @__PURE__ */ H.forwardRef(function(n, t) {
104
+ const e = En({
105
+ props: n,
106
+ name: "MuiTypography"
107
+ }), i = nr(e.color), o = Ln(E({}, e, {
108
+ color: i
109
+ })), {
110
+ align: a = "inherit",
111
+ className: s,
112
+ component: c,
113
+ gutterBottom: u = !1,
114
+ noWrap: g = !1,
115
+ paragraph: h = !1,
116
+ variant: M = "body1",
117
+ variantMapping: y = Lt
118
+ } = o, p = Pe(o, Kn), d = E({}, o, {
119
+ align: a,
120
+ color: i,
121
+ className: s,
122
+ component: c,
123
+ gutterBottom: u,
124
+ noWrap: g,
125
+ paragraph: h,
126
+ variant: M,
127
+ variantMapping: y
128
+ }), x = c || (h ? "p" : y[M] || Lt[M]) || "span", N = qn(d);
129
+ return /* @__PURE__ */ l(er, E({
130
+ as: x,
131
+ ref: t,
132
+ ownerState: d,
133
+ className: Rn(N.root, s)
134
+ }, p));
135
+ });
136
+ D.env.NODE_ENV !== "production" && (cn.propTypes = {
137
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
138
+ // │ These PropTypes are generated from the TypeScript type definitions. │
139
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
140
+ // └─────────────────────────────────────────────────────────────────────┘
141
+ /**
142
+ * Set the text-align on the component.
143
+ * @default 'inherit'
144
+ */
145
+ align: z.oneOf(["center", "inherit", "justify", "left", "right"]),
146
+ /**
147
+ * The content of the component.
148
+ */
149
+ children: z.node,
150
+ /**
151
+ * Override or extend the styles applied to the component.
152
+ */
153
+ classes: z.object,
154
+ /**
155
+ * @ignore
156
+ */
157
+ className: z.string,
158
+ /**
159
+ * The component used for the root node.
160
+ * Either a string to use a HTML element or a component.
161
+ */
162
+ component: z.elementType,
163
+ /**
164
+ * If `true`, the text will have a bottom margin.
165
+ * @default false
166
+ */
167
+ gutterBottom: z.bool,
168
+ /**
169
+ * If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
170
+ *
171
+ * Note that text overflow can only happen with block or inline-block level elements
172
+ * (the element needs to have a width in order to overflow).
173
+ * @default false
174
+ */
175
+ noWrap: z.bool,
176
+ /**
177
+ * If `true`, the element will be a paragraph element.
178
+ * @default false
179
+ */
180
+ paragraph: z.bool,
181
+ /**
182
+ * The system prop that allows defining system overrides as well as additional CSS styles.
183
+ */
184
+ sx: z.oneOfType([z.arrayOf(z.oneOfType([z.func, z.object, z.bool])), z.func, z.object]),
185
+ /**
186
+ * Applies the theme typography styles.
187
+ * @default 'body1'
188
+ */
189
+ variant: z.oneOfType([z.oneOf(["body1", "body2", "button", "caption", "h1", "h2", "h3", "h4", "h5", "h6", "inherit", "overline", "subtitle1", "subtitle2"]), z.string]),
190
+ /**
191
+ * The component maps the variant prop to a range of different HTML element types.
192
+ * For instance, subtitle1 to `<h6>`.
193
+ * If you wish to change that mapping, you can provide your own.
194
+ * Alternatively, you can use the `component` prop.
195
+ * @default {
196
+ * h1: 'h1',
197
+ * h2: 'h2',
198
+ * h3: 'h3',
199
+ * h4: 'h4',
200
+ * h5: 'h5',
201
+ * h6: 'h6',
202
+ * subtitle1: 'h6',
203
+ * subtitle2: 'h6',
204
+ * body1: 'p',
205
+ * body2: 'p',
206
+ * inherit: 'p',
207
+ * }
208
+ */
209
+ variantMapping: z.object
210
+ });
211
+ const rr = ["checked", "disabled", "error", "focused", "focusVisible", "required", "expanded", "selected"];
212
+ function ir(r = {}) {
213
+ const {
214
+ disableGlobal: n = !1,
215
+ productionPrefix: t = "jss",
216
+ seed: e = ""
217
+ } = r, i = e === "" ? "" : `${e}-`;
218
+ let o = 0;
219
+ const a = () => (o += 1, D.env.NODE_ENV !== "production" && o >= 1e10, o);
220
+ return (s, c) => {
221
+ const u = c.options.name;
222
+ if (u && u.indexOf("Mui") === 0 && !c.options.link && !n) {
223
+ if (rr.indexOf(s.key) !== -1)
224
+ return `Mui-${s.key}`;
225
+ const h = `${i}${u}-${s.key}`;
226
+ return !c.options.theme[Fn] || e !== "" ? h : `${h}-${a()}`;
227
+ }
228
+ if (D.env.NODE_ENV === "production")
229
+ return `${i}${t}${a()}`;
230
+ const g = `${s.key}-${a()}`;
231
+ return c.options.classNamePrefix ? `${i}${c.options.classNamePrefix}-${g}` : `${i}${g}`;
232
+ };
233
+ }
234
+ var sr = D.env.NODE_ENV === "production";
235
+ function ie(r, n) {
236
+ if (!sr) {
237
+ var t = "Warning: " + n;
238
+ try {
239
+ throw Error(t);
240
+ } catch {
241
+ }
242
+ }
243
+ }
244
+ var Ot = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) {
245
+ return typeof r;
246
+ } : function(r) {
247
+ return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
248
+ }, Ge = (typeof window > "u" ? "undefined" : Ot(window)) === "object" && (typeof document > "u" ? "undefined" : Ot(document)) === "object" && document.nodeType === 9;
249
+ function or(r, n) {
250
+ for (var t = 0; t < n.length; t++) {
251
+ var e = n[t];
252
+ e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(r, Xn(e.key), e);
253
+ }
254
+ }
255
+ function ln(r, n, t) {
256
+ return n && or(r.prototype, n), Object.defineProperty(r, "prototype", {
257
+ writable: !1
258
+ }), r;
259
+ }
260
+ var ar = {}.constructor;
261
+ function ft(r) {
262
+ if (r == null || typeof r != "object") return r;
263
+ if (Array.isArray(r)) return r.map(ft);
264
+ if (r.constructor !== ar) return r;
265
+ var n = {};
266
+ for (var t in r)
267
+ n[t] = ft(r[t]);
268
+ return n;
269
+ }
270
+ function Ct(r, n, t) {
271
+ r === void 0 && (r = "unnamed");
272
+ var e = t.jss, i = ft(n), o = e.plugins.onCreateRule(r, i, t);
273
+ return o || (r[0] === "@" && D.env.NODE_ENV !== "production" && ie(!1, "[JSS] Unknown rule " + r), null);
274
+ }
275
+ var Rt = function(n, t) {
276
+ for (var e = "", i = 0; i < n.length && n[i] !== "!important"; i++)
277
+ e && (e += t), e += n[i];
278
+ return e;
279
+ }, Me = function(n) {
280
+ if (!Array.isArray(n)) return n;
281
+ var t = "";
282
+ if (Array.isArray(n[0]))
283
+ for (var e = 0; e < n.length && n[e] !== "!important"; e++)
284
+ t && (t += ", "), t += Rt(n[e], " ");
285
+ else t = Rt(n, ", ");
286
+ return n[n.length - 1] === "!important" && (t += " !important"), t;
287
+ };
288
+ function De(r) {
289
+ return r && r.format === !1 ? {
290
+ linebreak: "",
291
+ space: ""
292
+ } : {
293
+ linebreak: `
294
+ `,
295
+ space: " "
296
+ };
297
+ }
298
+ function Te(r, n) {
299
+ for (var t = "", e = 0; e < n; e++)
300
+ t += " ";
301
+ return t + r;
302
+ }
303
+ function Re(r, n, t) {
304
+ t === void 0 && (t = {});
305
+ var e = "";
306
+ if (!n) return e;
307
+ var i = t, o = i.indent, a = o === void 0 ? 0 : o, s = n.fallbacks;
308
+ t.format === !1 && (a = -1 / 0);
309
+ var c = De(t), u = c.linebreak, g = c.space;
310
+ if (r && a++, s)
311
+ if (Array.isArray(s))
312
+ for (var h = 0; h < s.length; h++) {
313
+ var M = s[h];
314
+ for (var y in M) {
315
+ var p = M[y];
316
+ p != null && (e && (e += u), e += Te(y + ":" + g + Me(p) + ";", a));
317
+ }
318
+ }
319
+ else
320
+ for (var d in s) {
321
+ var x = s[d];
322
+ x != null && (e && (e += u), e += Te(d + ":" + g + Me(x) + ";", a));
323
+ }
324
+ for (var N in n) {
325
+ var Q = n[N];
326
+ Q != null && N !== "fallbacks" && (e && (e += u), e += Te(N + ":" + g + Me(Q) + ";", a));
327
+ }
328
+ return !e && !t.allowEmpty || !r ? e : (a--, e && (e = "" + u + e + u), Te("" + r + g + "{" + e, a) + Te("}", a));
329
+ }
330
+ var cr = /([[\].#*$><+~=|^:(),"'`\s])/g, Pt = typeof CSS < "u" && CSS.escape, jt = function(r) {
331
+ return Pt ? Pt(r) : r.replace(cr, "\\$1");
332
+ }, un = /* @__PURE__ */ function() {
333
+ function r(t, e, i) {
334
+ this.type = "style", this.isProcessed = !1;
335
+ var o = i.sheet, a = i.Renderer;
336
+ this.key = t, this.options = i, this.style = e, o ? this.renderer = o.renderer : a && (this.renderer = new a());
337
+ }
338
+ var n = r.prototype;
339
+ return n.prop = function(e, i, o) {
340
+ if (i === void 0) return this.style[e];
341
+ var a = o ? o.force : !1;
342
+ if (!a && this.style[e] === i) return this;
343
+ var s = i;
344
+ (!o || o.process !== !1) && (s = this.options.jss.plugins.onChangeValue(i, e, this));
345
+ var c = s == null || s === !1, u = e in this.style;
346
+ if (c && !u && !a) return this;
347
+ var g = c && u;
348
+ if (g ? delete this.style[e] : this.style[e] = s, this.renderable && this.renderer)
349
+ return g ? this.renderer.removeProperty(this.renderable, e) : this.renderer.setProperty(this.renderable, e, s), this;
350
+ var h = this.options.sheet;
351
+ return h && h.attached && D.env.NODE_ENV !== "production" && ie(!1, '[JSS] Rule is not linked. Missing sheet option "link: true".'), this;
352
+ }, r;
353
+ }(), ht = /* @__PURE__ */ function(r) {
354
+ en(n, r);
355
+ function n(e, i, o) {
356
+ var a;
357
+ a = r.call(this, e, i, o) || this;
358
+ var s = o.selector, c = o.scoped, u = o.sheet, g = o.generateId;
359
+ return s ? a.selectorText = s : c !== !1 && (a.id = g(zt(zt(a)), u), a.selectorText = "." + jt(a.id)), a;
360
+ }
361
+ var t = n.prototype;
362
+ return t.applyTo = function(i) {
363
+ var o = this.renderer;
364
+ if (o) {
365
+ var a = this.toJSON();
366
+ for (var s in a)
367
+ o.setProperty(i, s, a[s]);
368
+ }
369
+ return this;
370
+ }, t.toJSON = function() {
371
+ var i = {};
372
+ for (var o in this.style) {
373
+ var a = this.style[o];
374
+ typeof a != "object" ? i[o] = a : Array.isArray(a) && (i[o] = Me(a));
375
+ }
376
+ return i;
377
+ }, t.toString = function(i) {
378
+ var o = this.options.sheet, a = o ? o.options.link : !1, s = a ? E({}, i, {
379
+ allowEmpty: !0
380
+ }) : i;
381
+ return Re(this.selectorText, this.style, s);
382
+ }, ln(n, [{
383
+ key: "selector",
384
+ set: function(i) {
385
+ if (i !== this.selectorText) {
386
+ this.selectorText = i;
387
+ var o = this.renderer, a = this.renderable;
388
+ if (!(!a || !o)) {
389
+ var s = o.setSelector(a, i);
390
+ s || o.replaceRule(a, this);
391
+ }
392
+ }
393
+ },
394
+ get: function() {
395
+ return this.selectorText;
396
+ }
397
+ }]), n;
398
+ }(un), lr = {
399
+ onCreateRule: function(n, t, e) {
400
+ return n[0] === "@" || e.parent && e.parent.type === "keyframes" ? null : new ht(n, t, e);
401
+ }
402
+ }, et = {
403
+ indent: 1,
404
+ children: !0
405
+ }, ur = /@([\w-]+)/, dr = /* @__PURE__ */ function() {
406
+ function r(t, e, i) {
407
+ this.type = "conditional", this.isProcessed = !1, this.key = t;
408
+ var o = t.match(ur);
409
+ this.at = o ? o[1] : "unknown", this.query = i.name || "@" + this.at, this.options = i, this.rules = new Ke(E({}, i, {
410
+ parent: this
411
+ }));
412
+ for (var a in e)
413
+ this.rules.add(a, e[a]);
414
+ this.rules.process();
415
+ }
416
+ var n = r.prototype;
417
+ return n.getRule = function(e) {
418
+ return this.rules.get(e);
419
+ }, n.indexOf = function(e) {
420
+ return this.rules.indexOf(e);
421
+ }, n.addRule = function(e, i, o) {
422
+ var a = this.rules.add(e, i, o);
423
+ return a ? (this.options.jss.plugins.onProcessRule(a), a) : null;
424
+ }, n.replaceRule = function(e, i, o) {
425
+ var a = this.rules.replace(e, i, o);
426
+ return a && this.options.jss.plugins.onProcessRule(a), a;
427
+ }, n.toString = function(e) {
428
+ e === void 0 && (e = et);
429
+ var i = De(e), o = i.linebreak;
430
+ if (e.indent == null && (e.indent = et.indent), e.children == null && (e.children = et.children), e.children === !1)
431
+ return this.query + " {}";
432
+ var a = this.rules.toString(e);
433
+ return a ? this.query + " {" + o + a + o + "}" : "";
434
+ }, r;
435
+ }(), fr = /@container|@media|@supports\s+/, hr = {
436
+ onCreateRule: function(n, t, e) {
437
+ return fr.test(n) ? new dr(n, t, e) : null;
438
+ }
439
+ }, tt = {
440
+ indent: 1,
441
+ children: !0
442
+ }, gr = /@keyframes\s+([\w-]+)/, gt = /* @__PURE__ */ function() {
443
+ function r(t, e, i) {
444
+ this.type = "keyframes", this.at = "@keyframes", this.isProcessed = !1;
445
+ var o = t.match(gr);
446
+ o && o[1] ? this.name = o[1] : (this.name = "noname", D.env.NODE_ENV !== "production" && ie(!1, "[JSS] Bad keyframes name " + t)), this.key = this.type + "-" + this.name, this.options = i;
447
+ var a = i.scoped, s = i.sheet, c = i.generateId;
448
+ this.id = a === !1 ? this.name : jt(c(this, s)), this.rules = new Ke(E({}, i, {
449
+ parent: this
450
+ }));
451
+ for (var u in e)
452
+ this.rules.add(u, e[u], E({}, i, {
453
+ parent: this
454
+ }));
455
+ this.rules.process();
456
+ }
457
+ var n = r.prototype;
458
+ return n.toString = function(e) {
459
+ e === void 0 && (e = tt);
460
+ var i = De(e), o = i.linebreak;
461
+ if (e.indent == null && (e.indent = tt.indent), e.children == null && (e.children = tt.children), e.children === !1)
462
+ return this.at + " " + this.id + " {}";
463
+ var a = this.rules.toString(e);
464
+ return a && (a = "" + o + a + o), this.at + " " + this.id + " {" + a + "}";
465
+ }, r;
466
+ }(), br = /@keyframes\s+/, wr = /\$([\w-]+)/g, bt = function(n, t) {
467
+ return typeof n == "string" ? n.replace(wr, function(e, i) {
468
+ return i in t ? t[i] : (D.env.NODE_ENV !== "production" && ie(!1, '[JSS] Referenced keyframes rule "' + i + '" is not defined.'), e);
469
+ }) : n;
470
+ }, Bt = function(n, t, e) {
471
+ var i = n[t], o = bt(i, e);
472
+ o !== i && (n[t] = o);
473
+ }, pr = {
474
+ onCreateRule: function(n, t, e) {
475
+ return typeof n == "string" && br.test(n) ? new gt(n, t, e) : null;
476
+ },
477
+ // Animation name ref replacer.
478
+ onProcessStyle: function(n, t, e) {
479
+ return t.type !== "style" || !e || ("animation-name" in n && Bt(n, "animation-name", e.keyframes), "animation" in n && Bt(n, "animation", e.keyframes)), n;
480
+ },
481
+ onChangeValue: function(n, t, e) {
482
+ var i = e.options.sheet;
483
+ if (!i)
484
+ return n;
485
+ switch (t) {
486
+ case "animation":
487
+ return bt(n, i.keyframes);
488
+ case "animation-name":
489
+ return bt(n, i.keyframes);
490
+ default:
491
+ return n;
492
+ }
493
+ }
494
+ }, yr = /* @__PURE__ */ function(r) {
495
+ en(n, r);
496
+ function n() {
497
+ return r.apply(this, arguments) || this;
498
+ }
499
+ var t = n.prototype;
500
+ return t.toString = function(i) {
501
+ var o = this.options.sheet, a = o ? o.options.link : !1, s = a ? E({}, i, {
502
+ allowEmpty: !0
503
+ }) : i;
504
+ return Re(this.key, this.style, s);
505
+ }, n;
506
+ }(un), mr = {
507
+ onCreateRule: function(n, t, e) {
508
+ return e.parent && e.parent.type === "keyframes" ? new yr(n, t, e) : null;
509
+ }
510
+ }, Mr = /* @__PURE__ */ function() {
511
+ function r(t, e, i) {
512
+ this.type = "font-face", this.at = "@font-face", this.isProcessed = !1, this.key = t, this.style = e, this.options = i;
513
+ }
514
+ var n = r.prototype;
515
+ return n.toString = function(e) {
516
+ var i = De(e), o = i.linebreak;
517
+ if (Array.isArray(this.style)) {
518
+ for (var a = "", s = 0; s < this.style.length; s++)
519
+ a += Re(this.at, this.style[s]), this.style[s + 1] && (a += o);
520
+ return a;
521
+ }
522
+ return Re(this.at, this.style, e);
523
+ }, r;
524
+ }(), xr = /@font-face/, vr = {
525
+ onCreateRule: function(n, t, e) {
526
+ return xr.test(n) ? new Mr(n, t, e) : null;
527
+ }
528
+ }, Ir = /* @__PURE__ */ function() {
529
+ function r(t, e, i) {
530
+ this.type = "viewport", this.at = "@viewport", this.isProcessed = !1, this.key = t, this.style = e, this.options = i;
531
+ }
532
+ var n = r.prototype;
533
+ return n.toString = function(e) {
534
+ return Re(this.key, this.style, e);
535
+ }, r;
536
+ }(), Nr = {
537
+ onCreateRule: function(n, t, e) {
538
+ return n === "@viewport" || n === "@-ms-viewport" ? new Ir(n, t, e) : null;
539
+ }
540
+ }, Cr = /* @__PURE__ */ function() {
541
+ function r(t, e, i) {
542
+ this.type = "simple", this.isProcessed = !1, this.key = t, this.value = e, this.options = i;
543
+ }
544
+ var n = r.prototype;
545
+ return n.toString = function(e) {
546
+ if (Array.isArray(this.value)) {
547
+ for (var i = "", o = 0; o < this.value.length; o++)
548
+ i += this.key + " " + this.value[o] + ";", this.value[o + 1] && (i += `
549
+ `);
550
+ return i;
551
+ }
552
+ return this.key + " " + this.value + ";";
553
+ }, r;
554
+ }(), jr = {
555
+ "@charset": !0,
556
+ "@import": !0,
557
+ "@namespace": !0
558
+ }, Sr = {
559
+ onCreateRule: function(n, t, e) {
560
+ return n in jr ? new Cr(n, t, e) : null;
561
+ }
562
+ }, Gt = [lr, hr, pr, mr, vr, Nr, Sr], Dr = {
563
+ process: !0
564
+ }, Ut = {
565
+ force: !0,
566
+ process: !0
567
+ /**
568
+ * Contains rules objects and allows adding/removing etc.
569
+ * Is used for e.g. by `StyleSheet` or `ConditionalRule`.
570
+ */
571
+ }, Ke = /* @__PURE__ */ function() {
572
+ function r(t) {
573
+ this.map = {}, this.raw = {}, this.index = [], this.counter = 0, this.options = t, this.classes = t.classes, this.keyframes = t.keyframes;
574
+ }
575
+ var n = r.prototype;
576
+ return n.add = function(e, i, o) {
577
+ var a = this.options, s = a.parent, c = a.sheet, u = a.jss, g = a.Renderer, h = a.generateId, M = a.scoped, y = E({
578
+ classes: this.classes,
579
+ parent: s,
580
+ sheet: c,
581
+ jss: u,
582
+ Renderer: g,
583
+ generateId: h,
584
+ scoped: M,
585
+ name: e,
586
+ keyframes: this.keyframes,
587
+ selector: void 0
588
+ }, o), p = e;
589
+ e in this.raw && (p = e + "-d" + this.counter++), this.raw[p] = i, p in this.classes && (y.selector = "." + jt(this.classes[p]));
590
+ var d = Ct(p, i, y);
591
+ if (!d) return null;
592
+ this.register(d);
593
+ var x = y.index === void 0 ? this.index.length : y.index;
594
+ return this.index.splice(x, 0, d), d;
595
+ }, n.replace = function(e, i, o) {
596
+ var a = this.get(e), s = this.index.indexOf(a);
597
+ a && this.remove(a);
598
+ var c = o;
599
+ return s !== -1 && (c = E({}, o, {
600
+ index: s
601
+ })), this.add(e, i, c);
602
+ }, n.get = function(e) {
603
+ return this.map[e];
604
+ }, n.remove = function(e) {
605
+ this.unregister(e), delete this.raw[e.key], this.index.splice(this.index.indexOf(e), 1);
606
+ }, n.indexOf = function(e) {
607
+ return this.index.indexOf(e);
608
+ }, n.process = function() {
609
+ var e = this.options.jss.plugins;
610
+ this.index.slice(0).forEach(e.onProcessRule, e);
611
+ }, n.register = function(e) {
612
+ this.map[e.key] = e, e instanceof ht ? (this.map[e.selector] = e, e.id && (this.classes[e.key] = e.id)) : e instanceof gt && this.keyframes && (this.keyframes[e.name] = e.id);
613
+ }, n.unregister = function(e) {
614
+ delete this.map[e.key], e instanceof ht ? (delete this.map[e.selector], delete this.classes[e.key]) : e instanceof gt && delete this.keyframes[e.name];
615
+ }, n.update = function() {
616
+ var e, i, o;
617
+ if (typeof (arguments.length <= 0 ? void 0 : arguments[0]) == "string" ? (e = arguments.length <= 0 ? void 0 : arguments[0], i = arguments.length <= 1 ? void 0 : arguments[1], o = arguments.length <= 2 ? void 0 : arguments[2]) : (i = arguments.length <= 0 ? void 0 : arguments[0], o = arguments.length <= 1 ? void 0 : arguments[1], e = null), e)
618
+ this.updateOne(this.get(e), i, o);
619
+ else
620
+ for (var a = 0; a < this.index.length; a++)
621
+ this.updateOne(this.index[a], i, o);
622
+ }, n.updateOne = function(e, i, o) {
623
+ o === void 0 && (o = Dr);
624
+ var a = this.options, s = a.jss.plugins, c = a.sheet;
625
+ if (e.rules instanceof r) {
626
+ e.rules.update(i, o);
627
+ return;
628
+ }
629
+ var u = e.style;
630
+ if (s.onUpdate(i, e, c, o), o.process && u && u !== e.style) {
631
+ s.onProcessStyle(e.style, e, c);
632
+ for (var g in e.style) {
633
+ var h = e.style[g], M = u[g];
634
+ h !== M && e.prop(g, h, Ut);
635
+ }
636
+ for (var y in u) {
637
+ var p = e.style[y], d = u[y];
638
+ p == null && p !== d && e.prop(y, null, Ut);
639
+ }
640
+ }
641
+ }, n.toString = function(e) {
642
+ for (var i = "", o = this.options.sheet, a = o ? o.options.link : !1, s = De(e), c = s.linebreak, u = 0; u < this.index.length; u++) {
643
+ var g = this.index[u], h = g.toString(e);
644
+ !h && !a || (i && (i += c), i += h);
645
+ }
646
+ return i;
647
+ }, r;
648
+ }(), dn = /* @__PURE__ */ function() {
649
+ function r(t, e) {
650
+ this.attached = !1, this.deployed = !1, this.classes = {}, this.keyframes = {}, this.options = E({}, e, {
651
+ sheet: this,
652
+ parent: this,
653
+ classes: this.classes,
654
+ keyframes: this.keyframes
655
+ }), e.Renderer && (this.renderer = new e.Renderer(this)), this.rules = new Ke(this.options);
656
+ for (var i in t)
657
+ this.rules.add(i, t[i]);
658
+ this.rules.process();
659
+ }
660
+ var n = r.prototype;
661
+ return n.attach = function() {
662
+ return this.attached ? this : (this.renderer && this.renderer.attach(), this.attached = !0, this.deployed || this.deploy(), this);
663
+ }, n.detach = function() {
664
+ return this.attached ? (this.renderer && this.renderer.detach(), this.attached = !1, this) : this;
665
+ }, n.addRule = function(e, i, o) {
666
+ var a = this.queue;
667
+ this.attached && !a && (this.queue = []);
668
+ var s = this.rules.add(e, i, o);
669
+ return s ? (this.options.jss.plugins.onProcessRule(s), this.attached ? (this.deployed && (a ? a.push(s) : (this.insertRule(s), this.queue && (this.queue.forEach(this.insertRule, this), this.queue = void 0))), s) : (this.deployed = !1, s)) : null;
670
+ }, n.replaceRule = function(e, i, o) {
671
+ var a = this.rules.get(e);
672
+ if (!a) return this.addRule(e, i, o);
673
+ var s = this.rules.replace(e, i, o);
674
+ return s && this.options.jss.plugins.onProcessRule(s), this.attached ? (this.deployed && this.renderer && (s ? a.renderable && this.renderer.replaceRule(a.renderable, s) : this.renderer.deleteRule(a)), s) : (this.deployed = !1, s);
675
+ }, n.insertRule = function(e) {
676
+ this.renderer && this.renderer.insertRule(e);
677
+ }, n.addRules = function(e, i) {
678
+ var o = [];
679
+ for (var a in e) {
680
+ var s = this.addRule(a, e[a], i);
681
+ s && o.push(s);
682
+ }
683
+ return o;
684
+ }, n.getRule = function(e) {
685
+ return this.rules.get(e);
686
+ }, n.deleteRule = function(e) {
687
+ var i = typeof e == "object" ? e : this.rules.get(e);
688
+ return !i || // Style sheet was created without link: true and attached, in this case we
689
+ // won't be able to remove the CSS rule from the DOM.
690
+ this.attached && !i.renderable ? !1 : (this.rules.remove(i), this.attached && i.renderable && this.renderer ? this.renderer.deleteRule(i.renderable) : !0);
691
+ }, n.indexOf = function(e) {
692
+ return this.rules.indexOf(e);
693
+ }, n.deploy = function() {
694
+ return this.renderer && this.renderer.deploy(), this.deployed = !0, this;
695
+ }, n.update = function() {
696
+ var e;
697
+ return (e = this.rules).update.apply(e, arguments), this;
698
+ }, n.updateOne = function(e, i, o) {
699
+ return this.rules.updateOne(e, i, o), this;
700
+ }, n.toString = function(e) {
701
+ return this.rules.toString(e);
702
+ }, r;
703
+ }(), Tr = /* @__PURE__ */ function() {
704
+ function r() {
705
+ this.plugins = {
706
+ internal: [],
707
+ external: []
708
+ }, this.registry = {};
709
+ }
710
+ var n = r.prototype;
711
+ return n.onCreateRule = function(e, i, o) {
712
+ for (var a = 0; a < this.registry.onCreateRule.length; a++) {
713
+ var s = this.registry.onCreateRule[a](e, i, o);
714
+ if (s) return s;
715
+ }
716
+ return null;
717
+ }, n.onProcessRule = function(e) {
718
+ if (!e.isProcessed) {
719
+ for (var i = e.options.sheet, o = 0; o < this.registry.onProcessRule.length; o++)
720
+ this.registry.onProcessRule[o](e, i);
721
+ e.style && this.onProcessStyle(e.style, e, i), e.isProcessed = !0;
722
+ }
723
+ }, n.onProcessStyle = function(e, i, o) {
724
+ for (var a = 0; a < this.registry.onProcessStyle.length; a++)
725
+ i.style = this.registry.onProcessStyle[a](i.style, i, o);
726
+ }, n.onProcessSheet = function(e) {
727
+ for (var i = 0; i < this.registry.onProcessSheet.length; i++)
728
+ this.registry.onProcessSheet[i](e);
729
+ }, n.onUpdate = function(e, i, o, a) {
730
+ for (var s = 0; s < this.registry.onUpdate.length; s++)
731
+ this.registry.onUpdate[s](e, i, o, a);
732
+ }, n.onChangeValue = function(e, i, o) {
733
+ for (var a = e, s = 0; s < this.registry.onChangeValue.length; s++)
734
+ a = this.registry.onChangeValue[s](a, i, o);
735
+ return a;
736
+ }, n.use = function(e, i) {
737
+ i === void 0 && (i = {
738
+ queue: "external"
739
+ });
740
+ var o = this.plugins[i.queue];
741
+ o.indexOf(e) === -1 && (o.push(e), this.registry = [].concat(this.plugins.external, this.plugins.internal).reduce(function(a, s) {
742
+ for (var c in s)
743
+ c in a ? a[c].push(s[c]) : D.env.NODE_ENV !== "production" && ie(!1, '[JSS] Unknown hook "' + c + '".');
744
+ return a;
745
+ }, {
746
+ onCreateRule: [],
747
+ onProcessRule: [],
748
+ onProcessStyle: [],
749
+ onProcessSheet: [],
750
+ onChangeValue: [],
751
+ onUpdate: []
752
+ }));
753
+ }, r;
754
+ }(), kr = /* @__PURE__ */ function() {
755
+ function r() {
756
+ this.registry = [];
757
+ }
758
+ var n = r.prototype;
759
+ return n.add = function(e) {
760
+ var i = this.registry, o = e.options.index;
761
+ if (i.indexOf(e) === -1) {
762
+ if (i.length === 0 || o >= this.index) {
763
+ i.push(e);
764
+ return;
765
+ }
766
+ for (var a = 0; a < i.length; a++)
767
+ if (i[a].options.index > o) {
768
+ i.splice(a, 0, e);
769
+ return;
770
+ }
771
+ }
772
+ }, n.reset = function() {
773
+ this.registry = [];
774
+ }, n.remove = function(e) {
775
+ var i = this.registry.indexOf(e);
776
+ this.registry.splice(i, 1);
777
+ }, n.toString = function(e) {
778
+ for (var i = e === void 0 ? {} : e, o = i.attached, a = Pe(i, ["attached"]), s = De(a), c = s.linebreak, u = "", g = 0; g < this.registry.length; g++) {
779
+ var h = this.registry[g];
780
+ o != null && h.attached !== o || (u && (u += c), u += h.toString(a));
781
+ }
782
+ return u;
783
+ }, ln(r, [{
784
+ key: "index",
785
+ /**
786
+ * Current highest index number.
787
+ */
788
+ get: function() {
789
+ return this.registry.length === 0 ? 0 : this.registry[this.registry.length - 1].options.index;
790
+ }
791
+ }]), r;
792
+ }(), Ee = new kr(), wt = typeof globalThis < "u" ? globalThis : typeof window < "u" && window.Math === Math ? window : typeof self < "u" && self.Math === Math ? self : Function("return this")(), pt = "2f1acc6c3a606b082e5eef5e54414ffb";
793
+ wt[pt] == null && (wt[pt] = 0);
794
+ var Qt = wt[pt]++, Ar = 1e10, Yt = function(n) {
795
+ n === void 0 && (n = {});
796
+ var t = 0, e = function(o, a) {
797
+ t += 1, t > Ar && D.env.NODE_ENV !== "production" && ie(!1, "[JSS] You might have a memory leak. Rule counter is at " + t + ".");
798
+ var s = "", c = "";
799
+ return a && (a.options.classNamePrefix && (c = a.options.classNamePrefix), a.options.jss.id != null && (s = String(a.options.jss.id))), n.minify ? "" + (c || "c") + Qt + s + t : c + o.key + "-" + Qt + (s ? "-" + s : "") + "-" + t;
800
+ };
801
+ return e;
802
+ }, fn = function(n) {
803
+ var t;
804
+ return function() {
805
+ return t || (t = n()), t;
806
+ };
807
+ }, zr = function(n, t) {
808
+ try {
809
+ return n.attributeStyleMap ? n.attributeStyleMap.get(t) : n.style.getPropertyValue(t);
810
+ } catch {
811
+ return "";
812
+ }
813
+ }, Er = function(n, t, e) {
814
+ try {
815
+ var i = e;
816
+ if (Array.isArray(e) && (i = Me(e)), n.attributeStyleMap)
817
+ n.attributeStyleMap.set(t, i);
818
+ else {
819
+ var o = i ? i.indexOf("!important") : -1, a = o > -1 ? i.substr(0, o - 1) : i;
820
+ n.style.setProperty(t, a, o > -1 ? "important" : "");
821
+ }
822
+ } catch {
823
+ return !1;
824
+ }
825
+ return !0;
826
+ }, Lr = function(n, t) {
827
+ try {
828
+ n.attributeStyleMap ? n.attributeStyleMap.delete(t) : n.style.removeProperty(t);
829
+ } catch (e) {
830
+ D.env.NODE_ENV !== "production" && ie(!1, '[JSS] DOMException "' + e.message + '" was thrown. Tried to remove property "' + t + '".');
831
+ }
832
+ }, Or = function(n, t) {
833
+ return n.selectorText = t, n.selectorText === t;
834
+ }, hn = fn(function() {
835
+ return document.querySelector("head");
836
+ });
837
+ function Rr(r, n) {
838
+ for (var t = 0; t < r.length; t++) {
839
+ var e = r[t];
840
+ if (e.attached && e.options.index > n.index && e.options.insertionPoint === n.insertionPoint)
841
+ return e;
842
+ }
843
+ return null;
844
+ }
845
+ function Pr(r, n) {
846
+ for (var t = r.length - 1; t >= 0; t--) {
847
+ var e = r[t];
848
+ if (e.attached && e.options.insertionPoint === n.insertionPoint)
849
+ return e;
850
+ }
851
+ return null;
852
+ }
853
+ function Br(r) {
854
+ for (var n = hn(), t = 0; t < n.childNodes.length; t++) {
855
+ var e = n.childNodes[t];
856
+ if (e.nodeType === 8 && e.nodeValue.trim() === r)
857
+ return e;
858
+ }
859
+ return null;
860
+ }
861
+ function Gr(r) {
862
+ var n = Ee.registry;
863
+ if (n.length > 0) {
864
+ var t = Rr(n, r);
865
+ if (t && t.renderer)
866
+ return {
867
+ parent: t.renderer.element.parentNode,
868
+ node: t.renderer.element
869
+ };
870
+ if (t = Pr(n, r), t && t.renderer)
871
+ return {
872
+ parent: t.renderer.element.parentNode,
873
+ node: t.renderer.element.nextSibling
874
+ };
875
+ }
876
+ var e = r.insertionPoint;
877
+ if (e && typeof e == "string") {
878
+ var i = Br(e);
879
+ if (i)
880
+ return {
881
+ parent: i.parentNode,
882
+ node: i.nextSibling
883
+ };
884
+ D.env.NODE_ENV !== "production" && ie(!1, '[JSS] Insertion point "' + e + '" not found.');
885
+ }
886
+ return !1;
887
+ }
888
+ function Ur(r, n) {
889
+ var t = n.insertionPoint, e = Gr(n);
890
+ if (e !== !1 && e.parent) {
891
+ e.parent.insertBefore(r, e.node);
892
+ return;
893
+ }
894
+ if (t && typeof t.nodeType == "number") {
895
+ var i = t, o = i.parentNode;
896
+ o ? o.insertBefore(r, i.nextSibling) : D.env.NODE_ENV !== "production" && ie(!1, "[JSS] Insertion point is not in the DOM.");
897
+ return;
898
+ }
899
+ hn().appendChild(r);
900
+ }
901
+ var Qr = fn(function() {
902
+ var r = document.querySelector('meta[property="csp-nonce"]');
903
+ return r ? r.getAttribute("content") : null;
904
+ }), Zt = function(n, t, e) {
905
+ try {
906
+ "insertRule" in n ? n.insertRule(t, e) : "appendRule" in n && n.appendRule(t);
907
+ } catch (i) {
908
+ return D.env.NODE_ENV !== "production" && ie(!1, "[JSS] " + i.message), !1;
909
+ }
910
+ return n.cssRules[e];
911
+ }, Vt = function(n, t) {
912
+ var e = n.cssRules.length;
913
+ return t === void 0 || t > e ? e : t;
914
+ }, Yr = function() {
915
+ var n = document.createElement("style");
916
+ return n.textContent = `
917
+ `, n;
918
+ }, Zr = /* @__PURE__ */ function() {
919
+ function r(t) {
920
+ this.getPropertyValue = zr, this.setProperty = Er, this.removeProperty = Lr, this.setSelector = Or, this.hasInsertedRules = !1, this.cssRules = [], t && Ee.add(t), this.sheet = t;
921
+ var e = this.sheet ? this.sheet.options : {}, i = e.media, o = e.meta, a = e.element;
922
+ this.element = a || Yr(), this.element.setAttribute("data-jss", ""), i && this.element.setAttribute("media", i), o && this.element.setAttribute("data-meta", o);
923
+ var s = Qr();
924
+ s && this.element.setAttribute("nonce", s);
925
+ }
926
+ var n = r.prototype;
927
+ return n.attach = function() {
928
+ if (!(this.element.parentNode || !this.sheet)) {
929
+ Ur(this.element, this.sheet.options);
930
+ var e = !!(this.sheet && this.sheet.deployed);
931
+ this.hasInsertedRules && e && (this.hasInsertedRules = !1, this.deploy());
932
+ }
933
+ }, n.detach = function() {
934
+ if (this.sheet) {
935
+ var e = this.element.parentNode;
936
+ e && e.removeChild(this.element), this.sheet.options.link && (this.cssRules = [], this.element.textContent = `
937
+ `);
938
+ }
939
+ }, n.deploy = function() {
940
+ var e = this.sheet;
941
+ if (e) {
942
+ if (e.options.link) {
943
+ this.insertRules(e.rules);
944
+ return;
945
+ }
946
+ this.element.textContent = `
947
+ ` + e.toString() + `
948
+ `;
949
+ }
950
+ }, n.insertRules = function(e, i) {
951
+ for (var o = 0; o < e.index.length; o++)
952
+ this.insertRule(e.index[o], o, i);
953
+ }, n.insertRule = function(e, i, o) {
954
+ if (o === void 0 && (o = this.element.sheet), e.rules) {
955
+ var a = e, s = o;
956
+ if (e.type === "conditional" || e.type === "keyframes") {
957
+ var c = Vt(o, i);
958
+ if (s = Zt(o, a.toString({
959
+ children: !1
960
+ }), c), s === !1)
961
+ return !1;
962
+ this.refCssRule(e, c, s);
963
+ }
964
+ return this.insertRules(a.rules, s), s;
965
+ }
966
+ var u = e.toString();
967
+ if (!u) return !1;
968
+ var g = Vt(o, i), h = Zt(o, u, g);
969
+ return h === !1 ? !1 : (this.hasInsertedRules = !0, this.refCssRule(e, g, h), h);
970
+ }, n.refCssRule = function(e, i, o) {
971
+ e.renderable = o, e.options.parent instanceof dn && this.cssRules.splice(i, 0, o);
972
+ }, n.deleteRule = function(e) {
973
+ var i = this.element.sheet, o = this.indexOf(e);
974
+ return o === -1 ? !1 : (i.deleteRule(o), this.cssRules.splice(o, 1), !0);
975
+ }, n.indexOf = function(e) {
976
+ return this.cssRules.indexOf(e);
977
+ }, n.replaceRule = function(e, i) {
978
+ var o = this.indexOf(e);
979
+ return o === -1 ? !1 : (this.element.sheet.deleteRule(o), this.cssRules.splice(o, 1), this.insertRule(i, o));
980
+ }, n.getRules = function() {
981
+ return this.element.sheet.cssRules;
982
+ }, r;
983
+ }(), Vr = 0, Wr = /* @__PURE__ */ function() {
984
+ function r(t) {
985
+ this.id = Vr++, this.version = "10.10.0", this.plugins = new Tr(), this.options = {
986
+ id: {
987
+ minify: !1
988
+ },
989
+ createGenerateId: Yt,
990
+ Renderer: Ge ? Zr : null,
991
+ plugins: []
992
+ }, this.generateId = Yt({
993
+ minify: !1
994
+ });
995
+ for (var e = 0; e < Gt.length; e++)
996
+ this.plugins.use(Gt[e], {
997
+ queue: "internal"
998
+ });
999
+ this.setup(t);
1000
+ }
1001
+ var n = r.prototype;
1002
+ return n.setup = function(e) {
1003
+ return e === void 0 && (e = {}), e.createGenerateId && (this.options.createGenerateId = e.createGenerateId), e.id && (this.options.id = E({}, this.options.id, e.id)), (e.createGenerateId || e.id) && (this.generateId = this.options.createGenerateId(this.options.id)), e.insertionPoint != null && (this.options.insertionPoint = e.insertionPoint), "Renderer" in e && (this.options.Renderer = e.Renderer), e.plugins && this.use.apply(this, e.plugins), this;
1004
+ }, n.createStyleSheet = function(e, i) {
1005
+ i === void 0 && (i = {});
1006
+ var o = i, a = o.index;
1007
+ typeof a != "number" && (a = Ee.index === 0 ? 0 : Ee.index + 1);
1008
+ var s = new dn(e, E({}, i, {
1009
+ jss: this,
1010
+ generateId: i.generateId || this.generateId,
1011
+ insertionPoint: this.options.insertionPoint,
1012
+ Renderer: this.options.Renderer,
1013
+ index: a
1014
+ }));
1015
+ return this.plugins.onProcessSheet(s), s;
1016
+ }, n.removeStyleSheet = function(e) {
1017
+ return e.detach(), Ee.remove(e), this;
1018
+ }, n.createRule = function(e, i, o) {
1019
+ if (i === void 0 && (i = {}), o === void 0 && (o = {}), typeof e == "object")
1020
+ return this.createRule(void 0, e, i);
1021
+ var a = E({}, o, {
1022
+ name: e,
1023
+ jss: this,
1024
+ Renderer: this.options.Renderer
1025
+ });
1026
+ a.generateId || (a.generateId = this.generateId), a.classes || (a.classes = {}), a.keyframes || (a.keyframes = {});
1027
+ var s = Ct(e, i, a);
1028
+ return s && this.plugins.onProcessRule(s), s;
1029
+ }, n.use = function() {
1030
+ for (var e = this, i = arguments.length, o = new Array(i), a = 0; a < i; a++)
1031
+ o[a] = arguments[a];
1032
+ return o.forEach(function(s) {
1033
+ e.plugins.use(s);
1034
+ }), this;
1035
+ }, r;
1036
+ }(), St = function(n) {
1037
+ return new Wr(n);
1038
+ }, Dt = typeof CSS == "object" && CSS != null && "number" in CSS;
1039
+ function gn(r) {
1040
+ var n = null;
1041
+ for (var t in r) {
1042
+ var e = r[t], i = typeof e;
1043
+ if (i === "function")
1044
+ n || (n = {}), n[t] = e;
1045
+ else if (i === "object" && e !== null && !Array.isArray(e)) {
1046
+ var o = gn(e);
1047
+ o && (n || (n = {}), n[t] = o);
1048
+ }
1049
+ }
1050
+ return n;
1051
+ }
1052
+ St();
1053
+ var bn = Date.now(), nt = "fnValues" + bn, rt = "fnStyle" + ++bn, Jr = function() {
1054
+ return {
1055
+ onCreateRule: function(t, e, i) {
1056
+ if (typeof e != "function") return null;
1057
+ var o = Ct(t, {}, i);
1058
+ return o[rt] = e, o;
1059
+ },
1060
+ onProcessStyle: function(t, e) {
1061
+ if (nt in e || rt in e) return t;
1062
+ var i = {};
1063
+ for (var o in t) {
1064
+ var a = t[o];
1065
+ typeof a == "function" && (delete t[o], i[o] = a);
1066
+ }
1067
+ return e[nt] = i, t;
1068
+ },
1069
+ onUpdate: function(t, e, i, o) {
1070
+ var a = e, s = a[rt];
1071
+ if (s && (a.style = s(t) || {}, D.env.NODE_ENV === "development")) {
1072
+ for (var c in a.style)
1073
+ if (typeof a.style[c] == "function") {
1074
+ D.env.NODE_ENV !== "production" && ie(!1, "[JSS] Function values inside function rules are not supported.");
1075
+ break;
1076
+ }
1077
+ }
1078
+ var u = a[nt];
1079
+ if (u)
1080
+ for (var g in u)
1081
+ a.prop(g, u[g](t), o);
1082
+ }
1083
+ };
1084
+ }, he = "@global", yt = "@global ", $r = /* @__PURE__ */ function() {
1085
+ function r(t, e, i) {
1086
+ this.type = "global", this.at = he, this.isProcessed = !1, this.key = t, this.options = i, this.rules = new Ke(E({}, i, {
1087
+ parent: this
1088
+ }));
1089
+ for (var o in e)
1090
+ this.rules.add(o, e[o]);
1091
+ this.rules.process();
1092
+ }
1093
+ var n = r.prototype;
1094
+ return n.getRule = function(e) {
1095
+ return this.rules.get(e);
1096
+ }, n.addRule = function(e, i, o) {
1097
+ var a = this.rules.add(e, i, o);
1098
+ return a && this.options.jss.plugins.onProcessRule(a), a;
1099
+ }, n.replaceRule = function(e, i, o) {
1100
+ var a = this.rules.replace(e, i, o);
1101
+ return a && this.options.jss.plugins.onProcessRule(a), a;
1102
+ }, n.indexOf = function(e) {
1103
+ return this.rules.indexOf(e);
1104
+ }, n.toString = function(e) {
1105
+ return this.rules.toString(e);
1106
+ }, r;
1107
+ }(), Fr = /* @__PURE__ */ function() {
1108
+ function r(t, e, i) {
1109
+ this.type = "global", this.at = he, this.isProcessed = !1, this.key = t, this.options = i;
1110
+ var o = t.substr(yt.length);
1111
+ this.rule = i.jss.createRule(o, e, E({}, i, {
1112
+ parent: this
1113
+ }));
1114
+ }
1115
+ var n = r.prototype;
1116
+ return n.toString = function(e) {
1117
+ return this.rule ? this.rule.toString(e) : "";
1118
+ }, r;
1119
+ }(), Hr = /\s*,\s*/g;
1120
+ function wn(r, n) {
1121
+ for (var t = r.split(Hr), e = "", i = 0; i < t.length; i++)
1122
+ e += n + " " + t[i].trim(), t[i + 1] && (e += ", ");
1123
+ return e;
1124
+ }
1125
+ function Xr(r, n) {
1126
+ var t = r.options, e = r.style, i = e ? e[he] : null;
1127
+ if (i) {
1128
+ for (var o in i)
1129
+ n.addRule(o, i[o], E({}, t, {
1130
+ selector: wn(o, r.selector)
1131
+ }));
1132
+ delete e[he];
1133
+ }
1134
+ }
1135
+ function _r(r, n) {
1136
+ var t = r.options, e = r.style;
1137
+ for (var i in e)
1138
+ if (!(i[0] !== "@" || i.substr(0, he.length) !== he)) {
1139
+ var o = wn(i.substr(he.length), r.selector);
1140
+ n.addRule(o, e[i], E({}, t, {
1141
+ selector: o
1142
+ })), delete e[i];
1143
+ }
1144
+ }
1145
+ function Kr() {
1146
+ function r(t, e, i) {
1147
+ if (!t) return null;
1148
+ if (t === he)
1149
+ return new $r(t, e, i);
1150
+ if (t[0] === "@" && t.substr(0, yt.length) === yt)
1151
+ return new Fr(t, e, i);
1152
+ var o = i.parent;
1153
+ return o && (o.type === "global" || o.options.parent && o.options.parent.type === "global") && (i.scoped = !1), !i.selector && i.scoped === !1 && (i.selector = t), null;
1154
+ }
1155
+ function n(t, e) {
1156
+ t.type !== "style" || !e || (Xr(t, e), _r(t, e));
1157
+ }
1158
+ return {
1159
+ onCreateRule: r,
1160
+ onProcessRule: n
1161
+ };
1162
+ }
1163
+ var Wt = /\s*,\s*/g, qr = /&/g, ei = /\$([\w-]+)/g;
1164
+ function ti() {
1165
+ function r(i, o) {
1166
+ return function(a, s) {
1167
+ var c = i.getRule(s) || o && o.getRule(s);
1168
+ return c ? c.selector : (D.env.NODE_ENV !== "production" && ie(!1, '[JSS] Could not find the referenced rule "' + s + '" in "' + (i.options.meta || i.toString()) + '".'), s);
1169
+ };
1170
+ }
1171
+ function n(i, o) {
1172
+ for (var a = o.split(Wt), s = i.split(Wt), c = "", u = 0; u < a.length; u++)
1173
+ for (var g = a[u], h = 0; h < s.length; h++) {
1174
+ var M = s[h];
1175
+ c && (c += ", "), c += M.indexOf("&") !== -1 ? M.replace(qr, g) : g + " " + M;
1176
+ }
1177
+ return c;
1178
+ }
1179
+ function t(i, o, a) {
1180
+ if (a) return E({}, a, {
1181
+ index: a.index + 1
1182
+ });
1183
+ var s = i.options.nestingLevel;
1184
+ s = s === void 0 ? 1 : s + 1;
1185
+ var c = E({}, i.options, {
1186
+ nestingLevel: s,
1187
+ index: o.indexOf(i) + 1
1188
+ // We don't need the parent name to be set options for chlid.
1189
+ });
1190
+ return delete c.name, c;
1191
+ }
1192
+ function e(i, o, a) {
1193
+ if (o.type !== "style") return i;
1194
+ var s = o, c = s.options.parent, u, g;
1195
+ for (var h in i) {
1196
+ var M = h.indexOf("&") !== -1, y = h[0] === "@";
1197
+ if (!(!M && !y)) {
1198
+ if (u = t(s, c, u), M) {
1199
+ var p = n(h, s.selector);
1200
+ g || (g = r(c, a)), p = p.replace(ei, g);
1201
+ var d = s.key + "-" + h;
1202
+ "replaceRule" in c ? c.replaceRule(d, i[h], E({}, u, {
1203
+ selector: p
1204
+ })) : c.addRule(d, i[h], E({}, u, {
1205
+ selector: p
1206
+ }));
1207
+ } else y && c.addRule(h, {}, u).addRule(s.key, i[h], {
1208
+ selector: s.selector
1209
+ });
1210
+ delete i[h];
1211
+ }
1212
+ }
1213
+ return i;
1214
+ }
1215
+ return {
1216
+ onProcessStyle: e
1217
+ };
1218
+ }
1219
+ var ni = /[A-Z]/g, ri = /^ms-/, it = {};
1220
+ function ii(r) {
1221
+ return "-" + r.toLowerCase();
1222
+ }
1223
+ function pn(r) {
1224
+ if (it.hasOwnProperty(r))
1225
+ return it[r];
1226
+ var n = r.replace(ni, ii);
1227
+ return it[r] = ri.test(n) ? "-" + n : n;
1228
+ }
1229
+ function Je(r) {
1230
+ var n = {};
1231
+ for (var t in r) {
1232
+ var e = t.indexOf("--") === 0 ? t : pn(t);
1233
+ n[e] = r[t];
1234
+ }
1235
+ return r.fallbacks && (Array.isArray(r.fallbacks) ? n.fallbacks = r.fallbacks.map(Je) : n.fallbacks = Je(r.fallbacks)), n;
1236
+ }
1237
+ function si() {
1238
+ function r(t) {
1239
+ if (Array.isArray(t)) {
1240
+ for (var e = 0; e < t.length; e++)
1241
+ t[e] = Je(t[e]);
1242
+ return t;
1243
+ }
1244
+ return Je(t);
1245
+ }
1246
+ function n(t, e, i) {
1247
+ if (e.indexOf("--") === 0)
1248
+ return t;
1249
+ var o = pn(e);
1250
+ return e === o ? t : (i.prop(o, t), null);
1251
+ }
1252
+ return {
1253
+ onProcessStyle: r,
1254
+ onChangeValue: n
1255
+ };
1256
+ }
1257
+ var f = Dt && CSS ? CSS.px : "px", Ye = Dt && CSS ? CSS.ms : "ms", Ie = Dt && CSS ? CSS.percent : "%", oi = {
1258
+ // Animation properties
1259
+ "animation-delay": Ye,
1260
+ "animation-duration": Ye,
1261
+ // Background properties
1262
+ "background-position": f,
1263
+ "background-position-x": f,
1264
+ "background-position-y": f,
1265
+ "background-size": f,
1266
+ // Border Properties
1267
+ border: f,
1268
+ "border-bottom": f,
1269
+ "border-bottom-left-radius": f,
1270
+ "border-bottom-right-radius": f,
1271
+ "border-bottom-width": f,
1272
+ "border-left": f,
1273
+ "border-left-width": f,
1274
+ "border-radius": f,
1275
+ "border-right": f,
1276
+ "border-right-width": f,
1277
+ "border-top": f,
1278
+ "border-top-left-radius": f,
1279
+ "border-top-right-radius": f,
1280
+ "border-top-width": f,
1281
+ "border-width": f,
1282
+ "border-block": f,
1283
+ "border-block-end": f,
1284
+ "border-block-end-width": f,
1285
+ "border-block-start": f,
1286
+ "border-block-start-width": f,
1287
+ "border-block-width": f,
1288
+ "border-inline": f,
1289
+ "border-inline-end": f,
1290
+ "border-inline-end-width": f,
1291
+ "border-inline-start": f,
1292
+ "border-inline-start-width": f,
1293
+ "border-inline-width": f,
1294
+ "border-start-start-radius": f,
1295
+ "border-start-end-radius": f,
1296
+ "border-end-start-radius": f,
1297
+ "border-end-end-radius": f,
1298
+ // Margin properties
1299
+ margin: f,
1300
+ "margin-bottom": f,
1301
+ "margin-left": f,
1302
+ "margin-right": f,
1303
+ "margin-top": f,
1304
+ "margin-block": f,
1305
+ "margin-block-end": f,
1306
+ "margin-block-start": f,
1307
+ "margin-inline": f,
1308
+ "margin-inline-end": f,
1309
+ "margin-inline-start": f,
1310
+ // Padding properties
1311
+ padding: f,
1312
+ "padding-bottom": f,
1313
+ "padding-left": f,
1314
+ "padding-right": f,
1315
+ "padding-top": f,
1316
+ "padding-block": f,
1317
+ "padding-block-end": f,
1318
+ "padding-block-start": f,
1319
+ "padding-inline": f,
1320
+ "padding-inline-end": f,
1321
+ "padding-inline-start": f,
1322
+ // Mask properties
1323
+ "mask-position-x": f,
1324
+ "mask-position-y": f,
1325
+ "mask-size": f,
1326
+ // Width and height properties
1327
+ height: f,
1328
+ width: f,
1329
+ "min-height": f,
1330
+ "max-height": f,
1331
+ "min-width": f,
1332
+ "max-width": f,
1333
+ // Position properties
1334
+ bottom: f,
1335
+ left: f,
1336
+ top: f,
1337
+ right: f,
1338
+ inset: f,
1339
+ "inset-block": f,
1340
+ "inset-block-end": f,
1341
+ "inset-block-start": f,
1342
+ "inset-inline": f,
1343
+ "inset-inline-end": f,
1344
+ "inset-inline-start": f,
1345
+ // Shadow properties
1346
+ "box-shadow": f,
1347
+ "text-shadow": f,
1348
+ // Column properties
1349
+ "column-gap": f,
1350
+ "column-rule": f,
1351
+ "column-rule-width": f,
1352
+ "column-width": f,
1353
+ // Font and text properties
1354
+ "font-size": f,
1355
+ "font-size-delta": f,
1356
+ "letter-spacing": f,
1357
+ "text-decoration-thickness": f,
1358
+ "text-indent": f,
1359
+ "text-stroke": f,
1360
+ "text-stroke-width": f,
1361
+ "word-spacing": f,
1362
+ // Motion properties
1363
+ motion: f,
1364
+ "motion-offset": f,
1365
+ // Outline properties
1366
+ outline: f,
1367
+ "outline-offset": f,
1368
+ "outline-width": f,
1369
+ // Perspective properties
1370
+ perspective: f,
1371
+ "perspective-origin-x": Ie,
1372
+ "perspective-origin-y": Ie,
1373
+ // Transform properties
1374
+ "transform-origin": Ie,
1375
+ "transform-origin-x": Ie,
1376
+ "transform-origin-y": Ie,
1377
+ "transform-origin-z": Ie,
1378
+ // Transition properties
1379
+ "transition-delay": Ye,
1380
+ "transition-duration": Ye,
1381
+ // Alignment properties
1382
+ "vertical-align": f,
1383
+ "flex-basis": f,
1384
+ // Some random properties
1385
+ "shape-margin": f,
1386
+ size: f,
1387
+ gap: f,
1388
+ // Grid properties
1389
+ grid: f,
1390
+ "grid-gap": f,
1391
+ "row-gap": f,
1392
+ "grid-row-gap": f,
1393
+ "grid-column-gap": f,
1394
+ "grid-template-rows": f,
1395
+ "grid-template-columns": f,
1396
+ "grid-auto-rows": f,
1397
+ "grid-auto-columns": f,
1398
+ // Not existing properties.
1399
+ // Used to avoid issues with jss-plugin-expand integration.
1400
+ "box-shadow-x": f,
1401
+ "box-shadow-y": f,
1402
+ "box-shadow-blur": f,
1403
+ "box-shadow-spread": f,
1404
+ "font-line-height": f,
1405
+ "text-shadow-x": f,
1406
+ "text-shadow-y": f,
1407
+ "text-shadow-blur": f
1408
+ };
1409
+ function yn(r) {
1410
+ var n = /(-[a-z])/g, t = function(a) {
1411
+ return a[1].toUpperCase();
1412
+ }, e = {};
1413
+ for (var i in r)
1414
+ e[i] = r[i], e[i.replace(n, t)] = r[i];
1415
+ return e;
1416
+ }
1417
+ var ai = yn(oi);
1418
+ function Le(r, n, t) {
1419
+ if (n == null) return n;
1420
+ if (Array.isArray(n))
1421
+ for (var e = 0; e < n.length; e++)
1422
+ n[e] = Le(r, n[e], t);
1423
+ else if (typeof n == "object")
1424
+ if (r === "fallbacks")
1425
+ for (var i in n)
1426
+ n[i] = Le(i, n[i], t);
1427
+ else
1428
+ for (var o in n)
1429
+ n[o] = Le(r + "-" + o, n[o], t);
1430
+ else if (typeof n == "number" && isNaN(n) === !1) {
1431
+ var a = t[r] || ai[r];
1432
+ return a && !(n === 0 && a === f) ? typeof a == "function" ? a(n).toString() : "" + n + a : n.toString();
1433
+ }
1434
+ return n;
1435
+ }
1436
+ function ci(r) {
1437
+ r === void 0 && (r = {});
1438
+ var n = yn(r);
1439
+ function t(i, o) {
1440
+ if (o.type !== "style") return i;
1441
+ for (var a in i)
1442
+ i[a] = Le(a, i[a], n);
1443
+ return i;
1444
+ }
1445
+ function e(i, o) {
1446
+ return Le(o, i, n);
1447
+ }
1448
+ return {
1449
+ onProcessStyle: t,
1450
+ onChangeValue: e
1451
+ };
1452
+ }
1453
+ function mt(r, n) {
1454
+ (n == null || n > r.length) && (n = r.length);
1455
+ for (var t = 0, e = Array(n); t < n; t++) e[t] = r[t];
1456
+ return e;
1457
+ }
1458
+ function li(r) {
1459
+ if (Array.isArray(r)) return mt(r);
1460
+ }
1461
+ function ui(r) {
1462
+ if (typeof Symbol < "u" && r[Symbol.iterator] != null || r["@@iterator"] != null) return Array.from(r);
1463
+ }
1464
+ function di(r, n) {
1465
+ if (r) {
1466
+ if (typeof r == "string") return mt(r, n);
1467
+ var t = {}.toString.call(r).slice(8, -1);
1468
+ return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? mt(r, n) : void 0;
1469
+ }
1470
+ }
1471
+ function fi() {
1472
+ throw new TypeError(`Invalid attempt to spread non-iterable instance.
1473
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1474
+ }
1475
+ function hi(r) {
1476
+ return li(r) || ui(r) || di(r) || fi();
1477
+ }
1478
+ var ke = "", Mt = "", mn = "", Mn = "", gi = Ge && "ontouchstart" in document.documentElement;
1479
+ if (Ge) {
1480
+ var st = {
1481
+ Moz: "-moz-",
1482
+ ms: "-ms-",
1483
+ O: "-o-",
1484
+ Webkit: "-webkit-"
1485
+ }, bi = document.createElement("p"), ot = bi.style, wi = "Transform";
1486
+ for (var at in st)
1487
+ if (at + wi in ot) {
1488
+ ke = at, Mt = st[at];
1489
+ break;
1490
+ }
1491
+ ke === "Webkit" && "msHyphens" in ot && (ke = "ms", Mt = st.ms, Mn = "edge"), ke === "Webkit" && "-apple-trailing-word" in ot && (mn = "apple");
1492
+ }
1493
+ var j = {
1494
+ js: ke,
1495
+ css: Mt,
1496
+ vendor: mn,
1497
+ browser: Mn,
1498
+ isTouch: gi
1499
+ };
1500
+ function pi(r) {
1501
+ return r[1] === "-" || j.js === "ms" ? r : "@" + j.css + "keyframes" + r.substr(10);
1502
+ }
1503
+ var yi = {
1504
+ noPrefill: ["appearance"],
1505
+ supportedProperty: function(n) {
1506
+ return n !== "appearance" ? !1 : j.js === "ms" ? "-webkit-" + n : j.css + n;
1507
+ }
1508
+ }, mi = {
1509
+ noPrefill: ["color-adjust"],
1510
+ supportedProperty: function(n) {
1511
+ return n !== "color-adjust" ? !1 : j.js === "Webkit" ? j.css + "print-" + n : n;
1512
+ }
1513
+ }, Mi = /[-\s]+(.)?/g;
1514
+ function xi(r, n) {
1515
+ return n ? n.toUpperCase() : "";
1516
+ }
1517
+ function Tt(r) {
1518
+ return r.replace(Mi, xi);
1519
+ }
1520
+ function ge(r) {
1521
+ return Tt("-" + r);
1522
+ }
1523
+ var vi = {
1524
+ noPrefill: ["mask"],
1525
+ supportedProperty: function(n, t) {
1526
+ if (!/^mask/.test(n)) return !1;
1527
+ if (j.js === "Webkit") {
1528
+ var e = "mask-image";
1529
+ if (Tt(e) in t)
1530
+ return n;
1531
+ if (j.js + ge(e) in t)
1532
+ return j.css + n;
1533
+ }
1534
+ return n;
1535
+ }
1536
+ }, Ii = {
1537
+ noPrefill: ["text-orientation"],
1538
+ supportedProperty: function(n) {
1539
+ return n !== "text-orientation" ? !1 : j.vendor === "apple" && !j.isTouch ? j.css + n : n;
1540
+ }
1541
+ }, Ni = {
1542
+ noPrefill: ["transform"],
1543
+ supportedProperty: function(n, t, e) {
1544
+ return n !== "transform" ? !1 : e.transform ? n : j.css + n;
1545
+ }
1546
+ }, Ci = {
1547
+ noPrefill: ["transition"],
1548
+ supportedProperty: function(n, t, e) {
1549
+ return n !== "transition" ? !1 : e.transition ? n : j.css + n;
1550
+ }
1551
+ }, ji = {
1552
+ noPrefill: ["writing-mode"],
1553
+ supportedProperty: function(n) {
1554
+ return n !== "writing-mode" ? !1 : j.js === "Webkit" || j.js === "ms" && j.browser !== "edge" ? j.css + n : n;
1555
+ }
1556
+ }, Si = {
1557
+ noPrefill: ["user-select"],
1558
+ supportedProperty: function(n) {
1559
+ return n !== "user-select" ? !1 : j.js === "Moz" || j.js === "ms" || j.vendor === "apple" ? j.css + n : n;
1560
+ }
1561
+ }, Di = {
1562
+ supportedProperty: function(n, t) {
1563
+ if (!/^break-/.test(n)) return !1;
1564
+ if (j.js === "Webkit") {
1565
+ var e = "WebkitColumn" + ge(n);
1566
+ return e in t ? j.css + "column-" + n : !1;
1567
+ }
1568
+ if (j.js === "Moz") {
1569
+ var i = "page" + ge(n);
1570
+ return i in t ? "page-" + n : !1;
1571
+ }
1572
+ return !1;
1573
+ }
1574
+ }, Ti = {
1575
+ supportedProperty: function(n, t) {
1576
+ if (!/^(border|margin|padding)-inline/.test(n)) return !1;
1577
+ if (j.js === "Moz") return n;
1578
+ var e = n.replace("-inline", "");
1579
+ return j.js + ge(e) in t ? j.css + e : !1;
1580
+ }
1581
+ }, ki = {
1582
+ supportedProperty: function(n, t) {
1583
+ return Tt(n) in t ? n : !1;
1584
+ }
1585
+ }, Ai = {
1586
+ supportedProperty: function(n, t) {
1587
+ var e = ge(n);
1588
+ return n[0] === "-" || n[0] === "-" && n[1] === "-" ? n : j.js + e in t ? j.css + n : j.js !== "Webkit" && "Webkit" + e in t ? "-webkit-" + n : !1;
1589
+ }
1590
+ }, zi = {
1591
+ supportedProperty: function(n) {
1592
+ return n.substring(0, 11) !== "scroll-snap" ? !1 : j.js === "ms" ? "" + j.css + n : n;
1593
+ }
1594
+ }, Ei = {
1595
+ supportedProperty: function(n) {
1596
+ return n !== "overscroll-behavior" ? !1 : j.js === "ms" ? j.css + "scroll-chaining" : n;
1597
+ }
1598
+ }, Li = {
1599
+ "flex-grow": "flex-positive",
1600
+ "flex-shrink": "flex-negative",
1601
+ "flex-basis": "flex-preferred-size",
1602
+ "justify-content": "flex-pack",
1603
+ order: "flex-order",
1604
+ "align-items": "flex-align",
1605
+ "align-content": "flex-line-pack"
1606
+ // 'align-self' is handled by 'align-self' plugin.
1607
+ }, Oi = {
1608
+ supportedProperty: function(n, t) {
1609
+ var e = Li[n];
1610
+ return e && j.js + ge(e) in t ? j.css + e : !1;
1611
+ }
1612
+ }, xn = {
1613
+ flex: "box-flex",
1614
+ "flex-grow": "box-flex",
1615
+ "flex-direction": ["box-orient", "box-direction"],
1616
+ order: "box-ordinal-group",
1617
+ "align-items": "box-align",
1618
+ "flex-flow": ["box-orient", "box-direction"],
1619
+ "justify-content": "box-pack"
1620
+ }, Ri = Object.keys(xn), Pi = function(n) {
1621
+ return j.css + n;
1622
+ }, Bi = {
1623
+ supportedProperty: function(n, t, e) {
1624
+ var i = e.multiple;
1625
+ if (Ri.indexOf(n) > -1) {
1626
+ var o = xn[n];
1627
+ if (!Array.isArray(o))
1628
+ return j.js + ge(o) in t ? j.css + o : !1;
1629
+ if (!i) return !1;
1630
+ for (var a = 0; a < o.length; a++)
1631
+ if (!(j.js + ge(o[0]) in t))
1632
+ return !1;
1633
+ return o.map(Pi);
1634
+ }
1635
+ return !1;
1636
+ }
1637
+ }, vn = [yi, mi, vi, Ii, Ni, Ci, ji, Si, Di, Ti, ki, Ai, zi, Ei, Oi, Bi], Jt = vn.filter(function(r) {
1638
+ return r.supportedProperty;
1639
+ }).map(function(r) {
1640
+ return r.supportedProperty;
1641
+ }), Gi = vn.filter(function(r) {
1642
+ return r.noPrefill;
1643
+ }).reduce(function(r, n) {
1644
+ return r.push.apply(r, hi(n.noPrefill)), r;
1645
+ }, []), Ae, me = {};
1646
+ if (Ge) {
1647
+ Ae = document.createElement("p");
1648
+ var ct = window.getComputedStyle(document.documentElement, "");
1649
+ for (var lt in ct)
1650
+ isNaN(lt) || (me[ct[lt]] = ct[lt]);
1651
+ Gi.forEach(function(r) {
1652
+ return delete me[r];
1653
+ });
1654
+ }
1655
+ function xt(r, n) {
1656
+ if (n === void 0 && (n = {}), !Ae) return r;
1657
+ if (D.env.NODE_ENV !== "benchmark" && me[r] != null)
1658
+ return me[r];
1659
+ (r === "transition" || r === "transform") && (n[r] = r in Ae.style);
1660
+ for (var t = 0; t < Jt.length && (me[r] = Jt[t](r, Ae.style, n), !me[r]); t++)
1661
+ ;
1662
+ try {
1663
+ Ae.style[r] = "";
1664
+ } catch {
1665
+ return !1;
1666
+ }
1667
+ return me[r];
1668
+ }
1669
+ var Ne = {}, Ui = {
1670
+ transition: 1,
1671
+ "transition-property": 1,
1672
+ "-webkit-transition": 1,
1673
+ "-webkit-transition-property": 1
1674
+ }, Qi = /(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g, fe;
1675
+ function Yi(r, n, t) {
1676
+ if (n === "var") return "var";
1677
+ if (n === "all") return "all";
1678
+ if (t === "all") return ", all";
1679
+ var e = n ? xt(n) : ", " + xt(t);
1680
+ return e || n || t;
1681
+ }
1682
+ Ge && (fe = document.createElement("p"));
1683
+ function $t(r, n) {
1684
+ var t = n;
1685
+ if (!fe || r === "content") return n;
1686
+ if (typeof t != "string" || !isNaN(parseInt(t, 10)))
1687
+ return t;
1688
+ var e = r + t;
1689
+ if (D.env.NODE_ENV !== "benchmark" && Ne[e] != null)
1690
+ return Ne[e];
1691
+ try {
1692
+ fe.style[r] = t;
1693
+ } catch {
1694
+ return Ne[e] = !1, !1;
1695
+ }
1696
+ if (Ui[r])
1697
+ t = t.replace(Qi, Yi);
1698
+ else if (fe.style[r] === "" && (t = j.css + t, t === "-ms-flex" && (fe.style[r] = "-ms-flexbox"), fe.style[r] = t, fe.style[r] === ""))
1699
+ return Ne[e] = !1, !1;
1700
+ return fe.style[r] = "", Ne[e] = t, Ne[e];
1701
+ }
1702
+ function Zi() {
1703
+ function r(i) {
1704
+ if (i.type === "keyframes") {
1705
+ var o = i;
1706
+ o.at = pi(o.at);
1707
+ }
1708
+ }
1709
+ function n(i) {
1710
+ for (var o in i) {
1711
+ var a = i[o];
1712
+ if (o === "fallbacks" && Array.isArray(a)) {
1713
+ i[o] = a.map(n);
1714
+ continue;
1715
+ }
1716
+ var s = !1, c = xt(o);
1717
+ c && c !== o && (s = !0);
1718
+ var u = !1, g = $t(c, Me(a));
1719
+ g && g !== a && (u = !0), (s || u) && (s && delete i[o], i[c || o] = g || a);
1720
+ }
1721
+ return i;
1722
+ }
1723
+ function t(i, o) {
1724
+ return o.type !== "style" ? i : n(i);
1725
+ }
1726
+ function e(i, o) {
1727
+ return $t(o, Me(i)) || i;
1728
+ }
1729
+ return {
1730
+ onProcessRule: r,
1731
+ onProcessStyle: t,
1732
+ onChangeValue: e
1733
+ };
1734
+ }
1735
+ function Vi() {
1736
+ var r = function(t, e) {
1737
+ return t.length === e.length ? t > e ? 1 : -1 : t.length - e.length;
1738
+ };
1739
+ return {
1740
+ onProcessStyle: function(t, e) {
1741
+ if (e.type !== "style") return t;
1742
+ for (var i = {}, o = Object.keys(t).sort(r), a = 0; a < o.length; a++)
1743
+ i[o[a]] = t[o[a]];
1744
+ return i;
1745
+ }
1746
+ };
1747
+ }
1748
+ function In() {
1749
+ return {
1750
+ plugins: [
1751
+ Jr(),
1752
+ Kr(),
1753
+ ti(),
1754
+ si(),
1755
+ ci(),
1756
+ // Disable the vendor prefixer server-side, it does nothing.
1757
+ // This way, we can get a performance boost.
1758
+ // In the documentation, we are using `autoprefixer` to solve this problem.
1759
+ typeof window > "u" ? null : Zi(),
1760
+ Vi()
1761
+ ]
1762
+ };
1763
+ }
1764
+ function Nn(r = {}) {
1765
+ const {
1766
+ baseClasses: n,
1767
+ newClasses: t,
1768
+ Component: e
1769
+ } = r;
1770
+ if (!t)
1771
+ return n;
1772
+ const i = E({}, n);
1773
+ return D.env.NODE_ENV !== "production" && typeof t == "string" ? n : (Object.keys(t).forEach((o) => {
1774
+ D.env.NODE_ENV !== "production" && (!n[o] && t[o], t[o] && t[o]), t[o] && (i[o] = `${n[o]} ${t[o]}`);
1775
+ }), i);
1776
+ }
1777
+ const Ce = {
1778
+ set: (r, n, t, e) => {
1779
+ let i = r.get(n);
1780
+ i || (i = /* @__PURE__ */ new Map(), r.set(n, i)), i.set(t, e);
1781
+ },
1782
+ get: (r, n, t) => {
1783
+ const e = r.get(n);
1784
+ return e ? e.get(t) : void 0;
1785
+ },
1786
+ delete: (r, n, t) => {
1787
+ r.get(n).delete(t);
1788
+ }
1789
+ };
1790
+ function Wi() {
1791
+ var r;
1792
+ const n = Jn();
1793
+ return (r = n == null ? void 0 : n.$$material) != null ? r : n;
1794
+ }
1795
+ const Ji = ["children", "injectFirst", "disableGeneration"], $i = St(In()), Fi = ir(), Hi = /* @__PURE__ */ new Map(), Xi = {
1796
+ disableGeneration: !1,
1797
+ generateClassName: Fi,
1798
+ jss: $i,
1799
+ sheetsCache: null,
1800
+ sheetsManager: Hi,
1801
+ sheetsRegistry: null
1802
+ }, $e = /* @__PURE__ */ H.createContext(Xi);
1803
+ D.env.NODE_ENV !== "production" && ($e.displayName = "StylesContext");
1804
+ let Ze;
1805
+ function vt(r) {
1806
+ const {
1807
+ children: n,
1808
+ injectFirst: t = !1,
1809
+ disableGeneration: e = !1
1810
+ } = r, i = Pe(r, Ji), o = H.useContext($e), {
1811
+ generateClassName: a,
1812
+ jss: s,
1813
+ serverGenerateClassName: c,
1814
+ sheetsCache: u,
1815
+ sheetsManager: g,
1816
+ sheetsRegistry: h
1817
+ } = E({}, o, i);
1818
+ D.env.NODE_ENV !== "production" && t && i.jss;
1819
+ const M = H.useMemo(() => {
1820
+ const y = {
1821
+ disableGeneration: e,
1822
+ generateClassName: a,
1823
+ jss: s,
1824
+ serverGenerateClassName: c,
1825
+ sheetsCache: u,
1826
+ sheetsManager: g,
1827
+ sheetsRegistry: h
1828
+ };
1829
+ if (D.env.NODE_ENV !== "production" && typeof window > "u" && y.sheetsManager, D.env.NODE_ENV !== "production" && y.jss.options.insertionPoint, !y.jss.options.insertionPoint && t && typeof window < "u") {
1830
+ if (!Ze) {
1831
+ const p = document.head;
1832
+ Ze = document.createComment("mui-inject-first"), p.insertBefore(Ze, p.firstChild);
1833
+ }
1834
+ y.jss = St({
1835
+ plugins: In().plugins,
1836
+ insertionPoint: Ze
1837
+ });
1838
+ }
1839
+ return y;
1840
+ }, [t, e, a, s, c, u, g, h]);
1841
+ return /* @__PURE__ */ l($e.Provider, {
1842
+ value: M,
1843
+ children: n
1844
+ });
1845
+ }
1846
+ D.env.NODE_ENV !== "production" && (vt.propTypes = {
1847
+ /**
1848
+ * Your component tree.
1849
+ */
1850
+ children: z.node,
1851
+ /**
1852
+ * You can disable the generation of the styles with this option.
1853
+ * It can be useful when traversing the React tree outside of the HTML
1854
+ * rendering step on the server.
1855
+ * Let's say you are using react-apollo to extract all
1856
+ * the queries made by the interface server-side - you can significantly speed up the traversal with this prop.
1857
+ */
1858
+ disableGeneration: z.bool,
1859
+ /**
1860
+ * JSS's class name generator.
1861
+ */
1862
+ generateClassName: z.func,
1863
+ /**
1864
+ * By default, the styles are injected last in the <head> element of the page.
1865
+ * As a result, they gain more specificity than any other style sheet.
1866
+ * If you want to override MUI's styles, set this prop.
1867
+ */
1868
+ injectFirst: z.bool,
1869
+ /**
1870
+ * JSS's instance.
1871
+ */
1872
+ jss: z.object,
1873
+ /**
1874
+ * @ignore
1875
+ */
1876
+ serverGenerateClassName: z.func,
1877
+ /**
1878
+ * @ignore
1879
+ *
1880
+ * Beta feature.
1881
+ *
1882
+ * Cache for the sheets.
1883
+ */
1884
+ sheetsCache: z.object,
1885
+ /**
1886
+ * @ignore
1887
+ *
1888
+ * The sheetsManager is used to deduplicate style sheet injection in the page.
1889
+ * It's deduplicating using the (theme, styles) couple.
1890
+ * On the server, you should provide a new instance for each request.
1891
+ */
1892
+ sheetsManager: z.object,
1893
+ /**
1894
+ * @ignore
1895
+ *
1896
+ * Collect the sheets.
1897
+ */
1898
+ sheetsRegistry: z.object
1899
+ });
1900
+ D.env.NODE_ENV !== "production" && D.env.NODE_ENV !== "production" && (vt.propTypes = Bn(vt.propTypes));
1901
+ let ut = -1e9;
1902
+ function _i() {
1903
+ return ut += 1, D.env.NODE_ENV !== "production" && ut >= 0, ut;
1904
+ }
1905
+ const Ki = ["variant"];
1906
+ function Ft(r) {
1907
+ return r.length === 0;
1908
+ }
1909
+ function qi(r) {
1910
+ const {
1911
+ variant: n
1912
+ } = r, t = Pe(r, Ki);
1913
+ let e = n || "";
1914
+ return Object.keys(t).sort().forEach((i) => {
1915
+ i === "color" ? e += Ft(e) ? r[i] : ze(r[i]) : e += `${Ft(e) ? i : ze(i)}${ze(r[i].toString())}`;
1916
+ }), e;
1917
+ }
1918
+ const Cn = {};
1919
+ function es(r) {
1920
+ const n = typeof r == "function";
1921
+ return D.env.NODE_ENV, {
1922
+ create: (t, e) => {
1923
+ let i;
1924
+ try {
1925
+ i = n ? r(t) : r;
1926
+ } catch (c) {
1927
+ throw D.env.NODE_ENV, c;
1928
+ }
1929
+ if (!e || !t.components || !t.components[e] || !t.components[e].styleOverrides && !t.components[e].variants)
1930
+ return i;
1931
+ const o = t.components[e].styleOverrides || {}, a = t.components[e].variants || [], s = E({}, i);
1932
+ return Object.keys(o).forEach((c) => {
1933
+ D.env.NODE_ENV !== "production" && s[c], s[c] = At(s[c] || {}, o[c]);
1934
+ }), a.forEach((c) => {
1935
+ const u = qi(c.props);
1936
+ s[u] = At(s[u] || {}, c.style);
1937
+ }), s;
1938
+ },
1939
+ options: {}
1940
+ };
1941
+ }
1942
+ const ts = ["name", "classNamePrefix", "Component", "defaultTheme"];
1943
+ function ns({
1944
+ state: r,
1945
+ stylesOptions: n
1946
+ }, t, e) {
1947
+ if (n.disableGeneration)
1948
+ return t || {};
1949
+ r.cacheClasses || (r.cacheClasses = {
1950
+ // Cache for the finalized classes value.
1951
+ value: null,
1952
+ // Cache for the last used classes prop pointer.
1953
+ lastProp: null,
1954
+ // Cache for the last used rendered classes pointer.
1955
+ lastJSS: {}
1956
+ });
1957
+ let i = !1;
1958
+ return r.classes !== r.cacheClasses.lastJSS && (r.cacheClasses.lastJSS = r.classes, i = !0), t !== r.cacheClasses.lastProp && (r.cacheClasses.lastProp = t, i = !0), i && (r.cacheClasses.value = Nn({
1959
+ baseClasses: r.cacheClasses.lastJSS,
1960
+ newClasses: t,
1961
+ Component: e
1962
+ })), r.cacheClasses.value;
1963
+ }
1964
+ function rs({
1965
+ state: r,
1966
+ theme: n,
1967
+ stylesOptions: t,
1968
+ stylesCreator: e,
1969
+ name: i
1970
+ }, o) {
1971
+ if (t.disableGeneration)
1972
+ return;
1973
+ let a = Ce.get(t.sheetsManager, e, n);
1974
+ a || (a = {
1975
+ refs: 0,
1976
+ staticSheet: null,
1977
+ dynamicStyles: null
1978
+ }, Ce.set(t.sheetsManager, e, n, a));
1979
+ const s = E({}, e.options, t, {
1980
+ theme: n,
1981
+ flip: typeof t.flip == "boolean" ? t.flip : n.direction === "rtl"
1982
+ });
1983
+ s.generateId = s.serverGenerateClassName || s.generateClassName;
1984
+ const c = t.sheetsRegistry;
1985
+ if (a.refs === 0) {
1986
+ let u;
1987
+ t.sheetsCache && (u = Ce.get(t.sheetsCache, e, n));
1988
+ const g = e.create(n, i);
1989
+ u || (u = t.jss.createStyleSheet(g, E({
1990
+ link: !1
1991
+ }, s)), u.attach(), t.sheetsCache && Ce.set(t.sheetsCache, e, n, u)), c && c.add(u), a.staticSheet = u, a.dynamicStyles = gn(g);
1992
+ }
1993
+ if (a.dynamicStyles) {
1994
+ const u = t.jss.createStyleSheet(a.dynamicStyles, E({
1995
+ link: !0
1996
+ }, s));
1997
+ u.update(o), u.attach(), r.dynamicSheet = u, r.classes = Nn({
1998
+ baseClasses: a.staticSheet.classes,
1999
+ newClasses: u.classes
2000
+ }), c && c.add(u);
2001
+ } else
2002
+ r.classes = a.staticSheet.classes;
2003
+ a.refs += 1;
2004
+ }
2005
+ function is({
2006
+ state: r
2007
+ }, n) {
2008
+ r.dynamicSheet && r.dynamicSheet.update(n);
2009
+ }
2010
+ function ss({
2011
+ state: r,
2012
+ theme: n,
2013
+ stylesOptions: t,
2014
+ stylesCreator: e
2015
+ }) {
2016
+ if (t.disableGeneration)
2017
+ return;
2018
+ const i = Ce.get(t.sheetsManager, e, n);
2019
+ i.refs -= 1;
2020
+ const o = t.sheetsRegistry;
2021
+ i.refs === 0 && (Ce.delete(t.sheetsManager, e, n), t.jss.removeStyleSheet(i.staticSheet), o && o.remove(i.staticSheet)), r.dynamicSheet && (t.jss.removeStyleSheet(r.dynamicSheet), o && o.remove(r.dynamicSheet));
2022
+ }
2023
+ function os(r, n) {
2024
+ const t = H.useRef([]);
2025
+ let e;
2026
+ const i = H.useMemo(() => ({}), n);
2027
+ t.current !== i && (t.current = i, e = r()), H.useEffect(
2028
+ () => () => {
2029
+ e && e();
2030
+ },
2031
+ [i]
2032
+ // eslint-disable-line react-hooks/exhaustive-deps
2033
+ );
2034
+ }
2035
+ function as(r, n = {}) {
2036
+ const {
2037
+ // alias for classNamePrefix, if provided will listen to theme (required for theme.components[name].styleOverrides)
2038
+ name: t,
2039
+ // Help with debuggability.
2040
+ classNamePrefix: e,
2041
+ Component: i,
2042
+ defaultTheme: o = Cn
2043
+ } = n, a = Pe(n, ts), s = es(r), c = t || e || "makeStyles";
2044
+ return s.options = {
2045
+ index: _i(),
2046
+ name: t,
2047
+ meta: c,
2048
+ classNamePrefix: c
2049
+ }, (g = {}) => {
2050
+ const h = Wi() || o, M = E({}, H.useContext($e), a), y = H.useRef(), p = H.useRef();
2051
+ os(() => {
2052
+ const x = {
2053
+ name: t,
2054
+ state: {},
2055
+ stylesCreator: s,
2056
+ stylesOptions: M,
2057
+ theme: h
2058
+ };
2059
+ return rs(x, g), p.current = !1, y.current = x, () => {
2060
+ ss(x);
2061
+ };
2062
+ }, [h, s]), H.useEffect(() => {
2063
+ p.current && is(y.current, g), p.current = !0;
2064
+ });
2065
+ const d = ns(y.current, g.classes, i);
2066
+ return D.env.NODE_ENV !== "production" && H.useDebugValue(d), D.env.NODE_ENV !== "production" && t && ["MuiAvatar", "MuiBadge", "MuiButton", "MuiButtonGroup", "MuiChip", "MuiDivider", "MuiFab", "MuiPaper", "MuiToolbar", "MuiTypography", "MuiAlert", "MuiPagination", "MuiPaginationItem", "MuiSkeleton", "MuiTimelineDot"].indexOf(t) >= 0 && g.variant && d[g.variant], d;
2067
+ };
2068
+ }
2069
+ const cs = as(() => ({
2070
+ circle: {
2071
+ stroke: "url(#linearColors)"
2072
+ },
2073
+ MuiCircularProgress: { circle: { color: "green" } }
2074
+ }));
2075
+ function jn(r) {
2076
+ var x, N, Q, W, S;
2077
+ cs();
2078
+ const { injectedicon: n, metamaskicon: t, xverse: e, walletconnecticon: i, coinbaseicon: o, phantom: a, solflare: s, slope: c, magiceden: u, backpacksol: g, tronLink: h, keplr: M, brave: y } = ve, p = {
2079
+ Injected: n,
2080
+ metaMask: t,
2081
+ coinbaseWallet: o,
2082
+ WalletConnect: i,
2083
+ solflare: s,
2084
+ phantom: a,
2085
+ slope: c,
2086
+ backpack: g,
2087
+ keplr: M,
2088
+ xverse: e,
2089
+ "magic eden (solana)": u,
2090
+ "brave browser (solana)": y,
2091
+ TronLink: h
2092
+ }, d = k((A) => A.configuration);
2093
+ return /* @__PURE__ */ I(B, { children: [
2094
+ /* @__PURE__ */ l("svg", { className: "bw-absolute", children: /* @__PURE__ */ I("linearGradient", { id: "linearColors", x1: "0", y1: "0", x2: "1", y2: "1", children: [
2095
+ /* @__PURE__ */ l("stop", { offset: "1%", stopColor: (x = d == null ? void 0 : d.gradientStyle) != null && x.spinnerColor ? (N = d == null ? void 0 : d.gradientStyle) == null ? void 0 : N.spinnerColor : "#A45EFF" }),
2096
+ /* @__PURE__ */ l("stop", { offset: "90%", stopColor: (Q = d == null ? void 0 : d.gradientStyle) != null && Q.spinnerColor ? (W = d == null ? void 0 : d.gradientStyle) == null ? void 0 : W.stopColor : "#2CFFE4" })
2097
+ ] }) }),
2098
+ /* @__PURE__ */ I(
2099
+ Et,
2100
+ {
2101
+ sx: {
2102
+ position: "relative",
2103
+ display: "inline-flex"
2104
+ },
2105
+ children: [
2106
+ /* @__PURE__ */ l(
2107
+ Ve,
2108
+ {
2109
+ variant: "determinate",
2110
+ sx: {
2111
+ color: (A) => A.palette.grey[A.palette.mode === "light" ? 200 : 800]
2112
+ },
2113
+ size: 250,
2114
+ thickness: 1,
2115
+ value: 100
2116
+ }
2117
+ ),
2118
+ /* @__PURE__ */ l(
2119
+ Ve,
2120
+ {
2121
+ variant: "determinate",
2122
+ size: 250,
2123
+ thickness: 1,
2124
+ value: r.value,
2125
+ sx: {
2126
+ "svg circle": { stroke: "url(#linearColors)" },
2127
+ position: "absolute",
2128
+ left: 0,
2129
+ [`& .${Gn.circle}`]: {
2130
+ strokeLinecap: "round"
2131
+ }
2132
+ }
2133
+ }
2134
+ ),
2135
+ /* @__PURE__ */ l(
2136
+ Et,
2137
+ {
2138
+ sx: {
2139
+ top: 0,
2140
+ left: 0,
2141
+ bottom: 0,
2142
+ right: 0,
2143
+ position: "absolute",
2144
+ display: "flex",
2145
+ alignItems: "center",
2146
+ justifyContent: "center"
2147
+ },
2148
+ children: /* @__PURE__ */ I(cn, { variant: "caption", className: "bw-flex bw-flex-col bw-justify-center bw-items-center bw-text-2xl bw-font-medium bw-text-text-primary", component: "div", color: "text.secondary", children: [
2149
+ /* @__PURE__ */ l("img", { src: p[r == null ? void 0 : r.selectedWallet] || ((S = r.selectedConnector) == null ? void 0 : S.icon) || "", width: 90, height: 83, alt: "img" }),
2150
+ /* @__PURE__ */ l("p", { className: "bw-text-2xl bw-px-3 bw-mt-1 bw-text-center bw-font-medium bw-text-text-primary", children: r.selectedWallet })
2151
+ ] })
2152
+ }
2153
+ )
2154
+ ]
2155
+ }
2156
+ )
2157
+ ] });
2158
+ }
2159
+ jn.propTypes = {
2160
+ value: z.number.isRequired
2161
+ };
2162
+ function ls({ selectedWallet: r, isSuccess: n, data: t, isSolConnecting: e, isCosmosonnecting: i, isSuiConnecting: o, isTronConnecting: a, isBitcoinConnecting: s, selectedConnector: c }) {
2163
+ const { primaryWallet: u } = le(), g = Fe(), [h, M] = H.useState(25), { address: y, connected: p } = It(), { data: d } = _e();
2164
+ return H.useEffect(() => {
2165
+ (n && t || u !== null && g && (e || o || s) || y && p && a || d != null && d.bech32Address && i) && M(100);
2166
+ }, [n, t, e, o, s, u, g, a, i, d == null ? void 0 : d.bech32Address, y, p]), /* @__PURE__ */ l(jn, { value: h, selectedWallet: r, selectedConnector: c });
2167
+ }
2168
+ function us({ selectedWallet: r, selectedConnector: n, handleConnect: t, isSolConnecting: e, isCosmosonnecting: i, isSuiConnecting: o, isBitcoinConnecting: a, handleOtherWalletConnecting: s, data: c, isTronConnecting: u, isSuccess: g, evmError: h }) {
2169
+ var m, K, J;
2170
+ const M = k((v) => v.configuration), y = k((v) => v.setCosmosChainIds), p = k((v) => v.fromChain), d = k((v) => v.gradient), { select: x, connect: N, wallet: Q } = It(), { openWallet: W } = Nt(), { setPrimaryWallet: S } = le(), A = He(), { error: $ } = Xt(), { registerError: L } = Un(), { suggestAsync: Y } = rn(), { suggestAndConnectAsync: X } = sn(), { refetch: T } = Be({}), { connectAsync: G } = on({
2171
+ onError: (v) => {
2172
+ R(v.message);
2173
+ }
2174
+ }), [O, R] = P("");
2175
+ let w = h != null && h.length ? h : O;
2176
+ async function F() {
2177
+ R("");
2178
+ try {
2179
+ W(r);
2180
+ } catch (v) {
2181
+ R(v.message);
2182
+ }
2183
+ }
2184
+ async function re() {
2185
+ R("");
2186
+ try {
2187
+ Q ? await N(r) : await x(r);
2188
+ } catch (v) {
2189
+ R(v.message);
2190
+ }
2191
+ }
2192
+ ne(() => {
2193
+ let v = Wn(w || "");
2194
+ w.length && v && L({
2195
+ mode: "wallet connection",
2196
+ error: w
2197
+ });
2198
+ }, [w]);
2199
+ const _ = Se();
2200
+ ne(() => {
2201
+ var v;
2202
+ if (_ && r) {
2203
+ let b = xe.keyBy(_, (U) => U.connector.name.toLowerCase());
2204
+ (v = b == null ? void 0 : b[r]) != null && v.id && A(b[r].id);
2205
+ }
2206
+ }, [_, r]);
2207
+ async function ce() {
2208
+ R("");
2209
+ try {
2210
+ let v = await We();
2211
+ if (!v.includes(p == null ? void 0 : p.chainId) && (p == null ? void 0 : p.networkType) == "cosmos") {
2212
+ let b = {
2213
+ ...p == null ? void 0 : p.chainInfo
2214
+ };
2215
+ await X({
2216
+ chainInfo: b,
2217
+ walletType: je.KEPLR
2218
+ });
2219
+ let U = await We();
2220
+ y(U), await G({
2221
+ chainId: U,
2222
+ walletType: je.KEPLR
2223
+ }), await T();
2224
+ } else
2225
+ G({
2226
+ chainId: v,
2227
+ walletType: je.KEPLR
2228
+ });
2229
+ } catch (v) {
2230
+ R(v.message);
2231
+ }
2232
+ }
2233
+ return /* @__PURE__ */ I("div", { className: "bw-flex bw-w-full bw-flex-col bw-justify-center bw-items-center", children: [
2234
+ /* @__PURE__ */ I("div", { className: "bw-flex bw-w-full bw-relative bw-justify-center bw-mb-2", children: [
2235
+ /* @__PURE__ */ l(
2236
+ "button",
2237
+ {
2238
+ onClick: () => {
2239
+ s();
2240
+ },
2241
+ className: "bw-absolute bw-left-0 bw-top-[25%]",
2242
+ children: /* @__PURE__ */ l(tn, { fill: "var(--tw-text-secondary)" })
2243
+ }
2244
+ ),
2245
+ /* @__PURE__ */ l("div", { className: "bw-text-lg bw-font-normal bw-text-text-secondary", children: "Connect Wallet" }),
2246
+ /* @__PURE__ */ l(
2247
+ "button",
2248
+ {
2249
+ onClick: () => {
2250
+ s();
2251
+ },
2252
+ className: "bw-absolute bw-right-0 bw-top-[25%]",
2253
+ children: /* @__PURE__ */ l(nn, { fill: "var(--tw-text-secondary)" })
2254
+ }
2255
+ )
2256
+ ] }),
2257
+ /* @__PURE__ */ l(ls, { selectedWallet: r, isSuccess: g, data: c, isSolConnecting: e, isCosmosonnecting: i, isSuiConnecting: o, isBitcoinConnecting: a, isTronConnecting: u, selectedConnector: n }),
2258
+ /* @__PURE__ */ I("p", { className: "bw-text-lg bw-mt-2 bw-font-medium bw-text-text-primary", children: [
2259
+ "Continue in ",
2260
+ r || ""
2261
+ ] }),
2262
+ /* @__PURE__ */ l("p", { className: "bw-text-lg bw-font-normal bw-mt-2 bw-text-text-secondary", children: "Accept connection request in the wallet" }),
2263
+ /* @__PURE__ */ l("p", { className: "bw-text-text-redtext bw-text-xs bw-relative bw-top-1", children: w }),
2264
+ /* @__PURE__ */ l(
2265
+ "div",
2266
+ {
2267
+ style: {
2268
+ ...M.gradientStyle,
2269
+ boxShadow: M && M.customTheme && ((K = (m = M.customTheme) == null ? void 0 : m.shadow) == null ? void 0 : K.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
2270
+ },
2271
+ className: `bw-w-full bw-mt-3 bw-rounded-sm bw-h-full bw-p-[3px] ${d || `${(J = M == null ? void 0 : M.gradientStyle) != null && J.background ? "" : "bw-bg-gradient-to-r bw-from-[#2CFFE4] bw-to-[#A45EFF]"}`}`,
2272
+ children: /* @__PURE__ */ l(
2273
+ "button",
2274
+ {
2275
+ onClick: () => {
2276
+ w = "", e || o || a ? F() : u ? re() : i ? ce() : (R(""), t(n));
2277
+ },
2278
+ className: "bw-w-full bw-flex bw-bg-background-container bw-justify-center bw-items-center bw-h-[50px] bw-rounded-sm ",
2279
+ children: /* @__PURE__ */ l("span", { style: { ...M.gradientStyle, backgroundClip: "text" }, className: " bw-text-text-primary bw-text-2xl bw-font-bold ", children: "Try Again" })
2280
+ }
2281
+ )
2282
+ }
2283
+ )
2284
+ ] });
2285
+ }
2286
+ const ds = "_gradientbutton_dz9ed_1", ue = {
2287
+ gradientbutton: ds
2288
+ };
2289
+ function fs({ selectedWalletTab: r, handleWalletTab: n }) {
2290
+ const t = ["All", "EVM", "SVM", "Cosmos", "Other"], e = k((u) => u.configuration), { cosmos: i, evmwal: o, solwal: a, walleticon: s } = ve, c = {
2291
+ EVM: o,
2292
+ SVM: a,
2293
+ Cosmos: i,
2294
+ Other: s
2295
+ };
2296
+ return /* @__PURE__ */ l("div", { className: "bw-flex bw-px-3 bw-justify-between bw-gap-x-2 bw-items-center", children: t.map((u, g) => /* @__PURE__ */ l(
2297
+ "div",
2298
+ {
2299
+ style: r == u ? {
2300
+ ...e == null ? void 0 : e.gradientStyle
2301
+ } : {},
2302
+ className: `${!e.gradientStyle && r == u && ue.gradientbutton} bw-min-h-[2px] bw-rounded-md bw-p-[1px] bw-mt-[2px] bw-min-w-[40px]`,
2303
+ children: /* @__PURE__ */ I(
2304
+ "div",
2305
+ {
2306
+ onClick: () => {
2307
+ n(u);
2308
+ },
2309
+ className: `bw-w-[57px] bw-cursor-pointer bw-h-[44px] bw-flex ${r === u ? "bw-bg-background-container" : ""} bw-rounded-md bw-relative bw-flex-col bw-justify-center bw-items-center`,
2310
+ children: [
2311
+ /* @__PURE__ */ l("div", { className: `${r === u ? "" : "bw-bg-background-secondary bw-opacity-[20%]"} bw-h-full bw-absolute bw-top-0 bw-right-0 bw-rounded-md bw-w-full` }),
2312
+ c[u] ? /* @__PURE__ */ l("img", { src: c[u], alt: "img" }) : /* @__PURE__ */ l(B, {}),
2313
+ /* @__PURE__ */ l("p", { className: `${r === u ? " bw-text-text-primary bw-font-bold" : " bw-text-text-secondary bw-font-normal"} bw-text-xs bw-mt-[2px] `, children: u })
2314
+ ]
2315
+ },
2316
+ g
2317
+ )
2318
+ }
2319
+ )) });
2320
+ }
2321
+ function Ue({ fill: r }) {
2322
+ return /* @__PURE__ */ I("svg", { width: "100%", height: "100%", viewBox: "0 0 25 25", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
2323
+ /* @__PURE__ */ l("rect", { x: "11.7148", y: "4.08594", width: "1.60573", height: "9.09916", rx: "0.802867", fill: r }),
2324
+ /* @__PURE__ */ l(
2325
+ "path",
2326
+ {
2327
+ "fill-rule": "evenodd",
2328
+ "clip-rule": "evenodd",
2329
+ d: "M16.3146 5.80529C16.5295 5.92348 16.738 6.05125 16.9396 6.18801C18.1562 7.01313 19.1223 8.16579 19.7212 9.51974C20.4268 11.1151 20.5828 12.8995 20.1647 14.5931C19.7465 16.2867 18.7778 17.7934 17.4107 18.8769C16.0435 19.9605 14.3554 20.5594 12.611 20.5797C10.8667 20.6 9.16506 20.0405 7.77309 18.9891C6.38111 17.9377 5.37764 16.4539 4.92016 14.7705C4.46268 13.0871 4.57709 11.2995 5.24543 9.68821C5.81266 8.32069 6.75162 7.14586 7.94869 6.29265C8.16209 6.14055 8.3837 5.99866 8.61287 5.86773L8.61451 5.8706C8.71383 5.81424 8.82868 5.78206 8.95105 5.78206C9.3282 5.78206 9.63394 6.0878 9.63394 6.46495C9.63394 6.74011 9.47121 6.97726 9.23674 7.0854C8.01077 7.8015 7.05203 8.89924 6.50763 10.2117C5.95526 11.5435 5.8607 13.0209 6.2388 14.4122C6.6169 15.8034 7.44624 17.0298 8.59668 17.8987C9.74711 18.7677 11.1535 19.2301 12.5951 19.2133C14.0368 19.1965 15.432 18.7015 16.5619 17.806C17.6918 16.9105 18.4924 15.6652 18.838 14.2655C19.1836 12.8658 19.0547 11.391 18.4715 10.0725C17.8885 8.75448 16.8845 7.66724 15.617 6.98132L15.6157 6.9806L15.6163 6.97936C15.4179 6.8599 15.2851 6.64237 15.2851 6.39384C15.2851 6.01668 15.5908 5.71094 15.968 5.71094C16.0747 5.71094 16.1756 5.7354 16.2656 5.77901L16.2658 5.77867C16.2688 5.78032 16.2719 5.78197 16.2749 5.78363C16.2884 5.79042 16.3016 5.79765 16.3146 5.80529Z",
2330
+ fill: r
2331
+ }
2332
+ ),
2333
+ /* @__PURE__ */ I("g", { filter: "url(#filter0_f_5308_21436)", children: [
2334
+ /* @__PURE__ */ l("rect", { x: "11.7148", y: "4.08594", width: "1.60573", height: "9.09916", rx: "0.802867", fill: r }),
2335
+ /* @__PURE__ */ l(
2336
+ "path",
2337
+ {
2338
+ "fill-rule": "evenodd",
2339
+ "clip-rule": "evenodd",
2340
+ d: "M16.3146 5.80529C16.5295 5.92348 16.738 6.05125 16.9396 6.18801C18.1562 7.01313 19.1223 8.16579 19.7212 9.51974C20.4268 11.1151 20.5828 12.8995 20.1647 14.5931C19.7465 16.2867 18.7778 17.7934 17.4107 18.8769C16.0435 19.9605 14.3554 20.5594 12.611 20.5797C10.8667 20.6 9.16506 20.0405 7.77309 18.9891C6.38111 17.9377 5.37764 16.4539 4.92016 14.7705C4.46268 13.0871 4.57709 11.2995 5.24543 9.68821C5.81266 8.32069 6.75162 7.14586 7.94869 6.29265C8.16209 6.14055 8.3837 5.99866 8.61287 5.86773L8.61451 5.8706C8.71383 5.81424 8.82868 5.78206 8.95105 5.78206C9.3282 5.78206 9.63394 6.0878 9.63394 6.46495C9.63394 6.74011 9.47121 6.97726 9.23674 7.0854C8.01077 7.8015 7.05203 8.89924 6.50763 10.2117C5.95526 11.5435 5.8607 13.0209 6.2388 14.4122C6.6169 15.8034 7.44624 17.0298 8.59668 17.8987C9.74711 18.7677 11.1535 19.2301 12.5951 19.2133C14.0368 19.1965 15.432 18.7015 16.5619 17.806C17.6918 16.9105 18.4924 15.6652 18.838 14.2655C19.1836 12.8658 19.0547 11.391 18.4715 10.0725C17.8885 8.75448 16.8845 7.66724 15.617 6.98132L15.6157 6.9806L15.6163 6.97936C15.4179 6.8599 15.2851 6.64237 15.2851 6.39384C15.2851 6.01668 15.5908 5.71094 15.968 5.71094C16.0747 5.71094 16.1756 5.7354 16.2656 5.77901L16.2658 5.77867C16.2688 5.78032 16.2719 5.78197 16.2749 5.78363C16.2884 5.79042 16.3016 5.79765 16.3146 5.80529Z",
2341
+ fill: r
2342
+ }
2343
+ )
2344
+ ] }),
2345
+ /* @__PURE__ */ l("defs", { children: /* @__PURE__ */ I("filter", { id: "filter0_f_5308_21436", x: "0.644531", y: "0.0859375", width: "23.75", height: "24.4941", filterUnits: "userSpaceOnUse", "color-interpolation-filters": "sRGB", children: [
2346
+ /* @__PURE__ */ l("feFlood", { "flood-opacity": "0", result: "BackgroundImageFix" }),
2347
+ /* @__PURE__ */ l("feBlend", { mode: "normal", in: "SourceGraphic", in2: "BackgroundImageFix", result: "shape" }),
2348
+ /* @__PURE__ */ l("feGaussianBlur", { stdDeviation: "2", result: "effect1_foregroundBlur_5308_21436" })
2349
+ ] }) })
2350
+ ] });
2351
+ }
2352
+ function hs({ portfolio: r, handleShowWallet: n }) {
2353
+ var y, p, d, x;
2354
+ const t = k((N) => N.configuration), e = k((N) => N.customWallet), i = k((N) => N.setCustomWallet);
2355
+ k((N) => N.toDisconnect);
2356
+ const o = k((N) => N.setToDisconnect), a = k((N) => N.isCustomWalletSet), s = k((N) => N.setIsCustomWalletSet), [c, u] = P(""), [g, h] = P("");
2357
+ function M() {
2358
+ (c == null ? void 0 : c.length) > 30 ? (n(), s(!0), o(!1), i(c)) : h("Please enter a valid address");
2359
+ }
2360
+ return ne(() => {
2361
+ (e == null ? void 0 : e.length) > 30 ? (u(e), s(!0)) : s(!1);
2362
+ }, [e]), /* @__PURE__ */ I("div", { className: `bw-sticky bw-border-t bw-pt-3 bw-border-border-primary ${r ? "bw-w-[calc(100%]" : "bw-w-[calc(100%+20px)]"} bw-ml-[-10px] bw-bottom-0`, children: [
2363
+ /* @__PURE__ */ I("div", { className: "bw-flex bw-mx-4 bw-items-center bw-mb-2 bw-gap-x-1", children: [
2364
+ /* @__PURE__ */ l(Qn, { fill: "var(--tw-text-secondary)" }),
2365
+ /* @__PURE__ */ l("p", { className: "bw-text-sm bw-font-semibold bw-text-text-secondary", children: "Send to a different wallet address" })
2366
+ ] }),
2367
+ /* @__PURE__ */ I(
2368
+ "form",
2369
+ {
2370
+ className: "bw-w-full bw-px-4 bw-flex bw-gap-x-2 bw-justify-between bw-items-center",
2371
+ onSubmit: (N) => {
2372
+ N.preventDefault(), M();
2373
+ },
2374
+ children: [
2375
+ /* @__PURE__ */ l("div", { className: `bw-rounded-md ${a && (e == null ? void 0 : e.length) > 30 ? "bw-w-[87%]" : "bw-w-[72%]"} bw-p-[1px] bw-bg-border-primary `, children: /* @__PURE__ */ l(
2376
+ "input",
2377
+ {
2378
+ type: "text",
2379
+ value: c,
2380
+ onChange: (N) => {
2381
+ u(N.target.value), h(""), s(!1);
2382
+ },
2383
+ placeholder: "Enter receiving wallet address",
2384
+ className: "bw-w-full bw-h-[38px] bw-rounded-md bw-text-sm bw-text-text-primary bw-bg-background-container bw-px-2 placeholder:bw-text-text-secondary "
2385
+ }
2386
+ ) }),
2387
+ a && (c == null ? void 0 : c.length) > 30 ? /* @__PURE__ */ l(
2388
+ "button",
2389
+ {
2390
+ type: "button",
2391
+ onClick: (N) => {
2392
+ N.stopPropagation(), s(!1), o(!0), i(""), u("");
2393
+ },
2394
+ className: "bw-w-[40px] bw-h-[40px] bw-flex bw-items-center bw-justify-center bw-rounded-md bw-border bw-border-bg-button",
2395
+ children: /* @__PURE__ */ l("div", { className: "bw-w-[25px] bw-h-[25px]", children: /* @__PURE__ */ l(Ue, { fill: "var(--tw-text-primary)" }) })
2396
+ }
2397
+ ) : /* @__PURE__ */ l(
2398
+ "div",
2399
+ {
2400
+ style: (c == null ? void 0 : c.length) > 30 ? {
2401
+ ...t == null ? void 0 : t.gradientStyle,
2402
+ boxShadow: t && t.customTheme && ((p = (y = t.customTheme) == null ? void 0 : y.shadow) == null ? void 0 : p.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
2403
+ } : {
2404
+ boxShadow: t && t.customTheme && ((x = (d = t.customTheme) == null ? void 0 : d.shadow) == null ? void 0 : x.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
2405
+ },
2406
+ className: `bw-w-[28%] bw-flex bw-justify-center bw-items-center bw-rounded-md ${!(t != null && t.gradientStyle) && (c == null ? void 0 : c.length) > 30 && ue.gradientbutton} `,
2407
+ children: /* @__PURE__ */ l(
2408
+ "button",
2409
+ {
2410
+ onClick: () => {
2411
+ M();
2412
+ },
2413
+ type: "submit",
2414
+ className: `bw-cursor-pointer bw-bg-background-container bw-w-full bw-rounded-[4px] ${(c == null ? void 0 : c.length) > 30 ? " bw-font-bold bw-text-text-primary bw-h-[36px] bw-m-[2px]" : "bw-border bw-font-medium bw-text-text-secondary bw-border-border-primary bw-h-[40px]"} bw-text-lg `,
2415
+ children: "Confirm"
2416
+ }
2417
+ )
2418
+ }
2419
+ )
2420
+ ]
2421
+ }
2422
+ ),
2423
+ /* @__PURE__ */ l("p", { className: "bw-text-xs bw-pl-4 bw-mt-1 bw-font-normal bw-text-text-redtext", children: g })
2424
+ ] });
2425
+ }
2426
+ function gs({ fill: r }) {
2427
+ return /* @__PURE__ */ I(
2428
+ "svg",
2429
+ {
2430
+ width: "18",
2431
+ height: "18",
2432
+ viewBox: "0 0 13 13",
2433
+ fill: "none",
2434
+ xmlns: "http://www.w3.org/2000/svg",
2435
+ children: [
2436
+ /* @__PURE__ */ l(
2437
+ "path",
2438
+ {
2439
+ d: "M6 2H2C1.44772 2 1 2.44772 1 3V11C1 11.5523 1.44772 12 2 12H10C10.5523 12 11 11.5523 11 11V7",
2440
+ stroke: r,
2441
+ "stroke-linecap": "round"
2442
+ }
2443
+ ),
2444
+ /* @__PURE__ */ l(
2445
+ "path",
2446
+ {
2447
+ d: "M4.64645 8.14645C4.45118 8.34171 4.45118 8.65829 4.64645 8.85355C4.84171 9.04882 5.15829 9.04882 5.35355 8.85355L4.64645 8.14645ZM13 1C13 0.723858 12.7761 0.5 12.5 0.5H8C7.72386 0.5 7.5 0.723858 7.5 1C7.5 1.27614 7.72386 1.5 8 1.5H12V5.5C12 5.77614 12.2239 6 12.5 6C12.7761 6 13 5.77614 13 5.5V1ZM5.35355 8.85355L12.8536 1.35355L12.1464 0.646447L4.64645 8.14645L5.35355 8.85355Z",
2448
+ fill: r
2449
+ }
2450
+ )
2451
+ ]
2452
+ }
2453
+ );
2454
+ }
2455
+ function qe({ wallet: r, chain: n }) {
2456
+ const { solflare: t, slope: e, magiceden: i, backpacksol: o, keplr: a, solanaicon: s, brave: c, cosmosicon: u, bitcoin: g, xverse: h, ethereumicon: M } = ve, y = {
2457
+ solflare: t,
2458
+ // phantom,
2459
+ xverse: h,
2460
+ bitcoin: g,
2461
+ slope: e,
2462
+ backpack: o,
2463
+ "magic eden (solana)": i,
2464
+ keplr: a,
2465
+ "brave browser (solana)": c,
2466
+ phantom: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAKkElEQVR4Ae2dQW8bxxmGv9ldGmikJFQBO4bdWERiA40OkQrIl+QgGkjbS4rYaN2iJ4f9A61/gaV/kPyB0j61hY0qBYoe0oOpg32RgUg9OAGcoEycCk4MWFQsqYBJ7mTeJdehKFLcXc7sDnfmAShSFFei9nvnnW9mvh0yUsBqlRebtFci8hcY8RIjNovnOZF4jhfFfbH39eLnJTIQTrze+704D/XO89RgTDzm/g4Xz+F5j6Y3LlVYgyTDSAKdgD+96BAt+cTLpgZUNSJYdZ9oQzz8R4EKtUuVH9VpTMYSwM3q07LQ6zXxsEyW1BHBuy4c4sblyos1SkgiAdjAa0fNo0IliSPEEgCsvkW7IvD8T2TRELYs3GAl1hFRX7ha/X+pTc3bnUTOoivIE1wqXIjqBk6UF9368+4VEfxPbPD1BzFqiVj9rfrdxSivHymAW9XdP3LmX+8fulm0pigCuypytWujXnikAPALOPkfkGVC4ct/re4cma8NzQFgIVARWSYexp33f/OH6RsDfzboyW7C94m1/dzQEMPEnw1KDAd2Ad1s3wY/PxQR09Xq9qGYHhJAp9+32X7e6IwOvENJ4YEuANYvhhD/JUuOYRd6p44POIAIfpUsOYcfcIHnAujM79u5fQMod2Md8FwAjPErZDGEH1wgyAFs328eHrVnLlVmGoEDNKlZJotR+OQGawWBABxG75HFKMSwcAn3Tve7BbKYRhlfGGaHWuRuk8U4kAc4YnbItn5DaYrZQYcTL5HFSFxyFxxmBWAsvoi9EIBd9TMVXLDjiCnAWbIYi8e5dYC4FI4xcRPW+WNGx8R9odB5rpf9PU57u5yaz4gaTzjpCGdU8sgykuMnGRVnGL0849AJ8fiF6fjX0zx+xIUQfNr62g8e6wDnvOihUEDKBYI5Aq359BlGp37iiuAfbt1JgIiOn3Tp3JxL+8IZ/vfQpwef+sHjrBD9f9E6QA8I0tybnrB2OUEfBhzk3B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cwNzcgMC4zMTIyNTZMMzQuOTk5OSA5LjI3MDk0TDMyLjcwNzcgMTYuNDk5M0gyNy43NzgxTDIxLjQwMDkgMTIuMTMwMUwzMi43MDc3IDAuMzEyMjU2WiIgZmlsbD0iIzY2MTgwMCIvPgo8cGF0aCBkPSJNMjEuODMzIDIwLjQxOTlIMjQuMDY5NEwyNS4yODUzIDIxLjYwNzlMMjAuOTYwNCAyMi42NzZMMjEuODMzIDIwLjQxODJWMjAuNDE5OVoiIGZpbGw9IiM2NjE4MDAiLz4KPHBhdGggZD0iTTE5LjQ4MTcgMzAuODM2MkwxOS45OTExIDI4Ljk3OTRMMTguOTY1OCAyNy44NDIzSDE2LjAzMjdMMTUuMDA3MyAyOC45Nzk0TDE1LjUxNjcgMzAuODM2MiIgZmlsbD0iIzY2MTgwMCIvPgo8cGF0aCBkPSJNMTkuNDgxNiAzMC44MzU5VjMzLjkwMjFIMTUuNTE2NlYzMC44MzU5SDE5LjQ4MTZaIiBmaWxsPSIjQzBDNENEIi8+CjxwYXRoIGQ9Ik05LjgyOTU5IDMwLjUxNDJMMTUuNTIgMzMuOTAwOFYzMC44MzQ2TDE1LjAxMDYgMjguOTc3OEw5LjgyOTU5IDMwLjUxNDJaIiBmaWxsPSIjRTdFQkY2Ii8+CjxwYXRoIGQ9Ik0yNS4xNzIxIDMwLjUxNDJMMTkuNDgxNyAzMy45MDA4VjMwLjgzNDZMMTkuOTkxMSAyOC45Nzc4TDI1LjE3MjEgMzAuNTE0MloiIGZpbGw9IiNFN0VCRjYiLz4KPC9zdmc+Cg=="
2470
+ };
2471
+ return /* @__PURE__ */ l("a", { className: "bw-min-w-full", href: {
2472
+ solflare: "https://chromewebstore.google.com/detail/solflare-wallet/bhhhlbepdkbapadjdnnojkbgioiodbic",
2473
+ phantom: "https://chromewebstore.google.com/detail/phantom/bfnaelmomeimhlpmgjnjophhpkkoljpa",
2474
+ slope: "https://chromewebstore.google.com/detail/slope-wallet/pocmplpaccanhmnllbbkpgfliimjljgo?hl=en",
2475
+ backpack: "https://chromewebstore.google.com/detail/backpack/aflkmfhebedbjioipglgcbcmnbpgliof",
2476
+ "magic eden (solana)": "https://chromewebstore.google.com/detail/magic-eden-wallet/mkpegjkblkkefacfnmkajcjmabijhclg",
2477
+ keplr: "https://chromewebstore.google.com/detail/keplr/dmkamcknogkgcdfhhbddcghachkejeap?hl=en",
2478
+ "brave browser (solana)": "https://brave.com/wallet/",
2479
+ "trust wallet": "https://chromewebstore.google.com/detail/trust-wallet/egjidjbpglichdcondbcbdnbeeppgdph",
2480
+ "rabby wallet": "https://chromewebstore.google.com/detail/rabby-wallet/acmacodkjbdgmoleebolmdjonilkdbch?hl=en",
2481
+ metamask: "https://chromewebstore.google.com/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn?hl=en",
2482
+ xverse: "https://chromewebstore.google.com/detail/xverse-bitcoin-crypto-wal/idnnbdplmphpflfnlkomgpfbpcgelopg"
2483
+ }[r == null ? void 0 : r.toLowerCase()], target: "_blank", children: /* @__PURE__ */ I("div", { className: "bw-w-full bw-flex bw-items-center bw-justify-between bw-h-max", children: [
2484
+ " ",
2485
+ /* @__PURE__ */ I("div", { className: "bw-flex bw-my-2 bw-items-center bw-gap-x-2", children: [
2486
+ /* @__PURE__ */ I("div", { className: "bw-w-max bw-relative", children: [
2487
+ /* @__PURE__ */ l("img", { src: y[r == null ? void 0 : r.toLowerCase()], width: 32, height: 32, className: "bw-w-[32px] bw-h-[32px] bw-rounded-md", alt: "img" }),
2488
+ /* @__PURE__ */ l("img", { src: n == "cosmos" ? u : n === "evm" ? M : n === "bitcoin" ? g : s, className: "bw-absolute bw-right-[-15%] bw-bottom-[-30%]", width: "21", height: "21", alt: "img" })
2489
+ ] }),
2490
+ /* @__PURE__ */ l("p", { className: "bw-text-sm bw-text-text-secondary bw-font-medium", children: r })
2491
+ ] }),
2492
+ /* @__PURE__ */ I("button", { children: [
2493
+ " ",
2494
+ /* @__PURE__ */ l(gs, { fill: "var(--tw-text-placeholder)" })
2495
+ ] })
2496
+ ] }) });
2497
+ }
2498
+ function bs({ selectedWalletTab: r, styles: n, connectWalletField: t, handleShowWallet: e, setSelectedConnector: i, setSelectedWallet: o, handleConnect: a, setShowLoading: s, section: c }) {
2499
+ const u = k((w) => w.configuration), g = k((w) => w.setToDisconnect), { connector: h } = _t(), { disconnect: M } = Dn(), [y, p] = P(), [d, x] = P([]), { connectors: N, switchAccountAsync: Q } = Kt(), { injectedicon: W, metamaskicon: S, coinbaseicon: A, walletconnecticon: $, ethereumicon: L } = ve, Y = {
2500
+ injected: W,
2501
+ metaMaskSDK: S,
2502
+ coinbaseWalletSDK: A,
2503
+ walletConnect: $
2504
+ }, X = qt(), T = Tn({
2505
+ config: X
2506
+ }), G = kn({ config: X }), O = k((w) => w.setIsEvmSupportAvailable);
2507
+ let R = ["MetaMask", "Trust Wallet", "Rabby Wallet", "Phantom"];
2508
+ return ne(() => {
2509
+ let w = xe.keyBy(T, "name"), F = R.filter((re) => !w[re]);
2510
+ x(F), O(F.length > 0);
2511
+ }, [T]), ne(() => {
2512
+ p(xe.keyBy(G, (w) => w.connector.uid));
2513
+ }, [G]), /* @__PURE__ */ I(B, { children: [
2514
+ r == "All" || r == "EVM" ? T.filter((w) => {
2515
+ let F = (h == null ? void 0 : h.uid) == w.uid || (y == null ? void 0 : y[w.uid]);
2516
+ return !!(c == "connected" && F || c == "installed" && !F || c == "supported");
2517
+ }).map((w, F) => {
2518
+ var re, _;
2519
+ return /* @__PURE__ */ l(B, { children: c !== "supported" ? /* @__PURE__ */ I(
2520
+ "div",
2521
+ {
2522
+ style: (h == null ? void 0 : h.id) == (w == null ? void 0 : w.id) ? {
2523
+ ...u == null ? void 0 : u.gradientStyle
2524
+ } : {},
2525
+ className: `bw-w-[47%] bw-mb-4 bw-relative bw-rounded-md bw-p-[1px] ${!u.gradientStyle && (h == null ? void 0 : h.id) == (w == null ? void 0 : w.id) ? n.gradientbutton : u.gradientStyle && (h == null ? void 0 : h.id) == (w == null ? void 0 : w.id) ? "" : "bw-bg-border-primary"} `,
2526
+ children: [
2527
+ /* @__PURE__ */ I(
2528
+ "div",
2529
+ {
2530
+ onClick: () => {
2531
+ (h == null ? void 0 : h.id) == (w == null ? void 0 : w.id) ? t == "to" ? (g(!1), e()) : M({ connector: h }) : (o(w.name || w.type), i(w), a(w, !!(y != null && y[w.uid])), s(!1), g(!1));
2532
+ },
2533
+ style: { cursor: "pointer" },
2534
+ className: `bw-w-full bw-bg-background-container hover:bw-shadow-sm bw-font-medium hover:bw-font-bold hover:bw-text-text-primary bw-flex bw-gap-x-3 bw-px-3 bw-justify-start bw-items-center bw-h-[56px] ${(h == null ? void 0 : h.uid) == (w == null ? void 0 : w.uid) ? " bw-text-text-primary" : "bw-text-text-secondary"} bw-relative bw-rounded-md
2535
+
2536
+ `,
2537
+ children: [
2538
+ /* @__PURE__ */ I("div", { className: "bw-w-max bw-relative", children: [
2539
+ " ",
2540
+ /* @__PURE__ */ l("img", { className: "bw-rounded-md", src: Y[w.id] || w.icon, width: 32, height: 32, alt: "img" })
2541
+ ] }),
2542
+ /* @__PURE__ */ l("p", { className: "bw-text-xs bw-w-max ", children: w.name })
2543
+ ]
2544
+ },
2545
+ F
2546
+ ),
2547
+ /* @__PURE__ */ l(
2548
+ "div",
2549
+ {
2550
+ style: (h == null ? void 0 : h.id) == (w == null ? void 0 : w.id) ? {
2551
+ ...u == null ? void 0 : u.gradientStyle
2552
+ } : {},
2553
+ className: `bw-mb-4 bw-bottom-[-50%] bw-absolute bw-right-2 bw-rounded-md bw-p-[1px] ${!u.gradientStyle && (h == null ? void 0 : h.id) == (w == null ? void 0 : w.id) ? n.gradientbutton : u.gradientStyle && (h == null ? void 0 : h.id) == (w == null ? void 0 : w.id) ? "" : "bw-bg-border-primary"} `,
2554
+ children: /* @__PURE__ */ I("div", { className: " bw-w-[71px] bw-h-[25px] bw-rounded-md bw-flex bw-bg-background-container bw-justify-center bw-items-center bw-gap-x-1 ", children: [
2555
+ /* @__PURE__ */ l("img", { src: L, width: "", height: "", alt: "img" }),
2556
+ /* @__PURE__ */ l("p", { className: "bw-text-xs bw-font-bold bw-text-text-primary", children: "EVM" })
2557
+ ] })
2558
+ }
2559
+ ),
2560
+ y != null && y[w.uid] || (h == null ? void 0 : h.uid) == w.uid ? /* @__PURE__ */ l(
2561
+ "div",
2562
+ {
2563
+ onClick: (ce) => {
2564
+ var m;
2565
+ M({
2566
+ connector: (m = y == null ? void 0 : y[w.uid]) == null ? void 0 : m.connector,
2567
+ config: X
2568
+ }), ce.stopPropagation();
2569
+ },
2570
+ className: " bw-cursor-pointer bw-absolute bw-right-[5px] bw-top-1 bw-text-[10px] bw-text-text-primary bw-z-40 bw-rounded-[50%]",
2571
+ children: /* @__PURE__ */ l(
2572
+ "div",
2573
+ {
2574
+ style: {
2575
+ boxShadow: u && u.customTheme && ((_ = (re = u.customTheme) == null ? void 0 : re.shadow) == null ? void 0 : _.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.20)"
2576
+ },
2577
+ className: "bw-w-[25px] bw-h-[25px] bw-rounded-[50%]",
2578
+ children: /* @__PURE__ */ l(Ue, { fill: "var(--tw-text-primary)" })
2579
+ }
2580
+ )
2581
+ }
2582
+ ) : /* @__PURE__ */ l(B, {})
2583
+ ]
2584
+ }
2585
+ ) : /* @__PURE__ */ l(B, {}) });
2586
+ }) : /* @__PURE__ */ l(B, {}),
2587
+ c === "supported" && (r == "All" || r == "EVM") ? d.map((w) => /* @__PURE__ */ l(qe, { wallet: w, chain: "evm" })) : /* @__PURE__ */ l(B, {})
2588
+ ] });
2589
+ }
2590
+ function ws(r) {
2591
+ var n, t, e, i, o, a;
2592
+ switch (r) {
2593
+ case "phantom":
2594
+ return !!((t = (n = window == null ? void 0 : window.phantom) == null ? void 0 : n.solana) != null && t.isPhantom);
2595
+ case "backpack":
2596
+ return !!((e = window == null ? void 0 : window.backpack) != null && e.isBackpack);
2597
+ case "brave browser (solana)":
2598
+ return !!window.braveSolana.isBraveWallet;
2599
+ case "solflare":
2600
+ return !!((i = window == null ? void 0 : window.solflare) != null && i.isSolflare);
2601
+ case "magic eden (solana)":
2602
+ return !!((a = (o = window == null ? void 0 : window.magicEden) == null ? void 0 : o.solana) != null && a.isMagicEden);
2603
+ default:
2604
+ return !1;
2605
+ }
2606
+ }
2607
+ function Sn() {
2608
+ const r = He(), n = Se(), { primaryWallet: t, handleUnlinkWallet: e } = le();
2609
+ k((s) => s.fromChain);
2610
+ const i = k((s) => s.toChain), { updateMostRecentWallet: o } = Be({});
2611
+ async function a(s, c = "SOL") {
2612
+ const u = s === (t == null ? void 0 : t.id);
2613
+ try {
2614
+ if (u) {
2615
+ const g = n.filter((h) => h.chain === c && h.id !== s);
2616
+ if (g.length > 0)
2617
+ await r(g[0].id), o(g[0]);
2618
+ else {
2619
+ const h = n.filter((M) => M.chain !== c);
2620
+ if (h.length > 0) {
2621
+ const M = h.find((y) => {
2622
+ var p;
2623
+ return ((p = y.chain) == null ? void 0 : p.toLocaleLowerCase()) === (i == null ? void 0 : i.chainId);
2624
+ }) || h[0];
2625
+ await r(M.id), o(M);
2626
+ }
2627
+ }
2628
+ e(s);
2629
+ } else
2630
+ e(s);
2631
+ } catch {
2632
+ }
2633
+ }
2634
+ return { handleDisconnectDynamic: a };
2635
+ }
2636
+ const ps = ({ fromChain: r, toChain: n, connectWalletField: t, handleSolConnecting: e, selectedWalletTab: i, handleShowWallet: o, section: a }) => {
2637
+ const { primaryWallet: s, handleLogOut: c, handleUnlinkWallet: u } = le(), g = Fe(), [h, M] = P(0), [y, p] = P(!1), [d, x] = P(), { setShowAuthFlow: N, walletConnectorOptions: Q } = le(), { openWallet: W } = Nt(), S = k((b) => b.configuration), A = k((b) => b.setToDisconnect), { handleSOLDisable: $, updateMostRecentWallet: L } = Be({});
2638
+ $(t);
2639
+ const Y = Se(), { selectWalletOption: X, walletOptions: T } = Xe(), G = He(), { handleDisconnectDynamic: O } = Sn();
2640
+ ne(() => {
2641
+ g && y && s !== null && p(!1);
2642
+ }, [g, s]);
2643
+ const { phantom: R, solflare: w, slope: F, magiceden: re, backpacksol: _, keplr: ce, solanaicon: m, brave: K } = ve, J = {
2644
+ solflare: w,
2645
+ phantom: R,
2646
+ slope: F,
2647
+ backpack: _,
2648
+ "magic eden (solana)": re,
2649
+ keplr: ce,
2650
+ "brave browser (solana)": K
2651
+ };
2652
+ ne(() => {
2653
+ if (Y.length) {
2654
+ let b = Y.length ? Y.filter((V) => V.chain == "SOL") : [], U = xe.keyBy(b, (V) => `${V.connector.name}-SOL`);
2655
+ x(U);
2656
+ } else
2657
+ x();
2658
+ }, [Y.length]);
2659
+ const v = (b) => {
2660
+ var U, V, q, ee, te;
2661
+ (s == null ? void 0 : s.chain) === "SOL" && b.name == ((U = s == null ? void 0 : s.connector) == null ? void 0 : U.name) ? t == "to" && (A(!1), o()) : ((V = d == null ? void 0 : d[`${b.name}-SOL`]) == null ? void 0 : V.chain) === "SOL" && (d != null && d[`${b.name}-SOL`]) ? (G((q = d == null ? void 0 : d[`${b.name}-SOL`]) == null ? void 0 : q.id), L(d == null ? void 0 : d[`${b.name}-SOL`]), o(), A(!1)) : (W((ee = b.key) == null ? void 0 : ee.toLowerCase()), p(!0), e(!0, (te = b.name) == null ? void 0 : te.toLowerCase()));
2662
+ };
2663
+ return T != null && T.length ? /* @__PURE__ */ l(B, { children: T.filter((b, U) => {
2664
+ var q, ee, te;
2665
+ let V = (s == null ? void 0 : s.chain) === "SOL" && b.name == ((q = s == null ? void 0 : s._connector) == null ? void 0 : q.name) || ((ee = d == null ? void 0 : d[`${b == null ? void 0 : b.name}-SOL`]) == null ? void 0 : ee.chain) === "SOL" && (d == null ? void 0 : d[`${b == null ? void 0 : b.name}-SOL`]);
2666
+ if (((te = b.chain) == null ? void 0 : te.toLowerCase()) === "sol" && (b.name == "Solflare" || b.name == "Slope" || b.name == "Phantom" || b.name == "Backpack" || b.name == "Magic Eden (Solana)" || b.name == "Brave Browser (Solana)")) {
2667
+ if (a == "connected" && V)
2668
+ return !0;
2669
+ if (a == "installed" && !V && (b.isInstalledOnBrowser || b.name == "Phantom" && window.innerWidth < 768))
2670
+ return !0;
2671
+ if (a == "supported" && !b.isInstalledOnBrowser)
2672
+ return !0;
2673
+ }
2674
+ }).map((b, U) => {
2675
+ var q, ee, te, be, we, se, oe, ae, pe, C, Z, Qe, ye;
2676
+ let V = (s == null ? void 0 : s.chain) === "SOL" && b.name == ((q = s == null ? void 0 : s._connector) == null ? void 0 : q.name) || ((ee = d == null ? void 0 : d[`${b == null ? void 0 : b.name}-SOL`]) == null ? void 0 : ee.chain) === "SOL" && (d == null ? void 0 : d[`${b == null ? void 0 : b.name}-SOL`]);
2677
+ return b.isInstalledOnBrowser || V && a !== "supported" || b.name == "Phantom" && a == "installed" && !V ? /* @__PURE__ */ l(
2678
+ "div",
2679
+ {
2680
+ style: b.name == ((te = s == null ? void 0 : s._connector) == null ? void 0 : te.name) ? {
2681
+ ...S == null ? void 0 : S.gradientStyle
2682
+ } : {},
2683
+ className: `bw-w-[47%] bw-mb-4 ${b.name == "Keplr" && i === "Cosmos" ? "" : " "} bw-rounded-md bw-p-[1px] ${!S.gradientStyle && (s == null ? void 0 : s.chain) === "SOL" && b.name == ((be = s == null ? void 0 : s._connector) == null ? void 0 : be.name) ? ue.gradientbutton : S.gradientStyle && (s == null ? void 0 : s.chain) === "SOL" && b.name == ((we = s == null ? void 0 : s._connector) == null ? void 0 : we.name) ? "" : "bw-bg-border-primary"} `,
2684
+ children: /* @__PURE__ */ I(
2685
+ "div",
2686
+ {
2687
+ className: ` bw-relative bw-flex bw-w-full bw-bg-background-container hover:bw-shadow-sm bw-font-medium hover:bw-font-bold hover:bw-text-text-primary bw-items-center bw-gap-x-3 bw-rounded-md bw-h-[56px] bw-px-3 bw-cursor-pointer ${(s == null ? void 0 : s.chain) === "SOL" && b.name == ((se = s == null ? void 0 : s._connector) == null ? void 0 : se.name) ? " bw-text-text-primary" : "bw-text-text-secondary"}`,
2688
+ onClick: () => {
2689
+ var de;
2690
+ (ws((de = b.name) == null ? void 0 : de.toLowerCase()) || b.name == "Phantom") && v(b);
2691
+ },
2692
+ children: [
2693
+ /* @__PURE__ */ l(
2694
+ "div",
2695
+ {
2696
+ style: (s == null ? void 0 : s.chain) === "SOL" && b.name == ((oe = s == null ? void 0 : s._connector) == null ? void 0 : oe.name) ? {
2697
+ ...S == null ? void 0 : S.gradientStyle
2698
+ } : {},
2699
+ className: ` bw-mb-4 ${b.name == "Keplr" && i === "Cosmos" ? "" : " "} bw-rounded-md bw-p-[1px] bw-absolute bw-right-2 bw-bottom-[-50%] ${!S.gradientStyle && (s == null ? void 0 : s.chain) === "SOL" && b.name == ((ae = s == null ? void 0 : s._connector) == null ? void 0 : ae.name) ? ue.gradientbutton : S.gradientStyle && (s == null ? void 0 : s.chain) === "SOL" && b.name == ((pe = s == null ? void 0 : s._connector) == null ? void 0 : pe.name) ? "" : "bw-bg-border-primary"} `,
2700
+ children: /* @__PURE__ */ I("div", { className: " bw-w-[71px] bw-h-[25px] bw-rounded-md bw-flex bw-bg-background-container bw-justify-center bw-items-center bw-gap-x-1 ", children: [
2701
+ /* @__PURE__ */ l("img", { src: m, width: "", height: "", alt: "img" }),
2702
+ /* @__PURE__ */ l("p", { className: "bw-text-xs bw-font-bold bw-text-text-primary", children: "SOL" })
2703
+ ] })
2704
+ }
2705
+ ),
2706
+ ((C = d == null ? void 0 : d[`${b == null ? void 0 : b.name}-SOL`]) == null ? void 0 : C.chain) === "SOL" && (d != null && d[`${b == null ? void 0 : b.name}-SOL`]) ? /* @__PURE__ */ l(
2707
+ "div",
2708
+ {
2709
+ onClick: async (de) => {
2710
+ var kt;
2711
+ de.stopPropagation(), Y.length === 1 ? c() : O((kt = d == null ? void 0 : d[`${b == null ? void 0 : b.name}-SOL`]) == null ? void 0 : kt.id, "SOL");
2712
+ },
2713
+ className: " bw-cursor-pointer bw-absolute bw-right-[5px] bw-top-1 bw-text-[10px] bw-text-text-primary bw-z-40 bw-rounded-[50%]",
2714
+ children: /* @__PURE__ */ l(
2715
+ "div",
2716
+ {
2717
+ style: {
2718
+ boxShadow: S && S.customTheme && ((Qe = (Z = S.customTheme) == null ? void 0 : Z.shadow) == null ? void 0 : Qe.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.20)"
2719
+ },
2720
+ className: "bw-w-[25px] bw-h-[25px] bw-rounded-[50%]",
2721
+ children: /* @__PURE__ */ l(Ue, { fill: "var(--tw-text-primary)" })
2722
+ }
2723
+ )
2724
+ }
2725
+ ) : /* @__PURE__ */ l(B, {}),
2726
+ /* @__PURE__ */ I("div", { className: "bw-w-max bw-relative", children: [
2727
+ /* @__PURE__ */ l("img", { src: J[(ye = b.name) == null ? void 0 : ye.toLowerCase()], width: 32, height: 32, className: "bw-w-[32px] bw-h-[32px] bw-rounded-md", alt: "img" }),
2728
+ /* @__PURE__ */ l("img", { src: m, className: "bw-absolute bw-right-[-15%] bw-bottom-[-30%]", width: "", height: "", alt: "img" })
2729
+ ] }),
2730
+ /* @__PURE__ */ l("p", { className: "bw-text-xs bw-w-max ", children: b.name })
2731
+ ]
2732
+ }
2733
+ )
2734
+ }
2735
+ ) : b.name == "Phantom" && window.innerWidth < 768 ? /* @__PURE__ */ l(B, {}) : /* @__PURE__ */ l(qe, { wallet: b.name, chain: b.chain });
2736
+ }) }) : /* @__PURE__ */ l("div", { className: "bw-w-full bw-flex bw-justify-center bw-mt-2 bw-text-text-primary", children: /* @__PURE__ */ l(Ve, { color: "inherit", size: 14 }) });
2737
+ }, ys = ({
2738
+ connectWalletField: r,
2739
+ fromChain: n,
2740
+ toChain: t,
2741
+ handleSolConnecting: e,
2742
+ portfolio: i,
2743
+ selectedWalletTab: o,
2744
+ handleShowWallet: a,
2745
+ section: s
2746
+ }) => /* @__PURE__ */ l(
2747
+ ps,
2748
+ {
2749
+ fromChain: n,
2750
+ toChain: t,
2751
+ connectWalletField: r,
2752
+ handleSolConnecting: e,
2753
+ portfolio: i,
2754
+ selectedWalletTab: o,
2755
+ handleShowWallet: a,
2756
+ section: s
2757
+ }
2758
+ ), ms = "_gradientbutton_dz9ed_1", Ht = {
2759
+ gradientbutton: ms
2760
+ };
2761
+ function Ms({ selectedWalletTab: r, handleCosmosConnection: n, setErrorMsg: t, connectWalletField: e, handleShowWallet: i, section: o }) {
2762
+ var Y, X, T, G;
2763
+ const a = k((O) => O.configuration), s = k((O) => O.fromChain);
2764
+ k((O) => O.toChain);
2765
+ const c = k((O) => O.setCosmosChainIds);
2766
+ Yn();
2767
+ const { refetch: u } = Be({}), { connect: g, connectAsync: h } = on({
2768
+ onError: (O) => t(O.message)
2769
+ }), { disconnect: M } = Zn(), { data: y, isConnected: p, reconnect: d } = _e(), x = k((O) => O.setToDisconnect), { keplr: N, cosmosicon: Q } = ve;
2770
+ Vn();
2771
+ const { suggestAsync: W } = rn(), { suggestAndConnectAsync: S } = sn(), A = {
2772
+ keplr: N
2773
+ };
2774
+ async function $() {
2775
+ try {
2776
+ let O = await We();
2777
+ if (!O.includes(s == null ? void 0 : s.chainId) && (s == null ? void 0 : s.networkType) == "cosmos") {
2778
+ let R = {
2779
+ ...s == null ? void 0 : s.chainInfo
2780
+ };
2781
+ await S({
2782
+ chainInfo: R,
2783
+ walletType: je.KEPLR
2784
+ });
2785
+ let w = await We();
2786
+ c(w), await h({
2787
+ chainId: w,
2788
+ walletType: je.KEPLR
2789
+ }), await u();
2790
+ } else
2791
+ g({
2792
+ chainId: O,
2793
+ walletType: je.KEPLR
2794
+ });
2795
+ n(!0, "keplr");
2796
+ } catch {
2797
+ }
2798
+ }
2799
+ let L = ((Y = y == null ? void 0 : y.bech32Address) == null ? void 0 : Y.length) && p;
2800
+ return o == "connected" && L || o == "installed" && !L && window.keplr ? /* @__PURE__ */ I(
2801
+ "div",
2802
+ {
2803
+ style: L ? {
2804
+ ...a == null ? void 0 : a.gradientStyle
2805
+ } : {},
2806
+ className: `bw-w-[47%] bw-relative bw-mb-4 ${r === "Cosmos" ? "" : " "} bw-rounded-md bw-p-[1px] ${!a.gradientStyle && L ? Ht.gradientbutton : a.gradientStyle && L ? "" : "bw-bg-border-primary"} `,
2807
+ onClick: () => {
2808
+ e == "to" && p ? (x(!1), i()) : p ? M() : $();
2809
+ },
2810
+ children: [
2811
+ /* @__PURE__ */ I(
2812
+ "div",
2813
+ {
2814
+ className: ` bw-relative bw-flex bw-w-full bw-bg-background-container hover:bw-shadow-sm bw-font-medium hover:bw-font-bold hover:bw-text-text-primary bw-items-center bw-gap-x-3 bw-rounded-md bw-h-[56px] bw-px-3 bw-cursor-pointer ${(X = y == null ? void 0 : y.bech32Address) != null && X.length && p ? " bw-text-text-primary" : "bw-text-text-secondary"}`,
2815
+ children: [
2816
+ /* @__PURE__ */ l("img", { src: A.keplr, width: 32, height: 32, className: "", alt: "img" }),
2817
+ /* @__PURE__ */ l("p", { className: "bw-text-xs bw-w-max ", children: "Keplr" })
2818
+ ]
2819
+ }
2820
+ ),
2821
+ /* @__PURE__ */ l(
2822
+ "div",
2823
+ {
2824
+ style: L ? {
2825
+ ...a == null ? void 0 : a.gradientStyle
2826
+ } : {},
2827
+ className: ` bw-absolute bw-right-2 bw-bottom-[-50%] bw-mb-4 ${r === "Cosmos" ? "" : " "} bw-rounded-md bw-p-[1px] ${!a.gradientStyle && L ? Ht.gradientbutton : a.gradientStyle && L ? "" : "bw-bg-border-primary"} `,
2828
+ children: /* @__PURE__ */ I("div", { className: " bw-w-[81px] bw-h-[25px] bw-rounded-md bw-flex bw-bg-background-container bw-justify-center bw-items-center bw-gap-x-1 ", children: [
2829
+ /* @__PURE__ */ l("img", { src: Q, width: "21", height: "21", alt: "img" }),
2830
+ /* @__PURE__ */ l("p", { className: "bw-text-xs bw-font-bold bw-text-text-primary", children: "COSMOS" })
2831
+ ] })
2832
+ }
2833
+ ),
2834
+ p ? /* @__PURE__ */ l("p", { onClick: () => M(), className: " bw-cursor-pointer bw-absolute bw-right-[5px] bw-top-1 bw-text-[10px] bw-text-text-primary bw-z-40 bw-rounded-[50%]", children: /* @__PURE__ */ l(
2835
+ "div",
2836
+ {
2837
+ style: {
2838
+ boxShadow: a && a.customTheme && ((G = (T = a.customTheme) == null ? void 0 : T.shadow) == null ? void 0 : G.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.20)"
2839
+ },
2840
+ className: "bw-w-[25px] bw-h-[25px] bw-rounded-[50%] ",
2841
+ children: /* @__PURE__ */ l(Ue, { fill: "var(--tw-text-primary)" })
2842
+ }
2843
+ ) }) : /* @__PURE__ */ l(B, {})
2844
+ ]
2845
+ }
2846
+ ) : !window.keplr && o == "supported" ? /* @__PURE__ */ l(qe, { wallet: "keplr", chain: "cosmos" }) : /* @__PURE__ */ l(B, {});
2847
+ }
2848
+ const xs = ({ fromChain: r, toChain: n, connectWalletField: t, handleBitcoinConnecting: e, selectedWalletTab: i, handleShowWallet: o, section: a }) => {
2849
+ const { primaryWallet: s, handleLogOut: c, handleUnlinkWallet: u } = le(), g = Fe(), [h, M] = P(0), [y, p] = P(!1), [d, x] = P(), { setShowAuthFlow: N, walletConnectorOptions: Q } = le(), { openWallet: W } = Nt(), S = k((m) => m.configuration), A = k((m) => m.setToDisconnect), { handleBTCDisable: $, updateMostRecentWallet: L } = Be({});
2850
+ $(t);
2851
+ const Y = Se(), { selectWalletOption: X, walletOptions: T } = Xe(), G = He(), { handleDisconnectDynamic: O } = Sn();
2852
+ ne(() => {
2853
+ g && y && s !== null && p(!1);
2854
+ }, [g, s]);
2855
+ const { walleticon: R, phantom: w, bitcoin: F, xverse: re } = ve, _ = {
2856
+ unisat: R,
2857
+ okx: R,
2858
+ xverse: R,
2859
+ leather: R,
2860
+ hiro: R,
2861
+ "magic eden": R,
2862
+ phantom: w,
2863
+ "rabby wallet": R,
2864
+ "bitget wallet": R,
2865
+ xverse: re
2866
+ };
2867
+ ne(() => {
2868
+ if (Y.length) {
2869
+ let m = Y.length ? Y.filter((J) => J.chain == "BTC") : [], K = xe.keyBy(m, (J) => `${J.connector.name}-BTC`);
2870
+ x(K);
2871
+ } else
2872
+ x();
2873
+ }, [Y.length]);
2874
+ const ce = (m) => {
2875
+ var K, J, v, b, U;
2876
+ (s == null ? void 0 : s.chain) === "BTC" && m.name == ((K = s == null ? void 0 : s.connector) == null ? void 0 : K.name) ? t == "to" && (A(!1), o()) : ((J = d == null ? void 0 : d[`${m.name}-BTC`]) == null ? void 0 : J.chain) === "BTC" && (d != null && d[`${m.name}-BTC`]) ? (G((v = d == null ? void 0 : d[`${m.name}-BTC`]) == null ? void 0 : v.id), L(d == null ? void 0 : d[`${m.name}-BTC`]), o(), A(!1)) : (W((b = m.key) == null ? void 0 : b.toLowerCase()), p(!0), e(!0, (U = m.name) == null ? void 0 : U.toLowerCase()));
2877
+ };
2878
+ return T != null && T.length ? /* @__PURE__ */ l(B, { children: T.filter((m, K) => {
2879
+ var v, b, U, V, q;
2880
+ let J = (s == null ? void 0 : s.chain) === "BTC" && m.name == ((v = s == null ? void 0 : s._connector) == null ? void 0 : v.name) || ((b = d == null ? void 0 : d[`${m == null ? void 0 : m.name}-BTC`]) == null ? void 0 : b.chain) === "BTC" && (d == null ? void 0 : d[`${m == null ? void 0 : m.name}-BTC`]);
2881
+ if (((U = m.chain) == null ? void 0 : U.toLowerCase()) === "btc" && ((V = m.name) != null && V.toLowerCase().includes("xverse") || (q = m.name) != null && q.toLowerCase().includes("phantom"))) {
2882
+ if (a == "connected" && J)
2883
+ return !0;
2884
+ if (a == "installed" && !J && m.isInstalledOnBrowser)
2885
+ return !0;
2886
+ if (a == "supported" && !m.isInstalledOnBrowser)
2887
+ return !0;
2888
+ }
2889
+ }).map((m, K) => {
2890
+ var v, b, U, V, q, ee, te, be, we, se, oe, ae, pe;
2891
+ let J = (s == null ? void 0 : s.chain) === "BTC" && m.name == ((v = s == null ? void 0 : s._connector) == null ? void 0 : v.name) || ((b = d == null ? void 0 : d[`${m == null ? void 0 : m.name}-BTC`]) == null ? void 0 : b.chain) === "BTC" && (d == null ? void 0 : d[`${m == null ? void 0 : m.name}-BTC`]);
2892
+ return m.isInstalledOnBrowser || J && a !== "supported" ? /* @__PURE__ */ l(
2893
+ "div",
2894
+ {
2895
+ style: m.name == ((U = s == null ? void 0 : s._connector) == null ? void 0 : U.name) ? {
2896
+ ...S == null ? void 0 : S.gradientStyle
2897
+ } : {},
2898
+ className: `bw-w-[47%] bw-mb-4 bw-rounded-md bw-p-[1px] ${!S.gradientStyle && (s == null ? void 0 : s.chain) === "BTC" && m.name == ((V = s == null ? void 0 : s._connector) == null ? void 0 : V.name) ? ue.gradientbutton : S.gradientStyle && (s == null ? void 0 : s.chain) === "BTC" && m.name == ((q = s == null ? void 0 : s._connector) == null ? void 0 : q.name) ? "" : "bw-bg-border-primary"} `,
2899
+ children: /* @__PURE__ */ I("div", { className: ` bw-relative bw-flex bw-w-full bw-bg-background-container hover:bw-shadow-sm bw-font-medium hover:bw-font-bold hover:bw-text-text-primary bw-items-center bw-gap-x-3 bw-rounded-md bw-h-[56px] bw-px-3 bw-cursor-pointer ${(s == null ? void 0 : s.chain) === "BTC" && m.name == ((ee = s == null ? void 0 : s._connector) == null ? void 0 : ee.name) ? " bw-text-text-primary" : "bw-text-text-secondary"}`, onClick: () => ce(m), children: [
2900
+ /* @__PURE__ */ l(
2901
+ "div",
2902
+ {
2903
+ style: (s == null ? void 0 : s.chain) === "BTC" && m.name == ((te = s == null ? void 0 : s._connector) == null ? void 0 : te.name) ? {
2904
+ ...S == null ? void 0 : S.gradientStyle
2905
+ } : {},
2906
+ className: ` bw-mb-4 bw-rounded-md bw-p-[1px] bw-absolute bw-right-2 bw-bottom-[-50%] ${!S.gradientStyle && (s == null ? void 0 : s.chain) === "BTC" && m.name == ((be = s == null ? void 0 : s._connector) == null ? void 0 : be.name) ? ue.gradientbutton : S.gradientStyle && (s == null ? void 0 : s.chain) === "BTC" && m.name == ((we = s == null ? void 0 : s._connector) == null ? void 0 : we.name) ? "" : "bw-bg-border-primary"} `,
2907
+ children: /* @__PURE__ */ I("div", { className: " bw-w-[71px] bw-h-[25px] bw-rounded-md bw-flex bw-bg-background-container bw-justify-center bw-items-center bw-gap-x-1 ", children: [
2908
+ /* @__PURE__ */ l("img", { src: F, width: "16", height: "16", alt: "btc" }),
2909
+ /* @__PURE__ */ l("p", { className: "bw-text-xs bw-font-bold bw-text-text-primary", children: "BTC" })
2910
+ ] })
2911
+ }
2912
+ ),
2913
+ ((se = d == null ? void 0 : d[`${m == null ? void 0 : m.name}-BTC`]) == null ? void 0 : se.chain) === "BTC" && (d != null && d[`${m == null ? void 0 : m.name}-BTC`]) ? /* @__PURE__ */ l(
2914
+ "div",
2915
+ {
2916
+ onClick: async (C) => {
2917
+ var Z;
2918
+ C.stopPropagation(), Y.length === 1 ? c() : O((Z = d == null ? void 0 : d[`${m == null ? void 0 : m.name}-BTC`]) == null ? void 0 : Z.id, "BTC");
2919
+ },
2920
+ className: " bw-cursor-pointer bw-absolute bw-right-[5px] bw-top-1 bw-text-[10px] bw-text-text-primary bw-z-40 bw-rounded-[50%]",
2921
+ children: /* @__PURE__ */ l(
2922
+ "div",
2923
+ {
2924
+ style: {
2925
+ boxShadow: S && S.customTheme && ((ae = (oe = S.customTheme) == null ? void 0 : oe.shadow) == null ? void 0 : ae.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.20)"
2926
+ },
2927
+ className: "bw-w-[25px] bw-h-[25px] bw-rounded-[50%]",
2928
+ children: /* @__PURE__ */ l(Ue, { fill: "var(--tw-text-primary)" })
2929
+ }
2930
+ )
2931
+ }
2932
+ ) : /* @__PURE__ */ l(B, {}),
2933
+ /* @__PURE__ */ I("div", { className: "bw-w-max bw-relative", children: [
2934
+ /* @__PURE__ */ l("img", { src: _[(pe = m.name) == null ? void 0 : pe.toLowerCase()] || R, width: 32, height: 32, className: "bw-w-[32px] bw-h-[32px] bw-rounded-md", alt: "img" }),
2935
+ /* @__PURE__ */ l("img", { src: F, className: "bw-absolute bw-right-[-15%] bw-bottom-[-30%]", width: "16", height: "16", alt: "btc" })
2936
+ ] }),
2937
+ /* @__PURE__ */ l("p", { className: "bw-text-xs bw-w-max ", children: m.name })
2938
+ ] })
2939
+ },
2940
+ K
2941
+ ) : /* @__PURE__ */ l(qe, { wallet: m.name, chain: "bitcoin" }, K);
2942
+ }) }) : /* @__PURE__ */ l("div", { className: "bw-w-full bw-flex bw-justify-center bw-mt-2 bw-text-text-primary", children: /* @__PURE__ */ l(Ve, { color: "inherit", size: 14 }) });
2943
+ };
2944
+ function dt({ selectedWalletTab: r, connectWalletField: n, handleShowWallet: t, handleConnect: e, setSelectedConnector: i, setSelectedWallet: o, setShowLoading: a, portfolio: s, fromChain: c, toChain: u, handleSolConnecting: g, handleCosmosConnection: h, handleSuiConnecting: M, handleBitcoinConnecting: y, setErrorMsg: p, section: d }) {
2945
+ const x = k((N) => N.isExternalProvider);
2946
+ return /* @__PURE__ */ I("div", { className: " bw-mx-auto bw-px-2 bw-w-full bw-flex bw-justify-between bw-flex-wrap ", children: [
2947
+ x.evm ? /* @__PURE__ */ l(B, {}) : /* @__PURE__ */ l(bs, { section: d, selectedWalletTab: r, styles: ue, connectWalletField: n, handleShowWallet: t, setSelectedConnector: i, setSelectedWallet: o, handleConnect: e, setShowLoading: a }),
2948
+ x.solana ? /* @__PURE__ */ l(B, {}) : r == "All" || r == "SVM" ? /* @__PURE__ */ l(ys, { section: d, handleShowWallet: t, fromChain: c, toChain: u, connectWalletField: n, handleSolConnecting: g, portfolio: s, selectedWalletTab: r }) : /* @__PURE__ */ l(B, {}),
2949
+ r == "All" || r == "Other" ? /* @__PURE__ */ l(xs, { section: d, handleShowWallet: t, fromChain: c, toChain: u, connectWalletField: n, handleBitcoinConnecting: y, portfolio: s, selectedWalletTab: r }) : /* @__PURE__ */ l(B, {}),
2950
+ r == "All" || r == "Cosmos" ? /* @__PURE__ */ l(Ms, { selectedWalletTab: r, handleCosmosConnection: h, setErrorMsg: p, connectWalletField: n, handleShowWallet: t, section: d }) : /* @__PURE__ */ l(B, {})
2951
+ ] });
2952
+ }
2953
+ function vs({ selectedWalletTab: r }) {
2954
+ const { connector: n } = _t(), t = k.getState().isExternalProvider, { data: e, isConnected: i } = _e(), { primaryWallet: o } = le(), { walletOptions: a } = Xe(), [s, c] = P(!1), [u, g] = P(!1), [h, M] = P(!1), y = n && !t.evm, p = (o == null ? void 0 : o.address) && !t.solana, d = k((A) => A.isEvmSupportAvailable), x = Se();
2955
+ function N(A) {
2956
+ return x.some(($) => {
2957
+ var L;
2958
+ return ((L = $.chain) == null ? void 0 : L.toLowerCase()) === A;
2959
+ });
2960
+ }
2961
+ function Q(A) {
2962
+ let $ = xe.keyBy(x, "key"), L = A === "sol" ? ["Solflare", "Phantom", "Slope", "Backpack", "Brave Browser (Solana)"] : ["Phantom", "Xverse"];
2963
+ return !!a.filter((T) => {
2964
+ var G;
2965
+ return L.includes(T.name) && ((G = T.chain) == null ? void 0 : G.toLowerCase()) === A;
2966
+ }).find((T) => T.isInstalledOnBrowser && !$[T.key]);
2967
+ }
2968
+ function W(A) {
2969
+ let $ = xe.keyBy(x, "key"), L = A === "sol" ? ["Solflare", "Phantom", "Slope", "Backpack", "Brave Browser (Solana)"] : ["Phantom", "Xverse"];
2970
+ return !!a.filter((T) => {
2971
+ var G;
2972
+ return L.includes(T.name) && ((G = T.chain) == null ? void 0 : G.toLowerCase()) === A;
2973
+ }).find((T) => !T.isInstalledOnBrowser && !$[T.key]);
2974
+ }
2975
+ function S(A) {
2976
+ switch (A) {
2977
+ case "All":
2978
+ c(y || p || i), g(!t.evm || !i && window.keplr || Q("sol") && !(t != null && t.solana) || Q("btc") && !(t != null && t.solana)), M(!window.keplr || d && !t.evm || W("sol") && !(t != null && t.solana) || W("btc") && !(t != null && t.solana));
2979
+ break;
2980
+ case "EVM":
2981
+ c(y), g(!t.evm);
2982
+ break;
2983
+ case "SVM":
2984
+ c(N("sol") && !t.solana), g(Q("sol") && !t.solana);
2985
+ break;
2986
+ case "Cosmos":
2987
+ c(i), g(!i && window.keplr);
2988
+ break;
2989
+ default:
2990
+ c(N("btc") && !t.solana), g(Q("btc") && !t.solana);
2991
+ break;
2992
+ }
2993
+ }
2994
+ return ne(() => {
2995
+ S(r);
2996
+ }, [r, n, o == null ? void 0 : o.address, t, i, x, a]), { isWalletConnectedIndicator: s, isWalletInstalledIndicator: u, isSupportedIndicator: h };
2997
+ }
2998
+ function Is({ handleShowWallet: r, connectWalletField: n, portfolio: t, classNames: e, handleRecentSelectedWallet: i }) {
2999
+ const o = qt(), { connectAsync: a, data: s, isSuccess: c } = Xt({
3000
+ config: o
3001
+ }), u = k((C) => C.fromChain), g = k((C) => C.toChain), { primaryWallet: h } = le(), M = Fe(), [y, p] = P(""), [d, x] = P(!0), [N, Q] = P(), [W, S] = P(!1), [A, $] = P(!1), [L, Y] = P(!1), [X, T] = P(!1), [G, O] = P(!1), [R, w] = P(""), { connected: F, address: re } = It(), [_, ce] = P("All"), { data: m, isConnected: K } = _e(), { switchAccountAsync: J } = Kt(), v = k((C) => C.configuration);
3002
+ Se();
3003
+ const { walletOptions: b } = Xe(), { isWalletConnectedIndicator: U, isWalletInstalledIndicator: V, isSupportedIndicator: q } = vs({ selectedWalletTab: _ });
3004
+ async function ee(C, Z) {
3005
+ w("");
3006
+ let Qe = Z ? J : a;
3007
+ try {
3008
+ let ye = await Qe({ connector: C });
3009
+ Z && r(), w((de) => (de != null && de.length && ye && r(), ""));
3010
+ } catch (ye) {
3011
+ w(ye.details || ye.message || "");
3012
+ }
3013
+ }
3014
+ ne(() => {
3015
+ let C;
3016
+ return s && c && (C = setTimeout(() => {
3017
+ r();
3018
+ }, 1e3), !t && i("evm")), () => {
3019
+ clearTimeout(C);
3020
+ };
3021
+ }, [c, s]);
3022
+ function te(C, Z) {
3023
+ w(""), Z && p(Z), S(C), x(!1);
3024
+ }
3025
+ function be() {
3026
+ x(!0), S(!1), $(!1), T(!1), O(!1);
3027
+ }
3028
+ function we(C, Z) {
3029
+ w(""), $(C), x(!1);
3030
+ }
3031
+ function se(C, Z) {
3032
+ w(""), Z && p(Z), Y(C), x(!1);
3033
+ }
3034
+ function oe(C, Z) {
3035
+ w(""), Z && p(Z), T(C), x(!1);
3036
+ }
3037
+ function ae(C, Z) {
3038
+ w(""), Z && p(Z), O(C), x(!1);
3039
+ }
3040
+ ne(() => {
3041
+ let C;
3042
+ return M && h !== null && W && (C = setTimeout(() => {
3043
+ r(), te(!1);
3044
+ }, 1e3), !t && i("sol")), () => {
3045
+ clearTimeout(C);
3046
+ };
3047
+ }, [M, h, W]), ne(() => {
3048
+ let C;
3049
+ return F && re && A && (C = setTimeout(() => {
3050
+ r(), we(!1);
3051
+ }, 1e3)), () => {
3052
+ clearTimeout(C);
3053
+ };
3054
+ }, [F, re, A]), ne(() => {
3055
+ let C;
3056
+ return K && (m != null && m.bech32Address) && L && (C = setTimeout(() => {
3057
+ r(), se(!1);
3058
+ }, 1e3), !t && i("cosmos")), () => {
3059
+ clearTimeout(C);
3060
+ };
3061
+ }, [K, m == null ? void 0 : m.bech32Address, L]), ne(() => {
3062
+ let C;
3063
+ return M && h !== null && X && (C = setTimeout(() => {
3064
+ r(), oe(!1);
3065
+ }, 1e3), !t && i("sui")), () => {
3066
+ clearTimeout(C);
3067
+ };
3068
+ }, [M, h, X]), ne(() => {
3069
+ let C;
3070
+ return M && h !== null && G && (C = setTimeout(() => {
3071
+ r(), ae(!1);
3072
+ }, 1e3), !t && i("btc")), () => {
3073
+ clearTimeout(C);
3074
+ };
3075
+ }, [M, h, G]);
3076
+ function pe(C) {
3077
+ ce(C);
3078
+ }
3079
+ return d ? /* @__PURE__ */ I("div", { className: "", children: [
3080
+ /* @__PURE__ */ I("div", { className: "bw-flex bw-relative bw-justify-center bw-mb-2", children: [
3081
+ /* @__PURE__ */ l("button", { onClick: r, className: "bw-absolute bw-left-0 bw-top-[25%]", children: /* @__PURE__ */ l(tn, { fill: "var(--tw-text-secondary)" }) }),
3082
+ /* @__PURE__ */ l("div", { className: "bw-text-lg bw-font-medium bw-text-text-secondary", children: "Connect Wallet" }),
3083
+ /* @__PURE__ */ l("button", { onClick: r, className: "bw-absolute bw-right-0 bw-top-[25%]", children: /* @__PURE__ */ l(nn, { fill: "var(--tw-text-secondary)" }) })
3084
+ ] }),
3085
+ /* @__PURE__ */ l(fs, { selectedWalletTab: _, handleWalletTab: pe }),
3086
+ /* @__PURE__ */ I("div", { className: `${e || "bw-h-[400px] "} bw-w-full bw-relative bw-overflow-y-auto`, children: [
3087
+ /* @__PURE__ */ I("div", { children: [
3088
+ U ? /* @__PURE__ */ I("div", { className: "bw-flex bw-items-center bw-gap-x-2 bw-justify-between bw-w-full bw-my-3", children: [
3089
+ /* @__PURE__ */ I("p", { style: { ...v == null ? void 0 : v.gradientStyle }, className: ` bw-bg-clip-text bw-flex bw-items-center bw-gap-x-1 bw-text-sm bw-font-medium bw-text-transparent ${v != null && v.gradientStyle ? "" : ue.gradientbutton} `, children: [
3090
+ /* @__PURE__ */ l("div", { style: { ...v == null ? void 0 : v.gradientStyle }, className: `bw-w-[10px] bw-rounded-[50%] ${v != null && v.gradientStyle ? "" : ue.gradientbutton} bw-bg-text-greentext bw-h-[10px]` }),
3091
+ " Connected"
3092
+ ] }),
3093
+ /* @__PURE__ */ l("div", { className: "bw-h-[1px] bw-mr-2 bw-w-full bw-bg-border-primary" })
3094
+ ] }) : /* @__PURE__ */ l(B, {}),
3095
+ /* @__PURE__ */ l(
3096
+ dt,
3097
+ {
3098
+ selectedWalletTab: _,
3099
+ connectWalletField: n,
3100
+ handleShowWallet: r,
3101
+ handleConnect: ee,
3102
+ setSelectedConnector: Q,
3103
+ setErrorMsg: w,
3104
+ setSelectedWallet: p,
3105
+ setShowLoading: x,
3106
+ portfolio: t,
3107
+ fromChain: u,
3108
+ toChain: g,
3109
+ handleSolConnecting: te,
3110
+ handleCosmosConnection: se,
3111
+ handleSuiConnecting: oe,
3112
+ handleBitcoinConnecting: ae,
3113
+ section: "connected"
3114
+ }
3115
+ )
3116
+ ] }),
3117
+ /* @__PURE__ */ I("div", { children: [
3118
+ V ? /* @__PURE__ */ I("div", { className: "bw-flex bw-items-center bw-gap-x-2 bw-justify-between bw-w-full bw-my-3", children: [
3119
+ /* @__PURE__ */ l("p", { className: "bw-text-sm bw-font-medium bw-w-max bw-text-text-secondary ", children: "Installed" }),
3120
+ /* @__PURE__ */ l("div", { className: "bw-h-[1px] bw-mr-2 bw-w-full bw-bg-border-primary" })
3121
+ ] }) : /* @__PURE__ */ l(B, {}),
3122
+ /* @__PURE__ */ l(
3123
+ dt,
3124
+ {
3125
+ selectedWalletTab: _,
3126
+ connectWalletField: n,
3127
+ handleShowWallet: r,
3128
+ handleConnect: ee,
3129
+ setSelectedConnector: Q,
3130
+ setErrorMsg: w,
3131
+ setSelectedWallet: p,
3132
+ setShowLoading: x,
3133
+ portfolio: t,
3134
+ fromChain: u,
3135
+ toChain: g,
3136
+ handleSolConnecting: te,
3137
+ handleCosmosConnection: se,
3138
+ handleSuiConnecting: oe,
3139
+ handleBitcoinConnecting: ae,
3140
+ section: "installed"
3141
+ }
3142
+ )
3143
+ ] }),
3144
+ /* @__PURE__ */ I("div", { children: [
3145
+ q ? /* @__PURE__ */ I("div", { className: "bw-flex bw-items-center bw-gap-x-2 bw-justify-between bw-w-full bw-my-3", children: [
3146
+ /* @__PURE__ */ l("p", { className: "bw-text-sm bw-font-medium bw-w-max bw-text-text-secondary ", children: "Supported" }),
3147
+ /* @__PURE__ */ l("div", { className: "bw-h-[1px] bw-mr-2 bw-w-full bw-bg-border-primary" })
3148
+ ] }) : /* @__PURE__ */ l(B, {}),
3149
+ /* @__PURE__ */ l(
3150
+ dt,
3151
+ {
3152
+ selectedWalletTab: _,
3153
+ connectWalletField: n,
3154
+ handleShowWallet: r,
3155
+ handleConnect: ee,
3156
+ setSelectedConnector: Q,
3157
+ setErrorMsg: w,
3158
+ setSelectedWallet: p,
3159
+ setShowLoading: x,
3160
+ portfolio: t,
3161
+ fromChain: u,
3162
+ toChain: g,
3163
+ handleSolConnecting: te,
3164
+ handleCosmosConnection: se,
3165
+ handleSuiConnecting: oe,
3166
+ handleBitcoinConnecting: ae,
3167
+ section: "supported"
3168
+ }
3169
+ )
3170
+ ] })
3171
+ ] }),
3172
+ n == "to" ? /* @__PURE__ */ l(hs, { portfolio: t, handleShowWallet: r, section: "connected" }) : /* @__PURE__ */ l(B, {})
3173
+ ] }) : /* @__PURE__ */ l(us, { selectedWallet: y, selectedConnector: N, handleConnect: ee, handleOtherWalletConnecting: be, isSolConnecting: W, isTronConnecting: A, isCosmosonnecting: L, isSuiConnecting: X, isBitcoinConnecting: G, isSuccess: c, data: s, evmError: R });
3174
+ }
3175
+ const Rs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3176
+ __proto__: null,
3177
+ default: Is
3178
+ }, Symbol.toStringTag, { value: "Module" }));
3179
+ export {
3180
+ Is as S,
3181
+ cn as T,
3182
+ Rs as i
3183
+ };