@abtnode/blocklet-services 1.17.8-beta-20260121-102603-f9d0176f → 1.17.8-beta-20260125-093329-64b43854

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 (247) hide show
  1. package/api/index.js +5 -0
  2. package/api/libs/connect/session.js +33 -39
  3. package/api/middlewares/launcher-login.js +1 -2
  4. package/api/routes/federated.js +1 -2
  5. package/api/routes/oauth/server.js +1 -2
  6. package/api/routes/user-session.js +0 -2
  7. package/api/routes/user.js +61 -41
  8. package/api/services/auth/connect/destroy-self.js +0 -2
  9. package/api/services/auth/connect/invite.js +0 -2
  10. package/api/services/auth/connect/issue-passport.js +0 -2
  11. package/api/services/auth/connect/receive-transfer-app-owner.js +0 -2
  12. package/api/services/auth/connect/verify-destroy.js +0 -2
  13. package/api/services/auth/connect/verify-elevated.js +0 -2
  14. package/api/services/auth/session.js +1 -36
  15. package/api/util/user-util.js +1 -2
  16. package/dist/assets/{AdapterDayjs-QqQc9YbA.js → AdapterDayjs-B5owpIH3.js} +1 -1
  17. package/dist/assets/{Google-PffSpBc2.js → Google-efeywUOs.js} +1 -1
  18. package/dist/assets/{access-control-B6JglGtO.js → access-control-BzsCJj-F.js} +1 -1
  19. package/dist/assets/{actions-DydkTgA0.js → actions-DbuL4r3Z.js} +1 -1
  20. package/dist/assets/{actions-Do5Z9cxZ.js → actions-Dm98-Dap.js} +2 -2
  21. package/dist/assets/{add-component-core-CLOpD7CB.js → add-component-core-BKVGCdxY.js} +7 -7
  22. package/dist/assets/add-resource-Cxa0mbrd.js +1 -0
  23. package/dist/assets/{addon-CrVdMlFe.js → addon-B1KwZDQ5.js} +1 -1
  24. package/dist/assets/advanced-B62UUhxe.js +14 -0
  25. package/dist/assets/{aigne-CeD5Xo7t.js → aigne-jjaGOQQ7.js} +1 -1
  26. package/dist/assets/{appearance-BJuIABu8.js → appearance-_ZB7EroL.js} +1 -1
  27. package/dist/assets/{ar-xXK-6slW.js → ar-BJmSv7rn.js} +1 -1
  28. package/dist/assets/{audit-logs-DxVzMUJK.js → audit-logs-DF2wcdWX.js} +2 -2
  29. package/dist/assets/{authorize-BxQgoA5F.js → authorize-C6nOsMWm.js} +1 -1
  30. package/dist/assets/{base-chart-CQOyckBN.js → base-chart-D_u2nVGm.js} +1 -1
  31. package/dist/assets/{base32-CyUpiYTu.js → base32-D79Y2AcQ.js} +1 -1
  32. package/dist/assets/{bind-account-D5gBazop.js → bind-account-BIj9FA7d.js} +1 -1
  33. package/dist/assets/{branding-CDPvtKJm.js → branding-BEGHWROe.js} +1 -1
  34. package/dist/assets/{branding-CtbvPvdK.js → branding-C86_64it.js} +1 -1
  35. package/dist/assets/branding-Dqv4_zpD.js +1 -0
  36. package/dist/assets/{bundle-avatar-2ugE80w1.js → bundle-avatar-Cy8tSSSQ.js} +1 -1
  37. package/dist/assets/button-DMYwcDVh.js +1 -0
  38. package/dist/assets/{click-to-copy-CgakrWoh.js → click-to-copy-BCjXD9Nd.js} +1 -1
  39. package/dist/assets/{collapse-RMuUWnK3.js → collapse-CBrasNzu.js} +1 -1
  40. package/dist/assets/{complete-B_lyTPVv.js → complete-CCe1VfI6.js} +1 -1
  41. package/dist/assets/{component-pjnMydek.js → component-DLlaIYmq.js} +2 -2
  42. package/dist/assets/{config-CyDF6KG9.js → config-BccEmD3I.js} +2 -2
  43. package/dist/assets/{config-BcCR6bUQ.js → config-C0CmuuRP.js} +1 -1
  44. package/dist/assets/{config-BsWCoWa6.js → config-CsQBU86s.js} +1 -1
  45. package/dist/assets/{config-navigation-B36NPLt0.js → config-navigation-D46rq0IX.js} +2 -2
  46. package/dist/assets/{config-space-DUkjNtdL.js → config-space-DLjHQVCq.js} +1 -1
  47. package/dist/assets/{confirm-CoDiNrSj.js → confirm-ClxC2cDv.js} +1 -1
  48. package/dist/assets/{connect-ULEL84iL.js → connect-9CgvkPOq.js} +1 -1
  49. package/dist/assets/{connect-SOuN9k8I.js → connect-C1q4hvQ3.js} +1 -1
  50. package/dist/assets/connect-DXjJ46DL.js +5 -0
  51. package/dist/assets/{connect-to-DnBUF-KE.js → connect-to-CbgQNAwh.js} +1 -1
  52. package/dist/assets/{content-layout-Dlmn5DW6.js → content-layout-BH_g_OCf.js} +1 -1
  53. package/dist/assets/{create-passport-svg-BSRyjG0k.js → create-passport-svg-Ct68e5tm.js} +1 -1
  54. package/dist/assets/{createClass-DKvdNmc_.js → createClass-CeMEAEuP.js} +1 -1
  55. package/dist/assets/{dashboard-CkDdshHQ.js → dashboard-y1fk-IQM.js} +2 -2
  56. package/dist/assets/{de-CzlQlDUl.js → de-B2IoQCYX.js} +1 -1
  57. package/dist/assets/{delete-confirm-Cq9MJasT.js → delete-confirm-CxRbnJU_.js} +1 -1
  58. package/dist/assets/{did-address-CtvTDc_I.js → did-address-BhAIkFPZ.js} +1 -1
  59. package/dist/assets/{domain-BOIdkJ_V.js → domain-CMJp7emz.js} +1 -1
  60. package/dist/assets/{domain-action-card-DuiLZ6sE.js → domain-action-card-CKlATj2V.js} +2 -2
  61. package/dist/assets/domains-CQs-XM9-.js +1 -0
  62. package/dist/assets/{email-DN8lH7fV.js → email-CYR31d5d.js} +2 -2
  63. package/dist/assets/{empty-spinner-DB1GKIOS.js → empty-spinner-DzVQ0tC1.js} +1 -1
  64. package/dist/assets/engine-ByRLynLu.js +1 -0
  65. package/dist/assets/{es-BpsyeJfJ.js → es-nlHqTKrO.js} +1 -1
  66. package/dist/assets/{exchange-passport-BvS_8Ud6.js → exchange-passport-BAD6oRbd.js} +1 -1
  67. package/dist/assets/{fallback-CuXkR699.js → fallback-CJFJeDKq.js} +1 -1
  68. package/dist/assets/{form-text-input-BT3t62-a.js → form-text-input-Dq_8KU_Y.js} +2 -2
  69. package/dist/assets/{form-wrapper-kWYD3nZz.js → form-wrapper-YOmD-sDI.js} +1 -1
  70. package/dist/assets/{form-CZjONW3r.js → form-zHvITlPG.js} +1 -1
  71. package/dist/assets/{fr-BawgvFA1.js → fr-LrrW00cI.js} +1 -1
  72. package/dist/assets/{fuel-dijAR437.js → fuel-CU-CpANh.js} +1 -1
  73. package/dist/assets/{gen-access-key-DaJCt-T5.js → gen-access-key-Fb9M1v-f.js} +1 -1
  74. package/dist/assets/{gen-simple-access-key-DLZy8UKi.js → gen-simple-access-key-BgYT9wM-.js} +1 -1
  75. package/dist/assets/get-safe-url-CCXmZ6Ty.js +1 -0
  76. package/dist/assets/hi-DxZE2HUh.js +5 -0
  77. package/dist/assets/{home-ChU7yi5l.js → home-Cy8jLKNF.js} +1 -1
  78. package/dist/assets/{id-_HQ0of3E.js → id-C3U8Kyb0.js} +1 -1
  79. package/dist/assets/{iframe-CYVXxx1r.js → iframe-CZ9tjsFz.js} +1 -1
  80. package/dist/assets/{index-C3UXSk-k.js → index-B-yh2KQb.js} +1 -1
  81. package/dist/assets/{index-DKeuwD_Y.js → index-B2LgdSh1.js} +15 -15
  82. package/dist/assets/{index-DswHt4-F.js → index-BJ69cdwn.js} +2 -2
  83. package/dist/assets/index-BJCzMYyG.js +832 -0
  84. package/dist/assets/{index-DF1j89BT.js → index-BZxTtTlP.js} +1 -1
  85. package/dist/assets/{index-Boc2cNQ7.js → index-Bg0Lw3eZ.js} +7 -7
  86. package/dist/assets/{index-D8oCzSQW.js → index-Bij9abGY.js} +2 -2
  87. package/dist/assets/{index-CD7hq5dy.js → index-BkgA3JrZ.js} +2 -2
  88. package/dist/assets/{index-Ci7zZ36D.js → index-BqISx1lI.js} +1 -1
  89. package/dist/assets/index-BsIQdVmB.js +29 -0
  90. package/dist/assets/{index-D7Er4cge.js → index-BtHiIOEI.js} +1 -1
  91. package/dist/assets/index-BtxDkXoY.js +7 -0
  92. package/dist/assets/{index-Dvc-Bpkc.js → index-CKgbiYHC.js} +2 -2
  93. package/dist/assets/{index-NHiSMvgy.js → index-CQz-yW1Q.js} +4 -4
  94. package/dist/assets/{index-Cax1AxL9.js → index-CSdd2W7t.js} +1 -1
  95. package/dist/assets/{index-CVuESID5.js → index-CYam9iu7.js} +3 -3
  96. package/dist/assets/{index-s8xAfo-W.js → index-CZc0agHR.js} +1 -1
  97. package/dist/assets/index-Cb9H09Dz.js +1 -0
  98. package/dist/assets/{index-B5VPb4FA.js → index-CtCzpHpi.js} +1 -1
  99. package/dist/assets/{index-iOa1BVMr.js → index-D0VFBmtN.js} +5 -5
  100. package/dist/assets/{index-CNlJloMN.js → index-D1HHdOwz.js} +2 -2
  101. package/dist/assets/{index-B9FojAjj.js → index-DDpk_EEp.js} +1 -1
  102. package/dist/assets/{index-B4A3W4qJ.js → index-DPbBn0Vu.js} +1 -1
  103. package/dist/assets/{index-C2O2gJSR.js → index-DbbtJMIS.js} +1 -1
  104. package/dist/assets/index-DgwyiIiW.js +1 -0
  105. package/dist/assets/{index-BVTsYhIX.js → index-Dh38UJiv.js} +1 -1
  106. package/dist/assets/{index-Zxy2t-7f.js → index-DvtkahBB.js} +1 -1
  107. package/dist/assets/{index-BDSBuO5S.js → index-Dw9kO-TK.js} +2 -2
  108. package/dist/assets/{index-Dn9eNAe6.js → index-E0k6Os1B.js} +1 -1
  109. package/dist/assets/{index-5Sys1Zsb.js → index-L6md5GCk.js} +2 -2
  110. package/dist/assets/{index-5RRpshJe.js → index-VTJ4vv2F.js} +7 -7
  111. package/dist/assets/{index-CZ-qZTKi.js → index-WY8_4PO1.js} +1 -1
  112. package/dist/assets/{index-uUS1eXYF.js → index-lGLHoHAP.js} +1 -1
  113. package/dist/assets/{index-WzGP4BGm.js → index-rh1DYsh2.js} +3 -3
  114. package/dist/assets/{index-B9YNNXOw.js → index-u8Hqob_G.js} +1 -1
  115. package/dist/assets/{index-C6vJzTmT.js → index-vQWAt26Z.js} +2 -2
  116. package/dist/assets/{info-outline-rounded-DovRYvXo.js → info-outline-rounded-CTki6xsp.js} +1 -1
  117. package/dist/assets/{invitation-DAWt0g1f.js → invitation-CrLJgh5y.js} +6 -6
  118. package/dist/assets/{invitations-B18y415k.js → invitations-Cs7LYbh9.js} +1 -1
  119. package/dist/assets/invite-B0wKu-K4.js +1 -0
  120. package/dist/assets/{issue-passport-Dd43b9Se.js → issue-passport-B1azomgq.js} +1 -1
  121. package/dist/assets/item-CcfCB60B.js +1 -0
  122. package/dist/assets/{ja-LErFaY57.js → ja-Cv-fddix.js} +1 -1
  123. package/dist/assets/{ko-D4ub28je.js → ko-Cy3G6t2o.js} +1 -1
  124. package/dist/assets/{landing-page-CZoTtLnc.js → landing-page-3yvA3dHp.js} +1 -1
  125. package/dist/assets/{launch-result-message-DJqF-slD.js → launch-result-message-CYcW9uFA.js} +1 -1
  126. package/dist/assets/{layout-U4Obhm5w.js → layout-DPEeowZp.js} +1 -1
  127. package/dist/assets/{list-D-9AeBju.js → list-BtmehYr0.js} +2 -2
  128. package/dist/assets/{list-header-BEZSwSji.js → list-header-DqG9VFur.js} +1 -1
  129. package/dist/assets/{list-BD3g0v2E.js → list-qef9ITY3.js} +1 -1
  130. package/dist/assets/localization-VGnaiTRr.js +1 -0
  131. package/dist/assets/{log-BWxaKOTA.js → log-BDLuou50.js} +1 -1
  132. package/dist/assets/logger-Cn2_Ur4V.js +1 -0
  133. package/dist/assets/{login-BWZaWrBW.js → login-BTzBeYdR.js} +1 -1
  134. package/dist/assets/{login-method-item-aEisznLn.js → login-method-item-T1v3TnPG.js} +1 -1
  135. package/dist/assets/{login-oauth-callback-CB-osgdG.js → login-oauth-callback-f1uXdv_Y.js} +1 -1
  136. package/dist/assets/{logo-uploader-DOPycN59.js → logo-uploader-YNwnzUQw.js} +1 -1
  137. package/dist/assets/{lost-passport-H1fCptmJ.js → lost-passport-Cv4fSebj.js} +2 -2
  138. package/dist/assets/metadata-BeJTujvj.js +55 -0
  139. package/dist/assets/{nav-menu-D7Sf6VZj.js → nav-menu-CefEor9d.js} +1 -1
  140. package/dist/assets/{open-window-By98Pw1o.js → open-window-Cq_Eb4d0.js} +1 -1
  141. package/dist/assets/over-due-invoice-payment-Cx9nVkCY.js +1 -0
  142. package/dist/assets/{overview-DEkktSML.js → overview-UWHPi3tV.js} +2 -2
  143. package/dist/assets/{page-header-qdK3sAJh.js → page-header-DayahqMa.js} +1 -1
  144. package/dist/assets/passport-D7GEY4wO.js +1 -0
  145. package/dist/assets/{passport-item-CIv8Q8Ng.js → passport-item-CpICtT-w.js} +1 -1
  146. package/dist/assets/{permission-B22pCnUb.js → permission-ozcooui7.js} +1 -1
  147. package/dist/assets/preferences-RHaCYv9t.js +1 -0
  148. package/dist/assets/profile-embed-BLPUgZl6.js +1 -0
  149. package/dist/assets/{provider-icon-DbnLu_85.js → provider-icon-Blmpf_9p.js} +1 -1
  150. package/dist/assets/pt-CLIZ5rGV.js +5 -0
  151. package/dist/assets/publish-resource-Cn5CEQma.js +1 -0
  152. package/dist/assets/{react-beautiful-dnd.esm-D7zp9L4b.js → react-beautiful-dnd.esm-L71UpeRK.js} +1 -1
  153. package/dist/assets/{react-stripe.esm-B-FTN8ep.js → react-stripe.esm-B1zA7yon.js} +1 -1
  154. package/dist/assets/{required-DnQpCGsD.js → required-jUJP5eu8.js} +1 -1
  155. package/dist/assets/ru-DoXNa8xl.js +5 -0
  156. package/dist/assets/{runtime-MjoLSEeg.js → runtime-CGShJ0Po.js} +1 -1
  157. package/dist/assets/sdk-C05lZFmW.js +1 -0
  158. package/dist/assets/{section-CZylgxjz.js → section-BHNJgwmP.js} +1 -1
  159. package/dist/assets/{security-BtD9TnGk.js → security-_Iru3mSY.js} +1 -1
  160. package/dist/assets/{session-UEzmH-IS.js → session-DpYXqKUu.js} +1 -1
  161. package/dist/assets/{setup-Bts0WUxD.js → setup-DCnaHhf3.js} +1 -1
  162. package/dist/assets/{shorten-label-CuBHsWUR.js → shorten-label-NmLkBKIj.js} +1 -1
  163. package/dist/assets/{simple-select-C6gRUbia.js → simple-select--uh08-vW.js} +1 -1
  164. package/dist/assets/{spaces-DtMVp8Fn.js → spaces-gCrHfJB8.js} +1 -1
  165. package/dist/assets/{start-Dabk9waT.js → start-S0ZFYLEE.js} +1 -1
  166. package/dist/assets/{starting-progress-Ds2lnMge.js → starting-progress-BSgBADJS.js} +1 -1
  167. package/dist/assets/{status-CicPnfGJ.js → status-DqZ0B8Xa.js} +1 -1
  168. package/dist/assets/{step-actions-CnJCnymc.js → step-actions-DxJMBPwi.js} +1 -1
  169. package/dist/assets/{studio-D7qZJqJ7.js → studio-B2SgpXxn.js} +1 -1
  170. package/dist/assets/{switch-qh9YpwMi.js → switch-D9wb-oPu.js} +1 -1
  171. package/dist/assets/{switch-control-C5gj6NIz.js → switch-control-Dl1BCyFd.js} +1 -1
  172. package/dist/assets/{table-tips-BSl1oNMX.js → table-tips-C5NrUDu8.js} +1 -1
  173. package/dist/assets/{team-Djzt5BWc.js → team-DXPe7dCA.js} +1 -1
  174. package/dist/assets/th-DmzEcJam.js +5 -0
  175. package/dist/assets/theme-mode-toggle-BYQvzsDR.js +1 -0
  176. package/dist/assets/{traffic-BtuX1qMz.js → traffic-BandB_6R.js} +1 -1
  177. package/dist/assets/{transfer-UdrQjD9F.js → transfer-Dky9H1bl.js} +1 -1
  178. package/dist/assets/{unsubscribe-Bj2S8OkH.js → unsubscribe-D0la_6Ib.js} +1 -1
  179. package/dist/assets/{use-app-logo-DyU2iSXF.js → use-app-logo-0G6x82Xn.js} +1 -1
  180. package/dist/assets/{use-blocklet-logo-ys-h-CV_.js → use-blocklet-logo-IV_8xnB2.js} +1 -1
  181. package/dist/assets/{use-mobile-DFkQ5N0b.js → use-mobile-CEr7zhO3.js} +1 -1
  182. package/dist/assets/{use-mobile-DwGMuJlg.js → use-mobile-DAngW3li.js} +1 -1
  183. package/dist/assets/{use-mobile-CyUZDIaX.js → use-mobile-kXWiSSQD.js} +1 -1
  184. package/dist/assets/{use-server-logo-KZn9RrZd.js → use-server-logo-BVKQ1t0s.js} +1 -1
  185. package/dist/assets/{use-window-close-CT9brY7I.js → use-window-close-C-WcChaL.js} +1 -1
  186. package/dist/assets/{useAsync-WuOY1bFS.js → useAsync-DRrTtbU_.js} +1 -1
  187. package/dist/assets/{useAsync-DbIyJl2v.js → useAsync-D_y3bEgl.js} +1 -1
  188. package/dist/assets/{useAsyncRetry-cAGDIsw4.js → useAsyncRetry-BZ4R17gr.js} +2 -2
  189. package/dist/assets/useLocalStorage-C5E7FrUa.js +1 -0
  190. package/dist/assets/{user-center-DLgnUI1s.js → user-center-D-UOqGpV.js} +5 -5
  191. package/dist/assets/{user-follower-BbQfOSyh.js → user-follower-_9B1O2CU.js} +4 -4
  192. package/dist/assets/{util-tg9hB6_c.js → util-Bf1lWzn8.js} +1 -1
  193. package/dist/assets/{util-BCpVIbwL.js → util-Dn9RqFJI.js} +1 -1
  194. package/dist/assets/utils-eOkzHJzR.js +1 -0
  195. package/dist/assets/{vendor-arcblock-Xw2zMy0D.js → vendor-arcblock-B6JCofz3.js} +1 -1
  196. package/dist/assets/vendor-hooks-Bt9Vv36g.js +1 -0
  197. package/dist/assets/{vendor-mui-core-CV-FnYH_.js → vendor-mui-core-D6nniiQs.js} +2 -2
  198. package/dist/assets/{vendor-mui-x-DwN6dcQH.js → vendor-mui-x-Ds-5Y7YM.js} +1 -1
  199. package/dist/assets/{vendor-ux-BGqHwkOM.js → vendor-ux-hzekFYg2.js} +123 -123
  200. package/dist/assets/vi-6MG7Pp6O.js +5 -0
  201. package/dist/assets/{wait-connect-BED_xYYA.js → wait-connect-DmtX5SsS.js} +1 -1
  202. package/dist/assets/wallet-hidden-topbar-OBN14KiV.js +68 -0
  203. package/dist/assets/{wizard-C6DvqdjM.js → wizard-Q2Vm8Y9G.js} +1 -1
  204. package/dist/assets/{wizard-components-1u7l8zuE.js → wizard-components-CON7Dump.js} +1 -1
  205. package/dist/assets/wrap-locale-BGMozDAq.js +1 -0
  206. package/dist/assets/{zh-DK-_Edsp.js → zh-B9y8LJ3-.js} +1 -1
  207. package/dist/assets/zh-Dfkd9CXx.js +1 -0
  208. package/dist/assets/{zh-tw-Us2SjBNr.js → zh-tw-CbtwifV_.js} +1 -1
  209. package/dist/index.html +1 -1
  210. package/package.json +44 -44
  211. package/dist/assets/add-resource-ipDE-D6W.js +0 -1
  212. package/dist/assets/advanced-C3qjZMWH.js +0 -14
  213. package/dist/assets/branding-Dv3-0Q39.js +0 -1
  214. package/dist/assets/button-d8gvZuHP.js +0 -1
  215. package/dist/assets/connect--GxmDNr3.js +0 -5
  216. package/dist/assets/domains-C5GLc_A-.js +0 -1
  217. package/dist/assets/engine-Crd5Z3lP.js +0 -1
  218. package/dist/assets/get-safe-url-czY77v8f.js +0 -1
  219. package/dist/assets/hi-ClGNxnSL.js +0 -5
  220. package/dist/assets/index-B4EOqUNT.js +0 -1
  221. package/dist/assets/index-BOoRVhLj.js +0 -29
  222. package/dist/assets/index-DGZbt7_m.js +0 -1
  223. package/dist/assets/index-tRQj1y79.js +0 -6
  224. package/dist/assets/index-yoaLEniz.js +0 -832
  225. package/dist/assets/invite-DNSyQ-zG.js +0 -1
  226. package/dist/assets/item-Cr70mAvV.js +0 -1
  227. package/dist/assets/joi-browser.min-CUdv8seQ.js +0 -1
  228. package/dist/assets/joi-browser.min-eEVeW7LC.js +0 -1
  229. package/dist/assets/localization-ByZI4mSj.js +0 -1
  230. package/dist/assets/logger-B962sOsB.js +0 -1
  231. package/dist/assets/metadata-DftwYKum.js +0 -55
  232. package/dist/assets/over-due-invoice-payment-DeFNS-Us.js +0 -1
  233. package/dist/assets/passport-BxMVp3TG.js +0 -1
  234. package/dist/assets/preferences-BY_s4EkY.js +0 -1
  235. package/dist/assets/profile-embed-DUKyv_oX.js +0 -1
  236. package/dist/assets/pt-BU7pvSz6.js +0 -5
  237. package/dist/assets/publish-resource-Be5Gs98x.js +0 -1
  238. package/dist/assets/ru-CtjyU-qF.js +0 -5
  239. package/dist/assets/sdk-Dy-R7tw7.js +0 -1
  240. package/dist/assets/th-C0DkNnMF.js +0 -5
  241. package/dist/assets/theme-mode-toggle-Jvn37gNg.js +0 -1
  242. package/dist/assets/useLocalStorage-D8kgfBAn.js +0 -1
  243. package/dist/assets/vendor-hooks-164oA5kM.js +0 -1
  244. package/dist/assets/vi-nXB9zTif.js +0 -5
  245. package/dist/assets/wallet-hidden-topbar-dnCLvPpW.js +0 -68
  246. package/dist/assets/wrap-locale-C2lxMNe7.js +0 -1
  247. package/dist/assets/zh-QEwKQjt8.js +0 -1
@@ -1,4 +1,4 @@
1
- import{j as a,al as k,aS as q,G as J,L as N,aV as C1,R as U,ak as k1,aW as $1,X as p,aT as M,as as j,ao as M1,an as j1,T as B,a7 as F,ad as Z1,ae as S1,aX as V1,s as Z}from"./vendor-mui-core-CV-FnYH_.js";import{r as b,g as K}from"./vendor-react-DX7tU9aY.js";import{i as E1,a as H1}from"./vendor-hooks-164oA5kM.js";import{l as S,t as D1,H as U1,g as B1,a as F1,M as z1,m as O1}from"./vendor-ux-BGqHwkOM.js";import{l as N1}from"./vendor-utils-BbcnEeJI.js";function T1({children:e=null,relative:t="screen"}){let i={};return t==="parent"&&(i={width:"100%",height:"100%"}),a.jsx(A1,{style:i,children:e})}const A1=S("div")`
1
+ import{j as a,al as k,aS as q,G as J,L as N,aV as C1,R as U,ak as k1,aW as $1,X as p,aT as M,as as j,ao as M1,an as j1,T as B,a7 as F,ad as Z1,ae as S1,aX as V1,s as Z}from"./vendor-mui-core-D6nniiQs.js";import{r as b,g as K}from"./vendor-react-DX7tU9aY.js";import{i as E1,a as H1}from"./vendor-hooks-Bt9Vv36g.js";import{l as S,t as D1,H as U1,g as B1,a as F1,M as z1,m as O1}from"./vendor-ux-hzekFYg2.js";import{l as N1}from"./vendor-utils-BbcnEeJI.js";function T1({children:e=null,relative:t="screen"}){let i={};return t==="parent"&&(i={width:"100%",height:"100%"}),a.jsx(A1,{style:i,children:e})}const A1=S("div")`
2
2
  flex: 1;
3
3
  width: 100vw;
4
4
  height: 100vh;
@@ -0,0 +1 @@
1
+ import{g as Ce,r as m,e as Pt}from"./vendor-react-DX7tU9aY.js";import{r as jt,d as ke,t as Ve,i as It,g as he}from"./vendor-utils-BbcnEeJI.js";var Lt=jt();const Ft=Ce(Lt);var Bt=function(e){return function(t,r){var n=m.useRef(!1);e(function(){return function(){n.current=!1}},[]),e(function(){if(!n.current)n.current=!0;else return t()},r)}},we=function(e,t){return we=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},we(e,t)};function Ge(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");we(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var M=function(){return M=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},M.apply(this,arguments)};function Q(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function $e(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var u=e.length-1;u>=0;u--)(a=e[u])&&(o=(i<3?a(o):i>3?a(t,r,o):a(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o}function Ke(e,t){return function(r,n){t(r,n,e)}}function Ye(e,t,r,n,i,o){function a(C){if(C!==void 0&&typeof C!="function")throw new TypeError("Function expected");return C}for(var u=n.kind,s=u==="getter"?"get":u==="setter"?"set":"value",f=!t&&e?n.static?e:e.prototype:null,h=t||(f?Object.getOwnPropertyDescriptor(f,n.name):{}),v,g=!1,p=r.length-1;p>=0;p--){var y={};for(var _ in n)y[_]=_==="access"?{}:n[_];for(var _ in n.access)y.access[_]=n.access[_];y.addInitializer=function(C){if(g)throw new TypeError("Cannot add initializers after decoration has completed");o.push(a(C||null))};var E=(0,r[p])(u==="accessor"?{get:h.get,set:h.set}:h[s],y);if(u==="accessor"){if(E===void 0)continue;if(E===null||typeof E!="object")throw new TypeError("Object expected");(v=a(E.get))&&(h.get=v),(v=a(E.set))&&(h.set=v),(v=a(E.init))&&i.unshift(v)}else(v=a(E))&&(u==="field"?i.unshift(v):h[s]=v)}f&&Object.defineProperty(f,n.name,h),g=!0}function Je(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0}function Xe(e){return typeof e=="symbol"?e:"".concat(e)}function Qe(e,t,r){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function Ze(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function G(e,t,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function u(h){try{f(n.next(h))}catch(v){a(v)}}function s(h){try{f(n.throw(h))}catch(v){a(v)}}function f(h){h.done?o(h.value):i(h.value).then(u,s)}f((n=n.apply(e,t||[])).next())})}function $(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=u(0),a.throw=u(1),a.return=u(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(f){return function(h){return s([f,h])}}function s(f){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,f[0]&&(r=0)),r;)try{if(n=1,i&&(o=f[0]&2?i.return:f[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,f[1])).done)return o;switch(i=0,o&&(f=[f[0]&2,o.value]),f[0]){case 0:case 1:o=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,i=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!o||f[1]>o[0]&&f[1]<o[3])){r.label=f[1];break}if(f[0]===6&&r.label<o[1]){r.label=o[1],o=f;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(f);break}o[2]&&r.ops.pop(),r.trys.pop();continue}f=t.call(e,r)}catch(h){f=[6,h],i=0}finally{n=o=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}var ce=Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]});function et(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&ce(t,e,r)}function W(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function O(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(u){a={error:u}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o}function tt(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(O(arguments[t]));return e}function ae(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var o=arguments[t],a=0,u=o.length;a<u;a++,i++)n[i]=o[a];return n}function D(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function K(e){return this instanceof K?(this.v=e,this):new K(e)}function rt(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",a),i[Symbol.asyncIterator]=function(){return this},i;function a(p){return function(y){return Promise.resolve(y).then(p,v)}}function u(p,y){n[p]&&(i[p]=function(_){return new Promise(function(E,C){o.push([p,_,E,C])>1||s(p,_)})},y&&(i[p]=y(i[p])))}function s(p,y){try{f(n[p](y))}catch(_){g(o[0][3],_)}}function f(p){p.value instanceof K?Promise.resolve(p.value.v).then(h,v):g(o[0][2],p)}function h(p){s("next",p)}function v(p){s("throw",p)}function g(p,y){p(y),o.shift(),o.length&&s(o[0][0],o[0][1])}}function nt(e){var t,r;return t={},n("next"),n("throw",function(i){throw i}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(i,o){t[i]=e[i]?function(a){return(r=!r)?{value:K(e[i](a)),done:!1}:o?o(a):a}:o}}function it(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof W=="function"?W(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=e[o]&&function(a){return new Promise(function(u,s){a=e[o](a),i(u,s,a.done,a.value)})}}function i(o,a,u,s){Promise.resolve(s).then(function(f){o({value:f,done:u})},a)}}function ot(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var zt=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t},_e=function(e){return _e=Object.getOwnPropertyNames||function(t){var r=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[r.length]=n);return r},_e(e)};function at(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=_e(e),n=0;n<r.length;n++)r[n]!=="default"&&ce(t,e,r[n]);return zt(t,e),t}function ut(e){return e&&e.__esModule?e:{default:e}}function st(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function ct(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r}function ft(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function lt(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n,i;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(i=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");i&&(n=function(){try{i.call(this)}catch(o){return Promise.reject(o)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var Ht=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function dt(e){function t(o){e.error=e.hasError?new Ht(o,e.error,"An error was suppressed during disposal."):o,e.hasError=!0}var r,n=0;function i(){for(;r=e.stack.pop();)try{if(!r.async&&n===1)return n=0,e.stack.push(r),Promise.resolve().then(i);if(r.dispose){var o=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(o).then(i,function(a){return t(a),i()})}else n|=1}catch(a){t(a)}if(n===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return i()}function vt(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,n,i,o,a){return n?t?".jsx":".js":i&&(!o||!a)?r:i+o+"."+a.toLowerCase()+"js"}):e}const Wt={__extends:Ge,__assign:M,__rest:Q,__decorate:$e,__param:Ke,__esDecorate:Ye,__runInitializers:Je,__propKey:Xe,__setFunctionName:Qe,__metadata:Ze,__awaiter:G,__generator:$,__createBinding:ce,__exportStar:et,__values:W,__read:O,__spread:tt,__spreadArrays:ae,__spreadArray:D,__await:K,__asyncGenerator:rt,__asyncDelegator:nt,__asyncValues:it,__makeTemplateObject:ot,__importStar:at,__importDefault:ut,__classPrivateFieldGet:st,__classPrivateFieldSet:ct,__classPrivateFieldIn:ft,__addDisposableResource:lt,__disposeResources:dt,__rewriteRelativeImportExtension:vt},Nt=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:lt,get __assign(){return M},__asyncDelegator:nt,__asyncGenerator:rt,__asyncValues:it,__await:K,__awaiter:G,__classPrivateFieldGet:st,__classPrivateFieldIn:ft,__classPrivateFieldSet:ct,__createBinding:ce,__decorate:$e,__disposeResources:dt,__esDecorate:Ye,__exportStar:et,__extends:Ge,__generator:$,__importDefault:ut,__importStar:at,__makeTemplateObject:ot,__metadata:Ze,__param:Ke,__propKey:Xe,__read:O,__rest:Q,__rewriteRelativeImportExtension:vt,__runInitializers:Je,__setFunctionName:Qe,__spread:tt,__spreadArray:D,__spreadArrays:ae,__values:W,default:Wt},Symbol.toStringTag,{value:"Module"}));var U=function(e){return typeof e=="function"},qt=function(e){return typeof e=="string"},fe=function(e){return typeof e=="number"},Ut=function(e){return typeof e>"u"},L=function(e){var t=m.useRef(e);t.current=m.useMemo(function(){return e},[e]);var r=m.useRef(void 0);return r.current||(r.current=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return t.current.apply(this,n)}),r.current};const X=Bt(m.useEffect);var ht=function(e,t){var r=t.manual,n=t.ready,i=n===void 0?!0:n,o=t.defaultParams,a=o===void 0?[]:o,u=t.refreshDeps,s=u===void 0?[]:u,f=t.refreshDepsAction,h=m.useRef(!1);return h.current=!1,X(function(){!r&&i&&(h.current=!0,e.run.apply(e,D([],O(a),!1)))},[i]),X(function(){h.current||r||(h.current=!0,f?f():e.refresh())},D([],O(s),!1)),{onBefore:function(){if(!i)return{stopNow:!0}}}};ht.onInit=function(e){var t=e.ready,r=t===void 0?!0:t,n=e.manual;return{loading:!n&&r}};function Ee(e,t){if(e===t)return!0;for(var r=0;r<e.length;r++)if(!Object.is(e[r],t[r]))return!1;return!0}var De=function(e,t){var r=m.useRef({deps:t,obj:void 0,initialized:!1}).current;return(r.initialized===!1||!Ee(r.deps,t))&&(r.deps=t,r.obj=e(),r.initialized=!0),r.obj};function B(e){var t=m.useRef(e);return t.current=e,t}var k=function(e){var t=B(e);m.useEffect(function(){return function(){t.current()}},[])},re=new Map,kt=function(e,t,r){var n=re.get(e);n?.timer&&clearTimeout(n.timer);var i=void 0;t>-1&&(i=setTimeout(function(){re.delete(e)},t)),re.set(e,M(M({},r),{timer:i}))},Vt=function(e){return re.get(e)},ne=new Map,Gt=function(e){return ne.get(e)},$t=function(e,t){ne.set(e,t),t.then(function(r){return ne.delete(e),r}).catch(function(){ne.delete(e)})},q={},Kt=function(e,t){q[e]&&q[e].forEach(function(r){return r(t)})},pe=function(e,t){return q[e]||(q[e]=[]),q[e].push(t),function(){var n=q[e].indexOf(t);q[e].splice(n,1)}},Yt=function(e,t){var r=t.cacheKey,n=t.cacheTime,i=n===void 0?300*1e3:n,o=t.staleTime,a=o===void 0?0:o,u=t.setCache,s=t.getCache,f=m.useRef(void 0),h=m.useRef(void 0),v=function(p,y){u?u(y):kt(p,i,y),Kt(p,y.data)},g=function(p,y){return y===void 0&&(y=[]),s?s(y):Vt(p)};return De(function(){if(r){var p=g(r);p&&Object.hasOwnProperty.call(p,"data")&&(e.state.data=p.data,e.state.params=p.params,(a===-1||Date.now()-p.time<=a)&&(e.state.loading=!1)),f.current=pe(r,function(y){e.setState({data:y})})}},[]),k(function(){var p;(p=f.current)===null||p===void 0||p.call(f)}),r?{onBefore:function(p){var y=g(r,p);return!y||!Object.hasOwnProperty.call(y,"data")?{}:a===-1||Date.now()-y.time<=a?{loading:!1,data:y?.data,error:void 0,returnNow:!0}:{data:y?.data,error:void 0}},onRequest:function(p,y){var _=Gt(r);return _&&_!==h.current?{servicePromise:_}:(_=p.apply(void 0,D([],O(y),!1)),h.current=_,$t(r,_),{servicePromise:_})},onSuccess:function(p,y){var _;r&&((_=f.current)===null||_===void 0||_.call(f),v(r,{data:p,params:y,time:Date.now()}),f.current=pe(r,function(E){e.setState({data:E})}))},onMutate:function(p){var y;r&&((y=f.current)===null||y===void 0||y.call(f),v(r,{data:p,params:e.state.params,time:Date.now()}),f.current=pe(r,function(_){e.setState({data:_})}))}}:{}},Jt=function(e,t){var r=t.debounceWait,n=t.debounceLeading,i=t.debounceTrailing,o=t.debounceMaxWait,a=m.useRef(void 0),u=m.useMemo(function(){var s={};return n!==void 0&&(s.leading=n),i!==void 0&&(s.trailing=i),o!==void 0&&(s.maxWait=o),s},[n,i,o]);return m.useEffect(function(){if(r){var s=e.runAsync.bind(e);return a.current=ke(function(f){f()},r,u),e.runAsync=function(){for(var f=[],h=0;h<arguments.length;h++)f[h]=arguments[h];return new Promise(function(v,g){var p;(p=a.current)===null||p===void 0||p.call(a,function(){s.apply(void 0,D([],O(f),!1)).then(v).catch(g)})})},function(){var f;(f=a.current)===null||f===void 0||f.cancel(),e.runAsync=s}}},[r,u]),r?{onCancel:function(){var s;(s=a.current)===null||s===void 0||s.cancel()}}:{}},Xt=function(e,t){var r=t.loadingDelay,n=t.ready,i=m.useRef(void 0);if(!r)return{};var o=function(){i.current&&clearTimeout(i.current)};return{onBefore:function(){return o(),n!==!1&&(i.current=setTimeout(function(){e.setState({loading:!0})},r)),{loading:!1}},onFinally:function(){o()},onCancel:function(){o()}}},N=!!(typeof window<"u"&&window.document&&window.document.createElement);function Ae(){return N?document.visibilityState!=="hidden":!0}var ie=new Set;function Qt(e){return ie.add(e),function(){ie.has(e)&&ie.delete(e)}}if(N){var Zt=function(){Ae()&&ie.forEach(function(e){return e()})};window.addEventListener("visibilitychange",Zt,!1)}var er=function(e,t){var r=t.pollingInterval,n=t.pollingWhenHidden,i=n===void 0?!0:n,o=t.pollingErrorRetryCount,a=o===void 0?-1:o,u=m.useRef(void 0),s=m.useRef(void 0),f=m.useRef(0),h=function(){var v;u.current&&clearTimeout(u.current),(v=s.current)===null||v===void 0||v.call(s)};return X(function(){r||h()},[r]),r?{onBefore:function(){h()},onError:function(){f.current+=1},onSuccess:function(){f.current=0},onFinally:function(){a===-1||a!==-1&&f.current<=a?u.current=setTimeout(function(){!i&&!Ae()?s.current=Qt(function(){e.refresh()}):e.refresh()},r):f.current=0},onCancel:function(){h()}}:{}};function tr(e,t){var r=!1;return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];r||(r=!0,e.apply(void 0,D([],O(n),!1)),setTimeout(function(){r=!1},t))}}var rr=function(){return N&&typeof navigator.onLine<"u"?navigator.onLine:!0},oe=new Set;function nr(e){return oe.add(e),function(){oe.has(e)&&oe.delete(e)}}if(N){var Pe=function(){!Ae()||!rr()||oe.forEach(function(e){return e()})};window.addEventListener("visibilitychange",Pe,!1),window.addEventListener("focus",Pe,!1)}var ir=function(e,t){var r=t.refreshOnWindowFocus,n=t.focusTimespan,i=n===void 0?5e3:n,o=m.useRef(void 0),a=function(){var u;(u=o.current)===null||u===void 0||u.call(o)};return m.useEffect(function(){if(r){var u=tr(e.refresh.bind(e),i);o.current=nr(function(){u()})}return function(){a()}},[r,i]),k(function(){a()}),{}},or=function(e,t){var r=t.retryInterval,n=t.retryCount,i=m.useRef(void 0),o=m.useRef(0),a=m.useRef(!1);return n?{onBefore:function(){a.current||(o.current=0),a.current=!1,i.current&&clearTimeout(i.current)},onSuccess:function(){o.current=0},onError:function(){if(o.current+=1,n===-1||o.current<=n){var u=r??Math.min(1e3*Math.pow(2,o.current),3e4);i.current=setTimeout(function(){a.current=!0,e.refresh()},u)}else o.current=0},onCancel:function(){o.current=0,i.current&&clearTimeout(i.current)}}:{}},ar=function(e,t){var r=t.throttleWait,n=t.throttleLeading,i=t.throttleTrailing,o=m.useRef(void 0),a={};return n!==void 0&&(a.leading=n),i!==void 0&&(a.trailing=i),m.useEffect(function(){if(r){var u=e.runAsync.bind(e);return o.current=Ve(function(s){s()},r,a),e.runAsync=function(){for(var s=[],f=0;f<arguments.length;f++)s[f]=arguments[f];return new Promise(function(h,v){var g;(g=o.current)===null||g===void 0||g.call(o,function(){u.apply(void 0,D([],O(s),!1)).then(h).catch(v)})})},function(){var s;e.runAsync=u,(s=o.current)===null||s===void 0||s.cancel()}}},[r,n,i]),r?{onCancel:function(){var u;(u=o.current)===null||u===void 0||u.cancel()}}:{}},ur=function(e){m.useEffect(function(){var t=e?.();if(!(t&&typeof t=="object"&&typeof t.then=="function"))return t},[])},pt=function(){var e=O(m.useState({}),2),t=e[1];return m.useCallback(function(){return t({})},[])},sr=(function(){function e(t,r,n,i){i===void 0&&(i={}),this.serviceRef=t,this.options=r,this.subscribe=n,this.initState=i,this.pluginImpls=[],this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=M(M(M({},this.state),{loading:!r.manual}),i)}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=M(M({},this.state),t),this.subscribe()},e.prototype.runPluginHandler=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=this.pluginImpls.map(function(o){var a;return(a=o[t])===null||a===void 0?void 0:a.call.apply(a,D([o],O(r),!1))}).filter(Boolean);return Object.assign.apply(Object,D([{}],O(i),!1))},e.prototype.runAsync=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return G(this,void 0,void 0,function(){var n,i,o,a,u,s,f,h,v,g,p,y,_,E,C,R,c,l,d,b,w;return $(this,function(T){switch(T.label){case 0:if(this.count+=1,n=this.count,i=this.runPluginHandler("onBefore",t),o=i.stopNow,a=o===void 0?!1:o,u=i.returnNow,s=u===void 0?!1:u,f=Q(i,["stopNow","returnNow"]),a)return[2,new Promise(function(){})];if(this.setState(M({loading:!0,params:t},f)),s)return[2,Promise.resolve(f.data)];(_=(y=this.options).onBefore)===null||_===void 0||_.call(y,t),T.label=1;case 1:return T.trys.push([1,3,,4]),h=this.runPluginHandler("onRequest",this.serviceRef.current,t).servicePromise,h||(h=(p=this.serviceRef).current.apply(p,D([],O(t),!1))),[4,h];case 2:return v=T.sent(),n!==this.count?[2,new Promise(function(){})]:(this.setState({data:v,error:void 0,loading:!1}),(C=(E=this.options).onSuccess)===null||C===void 0||C.call(E,v,t),this.runPluginHandler("onSuccess",v,t),(c=(R=this.options).onFinally)===null||c===void 0||c.call(R,t,v,void 0),n===this.count&&this.runPluginHandler("onFinally",t,v,void 0),[2,v]);case 3:if(g=T.sent(),n!==this.count)return[2,new Promise(function(){})];throw this.setState({error:g,loading:!1}),(d=(l=this.options).onError)===null||d===void 0||d.call(l,g,t),this.runPluginHandler("onError",g,t),(w=(b=this.options).onFinally)===null||w===void 0||w.call(b,t,void 0,g),n===this.count&&this.runPluginHandler("onFinally",t,void 0,g),g;case 4:return[2]}})})},e.prototype.run=function(){for(var t=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];this.runAsync.apply(this,D([],O(r),!1)).catch(function(i){t.options.onError||console.error(i)})},e.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},e.prototype.refresh=function(){this.run.apply(this,D([],O(this.state.params||[]),!1))},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,D([],O(this.state.params||[]),!1))},e.prototype.mutate=function(t){var r=U(t)?t(this.state.data):t;this.runPluginHandler("onMutate",r),this.setState({data:r})},e})();function cr(e,t,r){t===void 0&&(t={}),r===void 0&&(r=[]);var n=t.manual,i=n===void 0?!1:n,o=t.ready,a=o===void 0?!0:o,u=Q(t,["manual","ready"]),s=M({manual:i,ready:a},u),f=B(e),h=pt(),v=De(function(){var g=r.map(function(p){var y;return(y=p?.onInit)===null||y===void 0?void 0:y.call(p,s)}).filter(Boolean);return new sr(f,s,h,Object.assign.apply(Object,D([{}],O(g),!1)))},[]);return v.options=s,v.pluginImpls=r.map(function(g){return g(v,s)}),ur(function(){if(!i&&a){var g=v.state.params||t.defaultParams||[];v.run.apply(v,D([],O(g),!1))}}),k(function(){v.cancel()}),{loading:v.state.loading,data:v.state.data,error:v.state.error,params:v.state.params||[],cancel:L(v.cancel.bind(v)),refresh:L(v.refresh.bind(v)),refreshAsync:L(v.refreshAsync.bind(v)),run:L(v.run.bind(v)),runAsync:L(v.runAsync.bind(v)),mutate:L(v.mutate.bind(v))}}function fr(e,t,r){return cr(e,t,D(D([],O([]),!1),[Jt,Xt,er,ir,ar,ht,Yt,or],!1))}function lr(e){return U(e[Symbol.asyncIterator])}function an(e,t){m.useEffect(function(){var r=e(),n=!1;function i(){return G(this,void 0,void 0,function(){var o;return $(this,function(a){switch(a.label){case 0:if(!lr(r))return[3,4];a.label=1;case 1:return[4,r.next()];case 2:return o=a.sent(),o.done||n?[3,3]:[3,1];case 3:return[3,6];case 4:return[4,r];case 5:a.sent(),a.label=6;case 6:return[2]}})})}return i(),function(){n=!0}},t)}function dr(e,t){var r=O(m.useState(e),2),n=r[0],i=r[1],o=m.useMemo(function(){var a=!e,u=function(){return i(function(v){return v===e?a:e})},s=function(v){return i(v)},f=function(){return i(e)},h=function(){return i(a)};return{toggle:u,set:s,setLeft:f,setRight:h}},[]);return[n,o]}function un(e){var t=O(dr(!1),2),r=t[0],n=t[1],i=n.toggle,o=n.set,a=m.useMemo(function(){var u=function(){return o(!0)},s=function(){return o(!1)};return{toggle:i,set:function(f){return o(!!f)},setTrue:u,setFalse:s}},[]);return[r,a]}function z(e,t){if(N){if(!e)return t;var r;return U(e)?r=e():"current"in e?r=e.current:r=e,r}}var mt=function(e){var t=function(r,n,i){var o=m.useRef(!1),a=m.useRef([]),u=m.useRef([]),s=m.useRef(void 0);e(function(){var f,h=Array.isArray(i)?i:[i],v=h.map(function(g){return z(g)});if(!o.current){o.current=!0,a.current=v,u.current=n,s.current=r();return}(v.length!==a.current.length||!Ee(a.current,v)||!Ee(u.current,n))&&((f=s.current)===null||f===void 0||f.call(s),a.current=v,u.current=n,s.current=r())}),k(function(){var f;(f=s.current)===null||f===void 0||f.call(s),o.current=!1})};return t},le=mt(m.useEffect);function te(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var vr={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Re(e,t){function r(i,o,a){if(!(typeof document>"u")){a=te({},t,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var u="";for(var s in a)a[s]&&(u+="; "+s,a[s]!==!0&&(u+="="+a[s].split(";")[0]));return document.cookie=i+"="+e.write(o,i)+u}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],a={},u=0;u<o.length;u++){var s=o[u].split("="),f=s.slice(1).join("=");try{var h=decodeURIComponent(s[0]);if(a[h]=e.read(f,h),i===h)break}catch{}}return i?a[i]:a}}return Object.create({set:r,get:n,remove:function(i,o){r(i,"",te({},o,{expires:-1}))},withAttributes:function(i){return Re(this.converter,te({},this.attributes,i))},withConverter:function(i){return Re(te({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var sn=Re(vr,{path:"/"}),me=function(e){if(!e)return 0;var t=Ft(e).valueOf()-Date.now();return t<0?0:t},hr=function(e){return{days:Math.floor(e/864e5),hours:Math.floor(e/36e5)%24,minutes:Math.floor(e/6e4)%60,seconds:Math.floor(e/1e3)%60,milliseconds:Math.floor(e)%1e3}},cn=function(e){e===void 0&&(e={});var t=e||{},r=t.leftTime,n=t.targetDate,i=t.interval,o=i===void 0?1e3:i,a=t.onEnd,u=m.useMemo(function(){return fe(r)&&r>0?Date.now()+r:void 0},[r]),s="leftTime"in e?u:n,f=O(m.useState(function(){return me(s)}),2),h=f[0],v=f[1],g=B(a);m.useEffect(function(){if(!s){v(0);return}v(me(s));var y=setInterval(function(){var _,E=me(s);v(E),E===0&&(clearInterval(y),(_=g.current)===null||_===void 0||_.call(g))},o);return function(){return clearInterval(y)}},[s,o]);var p=m.useMemo(function(){return hr(h)},[h]);return[h,p]};function pr(e,t){var r,n=B(e),i=(r=t?.wait)!==null&&r!==void 0?r:1e3,o=m.useMemo(function(){return ke(function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return n.current.apply(n,D([],O(a),!1))},i,t)},[]);return k(function(){o.cancel()}),{run:o,cancel:o.cancel,flush:o.flush}}function fn(e,t){var r=O(m.useState(e),2),n=r[0],i=r[1],o=pr(function(){i(e)},t).run;return m.useEffect(function(){o()},[e]),n}var ge,je;function mr(){if(je)return ge;je=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",n=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function i(o,a){if(o===a)return!0;if(o&&a&&typeof o=="object"&&typeof a=="object"){if(o.constructor!==a.constructor)return!1;var u,s,f;if(Array.isArray(o)){if(u=o.length,u!=a.length)return!1;for(s=u;s--!==0;)if(!i(o[s],a[s]))return!1;return!0}var h;if(t&&o instanceof Map&&a instanceof Map){if(o.size!==a.size)return!1;for(h=o.entries();!(s=h.next()).done;)if(!a.has(s.value[0]))return!1;for(h=o.entries();!(s=h.next()).done;)if(!i(s.value[1],a.get(s.value[0])))return!1;return!0}if(r&&o instanceof Set&&a instanceof Set){if(o.size!==a.size)return!1;for(h=o.entries();!(s=h.next()).done;)if(!a.has(s.value[0]))return!1;return!0}if(n&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(a)){if(u=o.length,u!=a.length)return!1;for(s=u;s--!==0;)if(o[s]!==a[s])return!1;return!0}if(o.constructor===RegExp)return o.source===a.source&&o.flags===a.flags;if(o.valueOf!==Object.prototype.valueOf&&typeof o.valueOf=="function"&&typeof a.valueOf=="function")return o.valueOf()===a.valueOf();if(o.toString!==Object.prototype.toString&&typeof o.toString=="function"&&typeof a.toString=="function")return o.toString()===a.toString();if(f=Object.keys(o),u=f.length,u!==Object.keys(a).length)return!1;for(s=u;s--!==0;)if(!Object.prototype.hasOwnProperty.call(a,f[s]))return!1;if(e&&o instanceof Element)return!1;for(s=u;s--!==0;)if(!((f[s]==="_owner"||f[s]==="__v"||f[s]==="__o")&&o.$$typeof)&&!i(o[f[s]],a[f[s]]))return!1;return!0}return o!==o&&a!==a}return ge=function(a,u){try{return i(a,u)}catch(s){if((s.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw s}},ge}var gr=mr();const yr=Ce(gr);var gt=function(e,t){return e===void 0&&(e=[]),t===void 0&&(t=[]),yr(e,t)},yt=function(e){return function(t,r){var n=m.useRef(void 0),i=m.useRef(0);(r===void 0||!gt(r,n.current))&&(i.current+=1),n.current=r,e(t,[i.current])}};const ln=yt(m.useEffect),dn=yt(m.useLayoutEffect);function Oe(e,t,r){r===void 0&&(r={});var n=r.enable,i=n===void 0?!0:n,o=B(t);le(function(){if(i){var a=z(r.target,window);if(a?.addEventListener){var u=function(f){return o.current(f)},s=Array.isArray(e)?e:[e];return s.forEach(function(f){a.addEventListener(f,u,{capture:r.capture,once:r.once,passive:r.passive})}),function(){s.forEach(function(f){a.removeEventListener(f,u,{capture:r.capture})})}}}},[e,r.capture,r.once,r.passive,i],r.target)}function vn(e){var t=O(m.useState(e),2),r=t[0],n=t[1],i=B(r),o=m.useCallback(function(){return i.current},[]);return[r,n,o]}var br=function(e){return e===document||e===document.documentElement||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},Ie=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},wr=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},hn=function(e,t){t===void 0&&(t={});var r=t.target,n=t.isNoMore,i=t.threshold,o=i===void 0?100:i,a=t.direction,u=a===void 0?"bottom":a,s=t.reloadDeps,f=s===void 0?[]:s,h=t.manual,v=t.onBefore,g=t.onSuccess,p=t.onError,y=t.onFinally,_=O(m.useState(),2),E=_[0],C=_[1],R=O(m.useState(!1),2),c=R[0],l=R[1],d=u==="top",b=m.useRef(void 0),w=m.useRef(0),T=m.useMemo(function(){return n?n(E):!1},[E]),S=fr(function(x){return G(void 0,void 0,void 0,function(){var P;return $(this,function(j){switch(j.label){case 0:return[4,e(x)];case 1:return P=j.sent(),[2,{currentData:P,lastData:x}]}})})},{manual:h,onFinally:function(x,P,j){l(!1),y?.(P?.currentData,j)},onBefore:function(){return v?.()},onSuccess:function(x){var P,j,V;x.lastData?C(M(M({},x.currentData),{list:d?D(D([],O(x.currentData.list),!1),O((j=x.lastData.list)!==null&&j!==void 0?j:[]),!1):D(D([],O((V=x.lastData.list)!==null&&V!==void 0?V:[]),!1),O(x.currentData.list),!1)})):C(M(M({},x.currentData),{list:D([],O((P=x.currentData.list)!==null&&P!==void 0?P:[]),!1)})),setTimeout(function(){if(d){var H=z(r);if(H=H===document?document.documentElement:H,H){var xt=Ie(H);H.scrollTo(0,xt-w.current)}}else xe()}),g?.(x.currentData)},onError:function(x){return p?.(x)}}),A=S.loading,I=S.error,F=S.run,Z=S.runAsync,ee=S.cancel,ve=L(function(){T||(l(!0),F(E))}),Me=function(x){return G(void 0,void 0,void 0,function(){var P;return $(this,function(j){switch(j.label){case 0:return[4,Z(x)];case 1:return P=j.sent(),[2,P.currentData]}})})},Dt=L(function(){return T?Promise.reject():(l(!0),Me(E))}),At=function(){return l(!1),F()},Mt=function(){return l(!1),Me()},xe=function(){var x=z(r);if(x){var P=x===document?document.documentElement:x,j=br(P),V=Ie(P),H=wr(P);d?(b.current!==void 0&&b.current>j&&j<=o&&ve(),b.current=j,w.current=V-j):V-j<=H+o&&ve()}};return Oe("scroll",function(){A||c||xe()},{target:r}),X(function(){F()},D([],O(f),!1)),{data:E,loading:!c&&A,error:I,loadingMore:c,noMore:T,loadMore:ve,loadMoreAsync:Dt,reload:L(At),reloadAsync:L(Mt),mutate:C,cancel:ee}},pn=function(e,t,r){r===void 0&&(r={});var n=L(e),i=m.useRef(null),o=m.useCallback(function(){i.current&&clearInterval(i.current)},[]);return m.useEffect(function(){if(!(!fe(t)||t<0))return r.immediate&&n(),i.current=setInterval(n,t),o},[t,r.immediate]),o},Le={},Fe;function _r(){return Fe||(Fe=1,(function(){if(typeof window!="object")return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}function e(c){try{return c.defaultView&&c.defaultView.frameElement||null}catch{return null}}var t=(function(c){for(var l=c,d=e(l);d;)l=d.ownerDocument,d=e(l);return l})(window.document),r=[],n=null,i=null;function o(c){this.time=c.time,this.target=c.target,this.rootBounds=y(c.rootBounds),this.boundingClientRect=y(c.boundingClientRect),this.intersectionRect=y(c.intersectionRect||p()),this.isIntersecting=!!c.intersectionRect;var l=this.boundingClientRect,d=l.width*l.height,b=this.intersectionRect,w=b.width*b.height;d?this.intersectionRatio=Number((w/d).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function a(c,l){var d=l||{};if(typeof c!="function")throw new Error("callback must be a function");if(d.root&&d.root.nodeType!=1&&d.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=s(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=c,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(d.rootMargin),this.thresholds=this._initThresholds(d.threshold),this.root=d.root||null,this.rootMargin=this._rootMarginValues.map(function(b){return b.value+b.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}a.prototype.THROTTLE_TIMEOUT=100,a.prototype.POLL_INTERVAL=null,a.prototype.USE_MUTATION_OBSERVER=!0,a._setupCrossOriginUpdater=function(){return n||(n=function(c,l){!c||!l?i=p():i=_(c,l),r.forEach(function(d){d._checkForIntersections()})}),n},a._resetCrossOriginUpdater=function(){n=null,i=null},a.prototype.observe=function(c){var l=this._observationTargets.some(function(d){return d.element==c});if(!l){if(!(c&&c.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:c,entry:null}),this._monitorIntersections(c.ownerDocument),this._checkForIntersections()}},a.prototype.unobserve=function(c){this._observationTargets=this._observationTargets.filter(function(l){return l.element!=c}),this._unmonitorIntersections(c.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},a.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},a.prototype.takeRecords=function(){var c=this._queuedEntries.slice();return this._queuedEntries=[],c},a.prototype._initThresholds=function(c){var l=c||[0];return Array.isArray(l)||(l=[l]),l.sort().filter(function(d,b,w){if(typeof d!="number"||isNaN(d)||d<0||d>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return d!==w[b-1]})},a.prototype._parseRootMargin=function(c){var l=c||"0px",d=l.split(/\s+/).map(function(b){var w=/^(-?\d*\.?\d+)(px|%)$/.exec(b);if(!w)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(w[1]),unit:w[2]}});return d[1]=d[1]||d[0],d[2]=d[2]||d[0],d[3]=d[3]||d[1],d},a.prototype._monitorIntersections=function(c){var l=c.defaultView;if(l&&this._monitoringDocuments.indexOf(c)==-1){var d=this._checkForIntersections,b=null,w=null;this.POLL_INTERVAL?b=l.setInterval(d,this.POLL_INTERVAL):(f(l,"resize",d,!0),f(c,"scroll",d,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in l&&(w=new l.MutationObserver(d),w.observe(c,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(c),this._monitoringUnsubscribes.push(function(){var A=c.defaultView;A&&(b&&A.clearInterval(b),h(A,"resize",d,!0)),h(c,"scroll",d,!0),w&&w.disconnect()});var T=this.root&&(this.root.ownerDocument||this.root)||t;if(c!=T){var S=e(c);S&&this._monitorIntersections(S.ownerDocument)}}},a.prototype._unmonitorIntersections=function(c){var l=this._monitoringDocuments.indexOf(c);if(l!=-1){var d=this.root&&(this.root.ownerDocument||this.root)||t,b=this._observationTargets.some(function(S){var A=S.element.ownerDocument;if(A==c)return!0;for(;A&&A!=d;){var I=e(A);if(A=I&&I.ownerDocument,A==c)return!0}return!1});if(!b){var w=this._monitoringUnsubscribes[l];if(this._monitoringDocuments.splice(l,1),this._monitoringUnsubscribes.splice(l,1),w(),c!=d){var T=e(c);T&&this._unmonitorIntersections(T.ownerDocument)}}}},a.prototype._unmonitorAllIntersections=function(){var c=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var l=0;l<c.length;l++)c[l]()},a.prototype._checkForIntersections=function(){if(!(!this.root&&n&&!i)){var c=this._rootIsInDom(),l=c?this._getRootRect():p();this._observationTargets.forEach(function(d){var b=d.element,w=g(b),T=this._rootContainsTarget(b),S=d.entry,A=c&&T&&this._computeTargetAndRootIntersection(b,w,l),I=null;this._rootContainsTarget(b)?(!n||this.root)&&(I=l):I=p();var F=d.entry=new o({time:u(),target:b,boundingClientRect:w,rootBounds:I,intersectionRect:A});S?c&&T?this._hasCrossedThreshold(S,F)&&this._queuedEntries.push(F):S&&S.isIntersecting&&this._queuedEntries.push(F):this._queuedEntries.push(F)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},a.prototype._computeTargetAndRootIntersection=function(c,l,d){if(window.getComputedStyle(c).display!="none"){for(var b=l,w=C(c),T=!1;!T&&w;){var S=null,A=w.nodeType==1?window.getComputedStyle(w):{};if(A.display=="none")return null;if(w==this.root||w.nodeType==9)if(T=!0,w==this.root||w==t)n&&!this.root?!i||i.width==0&&i.height==0?(w=null,S=null,b=null):S=i:S=d;else{var I=C(w),F=I&&g(I),Z=I&&this._computeTargetAndRootIntersection(I,F,d);F&&Z?(w=I,S=_(F,Z)):(w=null,b=null)}else{var ee=w.ownerDocument;w!=ee.body&&w!=ee.documentElement&&A.overflow!="visible"&&(S=g(w))}if(S&&(b=v(S,b)),!b)break;w=w&&C(w)}return b}},a.prototype._getRootRect=function(){var c;if(this.root&&!R(this.root))c=g(this.root);else{var l=R(this.root)?this.root:t,d=l.documentElement,b=l.body;c={top:0,left:0,right:d.clientWidth||b.clientWidth,width:d.clientWidth||b.clientWidth,bottom:d.clientHeight||b.clientHeight,height:d.clientHeight||b.clientHeight}}return this._expandRectByRootMargin(c)},a.prototype._expandRectByRootMargin=function(c){var l=this._rootMarginValues.map(function(b,w){return b.unit=="px"?b.value:b.value*(w%2?c.width:c.height)/100}),d={top:c.top-l[0],right:c.right+l[1],bottom:c.bottom+l[2],left:c.left-l[3]};return d.width=d.right-d.left,d.height=d.bottom-d.top,d},a.prototype._hasCrossedThreshold=function(c,l){var d=c&&c.isIntersecting?c.intersectionRatio||0:-1,b=l.isIntersecting?l.intersectionRatio||0:-1;if(d!==b)for(var w=0;w<this.thresholds.length;w++){var T=this.thresholds[w];if(T==d||T==b||T<d!=T<b)return!0}},a.prototype._rootIsInDom=function(){return!this.root||E(t,this.root)},a.prototype._rootContainsTarget=function(c){var l=this.root&&(this.root.ownerDocument||this.root)||t;return E(l,c)&&(!this.root||l==c.ownerDocument)},a.prototype._registerInstance=function(){r.indexOf(this)<0&&r.push(this)},a.prototype._unregisterInstance=function(){var c=r.indexOf(this);c!=-1&&r.splice(c,1)};function u(){return window.performance&&performance.now&&performance.now()}function s(c,l){var d=null;return function(){d||(d=setTimeout(function(){c(),d=null},l))}}function f(c,l,d,b){typeof c.addEventListener=="function"?c.addEventListener(l,d,b):typeof c.attachEvent=="function"&&c.attachEvent("on"+l,d)}function h(c,l,d,b){typeof c.removeEventListener=="function"?c.removeEventListener(l,d,b):typeof c.detachEvent=="function"&&c.detachEvent("on"+l,d)}function v(c,l){var d=Math.max(c.top,l.top),b=Math.min(c.bottom,l.bottom),w=Math.max(c.left,l.left),T=Math.min(c.right,l.right),S=T-w,A=b-d;return S>=0&&A>=0&&{top:d,bottom:b,left:w,right:T,width:S,height:A}||null}function g(c){var l;try{l=c.getBoundingClientRect()}catch{}return l?(l.width&&l.height||(l={top:l.top,right:l.right,bottom:l.bottom,left:l.left,width:l.right-l.left,height:l.bottom-l.top}),l):p()}function p(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function y(c){return!c||"x"in c?c:{top:c.top,y:c.top,bottom:c.bottom,left:c.left,x:c.left,right:c.right,width:c.width,height:c.height}}function _(c,l){var d=l.top-c.top,b=l.left-c.left;return{top:d,left:b,height:l.height,width:l.width,bottom:d+l.height,right:b+l.width}}function E(c,l){for(var d=l;d;){if(d==c)return!0;d=C(d)}return!1}function C(c){var l=c.parentNode;return c.nodeType==9&&c!=t?e(c):(l&&l.assignedSlot&&(l=l.assignedSlot.parentNode),l&&l.nodeType==11&&l.host?l.host:l)}function R(c){return c&&c.nodeType===9}window.IntersectionObserver=a,window.IntersectionObserverEntry=o})()),Le}_r();function mn(e,t){var r={},n=r.callback,i=Q(r,["callback"]),o=O(m.useState(),2),a=o[0],u=o[1],s=O(m.useState(),2),f=s[0],h=s[1];return le(function(){var v=Array.isArray(e)?e:[e],g=v.map(function(y){return z(y)}).filter(Boolean);if(g.length){var p=new IntersectionObserver(function(y){var _,E;try{for(var C=W(y),R=C.next();!R.done;R=C.next()){var c=R.value;h(c.intersectionRatio),u(c.isIntersecting),n?.(c)}}catch(l){_={error:l}}finally{try{R&&!R.done&&(E=C.return)&&E.call(C)}finally{if(_)throw _.error}}},M(M({},i),{root:z(void 0)}));return g.forEach(function(y){return p.observe(y)}),function(){p.disconnect()}}},[void 0,void 0,n],e),[a,f]}var Er=function(e,t,r){var n=m.useRef(void 0),i=m.useRef(0);gt(t,n.current)||(i.current+=1),n.current=t,le(e,[i.current],r)},Rr=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator?.platform:""),bt={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:Rr?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},Se={ctrl:function(e){return e.ctrlKey},shift:function(e){return e.shiftKey},alt:function(e){return e.altKey},meta:function(e){return e.type==="keyup"?bt.meta.includes(e.keyCode):e.metaKey}};function wt(e){return qt(e)||fe(e)}function Or(e){var t=Object.keys(Se).reduce(function(r,n){return Se[n](e)?r+1:r},0);return[16,17,18,91,92].includes(e.keyCode)?t:t+1}function Be(e,t,r){var n,i;if(!e.key)return!1;if(fe(t))return e.keyCode===t?t:!1;var o=t.split("."),a=0;try{for(var u=W(o),s=u.next();!s.done;s=u.next()){var f=s.value,h=Se[f],v=bt[f.toLowerCase()];(h&&h(e)||v&&v===e.keyCode)&&a++}}catch(g){n={error:g}}finally{try{s&&!s.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}return r?a===o.length&&Or(e)===o.length?t:!1:a===o.length?t:!1}function Sr(e,t){return U(e)?e:wt(e)?function(r){return Be(r,e,t)}:Array.isArray(e)?function(r){return e.find(function(n){return Be(r,n,t)})}:function(){return!!e}}var Tr=["keydown"];function gn(e,t,r){var n=r||{},i=n.events,o=i===void 0?Tr:i,a=n.target,u=n.exactMatch,s=u===void 0?!1:u,f=n.useCapture,h=f===void 0?!1:f,v=B(t),g=B(e);Er(function(){var p,y,_,E=z(a,window);if(E){var C=function(d){var b,w=d,T=Sr(g.current,s),S=T(w),A=wt(S)?S:w.key;if(S)return(b=v.current)===null||b===void 0?void 0:b.call(v,w,A)};try{for(var R=W(o),c=R.next();!c.done;c=R.next()){var l=c.value;(_=E?.addEventListener)===null||_===void 0||_.call(E,l,C,h)}}catch(d){p={error:d}}finally{try{c&&!c.done&&(y=R.return)&&y.call(R)}finally{if(p)throw p.error}}return function(){var d,b,w;try{for(var T=W(o),S=T.next();!S.done;S=T.next()){var A=S.value;(w=E?.removeEventListener)===null||w===void 0||w.call(E,A,C,h)}}catch(I){d={error:I}}finally{try{S&&!S.done&&(b=T.return)&&b.call(T)}finally{if(d)throw d.error}}}}},[o],a)}var ze="AHOOKS_SYNC_STORAGE_EVENT_NAME";function _t(e){function t(r,n){n===void 0&&(n={});var i,o=n.listenStorageChange,a=o===void 0?!1:o,u=n.onError,s=u===void 0?function(R){console.error(R)}:u;try{i=e()}catch(R){s(R)}var f=function(R){return n.serializer?n.serializer(R):JSON.stringify(R)},h=function(R){return n.deserializer?n.deserializer(R):JSON.parse(R)};function v(){try{var R=i?.getItem(r);if(R)return h(R)}catch(c){s(c)}return U(n.defaultValue)?n.defaultValue():n.defaultValue}var g=O(m.useState(v),2),p=g[0],y=g[1];X(function(){y(v())},[r]);var _=function(R){var c=U(R)?R(p):R;a||y(c);try{var l=void 0,d=i?.getItem(r);Ut(c)?(l=null,i?.removeItem(r)):(l=f(c),i?.setItem(r,l)),dispatchEvent(new CustomEvent(ze,{detail:{key:r,newValue:l,oldValue:d,storageArea:i}}))}catch(b){s(b)}},E=function(R){R.key!==r||R.storageArea!==i||y(v())},C=function(R){E(R.detail)};return Oe("storage",E,{enable:a}),Oe(ze,C,{enable:a}),[p,L(_)]}return t}var yn=_t(function(){return N?localStorage:void 0});function Cr(e){var t=m.useRef(0),r=O(m.useState(e),2),n=r[0],i=r[1],o=m.useCallback(function(a){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){i(a)})},[]);return k(function(){cancelAnimationFrame(t.current)}),[n,o]}var Dr=function(e,t){return!Object.is(e,t)};function bn(e,t){t===void 0&&(t=Dr);var r=m.useRef(void 0),n=m.useRef(void 0);return t(n.current,e)&&(r.current=n.current,n.current=e),r.current}var He=new WeakMap,We=new WeakMap;function Et(e,t){var r=He.get(e);if(r)return r;if(We.has(e))return e;var n=new Proxy(e,{get:function(i,o,a){var u=Reflect.get(i,o,a),s=Reflect.getOwnPropertyDescriptor(i,o);return!s?.configurable&&!s?.writable?u:It(u)||Array.isArray(u)?Et(u,t):u},set:function(i,o,a){var u=Reflect.set(i,o,a);return t(),u},deleteProperty:function(i,o){var a=Reflect.deleteProperty(i,o);return t(),a}});return He.set(e,n),We.set(n,e),n}function wn(e){var t=pt(),r=m.useRef(e),n=De(function(){return Et(r.current,function(){t()})},[]);return n}var _n=_t(function(){return N?sessionStorage:void 0}),En=function(e){var t=O(m.useState(e),2),r=t[0],n=t[1],i=L(function(o){n(function(a){var u=U(o)?o(a):o;return u?M(M({},a),u):a})});return[r,i]},Rt=(function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(i,o){return i[0]===r?(n=o,!0):!1}),n}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),i=this.__entries__[n];return i&&i[1]},t.prototype.set=function(r,n){var i=e(this.__entries__,r);~i?this.__entries__[i][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,i=e(n,r);~i&&n.splice(i,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var i=0,o=this.__entries__;i<o.length;i++){var a=o[i];r.call(n,a[1],a[0])}},t})()})(),Te=typeof window<"u"&&typeof document<"u"&&window.document===document,ue=(function(){return typeof he<"u"&&he.Math===Math?he:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()})(),Ar=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(ue):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),Mr=2;function xr(e,t){var r=!1,n=!1,i=0;function o(){r&&(r=!1,e()),n&&u()}function a(){Ar(o)}function u(){var s=Date.now();if(r){if(s-i<Mr)return;n=!0}else r=!0,n=!1,setTimeout(a,t);i=s}return u}var Pr=20,jr=["top","right","bottom","left","width","height","size","weight"],Ir=typeof MutationObserver<"u",Lr=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=xr(this.refresh.bind(this),Pr)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Te||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ir?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Te||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,i=jr.some(function(o){return!!~n.indexOf(o)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),Ot=(function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var i=n[r];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e}),Y=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||ue}),St=de(0,0,0,0);function se(e){return parseFloat(e)||0}function Ne(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,i){var o=e["border-"+i+"-width"];return n+se(o)},0)}function Fr(e){for(var t=["top","right","bottom","left"],r={},n=0,i=t;n<i.length;n++){var o=i[n],a=e["padding-"+o];r[o]=se(a)}return r}function Br(e){var t=e.getBBox();return de(0,0,t.width,t.height)}function zr(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return St;var n=Y(e).getComputedStyle(e),i=Fr(n),o=i.left+i.right,a=i.top+i.bottom,u=se(n.width),s=se(n.height);if(n.boxSizing==="border-box"&&(Math.round(u+o)!==t&&(u-=Ne(n,"left","right")+o),Math.round(s+a)!==r&&(s-=Ne(n,"top","bottom")+a)),!Wr(e)){var f=Math.round(u+o)-t,h=Math.round(s+a)-r;Math.abs(f)!==1&&(u-=f),Math.abs(h)!==1&&(s-=h)}return de(i.left,i.top,u,s)}var Hr=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Y(e).SVGGraphicsElement}:function(e){return e instanceof Y(e).SVGElement&&typeof e.getBBox=="function"}})();function Wr(e){return e===Y(e).document.documentElement}function Nr(e){return Te?Hr(e)?Br(e):zr(e):St}function qr(e){var t=e.x,r=e.y,n=e.width,i=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(o.prototype);return Ot(a,{x:t,y:r,width:n,height:i,top:r,right:t+n,bottom:i+r,left:t}),a}function de(e,t,r,n){return{x:e,y:t,width:r,height:n}}var Ur=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=de(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Nr(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e})(),kr=(function(){function e(t,r){var n=qr(r);Ot(this,{target:t,contentRect:n})}return e})(),Vr=(function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new Rt,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Y(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new Ur(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Y(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new kr(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),Tt=typeof WeakMap<"u"?new WeakMap:new Rt,Ct=(function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=Lr.getInstance(),n=new Vr(t,r,this);Tt.set(this,n)}return e})();["observe","unobserve","disconnect"].forEach(function(e){Ct.prototype[e]=function(){var t;return(t=Tt.get(this))[e].apply(t,arguments)}});var Gr=(function(){return typeof ue.ResizeObserver<"u"?ue.ResizeObserver:Ct})(),$r=mt(m.useLayoutEffect),Kr=N?$r:le;function Rn(e){var t=O(Cr(function(){var i=z(e);return i?{width:i.clientWidth,height:i.clientHeight}:void 0}),2),r=t[0],n=t[1];return Kr(function(){var i=z(e);if(i){var o=new Gr(function(a){a.forEach(function(u){var s=u.target,f=s.clientWidth,h=s.clientHeight;n({width:f,height:h})})});return o.observe(i),function(){o.disconnect()}}},[],e),r}function On(e,t){var r,n=B(e),i=(r=t?.wait)!==null&&r!==void 0?r:1e3,o=m.useMemo(function(){return Ve(function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return n.current.apply(n,D([],O(a),!1))},i,t)},[]);return k(function(){o.cancel()}),{run:o,cancel:o.cancel,flush:o.flush}}var ye,qe;function Yr(){return qe||(qe=1,ye=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(i){e.addRange(i)}),t&&t.focus()}}),ye}var be,Ue;function Jr(){if(Ue)return be;Ue=1;var e=Yr(),t={"text/plain":"Text","text/html":"Url",default:"Text"},r="Copy to clipboard: #{key}, Enter";function n(o){var a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return o.replace(/#{\s*key\s*}/g,a)}function i(o,a){var u,s,f,h,v,g,p=!1;a||(a={}),u=a.debug||!1;try{f=e(),h=document.createRange(),v=document.getSelection(),g=document.createElement("span"),g.textContent=o,g.ariaHidden="true",g.style.all="unset",g.style.position="fixed",g.style.top=0,g.style.clip="rect(0, 0, 0, 0)",g.style.whiteSpace="pre",g.style.webkitUserSelect="text",g.style.MozUserSelect="text",g.style.msUserSelect="text",g.style.userSelect="text",g.addEventListener("copy",function(_){if(_.stopPropagation(),a.format)if(_.preventDefault(),typeof _.clipboardData>"u"){u&&console.warn("unable to use e.clipboardData"),u&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var E=t[a.format]||t.default;window.clipboardData.setData(E,o)}else _.clipboardData.clearData(),_.clipboardData.setData(a.format,o);a.onCopy&&(_.preventDefault(),a.onCopy(_.clipboardData))}),document.body.appendChild(g),h.selectNodeContents(g),v.addRange(h);var y=document.execCommand("copy");if(!y)throw new Error("copy command was unsuccessful");p=!0}catch(_){u&&console.error("unable to copy using execCommand: ",_),u&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(a.format||"text",o),a.onCopy&&a.onCopy(window.clipboardData),p=!0}catch(E){u&&console.error("unable to copy using clipboardData: ",E),u&&console.error("falling back to prompt"),s=n("message"in a?a.message:r),window.prompt(s,o)}}finally{v&&(typeof v.removeRange=="function"?v.removeRange(h):v.removeAllRanges()),g&&document.body.removeChild(g),f()}return p}return be=i,be}var Xr=Jr();const Sn=Ce(Xr);let J=[];const Qr=(e,t)=>{if(e!=null&&t!=null)return J=[...J,[e,t]],()=>{J=J.filter(r=>r[1]!==t)}},Zr=e=>{let{type:t}=e;typeof e=="string"&&(t=e);const r=[];typeof e=="string"?r.push({type:t}):r.push(e),J.forEach(([n,i])=>{typeof n=="string"&&n!==t||Array.isArray(n)&&!n.includes(t)||n instanceof RegExp&&!n.test(t)||typeof n=="function"&&!n(...r)||i(...r)})},Tn=(e,t,r=[])=>(m.useEffect(()=>Qr(e,t),r),Zr),Cn=Pt(Nt);function en(){var e=m.useRef(!1),t=m.useCallback(function(){return e.current},[]);return m.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),t}function tn(e,t,r){t===void 0&&(t=[]),r===void 0&&(r={loading:!1});var n=m.useRef(0),i=en(),o=m.useState(r),a=o[0],u=o[1],s=m.useCallback(function(){for(var f=[],h=0;h<arguments.length;h++)f[h]=arguments[h];var v=++n.current;return a.loading||u(function(g){return M(M({},g),{loading:!0})}),e.apply(void 0,f).then(function(g){return i()&&v===n.current&&u({value:g,loading:!1}),g},function(g){return i()&&v===n.current&&u({error:g,loading:!1}),g})},t);return[a,s]}function rn(e,t){t===void 0&&(t=[]);var r=tn(e,t,{loading:!0}),n=r[0],i=r[1];return m.useEffect(function(){i()},[i]),n}var Dn=function(e,t){t===void 0&&(t=[]);var r=m.useState(0),n=r[0],i=r[1],o=rn(e,ae(t,[n])),a=o.loading,u=m.useCallback(function(){a||i(function(s){return s+1})},ae(t,[a]));return M(M({},o),{retry:u})};export{X as $,On as A,_n as B,Cn as C,mn as D,Dn as E,pt as F,rn as G,Ge as H,G as I,$ as J,M as K,Q as L,dn as M,gn as N,vn as O,$e as _,De as a,L as b,st as c,Ft as d,ct as e,Sn as f,Rn as g,B as h,wn as i,ur as j,ln as k,yr as l,sn as m,pn as n,fn as o,an as p,yn as q,fr as r,bn as s,Tn as t,pr as u,En as v,hn as w,un as x,k as y,cn as z};