@dcl/blog-site 0.3.1-24103023146.commit-2dbaf97 → 0.3.1-24473826569.commit-b003ca7

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 (175) hide show
  1. package/assets/{QueryClientProvider-CaylTeJU.js → QueryClientProvider-COL_hK7X.js} +1 -1
  2. package/assets/SignInRedirect-BXiSxuzq.js +11 -0
  3. package/assets/{X-Duht4Iz6.js → X-le_324bT.js} +2 -2
  4. package/assets/{__federation_expose_App-MABV9ejQ.js → __federation_expose_App-BIkHFfNV.js} +1 -1
  5. package/assets/{__federation_fn_import-BOkD8n2P.js → __federation_fn_import-BVq5pY2g.js} +1 -1
  6. package/assets/__federation_shared_@dcl/hooks-BTGaRvFd.js +535 -0
  7. package/assets/__federation_shared_@dcl/schemas-DMXTEmDf.js +1 -0
  8. package/assets/__federation_shared_@emotion/react-ClQAzdUp.js +1 -0
  9. package/assets/__federation_shared_@emotion/{styled-CDI3vXYZ.js → styled-DqVyGVak.js} +1 -1
  10. package/assets/__federation_shared_decentraland-ui2-D-eg6Y-Z.js +358 -0
  11. package/assets/{__federation_shared_react-redux-Cz6uJTZg.js → __federation_shared_react-redux-DBpsOkjJ.js} +1 -1
  12. package/assets/{__federation_shared_react-router-dom-CC-GCyPC.js → __federation_shared_react-router-dom-DHUeCUPc.js} +1 -1
  13. package/assets/{__federation_shared_viem-N4jx8tpP.js → __federation_shared_viem-Dko2-sEK.js} +1 -1
  14. package/assets/{__federation_shared_wagmi-T79wv6wS.js → __federation_shared_wagmi-Cn5GVo3x.js} +1 -1
  15. package/assets/{add-2qvA7EiO.js → add-D1dmSQkT.js} +1 -1
  16. package/assets/{all-wallets-lXjoBtOu.js → all-wallets-D7ZW8z0W.js} +1 -1
  17. package/assets/{app-store-DYHc9uss.js → app-store-DXUKFVFe.js} +1 -1
  18. package/assets/{apple-trBstREI.js → apple-DIq1NPD9.js} +1 -1
  19. package/assets/{arrow-bottom-BWqJWXR-.js → arrow-bottom-460TXeJf.js} +1 -1
  20. package/assets/{arrow-bottom-circle-YjuLILdA.js → arrow-bottom-circle-CC70fB8z.js} +1 -1
  21. package/assets/{arrow-left-DhtuQend.js → arrow-left-BQ0dsbdA.js} +1 -1
  22. package/assets/{arrow-right-BvYZ2BiR.js → arrow-right-8nY7uwA-.js} +1 -1
  23. package/assets/{arrow-top-D28-F_Hg.js → arrow-top-B9sp1rrY.js} +1 -1
  24. package/assets/{auto-track-D9PR_g0H.js → auto-track-DkUeIWzK.js} +1 -1
  25. package/assets/{bank-DdnPzesM.js → bank-DIeswBBe.js} +1 -1
  26. package/assets/{basic-DmnKpYra.js → basic-O_880rjt.js} +1 -1
  27. package/assets/{biconomy-BuodyWlH.js → biconomy-B6KCdEMG.js} +1 -1
  28. package/assets/{browser-WTqp-RH-.js → browser-BLf4KEyW.js} +1 -1
  29. package/assets/{card-CUcjOncu.js → card-D8EE5Jj-.js} +1 -1
  30. package/assets/{ccip-BBJ3I8Xu.js → ccip-DK12c0R1.js} +1 -1
  31. package/assets/{checkmark-B0wthWje.js → checkmark-6GXbMfu0.js} +1 -1
  32. package/assets/{checkmark-bold-D3rJPOXJ.js → checkmark-bold-aY4y8YkK.js} +1 -1
  33. package/assets/{chevron-bottom-BdzTSFY2.js → chevron-bottom-CU2atHia.js} +1 -1
  34. package/assets/{chevron-left-C8bbhNcl.js → chevron-left-CMYKgteJ.js} +1 -1
  35. package/assets/{chevron-right-CCJu7F9K.js → chevron-right-DSqlSbLF.js} +1 -1
  36. package/assets/{chevron-top-CbTESKuW.js → chevron-top--LC04sW-.js} +1 -1
  37. package/assets/{chrome-store-DxK9ysyk.js → chrome-store-okUhgEDz.js} +1 -1
  38. package/assets/{clock-B1B6mod1.js → clock-DFiN_R95.js} +1 -1
  39. package/assets/{close-CA_w2TX7.js → close-I8fax_o0.js} +1 -1
  40. package/assets/{coinPlaceholder-DDHUZdwM.js → coinPlaceholder-CkjlkAlk.js} +1 -1
  41. package/assets/{compass-Dwx8PkuI.js → compass-Cmm-IgwK.js} +1 -1
  42. package/assets/{controller-1R1nrCkG.js → controller-C9vLFhgG.js} +2 -2
  43. package/assets/{copy-R0gnZxuz.js → copy-CJx_8wmR.js} +1 -1
  44. package/assets/{core-9XBuvaBL.js → core-BGnzhLwd.js} +3 -3
  45. package/assets/{createBundlerClient-LPapq7hJ.js → createBundlerClient-CLw70W8T.js} +1 -1
  46. package/assets/{createClient-BLcyKw9o.js → createClient-BxosFBTN.js} +1 -1
  47. package/assets/{cursor-buHR4MvG.js → cursor-BLRNlN9P.js} +1 -1
  48. package/assets/{cursor-transparent-BlSFN96v.js → cursor-transparent-sQ7KRm1T.js} +1 -1
  49. package/assets/{decimals-Bnh8vaOd.js → decimals-DSN2ezaI.js} +1 -1
  50. package/assets/{decimals-DKeocaSS.js → decimals-ZXRJ3NZH.js} +1 -1
  51. package/assets/{desktop-iLJ0yrPC.js → desktop-Cq9Q4PJu.js} +1 -1
  52. package/assets/{detectExtension-gGfjMoDV.js → detectExtension-DtOEyzLR.js} +1 -1
  53. package/assets/{disconnect-DmWVYzi9.js → disconnect-Q4CIgYaj.js} +1 -1
  54. package/assets/{discord-CdcA1Vi7.js → discord-BFkGngrw.js} +1 -1
  55. package/assets/{emotion-react.browser.esm-F9fz9FEy.js → emotion-react.browser.esm-CuRmxzDI.js} +1 -1
  56. package/assets/{emotion-use-insertion-effect-with-fallbacks.browser.esm-Sg-5vT-t.js → emotion-use-insertion-effect-with-fallbacks.browser.esm-5PAiZm_X.js} +1 -1
  57. package/assets/{encode-CKwvXR_N.js → encode-Bw3iNfCX.js} +2 -2
  58. package/assets/{engine-DlI24UVK.js → engine-C9bXNE6k.js} +1 -1
  59. package/assets/{estimate-gas-BG6-Kqmv.js → estimate-gas-DKfjMwgj.js} +3 -3
  60. package/assets/{estimate-l1-fee-BgFRrIc9.js → estimate-l1-fee-C8GOcft6.js} +1 -1
  61. package/assets/{eth_getStorageAt-D61Vetgg.js → eth_getStorageAt-DLP3MFZC.js} +1 -1
  62. package/assets/{etherscan-GfR_ppjR.js → etherscan-WGcUpO-N.js} +1 -1
  63. package/assets/{exclamation-triangle-8iGJjWy8.js → exclamation-triangle-B7j3vyUf.js} +1 -1
  64. package/assets/{extension-D6ggRkmW.js → extension-KO7c6KpI.js} +1 -1
  65. package/assets/{external-link-DEfu-xG1.js → external-link-CY9fq540.js} +1 -1
  66. package/assets/{extractIPFS-BmrxUMAw.js → extractIPFS-CaNrw1G3.js} +1 -1
  67. package/assets/{facebook-CKEn1wyA.js → facebook-C4AmE2nx.js} +1 -1
  68. package/assets/{farcaster-BjW81SyT.js → farcaster-CQwGqHN5.js} +1 -1
  69. package/assets/{fee-data-B6rXatSB.js → fee-data-hqf9C_Iq.js} +1 -1
  70. package/assets/{fetchTokenMetadata-C3xqQZKk.js → fetchTokenMetadata-D6bwUi9C.js} +2 -2
  71. package/assets/{filters-DXEYimKv.js → filters-DQUZT2YK.js} +1 -1
  72. package/assets/{get-ecosystem-wallet-info-DTdvgTlD.js → get-ecosystem-wallet-info-CKFiqkc5.js} +1 -1
  73. package/assets/{getBalance-BhvXyjxq.js → getBalance-DvZhqMEV.js} +1 -1
  74. package/assets/{getInstalledModules-Diize_Jb.js → getInstalledModules-CP7yfLcd.js} +1 -1
  75. package/assets/{getNFT-DrIJlzTC.js → getNFT-DidYjmem.js} +2 -2
  76. package/assets/{getNFT-CT5tK0Ef.js → getNFT-DvCB6ap4.js} +1 -1
  77. package/assets/{github-BJf_xM2L.js → github-BIpJQrlC.js} +1 -1
  78. package/assets/{google-C2-k3hmM.js → google-un3Y6Ejx.js} +1 -1
  79. package/assets/{help-circle-DhiNMkUL.js → help-circle-B-zpwtLD.js} +1 -1
  80. package/assets/{id-D03_zXaW.js → id-B4_vIzsp.js} +1 -1
  81. package/assets/{image-j5GaEWNQ.js → image-Czc86Anh.js} +1 -1
  82. package/assets/{in-app-wallet-calls-DeGARlNz.js → in-app-wallet-calls-D7-Z3B5h.js} +1 -1
  83. package/assets/{index-CZdqu4HH.js → index-B7ehXAu4.js} +1 -1
  84. package/assets/{index-DT6Vj6dy.js → index-BhvB7qtA.js} +2 -2
  85. package/assets/{index-5ciQHCfO.js → index-BivApAxn.js} +1 -1
  86. package/assets/index-BjzJcZq6.js +1 -1
  87. package/assets/index-C3DFzjjm.js +8 -0
  88. package/assets/{index-jI5uKA2-.js → index-C8jSk8ge.js} +1 -1
  89. package/assets/{index-DDgA9b7k.js → index-CcXGB7H0.js} +1 -1
  90. package/assets/{index-CUrz5-ZQ.js → index-ClhPpkNy.js} +3 -3
  91. package/assets/index-DDxTHrtr.js +1 -0
  92. package/assets/{index-Bd_zGIWs.js → index-DMXpjhes.js} +2 -2
  93. package/assets/index-DU4RVPgw.js +1 -0
  94. package/assets/{index-BozJS3za.js → index-D_Y0vnSs.js} +1 -1
  95. package/assets/{index-DQ85yNMU.js → index-DdtNL2Jf.js} +1 -1
  96. package/assets/{index-L3jxSgGB.js → index-DpRa9Hdk.js} +1 -1
  97. package/assets/{index-uTf7Q5m-.js → index-DpyuVWzp.js} +1 -1
  98. package/assets/index-Dy0yjznp.js +1 -1
  99. package/assets/{index-D4ZoaFaW.js → index-vb2hjBpr.js} +1 -1
  100. package/assets/{index.es-vTDnK87g.js → index.es-C-HzyBbb.js} +1 -1
  101. package/assets/{index.es-CAWfybMT.js → index.es-C4Qj75ZL.js} +3 -3
  102. package/assets/{info-DYDmmmBF.js → info-Cpg1N2vM.js} +1 -1
  103. package/assets/{info-circle-CcOS1QbV.js → info-circle-D8V3i6qM.js} +1 -1
  104. package/assets/jsx-runtime-DncYoG30.js +1 -1
  105. package/assets/{lightbulb-Byuz2x7E.js → lightbulb-HefALNgp.js} +1 -1
  106. package/assets/{localBatchGatewayRequest-BOvl6QMW.js → localBatchGatewayRequest-CRqIDg0k.js} +1 -1
  107. package/assets/{mail-Dmlstk1E.js → mail-CgM9gIZJ.js} +1 -1
  108. package/assets/{mobile-BHFF9Tp-.js → mobile-U7c47SaE.js} +1 -1
  109. package/assets/{more-Uov13zHU.js → more-DdaQJYy6.js} +1 -1
  110. package/assets/{network-placeholder-DPsAlG2a.js → network-placeholder-CLxfhasD.js} +1 -1
  111. package/assets/{nftPlaceholder-CKa3uzSG.js → nftPlaceholder-DLJ8_zDF.js} +1 -1
  112. package/assets/{off-BvxFNTc7.js → off-BODMWvqU.js} +1 -1
  113. package/assets/{openzeppelin-BmJC0lXu.js → openzeppelin-CElS1w4j.js} +1 -1
  114. package/assets/{ownerOf-CaDY4Qro.js → ownerOf-4VKl6Zed.js} +1 -1
  115. package/assets/{parseNft-CwTDpy0g.js → parseNft-B3feBBr7.js} +2 -2
  116. package/assets/{play-store-COAN7GVZ.js → play-store-2WBMZoJX.js} +1 -1
  117. package/assets/{plus-YCFIwODs.js → plus-C8q1mNaL.js} +1 -1
  118. package/assets/preload-helper-DJT5ZcG4.js +1 -0
  119. package/assets/{qr-code-CQNjoP1_.js → qr-code-SA-iW5ew.js} +1 -1
  120. package/assets/{qr-overlay-C8VtIF-5.js → qr-overlay-YOF5zF1q.js} +1 -1
  121. package/assets/{recycle-horizontal-BXBBKttg.js → recycle-horizontal-DGKs-nfw.js} +1 -1
  122. package/assets/{refresh-DGzlkz4z.js → refresh--yNxoDBw.js} +1 -1
  123. package/assets/remoteEntry.js +1 -1
  124. package/assets/{reown-logo-41ZwC8Wb.js → reown-logo-BQIpKPKW.js} +1 -1
  125. package/assets/{resolveImplementation-DM6BHeji.js → resolveImplementation-DszFPOZ6.js} +1 -1
  126. package/assets/{search-DkZZHruy.js → search-FtLcOObA.js} +1 -1
  127. package/assets/{secp256k1-CmqR8ec3.js → secp256k1-DcA0Bweb.js} +1 -1
  128. package/assets/{send-DY97Hjge.js → send-CBJ-wiQ6.js} +1 -1
  129. package/assets/{send-batch-transaction-BLPmGB9M.js → send-batch-transaction-xxQ_5YMn.js} +1 -1
  130. package/assets/{send-eip712-transaction-t91PBSUH.js → send-eip712-transaction-DkxQV38B.js} +2 -2
  131. package/assets/{send-gasless-transaction-DRbTPij5.js → send-gasless-transaction-XxHEAsLB.js} +2 -2
  132. package/assets/{serializeTransaction-DePWMgRx.js → serializeTransaction-CMhv_BZC.js} +1 -1
  133. package/assets/{session-proposal-BPk-6kBm.js → session-proposal-Bd5Fj6z3.js} +1 -1
  134. package/assets/{session-request-mTPTFyu8.js → session-request-B70r2YF_.js} +2 -2
  135. package/assets/{signing-fd2Rp8P0.js → signing-QGcxSI_9.js} +3 -3
  136. package/assets/{swapHorizontal-4B3kHTpA.js → swapHorizontal-C1dSpyyi.js} +1 -1
  137. package/assets/{swapHorizontalBold-CLCm8M1r.js → swapHorizontalBold-Bh9HRSf4.js} +1 -1
  138. package/assets/{swapHorizontalMedium-pth8maKg.js → swapHorizontalMedium-C5fWd_xG.js} +1 -1
  139. package/assets/{swapHorizontalRoundedBold-D9RueXfE.js → swapHorizontalRoundedBold-DQYZ6GUV.js} +1 -1
  140. package/assets/{swapVertical-DgFWMAab.js → swapVertical-CwlEklWe.js} +1 -1
  141. package/assets/{telegram-CRzvpklN.js → telegram-D-nTXT2M.js} +1 -1
  142. package/assets/{thirdweb-BDeAJ4oX.js → thirdweb-DZCEFvuW.js} +3 -3
  143. package/assets/{three-dots-CAGpqs78.js → three-dots-C4qGqJn4.js} +1 -1
  144. package/assets/{totalSupply-BOyOYvTD.js → totalSupply-BqaCXbYX.js} +1 -1
  145. package/assets/{twitch-C0_LdJeE.js → twitch-mLqsOtOs.js} +1 -1
  146. package/assets/{twitterIcon-BA_gSMJq.js → twitterIcon-CtFxyGLw.js} +1 -1
  147. package/assets/{uid-QS91sMSf.js → uid-B6XGct9S.js} +3 -3
  148. package/assets/{verify-Doijrccq.js → verify-CeRpSmin.js} +1 -1
  149. package/assets/{verify-filled-Dzvol2nT.js → verify-filled-CjglFMsq.js} +1 -1
  150. package/assets/{w3m-modal-XdpZEDU9.js → w3m-modal-DR20hsnc.js} +1 -1
  151. package/assets/{wait-for-tx-receipt-tKiSk-wy.js → wait-for-tx-receipt-DQdcSdtK.js} +1 -1
  152. package/assets/{wallet-aBFrt0kW.js → wallet-9AiGsIL8.js} +1 -1
  153. package/assets/{wallet-placeholder-CLPfteFW.js → wallet-placeholder-CIamIV4f.js} +1 -1
  154. package/assets/{walletconnect-RkdjesgD.js → walletconnect--HLqlkm7.js} +1 -1
  155. package/assets/{wallets-z86vtyeQ.js → wallets-CQmzEszx.js} +5 -5
  156. package/assets/{warning-circle-C3Uif538.js → warning-circle-o-FTEWCj.js} +1 -1
  157. package/assets/{web-connector-Cf7r9kv3.js → web-connector-CzTxyAHe.js} +3 -3
  158. package/assets/{webSocket-C9MEjwL1.js → webSocket-CSarcF7y.js} +1 -1
  159. package/assets/{x-DMVfcf_O.js → x-CADCUMm6.js} +1 -1
  160. package/index.html +17 -17
  161. package/package.json +3 -3
  162. package/assets/SignInRedirect-Cq5V2cbN.js +0 -11
  163. package/assets/__federation_shared_@dcl/hooks-BWESDPD3.js +0 -535
  164. package/assets/__federation_shared_@dcl/schemas-CVwtHlVJ.js +0 -1
  165. package/assets/__federation_shared_@emotion/react-BQUlnVL8.js +0 -1
  166. package/assets/__federation_shared_decentraland-ui2-Dkip0j-u.js +0 -358
  167. package/assets/create-submenu-Bu20F8-Z.webp +0 -0
  168. package/assets/explore-submenu-BFVuYMi9.webp +0 -0
  169. package/assets/governance-submenu-VTIKvCIL.webp +0 -0
  170. package/assets/index-CpR9p5nk.js +0 -1
  171. package/assets/index-MYKNZAUu.js +0 -8
  172. package/assets/index-Tsk25L8E.js +0 -1
  173. package/assets/learn-submenu-sfxVP5Db.webp +0 -0
  174. package/assets/marketplace-submenu-CixWTv8_.webp +0 -0
  175. package/assets/preload-helper-CO43ckIt.js +0 -1
@@ -1,2 +1,2 @@
1
- import{importShared as B}from"./__federation_fn_import-BOkD8n2P.js";import{j as ae}from"./jsx-runtime-DncYoG30.js";const ce="2.22.1",ue=()=>`@wagmi/core@${ce}`;var z=function(e,t,n,s){if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?s:n==="a"?s.call(e):s?s.value:t.get(e)},O,H;let C=class I extends Error{get docsBaseUrl(){return"https://wagmi.sh/core"}get version(){return ue()}constructor(t,n={}){super(),O.add(this),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiCoreError"});const s=n.cause instanceof I?n.cause.details:n.cause?.message?n.cause.message:n.details,i=n.cause instanceof I&&n.cause.docsPath||n.docsPath;this.message=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...i?[`Docs: ${this.docsBaseUrl}${i}.html${n.docsSlug?`#${n.docsSlug}`:""}`]:[],...s?[`Details: ${s}`]:[],`Version: ${this.version}`].join(`
1
+ import{importShared as B}from"./__federation_fn_import-BVq5pY2g.js";import{j as ae}from"./jsx-runtime-DncYoG30.js";const ce="2.22.1",ue=()=>`@wagmi/core@${ce}`;var z=function(e,t,n,s){if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?s:n==="a"?s.call(e):s?s.value:t.get(e)},O,H;let C=class I extends Error{get docsBaseUrl(){return"https://wagmi.sh/core"}get version(){return ue()}constructor(t,n={}){super(),O.add(this),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiCoreError"});const s=n.cause instanceof I?n.cause.details:n.cause?.message?n.cause.message:n.details,i=n.cause instanceof I&&n.cause.docsPath||n.docsPath;this.message=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...i?[`Docs: ${this.docsBaseUrl}${i}.html${n.docsSlug?`#${n.docsSlug}`:""}`]:[],...s?[`Details: ${s}`]:[],`Version: ${this.version}`].join(`
2
2
  `),n.cause&&(this.cause=n.cause),this.details=s,this.docsPath=i,this.metaMessages=n.metaMessages,this.shortMessage=t}walk(t){return z(this,O,"m",H).call(this,this,t)}};O=new WeakSet,H=function e(t,n){return n?.(t)?t:t.cause?z(this,O,"m",e).call(this,t.cause,n):t};class he extends C{constructor(){super("Chain not configured."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotConfiguredError"})}}class Ne extends C{constructor(){super("Connector already connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAlreadyConnectedError"})}}class $e extends C{constructor(){super("Connector not connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorNotConnectedError"})}}class Ke extends C{constructor(){super("Connector not found."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorNotFoundError"})}}class _e extends C{constructor({address:t,connector:n}){super(`Account "${t}" not found for connector "${n.name}".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAccountNotFoundError"})}}class We extends C{constructor({connectionChainId:t,connectorChainId:n}){super(`The current chain of the connector (id: ${n}) does not match the connection's chain (id: ${t}).`,{metaMessages:[`Current Chain ID: ${n}`,`Expected Chain ID: ${t}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorChainMismatchError"})}}class Ge extends C{constructor({connector:t}){super(`Connector "${t.name}" unavailable while reconnecting.`,{details:["During the reconnection step, the only connector methods guaranteed to be available are: `id`, `name`, `type`, `uid`.","All other methods are not guaranteed to be available until reconnection completes and connectors are fully restored.","This error commonly occurs for connectors that asynchronously inject after reconnection has already started."].join(" ")}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorUnavailableReconnectingError"})}}class F extends C{constructor(){super("Provider not found."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderNotFoundError"})}}class Qe extends C{constructor({connector:t}){super(`"${t.name}" does not support programmatic chain switching.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainNotSupportedError"})}}function Be(e){return e}const{getAddress:E,numberToHex:N,ResourceUnavailableRpcError:x,SwitchChainError:$,UserRejectedRequestError:b,withRetry:le,withTimeout:de}=await B("viem");V.type="injected";function V(e={}){const{shimDisconnect:t=!0,unstable_shimAsyncInject:n}=e;function s(){const c=e.target;if(typeof c=="function"){const o=c();if(o)return o}return typeof c=="object"?c:typeof c=="string"?{...fe[c]??{id:c,name:`${c[0].toUpperCase()}${c.slice(1)}`,provider:`is${c[0].toUpperCase()}${c.slice(1)}`}}:{id:"injected",name:"Injected",provider(o){return o?.ethereum}}}let i,a,l,r;return c=>({get icon(){return s().icon},get id(){return s().id},get name(){return s().name},get supportsSimulation(){return!0},type:V.type,async setup(){const o=await this.getProvider();o?.on&&e.target&&(l||(l=this.onConnect.bind(this),o.on("connect",l)),i||(i=this.onAccountsChanged.bind(this),o.on("accountsChanged",i)))},async connect({chainId:o,isReconnecting:u,withCapabilities:y}={}){const d=await this.getProvider();if(!d)throw new F;let p=[];if(u)p=await this.getAccounts().catch(()=>[]);else if(t)try{p=(await d.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]}))[0]?.caveats?.[0]?.value?.map(h=>E(h)),p.length>0&&(p=await this.getAccounts())}catch(f){const h=f;if(h.code===b.code)throw new b(h);if(h.code===x.code)throw h}try{!p?.length&&!u&&(p=(await d.request({method:"eth_requestAccounts"})).map(m=>E(m))),l&&(d.removeListener("connect",l),l=void 0),i||(i=this.onAccountsChanged.bind(this),d.on("accountsChanged",i)),a||(a=this.onChainChanged.bind(this),d.on("chainChanged",a)),r||(r=this.onDisconnect.bind(this),d.on("disconnect",r));let f=await this.getChainId();return o&&f!==o&&(f=(await this.switchChain({chainId:o}).catch(m=>{if(m.code===b.code)throw m;return{id:f}}))?.id??f),t&&await c.storage?.removeItem(`${this.id}.disconnected`),e.target||await c.storage?.setItem("injected.connected",!0),{accounts:y?p.map(h=>({address:h,capabilities:{}})):p,chainId:f}}catch(f){const h=f;throw h.code===b.code?new b(h):h.code===x.code?new x(h):h}},async disconnect(){const o=await this.getProvider();if(!o)throw new F;a&&(o.removeListener("chainChanged",a),a=void 0),r&&(o.removeListener("disconnect",r),r=void 0),l||(l=this.onConnect.bind(this),o.on("connect",l));try{await de(()=>o.request({method:"wallet_revokePermissions",params:[{eth_accounts:{}}]}),{timeout:100})}catch{}t&&await c.storage?.setItem(`${this.id}.disconnected`,!0),e.target||await c.storage?.removeItem("injected.connected")},async getAccounts(){const o=await this.getProvider();if(!o)throw new F;return(await o.request({method:"eth_accounts"})).map(y=>E(y))},async getChainId(){const o=await this.getProvider();if(!o)throw new F;const u=await o.request({method:"eth_chainId"});return Number(u)},async getProvider(){if(typeof window>"u")return;let o;const u=s();return typeof u.provider=="function"?o=u.provider(window):typeof u.provider=="string"?o=j(window,u.provider):o=u.provider,o&&!o.removeListener&&("off"in o&&typeof o.off=="function"?o.removeListener=o.off:o.removeListener=()=>{}),o},async isAuthorized(){try{if(t&&await c.storage?.getItem(`${this.id}.disconnected`)||!e.target&&!await c.storage?.getItem("injected.connected"))return!1;if(!await this.getProvider()){if(n!==void 0&&n!==!1){const d=async()=>(typeof window<"u"&&window.removeEventListener("ethereum#initialized",d),!!await this.getProvider()),p=typeof n=="number"?n:1e3;if(await Promise.race([...typeof window<"u"?[new Promise(h=>window.addEventListener("ethereum#initialized",()=>h(d()),{once:!0}))]:[],new Promise(h=>setTimeout(()=>h(d()),p))]))return!0}throw new F}return!!(await le(()=>this.getAccounts())).length}catch{return!1}},async switchChain({addEthereumChainParameter:o,chainId:u}){const y=await this.getProvider();if(!y)throw new F;const d=c.chains.find(f=>f.id===u);if(!d)throw new $(new he);const p=new Promise(f=>{const h=m=>{"chainId"in m&&m.chainId===u&&(c.emitter.off("change",h),f())};c.emitter.on("change",h)});try{return await Promise.all([y.request({method:"wallet_switchEthereumChain",params:[{chainId:N(u)}]}).then(async()=>{await this.getChainId()===u&&c.emitter.emit("change",{chainId:u})}),p]),d}catch(f){const h=f;if(h.code===4902||h?.data?.originalError?.code===4902)try{const{default:m,...v}=d.blockExplorers??{};let g;o?.blockExplorerUrls?g=o.blockExplorerUrls:m&&(g=[m.url,...Object.values(v).map(P=>P.url)]);let w;o?.rpcUrls?.length?w=o.rpcUrls:w=[d.rpcUrls.default?.http[0]??""];const S={blockExplorerUrls:g,chainId:N(u),chainName:o?.chainName??d.name,iconUrls:o?.iconUrls,nativeCurrency:o?.nativeCurrency??d.nativeCurrency,rpcUrls:w};return await Promise.all([y.request({method:"wallet_addEthereumChain",params:[S]}).then(async()=>{if(await this.getChainId()===u)c.emitter.emit("change",{chainId:u});else throw new b(new Error("User rejected switch after adding network."))}),p]),d}catch(m){throw new b(m)}throw h.code===b.code?new b(h):new $(h)}},async onAccountsChanged(o){if(o.length===0)this.onDisconnect();else if(c.emitter.listenerCount("connect")){const u=(await this.getChainId()).toString();this.onConnect({chainId:u}),t&&await c.storage?.removeItem(`${this.id}.disconnected`)}else c.emitter.emit("change",{accounts:o.map(u=>E(u))})},onChainChanged(o){const u=Number(o);c.emitter.emit("change",{chainId:u})},async onConnect(o){const u=await this.getAccounts();if(u.length===0)return;const y=Number(o.chainId);c.emitter.emit("connect",{accounts:u,chainId:y});const d=await this.getProvider();d&&(l&&(d.removeListener("connect",l),l=void 0),i||(i=this.onAccountsChanged.bind(this),d.on("accountsChanged",i)),a||(a=this.onChainChanged.bind(this),d.on("chainChanged",a)),r||(r=this.onDisconnect.bind(this),d.on("disconnect",r)))},async onDisconnect(o){const u=await this.getProvider();o&&o.code===1013&&u&&(await this.getAccounts()).length||(c.emitter.emit("disconnect"),u&&(a&&(u.removeListener("chainChanged",a),a=void 0),r&&(u.removeListener("disconnect",r),r=void 0),l||(l=this.onConnect.bind(this),u.on("connect",l))))}})}const fe={coinbaseWallet:{id:"coinbaseWallet",name:"Coinbase Wallet",provider(e){return e?.coinbaseWalletExtension?e.coinbaseWalletExtension:j(e,"isCoinbaseWallet")}},metaMask:{id:"metaMask",name:"MetaMask",provider(e){return j(e,t=>{if(!t.isMetaMask||t.isBraveWallet&&!t._events&&!t._state)return!1;const n=["isApexWallet","isAvalanche","isBitKeep","isBlockWallet","isKuCoinWallet","isMathWallet","isOkxWallet","isOKExWallet","isOneInchIOSWallet","isOneInchAndroidWallet","isOpera","isPhantom","isPortal","isRabby","isTokenPocket","isTokenary","isUniswapWallet","isZerion"];for(const s of n)if(t[s])return!1;return!0})}},phantom:{id:"phantom",name:"Phantom",provider(e){return e?.phantom?.ethereum?e.phantom?.ethereum:j(e,"isPhantom")}}};function j(e,t){function n(i){return typeof t=="function"?t(i):typeof t=="string"?i[t]:!0}const s=e.ethereum;if(s?.providers)return s.providers.find(i=>n(i));if(s&&n(s))return s}var J=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},me={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},pe=class{#t=me;#n=!1;setTimeoutProvider(e){this.#t=e}setTimeout(e,t){return this.#t.setTimeout(e,t)}clearTimeout(e){this.#t.clearTimeout(e)}setInterval(e,t){return this.#t.setInterval(e,t)}clearInterval(e){this.#t.clearInterval(e)}},T=new pe;function ye(e){setTimeout(e,0)}var A=typeof window>"u"||"Deno"in globalThis;function K(){}function ze(e,t){return typeof e=="function"?e(t):e}function ve(e){return typeof e=="number"&&e>=0&&e!==1/0}function ge(e,t){return Math.max(e+(t||0)-Date.now(),0)}function we(e,t){return typeof e=="function"?e(t):e}function be(e,t){return typeof e=="function"?e(t):e}function He(e,t){const{type:n="all",exact:s,fetchStatus:i,predicate:a,queryKey:l,stale:r}=e;if(l){if(s){if(t.queryHash!==Ce(l,t.options))return!1}else if(!D(t.queryKey,l))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof r=="boolean"&&t.isStale()!==r||i&&i!==t.state.fetchStatus||a&&!a(t))}function Ve(e,t){const{exact:n,status:s,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(q(t.options.mutationKey)!==q(a))return!1}else if(!D(t.options.mutationKey,a))return!1}return!(s&&t.state.status!==s||i&&!i(t))}function Ce(e,t){return(t?.queryKeyHashFn||q)(e)}function q(e){return JSON.stringify(e,(t,n)=>M(n)?Object.keys(n).sort().reduce((s,i)=>(s[i]=n[i],s),{}):n)}function D(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>D(e[n],t[n])):!1}var Pe=Object.prototype.hasOwnProperty;function Z(e,t){if(e===t)return e;const n=_(e)&&_(t);if(!n&&!(M(e)&&M(t)))return t;const i=(n?e:Object.keys(e)).length,a=n?t:Object.keys(t),l=a.length,r=n?new Array(l):{};let c=0;for(let o=0;o<l;o++){const u=n?o:a[o],y=e[u],d=t[u];if(y===d){r[u]=y,(n?o<i:Pe.call(e,u))&&c++;continue}if(y===null||d===null||typeof y!="object"||typeof d!="object"){r[u]=d;continue}const p=Z(y,d);r[u]=p,p===y&&c++}return i===l&&c===i?e:r}function Je(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function _(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function M(e){if(!W(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!W(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function W(e){return Object.prototype.toString.call(e)==="[object Object]"}function Se(e){return new Promise(t=>{T.setTimeout(t,e)})}function Fe(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Z(e,t):t}function Ee(e,t,n=0){const s=[...e,t];return n&&s.length>n?s.slice(1):s}function je(e,t,n=0){const s=[t,...e];return n&&s.length>n?s.slice(0,-1):s}var X=Symbol();function Y(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===X?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Ze(e,t){return typeof e=="function"?e(...t):!!e}function Oe(e,t,n){let s=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),s||(s=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),e}var Ae=class extends J{#t;#n;#e;constructor(){super(),this.#e=e=>{if(!A&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#n||this.setEventListener(this.#e)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#e=e,this.#n?.(),this.#n=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},xe=new Ae;function Ie(){let e,t;const n=new Promise((i,a)=>{e=i,t=a});n.status="pending",n.catch(()=>{});function s(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{s({status:"fulfilled",value:i}),e(i)},n.reject=i=>{s({status:"rejected",reason:i}),t(i)},n}var Te=ye;function qe(){let e=[],t=0,n=r=>{r()},s=r=>{r()},i=Te;const a=r=>{t?e.push(r):i(()=>{n(r)})},l=()=>{const r=e;e=[],r.length&&i(()=>{s(()=>{r.forEach(c=>{n(c)})})})};return{batch:r=>{let c;t++;try{c=r()}finally{t--,t||l()}return c},batchCalls:r=>(...c)=>{a(()=>{r(...c)})},schedule:a,setNotifyFunction:r=>{n=r},setBatchNotifyFunction:r=>{s=r},setScheduler:r=>{i=r}}}var ee=qe(),Me=class extends J{#t=!0;#n;#e;constructor(){super(),this.#e=e=>{if(!A&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#n||this.setEventListener(this.#e)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#e=e,this.#n?.(),this.#n=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#t}},te=new Me;function Ue(e){return Math.min(1e3*2**e,3e4)}function ne(e){return(e??"online")==="online"?te.isOnline():!0}var U=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function re(e){let t=!1,n=0,s;const i=Ie(),a=()=>i.status!=="pending",l=h=>{if(!a()){const m=new U(h);d(m),e.onCancel?.(m)}},r=()=>{t=!0},c=()=>{t=!1},o=()=>xe.isFocused()&&(e.networkMode==="always"||te.isOnline())&&e.canRun(),u=()=>ne(e.networkMode)&&e.canRun(),y=h=>{a()||(s?.(),i.resolve(h))},d=h=>{a()||(s?.(),i.reject(h))},p=()=>new Promise(h=>{s=m=>{(a()||o())&&h(m)},e.onPause?.()}).then(()=>{s=void 0,a()||e.onContinue?.()}),f=()=>{if(a())return;let h;const m=n===0?e.initialPromise:void 0;try{h=m??e.fn()}catch(v){h=Promise.reject(v)}Promise.resolve(h).then(y).catch(v=>{if(a())return;const g=e.retry??(A?0:3),w=e.retryDelay??Ue,S=typeof w=="function"?w(n,v):w,P=g===!0||typeof g=="number"&&n<g||typeof g=="function"&&g(n,v);if(t||!P){d(v);return}n++,e.onFail?.(n,v),Se(S).then(()=>o()?void 0:p()).then(()=>{t?d(v):f()})})};return{promise:i,status:()=>i.status,cancel:l,continue:()=>(s?.(),i),cancelRetry:r,continueRetry:c,canStart:u,start:()=>(u()?f():p().then(f),i)}}var se=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ve(this.gcTime)&&(this.#t=T.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(A?1/0:5*60*1e3))}clearGcTimeout(){this.#t&&(T.clearTimeout(this.#t),this.#t=void 0)}},Xe=class extends se{#t;#n;#e;#s;#r;#a;#o;constructor(e){super(),this.#o=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#s=e.client,this.#e=this.#s.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=Q(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=Q(this.options);t.data!==void 0&&(this.setState(G(t.data,t.dataUpdatedAt)),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#e.remove(this)}setData(e,t){const n=Fe(this.state.data,e,this.options);return this.#i({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(K).catch(K):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>be(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===X||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>we(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!ge(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#o?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#e.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const r=this.observers.find(c=>c.options.queryFn);r&&this.setOptions(r.options)}const n=new AbortController,s=r=>{Object.defineProperty(r,"signal",{enumerable:!0,get:()=>(this.#o=!0,n.signal)})},i=()=>{const r=Y(this.options,t),o=(()=>{const u={client:this.#s,queryKey:this.queryKey,meta:this.meta};return s(u),u})();return this.#o=!1,this.options.persister?this.options.persister(r,o,this):r(o)},l=(()=>{const r={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#s,state:this.state,fetchFn:i};return s(r),r})();this.options.behavior?.onFetch(l,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#i({type:"fetch",meta:l.fetchOptions?.meta}),this.#r=re({initialPromise:t?.initialPromise,fn:l.fetchFn,onCancel:r=>{r instanceof U&&r.revert&&this.setState({...this.#n,fetchStatus:"idle"}),n.abort()},onFail:(r,c)=>{this.#i({type:"failed",failureCount:r,error:c})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0});try{const r=await this.#r.start();if(r===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(r),this.#e.config.onSuccess?.(r,this),this.#e.config.onSettled?.(r,this.state.error,this),r}catch(r){if(r instanceof U){if(r.silent)return this.#r.promise;if(r.revert){if(this.state.data===void 0)throw r;return this.state.data}}throw this.#i({type:"error",error:r}),this.#e.config.onError?.(r,this),this.#e.config.onSettled?.(this.state.data,r,this),r}finally{this.scheduleGc()}}#i(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...Re(n.data,this.options),fetchMeta:e.meta??null};case"success":const s={...n,...G(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?s:void 0,s;case"error":const i=e.error;return{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),ee.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#e.notify({query:this,type:"updated",action:e})})}};function Re(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ne(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function G(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Q(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,s=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}function Ye(e){return{onFetch:(t,n)=>{const s=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],l=t.state.data?.pageParams||[];let r={pages:[],pageParams:[]},c=0;const o=async()=>{let u=!1;const y=f=>{Oe(f,()=>t.signal,()=>u=!0)},d=Y(t.options,t.fetchOptions),p=async(f,h,m)=>{if(u)return Promise.reject();if(h==null&&f.pages.length)return Promise.resolve(f);const g=(()=>{const L={client:t.client,queryKey:t.queryKey,pageParam:h,direction:m?"backward":"forward",meta:t.options.meta};return y(L),L})(),w=await d(g),{maxPages:S}=t.options,P=m?je:Ee;return{pages:P(f.pages,w,S),pageParams:P(f.pageParams,h,S)}};if(i&&a.length){const f=i==="backward",h=f?ie:R,m={pages:a,pageParams:l},v=h(s,m);r=await p(m,v,f)}else{const f=e??a.length;do{const h=c===0?l[0]??s.initialPageParam:R(s,r);if(c>0&&h==null)break;r=await p(r,h),c++}while(c<f)}return r};t.options.persister?t.fetchFn=()=>t.options.persister?.(o,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=o}}}function R(e,{pages:t,pageParams:n}){const s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,n[s],n):void 0}function ie(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function et(e,t){return t?R(e,t)!=null:!1}function tt(e,t){return!t||!e.getPreviousPageParam?!1:ie(e,t)!=null}var nt=class extends se{#t;#n;#e;#s;constructor(e){super(),this.#t=e.client,this.mutationId=e.mutationId,this.#e=e.mutationCache,this.#n=[],this.state=e.state||De(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#n.includes(e)||(this.#n.push(e),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#n=this.#n.filter(t=>t!==e),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#n.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#s?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},n={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#s=re({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(a,l)=>{this.#r({type:"failed",failureCount:a,error:l})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const s=this.state.status==="pending",i=!this.#s.canStart();try{if(s)t();else{this.#r({type:"pending",variables:e,isPaused:i}),await this.#e.config.onMutate?.(e,this,n);const l=await this.options.onMutate?.(e,n);l!==this.state.context&&this.#r({type:"pending",context:l,variables:e,isPaused:i})}const a=await this.#s.start();return await this.#e.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#e.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#r({type:"success",data:a}),a}catch(a){try{await this.#e.config.onError?.(a,e,this.state.context,this,n)}catch(l){Promise.reject(l)}try{await this.options.onError?.(a,e,this.state.context,n)}catch(l){Promise.reject(l)}try{await this.#e.config.onSettled?.(void 0,a,this.state.variables,this.state.context,this,n)}catch(l){Promise.reject(l)}try{await this.options.onSettled?.(void 0,a,e,this.state.context,n)}catch(l){Promise.reject(l)}throw this.#r({type:"error",error:a}),a}finally{this.#e.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),ee.batch(()=>{this.#n.forEach(n=>{n.onMutationUpdate(e)}),this.#e.notify({mutation:this,type:"updated",action:e})})}};function De(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}const k=await B("react");var oe=k.createContext(void 0),rt=e=>{const t=k.useContext(oe);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},st=({client:e,children:t})=>(k.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),ae.jsx(oe.Provider,{value:e,children:t}));export{A,ve as B,he as C,ge as D,T as E,Re as F,Fe as G,tt as H,et as I,De as J,Ze as K,rt as L,nt as M,C as N,Z as O,F as P,Xe as Q,Ke as R,J as S,K as a,He as b,Be as c,ze as d,Ye as e,xe as f,q as g,Ce as h,V as i,st as j,Ne as k,Ge as l,Ve as m,ee as n,te as o,D as p,$e as q,we as r,X as s,We as t,_e as u,Qe as v,ce as w,Ie as x,be as y,Je as z};