@blockend/widget 1.0.60 → 1.0.61-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/dist/AdvancedSettings-BSHVKOx8.js +60 -0
  2. package/dist/{AllRoutes-Bi2Qb6vT.js → AllRoutes-3rJ_6MZA.js} +9 -9
  3. package/dist/{Box-DofFTOO9.js → Box-k1E75YNB.js} +1 -1
  4. package/dist/EstGas-NmdlnuTV.js +1688 -0
  5. package/dist/{Grow-C7qv-xx7.js → Grow-DHSmig3g.js} +2 -2
  6. package/dist/{InputComp-B7JBOOCL.js → InputComp-Q8pjLoPE.js} +3 -3
  7. package/dist/{LoadRoute-KBCAhdb3.js → LoadRoute-C2z-mW9G.js} +4 -4
  8. package/dist/{QuotesProgress-DaVjqEE8.js → QuotesProgress-BD5CQpZ-.js} +1 -1
  9. package/dist/{SwapAsset-ClNXL1XN.js → SwapAsset-Kx0ombNP.js} +1 -1
  10. package/dist/{Tooltip-BfAqBg9y.js → Tooltip-Dx9YIENU.js} +3 -3
  11. package/dist/{TxnButton-41zPru_N.js → TxnButton-CWOz7URH.js} +31 -31
  12. package/dist/{add-Dtd6YmCJ.js → add-D_aca-vE.js} +1 -1
  13. package/dist/{all-wallets-fWl6fl6Y.js → all-wallets-D4BSWfpK.js} +1 -1
  14. package/dist/{app-store-DSLOwXZY.js → app-store-ST0Ravfg.js} +1 -1
  15. package/dist/{apple-BMDEkk8X.js → apple-DaFtNkdI.js} +1 -1
  16. package/dist/{arrow-bottom-BWURPGva.js → arrow-bottom-CuRXWFcr.js} +1 -1
  17. package/dist/{arrow-bottom-circle-BR18TdWN.js → arrow-bottom-circle-xfTEwf8w.js} +1 -1
  18. package/dist/{arrow-left-DSHPaT9f.js → arrow-left-Z346mTvE.js} +1 -1
  19. package/dist/{arrow-right-BQyfcxHk.js → arrow-right-CUIO0t26.js} +1 -1
  20. package/dist/{arrow-top-RP3srPoV.js → arrow-top-DmqPBsC5.js} +1 -1
  21. package/dist/{bank-C9VWqird.js → bank-BO1ZejV3.js} +1 -1
  22. package/dist/{basic-ChmJK0Xt.js → basic-P5IuMVWt.js} +3 -3
  23. package/dist/{browser-CSkm7gnt.js → browser-R_yTVBVl.js} +1 -1
  24. package/dist/{card-qLWgu9c8.js → card-CmQJzq49.js} +1 -1
  25. package/dist/{ccip-QF_uXtAt.js → ccip-Vdbs2YPx.js} +1 -1
  26. package/dist/{checkmark-BmzqmMw0.js → checkmark-BUj82mTz.js} +1 -1
  27. package/dist/{checkmark-bold-B6aImdAf.js → checkmark-bold-4sXAvyEi.js} +1 -1
  28. package/dist/{chevron-bottom-t4h4eaxS.js → chevron-bottom-BHRgOLsC.js} +1 -1
  29. package/dist/{chevron-left-D3susSgC.js → chevron-left-eVq5zb9x.js} +1 -1
  30. package/dist/{chevron-right-W13sAkua.js → chevron-right-BqbdhgX8.js} +1 -1
  31. package/dist/{chevron-top-Bx-QdB_J.js → chevron-top-lFcz1Dk9.js} +1 -1
  32. package/dist/{chrome-store-CGxM7IYK.js → chrome-store-CJjs0q6Z.js} +1 -1
  33. package/dist/{clock-DLxk1mp4.js → clock-LxWBSJ_V.js} +1 -1
  34. package/dist/{close-XyT_Ei7X.js → close-CJEyeA8d.js} +1 -1
  35. package/dist/{coinPlaceholder-COnVP39c.js → coinPlaceholder-A0px2L1V.js} +1 -1
  36. package/dist/{compass-B7Ua__ME.js → compass-CKpEE3QF.js} +1 -1
  37. package/dist/{copy-CwqmRN0X.js → copy-BGAVbyLK.js} +1 -1
  38. package/dist/{core-HN_b3jpG.js → core-UMj0YuPY.js} +6124 -4570
  39. package/dist/{cursor-CZUzCZDa.js → cursor-CdRK37lV.js} +1 -1
  40. package/dist/{cursor-transparent-C-iNJp5e.js → cursor-transparent-DCtZPn6M.js} +1 -1
  41. package/dist/{desktop-CKvUvwiO.js → desktop-BpmiexI7.js} +1 -1
  42. package/dist/{disconnect-Baq1ttCe.js → disconnect-CmRL6rxR.js} +1 -1
  43. package/dist/{discord-D8jJPT-u.js → discord-CgA8etyT.js} +1 -1
  44. package/dist/{down-CbXkinMO.js → down-veMPztmj.js} +2 -2
  45. package/dist/{etherscan-DmvsfmlR.js → etherscan-B0Iz4J9k.js} +1 -1
  46. package/dist/{exclamation-triangle-B5sVL0Op.js → exclamation-triangle-Box_8laE.js} +1 -1
  47. package/dist/{extension-DTURW9PD.js → extension-CT5kynXr.js} +1 -1
  48. package/dist/{external-link-BhiyYwAM.js → external-link-BmAqCUs9.js} +1 -1
  49. package/dist/{facebook-BKU8pCSU.js → facebook-CzlMPtlk.js} +1 -1
  50. package/dist/{farcaster-aPuBoT-f.js → farcaster-Z3KYAnFk.js} +1 -1
  51. package/dist/{filters-Dhcy_bWD.js → filters-CVtviD0v.js} +1 -1
  52. package/dist/{getChainIds-hFBaLC3P.js → getChainIds-DDKgS0TA.js} +2 -2
  53. package/dist/{getCosmosAddress-wW2QvGf4.js → getCosmosAddress-D-BxI1sZ.js} +2640 -2576
  54. package/dist/{github-DpOcHBpK.js → github-KjnPjzGN.js} +1 -1
  55. package/dist/{google-Dlr5X4XZ.js → google-CnyCazMS.js} +1 -1
  56. package/dist/{hamburger-CbTP1z8e.js → hamburger-DkyOLKDt.js} +5 -5
  57. package/dist/{help-circle-DfsreI1-.js → help-circle-BoN3xTWx.js} +1 -1
  58. package/dist/{id-CgVrDv4g.js → id-tq8aEw5U.js} +1 -1
  59. package/dist/{image-BgZMfISb.js → image-DBC1q2_n.js} +1 -1
  60. package/dist/{index-D-h2D2T4.js → index-37soHOzC.js} +2 -2
  61. package/dist/{index-BzlNNUJC.js → index-B6Hd7MNh.js} +211 -207
  62. package/dist/{index-Doq8prid.js → index-BMJemt0T.js} +1 -1
  63. package/dist/{index-DEzMTwnP.js → index-BnfXeC9U.js} +11 -11
  64. package/dist/{index-Dfnahm9u.js → index-BrUFU9w4.js} +4 -4
  65. package/dist/{index-W17Yun1B.js → index-C57ebjbd.js} +78 -78
  66. package/dist/{index-CQef3aFT.js → index-CrdvyxIs.js} +5 -5
  67. package/dist/{index-BNAc3BNQ.js → index-Dq-7CifU.js} +260 -259
  68. package/dist/{index-CzIE4OVR.js → index-DwgdKTri.js} +1 -1
  69. package/dist/{index-cmkdh21h.js → index-nbo2VFYc.js} +4 -4
  70. package/dist/{index-ij8WLtCK.js → index-u8Ded5qw.js} +10 -10
  71. package/dist/index.es-CXA8FwxC.js +14904 -0
  72. package/dist/{index.es-DznYPOeF.js → index.es-CwOZPtUM.js} +1 -1
  73. package/dist/index.es.js +1 -1
  74. package/dist/{info-CZQMmcBD.js → info-B-ADkq2O.js} +1 -1
  75. package/dist/{info-circle-CA3WSSRD.js → info-circle-CzjFim13.js} +1 -1
  76. package/dist/{lightbulb-8ISYXfUt.js → lightbulb-BzGUazBJ.js} +1 -1
  77. package/dist/{mail-CHIth09p.js → mail-CEB7w3xW.js} +1 -1
  78. package/dist/{mobile-CrFtClXb.js → mobile-D2As9Lxy.js} +1 -1
  79. package/dist/{more-mHern-4V.js → more-B3qgSPHK.js} +1 -1
  80. package/dist/{network-placeholder-CoODkTLk.js → network-placeholder-D3v1VNVd.js} +1 -1
  81. package/dist/{nftPlaceholder-CG7DC4DT.js → nftPlaceholder-7uzR-QgE.js} +1 -1
  82. package/dist/{off-CrgcN-zp.js → off-B5fhwDTB.js} +1 -1
  83. package/dist/{play-store-CQP9kqkp.js → play-store-fmnI2qeP.js} +1 -1
  84. package/dist/{plus-DHA7xDuc.js → plus-BPrwB2BV.js} +1 -1
  85. package/dist/{qr-code-zibhnzKq.js → qr-code-DRh63vJj.js} +1 -1
  86. package/dist/{recycle-horizontal-DywyCULr.js → recycle-horizontal-DGw86E5g.js} +1 -1
  87. package/dist/{refresh-e2GocWQK.js → refresh-Dg7iaYhB.js} +1 -1
  88. package/dist/{reown-logo-BU64qOXz.js → reown-logo-tiOXXURu.js} +1 -1
  89. package/dist/{search-DzxpvkH-.js → search-eG23Hr6c.js} +1 -1
  90. package/dist/{send-r9Pjl4vo.js → send-BOwE6eLM.js} +1 -1
  91. package/dist/{swapHorizontal-BTrXWq48.js → swapHorizontal-ywv205Wi.js} +1 -1
  92. package/dist/{swapHorizontalBold-CJqWkgp6.js → swapHorizontalBold-CzmBehA5.js} +1 -1
  93. package/dist/{swapHorizontalMedium-DX7hDgRK.js → swapHorizontalMedium-BLbLZusS.js} +1 -1
  94. package/dist/{swapHorizontalRoundedBold-C51tXWKa.js → swapHorizontalRoundedBold-N_SHWa3r.js} +1 -1
  95. package/dist/{swapVertical-Crddwuzr.js → swapVertical-EAZRQhGp.js} +1 -1
  96. package/dist/{telegram-BC6rpZd8.js → telegram-n36fCk1z.js} +1 -1
  97. package/dist/{three-dots-DC9iZV71.js → three-dots-0tBgmH4A.js} +1 -1
  98. package/dist/{twitch-Dqthmddu.js → twitch-BhZ8ahtd.js} +1 -1
  99. package/dist/{twitterIcon-DIWxOs67.js → twitterIcon-DfNmxt1B.js} +1 -1
  100. package/dist/{unsupportedProp-BW6bMgdV.js → unsupportedProp-D3sAzZYG.js} +1 -1
  101. package/dist/{useRegisterError-D0oAcJrb.js → useRegisterError-Bo2lp0sa.js} +3 -2
  102. package/dist/{verify-GrViE51Y.js → verify-CWXFpftr.js} +1 -1
  103. package/dist/{verify-filled-Cws_QO3X.js → verify-filled-DP3y-Kx3.js} +1 -1
  104. package/dist/{w3m-modal-n7hzVP_I.js → w3m-modal-CwwnoSKf.js} +2 -2
  105. package/dist/{wallet-Cd1ruTUh.js → wallet-pQYrlhSS.js} +1 -1
  106. package/dist/{wallet-placeholder-Ce4gGswZ.js → wallet-placeholder-CFNKM5lP.js} +1 -1
  107. package/dist/{walletconnect-CqpJhu9-.js → walletconnect-CAtjZJiV.js} +1 -1
  108. package/dist/{warning-circle-DQ6ZS1NO.js → warning-circle-BOE2EoE9.js} +1 -1
  109. package/dist/widget.css +1 -1
  110. package/dist/{x-CR749er2.js → x-BqcRzM19.js} +1 -1
  111. package/package.json +1 -1
  112. package/dist/EstGas-w0MeYkJr.js +0 -1574
  113. package/dist/index.es-C8qSCFHh.js +0 -13234
@@ -0,0 +1,1688 @@
1
+ import { jsx as o, jsxs as p, Fragment as H } from "react/jsx-runtime";
2
+ import { aE as Xt, aF as Yt, aG as te, aH as ee, aI as ne, aJ as re, u as d, l as rt, S as yt, a as _t, aA as Gt, aB as it } from "./index-B6Hd7MNh.js";
3
+ import { O as ft } from "./index-DwgdKTri.js";
4
+ import kt, { useState as ot, useContext as J, useRef as pt, useEffect as M, createContext as oe, useMemo as se } from "react";
5
+ import { u as Mt, W as ie, B as ae, C as le, L as ce, i as Lt, f as xe, c as Ht, d as de, F as lt } from "./useRegisterError-Bo2lp0sa.js";
6
+ import { useAccount as St, useConfig as be, useSwitchChain as ue } from "wagmi";
7
+ import { S as me } from "./shareicon-CG3v7iKI.js";
8
+ import { T as Ot } from "./Tooltip-Dx9YIENU.js";
9
+ import { L as we } from "./index.es-CwOZPtUM.js";
10
+ import { useStargateSigningClient as Rt, useAccount as pe } from "graz";
11
+ import { l as he, S as ye, D as fe } from "./down-veMPztmj.js";
12
+ import { u as ke, g as Dt, V as ge } from "./getCosmosAddress-D-BxI1sZ.js";
13
+ import { useDynamicContext as zt } from "@dynamic-labs/sdk-react-core";
14
+ import { v as gt } from "./validError-CDlJpg_f.js";
15
+ import { getNextTxn as Se, createTransaction as Te, checkStatus as Ee, pollTransactionStatus as Ce, executeTransaction as ve } from "@blockend/compass-sdk";
16
+ import { useMutation as Ne, useQuery as Ae } from "@tanstack/react-query";
17
+ import { createClient as Ie, custom as De, walletActions as Fe } from "viem";
18
+ import { e as Be } from "./ethertousd-CC_ezooz.js";
19
+ async function $e(e, r = {}) {
20
+ let t;
21
+ if (r.connector) {
22
+ const { connector: l } = r;
23
+ if (e.state.status === "reconnecting" && !l.getAccounts && !l.getChainId)
24
+ throw new Xt({ connector: l });
25
+ const [y, f] = await Promise.all([
26
+ l.getAccounts().catch((v) => {
27
+ if (r.account === null)
28
+ return [];
29
+ throw v;
30
+ }),
31
+ l.getChainId()
32
+ ]);
33
+ t = {
34
+ accounts: y,
35
+ chainId: f,
36
+ connector: l
37
+ };
38
+ } else
39
+ t = e.state.connections.get(e.state.current);
40
+ if (!t)
41
+ throw new Yt();
42
+ const n = r.chainId ?? t.chainId, s = await t.connector.getChainId();
43
+ if (s !== t.chainId)
44
+ throw new te({
45
+ connectionChainId: t.chainId,
46
+ connectorChainId: s
47
+ });
48
+ const x = t.connector;
49
+ if (x.getClient)
50
+ return x.getClient({ chainId: n });
51
+ const a = ee(r.account ?? t.accounts[0]);
52
+ if (a && (a.address = ne(a.address)), r.account && !t.accounts.some((l) => l.toLowerCase() === a.address.toLowerCase()))
53
+ throw new re({
54
+ address: a.address,
55
+ connector: x
56
+ });
57
+ const u = e.chains.find((l) => l.id === n), h = await t.connector.getProvider({ chainId: n });
58
+ return Ie({
59
+ account: a,
60
+ chain: u,
61
+ name: "Connector Client",
62
+ transport: (l) => De(h)({ ...l, retryCount: 0 })
63
+ });
64
+ }
65
+ async function Ve(e, r = {}) {
66
+ return (await $e(e, r)).extend(Fe);
67
+ }
68
+ function je({ field: e }) {
69
+ var x, a, u;
70
+ const r = d((h) => h.persist), { getWallet: t } = Mt({ chainData: (r == null ? void 0 : r.fromChain) || {} }), n = ((x = t(r == null ? void 0 : r.fromChain)) == null ? void 0 : x.address) || null, s = e == "from" ? n && ((a = r == null ? void 0 : r.route) == null ? void 0 : a.userWalletAddress) || "" : ((u = r == null ? void 0 : r.route) == null ? void 0 : u.recipient) || "";
71
+ return /* @__PURE__ */ o("button", { style: { fontSize: "12px" }, className: "bw-bg-background-container bw-flex bw-items-center bw-justify-center bw-gap-x-2 bw-mb-[4px] bw-w-[100px] bw-h-[25px] bw-rounded-xl bw-border bw-border-border-primary", children: s ? /* @__PURE__ */ p(H, { children: [
72
+ /* @__PURE__ */ o("p", { className: "bw-text-text-primary bw-text-xs bw-font-normal", children: ((s == null ? void 0 : s.substring(0, 4)) || "") + "..." + ((s == null ? void 0 : s.substring(s.length - 4, s.length)) || "") }),
73
+ /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(ie, { fill: "var(--tw-text-primary)" }) })
74
+ ] }) : /* @__PURE__ */ o("div", { className: "bw-w-[10px] bw-flex bw-text-text-secondary bw-justify-center bw-items-center bw-h-[10px]", children: "Connect " }) });
75
+ }
76
+ function w0({ chainData: e, coinData: r, amount: t, field: n }) {
77
+ var a, u, h, l, y;
78
+ const s = d((f) => f.configuration), x = d((f) => f.persist);
79
+ return /* @__PURE__ */ p(
80
+ "div",
81
+ {
82
+ style: {
83
+ boxShadow: s && s.customTheme && ((u = (a = s.customTheme) == null ? void 0 : a.shadow) == null ? void 0 : u.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
84
+ },
85
+ className: `bw-bg-background-container bw-relative bw-z-10 bw-min-w-[50%] bw-px-2 md:bw-min-w-[153px] bw-flex bw-flex-col bw-items-center bw-justify-start bw-pt-2 bw-rounded-lg bw-h-[75px] bw-border ${(((h = x.statusData) == null ? void 0 : h.status) == "partial-success" || ((l = x.statusData) == null ? void 0 : l.status) == "refunded") && n == "to" ? "bw-border-text-redtext" : "bw-border-border-primary"} `,
86
+ children: [
87
+ /* @__PURE__ */ p("div", { className: `${((y = r == null ? void 0 : r.symbol) == null ? void 0 : y.length) > 6 ? "bw-text-base" : "bw-text-lg"} bw-text-center bw-font-medium bw-text-text-primary`, children: [
88
+ /* @__PURE__ */ o("span", { children: t ? /* @__PURE__ */ o(ft, { value: t == null ? void 0 : t.toString(), decimal: 8 }) : 0 }),
89
+ " ",
90
+ /* @__PURE__ */ o("span", { children: (r == null ? void 0 : r.symbol) || "" }),
91
+ /* @__PURE__ */ o("p", { className: "bw-text-sm bw-font-medium bw-text-text-secondary", children: `on ${e == null ? void 0 : e.name}` })
92
+ ] }),
93
+ /* @__PURE__ */ o("div", { className: "bw-absolute -bw-bottom-4", children: /* @__PURE__ */ o(je, { field: n }) })
94
+ ]
95
+ }
96
+ );
97
+ }
98
+ function p0({ handleBack: e }) {
99
+ return /* @__PURE__ */ o("div", { className: "bw-flex bw-z-20 bw-relative bw-justify-center bw-mb-5", children: /* @__PURE__ */ o(
100
+ "button",
101
+ {
102
+ onClick: () => {
103
+ e();
104
+ },
105
+ className: "bw-absolute bw-left-0 bw-top-[25%]",
106
+ children: /* @__PURE__ */ o(ae, { fill: "var(--tw-text-secondary)" })
107
+ }
108
+ ) });
109
+ }
110
+ const Pe = "_loader_1g6xv_1", Ue = {
111
+ loader: Pe
112
+ };
113
+ function Ft() {
114
+ return /* @__PURE__ */ p("div", { className: Ue.loader, children: [
115
+ /* @__PURE__ */ o("span", {}),
116
+ /* @__PURE__ */ o("span", {}),
117
+ /* @__PURE__ */ o("span", {})
118
+ ] });
119
+ }
120
+ const ct = kt.createContext(!1);
121
+ function _e({ children: e }) {
122
+ return /* @__PURE__ */ o(
123
+ Ot,
124
+ {
125
+ onClose: () => {
126
+ },
127
+ disableInteractive: !0,
128
+ onClick: () => {
129
+ },
130
+ slotProps: {
131
+ popper: {
132
+ modifiers: [
133
+ {
134
+ name: "offset",
135
+ options: {
136
+ offset: [0, -10]
137
+ }
138
+ }
139
+ ]
140
+ }
141
+ },
142
+ className: "bw-text-text-button",
143
+ title: "Transaction Link",
144
+ children: e
145
+ }
146
+ );
147
+ }
148
+ function Ge({ fill: e }) {
149
+ return /* @__PURE__ */ p("svg", { width: "18", height: "9", viewBox: "0 0 18 9", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
150
+ /* @__PURE__ */ o("path", { d: "M6.34375 4.49902H11.4231", stroke: e, "stroke-width": "2", "stroke-linecap": "round" }),
151
+ /* @__PURE__ */ o("path", { d: "M4.81007 1C-0.269325 1 -0.270722 8 4.81007 8", stroke: e, "stroke-width": "2", "stroke-linecap": "round" }),
152
+ /* @__PURE__ */ o("path", { d: "M13.1899 1C18.2693 1 18.2707 8 13.1899 8", stroke: e, "stroke-width": "2", "stroke-linecap": "round" })
153
+ ] });
154
+ }
155
+ function Tt({ txnHash: e, children: r }) {
156
+ const [t, n] = ot(!1);
157
+ return /* @__PURE__ */ o(
158
+ Ot,
159
+ {
160
+ onClose: () => {
161
+ setTimeout(() => {
162
+ n(!1);
163
+ }, [1e3]);
164
+ },
165
+ disableInteractive: !0,
166
+ onClick: () => {
167
+ navigator.clipboard.writeText(e).then(() => {
168
+ n(!0);
169
+ });
170
+ },
171
+ slotProps: {
172
+ popper: {
173
+ modifiers: [
174
+ {
175
+ name: "offset",
176
+ options: {
177
+ offset: [0, -10]
178
+ }
179
+ }
180
+ ]
181
+ }
182
+ },
183
+ className: "bw-text-text-button",
184
+ title: `${t ? "Copied!" : "Copy"}`,
185
+ children: r
186
+ }
187
+ );
188
+ }
189
+ function Et({ fill: e }) {
190
+ return /* @__PURE__ */ p("svg", { width: "11", height: "13", viewBox: "0 0 11 13", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
191
+ /* @__PURE__ */ o("rect", { x: "0.5", y: "3.5", width: "7", height: "9", rx: "1.5", stroke: e }),
192
+ /* @__PURE__ */ o("path", { d: "M3 1H8C9.10457 1 10 1.89543 10 3V10", stroke: e, "stroke-linecap": "round" })
193
+ ] });
194
+ }
195
+ const Me = "6.13.5";
196
+ function Bt(e, r, t) {
197
+ for (let n in r) {
198
+ let s = r[n];
199
+ Object.defineProperty(e, n, { enumerable: !0, value: s, writable: !1 });
200
+ }
201
+ }
202
+ function at(e) {
203
+ if (e == null)
204
+ return "null";
205
+ if (Array.isArray(e))
206
+ return "[ " + e.map(at).join(", ") + " ]";
207
+ if (e instanceof Uint8Array) {
208
+ const r = "0123456789abcdef";
209
+ let t = "0x";
210
+ for (let n = 0; n < e.length; n++)
211
+ t += r[e[n] >> 4], t += r[e[n] & 15];
212
+ return t;
213
+ }
214
+ if (typeof e == "object" && typeof e.toJSON == "function")
215
+ return at(e.toJSON());
216
+ switch (typeof e) {
217
+ case "boolean":
218
+ case "symbol":
219
+ return e.toString();
220
+ case "bigint":
221
+ return BigInt(e).toString();
222
+ case "number":
223
+ return e.toString();
224
+ case "string":
225
+ return JSON.stringify(e);
226
+ case "object": {
227
+ const r = Object.keys(e);
228
+ return r.sort(), "{ " + r.map((t) => `${at(t)}: ${at(e[t])}`).join(", ") + " }";
229
+ }
230
+ }
231
+ return "[ COULD NOT SERIALIZE ]";
232
+ }
233
+ function Le(e, r, t) {
234
+ let n = e;
235
+ {
236
+ const x = [];
237
+ if (t) {
238
+ if ("message" in t || "code" in t || "name" in t)
239
+ throw new Error(`value will overwrite populated values: ${at(t)}`);
240
+ for (const a in t) {
241
+ if (a === "shortMessage")
242
+ continue;
243
+ const u = t[a];
244
+ x.push(a + "=" + at(u));
245
+ }
246
+ }
247
+ x.push(`code=${r}`), x.push(`version=${Me}`), x.length && (e += " (" + x.join(", ") + ")");
248
+ }
249
+ let s;
250
+ switch (r) {
251
+ case "INVALID_ARGUMENT":
252
+ s = new TypeError(e);
253
+ break;
254
+ case "NUMERIC_FAULT":
255
+ case "BUFFER_OVERRUN":
256
+ s = new RangeError(e);
257
+ break;
258
+ default:
259
+ s = new Error(e);
260
+ }
261
+ return Bt(s, { code: r }), t && Object.assign(s, t), s.shortMessage == null && Bt(s, { shortMessage: n }), s;
262
+ }
263
+ function He(e, r, t, n) {
264
+ throw Le(r, t, n);
265
+ }
266
+ function Oe(e, r, t, n) {
267
+ He(e, r, "INVALID_ARGUMENT", { argument: t, value: n });
268
+ }
269
+ ["NFD", "NFC", "NFKD", "NFKC"].reduce((e, r) => {
270
+ try {
271
+ if ("test".normalize(r) !== "test")
272
+ throw new Error("bad");
273
+ if (r === "NFD" && "é".normalize("NFD") !== "é")
274
+ throw new Error("broken");
275
+ e.push(r);
276
+ } catch {
277
+ }
278
+ return e;
279
+ }, []);
280
+ function Re(e, r, t) {
281
+ if (e instanceof Uint8Array)
282
+ return e;
283
+ if (typeof e == "string" && e.match(/^0x(?:[0-9a-f][0-9a-f])*$/i)) {
284
+ const n = new Uint8Array((e.length - 2) / 2);
285
+ let s = 2;
286
+ for (let x = 0; x < n.length; x++)
287
+ n[x] = parseInt(e.substring(s, s + 2), 16), s += 2;
288
+ return n;
289
+ }
290
+ Oe(!1, "invalid BytesLike value", "value", e);
291
+ }
292
+ function ze(e, r) {
293
+ return Re(e);
294
+ }
295
+ function We(e) {
296
+ e = atob(e);
297
+ const r = new Uint8Array(e.length);
298
+ for (let t = 0; t < e.length; t++)
299
+ r[t] = e.charCodeAt(t);
300
+ return ze(r);
301
+ }
302
+ const Qe = "4.8.0", qe = { g: "LottieFiles AE 3.5.7", a: "", k: "", d: "", tc: "" }, Je = 30, Ke = 0, Ze = 54, Xe = 512, Ye = 512, tn = "Comp 1", en = 0, nn = /* @__PURE__ */ JSON.parse('[{"id":"comp_0","layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Outer Line Effect End Sphere 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":35,"s":[100]},{"t":44,"s":[18]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":35,"s":[256,256,0],"to":[4.86,0.612,0],"ti":[-4.86,-0.612,0]},{"t":44,"s":[285.162,259.669,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[309,309,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[6.875,6.875],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[49.625,-52.688],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":35,"op":44,"st":-5,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Outer Line Effect End Sphere 1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":35,"s":[100]},{"t":44,"s":[18]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":35,"s":[256,256,0],"to":[2.124,2.897,0],"ti":[-2.124,-2.897,0]},{"t":44,"s":[268.746,273.381,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[309,309,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[3.75,3.75],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[45.875,-50.25],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":35,"op":44,"st":-5,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Tick End Effect Sphere 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":13,"s":[100]},{"t":19,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":13,"s":[310.847,201.925,0],"to":[1.674,-2.382,0],"ti":[-1.674,2.382,0]},{"t":19,"s":[320.89,187.634,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[216.3,216.3,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[1.691,0],[0,-1.691],[-1.691,0],[0,1.691]],"o":[[-1.691,0],[0,1.691],[1.691,0],[0,-1.691]],"v":[[0,-3.062],[-3.062,0],[0,3.062],[3.062,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[44.125,-57.438],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 2","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[1.691,0],[0,-1.691],[-1.691,0],[0,1.691]],"o":[[-1.691,0],[0,1.691],[1.691,0],[0,-1.691]],"v":[[0,-3.062],[-3.062,0],[0,3.062],[3.062,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[44.125,-57.438],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false}],"ip":13,"op":19,"st":-5,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"Tick End Effect Sphere 1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":13,"s":[100]},{"t":19,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":13,"s":[256,256,0],"to":[-0.515,-3.058,0],"ti":[0.515,3.058,0]},{"t":19,"s":[252.91,237.653,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[309,309,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[1.691,0],[0,-1.691],[-1.691,0],[0,1.691]],"o":[[-1.691,0],[0,1.691],[1.691,0],[0,-1.691]],"v":[[0,-3.062],[-3.062,0],[0,3.062],[3.062,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[44.125,-57.438],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 2","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[1.691,0],[0,-1.691],[-1.691,0],[0,1.691]],"o":[[-1.691,0],[0,1.691],[1.691,0],[0,-1.691]],"v":[[0,-3.062],[-3.062,0],[0,3.062],[3.062,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[44.125,-57.438],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false}],"ip":13,"op":19,"st":-5,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"Tick Mid Effect Sphere 3","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":8,"s":[100]},{"t":18,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":8,"s":[257.448,257.835,0],"to":[-1.577,2.543,0],"ti":[1.577,-2.543,0]},{"t":18,"s":[247.985,273.092,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[309,309,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0.759,0],[0,-0.759],[-0.759,0],[0,0.759]],"o":[[-0.759,0],[0,0.759],[0.759,0],[0,-0.759]],"v":[[0,-1.375],[-1.375,0],[0,1.375],[1.375,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[-12.406,36.25],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":8,"op":18,"st":-5,"bm":0},{"ddd":0,"ind":6,"ty":4,"nm":"Tick Mid Effect Sphere 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":8,"s":[100]},{"t":18,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":8,"s":[256,256,0],"to":[-1.481,3.734,0],"ti":[1.481,-3.734,0]},{"t":18,"s":[247.116,278.403,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[309,309,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[6.375,6.375],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[-7.594,40.438],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":8,"op":18,"st":-5,"bm":0},{"ddd":0,"ind":7,"ty":4,"nm":"Tick Mid Effect Sphere 1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":8,"s":[100]},{"t":18,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":8,"s":[256,256,0],"to":[3.251,2.768,0],"ti":[-3.251,-2.768,0]},{"t":18,"s":[275.506,272.609,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[309,309,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[1.484,0],[0,-1.484],[-1.484,0],[0,1.484]],"o":[[-1.484,0],[0,1.484],[1.484,0],[0,-1.484]],"v":[[0,-2.688],[-2.688,0],[0,2.688],[2.688,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[-2.156,37.688],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":8,"op":18,"st":-5,"bm":0},{"ddd":0,"ind":8,"ty":4,"nm":"Intro Effect Sphere 1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":3,"s":[100]},{"t":11,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":3,"s":[55.247,114.922,0],"to":[-0.161,-1.899,0],"ti":[1.159,2.993,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":7,"s":[54.281,103.528,0],"to":[-1.159,-2.993,0],"ti":[0.998,1.094,0]},{"t":11,"s":[48.294,96.962,0]}],"ix":2},"a":{"a":0,"k":[-54.781,-49.094,0],"ix":1},"s":{"a":0,"k":[185.4,185.4,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[4.688,4.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[-54.781,-49.094],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":3,"op":11,"st":-5,"bm":0},{"ddd":0,"ind":9,"ty":4,"nm":"Intro Effect Sphere 1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":3,"s":[100]},{"t":11,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":3,"s":[78.035,105.266,0],"to":[0.483,-1.996,0],"ti":[-1.642,2.8,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":7,"s":[80.932,93.292,0],"to":[1.642,-2.8,0],"ti":[-1.159,0.805,0]},{"t":11,"s":[87.885,88.464,0]}],"ix":2},"a":{"a":0,"k":[-54.781,-49.094,0],"ix":1},"s":{"a":0,"k":[185.4,185.4,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[4.688,4.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[-54.781,-49.094],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":3,"op":11,"st":-5,"bm":0},{"ddd":0,"ind":10,"ty":4,"nm":"Tick Thin Line","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[256,256,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[309,309,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-34.25,11],[-7,37.75],[35.5,-21]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":2,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":5,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":8,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":9,"s":[3]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":10,"s":[12]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":11,"s":[28]},{"t":12,"s":[57]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":5,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":8,"s":[22]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":9,"s":[43]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":10,"s":[77]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":11,"s":[100]},{"t":12,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":5,"op":12,"st":-5,"bm":0},{"ddd":0,"ind":11,"ty":4,"nm":"Ball","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[32]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":3,"s":[32]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":5,"s":[45]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":6,"s":[47]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":7,"s":[-57]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":14,"s":[-57]},{"i":{"x":[0.583],"y":[0.795]},"o":{"x":[0.167],"y":[0]},"t":20,"s":[-57]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.417],"y":[-1.147]},"t":21,"s":[-104.5]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":22,"s":[-96]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":23,"s":[-53]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":24,"s":[-19]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":25,"s":[34]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":26,"s":[111]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":27,"s":[174]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":28,"s":[201]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":29,"s":[214]},{"t":30,"s":[226]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":0,"s":[34.486,166.197,0],"to":[5.794,-6.438,0],"ti":[-18.669,-10.429,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":3,"s":[69.248,127.572,0],"to":[18.669,10.429,0],"ti":[-22.016,-28.84,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":5,"s":[146.498,228.769,0],"to":[22.016,28.84,0],"ti":[-19.57,-8.755,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":6,"s":[201.346,300.612,0],"to":[19.57,8.755,0],"ti":[-17.381,13.004,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":7,"s":[263.918,281.299,0],"to":[17.381,-13.004,0],"ti":[-12.36,17.253,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":8,"s":[305.633,222.589,0],"to":[12.36,-17.253,0],"ti":[-12.875,17.381,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":9,"s":[338.078,177.784,0],"to":[12.875,-17.381,0],"ti":[-7.468,9.914,0]},{"i":{"x":0.667,"y":0.667},"o":{"x":0.333,"y":0.333},"t":13,"s":[382.883,118.302,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":14,"s":[382.883,118.302,0],"to":[10.557,9.399,0],"ti":[0,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":15,"s":[382.883,118.302,0],"to":[10.557,9.399,0],"ti":[-21.91,-41.023,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":20,"s":[434.641,186.282,0],"to":[16.555,30.997,0],"ti":[-0.386,-0.772,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":22,"s":[451.056,263.146,0],"to":[0.386,0.772,0],"ti":[0,-1.416,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":23,"s":[395.436,388.291,0],"to":[0,1.416,0],"ti":[0.386,-0.644,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":24,"s":[300.419,445.456,0],"to":[-0.386,0.644,0],"ti":[1.288,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":25,"s":[136.649,407.603,0],"to":[-1.288,0,0],"ti":[1.288,1.545,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":26,"s":[84.891,170.446,0],"to":[-1.288,-1.545,0],"ti":[-1.03,0.772,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":27,"s":[248.661,66.158,0],"to":[1.03,-0.772,0],"ti":[-1.931,0.129,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":28,"s":[335.954,87.016,0],"to":[1.931,-0.129,0],"ti":[-0.129,-0.386,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":29,"s":[369.171,107.101,0],"to":[0.129,0.386,0],"ti":[-0.193,-0.064,0]},{"t":30,"s":[380.759,115.598,0]}],"ix":2},"a":{"a":0,"k":[-59.688,-42.062,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":0,"s":[309,309,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":3,"s":[309,309,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":5,"s":[302.82,250.29,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":6,"s":[358.44,213.21,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":7,"s":[358.44,213.21,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":9,"s":[284.28,213.21,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":13,"s":[244.11,244.11,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":14,"s":[244.11,244.11,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":20,"s":[244.11,244.11,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":22,"s":[342.99,244.11,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":23,"s":[342.99,210.12,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":24,"s":[342.99,222.48,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":25,"s":[373.89,207.03,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":26,"s":[373.89,207.03,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":27,"s":[315.18,176.13,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":28,"s":[216.3,117.42,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":29,"s":[163.77,86.52,100]},{"t":30,"s":[71.07,55.62,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[21.375,21.375],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-60.562,-43.562],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":30,"st":-5,"bm":0},{"ddd":0,"ind":12,"ty":4,"nm":"Tick Main","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[256.386,247.116,0],"ix":2},"a":{"a":0,"k":[0.125,-2.875,0],"ix":1},"s":{"a":0,"k":[309,309,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-27.375,2.625],[-7.75,21.5],[27.625,-27.25]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":12,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":5,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":6,"s":[11]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":7,"s":[51]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":8,"s":[79]},{"t":11,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":5,"op":49,"st":-5,"bm":0},{"ddd":0,"ind":13,"ty":4,"nm":"Main Outer Line","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":40,"ix":10},"p":{"a":0,"k":[254.455,259.863,0],"ix":2},"a":{"a":0,"k":[-0.5,1.25,0],"ix":1},"s":{"a":0,"k":[309,309,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[123.5,123.5],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":16,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":21,"s":[11]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":23,"s":[27]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":24,"s":[35]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":25,"s":[50]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":26,"s":[73]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":27,"s":[89]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":28,"s":[96]},{"t":29,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":7,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0.25],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[98.384,97.558],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":16,"op":49,"st":-5,"bm":0},{"ddd":0,"ind":14,"ty":4,"nm":"Outer Thin Stroke","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":40,"ix":10},"p":{"a":0,"k":[254.455,259.863,0],"ix":2},"a":{"a":0,"k":[-0.5,1.25,0],"ix":1},"s":{"a":0,"k":[355.35,355.35,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[123.5,123.5],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":16,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":21,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":25,"s":[6]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":26,"s":[20]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":29,"s":[23]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":30,"s":[29]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":31,"s":[45]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":32,"s":[69]},{"t":35,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":16,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":21,"s":[11]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":25,"s":[29]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":28,"s":[50]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":29,"s":[57]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":31,"s":[81]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":32,"s":[100]},{"t":35,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":2,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0.25],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[98.384,97.558],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":16,"op":35,"st":-5,"bm":0}]}]'), rn = [{ ddd: 0, ind: 1, ty: 3, nm: "Null 1", sr: 1, ks: { o: { a: 0, k: 0, ix: 11 }, r: { a: 0, k: 0, ix: 10 }, p: { a: 0, k: [256, 256, 0], ix: 2 }, a: { a: 0, k: [0, 0, 0], ix: 1 }, s: { a: 0, k: [309, 309, 100], ix: 6 } }, ao: 0, ip: 0, op: 54, st: 0, bm: 0 }, { ddd: 0, ind: 2, ty: 0, nm: "Pre-comp 1", refId: "comp_0", sr: 1, ks: { o: { a: 0, k: 100, ix: 11 }, r: { a: 0, k: 0, ix: 10 }, p: { a: 0, k: [256, 256, 0], ix: 2 }, a: { a: 0, k: [256, 256, 0], ix: 1 }, s: { a: 0, k: [100, 100, 100], ix: 6 } }, ao: 0, ef: [{ ty: 21, nm: "Fill", np: 9, mn: "ADBE Fill", ix: 1, en: 1, ef: [{ ty: 10, nm: "Fill Mask", mn: "ADBE Fill-0001", ix: 1, v: { a: 0, k: 0, ix: 1 } }, { ty: 7, nm: "All Masks", mn: "ADBE Fill-0007", ix: 2, v: { a: 0, k: 0, ix: 2 } }, { ty: 2, nm: "Color", mn: "ADBE Fill-0002", ix: 3, v: { a: 0, k: [0.289119571447, 0.784313738346, 0.731881439686, 1], ix: 3 } }, { ty: 7, nm: "Invert", mn: "ADBE Fill-0006", ix: 4, v: { a: 0, k: 0, ix: 4 } }, { ty: 0, nm: "Horizontal Feather", mn: "ADBE Fill-0003", ix: 5, v: { a: 0, k: 0, ix: 5 } }, { ty: 0, nm: "Vertical Feather", mn: "ADBE Fill-0004", ix: 6, v: { a: 0, k: 0, ix: 6 } }, { ty: 0, nm: "Opacity", mn: "ADBE Fill-0005", ix: 7, v: { a: 0, k: 1, ix: 7 } }] }], w: 512, h: 512, ip: 5, op: 54, st: 5, bm: 0 }], on = [], sn = {
303
+ v: Qe,
304
+ meta: qe,
305
+ fr: Je,
306
+ ip: Ke,
307
+ op: Ze,
308
+ w: Xe,
309
+ h: Ye,
310
+ nm: tn,
311
+ ddd: en,
312
+ assets: nn,
313
+ layers: rn,
314
+ markers: on
315
+ }, an = "_gradienttext_uc65n_6", ln = "_gradientbutton_uc65n_19", st = {
316
+ gradienttext: an,
317
+ gradientbutton: ln
318
+ };
319
+ function cn({ handleBack: e }) {
320
+ var b, S, I, N, k, w, g;
321
+ const r = d((A) => A.gradient), t = d((A) => A.persist), n = d((A) => A.configuration), s = t == null ? void 0 : t.stepData.stepType, a = ((t == null ? void 0 : t.txnHashObj) || [])[(b = t == null ? void 0 : t.stepData) == null ? void 0 : b.stepId] || {}, u = s === "bridge" ? (a == null ? void 0 : a.destTxnHash) || (a == null ? void 0 : a.srcTxnHash) : (a == null ? void 0 : a.srcTxnHash) || "", h = (S = t == null ? void 0 : t.historyData) == null ? void 0 : S.finalTxnHash, l = u || h || "", y = s === "bridge" ? (a == null ? void 0 : a.destTxnUrl) || (a == null ? void 0 : a.srcTxnUrl) : (a == null ? void 0 : a.srcTxnUrl) || "", f = (I = t == null ? void 0 : t.historyData) == null ? void 0 : I.finalTxnUrl, v = y || f || "", B = t.toCoin || {}, C = t.route || {}, _ = t.toChain || {};
322
+ let i = ((N = t == null ? void 0 : t.statusData) == null ? void 0 : N.outputAmountDisplay) || 0, c = (Number(i) ? i : Number(i)) || (C == null ? void 0 : C.outputAmountDisplay) || 0;
323
+ return /* @__PURE__ */ p("div", { className: "bw-absolute bw-bg-background-container bw-border-t bw-pt-3 bw-border-border-primary bw-w-full bw-flex bw-flex-col bw-z-50 bw-items-center bw-justify-center bw-bottom-0", children: [
324
+ /* @__PURE__ */ p(
325
+ "div",
326
+ {
327
+ style: {
328
+ boxShadow: n && n.customTheme && ((w = (k = n.customTheme) == null ? void 0 : k.shadow) == null ? void 0 : w.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
329
+ },
330
+ className: "bw-flex bw-items-center bw-rounded-xl bw-w-full bw-justify-between bw-bg-background-container bw-border bw-border-border-primary bw-p-2",
331
+ children: [
332
+ /* @__PURE__ */ p("div", { children: [
333
+ /* @__PURE__ */ o(
334
+ "p",
335
+ {
336
+ style: { ...n.gradientStyle, backgroundClip: "text" },
337
+ className: `bw-text-lg ${r || `${(g = n == null ? void 0 : n.gradientStyle) != null && g.background ? "" : "bw-bg-gradient-to-l bw-from-[#2CFFE4] bw-to-[#A45EFF]"}`} bw-bg-clip-text bw-font-medium bw-text-transparent`,
338
+ children: "Transaction Successful"
339
+ }
340
+ ),
341
+ /* @__PURE__ */ p("p", { className: "bw-text-2xl bw-font-medium bw-text-text-primary", children: [
342
+ /* @__PURE__ */ o(ft, { value: c, decimal: 10 }),
343
+ " ",
344
+ B.symbol
345
+ ] }),
346
+ /* @__PURE__ */ o("p", { className: "bw-text-sm bw-mb-2 bw-font-normal bw-text-text-secondary", children: `Received on ${_.name || _.blockchain} chain` }),
347
+ /* @__PURE__ */ p("div", { className: "bw-flex bw-items-center bw-gap-x-1", children: [
348
+ /* @__PURE__ */ o("p", { className: "bw-text-sm bw-font-normal bw-text-text-secondary", children: `Tx id: ${l ? `${l.substring(0, 5)}...${l.substring(
349
+ l.length - 5,
350
+ l.length
351
+ )}` : ""}` }),
352
+ /* @__PURE__ */ o("div", { className: "bw-cursor-pointer", children: /* @__PURE__ */ o(Tt, { txnHash: l, children: /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(Et, { fill: "var(--tw-text-secondary)" }) }) }) }),
353
+ /* @__PURE__ */ o("a", { href: v, target: "_blank", children: /* @__PURE__ */ o("div", { className: "bw-cursor-pointer", children: /* @__PURE__ */ o(me, { fill: "var(--tw-text-secondary)" }) }) })
354
+ ] })
355
+ ] }),
356
+ /* @__PURE__ */ o("div", { className: " bw-flex bw-justify-center bw-items-center bw-w-[105px] bw-h-[105px]", children: /* @__PURE__ */ o(we, { animationData: sn, loop: !0 }) })
357
+ ]
358
+ }
359
+ ),
360
+ /* @__PURE__ */ o(
361
+ "button",
362
+ {
363
+ onClick: e,
364
+ style: { ...n == null ? void 0 : n.gradientStyle },
365
+ className: `bw-w-full ${st.gradientbutton} bw-rounded-sm bw-h-[50px] bw-p-[3px] bw-mt-3 bw-border-0 bw-relative bw-z-0 disabled:bw-opacity-50 bw-text-2xl bw-font-bold bw-text-text-primary`,
366
+ children: /* @__PURE__ */ o(
367
+ "div",
368
+ {
369
+ onClick: e,
370
+ className: "bw-rounded-sm bw-bg-background-container bw-flex bw-items-center bw-justify-center b-w-full bw-h-full",
371
+ children: "Start Again"
372
+ }
373
+ )
374
+ }
375
+ )
376
+ ] });
377
+ }
378
+ const Wt = kt.createContext(!1);
379
+ function xn({ disableButton: e, handleStep: r, txnProcessType: t, txnTextObj: n }) {
380
+ var f, v, B;
381
+ const s = d((C) => C.persist), x = d((C) => C.configuration);
382
+ d((C) => C.cosmosChainIds);
383
+ const a = d((C) => C.fromChain);
384
+ let u = e ? {} : { ...x == null ? void 0 : x.gradientStyle };
385
+ const { data: h, isLoading: l } = Rt({
386
+ chainId: [a.chainId],
387
+ multiChain: !0
388
+ });
389
+ let y = ((f = s == null ? void 0 : s.fromChain) == null ? void 0 : f.networkType) == "cosmos" ? l : !1;
390
+ return !rt.isEmpty(s == null ? void 0 : s.stepData) && !y ? /* @__PURE__ */ o(
391
+ "button",
392
+ {
393
+ disabled: e || !n,
394
+ className: `bw-text-lg bw-flex bw-justify-center bw-items-center bw-gap-x-2 disabled:bw-opacity-60 bw-font-medium bw-h-[50px] bw-w-full bw-rounded-sm ${e ? "bw-bg-border-primary bw-p-[1px]" : st.gradientbutton + " bw-p-[3px]"}`,
395
+ onClick: r,
396
+ style: {
397
+ ...u,
398
+ boxShadow: x && x.customTheme && ((B = (v = x.customTheme) == null ? void 0 : v.shadow) == null ? void 0 : B.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
399
+ },
400
+ children: /* @__PURE__ */ p("div", { className: "bw-bg-background-container bw-w-full bw-h-full bw-flex bw-items-center bw-justify-center", children: [
401
+ e || !n && /* @__PURE__ */ o("div", { className: "bw-w-[30px] bw-flex bw-text-text-secondary bw-justify-center bw-items-center bw-h-[30px]", children: /* @__PURE__ */ o(le, { size: 22, thickness: 5, color: "inherit" }) }),
402
+ /* @__PURE__ */ o(
403
+ "p",
404
+ {
405
+ className: ` ${e ? "bw-text-text-secondary bw-font-normal" : "bw-text-text-primary bw-font-bold"} bw-text-2xl `,
406
+ children: n == null ? void 0 : n[t == "process" ? "processingCta" : "preCta"]
407
+ }
408
+ )
409
+ ] })
410
+ }
411
+ ) : /* @__PURE__ */ o(yt, { className: "bw-bg-background-secondary bw-rounded-sm bw-w-full", animation: "wave", height: 50 });
412
+ }
413
+ function Qt({ errorText: e, heading: r = "Transaction Failed" }) {
414
+ const t = d((n) => n.persist);
415
+ return /* @__PURE__ */ p(H, { children: [
416
+ /* @__PURE__ */ o("p", { className: "bw-text-lg bw-font-medium bw-text-text-primary bw-mb-1 bw-text-center", children: r }),
417
+ /* @__PURE__ */ p("div", { className: "bw-w-full bw-mb-2 ", children: [
418
+ /* @__PURE__ */ o("p", { className: "bw-text-sm bw-font-bold bw-text-text-primary ", children: "Route Id" }),
419
+ /* @__PURE__ */ p("div", { className: "bw-flex bw-items-center bw-gap-x-1", children: [
420
+ /* @__PURE__ */ o("p", { className: "bw-text-sm bw-font-normal bw-text-text-secondary", children: t == null ? void 0 : t.routeId }),
421
+ /* @__PURE__ */ o(Tt, { txnHash: t == null ? void 0 : t.routeId, children: /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(Et, { fill: "var(--tw-text-secondary)" }) }) })
422
+ ] })
423
+ ] }),
424
+ /* @__PURE__ */ p("div", { className: "bw-text-left bw-w-full bw-mb-2 ", children: [
425
+ e != null && e.length ? /* @__PURE__ */ o("p", { className: "bw-text-sm bw-font-bold bw-text-text-primary ", children: "Error" }) : /* @__PURE__ */ o(H, {}),
426
+ /* @__PURE__ */ o("div", { className: "bw-text-left bw-max-h-[60px] bw-overflow-auto ", children: /* @__PURE__ */ o("p", { style: { wordBreak: "break-all" }, className: "bw-text-xs bw-leading-5 bw-pr-2 bw-w-full md:bw-max-w-[420px] bw-font-normal bw-mb-2 bw-text-left bw-text-text-redtext", children: e }) })
427
+ ] })
428
+ ] });
429
+ }
430
+ function dn({ handleGoBack: e, errorText: r, txnTextObj: t, handleExeTxn: n, handleDisable: s }) {
431
+ var u, h, l, y;
432
+ const x = d((f) => f.configuration), a = d((f) => f.persist);
433
+ return /* @__PURE__ */ p("div", { className: "bw-absolute bw-bg-background-container bw-border-t bw-border-border-primary bw-pt-3 bw-w-full bw-bottom-0 bw-flex bw-flex-col bw-justify-center bw-items-center", children: [
434
+ /* @__PURE__ */ o(Qt, { errorText: r }),
435
+ a.isHistory ? /* @__PURE__ */ o(H, {}) : /* @__PURE__ */ p("div", { className: "bw-w-full bw-flex bw-items-center bw-gap-x-2", children: [
436
+ /* @__PURE__ */ o(
437
+ "button",
438
+ {
439
+ style: {
440
+ boxShadow: x && x.customTheme && ((h = (u = x.customTheme) == null ? void 0 : u.shadow) == null ? void 0 : h.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
441
+ },
442
+ className: "bw-border bw-text-lg bw-flex bw-justify-center bw-items-center bw-gap-x-2 disabled:bw-opacity-60 bw-font-medium bw-h-[50px] bw-w-[50%] bw-bg-background-container bw-border-border-primary",
443
+ onClick: () => {
444
+ e();
445
+ },
446
+ children: /* @__PURE__ */ o(
447
+ "p",
448
+ {
449
+ style: {
450
+ ...x.gradientStyle,
451
+ backgroundClip: "text"
452
+ },
453
+ className: ` ${st.gradienttext} bw-text-2xl bw-font-normal`,
454
+ children: "Home"
455
+ }
456
+ )
457
+ }
458
+ ),
459
+ /* @__PURE__ */ o(
460
+ "button",
461
+ {
462
+ style: {
463
+ ...x == null ? void 0 : x.gradientStyle,
464
+ boxShadow: x && x.customTheme && ((y = (l = x.customTheme) == null ? void 0 : l.shadow) == null ? void 0 : y.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
465
+ },
466
+ className: ` bw-text-lg bw-flex bw-justify-center bw-items-center bw-gap-x-2 disabled:bw-opacity-60 bw-font-medium bw-h-[50px] bw-w-[50%] ${st.gradientbutton} bw-rounded-sm bw-p-[3px] `,
467
+ onClick: () => {
468
+ n(), s(!0);
469
+ },
470
+ children: /* @__PURE__ */ o("div", { className: " bw-bg-background-container bw-w-full bw-h-full bw-flex bw-items-center bw-justify-center", children: /* @__PURE__ */ o(
471
+ "p",
472
+ {
473
+ style: {
474
+ ...x.gradientStyle,
475
+ backgroundClip: "text"
476
+ },
477
+ className: " bw-text-text-primary bw-text-2xl bw-font-bold",
478
+ children: "Try Again"
479
+ }
480
+ ) })
481
+ }
482
+ )
483
+ ] })
484
+ ] });
485
+ }
486
+ function bn({ txnTextObj: e, txnProcessType: r, errorText: t, allSteps: n }) {
487
+ var x, a, u;
488
+ const s = d((h) => h.persist);
489
+ return /* @__PURE__ */ p(H, { children: [
490
+ /* @__PURE__ */ o("p", { className: "bw-text-lg bw-font-medium bw-mb-1 bw-text-text-primary", children: s != null && s.stepStatus && (s != null && s.stepStatus[n == null ? void 0 : n.currentStep]) ? ((a = e == null ? void 0 : e.status) == null ? void 0 : a[(x = s == null ? void 0 : s.stepStatus[n == null ? void 0 : n.currentStep]) == null ? void 0 : x.status]) || (e == null ? void 0 : e[(u = s == null ? void 0 : s.stepStatus[n == null ? void 0 : n.currentStep]) == null ? void 0 : u.type]) : "" }),
491
+ /* @__PURE__ */ o("p", { className: "bw-text-sm bw-text-center bw-font-medium bw-mb-4 bw-text-text-secondary", children: e == null ? void 0 : e[r == "process" ? "processingDescription" : r == "loading" ? "loadingDescription" : "preDescription"] }),
492
+ /* @__PURE__ */ o("p", { className: "bw-text-xs bw-font-normal bw-text-center bw-text-text-redtext ", children: t })
493
+ ] });
494
+ }
495
+ function un({ i: e, item: r }) {
496
+ var u, h, l, y;
497
+ const t = d((f) => f.persist), n = (t == null ? void 0 : t.txnHashObj) || [], s = (h = (u = n[r.stepId]) == null ? void 0 : u.destTxnUrl) != null && h.length ? (l = n[r.stepId]) == null ? void 0 : l.destTxnUrl : (y = n[r.stepId]) == null ? void 0 : y.srcTxnUrl, x = r.destTxnUrl || r.srcTxnUrl, a = s || x;
498
+ return a != null && a.length ? /* @__PURE__ */ o("a", { target: "_blank", className: "bw-relative bw-z-50 bw-mt-1", href: a, children: /* @__PURE__ */ o(_e, { children: /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(Ge, { fill: "var(--tw-text-primary)" }) }) }) }) : /* @__PURE__ */ o(H, {});
499
+ }
500
+ function mn({ item: e, i: r }) {
501
+ var x, a, u, h, l, y, f, v, B, C, _;
502
+ const { isErrorMessage: t, handleErrorMessage: n } = J(ct), s = d((i) => i.persist);
503
+ return s == null || s.allSteps, /* @__PURE__ */ p("div", { children: [
504
+ /* @__PURE__ */ o("h1", { className: ` ${((a = (x = e == null ? void 0 : e.texts) == null ? void 0 : x.heading) == null ? void 0 : a.length) > 34 ? "bw-text-base" : "bw-text-lg"} ${((u = s == null ? void 0 : s.allSteps) == null ? void 0 : u.currentStep) == r ? "bw-text-text-primary" : "bw-text-text-secondary"} bw-leading-none bw-mt-[-2px]`, children: (h = e == null ? void 0 : e.texts) == null ? void 0 : h.heading }),
505
+ s != null && s.stepStatus && (s != null && s.stepStatus[r]) ? /* @__PURE__ */ o(H, { children: /* @__PURE__ */ o("p", { className: "bw-text-sm bw-text-text-secondary bw-ml-3 bw-mt-1", children: t && ((l = s == null ? void 0 : s.stepStatus[r]) == null ? void 0 : l.status) !== "failed" && r == ((y = s == null ? void 0 : s.allSteps) == null ? void 0 : y.currentStep) ? "Failed" : ((B = (f = e == null ? void 0 : e.texts) == null ? void 0 : f.status) == null ? void 0 : B[(v = s == null ? void 0 : s.stepStatus[r]) == null ? void 0 : v.status]) || ((_ = e == null ? void 0 : e.texts) == null ? void 0 : _[(C = s == null ? void 0 : s.stepStatus[r]) == null ? void 0 : C.type]) }) }) : r == 0 ? /* @__PURE__ */ o("div", { className: "bw-h-[20px] bw-mt-[4px] bw-w-full", children: /* @__PURE__ */ o(yt, { className: "bw-bg-background-secondary bw-rounded-lg bw-w-full", animation: "wave" }) }) : /* @__PURE__ */ o(H, {})
506
+ ] });
507
+ }
508
+ function $t({ spinnerColor: e, stopColor: r }) {
509
+ return /* @__PURE__ */ p(
510
+ "svg",
511
+ {
512
+ width: "17",
513
+ height: "18",
514
+ viewBox: "0 0 17 18",
515
+ fill: "none",
516
+ xmlns: "http://www.w3.org/2000/svg",
517
+ children: [
518
+ /* @__PURE__ */ o(
519
+ "path",
520
+ {
521
+ d: "M5.23438 8.90997L7.625 11.1346L12.0948 5.18945",
522
+ stroke: "url(#paint0_linear_2764_26377)",
523
+ "stroke-width": "1.5"
524
+ }
525
+ ),
526
+ /* @__PURE__ */ o(
527
+ "path",
528
+ {
529
+ d: "M16.0563 13.3423C14.5038 15.802 11.778 17.4336 8.67473 17.4336C5.16232 17.4336 2.1335 15.3435 0.742188 12.3281",
530
+ stroke: "#8A8F8E",
531
+ "stroke-width": "0.25"
532
+ }
533
+ ),
534
+ /* @__PURE__ */ o(
535
+ "path",
536
+ {
537
+ d: "M16.0563 13.3423C14.5038 15.802 11.778 17.4336 8.67473 17.4336C5.16232 17.4336 2.1335 15.3435 0.742188 12.3281",
538
+ stroke: "#8A8F8E",
539
+ "stroke-width": "0.25"
540
+ }
541
+ ),
542
+ /* @__PURE__ */ o("circle", { cx: "8.68848", cy: "8.7041", r: "7.48535", stroke: "#8A8F8E" }),
543
+ /* @__PURE__ */ o("defs", { children: /* @__PURE__ */ p(
544
+ "linearGradient",
545
+ {
546
+ id: "paint0_linear_2764_26377",
547
+ x1: "13.3956",
548
+ y1: "7.30551",
549
+ x2: "0.983954",
550
+ y2: "7.29133",
551
+ gradientUnits: "userSpaceOnUse",
552
+ children: [
553
+ /* @__PURE__ */ o("stop", { "stop-color": e || "#2CFFE4" }),
554
+ /* @__PURE__ */ o("stop", { offset: "1", "stop-color": r || "#A45EFF" })
555
+ ]
556
+ }
557
+ ) })
558
+ ]
559
+ }
560
+ );
561
+ }
562
+ const wn = "4.8.0", pn = { g: "LottieFiles AE 3.5.7", a: "", k: "", d: "", tc: "" }, hn = 25, yn = 0, fn = 51, kn = 512, gn = 512, Sn = "Comp 1", Tn = 0, En = [], Cn = [{ ddd: 0, ind: 1, ty: 4, nm: "Shape Layer 1", sr: 1, ks: { o: { a: 0, k: 100, ix: 11 }, r: { a: 0, k: 0, ix: 10 }, p: { a: 0, k: [256, 256, 0], ix: 2 }, a: { a: 0, k: [-7, -8, 0], ix: 1 }, s: { a: 0, k: [100, 100, 100], ix: 6 } }, ao: 0, shapes: [{ ty: "gr", it: [{ d: 1, ty: "el", s: { a: 0, k: [214, 214], ix: 2 }, p: { a: 0, k: [0, 0], ix: 3 }, nm: "Ellipse Path 1", mn: "ADBE Vector Shape - Ellipse", hd: !1 }, { ty: "fl", c: { a: 0, k: [1, 1, 1, 1], ix: 4 }, o: { a: 0, k: 100, ix: 5 }, r: 1, bm: 2, nm: "Fill 1", mn: "ADBE Vector Graphic - Fill", hd: !1 }, { ty: "tr", p: { a: 0, k: [-7, -8], ix: 2 }, a: { a: 0, k: [0, 0], ix: 1 }, s: { a: 0, k: [100, 100], ix: 3 }, r: { a: 0, k: 0, ix: 6 }, o: { a: 0, k: 100, ix: 7 }, sk: { a: 0, k: 0, ix: 4 }, sa: { a: 0, k: 0, ix: 5 }, nm: "Transform" }], nm: "Ellipse 1", np: 3, cix: 2, bm: 0, ix: 1, mn: "ADBE Vector Group", hd: !1 }], ip: 0, op: 51, st: 0, bm: 0 }, { ddd: 0, ind: 2, ty: 4, nm: "Shape Layer 2", sr: 1, ks: { o: { a: 1, k: [{ i: { x: [0.667], y: [1] }, o: { x: [0.333], y: [0] }, t: 11, s: [100] }, { i: { x: [0.667], y: [1] }, o: { x: [0.333], y: [0] }, t: 25, s: [0] }, { i: { x: [0.667], y: [1] }, o: { x: [0.333], y: [0] }, t: 37, s: [100] }, { t: 51, s: [0] }], ix: 11 }, r: { a: 0, k: 0, ix: 10 }, p: { a: 0, k: [256, 256, 0], ix: 2 }, a: { a: 0, k: [-7, -8, 0], ix: 1 }, s: { a: 1, k: [{ i: { x: [0.667, 0.667, 0.667], y: [1, 1, 1] }, o: { x: [0.333, 0.333, 0.333], y: [0, 0, 0] }, t: 0, s: [59, 59, 100] }, { i: { x: [0.667, 0.667, 0.667], y: [1, 1, 1] }, o: { x: [0.333, 0.333, 0.333], y: [0, 0, 0] }, t: 25, s: [228, 228, 100] }, { i: { x: [0.667, 0.667, 0.667], y: [1, 1, 1] }, o: { x: [0.333, 0.333, 0.333], y: [0, 0, 0] }, t: 26, s: [59, 59, 100] }, { t: 51, s: [228, 228, 100] }], ix: 6 } }, ao: 0, shapes: [{ ty: "gr", it: [{ d: 1, ty: "el", s: { a: 0, k: [214, 214], ix: 2 }, p: { a: 0, k: [0, 0], ix: 3 }, nm: "Ellipse Path 1", mn: "ADBE Vector Shape - Ellipse", hd: !1 }, { ty: "fl", c: { a: 0, k: [1, 1, 1, 1], ix: 4 }, o: { a: 0, k: 100, ix: 5 }, r: 1, bm: 2, nm: "Fill 1", mn: "ADBE Vector Graphic - Fill", hd: !1 }, { ty: "tr", p: { a: 0, k: [-7, -8], ix: 2 }, a: { a: 0, k: [0, 0], ix: 1 }, s: { a: 0, k: [100, 100], ix: 3 }, r: { a: 0, k: 0, ix: 6 }, o: { a: 0, k: 100, ix: 7 }, sk: { a: 0, k: 0, ix: 4 }, sa: { a: 0, k: 0, ix: 5 }, nm: "Transform" }], nm: "Ellipse 1", np: 3, cix: 2, bm: 0, ix: 1, mn: "ADBE Vector Group", hd: !1 }], ip: 0, op: 51, st: 0, bm: 0 }], vn = [], Nn = {
563
+ v: wn,
564
+ meta: pn,
565
+ fr: hn,
566
+ ip: yn,
567
+ op: fn,
568
+ w: kn,
569
+ h: gn,
570
+ nm: Sn,
571
+ ddd: Tn,
572
+ assets: En,
573
+ layers: Cn,
574
+ markers: vn
575
+ };
576
+ function An() {
577
+ const e = pt(null), r = d((t) => t.configuration);
578
+ return M(() => {
579
+ var n, s;
580
+ const t = ce.loadAnimation({
581
+ container: e.current,
582
+ animationData: he.flatten(
583
+ (n = r == null ? void 0 : r.gradientStyle) != null && n.spinnerColor ? (s = r == null ? void 0 : r.gradientStyle) == null ? void 0 : s.spinnerColor : "#2CFFE4",
584
+ Nn
585
+ )
586
+ });
587
+ return () => t.destroy();
588
+ }, []), /* @__PURE__ */ o("div", { style: { width: "100%", height: "100%" }, ref: e });
589
+ }
590
+ function In({ allSteps: e, disableButton: r, i: t, arr: n }) {
591
+ var y, f, v, B;
592
+ const s = d((C) => C.configuration), { txnupdate: x } = Lt, { isErrorMessage: a } = J(ct), u = d((C) => C.persist), h = u == null ? void 0 : u.historyData, l = (h == null ? void 0 : h.currentStepStatus) || "";
593
+ return /* @__PURE__ */ p("div", { className: "bw-w-[18px] bw-min-h-full bw-relative bw-flex bw-flex-col bw-justify-center bw-items-center ", children: [
594
+ (e == null ? void 0 : e.currentStep) < t ? /* @__PURE__ */ o("div", { className: "bw-w-[18px] bw-rounded-[50%] bw-h-[18px] bw-bg-background-container bw-border bw-border-border-primary " }) : (e == null ? void 0 : e.currentStep) == t ? r ? /* @__PURE__ */ o(H, { children: /* @__PURE__ */ o("div", { className: " bw-w-[18px] bw-h-[18px] ", children: /* @__PURE__ */ o(ye, {}) }) }) : a ? (
595
+ // <CloseIcon width={18} height={18} fill={"var(--tw-text-primary)"} />
596
+ /* @__PURE__ */ o("img", { src: x, width: 27, height: 27, alt: "img" })
597
+ ) : l == "success" ? /* @__PURE__ */ o(
598
+ $t,
599
+ {
600
+ spinnerColor: (y = s == null ? void 0 : s.gradientStyle) == null ? void 0 : y.spinnerColor,
601
+ stopColor: (f = s == null ? void 0 : s.gradientStyle) == null ? void 0 : f.stopColor
602
+ }
603
+ ) : l == "failed" ? /* @__PURE__ */ o("img", { src: x, width: 27, height: 27, alt: "img" }) : /* @__PURE__ */ o("div", { className: "bw-w-[18px] bw-h-[18px]", children: /* @__PURE__ */ o(An, {}) }) : /* @__PURE__ */ o(
604
+ $t,
605
+ {
606
+ spinnerColor: (v = s == null ? void 0 : s.gradientStyle) == null ? void 0 : v.spinnerColor,
607
+ stopColor: (B = s == null ? void 0 : s.gradientStyle) == null ? void 0 : B.stopColor
608
+ }
609
+ ),
610
+ t !== n.length - 1 ? /* @__PURE__ */ o(
611
+ "div",
612
+ {
613
+ className: "bw-h-[30px] bw-absolute bw-w-[1px] bw-bottom-[-200%] bw-bg-background-secondary"
614
+ }
615
+ ) : /* @__PURE__ */ o(H, {})
616
+ ] });
617
+ }
618
+ const Dn = "_container_1e7nb_1", Fn = "_dash_1e7nb_9", Bn = "_uno_1e7nb_17", $n = "_dos_1e7nb_23", Vn = "_tres_1e7nb_29", jn = "_cuatro_1e7nb_35", q = {
619
+ container: Dn,
620
+ dash: Fn,
621
+ uno: Bn,
622
+ dos: $n,
623
+ tres: Vn,
624
+ cuatro: jn
625
+ };
626
+ function Pn() {
627
+ return /* @__PURE__ */ p("div", { className: q.container, children: [
628
+ /* @__PURE__ */ o("div", { className: `${q.dash} ${q.uno}` }),
629
+ /* @__PURE__ */ o("div", { className: `${q.dash} ${q.dos}` }),
630
+ /* @__PURE__ */ o("div", { className: `${q.dash} ${q.tres}` }),
631
+ /* @__PURE__ */ o("div", { className: `${q.dash} ${q.cuatro}` })
632
+ ] });
633
+ }
634
+ function Un({ handleUpdate: e }) {
635
+ var j, T, P, F, L, z, U, R, W, Q, K, Z, X, Y, tt, xt, dt, bt, ut, mt;
636
+ const r = d(($) => $.configuration), t = d(($) => $.persist), { address: n } = St(), { address: s } = _t(), { primaryWallet: x } = zt(), { getWallet: a } = Mt({}), u = d(($) => $.setPersist), h = d(($) => $.customWallet), l = d(($) => $.customFee), y = d(($) => $.broadCastMode), f = d(($) => $.evmGas), v = d(($) => $.evmSpeed), B = d(($) => $.slippage), C = d(($) => $.option), _ = d(($) => $.gasless), i = d(($) => $.direct), m = d(($) => $.maxAccounts), { data: c } = pe(), b = ["routesTxn", n, t == null ? void 0 : t.fromChain, t == null ? void 0 : t.toChain, t == null ? void 0 : t.fromCoin, t == null ? void 0 : t.toCoin, (t == null ? void 0 : t.amount) || ((j = t == null ? void 0 : t.route) == null ? void 0 : j.inputAmountDisplay) || 0, x == null ? void 0 : x.address, s, h, c == null ? void 0 : c.bech32Address, l, f, v, B, y, C.value, "", _, i, m];
637
+ let S = (y === "Priority Fee" || y === "Both") && (l != null && l.length) ? l : C.value, I = (y === "Jito Tip" || y === "Both") && (l != null && l.length) ? l : C.value, N = f != null && f.length ? f : v.value;
638
+ const k = ((T = t == null ? void 0 : t.fromChain) == null ? void 0 : T.networkType) === "sol" ? y === "Priority Fee" ? `&solanaPriorityFee=${S}` : y === "Jito Tip" ? `&solanaJitoTip=${I}` : `&solanaPriorityFee=${S}&solanaJitoTip=${I}` : ((P = t == null ? void 0 : t.fromChain) == null ? void 0 : P.networkType) === "evm" ? `&evmPriorityFee=${N}` : "", { routes: w, routesData: g } = ke({
639
+ enabled: !0,
640
+ dependency: b,
641
+ payload: [
642
+ ((F = t == null ? void 0 : t.fromChain) == null ? void 0 : F.networkType) === "cosmos" ? Dt(c == null ? void 0 : c.bech32Address, (z = (L = t == null ? void 0 : t.fromChain) == null ? void 0 : L.chainInfo) == null ? void 0 : z.bech32Config.bech32PrefixAccAddr) : ((U = t == null ? void 0 : t.route) == null ? void 0 : U.userWalletAddress) || ((R = a(t == null ? void 0 : t.fromChain)) == null ? void 0 : R.address) || "",
643
+ t == null ? void 0 : t.fromChain,
644
+ t == null ? void 0 : t.toChain,
645
+ t == null ? void 0 : t.fromCoin,
646
+ t == null ? void 0 : t.toCoin,
647
+ (t == null ? void 0 : t.amount) || ((W = t == null ? void 0 : t.route) == null ? void 0 : W.inputAmountDisplay) || 0,
648
+ Number(B) * 100,
649
+ (h == null ? void 0 : h.length) > 30 ? ((Q = t == null ? void 0 : t.route) == null ? void 0 : Q.recipient) || ((K = a({})) == null ? void 0 : K.address) || "" : ((Z = t == null ? void 0 : t.toChain) == null ? void 0 : Z.networkType) === "cosmos" ? Dt(c == null ? void 0 : c.bech32Address, (Y = (X = t == null ? void 0 : t.toChain) == null ? void 0 : X.chainInfo) == null ? void 0 : Y.bech32Config.bech32PrefixAccAddr) : ((tt = t == null ? void 0 : t.route) == null ? void 0 : tt.recipient) || ((xt = a(t == null ? void 0 : t.toChain)) == null ? void 0 : xt.address) || "",
650
+ k,
651
+ 1,
652
+ _
653
+ ]
654
+ });
655
+ let A = (g == null ? void 0 : g.outputAmountDisplay) || "";
656
+ async function D() {
657
+ if (t.isQuoteTimer === !1) {
658
+ let $ = await w.refetch();
659
+ $.status === "success" && $.data.status === "success" && u({
660
+ ...d.getState().persist,
661
+ isQuoteTimer: !0
662
+ });
663
+ }
664
+ }
665
+ M(() => {
666
+ D();
667
+ }, [t.isQuoteTimer]);
668
+ function G() {
669
+ e(), u({
670
+ stepData: {},
671
+ quote: "enable",
672
+ isTimerStarted: !1,
673
+ routeId: (g == null ? void 0 : g.routeId) || "",
674
+ route: g,
675
+ toChain: (t == null ? void 0 : t.toChain) || {},
676
+ toCoin: (t == null ? void 0 : t.toCoin) || {},
677
+ fromChain: (t == null ? void 0 : t.fromChain) || {},
678
+ fromCoin: (t == null ? void 0 : t.fromCoin) || {},
679
+ amount: t == null ? void 0 : t.amount,
680
+ openAt: (/* @__PURE__ */ new Date()).getTime(),
681
+ nextTx: null,
682
+ startTime: (/* @__PURE__ */ new Date()).getTime(),
683
+ showAcceptQuote: !1,
684
+ loading: !0
685
+ });
686
+ }
687
+ return /* @__PURE__ */ p("div", { className: "bw-w-full bw-absolute bw-border-t bw-border-border-primary bw-pt-3 bw-bottom-0 bw-flex bw-flex-col bw-justify-center bw-items-center", children: [
688
+ /* @__PURE__ */ o("p", { className: "bw-text-text-primary bw-text-lg bw-font-semibold", children: "Quote Expired!" }),
689
+ /* @__PURE__ */ o("p", { className: "bw-text-text-secondary bw-text-sm bw-font-medium", children: "Please accept the new quote, or go back to select manually" }),
690
+ /* @__PURE__ */ p("div", { className: "bw-w-full bw-mt-4 bw-px-2 bw-flex bw-items-center ba-gap-x-2 bw-justify-between", children: [
691
+ /* @__PURE__ */ p("div", { children: [
692
+ w.isLoading || w.isFetching ? /* @__PURE__ */ o(yt, { className: "bw-bg-background-secondary bw-mb-1 bw-rounded-lg bw-h-[20px] bw-w-[150px] bw-min-h-[20px]", variant: "rectangular", animation: "wave", height: 20, width: 100 }) : /* @__PURE__ */ p("p", { className: "bw-text-text-lg bw-font-bold bw-text-text-primary", children: [
693
+ /* @__PURE__ */ o(ft, { value: A == null ? void 0 : A.toString(), decimal: 12 }),
694
+ " ",
695
+ ((dt = g == null ? void 0 : g.to) == null ? void 0 : dt.symbol) || ""
696
+ ] }),
697
+ w.isLoading || w.isFetching ? /* @__PURE__ */ o(yt, { className: "bw-bg-background-secondary bw-rounded-lg bw-h-[20px] bw-w-[70px] bw-min-h-[20px]", variant: "rectangular", animation: "wave", height: 20, width: 70 }) : /* @__PURE__ */ p("p", { className: "bw-text-text-sm bw-font-normal bw-text-text-secondary", children: [
698
+ "$ ",
699
+ /* @__PURE__ */ o(ft, { value: xe(((g == null ? void 0 : g.outputAmountDisplay) || "") * ((bt = g == null ? void 0 : g.to) == null ? void 0 : bt.lastPrice) || 0, 10), decimal: 12 })
700
+ ] })
701
+ ] }),
702
+ /* @__PURE__ */ o(
703
+ "button",
704
+ {
705
+ disabled: w.isFetching || w.isLoading,
706
+ className: `bw-text-lg bw-flex bw-justify-center bw-items-center bw-gap-x-2 disabled:bw-opacity-60 bw-font-medium bw-h-[50px] bw-w-1/2 bw-rounded-sm ${st.gradientbutton + " bw-p-[3px]"}`,
707
+ onClick: G,
708
+ style: {
709
+ ...r == null ? void 0 : r.gradientStyle,
710
+ boxShadow: r && r.customTheme && ((mt = (ut = r.customTheme) == null ? void 0 : ut.shadow) == null ? void 0 : mt.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
711
+ },
712
+ children: /* @__PURE__ */ o("p", { className: "bw-w-full bw-h-full bw-bg-background-container bw-text-text-primary bw-font-bold bw-flex bw-items-center bw-justify-center", children: "Accept Quote" })
713
+ }
714
+ )
715
+ ] })
716
+ ] });
717
+ }
718
+ function _n({ handleBack: e }) {
719
+ var y, f, v, B, C, _, i, m, c, b;
720
+ const { txnupdate: r } = Lt, t = d((S) => S.persist), n = d((S) => S.configuration), s = t == null ? void 0 : t.stepData.stepType, a = ((t == null ? void 0 : t.txnHashObj) || [])[(y = t == null ? void 0 : t.stepData) == null ? void 0 : y.stepId] || {}, u = s === "bridge" ? (a == null ? void 0 : a.destTxnHash) || (a == null ? void 0 : a.srcTxnHash) : (a == null ? void 0 : a.srcTxnHash) || "", h = (f = t == null ? void 0 : t.historyData) == null ? void 0 : f.finalTxnHash, l = u || h || "";
721
+ return s === "bridge" ? a != null && a.destTxnUrl || (a == null || a.srcTxnUrl) : a != null && a.srcTxnUrl, (v = t == null ? void 0 : t.historyData) == null || v.finalTxnUrl, t.toCoin, t.route, t.toChain, /* @__PURE__ */ p("div", { className: "bw-absolute bw-bg-background-container bw-bottom-0", children: [
722
+ /* @__PURE__ */ p("div", { className: "bw-w-full bw-flex bw-items-center bw-p-3 bw-h-[141px] bw-rounded-xl bw-border bw-border-border-primary", children: [
723
+ /* @__PURE__ */ p("div", { className: "bw-w-[60%]", children: [
724
+ /* @__PURE__ */ o("p", { className: "bw-text-text-secondary bw-mb-2 bw-text-lg bw-font-medium", children: "Transaction Update" }),
725
+ /* @__PURE__ */ p("p", { className: "bw-text-text-primary bw-text-2xl bw-font-bold", children: [
726
+ Ht(((B = t == null ? void 0 : t.statusData) == null ? void 0 : B.outputAmountDisplay) || "", 10),
727
+ " ",
728
+ ((_ = (C = t == null ? void 0 : t.statusData) == null ? void 0 : C.outputToken) == null ? void 0 : _.symbol) || "",
729
+ " ",
730
+ /* @__PURE__ */ o("br", {})
731
+ ] }),
732
+ /* @__PURE__ */ p("p", { className: "bw-text-text-secondary bw-mb-2 bw-text-sm bw-font-normal", children: [
733
+ "Received on ",
734
+ t.toChain.name,
735
+ " chain",
736
+ " "
737
+ ] }),
738
+ /* @__PURE__ */ p("div", { className: "bw-text-text-secondary bw-flex bw-items-center bw-gap-x-1 bw-mb-2 bw-text-sm bw-font-medium", children: [
739
+ `Txn Id:${l ? `${l.substring(0, 5)}...${l.substring(
740
+ l.length - 5,
741
+ l.length
742
+ )}` : ""}`,
743
+ /* @__PURE__ */ o("div", { className: "bw-cursor-pointer ", children: /* @__PURE__ */ o(Tt, { txnHash: l, children: /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(Et, { fill: "var(--tw-text-secondary)" }) }) }) })
744
+ ] })
745
+ ] }),
746
+ /* @__PURE__ */ o("div", { className: "bw-w-[40%] bw-flex bw-items-center bw-justify-center", children: /* @__PURE__ */ o("img", { src: r, width: 108, height: 100, alt: "img" }) })
747
+ ] }),
748
+ /* @__PURE__ */ p("p", { className: "bw-text-sm bw-text-center bw-text-text-secondary bw-font-normal bw-mt-3", children: [
749
+ "Due to liquidity error on providers end your",
750
+ " ",
751
+ /* @__PURE__ */ p("b", { className: "bw-text-text-primary", children: [
752
+ "receiving token has been changed to",
753
+ " ",
754
+ ((m = (i = t == null ? void 0 : t.statusData) == null ? void 0 : i.outputToken) == null ? void 0 : m.symbol) || "",
755
+ " on",
756
+ " ",
757
+ (b = (c = t == null ? void 0 : t.statusData) == null ? void 0 : c.outputToken) == null ? void 0 : b.blockchain
758
+ ] })
759
+ ] }),
760
+ /* @__PURE__ */ o(
761
+ "button",
762
+ {
763
+ onClick: e,
764
+ style: { ...n == null ? void 0 : n.gradientStyle },
765
+ className: `bw-w-full ${st.gradientbutton} bw-rounded-sm bw-h-[50px] bw-p-[3px] bw-mt-3 bw-border-0 bw-relative bw-z-0 disabled:bw-opacity-50 bw-text-2xl bw-font-bold bw-text-text-primary`,
766
+ children: /* @__PURE__ */ o(
767
+ "div",
768
+ {
769
+ onClick: e,
770
+ className: "bw-rounded-sm bw-bg-background-container bw-flex bw-items-center bw-justify-center b-w-full bw-h-full",
771
+ children: "Start Again"
772
+ }
773
+ )
774
+ }
775
+ )
776
+ ] });
777
+ }
778
+ function Vt({ handleBack: e, errorText: r }) {
779
+ const t = d((n) => n.configuration);
780
+ return /* @__PURE__ */ p(H, { children: [
781
+ /* @__PURE__ */ o(Qt, { errorText: r, heading: "Transaction Expired" }),
782
+ /* @__PURE__ */ o("button", { onClick: e, style: { ...t == null ? void 0 : t.gradientStyle }, className: `bw-w-full ${st.gradientbutton} bw-rounded-sm bw-h-[50px] bw-p-[3px] bw-border-0 bw-relative bw-z-0 disabled:bw-opacity-50 bw-text-2xl bw-font-bold bw-text-text-primary`, children: /* @__PURE__ */ o("div", { onClick: e, className: "bw-rounded-sm bw-bg-background-container bw-flex bw-items-center bw-justify-center b-w-full bw-h-full", children: "Start a New Transaction" }) })
783
+ ] });
784
+ }
785
+ function Gn({ fill: e, stroke: r }) {
786
+ return /* @__PURE__ */ p(
787
+ "svg",
788
+ {
789
+ width: "113",
790
+ height: "62",
791
+ viewBox: "0 0 113 62",
792
+ fill: "none",
793
+ xmlns: "http://www.w3.org/2000/svg",
794
+ children: [
795
+ /* @__PURE__ */ o(
796
+ "rect",
797
+ {
798
+ x: "8.4375",
799
+ y: "24.9023",
800
+ width: "78.9692",
801
+ height: "36.4567",
802
+ rx: "9.5",
803
+ fill: e,
804
+ stroke: r
805
+ }
806
+ ),
807
+ /* @__PURE__ */ o(
808
+ "rect",
809
+ {
810
+ x: "15.5742",
811
+ y: "32.5957",
812
+ width: "42.7954",
813
+ height: "14.5366",
814
+ rx: "4",
815
+ fill: r
816
+ }
817
+ ),
818
+ /* @__PURE__ */ o(
819
+ "rect",
820
+ {
821
+ x: "38.8398",
822
+ y: "50.0684",
823
+ width: "42.7954",
824
+ height: "6.99623",
825
+ rx: "3.49811",
826
+ fill: r
827
+ }
828
+ ),
829
+ /* @__PURE__ */ o(
830
+ "rect",
831
+ {
832
+ x: "1.25",
833
+ y: "19.043",
834
+ width: "15.3647",
835
+ height: "15.2004",
836
+ rx: "4.5",
837
+ fill: e,
838
+ stroke: r
839
+ }
840
+ ),
841
+ /* @__PURE__ */ p("g", { filter: "url(#filter0_d_8010_16559)", children: [
842
+ /* @__PURE__ */ o(
843
+ "path",
844
+ {
845
+ d: "M87.8168 13.1918L101.18 36.3366C102.795 39.134 100.776 42.6307 97.5456 42.6307H70.8202C67.5901 42.6307 65.5713 39.134 67.1864 36.3366L80.549 13.1918C82.1641 10.3944 86.2018 10.3944 87.8168 13.1918Z",
846
+ fill: e,
847
+ stroke: r
848
+ }
849
+ ),
850
+ /* @__PURE__ */ o(
851
+ "path",
852
+ {
853
+ d: "M85.6358 19.2969V26.2041C85.6358 26.9367 85.5995 27.6572 85.5271 28.3656C85.4546 29.066 85.362 29.8107 85.2493 30.5996H83.2206C83.1079 29.8107 83.0154 29.066 82.9429 28.3656C82.8705 27.6572 82.8342 26.9367 82.8342 26.2041V19.2969H85.6358ZM82.3633 35.1159C82.3633 34.8663 82.4076 34.6288 82.4961 34.4034C82.5927 34.178 82.7215 33.9848 82.8825 33.8238C83.0516 33.6628 83.2488 33.534 83.4742 33.4374C83.6996 33.3408 83.9412 33.2925 84.1988 33.2925C84.4483 33.2925 84.6858 33.3408 84.9112 33.4374C85.1366 33.534 85.3298 33.6628 85.4909 33.8238C85.6599 33.9848 85.7927 34.178 85.8893 34.4034C85.986 34.6288 86.0343 34.8663 86.0343 35.1159C86.0343 35.3735 85.986 35.615 85.8893 35.8404C85.7927 36.0578 85.6599 36.247 85.4909 36.408C85.3298 36.569 85.1366 36.6938 84.9112 36.7823C84.6858 36.8789 84.4483 36.9272 84.1988 36.9272C83.9412 36.9272 83.6996 36.8789 83.4742 36.7823C83.2488 36.6938 83.0516 36.569 82.8825 36.408C82.7215 36.247 82.5927 36.0578 82.4961 35.8404C82.4076 35.615 82.3633 35.3735 82.3633 35.1159Z",
854
+ fill: r
855
+ }
856
+ )
857
+ ] }),
858
+ /* @__PURE__ */ o("defs", { children: /* @__PURE__ */ p(
859
+ "filter",
860
+ {
861
+ id: "filter0_d_8010_16559",
862
+ x: "56.1172",
863
+ y: "0.59375",
864
+ width: "56.1328",
865
+ height: "52.5371",
866
+ filterUnits: "userSpaceOnUse",
867
+ "color-interpolation-filters": "sRGB",
868
+ children: [
869
+ /* @__PURE__ */ o("feFlood", { "flood-opacity": "0", result: "BackgroundImageFix" }),
870
+ /* @__PURE__ */ o(
871
+ "feColorMatrix",
872
+ {
873
+ in: "SourceAlpha",
874
+ type: "matrix",
875
+ values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
876
+ result: "hardAlpha"
877
+ }
878
+ ),
879
+ /* @__PURE__ */ o("feOffset", {}),
880
+ /* @__PURE__ */ o("feGaussianBlur", { stdDeviation: "5" }),
881
+ /* @__PURE__ */ o("feComposite", { in2: "hardAlpha", operator: "out" }),
882
+ /* @__PURE__ */ o(
883
+ "feColorMatrix",
884
+ {
885
+ type: "matrix",
886
+ values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
887
+ }
888
+ ),
889
+ /* @__PURE__ */ o(
890
+ "feBlend",
891
+ {
892
+ mode: "normal",
893
+ in2: "BackgroundImageFix",
894
+ result: "effect1_dropShadow_8010_16559"
895
+ }
896
+ ),
897
+ /* @__PURE__ */ o(
898
+ "feBlend",
899
+ {
900
+ mode: "normal",
901
+ in: "SourceGraphic",
902
+ in2: "effect1_dropShadow_8010_16559",
903
+ result: "shape"
904
+ }
905
+ )
906
+ ]
907
+ }
908
+ ) })
909
+ ]
910
+ }
911
+ );
912
+ }
913
+ function jt({ text: e }) {
914
+ return /* @__PURE__ */ p("div", { style: { wordBreak: "break-all" }, className: "bw-text-text-error bw-mb-12 bw-w-full bw-text-sm bw-flex bw-flex-col bw-justify-center bw-items-center bw-text-center bw-text-text-redtext", children: [
915
+ /* @__PURE__ */ o(Gn, { fill: "var(--tw-background-networkcard)", stroke: "var(--tw-border-primary)" }),
916
+ /* @__PURE__ */ o("p", { className: "bw-text-2xl bw-mt-3 bw-text-text-primary", children: e }),
917
+ /* @__PURE__ */ o("p", { className: "bw-text-sm bw-mt-2 bw-font-normal bw-text-text-secondary", children: "Please start your transaction again" })
918
+ ] });
919
+ }
920
+ function Ct(e) {
921
+ var B, C, _;
922
+ const r = d((i) => i.setPersist), t = d((i) => i.persist), n = Gt(), { setErrorMessage: s } = J(ct), x = pt(!1), a = t.isHistory, u = !rt.isEmpty((C = (B = d.getState()) == null ? void 0 : B.persist) == null ? void 0 : C.historyData);
923
+ M(() => (x.current = !0, () => {
924
+ x.current = !1;
925
+ }), []);
926
+ const h = Ne({
927
+ mutationKey: "nexttx",
928
+ mutationFn: async ({ id: i, routeId: m }) => await Se({ stepId: i, routeId: m }),
929
+ refetchOnWindowFocus: !1,
930
+ refetchOnMount: !1,
931
+ cacheTime: 1e3,
932
+ onSuccess: (i, m) => {
933
+ var c, b, S, I, N, k, w, g, A, D, G;
934
+ if ((S = (b = (c = i == null ? void 0 : i.data) == null ? void 0 : c.txnData) == null ? void 0 : b.txnSol) != null && S.data) {
935
+ let j = We(i.data.txnData.txnSol.data);
936
+ const T = ge.deserialize(j);
937
+ T.message.staticAccountKeys.length + (((I = T.message.addressTableLookups) == null ? void 0 : I.length) || 0);
938
+ }
939
+ x.current && (i.status == "error" ? s(i) : s({ error: "" }), n.emit(it.TransactionData, {
940
+ ...i
941
+ }), y(i), r({
942
+ ...(N = d.getState()) == null ? void 0 : N.persist,
943
+ loading: !1,
944
+ txnEvm: (w = (k = i == null ? void 0 : i.data) == null ? void 0 : k.txnData) == null ? void 0 : w.txnEvm,
945
+ nextTx: i,
946
+ hash: null,
947
+ txnType: ((A = (g = i == null ? void 0 : i.data) == null ? void 0 : g.txnData) == null ? void 0 : A.txnType) || null,
948
+ gasless: (G = (D = i == null ? void 0 : i.data) == null ? void 0 : D.txnData) == null ? void 0 : G.gasless
949
+ }));
950
+ },
951
+ onError: (i) => {
952
+ var c;
953
+ let m = i.details || i.message || "";
954
+ s({ error: m }), n.emit(it.TransactionData, {
955
+ error: m,
956
+ routeId: (t == null ? void 0 : t.routeId) || "",
957
+ stepId: ((c = t == null ? void 0 : t.stepData) == null ? void 0 : c.stepId) || ""
958
+ });
959
+ }
960
+ });
961
+ async function l(i, m, c) {
962
+ r({
963
+ ...d.getState().persist,
964
+ loading: !0
965
+ });
966
+ try {
967
+ await h.mutateAsync({
968
+ id: i == null ? void 0 : i.stepId,
969
+ routeId: m
970
+ }), r({
971
+ ...d.getState().persist,
972
+ stepData: i
973
+ });
974
+ } catch {
975
+ r({
976
+ ...d.getState().persist,
977
+ loading: !1
978
+ });
979
+ }
980
+ }
981
+ function y(i) {
982
+ var m, c, b, S, I, N, k;
983
+ if (((m = i == null ? void 0 : i.data) == null ? void 0 : m.skipTxn) === !0) {
984
+ let w = ((S = (b = (c = v == null ? void 0 : v.data) == null ? void 0 : c.data) == null ? void 0 : b.steps) == null ? void 0 : S[t.allSteps.currentStep + 1]) || ((N = (I = t == null ? void 0 : t.allSteps) == null ? void 0 : I.steps) == null ? void 0 : N[t.allSteps.currentStep + 1]) || {};
985
+ !rt.isEmpty(w) && ((k = i == null ? void 0 : i.data) != null && k.routeId) && setTimeout(() => {
986
+ var g;
987
+ f(), l(w, (g = i == null ? void 0 : i.data) == null ? void 0 : g.routeId);
988
+ }, 0);
989
+ } else
990
+ return;
991
+ }
992
+ function f() {
993
+ var i;
994
+ r({
995
+ ...d.getState().persist,
996
+ loading: !0,
997
+ allSteps: {
998
+ ...d.getState().persist.allSteps,
999
+ steps: ((i = t == null ? void 0 : t.allSteps) == null ? void 0 : i.steps) || [],
1000
+ currentStep: t.allSteps.currentStep + 1,
1001
+ type: "preText"
1002
+ }
1003
+ });
1004
+ }
1005
+ const v = Ae({
1006
+ queryKey: ["txnbody", t == null ? void 0 : t.routeId],
1007
+ queryFn: async () => await Te({ routeId: t == null ? void 0 : t.routeId }),
1008
+ refetchOnWindowFocus: !1,
1009
+ refetchOnMount: !1,
1010
+ enabled: !!((_ = t.routeId) != null && _.length && !t.nextTx && !a)
1011
+ });
1012
+ return M(() => {
1013
+ var i, m, c, b, S, I, N;
1014
+ if (v.data && !(t != null && t.nextTx) && e) {
1015
+ let k = v.data;
1016
+ k.status == "error" ? (s(k), n.emit(it.TransactionSteps, {
1017
+ ...k
1018
+ })) : (n.emit(it.TransactionSteps, {
1019
+ routeId: ((i = k == null ? void 0 : k.data) == null ? void 0 : i.routeId) || "",
1020
+ steps: ((m = k == null ? void 0 : k.data) == null ? void 0 : m.steps) || [],
1021
+ numOfSteps: ((b = (c = k == null ? void 0 : k.data) == null ? void 0 : c.steps) == null ? void 0 : b.length) || 0
1022
+ }), s({ error: "" })), typeof (k == null ? void 0 : k.data) < "u" && !u && (l((S = k == null ? void 0 : k.data) == null ? void 0 : S.steps[0], (I = k == null ? void 0 : k.data) == null ? void 0 : I.routeId), setTimeout(() => {
1023
+ var w, g, A;
1024
+ r({
1025
+ ...d.getState().persist,
1026
+ stepData: (w = k == null ? void 0 : k.data) == null ? void 0 : w.steps[0]
1027
+ }), r({
1028
+ ...d.getState().persist,
1029
+ allSteps: {
1030
+ steps: ((g = k == null ? void 0 : k.data) == null ? void 0 : g.steps) || ((A = t == null ? void 0 : t.allSteps) == null ? void 0 : A.steps) || [],
1031
+ currentStep: 0,
1032
+ type: "preText"
1033
+ }
1034
+ });
1035
+ }, 1200), ((N = k == null ? void 0 : k.data) == null ? void 0 : N.status) == "error" && s({ ...k.data }));
1036
+ }
1037
+ }, [v.data, t == null ? void 0 : t.nextTx, u, e]), M(() => {
1038
+ if (v.error) {
1039
+ let i = v.error, m = i.details || i.message || "";
1040
+ n.emit(it.TransactionSteps, {
1041
+ error: m,
1042
+ routeId: (t == null ? void 0 : t.routeId) || ""
1043
+ }), s({ error: m });
1044
+ }
1045
+ }, [v.error]), M(() => {
1046
+ var i;
1047
+ t.routeId && r({ ...(i = d.getState()) == null ? void 0 : i.persist, isSuccess: !0 });
1048
+ }, [t.routeId]), { nextTx: h, callNextTx: l, handleSkipTxn: y, setNextStep: f, txnBody: v };
1049
+ }
1050
+ function qt() {
1051
+ var C, _;
1052
+ const e = d((i) => i.persist), r = d((i) => i.setPersist), { registerError: t } = de(), { handleErrorMessage: n, setErrorMessage: s } = J(ct), x = (e == null ? void 0 : e.showAcceptQuote) && !e.hash && ((C = e == null ? void 0 : e.allSteps) == null ? void 0 : C.currentStep) == 0 && ((_ = e == null ? void 0 : e.nextTx) == null ? void 0 : _.status) === "success", { txnBody: a, callNextTx: u } = Ct();
1053
+ function h(i) {
1054
+ var c, b, S, I, N, k, w, g, A;
1055
+ let m = [...((b = (c = d.getState()) == null ? void 0 : c.persist) == null ? void 0 : b.stepStatus) || []];
1056
+ return m.length ? m[(S = e.allSteps) == null ? void 0 : S.currentStep] = {
1057
+ ...m[(I = e.allSteps) == null ? void 0 : I.currentStep],
1058
+ type: (N = e.allSteps) == null ? void 0 : N.type
1059
+ } : m[0] = {
1060
+ ...m[(k = e.allSteps) == null ? void 0 : k.currentStep],
1061
+ type: (w = e.allSteps) == null ? void 0 : w.type
1062
+ }, i && (m[(g = e.allSteps) == null ? void 0 : g.currentStep] = {
1063
+ ...m[(A = e.allSteps) == null ? void 0 : A.currentStep],
1064
+ ...i
1065
+ }), m;
1066
+ }
1067
+ function l() {
1068
+ r({
1069
+ ...d.getState().persist,
1070
+ stepData: {},
1071
+ allSteps: {
1072
+ steps: null,
1073
+ currentStep: 0
1074
+ }
1075
+ });
1076
+ }
1077
+ function y() {
1078
+ s({ error: "" });
1079
+ }
1080
+ function f(i, m) {
1081
+ var c, b;
1082
+ t({
1083
+ module: i,
1084
+ routeId: (e == null ? void 0 : e.routeId) || "",
1085
+ stepId: ((c = e == null ? void 0 : e.stepData) == null ? void 0 : c.stepId) || "",
1086
+ error: m.error,
1087
+ userWalletAddress: (b = e == null ? void 0 : e.route) == null ? void 0 : b.userWalletAddress
1088
+ });
1089
+ }
1090
+ function v(i) {
1091
+ var b, S, I, N, k, w, g, A, D, G, j, T, P, F, L, z, U, R;
1092
+ let c = { ...((I = (S = (b = d) == null ? void 0 : b.getState()) == null ? void 0 : S.persist) == null ? void 0 : I.txnHashObj) || {} };
1093
+ rt.isEmpty(c[(N = i == null ? void 0 : i.data) == null ? void 0 : N.stepId]) ? c[(j = i == null ? void 0 : i.data) == null ? void 0 : j.stepId] = {
1094
+ srcTxnUrl: ((T = i == null ? void 0 : i.data) == null ? void 0 : T.srcTxnUrl) || "",
1095
+ stepId: ((P = i == null ? void 0 : i.data) == null ? void 0 : P.stepId) || "",
1096
+ srcTxnHash: ((F = i == null ? void 0 : i.data) == null ? void 0 : F.srcTxnHash) || "",
1097
+ destTxnUrl: ((L = i == null ? void 0 : i.data) == null ? void 0 : L.destTxnUrl) || "",
1098
+ destTxnHash: ((z = i == null ? void 0 : i.data) == null ? void 0 : z.destTxnHash) || ""
1099
+ } : c[(k = i == null ? void 0 : i.data) == null ? void 0 : k.stepId] = {
1100
+ ...c[(w = i == null ? void 0 : i.data) == null ? void 0 : w.stepId],
1101
+ destTxnHash: ((g = i == null ? void 0 : i.data) == null ? void 0 : g.destTxnHash) || (i == null ? void 0 : i.destTxnHash) || "",
1102
+ destTxnUrl: ((A = i == null ? void 0 : i.data) == null ? void 0 : A.destTxnUrl) || (i == null ? void 0 : i.destTxnUrl) || "",
1103
+ srcTxnUrl: ((D = i == null ? void 0 : i.data) == null ? void 0 : D.srcTxnUrl) || (i == null ? void 0 : i.srcTxnUrl) || "",
1104
+ srcTxnHash: ((G = i == null ? void 0 : i.data) == null ? void 0 : G.srcTxnHash) || (i == null ? void 0 : i.srcTxnHash) || ""
1105
+ }, r({
1106
+ ...(R = (U = d) == null ? void 0 : U.getState()) == null ? void 0 : R.persist,
1107
+ txnHashObj: c
1108
+ });
1109
+ }
1110
+ function B() {
1111
+ var i, m, c, b;
1112
+ r({
1113
+ ...(i = d.getState()) == null ? void 0 : i.persist,
1114
+ stepStatus: h({ status: "loadingText" }),
1115
+ isTryAgain: !0,
1116
+ loading: !0,
1117
+ hash: null
1118
+ }), n(!1), y(), u(((m = e == null ? void 0 : e.allSteps) == null ? void 0 : m.steps[e.allSteps.currentStep]) || {}, (e == null ? void 0 : e.routeId) || ((b = (c = a.data) == null ? void 0 : c.data) == null ? void 0 : b.routeId), !0);
1119
+ }
1120
+ return { handleStepStatus: h, handleUpdate: l, handleErrorReset: y, isShowNewQuote: x, handleTxnObj: v, callRegisterError: f, handleTryAgain: B };
1121
+ }
1122
+ const Jt = oe(new AbortController());
1123
+ function h0({ children: e }) {
1124
+ const r = pt(new AbortController());
1125
+ return M(() => (r.current = new AbortController(), () => {
1126
+ var t;
1127
+ (t = r.current) == null || t.abort();
1128
+ }), []), /* @__PURE__ */ o(Jt.Provider, { value: r.current, children: e });
1129
+ }
1130
+ function Kt(e) {
1131
+ return typeof e != "string" || e.length === 0 ? e : e.charAt(0).toUpperCase() + e.slice(1).toLowerCase();
1132
+ }
1133
+ function Mn({ enabled: e }) {
1134
+ const [r, t] = ot(), { connector: n, chainId: s, chain: x, isConnected: a } = St(), u = be(), [h, l] = ot(!1);
1135
+ async function y() {
1136
+ try {
1137
+ l(!0);
1138
+ let f = await Ve(u, { connector: n, chainId: s });
1139
+ t(f), l(!1);
1140
+ } catch {
1141
+ l(!1);
1142
+ }
1143
+ }
1144
+ return M(() => {
1145
+ e && y();
1146
+ }, [u, n, s, x, e, a]), { walletClient: r, isLoading: h, isAbs: n && n.id === "xyz.abs.privy" };
1147
+ }
1148
+ function Ln() {
1149
+ var N, k;
1150
+ const e = d((w) => w.setPersist), r = d((w) => w.persist), { callRegisterError: t, handleTxnObj: n, handleStepStatus: s } = qt(), { errorMessage: x, setErrorMessage: a } = J(ct), u = J(Jt), { walletClient: h, isLoading: l, isAbs: y } = Mn({ enabled: ((N = r == null ? void 0 : r.fromChain) == null ? void 0 : N.networkType) === "evm" }), { primaryWallet: f } = zt(), { setNextStep: v, callNextTx: B } = Ct(), C = Gt(), { wallet: _ } = _t(), i = pt(), { data: m } = Rt({
1151
+ chainId: [(k = r == null ? void 0 : r.fromChain) == null ? void 0 : k.chainId],
1152
+ multiChain: !0
1153
+ });
1154
+ M(() => {
1155
+ e(l ? { ...d.getState().persist, loading: !0 } : { ...d.getState().persist, loading: !1 });
1156
+ }, [l]);
1157
+ function c(w) {
1158
+ var A;
1159
+ if (!{
1160
+ sol: f,
1161
+ evm: h,
1162
+ cosmos: m == null ? void 0 : m[(A = r == null ? void 0 : r.fromChain) == null ? void 0 : A.chainId],
1163
+ tron: _,
1164
+ bitcoin: f
1165
+ }[w])
1166
+ throw new Error("Please connect your wallet");
1167
+ }
1168
+ async function b() {
1169
+ var w, g, A, D, G, j;
1170
+ try {
1171
+ let T, P;
1172
+ c((w = r == null ? void 0 : r.fromChain) == null ? void 0 : w.networkType), ((g = r == null ? void 0 : r.fromChain) == null ? void 0 : g.networkType) == "sol" && (P = await f.connector.getSigner());
1173
+ let F = (r == null ? void 0 : r.nextTx) || {};
1174
+ y && ((G = (D = (A = F == null ? void 0 : F.data) == null ? void 0 : A.txnData) == null ? void 0 : D.txnEvm) != null && G.gasPrice) && delete F.data.txnData.txnEvm.gasPrice, T = await ve({
1175
+ txDataResponse: F,
1176
+ quote: r.route,
1177
+ step: r.stepData,
1178
+ provider: h || null,
1179
+ cosmosClient: (m == null ? void 0 : m[(j = r == null ? void 0 : r.fromChain) == null ? void 0 : j.chainId]) || null,
1180
+ walletAdapter: P || null,
1181
+ signTransaction: (P == null ? void 0 : P.signTransaction) || null,
1182
+ tronAdapter: _,
1183
+ bitcoinWallet: f
1184
+ }), typeof T == "object" && (T = T.signature), e({
1185
+ ...d.getState().persist,
1186
+ hash: T
1187
+ }), S(T);
1188
+ } catch (T) {
1189
+ const P = gt(T.message || T.details || T), F = T.message || T.details || T;
1190
+ P && (F != null && F.length) && i.current && t("/wallet error", {
1191
+ error: F
1192
+ }), a({ error: F, type: "wallet" });
1193
+ }
1194
+ }
1195
+ async function S(w) {
1196
+ var g, A;
1197
+ try {
1198
+ let D = await Ee({ routeId: r.routeId, stepId: (g = r == null ? void 0 : r.stepData) == null ? void 0 : g.stepId, txnHash: w }), G = await Ce({
1199
+ routeId: r.routeId,
1200
+ stepId: (A = r == null ? void 0 : r.stepData) == null ? void 0 : A.stepId,
1201
+ txnHash: w,
1202
+ signal: u.signal,
1203
+ pollingIntervalMs: 2e3,
1204
+ onStatusUpdate: (j, T) => {
1205
+ var F, L, z, U, R, W, Q;
1206
+ e({
1207
+ ...(L = (F = d) == null ? void 0 : F.getState()) == null ? void 0 : L.persist,
1208
+ stepStatus: s({
1209
+ status: "pending"
1210
+ })
1211
+ });
1212
+ let P = ((z = r == null ? void 0 : r.allSteps) == null ? void 0 : z.currentStep) === ((R = (U = r == null ? void 0 : r.allSteps) == null ? void 0 : U.steps) == null ? void 0 : R.length) - 1;
1213
+ C.emit(it.TransactionStatus, {
1214
+ ...T,
1215
+ status: !P && ((W = T == null ? void 0 : T.data) == null ? void 0 : W.status) === "success" ? "in-progress" : (Q = T == null ? void 0 : T.data) == null ? void 0 : Q.status,
1216
+ isLastStep: P
1217
+ }), T && I(T);
1218
+ }
1219
+ });
1220
+ } catch (D) {
1221
+ const G = gt(D.message || D.details || D), j = D.message || D.details || D;
1222
+ G && (j != null && j.length) && i.current && t("/wallet error", {
1223
+ error: j
1224
+ }), a({ error: j, type: "wallet" });
1225
+ }
1226
+ }
1227
+ function I(w) {
1228
+ var g, A, D, G, j, T, P, F, L, z, U, R, W, Q, K, Z, X, Y;
1229
+ if ((g = w == null ? void 0 : w.data) != null && g.status && i.current && e({
1230
+ ...(D = (A = d) == null ? void 0 : A.getState()) == null ? void 0 : D.persist,
1231
+ statusData: w == null ? void 0 : w.data,
1232
+ stepStatus: s({
1233
+ status: ((G = w == null ? void 0 : w.data) == null ? void 0 : G.status) == "in-progress" ? "pending" : (j = w == null ? void 0 : w.data) == null ? void 0 : j.status
1234
+ })
1235
+ }), n(w), w.status == "error" && a(w), ((T = w.data) == null ? void 0 : T.status) == "success") {
1236
+ let tt = r.allSteps.steps[r.allSteps.currentStep + 1];
1237
+ if (a({ error: "" }), e({
1238
+ ...d.getState().persist,
1239
+ stepData: tt || d.getState().persist.stepData
1240
+ }), r.allSteps.currentStep == ((F = (P = r.allSteps) == null ? void 0 : P.steps) == null ? void 0 : F.length) - 1)
1241
+ e({
1242
+ ...d.getState().persist,
1243
+ allSteps: {
1244
+ ...d.getState().persist.allSteps,
1245
+ currentStep: r.allSteps.currentStep + 1,
1246
+ type: "preText"
1247
+ }
1248
+ });
1249
+ else if (r.allSteps.currentStep <= ((z = (L = r.allSteps) == null ? void 0 : L.steps) == null ? void 0 : z.length) - 1)
1250
+ v(), B(r.allSteps.steps[r.allSteps.currentStep + 1], (r == null ? void 0 : r.routeId) || ((R = (U = txnBody.data) == null ? void 0 : U.data) == null ? void 0 : R.routeId));
1251
+ else
1252
+ return;
1253
+ } else ((W = w.data) == null ? void 0 : W.status) == "failed" || (((Q = w.data) == null ? void 0 : Q.status) == "refunded" ? a({ error: `${Kt(((K = r == null ? void 0 : r.stepData) == null ? void 0 : K.stepType) || "")} failed! Tokens have been refunded to the source chain.` }) : ((Z = w.data) == null ? void 0 : Z.status) == "in-progress" && (X = x == null ? void 0 : x.error) != null && X.length && (e({ ...(Y = d.getState()) == null ? void 0 : Y.persist, loading: !0 }), a({ error: "" })));
1254
+ }
1255
+ return M(() => (r.hash && S(r.hash), () => {
1256
+ u.abort();
1257
+ }), []), M(() => (i.current = !0, () => {
1258
+ i.current = !1;
1259
+ }), []), { handleExeTxn: b };
1260
+ }
1261
+ function y0({ setExchange: e, startTimer: r, handleBack: t }) {
1262
+ var T, P, F, L, z, U, R, W, Q, K, Z, X, Y, tt, xt, dt, bt, ut, mt, $, vt, Nt, At;
1263
+ const n = d((E) => E.persist), s = d((E) => E.setPersist), [x, a] = ot(!1), { handleTxnSuccess: u } = J(Wt), { isErrorMessage: h, handleErrorMessage: l, errorMessage: y } = J(ct), { chain: f } = St(), v = n.isHistory, { handleStepStatus: B, handleUpdate: C, handleTryAgain: _, isShowNewQuote: i, callRegisterError: m } = qt(), { handleExeTxn: c } = Ln(), { nextTx: b, handleSkipTxn: S, callNextTx: I, txnBody: N } = Ct(!0), { switchChain: k } = ue({
1264
+ chainId: Number(((P = (T = n == null ? void 0 : n.stepData) == null ? void 0 : T.from) == null ? void 0 : P.chainId) || "0"),
1265
+ throwForSwitchChainNotSupported: !0,
1266
+ onError(E) {
1267
+ gt(E.message) && m("wallet-error-switch", { data: { error: E.message } });
1268
+ }
1269
+ }), w = !rt.isEmpty((L = (F = d.getState()) == null ? void 0 : F.persist) == null ? void 0 : L.historyData);
1270
+ let g = (Q = (W = (z = n == null ? void 0 : n.allSteps) == null ? void 0 : z.steps) == null ? void 0 : W[((U = n.allSteps) == null ? void 0 : U.currentStep) || ((R = n == null ? void 0 : n.allSteps) == null ? void 0 : R.currentStep)]) == null ? void 0 : Q.texts, A = n != null && n.loading ? n.hash ? "process" : "loading" : "pre", D = (K = y == null ? void 0 : y.error) != null && K.length ? y.error : null;
1271
+ M(() => {
1272
+ var E, V, O;
1273
+ w && typeof ((E = n == null ? void 0 : n.historyData) == null ? void 0 : E.currentStepIndex) < "u" && ((V = n == null ? void 0 : n.historyData) == null ? void 0 : V.currentStepStatus) == "not-started" ? I(n == null ? void 0 : n.stepData, n == null ? void 0 : n.routeId) : ((O = n == null ? void 0 : n.historyData) == null ? void 0 : O.currentStepStatus) == "in-progress" && r(!0);
1274
+ }, [w]), M(() => {
1275
+ var E;
1276
+ if (((E = n == null ? void 0 : n.allSteps) == null ? void 0 : E.currentStep) === 0 && b.data) {
1277
+ let V = b.data;
1278
+ s({
1279
+ ...d.getState().persist,
1280
+ isQuoteTimer: !(V.status == "error" || n != null && n.isTryAgain),
1281
+ quote: V.status == "error" || n != null && n.isTryAgain ? "disable" : "enable",
1282
+ quoteStartTime: (/* @__PURE__ */ new Date()).getTime()
1283
+ });
1284
+ } else
1285
+ s({
1286
+ ...d.getState().persist,
1287
+ isQuoteTimer: !1,
1288
+ quote: "disable"
1289
+ });
1290
+ }, [(Z = n == null ? void 0 : n.allSteps) == null ? void 0 : Z.steps, b.data]), M(() => {
1291
+ var E, V;
1292
+ ((E = n.statusData) == null ? void 0 : E.status) == "success" && n.allSteps.currentStep === ((V = n.allSteps.steps) == null ? void 0 : V.length) && (N.isSuccess || n.isSuccess) ? u(!0) : u(!1);
1293
+ }, [n.allSteps, N.isSuccess, n.isSuccess, n == null ? void 0 : n.statusData]), M(() => {
1294
+ var E, V, O, et, nt;
1295
+ (E = y == null ? void 0 : y.error) != null && E.length || ((V = n.statusData) == null ? void 0 : V.status) == "failed" || ((O = n.statusData) == null ? void 0 : O.status) == "partial-success" || ((et = n.statusData) == null ? void 0 : et.status) == "txn-expired" || ((nt = n.statusData) == null ? void 0 : nt.status) == "refunded" ? l(!0) : l(!1);
1296
+ }, [y, n == null ? void 0 : n.statusData]), M(() => {
1297
+ var E, V;
1298
+ !((E = y == null ? void 0 : y.error) != null && E.length) && (n != null && n.hash) && ((V = n == null ? void 0 : n.statusData) == null ? void 0 : V.srcTxnHash) !== (n == null ? void 0 : n.hash) && s({
1299
+ ...d.getState().persist,
1300
+ allSteps: {
1301
+ ...d.getState().persist.allSteps,
1302
+ type: "postText"
1303
+ }
1304
+ });
1305
+ }, [y == null ? void 0 : y.error, n == null ? void 0 : n.hash]), M(() => {
1306
+ var V, O;
1307
+ let E = { ...(V = d.getState()) == null ? void 0 : V.persist };
1308
+ ((O = n == null ? void 0 : n.allSteps) == null ? void 0 : O.steps) !== null && (E = {
1309
+ ...E,
1310
+ stepStatus: B()
1311
+ }, s(E));
1312
+ }, [n.allSteps]), M(() => {
1313
+ var E;
1314
+ rt.isEmpty(n == null ? void 0 : n.allSteps) || n.hash || s({
1315
+ ...d.getState().persist,
1316
+ allSteps: { ...d.getState().persist.allSteps, type: "preText" },
1317
+ loading: !1
1318
+ }), n != null && n.routeId && !v && e(), S(n == null ? void 0 : n.nextTx), ((E = n == null ? void 0 : n.nextTx) == null ? void 0 : E.status) === "error" && (s({
1319
+ ...d.getState().persist,
1320
+ loading: !0
1321
+ }), I(n == null ? void 0 : n.stepData, n == null ? void 0 : n.routeId));
1322
+ }, []), M(() => {
1323
+ var E;
1324
+ h && !x && s({ ...(E = d.getState()) == null ? void 0 : E.persist, loading: !1 });
1325
+ }, [h, x]), M(() => {
1326
+ var E, V, O;
1327
+ (O = (V = (E = d.getState()) == null ? void 0 : E.persist) == null ? void 0 : V.nextTx) != null && O.data && x && (j(), a(!1));
1328
+ }, [(tt = (Y = (X = d.getState()) == null ? void 0 : X.persist) == null ? void 0 : Y.nextTx) == null ? void 0 : tt.data]);
1329
+ function G(E) {
1330
+ a(E);
1331
+ }
1332
+ async function j() {
1333
+ var E, V, O, et, nt, wt;
1334
+ (V = n.allSteps.steps) != null && V[((E = n.allSteps) == null ? void 0 : E.currentStep) || 0] && (s({
1335
+ ...(O = d.getState()) == null ? void 0 : O.persist,
1336
+ loading: !0,
1337
+ isTimerStarted: !0,
1338
+ statusData: null,
1339
+ isQuoteTimer: !1,
1340
+ showAcceptQuote: !1,
1341
+ quote: "disable",
1342
+ startTime: ((wt = (nt = (et = d) == null ? void 0 : et.getState()) == null ? void 0 : nt.persist) == null ? void 0 : wt.startTime) || (/* @__PURE__ */ new Date()).getTime()
1343
+ }), r(!0), c(), s({
1344
+ ...d.getState().persist,
1345
+ allSteps: {
1346
+ ...d.getState().persist.allSteps,
1347
+ type: "loadingText"
1348
+ }
1349
+ }));
1350
+ }
1351
+ return M(() => {
1352
+ var E, V, O, et, nt, wt, It;
1353
+ if ((V = (E = n == null ? void 0 : n.stepData) == null ? void 0 : E.from) != null && V.chainId)
1354
+ Number((et = (O = n == null ? void 0 : n.stepData) == null ? void 0 : O.from) == null ? void 0 : et.chainId) !== (f == null ? void 0 : f.chainId) && ((nt = n == null ? void 0 : n.fromChain) == null ? void 0 : nt.networkType) === "evm" && k({
1355
+ chainId: Number(((It = (wt = n == null ? void 0 : n.stepData) == null ? void 0 : wt.from) == null ? void 0 : It.chainId) || "0")
1356
+ });
1357
+ else return;
1358
+ }, [n == null ? void 0 : n.stepData]), /* @__PURE__ */ p(H, { children: [
1359
+ ((xt = n == null ? void 0 : n.statusData) == null ? void 0 : xt.status) !== "txn-expired" ? /* @__PURE__ */ o("div", { className: `bw-pt-4 bw-h-[80%] bw-mt-2 bw-relative ${i ? "bw-pointer-events-none bw-opacity-60" : ""}`, children: !N.isFetching && !rt.isEmpty(n == null ? void 0 : n.stepData) ? N.isSuccess && N.data || n != null && n.routeId ? (mt = ((dt = n == null ? void 0 : n.allSteps) == null ? void 0 : dt.steps) || ((ut = (bt = N.data) == null ? void 0 : bt.data) == null ? void 0 : ut.steps)) == null ? void 0 : mt.map((E, V, O) => /* @__PURE__ */ p(H, { children: [
1360
+ " ",
1361
+ /* @__PURE__ */ p("div", { className: "bw-flex bw-items-start bw-mb-4 bw-justify-between", children: [
1362
+ /* @__PURE__ */ p("div", { className: "bw-flex bw-relative bw-items-start bw-w-max bw-justify-center bw-gap-x-3", children: [
1363
+ /* @__PURE__ */ o(In, { allSteps: n.allSteps, disableButton: n == null ? void 0 : n.loading, i: V, arr: O }),
1364
+ /* @__PURE__ */ o(mn, { item: E, i: V })
1365
+ ] }),
1366
+ /* @__PURE__ */ o(un, { i: V, item: E })
1367
+ ] })
1368
+ ] })) : /* @__PURE__ */ o(H, {}) : /* @__PURE__ */ o("div", { className: "bw-w-full bw-flex-1 bw-h-full bw-mt-[-5%] bw-flex bw-flex-col bw-justify-center bw-items-center ", children: D ? /* @__PURE__ */ o(jt, { text: "Unable to complete the request!" }) : /* @__PURE__ */ p(H, { children: [
1369
+ /* @__PURE__ */ o("div", { className: "bw-relative bw-pb-4", children: /* @__PURE__ */ o(Pn, {}) }),
1370
+ /* @__PURE__ */ o("p", { className: "bw-text-2xl bw-text-center bw-font-medium bw-text-text-secondary", children: "Initializing Transaction..." })
1371
+ ] }) }) }) : /* @__PURE__ */ o(H, {}),
1372
+ !N.isFetching && !rt.isEmpty(n == null ? void 0 : n.stepData) ? i ? /* @__PURE__ */ o(Un, { handleUpdate: C }) : (($ = n == null ? void 0 : n.statusData) == null ? void 0 : $.status) == "success" && n.allSteps.currentStep == ((vt = n.allSteps.steps) == null ? void 0 : vt.length) ? /* @__PURE__ */ o(cn, { handleBack: t }) : h ? ((Nt = n.statusData) == null ? void 0 : Nt.status) == "partial-success" ? /* @__PURE__ */ o(_n, { handleBack: t }) : ((At = n == null ? void 0 : n.statusData) == null ? void 0 : At.status) == "txn-expired" ? /* @__PURE__ */ p("div", { className: "bw-mt-6", children: [
1373
+ /* @__PURE__ */ o(jt, { text: "Transaction expired!" }),
1374
+ /* @__PURE__ */ o("div", { className: "bw-absolute bw-bg-background-container bw-border-t bw-pt-3 bw-border-border-primary bw-w-full bw-flex bw-flex-col bw-items-center bw-justify-center bw-bottom-0", children: /* @__PURE__ */ o(Vt, { handleBack: t, errorText: D }) })
1375
+ ] }) : /* @__PURE__ */ o(dn, { errorText: D, handleGoBack: t, txnTextObj: g, handleExeTxn: _, handleDisable: G }) : /* @__PURE__ */ p("div", { className: "bw-absolute bw-bg-background-container bw-border-t bw-pt-3 bw-border-border-primary bw-w-full bw-flex bw-flex-col bw-items-center bw-justify-center bw-bottom-0", children: [
1376
+ /* @__PURE__ */ o(bn, { txnProcessType: A, txnTextObj: g, errorText: D, allSteps: n == null ? void 0 : n.allSteps }),
1377
+ /* @__PURE__ */ o(xn, { txnProcessType: A, txnTextObj: g, disableButton: n.loading, handleStep: j })
1378
+ ] }) : D != null && D.length ? /* @__PURE__ */ o("div", { className: "bw-absolute bw-bg-background-container bw-border-t bw-pt-3 bw-border-border-primary bw-w-full bw-flex bw-flex-col bw-items-center bw-justify-center bw-bottom-0", children: /* @__PURE__ */ o(Vt, { handleBack: t, errorText: D }) }) : /* @__PURE__ */ o(H, {})
1379
+ ] });
1380
+ }
1381
+ var ht = { exports: {} }, Hn = ht.exports, Pt;
1382
+ function On() {
1383
+ return Pt || (Pt = 1, function(e, r) {
1384
+ (function(t, n) {
1385
+ e.exports = n(kt);
1386
+ })(typeof self < "u" ? self : Hn, (t) => (() => {
1387
+ var n = { 155: (m) => {
1388
+ m.exports = t;
1389
+ } }, s = {};
1390
+ function x(m) {
1391
+ var c = s[m];
1392
+ if (c !== void 0) return c.exports;
1393
+ var b = s[m] = { exports: {} };
1394
+ return n[m](b, b.exports, x), b.exports;
1395
+ }
1396
+ x.d = (m, c) => {
1397
+ for (var b in c) x.o(c, b) && !x.o(m, b) && Object.defineProperty(m, b, { enumerable: !0, get: c[b] });
1398
+ }, x.o = (m, c) => Object.prototype.hasOwnProperty.call(m, c), x.r = (m) => {
1399
+ typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(m, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(m, "__esModule", { value: !0 });
1400
+ };
1401
+ var a = {};
1402
+ x.r(a), x.d(a, { default: () => i, useStopwatch: () => C, useTime: () => _, useTimer: () => B });
1403
+ var u = x(155);
1404
+ class h {
1405
+ static expiryTimestamp(c) {
1406
+ const b = new Date(c).getTime() > 0;
1407
+ return b;
1408
+ }
1409
+ static onExpire(c) {
1410
+ const b = c && typeof c == "function";
1411
+ return b;
1412
+ }
1413
+ }
1414
+ class l {
1415
+ static getTimeFromSeconds(c) {
1416
+ const b = Math.ceil(c), S = Math.floor(b / 86400), I = Math.floor(b % 86400 / 3600), N = Math.floor(b % 3600 / 60);
1417
+ return { totalSeconds: b, seconds: Math.floor(b % 60), minutes: N, hours: I, days: S };
1418
+ }
1419
+ static getSecondsFromExpiry(c, b) {
1420
+ const S = c - (/* @__PURE__ */ new Date()).getTime();
1421
+ if (S > 0) {
1422
+ const I = S / 1e3;
1423
+ return b ? Math.round(I) : I;
1424
+ }
1425
+ return 0;
1426
+ }
1427
+ static getSecondsFromPrevTime(c, b) {
1428
+ const S = (/* @__PURE__ */ new Date()).getTime() - c;
1429
+ if (S > 0) {
1430
+ const I = S / 1e3;
1431
+ return b ? Math.round(I) : I;
1432
+ }
1433
+ return 0;
1434
+ }
1435
+ static getSecondsFromTimeNow() {
1436
+ const c = /* @__PURE__ */ new Date();
1437
+ return c.getTime() / 1e3 - 60 * c.getTimezoneOffset();
1438
+ }
1439
+ static getFormattedTimeFromSeconds(c, b) {
1440
+ const { seconds: S, minutes: I, hours: N } = l.getTimeFromSeconds(c);
1441
+ let k = "", w = N;
1442
+ return b === "12-hour" && (k = N >= 12 ? "pm" : "am", w = N % 12), { seconds: S, minutes: I, hours: w, ampm: k };
1443
+ }
1444
+ }
1445
+ function y(m, c) {
1446
+ const b = (0, u.useRef)();
1447
+ (0, u.useEffect)(() => {
1448
+ b.current = m;
1449
+ }), (0, u.useEffect)(() => {
1450
+ if (!c) return () => {
1451
+ };
1452
+ const S = setInterval(() => {
1453
+ b.current && b.current();
1454
+ }, c);
1455
+ return () => clearInterval(S);
1456
+ }, [c]);
1457
+ }
1458
+ const f = 1e3;
1459
+ function v(m) {
1460
+ if (!h.expiryTimestamp(m)) return null;
1461
+ const c = l.getSecondsFromExpiry(m), b = Math.floor(1e3 * (c - Math.floor(c)));
1462
+ return b > 0 ? b : f;
1463
+ }
1464
+ function B() {
1465
+ let { expiryTimestamp: m, onExpire: c, autoStart: b = !0 } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1466
+ const [S, I] = (0, u.useState)(m), [N, k] = (0, u.useState)(l.getSecondsFromExpiry(S)), [w, g] = (0, u.useState)(b), [A, D] = (0, u.useState)(b), [G, j] = (0, u.useState)(v(S)), T = (0, u.useCallback)(() => {
1467
+ h.onExpire(c) && c(), g(!1), j(null);
1468
+ }, [c]), P = (0, u.useCallback)(() => {
1469
+ g(!1);
1470
+ }, []), F = (0, u.useCallback)(function(U) {
1471
+ let R = !(arguments.length > 1 && arguments[1] !== void 0) || arguments[1];
1472
+ j(v(U)), D(R), g(R), I(U), k(l.getSecondsFromExpiry(U));
1473
+ }, []), L = (0, u.useCallback)(() => {
1474
+ const U = /* @__PURE__ */ new Date();
1475
+ U.setMilliseconds(U.getMilliseconds() + 1e3 * N), F(U);
1476
+ }, [N, F]), z = (0, u.useCallback)(() => {
1477
+ A ? (k(l.getSecondsFromExpiry(S)), g(!0)) : L();
1478
+ }, [S, A, L]);
1479
+ return y(() => {
1480
+ G !== f && j(f);
1481
+ const U = l.getSecondsFromExpiry(S);
1482
+ k(U), U <= 0 && T();
1483
+ }, w ? G : null), { ...l.getTimeFromSeconds(N), start: z, pause: P, resume: L, restart: F, isRunning: w };
1484
+ }
1485
+ function C() {
1486
+ let { autoStart: m, offsetTimestamp: c } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1487
+ const [b, S] = (0, u.useState)(l.getSecondsFromExpiry(c, !0) || 0), [I, N] = (0, u.useState)(/* @__PURE__ */ new Date()), [k, w] = (0, u.useState)(b + l.getSecondsFromPrevTime(I || 0, !0)), [g, A] = (0, u.useState)(m);
1488
+ y(() => {
1489
+ w(b + l.getSecondsFromPrevTime(I, !0));
1490
+ }, g ? 1e3 : null);
1491
+ const D = (0, u.useCallback)(() => {
1492
+ const T = /* @__PURE__ */ new Date();
1493
+ N(T), A(!0), w(b + l.getSecondsFromPrevTime(T, !0));
1494
+ }, [b]), G = (0, u.useCallback)(() => {
1495
+ S(k), A(!1);
1496
+ }, [k]), j = (0, u.useCallback)(function() {
1497
+ let T = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, P = !(arguments.length > 1 && arguments[1] !== void 0) || arguments[1];
1498
+ const F = l.getSecondsFromExpiry(T, !0) || 0, L = /* @__PURE__ */ new Date();
1499
+ N(L), S(F), A(P), w(F + l.getSecondsFromPrevTime(L, !0));
1500
+ }, []);
1501
+ return { ...l.getTimeFromSeconds(k), start: D, pause: G, reset: j, isRunning: g };
1502
+ }
1503
+ function _() {
1504
+ let { format: m } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1505
+ const [c, b] = (0, u.useState)(l.getSecondsFromTimeNow());
1506
+ return y(() => {
1507
+ b(l.getSecondsFromTimeNow());
1508
+ }, 1e3), { ...l.getFormattedTimeFromSeconds(c, m) };
1509
+ }
1510
+ function i(m) {
1511
+ if ((0, u.useEffect)(() => {
1512
+ }, []), m.expiryTimestamp) {
1513
+ const b = B(m);
1514
+ return { ...b, startTimer: b.start, stopTimer: b.pause, resetTimer: () => {
1515
+ } };
1516
+ }
1517
+ const c = C(m);
1518
+ return { ...c, startTimer: c.start, stopTimer: c.pause, resetTimer: c.reset };
1519
+ }
1520
+ return a;
1521
+ })());
1522
+ }(ht)), ht.exports;
1523
+ }
1524
+ var Rn = On();
1525
+ function Ut(e) {
1526
+ return e > 9 || e < 0 ? e : `0${e}`;
1527
+ }
1528
+ function zn({ handleExpiry: e }) {
1529
+ var a;
1530
+ const r = d((u) => u.persist), t = (r == null ? void 0 : r.route) || {};
1531
+ let n = (r == null ? void 0 : r.startTime) || ((a = r == null ? void 0 : r.historyData) == null ? void 0 : a.createdAt);
1532
+ const { minutes: s, seconds: x } = Rn.useTimer({
1533
+ expiryTimestamp: n + (t == null ? void 0 : t.estimatedTimeInSeconds) * 1e3,
1534
+ onExpire: () => {
1535
+ e();
1536
+ }
1537
+ });
1538
+ return `${Ut(s)}:${Ut(x)}`;
1539
+ }
1540
+ const f0 = kt.memo(function({ route: r, isTimerStarted: t, startTimer: n, isErrorMessage: s }) {
1541
+ const [x, a] = ot(!1), { isTxnSuccessful: u } = J(Wt), l = !d((f) => f.persist).stepData;
1542
+ function y() {
1543
+ a(!0), n(!1);
1544
+ }
1545
+ return /* @__PURE__ */ o("div", { className: "bw-border bw-w-[65px] bw-mt-5 bw-h-[65px] bw-flex bw-items-center bw-justify-center bw-rounded-[50%] bw-bg-background-container bw-relative bw-z-10 hover:bw-opacity-100 bw-border-border-primary ", children: /* @__PURE__ */ o("p", { className: " bw-text-sm bw-text-center bw-font-medium bw-text-text-primary", children: l ? /* @__PURE__ */ o(Ft, {}) : u ? "Done" : t && !x ? /* @__PURE__ */ o(zn, { route: r, handleExpiry: y }) : x ? /* @__PURE__ */ o(Ft, {}) : "Start Txn" }) });
1546
+ });
1547
+ function Zt(e, r) {
1548
+ return Be(e, r) || 0;
1549
+ }
1550
+ function Wn() {
1551
+ var r, t, n, s, x, a, u;
1552
+ const e = d((h) => h.persist);
1553
+ return /* @__PURE__ */ p("div", { className: "bw-w-full bw-px-3 bw-py-2 bw-border-t bw-border-border-primary", children: [
1554
+ /* @__PURE__ */ o("div", { children: (t = (r = e == null ? void 0 : e.route) == null ? void 0 : r.fee) == null ? void 0 : t.filter((h, l) => h.source == "FROM_SOURCE_WALLET").map((h, l) => h.amountInUSD ? /* @__PURE__ */ p("div", { className: "bw-flex bw-mb-1 bw-items-center bw-justify-between", children: [
1555
+ /* @__PURE__ */ o("p", { className: "bw-text-text-secondary bw-text-sm bw-font-semibold", children: `${Kt(h.type)} Fee` }),
1556
+ /* @__PURE__ */ p("span", { className: "bw-text-text-secondary bw-text-sm bw-font-bold", children: [
1557
+ /* @__PURE__ */ o(lt, { value: Zt(h.amountInToken, h.token.decimals).toFixed(20) || 0, options: { maxDecimals: 8 } }),
1558
+ ` ${h.token.symbol} ${h.amountInUSD ? " ($" : ""}`,
1559
+ h.amountInUSD ? /* @__PURE__ */ p(H, { children: [
1560
+ /* @__PURE__ */ o(lt, { value: h.amountInUSD || 0, options: { maxDecimals: 8 } }),
1561
+ ")"
1562
+ ] }) : ""
1563
+ ] })
1564
+ ] }, l) : /* @__PURE__ */ o(H, {})) }),
1565
+ /* @__PURE__ */ o("div", { className: "bw-w-full bw-h-[1px] bw-border-b bw-my-2 bw-border-border-primary" }),
1566
+ /* @__PURE__ */ p("div", { className: "bw-w-full", children: [
1567
+ /* @__PURE__ */ p("div", { className: "bw-flex bw-items-center bw-mb-2 bw-justify-between", children: [
1568
+ /* @__PURE__ */ o("p", { className: "bw-text-text-primary bw-text-sm bw-font-medium", children: "Max Slippage" }),
1569
+ /* @__PURE__ */ p("span", { className: "bw-text-text-primary bw-text-sm bw-font-medium", children: [
1570
+ (((n = e == null ? void 0 : e.route) == null ? void 0 : n.slippage) || 0) / 100,
1571
+ "%"
1572
+ ] })
1573
+ ] }),
1574
+ /* @__PURE__ */ p("div", { className: "bw-flex bw-items-center bw-justify-between", children: [
1575
+ /* @__PURE__ */ o("p", { className: "bw-text-text-primary bw-text-sm bw-font-medium", children: "Minimum Received" }),
1576
+ /* @__PURE__ */ o("span", { className: "bw-text-text-primary bw-text-sm bw-font-medium", children: (s = e == null ? void 0 : e.route) != null && s.minOutputAmountDisplay || (x = e == null ? void 0 : e.route) != null && x.minOutputAmount ? `${Ht(e.route.minOutputAmountDisplay || e.route.minOutputAmount, 10)} ${(u = (a = e == null ? void 0 : e.route) == null ? void 0 : a.to) == null ? void 0 : u.symbol}` : "" })
1577
+ ] })
1578
+ ] })
1579
+ ] });
1580
+ }
1581
+ function Qn({ isShowFull: e }) {
1582
+ return /* @__PURE__ */ o("button", { className: "bw-w-[20px] bw-h-[20px] bw-flex bw-items-center bw-justify-center bw-border bw-border-border-primary bw-rounded-full bw-text-text-secondary bw-text-lg bw-font-normal", children: /* @__PURE__ */ o("div", { className: `bw-mt-[1px] ${e ? "bw-rotate-180" : ""}`, children: /* @__PURE__ */ o(fe, { fill: "var(--tw-text-primary)" }) }) });
1583
+ }
1584
+ function qn({ gasData: e }) {
1585
+ var t;
1586
+ const r = d((n) => n.persist);
1587
+ return /* @__PURE__ */ p("div", { className: "bw-flex bw-w-full bw-h-full bw-items-center", children: [
1588
+ /* @__PURE__ */ o("span", { className: "bw-text-xs bw-font-normal bw-text-text-secondary", children: "Max Slippage:" }),
1589
+ /* @__PURE__ */ p("span", { className: "bw-text-xs bw-ml-[3px] bw-font-bold bw-text-text-secondary", children: [
1590
+ (((t = r == null ? void 0 : r.route) == null ? void 0 : t.slippage) || 0) / 100,
1591
+ "%"
1592
+ ] }),
1593
+ /* @__PURE__ */ o("div", { className: "bw-w-[2px] bw-h-[24px] bw-mx-3 bw-bg-text-secondary" }),
1594
+ /* @__PURE__ */ o("span", { className: "bw-text-xs bw-font-normal bw-text-text-secondary", children: "Fees:" }),
1595
+ /* @__PURE__ */ p("span", { className: "bw-text-xs bw-ml-[3px] bw-font-bold bw-text-text-secondary", children: [
1596
+ /* @__PURE__ */ o(lt, { value: (e == null ? void 0 : e.payableInToken) || 0, options: { maxDecimals: 8 } }),
1597
+ ` ${e == null ? void 0 : e.symbol} ${e != null && e.payableInUSD ? " ($" : ""}`,
1598
+ e != null && e.payableInUSD ? /* @__PURE__ */ p(H, { children: [
1599
+ /* @__PURE__ */ o(lt, { value: (e == null ? void 0 : e.payableInUSD) || 0, options: { maxDecimals: 8 } }),
1600
+ ")"
1601
+ ] }) : ""
1602
+ ] })
1603
+ ] });
1604
+ }
1605
+ function Jn({ gasData: e }) {
1606
+ return /* @__PURE__ */ p("div", { className: "bw-w-full bw-flex bw-items-center bw-justify-between bw-border-border-primary", children: [
1607
+ /* @__PURE__ */ o("span", { className: "bw-text-sm bw-font-bold bw-text-text-primary", children: "Fees" }),
1608
+ /* @__PURE__ */ p("span", { className: "bw-text-sm bw-ml-[3px] bw-font-bold bw-text-text-primary", children: [
1609
+ /* @__PURE__ */ o(lt, { value: (e == null ? void 0 : e.payableInToken) || 0, options: { maxDecimals: 8 } }),
1610
+ ` ${e == null ? void 0 : e.symbol} ${e != null && e.payableInUSD ? " ($" : ""}`,
1611
+ e != null && e.payableInUSD ? /* @__PURE__ */ p(H, { children: [
1612
+ /* @__PURE__ */ o(lt, { value: (e == null ? void 0 : e.payableInUSD) || 0, options: { maxDecimals: 8 } }),
1613
+ ")"
1614
+ ] }) : ""
1615
+ ] })
1616
+ ] });
1617
+ }
1618
+ function Kn({ gasData: e, isShowFull: r }) {
1619
+ return /* @__PURE__ */ p("div", { className: "bw-flex bw-items-center bw-justify-between bw-gap-x-2 bw-h-[35px] bw-px-3", children: [
1620
+ r ? /* @__PURE__ */ o(Jn, { gasData: e }) : /* @__PURE__ */ o(qn, { gasData: e }),
1621
+ /* @__PURE__ */ o(Qn, { isShowFull: r })
1622
+ ] });
1623
+ }
1624
+ function k0() {
1625
+ var l, y;
1626
+ const e = d((f) => f.persist), [r, t] = ot(!1), n = d((f) => f.configuration), s = pt(null), [x, a] = ot(0);
1627
+ M(() => {
1628
+ if (s.current) {
1629
+ const f = setTimeout(() => {
1630
+ const v = s.current.scrollHeight;
1631
+ a(v);
1632
+ }, 50);
1633
+ return () => clearTimeout(f);
1634
+ }
1635
+ }, [e == null ? void 0 : e.route, r]);
1636
+ function u() {
1637
+ t(!r);
1638
+ }
1639
+ const h = se(() => {
1640
+ var v, B;
1641
+ let f = {
1642
+ payableInUSD: 0,
1643
+ payableInToken: 0,
1644
+ symbol: ""
1645
+ };
1646
+ return (B = (v = e == null ? void 0 : e.route) == null ? void 0 : v.fee) == null || B.forEach((C) => {
1647
+ C.source == "FROM_SOURCE_WALLET" && (f.payableInUSD += Number(C.amountInUSD), f.payableInToken += Zt(Number(C.amountInToken), C.token.decimals), f.symbol = C.token.symbol);
1648
+ }), f;
1649
+ }, [e == null ? void 0 : e.route]);
1650
+ return /* @__PURE__ */ p(
1651
+ "div",
1652
+ {
1653
+ onClick: () => {
1654
+ u();
1655
+ },
1656
+ style: {
1657
+ boxShadow: n && n.customTheme && ((y = (l = n.customTheme) == null ? void 0 : l.shadow) == null ? void 0 : y.boxShadow) || "0px 0px 5.8px 0px #00000026"
1658
+ },
1659
+ className: "bw-w-full bw-sticky bw-top-0 bw-z-20 bw-select-none bw-cursor-pointer bw-bg-background-container bw-rounded-lg bw-min-h-max bw-border bw-border-border-primary bw-overflow-hidden",
1660
+ children: [
1661
+ /* @__PURE__ */ o(Kn, { gasData: h, isShowFull: r }),
1662
+ /* @__PURE__ */ o(
1663
+ "div",
1664
+ {
1665
+ ref: s,
1666
+ style: {
1667
+ height: r ? `${x}px` : "0",
1668
+ transition: "height 0.3s ease-in-out",
1669
+ overflow: "hidden",
1670
+ visibility: x === 0 ? "hidden" : "visible"
1671
+ },
1672
+ children: /* @__PURE__ */ o("div", { className: "bw-h-auto", children: /* @__PURE__ */ o(Wn, { showFull: r }) })
1673
+ }
1674
+ )
1675
+ ]
1676
+ }
1677
+ );
1678
+ }
1679
+ export {
1680
+ k0 as E,
1681
+ p0 as H,
1682
+ Wt as T,
1683
+ ct as a,
1684
+ w0 as b,
1685
+ f0 as c,
1686
+ y0 as d,
1687
+ h0 as e
1688
+ };