@blockend/widget 1.0.49-beta.5 → 1.0.51

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