@antseed/gateway-console 0.1.4 → 0.1.6

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 (188) hide show
  1. package/dist/assets/Activity-CoD1LZfl.js +1 -0
  2. package/dist/assets/Audit-CNmmoaeN.js +1 -0
  3. package/dist/assets/ChainGate-CeDu6YYJ.js +1 -0
  4. package/dist/assets/ChannelClose-C_SM1g28.js +1 -0
  5. package/dist/assets/{Charts-DAh9h4sf.js → Charts-Dm9j6cVy.js} +1 -1
  6. package/dist/assets/{Chat-DznobJkE.js → Chat-D1yVH5Y-.js} +4 -4
  7. package/dist/assets/{ConnectWallet-DSqRjyNA.js → ConnectWallet-phY-Bf7w.js} +1 -1
  8. package/dist/assets/DataTable-D65CSQpj.js +1 -0
  9. package/dist/assets/{Disclosure-UjXa2WU7.js → Disclosure-DrGE-NkF.js} +1 -1
  10. package/dist/assets/{KeyHolder-e5NvqLQn.js → KeyHolder-CmffMcZD.js} +1 -1
  11. package/dist/assets/{Keys-CxaYteT3.js → Keys-BovEuhch.js} +1 -1
  12. package/dist/assets/Logs-B-T-V-pM.js +1 -0
  13. package/dist/assets/Members-tWNaQdIJ.js +1 -0
  14. package/dist/assets/{Migrate-I3FULNOQ.js → Migrate-IZJLx1xU.js} +1 -1
  15. package/dist/assets/Models-gJrRx-QV.js +1 -0
  16. package/dist/assets/OperatorActions-DfjEKPUD.js +1 -0
  17. package/dist/assets/{OperatorGateAlert-CCPFpK6Y.js → OperatorGateAlert-Bq1ilVp6.js} +1 -1
  18. package/dist/assets/{Overview-zEyUG_qA.js → Overview-CAxieiTF.js} +1 -1
  19. package/dist/assets/PeerPicker-JK4q0ZO9.js +1 -0
  20. package/dist/assets/PolicyEditor-BLo1sheV.js +1 -0
  21. package/dist/assets/PolicyField-CNEZju4W.js +1 -0
  22. package/dist/assets/Presets-DBRoMTo4.js +4 -0
  23. package/dist/assets/Providers-B3qO68z-.js +1 -0
  24. package/dist/assets/RequestLog-vl46fVIZ.js +1 -0
  25. package/dist/assets/Rewards-CRiw-wXO.js +2 -0
  26. package/dist/assets/RewardsClaim-D6P8go-K.js +1 -0
  27. package/dist/assets/Routing-YpzgjNx_.js +1 -0
  28. package/dist/assets/{Segmented-Qx6JB6EU.js → Segmented-YOSVapPh.js} +1 -1
  29. package/dist/assets/SelectField-Cog9tKMb.js +1 -0
  30. package/dist/assets/{Settings-CvfS7lxA.js → Settings-CSXJvDLz.js} +2 -2
  31. package/dist/assets/{Switch-Ba56zux7.js → Switch-CGhLd0Ay.js} +1 -1
  32. package/dist/assets/{Tabs-BmjCmD5T.js → Tabs-DuL015VX.js} +1 -1
  33. package/dist/assets/TextAreaField-Cxpnr6YH.js +1 -0
  34. package/dist/assets/{UsageByModel-BBqXiIqo.js → UsageByModel-5QuGhD1d.js} +1 -1
  35. package/dist/assets/Wallet-BOMYI48H.js +9 -0
  36. package/dist/assets/WalletConfirm-Dc0AMNYH.js +1 -0
  37. package/dist/assets/WalletFunding-CsUmR_iR.js +1 -0
  38. package/dist/assets/WalletSignIn-_VjhsjCt.js +1 -0
  39. package/dist/assets/Workspaces-Da-rLWlz.js +1 -0
  40. package/dist/assets/{add-1gRRQJKT.js → add-Btpjkoo6.js} +2 -2
  41. package/dist/assets/all-wallets-BfrjmkEM.js +6 -0
  42. package/dist/assets/{app-store-DFWwIQzp.js → app-store-CjAKxMNO.js} +2 -2
  43. package/dist/assets/{apple-DgwSchgH.js → apple-BcO7LcJZ.js} +2 -2
  44. package/dist/assets/arrow-bottom-DYhsTHhV.js +8 -0
  45. package/dist/assets/{arrow-bottom-circle-PbZ344lB.js → arrow-bottom-circle-DH3-k8Pr.js} +2 -2
  46. package/dist/assets/arrow-left-i-RgLGSY.js +8 -0
  47. package/dist/assets/arrow-right-Byrj5OIH.js +8 -0
  48. package/dist/assets/arrow-top-BvEWR8S0.js +8 -0
  49. package/dist/assets/{bank-wStsFuNb.js → bank-CqGqrPxl.js} +2 -2
  50. package/dist/assets/{basic-CsVGrHuh.js → basic-DWDkRcdy.js} +1 -1
  51. package/dist/assets/{browser-DlwffXFC.js → browser-CQNym1bY.js} +2 -2
  52. package/dist/assets/{bundle-full-sn1k_IQV.js → bundle-full-C55tgBr2.js} +1 -1
  53. package/dist/assets/{card-pVIbVhmB.js → card-D2zVsWGG.js} +2 -2
  54. package/dist/assets/ccip-2-SkbDQO.js +1 -0
  55. package/dist/assets/{checkmark-BpTw56ma.js → checkmark-FRmQx2A8.js} +2 -2
  56. package/dist/assets/{checkmark-bold-kTaP3XxB.js → checkmark-bold-BQmDzpHv.js} +2 -2
  57. package/dist/assets/chevron-bottom-iNshLmUE.js +8 -0
  58. package/dist/assets/chevron-left-DZ-hTSFy.js +8 -0
  59. package/dist/assets/chevron-right-ftn9B4r7.js +8 -0
  60. package/dist/assets/chevron-top-nKnnD3BB.js +8 -0
  61. package/dist/assets/{chrome-store-PaJUtH_w.js → chrome-store-Jvo-YJCr.js} +2 -2
  62. package/dist/assets/{clock-CMJ0qXc5.js → clock-J68M1oCn.js} +2 -2
  63. package/dist/assets/close-Bb5jO3su.js +8 -0
  64. package/dist/assets/{code-block-xCUZ4Wg2.js → code-block-6bmX2qDf.js} +2 -2
  65. package/dist/assets/coinPlaceholder-BzR2PaE2.js +8 -0
  66. package/dist/assets/{compass-CGS5aeKg.js → compass-_xiCm8H2.js} +2 -2
  67. package/dist/assets/{copy-BES3eNqf.js → copy-Cn8HQUQ0.js} +2 -2
  68. package/dist/assets/{core-Cw7VIz-a.js → core-z96MxYDt.js} +3 -3
  69. package/dist/assets/cursor-AmgDWaYf.js +3 -0
  70. package/dist/assets/{cursor-transparent-Dqx5HyjH.js → cursor-transparent-BtLB_SMp.js} +2 -2
  71. package/dist/assets/{desktop-83z42M8J.js → desktop-BbxKfMA_.js} +2 -2
  72. package/dist/assets/{disconnect-D49VmdOl.js → disconnect-BLztvIUd.js} +2 -2
  73. package/dist/assets/{discord-MHKJZWwF.js → discord-CHUWozPc.js} +2 -2
  74. package/dist/assets/{en_US-Y4ZOVFV4-CzjJ6dvA.js → en_US-Y4ZOVFV4-CAcvlKBB.js} +10 -10
  75. package/dist/assets/{etherscan-_rlcuy0M.js → etherscan-D5vLd5La.js} +2 -2
  76. package/dist/assets/{exclamation-triangle-Bw5MhRmd.js → exclamation-triangle-qrQeSTv8.js} +2 -2
  77. package/dist/assets/{extension-D7frsaxu.js → extension-4gVUPN7H.js} +2 -2
  78. package/dist/assets/external-link-B14WJWrF.js +8 -0
  79. package/dist/assets/{facebook-D2S1lToP.js → facebook-CIMBt82S.js} +1 -1
  80. package/dist/assets/{farcaster-BKD1k1GK.js → farcaster-c2htRu7g.js} +1 -1
  81. package/dist/assets/filters-Bv71E2AR.js +8 -0
  82. package/dist/assets/{github-CanBnK1J.js → github-UYR2U4eW.js} +2 -2
  83. package/dist/assets/{google-DcyjnYXY.js → google-n2NyY3Dw.js} +2 -2
  84. package/dist/assets/{help-circle-EWFFZOKF.js → help-circle-BLFRE_d4.js} +2 -2
  85. package/dist/assets/highlighted-body-KQOG7T2V-BPvcfizq.js +1 -0
  86. package/dist/assets/{id-CwpQkL3B.js → id-Bx-RYygz.js} +2 -2
  87. package/dist/assets/{image-Bru4L9C0.js → image-BOkMzreg.js} +2 -2
  88. package/dist/assets/index-BG30WuBG.js +91 -0
  89. package/dist/assets/index-D8vXwUTI.css +1 -0
  90. package/dist/assets/{index-DI3oIpGN.js → index-DUGIknuZ.js} +2 -2
  91. package/dist/assets/{index-BTqmifYb.js → index-DzFVk9QK.js} +1 -1
  92. package/dist/assets/{index-CO2ldxDL.js → index-FSpcDkTF.js} +3 -3
  93. package/dist/assets/index-RORHmLec.js +1 -0
  94. package/dist/assets/{index.es-Dajqanx_.js → index.es-CA2ape1X.js} +4 -4
  95. package/dist/assets/{info-BiKqTS2d.js → info-Cn0tJEtZ.js} +2 -2
  96. package/dist/assets/info-circle-Bu4Zfbo-.js +12 -0
  97. package/dist/assets/{lightbulb-DOHEz8mA.js → lightbulb-CEuGFxl3.js} +2 -2
  98. package/dist/assets/{limits-DETkh9Vy.js → limits-Cv54gck6.js} +1 -1
  99. package/dist/assets/{mail-B58fLIk0.js → mail-DTJ1wl6n.js} +1 -1
  100. package/dist/assets/{mermaid-MCJ5UELQ-CNEVzFUk.js → mermaid-MCJ5UELQ-BedJEojm.js} +6 -6
  101. package/dist/assets/{metamask-sdk-CgV17tbH.js → metamask-sdk-CQV3kKmz.js} +1 -1
  102. package/dist/assets/{mobile-Der0Vnyo.js → mobile-D5XkpStI.js} +2 -2
  103. package/dist/assets/{models-Ben8ko6c.js → models-DMYWCgsM.js} +1 -1
  104. package/dist/assets/more-DdrXAXX1.js +11 -0
  105. package/dist/assets/{network-placeholder-DgO-AHV1.js → network-placeholder-DYxULQKf.js} +2 -2
  106. package/dist/assets/{nftPlaceholder-DQN5ewFX.js → nftPlaceholder-DNCBtU2V.js} +2 -2
  107. package/dist/assets/off-x6tIm6IU.js +8 -0
  108. package/dist/assets/{play-store-DGLOVnal.js → play-store-DH_0xG8x.js} +1 -1
  109. package/dist/assets/{plus-BiSIXTnl.js → plus-D6bTrOQ5.js} +2 -2
  110. package/dist/assets/{qr-code-CqHp65c8.js → qr-code-nZ-ywovk.js} +1 -1
  111. package/dist/assets/{recycle-horizontal-CRSsOzCz.js → recycle-horizontal-Dfef9bS8.js} +2 -2
  112. package/dist/assets/refresh-DjaTupr6.js +8 -0
  113. package/dist/assets/{reown-logo-DHp9kF6o.js → reown-logo-8xfPxyEW.js} +1 -1
  114. package/dist/assets/search-CTyg9yLr.js +8 -0
  115. package/dist/assets/{secp256k1-eRLZxtys.js → secp256k1-C3GZOk0r.js} +1 -1
  116. package/dist/assets/{send-Ctv_HF2O.js → send-BRCwXyYl.js} +1 -1
  117. package/dist/assets/{swapHorizontal-zaD-84iv.js → swapHorizontal-DQysA-xv.js} +2 -2
  118. package/dist/assets/{swapHorizontalBold-f_5MNh3F.js → swapHorizontalBold-CfvpnhxX.js} +2 -2
  119. package/dist/assets/{swapHorizontalMedium-CnARNDiR.js → swapHorizontalMedium-Ei15IdQU.js} +1 -1
  120. package/dist/assets/{swapHorizontalRoundedBold-BxdOAjIc.js → swapHorizontalRoundedBold-BrdyV7V9.js} +2 -2
  121. package/dist/assets/{swapVertical-BS-jDYcd.js → swapVertical-Chu7IZEN.js} +2 -2
  122. package/dist/assets/{telegram-DfO33sxQ.js → telegram-WX2YRbPh.js} +2 -2
  123. package/dist/assets/{three-dots-K3AmCfOo.js → three-dots-DxlCOrsx.js} +2 -2
  124. package/dist/assets/{twitch-DfjpmeLa.js → twitch-DnDwl6Wp.js} +2 -2
  125. package/dist/assets/{twitterIcon-CXaUDkHK.js → twitterIcon-BRzgYnIv.js} +2 -2
  126. package/dist/assets/{usage-CjxizGfE.js → usage-CSmvbieU.js} +1 -1
  127. package/dist/assets/{useInfiniteQuery-Dm7RR6wI.js → useInfiniteQuery-Dd787Fyg.js} +1 -1
  128. package/dist/assets/{useTx-BRRWrJlB.js → useTx-BMOzJPjG.js} +1 -1
  129. package/dist/assets/{verify-CplHry9Z.js → verify-BDEQw6N7.js} +2 -2
  130. package/dist/assets/{verify-filled-CLSOHfSX.js → verify-filled-4pi90YF-.js} +2 -2
  131. package/dist/assets/{w3m-modal-CQNWLiT9.js → w3m-modal-0lsUnIxD.js} +1 -1
  132. package/dist/assets/{wallet-C3roxttu.js → wallet-Cdj3wKM9.js} +2 -2
  133. package/dist/assets/{wallet-placeholder-CC9q2-xU.js → wallet-placeholder-9WrqEYA6.js} +2 -2
  134. package/dist/assets/{walletconnect-Bnkz4udx.js → walletconnect-Dxw2wfHl.js} +3 -3
  135. package/dist/assets/warning-circle-BS-8TEUR.js +12 -0
  136. package/dist/assets/{x-5eg1spDB.js → x-BuEdoHYI.js} +2 -2
  137. package/dist/index.html +2 -2
  138. package/package.json +3 -3
  139. package/dist/assets/Activity-BsmDMcni.js +0 -1
  140. package/dist/assets/Audit-TIDz29y6.js +0 -1
  141. package/dist/assets/ChainGate-Dvm-SUef.js +0 -1
  142. package/dist/assets/ChannelClose-9Lq8KHLH.js +0 -1
  143. package/dist/assets/DataTable-CDFSD9Kq.js +0 -1
  144. package/dist/assets/Logs-CNCQTTeZ.js +0 -1
  145. package/dist/assets/Members-Bme-PLUh.js +0 -1
  146. package/dist/assets/Models-Bt59XWgD.js +0 -1
  147. package/dist/assets/OperatorActions-DTrUYN6Z.js +0 -1
  148. package/dist/assets/PolicyEditor-BdoaX9gK.js +0 -1
  149. package/dist/assets/PolicyField-DIPl0B1x.js +0 -1
  150. package/dist/assets/Presets-CoTmwoy_.js +0 -4
  151. package/dist/assets/Providers-BxpNjH9s.js +0 -1
  152. package/dist/assets/RequestLog-DhID_VN7.js +0 -1
  153. package/dist/assets/Rewards-XyWhpm9Z.js +0 -2
  154. package/dist/assets/RewardsClaim-BSNDTCMG.js +0 -1
  155. package/dist/assets/Routing-Du8GLQCH.js +0 -1
  156. package/dist/assets/SelectField-D8fxDUNO.js +0 -1
  157. package/dist/assets/TextAreaField-CF9_zjuC.js +0 -1
  158. package/dist/assets/Wallet-DggtuX-0.js +0 -9
  159. package/dist/assets/WalletConfirm-BQCbOnNv.js +0 -1
  160. package/dist/assets/WalletFunding-CvDkcGVU.js +0 -1
  161. package/dist/assets/WalletSignIn-B9g_MY0h.js +0 -1
  162. package/dist/assets/Workspaces-DUn5iA_D.js +0 -1
  163. package/dist/assets/all-wallets-vhiMb1eR.js +0 -6
  164. package/dist/assets/arrow-bottom-Cq4YmOQg.js +0 -8
  165. package/dist/assets/arrow-left-BLB_Dkvm.js +0 -8
  166. package/dist/assets/arrow-right-DpKTBsRx.js +0 -8
  167. package/dist/assets/arrow-top-DSAScZJW.js +0 -8
  168. package/dist/assets/ccip-DAldItLP.js +0 -1
  169. package/dist/assets/chevron-bottom-bMFNlOX_.js +0 -8
  170. package/dist/assets/chevron-left-BvUO5nig.js +0 -8
  171. package/dist/assets/chevron-right-CsjPzxKK.js +0 -8
  172. package/dist/assets/chevron-top-k0xp7Can.js +0 -8
  173. package/dist/assets/close-D_Xc77Yh.js +0 -8
  174. package/dist/assets/coinPlaceholder-D-kUAKbs.js +0 -8
  175. package/dist/assets/cursor-BG-gmA3f.js +0 -3
  176. package/dist/assets/external-link-C7l3-PhY.js +0 -8
  177. package/dist/assets/filters-LINb1X7z.js +0 -8
  178. package/dist/assets/highlighted-body-KQOG7T2V-4q_hgdCF.js +0 -1
  179. package/dist/assets/index-D5ERwHFX.js +0 -1
  180. package/dist/assets/index-DqdaAEyo.js +0 -91
  181. package/dist/assets/index-M34IaZVB.css +0 -1
  182. package/dist/assets/index-mLThkLKM.js +0 -1
  183. package/dist/assets/info-circle-BBN-kA77.js +0 -12
  184. package/dist/assets/more-BoKgpjap.js +0 -11
  185. package/dist/assets/off-M-ZEZL9r.js +0 -8
  186. package/dist/assets/refresh-CNcLCWXe.js +0 -8
  187. package/dist/assets/search-Bk2sMNiB.js +0 -8
  188. package/dist/assets/warning-circle-Be9gSeqg.js +0 -12
@@ -1 +0,0 @@
1
- import{r as j,j as e,Z as o,$ as h,a0 as f}from"./index-DqdaAEyo.js";function b({label:a,hint:d,error:t,options:c,onChange:r,className:i,id:n,size:u,...x}){const m=j.useId(),l=n??m;return e.jsxs("label",{className:f(i,u),htmlFor:l,children:[a&&e.jsx("span",{className:"as-field__label",children:a}),e.jsx("select",{id:l,className:o("as-field__select"),onChange:s=>r(s.target.value),...x,children:c.map(s=>e.jsx("option",{value:s.value,disabled:s.disabled,children:s.label},s.value))}),e.jsx(h,{error:t,hint:d})]})}export{b as S};
@@ -1 +0,0 @@
1
- import{r as o,j as s,Z as c,$ as m,a0 as u}from"./index-DqdaAEyo.js";function j({label:a,hint:i,error:e,className:l,id:d,mono:r,...n}){const x=o.useId(),t=d??x;return s.jsxs("label",{className:u(l),htmlFor:t,children:[a&&s.jsx("span",{className:"as-field__label",children:a}),s.jsx("textarea",{id:t,className:c("as-field__textarea",r),"aria-invalid":e?!0:void 0,...n}),s.jsx(m,{error:e,hint:i})]})}export{j as T};
@@ -1,9 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/WalletFunding-CvDkcGVU.js","assets/index-DqdaAEyo.js","assets/index-M34IaZVB.css","assets/en_US-Y4ZOVFV4-CzjJ6dvA.js","assets/clsx-B-dksMZM.js","assets/index-D5ERwHFX.js","assets/index-BwpQbdIU.js","assets/en_US-Y4ZOVFV4-CcVPgXVa.css","assets/useTx-BRRWrJlB.js","assets/ConnectWallet-DSqRjyNA.js","assets/OperatorGateAlert-CCPFpK6Y.js","assets/OperatorActions-DTrUYN6Z.js","assets/ChannelClose-9Lq8KHLH.js"])))=>i.map(i=>d[i]);
2
- import{j as t,r as L,Y as Dt,e as te,D as ae,c3 as qt,F as re,c4 as Bt,f as T,l as W,c5 as Mt,ak as Ut,c0 as Ft,B as P,I as z,q as J,L as le,v as H,ap as Ue,A as X,ac as ne,_ as ce,ag as Fe,H as Rt,G as ue,aj as Ot,k as Oe,Q as Ve,K as He,c6 as Vt,av as Ht,t as Lt,a8 as Kt,u as Wt,bS as Jt,P as Qt,J as Yt,m as Gt,c7 as Zt,c8 as Xt,bU as ie,c9 as $t,M as kt,d as en,am as tn,s as nn,ca as rn,cb as sn,cc as on,cd as an,an as Qe,X as ln,E as cn,ce as Ye,cf as un}from"./index-DqdaAEyo.js";import{C as de}from"./ChainGate-Dvm-SUef.js";import{b as dn}from"./index-BwpQbdIU.js";import{r as hn}from"./dijkstra-COg3n3zL.js";import{D as fn}from"./Disclosure-UjXa2WU7.js";import{D as gn}from"./DataTable-CDFSD9Kq.js";import{S as mn}from"./Switch-Ba56zux7.js";import"./index-D5ERwHFX.js";const pn="#2775CA";function wn({size:e=18}){return t.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24","aria-hidden":"true",children:[t.jsx("circle",{cx:"12",cy:"12",r:"12",fill:pn}),t.jsx("text",{x:"12",y:"16.6",textAnchor:"middle",fontSize:"13.5",fontWeight:"700",fill:"#fff",children:"$"})]})}function yn({size:e=18}){return t.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24","aria-hidden":"true",children:[t.jsx("circle",{cx:"12",cy:"12",r:"12",fill:"#0052FF"}),t.jsx("rect",{x:"1",y:"10.95",width:"15.85",height:"2.1",fill:"#fff"})]})}const xn="M788.1 340.9c-5.8 4.5-108.2 62.2-108.2 190.5 0 148.4 130.3 200.9 134.2 202.2-.6 3.2-20.7 71.9-68.7 141.9-42.8 61.6-87.5 123.1-155.5 123.1s-85.5-39.5-164-39.5c-76.5 0-103.7 40.8-165.9 40.8s-105.6-57-155.5-127C46.7 790.7 0 663 0 541.8c0-194.4 126.4-297.5 250.8-297.5 66.1 0 121.2 43.4 162.7 43.4 39.5 0 101.1-46 176.3-46 28.5 0 130.9 2.6 198.3 99.2zm-234-181.5c31.1-36.9 53.1-88.1 53.1-139.3 0-7.1-.6-14.3-1.9-20.1-50.6 1.9-110.8 33.7-147.1 75.8-28.5 32.4-55.1 83.6-55.1 135.5 0 7.8 1.3 15.6 1.9 18.1 3.2.6 8.4 1.3 13.6 1.3 45.4 0 102.5-30.4 135.5-71.3z";function vn({size:e=18}){return t.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24","aria-hidden":"true",children:[t.jsx("circle",{cx:"12",cy:"12",r:"11.5",fill:"#fff",stroke:"#d5d7db"}),t.jsx("path",{d:xn,fill:"#000",transform:"translate(7.3 6.4) scale(0.0115)"})]})}function Ge({size:e=18}){return t.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24","aria-hidden":"true",children:[t.jsx("circle",{cx:"12",cy:"12",r:"11.5",fill:"#fff",stroke:"#d5d7db"}),t.jsx("circle",{cx:"9.4",cy:"12",r:"4.6",fill:"#EB001B"}),t.jsx("circle",{cx:"14.6",cy:"12",r:"4.6",fill:"#F79E1B",fillOpacity:"0.9"})]})}function Cn({size:e=18}){return t.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24","aria-hidden":"true",children:[t.jsx("circle",{cx:"12",cy:"12",r:"11.5",fill:"#fff",stroke:"#d5d7db"}),t.jsxs("g",{transform:"translate(6 6) scale(0.5)",children:[t.jsx("path",{fill:"#4285F4",d:"M23.49 12.27c0-.79-.07-1.54-.19-2.27H12v4.51h6.47c-.29 1.48-1.14 2.73-2.4 3.58v3h3.86c2.26-2.09 3.56-5.17 3.56-8.82z"}),t.jsx("path",{fill:"#34A853",d:"M12 24c3.24 0 5.95-1.08 7.93-2.91l-3.86-3c-1.08.72-2.45 1.16-4.07 1.16-3.13 0-5.78-2.11-6.73-4.96H1.29v3.09C3.26 21.31 7.31 24 12 24z"}),t.jsx("path",{fill:"#FBBC05",d:"M5.27 14.29c-.25-.72-.38-1.49-.38-2.29s.14-1.57.38-2.29V6.62H1.29C.47 8.24 0 10.06 0 12s.47 3.76 1.29 5.38l3.98-3.09z"}),t.jsx("path",{fill:"#EA4335",d:"M12 4.75c1.77 0 3.35.61 4.6 1.8l3.42-3.42C17.95 1.19 15.24 0 12 0 7.31 0 3.26 2.69 1.29 6.62l3.98 3.09C6.22 6.86 8.87 4.75 12 4.75z"})]})]})}function Ze({size:e=18}){return t.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24","aria-hidden":"true",children:[t.jsx("circle",{cx:"12",cy:"12",r:"12",fill:"#1434CB"}),t.jsx("text",{x:"12",y:"14.6",textAnchor:"middle",fontSize:"7",fontWeight:"800",fontStyle:"italic",fill:"#fff",children:"VISA"})]})}function jn({size:e=18}){return t.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24","aria-hidden":"true",children:[t.jsx("circle",{cx:"12",cy:"12",r:"12",fill:"#016FD0"}),t.jsx("text",{x:"12",y:"14.6",textAnchor:"middle",fontSize:"6",fontWeight:"800",fill:"#fff",children:"AMEX"})]})}function bn({size:e=22}){return t.jsxs("svg",{width:e,height:e,viewBox:"0 0 512 512","aria-hidden":"true",children:[t.jsx("rect",{width:"512",height:"512",rx:"64",fill:"#533AFD"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M120 392L392 334.317V120L120 178.357V392Z",fill:"#fff"})]})}function En({size:e=20}){return t.jsxs("svg",{width:e,height:e,viewBox:"0 0 542.25 542.25",fill:"#34D399","aria-hidden":"true",children:[t.jsx("path",{d:"M493.18,424.48l-106.09,106.09c-7.48,7.48-17.63,11.69-28.21,11.69h-192.03l250.27-250.27,76.06,76.06c15.58,15.58,15.58,40.85,0,56.43Z"}),t.jsx("path",{d:"M375.41,0L125.14,250.27l-76.06-76.06c-15.58-15.58-15.58-40.85,0-56.43L155.16,11.69c7.48-7.48,17.63-11.69,28.21-11.69h192.03Z"}),t.jsx("path",{d:"M542.25,375.41l-250.27-250.27,76.06-76.06c15.58-15.58,40.85-15.58,56.43,0l106.09,106.09c7.48,7.48,11.69,17.63,11.69,28.21v192.03Z"}),t.jsx("path",{d:"M250.27,417.12l-76.06,76.06c-15.58,15.58-40.85,15.58-56.43,0L11.69,387.09c-7.48-7.48-11.69-17.63-11.69-28.21v-192.03l250.27,250.27Z"})]})}function Nn({size:e=18}){return t.jsxs("svg",{width:e,height:e,viewBox:"0 0 2500 2500","aria-hidden":"true",children:[t.jsx("path",{fill:"#213147",d:"M226,760v980c0,63,33,120,88,152l849,490c54,31,121,31,175,0l849-490c54-31,88-89,88-152V760c0-63-33-120-88-152l-849-490c-54-31-121-31-175,0L314,608c-54,31-87,89-87,152H226z"}),t.jsx("path",{fill:"#12AAFF",d:"M1435,1440l-121,332c-3,9-3,19,0,29l208,571l241-139l-289-793C1467,1422,1442,1422,1435,1440z"}),t.jsx("path",{fill:"#12AAFF",d:"M1678,882c-7-18-32-18-39,0l-121,332c-3,9-3,19,0,29l341,935l241-139L1678,883V882z"}),t.jsx("path",{fill:"#9DCCED",d:"M1250,155c6,0,12,2,17,5l918,530c11,6,17,18,17,30v1060c0,12-7,24-17,30l-918,530c-5,3-11,5-17,5s-12-2-17-5l-918-530c-11-6-17-18-17-30V719c0-12,7-24,17-30l918-530c5-3,11-5,17-5l0,0V155z M1250,0c-33,0-65,8-95,25L237,555c-59,34-95,96-95,164v1060c0,68,36,130,95,164l918,530c29,17,62,25,95,25s65-8,95-25l918-530c59-34,95-96,95-164V719c0-68-36-130-95-164L1344,25c-29-17-62-25-95-25l0,0H1250z"}),t.jsx("polygon",{fill:"#213147",points:"642,2179 727,1947 897,2088 738,2234"}),t.jsx("path",{fill:"#fff",d:"M1172,644H939c-17,0-33,11-39,27L401,2039l241,139l550-1507c5-14-5-28-19-28L1172,644z"}),t.jsx("path",{fill:"#fff",d:"M1580,644h-233c-17,0-33,11-39,27L738,2233l241,139l620-1701c5-14-5-28-19-28V644z"})]})}function An({size:e=18}){return t.jsxs("svg",{width:e,height:e,viewBox:"0 0 2496 2496","aria-hidden":"true",children:[t.jsx("path",{fill:"#F0B90B",fillRule:"evenodd",clipRule:"evenodd",d:"M1248,0c689.3,0,1248,558.7,1248,1248s-558.7,1248-1248,1248S0,1937.3,0,1248S558.7,0,1248,0L1248,0z"}),t.jsxs("g",{fill:"#fff",children:[t.jsx("path",{d:"M685.9,1248l0.9,330l280.4,165v193.2l-444.5-260.7v-524L685.9,1248L685.9,1248z M685.9,918v192.3l-163.3-96.6V821.4l163.3-96.6l164.1,96.6L685.9,918L685.9,918z M1084.3,821.4l163.3-96.6l164.1,96.6L1247.6,918L1084.3,821.4L1084.3,821.4z"}),t.jsx("path",{d:"M803.9,1509.6v-193.2l163.3,96.6v192.3L803.9,1509.6L803.9,1509.6z M1084.3,1812.2l163.3,96.6l164.1-96.6v192.3l-164.1,96.6l-163.3-96.6V1812.2L1084.3,1812.2z M1645.9,821.4l163.3-96.6l164.1,96.6v192.3l-164.1,96.6V918L1645.9,821.4L1645.9,821.4L1645.9,821.4z M1809.2,1578l0.9-330l163.3-96.6v524l-444.5,260.7v-193.2L1809.2,1578L1809.2,1578L1809.2,1578z"}),t.jsx("polygon",{points:"1692.1,1509.6 1528.8,1605.3 1528.8,1413 1692.1,1316.4 1692.1,1509.6"}),t.jsx("path",{d:"M1692.1,986.4l0.9,193.2l-281.2,165v330.8l-163.3,95.7l-163.3-95.7v-330.8l-281.2-165V986.4L968,889.8l279.5,165.8l281.2-165.8l164.1,96.6H1692.1L1692.1,986.4z M803.9,656.5l443.7-261.6l444.5,261.6l-163.3,96.6l-281.2-165.8L967.2,753.1L803.9,656.5L803.9,656.5z"})]})]})}function Sn({size:e=18}){return t.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24","aria-hidden":"true",children:[t.jsx("circle",{cx:"12",cy:"12",r:"12",fill:"#6C00F6"}),t.jsx("path",{fill:"#fff",transform:"translate(5.5 6.15) scale(0.0731)",d:"M66.8,54.7l-16.7-9.7L0,74.1v58l50.1,29l50.1-29V41.9L128,25.8l27.8,16.1v32.2L128,90.2l-16.7-9.7v25.8l16.7,9.7l50.1-29V29L128,0L77.9,29v90.2l-27.8,16.1l-27.8-16.1V86.9l27.8-16.1l16.7,9.7V54.7z"})]})}function Bn({size:e=18}){return t.jsxs("svg",{width:e,height:e,viewBox:"0 0 32 32","aria-hidden":"true",children:[t.jsx("circle",{cx:"16",cy:"16",r:"16",fill:"#627EEA"}),t.jsxs("g",{fill:"#fff",fillRule:"nonzero",children:[t.jsx("path",{fillOpacity:"0.602",d:"M16.498 4v8.87l7.497 3.35z"}),t.jsx("path",{d:"M16.498 4L9 16.22l7.498-3.35z"}),t.jsx("path",{fillOpacity:"0.602",d:"M16.498 21.968v6.027L24 17.616z"}),t.jsx("path",{d:"M16.498 27.995v-6.028L9 17.616z"}),t.jsx("path",{fillOpacity:"0.2",d:"M16.498 20.573l7.497-4.353-7.497-3.348z"}),t.jsx("path",{fillOpacity:"0.602",d:"M9 16.22l7.498 4.353v-7.701z"})]})]})}const Mn=6e4;function Rn(e,s,o=document){let n,r=!1,i=!1;const a=g=>{r||(i=g==="active",s.wallet.watch(e,g).catch(y=>{Dt(y)&&y.status===409&&(r=!0)}))},l=()=>{clearInterval(n),a("active"),n=setInterval(()=>a("active"),Mn)},c=()=>{clearInterval(n),i&&a("background")},f=()=>o.visibilityState==="hidden"?c():l();return o.visibilityState!=="hidden"&&l(),o.addEventListener("visibilitychange",f),()=>{o.removeEventListener("visibilitychange",f),c(),r=!0}}function Ln(e){L.useEffect(()=>Rn(e,te),[e])}const oe=3e4;function kn(e,s=oe,{minIntervalMs:o=oe,doc:n=document}={}){const r=Math.max(s,o);let i;const a=()=>{clearInterval(i),i=setInterval(e,r)},l=()=>{n.visibilityState==="hidden"?(clearInterval(i),i=void 0):(e(),a())};return n.visibilityState!=="hidden"&&a(),n.addEventListener("visibilitychange",l),()=>{clearInterval(i),n.removeEventListener("visibilitychange",l)}}function Tn(e,s=oe,o=oe){const n=ae(),r=JSON.stringify(e);L.useEffect(()=>kn(()=>void n.invalidateQueries({queryKey:JSON.parse(r)}),s,{minIntervalMs:o}),[r,s,o,n])}var Z={},pe,Xe;function Pn(){return Xe||(Xe=1,pe=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),pe}var we={},V={},$e;function Q(){if($e)return V;$e=1;let e;const s=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return V.getSymbolSize=function(n){if(!n)throw new Error('"version" cannot be null or undefined');if(n<1||n>40)throw new Error('"version" should be in range from 1 to 40');return n*4+17},V.getSymbolTotalCodewords=function(n){return s[n]},V.getBCHDigit=function(o){let n=0;for(;o!==0;)n++,o>>>=1;return n},V.setToSJISFunction=function(n){if(typeof n!="function")throw new Error('"toSJISFunc" is not a valid function.');e=n},V.isKanjiModeEnabled=function(){return typeof e<"u"},V.toSJIS=function(n){return e(n)},V}var ye={},et;function Ke(){return et||(et=1,(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function s(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+o)}}e.isValid=function(n){return n&&typeof n.bit<"u"&&n.bit>=0&&n.bit<4},e.from=function(n,r){if(e.isValid(n))return n;try{return s(n)}catch{return r}}})(ye)),ye}var xe,tt;function In(){if(tt)return xe;tt=1;function e(){this.buffer=[],this.length=0}return e.prototype={get:function(s){const o=Math.floor(s/8);return(this.buffer[o]>>>7-s%8&1)===1},put:function(s,o){for(let n=0;n<o;n++)this.putBit((s>>>o-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(s){const o=Math.floor(this.length/8);this.buffer.length<=o&&this.buffer.push(0),s&&(this.buffer[o]|=128>>>this.length%8),this.length++}},xe=e,xe}var ve,nt;function _n(){if(nt)return ve;nt=1;function e(s){if(!s||s<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=s,this.data=new Uint8Array(s*s),this.reservedBit=new Uint8Array(s*s)}return e.prototype.set=function(s,o,n,r){const i=s*this.size+o;this.data[i]=n,r&&(this.reservedBit[i]=!0)},e.prototype.get=function(s,o){return this.data[s*this.size+o]},e.prototype.xor=function(s,o,n){this.data[s*this.size+o]^=n},e.prototype.isReserved=function(s,o){return this.reservedBit[s*this.size+o]},ve=e,ve}var Ce={},rt;function zn(){return rt||(rt=1,(function(e){const s=Q().getSymbolSize;e.getRowColCoords=function(n){if(n===1)return[];const r=Math.floor(n/7)+2,i=s(n),a=i===145?26:Math.ceil((i-13)/(2*r-2))*2,l=[i-7];for(let c=1;c<r-1;c++)l[c]=l[c-1]-a;return l.push(6),l.reverse()},e.getPositions=function(n){const r=[],i=e.getRowColCoords(n),a=i.length;for(let l=0;l<a;l++)for(let c=0;c<a;c++)l===0&&c===0||l===0&&c===a-1||l===a-1&&c===0||r.push([i[l],i[c]]);return r}})(Ce)),Ce}var je={},it;function Dn(){if(it)return je;it=1;const e=Q().getSymbolSize,s=7;return je.getPositions=function(n){const r=e(n);return[[0,0],[r-s,0],[0,r-s]]},je}var be={},st;function qn(){return st||(st=1,(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const s={N1:3,N2:3,N3:40,N4:10};e.isValid=function(r){return r!=null&&r!==""&&!isNaN(r)&&r>=0&&r<=7},e.from=function(r){return e.isValid(r)?parseInt(r,10):void 0},e.getPenaltyN1=function(r){const i=r.size;let a=0,l=0,c=0,f=null,g=null;for(let y=0;y<i;y++){l=c=0,f=g=null;for(let m=0;m<i;m++){let h=r.get(y,m);h===f?l++:(l>=5&&(a+=s.N1+(l-5)),f=h,l=1),h=r.get(m,y),h===g?c++:(c>=5&&(a+=s.N1+(c-5)),g=h,c=1)}l>=5&&(a+=s.N1+(l-5)),c>=5&&(a+=s.N1+(c-5))}return a},e.getPenaltyN2=function(r){const i=r.size;let a=0;for(let l=0;l<i-1;l++)for(let c=0;c<i-1;c++){const f=r.get(l,c)+r.get(l,c+1)+r.get(l+1,c)+r.get(l+1,c+1);(f===4||f===0)&&a++}return a*s.N2},e.getPenaltyN3=function(r){const i=r.size;let a=0,l=0,c=0;for(let f=0;f<i;f++){l=c=0;for(let g=0;g<i;g++)l=l<<1&2047|r.get(f,g),g>=10&&(l===1488||l===93)&&a++,c=c<<1&2047|r.get(g,f),g>=10&&(c===1488||c===93)&&a++}return a*s.N3},e.getPenaltyN4=function(r){let i=0;const a=r.data.length;for(let c=0;c<a;c++)i+=r.data[c];return Math.abs(Math.ceil(i*100/a/5)-10)*s.N4};function o(n,r,i){switch(n){case e.Patterns.PATTERN000:return(r+i)%2===0;case e.Patterns.PATTERN001:return r%2===0;case e.Patterns.PATTERN010:return i%3===0;case e.Patterns.PATTERN011:return(r+i)%3===0;case e.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(i/3))%2===0;case e.Patterns.PATTERN101:return r*i%2+r*i%3===0;case e.Patterns.PATTERN110:return(r*i%2+r*i%3)%2===0;case e.Patterns.PATTERN111:return(r*i%3+(r+i)%2)%2===0;default:throw new Error("bad maskPattern:"+n)}}e.applyMask=function(r,i){const a=i.size;for(let l=0;l<a;l++)for(let c=0;c<a;c++)i.isReserved(c,l)||i.xor(c,l,o(r,c,l))},e.getBestMask=function(r,i){const a=Object.keys(e.Patterns).length;let l=0,c=1/0;for(let f=0;f<a;f++){i(f),e.applyMask(f,r);const g=e.getPenaltyN1(r)+e.getPenaltyN2(r)+e.getPenaltyN3(r)+e.getPenaltyN4(r);e.applyMask(f,r),g<c&&(c=g,l=f)}return l}})(be)),be}var se={},ot;function Tt(){if(ot)return se;ot=1;const e=Ke(),s=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],o=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return se.getBlocksCount=function(r,i){switch(i){case e.L:return s[(r-1)*4+0];case e.M:return s[(r-1)*4+1];case e.Q:return s[(r-1)*4+2];case e.H:return s[(r-1)*4+3];default:return}},se.getTotalCodewordsCount=function(r,i){switch(i){case e.L:return o[(r-1)*4+0];case e.M:return o[(r-1)*4+1];case e.Q:return o[(r-1)*4+2];case e.H:return o[(r-1)*4+3];default:return}},se}var Ee={},ee={},at;function Un(){if(at)return ee;at=1;const e=new Uint8Array(512),s=new Uint8Array(256);return(function(){let n=1;for(let r=0;r<255;r++)e[r]=n,s[n]=r,n<<=1,n&256&&(n^=285);for(let r=255;r<512;r++)e[r]=e[r-255]})(),ee.log=function(n){if(n<1)throw new Error("log("+n+")");return s[n]},ee.exp=function(n){return e[n]},ee.mul=function(n,r){return n===0||r===0?0:e[s[n]+s[r]]},ee}var lt;function Fn(){return lt||(lt=1,(function(e){const s=Un();e.mul=function(n,r){const i=new Uint8Array(n.length+r.length-1);for(let a=0;a<n.length;a++)for(let l=0;l<r.length;l++)i[a+l]^=s.mul(n[a],r[l]);return i},e.mod=function(n,r){let i=new Uint8Array(n);for(;i.length-r.length>=0;){const a=i[0];for(let c=0;c<r.length;c++)i[c]^=s.mul(r[c],a);let l=0;for(;l<i.length&&i[l]===0;)l++;i=i.slice(l)}return i},e.generateECPolynomial=function(n){let r=new Uint8Array([1]);for(let i=0;i<n;i++)r=e.mul(r,new Uint8Array([1,s.exp(i)]));return r}})(Ee)),Ee}var Ne,ct;function On(){if(ct)return Ne;ct=1;const e=Fn();function s(o){this.genPoly=void 0,this.degree=o,this.degree&&this.initialize(this.degree)}return s.prototype.initialize=function(n){this.degree=n,this.genPoly=e.generateECPolynomial(this.degree)},s.prototype.encode=function(n){if(!this.genPoly)throw new Error("Encoder not initialized");const r=new Uint8Array(n.length+this.degree);r.set(n);const i=e.mod(r,this.genPoly),a=this.degree-i.length;if(a>0){const l=new Uint8Array(this.degree);return l.set(i,a),l}return i},Ne=s,Ne}var Ae={},Se={},Be={},ut;function Pt(){return ut||(ut=1,Be.isValid=function(s){return!isNaN(s)&&s>=1&&s<=40}),Be}var q={},dt;function It(){if(dt)return q;dt=1;const e="[0-9]+",s="[A-Z $%*+\\-./:]+";let o="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";o=o.replace(/u/g,"\\u");const n="(?:(?![A-Z0-9 $%*+\\-./:]|"+o+`)(?:.|[\r
3
- ]))+`;q.KANJI=new RegExp(o,"g"),q.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),q.BYTE=new RegExp(n,"g"),q.NUMERIC=new RegExp(e,"g"),q.ALPHANUMERIC=new RegExp(s,"g");const r=new RegExp("^"+o+"$"),i=new RegExp("^"+e+"$"),a=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return q.testKanji=function(c){return r.test(c)},q.testNumeric=function(c){return i.test(c)},q.testAlphanumeric=function(c){return a.test(c)},q}var ht;function Y(){return ht||(ht=1,(function(e){const s=Pt(),o=It();e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(i,a){if(!i.ccBits)throw new Error("Invalid mode: "+i);if(!s.isValid(a))throw new Error("Invalid version: "+a);return a>=1&&a<10?i.ccBits[0]:a<27?i.ccBits[1]:i.ccBits[2]},e.getBestModeForData=function(i){return o.testNumeric(i)?e.NUMERIC:o.testAlphanumeric(i)?e.ALPHANUMERIC:o.testKanji(i)?e.KANJI:e.BYTE},e.toString=function(i){if(i&&i.id)return i.id;throw new Error("Invalid mode")},e.isValid=function(i){return i&&i.bit&&i.ccBits};function n(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+r)}}e.from=function(i,a){if(e.isValid(i))return i;try{return n(i)}catch{return a}}})(Se)),Se}var ft;function Vn(){return ft||(ft=1,(function(e){const s=Q(),o=Tt(),n=Ke(),r=Y(),i=Pt(),a=7973,l=s.getBCHDigit(a);function c(m,h,B){for(let S=1;S<=40;S++)if(h<=e.getCapacity(S,B,m))return S}function f(m,h){return r.getCharCountIndicator(m,h)+4}function g(m,h){let B=0;return m.forEach(function(S){const k=f(S.mode,h);B+=k+S.getBitsLength()}),B}function y(m,h){for(let B=1;B<=40;B++)if(g(m,B)<=e.getCapacity(B,h,r.MIXED))return B}e.from=function(h,B){return i.isValid(h)?parseInt(h,10):B},e.getCapacity=function(h,B,S){if(!i.isValid(h))throw new Error("Invalid QR Code version");typeof S>"u"&&(S=r.BYTE);const k=s.getSymbolTotalCodewords(h),N=o.getTotalCodewordsCount(h,B),x=(k-N)*8;if(S===r.MIXED)return x;const C=x-f(S,h);switch(S){case r.NUMERIC:return Math.floor(C/10*3);case r.ALPHANUMERIC:return Math.floor(C/11*2);case r.KANJI:return Math.floor(C/13);case r.BYTE:default:return Math.floor(C/8)}},e.getBestVersionForData=function(h,B){let S;const k=n.from(B,n.M);if(Array.isArray(h)){if(h.length>1)return y(h,k);if(h.length===0)return 1;S=h[0]}else S=h;return c(S.mode,S.getLength(),k)},e.getEncodedBits=function(h){if(!i.isValid(h)||h<7)throw new Error("Invalid QR Code version");let B=h<<12;for(;s.getBCHDigit(B)-l>=0;)B^=a<<s.getBCHDigit(B)-l;return h<<12|B}})(Ae)),Ae}var Me={},gt;function Hn(){if(gt)return Me;gt=1;const e=Q(),s=1335,o=21522,n=e.getBCHDigit(s);return Me.getEncodedBits=function(i,a){const l=i.bit<<3|a;let c=l<<10;for(;e.getBCHDigit(c)-n>=0;)c^=s<<e.getBCHDigit(c)-n;return(l<<10|c)^o},Me}var Re={},Le,mt;function Kn(){if(mt)return Le;mt=1;const e=Y();function s(o){this.mode=e.NUMERIC,this.data=o.toString()}return s.getBitsLength=function(n){return 10*Math.floor(n/3)+(n%3?n%3*3+1:0)},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(n){let r,i,a;for(r=0;r+3<=this.data.length;r+=3)i=this.data.substr(r,3),a=parseInt(i,10),n.put(a,10);const l=this.data.length-r;l>0&&(i=this.data.substr(r),a=parseInt(i,10),n.put(a,l*3+1))},Le=s,Le}var ke,pt;function Wn(){if(pt)return ke;pt=1;const e=Y(),s=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function o(n){this.mode=e.ALPHANUMERIC,this.data=n}return o.getBitsLength=function(r){return 11*Math.floor(r/2)+6*(r%2)},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(r){let i;for(i=0;i+2<=this.data.length;i+=2){let a=s.indexOf(this.data[i])*45;a+=s.indexOf(this.data[i+1]),r.put(a,11)}this.data.length%2&&r.put(s.indexOf(this.data[i]),6)},ke=o,ke}var Te,wt;function Jn(){if(wt)return Te;wt=1;const e=Y();function s(o){this.mode=e.BYTE,typeof o=="string"?this.data=new TextEncoder().encode(o):this.data=new Uint8Array(o)}return s.getBitsLength=function(n){return n*8},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(o){for(let n=0,r=this.data.length;n<r;n++)o.put(this.data[n],8)},Te=s,Te}var Pe,yt;function Qn(){if(yt)return Pe;yt=1;const e=Y(),s=Q();function o(n){this.mode=e.KANJI,this.data=n}return o.getBitsLength=function(r){return r*13},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(n){let r;for(r=0;r<this.data.length;r++){let i=s.toSJIS(this.data[r]);if(i>=33088&&i<=40956)i-=33088;else if(i>=57408&&i<=60351)i-=49472;else throw new Error("Invalid SJIS character: "+this.data[r]+`
4
- Make sure your charset is UTF-8`);i=(i>>>8&255)*192+(i&255),n.put(i,13)}},Pe=o,Pe}var xt;function Yn(){return xt||(xt=1,(function(e){const s=Y(),o=Kn(),n=Wn(),r=Jn(),i=Qn(),a=It(),l=Q(),c=hn();function f(N){return unescape(encodeURIComponent(N)).length}function g(N,x,C){const p=[];let R;for(;(R=N.exec(C))!==null;)p.push({data:R[0],index:R.index,mode:x,length:R[0].length});return p}function y(N){const x=g(a.NUMERIC,s.NUMERIC,N),C=g(a.ALPHANUMERIC,s.ALPHANUMERIC,N);let p,R;return l.isKanjiModeEnabled()?(p=g(a.BYTE,s.BYTE,N),R=g(a.KANJI,s.KANJI,N)):(p=g(a.BYTE_KANJI,s.BYTE,N),R=[]),x.concat(C,p,R).sort(function(d,w){return d.index-w.index}).map(function(d){return{data:d.data,mode:d.mode,length:d.length}})}function m(N,x){switch(x){case s.NUMERIC:return o.getBitsLength(N);case s.ALPHANUMERIC:return n.getBitsLength(N);case s.KANJI:return i.getBitsLength(N);case s.BYTE:return r.getBitsLength(N)}}function h(N){return N.reduce(function(x,C){const p=x.length-1>=0?x[x.length-1]:null;return p&&p.mode===C.mode?(x[x.length-1].data+=C.data,x):(x.push(C),x)},[])}function B(N){const x=[];for(let C=0;C<N.length;C++){const p=N[C];switch(p.mode){case s.NUMERIC:x.push([p,{data:p.data,mode:s.ALPHANUMERIC,length:p.length},{data:p.data,mode:s.BYTE,length:p.length}]);break;case s.ALPHANUMERIC:x.push([p,{data:p.data,mode:s.BYTE,length:p.length}]);break;case s.KANJI:x.push([p,{data:p.data,mode:s.BYTE,length:f(p.data)}]);break;case s.BYTE:x.push([{data:p.data,mode:s.BYTE,length:f(p.data)}])}}return x}function S(N,x){const C={},p={start:{}};let R=["start"];for(let u=0;u<N.length;u++){const d=N[u],w=[];for(let v=0;v<d.length;v++){const A=d[v],j=""+u+v;w.push(j),C[j]={node:A,lastCount:0},p[j]={};for(let E=0;E<R.length;E++){const b=R[E];C[b]&&C[b].node.mode===A.mode?(p[b][j]=m(C[b].lastCount+A.length,A.mode)-m(C[b].lastCount,A.mode),C[b].lastCount+=A.length):(C[b]&&(C[b].lastCount=A.length),p[b][j]=m(A.length,A.mode)+4+s.getCharCountIndicator(A.mode,x))}}R=w}for(let u=0;u<R.length;u++)p[R[u]].end=0;return{map:p,table:C}}function k(N,x){let C;const p=s.getBestModeForData(N);if(C=s.from(x,p),C!==s.BYTE&&C.bit<p.bit)throw new Error('"'+N+'" cannot be encoded with mode '+s.toString(C)+`.
5
- Suggested mode is: `+s.toString(p));switch(C===s.KANJI&&!l.isKanjiModeEnabled()&&(C=s.BYTE),C){case s.NUMERIC:return new o(N);case s.ALPHANUMERIC:return new n(N);case s.KANJI:return new i(N);case s.BYTE:return new r(N)}}e.fromArray=function(x){return x.reduce(function(C,p){return typeof p=="string"?C.push(k(p,null)):p.data&&C.push(k(p.data,p.mode)),C},[])},e.fromString=function(x,C){const p=y(x,l.isKanjiModeEnabled()),R=B(p),u=S(R,C),d=c.find_path(u.map,"start","end"),w=[];for(let v=1;v<d.length-1;v++)w.push(u.table[d[v]].node);return e.fromArray(h(w))},e.rawSplit=function(x){return e.fromArray(y(x,l.isKanjiModeEnabled()))}})(Re)),Re}var vt;function Gn(){if(vt)return we;vt=1;const e=Q(),s=Ke(),o=In(),n=_n(),r=zn(),i=Dn(),a=qn(),l=Tt(),c=On(),f=Vn(),g=Hn(),y=Y(),m=Yn();function h(u,d){const w=u.size,v=i.getPositions(d);for(let A=0;A<v.length;A++){const j=v[A][0],E=v[A][1];for(let b=-1;b<=7;b++)if(!(j+b<=-1||w<=j+b))for(let M=-1;M<=7;M++)E+M<=-1||w<=E+M||(b>=0&&b<=6&&(M===0||M===6)||M>=0&&M<=6&&(b===0||b===6)||b>=2&&b<=4&&M>=2&&M<=4?u.set(j+b,E+M,!0,!0):u.set(j+b,E+M,!1,!0))}}function B(u){const d=u.size;for(let w=8;w<d-8;w++){const v=w%2===0;u.set(w,6,v,!0),u.set(6,w,v,!0)}}function S(u,d){const w=r.getPositions(d);for(let v=0;v<w.length;v++){const A=w[v][0],j=w[v][1];for(let E=-2;E<=2;E++)for(let b=-2;b<=2;b++)E===-2||E===2||b===-2||b===2||E===0&&b===0?u.set(A+E,j+b,!0,!0):u.set(A+E,j+b,!1,!0)}}function k(u,d){const w=u.size,v=f.getEncodedBits(d);let A,j,E;for(let b=0;b<18;b++)A=Math.floor(b/3),j=b%3+w-8-3,E=(v>>b&1)===1,u.set(A,j,E,!0),u.set(j,A,E,!0)}function N(u,d,w){const v=u.size,A=g.getEncodedBits(d,w);let j,E;for(j=0;j<15;j++)E=(A>>j&1)===1,j<6?u.set(j,8,E,!0):j<8?u.set(j+1,8,E,!0):u.set(v-15+j,8,E,!0),j<8?u.set(8,v-j-1,E,!0):j<9?u.set(8,15-j-1+1,E,!0):u.set(8,15-j-1,E,!0);u.set(v-8,8,1,!0)}function x(u,d){const w=u.size;let v=-1,A=w-1,j=7,E=0;for(let b=w-1;b>0;b-=2)for(b===6&&b--;;){for(let M=0;M<2;M++)if(!u.isReserved(A,b-M)){let D=!1;E<d.length&&(D=(d[E]>>>j&1)===1),u.set(A,b-M,D),j--,j===-1&&(E++,j=7)}if(A+=v,A<0||w<=A){A-=v,v=-v;break}}}function C(u,d,w){const v=new o;w.forEach(function(M){v.put(M.mode.bit,4),v.put(M.getLength(),y.getCharCountIndicator(M.mode,u)),M.write(v)});const A=e.getSymbolTotalCodewords(u),j=l.getTotalCodewordsCount(u,d),E=(A-j)*8;for(v.getLengthInBits()+4<=E&&v.put(0,4);v.getLengthInBits()%8!==0;)v.putBit(0);const b=(E-v.getLengthInBits())/8;for(let M=0;M<b;M++)v.put(M%2?17:236,8);return p(v,u,d)}function p(u,d,w){const v=e.getSymbolTotalCodewords(d),A=l.getTotalCodewordsCount(d,w),j=v-A,E=l.getBlocksCount(d,w),b=v%E,M=E-b,D=Math.floor(v/E),K=Math.floor(j/E),he=K+1,$=D-K,I=new c($);let _=0;const U=new Array(E),We=new Array(E);let fe=0;const zt=new Uint8Array(u.buffer);for(let G=0;G<E;G++){const me=G<M?K:he;U[G]=zt.slice(_,_+me),We[G]=I.encode(U[G]),_+=me,fe=Math.max(fe,me)}const ge=new Uint8Array(v);let Je=0,F,O;for(F=0;F<fe;F++)for(O=0;O<E;O++)F<U[O].length&&(ge[Je++]=U[O][F]);for(F=0;F<$;F++)for(O=0;O<E;O++)ge[Je++]=We[O][F];return ge}function R(u,d,w,v){let A;if(Array.isArray(u))A=m.fromArray(u);else if(typeof u=="string"){let D=d;if(!D){const K=m.rawSplit(u);D=f.getBestVersionForData(K,w)}A=m.fromString(u,D||40)}else throw new Error("Invalid data");const j=f.getBestVersionForData(A,w);if(!j)throw new Error("The amount of data is too big to be stored in a QR Code");if(!d)d=j;else if(d<j)throw new Error(`
6
- The chosen QR Code version cannot contain this amount of data.
7
- Minimum version required to store current data is: `+j+`.
8
- `);const E=C(d,w,A),b=e.getSymbolSize(d),M=new n(b);return h(M,d),B(M),S(M,d),N(M,w,0),d>=7&&k(M,d),x(M,E),isNaN(v)&&(v=a.getBestMask(M,N.bind(null,M,w))),a.applyMask(v,M),N(M,w,v),{modules:M,version:d,errorCorrectionLevel:w,maskPattern:v,segments:A}}return we.create=function(d,w){if(typeof d>"u"||d==="")throw new Error("No input text");let v=s.M,A,j;return typeof w<"u"&&(v=s.from(w.errorCorrectionLevel,s.M),A=f.from(w.version),j=a.from(w.maskPattern),w.toSJISFunc&&e.setToSJISFunction(w.toSJISFunc)),R(d,A,v,j)},we}var Ie={},_e={},Ct;function _t(){return Ct||(Ct=1,(function(e){function s(o){if(typeof o=="number"&&(o=o.toString()),typeof o!="string")throw new Error("Color should be defined as hex string");let n=o.slice().replace("#","").split("");if(n.length<3||n.length===5||n.length>8)throw new Error("Invalid hex color: "+o);(n.length===3||n.length===4)&&(n=Array.prototype.concat.apply([],n.map(function(i){return[i,i]}))),n.length===6&&n.push("F","F");const r=parseInt(n.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:r&255,hex:"#"+n.slice(0,6).join("")}}e.getOptions=function(n){n||(n={}),n.color||(n.color={});const r=typeof n.margin>"u"||n.margin===null||n.margin<0?4:n.margin,i=n.width&&n.width>=21?n.width:void 0,a=n.scale||4;return{width:i,scale:i?4:a,margin:r,color:{dark:s(n.color.dark||"#000000ff"),light:s(n.color.light||"#ffffffff")},type:n.type,rendererOpts:n.rendererOpts||{}}},e.getScale=function(n,r){return r.width&&r.width>=n+r.margin*2?r.width/(n+r.margin*2):r.scale},e.getImageWidth=function(n,r){const i=e.getScale(n,r);return Math.floor((n+r.margin*2)*i)},e.qrToImageData=function(n,r,i){const a=r.modules.size,l=r.modules.data,c=e.getScale(a,i),f=Math.floor((a+i.margin*2)*c),g=i.margin*c,y=[i.color.light,i.color.dark];for(let m=0;m<f;m++)for(let h=0;h<f;h++){let B=(m*f+h)*4,S=i.color.light;if(m>=g&&h>=g&&m<f-g&&h<f-g){const k=Math.floor((m-g)/c),N=Math.floor((h-g)/c);S=y[l[k*a+N]?1:0]}n[B++]=S.r,n[B++]=S.g,n[B++]=S.b,n[B]=S.a}}})(_e)),_e}var jt;function Zn(){return jt||(jt=1,(function(e){const s=_t();function o(r,i,a){r.clearRect(0,0,i.width,i.height),i.style||(i.style={}),i.height=a,i.width=a,i.style.height=a+"px",i.style.width=a+"px"}function n(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(i,a,l){let c=l,f=a;typeof c>"u"&&(!a||!a.getContext)&&(c=a,a=void 0),a||(f=n()),c=s.getOptions(c);const g=s.getImageWidth(i.modules.size,c),y=f.getContext("2d"),m=y.createImageData(g,g);return s.qrToImageData(m.data,i,c),o(y,f,g),y.putImageData(m,0,0),f},e.renderToDataURL=function(i,a,l){let c=l;typeof c>"u"&&(!a||!a.getContext)&&(c=a,a=void 0),c||(c={});const f=e.render(i,a,c),g=c.type||"image/png",y=c.rendererOpts||{};return f.toDataURL(g,y.quality)}})(Ie)),Ie}var ze={},bt;function Xn(){if(bt)return ze;bt=1;const e=_t();function s(r,i){const a=r.a/255,l=i+'="'+r.hex+'"';return a<1?l+" "+i+'-opacity="'+a.toFixed(2).slice(1)+'"':l}function o(r,i,a){let l=r+i;return typeof a<"u"&&(l+=" "+a),l}function n(r,i,a){let l="",c=0,f=!1,g=0;for(let y=0;y<r.length;y++){const m=Math.floor(y%i),h=Math.floor(y/i);!m&&!f&&(f=!0),r[y]?(g++,y>0&&m>0&&r[y-1]||(l+=f?o("M",m+a,.5+h+a):o("m",c,0),c=0,f=!1),m+1<i&&r[y+1]||(l+=o("h",g),g=0)):c++}return l}return ze.render=function(i,a,l){const c=e.getOptions(a),f=i.modules.size,g=i.modules.data,y=f+c.margin*2,m=c.color.light.a?"<path "+s(c.color.light,"fill")+' d="M0 0h'+y+"v"+y+'H0z"/>':"",h="<path "+s(c.color.dark,"stroke")+' d="'+n(g,f,c.margin)+'"/>',B='viewBox="0 0 '+y+" "+y+'"',k='<svg xmlns="http://www.w3.org/2000/svg" '+(c.width?'width="'+c.width+'" height="'+c.width+'" ':"")+B+' shape-rendering="crispEdges">'+m+h+`</svg>
9
- `;return typeof l=="function"&&l(null,k),k},ze}var Et;function $n(){if(Et)return Z;Et=1;const e=Pn(),s=Gn(),o=Zn(),n=Xn();function r(i,a,l,c,f){const g=[].slice.call(arguments,1),y=g.length,m=typeof g[y-1]=="function";if(!m&&!e())throw new Error("Callback required as last argument");if(m){if(y<2)throw new Error("Too few arguments provided");y===2?(f=l,l=a,a=c=void 0):y===3&&(a.getContext&&typeof f>"u"?(f=c,c=void 0):(f=c,c=l,l=a,a=void 0))}else{if(y<1)throw new Error("Too few arguments provided");return y===1?(l=a,a=c=void 0):y===2&&!a.getContext&&(c=l,l=a,a=void 0),new Promise(function(h,B){try{const S=s.create(l,c);h(i(S,a,c))}catch(S){B(S)}})}try{const h=s.create(l,c);f(null,i(h,a,c))}catch(h){f(h)}}return Z.create=s.create,Z.toCanvas=r.bind(null,o.render),Z.toDataURL=r.bind(null,o.renderToDataURL),Z.toString=r.bind(null,function(i,a,l){return n.render(i,l)}),Z}var er=$n();const tr=qt(er),nr="M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.72532 0 0.578514 4.81465 0.0491943 10.9512H15.8916V13.0488H0.0491943C0.578514 19.1853 5.72532 24 12 24Z";function De(e,s,o,n,r){return`M${e+r},${s} h${o-2*r} a${r},${r} 0 0 1 ${r},${r} v${n-2*r} a${r},${r} 0 0 1 ${-r},${r} h${-(o-2*r)} a${r},${r} 0 0 1 ${-r},${-r} v${-(n-2*r)} a${r},${r} 0 0 1 ${r},${-r} z`}function rr(e,s){return[De(e,s,7,7,2.2)+" "+De(e+1,s+1,5,5,1.6),De(e+2,s+2,3,3,1.05)]}function ir({text:e,label:s}){const o=L.useMemo(()=>{try{const m=tr.create(e,{errorCorrectionLevel:"Q"});return{size:m.modules.size,data:m.modules.data}}catch{return null}},[e]);if(!o)return t.jsx("div",{className:"gc-qr gc-qr--placeholder","aria-hidden":"true"});const{size:n,data:r}=o,i=n/2,a=n*.11,l=a+.6,c=a*.82,f=(m,h)=>m<7&&h<7||m<7&&h>=n-7||m>=n-7&&h<7,g=(m,h)=>Math.hypot(m+.5-i,h+.5-i)<l,y=[];for(let m=0;m<n;m++)for(let h=0;h<n;h++)r[m*n+h]&&(f(m,h)||g(m,h)||y.push(t.jsx("circle",{cx:h+.5,cy:m+.5,r:.34},`${m}-${h}`)));return t.jsxs("svg",{className:"gc-qr",viewBox:`0 0 ${n} ${n}`,role:"img","aria-label":s,children:[t.jsxs("g",{fill:"currentColor",children:[y,[[0,0],[n-7,0],[0,n-7]].map(([m,h])=>{const[B,S]=rr(m,h);return t.jsxs("g",{children:[t.jsx("path",{d:B,fillRule:"evenodd"}),t.jsx("path",{d:S})]},`${m}-${h}`)})]}),t.jsx("circle",{cx:i,cy:i,r:a,className:"gc-qr__badge"}),t.jsx("circle",{cx:i,cy:i,r:c,fill:"#fff"}),t.jsx("path",{d:nr,fill:"#0052FF",transform:`translate(${i-c}, ${i-c}) scale(${c*2/24})`})]})}const sr=L.lazy(()=>ce(()=>import("./WalletFunding-CvDkcGVU.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]))),or=["5","10","25"],Nt=200,ar="https://antseed.mrdn.finance/";function lr(){const e=window.open("about:blank","_blank");return e&&(e.opener=null),e}function cr(e,s){if(e.mode==="off")return{tone:"error",text:e.status==="buyer-unreachable"?"The buyer is not reachable, so deposits are not watched right now.":"This wallet is not watched for deposits right now; USDC sent to it is credited once the buyer watches it again."};const o=e.event&&e.event.seq>s?e.event:null;if(!o||o.phase==="deferred")return{tone:"idle",text:"Waiting for USDC on Base…"};const n=o.amount?T(o.amount):"USDC";return o.phase==="received"?{tone:"busy",text:`Received ${n}, preparing the deposit…`}:o.phase==="sweeping"?{tone:"busy",text:`Depositing ${n} to the credits…`}:o.phase==="credited"?{tone:"done",text:`${n} added to the balance`}:{tone:"error",text:o.error??"The deposit failed. USDC stays in the workspace wallet and is retried."}}function At({line:e}){return t.jsxs("div",{className:`gc-depwatch gc-depwatch--${e.tone}`,role:"status",children:[e.tone==="done"?t.jsx(z.check,{size:15}):t.jsx("span",{className:"gc-depwatch__dot","aria-hidden":"true"}),e.text]})}function St({amount:e,setAmount:s,firstDeposit:o}){return t.jsxs("div",{className:"gc-fund-amount",children:[t.jsx("span",{className:"gc-fund-amount__label",children:"Amount to add"}),t.jsxs("div",{className:"gc-fund-amount__row",children:[or.map(n=>t.jsxs("button",{type:"button",className:e===n?"gc-preset gc-preset--on":"gc-preset","aria-pressed":e===n,onClick:()=>s(n),children:["$",n]},n)),t.jsxs("label",{className:"gc-fund-amount__input",children:[t.jsx("span",{"aria-hidden":"true",children:"$"}),t.jsx("input",{type:"text",inputMode:"decimal",value:e,"aria-label":"Amount in USD",onChange:n=>s(n.target.value.replace(/[^0-9.]/g,""))})]})]}),t.jsxs("span",{className:"gc-fineprint",children:["1 credit = 1 USDC",o?" · The first deposit must be at least $1":""]})]})}function qe({icon:e,title:s,caption:o,badges:n,onClick:r,arrow:i}){return t.jsxs("button",{type:"button",className:"gc-method",onClick:r,children:[t.jsx("span",{className:"gc-method__icon",children:e}),t.jsxs("span",{className:"gc-method__text",children:[t.jsx("span",{className:"gc-method__title",children:s}),t.jsx("span",{className:"gc-method__caption",children:o})]}),t.jsx("span",{className:"gc-method__badges","aria-hidden":"true",children:n}),i?t.jsx(z.right,{size:16,className:"gc-method__arrow"}):t.jsx(z.external,{size:14,className:"gc-method__arrow"})]})}function ur({wallet:e,chain:s,workspaceId:o}){var $;const[n,r]=L.useState("choose"),[i,a]=L.useState("10"),[l,c]=L.useState(!1),[f,g]=L.useState(null),[y,m]=L.useState(null),h=ae(),B=re(),S=Bt(o);Ln(o);const k=L.useRef((($=e.deposit.event)==null?void 0:$.seq)??0),N=e.deposit.event!==null&&e.deposit.event.seq>k.current&&(e.deposit.event.phase==="received"||e.deposit.event.phase==="sweeping");Tn(J.wallet(o),N?4e3:8e3,4e3);const[x,C]=L.useState(null),p=e.deposit.event,R=p&&p.seq>k.current&&p.phase==="credited"?p:null;L.useEffect(()=>{R&&(B(`${R.amount?T(R.amount):"Your deposit"} added to the balance`),C(null),h.invalidateQueries({queryKey:["channels",o]}))},[R==null?void 0:R.seq]);const u=Number(i),d=Number.isFinite(u)&&u>=1,w=W(e.available)+W(e.reserved),v=Math.max(0,w-(S.data?Mt(S.data):0))+W(e.walletUsdc),A=w===0,j=Ut(s,"usdc"),E=cr(e.deposit,k.current),b=R!=null&&R.txHash?Ft(s,R.txHash):null;async function M(I){if(!d){g("Enter an amount of at least $1.");return}if(u>Nt){g(`Card deposits are limited to $${Nt}. Send more as USDC instead.`);return}m(I),g(null);try{const{url:_}=await te.wallet.cardLink(o,u,I),U=URL.canParse(_)?new URL(_).origin:null;if(!(U!=null&&U.startsWith("https://")))throw new Error("The gateway returned an invalid checkout link.");C({url:_,origin:U,provider:I})}catch(_){g(Fe(_))}finally{m(null)}}function D(){const I=lr(),_=`${ar}?buyer=${encodeURIComponent(e.address)}`;I?I.location.replace(_):window.location.href=_}const K=t.jsxs("div",{className:"gc-fund-balance",children:[t.jsx("span",{className:"gc-fund-balance__label",children:"Workspace balance"}),t.jsx("span",{className:"gc-fund-balance__value",children:T(v)}),t.jsxs("span",{className:"gc-fineprint",children:[T(e.available)," available · ",T(e.reserved)," reserved",W(e.walletUsdc)>0?` · ${T(e.walletUsdc)} in the wallet`:""]})]});if(n==="wallet")return t.jsxs("div",{className:"gc-fund",children:[t.jsx(P,{variant:"link",size:"sm",leadingIcon:t.jsx(z.left,{size:14}),onClick:()=>r("crypto"),children:"Back"}),t.jsx(de,{chain:s,children:I=>t.jsx(L.Suspense,{fallback:t.jsx(le,{rows:2}),children:t.jsx(sr,{action:"deposit",workspaceId:o,wallet:e,chain:I,onDone:()=>{B("Deposit confirmed"),h.invalidateQueries({queryKey:J.wallet(o)})}})})})]});if(n==="crypto")return t.jsxs("div",{className:"gc-fund",children:[t.jsx(P,{variant:"link",size:"sm",leadingIcon:t.jsx(z.left,{size:14}),onClick:()=>r("choose"),children:"All options"}),t.jsx(St,{amount:i,setAmount:a,firstDeposit:A}),t.jsxs("div",{className:"gc-fund-pay",children:[j&&s?t.jsx(ir,{text:dn({usdcAddress:j,chainId:s.chainId,address:e.address},d?i:""),label:`Scan to send USDC on ${s.name} to this workspace's wallet`}):t.jsx("div",{className:"gc-qr gc-qr--placeholder","aria-hidden":"true"}),t.jsxs("div",{className:"gc-fund-pay__address",children:[t.jsx("code",{className:"gc-mono",title:e.address,children:H(e.address)}),t.jsx(Ue,{iconOnly:!0,value:e.address,label:"Copy address"})]}),t.jsx(At,{line:E}),t.jsx("span",{className:"gc-fineprint",children:"Credits update automatically · a small fixed relay fee is deducted"}),b&&t.jsx("a",{className:"gc-link gc-fineprint",href:b,target:"_blank",rel:"noopener noreferrer",children:"View transaction"}),t.jsxs("div",{className:"gc-fund-pay__warn",children:["Only send USDC on ",t.jsx("strong",{children:(s==null?void 0:s.name)??"Base"}),". Other tokens or networks are not deposited."]})]}),t.jsx(P,{variant:"link",size:"sm",trailingIcon:t.jsx(z.right,{size:14}),onClick:()=>r("wallet"),children:"No wallet on your phone? Pay from a connected wallet instead"})]});const he=t.jsx(X,{isOpen:x!==null,onClose:()=>C(null),size:"md",title:"Secure checkout",bodyClassName:"gc-checkout",subtitle:x&&t.jsxs(t.Fragment,{children:[x.provider==="stripe"?"Card checkout by Outerfound, powered by Stripe (US only).":"Card checkout by Crossmint."," Closes by itself once the funds arrive."," ",t.jsx("a",{className:"gc-link",href:x.url,target:"_blank",rel:"noopener noreferrer",onClick:()=>C(null),children:"Open in a new tab"})]}),children:x&&t.jsx("iframe",{className:"gc-checkout__frame",src:x.url,title:"Antseed Pay checkout",allow:`payment ${x.origin}; clipboard-write`})});return t.jsxs("div",{className:"gc-fund",children:[he,K,t.jsx(St,{amount:i,setAmount:a,firstDeposit:A}),t.jsxs("button",{type:"button",className:"gc-method gc-method--primary",disabled:y!==null,onClick:()=>void M("crossmint"),children:[t.jsxs("span",{className:"gc-method__text",children:[t.jsx("span",{className:"gc-method__title",children:y==="crossmint"?"Opening checkout…":`Deposit${d?` ${T(u)}`:""} by card`}),t.jsx("span",{className:"gc-method__caption",children:"Powered by Crossmint"})]}),t.jsxs("span",{className:"gc-method__badges","aria-hidden":"true",children:[t.jsx(Ge,{}),t.jsx(vn,{}),t.jsx(Cn,{}),t.jsx(Ze,{})]})]}),t.jsxs("div",{className:"gc-fund-group",children:[t.jsx(qe,{icon:t.jsx(yn,{size:22}),title:"Quick deposit",caption:`USDC on ${(s==null?void 0:s.name)??"Base"}`,arrow:!0,onClick:()=>r("crypto"),badges:t.jsxs(t.Fragment,{children:[t.jsx(wn,{}),t.jsx("span",{className:"gc-fund-chip",children:t.jsx(z.qr,{size:12})})]})}),t.jsx("span",{className:"gc-fineprint",children:"* Deposited to the credits by the Antseed relayer network"})]}),f&&t.jsx(ne,{tone:"danger",children:f}),t.jsxs("button",{type:"button",className:"gc-fund-more","aria-expanded":l,onClick:()=>c(I=>!I),children:["More options ",t.jsx(z.down,{size:16,className:l?"gc-fund-more__chevron gc-fund-more__chevron--open":"gc-fund-more__chevron"})]}),l&&t.jsxs("div",{className:"gc-fund-options",children:[t.jsx(qe,{icon:t.jsx(En,{}),title:"Deposit using Meridian",caption:"USDC from any chain",onClick:D,badges:t.jsxs(t.Fragment,{children:[t.jsx(Bn,{}),t.jsx(Nn,{}),t.jsx(An,{}),t.jsx(Sn,{})]})}),t.jsx(qe,{icon:t.jsx(bn,{size:20}),title:y==="stripe"?"Opening checkout…":"Deposit using Outerfound",caption:"Card · US only",onClick:()=>void M("stripe"),badges:t.jsxs(t.Fragment,{children:[t.jsx(Ze,{}),t.jsx(Ge,{}),t.jsx(jn,{})]})})]}),t.jsx(At,{line:E}),t.jsxs("div",{className:"gc-fund-trust",children:[t.jsxs("span",{children:[t.jsx(z.lock,{size:12})," Encrypted & secure · Non-custodial escrow on ",(s==null?void 0:s.name)??"Base"]}),t.jsxs("span",{children:[t.jsx(z.check,{size:12})," Pay per request · No subscriptions, no lock-in"]})]}),t.jsx("p",{className:"gc-fineprint gc-fund-fine",children:"Card checkout opens here and closes itself once the funds arrive. It is not available in every region."})]})}const dr=L.lazy(()=>ce(()=>import("./OperatorActions-DTrUYN6Z.js"),__vite__mapDeps([11,1,2,8,3,4,5,6,7,9]))),hr={info:"neutral",success:"success",warning:"warning",danger:"danger"},fr={authorize:"Authorize a wallet",manage:"Transfer or remove the authorized wallet"};function gr({workspaceId:e,action:s,onActionChange:o}){const n=Rt(e),r=ue(),i=re(),{apply:a,refresh:l}=Ot(e),[c,f]=L.useState(null),g=s!==void 0?s:c,y=p=>o?o(p):f(p),[m,h]=L.useState(!1),[B,S]=L.useState(!1),[k,N]=L.useState(null);async function x(){S(!0),N(null);try{await l()}catch(p){N(p)}finally{S(!1)}}return t.jsxs(Oe,{title:"Authorized wallet",description:"Receives this workspace's withdrawals and ANTS rewards, and is the only wallet that can sign them.",children:[t.jsx(Ve,{query:n,rows:2,children:p=>{var R;return t.jsx(mr,{state:p,explorerUrl:((R=r.data)==null?void 0:R.explorerUrl)??null,refreshing:B,onReload:()=>void x(),onAction:y,onLink:()=>h(!0)})}}),k?t.jsx(ne,{tone:"danger",children:Fe(k)}):null,t.jsx(X,{isOpen:g!==null&&n.data!==void 0,onClose:()=>y(null),size:"md",title:g?fr[g]:"",subtitle:g==="manage"&&n.data?`Signed by ${H(n.data.operator)} itself; the gateway cannot do it.`:"Withdrawals and ANTS rewards will go to the wallet you authorize, and only it can hand the role on.",children:g&&n.data&&t.jsx(de,{chain:r.data,error:r.error,children:p=>t.jsx(L.Suspense,{fallback:t.jsx(le,{rows:2}),children:t.jsx(dr,{mode:g,workspaceId:e,state:n.data,chain:p,onStale:()=>void x(),onChanged:R=>{a(R),y(null),i(He(R.operator)?`Authorized wallet is now ${H(R.operator)}`:"Authorized wallet removed")}})})})}),m&&n.data&&t.jsx(Vt,{isOpen:!0,startWith:"wallet",onClose:()=>h(!1),intro:t.jsxs("p",{className:"gc-muted",children:["Connect ",t.jsx("code",{className:"gc-mono",children:H(n.data.operator)})," and sign the message to add it as one of your sign-in methods. It then shows here as your wallet, and you can manage it."]}),onCredentialAdded:()=>{x(),i("Wallet linked to your account")}})]})}function mr({state:e,explorerUrl:s,refreshing:o,onReload:n,onAction:r,onLink:i}){const a=Ht(e,null),l=He(e.operator),c=s&&l?`${s.replace(/\/+$/,"")}/address/${e.operator}`:null,f=l&&e.relation!=="self";return t.jsxs("div",{className:"gc-operator",children:[t.jsxs("div",{className:"gc-operator__main",children:[t.jsxs("div",{className:"gc-operator__title",children:[t.jsx("span",{className:"gc-strong",children:a.title}),l&&t.jsx(Ue,{iconOnly:!0,value:e.operator,label:"Copy address"}),t.jsx(Lt,{tone:hr[a.tone],children:a.badge})]}),t.jsx("p",{className:"gc-operator__summary",children:a.summary}),t.jsxs("p",{className:"gc-fineprint gc-operator__meta",children:[c&&t.jsxs(t.Fragment,{children:[t.jsx("a",{className:"gc-link",href:c,target:"_blank",rel:"noopener noreferrer",children:"explorer"})," · "]}),"Checked ",Kt(e.checkedAt)," ·"," ",t.jsx(P,{variant:"link",size:"sm",disabled:o,onClick:n,children:o?"checking…":"check again"})]})]}),t.jsxs("div",{className:"gc-operator__actions",children:[a.canAuthorize&&t.jsx(P,{size:"sm",onClick:()=>r("authorize"),children:"Authorize a wallet"}),a.canLink&&t.jsx(P,{size:"sm",onClick:i,children:"Link to my account"}),f&&t.jsx(P,{size:"sm",variant:"outline",onClick:()=>r("manage"),children:"Transfer or remove"})]}),(a.body!==a.summary||e.relation==="none"&&!e.canAuthorize)&&t.jsxs(fn,{className:"gc-operator__details",title:"What does this mean?",children:[t.jsx("p",{className:"gc-muted",children:a.body}),e.relation==="none"&&!e.canAuthorize&&t.jsx("p",{className:"gc-fineprint",children:"Only the organization owner can authorize a wallet, with one of their own sign-in wallets added at least 24 hours ago."})]})]})}const pr=L.lazy(()=>ce(()=>import("./WalletFunding-CvDkcGVU.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]))),wr=L.lazy(()=>ce(()=>import("./ChannelClose-9Lq8KHLH.js"),__vite__mapDeps([12,1,2,8,3,4,5,6,7,9,10])));function yr(e,s=15e3){const[o,n]=L.useState(()=>Date.now());return L.useEffect(()=>{if(!e)return;n(Date.now());const r=setInterval(()=>n(Date.now()),s);return()=>clearInterval(r)},[e,s]),o}function xr({workspaceId:e,canCooperate:s,onAuthorize:o}){const[n,r]=L.useState(!1),[i,a]=L.useState(null),[l,c]=L.useState(()=>new Set),f=ae(),g=re(),y=ue(),m=en({queryKey:J.channels(e,n),queryFn:()=>te.wallet.channels(e,n)}),h=m.data??[],B=h.some(u=>u.status==="closing"),S=yr(B),k=async()=>{const u=await te.wallet.channels(e,n,!0);f.setQueryData(J.channels(e,n),u),f.invalidateQueries({queryKey:["channels",e]}),f.invalidateQueries({queryKey:J.wallet(e)})},N=h.map(tn).filter(u=>u!==null&&u>S).sort((u,d)=>u-d)[0];L.useEffect(()=>{if(N===void 0)return;const u=setTimeout(()=>void k().catch(()=>{}),Math.max(1e3,N-Date.now()+5e3));return()=>clearTimeout(u)},[N]);const x=nn({mutationFn:u=>te.wallet.closeChannel(e,u.peerId),onSuccess:()=>{a(null),g("Channel closed by the seller")},onError:(u,d)=>c(w=>new Set(w).add(d.channelId)),invalidate:[["channels",e],J.wallet(e)]}),C=(u,d=l.has(u.channelId))=>{x.reset();const w=Ye(u,d||!s);w==="cooperative"?a({channel:u,mode:"cooperative"}):w==="on-chain"?a({channel:u,mode:"request"}):w==="withdraw"&&a({channel:u,mode:"withdraw"})},p=rn(h),R=u=>u.sellerName??H(u.peerId);return t.jsx("section",{id:"gc-channels",className:"gc-anchor",children:t.jsxs(Oe,{flush:!0,title:"Payment channels",description:"Funds reserved with sellers. Closing a channel returns what was not spent.",actions:t.jsx(mn,{checked:n,onChange:r,label:"Include closed"}),children:[p.count>0&&t.jsxs(ne,{tone:"warning",title:`${p.count} channel${p.count===1?"":"s"} ready to withdraw`,action:t.jsx(P,{size:"sm",onClick:()=>C(h.find(u=>u.status==="withdrawable")),children:"Withdraw"}),children:["About ",T(p.amount)," of unused reserve can return to the balance. The authorized wallet signs the withdrawal."]}),t.jsx(Ve,{query:m,children:u=>t.jsx(gn,{label:"Payment channels",rows:u,rowKey:d=>d.channelId,rowLabel:d=>`channel with ${R(d)}`,actions:d=>{const w=Ye(d,l.has(d.channelId)||!s);return[w==="cooperative"&&{label:"Close channel",onSelect:()=>C(d)},(w==="cooperative"||w==="on-chain")&&{label:"Close on chain",onSelect:()=>C(d,!0)},w==="withdraw"&&{label:"Withdraw reserve",onSelect:()=>C(d)}]},empty:t.jsx(cn,{icon:t.jsx(z.wallet,{size:18}),title:n?"No channels yet":"No open channels",body:"A channel opens the first time a seller serves this workspace."}),columns:[{key:"seller",header:"Seller",render:d=>d.sellerName??t.jsx(kt,{title:d.peerId,children:H(d.peerId)})},{key:"status",header:"Status",render:d=>t.jsx(Lt,{tone:on(d),children:sn(d,S)})},{key:"reserved",header:"Reserved",align:"right",render:d=>T(d.reserved)},{key:"spent",header:"Spent",align:"right",render:d=>T(d.spent)},{key:"returns",header:"Returns on close",align:"right",secondary:!0,optional:!0,render:d=>an(d)?T(Qe(d)):"—"},{key:"opened",header:"Opened",secondary:!0,render:d=>ln(d.openedAt)}]})}),!s&&h.some(u=>u.canCooperativeClose)&&t.jsx("p",{className:"gc-fineprint gc-panel-note",children:"Asking a seller to close needs an organization admin; you can still close on chain with the authorized wallet."}),t.jsx(X,{isOpen:(i==null?void 0:i.mode)==="cooperative",onClose:()=>{a(null),x.reset()},size:"md",title:"Close this channel?",subtitle:i?`With ${R(i.channel)}. About ${T(Qe(i.channel))} returns to the balance.`:void 0,footer:i&&t.jsxs("div",{className:"gc-actions",children:[t.jsx(P,{variant:"ghost",onClick:()=>{a(null),x.reset()},children:"Cancel"}),x.error?t.jsxs(t.Fragment,{children:[t.jsx(P,{variant:"outline",disabled:x.isPending,onClick:()=>x.mutate(i.channel),children:"Try again"}),t.jsx(P,{onClick:()=>{x.reset(),a({channel:i.channel,mode:"request"})},children:"Close on chain instead"})]}):t.jsx(P,{disabled:x.isPending,onClick:()=>x.mutate(i.channel),children:x.isPending?"Asking the seller…":"Close channel"})]}),children:t.jsxs("div",{className:"gc-stack",children:[t.jsx("p",{className:"gc-muted",children:"The seller settles what was spent and the rest returns to your available balance at once. A new channel opens if this seller is used again."}),x.isPending&&t.jsx("p",{className:"gc-fineprint",children:"Waiting for the seller (up to a minute)…"}),x.error?t.jsx(ne,{tone:"danger",title:"The seller did not close it",children:un(Fe(x.error))}):null]})}),t.jsx(X,{isOpen:(i==null?void 0:i.mode)==="request"||(i==null?void 0:i.mode)==="withdraw",onClose:()=>a(null),size:"md",title:(i==null?void 0:i.mode)==="withdraw"?"Withdraw the unused reserve":"Close on chain",subtitle:i?`Channel with ${R(i.channel)}. Does not need the seller.`:void 0,children:i&&i.mode!=="cooperative"&&t.jsx(de,{chain:y.data,error:y.error,children:u=>t.jsx(L.Suspense,{fallback:t.jsx(le,{rows:2}),children:t.jsx(wr,{workspaceId:e,channel:i.channel,chain:u,step:i.mode,onAuthorize:()=>{a(null),o()},onDone:d=>{k().catch(()=>{}),d==="request"?g("Close requested. Withdraw in 15 minutes."):(g("Reserve returned to the balance"),a(null))}})})})})]})})}function vr({wallet:e,workspaceId:s,onWithdraw:o}){const n=Bt(s),r=n.data?Mt(n.data):null,i=()=>{const l=document.getElementById("gc-channels");if(!l)return;l.scrollIntoView({behavior:"smooth",block:"start"}),l.classList.remove("gc-flash"),l.offsetWidth,l.classList.add("gc-flash");let c=!1;const f=()=>{var y;if(c)return;c=!0;const g=l.querySelectorAll('[aria-haspopup="menu"]');g.length===1?g[0].click():(y=g[0])==null||y.focus({preventScroll:!0})};window.addEventListener("scrollend",f,{once:!0}),window.setTimeout(f,700)},a=Zt(e);return Cr(e,a),t.jsxs(Oe,{title:"Balance",actions:t.jsx(P,{size:"sm",variant:"outline",onClick:o,children:"Withdraw"}),children:[Xt(e)&&t.jsx("div",{className:"gc-panel-alert",children:t.jsx(ne,{tone:"warning",title:"The whole balance is reserved in channels",action:t.jsx(P,{size:"sm",variant:"outline",onClick:i,children:"Manage channels"}),children:"Nothing is available for new sellers or withdrawals. Close channels you no longer use to return their unused reserve, or add funds."})}),t.jsxs("div",{className:"gc-grid gc-grid--4 gc-figures",children:[t.jsx(ie,{label:"Available",value:T(e.available),strong:!0}),t.jsx(ie,{label:"Reserved in channels",value:T(e.reserved)}),t.jsx(ie,{label:"Authorized, not yet charged",value:r===null?"…":T(r)}),t.jsx(ie,{label:"Credit limit",value:e.creditLimit===null?"None":T(e.creditLimit)})]}),a?t.jsxs("p",{className:"gc-wallet-meta gc-pending",role:"status",children:[t.jsx("span",{className:"gc-attention","aria-hidden":"true"}),t.jsxs("span",{children:[t.jsxs("strong",{children:["Pending: ",T(e.walletUsdc)]})," arrived in the workspace wallet and is moving into the available balance. This page updates by itself."]})]}):W(e.walletUsdc)>0&&t.jsxs("p",{className:"gc-fineprint gc-wallet-meta",children:[T(e.walletUsdc)," in the wallet, not deposited yet. ",$t(e)]}),t.jsxs("p",{className:"gc-fineprint gc-wallet-meta",children:["Workspace wallet ",t.jsx(kt,{title:e.address,children:H(e.address)})," ",t.jsx(Ue,{iconOnly:!0,value:e.address,label:"Copy address"}),t.jsx("span",{"aria-hidden":"true",children:"·"})," Authorized spend is charged from channel reserves when sellers settle. Withdrawals go to the authorized wallet below."]})]})}function Cr(e,s){const o=re(),n=L.useRef(null);L.useEffect(()=>{if(s){n.current??(n.current=W(e.available));return}if(n.current===null)return;const r=W(e.available)-n.current;n.current=null,r>0&&o(`Payment received: ${T(String(r))} added to the available balance`)},[s,e.available,o])}function jr({wallet:e,workspaceId:s,isOpen:o,onClose:n,onAuthorize:r}){const i=ae(),a=re(),l=ue(),c=Rt(s),f=c.data&&He(c.data.operator)?c.data.operator:null;return t.jsx(X,{isOpen:o,onClose:n,title:"Withdraw",subtitle:`${T(e.available)} available. ${f?`Sent to the authorized wallet ${H(f)}, which must sign it.`:"Withdrawals go to the authorized wallet, which must sign them."}`,children:t.jsx(de,{chain:l.data,error:l.error,children:g=>t.jsx(L.Suspense,{fallback:t.jsx(le,{rows:2}),children:t.jsx(pr,{action:"withdraw",workspaceId:s,wallet:e,chain:g,onAuthorize:()=>{n(),r()},onDone:()=>{a("Withdrawal confirmed"),i.invalidateQueries({queryKey:J.wallet(s)})}})})})})}function Lr(){const{workspace:e,viewer:s}=Wt(),o=Jt(e.id),n=ue(),[r,i]=L.useState(()=>new URLSearchParams(window.location.search).get("fund")==="1"?"fund":null),[a,l]=L.useState(null);return t.jsxs("div",{className:"gc-page",children:[t.jsx(Qt,{title:"Wallet & Funding",description:`Credits that pay for ${e.name}'s requests.`,actions:t.jsx(P,{variant:"brand",leadingIcon:t.jsx(z.plus,{size:14}),onClick:()=>i("fund"),children:"Add funds"})}),t.jsx(Ve,{query:o,rows:2,children:c=>t.jsxs(t.Fragment,{children:[t.jsx(Yt,{stale:c.stale}),t.jsx(vr,{wallet:c,workspaceId:e.id,onWithdraw:()=>i("withdraw")}),t.jsx(gr,{workspaceId:e.id,action:a,onActionChange:l}),t.jsx(X,{isOpen:r==="fund",onClose:()=>i(null),size:"md",title:"Add funds",subtitle:`Credits that pay for ${e.name}'s requests.`,children:t.jsx(ur,{wallet:c,chain:n.data,workspaceId:e.id})}),t.jsx(jr,{wallet:c,workspaceId:e.id,isOpen:r==="withdraw",onClose:()=>i(null),onAuthorize:()=>l("authorize")})]})}),t.jsx(xr,{workspaceId:e.id,canCooperate:Gt(s),onAuthorize:()=>l("authorize")})]})}export{Lr as default};
@@ -1 +0,0 @@
1
- import{j as s,r as c,B as o,v as f,ah as g,ag as w,ac as x}from"./index-DqdaAEyo.js";import{C as j}from"./ConnectWallet-DSqRjyNA.js";import{W as p,u as y,a as C,b as W,w as v}from"./en_US-Y4ZOVFV4-CzjJ6dvA.js";import"./clsx-B-dksMZM.js";import"./index-D5ERwHFX.js";import"./index-BwpQbdIU.js";function k({onConfirmed:e}){const{address:t,isConnected:u}=y(),{disconnect:d}=C(),{signMessageAsync:h}=W(),[r,n]=c.useState(!1),[i,l]=c.useState(null);return!u||!t?s.jsx(j,{label:"Connect your wallet",size:"sm",variant:"outline",fullWidth:!1}):s.jsxs("div",{className:"gc-stack gc-stack--tight",children:[s.jsxs("div",{className:"gc-inline gc-inline--wrap",children:[s.jsx(o,{size:"sm",disabled:r,onClick:async()=>{n(!0),l(null);try{e(await g(t,async a=>{try{return await h({message:a})}catch(m){throw new Error(v(m,"Signing was cancelled."))}}))}catch(a){l(w(a))}finally{n(!1)}},children:r?"Check your wallet…":`Confirm with ${f(t)}`}),s.jsx(o,{size:"sm",variant:"ghost",onClick:()=>d(),children:"Use a different wallet"})]}),i&&s.jsx(x,{tone:"danger",children:i})]})}function M(e){return s.jsx(p,{chain:null,children:s.jsx(k,{...e})})}export{M as default};
@@ -1 +0,0 @@
1
- import{j as s,ac as N,H as M,aj as Q,r as k,ak as j,al as Y,l as C,f as g,v as E,T,B as W}from"./index-DqdaAEyo.js";import{B as G,r as H,m as K,c as B,n as z,o as J,p as L,q as U,t as V,W as X,u as R,v as O}from"./en_US-Y4ZOVFV4-CzjJ6dvA.js";import{u as q,a as P,T as _,D as A,s as Z}from"./useTx-BRRWrJlB.js";import{a as ee,C as te}from"./ConnectWallet-DSqRjyNA.js";import{O as ne}from"./OperatorGateAlert-CCPFpK6Y.js";import"./clsx-B-dksMZM.js";import"./index-D5ERwHFX.js";import"./index-BwpQbdIU.js";class se extends G{constructor({value:t}){super(`Number \`${t}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function ae(n,t){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(n))throw new se({value:n});let[a,e="0"]=n.split(".");const i=a.startsWith("-");if(i&&(a=a.slice(1)),e=e.replace(/(0+)$/,""),e.length>t){const[d,r,c]=[e.slice(0,t-1),e.slice(t-1,t),e.slice(t)],o=Math.round(+`${r}.${c}`);o>9?e=`${BigInt(d)+BigInt(1)}0`.padStart(d.length+1,"0"):e=`${d}${o}`,e.length>t&&(e=e.slice(1),a=`${BigInt(a)+1n}`),e=e.slice(0,t)}else e=e.padEnd(t,"0");return BigInt(`${i?"-":""}${a}${e}`)}function re(n,t={}){return{async queryFn({queryKey:a}){const e=t.abi;if(!e)throw new Error("abi is required");const{functionName:i,scopeKey:d,...r}=a[1],c=(()=>{const o=a[1];if(o.address)return{address:o.address};if(o.code)return{code:o.code};throw new Error("address or code is required")})();if(!i)throw new Error("functionName is required");return H(n,{abi:e,functionName:i,args:r.args,...c,...r})},queryKey:oe(t)}}function oe(n={}){const{abi:t,...a}=n;return["readContract",K(a)]}function D(n={}){const{abi:t,address:a,functionName:e,query:i={}}=n,d=n.code,r=B(n),c=z({config:r}),o=re(r,{...n,chainId:n.chainId??c}),u=!!((a||d)&&t&&e&&(i.enabled??!0));return J({...i,...o,enabled:u,structuralSharing:i.structuralSharing??L})}const I=U(["function balanceOf(address account) view returns (uint256)","function allowance(address owner, address spender) view returns (uint256)","function approve(address spender, uint256 amount) returns (bool)"]),ie=U(["function deposit(address buyer, uint256 amount) external","function withdraw(address buyer, uint256 amount) external","function setOperator(address buyer, address operator, uint256 nonce, bytes buyerSig) external","function transferOperator(address buyer, address newOperator) external"]),$=1;function F(n){try{return ae(n.trim()||"0",6)}catch{return 0n}}function de({wallet:n,chain:t,onDone:a}){const{address:e}=R(),i=q(t.chainId),{writeContractAsync:d}=P(),[r,c]=k.useState(""),o=j(t,"usdc"),u=j(t,"deposits"),v=D({address:o??void 0,abi:I,functionName:"balanceOf",args:e?[e]:void 0,chainId:t.chainId,query:{enabled:!!o&&!!e,staleTime:6e4,refetchOnWindowFocus:!1}}),l=D({address:o??void 0,abi:I,functionName:"allowance",args:e&&u?[e,u]:void 0,chainId:t.chainId,query:{enabled:!!o&&!!e&&!!u,staleTime:6e4,refetchOnWindowFocus:!1}});if(!o||!u)return s.jsx(N,{tone:"warning",children:"The gateway did not report the USDC and deposits contract addresses."});if(!e)return s.jsx(te,{label:"Connect wallet to pay"});const h=F(r),p=v.data,x=C(n.available)+C(n.reserved)===0;let m=null;r!==""&&(h<=0n||!/^\d+(\.\d{0,6})?$/.test(r.trim())?m="Enter an amount like 20 or 12.50.":x&&Number(r)<$?m=`The first deposit is at least ${$} USDC.`:p!==void 0&&h>p&&(m=`Your wallet holds ${g(Number(O(p,6)))} USDC.`));const b=l.data!==void 0&&l.data<h;async function w(){const f=[];((await l.refetch()).data??0n)<h&&f.push({label:"Approve USDC",send:()=>d({address:o,abi:I,functionName:"approve",args:[u,h],chainId:t.chainId})}),f.push({label:"Deposit",send:()=>d({address:u,abi:ie,functionName:"deposit",args:[n.address,h],chainId:t.chainId})});const S=await i.run(f);S&&(c(""),v.refetch(),a(S))}return s.jsxs("div",{className:"gc-stack",children:[s.jsxs("div",{className:"gc-kv",children:[s.jsx("span",{children:"Paying from"}),s.jsx("code",{children:E(e)}),s.jsx("span",{children:p!==void 0?`${g(Number(O(p,6)))} USDC`:"…"})]}),s.jsx(T,{label:"Amount (USDC)",inputMode:"decimal",placeholder:"20",value:r,error:m,onChange:f=>c(f.target.value)}),s.jsx(_,{chain:t,runner:i}),s.jsx(W,{fullWidth:!0,disabled:i.running||!r||!!m,onClick:()=>void w(),children:i.running?"Working…":`Pay ${r?g(Number(r)):""} USDC`}),s.jsxs("p",{className:"gc-fineprint",children:[b?"You will confirm two transactions: a one-time USDC approval, then the deposit.":"You will confirm one transaction."," Network fees are paid in ETH on ",t.name,"."]})]})}function ce({workspaceId:n,wallet:t,chain:a,onDone:e,onAuthorize:i}){const{address:d}=R(),r=B(),c=q(a.chainId),{writeContractAsync:o}=P(),u=M(n),{refresh:v}=Q(n),[l,h]=k.useState(""),p=j(a,"deposits");if(!p)return s.jsx(N,{tone:"warning",children:"The gateway did not report the deposits contract address."});const x=Y(u.data,d,"withdraw");if(!x.ok)return s.jsx(ne,{gate:x,state:u.data,connected:d,onAuthorize:i});const m=F(l),b=C(t.available);let w=null;return l!==""&&(m<=0n||!/^\d+(\.\d{0,6})?$/.test(l.trim())?w="Enter an amount like 20 or 12.50.":Number(l)>b&&(w=`Only ${g(b)} is available.`)),s.jsxs("div",{className:"gc-stack",children:[s.jsxs("div",{className:"gc-kv",children:[s.jsx("span",{children:"Sending to"}),s.jsx("code",{children:E(d)}),s.jsxs("span",{children:[g(b)," available"]})]}),s.jsx(T,{label:"Amount (USDC)",inputMode:"decimal",value:l,error:w,onChange:f=>h(f.target.value)}),s.jsx(_,{chain:a,runner:c,done:"Withdrawal confirmed."}),s.jsx(W,{fullWidth:!0,disabled:c.running||!l||!!w,onClick:async()=>{const f=[t.address,m],y=await c.run([{label:"Withdraw",check:()=>Z(r,{account:d,address:p,abi:A,functionName:"withdraw",args:f,chainId:a.chainId}),send:()=>o({address:p,abi:A,functionName:"withdraw",args:f,chainId:a.chainId})}],{onStale:()=>void v().catch(()=>{})});y&&(h(""),e(y))},children:c.running?"Working…":"Withdraw"}),s.jsx("p",{className:"gc-fineprint",children:"Reserved funds in open channels stay locked until the channels close."})]})}const ue={deposit:de,withdraw:ce};function ve(n){if(!V(n.wallet.address))return s.jsxs(N,{tone:"warning",children:["This workspace has no wallet address yet, so it cannot ",n.action==="deposit"?"receive deposits":"withdraw",". Reload once the gateway has set up the workspace wallet."]});const t=ue[n.action];return s.jsx(X,{chain:n.chain,children:s.jsxs("div",{className:"gc-stack",children:[s.jsx(ee,{}),s.jsx(t,{...n})]})})}export{ve as default};
@@ -1 +0,0 @@
1
- import{j as e,r as l,v as x,B as u,ac as S,e as j,ag as k}from"./index-DqdaAEyo.js";import{W,u as b,a as A,b as B,C as I,w as E}from"./en_US-Y4ZOVFV4-CzjJ6dvA.js";import"./clsx-B-dksMZM.js";import"./index-D5ERwHFX.js";import"./index-BwpQbdIU.js";function F({ready:t,open:i}){const r=l.useRef(!1);return l.useEffect(()=>{t&&!r.current&&(r.current=!0,i())},[t,i]),null}function M({enrollment:t,onSignedIn:i,autoConnect:r,actionLabel:o,onError:c}){const{address:n,isConnected:m}=b(),{disconnect:w}=A(),{signMessageAsync:p}=B(),[d,f]=l.useState(!1),[g,h]=l.useState(null),y=o?o(x(n)):`Sign in as ${x(n)}`;async function C(){if(n){f(!0),h(null);try{const{message:s}=await j.auth.walletNonce(n);let a;try{a=await p({message:s})}catch(v){throw new Error(E(v,"Signing was cancelled."))}i(await j.auth.walletVerify(s,a,t))}catch(s){c!=null&&c(s)||h(k(s))}finally{f(!1)}}}return e.jsxs("div",{className:"gc-stack",children:[!m||!n?e.jsx(I.Custom,{children:({openConnectModal:s,mounted:a})=>e.jsxs(e.Fragment,{children:[r&&e.jsx(F,{ready:a,open:s}),e.jsx(u,{variant:"outline",fullWidth:!0,disabled:!a,onClick:s,children:"Connect a wallet"})]})}):e.jsxs(e.Fragment,{children:[e.jsx(u,{variant:"outline",fullWidth:!0,disabled:d,onClick:()=>void C(),children:d?"Check your wallet…":y}),e.jsx(u,{variant:"ghost",size:"sm",onClick:()=>w(),children:"Use a different wallet"})]}),g&&e.jsx(S,{tone:"danger",children:g})]})}function P(t){return e.jsx(W,{chain:null,children:e.jsx(M,{...t})})}export{P as default};
@@ -1 +0,0 @@
1
- import{u as S,m as W,o as L,p as I,r as p,s as A,j as s,P as O,B as b,I as z,k as B,Q as F,t as w,M as C,v as N,w as M,x as D,y as E,z as T,A as q,C as V,q as f,e as v,T as P,n as R}from"./index-DqdaAEyo.js";import{u as K,a as Q,P as _}from"./PolicyField-DIPl0B1x.js";import{l as G,d as H,L as U}from"./limits-DETkh9Vy.js";import{D as J}from"./DataTable-CDFSD9Kq.js";import"./PolicyEditor-BdoaX9gK.js";import"./SelectField-D8fxDUNO.js";import"./Segmented-Qx6JB6EU.js";import"./roving-DkptacxO.js";import"./Switch-Ba56zux7.js";import"./Disclosure-UjXa2WU7.js";import"./index-D5ERwHFX.js";function X({initial:r,onDone:d}){const{viewer:g}=S(),h=W(g),[i,k]=p.useState((r==null?void 0:r.name)??""),[y,x]=p.useState(G(r==null?void 0:r.limits)),[m,c]=p.useState(""),n=K(r==null?void 0:r.routingPolicy),o=Q(),l=A({mutationFn:()=>{const t={name:i.trim(),limits:H(y),routingPolicy:n.build()};return o.save([t.routingPolicy],e=>{if(r){const{limits:a,...j}=t;return v.workspaces.update(r.id,h?{...j,limits:a}:j,e)}return v.workspaces.create(m.trim()?{...t,buyerIdentity:m.trim()}:t,e)})},onSuccess:d,invalidate:[f.group("workspaces"),f.me],toast:r?"Workspace saved":"Workspace created"}),u=r?"Save":"Create workspace";return s.jsxs("form",{className:"gc-stack",onSubmit:t=>{t.preventDefault(),l.mutate()},children:[s.jsx(P,{label:"Name",required:!0,value:i,onChange:t=>k(t.target.value)}),!r&&s.jsx(P,{label:"Buyer identity (optional)",value:m,onChange:t=>c(t.target.value),hint:"Leave blank to create a new wallet for this workspace. Enter an existing identity name to reuse its wallet."}),h?s.jsxs("div",{children:[s.jsx("div",{className:"as-field__label gc-label-row",children:"Workspace budgets (USD)"}),s.jsx(U,{idPrefix:"ws-limit",value:y,onChange:x})]}):s.jsxs("p",{className:"gc-muted",children:["Budgets: ",E(r==null?void 0:r.limits),". Organization admins set them."]}),s.jsx(_,{draft:n.draft,setDraft:n.setDraft}),l.error?s.jsx(R,{error:l.error,title:"Could not save"}):null,s.jsxs("div",{className:"gc-actions",children:[s.jsx(b,{variant:"ghost",onClick:d,children:"Cancel"}),s.jsx(b,{type:"submit",disabled:l.isPending||!i.trim(),children:l.isPending?"Saving…":u})]}),o.dialog]})}function ie(){const{viewer:r,setWorkspaceId:d,workspace:g,me:h}=S(),i=W(r),k=t=>i||h.workspaces.some(e=>e.workspace.id===t.id&&e.role==="admin"),y=L(),x=I(),m=t=>{var e;return(e=x.data)==null?void 0:e.find(a=>a.workspaceId===t.id)},[c,n]=p.useState(null),[o,l]=p.useState(null),u=A({mutationFn:t=>v.workspaces.remove(t.id),onSuccess:()=>l(null),invalidate:[f.group("workspaces"),f.me]});return s.jsxs("div",{className:"gc-page",children:[s.jsx(O,{title:"Workspaces",description:"Each workspace has its own wallet, budgets, routing policy, members and keys.",actions:i&&s.jsx(b,{variant:"brand",leadingIcon:s.jsx(z.plus,{size:14}),onClick:()=>n("new"),children:"New workspace"})}),s.jsx(B,{flush:!0,children:s.jsx(F,{query:y,children:t=>s.jsx(J,{label:"Workspaces",rows:t,rowKey:e=>e.id,rowLabel:e=>e.name,onRowClick:e=>k(e)&&n(e),actions:e=>[e.id!==g.id&&{label:"Open",onSelect:()=>d(e.id)},{label:"Members",onSelect:()=>{d(e.id),D("members")}},k(e)&&{label:"Edit",onSelect:()=>n(e)},i&&!e.isDefault&&{label:"Delete",tone:"danger",onSelect:()=>l(e)}],columns:[{key:"name",header:"Name",sortValue:e=>e.name,render:e=>s.jsxs("span",{className:"gc-strong",children:[e.name," ",e.isDefault&&s.jsx(w,{children:"Default"})," ",e.id===g.id&&s.jsx(w,{tone:"info",children:"Open"})]})},{key:"wallet",header:"Wallet",secondary:!0,render:e=>e.walletAddress?s.jsx(C,{title:e.walletAddress,children:N(e.walletAddress)}):s.jsx("span",{className:"gc-muted",children:e.buyerIdentity})},{key:"operator",header:"Authorized wallet",secondary:!0,render:e=>{const a=m(e);return a?a.relation===null?s.jsx("span",{className:"gc-muted",title:"The wallet or the chain could not be read",children:"unknown"}):M(a)?s.jsxs("span",{className:"gc-inline",children:[s.jsx(w,{tone:"warning",children:"Not set"}),a.canAuthorize&&s.jsx(b,{variant:"link",size:"sm",onClick:j=>{j.stopPropagation(),d(e.id),D("wallet")},children:"Authorize"})]}):a.relation==="self"?s.jsx("span",{className:"gc-muted",children:"Workspace wallet"}):s.jsx(C,{title:a.operator??void 0,children:N(a.operator)}):s.jsx("span",{className:"gc-muted",children:x.isLoading?"…":"—"})}},{key:"members",header:"Members",align:"right",secondary:!0,sortValue:e=>e.memberCount,render:e=>e.memberCount},{key:"keys",header:"Keys",align:"right",sortValue:e=>e.keyCount,render:e=>e.keyCount},{key:"limits",header:"Budgets",secondary:!0,optional:!0,render:e=>s.jsx("span",{className:"gc-muted",children:E(e.limits)})},{key:"policy",header:"Routing",secondary:!0,optional:!0,render:e=>s.jsx("span",{className:"gc-muted",children:T(e.routingPolicy)})}]})})}),s.jsx(q,{isOpen:c!==null,onClose:()=>n(null),size:"lg",title:c==="new"?"New workspace":"Edit workspace",children:c!==null&&s.jsx(X,{initial:c==="new"?null:c,onDone:()=>n(null)})}),s.jsx(V,{isOpen:o!==null,busy:u.isPending,error:u.error,onClose:()=>{l(null),u.reset()},onConfirm:()=>o&&u.mutate(o),title:"Delete this workspace?",confirmLabel:"Delete workspace",body:s.jsxs(s.Fragment,{children:["Deleting ",s.jsx("strong",{children:o==null?void 0:o.name})," is only possible once it has no active keys and no balance. Withdraw funds and revoke keys first."]})})]})}export{ie as default};
@@ -1,6 +0,0 @@
1
- import{w as o}from"./core-Cw7VIz-a.js";import"./index-DqdaAEyo.js";import"./index.es-Dajqanx_.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-CzjJ6dvA.js";import"./clsx-B-dksMZM.js";import"./index-D5ERwHFX.js";import"./index-BwpQbdIU.js";const s=o`<svg fill="none" viewBox="0 0 24 24">
2
- <path
3
- style="fill: var(--wui-color-accent-100);"
4
- d="M10.2 6.6a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM21 6.6a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM10.2 17.4a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM21 17.4a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0Z"
5
- />
6
- </svg>`;export{s as allWalletsSvg};
@@ -1,8 +0,0 @@
1
- import{w as o}from"./core-Cw7VIz-a.js";import"./index-DqdaAEyo.js";import"./index.es-Dajqanx_.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-CzjJ6dvA.js";import"./clsx-B-dksMZM.js";import"./index-D5ERwHFX.js";import"./index-BwpQbdIU.js";const a=o`<svg fill="none" viewBox="0 0 14 15">
2
- <path
3
- fill="currentColor"
4
- fill-rule="evenodd"
5
- d="M7 1.99a1 1 0 0 1 1 1v7.58l2.46-2.46a1 1 0 0 1 1.41 1.42L7.7 13.69a1 1 0 0 1-1.41 0L2.12 9.53A1 1 0 0 1 3.54 8.1L6 10.57V3a1 1 0 0 1 1-1Z"
6
- clip-rule="evenodd"
7
- />
8
- </svg>`;export{a as arrowBottomSvg};
@@ -1,8 +0,0 @@
1
- import{w as o}from"./core-Cw7VIz-a.js";import"./index-DqdaAEyo.js";import"./index.es-Dajqanx_.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-CzjJ6dvA.js";import"./clsx-B-dksMZM.js";import"./index-D5ERwHFX.js";import"./index-BwpQbdIU.js";const n=o`<svg fill="none" viewBox="0 0 14 15">
2
- <path
3
- fill="currentColor"
4
- fill-rule="evenodd"
5
- d="M13 7.99a1 1 0 0 1-1 1H4.4l2.46 2.46a1 1 0 1 1-1.41 1.41L1.29 8.7a1 1 0 0 1 0-1.41L5.46 3.1a1 1 0 0 1 1.41 1.42L4.41 6.99H12a1 1 0 0 1 1 1Z"
6
- clip-rule="evenodd"
7
- />
8
- </svg>`;export{n as arrowLeftSvg};
@@ -1,8 +0,0 @@
1
- import{w as o}from"./core-Cw7VIz-a.js";import"./index-DqdaAEyo.js";import"./index.es-Dajqanx_.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-CzjJ6dvA.js";import"./clsx-B-dksMZM.js";import"./index-D5ERwHFX.js";import"./index-BwpQbdIU.js";const n=o`<svg fill="none" viewBox="0 0 14 15">
2
- <path
3
- fill="currentColor"
4
- fill-rule="evenodd"
5
- d="M1 7.99a1 1 0 0 1 1-1h7.58L7.12 4.53A1 1 0 1 1 8.54 3.1l4.16 4.17a1 1 0 0 1 0 1.41l-4.16 4.17a1 1 0 1 1-1.42-1.41l2.46-2.46H2a1 1 0 0 1-1-1Z"
6
- clip-rule="evenodd"
7
- />
8
- </svg>`;export{n as arrowRightSvg};
@@ -1,8 +0,0 @@
1
- import{w as o}from"./core-Cw7VIz-a.js";import"./index-DqdaAEyo.js";import"./index.es-Dajqanx_.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-CzjJ6dvA.js";import"./clsx-B-dksMZM.js";import"./index-D5ERwHFX.js";import"./index-BwpQbdIU.js";const v=o`<svg fill="none" viewBox="0 0 14 15">
2
- <path
3
- fill="currentColor"
4
- fill-rule="evenodd"
5
- d="M7 13.99a1 1 0 0 1-1-1V5.4L3.54 7.86a1 1 0 0 1-1.42-1.41L6.3 2.28a1 1 0 0 1 1.41 0l4.17 4.17a1 1 0 1 1-1.41 1.41L8 5.4v7.59a1 1 0 0 1-1 1Z"
6
- clip-rule="evenodd"
7
- />
8
- </svg>`;export{v as arrowTopSvg};
@@ -1 +0,0 @@
1
- import{B as u,g as y,s as w,d as k,i as b,l as L,e as O,f as E,h as x,j as R,H as m,k as M}from"./en_US-Y4ZOVFV4-CzjJ6dvA.js";import"./index-DqdaAEyo.js";import"./clsx-B-dksMZM.js";import"./index-D5ERwHFX.js";import"./index-BwpQbdIU.js";class S extends u{constructor({callbackSelector:r,cause:a,data:n,extraData:i,sender:f,urls:t}){var o;super(a.shortMessage||"An error occurred while fetching for an offchain result.",{cause:a,metaMessages:[...a.metaMessages||[],(o=a.metaMessages)!=null&&o.length?"":[],"Offchain Gateway Call:",t&&[" Gateway URL(s):",...t.map(d=>` ${y(d)}`)],` Sender: ${f}`,` Data: ${n}`,` Callback selector: ${r}`,` Extra data: ${i}`].flat(),name:"OffchainLookupError"})}}class $ extends u{constructor({result:r,url:a}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${y(a)}`,`Response: ${w(r)}`],name:"OffchainLookupResponseMalformedError"})}}class q extends u{constructor({sender:r,to:a}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${a}`,`OffchainLookup sender address: ${r}`],name:"OffchainLookupSenderMismatchError"})}}const P="0x556f1830",T={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function U(c,{blockNumber:r,blockTag:a,data:n,to:i}){const{args:f}=k({data:n,abi:[T]}),[t,o,d,l,s]=f,{ccipRead:e}=c,h=e&&typeof(e==null?void 0:e.request)=="function"?e.request:C;try{if(!b(i,t))throw new q({sender:t,to:i});const p=o.includes(L)?await O({data:d,ccipRequest:h}):await h({data:d,sender:t,urls:o}),{data:g}=await E(c,{blockNumber:r,blockTag:a,data:x([l,R([{type:"bytes"},{type:"bytes"}],[p,s])]),to:i});return g}catch(p){throw new S({callbackSelector:l,cause:p,data:n,extraData:s,sender:t,urls:o})}}async function C({data:c,sender:r,urls:a}){var i;let n=new Error("An unknown error occurred.");for(let f=0;f<a.length;f++){const t=a[f],o=t.includes("{data}")?"GET":"POST",d=o==="POST"?{data:c,sender:r}:void 0,l=o==="POST"?{"Content-Type":"application/json"}:{};try{const s=await fetch(t.replace("{sender}",r.toLowerCase()).replace("{data}",c),{body:JSON.stringify(d),headers:l,method:o});let e;if((i=s.headers.get("Content-Type"))!=null&&i.startsWith("application/json")?e=(await s.json()).data:e=await s.text(),!s.ok){n=new m({body:d,details:e!=null&&e.error?w(e.error):s.statusText,headers:s.headers,status:s.status,url:t});continue}if(!M(e)){n=new $({result:e,url:t});continue}return e}catch(s){n=new m({body:d,details:s.message,url:t})}}throw n}export{C as ccipRequest,U as offchainLookup,T as offchainLookupAbiItem,P as offchainLookupSignature};
@@ -1,8 +0,0 @@
1
- import{w as o}from"./core-Cw7VIz-a.js";import"./index-DqdaAEyo.js";import"./index.es-Dajqanx_.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-CzjJ6dvA.js";import"./clsx-B-dksMZM.js";import"./index-D5ERwHFX.js";import"./index-BwpQbdIU.js";const v=o`<svg fill="none" viewBox="0 0 16 16">
2
- <path
3
- fill="currentColor"
4
- fill-rule="evenodd"
5
- d="M1.46 4.96a1 1 0 0 1 1.41 0L8 10.09l5.13-5.13a1 1 0 1 1 1.41 1.41l-5.83 5.84a1 1 0 0 1-1.42 0L1.46 6.37a1 1 0 0 1 0-1.41Z"
6
- clip-rule="evenodd"
7
- />
8
- </svg>`;export{v as chevronBottomSvg};
@@ -1,8 +0,0 @@
1
- import{w as o}from"./core-Cw7VIz-a.js";import"./index-DqdaAEyo.js";import"./index.es-Dajqanx_.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-CzjJ6dvA.js";import"./clsx-B-dksMZM.js";import"./index-D5ERwHFX.js";import"./index-BwpQbdIU.js";const v=o`<svg fill="none" viewBox="0 0 16 16">
2
- <path
3
- fill="currentColor"
4
- fill-rule="evenodd"
5
- d="M11.04 1.46a1 1 0 0 1 0 1.41L5.91 8l5.13 5.13a1 1 0 1 1-1.41 1.41L3.79 8.71a1 1 0 0 1 0-1.42l5.84-5.83a1 1 0 0 1 1.41 0Z"
6
- clip-rule="evenodd"
7
- />
8
- </svg>`;export{v as chevronLeftSvg};
@@ -1,8 +0,0 @@
1
- import{w as o}from"./core-Cw7VIz-a.js";import"./index-DqdaAEyo.js";import"./index.es-Dajqanx_.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-CzjJ6dvA.js";import"./clsx-B-dksMZM.js";import"./index-D5ERwHFX.js";import"./index-BwpQbdIU.js";const v=o`<svg fill="none" viewBox="0 0 16 16">
2
- <path
3
- fill="currentColor"
4
- fill-rule="evenodd"
5
- d="M4.96 14.54a1 1 0 0 1 0-1.41L10.09 8 4.96 2.87a1 1 0 0 1 1.41-1.41l5.84 5.83a1 1 0 0 1 0 1.42l-5.84 5.83a1 1 0 0 1-1.41 0Z"
6
- clip-rule="evenodd"
7
- />
8
- </svg>`;export{v as chevronRightSvg};
@@ -1,8 +0,0 @@
1
- import{w as o}from"./core-Cw7VIz-a.js";import"./index-DqdaAEyo.js";import"./index.es-Dajqanx_.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-CzjJ6dvA.js";import"./clsx-B-dksMZM.js";import"./index-D5ERwHFX.js";import"./index-BwpQbdIU.js";const v=o`<svg fill="none" viewBox="0 0 16 16">
2
- <path
3
- fill="currentColor"
4
- fill-rule="evenodd"
5
- d="M14.54 11.04a1 1 0 0 1-1.41 0L8 5.92l-5.13 5.12a1 1 0 1 1-1.41-1.41l5.83-5.84a1 1 0 0 1 1.42 0l5.83 5.84a1 1 0 0 1 0 1.41Z"
6
- clip-rule="evenodd"
7
- />
8
- </svg>`;export{v as chevronTopSvg};
@@ -1,8 +0,0 @@
1
- import{w as o}from"./core-Cw7VIz-a.js";import"./index-DqdaAEyo.js";import"./index.es-Dajqanx_.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-CzjJ6dvA.js";import"./clsx-B-dksMZM.js";import"./index-D5ERwHFX.js";import"./index-BwpQbdIU.js";const n=o`<svg fill="none" viewBox="0 0 16 16">
2
- <path
3
- fill="currentColor"
4
- fill-rule="evenodd"
5
- d="M2.54 2.54a1 1 0 0 1 1.42 0L8 6.6l4.04-4.05a1 1 0 1 1 1.42 1.42L9.4 8l4.05 4.04a1 1 0 0 1-1.42 1.42L8 9.4l-4.04 4.05a1 1 0 0 1-1.42-1.42L6.6 8 2.54 3.96a1 1 0 0 1 0-1.42Z"
6
- clip-rule="evenodd"
7
- />
8
- </svg>`;export{n as closeSvg};
@@ -1,8 +0,0 @@
1
- import{w as o}from"./core-Cw7VIz-a.js";import"./index-DqdaAEyo.js";import"./index.es-Dajqanx_.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-CzjJ6dvA.js";import"./clsx-B-dksMZM.js";import"./index-D5ERwHFX.js";import"./index-BwpQbdIU.js";const c=o`<svg fill="none" viewBox="0 0 20 20">
2
- <path
3
- fill="currentColor"
4
- fill-rule="evenodd"
5
- d="M10 3a7 7 0 0 0-6.85 8.44l8.29-8.3C10.97 3.06 10.49 3 10 3Zm3.49.93-9.56 9.56c.32.55.71 1.06 1.16 1.5L15 5.1a7.03 7.03 0 0 0-1.5-1.16Zm2.7 2.8-9.46 9.46a7 7 0 0 0 9.46-9.46ZM1.99 5.9A9 9 0 1 1 18 14.09 9 9 0 0 1 1.98 5.91Z"
6
- clip-rule="evenodd"
7
- />
8
- </svg>`;export{c as coinPlaceholderSvg};
@@ -1,3 +0,0 @@
1
- import{w as o}from"./core-Cw7VIz-a.js";import"./index-DqdaAEyo.js";import"./index.es-Dajqanx_.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-CzjJ6dvA.js";import"./clsx-B-dksMZM.js";import"./index-D5ERwHFX.js";import"./index-BwpQbdIU.js";const s=o` <svg fill="none" viewBox="0 0 13 4">
2
- <path fill="currentColor" d="M.5 0h12L8.9 3.13a3.76 3.76 0 0 1-4.8 0L.5 0Z" />
3
- </svg>`;export{s as cursorSvg};
@@ -1,8 +0,0 @@
1
- import{w as o}from"./core-Cw7VIz-a.js";import"./index-DqdaAEyo.js";import"./index.es-Dajqanx_.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-CzjJ6dvA.js";import"./clsx-B-dksMZM.js";import"./index-D5ERwHFX.js";import"./index-BwpQbdIU.js";const a=o`<svg fill="none" viewBox="0 0 14 15">
2
- <path
3
- fill="currentColor"
4
- fill-rule="evenodd"
5
- d="M3.74 3.99a1 1 0 0 1 1-1H11a1 1 0 0 1 1 1v6.26a1 1 0 0 1-2 0V6.4l-6.3 6.3a1 1 0 0 1-1.4-1.42l6.29-6.3H4.74a1 1 0 0 1-1-1Z"
6
- clip-rule="evenodd"
7
- />
8
- </svg>`;export{a as externalLinkSvg};
@@ -1,8 +0,0 @@
1
- import{w as o}from"./core-Cw7VIz-a.js";import"./index-DqdaAEyo.js";import"./index.es-Dajqanx_.js";import"./events-DQ172AOg.js";import"./en_US-Y4ZOVFV4-CzjJ6dvA.js";import"./clsx-B-dksMZM.js";import"./index-D5ERwHFX.js";import"./index-BwpQbdIU.js";const n=o`<svg fill="none" viewBox="0 0 16 16">
2
- <path
3
- fill="currentColor"
4
- fill-rule="evenodd"
5
- d="M0 3a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H1a1 1 0 0 1-1-1Zm2.63 5.25a1 1 0 0 1 1-1h8.75a1 1 0 1 1 0 2H3.63a1 1 0 0 1-1-1Zm2.62 5.25a1 1 0 0 1 1-1h3.5a1 1 0 0 1 0 2h-3.5a1 1 0 0 1-1-1Z"
6
- clip-rule="evenodd"
7
- />
8
- </svg>`;export{n as filtersSvg};
@@ -1 +0,0 @@
1
- import{S as d,F as H,a as N}from"./mermaid-MCJ5UELQ-CNEVzFUk.js";import{r as s,j}from"./index-DqdaAEyo.js";import"./bundle-full-sn1k_IQV.js";import"./clsx-B-dksMZM.js";import"./Chat-DznobJkE.js";import"./index-D5ERwHFX.js";var F=({code:i,isIncomplete:o=!1,language:e,maxHeight:u,raw:t,className:g,startLine:p,lineNumbers:c,...h})=>{let{shikiTheme:m}=s.useContext(d),r=H(),[x,a]=s.useState(t);return s.useEffect(()=>{if(!r){a(t);return}let l=!0,n=r.highlight({code:i,isIncomplete:o,language:e,themes:m},f=>{l&&a(f)});return n&&a(n),()=>{l=!1}},[i,o,e,m,r,t]),j.jsx(N,{className:g,language:e,lineNumbers:c,maxHeight:u,result:x,startLine:p,...h})};export{F as HighlightedCodeBlockBody};
@@ -1 +0,0 @@
1
- import{ai as r}from"./index-DqdaAEyo.js";var o=r();export{o as r};