@dcl/shop 1.2.0 → 1.2.1-31141894504.commit-b6f2fa5

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 (178) hide show
  1. package/_assets/{Activity-WzrsBYzd.js → Activity-CM1koIWA.js} +6 -6
  2. package/_assets/{AnimatedBackground-DjLtC0in.js → AnimatedBackground-Dq4kMaMJ.js} +1 -1
  3. package/_assets/{Assets-W5ljHZz_.js → Assets-CrYK64oM.js} +15 -15
  4. package/_assets/{Assets.styles-B1wjUn65.js → Assets.styles-DQJDvpwk.js} +56 -56
  5. package/_assets/{Authorizations-B5p2iUHM.js → Authorizations-CLlifjsF.js} +1 -1
  6. package/_assets/{Cart-Bh-HgdN6.js → Cart-BTdBdLSV.js} +73 -89
  7. package/_assets/{CircularProgress-CRPaZUaF.js → CircularProgress-5u3Axs4r.js} +1 -1
  8. package/_assets/{Collection-BaGhHdl0.js → Collection-CrmOtKVR.js} +1 -1
  9. package/_assets/{CollectionCarousel-TGpCTmUQ.js → CollectionCarousel-BNRsg5LI.js} +2 -2
  10. package/_assets/{Confetti-BN_pNgmM.js → Confetti-CcphdN06.js} +1 -1
  11. package/_assets/{Creator-ciJxZjs_.js → Creator-Cpmty4q3.js} +6 -6
  12. package/_assets/{ErrorNotice-jD-FwtiS.js → ErrorNotice-DcMjmsY0.js} +1 -1
  13. package/_assets/{ExchangeController-OeggugXi.js → ExchangeController-DuNjedyi.js} +1 -1
  14. package/_assets/{Faq-wg7vWcKf.js → Faq-BZT-Tuv2.js} +1 -1
  15. package/_assets/{GetCredits-BAjH3baH.js → GetCredits-CQ4C143X.js} +8 -8
  16. package/_assets/{Grow-BCaCEq9-.js → Grow-C1qF8Gbp.js} +1 -1
  17. package/_assets/{HelpersUtil-gxfrB6dz.js → HelpersUtil-YUnnMEbv.js} +1 -1
  18. package/_assets/{ItemDetail-BvMU6_Oq.js → ItemDetail-DIJVogYi.js} +26 -24
  19. package/_assets/LazyEmoteControls-B9ed76Uk.js +2 -0
  20. package/_assets/{LoadMore-L0jdHqAb.js → LoadMore-ChE3Ywf2.js} +1 -1
  21. package/_assets/{ManaPricingBanner.styles-BpgJKPnW.js → ManaPricingBanner.styles-YQt9G2FY.js} +1 -1
  22. package/_assets/MyAssets-g4TFZ7e2.js +406 -0
  23. package/_assets/{MyFavorites-4bqQmhDd.js → MyFavorites-BHIx442Q.js} +1 -1
  24. package/_assets/{NotFound-DmWOqezH.js → NotFound-Mnz4Ucj1.js} +1 -1
  25. package/_assets/{NotificationsBell-DzlKi2q2.js → NotificationsBell-Cfum40NV.js} +3 -3
  26. package/_assets/{OutfitDetail-DUkrlHGK.js → OutfitDetail-DYlB-_2t.js} +1 -1
  27. package/_assets/{OutfitPreview-CVrRVAqt.js → OutfitPreview-CKBV79hH.js} +1 -1
  28. package/_assets/{OutfitStudio-_8tw7nfU.js → OutfitStudio-D5ASiVh6.js} +1 -1
  29. package/_assets/{StoreSettings--Y44v8MH.js → StoreSettings-EwiANufQ.js} +21 -21
  30. package/_assets/{Success-Dyq6VNoV.js → Success-DEpy1BVd.js} +1 -1
  31. package/_assets/{SwapController-DT-2LK9L.js → SwapController-CoZyRCI2.js} +1 -1
  32. package/_assets/{Tooltip-BPV6o6wG.js → Tooltip-bEqHt7Cn.js} +1 -1
  33. package/_assets/{TradeService-oPf4Uv1h.js → TradeService-zAix_pZH.js} +1 -1
  34. package/_assets/{W3MFrameProviderSingleton-KChYZ3ey.js → W3MFrameProviderSingleton-DUGxXY3k.js} +3 -3
  35. package/_assets/{WebCryptoP256-DOqIQjou.js → WebCryptoP256-D8VfrUWY.js} +1 -1
  36. package/_assets/{authorizations-_of_k_s-.js → authorizations-BG0JBYIM.js} +1 -1
  37. package/_assets/{basic-BKiPxjPG.js → basic-C5bTQfXn.js} +1 -1
  38. package/_assets/{biconomy-DVmLydy3.js → biconomy-DMDUbT_l.js} +1 -1
  39. package/_assets/{builder-Bxf4v20g.js → builder-J1muoe18.js} +1 -1
  40. package/_assets/{buy-BUDAT54T.js → buy-C7GNfKVo.js} +1 -1
  41. package/_assets/{buy-gasless-lErDvRBB.js → buy-gasless-CGeRTZTF.js} +1 -1
  42. package/_assets/{categories-C7-Px0Cz.js → categories-BvYy29PG.js} +1 -1
  43. package/_assets/{ccip-DJsgfNx_.js → ccip-Be222yLp.js} +1 -1
  44. package/_assets/{ccip-rnalXDmy.js → ccip-nElUyFDJ.js} +1 -1
  45. package/_assets/{collectionPage.styles-CnMRUv4w.js → collectionPage.styles-BbghKEPw.js} +2 -2
  46. package/_assets/{controller-C5lSv65X.js → controller-C2j748IT.js} +2 -2
  47. package/_assets/{core-DFmP0EWm.js → core-f097495A.js} +4 -4
  48. package/_assets/{createSvgIcon-BiLn2Sm6.js → createSvgIcon-BPThy2SY.js} +1 -1
  49. package/_assets/creations-empty-Dg6T0dZl.svg +11 -0
  50. package/_assets/{custom-D6LBCLjl.js → custom-Gy3d1Q7v.js} +1 -1
  51. package/_assets/{data-capture-DnJW2etD.js → data-capture-UKTvYwdc.js} +1 -1
  52. package/_assets/{email-BQMNABmp.js → email-DvKEgj9J.js} +1 -1
  53. package/_assets/{embedded-wallet-BEAvOQ4J.js → embedded-wallet-_WiZLd4T.js} +1 -1
  54. package/_assets/{emotion-styled.browser.esm-DjUJkz5C.js → emotion-styled.browser.esm-D9bzEYCr.js} +1 -1
  55. package/_assets/{engine-Cxz0taSI.js → engine-6_t87ask.js} +1 -1
  56. package/_assets/{errors-C5pxH9hH.js → errors-Cpi20Vs-.js} +1 -1
  57. package/_assets/{estimate-l1-fee-UP3UBoYC.js → estimate-l1-fee-DU4tQjK9.js} +1 -1
  58. package/_assets/{execute-BS0Y5pHb.js → execute-BQ_MXUy5.js} +2 -2
  59. package/_assets/{features-CCkzoVM7.js → features-CK3qf9ZN.js} +1 -1
  60. package/_assets/{fetchTokenMetadata-BTavNlze.js → fetchTokenMetadata-BDm74qDJ.js} +2 -2
  61. package/_assets/{field.styles-Cxl6HEei.js → field.styles-C157dq4J.js} +1 -1
  62. package/_assets/{get-ecosystem-wallet-info-DBkCo9Dd.js → get-ecosystem-wallet-info-B6cEjh69.js} +1 -1
  63. package/_assets/{getBalance-oQUSwk6i.js → getBalance-7z75fs4x.js} +1 -1
  64. package/_assets/{getNFT-DdyxRcHy.js → getNFT-DHw--2hM.js} +1 -1
  65. package/_assets/{getNFT-C7oN1xz2.js → getNFT-kDrfcrTP.js} +1 -1
  66. package/_assets/{grid.styles-BQjREFrV.js → grid.styles-BH-KolVj.js} +1 -1
  67. package/_assets/{hashTypedData-DiCfu9px.js → hashTypedData-BGaOoxNv.js} +1 -1
  68. package/_assets/{hashTypedData-B6zZpjUD.js → hashTypedData-CaDI86G1.js} +1 -1
  69. package/_assets/{in-app-B_q2Ngeh.js → in-app-DrqEBa0Y.js} +1 -1
  70. package/_assets/{in-app-wallet-calls-D_4POGr9.js → in-app-wallet-calls-BAuhvyqE.js} +1 -1
  71. package/_assets/{index-Xusi9FS-.js → index--uqlDZSN.js} +3 -3
  72. package/_assets/{index-B5yDM3Cs.js → index-9sMHHA07.js} +1 -1
  73. package/_assets/{index-prEKQove.js → index-B1zKymDP.js} +1 -1
  74. package/_assets/{index-CaSykQgm.js → index-B2SrFRWu.js} +1 -1
  75. package/_assets/{index-Dffppy0t.js → index-B8eN0pGm.js} +1 -1
  76. package/_assets/{index-DsDbzqMK.js → index-BNYb6-ew.js} +1 -1
  77. package/_assets/{index-DGzakxGf.js → index-BO1L1qum.js} +1 -1
  78. package/_assets/{index-DgCoC9NB.js → index-BOFN8WyJ.js} +1 -1
  79. package/_assets/{index-6BIeeYcK.js → index-BRyz9uc0.js} +1 -1
  80. package/_assets/{index-DiTI5DKB.js → index-BUVnfVaQ.js} +1 -1
  81. package/_assets/{index-D4tyAO9v.js → index-BXKEFlSU.js} +1 -1
  82. package/_assets/{index-BaBVZyxJ.js → index-BcqoTa3F.js} +1 -1
  83. package/_assets/{index-M1o372c7.js → index-Belqsjsz.js} +2 -2
  84. package/_assets/{index-FeLelpWN.js → index-Bi66sVRq.js} +1 -1
  85. package/_assets/{index-BDhI4OFC.js → index-BiduFohT.js} +1 -1
  86. package/_assets/{index-CQ9RhRXs.js → index-BjuwD4ba.js} +1 -1
  87. package/_assets/{index-B8PyPptj.js → index-Bn_uaVAp.js} +1 -1
  88. package/_assets/{index-B4DUxntk.js → index-BvWni_zR.js} +1 -1
  89. package/_assets/{index-CW16IEJ1.js → index-C54FYEkY.js} +1 -1
  90. package/_assets/{index-rynehCHP.js → index-C5p9LpAs.js} +3 -3
  91. package/_assets/{index-DJ2lLMDk.js → index-C83EM4_2.js} +1 -1
  92. package/_assets/{index-CyEy9W2J.js → index-CHtt63_F.js} +1 -1
  93. package/_assets/{index-tZz3YEeL.js → index-CZ3-3d7g.js} +1 -1
  94. package/_assets/{index-BYZ-uB-6.js → index-CgxH7rfI.js} +1 -1
  95. package/_assets/{index-qPWw21a_.js → index-CkMBkM8p.js} +1 -1
  96. package/_assets/{index-B6_DHTJR.js → index-CvCTehG1.js} +1 -1
  97. package/_assets/{index-BRQOOFsy.js → index-Cw_lQM7v.js} +3 -3
  98. package/_assets/{index-DiaaCzn0.js → index-D-gAiVLP.js} +1 -1
  99. package/_assets/{index-DaCjd07S.js → index-D5G95QTd.js} +1 -1
  100. package/_assets/{index-BFPqoraR.js → index-D5jn8moe.js} +1 -1
  101. package/_assets/{index-CF-kXP_a.js → index-DFA-jQh0.js} +1 -1
  102. package/_assets/{index-D0yb7tx6.js → index-DQABJ8K0.js} +554 -534
  103. package/_assets/{index-BpzsK6nD.js → index-DYmMl9gi.js} +2 -2
  104. package/_assets/{index-_IvJKRy-.js → index-DdAqmPp5.js} +1 -1
  105. package/_assets/{index-Dhnm9LzO.js → index-Dl52ODHX.js} +1 -1
  106. package/_assets/{index-BVlv1YIR.js → index-DmNnfRqv.js} +1 -1
  107. package/_assets/{index-PgbjDVbM.js → index-DrKpI5CV.js} +1 -1
  108. package/_assets/{index-B7mvz5SS.js → index-DuI636q2.js} +1 -1
  109. package/_assets/{index-lxi2Pbq1.js → index-I5oIRknD.js} +1 -1
  110. package/_assets/{index-B7wTdynS.js → index-NZ2EL1Va.js} +1 -1
  111. package/_assets/{index-BEprhHZ1.js → index-SJTLPDcF.js} +1 -1
  112. package/_assets/{index-kKHHg57w.js → index-SOqtqcZc.js} +1 -1
  113. package/_assets/{index-DW_rAGmE.js → index-Z9Zfp-cE.js} +1 -1
  114. package/_assets/{index-DEJqqCqu.js → index-dkB19blA.js} +1 -1
  115. package/_assets/{index-B6qnjAt3.js → index-eTdhHjMt.js} +1 -1
  116. package/_assets/{index-BiLeVGAb.js → index-jVj4M1cT.js} +1 -1
  117. package/_assets/index-l2QjlKjX.css +1 -0
  118. package/_assets/{index-DQrAFSz9.js → index-ltLkjfx-.js} +1 -1
  119. package/_assets/{index-B3HeHO54.js → index-nfyZZM7e.js} +1 -1
  120. package/_assets/{index-C3FfSJFt.js → index-sl5wwK2w.js} +1 -1
  121. package/_assets/{index-DVbI8VHx.js → index-weRQS8GT.js} +2 -2
  122. package/_assets/{index-B58dWY5c.js → index-wq8907gu.js} +1 -1
  123. package/_assets/{index-BgYHNOmZ.js → index-xKy8W33s.js} +1 -1
  124. package/_assets/{index.es-Zzz8NtPw.js → index.es-CEBpPlnr.js} +1 -1
  125. package/_assets/{index.es-C4u3tLXm.js → index.es-DNO5glcp.js} +1 -1
  126. package/_assets/{index.es-DAi3k6BS.js → index.es-x1vwNVlm.js} +4 -4
  127. package/_assets/{localBatchGatewayRequest-OZkr4GaA.js → localBatchGatewayRequest-BBjlnRHt.js} +1 -1
  128. package/_assets/{networks-KQJEgu0R.js → networks-C13WwFhP.js} +1 -1
  129. package/_assets/{onramp-D1TyCpmq.js → onramp-CT1_T902.js} +1 -1
  130. package/_assets/{openzeppelin-COMQt6C0.js → openzeppelin-RUjzfcX-.js} +1 -1
  131. package/_assets/{parseNft-BDWge50l.js → parseNft-BAvhvBPX.js} +2 -2
  132. package/_assets/{parseSignature-Wc6hp9uQ.js → parseSignature-BEQJi4cu.js} +3 -3
  133. package/_assets/{parseSignature-BM5NvifW.js → parseSignature-Czi9dqhR.js} +1 -1
  134. package/_assets/{passkeys-DrykTNZ2.js → passkeys-Du42r5sF.js} +1 -1
  135. package/_assets/{pay-with-exchange-XXB29ZOp.js → pay-with-exchange-CrTCM_iG.js} +1 -1
  136. package/_assets/{qr-overlay-bXfX0IcB.js → qr-overlay-CG31oj34.js} +1 -1
  137. package/_assets/{receive-nP-U5W2i.js → receive-DGKxxBjv.js} +1 -1
  138. package/_assets/{resolveImplementation-BBJbUE3Z.js → resolveImplementation-8tujOofo.js} +1 -1
  139. package/_assets/{rpc-DCSM-4bg.js → rpc-sUrtbSyk.js} +1 -1
  140. package/_assets/{secp256k1-C2O_LFWe.js → secp256k1-CvuUaHW6.js} +1 -1
  141. package/_assets/{secp256k1-CgXAHR4D.js → secp256k1-DgwVchLn.js} +1 -1
  142. package/_assets/{secp256k1-DwDjCBcY.js → secp256k1-ilN5uvc6.js} +1 -1
  143. package/_assets/{send-Nwbt1L9h.js → send-OsD6mp8d.js} +1 -1
  144. package/_assets/{send-batch-transaction-B1AHQzYS.js → send-batch-transaction-Dv9gFlBz.js} +1 -1
  145. package/_assets/{send-eip712-transaction-tjLA0QA7.js → send-eip712-transaction-CInEXRsx.js} +2 -2
  146. package/_assets/{send-gasless-transaction-DcMpXxHQ.js → send-gasless-transaction-XefHv_Ab.js} +2 -2
  147. package/_assets/{send-transaction-DKMldJ0x.js → send-transaction-DxKCtc6J.js} +2 -2
  148. package/_assets/{sendMetaTransaction-BMdYRDeG.js → sendMetaTransaction-DeQMn9dR.js} +1 -1
  149. package/_assets/{sendRawTransaction-DCwkPyxN.js → sendRawTransaction-CcN1UESp.js} +3 -3
  150. package/_assets/{serializeTransaction-D7_FswuO.js → serializeTransaction-LQsz0xpR.js} +1 -1
  151. package/_assets/{session-proposal-CuU2AfGE.js → session-proposal-3C-xhn_b.js} +1 -1
  152. package/_assets/{session-request-DyvJhVCV.js → session-request-Bi-TCd-V.js} +2 -2
  153. package/_assets/{signing-NZTFOMTf.js → signing-DTvtfW1Y.js} +3 -3
  154. package/_assets/{skeleton.styles-BxGPvRcr.js → skeleton.styles-BvHHSxH_.js} +1 -1
  155. package/_assets/{socials-DEw3CQ73.js → socials-EGhIb5vA.js} +1 -1
  156. package/_assets/{styled-Dp53Pb8_.js → styled-Dsdo2L_S.js} +1 -1
  157. package/_assets/{swaps-B5ijNnAD.js → swaps-BWOQdX7L.js} +1 -1
  158. package/_assets/{thirdweb-qQf9W59E.js → thirdweb-Bq55eHvp.js} +3 -3
  159. package/_assets/{to-serializable-transaction-w7hB_nia.js → to-serializable-transaction-BdqklZjW.js} +2 -2
  160. package/_assets/{transactionReceipt-DZ540nfl.js → transactionReceipt-C327RjFG.js} +1 -1
  161. package/_assets/{transactions-iaPs2nV1.js → transactions-DH_45ulx.js} +1 -1
  162. package/_assets/{useCreditPacks-CO4R81xj.js → useCreditPacks-ohAn5pNf.js} +1 -1
  163. package/_assets/{useImportable-DxGmRiy1.js → useImportable-CTHYEKOm.js} +1 -1
  164. package/_assets/{useInfiniteGrid-DuP2ljFn.js → useInfiniteGrid-aYtSr9OS.js} +1 -1
  165. package/_assets/{useTheme-BoTQmO03.js → useTheme-DErq2cgw.js} +1 -1
  166. package/_assets/{verifyHash-ChBtWS-V.js → verifyHash-Dmswiq1P.js} +1 -1
  167. package/_assets/{w3m-modal-Cue_2Zn9.js → w3m-modal-CSxNzBHa.js} +1 -1
  168. package/_assets/{w3m-modal-CYiZhvkD.js → w3m-modal-zYlOO-nX.js} +1 -1
  169. package/_assets/{wait-for-tx-receipt-Bswrc--t.js → wait-for-tx-receipt-DUa6TPtN.js} +1 -1
  170. package/_assets/{wallets-CX0kZMtf.js → wallets-D4CLBrkx.js} +5 -5
  171. package/_assets/{web-connector-DbZBNbcb.js → web-connector-DfuXXolQ.js} +3 -3
  172. package/_assets/{writeContract-CyCztfKW.js → writeContract-CuhRFcNu.js} +1 -1
  173. package/_assets/{zoraTestnet-Bhd25heA.js → zoraTestnet-j-CjVgGQ.js} +1 -1
  174. package/index.html +11 -11
  175. package/package.json +2 -2
  176. package/_assets/LazyEmoteControls-DE5H6ZZm.js +0 -2
  177. package/_assets/MyAssets-Dz1TnFDV.js +0 -396
  178. package/_assets/index-DB6GvbxL.css +0 -1
@@ -1,4 +1,4 @@
1
- import{cA as Qe,cw as et,u as tt,aj as H,ak as L,cB as Me,al as nt,cC as rt,ai as we,w as ue,T as ot,c7 as it}from"./index-D0yb7tx6.js";import{r as s,j as I,R as W,f as st}from"./react-BYHuwl8r.js";import{C as Pe,c as T,a as le,g as at,b as ut}from"./clsx-WwvpwSg0.js";import{e as lt,s as ce}from"./styled-Dp53Pb8_.js";import{S as ge}from"./emotion-styled.browser.esm-DjUJkz5C.js";function Ie(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Ie(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ct(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ie(e))&&(r&&(r+=" "),r+=t);return r}const pt=["className","component"];function ft(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Qe("div",{shouldForwardProp:c=>c!=="theme"&&c!=="sx"&&c!=="as"})(et);return s.forwardRef(function(l,p){const d=tt(n),m=lt(l),{className:b,component:y="div"}=m,h=H(m,pt);return I.jsx(i,L({as:y,ref:p,className:ct(b,o?o(r):r),theme:t&&d[t]||d},h))})}function dt(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function ht(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function mt(e,t){return()=>null}function bt(e,t){var n,r;return s.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Ne(e){return e&&e.ownerDocument||document}function gt(e){return Ne(e).defaultView||window}function yt(e,t){return()=>null}function Ve(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Rt(e,t,n,r,o){return null}function xt({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=s.useRef(e!==void 0),[i,a]=s.useState(t),c=o?e:i,l=s.useCallback(p=>{o||a(p)},[]);return[c,l]}function X(e){const t=s.useRef(e);return Me(()=>{t.current=e}),s.useRef((...n)=>(0,t.current)(...n)).current}function oe(...e){return s.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Ve(n,t)})},e)}const ye={};function Et(e,t){const n=s.useRef(ye);return n.current===ye&&(n.current=e(t)),n}const vt=[];function Ct(e){s.useEffect(e,vt)}class G{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new G}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Tt(){const e=Et(G.create).current;return Ct(e.disposeEffect),e}let Z=!0,ie=!1;const Mt=new G,wt={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Pt(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&wt[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function It(e){e.metaKey||e.altKey||e.ctrlKey||(Z=!0)}function ne(){Z=!1}function Nt(){this.visibilityState==="hidden"&&ie&&(Z=!0)}function Vt(e){e.addEventListener("keydown",It,!0),e.addEventListener("mousedown",ne,!0),e.addEventListener("pointerdown",ne,!0),e.addEventListener("touchstart",ne,!0),e.addEventListener("visibilitychange",Nt,!0)}function St(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Z||Pt(t)}function Se(){const e=s.useCallback(o=>{o!=null&&Vt(o.ownerDocument)},[]),t=s.useRef(!1);function n(){return t.current?(ie=!0,Mt.start(100,()=>{ie=!1}),t.current=!1,!0):!1}function r(o){return St(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function Bt(e,t){function n(r,o){return I.jsx(ge,L({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=ge.muiName,s.memo(s.forwardRef(n))}const _t={configure:e=>{Pe.configure(e)}},Dt=Object.freeze(Object.defineProperty({__proto__:null,capitalize:nt,createChainedFunction:dt,createSvgIcon:Bt,debounce:ht,deprecatedPropType:mt,isMuiElement:bt,ownerDocument:Ne,ownerWindow:gt,requirePropFactory:yt,setRef:Ve,unstable_ClassNameGenerator:_t,unstable_useEnhancedEffect:Me,unstable_useId:rt,unsupportedProp:Rt,useControlled:xt,useEventCallback:X,useForkRef:oe,useIsFocusVisible:Se},Symbol.toStringTag,{value:"Module"}));function se(e,t){return se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},se(e,t)}function Ft(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,se(e,t)}const Re=W.createContext(null);function Lt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pe(e,t){var n=function(i){return t&&s.isValidElement(i)?t(i):i},r=Object.create(null);return e&&s.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function jt(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,c={};for(var l in t){if(r[l])for(a=0;a<r[l].length;a++){var p=r[l][a];c[r[l][a]]=n(p)}c[l]=n(l)}for(a=0;a<o.length;a++)c[o[a]]=n(o[a]);return c}function F(e,t,n){return n[t]!=null?n[t]:e.props[t]}function kt(e,t){return pe(e.children,function(n){return s.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:F(n,"appear",e),enter:F(n,"enter",e),exit:F(n,"exit",e)})})}function $t(e,t,n){var r=pe(e.children),o=jt(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(s.isValidElement(a)){var c=i in t,l=i in r,p=t[i],d=s.isValidElement(p)&&!p.props.in;l&&(!c||d)?o[i]=s.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:F(a,"exit",e),enter:F(a,"enter",e)}):!l&&c&&!d?o[i]=s.cloneElement(a,{in:!1}):l&&c&&s.isValidElement(p)&&(o[i]=s.cloneElement(a,{onExited:n.bind(null,a),in:p.props.in,exit:F(a,"exit",e),enter:F(a,"enter",e)}))}}),o}var Ot=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Ut={component:"div",childFactory:function(t){return t}},fe=(function(e){Ft(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=i.handleExited.bind(Lt(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var a=i.children,c=i.handleExited,l=i.firstRender;return{children:l?kt(o,c):$t(o,a,c),firstRender:!1}},n.handleExited=function(o,i){var a=pe(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(c){var l=L({},c.children);return delete l[o.key],{children:l}}))},n.render=function(){var o=this.props,i=o.component,a=o.childFactory,c=H(o,["component","childFactory"]),l=this.state.contextValue,p=Ot(this.state.children).map(a);return delete c.appear,delete c.enter,delete c.exit,i===null?W.createElement(Re.Provider,{value:l},p):W.createElement(Re.Provider,{value:l},W.createElement(i,c,p))},t})(W.Component);fe.propTypes={};fe.defaultProps=Ut;function At(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:c,onExited:l,timeout:p}=e,[d,m]=s.useState(!1),b=T(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},h=T(n.child,d&&n.childLeaving,r&&n.childPulsate);return!c&&!d&&m(!0),s.useEffect(()=>{if(!c&&l!=null){const R=setTimeout(l,p);return()=>{clearTimeout(R)}}},[l,c,p]),I.jsx("span",{className:b,style:y,children:I.jsx("span",{className:h})})}const g=le("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Kt=["center","classes","className"];let J=e=>e,xe,Ee,ve,Ce;const ae=550,zt=80,Wt=ue(xe||(xe=J`
1
+ import{cA as Qe,cw as et,u as tt,aj as H,ak as L,cB as Me,al as nt,cC as rt,ai as we,w as ue,T as ot,c7 as it}from"./index-DQABJ8K0.js";import{r as s,j as I,R as W,f as st}from"./react-BYHuwl8r.js";import{C as Pe,c as T,a as le,g as at,b as ut}from"./clsx-WwvpwSg0.js";import{e as lt,s as ce}from"./styled-Dsdo2L_S.js";import{S as ge}from"./emotion-styled.browser.esm-D9bzEYCr.js";function Ie(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Ie(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ct(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ie(e))&&(r&&(r+=" "),r+=t);return r}const pt=["className","component"];function ft(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Qe("div",{shouldForwardProp:c=>c!=="theme"&&c!=="sx"&&c!=="as"})(et);return s.forwardRef(function(l,p){const d=tt(n),m=lt(l),{className:b,component:y="div"}=m,h=H(m,pt);return I.jsx(i,L({as:y,ref:p,className:ct(b,o?o(r):r),theme:t&&d[t]||d},h))})}function dt(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function ht(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function mt(e,t){return()=>null}function bt(e,t){var n,r;return s.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Ne(e){return e&&e.ownerDocument||document}function gt(e){return Ne(e).defaultView||window}function yt(e,t){return()=>null}function Ve(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Rt(e,t,n,r,o){return null}function xt({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=s.useRef(e!==void 0),[i,a]=s.useState(t),c=o?e:i,l=s.useCallback(p=>{o||a(p)},[]);return[c,l]}function X(e){const t=s.useRef(e);return Me(()=>{t.current=e}),s.useRef((...n)=>(0,t.current)(...n)).current}function oe(...e){return s.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Ve(n,t)})},e)}const ye={};function Et(e,t){const n=s.useRef(ye);return n.current===ye&&(n.current=e(t)),n}const vt=[];function Ct(e){s.useEffect(e,vt)}class G{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new G}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Tt(){const e=Et(G.create).current;return Ct(e.disposeEffect),e}let Z=!0,ie=!1;const Mt=new G,wt={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Pt(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&wt[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function It(e){e.metaKey||e.altKey||e.ctrlKey||(Z=!0)}function ne(){Z=!1}function Nt(){this.visibilityState==="hidden"&&ie&&(Z=!0)}function Vt(e){e.addEventListener("keydown",It,!0),e.addEventListener("mousedown",ne,!0),e.addEventListener("pointerdown",ne,!0),e.addEventListener("touchstart",ne,!0),e.addEventListener("visibilitychange",Nt,!0)}function St(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Z||Pt(t)}function Se(){const e=s.useCallback(o=>{o!=null&&Vt(o.ownerDocument)},[]),t=s.useRef(!1);function n(){return t.current?(ie=!0,Mt.start(100,()=>{ie=!1}),t.current=!1,!0):!1}function r(o){return St(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function Bt(e,t){function n(r,o){return I.jsx(ge,L({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=ge.muiName,s.memo(s.forwardRef(n))}const _t={configure:e=>{Pe.configure(e)}},Dt=Object.freeze(Object.defineProperty({__proto__:null,capitalize:nt,createChainedFunction:dt,createSvgIcon:Bt,debounce:ht,deprecatedPropType:mt,isMuiElement:bt,ownerDocument:Ne,ownerWindow:gt,requirePropFactory:yt,setRef:Ve,unstable_ClassNameGenerator:_t,unstable_useEnhancedEffect:Me,unstable_useId:rt,unsupportedProp:Rt,useControlled:xt,useEventCallback:X,useForkRef:oe,useIsFocusVisible:Se},Symbol.toStringTag,{value:"Module"}));function se(e,t){return se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},se(e,t)}function Ft(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,se(e,t)}const Re=W.createContext(null);function Lt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pe(e,t){var n=function(i){return t&&s.isValidElement(i)?t(i):i},r=Object.create(null);return e&&s.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function jt(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,c={};for(var l in t){if(r[l])for(a=0;a<r[l].length;a++){var p=r[l][a];c[r[l][a]]=n(p)}c[l]=n(l)}for(a=0;a<o.length;a++)c[o[a]]=n(o[a]);return c}function F(e,t,n){return n[t]!=null?n[t]:e.props[t]}function kt(e,t){return pe(e.children,function(n){return s.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:F(n,"appear",e),enter:F(n,"enter",e),exit:F(n,"exit",e)})})}function $t(e,t,n){var r=pe(e.children),o=jt(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(s.isValidElement(a)){var c=i in t,l=i in r,p=t[i],d=s.isValidElement(p)&&!p.props.in;l&&(!c||d)?o[i]=s.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:F(a,"exit",e),enter:F(a,"enter",e)}):!l&&c&&!d?o[i]=s.cloneElement(a,{in:!1}):l&&c&&s.isValidElement(p)&&(o[i]=s.cloneElement(a,{onExited:n.bind(null,a),in:p.props.in,exit:F(a,"exit",e),enter:F(a,"enter",e)}))}}),o}var Ot=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Ut={component:"div",childFactory:function(t){return t}},fe=(function(e){Ft(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=i.handleExited.bind(Lt(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var a=i.children,c=i.handleExited,l=i.firstRender;return{children:l?kt(o,c):$t(o,a,c),firstRender:!1}},n.handleExited=function(o,i){var a=pe(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(c){var l=L({},c.children);return delete l[o.key],{children:l}}))},n.render=function(){var o=this.props,i=o.component,a=o.childFactory,c=H(o,["component","childFactory"]),l=this.state.contextValue,p=Ot(this.state.children).map(a);return delete c.appear,delete c.enter,delete c.exit,i===null?W.createElement(Re.Provider,{value:l},p):W.createElement(Re.Provider,{value:l},W.createElement(i,c,p))},t})(W.Component);fe.propTypes={};fe.defaultProps=Ut;function At(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:c,onExited:l,timeout:p}=e,[d,m]=s.useState(!1),b=T(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},h=T(n.child,d&&n.childLeaving,r&&n.childPulsate);return!c&&!d&&m(!0),s.useEffect(()=>{if(!c&&l!=null){const R=setTimeout(l,p);return()=>{clearTimeout(R)}}},[l,c,p]),I.jsx("span",{className:b,style:y,children:I.jsx("span",{className:h})})}const g=le("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Kt=["center","classes","className"];let J=e=>e,xe,Ee,ve,Ce;const ae=550,zt=80,Wt=ue(xe||(xe=J`
2
2
  0% {
3
3
  transform: scale(0);
4
4
  opacity: 0.1;
@@ -0,0 +1,11 @@
1
+ <svg preserveAspectRatio="none" overflow="visible" style="display: block;" width="138" height="138" viewBox="0 0 138 138" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g id="Frame">
3
+ <path id="Vector" d="M35.1006 55.2788C33.7412 53.9194 32.7075 52.376 31.9995 50.6484C31.2915 48.9209 30.9375 47.1084 30.9375 45.2109C30.9375 43.2002 31.3057 41.3452 32.042 39.646C32.7783 37.9468 33.7837 36.46 35.0581 35.1855C36.3325 33.9111 37.8477 32.9199 39.6035 32.2119C41.3594 31.5039 43.2144 31.1357 45.1685 31.1074C47.0376 31.1074 48.8501 31.4331 50.606 32.0845C52.3618 32.7358 53.9194 33.7412 55.2788 35.1006L70.2744 50.0962L66.4087 53.9619L58.125 45.6782L45.6782 58.125L53.9619 66.4087L50.0962 70.2744L35.1006 55.2788ZM45.2109 36.46C43.9932 36.46 42.8462 36.6724 41.77 37.0972C40.6938 37.522 39.7593 38.145 38.9663 38.9663C38.1733 39.7876 37.5503 40.708 37.0972 41.7275C36.644 42.7471 36.4033 43.9082 36.375 45.2109C36.375 46.2871 36.5166 47.2217 36.7998 48.0146C37.083 48.8076 37.4937 49.5581 38.0317 50.2661C38.5698 50.9741 39.1504 51.6396 39.7734 52.2627C40.3965 52.8857 41.0762 53.5513 41.8125 54.2593L54.2593 41.8125C53.5229 41.1045 52.8574 40.4248 52.2627 39.7734C51.668 39.1221 51.0166 38.5557 50.3086 38.0742C49.6006 37.5928 48.8643 37.1963 48.0996 36.8848C47.335 36.5732 46.3721 36.4316 45.2109 36.46ZM112.5 112.5L85.6099 105.788L73.1631 93.3413L77.0288 89.4756L86.2471 98.7363C86.7002 97.2637 87.3232 95.876 88.1162 94.5732C88.9092 93.2705 89.8579 92.0669 90.9624 90.9624C92.0669 89.8579 93.2563 88.9233 94.5308 88.1587C95.8052 87.394 97.207 86.7568 98.7363 86.2471L89.4756 77.0288L93.3413 73.1631L105.788 85.6099L112.5 112.5ZM105.023 105.023L101.54 91.0474C100.209 91.3306 98.9771 91.7837 97.8442 92.4067C96.7114 93.0298 95.6777 93.8086 94.7432 94.7432C93.8086 95.6777 93.0298 96.7114 92.4067 97.8442C91.7837 98.9771 91.3306 100.209 91.0474 101.54L105.023 105.023ZM98.9062 33.6562C100.407 33.6562 101.809 33.9395 103.112 34.5059C104.415 35.0723 105.576 35.8511 106.595 36.8423C107.615 37.8335 108.394 38.9805 108.932 40.2832C109.47 41.5859 109.753 43.002 109.781 44.5312C109.781 45.9756 109.512 47.3633 108.974 48.6943C108.436 50.0254 107.643 51.2007 106.595 52.2202L57.9126 100.903C57.6577 102.574 57.1338 104.103 56.3408 105.491C55.5479 106.878 54.5566 108.11 53.3672 109.187C52.1777 110.263 50.8325 111.07 49.3315 111.608C47.8306 112.146 46.2305 112.443 44.5312 112.5H25.5V107.062C25.8115 107.062 26.1372 107.02 26.4771 106.935C26.8169 106.85 27.1284 106.723 27.4116 106.553C28.1196 106.185 28.7002 105.717 29.1533 105.151C29.6064 104.584 29.9604 103.961 30.2153 103.282C30.4702 102.602 30.6543 101.894 30.7676 101.158C30.8809 100.421 30.9375 99.6709 30.9375 98.9062C30.9375 97.2354 31.2207 95.6494 31.7871 94.1484C32.3535 92.6475 33.1748 91.2881 34.251 90.0703C35.3271 88.8525 36.5449 87.8613 37.9043 87.0967C39.2637 86.332 40.8071 85.8081 42.5347 85.5249L91.2173 36.8423C92.2368 35.8228 93.4121 35.0439 94.7432 34.5059C96.0742 33.9678 97.4619 33.6846 98.9062 33.6562ZM44.5312 107.062C45.6641 107.062 46.7261 106.85 47.7173 106.425C48.7085 106 49.5723 105.42 50.3086 104.684C51.0449 103.947 51.6255 103.083 52.0503 102.092C52.4751 101.101 52.6875 100.039 52.6875 98.9062C52.6875 97.7734 52.4751 96.7114 52.0503 95.7202C51.6255 94.729 51.0449 93.8652 50.3086 93.1289C49.5723 92.3926 48.7085 91.812 47.7173 91.3872C46.7261 90.9624 45.6641 90.75 44.5312 90.75C43.3984 90.75 42.3364 90.9624 41.3452 91.3872C40.354 91.812 39.4902 92.3926 38.7539 93.1289C38.0176 93.8652 37.437 94.729 37.0122 95.7202C36.5874 96.7114 36.375 97.7734 36.375 98.9062C36.375 101.852 35.4688 104.57 33.6562 107.062H44.5312ZM66.5361 84.5903C65.6299 82.8062 64.5679 81.3052 63.3501 80.0874C62.1323 78.8696 60.6313 77.8076 58.8472 76.9014L49.459 86.2896C51.2148 86.9692 52.7583 87.9746 54.0894 89.3057C55.4204 90.6367 56.4399 92.1943 57.1479 93.9785L66.5361 84.5903ZM102.729 48.3545C103.777 47.3066 104.301 46.0322 104.301 44.5312C104.301 43.7949 104.16 43.1011 103.876 42.4497C103.593 41.7983 103.211 41.2319 102.729 40.7505C102.248 40.269 101.667 39.8726 100.988 39.561C100.308 39.2495 99.6143 39.1079 98.9062 39.1362C97.4053 39.1362 96.1309 39.6602 95.083 40.708L62.8403 72.9082C64.5679 73.9277 66.0264 75.0322 67.2158 76.2217C68.4053 77.4111 69.5098 78.8696 70.5293 80.5972L102.729 48.3545Z" fill="url(#paint0_linear_0_29)"/>
4
+ </g>
5
+ <defs>
6
+ <linearGradient id="paint0_linear_0_29" x1="22.7587" y1="71.8089" x2="176.013" y2="56.3755" gradientUnits="userSpaceOnUse">
7
+ <stop stop-color="#FF2D55"/>
8
+ <stop offset="1" stop-color="#FFBC5B"/>
9
+ </linearGradient>
10
+ </defs>
11
+ </svg>
@@ -1 +1 @@
1
- import{aD as z,aV as G,a3 as E,aE as Q,a4 as H,aF as Y,b9 as T,a8 as J,bT as W,q as X,bh as Z,bU as K,az as tt,aq as et,bi as nt}from"./sendRawTransaction-DCwkPyxN.js";import{af as q,am as C,a7 as at,ax as rt,B as st,ad as M}from"./NetworkUtil-DXqql1Wz.js";import{P as S,w as A,Q as ot,c as ct}from"./W3MFrameProviderSingleton-KChYZ3ey.js";const v=new Map,D=new Map;let it=0;function _(t,n,a){const e=++it,r=()=>v.get(t)||[],s=()=>{const l=r().filter(o=>o.id!==e);if(l.length===0){v.delete(t),D.delete(t);return}v.set(t,l)},f=()=>{const p=r();if(!p.some(o=>o.id===e))return;const l=D.get(t);if(p.length===1&&l){const o=l();o instanceof Promise&&o.catch(()=>{})}s()},b=r();if(v.set(t,[...b,{id:e,fns:n}]),b&&b.length>0)return f;const i={};for(const p in n)i[p]=((...l)=>{var c,u;const o=r();if(o.length!==0)for(const d of o)(u=(c=d.fns)[p])==null||u.call(c,...l)});const g=a(i);return typeof g=="function"&&D.set(t,g),f}function U(t,{emitOnBegin:n,initialWaitTime:a,interval:e}){let r=!0;const s=()=>r=!1;return(async()=>{let b;n&&(b=await t({unpoll:s}));const i=await(a==null?void 0:a(b))??e;await S(i);const g=async()=>{r&&(await t({unpoll:s}),await S(e),g())};g()})(),s}function ut(t,{method:n}){var e,r;const a={};return t.transport.type==="fallback"&&((r=(e=t.transport).onResponse)==null||r.call(e,({method:s,response:f,status:b,transport:i})=>{b==="success"&&n===s&&(a[f]=i.request)})),(s=>a[s]||t.request)}const lt=new Map,ft=new Map;function pt(t){const n=(r,s)=>({clear:()=>s.delete(r),get:()=>s.get(r),set:f=>s.set(r,f)}),a=n(t,lt),e=n(t,ft);return{clear:()=>{a.clear(),e.clear()},promise:a,response:e}}async function dt(t,{cacheKey:n,cacheTime:a=Number.POSITIVE_INFINITY}){const e=pt(n),r=e.response.get();if(r&&a>0&&Date.now()-r.created.getTime()<a)return r.data;let s=e.promise.get();s||(s=t(),e.promise.set(s));try{const f=await s;return e.response.set({created:new Date,data:f}),f}finally{e.promise.clear()}}const bt=t=>`blockNumber.${t}`;async function gt(t,{cacheTime:n=t.cacheTime}={}){const a=await dt(()=>t.request({method:"eth_blockNumber"}),{cacheKey:bt(t.uid),cacheTime:n});return BigInt(a)}async function mt(t,{filter:n}){const a="strict"in n&&n.strict,e=await n.request({method:"eth_getFilterChanges",params:[n.id]});if(typeof e[0]=="string")return e;const r=e.map(s=>z(s));return!("abi"in n)||!n.abi?r:G({abi:n.abi,logs:r,strict:a})}async function ht(t,{filter:n}){return n.request({method:"eth_uninstallFilter",params:[n.id]})}async function yt(t,{blockHash:n,blockNumber:a,blockTag:e,hash:r,index:s,sender:f,nonce:b}){var o,c,u;const i=e||"latest",g=a!==void 0?q(a):void 0;let p=null;if(r?p=await t.request({method:"eth_getTransactionByHash",params:[r]},{dedupe:!0}):n?p=await t.request({method:"eth_getTransactionByBlockHashAndIndex",params:[n,q(s)]},{dedupe:!0}):typeof s=="number"?p=await t.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[g||i,q(s)]},{dedupe:!!g}):f&&typeof b=="number"&&(p=await t.request({method:"eth_getTransactionBySenderAndNonce",params:[f,q(b)]},{dedupe:!0})),!p)throw new E({blockHash:n,blockNumber:a,blockTag:i,hash:r,index:s});return(((u=(c=(o=t.chain)==null?void 0:o.formatters)==null?void 0:c.transaction)==null?void 0:u.format)||Q)(p,"getTransaction")}async function O(t,{hash:n}){var r,s,f;const a=await t.request({method:"eth_getTransactionReceipt",params:[n]},{dedupe:!0});if(!a)throw new H({hash:n});return(((f=(s=(r=t.chain)==null?void 0:r.formatters)==null?void 0:s.transactionReceipt)==null?void 0:f.format)||Y)(a,"getTransactionReceipt")}function wt(t,{emitOnBegin:n=!1,emitMissed:a=!1,onBlockNumber:e,onError:r,poll:s,pollingInterval:f=t.pollingInterval}){const b=typeof s<"u"?s:!(t.transport.type==="webSocket"||t.transport.type==="ipc"||t.transport.type==="fallback"&&(t.transport.transports[0].config.type==="webSocket"||t.transport.transports[0].config.type==="ipc"));let i;return b?(()=>{const l=C(["watchBlockNumber",t.uid,n,a,f]);return _(l,{onBlockNumber:e,onError:r},o=>U(async()=>{var c;try{const u=await T(t,gt,"getBlockNumber")({cacheTime:0});if(i!==void 0){if(u===i)return;if(u-i>1&&a)for(let d=i+1n;d<u;d++)o.onBlockNumber(d,i),i=d}(i===void 0||u>i)&&(o.onBlockNumber(u,i),i=u)}catch(u){(c=o.onError)==null||c.call(o,u)}},{emitOnBegin:n,interval:f}))})():(()=>{const l=C(["watchBlockNumber",t.uid,n,a]);return _(l,{onBlockNumber:e,onError:r},o=>{let c=!0,u=()=>c=!1;return(async()=>{try{const d=(()=>{if(t.transport.type==="fallback"){const N=t.transport.transports.find(h=>h.config.type==="webSocket"||h.config.type==="ipc");return N?N.value:t.transport}return t.transport})(),{unsubscribe:w}=await d.subscribe({params:["newHeads"],onData(N){var I;if(!c)return;const h=at((I=N.result)==null?void 0:I.number);o.onBlockNumber(h,i),i=h},onError(N){var h;(h=o.onError)==null||h.call(o,N)}});u=w,c||u()}catch(d){r==null||r(d)}})(),()=>u()})})()}async function Rt(t,n){const{checkReplacement:a=!0,confirmations:e=1,hash:r,onReplaced:s,retryCount:f=6,retryDelay:b=({count:m})=>~~(1<<m)*200,timeout:i=18e4}=n,g=C(["waitForTransactionReceipt",t.uid,r]),p=(()=>{var m;return n.pollingInterval?n.pollingInterval:(m=t.chain)!=null&&m.experimental_preconfirmationTime?t.chain.experimental_preconfirmationTime:t.pollingInterval})();let l,o,c,u=!1,d,w;const{promise:N,resolve:h,reject:I}=rt(),F=i?setTimeout(()=>{w==null||w(),d==null||d(),I(new J({hash:r}))},i):void 0;return d=_(g,{onReplaced:s,resolve:h,reject:I},async m=>{if(c=await T(t,O,"getTransactionReceipt")({hash:r}).catch(()=>{}),c&&e<=1){clearTimeout(F),m.resolve(c),d==null||d();return}w=T(t,wt,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:p,async onBlockNumber($){const B=k=>{clearTimeout(F),w==null||w(),k(),d==null||d()};let R=$;if(!u)try{if(c){if(e>1&&(!c.blockNumber||R-c.blockNumber+1n<e))return;B(()=>m.resolve(c));return}if(a&&!l&&(u=!0,await A(async()=>{l=await T(t,yt,"getTransaction")({hash:r}),l.blockNumber&&(R=l.blockNumber)},{delay:b,retryCount:f}),u=!1),c=await T(t,O,"getTransactionReceipt")({hash:r}),e>1&&(!c.blockNumber||R-c.blockNumber+1n<e))return;B(()=>m.resolve(c))}catch(k){if(k instanceof E||k instanceof H){if(!l){u=!1;return}try{o=l,u=!0;const P=await A(()=>T(t,W,"getBlock")({blockNumber:R,includeTransactions:!0}),{delay:b,retryCount:f,shouldRetry:({error:x})=>x instanceof X});u=!1;const y=P.transactions.find(({from:x,nonce:V})=>x===o.from&&V===o.nonce);if(!y||(c=await T(t,O,"getTransactionReceipt")({hash:y.hash}),e>1&&(!c.blockNumber||R-c.blockNumber+1n<e)))return;let j="replaced";y.to===o.to&&y.value===o.value&&y.input===o.input?j="repriced":y.from===y.to&&y.value===0n&&(j="cancelled"),B(()=>{var x;(x=m.onReplaced)==null||x.call(m,{reason:j,replacedTransaction:o,transaction:y,transactionReceipt:c}),m.resolve(c)})}catch(P){B(()=>m.reject(P))}}else B(()=>m.reject(k))}}})}),N}class kt extends st{constructor({value:n}){super(`Number \`${n}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function Pt(t,n){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(t))throw new kt({value:t});let[a,e="0"]=t.split(".");const r=a.startsWith("-");if(r&&(a=a.slice(1)),e=e.replace(/(0+)$/,""),n===0)Math.round(+`.${e}`)===1&&(a=`${BigInt(a)+1n}`),e="";else if(e.length>n){const[s,f,b]=[e.slice(0,n-1),e.slice(n-1,n),e.slice(n)],i=Math.round(+`${f}.${b}`);i>9?e=`${BigInt(s)+BigInt(1)}0`.padStart(s.length+1,"0"):e=`${s}${i}`,e.length>n&&(e=e.slice(1),a=`${BigInt(a)+1n}`),e=e.slice(0,n)}else e=e.padEnd(n,"0");return BigInt(`${r?"-":""}${a}${e}`)}function xt(t){const{batch:n,chain:a,ccipRead:e,dataSuffix:r,key:s="base",name:f="Base Client",tokens:b,type:i="base"}=t,g=t.experimental_blockTag??(typeof(a==null?void 0:a.experimental_preconfirmationTime)=="number"?"pending":void 0),p=(a==null?void 0:a.blockTime)??12e3,l=Math.min(Math.max(Math.floor(p/2),500),4e3),o=t.pollingInterval??l,c=t.cacheTime??o,u=t.account?Z(t.account):void 0,{config:d,request:w,value:N}=t.transport({account:u,chain:a,pollingInterval:o}),h={...d,...N},I={account:u,batch:n,cacheTime:c,ccipRead:e,chain:a,dataSuffix:r,key:s,name:f,pollingInterval:o,request:w,tokens:b,transport:h,type:i,uid:ot(),...g?{experimental_blockTag:g}:{}};function F(m){return $=>{const B=$(m);for(const k in I)delete B[k];const R={...m,...B};for(const k in B){const P=m[k],y=B[k];L(P)&&L(y)&&(R[k]={...P,...y})}return Object.assign(R,{extend:F(R)})}}return Object.assign(I,{extend:F(I)})}function L(t){if(typeof t!="object"||t===null)return!1;const n=Object.getPrototypeOf(t);return n===Object.prototype||n===null}function Ft(t,n){const a=(e={})=>n(t,e);for(const e of["call","calls","callWithPeriod","estimateGas","simulate"])if(Object.hasOwn(n,e)){const r=n[e];a[e]=(s={})=>r.length>=2?r(t,s):r.length===0?r():r(s)}for(const e of["extractEvent","extractEvents"])Object.hasOwn(n,e)&&(a[e]=n[e]);return a}async function Tt(t){const n=ut(t,{method:"eth_newPendingTransactionFilter"}),a=await t.request({method:"eth_newPendingTransactionFilter"});return{id:a,request:n(a),type:"transaction"}}async function qt(t,{address:n,blockHash:a,blockNumber:e,blockTag:r=t.experimental_blockTag??"latest",requireCanonical:s}){var i,g,p;const f=K({blockHash:a,blockNumber:e,blockTag:r,requireCanonical:s});if((i=t.batch)!=null&&i.multicall&&((p=(g=t.chain)==null?void 0:g.contracts)!=null&&p.multicall3)){const l=t.chain.contracts.multicall3.address,o=tt({abi:M,functionName:"getEthBalance",args:[n]}),{data:c}=await T(t,nt,"call")({to:l,data:o,blockHash:a,blockNumber:e,blockTag:r,requireCanonical:s});return et({abi:M,functionName:"getEthBalance",args:[n],data:c||"0x"})}const b=await t.request({method:"eth_getBalance",params:[n,f]});return BigInt(b)}function vt(t,{batch:n=!0,onError:a,onTransactions:e,poll:r,pollingInterval:s=t.pollingInterval}){return(typeof r<"u"?r:t.transport.type!=="webSocket"&&t.transport.type!=="ipc")?(()=>{const g=C(["watchPendingTransactions",t.uid,n,s]);return _(g,{onTransactions:e,onError:a},p=>{let l;const o=U(async()=>{var c;try{if(!l)try{l=await T(t,Tt,"createPendingTransactionFilter")({});return}catch(d){throw o(),d}const u=await T(t,mt,"getFilterChanges")({filter:l});if(u.length===0)return;if(n)p.onTransactions(u);else for(const d of u)p.onTransactions([d])}catch(u){(c=p.onError)==null||c.call(p,u)}},{emitOnBegin:!0,interval:s});return async()=>{l&&await T(t,ht,"uninstallFilter")({filter:l}),o()}})})():(()=>{let g=!0,p=()=>g=!1;return(async()=>{try{const{unsubscribe:l}=await t.transport.subscribe({params:["newPendingTransactions"],onData(o){if(!g)return;const c=o.result;e([c])},onError(o){a==null||a(o)}});p=l,g||p()}catch(l){a==null||a(l)}})(),()=>p()})()}function Ct(t,n={}){const{key:a="custom",methods:e,name:r="Custom Provider",retryDelay:s}=n;return({retryCount:f})=>ct({key:a,methods:e,name:r,request:t.request.bind(t),retryCount:n.retryCount??f,retryDelay:s,type:"custom"})}export{kt as I,Ct as a,Rt as b,xt as c,yt as d,vt as e,U as f,qt as g,ut as h,mt as i,gt as j,wt as k,O as l,Tt as m,Ft as n,_ as o,Pt as p,ht as u,dt as w};
1
+ import{aD as z,aV as G,a3 as E,aE as Q,a4 as H,aF as Y,b9 as T,a8 as J,bT as W,q as X,bh as Z,bU as K,az as tt,aq as et,bi as nt}from"./sendRawTransaction-CcN1UESp.js";import{af as q,am as C,a7 as at,ax as rt,B as st,ad as M}from"./NetworkUtil-DXqql1Wz.js";import{P as S,w as A,Q as ot,c as ct}from"./W3MFrameProviderSingleton-DUGxXY3k.js";const v=new Map,D=new Map;let it=0;function _(t,n,a){const e=++it,r=()=>v.get(t)||[],s=()=>{const l=r().filter(o=>o.id!==e);if(l.length===0){v.delete(t),D.delete(t);return}v.set(t,l)},f=()=>{const p=r();if(!p.some(o=>o.id===e))return;const l=D.get(t);if(p.length===1&&l){const o=l();o instanceof Promise&&o.catch(()=>{})}s()},b=r();if(v.set(t,[...b,{id:e,fns:n}]),b&&b.length>0)return f;const i={};for(const p in n)i[p]=((...l)=>{var c,u;const o=r();if(o.length!==0)for(const d of o)(u=(c=d.fns)[p])==null||u.call(c,...l)});const g=a(i);return typeof g=="function"&&D.set(t,g),f}function U(t,{emitOnBegin:n,initialWaitTime:a,interval:e}){let r=!0;const s=()=>r=!1;return(async()=>{let b;n&&(b=await t({unpoll:s}));const i=await(a==null?void 0:a(b))??e;await S(i);const g=async()=>{r&&(await t({unpoll:s}),await S(e),g())};g()})(),s}function ut(t,{method:n}){var e,r;const a={};return t.transport.type==="fallback"&&((r=(e=t.transport).onResponse)==null||r.call(e,({method:s,response:f,status:b,transport:i})=>{b==="success"&&n===s&&(a[f]=i.request)})),(s=>a[s]||t.request)}const lt=new Map,ft=new Map;function pt(t){const n=(r,s)=>({clear:()=>s.delete(r),get:()=>s.get(r),set:f=>s.set(r,f)}),a=n(t,lt),e=n(t,ft);return{clear:()=>{a.clear(),e.clear()},promise:a,response:e}}async function dt(t,{cacheKey:n,cacheTime:a=Number.POSITIVE_INFINITY}){const e=pt(n),r=e.response.get();if(r&&a>0&&Date.now()-r.created.getTime()<a)return r.data;let s=e.promise.get();s||(s=t(),e.promise.set(s));try{const f=await s;return e.response.set({created:new Date,data:f}),f}finally{e.promise.clear()}}const bt=t=>`blockNumber.${t}`;async function gt(t,{cacheTime:n=t.cacheTime}={}){const a=await dt(()=>t.request({method:"eth_blockNumber"}),{cacheKey:bt(t.uid),cacheTime:n});return BigInt(a)}async function mt(t,{filter:n}){const a="strict"in n&&n.strict,e=await n.request({method:"eth_getFilterChanges",params:[n.id]});if(typeof e[0]=="string")return e;const r=e.map(s=>z(s));return!("abi"in n)||!n.abi?r:G({abi:n.abi,logs:r,strict:a})}async function ht(t,{filter:n}){return n.request({method:"eth_uninstallFilter",params:[n.id]})}async function yt(t,{blockHash:n,blockNumber:a,blockTag:e,hash:r,index:s,sender:f,nonce:b}){var o,c,u;const i=e||"latest",g=a!==void 0?q(a):void 0;let p=null;if(r?p=await t.request({method:"eth_getTransactionByHash",params:[r]},{dedupe:!0}):n?p=await t.request({method:"eth_getTransactionByBlockHashAndIndex",params:[n,q(s)]},{dedupe:!0}):typeof s=="number"?p=await t.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[g||i,q(s)]},{dedupe:!!g}):f&&typeof b=="number"&&(p=await t.request({method:"eth_getTransactionBySenderAndNonce",params:[f,q(b)]},{dedupe:!0})),!p)throw new E({blockHash:n,blockNumber:a,blockTag:i,hash:r,index:s});return(((u=(c=(o=t.chain)==null?void 0:o.formatters)==null?void 0:c.transaction)==null?void 0:u.format)||Q)(p,"getTransaction")}async function O(t,{hash:n}){var r,s,f;const a=await t.request({method:"eth_getTransactionReceipt",params:[n]},{dedupe:!0});if(!a)throw new H({hash:n});return(((f=(s=(r=t.chain)==null?void 0:r.formatters)==null?void 0:s.transactionReceipt)==null?void 0:f.format)||Y)(a,"getTransactionReceipt")}function wt(t,{emitOnBegin:n=!1,emitMissed:a=!1,onBlockNumber:e,onError:r,poll:s,pollingInterval:f=t.pollingInterval}){const b=typeof s<"u"?s:!(t.transport.type==="webSocket"||t.transport.type==="ipc"||t.transport.type==="fallback"&&(t.transport.transports[0].config.type==="webSocket"||t.transport.transports[0].config.type==="ipc"));let i;return b?(()=>{const l=C(["watchBlockNumber",t.uid,n,a,f]);return _(l,{onBlockNumber:e,onError:r},o=>U(async()=>{var c;try{const u=await T(t,gt,"getBlockNumber")({cacheTime:0});if(i!==void 0){if(u===i)return;if(u-i>1&&a)for(let d=i+1n;d<u;d++)o.onBlockNumber(d,i),i=d}(i===void 0||u>i)&&(o.onBlockNumber(u,i),i=u)}catch(u){(c=o.onError)==null||c.call(o,u)}},{emitOnBegin:n,interval:f}))})():(()=>{const l=C(["watchBlockNumber",t.uid,n,a]);return _(l,{onBlockNumber:e,onError:r},o=>{let c=!0,u=()=>c=!1;return(async()=>{try{const d=(()=>{if(t.transport.type==="fallback"){const N=t.transport.transports.find(h=>h.config.type==="webSocket"||h.config.type==="ipc");return N?N.value:t.transport}return t.transport})(),{unsubscribe:w}=await d.subscribe({params:["newHeads"],onData(N){var I;if(!c)return;const h=at((I=N.result)==null?void 0:I.number);o.onBlockNumber(h,i),i=h},onError(N){var h;(h=o.onError)==null||h.call(o,N)}});u=w,c||u()}catch(d){r==null||r(d)}})(),()=>u()})})()}async function Rt(t,n){const{checkReplacement:a=!0,confirmations:e=1,hash:r,onReplaced:s,retryCount:f=6,retryDelay:b=({count:m})=>~~(1<<m)*200,timeout:i=18e4}=n,g=C(["waitForTransactionReceipt",t.uid,r]),p=(()=>{var m;return n.pollingInterval?n.pollingInterval:(m=t.chain)!=null&&m.experimental_preconfirmationTime?t.chain.experimental_preconfirmationTime:t.pollingInterval})();let l,o,c,u=!1,d,w;const{promise:N,resolve:h,reject:I}=rt(),F=i?setTimeout(()=>{w==null||w(),d==null||d(),I(new J({hash:r}))},i):void 0;return d=_(g,{onReplaced:s,resolve:h,reject:I},async m=>{if(c=await T(t,O,"getTransactionReceipt")({hash:r}).catch(()=>{}),c&&e<=1){clearTimeout(F),m.resolve(c),d==null||d();return}w=T(t,wt,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:p,async onBlockNumber($){const B=k=>{clearTimeout(F),w==null||w(),k(),d==null||d()};let R=$;if(!u)try{if(c){if(e>1&&(!c.blockNumber||R-c.blockNumber+1n<e))return;B(()=>m.resolve(c));return}if(a&&!l&&(u=!0,await A(async()=>{l=await T(t,yt,"getTransaction")({hash:r}),l.blockNumber&&(R=l.blockNumber)},{delay:b,retryCount:f}),u=!1),c=await T(t,O,"getTransactionReceipt")({hash:r}),e>1&&(!c.blockNumber||R-c.blockNumber+1n<e))return;B(()=>m.resolve(c))}catch(k){if(k instanceof E||k instanceof H){if(!l){u=!1;return}try{o=l,u=!0;const P=await A(()=>T(t,W,"getBlock")({blockNumber:R,includeTransactions:!0}),{delay:b,retryCount:f,shouldRetry:({error:x})=>x instanceof X});u=!1;const y=P.transactions.find(({from:x,nonce:V})=>x===o.from&&V===o.nonce);if(!y||(c=await T(t,O,"getTransactionReceipt")({hash:y.hash}),e>1&&(!c.blockNumber||R-c.blockNumber+1n<e)))return;let j="replaced";y.to===o.to&&y.value===o.value&&y.input===o.input?j="repriced":y.from===y.to&&y.value===0n&&(j="cancelled"),B(()=>{var x;(x=m.onReplaced)==null||x.call(m,{reason:j,replacedTransaction:o,transaction:y,transactionReceipt:c}),m.resolve(c)})}catch(P){B(()=>m.reject(P))}}else B(()=>m.reject(k))}}})}),N}class kt extends st{constructor({value:n}){super(`Number \`${n}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function Pt(t,n){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(t))throw new kt({value:t});let[a,e="0"]=t.split(".");const r=a.startsWith("-");if(r&&(a=a.slice(1)),e=e.replace(/(0+)$/,""),n===0)Math.round(+`.${e}`)===1&&(a=`${BigInt(a)+1n}`),e="";else if(e.length>n){const[s,f,b]=[e.slice(0,n-1),e.slice(n-1,n),e.slice(n)],i=Math.round(+`${f}.${b}`);i>9?e=`${BigInt(s)+BigInt(1)}0`.padStart(s.length+1,"0"):e=`${s}${i}`,e.length>n&&(e=e.slice(1),a=`${BigInt(a)+1n}`),e=e.slice(0,n)}else e=e.padEnd(n,"0");return BigInt(`${r?"-":""}${a}${e}`)}function xt(t){const{batch:n,chain:a,ccipRead:e,dataSuffix:r,key:s="base",name:f="Base Client",tokens:b,type:i="base"}=t,g=t.experimental_blockTag??(typeof(a==null?void 0:a.experimental_preconfirmationTime)=="number"?"pending":void 0),p=(a==null?void 0:a.blockTime)??12e3,l=Math.min(Math.max(Math.floor(p/2),500),4e3),o=t.pollingInterval??l,c=t.cacheTime??o,u=t.account?Z(t.account):void 0,{config:d,request:w,value:N}=t.transport({account:u,chain:a,pollingInterval:o}),h={...d,...N},I={account:u,batch:n,cacheTime:c,ccipRead:e,chain:a,dataSuffix:r,key:s,name:f,pollingInterval:o,request:w,tokens:b,transport:h,type:i,uid:ot(),...g?{experimental_blockTag:g}:{}};function F(m){return $=>{const B=$(m);for(const k in I)delete B[k];const R={...m,...B};for(const k in B){const P=m[k],y=B[k];L(P)&&L(y)&&(R[k]={...P,...y})}return Object.assign(R,{extend:F(R)})}}return Object.assign(I,{extend:F(I)})}function L(t){if(typeof t!="object"||t===null)return!1;const n=Object.getPrototypeOf(t);return n===Object.prototype||n===null}function Ft(t,n){const a=(e={})=>n(t,e);for(const e of["call","calls","callWithPeriod","estimateGas","simulate"])if(Object.hasOwn(n,e)){const r=n[e];a[e]=(s={})=>r.length>=2?r(t,s):r.length===0?r():r(s)}for(const e of["extractEvent","extractEvents"])Object.hasOwn(n,e)&&(a[e]=n[e]);return a}async function Tt(t){const n=ut(t,{method:"eth_newPendingTransactionFilter"}),a=await t.request({method:"eth_newPendingTransactionFilter"});return{id:a,request:n(a),type:"transaction"}}async function qt(t,{address:n,blockHash:a,blockNumber:e,blockTag:r=t.experimental_blockTag??"latest",requireCanonical:s}){var i,g,p;const f=K({blockHash:a,blockNumber:e,blockTag:r,requireCanonical:s});if((i=t.batch)!=null&&i.multicall&&((p=(g=t.chain)==null?void 0:g.contracts)!=null&&p.multicall3)){const l=t.chain.contracts.multicall3.address,o=tt({abi:M,functionName:"getEthBalance",args:[n]}),{data:c}=await T(t,nt,"call")({to:l,data:o,blockHash:a,blockNumber:e,blockTag:r,requireCanonical:s});return et({abi:M,functionName:"getEthBalance",args:[n],data:c||"0x"})}const b=await t.request({method:"eth_getBalance",params:[n,f]});return BigInt(b)}function vt(t,{batch:n=!0,onError:a,onTransactions:e,poll:r,pollingInterval:s=t.pollingInterval}){return(typeof r<"u"?r:t.transport.type!=="webSocket"&&t.transport.type!=="ipc")?(()=>{const g=C(["watchPendingTransactions",t.uid,n,s]);return _(g,{onTransactions:e,onError:a},p=>{let l;const o=U(async()=>{var c;try{if(!l)try{l=await T(t,Tt,"createPendingTransactionFilter")({});return}catch(d){throw o(),d}const u=await T(t,mt,"getFilterChanges")({filter:l});if(u.length===0)return;if(n)p.onTransactions(u);else for(const d of u)p.onTransactions([d])}catch(u){(c=p.onError)==null||c.call(p,u)}},{emitOnBegin:!0,interval:s});return async()=>{l&&await T(t,ht,"uninstallFilter")({filter:l}),o()}})})():(()=>{let g=!0,p=()=>g=!1;return(async()=>{try{const{unsubscribe:l}=await t.transport.subscribe({params:["newPendingTransactions"],onData(o){if(!g)return;const c=o.result;e([c])},onError(o){a==null||a(o)}});p=l,g||p()}catch(l){a==null||a(l)}})(),()=>p()})()}function Ct(t,n={}){const{key:a="custom",methods:e,name:r="Custom Provider",retryDelay:s}=n;return({retryCount:f})=>ct({key:a,methods:e,name:r,request:t.request.bind(t),retryCount:n.retryCount??f,retryDelay:s,type:"custom"})}export{kt as I,Ct as a,Rt as b,xt as c,yt as d,vt as e,U as f,qt as g,ut as h,mt as i,gt as j,wt as k,O as l,Tt as m,Ft as n,_ as o,Pt as p,ht as u,dt as w};
@@ -1,4 +1,4 @@
1
- import{a as y,i as $,b as l}from"./lit-element-B3y9oplH.js";import{n as S,r as u}from"./class-map-CxwNmq0D.js";import"./index-rynehCHP.js";import{c as x,U as _}from"./index-CQ9RhRXs.js";import{W as E}from"./index-B4DUxntk.js";import{O as m,R as p,C as f,S as h,v as C,x as R}from"./W3MFrameProviderSingleton-KChYZ3ey.js";import{ReownAuthentication as v}from"./features-CCkzoVM7.js";import"./index-D0yb7tx6.js";import"./react-BYHuwl8r.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./index-BpzsK6nD.js";import"./events-DQ172AOg.js";import"./index-BVlv1YIR.js";import"./index-w01WQ1OT.js";import"./index-nibyPLVP.js";import"./index-B8PyPptj.js";import"./index.es-C4u3tLXm.js";import"./browser-ponyfill-Dj0kiq3a.js";import"./NetworkUtil-DXqql1Wz.js";import"./index-DJ2lLMDk.js";import"./index-B5yDM3Cs.js";const D=y`
1
+ import{a as y,i as $,b as l}from"./lit-element-B3y9oplH.js";import{n as S,r as u}from"./class-map-CxwNmq0D.js";import"./index-C5p9LpAs.js";import{c as x,U as _}from"./index-BjuwD4ba.js";import{W as E}from"./index-BvWni_zR.js";import{O as m,R as p,C as f,S as h,v as C,x as R}from"./W3MFrameProviderSingleton-DUGxXY3k.js";import{ReownAuthentication as v}from"./features-CK3qf9ZN.js";import"./index-DQABJ8K0.js";import"./react-BYHuwl8r.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./index-DYmMl9gi.js";import"./events-DQ172AOg.js";import"./index-DmNnfRqv.js";import"./index-w01WQ1OT.js";import"./index-nibyPLVP.js";import"./index-Bn_uaVAp.js";import"./index.es-DNO5glcp.js";import"./browser-ponyfill-Dj0kiq3a.js";import"./NetworkUtil-DXqql1Wz.js";import"./index-C83EM4_2.js";import"./index-9sMHHA07.js";const D=y`
2
2
  .email-sufixes {
3
3
  display: flex;
4
4
  flex-direction: row;
@@ -1,4 +1,4 @@
1
- import{d as S}from"./index-rynehCHP.js";import{c as d}from"./index-CQ9RhRXs.js";import{W as C}from"./index-B4DUxntk.js";import{C as D,k as g,O as h,E as c,M as _,R as s,S as f,b,o as m,y as $}from"./W3MFrameProviderSingleton-KChYZ3ey.js";import{i as y,b as u,a as W}from"./lit-element-B3y9oplH.js";import{r as E}from"./class-map-CxwNmq0D.js";import"./index-tZz3YEeL.js";import"./index-DJ2lLMDk.js";import{e as P,n as N}from"./ref-BsAZ42-h.js";import"./index-CyEy9W2J.js";import"./index-lxi2Pbq1.js";import{au as T}from"./NetworkUtil-DXqql1Wz.js";import"./index-D0yb7tx6.js";import"./react-BYHuwl8r.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./index-BpzsK6nD.js";import"./events-DQ172AOg.js";import"./index-BVlv1YIR.js";import"./index-w01WQ1OT.js";import"./index-nibyPLVP.js";import"./index-B8PyPptj.js";import"./index.es-C4u3tLXm.js";import"./browser-ponyfill-Dj0kiq3a.js";import"./index-B5yDM3Cs.js";import"./async-directive-BRxn_Py3.js";import"./index-BgYHNOmZ.js";var F=function(o,e,t,r){var n=arguments.length,i=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,r);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(i=(n<3?a(i):n>3?a(e,t,i):a(e,t))||i);return n>3&&i&&Object.defineProperty(e,t,i),i};let I=class extends C{constructor(){super(...arguments),this.onOtpSubmit=async e=>{var t,r;try{if(this.authConnector){const n=D.state.activeChain,i=g.getConnections(n),a=(t=h.state.remoteFeatures)==null?void 0:t.multiWallet,l=i.length>0;if(await this.authConnector.provider.connectOtp({otp:e}),c.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_PASS"}),n)await g.connectExternal(this.authConnector,n);else throw new Error("Active chain is not set on ChainController");if((r=h.state.remoteFeatures)!=null&&r.emailCapture)return;if(h.state.siwx){_.close();return}if(l&&a){s.replace("ProfileWallets"),f.showSuccess("New Wallet Added");return}_.close()}}catch(n){throw c.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_FAIL",properties:{message:b.parseError(n)}}),n}},this.onOtpResend=async e=>{this.authConnector&&(await this.authConnector.provider.connectEmail({email:e}),c.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_SENT"}))}}};I=F([d("w3m-email-verify-otp-view")],I);const U=S`
1
+ import{d as S}from"./index-C5p9LpAs.js";import{c as d}from"./index-BjuwD4ba.js";import{W as C}from"./index-BvWni_zR.js";import{C as D,k as g,O as h,E as c,M as _,R as s,S as f,b,o as m,y as $}from"./W3MFrameProviderSingleton-DUGxXY3k.js";import{i as y,b as u,a as W}from"./lit-element-B3y9oplH.js";import{r as E}from"./class-map-CxwNmq0D.js";import"./index-CZ3-3d7g.js";import"./index-C83EM4_2.js";import{e as P,n as N}from"./ref-BsAZ42-h.js";import"./index-CHtt63_F.js";import"./index-I5oIRknD.js";import{au as T}from"./NetworkUtil-DXqql1Wz.js";import"./index-DQABJ8K0.js";import"./react-BYHuwl8r.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./index-DYmMl9gi.js";import"./events-DQ172AOg.js";import"./index-DmNnfRqv.js";import"./index-w01WQ1OT.js";import"./index-nibyPLVP.js";import"./index-Bn_uaVAp.js";import"./index.es-DNO5glcp.js";import"./browser-ponyfill-Dj0kiq3a.js";import"./index-9sMHHA07.js";import"./async-directive-BRxn_Py3.js";import"./index-xKy8W33s.js";var F=function(o,e,t,r){var n=arguments.length,i=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,r);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(i=(n<3?a(i):n>3?a(e,t,i):a(e,t))||i);return n>3&&i&&Object.defineProperty(e,t,i),i};let I=class extends C{constructor(){super(...arguments),this.onOtpSubmit=async e=>{var t,r;try{if(this.authConnector){const n=D.state.activeChain,i=g.getConnections(n),a=(t=h.state.remoteFeatures)==null?void 0:t.multiWallet,l=i.length>0;if(await this.authConnector.provider.connectOtp({otp:e}),c.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_PASS"}),n)await g.connectExternal(this.authConnector,n);else throw new Error("Active chain is not set on ChainController");if((r=h.state.remoteFeatures)!=null&&r.emailCapture)return;if(h.state.siwx){_.close();return}if(l&&a){s.replace("ProfileWallets"),f.showSuccess("New Wallet Added");return}_.close()}}catch(n){throw c.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_FAIL",properties:{message:b.parseError(n)}}),n}},this.onOtpResend=async e=>{this.authConnector&&(await this.authConnector.provider.connectEmail({email:e}),c.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_SENT"}))}}};I=F([d("w3m-email-verify-otp-view")],I);const U=S`
2
2
  wui-icon-box {
3
3
  height: ${({spacing:o})=>o[16]};
4
4
  width: ${({spacing:o})=>o[16]};
@@ -1,4 +1,4 @@
1
- import{a as Y,i as g,b as c}from"./lit-element-B3y9oplH.js";import{r as d,n as l,o as K}from"./class-map-CxwNmq0D.js";import{d as E,r as z,e as B}from"./index-rynehCHP.js";import{c as w}from"./index-CQ9RhRXs.js";import{M as W,O as G,o as _,T as j,H as L,d as N,C as m,I as V,l as C,W as h,k as q,J as X,K as v,b as k,E as O,S as J,R as Q}from"./W3MFrameProviderSingleton-KChYZ3ey.js";import"./index-B7mvz5SS.js";import{au as D}from"./NetworkUtil-DXqql1Wz.js";import{e as Z,n as ee}from"./ref-BsAZ42-h.js";import"./index-B5yDM3Cs.js";import{H as I}from"./HelpersUtil-gxfrB6dz.js";import"./index-BgYHNOmZ.js";import"./index-B3HeHO54.js";import"./index-CyEy9W2J.js";import"./index-tZz3YEeL.js";import"./index-DJ2lLMDk.js";import{N as te}from"./NavigationUtil-DmfK5sOV.js";import"./index-D0yb7tx6.js";import"./react-BYHuwl8r.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./index-BpzsK6nD.js";import"./events-DQ172AOg.js";import"./index-BVlv1YIR.js";import"./index-w01WQ1OT.js";import"./index-nibyPLVP.js";import"./index-B8PyPptj.js";import"./index.es-C4u3tLXm.js";import"./browser-ponyfill-Dj0kiq3a.js";import"./async-directive-BRxn_Py3.js";import"./ConstantsUtil-CtukCvy7.js";const ie=Y`
1
+ import{a as Y,i as g,b as c}from"./lit-element-B3y9oplH.js";import{r as d,n as l,o as K}from"./class-map-CxwNmq0D.js";import{d as E,r as z,e as B}from"./index-C5p9LpAs.js";import{c as w}from"./index-BjuwD4ba.js";import{M as W,O as G,o as _,T as j,H as L,d as N,C as m,I as V,l as C,W as h,k as q,J as X,K as v,b as k,E as O,S as J,R as Q}from"./W3MFrameProviderSingleton-DUGxXY3k.js";import"./index-DuI636q2.js";import{au as D}from"./NetworkUtil-DXqql1Wz.js";import{e as Z,n as ee}from"./ref-BsAZ42-h.js";import"./index-9sMHHA07.js";import{H as I}from"./HelpersUtil-YUnnMEbv.js";import"./index-xKy8W33s.js";import"./index-nfyZZM7e.js";import"./index-CHtt63_F.js";import"./index-CZ3-3d7g.js";import"./index-C83EM4_2.js";import{N as te}from"./NavigationUtil-DmfK5sOV.js";import"./index-DQABJ8K0.js";import"./react-BYHuwl8r.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./index-DYmMl9gi.js";import"./events-DQ172AOg.js";import"./index-DmNnfRqv.js";import"./index-w01WQ1OT.js";import"./index-nibyPLVP.js";import"./index-Bn_uaVAp.js";import"./index.es-DNO5glcp.js";import"./browser-ponyfill-Dj0kiq3a.js";import"./async-directive-BRxn_Py3.js";import"./ConstantsUtil-CtukCvy7.js";const ie=Y`
2
2
  div {
3
3
  width: 100%;
4
4
  }
@@ -1 +1 @@
1
- import{ai as k,aj as A,ak as C,al as P,bl as O,bm as B,bn as M,bo as U,bp as q,bq as D,br as V,bs as G}from"./index-D0yb7tx6.js";import{r as y,j as N}from"./react-BYHuwl8r.js";import{g as L,a as W,c as H,b as J}from"./clsx-WwvpwSg0.js";import{s as K}from"./styled-Dp53Pb8_.js";function Q(o){return L("MuiSvgIcon",o)}W("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const X=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Y=o=>{const{color:e,fontSize:r,classes:a}=o,t={root:["root",e!=="inherit"&&`color${P(e)}`,`fontSize${P(r)}`]};return J(t,Q,a)},Z=K("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:r}=o;return[e.root,r.color!=="inherit"&&e[`color${P(r.color)}`],e[`fontSize${P(r.fontSize)}`]]}})(({theme:o,ownerState:e})=>{var r,a,t,l,d,m,g,f,u,i,p,h,c;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=o.transitions)==null||(a=r.create)==null?void 0:a.call(r,"fill",{duration:(t=o.transitions)==null||(t=t.duration)==null?void 0:t.shorter}),fontSize:{inherit:"inherit",small:((l=o.typography)==null||(d=l.pxToRem)==null?void 0:d.call(l,20))||"1.25rem",medium:((m=o.typography)==null||(g=m.pxToRem)==null?void 0:g.call(m,24))||"1.5rem",large:((f=o.typography)==null||(u=f.pxToRem)==null?void 0:u.call(f,35))||"2.1875rem"}[e.fontSize],color:(i=(p=(o.vars||o).palette)==null||(p=p[e.color])==null?void 0:p.main)!=null?i:{action:(h=(o.vars||o).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(c=(o.vars||o).palette)==null||(c=c.action)==null?void 0:c.disabled,inherit:void 0}[e.color]}}),ee=y.forwardRef(function(e,r){const a=k({props:e,name:"MuiSvgIcon"}),{children:t,className:l,color:d="inherit",component:m="svg",fontSize:g="medium",htmlColor:f,inheritViewBox:u=!1,titleAccess:i,viewBox:p="0 0 24 24"}=a,h=A(a,X),c=y.isValidElement(t)&&t.type==="svg",s=C({},a,{color:d,component:m,fontSize:g,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:c}),n={};u||(n.viewBox=p);const v=Y(s);return N.jsxs(Z,C({as:m,className:H(v.root,l),focusable:"false",color:f,"aria-hidden":i?void 0:!0,role:i?"img":void 0,ref:r},n,h,c&&t.props,{ownerState:s,children:[c?t.props.children:t,i?N.jsx("title",{children:i}):null]}))});ee.muiName="SvgIcon";var te=O,oe=function(e){return e!=="theme"},T=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?te:oe},E=function(e,r,a){var t;if(r){var l=r.shouldForwardProp;t=e.__emotion_forwardProp&&l?function(d){return e.__emotion_forwardProp(d)&&l(d)}:l}return typeof t!="function"&&a&&(t=e.__emotion_forwardProp),t},re=function(e){var r=e.cache,a=e.serialized,t=e.isStringTag;return D(r,a,t),V(function(){return G(r,a,t)}),null},ae=function o(e,r){var a=e.__emotion_real===e,t=a&&e.__emotion_base||e,l,d;r!==void 0&&(l=r.label,d=r.target);var m=E(e,r,a),g=m||T(t),f=!g("as");return function(){var u=arguments,i=a&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(l!==void 0&&i.push("label:"+l+";"),u[0]==null||u[0].raw===void 0)i.push.apply(i,u);else{var p=u[0];i.push(p[0]);for(var h=u.length,c=1;c<h;c++)i.push(u[c],p[c])}var s=B(function(n,v,b){var z=f&&n.as||t,S="",$=[],_=n;if(n.theme==null){_={};for(var I in n)_[I]=n[I];_.theme=y.useContext(M)}typeof n.className=="string"?S=U(v.registered,$,n.className):n.className!=null&&(S=n.className+" ");var F=q(i.concat($),v.registered,_);S+=v.key+"-"+F.name,d!==void 0&&(S+=" "+d);var j=f&&m===void 0?T(z):g,w={};for(var x in n)f&&x==="as"||j(x)&&(w[x]=n[x]);return w.className=S,b&&(w.ref=b),y.createElement(y.Fragment,null,y.createElement(re,{cache:v,serialized:F,isStringTag:typeof z=="string"}),y.createElement(z,w))});return s.displayName=l!==void 0?l:"Styled("+(typeof t=="string"?t:t.displayName||t.name||"Component")+")",s.defaultProps=e.defaultProps,s.__emotion_real=s,s.__emotion_base=t,s.__emotion_styles=i,s.__emotion_forwardProp=m,Object.defineProperty(s,"toString",{value:function(){return"."+d}}),s.withComponent=function(n,v){var b=o(n,C({},r,v,{shouldForwardProp:E(s,v,!0)}));return b.apply(void 0,i)},s}},ne=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],R=ae.bind(null);ne.forEach(function(o){R[o]=R(o)});export{ee as S,R as n};
1
+ import{ai as k,aj as A,ak as C,al as P,bl as O,bm as B,bn as M,bo as U,bp as q,bq as D,br as V,bs as G}from"./index-DQABJ8K0.js";import{r as y,j as N}from"./react-BYHuwl8r.js";import{g as L,a as W,c as H,b as J}from"./clsx-WwvpwSg0.js";import{s as K}from"./styled-Dsdo2L_S.js";function Q(o){return L("MuiSvgIcon",o)}W("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const X=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Y=o=>{const{color:e,fontSize:r,classes:a}=o,t={root:["root",e!=="inherit"&&`color${P(e)}`,`fontSize${P(r)}`]};return J(t,Q,a)},Z=K("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:r}=o;return[e.root,r.color!=="inherit"&&e[`color${P(r.color)}`],e[`fontSize${P(r.fontSize)}`]]}})(({theme:o,ownerState:e})=>{var r,a,t,l,d,m,g,f,u,i,p,h,c;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=o.transitions)==null||(a=r.create)==null?void 0:a.call(r,"fill",{duration:(t=o.transitions)==null||(t=t.duration)==null?void 0:t.shorter}),fontSize:{inherit:"inherit",small:((l=o.typography)==null||(d=l.pxToRem)==null?void 0:d.call(l,20))||"1.25rem",medium:((m=o.typography)==null||(g=m.pxToRem)==null?void 0:g.call(m,24))||"1.5rem",large:((f=o.typography)==null||(u=f.pxToRem)==null?void 0:u.call(f,35))||"2.1875rem"}[e.fontSize],color:(i=(p=(o.vars||o).palette)==null||(p=p[e.color])==null?void 0:p.main)!=null?i:{action:(h=(o.vars||o).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(c=(o.vars||o).palette)==null||(c=c.action)==null?void 0:c.disabled,inherit:void 0}[e.color]}}),ee=y.forwardRef(function(e,r){const a=k({props:e,name:"MuiSvgIcon"}),{children:t,className:l,color:d="inherit",component:m="svg",fontSize:g="medium",htmlColor:f,inheritViewBox:u=!1,titleAccess:i,viewBox:p="0 0 24 24"}=a,h=A(a,X),c=y.isValidElement(t)&&t.type==="svg",s=C({},a,{color:d,component:m,fontSize:g,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:c}),n={};u||(n.viewBox=p);const v=Y(s);return N.jsxs(Z,C({as:m,className:H(v.root,l),focusable:"false",color:f,"aria-hidden":i?void 0:!0,role:i?"img":void 0,ref:r},n,h,c&&t.props,{ownerState:s,children:[c?t.props.children:t,i?N.jsx("title",{children:i}):null]}))});ee.muiName="SvgIcon";var te=O,oe=function(e){return e!=="theme"},T=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?te:oe},E=function(e,r,a){var t;if(r){var l=r.shouldForwardProp;t=e.__emotion_forwardProp&&l?function(d){return e.__emotion_forwardProp(d)&&l(d)}:l}return typeof t!="function"&&a&&(t=e.__emotion_forwardProp),t},re=function(e){var r=e.cache,a=e.serialized,t=e.isStringTag;return D(r,a,t),V(function(){return G(r,a,t)}),null},ae=function o(e,r){var a=e.__emotion_real===e,t=a&&e.__emotion_base||e,l,d;r!==void 0&&(l=r.label,d=r.target);var m=E(e,r,a),g=m||T(t),f=!g("as");return function(){var u=arguments,i=a&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(l!==void 0&&i.push("label:"+l+";"),u[0]==null||u[0].raw===void 0)i.push.apply(i,u);else{var p=u[0];i.push(p[0]);for(var h=u.length,c=1;c<h;c++)i.push(u[c],p[c])}var s=B(function(n,v,b){var z=f&&n.as||t,S="",$=[],_=n;if(n.theme==null){_={};for(var I in n)_[I]=n[I];_.theme=y.useContext(M)}typeof n.className=="string"?S=U(v.registered,$,n.className):n.className!=null&&(S=n.className+" ");var F=q(i.concat($),v.registered,_);S+=v.key+"-"+F.name,d!==void 0&&(S+=" "+d);var j=f&&m===void 0?T(z):g,w={};for(var x in n)f&&x==="as"||j(x)&&(w[x]=n[x]);return w.className=S,b&&(w.ref=b),y.createElement(y.Fragment,null,y.createElement(re,{cache:v,serialized:F,isStringTag:typeof z=="string"}),y.createElement(z,w))});return s.displayName=l!==void 0?l:"Styled("+(typeof t=="string"?t:t.displayName||t.name||"Component")+")",s.defaultProps=e.defaultProps,s.__emotion_real=s,s.__emotion_base=t,s.__emotion_styles=i,s.__emotion_forwardProp=m,Object.defineProperty(s,"toString",{value:function(){return"."+d}}),s.withComponent=function(n,v){var b=o(n,C({},r,v,{shouldForwardProp:E(s,v,!0)}));return b.apply(void 0,i)},s}},ne=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],R=ae.bind(null);ne.forEach(function(o){R[o]=R(o)});export{ee as S,R as n};
@@ -1 +1 @@
1
- import{g as p}from"./to-serializable-transaction-w7hB_nia.js";import{s as w,r as y}from"./prepare-contract-call-DDzIRXLv.js";import{w as h}from"./wait-for-tx-receipt-Bswrc--t.js";import"./index-D0yb7tx6.js";import"./react-BYHuwl8r.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./transaction-Col-q-Ce.js";import"./utils-BQF5MiO5.js";import"./transactionReceipt-DZ540nfl.js";import"./sleep-mAKpSMLY.js";async function f({account:t,serializableTransaction:e,transaction:r,gasless:n}){const a=p({address:n.relayerForwarderAddress,chain:r.chain,client:r.client}),s=await y({contract:a,method:"function getNonce(address) view returns (uint256)",params:[t.address]}),[o,i]=await(async()=>{if(!e.to)throw new Error("engine transactions must have a 'to' address");if(!e.gas)throw new Error("engine transactions must have a 'gas' value");if(!e.data)throw new Error("engine transactions must have a 'data' value");if(n.experimentalChainlessSupport){const d={chainid:BigInt(r.chain.id),data:e.data,from:t.address,gas:e.gas,nonce:s,to:e.to,value:0n};return[await t.signTypedData({domain:{name:"GSNv2 Forwarder",verifyingContract:a.address,version:"0.0.1"},message:d,primaryType:"ForwardRequest",types:{ForwardRequest:l}}),d]}const c={data:e.data,from:t.address,gas:e.gas,nonce:s,to:e.to,value:0n};return[await t.signTypedData({domain:{chainId:r.chain.id,name:n.domainName??"GSNv2 Forwarder",verifyingContract:a.address,version:n.domainVersion??"0.0.1"},message:c,primaryType:"ForwardRequest",types:{ForwardRequest:g}}),c]})();return{message:i,messageType:"forward",signature:o}}const g=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"}],l=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"},{name:"chainid",type:"uint256"}];async function N(t){const{message:e,messageType:r,signature:n}=await f(t),a=await fetch(t.gasless.relayerUrl,{body:w({forwarderAddress:t.gasless.relayerForwarderAddress,request:e,signature:n,type:r}),headers:{"Content-Type":"application/json"},method:"POST"});if(!a.ok)throw new Error(`Failed to send transaction: ${await a.text()}`);const s=await a.json();if(!s.result)throw new Error(`Relay transaction failed: ${s.message}`);const o=s.result.queueId,i=6e4,m=1e3,c=Date.now()+i;for(;Date.now()<c;){const d=await v({options:t,queueId:o});if(d)return{chain:t.transaction.chain,client:t.transaction.client,transactionHash:d.transactionHash};await new Promise(u=>setTimeout(u,m))}throw new Error(`Failed to find relayed transaction after ${i}ms`)}async function v(t){const{options:e,queueId:r}=t,n=e.gasless.relayerUrl.split("/relayer/")[0],a=await fetch(`${n}/transaction/status/${r}`,{method:"GET"}),s=await a.json();if(!a.ok)return null;const o=s.result;if(!o)return null;switch(o.status){case"errored":throw new Error(`Transaction errored with reason: ${o.errorMessage}`);case"cancelled":throw new Error("Transaction execution cancelled.");case"mined":return await h({chain:e.transaction.chain,client:e.transaction.client,transactionHash:o.transactionHash});default:return null}}export{f as prepareEngineTransaction,N as relayEngineTransaction};
1
+ import{g as p}from"./to-serializable-transaction-BdqklZjW.js";import{s as w,r as y}from"./prepare-contract-call-DDzIRXLv.js";import{w as h}from"./wait-for-tx-receipt-DUa6TPtN.js";import"./index-DQABJ8K0.js";import"./react-BYHuwl8r.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./transaction-Col-q-Ce.js";import"./utils-BQF5MiO5.js";import"./transactionReceipt-C327RjFG.js";import"./sleep-mAKpSMLY.js";async function f({account:t,serializableTransaction:e,transaction:r,gasless:n}){const a=p({address:n.relayerForwarderAddress,chain:r.chain,client:r.client}),s=await y({contract:a,method:"function getNonce(address) view returns (uint256)",params:[t.address]}),[o,i]=await(async()=>{if(!e.to)throw new Error("engine transactions must have a 'to' address");if(!e.gas)throw new Error("engine transactions must have a 'gas' value");if(!e.data)throw new Error("engine transactions must have a 'data' value");if(n.experimentalChainlessSupport){const d={chainid:BigInt(r.chain.id),data:e.data,from:t.address,gas:e.gas,nonce:s,to:e.to,value:0n};return[await t.signTypedData({domain:{name:"GSNv2 Forwarder",verifyingContract:a.address,version:"0.0.1"},message:d,primaryType:"ForwardRequest",types:{ForwardRequest:l}}),d]}const c={data:e.data,from:t.address,gas:e.gas,nonce:s,to:e.to,value:0n};return[await t.signTypedData({domain:{chainId:r.chain.id,name:n.domainName??"GSNv2 Forwarder",verifyingContract:a.address,version:n.domainVersion??"0.0.1"},message:c,primaryType:"ForwardRequest",types:{ForwardRequest:g}}),c]})();return{message:i,messageType:"forward",signature:o}}const g=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"}],l=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"},{name:"chainid",type:"uint256"}];async function N(t){const{message:e,messageType:r,signature:n}=await f(t),a=await fetch(t.gasless.relayerUrl,{body:w({forwarderAddress:t.gasless.relayerForwarderAddress,request:e,signature:n,type:r}),headers:{"Content-Type":"application/json"},method:"POST"});if(!a.ok)throw new Error(`Failed to send transaction: ${await a.text()}`);const s=await a.json();if(!s.result)throw new Error(`Relay transaction failed: ${s.message}`);const o=s.result.queueId,i=6e4,m=1e3,c=Date.now()+i;for(;Date.now()<c;){const d=await v({options:t,queueId:o});if(d)return{chain:t.transaction.chain,client:t.transaction.client,transactionHash:d.transactionHash};await new Promise(u=>setTimeout(u,m))}throw new Error(`Failed to find relayed transaction after ${i}ms`)}async function v(t){const{options:e,queueId:r}=t,n=e.gasless.relayerUrl.split("/relayer/")[0],a=await fetch(`${n}/transaction/status/${r}`,{method:"GET"}),s=await a.json();if(!a.ok)return null;const o=s.result;if(!o)return null;switch(o.status){case"errored":throw new Error(`Transaction errored with reason: ${o.errorMessage}`);case"cancelled":throw new Error("Transaction execution cancelled.");case"mined":return await h({chain:e.transaction.chain,client:e.transaction.client,transactionHash:o.transactionHash});default:return null}}export{f as prepareEngineTransaction,N as relayEngineTransaction};
@@ -1 +1 @@
1
- import{b as n,i as o,d as s,e as u,C as a}from"./index-D0yb7tx6.js";function c(r){const e=r;return e.code===4001||e.name==="AbortError"||/reject|denied|cancel/i.test(e.message??"")}function d(r){const e=r;return e.code===402||e.status===402||(e.message??"").toLowerCase().includes("insufficient")}function l(r,e,i={}){if(c(r))return n("errors.rejected");if(o(r))return n("errors.wrongNetwork",{current:s(r.current),required:s(r.required)});if(u(r))return n("errors.walletUnauthorized");if(i.sale){const t=(r.message??"").toLowerCase();if(t.includes("insufficient"))return n("errors.insufficient",{currency:a.name});if(/not for sale|not found|no active listing|404/.test(t))return n("errors.soldOrRemoved");if(t.includes("your own listing"))return n("errors.cantBuyOwn")}return e}export{d as a,l as f,c as i};
1
+ import{b as n,i as o,d as s,e as u,C as a}from"./index-DQABJ8K0.js";function c(r){const e=r;return e.code===4001||e.name==="AbortError"||/reject|denied|cancel/i.test(e.message??"")}function d(r){const e=r;return e.code===402||e.status===402||(e.message??"").toLowerCase().includes("insufficient")}function l(r,e,i={}){if(c(r))return n("errors.rejected");if(o(r))return n("errors.wrongNetwork",{current:s(r.current),required:s(r.required)});if(u(r))return n("errors.walletUnauthorized");if(i.sale){const t=(r.message??"").toLowerCase();if(t.includes("insufficient"))return n("errors.insufficient",{currency:a.name});if(/not for sale|not found|no active listing|404/.test(t))return n("errors.soldOrRemoved");if(t.includes("your own listing"))return n("errors.cantBuyOwn")}return e}export{d as a,l as f,c as i};
@@ -1 +1 @@
1
- import{g as s,t as n}from"./to-serializable-transaction-w7hB_nia.js";import{r as c}from"./prepare-contract-call-DDzIRXLv.js";import{s as m}from"./signing-NZTFOMTf.js";import"./index-D0yb7tx6.js";import"./react-BYHuwl8r.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./transaction-Col-q-Ce.js";import"./utils-BQF5MiO5.js";import"./get-bytecode-BRKTQsHC.js";const p="0x420000000000000000000000000000000000000F";async function O(r){const{transaction:t,gasPriceOracleAddress:a}=r,i=s({address:a||p,chain:t.chain,client:t.client}),{gasPrice:l,...e}=await n({transaction:t}),o=m({transaction:e});return c({contract:i,method:"function getL1Fee(bytes memory _data) view returns (uint256)",params:[o]})}export{O as estimateL1Fee};
1
+ import{g as s,t as n}from"./to-serializable-transaction-BdqklZjW.js";import{r as c}from"./prepare-contract-call-DDzIRXLv.js";import{s as m}from"./signing-DTvtfW1Y.js";import"./index-DQABJ8K0.js";import"./react-BYHuwl8r.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./transaction-Col-q-Ce.js";import"./utils-BQF5MiO5.js";import"./get-bytecode-BRKTQsHC.js";const p="0x420000000000000000000000000000000000000F";async function O(r){const{transaction:t,gasPriceOracleAddress:a}=r,i=s({address:a||p,chain:t.chain,client:t.client}),{gasPrice:l,...e}=await n({transaction:t}),o=m({transaction:e});return c({contract:i,method:"function getL1Fee(bytes memory _data) view returns (uint256)",params:[o]})}export{O as estimateL1Fee};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-BRQOOFsy.js","_assets/index-D0yb7tx6.js","_assets/react-BYHuwl8r.js","_assets/dcl-schemas-CmtP3U6y.js","_assets/sentry-Dx-KuLV3.js","_assets/ethers-BDpbhgX6.js","_assets/intl-CBcMB1D2.js","_assets/index-DB6GvbxL.css","_assets/ethereum-CBeS7QFR.js","_assets/utils-BQF5MiO5.js","_assets/types-DC0Zmj1B.js","_assets/get-bytecode-BRKTQsHC.js","_assets/prepare-contract-call-DDzIRXLv.js","_assets/to-serializable-transaction-w7hB_nia.js","_assets/transaction-Col-q-Ce.js","_assets/web-connector-DbZBNbcb.js","_assets/linkAccount-BtAQZlYa.js","_assets/eth_sendRawTransaction-DPdnXbFR.js","_assets/sleep-mAKpSMLY.js","_assets/detectExtension-DX7grDLh.js"])))=>i.map(i=>d[i]);
2
- import{u as x,o as F,s as M,a5 as $}from"./prepare-contract-call-DDzIRXLv.js";import{_ as E}from"./index-D0yb7tx6.js";import{w as V,c as H,h as K,a as j}from"./utils-BQF5MiO5.js";import{d as B}from"./detectExtension-DX7grDLh.js";function oe(e=32){return x(z(e))}function z(e=32){return globalThis.crypto.getRandomValues(new Uint8Array(e))}async function b(e){const{client:t,ecosystem:n,walletType:a,walletAddress:c,chainId:h}=e;return F({client:t,data:{action:"connect",chainId:h,source:"connectWallet",walletAddress:c,walletType:a},ecosystem:n})}const re={async getItem(e){try{if(typeof window<"u"&&window.localStorage)return localStorage.getItem(e)}catch{}return null},async removeItem(e){typeof window<"u"&&window.localStorage&&localStorage.removeItem(e)},async setItem(e,t){try{typeof window<"u"&&window.localStorage&&localStorage.setItem(e,t)}catch{}}};function X(){const e=new Map;return{emit(t,n){const a=e.get(t);if(a)for(const c of a)c(n)},subscribe(t,n){var a;return e.has(t)?(a=e.get(t))==null||a.add(n):e.set(t,new Set([n])),()=>{const c=e.get(t);c&&c.delete(n)}}}}function Y(){return X()}async function Z(e){return V(async()=>{var a;const n=await(await fetch(`${H("inAppWallet")}/api/2024-05-05/ecosystem-wallet`,{headers:{"x-ecosystem-id":e}})).json();if(!n||n.code==="UNAUTHORIZED")throw new Error(n.message||`Could not find ecosystem wallet with id ${e}, please check your ecosystem wallet configuration.`);return(a=n.authOptions)!=null&&a.includes("siwe")&&(n.authOptions=n.authOptions.filter(c=>c!=="siwe"),n.authOptions.push("wallet")),n},{cacheKey:`ecosystem-wallet-options-${e}`,cacheTime:1e3*60*5})}const v=new Map;async function g(e,t,n){var h;const a=M({clientId:e.clientId,ecosystem:n,partialSecretKey:(h=e.secretKey)==null?void 0:h.slice(0,5)});if(v.has(a))return v.get(a);const c=await t(e);return v.set(a,c),c}function q(e){const{createOptions:t,connectorFactory:n,ecosystem:a}=e,c=a?a.id:"inApp",h=Y();let o=t,l,I,i,f,A=null;const C=async s=>{if(a){const r=await Z(a.id),u=r==null?void 0:r.smartAccountOptions;if(u)if(r.smartAccountOptions.executionMode==="EIP7702")o={...o,executionMode:{mode:"EIP7702",sponsorGas:u.sponsorGas}};else{const{defaultChainId:y}=r.smartAccountOptions,m=(s==null?void 0:s.chain)??(y?j(y):void 0);if(!m)throw new Error("A chain must be provided either via 'chain' in connect options or 'defaultChainId' in ecosystem configuration. Please pass it via connect() or update the ecosystem configuration.");o={...o,smartAccount:{chain:m,factoryAddress:u.accountFactoryAddress,sponsorGas:u.sponsorGas}}}}};return{autoConnect:async s=>{const{autoConnectInAppWallet:r}=await E(async()=>{const{autoConnectInAppWallet:d}=await import("./index-BRQOOFsy.js").then(_=>_.n);return{autoConnectInAppWallet:d}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])),u=await g(s.client,n,a);await C();const{account:p,chain:y,adminAccount:m}=await r(s,o,u);f=s.client,l=p,I=m,i=y;try{A=await u.storage.getAuthCookie()}catch(d){console.error("Failed to retrieve auth token:",d),A=null}return b({chainId:i.id,client:s.client,ecosystem:a,walletAddress:l.address,walletType:c}),l},connect:async s=>{const{connectInAppWallet:r}=await E(async()=>{const{connectInAppWallet:d}=await import("./index-BRQOOFsy.js").then(_=>_.n);return{connectInAppWallet:d}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])),u=await g(s.client,n,a);await C();const{account:p,chain:y,adminAccount:m}=await r(s,o,u);f=s.client,l=p,I=m,i=y;try{A=await u.storage.getAuthCookie()}catch(d){console.error("Failed to retrieve auth token:",d),A=null}return b({chainId:i.id,client:s.client,ecosystem:a,walletAddress:l.address,walletType:c}),l},disconnect:async()=>{if(f&&!(await(await g(f,n,a)).logout()).success)throw new Error("Failed to logout");l=void 0,I=void 0,i=void 0,A=null,h.emit("disconnect",void 0)},getAccount:()=>l,getAdminAccount:()=>I,getAuthToken:()=>A,getChain(){if(i)return i=K(i.id)||i,i},getConfig:()=>o,id:c,subscribe:h.subscribe,switchChain:async s=>{var r;if((o!=null&&o.smartAccount||((r=o==null?void 0:o.executionMode)==null?void 0:r.mode)==="EIP4337")&&f&&l){const{autoConnectInAppWallet:u}=await E(async()=>{const{autoConnectInAppWallet:_}=await import("./index-BRQOOFsy.js").then(G=>G.n);return{autoConnectInAppWallet:_}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])),p=await g(f,n,a);await C({chain:s});const{account:y,chain:m,adminAccount:d}=await u({chain:s,client:f},o,p);I=d,l=y,i=m}else i=s;h.emit("chainChanged",s)}}}function ie(e){return q({connectorFactory:async t=>{var a;const{InAppWebConnector:n}=await E(async()=>{const{InAppWebConnector:c}=await import("./web-connector-DbZBNbcb.js");return{InAppWebConnector:c}},__vite__mapDeps([15,1,2,3,4,5,6,7,9,10,12,16,14,17,18,19]));return new n({client:t,passkeyDomain:(a=e==null?void 0:e.auth)==null?void 0:a.passkeyDomain,storage:e==null?void 0:e.storage})},createOptions:e})}async function w(e,t){return g(e,async n=>{const{InAppWebConnector:a}=await E(async()=>{const{InAppWebConnector:c}=await import("./web-connector-DbZBNbcb.js");return{InAppWebConnector:c}},__vite__mapDeps([15,1,2,3,4,5,6,7,9,10,12,16,14,17,18,19]));return new a({client:n,ecosystem:t})},t)}async function R(e){const{client:t,ecosystem:n}=e,c=await(await w(t,n)).getUser();switch(c.status){case"Logged In, Wallet Initialized":return c}}async function ue(e){const t=await R(e);if(t&&"email"in t.authDetails)return t.authDetails.email}async function le(e){const t=await R(e);if(t&&"phoneNumber"in t.authDetails)return t.authDetails.phoneNumber}async function de(e){return(await w(e.client,e.ecosystem)).preAuthenticate(e)}async function he(e){return(await w(e.client,e.ecosystem)).authenticate(e)}async function ye(e){const t=await w(e.client,e.ecosystem);if(!t.authenticateWithRedirect)throw new Error("authenticateWithRedirect is not supported on this platform");return t.authenticateWithRedirect(e.strategy,e.mode,e.redirectUrl)}async function me(e){const t=await w(e.client,e.ecosystem);if(!t.linkProfileWithRedirect)throw new Error("linkProfileWithRedirect is not supported on this platform");return t.linkProfileWithRedirect(e.strategy,e.mode,e.redirectUrl)}async function we(e){return await(await w(e.client,e.ecosystem)).linkProfile(e)}async function fe(e){return await(await w(e.client,e.ecosystem)).unlinkProfile(e.profileToUnlink,e.allowAccountDeletion)}async function Ae(e){return(await w(e.client,e.ecosystem)).getProfiles()}const pe="/sdk/2022-08-12/embedded-wallet",S=e=>`thirdwebEwsWalletUserId-${e}`,J="walletToken",k=e=>`${J}-${e}`,T=e=>`passkey-credential-id-${e}`,Q="a",P=(e,t)=>`${Q}-${e}-${t}`,W=e=>`walletConnectSessions-${e}`,L=e=>`thirdweb_guest_session_id_${e}`,O=new Map;class Ie{constructor({storage:t,clientId:n,ecosystem:a}){Object.defineProperty(this,"key",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"storage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"ecosystem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.storage=t,this.key=ee(n,a==null?void 0:a.id),this.ecosystem=a}async getItem(t){return this.storage?this.storage.getItem(t):O.get(t)??null}async setItem(t,n){if(this.storage)return this.storage.setItem(t,n);O.set(t,n)}async removeItem(t){const n=await this.getItem(t);return this.storage&&n?(this.storage.removeItem(t),!0):!1}async getWalletConnectSessions(){return this.getItem(W(this.key))}async saveWalletConnectSessions(t){await this.setItem(W(this.key),t)}async savePasskeyCredentialId(t){await this.setItem(T(this.key),t)}async getPasskeyCredentialId(){return this.getItem(T(this.key))}async saveAuthCookie(t){await this.setItem(k(this.key),t)}async getAuthCookie(){return this.getItem(k(this.key))}async removeAuthCookie(){return this.removeItem(k(this.key))}async saveDeviceShare(t,n){await this.saveWalletUserId(n),await this.setItem(P(this.key,n),t)}async getDeviceShare(){const t=await this.getWalletUserId();return t?this.getItem(P(this.key,t)):null}async removeDeviceShare(){const t=await this.getWalletUserId();return t?this.removeItem(P(this.key,t)):!1}async getWalletUserId(){return this.getItem(S(this.key))}async saveWalletUserId(t){await this.setItem(S(this.key),t)}async removeWalletUserId(){return this.removeItem(S(this.key))}async getGuestSessionId(){return this.getItem(L(this.key))}async saveGuestSessionId(t){await this.setItem(L(this.key),t)}}const ee=(e,t)=>`${e}${t?`-${t}`:""}`;function te(e){let t;return()=>(t||(t=e()),t)}const U="0x3f707e6b",N=[{type:"tuple[]",name:"calls",components:[{type:"address",name:"target"},{type:"uint256",name:"value"},{type:"bytes",name:"data"}]}],D=[];function _e(e){return B({availableSelectors:e,method:[U,N,D]})}function ge(e){const t=te(async()=>"asyncParams"in e?await e.asyncParams():e);return $({contract:e.contract,method:[U,N,D],params:async()=>[(await t()).calls],value:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.value},accessList:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.accessList},gas:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.gas},gasPrice:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.gasPrice},maxFeePerGas:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.maxFeePerGas},maxPriorityFeePerGas:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.maxPriorityFeePerGas},nonce:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.nonce},extraGas:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.extraGas},erc20Value:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.erc20Value},authorizationList:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.authorizationList}})}export{Ie as C,pe as I,ue as a,he as b,Ae as c,le as d,ge as e,_e as f,Z as g,me as h,ie as i,Y as j,q as k,we as l,ye as m,te as o,de as p,oe as r,b as t,fe as u,re as w};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-Cw_lQM7v.js","_assets/index-DQABJ8K0.js","_assets/react-BYHuwl8r.js","_assets/dcl-schemas-CmtP3U6y.js","_assets/sentry-Dx-KuLV3.js","_assets/ethers-BDpbhgX6.js","_assets/intl-CBcMB1D2.js","_assets/index-l2QjlKjX.css","_assets/ethereum-CBeS7QFR.js","_assets/utils-BQF5MiO5.js","_assets/types-DC0Zmj1B.js","_assets/get-bytecode-BRKTQsHC.js","_assets/prepare-contract-call-DDzIRXLv.js","_assets/to-serializable-transaction-BdqklZjW.js","_assets/transaction-Col-q-Ce.js","_assets/web-connector-DfuXXolQ.js","_assets/linkAccount-BtAQZlYa.js","_assets/eth_sendRawTransaction-DPdnXbFR.js","_assets/sleep-mAKpSMLY.js","_assets/detectExtension-DX7grDLh.js"])))=>i.map(i=>d[i]);
2
+ import{u as x,o as F,s as M,a5 as $}from"./prepare-contract-call-DDzIRXLv.js";import{_ as E}from"./index-DQABJ8K0.js";import{w as V,c as H,h as K,a as j}from"./utils-BQF5MiO5.js";import{d as B}from"./detectExtension-DX7grDLh.js";function oe(e=32){return x(z(e))}function z(e=32){return globalThis.crypto.getRandomValues(new Uint8Array(e))}async function b(e){const{client:t,ecosystem:n,walletType:a,walletAddress:c,chainId:h}=e;return F({client:t,data:{action:"connect",chainId:h,source:"connectWallet",walletAddress:c,walletType:a},ecosystem:n})}const re={async getItem(e){try{if(typeof window<"u"&&window.localStorage)return localStorage.getItem(e)}catch{}return null},async removeItem(e){typeof window<"u"&&window.localStorage&&localStorage.removeItem(e)},async setItem(e,t){try{typeof window<"u"&&window.localStorage&&localStorage.setItem(e,t)}catch{}}};function X(){const e=new Map;return{emit(t,n){const a=e.get(t);if(a)for(const c of a)c(n)},subscribe(t,n){var a;return e.has(t)?(a=e.get(t))==null||a.add(n):e.set(t,new Set([n])),()=>{const c=e.get(t);c&&c.delete(n)}}}}function Y(){return X()}async function Z(e){return V(async()=>{var a;const n=await(await fetch(`${H("inAppWallet")}/api/2024-05-05/ecosystem-wallet`,{headers:{"x-ecosystem-id":e}})).json();if(!n||n.code==="UNAUTHORIZED")throw new Error(n.message||`Could not find ecosystem wallet with id ${e}, please check your ecosystem wallet configuration.`);return(a=n.authOptions)!=null&&a.includes("siwe")&&(n.authOptions=n.authOptions.filter(c=>c!=="siwe"),n.authOptions.push("wallet")),n},{cacheKey:`ecosystem-wallet-options-${e}`,cacheTime:1e3*60*5})}const v=new Map;async function g(e,t,n){var h;const a=M({clientId:e.clientId,ecosystem:n,partialSecretKey:(h=e.secretKey)==null?void 0:h.slice(0,5)});if(v.has(a))return v.get(a);const c=await t(e);return v.set(a,c),c}function q(e){const{createOptions:t,connectorFactory:n,ecosystem:a}=e,c=a?a.id:"inApp",h=Y();let o=t,l,I,i,f,A=null;const C=async s=>{if(a){const r=await Z(a.id),u=r==null?void 0:r.smartAccountOptions;if(u)if(r.smartAccountOptions.executionMode==="EIP7702")o={...o,executionMode:{mode:"EIP7702",sponsorGas:u.sponsorGas}};else{const{defaultChainId:y}=r.smartAccountOptions,m=(s==null?void 0:s.chain)??(y?j(y):void 0);if(!m)throw new Error("A chain must be provided either via 'chain' in connect options or 'defaultChainId' in ecosystem configuration. Please pass it via connect() or update the ecosystem configuration.");o={...o,smartAccount:{chain:m,factoryAddress:u.accountFactoryAddress,sponsorGas:u.sponsorGas}}}}};return{autoConnect:async s=>{const{autoConnectInAppWallet:r}=await E(async()=>{const{autoConnectInAppWallet:d}=await import("./index-Cw_lQM7v.js").then(_=>_.n);return{autoConnectInAppWallet:d}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])),u=await g(s.client,n,a);await C();const{account:p,chain:y,adminAccount:m}=await r(s,o,u);f=s.client,l=p,I=m,i=y;try{A=await u.storage.getAuthCookie()}catch(d){console.error("Failed to retrieve auth token:",d),A=null}return b({chainId:i.id,client:s.client,ecosystem:a,walletAddress:l.address,walletType:c}),l},connect:async s=>{const{connectInAppWallet:r}=await E(async()=>{const{connectInAppWallet:d}=await import("./index-Cw_lQM7v.js").then(_=>_.n);return{connectInAppWallet:d}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])),u=await g(s.client,n,a);await C();const{account:p,chain:y,adminAccount:m}=await r(s,o,u);f=s.client,l=p,I=m,i=y;try{A=await u.storage.getAuthCookie()}catch(d){console.error("Failed to retrieve auth token:",d),A=null}return b({chainId:i.id,client:s.client,ecosystem:a,walletAddress:l.address,walletType:c}),l},disconnect:async()=>{if(f&&!(await(await g(f,n,a)).logout()).success)throw new Error("Failed to logout");l=void 0,I=void 0,i=void 0,A=null,h.emit("disconnect",void 0)},getAccount:()=>l,getAdminAccount:()=>I,getAuthToken:()=>A,getChain(){if(i)return i=K(i.id)||i,i},getConfig:()=>o,id:c,subscribe:h.subscribe,switchChain:async s=>{var r;if((o!=null&&o.smartAccount||((r=o==null?void 0:o.executionMode)==null?void 0:r.mode)==="EIP4337")&&f&&l){const{autoConnectInAppWallet:u}=await E(async()=>{const{autoConnectInAppWallet:_}=await import("./index-Cw_lQM7v.js").then(G=>G.n);return{autoConnectInAppWallet:_}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])),p=await g(f,n,a);await C({chain:s});const{account:y,chain:m,adminAccount:d}=await u({chain:s,client:f},o,p);I=d,l=y,i=m}else i=s;h.emit("chainChanged",s)}}}function ie(e){return q({connectorFactory:async t=>{var a;const{InAppWebConnector:n}=await E(async()=>{const{InAppWebConnector:c}=await import("./web-connector-DfuXXolQ.js");return{InAppWebConnector:c}},__vite__mapDeps([15,1,2,3,4,5,6,7,9,10,12,16,14,17,18,19]));return new n({client:t,passkeyDomain:(a=e==null?void 0:e.auth)==null?void 0:a.passkeyDomain,storage:e==null?void 0:e.storage})},createOptions:e})}async function w(e,t){return g(e,async n=>{const{InAppWebConnector:a}=await E(async()=>{const{InAppWebConnector:c}=await import("./web-connector-DfuXXolQ.js");return{InAppWebConnector:c}},__vite__mapDeps([15,1,2,3,4,5,6,7,9,10,12,16,14,17,18,19]));return new a({client:n,ecosystem:t})},t)}async function R(e){const{client:t,ecosystem:n}=e,c=await(await w(t,n)).getUser();switch(c.status){case"Logged In, Wallet Initialized":return c}}async function ue(e){const t=await R(e);if(t&&"email"in t.authDetails)return t.authDetails.email}async function le(e){const t=await R(e);if(t&&"phoneNumber"in t.authDetails)return t.authDetails.phoneNumber}async function de(e){return(await w(e.client,e.ecosystem)).preAuthenticate(e)}async function he(e){return(await w(e.client,e.ecosystem)).authenticate(e)}async function ye(e){const t=await w(e.client,e.ecosystem);if(!t.authenticateWithRedirect)throw new Error("authenticateWithRedirect is not supported on this platform");return t.authenticateWithRedirect(e.strategy,e.mode,e.redirectUrl)}async function me(e){const t=await w(e.client,e.ecosystem);if(!t.linkProfileWithRedirect)throw new Error("linkProfileWithRedirect is not supported on this platform");return t.linkProfileWithRedirect(e.strategy,e.mode,e.redirectUrl)}async function we(e){return await(await w(e.client,e.ecosystem)).linkProfile(e)}async function fe(e){return await(await w(e.client,e.ecosystem)).unlinkProfile(e.profileToUnlink,e.allowAccountDeletion)}async function Ae(e){return(await w(e.client,e.ecosystem)).getProfiles()}const pe="/sdk/2022-08-12/embedded-wallet",S=e=>`thirdwebEwsWalletUserId-${e}`,J="walletToken",k=e=>`${J}-${e}`,T=e=>`passkey-credential-id-${e}`,Q="a",P=(e,t)=>`${Q}-${e}-${t}`,W=e=>`walletConnectSessions-${e}`,L=e=>`thirdweb_guest_session_id_${e}`,O=new Map;class Ie{constructor({storage:t,clientId:n,ecosystem:a}){Object.defineProperty(this,"key",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"storage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"ecosystem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.storage=t,this.key=ee(n,a==null?void 0:a.id),this.ecosystem=a}async getItem(t){return this.storage?this.storage.getItem(t):O.get(t)??null}async setItem(t,n){if(this.storage)return this.storage.setItem(t,n);O.set(t,n)}async removeItem(t){const n=await this.getItem(t);return this.storage&&n?(this.storage.removeItem(t),!0):!1}async getWalletConnectSessions(){return this.getItem(W(this.key))}async saveWalletConnectSessions(t){await this.setItem(W(this.key),t)}async savePasskeyCredentialId(t){await this.setItem(T(this.key),t)}async getPasskeyCredentialId(){return this.getItem(T(this.key))}async saveAuthCookie(t){await this.setItem(k(this.key),t)}async getAuthCookie(){return this.getItem(k(this.key))}async removeAuthCookie(){return this.removeItem(k(this.key))}async saveDeviceShare(t,n){await this.saveWalletUserId(n),await this.setItem(P(this.key,n),t)}async getDeviceShare(){const t=await this.getWalletUserId();return t?this.getItem(P(this.key,t)):null}async removeDeviceShare(){const t=await this.getWalletUserId();return t?this.removeItem(P(this.key,t)):!1}async getWalletUserId(){return this.getItem(S(this.key))}async saveWalletUserId(t){await this.setItem(S(this.key),t)}async removeWalletUserId(){return this.removeItem(S(this.key))}async getGuestSessionId(){return this.getItem(L(this.key))}async saveGuestSessionId(t){await this.setItem(L(this.key),t)}}const ee=(e,t)=>`${e}${t?`-${t}`:""}`;function te(e){let t;return()=>(t||(t=e()),t)}const U="0x3f707e6b",N=[{type:"tuple[]",name:"calls",components:[{type:"address",name:"target"},{type:"uint256",name:"value"},{type:"bytes",name:"data"}]}],D=[];function _e(e){return B({availableSelectors:e,method:[U,N,D]})}function ge(e){const t=te(async()=>"asyncParams"in e?await e.asyncParams():e);return $({contract:e.contract,method:[U,N,D],params:async()=>[(await t()).calls],value:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.value},accessList:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.accessList},gas:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.gas},gasPrice:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.gasPrice},maxFeePerGas:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.maxFeePerGas},maxPriorityFeePerGas:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.maxPriorityFeePerGas},nonce:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.nonce},extraGas:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.extraGas},erc20Value:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.erc20Value},authorizationList:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.authorizationList}})}export{Ie as C,pe as I,ue as a,he as b,Ae as c,le as d,ge as e,_e as f,Z as g,me as h,ie as i,Y as j,q as k,we as l,ye as m,te as o,de as p,oe as r,b as t,fe as u,re as w};
@@ -1,4 +1,4 @@
1
- import{C as g,x as y,a6 as k,v as u,B as S,z as w}from"./W3MFrameProviderSingleton-KChYZ3ey.js";import{az as A,au as m}from"./NetworkUtil-DXqql1Wz.js";import"./dcl-schemas-CmtP3U6y.js";import"./index-w01WQ1OT.js";import"./react-BYHuwl8r.js";import"./sentry-Dx-KuLV3.js";import"./index-BpzsK6nD.js";import"./events-DQ172AOg.js";import"./index-D0yb7tx6.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./browser-ponyfill-Dj0kiq3a.js";class N{constructor(e){this.getNonce=e.getNonce}async createMessage(e){const t={accountAddress:e.accountAddress,chainId:e.chainId,version:"1",domain:typeof document>"u"?"Unknown Domain":document.location.host,uri:typeof document>"u"?"Unknown URI":document.location.href,resources:this.resources,nonce:await this.getNonce(e),issuedAt:this.stringifyDate(new Date),statement:void 0,expirationTime:void 0,notBefore:void 0};return Object.assign(t,{toString:()=>this.stringify(t)})}stringify(e){var n;const t=this.getNetworkName(e.chainId);return[`${e.domain} wants you to sign in with your ${t} account:`,e.accountAddress,e.statement?`
1
+ import{C as g,x as y,a6 as k,v as u,B as S,z as w}from"./W3MFrameProviderSingleton-DUGxXY3k.js";import{az as A,au as m}from"./NetworkUtil-DXqql1Wz.js";import"./dcl-schemas-CmtP3U6y.js";import"./index-w01WQ1OT.js";import"./react-BYHuwl8r.js";import"./sentry-Dx-KuLV3.js";import"./index-DYmMl9gi.js";import"./events-DQ172AOg.js";import"./index-DQABJ8K0.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./browser-ponyfill-Dj0kiq3a.js";class N{constructor(e){this.getNonce=e.getNonce}async createMessage(e){const t={accountAddress:e.accountAddress,chainId:e.chainId,version:"1",domain:typeof document>"u"?"Unknown Domain":document.location.host,uri:typeof document>"u"?"Unknown URI":document.location.href,resources:this.resources,nonce:await this.getNonce(e),issuedAt:this.stringifyDate(new Date),statement:void 0,expirationTime:void 0,notBefore:void 0};return Object.assign(t,{toString:()=>this.stringify(t)})}stringify(e){var n;const t=this.getNetworkName(e.chainId);return[`${e.domain} wants you to sign in with your ${t} account:`,e.accountAddress,e.statement?`
2
2
  ${e.statement}
3
3
  `:"",`URI: ${e.uri}`,`Version: ${e.version}`,`Chain ID: ${e.chainId}`,`Nonce: ${e.nonce}`,e.issuedAt&&`Issued At: ${e.issuedAt}`,e.expirationTime&&`Expiration Time: ${e.expirationTime}`,e.notBefore&&`Not Before: ${e.notBefore}`,e.requestId&&`Request ID: ${e.requestId}`,((n=e.resources)==null?void 0:n.length)&&e.resources.reduce((o,s)=>`${o}
4
4
  - ${s}`,"Resources:")].filter(o=>typeof o=="string").join(`
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/to-serializable-transaction-w7hB_nia.js","_assets/index-D0yb7tx6.js","_assets/react-BYHuwl8r.js","_assets/dcl-schemas-CmtP3U6y.js","_assets/sentry-Dx-KuLV3.js","_assets/ethers-BDpbhgX6.js","_assets/intl-CBcMB1D2.js","_assets/index-DB6GvbxL.css","_assets/prepare-contract-call-DDzIRXLv.js","_assets/utils-BQF5MiO5.js","_assets/transaction-Col-q-Ce.js"])))=>i.map(i=>d[i]);
2
- import{_ as c}from"./index-D0yb7tx6.js";import{b as s}from"./uint8-array-CjVHUazS.js";import{n as d}from"./prepare-contract-call-DDzIRXLv.js";const f="data:application/json;base64";function u(r){return!!r.toLowerCase().startsWith(f)}function l(r){const n=r.indexOf(","),o=r.slice(n+1);return s(o)}const h="data:application/json;utf-8";function w(r){return!!r.toLowerCase().startsWith(h)}function m(r){const n=r.indexOf(","),o=r.slice(n+1);try{return decodeURIComponent(o)}catch{return o}}async function y(r){const{client:n,tokenId:o,tokenUri:e}=r;if(u(e))try{return JSON.parse(l(e))}catch(t){throw console.error("Failed to fetch base64 encoded NFT",{tokenId:o,tokenUri:e},t),t}if(w(e))try{return JSON.parse(m(e))}catch(t){throw console.error("Failed to fetch utf8 encoded NFT",{tokenId:o,tokenUri:e},t),t}const{download:a}=await c(async()=>{const{download:t}=await import("./to-serializable-transaction-w7hB_nia.js").then(i=>i.L);return{download:t}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]));try{if(!e.includes("{id}"))return await(await a({client:n,uri:e})).json()}catch(t){throw console.error("Failed to fetch non-dynamic NFT",{tokenId:o,tokenUri:e},t),t}try{try{return await(await a({client:n,uri:e.replace("{id}",d(o,{size:32}).slice(2))})).json()}catch{return await(await a({client:n,uri:e.replace("{id}",o.toString())})).json()}}catch(t){throw console.error("Failed to fetch dynamic NFT",{tokenId:o,tokenUri:e},t),t}}export{y as f};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/to-serializable-transaction-BdqklZjW.js","_assets/index-DQABJ8K0.js","_assets/react-BYHuwl8r.js","_assets/dcl-schemas-CmtP3U6y.js","_assets/sentry-Dx-KuLV3.js","_assets/ethers-BDpbhgX6.js","_assets/intl-CBcMB1D2.js","_assets/index-l2QjlKjX.css","_assets/prepare-contract-call-DDzIRXLv.js","_assets/utils-BQF5MiO5.js","_assets/transaction-Col-q-Ce.js"])))=>i.map(i=>d[i]);
2
+ import{_ as c}from"./index-DQABJ8K0.js";import{b as s}from"./uint8-array-CjVHUazS.js";import{n as d}from"./prepare-contract-call-DDzIRXLv.js";const f="data:application/json;base64";function u(r){return!!r.toLowerCase().startsWith(f)}function l(r){const n=r.indexOf(","),o=r.slice(n+1);return s(o)}const h="data:application/json;utf-8";function w(r){return!!r.toLowerCase().startsWith(h)}function m(r){const n=r.indexOf(","),o=r.slice(n+1);try{return decodeURIComponent(o)}catch{return o}}async function y(r){const{client:n,tokenId:o,tokenUri:e}=r;if(u(e))try{return JSON.parse(l(e))}catch(t){throw console.error("Failed to fetch base64 encoded NFT",{tokenId:o,tokenUri:e},t),t}if(w(e))try{return JSON.parse(m(e))}catch(t){throw console.error("Failed to fetch utf8 encoded NFT",{tokenId:o,tokenUri:e},t),t}const{download:a}=await c(async()=>{const{download:t}=await import("./to-serializable-transaction-BdqklZjW.js").then(i=>i.L);return{download:t}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]));try{if(!e.includes("{id}"))return await(await a({client:n,uri:e})).json()}catch(t){throw console.error("Failed to fetch non-dynamic NFT",{tokenId:o,tokenUri:e},t),t}try{try{return await(await a({client:n,uri:e.replace("{id}",d(o,{size:32}).slice(2))})).json()}catch{return await(await a({client:n,uri:e.replace("{id}",o.toString())})).json()}}catch(t){throw console.error("Failed to fetch dynamic NFT",{tokenId:o,tokenUri:e},t),t}}export{y as f};
@@ -1,4 +1,4 @@
1
- import{t,s as o}from"./index-D0yb7tx6.js";const{colors:e}=t,r=o.input`
1
+ import{t,s as o}from"./index-DQABJ8K0.js";const{colors:e}=t,r=o.input`
2
2
  --box: 17.143px;
3
3
  position: relative;
4
4
  appearance: none;
@@ -1 +1 @@
1
- import{g as o}from"./execute-BS0Y5pHb.js";import"./prepare-contract-call-DDzIRXLv.js";import"./utils-BQF5MiO5.js";import"./sentry-Dx-KuLV3.js";import"./react-BYHuwl8r.js";import"./index-D0yb7tx6.js";import"./dcl-schemas-CmtP3U6y.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./detectExtension-DX7grDLh.js";async function g(n){const l=await o(n);return{app:{android:null,browser:null,chrome:null,edge:null,firefox:null,ios:null,linux:null,mac:null,opera:null,safari:null,windows:null},desktop:{native:null,universal:null},homepage:l.homepage||"",id:n,image_id:l.imageUrl||"",mobile:{native:null,universal:null},name:l.name,rdns:null}}export{g as getEcosystemWalletInfo};
1
+ import{g as o}from"./execute-BQ_MXUy5.js";import"./prepare-contract-call-DDzIRXLv.js";import"./utils-BQF5MiO5.js";import"./sentry-Dx-KuLV3.js";import"./react-BYHuwl8r.js";import"./index-DQABJ8K0.js";import"./dcl-schemas-CmtP3U6y.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./detectExtension-DX7grDLh.js";async function g(n){const l=await o(n);return{app:{android:null,browser:null,chrome:null,edge:null,firefox:null,ios:null,linux:null,mac:null,opera:null,safari:null,windows:null},desktop:{native:null,universal:null},homepage:l.homepage||"",id:n,image_id:l.imageUrl||"",mobile:{native:null,universal:null},name:l.name,rdns:null}}export{g as getEcosystemWalletInfo};