@abtnode/webapp 1.16.46-beta-20250706-075512-de1b046b → 1.16.46-beta-20250708-074453-e1748586

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 (185) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{AdapterDayjs-DTe0H3sA.js → AdapterDayjs-lZH9dene.js} +1 -1
  4. package/dist/assets/{Add-BymIQBtf.js → Add-C-qoFDXR.js} +1 -1
  5. package/dist/assets/ArrowDropDown--DVNnyqn.js +1 -0
  6. package/dist/assets/{Autocomplete-CcAxh0ub.js → Autocomplete-CkAm7uIi.js} +1 -1
  7. package/dist/assets/{Breadcrumbs-CSaJ00xP.js → Breadcrumbs-Dc_me3zp.js} +1 -1
  8. package/dist/assets/{ButtonGroup-ChSK0wST.js → ButtonGroup-C-ePb6nh.js} +1 -1
  9. package/dist/assets/{CSSTransition-DNQ9D2zK.js → CSSTransition-CJXB5Ckq.js} +1 -1
  10. package/dist/assets/{CallMerge-O-LHHdxA.js → CallMerge-BZEo0Wnz.js} +1 -1
  11. package/dist/assets/{CardContent-CT_RUWPw.js → CardContent-Cz2BZ_i0.js} +1 -1
  12. package/dist/assets/{ChevronLeft-meShZeXO.js → ChevronLeft-FPu3ob1r.js} +1 -1
  13. package/dist/assets/{ChevronRight-Dbp6SWVd.js → ChevronRight-s7Ge6wbK.js} +1 -1
  14. package/dist/assets/{Clear-p844YSwh.js → Clear-m97-RV9G.js} +1 -1
  15. package/dist/assets/{DeleteOutline-CCV79tdr.js → DeleteOutline-BmVJ0SRH.js} +1 -1
  16. package/dist/assets/{Done-BqBB1uAk.js → Done-CkFmbhWG.js} +1 -1
  17. package/dist/assets/{Edit-tcaHLZwO.js → Edit-K2FEE6nK.js} +1 -1
  18. package/dist/assets/{ErrorOutline-EYQE3srx.js → ErrorOutline-DKoJsbYj.js} +1 -1
  19. package/dist/assets/{FilterList-DaUCH-oq.js → FilterList-D2ht4WCu.js} +1 -1
  20. package/dist/assets/{Google-B7s7IngH.js → Google-B_iUD-qe.js} +1 -1
  21. package/dist/assets/{HelpOutline-NlzKf6CP.js → HelpOutline-C303jYUV.js} +1 -1
  22. package/dist/assets/{Launch-DS5gvqhh.js → Launch-D6fDEUZE.js} +1 -1
  23. package/dist/assets/{Link-BCe5qQeR.js → Link-z2jprwfY.js} +1 -1
  24. package/dist/assets/{ListItemButton-C_QR03A_.js → ListItemButton-D3M-CdH1.js} +1 -1
  25. package/dist/assets/{ListSubheader-Hh3VbYlw.js → ListSubheader-fOlFzbU6.js} +1 -1
  26. package/dist/assets/{LoadingButton-D9J8aueN.js → LoadingButton-BmX7Jusm.js} +1 -1
  27. package/dist/assets/{MoreVert-DIGG56nA.js → MoreVert-CfjoPFTT.js} +1 -1
  28. package/dist/assets/{OpenInNew-gA0mcfwY.js → OpenInNew-Be_LQSsx.js} +1 -1
  29. package/dist/assets/{Refresh-C4oW4Rhz.js → Refresh-PALCSyuU.js} +1 -1
  30. package/dist/assets/{Search-_DW2WIA7.js → Search-C1c8IWNt.js} +1 -1
  31. package/dist/assets/{Slider-CCJ6QWNJ.js → Slider-BO5ploI0.js} +1 -1
  32. package/dist/assets/{Stepper-DYxiNj41.js → Stepper-BzTuZEkI.js} +1 -1
  33. package/dist/assets/{Switch-C6V5HrKP.js → Switch-DuGwzUc3.js} +1 -1
  34. package/dist/assets/{TableSearch-DTxk-XEV.js → TableSearch-igEmPOVc.js} +1 -1
  35. package/dist/assets/{ToggleButtonGroup-BRNwPp_U.js → ToggleButtonGroup-B3aaJd0b.js} +1 -1
  36. package/dist/assets/{Verified-BInuzHap.js → Verified-B5S0Jn97.js} +1 -1
  37. package/dist/assets/{VerifiedUser-ii-wCS7I.js → VerifiedUser-BZcaTXsE.js} +1 -1
  38. package/dist/assets/{ViewList-DXpY0bh9.js → ViewList-bh6Ajs2i.js} +1 -1
  39. package/dist/assets/{_createAggregator-CyTk23kS.js → _createAggregator-DMjY-MBa.js} +1 -1
  40. package/dist/assets/{actions-rj1WgPwO.js → actions-B3_8uzvm.js} +1 -1
  41. package/dist/assets/{actions-D2CRUeMK.js → actions-x67maLIz.js} +1 -1
  42. package/dist/assets/{agreement-DSmE5Hd3.js → agreement-PUXVGdXT.js} +1 -1
  43. package/dist/assets/api-DOfnx6Rg.js +1 -0
  44. package/dist/assets/{appearance-Bs5W2NNC.js → appearance-Bgw8YFgu.js} +1 -1
  45. package/dist/assets/{audit-logs-C2BTJuBo.js → audit-logs-kFOQ8piR.js} +1 -1
  46. package/dist/assets/{base-chart-Co4CMrhA.js → base-chart-B0Hyb60u.js} +1 -1
  47. package/dist/assets/{blocklet-BFZSXHzf.js → blocklet-BALghaj0.js} +1 -1
  48. package/dist/assets/{chain-CRTvHqpE.js → chain-BhwRxbuE.js} +1 -1
  49. package/dist/assets/{click-to-copy-Ej5vUTZR.js → click-to-copy-CJEiBY5P.js} +1 -1
  50. package/dist/assets/client-CruQZ9FM.js +1 -0
  51. package/dist/assets/cloneDeep-BvpAoeCE.js +1 -0
  52. package/dist/assets/{collapse-CAb-Gn_l.js → collapse-CfBqxRhe.js} +1 -1
  53. package/dist/assets/{config-navigation-Cs_qHzER.js → config-navigation-nesFWbGx.js} +3 -3
  54. package/dist/assets/{connect-to-DkhhW68O.js → connect-to-CnP8SOkh.js} +2 -2
  55. package/dist/assets/{cssMode-CrVEzyxC.js → cssMode-C1e0mA57.js} +1 -1
  56. package/dist/assets/{delete-confirm-Dz69MAu0.js → delete-confirm-DLDRKoJo.js} +1 -1
  57. package/dist/assets/{depsEqual-DfiSjGDF.js → depsEqual-0t8DQthz.js} +1 -1
  58. package/dist/assets/{detail-BnT9dQ5L.js → detail-Cg4TjDi0.js} +3 -3
  59. package/dist/assets/{domains-qVXK0hWW.js → domains-DhqN937R.js} +1 -1
  60. package/dist/assets/{download-C978t_bv.js → download-C9mWRkM0.js} +1 -1
  61. package/dist/assets/emotion-cache.browser.esm-VTZJ-Izu.js +1 -0
  62. package/dist/assets/engine-G4cXU1O1.js +1 -0
  63. package/dist/assets/{freemarker2-DOa0F2Rz.js → freemarker2-B1qbq2qN.js} +1 -1
  64. package/dist/assets/{get-safe-url-Cuqqffna.js → get-safe-url-B_6dDPbh.js} +1 -1
  65. package/dist/assets/getValidReactChildren-BldpnGjG.js +1 -0
  66. package/dist/assets/{graphqlMode-CKDQI3wd.js → graphqlMode-DnoC9WZb.js} +2 -2
  67. package/dist/assets/{handlebars-lf82ljB_.js → handlebars-sYEGFidT.js} +1 -1
  68. package/dist/assets/{html-By42GBXH.js → html-C9sx0W61.js} +1 -1
  69. package/dist/assets/{htmlMode-BeGmS-sv.js → htmlMode-W97PTBL6.js} +1 -1
  70. package/dist/assets/{iframe-CWQD2D2P.js → iframe-CdJEjD_P.js} +1 -1
  71. package/dist/assets/{index-DrqMX8P3.js → index--qiTIIgA.js} +3 -3
  72. package/dist/assets/{index-cTnbzuAx.js → index-1lRds6IP.js} +1 -1
  73. package/dist/assets/{index-CDo4jf6C.js → index-3xw63xev.js} +1 -1
  74. package/dist/assets/{index-BFXERHlf.js → index-7C5ffsZ4.js} +1 -1
  75. package/dist/assets/{index-C63bSXKY.js → index-B3DXtbtv.js} +1 -1
  76. package/dist/assets/{index-D1Xg-WES.js → index-B4DvnAQV.js} +1 -1
  77. package/dist/assets/{index-CULQHTfE.js → index-B6L-XwR3.js} +1 -1
  78. package/dist/assets/{index-BkKGnide.js → index-B7ZNrnM-.js} +1 -1
  79. package/dist/assets/{index-CC_PPI8G.js → index-BBHfndQF.js} +1 -1
  80. package/dist/assets/{index-C5u5PlQ4.js → index-BKr-jX9v.js} +1 -1
  81. package/dist/assets/{index-oYJVEvEN.js → index-BXV5YZlG.js} +1 -1
  82. package/dist/assets/{index-Gf-l8_nu.js → index-BbFJaRoB.js} +1 -1
  83. package/dist/assets/{index-Bnxl9k2v.js → index-BqOT1vg4.js} +1 -1
  84. package/dist/assets/{index-CetxjOR4.js → index-BupHbkeI.js} +1 -1
  85. package/dist/assets/{index-Cc_JPZGW.js → index-BysxKOSu.js} +1 -1
  86. package/dist/assets/index-C04uw3ut.js +1 -0
  87. package/dist/assets/{index-Fkt3goDq.js → index-C1f5NJYc.js} +1 -1
  88. package/dist/assets/{index-B3zdiR4I.js → index-CYSduNA_.js} +1 -1
  89. package/dist/assets/{index-C8opdYMn.js → index-CenzsuPy.js} +9 -9
  90. package/dist/assets/{index-eIJb2ap_.js → index-CgV386d2.js} +1 -1
  91. package/dist/assets/{index-DisxfPKg.js → index-Cp7n-akO.js} +3 -3
  92. package/dist/assets/{index-LTSbzbAK.js → index-CpQsldd8.js} +1 -1
  93. package/dist/assets/{index-04Cg3rq1.js → index-CsL1GaPn.js} +3 -3
  94. package/dist/assets/{index-Bi6RkZIu.js → index-CsVvkoWj.js} +1 -1
  95. package/dist/assets/{index-DP6vW9Qm.js → index-Csvo7_k-.js} +3 -3
  96. package/dist/assets/{index-BcSklsUP.js → index-CuettTd7.js} +1 -1
  97. package/dist/assets/{index-CsAeHLaJ.js → index-D0VlfeTl.js} +1 -1
  98. package/dist/assets/{index-yYXVqxlj.js → index-D4bHWSDT.js} +1 -1
  99. package/dist/assets/{index-DnEBdfll.js → index-D9gay98p.js} +1 -1
  100. package/dist/assets/{index-Ds3_t_-i.js → index-DCdUt9hG.js} +1 -1
  101. package/dist/assets/{index-BvXZoEXP.js → index-DWI-Juvh.js} +1 -1
  102. package/dist/assets/{index-br0Yc9xd.js → index-DaLwUIz-.js} +1 -1
  103. package/dist/assets/{index-30uk3Zde.js → index-DfB3-fEf.js} +1 -1
  104. package/dist/assets/{index-CtQwTN0O.js → index-DiT-8Xe3.js} +1 -1
  105. package/dist/assets/{index-Bx5fxhO5.js → index-Dm5ajuS5.js} +1 -1
  106. package/dist/assets/{index-C23cxsIf.js → index-DpWdOcvI.js} +3 -3
  107. package/dist/assets/{index-DvPvczBM.js → index-DvpXXioO.js} +1 -1
  108. package/dist/assets/{index-Bgse3464.js → index-L0YnrGvB.js} +1 -1
  109. package/dist/assets/{index-3Gr8DDQi.js → index-Q1c8rnen.js} +1 -1
  110. package/dist/assets/{index-ynYCdfgX.js → index-Qd4Npqh6.js} +1 -1
  111. package/dist/assets/{index-CZcXWL-X.js → index-S2ho0LL3.js} +1 -1
  112. package/dist/assets/{index-6RpNlUXw.js → index-a8uqiYfW.js} +1 -1
  113. package/dist/assets/{index-BkAmHTzO.js → index-aHWRyS56.js} +2 -2
  114. package/dist/assets/{index-oYMWAdg8.js → index-fLIxpU-m.js} +1 -1
  115. package/dist/assets/{index-CggE-p2z.js → index-pSHx8NNU.js} +1 -1
  116. package/dist/assets/{index-DOV4j9Xg.js → index-s0Wlu-Gu.js} +1 -1
  117. package/dist/assets/{index-zzs1-5cA.js → index-uNZWrXL2.js} +1 -1
  118. package/dist/assets/{index.esm-tAsUUhHo.js → index.esm-XPslm4nt.js} +1 -1
  119. package/dist/assets/{install-from-url-Ehaondnu.js → install-from-url-giLwGmDP.js} +1 -1
  120. package/dist/assets/{invitation-Ci8HwvdV.js → invitation-BFMjKnvT.js} +1 -1
  121. package/dist/assets/{is-path-prefix-equal-tOARVLuw.js → is-path-prefix-equal-lT3S9weM.js} +1 -1
  122. package/dist/assets/{item-DDx7OQOD.js → item-1_haAiVQ.js} +1 -1
  123. package/dist/assets/{javascript-CBOwwSpS.js → javascript-CpHN27bN.js} +1 -1
  124. package/dist/assets/{jsonMode-DR24XfTY.js → jsonMode-0rL7i1sU.js} +1 -1
  125. package/dist/assets/{liquid-Di3CtWhP.js → liquid-BEDTv-ck.js} +1 -1
  126. package/dist/assets/{list-header-DLBFnxRG.js → list-header-xkvwak1A.js} +1 -1
  127. package/dist/assets/{log-DyP5xia3.js → log-BWF7Aohw.js} +1 -1
  128. package/dist/assets/{lottie-react.esm-CmWcDm1o.js → lottie-react.esm-mngGgNUP.js} +1 -1
  129. package/dist/assets/{mdx-CN8vJ_bw.js → mdx-B8FMJSU2.js} +1 -1
  130. package/dist/assets/{memory-DWcKQvu0.js → memory-BvjAc2Nx.js} +1 -1
  131. package/dist/assets/{metric-CiNgH_tm.js → metric-DOzyE6hY.js} +1 -1
  132. package/dist/assets/omit-YRKeCzRU.js +1 -0
  133. package/dist/assets/{overview-D1hJrUmT.js → overview-BXQRNXci.js} +1 -1
  134. package/dist/assets/{permission-DameKqO6.js → permission-y2eN7M97.js} +1 -1
  135. package/dist/assets/{preference-BdBmam_p.js → preference-D3tM1bRV.js} +3 -3
  136. package/dist/assets/{python-CItf4Czs.js → python-jzggTEg_.js} +1 -1
  137. package/dist/assets/{raf-schd.esm-6_EN7Kbo.js → raf-schd.esm-BOsLTGQl.js} +1 -1
  138. package/dist/assets/{razor-C3kzStME.js → razor-DO_NWOoB.js} +1 -1
  139. package/dist/assets/{rotate-session-key-BwK5-Edg.js → rotate-session-key-DanP3i86.js} +1 -1
  140. package/dist/assets/{runtime-BQVOLIg_.js → runtime-Di5YMKHb.js} +1 -1
  141. package/dist/assets/schema-Cwcp4lCp.js +1 -0
  142. package/dist/assets/sdk-BvWTXJtP.js +1 -0
  143. package/dist/assets/{service-BKKmXiPj.js → service-BBRG9CEW.js} +1 -1
  144. package/dist/assets/{shorten-label-K42tqImX.js → shorten-label-DnZXaTPM.js} +1 -1
  145. package/dist/assets/{simple-select-CJ_NHgZE.js → simple-select-CGN0rgxD.js} +1 -1
  146. package/dist/assets/{spaces-D8W9oSU1.js → spaces-CVUV04Qu.js} +1 -1
  147. package/dist/assets/{status-DPf6KSuT.js → status-DhAxXp8T.js} +1 -1
  148. package/dist/assets/{status-CNsm8Uxk.js → status-DjJD8ZRK.js} +1 -1
  149. package/dist/assets/{switch-control-C7a0YAjY.js → switch-control-C0sPQYWg.js} +1 -1
  150. package/dist/assets/{table-icons-XKLLe8QL.js → table-icons-qbS_0YPJ.js} +1 -1
  151. package/dist/assets/{team-BIASMfBE.js → team-DYENwSX2.js} +1 -1
  152. package/dist/assets/{toLower-BMJtQmSy.js → toLower-D-d8Dv0x.js} +1 -1
  153. package/dist/assets/toUpper-LALjq_3Z.js +1 -0
  154. package/dist/assets/{traffic-s6-mNuLF.js → traffic-C2RBXLkf.js} +1 -1
  155. package/dist/assets/{tsMode-zr05hq8A.js → tsMode-CXYuJRmW.js} +1 -1
  156. package/dist/assets/{typescript-C3VyJB76.js → typescript-CRIPrNYf.js} +1 -1
  157. package/dist/assets/{url-evaluation-je_DqWx8.js → url-evaluation-BLZfb0Dg.js} +1 -1
  158. package/dist/assets/{url-join-DJY-Qasn.js → url-join-CXIuL0JQ.js} +1 -1
  159. package/dist/assets/{use-mobile-CiA019Iw.js → use-mobile-BB8wRni0.js} +1 -1
  160. package/dist/assets/{use-mobile-DpB9DOv8.js → use-mobile-D_qdydKi.js} +1 -1
  161. package/dist/assets/{useAsync-DC5_iMZM.js → useAsync-CE04Oyzr.js} +1 -1
  162. package/dist/assets/{useAsyncRetry-tHEIeLbe.js → useAsyncRetry-C9ik6Acy.js} +1 -1
  163. package/dist/assets/{useLocalStorage-DrRAHSy6.js → useLocalStorage-W8XXMbhN.js} +1 -1
  164. package/dist/assets/{useThemeProps-BHnFz5Rn.js → useThemeProps-B4Om35fj.js} +1 -1
  165. package/dist/assets/{util-BOa_X6eX.js → util-D3jybip3.js} +1 -1
  166. package/dist/assets/{wait-container-DT_8Jv4t.js → wait-container-a86uX6DP.js} +1 -1
  167. package/dist/assets/{without-wallet-nJ_sZ-Wg.js → without-wallet-BU0U8gNN.js} +1 -1
  168. package/dist/assets/{wrap-locale-CRGOQGWL.js → wrap-locale-Cq-ah7SY.js} +1 -1
  169. package/dist/assets/{xml-CmB0j4sA.js → xml-CZMMkaPT.js} +1 -1
  170. package/dist/assets/{yaml-CfU0dQ9l.js → yaml-B6e3w7iW.js} +1 -1
  171. package/dist/index.html +1 -1
  172. package/dist/service-worker.js +1 -1
  173. package/package.json +1 -1
  174. package/dist/assets/ArrowDropDown-ndgFCjTY.js +0 -1
  175. package/dist/assets/api-Dfd-W8my.js +0 -1
  176. package/dist/assets/client-kxHC35hM.js +0 -1
  177. package/dist/assets/cloneDeep-Ba3aXNUu.js +0 -1
  178. package/dist/assets/emotion-cache.browser.esm-BKb81Oqx.js +0 -1
  179. package/dist/assets/engine-BhzKUVLU.js +0 -1
  180. package/dist/assets/getValidReactChildren-DPiNgBSM.js +0 -1
  181. package/dist/assets/index-EyhFROpx.js +0 -1
  182. package/dist/assets/omit-B07LOFnR.js +0 -1
  183. package/dist/assets/schema-CbMP50vC.js +0 -1
  184. package/dist/assets/sdk-8zqQRufe.js +0 -1
  185. package/dist/assets/toUpper-NnRBh7Fo.js +0 -1
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-BkKGnide.js","./index-BojVbZw0.js","./index-oYJVEvEN.js","./metric-CiNgH_tm.js","./click-to-copy-Ej5vUTZR.js","./index-CetxjOR4.js","./useLocalStorage-DrRAHSy6.js","./index-D1Xg-WES.js","./FilterList-DaUCH-oq.js","./CSSTransition-DNQ9D2zK.js","./emotion-cache.browser.esm-BKb81Oqx.js","./index-yYXVqxlj.js","./redux-DfszZyTl.js","./typeof-QjJsDpFa.js","./depsEqual-DfiSjGDF.js","./index-DOV4j9Xg.js","./TableSearch-DTxk-XEV.js","./Search-_DW2WIA7.js","./Clear-p844YSwh.js","./MoreVert-DIGG56nA.js","./status-DPf6KSuT.js","./url-evaluation-je_DqWx8.js","./actions-rj1WgPwO.js","./get-safe-url-Cuqqffna.js","./ButtonGroup-ChSK0wST.js","./getValidReactChildren-DPiNgBSM.js","./permission-DameKqO6.js","./install-from-url-Ehaondnu.js","./without-wallet-nJ_sZ-Wg.js","./index-Gf-l8_nu.js","./cloneDeep-Ba3aXNUu.js","./Autocomplete-CcAxh0ub.js","./ListSubheader-Hh3VbYlw.js","./ListItemButton-C_QR03A_.js","./Stepper-DYxiNj41.js","./Launch-DS5gvqhh.js","./Add-BymIQBtf.js","./index-CsAeHLaJ.js","./schema-CbMP50vC.js","./index-BvXZoEXP.js","./toLower-BMJtQmSy.js","./index-ynYCdfgX.js","./url-join-DJY-Qasn.js","./wait-container-DT_8Jv4t.js","./use-mobile-CiA019Iw.js","./DeleteOutline-CCV79tdr.js","./spaces-D8W9oSU1.js","./api-Dfd-W8my.js","./index-6RpNlUXw.js","./item-DDx7OQOD.js","./ChevronLeft-meShZeXO.js","./ChevronRight-Dbp6SWVd.js","./blocklet-BFZSXHzf.js","./Verified-BInuzHap.js","./VerifiedUser-ii-wCS7I.js","./Done-BqBB1uAk.js","./delete-confirm-Dz69MAu0.js","./item-G0iZE90Q.css","./engine-BhzKUVLU.js","./ArrowDropDown-ndgFCjTY.js","./Breadcrumbs-CSaJ00xP.js","./index-zzs1-5cA.js","./index-br0Yc9xd.js","./index.esm-tAsUUhHo.js","./switch-control-C7a0YAjY.js","./Switch-C6V5HrKP.js","./Link-BCe5qQeR.js","./logo-BKA11TRi.js","./Refresh-C4oW4Rhz.js","./LoadingButton-D9J8aueN.js","./rotate-session-key-BwK5-Edg.js","./is-path-prefix-equal-tOARVLuw.js","./Edit-tcaHLZwO.js","./CallMerge-O-LHHdxA.js","./CardContent-CT_RUWPw.js","./Slider-CCJ6QWNJ.js","./visuallyHidden-Dan1xhjv.js","./index-cTnbzuAx.js","./download-C978t_bv.js","./download-1sZ_L4eJ.css","./index-eIJb2ap_.js","./audit-logs-C2BTJuBo.js","./index-BcSklsUP.js","./decode-DPztD6kB.js","./index-gnjjKJuC.css","./shorten-label-K42tqImX.js","./team-BIASMfBE.js","./index-Bx5fxhO5.js","./ViewList-DXpY0bh9.js","./use-mobile-DpB9DOv8.js","./client-kxHC35hM.js","./AdapterDayjs-DTe0H3sA.js","./useThemeProps-BHnFz5Rn.js","./ErrorOutline-EYQE3srx.js","./index-DvPvczBM.js","./sdk-8zqQRufe.js","./actions-D2CRUeMK.js","./index-CDo4jf6C.js","./Google-B7s7IngH.js","./chain-CRTvHqpE.js","./list-header-DLBFnxRG.js","./ToggleButtonGroup-BRNwPp_U.js","./index-B3zdiR4I.js","./index-ZgkIHsf0.css","./useAsyncRetry-tHEIeLbe.js","./useAsync-DC5_iMZM.js","./detail-BnT9dQ5L.js","./index-C63bSXKY.js","./index-C5u5PlQ4.js","./invitation-Ci8HwvdV.js","./index-3Gr8DDQi.js","./wrap-locale-CRGOQGWL.js","./index-DisxfPKg.js","./index-CggE-p2z.js","./index-oYMWAdg8.js","./agreement-DSmE5Hd3.js","./index-Bi6RkZIu.js","./index-DnEBdfll.js","./index-CULQHTfE.js","./traffic-s6-mNuLF.js","./iframe-CWQD2D2P.js","./index-DBii9-f-.js","./base-chart-Co4CMrhA.js","./index-Bnxl9k2v.js","./index-DRYJ0xIl.js","./memory-DWcKQvu0.js","./index-30uk3Zde.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-B7ZNrnM-.js","./index-BojVbZw0.js","./index-BXV5YZlG.js","./metric-DOzyE6hY.js","./click-to-copy-CJEiBY5P.js","./index-BupHbkeI.js","./useLocalStorage-W8XXMbhN.js","./index-B4DvnAQV.js","./FilterList-D2ht4WCu.js","./CSSTransition-CJXB5Ckq.js","./emotion-cache.browser.esm-VTZJ-Izu.js","./index-D4bHWSDT.js","./redux-DfszZyTl.js","./typeof-QjJsDpFa.js","./depsEqual-0t8DQthz.js","./index-s0Wlu-Gu.js","./TableSearch-igEmPOVc.js","./Search-C1c8IWNt.js","./Clear-m97-RV9G.js","./MoreVert-CfjoPFTT.js","./status-DhAxXp8T.js","./url-evaluation-BLZfb0Dg.js","./actions-B3_8uzvm.js","./get-safe-url-B_6dDPbh.js","./ButtonGroup-C-ePb6nh.js","./getValidReactChildren-BldpnGjG.js","./permission-y2eN7M97.js","./install-from-url-giLwGmDP.js","./without-wallet-BU0U8gNN.js","./index-BbFJaRoB.js","./cloneDeep-BvpAoeCE.js","./Autocomplete-CkAm7uIi.js","./ListSubheader-fOlFzbU6.js","./ListItemButton-D3M-CdH1.js","./Stepper-BzTuZEkI.js","./Launch-D6fDEUZE.js","./Add-C-qoFDXR.js","./index-D0VlfeTl.js","./schema-Cwcp4lCp.js","./index-DWI-Juvh.js","./toLower-D-d8Dv0x.js","./index-Qd4Npqh6.js","./url-join-CXIuL0JQ.js","./wait-container-a86uX6DP.js","./use-mobile-BB8wRni0.js","./DeleteOutline-BmVJ0SRH.js","./spaces-CVUV04Qu.js","./api-DOfnx6Rg.js","./index-a8uqiYfW.js","./item-1_haAiVQ.js","./ChevronLeft-FPu3ob1r.js","./ChevronRight-s7Ge6wbK.js","./blocklet-BALghaj0.js","./Verified-B5S0Jn97.js","./VerifiedUser-BZcaTXsE.js","./Done-CkFmbhWG.js","./delete-confirm-DLDRKoJo.js","./item-G0iZE90Q.css","./engine-G4cXU1O1.js","./ArrowDropDown--DVNnyqn.js","./Breadcrumbs-Dc_me3zp.js","./index-uNZWrXL2.js","./index-DaLwUIz-.js","./index.esm-XPslm4nt.js","./switch-control-C0sPQYWg.js","./Switch-DuGwzUc3.js","./Link-z2jprwfY.js","./logo-BKA11TRi.js","./Refresh-PALCSyuU.js","./LoadingButton-BmX7Jusm.js","./rotate-session-key-DanP3i86.js","./is-path-prefix-equal-lT3S9weM.js","./Edit-K2FEE6nK.js","./CallMerge-BZEo0Wnz.js","./CardContent-Cz2BZ_i0.js","./Slider-BO5ploI0.js","./visuallyHidden-Dan1xhjv.js","./index-1lRds6IP.js","./download-C9mWRkM0.js","./download-1sZ_L4eJ.css","./index-CgV386d2.js","./audit-logs-kFOQ8piR.js","./index-CuettTd7.js","./decode-DPztD6kB.js","./index-gnjjKJuC.css","./shorten-label-DnZXaTPM.js","./team-DYENwSX2.js","./index-Dm5ajuS5.js","./ViewList-bh6Ajs2i.js","./use-mobile-D_qdydKi.js","./client-CruQZ9FM.js","./AdapterDayjs-lZH9dene.js","./useThemeProps-B4Om35fj.js","./ErrorOutline-DKoJsbYj.js","./index-DvpXXioO.js","./sdk-BvWTXJtP.js","./actions-x67maLIz.js","./index-3xw63xev.js","./Google-B_iUD-qe.js","./chain-BhwRxbuE.js","./list-header-xkvwak1A.js","./ToggleButtonGroup-B3aaJd0b.js","./index-CYSduNA_.js","./index-ZgkIHsf0.css","./useAsyncRetry-C9ik6Acy.js","./useAsync-CE04Oyzr.js","./detail-Cg4TjDi0.js","./index-B3DXtbtv.js","./index-BKr-jX9v.js","./invitation-BFMjKnvT.js","./index-Q1c8rnen.js","./wrap-locale-Cq-ah7SY.js","./index-Cp7n-akO.js","./index-pSHx8NNU.js","./index-fLIxpU-m.js","./agreement-PUXVGdXT.js","./index-CsVvkoWj.js","./index-D9gay98p.js","./index-B6L-XwR3.js","./traffic-C2RBXLkf.js","./iframe-CdJEjD_P.js","./index-DBii9-f-.js","./base-chart-B0Hyb60u.js","./index-BqOT1vg4.js","./index-DRYJ0xIl.js","./memory-BvjAc2Nx.js","./index-DfB3-fEf.js"])))=>i.map(i=>d[i]);
2
2
  function _mergeNamespaces(be,Ce){for(var Se=0;Se<Ce.length;Se++){const Te=Ce[Se];if(typeof Te!="string"&&!Array.isArray(Te)){for(const Re in Te)if(Re!=="default"&&!(Re in be)){const ke=Object.getOwnPropertyDescriptor(Te,Re);ke&&Object.defineProperty(be,Re,ke.get?ke:{enumerable:!0,get:()=>Te[Re]})}}}return Object.freeze(Object.defineProperty(be,Symbol.toStringTag,{value:"Module"}))}(function(){const Ce=document.createElement("link").relList;if(Ce&&Ce.supports&&Ce.supports("modulepreload"))return;for(const Re of document.querySelectorAll('link[rel="modulepreload"]'))Te(Re);new MutationObserver(Re=>{for(const ke of Re)if(ke.type==="childList")for(const Le of ke.addedNodes)Le.tagName==="LINK"&&Le.rel==="modulepreload"&&Te(Le)}).observe(document,{childList:!0,subtree:!0});function Se(Re){const ke={};return Re.integrity&&(ke.integrity=Re.integrity),Re.referrerPolicy&&(ke.referrerPolicy=Re.referrerPolicy),Re.crossOrigin==="use-credentials"?ke.credentials="include":Re.crossOrigin==="anonymous"?ke.credentials="omit":ke.credentials="same-origin",ke}function Te(Re){if(Re.ep)return;Re.ep=!0;const ke=Se(Re);fetch(Re.href,ke)}})();var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs$1(be){return be&&be.__esModule&&Object.prototype.hasOwnProperty.call(be,"default")?be.default:be}function getAugmentedNamespace(be){if(Object.prototype.hasOwnProperty.call(be,"__esModule"))return be;var Ce=be.default;if(typeof Ce=="function"){var Se=function Te(){var Re=!1;try{Re=this instanceof Te}catch{}return Re?Reflect.construct(Ce,arguments,this.constructor):Ce.apply(this,arguments)};Se.prototype=Ce.prototype}else Se={};return Object.defineProperty(Se,"__esModule",{value:!0}),Object.keys(be).forEach(function(Te){var Re=Object.getOwnPropertyDescriptor(be,Te);Object.defineProperty(Se,Te,Re.get?Re:{enumerable:!0,get:function(){return be[Te]}})}),Se}var jsxRuntime={exports:{}},reactJsxRuntime_production={};/**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.js
@@ -533,7 +533,7 @@ ${Re}-----END CERTIFICATE-----
533
533
  word-break: break-word;
534
534
  `;function y$7({...be}){const{user:Ce,avatarSize:Se=40,renderCustomContent:Te,infoType:Re=a$9.Minimal,renderFields:ke,popupRenderFields:Le,...Pe}=be;return jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",flexDirection:"column",width:"100%",flex:1,height:"100%"},children:[jsxRuntimeExports.jsx(D$4,{user:Ce,avatarSize:Se,...Pe}),Re===a$9.Basic&&jsxRuntimeExports.jsx(le$2,{user:Ce,renderFields:ke}),jsxRuntimeExports.jsx(Box,{className:"user-card__footer",children:Te&&jsxRuntimeExports.jsx(Box,{sx:{mt:1.5},children:Te()})})]})}function l$h({...be}){const{infoType:Ce=a$9.Minimal}=be;switch(Ce){case a$9.NameOnly:return jsxRuntimeExports.jsx(c$5,{...be});default:return jsxRuntimeExports.jsx(y$7,{...be})}}function p$7({children:be,sx:Ce={}}){const Se=useTheme();return jsxRuntimeExports.jsx(Box,{sx:o$a({p:2,backgroundColor:Se.palette.background.paper,border:"1px solid",borderColor:"divider",borderRadius:1,maxWidth:500,minWidth:320,display:"flex"},Ce||null),children:be})}function b$b({children:be,cardType:Ce=l$k.Detailed,variant:Se="box",containerRef:Te=void 0,sx:Re={}}){const ke={minWidth:320,p:2,borderRadius:1,...Ce===l$k.Detailed?{border:"1px solid",borderColor:"divider"}:{}};return Se==="paper"?jsxRuntimeExports.jsx(Paper,{ref:Te,elevation:0,sx:ke,children:be}):jsxRuntimeExports.jsx(Box,{ref:Te,sx:o$a(ke,{display:"flex",alignItems:Ce===l$k.AvatarOnly?"center":"flex-start",gap:2},Re||null),children:be})}function g$a(be){const{cardType:Ce=l$k.Detailed,showHoverCard:Se}=be,Te=Se!==void 0?Se:Ce===l$k.AvatarOnly,Re=reactExports.useRef(null),[ke,Le]=reactExports.useState(()=>be.user||null);if(reactExports.useEffect(()=>{let Oe=!0;return be.user?Le(be.user):be.did&&S$5(be.did)&&!be.user&&I$7(be.did).then(qe=>{Oe&&Le(qe||{fullName:"Anonymous",did:be.did,avatar:""})}),()=>{Oe=!1}},[be.did,be.user]),!ke)return jsxRuntimeExports.jsx($$5,{did:be.did,size:be.avatarSize,...be.avatarProps});const Pe=()=>jsxRuntimeExports.jsx(p$7,{sx:be.popupSx,children:jsxRuntimeExports.jsx(l$h,{...be,shouldShowHoverCard:!1,user:ke,avatarProps:be.popupAvatarProps,shortenLabelProps:be.popupShortenLabelProps||be.shortenLabelProps,renderFields:be.popupRenderFields,renderName:be.popupRenderName,infoType:be.popupInfoType||be.infoType,didProps:be.popupDidProps||be.didProps,showDid:be.popupShowDid||be.showDid})});return Ce===l$k.AvatarOnly?jsxRuntimeExports.jsx(u$d,{...be,shouldShowHoverCard:Te,renderCardContent:Pe,user:ke}):jsxRuntimeExports.jsx(b$b,{containerRef:Re,cardType:Ce,sx:be.sx,children:jsxRuntimeExports.jsx(l$h,{...be,shouldShowHoverCard:Te,renderCardContent:Pe,user:ke})})}const s$8=reactExports.createContext({blocklet:null,masterBlocklet:null}),{Provider:g$9,Consumer:M$2}=s$8;function j$5({children:be,baseUrl:Ce="",loading:Se=null}){const[Te,Re]=reactExports.useState(null),[ke,Le]=reactExports.useState(null),Pe=useMemoizedFn(async()=>{if(!Ce||window.location.href.startsWith(Ce))throw new Error("no blocklet data");return await l$t(Ce)});return useAsyncEffect(async()=>{let Oe=null,qe=null;try{Oe=await Pe()}catch{Oe=globalThis.blocklet||globalThis.env}if(Oe&&s$d(Oe)){const je=o$f(Oe);je&&(qe=await l$t(je.appUrl))}Re(Oe),Le(qe)},[Ce]),jsxRuntimeExports.jsx(g$9,{value:{blocklet:Te,masterBlocklet:ke},children:Te?be:Se||null})}function E$6(){const{blocklet:be,masterBlocklet:Ce}=reactExports.use(s$8);return{blocklet:be,masterBlocklet:Ce}}function p$6(be){function Ce({...Te}){const{blocklet:Re,masterBlocklet:ke}=E$6();return jsxRuntimeExports.jsx(be,{...Te,blocklet:Re,masterBlocklet:ke})}function Se({baseUrl:Te,...Re}){return jsxRuntimeExports.jsx(j$5,{baseUrl:Te,children:jsxRuntimeExports.jsx(Ce,{baseUrl:Te,...Re})})}return Se}var n$6={call:function(be,Ce,Se){var Te="";typeof Ce=="function"&&(Se=Ce,Ce={});var Re={data:Ce===void 0?null:Ce};if(typeof Se=="function"){var ke="dscb"+window.dscb++;window[ke]=Se,Re._dscbstub=ke}return Re=JSON.stringify(Re),window._dsbridge?Te=_dsbridge.call(be,Re):(window._dswk||navigator.userAgent.indexOf("_dsbridge")!=-1)&&(Te=prompt("_dsbridge="+be,Re)),JSON.parse(Te||"{}").data},register:function(be,Ce,Se){var Te=Se?window._dsaf:window._dsf;window._dsInit||(window._dsInit=!0,setTimeout(function(){n$6.call("_dsb.dsinit")},0)),typeof Ce=="object"?Te._obs[be]=Ce:Te[be]=Ce},registerAsyn:function(be,Ce){this.register(be,Ce,!0)},hasNativeMethod:function(be,Ce){return this.call("_dsb.hasNativeMethod",{name:be,type:Ce||"all"})},disableJavascriptDialogBlock:function(be){this.call("_dsb.disableJavascriptDialogBlock",{disable:be!==!1})},canUseBridge(){return!!(window._dsbridge||window._dswk||navigator.userAgent.indexOf("_dsbridge")!=-1)}};(function(){if(!n$6.canUseBridge()||window._dsf)return;const be=window.close;var Ce={_dsf:{_obs:{}},_dsaf:{_obs:{}},dscb:0,dsBridge:n$6,close:function(){n$6.call("_dsb.closePage"),be()},_handleMessageFromNative:function(Te){var Re=JSON.parse(Te.data),ke={id:Te.callbackId,complete:!0},Le=this._dsf[Te.method],Pe=this._dsaf[Te.method],Oe=function(Ze,Ye){ke.data=Ze.apply(Ye,Re),n$6.call("_dsb.returnValue",ke)},qe=function(Ze,Ye){Re.push(function(tt,nt){ke.data=tt,ke.complete=nt!==!1,n$6.call("_dsb.returnValue",ke)}),Ze.apply(Ye,Re)};if(Le)Oe(Le,this._dsf);else if(Pe)qe(Pe,this._dsaf);else{var je=Te.method.split(".");if(je.length<2)return;var Fe=je.pop(),He=je.join("."),Ge=this._dsf._obs,Ke=Ge[He]||{},Je=Ke[Fe];if(Je&&typeof Je=="function"){Oe(Je,Ke);return}if(Ge=this._dsaf._obs,Ke=Ge[He]||{},Je=Ke[Fe],Je&&typeof Je=="function"){qe(Je,Ke);return}}}};for(var Se in Ce)window[Se]=Ce[Se];n$6.register("_hasJavascriptMethod",function(Le,Re){var ke=Le.split(".");if(ke.length<2)return!!(_dsf[ke]||_dsaf[ke]);var Le=ke.pop(),Pe=ke.join("."),Oe=_dsf._obs[Pe]||_dsaf._obs[Pe];return Oe&&!!Oe[Le]})})();const f$6="1",g$8={register(...be){n$6.canUseBridge()?n$6.register(...be):console.warn("dsbridge is not available")},registerAsyn(...be){n$6.canUseBridge()?n$6.registerAsyn(...be):console.warn("dsbridge is not available")},call(...be){n$6.call(...be)},asyncCall(...be){return new Promise((Ce,Se)=>{n$6.call(...be,Te=>{try{const Re=JSON.parse(Te);if(Re.code===0){const ke=JSON.parse(Re.data);Ce(ke)}else Se(new Error(Re.error))}catch{Ce(Te)}})})},shareMessage(be){const{content:Ce,imgUrl:Se,success:Te,fail:Re}=be;if(!Ce&&!Se){Re("params error");return}n$6.call("arcShare",JSON.stringify({content:Ce,imgUrl:Se}),ke=>{const Le=JSON.parse(ke);Le&&Le.code===0?typeof Te=="function"&&Te(ke):typeof Re=="function"&&Re(ke)})},showLoading(){n$6.call("arcShowLoading")},hideLoading(){n$6.call("arcHideLoading")},showToast(be){be&&typeof be=="string"&&n$6.call("arcToast",be)},chooseImgs(be){const{limit:Ce,success:Se,fail:Te}=be;n$6.call("arcChooseImgs",JSON.stringify({limit:Ce}),Re=>{const ke=JSON.parse(Re);ke&&ke.code===0?typeof Se=="function"&&Se(Re):typeof Te=="function"&&Te(Re)})},previewImgs(be){const{imgs:Ce}=be;!Ce||Ce.length===0||n$6.call("arcPreviewImgs",JSON.stringify(be))},isSetPWD(be){const{success:Ce,fail:Se}=be;n$6.call("arcIsSetPWD","",Te=>{const Re=JSON.parse(Te);Re&&Re.code===0?typeof Ce=="function"&&Ce(Te):typeof Se=="function"&&Se(Te)})},isCodeABOk(be){const{success:Ce,fail:Se}=be;n$6.call("arcIsCodeABOk","",Te=>{const Re=JSON.parse(Te);Re&&Re.code===0?typeof Ce=="function"&&Ce(Te):typeof Se=="function"&&Se(Te)})},callArc(be,Ce={}){return new Promise((Se,Te)=>{const Re=["arc",be].join("__"),ke={...Ce,_version:f$6};n$6.call(Re,ke,Le=>{try{const Pe=JSON.parse(Le);if(Pe?._version===f$6)if(Pe.code===0)try{const Oe=JSON.parse(Pe.data);Se(Oe)}catch{console.warn("Failed to parse result.data"),Se(Pe.data)}else Te(new Error(Pe.error));else Se(Pe)}catch{console.warn("Failed to parse resString"),Se(Le)}})})},registerBlocklet(be,Ce=()=>{}){if(n$6.canUseBridge()){const Se=["blocklet",be].join("__");n$6.registerAsyn(Se,(...Te)=>{const Re=Te.map(ke=>{try{return JSON.parse(ke)}catch{return ke}});Ce(...Re)})}else console.warn("dsbridge is not available")}};var naclFastExports=requireNaclFast();const l$g=getDefaultExportFromCjs$1(naclFastExports),overheadLength=l$g.box.publicKeyLength+l$g.box.overheadLength;var util$3,hasRequiredUtil$3;function requireUtil$3(){if(hasRequiredUtil$3)return util$3;hasRequiredUtil$3=1;const be="Input must be an string, Buffer or Uint8Array";function Ce(Le){let Pe;if(Le instanceof Uint8Array)Pe=Le;else if(typeof Le=="string")Pe=new TextEncoder().encode(Le);else throw new Error(be);return Pe}function Se(Le){return Array.prototype.map.call(Le,function(Pe){return(Pe<16?"0":"")+Pe.toString(16)}).join("")}function Te(Le){return(4294967296+Le).toString(16).substring(1)}function Re(Le,Pe,Oe){let qe=`
535
535
  `+Le+" = ";for(let je=0;je<Pe.length;je+=2){if(Oe===32)qe+=Te(Pe[je]).toUpperCase(),qe+=" ",qe+=Te(Pe[je+1]).toUpperCase();else if(Oe===64)qe+=Te(Pe[je+1]).toUpperCase(),qe+=Te(Pe[je]).toUpperCase();else throw new Error("Invalid size "+Oe);je%6===4?qe+=`
536
- `+new Array(Le.length+4).join(" "):je<Pe.length-2&&(qe+=" ")}console.log(qe)}function ke(Le,Pe,Oe){let qe=new Date().getTime();const je=new Uint8Array(Pe);for(let He=0;He<Pe;He++)je[He]=He%256;const Fe=new Date().getTime();console.log("Generated random input in "+(Fe-qe)+"ms"),qe=Fe;for(let He=0;He<Oe;He++){const Ge=Le(je),Ke=new Date().getTime(),Je=Ke-qe;qe=Ke,console.log("Hashed in "+Je+"ms: "+Ge.substring(0,20)+"..."),console.log(Math.round(Pe/(1<<20)/(Je/1e3)*100)/100+" MB PER SECOND")}}return util$3={normalizeInput:Ce,toHex:Se,debugPrint:Re,testSpeed:ke},util$3}var blake2b_1,hasRequiredBlake2b;function requireBlake2b(){if(hasRequiredBlake2b)return blake2b_1;hasRequiredBlake2b=1;const be=requireUtil$3();function Ce(Ye,tt,nt){const it=Ye[tt]+Ye[nt];let ot=Ye[tt+1]+Ye[nt+1];it>=4294967296&&ot++,Ye[tt]=it,Ye[tt+1]=ot}function Se(Ye,tt,nt,it){let ot=Ye[tt]+nt;nt<0&&(ot+=4294967296);let ft=Ye[tt+1]+it;ot>=4294967296&&ft++,Ye[tt]=ot,Ye[tt+1]=ft}function Te(Ye,tt){return Ye[tt]^Ye[tt+1]<<8^Ye[tt+2]<<16^Ye[tt+3]<<24}function Re(Ye,tt,nt,it,ot,ft){const St=qe[ot],Ct=qe[ot+1],Ht=qe[ft],Bt=qe[ft+1];Ce(Oe,Ye,tt),Se(Oe,Ye,St,Ct);let qt=Oe[it]^Oe[Ye],rt=Oe[it+1]^Oe[Ye+1];Oe[it]=rt,Oe[it+1]=qt,Ce(Oe,nt,it),qt=Oe[tt]^Oe[nt],rt=Oe[tt+1]^Oe[nt+1],Oe[tt]=qt>>>24^rt<<8,Oe[tt+1]=rt>>>24^qt<<8,Ce(Oe,Ye,tt),Se(Oe,Ye,Ht,Bt),qt=Oe[it]^Oe[Ye],rt=Oe[it+1]^Oe[Ye+1],Oe[it]=qt>>>16^rt<<16,Oe[it+1]=rt>>>16^qt<<16,Ce(Oe,nt,it),qt=Oe[tt]^Oe[nt],rt=Oe[tt+1]^Oe[nt+1],Oe[tt]=rt>>>31^qt<<1,Oe[tt+1]=qt>>>31^rt<<1}const ke=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),Le=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3],Pe=new Uint8Array(Le.map(function(Ye){return Ye*2})),Oe=new Uint32Array(32),qe=new Uint32Array(32);function je(Ye,tt){let nt=0;for(nt=0;nt<16;nt++)Oe[nt]=Ye.h[nt],Oe[nt+16]=ke[nt];for(Oe[24]=Oe[24]^Ye.t,Oe[25]=Oe[25]^Ye.t/4294967296,tt&&(Oe[28]=~Oe[28],Oe[29]=~Oe[29]),nt=0;nt<32;nt++)qe[nt]=Te(Ye.b,4*nt);for(nt=0;nt<12;nt++)Re(0,8,16,24,Pe[nt*16+0],Pe[nt*16+1]),Re(2,10,18,26,Pe[nt*16+2],Pe[nt*16+3]),Re(4,12,20,28,Pe[nt*16+4],Pe[nt*16+5]),Re(6,14,22,30,Pe[nt*16+6],Pe[nt*16+7]),Re(0,10,20,30,Pe[nt*16+8],Pe[nt*16+9]),Re(2,12,22,24,Pe[nt*16+10],Pe[nt*16+11]),Re(4,14,16,26,Pe[nt*16+12],Pe[nt*16+13]),Re(6,8,18,28,Pe[nt*16+14],Pe[nt*16+15]);for(nt=0;nt<16;nt++)Ye.h[nt]=Ye.h[nt]^Oe[nt]^Oe[nt+16]}const Fe=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function He(Ye,tt,nt,it){if(Ye===0||Ye>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(tt&&tt.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(nt&&nt.length!==16)throw new Error("Illegal salt, expected Uint8Array with length is 16");if(it&&it.length!==16)throw new Error("Illegal personal, expected Uint8Array with length is 16");const ot={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:Ye};Fe.fill(0),Fe[0]=Ye,tt&&(Fe[1]=tt.length),Fe[2]=1,Fe[3]=1,nt&&Fe.set(nt,32),it&&Fe.set(it,48);for(let ft=0;ft<16;ft++)ot.h[ft]=ke[ft]^Te(Fe,ft*4);return tt&&(Ge(ot,tt),ot.c=128),ot}function Ge(Ye,tt){for(let nt=0;nt<tt.length;nt++)Ye.c===128&&(Ye.t+=Ye.c,je(Ye,!1),Ye.c=0),Ye.b[Ye.c++]=tt[nt]}function Ke(Ye){for(Ye.t+=Ye.c;Ye.c<128;)Ye.b[Ye.c++]=0;je(Ye,!0);const tt=new Uint8Array(Ye.outlen);for(let nt=0;nt<Ye.outlen;nt++)tt[nt]=Ye.h[nt>>2]>>8*(nt&3);return tt}function Je(Ye,tt,nt,it,ot){nt=nt||64,Ye=be.normalizeInput(Ye),it&&(it=be.normalizeInput(it)),ot&&(ot=be.normalizeInput(ot));const ft=He(nt,tt,it,ot);return Ge(ft,Ye),Ke(ft)}function Ze(Ye,tt,nt,it,ot){const ft=Je(Ye,tt,nt,it,ot);return be.toHex(ft)}return blake2b_1={blake2b:Je,blake2bHex:Ze,blake2bInit:He,blake2bUpdate:Ge,blake2bFinal:Ke},blake2b_1}var blake2bExports=requireBlake2b();const blake=getDefaultExportFromCjs$1(blake2bExports);function nonce(be,Ce){var Se=blake.blake2bInit(l$g.box.nonceLength,null);return blake.blake2bUpdate(Se,be),blake.blake2bUpdate(Se,Ce),blake.blake2bFinal(Se)}function zero(be){for(var Ce=0;Ce<be.length;Ce++)be[Ce]=0}function seal$1(be,Ce){var Se=new Uint8Array(overheadLength+be.length),Te=l$g.box.keyPair();Se.set(Te.publicKey);var Re=nonce(Te.publicKey,Ce),ke=l$g.box(be,Re,Ce,Te.secretKey);return Se.set(ke,Te.publicKey.length),zero(Te.secretKey),Se}function open(be,Ce,Se){var Te=be.subarray(0,l$g.box.publicKeyLength),Re=nonce(Te,Ce),ke=be.subarray(l$g.box.publicKeyLength);return l$g.box.open(ke,Re,Te,Se)}const g$7={seal:seal$1,open};let i$6=class extends Error{};function h$6(be,{throwOnError:Ce=!0,returnRaw:Se=!1,allowProtocols:Te=["https:","http:"],allowDomains:Re=void 0}={}){Re===void 0&&(Re=window.blocklet?.domainAliases||[],Re.push(window.location.href));try{let ke;be.startsWith("/")?ke=window.location.origin:be.startsWith("./")&&(ke=window.location.href);const Le=new URL(be,ke),Pe=Re&&Re.map(Oe=>{try{return new URL(Oe).hostname}catch{return new URL(`https://${Oe}`).hostname}});if(Te!==null&&!Te.includes(Le.protocol)){if(console.error(`Invalid protocol: ${Le.protocol}`),Ce)throw new i$6(`Invalid protocol: ${Le.protocol}`);return null}if(Pe!==null&&!Pe.includes(Le.hostname)){if(console.error(`Invalid host: ${Le.hostname}`),Ce)throw new i$6(`Invalid host: ${Le.hostname}`);return null}return Se?be:Le.href}catch(ke){if(ke instanceof i$6){if(Ce)throw ke;return null}if(console.error(`Failed to convert url: ${be}`),Ce)throw new Error(`Failed to convert url: ${be}`);return null}}var browser$5={exports:{}},ms,hasRequiredMs;function requireMs(){if(hasRequiredMs)return ms;hasRequiredMs=1;var be=1e3,Ce=be*60,Se=Ce*60,Te=Se*24,Re=Te*7,ke=Te*365.25;ms=function(je,Fe){Fe=Fe||{};var He=typeof je;if(He==="string"&&je.length>0)return Le(je);if(He==="number"&&isFinite(je))return Fe.long?Oe(je):Pe(je);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(je))};function Le(je){if(je=String(je),!(je.length>100)){var Fe=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(je);if(Fe){var He=parseFloat(Fe[1]),Ge=(Fe[2]||"ms").toLowerCase();switch(Ge){case"years":case"year":case"yrs":case"yr":case"y":return He*ke;case"weeks":case"week":case"w":return He*Re;case"days":case"day":case"d":return He*Te;case"hours":case"hour":case"hrs":case"hr":case"h":return He*Se;case"minutes":case"minute":case"mins":case"min":case"m":return He*Ce;case"seconds":case"second":case"secs":case"sec":case"s":return He*be;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return He;default:return}}}}function Pe(je){var Fe=Math.abs(je);return Fe>=Te?Math.round(je/Te)+"d":Fe>=Se?Math.round(je/Se)+"h":Fe>=Ce?Math.round(je/Ce)+"m":Fe>=be?Math.round(je/be)+"s":je+"ms"}function Oe(je){var Fe=Math.abs(je);return Fe>=Te?qe(je,Fe,Te,"day"):Fe>=Se?qe(je,Fe,Se,"hour"):Fe>=Ce?qe(je,Fe,Ce,"minute"):Fe>=be?qe(je,Fe,be,"second"):je+" ms"}function qe(je,Fe,He,Ge){var Ke=Fe>=He*1.5;return Math.round(je/He)+" "+Ge+(Ke?"s":"")}return ms}var common,hasRequiredCommon;function requireCommon(){if(hasRequiredCommon)return common;hasRequiredCommon=1;function be(Ce){Te.debug=Te,Te.default=Te,Te.coerce=qe,Te.disable=Pe,Te.enable=ke,Te.enabled=Oe,Te.humanize=requireMs(),Te.destroy=je,Object.keys(Ce).forEach(Fe=>{Te[Fe]=Ce[Fe]}),Te.names=[],Te.skips=[],Te.formatters={};function Se(Fe){let He=0;for(let Ge=0;Ge<Fe.length;Ge++)He=(He<<5)-He+Fe.charCodeAt(Ge),He|=0;return Te.colors[Math.abs(He)%Te.colors.length]}Te.selectColor=Se;function Te(Fe){let He,Ge=null,Ke,Je;function Ze(...Ye){if(!Ze.enabled)return;const tt=Ze,nt=Number(new Date),it=nt-(He||nt);tt.diff=it,tt.prev=He,tt.curr=nt,He=nt,Ye[0]=Te.coerce(Ye[0]),typeof Ye[0]!="string"&&Ye.unshift("%O");let ot=0;Ye[0]=Ye[0].replace(/%([a-zA-Z%])/g,(St,Ct)=>{if(St==="%%")return"%";ot++;const Ht=Te.formatters[Ct];if(typeof Ht=="function"){const Bt=Ye[ot];St=Ht.call(tt,Bt),Ye.splice(ot,1),ot--}return St}),Te.formatArgs.call(tt,Ye),(tt.log||Te.log).apply(tt,Ye)}return Ze.namespace=Fe,Ze.useColors=Te.useColors(),Ze.color=Te.selectColor(Fe),Ze.extend=Re,Ze.destroy=Te.destroy,Object.defineProperty(Ze,"enabled",{enumerable:!0,configurable:!1,get:()=>Ge!==null?Ge:(Ke!==Te.namespaces&&(Ke=Te.namespaces,Je=Te.enabled(Fe)),Je),set:Ye=>{Ge=Ye}}),typeof Te.init=="function"&&Te.init(Ze),Ze}function Re(Fe,He){const Ge=Te(this.namespace+(typeof He>"u"?":":He)+Fe);return Ge.log=this.log,Ge}function ke(Fe){Te.save(Fe),Te.namespaces=Fe,Te.names=[],Te.skips=[];const He=(typeof Fe=="string"?Fe:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const Ge of He)Ge[0]==="-"?Te.skips.push(Ge.slice(1)):Te.names.push(Ge)}function Le(Fe,He){let Ge=0,Ke=0,Je=-1,Ze=0;for(;Ge<Fe.length;)if(Ke<He.length&&(He[Ke]===Fe[Ge]||He[Ke]==="*"))He[Ke]==="*"?(Je=Ke,Ze=Ge,Ke++):(Ge++,Ke++);else if(Je!==-1)Ke=Je+1,Ze++,Ge=Ze;else return!1;for(;Ke<He.length&&He[Ke]==="*";)Ke++;return Ke===He.length}function Pe(){const Fe=[...Te.names,...Te.skips.map(He=>"-"+He)].join(",");return Te.enable(""),Fe}function Oe(Fe){for(const He of Te.skips)if(Le(Fe,He))return!1;for(const He of Te.names)if(Le(Fe,He))return!0;return!1}function qe(Fe){return Fe instanceof Error?Fe.stack||Fe.message:Fe}function je(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return Te.enable(Te.load()),Te}return common=be,common}var hasRequiredBrowser$5;function requireBrowser$5(){return hasRequiredBrowser$5||(hasRequiredBrowser$5=1,function(be,Ce){var Se={};Ce.formatArgs=Re,Ce.save=ke,Ce.load=Le,Ce.useColors=Te,Ce.storage=Pe(),Ce.destroy=(()=>{let qe=!1;return()=>{qe||(qe=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),Ce.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Te(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let qe;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(qe=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(qe[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Re(qe){if(qe[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+qe[0]+(this.useColors?"%c ":" ")+"+"+be.exports.humanize(this.diff),!this.useColors)return;const je="color: "+this.color;qe.splice(1,0,je,"color: inherit");let Fe=0,He=0;qe[0].replace(/%[a-zA-Z%]/g,Ge=>{Ge!=="%%"&&(Fe++,Ge==="%c"&&(He=Fe))}),qe.splice(He,0,je)}Ce.log=console.debug||console.log||(()=>{});function ke(qe){try{qe?Ce.storage.setItem("debug",qe):Ce.storage.removeItem("debug")}catch{}}function Le(){let qe;try{qe=Ce.storage.getItem("debug")||Ce.storage.getItem("DEBUG")}catch{}return!qe&&typeof process$1<"u"&&"env"in process$1&&(qe=Se.DEBUG),qe}function Pe(){try{return localStorage}catch{}}be.exports=requireCommon()(Ce);const{formatters:Oe}=be.exports;Oe.j=function(qe){try{return JSON.stringify(qe)}catch(je){return"[UnexpectedJSONParseError]: "+je.message}}}(browser$5,browser$5.exports)),browser$5.exports}var browserExports$2=requireBrowser$5();const Debug=getDefaultExportFromCjs$1(browserExports$2),i$5=Debug,d$8=be=>new Proxy(window.console,{get(Ce,Se){return(...Te)=>{try{return["log","debug","info","warn","error"].includes(Se)?Ce[Se](be,...Te):Ce[Se]instanceof Function?Ce[Se](...Te):Ce[Se]}catch(Re){console.error(`Logger error in ${be}:`,Re);return}}}}),o$7="3.0.19",s$7={version:o$7},_=300,o$6=1800,n$5="/.well-known/service",E$5="login_token",c$4="refresh_token",t$c="/.well-known/service",e$c="/api/did",d$7="__did-connect__",T$6=["scanned","succeed","error","busy"],A$4={chrome:"https://chromewebstore.google.com/detail/did-wallet/ibjflpbmadchofnbpppegdbnifdgincp",edge:"https://microsoftedge.microsoft.com/addons/detail/did-wallet/hjgoblidjnnnamdkinbichnfbmghmafd"},i$4=2*1e3,S$4=6,I$6="nf_lang",l$f=1e3,D$3=window?.blocklet?.DID_SPACES_BASE_URL||"https://www.didspaces.com/app";let o$5=class extends Error{constructor(){super("Failed to open popup")}};const l$e="wallet_url",c$3=()=>window.localStorage.getItem(l$e)||window.env?.webWalletUrl||window.blocklet?.webWalletUrl||"https://web.abtwallet.io/",w$5=be=>{const{protocol:Ce}=window.location;let Se="";try{Se=new URL(be).protocol}catch{Se=""}return Ce===Se},{version:O$3}=s$7,Z$3=i$5("did-connect"),ee=d$8("did-connect");function h$5(be){return(be+"===".slice((be.length+3)%4)).replace(/-/g,"+").replace(/_/g,"/")}function b$a(be){return be.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}const oe$1=be=>window.atob(h$5(be)),ne$2=be=>{const Ce=new URL(be),Se=decodeURIComponent(Ce.searchParams.get("url"));return new URL(Se).searchParams.get("_t_")},W$1=(be,Ce)=>{let Se=Ce?.publisher;if(!Se){if(be?.agentDid)return be.agentDid;Se=be?.publisher}return Se?Se.replace("did:abt:",""):globalThis.blocklet?.appPid||globalThis.blocklet?.appId||globalThis.env?.appId||""},z$4=be=>{const Ce={connected_did:be.did||"",connected_pk:be.pk||"",connected_app:W$1(be.appInfo,be.memberAppInfo)};return be?.connectedWallet?.os&&(Ce.connected_wallet_os=be.connectedWallet.os),Ce},te$1=(be,Ce=!1)=>{if(!be)return;Ce||(be=z$4(be));const Se=ht({expireInDays:7,returnDomain:!1});!isNil(be.connected_did)&&!isNil(be.connected_pk)&&libExports$3.isValid(be.connected_did)&&libExports$3.isFromPublicKey(be.connected_did,be.connected_pk)&&(Cookies.set("connected_did",be.connected_did,Se),Cookies.set("connected_pk",be.connected_pk,Se)),!isNil(be.connected_app)&&libExports$3.isValid(be.connected_app)&&Cookies.set("connected_app",be.connected_app,Se),be.connected_wallet_os&&Cookies.set("connected_wallet_os",be.connected_wallet_os,Se)},se$3=be=>b$a(Buffer$1$1.from(be).toString("base64")),u$b=be=>Uint8Array.from(Buffer$1$1.from(h$5(be),"base64")),ie$2=(be,Ce,Se)=>{const Te=g$7.open(Uint8Array.from(Buffer$1$1.from(be,"base64")),u$b(Ce),u$b(Se));return JSON.parse(Buffer$1$1.from(Te).toString("utf8"))},ae$2=(be,Ce)=>Buffer$1$1.from(g$7.seal(Uint8Array.from(Buffer$1$1.from(be)),u$b(Ce))).toString("base64"),ce$1=(be,Ce="_t_")=>{const Se=new URL(be),Te={baseUrl:Se.origin,prefix:Se.pathname.replace(/\/auth$/,""),token:Se.searchParams.get(Ce)||""};if(!Te.baseUrl)throw new Error("Invalid next workflow: origin empty");if(!Te.token)throw new Error("Invalid next workflow: token not found");return Te},f$5=(be,Ce)=>{let Se=be.message;const{response:Te}=be;return Te&&(Se=Te.data?.error||Te.data?.message||Te.data||Ce,Se=typeof Se=="object"?Ce:Se),Se},pe=(be,Ce,Se)=>{if(!be)return be;if(!be.name)return f$5(be,Ce);switch(be.name){case"NotAllowedError":return Se?Se("webauthn.error.canceled"):"Authentication was canceled";case"SecurityError":return Se?Se("webauthn.error.security"):"A security error occurred during authentication";case"NotSupportedError":return Se?Se("webauthn.error.notSupported"):"This browser does not support passkey authentication";case"AbortError":return Se?Se("webauthn.error.aborted"):"Authentication was aborted";default:return console.warn("Unhandled WebAuthn error type:",be.name),f$5(be,Ce)}},le$1=(be={},{lazy:Ce=!1,lazyTime:Se=300}={})=>{const Te={...be.headers,"x-did-connect-version":O$3},Re=createAxios({...be,headers:Te},{lazy:Ce,lazyTime:Se});return Re.interceptors.request.use(ke=>{const Le=Q$5();return Le&&(ke.headers["x-blocklet-visitor-id"]=Le),ke}),Re},ue$2=(be=0)=>new Promise(Ce=>{setTimeout(()=>{Ce()},be)});function de$2(){if(typeof window>"u")return null;const be=window.navigator.languages&&window.navigator.languages[0]||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage||window.navigator.systemLanguage||null;return{"zh-CN":"zh","zh-TW":"zh",zh:"zh",en:"en"}[be]||"en"}function me$1(be,Ce){return[void 0,null,""].includes(be)?Ce:be/86400}async function we$1(){const be=window.location.href;try{const Ce=new URL(be),Se=Ce.searchParams.get(d$7);if(Se){Ce.searchParams.delete(d$7);const Te=JSON.parse(Buffer$1$1.from(Se,"base64").toString("utf-8"));if(isString$1(Te.forceConnected)&&isUndefined$1(Te.sourceAppPid)){const Re=await new BlockletSDK().user.getUserPublicInfo({did:Te.forceConnected});isUndefined$1(Re?.sourceAppPid)||(Te.sourceAppPid=Re.sourceAppPid)}return{params:Te,url:Ce.href}}}catch{console.warn("Failed to decode did-connect url params")}return{params:null,url:be}}const fe=(be,{width:Ce=680,height:Se=720,name:Te="did-connect:popup",offsetX:Re=0,offsetY:ke=0}={})=>{const Le=h$6(be,{allowDomains:null}),Pe=window.screenX+(window.innerWidth-Ce)/2+Re,Oe=window.screenY+(window.innerHeight-Se)/2+ke,qe=[`left=${Pe}`,`top=${Oe}`,`width=${Ce}`,`height=${Se}`,"resizable=no","scrollbars=yes","status=yes","popup=yes"],je=window.open("",Te,qe.join(","));if(je===null)throw new o$5;return je.location.href=withQuery(Le,{opener:window.location.origin}),je},ge=be=>new Promise((Ce,Se)=>{let Te,Re;const ke=({data:Le})=>{if(Le&&Le.type==="authorization_response"){if(Le?.error){console.error(Le.error);return}setTimeout(()=>{be.popup?.close(),clearTimeout(Re),clearInterval(Te),window.removeEventListener("message",ke,!1),Ce(Le)},be.closeTimeout||0)}};Re=setTimeout(()=>{clearInterval(Te),Se(new Error("Timeout")),window.removeEventListener("message",ke,!1)},(be.timeoutInSeconds||o$6)*1e3),Te=setInterval(()=>{be.popup?.closed&&(clearInterval(Te),clearTimeout(Re),window.removeEventListener("message",ke,!1),Se(new Error("Popup closed")))},1e3),window.addEventListener("message",ke)}),r$8=l$g.box.keyPair();function z$3(){const[be,Ce]=useLocalStorageState("__encKey",{defaultValue:se$3(r$8.publicKey),deserializer:Re=>Re,serializer:Re=>Re}),[Se,Te]=useLocalStorageState("__decKey",{defaultValue:se$3(r$8.secretKey),deserializer:Re=>Re,serializer:Re=>Re});return reactExports.useEffect(()=>{localStorage.getItem("__encKey")||Ce(se$3(r$8.publicKey)),localStorage.getItem("__decKey")||Te(se$3(r$8.secretKey))},[]),{encryptKey:be,decryptKey:Se,decrypt:(Re,ke=be,Le=Se)=>ie$2(Re,ke,Le),encrypt:(Re,ke=be)=>ae$2(Re,ke)}}const e$b=reactExports.createContext();function v$6(be){return be?.did}function o$4(be){return be?.connectedAccounts||be?.extraConfigs?.connectedAccounts||[]}function w$4(be){return be?.sourceProvider||be?.extraConfigs?.sourceProvider||"wallet"}function D$2(be){return o$4(be).map(Ce=>Ce.provider)}function g$6(be){return o$4(be).map(Ce=>Ce.did)}function r$7(be){return o$4(be).find(Ce=>Ce.provider==="wallet")}function P$3(be){return r$7(be)?.did}function m$a({session:be}){const[Ce,Se]=reactExports.useState({did:"",wallet:"",walletDid:"",permanentDid:"",connectedDids:[],connectedAccounts:[],sourceProvider:"",sourceProviders:[]});return reactExports.useEffect(()=>{if(be?.user){const Te=v$6(be.user),Re=P$3(be.user),ke=o$4(be.user),Le=g$6(be.user),Pe=r$7(be.user),Oe=w$4(be.user),qe=D$2(be.user);Se({did:Te,wallet:Pe,walletDid:Re,permanentDid:Te,connectedDids:Le,connectedAccounts:ke,sourceProvider:Oe,sourceProviders:qe})}},[be?.user]),Ce}function G$3(be){const Ce={prefix:e$c,checkInterval:2e3,checkTimeout:_*1e3,locale:"en",tokenKey:"_t_",encKey:"_ek_",baseUrl:"",messages:{},extraParams:{},forceConnected:!0,enabledConnectTypes:[],disableSwitchApp:!1,hideCloseButton:!1,qrcodeSize:160,options:{}};function Se(Te){const{encryptKey:Re,decrypt:ke}=z$3(),Le=d$e(),Pe=reactExports.use(e$b),Oe=P$3(Pe?.session?.user),qe=pick(Te,["action","checkTimeout","locale","messages","baseUrl","prefix","checkInterval","closeTimeout","extraParams","tokenKey","encKey","forceConnected","provider","enabledConnectTypes","disableSwitchApp","hideCloseButton","options"]),je=Object.assign({},Ce,qe);je.forceConnected===!0&&(je.forceConnected=Oe||!0);const Fe=Te.serviceHost||window?.env?.apiPrefix||window?.blocklet?.prefix||"/";!Ut(je.prefix)&&!je.prefix?.startsWith(n$5)&&(je.prefix=joinURL(Fe,je.prefix));const He=Le.arcSphere&&Te.open&&!window.forceOpenConnect,{run:Ge}=useDebounceFn(useMemoizedFn(async()=>{Z$3("bridge call arcDidConnect",Te,qe,je);try{const Ke=await g$8.callArc("didConnect",{...je,[je.encKey]:Re});if(Z$3("bridge callArc didConnect: result",Ke),Ke.action==="error"){Te.onError(Ke.data);return}if(Ke.action==="success"){Te.onSuccess(Ke.data,ke);return}Te.onClose(Ke.data)}catch(Ke){logger.error("Failed to callArc didConnect",Ke)}}),{leading:!0,wait:300});return reactExports.useEffect(()=>{He&&(Z$3("WrapConnect call"),Ge())},[Ge,He]),He?null:jsxRuntimeExports.jsx(be,{...Te})}return Se.propTypes={open:o$g.bool},Se}function F$5({blocklet:be,action:Ce,sourceAppPid:Se,connectState:Te,enableSwitchApp:Re}){const ke=reactExports.use(e$b),Le=useCreation(()=>Re===!0?!0:!(Re===!1||ke?.session?.user&&!["login","invite","connect-to-did-space","connect-to-did-domain"].includes(Ce)),[Ce,ke?.session?.user]),Pe=useCreation(()=>{if(isUndefined$1(Se)){const Oe=s$d(be),qe=o$f(be);if(Oe&&qe?.appPid)return qe.appPid}return Se},[Se,be]);return{appInfoList:useCreation(()=>g$f(be).filter(Oe=>Le?!0:isUndefined$1(Se)?isUndefined$1(Te.sourceAppPid)?ke?.session?.user?Oe.sourceAppPid===ke.session.user.sourceAppPid:Oe.sourceAppPid===Pe:Oe.sourceAppPid===Te.sourceAppPid:Oe.sourceAppPid===Se),[Le,Se,Te.sourceAppPid,Pe,ke?.session?.user]),autoGenerateSourceAppPid:Pe,canSwitchApp:Le}}const e$a={en:{generateError:"Request new QR Code failed",checkError:"Status check failed!",scanned:"Use your wallet to continue operation...",mfaCode:"We sent you a verification request on your DID Wallet, enter the digits below to confirm.",refresh:"Refresh",open:"Open in DID Wallet",openDidConnect:"Open DID Connect",error:"We encountered some errors when processing the request",invalidSessionStatus:"Invalid session status",success:"Success",wait:"Wait a second",waiting:"Waiting for next workflow to complete...",failed:"Failed",oops:"Oops",forbidden:"Login user and wallet user mismatch, please logout, then login to retry",webWallet:"Auth with Web Wallet",cancel:"Cancel",close:"Close",retry:"Retry",retryForbidden:"Please start this workflow from the beginning",getWallet:"Don't have the DID Wallet? Get it now.",back:"Back",connect:"Use the following to connect",connecting:"Connecting to your",connectingSuffix:"Or use the following to connect",connected:"Connected to your",busyTitle:"Busy",busyDesc:"Busy processing another DID Connect request",loginWithBefore:"Login with ",loginWithAfter:"",bindOAuth:"Bind third party login",bind:"Bind ",loginOAuthFailed:"Login with third party failed",loginWithAnotherAccount:"Login with another account",quickLoginDescription:"The following accounts have been detected in the current unified login environment. Click the following accounts to log in quickly.",quickLogin:"Login {appName} with {masterAppName} account",sessionFrom:"Session founded from {appName} blocklet",loginWithThisAccount:"Click to login with this account",chooseAccount:"Choose an account",lostPassport:"Lost your passport?",lostPassportTips:"If you have lost your passport, you can click here to claim back.",download:"Download",downloadTips:"Click to download DID Wallet if you don't have one",scanWithWallet1:"Scan with your",scanWithWallet2:" ",openInWallet:"Open in DID Wallet",webExtension:"Web Wallet Extension",connectButton:"Connect",switch:"Switch",requestConnect:"Requesting Connection",continueInWallet:"Please continue in {method}",loginWithBelow:"Login using the following methods",otherAccount:"Other account",DIDWalletPreviewTitle:"DID Wallet",DIDWalletPreviewDescription:"Scan this QR Code with DID Wallet.",DIDWalletWebPreviewTitle:"DID Wallet (Extension)",DIDWalletWebPreviewDescription:"Unleash Web3 with top security & privacy via auto sub-accounts in DID wallet",githubPreviewTitle:"GitHub",githubPreviewDescription:"Sign in with GitHub - Faster, more reliable, and convenient. Log in with your GitHub account in one click, simple and efficient.",googlePreviewTitle:"Google",googlePreviewDescription:"Sign in with Google - Faster, safer, easier. Sign in with Google with a single tap.",applePreviewTitle:"Apple",applePreviewDescription:"Sign in with Apple - The fast, easy way to sign in to apps and websites.",passkeyPreviewTitle:"Passkey",passkeyPreviewDescription:"Sign in with Passkey - More secure and convenient authentication. No passwords to remember, easily access apps and websites.",didConnectTitle:"DID Connect",didConnectDescription:"Decentralized identities and apps, W3C DID-based, future-ready."},zh:{generateError:"二维码生成失败",checkError:"扫码状态检查失败",scanned:"请到您的钱包上继续操作……",mfaCode:"我们给你的 DID Wallet 发送了一个二次验证请求,请输入下面的数字完成验证",refresh:"刷新",open:"在 DID Wallet 中打开",openDidConnect:"打开 DID Connect",error:"服务器开小差了!",invalidSessionStatus:"无效的会话状态",success:"成功",failed:"失败",wait:"请稍候",waiting:"正在等待下个流程完成...",forbidden:"登录用户和扫码用户不匹配,为保障安全,请退出后重新登录",oops:"哎呀",webWallet:"使用 Web Wallet 验证",cancel:"取消",close:"关闭",retry:"重试",retryForbidden:"请关闭当前弹窗并重新开始当前流程",getWallet:"还没有 DID Wallet? 现在下载.",back:"返回",connect:"请选择以下方式之一连接",connecting:"正在自动连接您的",connectingSuffix:"或选择以下方式手动连接",connected:"已连接您的",busyTitle:"钱包繁忙",busyDesc:"正在处理其他请求",loginWithBefore:"使用",loginWithAfter:"登录",bindOAuth:"绑定第三方登录",bind:"绑定",loginOAuthFailed:"第三方登录失败",loginWithAnotherAccount:"使用其他账户登录",quickLoginDescription:"检测到当前统一登录环境中已存在下列账户,点击以下账户,进行快捷登录",quickLogin:"使用 {masterAppName} 账户登录 {appName}",sessionFrom:"发现自 {appName} 应用",loginWithThisAccount:"点击使用此账号登录",chooseAccount:"选择一个账号",lostPassport:"找回通行证",lostPassportTips:"如果您丢失了登录通行证,您可以点击这里来找回。",download:"下载",downloadTips:"如果您还没有 DID Wallet,点击下载",scanWithWallet1:"使用",scanWithWallet2:"扫码二维码",openInWallet:"使用 DID Wallet 打开",webExtension:"浏览器插件",connectButton:"连接",switch:"切换",requestConnect:"正在请求连接",continueInWallet:"请在 {method} 中继续完成您的操作",loginWithBelow:"使用以下方式进行登录",otherAccount:"其他账号",DIDWalletPreviewTitle:"DID Connect",DIDWalletPreviewDescription:"请使用 DID Wallet 扫描二维码",DIDWalletWebPreviewTitle:"DID Wallet (Extension)",DIDWalletWebPreviewDescription:"使用 DID Wallet 自动创建子账户,保障 Web3 安全与隐私",githubPreviewTitle:"GitHub",githubPreviewDescription:"使用 GitHub 账户登录 - 更快捷、更可靠、更便捷。使用您的 GitHub 账号一键登录,简单高效。",googlePreviewTitle:"Google",googlePreviewDescription:"使用 Google 账户登录 - 更​快捷、​更​安全、​更​轻松。​使用​ Google 账号​登录,​一点​即达。",applePreviewTitle:"Apple",applePreviewDescription:"使用 Apple 账户登录 - 登录 App 和网站的快速、简单方法。",passkeyPreviewTitle:"Passkey",passkeyPreviewDescription:"使用 Passkey 账户登录 - 更安全、更便捷的身份验证方式。无需记忆密码,轻松登录各类应用和网站",didConnectTitle:"DID Connect",didConnectDescription:"面向未来的基于 W3C DID 去中心化身份和应用"}},T$5=reactExports.createContext({isWalletWebview:!1,isMobile:!1,matchSmallScreen:!1,blocklet:null}),{Provider:ue$1,Consumer:Ie}=T$5;function de$1({children:be,blocklet:Ce,masterBlocklet:Se=void 0,action:Te,extraParams:Re={},locale:ke="en",testOnlyBorderColor:Le=void 0,...Pe}){const Oe=useUpdate(),[qe,je]=reactExports.useState([]),[Fe,He]=reactExports.useState(""),Ge=useCreation(()=>new Map(qe.map(wt=>[wt.name,wt])),[qe]),Ke=useMemoizedFn(wt=>Ge.get(wt)),Je=useLatest(Fe),Ze=useMemoizedFn((wt,It={})=>p$a(e$a,wt,ke,"en",It)),Ye=reactExports.use(e$b),tt=useReactive({sourceAppPid:void 0,status:"created",autoActiveWebview:!0,deeplink:void 0,chooseMethod:"",retryConnect:noop$1}),nt=reactExports.useRef({cancelCount:0}),it=d$e(),{appInfoList:ot,autoGenerateSourceAppPid:ft,canSwitchApp:St}=F$5({blocklet:Ce,connectState:tt,action:Te,sourceAppPid:Re?.sourceAppPid,enableSwitchApp:Re?.forceSwitch||Re?.enableSwitchApp}),Ct=reactExports.useRef(null),Ht=useSize(Ct),Bt=useCreation(()=>(Ht?.width||0)<500,[Ht?.width]),qt=useCreation(()=>{if(St)return{...Re,sourceAppPid:isUndefined$1(tt.sourceAppPid)?ft:tt.sourceAppPid};const wt=o$f(Ce)?.appPid,It=o$f(globalThis.blocklet)?.appPid;return Ye?.session?.user&&(wt===It||!wt)?isUndefined$1(Re?.sourceAppPid)?{...Re,sourceAppPid:Ye.session.user?.sourceAppPid}:Re:{...Re,sourceAppPid:ft}},[St,Re,tt.sourceAppPid,Te,ft,Ye?.session?.user]),rt=useCreation(()=>{const wt=window?.navigator?.userAgent;return wt.indexOf("Edge")>-1||wt.indexOf("Edg")>-1?"edge":wt.indexOf("Chrome")>-1?"chrome":"unknown"},[]);reactExports.useEffect(()=>{tt.sourceAppPid=qt.sourceAppPid},[qt.sourceAppPid]);const ut=useMemoizedFn(wt=>{tt.status=wt||"created"}),gt=globalThis.blocklet?u$l(Ce):globalThis.env,Tt=useCreation(()=>{if(Le)return Le;const wt=gt.appPid,It=X$3(wt),_t=It?void 0:getDIDMotifInfo(wt);return It?Ot(wt):_t.color},[gt.appId,Le]),bt=useCreation(()=>({isWalletWebview:it.wallet||it.arcSphere,isMobile:it.mobile.any,matchSmallScreen:Bt,connectState:tt,staticState:nt,reactiveState:tt,appInfoList:ot,extraParams:qt,blocklet:Ce,masterBlocklet:Se,browserBrand:rt,currentAppInfo:gt,currentAppColor:Tt,t:Ze,locale:ke,action:Te,changeStatus:ut,getPlugin:Ke,latestActivePlugin:Je,plugins:qe,setPlugins:je,selectedPlugin:Fe,setSelectedPlugin:He,forceUpdate:Oe}),[it.wallet,it.arcSphere,it.mobile.any,Bt,JSON.stringify(tt),JSON.stringify(ot),JSON.stringify(qt),Ce,Se,ke,Fe,Oe,gt,Tt]);return jsxRuntimeExports.jsx(ue$1,{value:bt,children:jsxRuntimeExports.jsx(Box,{...Pe,ref:Ct,children:be})})}de$1.propTypes={children:o$g.any.isRequired,blocklet:o$g.object.isRequired,masterBlocklet:o$g.object,action:o$g.string.isRequired,extraParams:o$g.object,locale:o$g.string,testOnlyBorderColor:o$g.string};function xe(){return reactExports.use(T$5)}const data$x={width:24,height:24,body:'<path fill="currentColor" d="M16.15 13H5q-.425 0-.713-.288T4 12q0-.425.288-.713T5 11h11.15L13.3 8.15q-.3-.3-.288-.7t.288-.7q.3-.3.713-.313t.712.288L19.3 11.3q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.575 4.575q-.3.3-.712.288t-.713-.313q-.275-.3-.288-.7t.288-.7L16.15 13Z"/>'};function b$9({title:be,description:Ce=null,icon:Se,iconScale:Te=.95,slotProps:Re={},mode:ke="normal",...Le}){const Pe=useTheme();return jsxRuntimeExports.jsxs(Box,{...Le,sx:o$a({display:"flex",alignItems:"center",gap:1,cursor:"pointer",p:1,borderRadius:1,backgroundColor:"grey.50",textDecoration:"none",transition:"background-color 0.5s","&:hover, &:active, &.did-connect__choose-item__active":{backgroundColor:"grey.100"},"& .other-item-icon":{opacity:"0",transform:"translateX(-100%)",transition:"transform 0.2s ease, opacity 0.1s ease"},"&:hover":{"& .other-item-icon":{display:"inline-block",transform:"translateX(0)",opacity:"1"}}},Le?.sx),children:[jsxRuntimeExports.jsx(Box,{className:"arc-login-item__icon",sx:o$a({display:"flex",justifyContent:"center",alignItems:"center",color:"text.primary"},Re?.icon?.sx),children:reactExports.isValidElement(Se)?Se:jsxRuntimeExports.jsx(Box,{component:Icon,icon:Se,sx:{transform:`scale(${Te})`,width:24,height:24}})}),ke==="normal"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",flexDirection:"column",flex:1},children:[jsxRuntimeExports.jsx(Typography,{sx:{fontSize:14,fontWeight:"500",color:"text.primary"},children:be}),Ce?jsxRuntimeExports.jsx(Typography,{sx:{color:"text.secondary",fontSize:12,lineHeight:1},children:Ce}):null]}),jsxRuntimeExports.jsx(Icon,{className:"other-item-icon",icon:data$x,fontSize:"1.3rem",color:Pe.palette.primary.main})]}):null]})}b$9.propTypes={title:o$g.string.isRequired,description:o$g.string,icon:o$g.any.isRequired,iconScale:o$g.number,slotProps:o$g.object,mode:o$g.oneOf(["simple","normal"])};function A$3({width:be=24,height:Ce=24,...Se}){return jsxRuntimeExports.jsx("img",{width:be,height:Ce,alt:"did-wallet-logo",...Se,src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWd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WZpeF9fY2xpcDAiPjxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgcng9IjYiIGZpbGw9IiNmZmYiLz48L2NsaXBQYXRoPjwvZGVmcz48L3N2Zz4="})}A$3.propTypes={width:o$g.oneOfType([o$g.number,o$g.string]),height:o$g.oneOfType([o$g.number,o$g.string])};function A$2({disableSwitchApp:be,tokenState:Ce}){const{appInfoList:Se,connectState:Te}=xe(),{encryptKey:Re}=z$3();return useCreation(()=>{if(!Ce.url)return"";const ke=!be&&Se.length>1,Le=new URL(Ce.url||"https://www.didwallet.io"),Pe=Le.searchParams.get("url");if(Pe&&ke){const Oe=new URL(decodeURIComponent(Pe));Oe.searchParams.set("_ek_",Re);const qe=Q$5();qe&&Oe.searchParams.set("vid",qe),Te?.sourceAppPid&&Oe.searchParams.set("spid",Te?.sourceAppPid),Le.searchParams.set("url",Oe.toString())}return Le.toString()},[Ce.url,Se.length,Te?.sourceAppPid,Re])}function N$2({ref:be=null,tokenState:Ce,locale:Se,tokenKey:Te,onClick:Re=noop$1,disableSwitchApp:ke=!1,...Le}){const Pe=useReactive({loading:!1}),{isWalletWebview:Oe}=xe(),qe="DID Wallet",je=d$e(),Fe=new URL(window.location.href),He=A$2({disableSwitchApp:ke,tokenState:Ce}),Ge=useCreation(()=>{if(!Ce.url)return"";Fe.searchParams.set("tokenKey",Ce.token);const nt=new URL(He);je.wallet||(nt.searchParams.set("callback",encodeURIComponent(Fe)),nt.searchParams.set("callback_delay",1500)),nt.searchParams.set("locale",Se);const it=new TextEncoder,ot=nt.href.length;let ft="",St="";try{if(Ce.appInfo){const Ct=it.encode(JSON.stringify(Ce.appInfo));ft=btoa(String.fromCharCode(...Ct))}if(Ce.memberAppInfo){const Ct=it.encode(JSON.stringify(Ce.memberAppInfo));St=btoa(String.fromCharCode(...Ct))}if(ot+8+ft.length+14+St.length>2e3)throw ee.warn("URL too long, drop appInfo & memberAppInfo",{appInfo:ft,memberAppInfo:St}),new Error("URL too long");St?ft&&(nt.searchParams.set("appInfo",ft),nt.searchParams.set("memberAppInfo",St)):ft&&nt.searchParams.set("appInfo",ft)}catch(Ct){ee.warn("Failed to convert appInfo & memberAppInfo",Ct)}return nt.href.replace(/^https?:\/\//,"abt://")},[Te,Ce.token,Ce.appInfo,Ce.memberAppInfo,Ce.url]),Ke=useMemoizedFn(()=>{Pe.loading=!0,setTimeout(()=>{g$8.call("authAction",{action:"auth",deepLink:Ge})},600),setTimeout(()=>{Pe.loading=!1},2e3)}),Je=useMemoizedFn(()=>{Ce.checking=!0,Ce.status="scanned"}),Ze={};!Oe&&je.mobile.any&&(Ze.component="a",Ze.href=Ge),Ce.url||(Ze.sx={cursor:"not-allowed"});const Ye=useMemoizedFn(nt=>{Ce.url&&(Oe?Ke():je.mobile.any?Je():nt())}),tt=useMemoizedFn(()=>{Ye(Re)});return reactExports.useImperativeHandle(be,()=>({connect:Ye})),jsxRuntimeExports.jsx(b$9,{...Le,...Ze,sx:o$a(Le?.sx,Ze?.sx),title:qe,icon:Pe.loading||!Ce.url?jsxRuntimeExports.jsx(CircularProgress,{color:"primary",size:24,sx:{"& svg":{transform:"scale(0.75)"}}}):jsxRuntimeExports.jsx(A$3,{width:"24px",height:"24px",style:{transform:"scale(0.9)"}}),iconScale:1,onClick:tt})}N$2.propTypes={tokenState:o$g.object.isRequired,tokenKey:o$g.string.isRequired,locale:o$g.string.isRequired,onClick:o$g.func,disableSwitchApp:o$g.bool,ref:o$g.any};function j$4({ref:be=null,tokenState:Ce,locale:Se="en",webWalletUrl:Te,onClick:Re=noop$1,disableSwitchApp:ke=!1,...Le}){const{browserBrand:Pe}=xe(),Oe=N$7(),qe=useReactive({loading:!1}),je=A$2({disableSwitchApp:ke,tokenState:Ce}),Fe=useMemoizedFn(()=>{qe.loading=!0,xt({webWalletUrl:Te,url:je,locale:Se,appInfo:Ce.appInfo,memberAppInfo:Ce.memberAppInfo})?.type==="web"?qe.loading=!1:setTimeout(()=>{qe.loading=!1},3e3)}),He=useMemoizedFn(Ze=>{Ce.url&&(Re(Ze),Ze?.preventDefault(),Fe())});reactExports.useImperativeHandle(be,()=>({connect:Fe}));const Ge=useCreation(()=>Pe==="edge"?A$4.edge:Pe==="chrome"?A$4.chrome:null,[Pe]),Ke=useCreation(()=>{const Ze={};return Oe?Ze.onClick=He:Ge?(Ze.component="a",Ze.href=Ge,Ze.target="_blank",Ze.rel="noopener"):Ze.onClick=He,Ce.url||(Ze.sx={cursor:"not-allowed"}),Ze},[He,Ce.url]),Je=useCreation(()=>Oe||Ge?"DID Wallet (Extension)":"DID Wallet (Web)",[Oe,Ge]);return jsxRuntimeExports.jsx(b$9,{...Le,sx:o$a({textDecoration:"none"},Le?.sx,Ke.sx),title:Je,icon:qe.loading||!Ce.url?jsxRuntimeExports.jsx(CircularProgress,{color:"primary",size:24,sx:{"& svg":{transform:"scale(0.75)"}}}):jsxRuntimeExports.jsx(A$3,{width:"24px",height:"24px",style:{transform:"scale(0.9)"}}),...omit(Ke,"sx")})}j$4.propTypes={tokenState:o$g.object.isRequired,locale:o$g.string,webWalletUrl:o$g.string.isRequired,onClick:o$g.func,disableSwitchApp:o$g.bool,ref:o$g.any};function $$4({children:be,title:Ce="",prepend:Se=null,toolbar:Te=null,actions:Re=null,showCloseButton:ke=!0,actionsPosition:Le="right",PaperProps:Pe={},slotProps:Oe={},...qe}){const je=useTheme(),Fe=useMediaQuery(je.breakpoints.down("md")),He=Ce||ke||Te,Ge=(Je,Ze)=>{const{onClose:Ye}=qe;Ye&&Ye(Je,Ze)};Pe.style=Object.assign({minWidth:300,minHeight:300},Pe.style);const Ke=jsxRuntimeExports.jsx(IconButton,{className:"ux-dialog_closeButton",onClick:Je=>Ge(Je,"closeButton"),children:jsxRuntimeExports.jsx(CloseIcon,{})});return jsxRuntimeExports.jsxs(H$5,{fullScreen:Fe,onClose:Ge,PaperProps:Pe,...qe,children:[He&&jsxRuntimeExports.jsxs(O$2,{...Oe.header,className:"ux-dialog_header",isMobile:Fe,children:[jsxRuntimeExports.jsxs("div",{className:"ux-dialog_left",children:[ke&&Fe&&Ke,Se&&jsxRuntimeExports.jsx("div",{className:"ux-dialog_prepend",children:Se}),Ce&&jsxRuntimeExports.jsx(Typography,{variant:"h6",className:"ux-dialog_title",children:Ce})]}),jsxRuntimeExports.jsxs("div",{className:"ux-dialog_right",children:[jsxRuntimeExports.jsx("div",{className:"ux-dialog_toolbar",children:Te}),ke&&!Fe&&Ke]})]}),jsxRuntimeExports.jsx(DialogContent,{...Oe.content,children:be}),Re&&jsxRuntimeExports.jsx(DialogActions,{className:`ux-dialog_actions--${Le}`,children:Re})]})}$$4.propTypes={children:o$g.node.isRequired,title:o$g.node,prepend:o$g.node,toolbar:o$g.node,actions:o$g.node,showCloseButton:o$g.bool,actionsPosition:o$g.oneOf(["left","center","right"]),PaperProps:o$g.object,slotProps:o$g.shape({content:o$g.object,header:o$g.object}),onClose:o$g.func};const H$5=m$d(Dialog)`
536
+ `+new Array(Le.length+4).join(" "):je<Pe.length-2&&(qe+=" ")}console.log(qe)}function ke(Le,Pe,Oe){let qe=new Date().getTime();const je=new Uint8Array(Pe);for(let He=0;He<Pe;He++)je[He]=He%256;const Fe=new Date().getTime();console.log("Generated random input in "+(Fe-qe)+"ms"),qe=Fe;for(let He=0;He<Oe;He++){const Ge=Le(je),Ke=new Date().getTime(),Je=Ke-qe;qe=Ke,console.log("Hashed in "+Je+"ms: "+Ge.substring(0,20)+"..."),console.log(Math.round(Pe/(1<<20)/(Je/1e3)*100)/100+" MB PER SECOND")}}return util$3={normalizeInput:Ce,toHex:Se,debugPrint:Re,testSpeed:ke},util$3}var blake2b_1,hasRequiredBlake2b;function requireBlake2b(){if(hasRequiredBlake2b)return blake2b_1;hasRequiredBlake2b=1;const be=requireUtil$3();function Ce(Ye,tt,nt){const it=Ye[tt]+Ye[nt];let ot=Ye[tt+1]+Ye[nt+1];it>=4294967296&&ot++,Ye[tt]=it,Ye[tt+1]=ot}function Se(Ye,tt,nt,it){let ot=Ye[tt]+nt;nt<0&&(ot+=4294967296);let ft=Ye[tt+1]+it;ot>=4294967296&&ft++,Ye[tt]=ot,Ye[tt+1]=ft}function Te(Ye,tt){return Ye[tt]^Ye[tt+1]<<8^Ye[tt+2]<<16^Ye[tt+3]<<24}function Re(Ye,tt,nt,it,ot,ft){const St=qe[ot],Ct=qe[ot+1],Ht=qe[ft],Bt=qe[ft+1];Ce(Oe,Ye,tt),Se(Oe,Ye,St,Ct);let qt=Oe[it]^Oe[Ye],rt=Oe[it+1]^Oe[Ye+1];Oe[it]=rt,Oe[it+1]=qt,Ce(Oe,nt,it),qt=Oe[tt]^Oe[nt],rt=Oe[tt+1]^Oe[nt+1],Oe[tt]=qt>>>24^rt<<8,Oe[tt+1]=rt>>>24^qt<<8,Ce(Oe,Ye,tt),Se(Oe,Ye,Ht,Bt),qt=Oe[it]^Oe[Ye],rt=Oe[it+1]^Oe[Ye+1],Oe[it]=qt>>>16^rt<<16,Oe[it+1]=rt>>>16^qt<<16,Ce(Oe,nt,it),qt=Oe[tt]^Oe[nt],rt=Oe[tt+1]^Oe[nt+1],Oe[tt]=rt>>>31^qt<<1,Oe[tt+1]=qt>>>31^rt<<1}const ke=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),Le=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3],Pe=new Uint8Array(Le.map(function(Ye){return Ye*2})),Oe=new Uint32Array(32),qe=new Uint32Array(32);function je(Ye,tt){let nt=0;for(nt=0;nt<16;nt++)Oe[nt]=Ye.h[nt],Oe[nt+16]=ke[nt];for(Oe[24]=Oe[24]^Ye.t,Oe[25]=Oe[25]^Ye.t/4294967296,tt&&(Oe[28]=~Oe[28],Oe[29]=~Oe[29]),nt=0;nt<32;nt++)qe[nt]=Te(Ye.b,4*nt);for(nt=0;nt<12;nt++)Re(0,8,16,24,Pe[nt*16+0],Pe[nt*16+1]),Re(2,10,18,26,Pe[nt*16+2],Pe[nt*16+3]),Re(4,12,20,28,Pe[nt*16+4],Pe[nt*16+5]),Re(6,14,22,30,Pe[nt*16+6],Pe[nt*16+7]),Re(0,10,20,30,Pe[nt*16+8],Pe[nt*16+9]),Re(2,12,22,24,Pe[nt*16+10],Pe[nt*16+11]),Re(4,14,16,26,Pe[nt*16+12],Pe[nt*16+13]),Re(6,8,18,28,Pe[nt*16+14],Pe[nt*16+15]);for(nt=0;nt<16;nt++)Ye.h[nt]=Ye.h[nt]^Oe[nt]^Oe[nt+16]}const Fe=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function He(Ye,tt,nt,it){if(Ye===0||Ye>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(tt&&tt.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(nt&&nt.length!==16)throw new Error("Illegal salt, expected Uint8Array with length is 16");if(it&&it.length!==16)throw new Error("Illegal personal, expected Uint8Array with length is 16");const ot={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:Ye};Fe.fill(0),Fe[0]=Ye,tt&&(Fe[1]=tt.length),Fe[2]=1,Fe[3]=1,nt&&Fe.set(nt,32),it&&Fe.set(it,48);for(let ft=0;ft<16;ft++)ot.h[ft]=ke[ft]^Te(Fe,ft*4);return tt&&(Ge(ot,tt),ot.c=128),ot}function Ge(Ye,tt){for(let nt=0;nt<tt.length;nt++)Ye.c===128&&(Ye.t+=Ye.c,je(Ye,!1),Ye.c=0),Ye.b[Ye.c++]=tt[nt]}function Ke(Ye){for(Ye.t+=Ye.c;Ye.c<128;)Ye.b[Ye.c++]=0;je(Ye,!0);const tt=new Uint8Array(Ye.outlen);for(let nt=0;nt<Ye.outlen;nt++)tt[nt]=Ye.h[nt>>2]>>8*(nt&3);return tt}function Je(Ye,tt,nt,it,ot){nt=nt||64,Ye=be.normalizeInput(Ye),it&&(it=be.normalizeInput(it)),ot&&(ot=be.normalizeInput(ot));const ft=He(nt,tt,it,ot);return Ge(ft,Ye),Ke(ft)}function Ze(Ye,tt,nt,it,ot){const ft=Je(Ye,tt,nt,it,ot);return be.toHex(ft)}return blake2b_1={blake2b:Je,blake2bHex:Ze,blake2bInit:He,blake2bUpdate:Ge,blake2bFinal:Ke},blake2b_1}var blake2bExports=requireBlake2b();const blake=getDefaultExportFromCjs$1(blake2bExports);function nonce(be,Ce){var Se=blake.blake2bInit(l$g.box.nonceLength,null);return blake.blake2bUpdate(Se,be),blake.blake2bUpdate(Se,Ce),blake.blake2bFinal(Se)}function zero(be){for(var Ce=0;Ce<be.length;Ce++)be[Ce]=0}function seal$1(be,Ce){var Se=new Uint8Array(overheadLength+be.length),Te=l$g.box.keyPair();Se.set(Te.publicKey);var Re=nonce(Te.publicKey,Ce),ke=l$g.box(be,Re,Ce,Te.secretKey);return Se.set(ke,Te.publicKey.length),zero(Te.secretKey),Se}function open(be,Ce,Se){var Te=be.subarray(0,l$g.box.publicKeyLength),Re=nonce(Te,Ce),ke=be.subarray(l$g.box.publicKeyLength);return l$g.box.open(ke,Re,Te,Se)}const g$7={seal:seal$1,open};let i$6=class extends Error{};function h$6(be,{throwOnError:Ce=!0,returnRaw:Se=!1,allowProtocols:Te=["https:","http:"],allowDomains:Re=void 0}={}){Re===void 0&&(Re=window.blocklet?.domainAliases||[],Re.push(window.location.href));try{let ke;be.startsWith("/")?ke=window.location.origin:be.startsWith("./")&&(ke=window.location.href);const Le=new URL(be,ke),Pe=Re&&Re.map(Oe=>{try{return new URL(Oe).hostname}catch{return new URL(`https://${Oe}`).hostname}});if(Te!==null&&!Te.includes(Le.protocol)){if(console.error(`Invalid protocol: ${Le.protocol}`),Ce)throw new i$6(`Invalid protocol: ${Le.protocol}`);return null}if(Pe!==null&&!Pe.includes(Le.hostname)){if(console.error(`Invalid host: ${Le.hostname}`),Ce)throw new i$6(`Invalid host: ${Le.hostname}`);return null}return Se?be:Le.href}catch(ke){if(ke instanceof i$6){if(Ce)throw ke;return null}if(console.error(`Failed to convert url: ${be}`),Ce)throw new Error(`Failed to convert url: ${be}`);return null}}var browser$5={exports:{}},ms,hasRequiredMs;function requireMs(){if(hasRequiredMs)return ms;hasRequiredMs=1;var be=1e3,Ce=be*60,Se=Ce*60,Te=Se*24,Re=Te*7,ke=Te*365.25;ms=function(je,Fe){Fe=Fe||{};var He=typeof je;if(He==="string"&&je.length>0)return Le(je);if(He==="number"&&isFinite(je))return Fe.long?Oe(je):Pe(je);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(je))};function Le(je){if(je=String(je),!(je.length>100)){var Fe=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(je);if(Fe){var He=parseFloat(Fe[1]),Ge=(Fe[2]||"ms").toLowerCase();switch(Ge){case"years":case"year":case"yrs":case"yr":case"y":return He*ke;case"weeks":case"week":case"w":return He*Re;case"days":case"day":case"d":return He*Te;case"hours":case"hour":case"hrs":case"hr":case"h":return He*Se;case"minutes":case"minute":case"mins":case"min":case"m":return He*Ce;case"seconds":case"second":case"secs":case"sec":case"s":return He*be;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return He;default:return}}}}function Pe(je){var Fe=Math.abs(je);return Fe>=Te?Math.round(je/Te)+"d":Fe>=Se?Math.round(je/Se)+"h":Fe>=Ce?Math.round(je/Ce)+"m":Fe>=be?Math.round(je/be)+"s":je+"ms"}function Oe(je){var Fe=Math.abs(je);return Fe>=Te?qe(je,Fe,Te,"day"):Fe>=Se?qe(je,Fe,Se,"hour"):Fe>=Ce?qe(je,Fe,Ce,"minute"):Fe>=be?qe(je,Fe,be,"second"):je+" ms"}function qe(je,Fe,He,Ge){var Ke=Fe>=He*1.5;return Math.round(je/He)+" "+Ge+(Ke?"s":"")}return ms}var common,hasRequiredCommon;function requireCommon(){if(hasRequiredCommon)return common;hasRequiredCommon=1;function be(Ce){Te.debug=Te,Te.default=Te,Te.coerce=qe,Te.disable=Pe,Te.enable=ke,Te.enabled=Oe,Te.humanize=requireMs(),Te.destroy=je,Object.keys(Ce).forEach(Fe=>{Te[Fe]=Ce[Fe]}),Te.names=[],Te.skips=[],Te.formatters={};function Se(Fe){let He=0;for(let Ge=0;Ge<Fe.length;Ge++)He=(He<<5)-He+Fe.charCodeAt(Ge),He|=0;return Te.colors[Math.abs(He)%Te.colors.length]}Te.selectColor=Se;function Te(Fe){let He,Ge=null,Ke,Je;function Ze(...Ye){if(!Ze.enabled)return;const tt=Ze,nt=Number(new Date),it=nt-(He||nt);tt.diff=it,tt.prev=He,tt.curr=nt,He=nt,Ye[0]=Te.coerce(Ye[0]),typeof Ye[0]!="string"&&Ye.unshift("%O");let ot=0;Ye[0]=Ye[0].replace(/%([a-zA-Z%])/g,(St,Ct)=>{if(St==="%%")return"%";ot++;const Ht=Te.formatters[Ct];if(typeof Ht=="function"){const Bt=Ye[ot];St=Ht.call(tt,Bt),Ye.splice(ot,1),ot--}return St}),Te.formatArgs.call(tt,Ye),(tt.log||Te.log).apply(tt,Ye)}return Ze.namespace=Fe,Ze.useColors=Te.useColors(),Ze.color=Te.selectColor(Fe),Ze.extend=Re,Ze.destroy=Te.destroy,Object.defineProperty(Ze,"enabled",{enumerable:!0,configurable:!1,get:()=>Ge!==null?Ge:(Ke!==Te.namespaces&&(Ke=Te.namespaces,Je=Te.enabled(Fe)),Je),set:Ye=>{Ge=Ye}}),typeof Te.init=="function"&&Te.init(Ze),Ze}function Re(Fe,He){const Ge=Te(this.namespace+(typeof He>"u"?":":He)+Fe);return Ge.log=this.log,Ge}function ke(Fe){Te.save(Fe),Te.namespaces=Fe,Te.names=[],Te.skips=[];const He=(typeof Fe=="string"?Fe:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const Ge of He)Ge[0]==="-"?Te.skips.push(Ge.slice(1)):Te.names.push(Ge)}function Le(Fe,He){let Ge=0,Ke=0,Je=-1,Ze=0;for(;Ge<Fe.length;)if(Ke<He.length&&(He[Ke]===Fe[Ge]||He[Ke]==="*"))He[Ke]==="*"?(Je=Ke,Ze=Ge,Ke++):(Ge++,Ke++);else if(Je!==-1)Ke=Je+1,Ze++,Ge=Ze;else return!1;for(;Ke<He.length&&He[Ke]==="*";)Ke++;return Ke===He.length}function Pe(){const Fe=[...Te.names,...Te.skips.map(He=>"-"+He)].join(",");return Te.enable(""),Fe}function Oe(Fe){for(const He of Te.skips)if(Le(Fe,He))return!1;for(const He of Te.names)if(Le(Fe,He))return!0;return!1}function qe(Fe){return Fe instanceof Error?Fe.stack||Fe.message:Fe}function je(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return Te.enable(Te.load()),Te}return common=be,common}var hasRequiredBrowser$5;function requireBrowser$5(){return hasRequiredBrowser$5||(hasRequiredBrowser$5=1,function(be,Ce){var Se={};Ce.formatArgs=Re,Ce.save=ke,Ce.load=Le,Ce.useColors=Te,Ce.storage=Pe(),Ce.destroy=(()=>{let qe=!1;return()=>{qe||(qe=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),Ce.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Te(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let qe;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(qe=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(qe[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Re(qe){if(qe[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+qe[0]+(this.useColors?"%c ":" ")+"+"+be.exports.humanize(this.diff),!this.useColors)return;const je="color: "+this.color;qe.splice(1,0,je,"color: inherit");let Fe=0,He=0;qe[0].replace(/%[a-zA-Z%]/g,Ge=>{Ge!=="%%"&&(Fe++,Ge==="%c"&&(He=Fe))}),qe.splice(He,0,je)}Ce.log=console.debug||console.log||(()=>{});function ke(qe){try{qe?Ce.storage.setItem("debug",qe):Ce.storage.removeItem("debug")}catch{}}function Le(){let qe;try{qe=Ce.storage.getItem("debug")||Ce.storage.getItem("DEBUG")}catch{}return!qe&&typeof process$1<"u"&&"env"in process$1&&(qe=Se.DEBUG),qe}function Pe(){try{return localStorage}catch{}}be.exports=requireCommon()(Ce);const{formatters:Oe}=be.exports;Oe.j=function(qe){try{return JSON.stringify(qe)}catch(je){return"[UnexpectedJSONParseError]: "+je.message}}}(browser$5,browser$5.exports)),browser$5.exports}var browserExports$2=requireBrowser$5();const Debug=getDefaultExportFromCjs$1(browserExports$2),i$5=Debug,d$8=be=>new Proxy(window.console,{get(Ce,Se){return(...Te)=>{try{return["log","debug","info","warn","error"].includes(Se)?Ce[Se](be,...Te):Ce[Se]instanceof Function?Ce[Se](...Te):Ce[Se]}catch(Re){console.error(`Logger error in ${be}:`,Re);return}}}}),o$7="3.0.21",s$7={version:o$7},_=300,o$6=1800,n$5="/.well-known/service",E$5="login_token",c$4="refresh_token",t$c="/.well-known/service",e$c="/api/did",d$7="__did-connect__",T$6=["scanned","succeed","error","busy"],A$4={chrome:"https://chromewebstore.google.com/detail/did-wallet/ibjflpbmadchofnbpppegdbnifdgincp",edge:"https://microsoftedge.microsoft.com/addons/detail/did-wallet/hjgoblidjnnnamdkinbichnfbmghmafd"},i$4=2*1e3,S$4=6,I$6="nf_lang",l$f=1e3,D$3=window?.blocklet?.DID_SPACES_BASE_URL||"https://www.didspaces.com/app";let o$5=class extends Error{constructor(){super("Failed to open popup")}};const l$e="wallet_url",c$3=()=>window.localStorage.getItem(l$e)||window.env?.webWalletUrl||window.blocklet?.webWalletUrl||"https://web.abtwallet.io/",w$5=be=>{const{protocol:Ce}=window.location;let Se="";try{Se=new URL(be).protocol}catch{Se=""}return Ce===Se},{version:O$3}=s$7,Z$3=i$5("did-connect"),ee=d$8("did-connect");function h$5(be){return(be+"===".slice((be.length+3)%4)).replace(/-/g,"+").replace(/_/g,"/")}function b$a(be){return be.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}const oe$1=be=>window.atob(h$5(be)),ne$2=be=>{const Ce=new URL(be),Se=decodeURIComponent(Ce.searchParams.get("url"));return new URL(Se).searchParams.get("_t_")},W$1=(be,Ce)=>{let Se=Ce?.publisher;if(!Se){if(be?.agentDid)return be.agentDid;Se=be?.publisher}return Se?Se.replace("did:abt:",""):globalThis.blocklet?.appPid||globalThis.blocklet?.appId||globalThis.env?.appId||""},z$4=be=>{const Ce={connected_did:be.did||"",connected_pk:be.pk||"",connected_app:W$1(be.appInfo,be.memberAppInfo)};return be?.connectedWallet?.os&&(Ce.connected_wallet_os=be.connectedWallet.os),Ce},te$1=(be,Ce=!1)=>{if(!be)return;Ce||(be=z$4(be));const Se=ht({expireInDays:7,returnDomain:!1});!isNil(be.connected_did)&&!isNil(be.connected_pk)&&libExports$3.isValid(be.connected_did)&&libExports$3.isFromPublicKey(be.connected_did,be.connected_pk)&&(Cookies.set("connected_did",be.connected_did,Se),Cookies.set("connected_pk",be.connected_pk,Se)),!isNil(be.connected_app)&&libExports$3.isValid(be.connected_app)&&Cookies.set("connected_app",be.connected_app,Se),be.connected_wallet_os&&Cookies.set("connected_wallet_os",be.connected_wallet_os,Se)},se$3=be=>b$a(Buffer$1$1.from(be).toString("base64")),u$b=be=>Uint8Array.from(Buffer$1$1.from(h$5(be),"base64")),ie$2=(be,Ce,Se)=>{const Te=g$7.open(Uint8Array.from(Buffer$1$1.from(be,"base64")),u$b(Ce),u$b(Se));return JSON.parse(Buffer$1$1.from(Te).toString("utf8"))},ae$2=(be,Ce)=>Buffer$1$1.from(g$7.seal(Uint8Array.from(Buffer$1$1.from(be)),u$b(Ce))).toString("base64"),ce$1=(be,Ce="_t_")=>{const Se=new URL(be),Te={baseUrl:Se.origin,prefix:Se.pathname.replace(/\/auth$/,""),token:Se.searchParams.get(Ce)||""};if(!Te.baseUrl)throw new Error("Invalid next workflow: origin empty");if(!Te.token)throw new Error("Invalid next workflow: token not found");return Te},f$5=(be,Ce)=>{let Se=be.message;const{response:Te}=be;return Te&&(Se=Te.data?.error||Te.data?.message||Te.data||Ce,Se=typeof Se=="object"?Ce:Se),Se},pe=(be,Ce,Se)=>{if(!be)return be;if(!be.name)return f$5(be,Ce);switch(be.name){case"NotAllowedError":return Se?Se("webauthn.error.canceled"):"Authentication was canceled";case"SecurityError":return Se?Se("webauthn.error.security"):"A security error occurred during authentication";case"NotSupportedError":return Se?Se("webauthn.error.notSupported"):"This browser does not support passkey authentication";case"AbortError":return Se?Se("webauthn.error.aborted"):"Authentication was aborted";default:return console.warn("Unhandled WebAuthn error type:",be.name),f$5(be,Ce)}},le$1=(be={},{lazy:Ce=!1,lazyTime:Se=300}={})=>{const Te={...be.headers,"x-did-connect-version":O$3},Re=createAxios({...be,headers:Te},{lazy:Ce,lazyTime:Se});return Re.interceptors.request.use(ke=>{const Le=Q$5();return Le&&(ke.headers["x-blocklet-visitor-id"]=Le),ke}),Re},ue$2=(be=0)=>new Promise(Ce=>{setTimeout(()=>{Ce()},be)});function de$2(){if(typeof window>"u")return null;const be=window.navigator.languages&&window.navigator.languages[0]||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage||window.navigator.systemLanguage||null;return{"zh-CN":"zh","zh-TW":"zh",zh:"zh",en:"en"}[be]||"en"}function me$1(be,Ce){return[void 0,null,""].includes(be)?Ce:be/86400}async function we$1(){const be=window.location.href;try{const Ce=new URL(be),Se=Ce.searchParams.get(d$7);if(Se){Ce.searchParams.delete(d$7);const Te=JSON.parse(Buffer$1$1.from(Se,"base64").toString("utf-8"));if(isString$1(Te.forceConnected)&&isUndefined$1(Te.sourceAppPid)){const Re=await new BlockletSDK().user.getUserPublicInfo({did:Te.forceConnected});isUndefined$1(Re?.sourceAppPid)||(Te.sourceAppPid=Re.sourceAppPid)}return{params:Te,url:Ce.href}}}catch{console.warn("Failed to decode did-connect url params")}return{params:null,url:be}}const fe=(be,{width:Ce=680,height:Se=720,name:Te="did-connect:popup",offsetX:Re=0,offsetY:ke=0}={})=>{const Le=h$6(be,{allowDomains:null}),Pe=window.screenX+(window.innerWidth-Ce)/2+Re,Oe=window.screenY+(window.innerHeight-Se)/2+ke,qe=[`left=${Pe}`,`top=${Oe}`,`width=${Ce}`,`height=${Se}`,"resizable=no","scrollbars=yes","status=yes","popup=yes"],je=window.open("",Te,qe.join(","));if(je===null)throw new o$5;return je.location.href=withQuery(Le,{opener:window.location.origin}),je},ge=be=>new Promise((Ce,Se)=>{let Te,Re;const ke=({data:Le})=>{if(Le&&Le.type==="authorization_response"){if(Le?.error){console.error(Le.error);return}setTimeout(()=>{be.popup?.close(),clearTimeout(Re),clearInterval(Te),window.removeEventListener("message",ke,!1),Ce(Le)},be.closeTimeout||0)}};Re=setTimeout(()=>{clearInterval(Te),Se(new Error("Timeout")),window.removeEventListener("message",ke,!1)},(be.timeoutInSeconds||o$6)*1e3),Te=setInterval(()=>{be.popup?.closed&&(clearInterval(Te),clearTimeout(Re),window.removeEventListener("message",ke,!1),Se(new Error("Popup closed")))},1e3),window.addEventListener("message",ke)}),r$8=l$g.box.keyPair();function z$3(){const[be,Ce]=useLocalStorageState("__encKey",{defaultValue:se$3(r$8.publicKey),deserializer:Re=>Re,serializer:Re=>Re}),[Se,Te]=useLocalStorageState("__decKey",{defaultValue:se$3(r$8.secretKey),deserializer:Re=>Re,serializer:Re=>Re});return reactExports.useEffect(()=>{localStorage.getItem("__encKey")||Ce(se$3(r$8.publicKey)),localStorage.getItem("__decKey")||Te(se$3(r$8.secretKey))},[]),{encryptKey:be,decryptKey:Se,decrypt:(Re,ke=be,Le=Se)=>ie$2(Re,ke,Le),encrypt:(Re,ke=be)=>ae$2(Re,ke)}}const e$b=reactExports.createContext();function v$6(be){return be?.did}function o$4(be){return be?.connectedAccounts||be?.extraConfigs?.connectedAccounts||[]}function w$4(be){return be?.sourceProvider||be?.extraConfigs?.sourceProvider||"wallet"}function D$2(be){return o$4(be).map(Ce=>Ce.provider)}function g$6(be){return o$4(be).map(Ce=>Ce.did)}function r$7(be){return o$4(be).find(Ce=>Ce.provider==="wallet")}function P$3(be){return r$7(be)?.did}function m$a({session:be}){const[Ce,Se]=reactExports.useState({did:"",wallet:"",walletDid:"",permanentDid:"",connectedDids:[],connectedAccounts:[],sourceProvider:"",sourceProviders:[]});return reactExports.useEffect(()=>{if(be?.user){const Te=v$6(be.user),Re=P$3(be.user),ke=o$4(be.user),Le=g$6(be.user),Pe=r$7(be.user),Oe=w$4(be.user),qe=D$2(be.user);Se({did:Te,wallet:Pe,walletDid:Re,permanentDid:Te,connectedDids:Le,connectedAccounts:ke,sourceProvider:Oe,sourceProviders:qe})}},[be?.user]),Ce}function G$3(be){const Ce={prefix:e$c,checkInterval:2e3,checkTimeout:_*1e3,locale:"en",tokenKey:"_t_",encKey:"_ek_",baseUrl:"",messages:{},extraParams:{},forceConnected:!0,enabledConnectTypes:[],disableSwitchApp:!1,hideCloseButton:!1,qrcodeSize:160,options:{}};function Se(Te){const{encryptKey:Re,decrypt:ke}=z$3(),Le=d$e(),Pe=reactExports.use(e$b),Oe=P$3(Pe?.session?.user),qe=pick(Te,["action","checkTimeout","locale","messages","baseUrl","prefix","checkInterval","closeTimeout","extraParams","tokenKey","encKey","forceConnected","provider","enabledConnectTypes","disableSwitchApp","hideCloseButton","options"]),je=Object.assign({},Ce,qe);je.forceConnected===!0&&(je.forceConnected=Oe||!0);const Fe=Te.serviceHost||window?.env?.apiPrefix||window?.blocklet?.prefix||"/";!Ut(je.prefix)&&!je.prefix?.startsWith(n$5)&&(je.prefix=joinURL(Fe,je.prefix));const He=Le.arcSphere&&Te.open&&!window.forceOpenConnect,{run:Ge}=useDebounceFn(useMemoizedFn(async()=>{Z$3("bridge call arcDidConnect",Te,qe,je);try{const Ke=await g$8.callArc("didConnect",{...je,[je.encKey]:Re});if(Z$3("bridge callArc didConnect: result",Ke),Ke.action==="error"){Te.onError(Ke.data);return}if(Ke.action==="success"){Te.onSuccess(Ke.data,ke);return}Te.onClose(Ke.data)}catch(Ke){logger.error("Failed to callArc didConnect",Ke)}}),{leading:!0,wait:300});return reactExports.useEffect(()=>{He&&(Z$3("WrapConnect call"),Ge())},[Ge,He]),He?null:jsxRuntimeExports.jsx(be,{...Te})}return Se.propTypes={open:o$g.bool},Se}function F$5({blocklet:be,action:Ce,sourceAppPid:Se,connectState:Te,enableSwitchApp:Re}){const ke=reactExports.use(e$b),Le=useCreation(()=>Re===!0?!0:!(Re===!1||ke?.session?.user&&!["login","invite","connect-to-did-space","connect-to-did-domain"].includes(Ce)),[Ce,ke?.session?.user]),Pe=useCreation(()=>{if(isUndefined$1(Se)){const Oe=s$d(be),qe=o$f(be);if(Oe&&qe?.appPid)return qe.appPid}return Se},[Se,be]);return{appInfoList:useCreation(()=>g$f(be).filter(Oe=>Le?!0:isUndefined$1(Se)?isUndefined$1(Te.sourceAppPid)?ke?.session?.user?Oe.sourceAppPid===ke.session.user.sourceAppPid:Oe.sourceAppPid===Pe:Oe.sourceAppPid===Te.sourceAppPid:Oe.sourceAppPid===Se),[Le,Se,Te.sourceAppPid,Pe,ke?.session?.user]),autoGenerateSourceAppPid:Pe,canSwitchApp:Le}}const e$a={en:{generateError:"Request new QR Code failed",checkError:"Status check failed!",scanned:"Use your wallet to continue operation...",mfaCode:"We sent you a verification request on your DID Wallet, enter the digits below to confirm.",refresh:"Refresh",open:"Open in DID Wallet",openDidConnect:"Open DID Connect",error:"We encountered some errors when processing the request",invalidSessionStatus:"Invalid session status",success:"Success",wait:"Wait a second",waiting:"Waiting for next workflow to complete...",failed:"Failed",oops:"Oops",forbidden:"Login user and wallet user mismatch, please logout, then login to retry",webWallet:"Auth with Web Wallet",cancel:"Cancel",close:"Close",retry:"Retry",retryForbidden:"Please start this workflow from the beginning",getWallet:"Don't have the DID Wallet? Get it now.",back:"Back",connect:"Use the following to connect",connecting:"Connecting to your",connectingSuffix:"Or use the following to connect",connected:"Connected to your",busyTitle:"Busy",busyDesc:"Busy processing another DID Connect request",loginWithBefore:"Login with ",loginWithAfter:"",bindOAuth:"Bind third party login",bind:"Bind ",loginOAuthFailed:"Login with third party failed",loginWithAnotherAccount:"Login with another account",quickLoginDescription:"The following accounts have been detected in the current unified login environment. Click the following accounts to log in quickly.",quickLogin:"Login {appName} with {masterAppName} account",sessionFrom:"Session founded from {appName} blocklet",loginWithThisAccount:"Click to login with this account",chooseAccount:"Choose an account",lostPassport:"Lost your passport?",lostPassportTips:"If you have lost your passport, you can click here to claim back.",download:"Download",downloadTips:"Click to download DID Wallet if you don't have one",scanWithWallet1:"Scan with your",scanWithWallet2:" ",openInWallet:"Open in DID Wallet",webExtension:"Web Wallet Extension",connectButton:"Connect",switch:"Switch",requestConnect:"Requesting Connection",continueInWallet:"Please continue in {method}",loginWithBelow:"Login using the following methods",otherAccount:"Other account",DIDWalletPreviewTitle:"DID Wallet",DIDWalletPreviewDescription:"Scan this QR Code with DID Wallet.",DIDWalletWebPreviewTitle:"DID Wallet (Extension)",DIDWalletWebPreviewDescription:"Unleash Web3 with top security & privacy via auto sub-accounts in DID wallet",githubPreviewTitle:"GitHub",githubPreviewDescription:"Sign in with GitHub - Faster, more reliable, and convenient. Log in with your GitHub account in one click, simple and efficient.",googlePreviewTitle:"Google",googlePreviewDescription:"Sign in with Google - Faster, safer, easier. Sign in with Google with a single tap.",applePreviewTitle:"Apple",applePreviewDescription:"Sign in with Apple - The fast, easy way to sign in to apps and websites.",passkeyPreviewTitle:"Passkey",passkeyPreviewDescription:"Sign in with Passkey - More secure and convenient authentication. No passwords to remember, easily access apps and websites.",didConnectTitle:"DID Connect",didConnectDescription:"Decentralized identities and apps, W3C DID-based, future-ready."},zh:{generateError:"二维码生成失败",checkError:"扫码状态检查失败",scanned:"请到您的钱包上继续操作……",mfaCode:"我们给你的 DID Wallet 发送了一个二次验证请求,请输入下面的数字完成验证",refresh:"刷新",open:"在 DID Wallet 中打开",openDidConnect:"打开 DID Connect",error:"服务器开小差了!",invalidSessionStatus:"无效的会话状态",success:"成功",failed:"失败",wait:"请稍候",waiting:"正在等待下个流程完成...",forbidden:"登录用户和扫码用户不匹配,为保障安全,请退出后重新登录",oops:"哎呀",webWallet:"使用 Web Wallet 验证",cancel:"取消",close:"关闭",retry:"重试",retryForbidden:"请关闭当前弹窗并重新开始当前流程",getWallet:"还没有 DID Wallet? 现在下载.",back:"返回",connect:"请选择以下方式之一连接",connecting:"正在自动连接您的",connectingSuffix:"或选择以下方式手动连接",connected:"已连接您的",busyTitle:"钱包繁忙",busyDesc:"正在处理其他请求",loginWithBefore:"使用",loginWithAfter:"登录",bindOAuth:"绑定第三方登录",bind:"绑定",loginOAuthFailed:"第三方登录失败",loginWithAnotherAccount:"使用其他账户登录",quickLoginDescription:"检测到当前统一登录环境中已存在下列账户,点击以下账户,进行快捷登录",quickLogin:"使用 {masterAppName} 账户登录 {appName}",sessionFrom:"发现自 {appName} 应用",loginWithThisAccount:"点击使用此账号登录",chooseAccount:"选择一个账号",lostPassport:"找回通行证",lostPassportTips:"如果您丢失了登录通行证,您可以点击这里来找回。",download:"下载",downloadTips:"如果您还没有 DID Wallet,点击下载",scanWithWallet1:"使用",scanWithWallet2:"扫码二维码",openInWallet:"使用 DID Wallet 打开",webExtension:"浏览器插件",connectButton:"连接",switch:"切换",requestConnect:"正在请求连接",continueInWallet:"请在 {method} 中继续完成您的操作",loginWithBelow:"使用以下方式进行登录",otherAccount:"其他账号",DIDWalletPreviewTitle:"DID Connect",DIDWalletPreviewDescription:"请使用 DID Wallet 扫描二维码",DIDWalletWebPreviewTitle:"DID Wallet (Extension)",DIDWalletWebPreviewDescription:"使用 DID Wallet 自动创建子账户,保障 Web3 安全与隐私",githubPreviewTitle:"GitHub",githubPreviewDescription:"使用 GitHub 账户登录 - 更快捷、更可靠、更便捷。使用您的 GitHub 账号一键登录,简单高效。",googlePreviewTitle:"Google",googlePreviewDescription:"使用 Google 账户登录 - 更​快捷、​更​安全、​更​轻松。​使用​ Google 账号​登录,​一点​即达。",applePreviewTitle:"Apple",applePreviewDescription:"使用 Apple 账户登录 - 登录 App 和网站的快速、简单方法。",passkeyPreviewTitle:"Passkey",passkeyPreviewDescription:"使用 Passkey 账户登录 - 更安全、更便捷的身份验证方式。无需记忆密码,轻松登录各类应用和网站",didConnectTitle:"DID Connect",didConnectDescription:"面向未来的基于 W3C DID 去中心化身份和应用"}},T$5=reactExports.createContext({isWalletWebview:!1,isMobile:!1,matchSmallScreen:!1,blocklet:null}),{Provider:ue$1,Consumer:Ie}=T$5;function de$1({children:be,blocklet:Ce,masterBlocklet:Se=void 0,action:Te,extraParams:Re={},locale:ke="en",testOnlyBorderColor:Le=void 0,...Pe}){const Oe=useUpdate(),[qe,je]=reactExports.useState([]),[Fe,He]=reactExports.useState(""),Ge=useCreation(()=>new Map(qe.map(wt=>[wt.name,wt])),[qe]),Ke=useMemoizedFn(wt=>Ge.get(wt)),Je=useLatest(Fe),Ze=useMemoizedFn((wt,It={})=>p$a(e$a,wt,ke,"en",It)),Ye=reactExports.use(e$b),tt=useReactive({sourceAppPid:void 0,status:"created",autoActiveWebview:!0,deeplink:void 0,chooseMethod:"",retryConnect:noop$1}),nt=reactExports.useRef({cancelCount:0}),it=d$e(),{appInfoList:ot,autoGenerateSourceAppPid:ft,canSwitchApp:St}=F$5({blocklet:Ce,connectState:tt,action:Te,sourceAppPid:Re?.sourceAppPid,enableSwitchApp:Re?.forceSwitch||Re?.enableSwitchApp}),Ct=reactExports.useRef(null),Ht=useSize(Ct),Bt=useCreation(()=>(Ht?.width||0)<500,[Ht?.width]),qt=useCreation(()=>{if(St)return{...Re,sourceAppPid:isUndefined$1(tt.sourceAppPid)?ft:tt.sourceAppPid};const wt=o$f(Ce)?.appPid,It=o$f(globalThis.blocklet)?.appPid;return Ye?.session?.user&&(wt===It||!wt)?isUndefined$1(Re?.sourceAppPid)?{...Re,sourceAppPid:Ye.session.user?.sourceAppPid}:Re:{...Re,sourceAppPid:ft}},[St,Re,tt.sourceAppPid,Te,ft,Ye?.session?.user]),rt=useCreation(()=>{const wt=window?.navigator?.userAgent;return wt.indexOf("Edge")>-1||wt.indexOf("Edg")>-1?"edge":wt.indexOf("Chrome")>-1?"chrome":"unknown"},[]);reactExports.useEffect(()=>{tt.sourceAppPid=qt.sourceAppPid},[qt.sourceAppPid]);const ut=useMemoizedFn(wt=>{tt.status=wt||"created"}),gt=globalThis.blocklet?u$l(Ce):globalThis.env,Tt=useCreation(()=>{if(Le)return Le;const wt=gt.appPid,It=X$3(wt),_t=It?void 0:getDIDMotifInfo(wt);return It?Ot(wt):_t.color},[gt.appId,Le]),bt=useCreation(()=>({isWalletWebview:it.wallet||it.arcSphere,isMobile:it.mobile.any,matchSmallScreen:Bt,connectState:tt,staticState:nt,reactiveState:tt,appInfoList:ot,extraParams:qt,blocklet:Ce,masterBlocklet:Se,browserBrand:rt,currentAppInfo:gt,currentAppColor:Tt,t:Ze,locale:ke,action:Te,changeStatus:ut,getPlugin:Ke,latestActivePlugin:Je,plugins:qe,setPlugins:je,selectedPlugin:Fe,setSelectedPlugin:He,forceUpdate:Oe}),[it.wallet,it.arcSphere,it.mobile.any,Bt,JSON.stringify(tt),JSON.stringify(ot),JSON.stringify(qt),Ce,Se,ke,Fe,Oe,gt,Tt]);return jsxRuntimeExports.jsx(ue$1,{value:bt,children:jsxRuntimeExports.jsx(Box,{...Pe,ref:Ct,children:be})})}de$1.propTypes={children:o$g.any.isRequired,blocklet:o$g.object.isRequired,masterBlocklet:o$g.object,action:o$g.string.isRequired,extraParams:o$g.object,locale:o$g.string,testOnlyBorderColor:o$g.string};function xe(){return reactExports.use(T$5)}const data$x={width:24,height:24,body:'<path fill="currentColor" d="M16.15 13H5q-.425 0-.713-.288T4 12q0-.425.288-.713T5 11h11.15L13.3 8.15q-.3-.3-.288-.7t.288-.7q.3-.3.713-.313t.712.288L19.3 11.3q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.575 4.575q-.3.3-.712.288t-.713-.313q-.275-.3-.288-.7t.288-.7L16.15 13Z"/>'};function b$9({title:be,description:Ce=null,icon:Se,iconScale:Te=.95,slotProps:Re={},mode:ke="normal",...Le}){const Pe=useTheme();return jsxRuntimeExports.jsxs(Box,{...Le,sx:o$a({display:"flex",alignItems:"center",gap:1,cursor:"pointer",p:1,borderRadius:1,backgroundColor:"grey.50",textDecoration:"none",transition:"background-color 0.5s","&:hover, &:active, &.did-connect__choose-item__active":{backgroundColor:"grey.100"},"& .other-item-icon":{opacity:"0",transform:"translateX(-100%)",transition:"transform 0.2s ease, opacity 0.1s ease"},"&:hover":{"& .other-item-icon":{display:"inline-block",transform:"translateX(0)",opacity:"1"}}},Le?.sx),children:[jsxRuntimeExports.jsx(Box,{className:"arc-login-item__icon",sx:o$a({display:"flex",justifyContent:"center",alignItems:"center",color:"text.primary"},Re?.icon?.sx),children:reactExports.isValidElement(Se)?Se:jsxRuntimeExports.jsx(Box,{component:Icon,icon:Se,sx:{transform:`scale(${Te})`,width:24,height:24}})}),ke==="normal"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",flexDirection:"column",flex:1},children:[jsxRuntimeExports.jsx(Typography,{sx:{fontSize:14,fontWeight:"500",color:"text.primary"},children:be}),Ce?jsxRuntimeExports.jsx(Typography,{sx:{color:"text.secondary",fontSize:12,lineHeight:1},children:Ce}):null]}),jsxRuntimeExports.jsx(Icon,{className:"other-item-icon",icon:data$x,fontSize:"1.3rem",color:Pe.palette.primary.main})]}):null]})}b$9.propTypes={title:o$g.string.isRequired,description:o$g.string,icon:o$g.any.isRequired,iconScale:o$g.number,slotProps:o$g.object,mode:o$g.oneOf(["simple","normal"])};function A$3({width:be=24,height:Ce=24,...Se}){return jsxRuntimeExports.jsx("img",{width:be,height:Ce,alt:"did-wallet-logo",...Se,src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbm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0IHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgcng9IjYiIGZpbGw9IiNmZmYiLz48L2NsaXBQYXRoPjwvZGVmcz48L3N2Zz4="})}A$3.propTypes={width:o$g.oneOfType([o$g.number,o$g.string]),height:o$g.oneOfType([o$g.number,o$g.string])};function A$2({disableSwitchApp:be,tokenState:Ce}){const{appInfoList:Se,connectState:Te}=xe(),{encryptKey:Re}=z$3();return useCreation(()=>{if(!Ce.url)return"";const ke=!be&&Se.length>1,Le=new URL(Ce.url||"https://www.didwallet.io"),Pe=Le.searchParams.get("url");if(Pe&&ke){const Oe=new URL(decodeURIComponent(Pe));Oe.searchParams.set("_ek_",Re);const qe=Q$5();qe&&Oe.searchParams.set("vid",qe),Te?.sourceAppPid&&Oe.searchParams.set("spid",Te?.sourceAppPid),Le.searchParams.set("url",Oe.toString())}return Le.toString()},[Ce.url,Se.length,Te?.sourceAppPid,Re])}function N$2({ref:be=null,tokenState:Ce,locale:Se,tokenKey:Te,onClick:Re=noop$1,disableSwitchApp:ke=!1,...Le}){const Pe=useReactive({loading:!1}),{isWalletWebview:Oe}=xe(),qe="DID Wallet",je=d$e(),Fe=new URL(window.location.href),He=A$2({disableSwitchApp:ke,tokenState:Ce}),Ge=useCreation(()=>{if(!Ce.url)return"";Fe.searchParams.set("tokenKey",Ce.token);const nt=new URL(He);je.wallet||(nt.searchParams.set("callback",encodeURIComponent(Fe)),nt.searchParams.set("callback_delay",1500)),nt.searchParams.set("locale",Se);const it=new TextEncoder,ot=nt.href.length;let ft="",St="";try{if(Ce.appInfo){const Ct=it.encode(JSON.stringify(Ce.appInfo));ft=btoa(String.fromCharCode(...Ct))}if(Ce.memberAppInfo){const Ct=it.encode(JSON.stringify(Ce.memberAppInfo));St=btoa(String.fromCharCode(...Ct))}if(ot+8+ft.length+14+St.length>2e3)throw ee.warn("URL too long, drop appInfo & memberAppInfo",{appInfo:ft,memberAppInfo:St}),new Error("URL too long");St?ft&&(nt.searchParams.set("appInfo",ft),nt.searchParams.set("memberAppInfo",St)):ft&&nt.searchParams.set("appInfo",ft)}catch(Ct){ee.warn("Failed to convert appInfo & memberAppInfo",Ct)}return nt.href.replace(/^https?:\/\//,"abt://")},[Te,Ce.token,Ce.appInfo,Ce.memberAppInfo,Ce.url]),Ke=useMemoizedFn(()=>{Pe.loading=!0,setTimeout(()=>{g$8.call("authAction",{action:"auth",deepLink:Ge})},600),setTimeout(()=>{Pe.loading=!1},2e3)}),Je=useMemoizedFn(()=>{Ce.checking=!0,Ce.status="scanned"}),Ze={};!Oe&&je.mobile.any&&(Ze.component="a",Ze.href=Ge),Ce.url||(Ze.sx={cursor:"not-allowed"});const Ye=useMemoizedFn(nt=>{Ce.url&&(Oe?Ke():je.mobile.any?Je():nt())}),tt=useMemoizedFn(()=>{Ye(Re)});return reactExports.useImperativeHandle(be,()=>({connect:Ye})),jsxRuntimeExports.jsx(b$9,{...Le,...Ze,sx:o$a(Le?.sx,Ze?.sx),title:qe,icon:Pe.loading||!Ce.url?jsxRuntimeExports.jsx(CircularProgress,{color:"primary",size:24,sx:{"& svg":{transform:"scale(0.75)"}}}):jsxRuntimeExports.jsx(A$3,{width:"24px",height:"24px",style:{transform:"scale(0.9)"}}),iconScale:1,onClick:tt})}N$2.propTypes={tokenState:o$g.object.isRequired,tokenKey:o$g.string.isRequired,locale:o$g.string.isRequired,onClick:o$g.func,disableSwitchApp:o$g.bool,ref:o$g.any};function j$4({ref:be=null,tokenState:Ce,locale:Se="en",webWalletUrl:Te,onClick:Re=noop$1,disableSwitchApp:ke=!1,...Le}){const{browserBrand:Pe}=xe(),Oe=N$7(),qe=useReactive({loading:!1}),je=A$2({disableSwitchApp:ke,tokenState:Ce}),Fe=useMemoizedFn(()=>{qe.loading=!0,xt({webWalletUrl:Te,url:je,locale:Se,appInfo:Ce.appInfo,memberAppInfo:Ce.memberAppInfo})?.type==="web"?qe.loading=!1:setTimeout(()=>{qe.loading=!1},3e3)}),He=useMemoizedFn(Ze=>{Ce.url&&(Re(Ze),Ze?.preventDefault(),Fe())});reactExports.useImperativeHandle(be,()=>({connect:Fe}));const Ge=useCreation(()=>Pe==="edge"?A$4.edge:Pe==="chrome"?A$4.chrome:null,[Pe]),Ke=useCreation(()=>{const Ze={};return Oe?Ze.onClick=He:Ge?(Ze.component="a",Ze.href=Ge,Ze.target="_blank",Ze.rel="noopener"):Ze.onClick=He,Ce.url||(Ze.sx={cursor:"not-allowed"}),Ze},[He,Ce.url]),Je=useCreation(()=>Oe||Ge?"DID Wallet (Extension)":"DID Wallet (Web)",[Oe,Ge]);return jsxRuntimeExports.jsx(b$9,{...Le,sx:o$a({textDecoration:"none"},Le?.sx,Ke.sx),title:Je,icon:qe.loading||!Ce.url?jsxRuntimeExports.jsx(CircularProgress,{color:"primary",size:24,sx:{"& svg":{transform:"scale(0.75)"}}}):jsxRuntimeExports.jsx(A$3,{width:"24px",height:"24px",style:{transform:"scale(0.9)"}}),...omit(Ke,"sx")})}j$4.propTypes={tokenState:o$g.object.isRequired,locale:o$g.string,webWalletUrl:o$g.string.isRequired,onClick:o$g.func,disableSwitchApp:o$g.bool,ref:o$g.any};function $$4({children:be,title:Ce="",prepend:Se=null,toolbar:Te=null,actions:Re=null,showCloseButton:ke=!0,actionsPosition:Le="right",PaperProps:Pe={},slotProps:Oe={},...qe}){const je=useTheme(),Fe=useMediaQuery(je.breakpoints.down("md")),He=Ce||ke||Te,Ge=(Je,Ze)=>{const{onClose:Ye}=qe;Ye&&Ye(Je,Ze)};Pe.style=Object.assign({minWidth:300,minHeight:300},Pe.style);const Ke=jsxRuntimeExports.jsx(IconButton,{className:"ux-dialog_closeButton",onClick:Je=>Ge(Je,"closeButton"),children:jsxRuntimeExports.jsx(CloseIcon,{})});return jsxRuntimeExports.jsxs(H$5,{fullScreen:Fe,onClose:Ge,PaperProps:Pe,...qe,children:[He&&jsxRuntimeExports.jsxs(O$2,{...Oe.header,className:"ux-dialog_header",isMobile:Fe,children:[jsxRuntimeExports.jsxs("div",{className:"ux-dialog_left",children:[ke&&Fe&&Ke,Se&&jsxRuntimeExports.jsx("div",{className:"ux-dialog_prepend",children:Se}),Ce&&jsxRuntimeExports.jsx(Typography,{variant:"h6",className:"ux-dialog_title",children:Ce})]}),jsxRuntimeExports.jsxs("div",{className:"ux-dialog_right",children:[jsxRuntimeExports.jsx("div",{className:"ux-dialog_toolbar",children:Te}),ke&&!Fe&&Ke]})]}),jsxRuntimeExports.jsx(DialogContent,{...Oe.content,children:be}),Re&&jsxRuntimeExports.jsx(DialogActions,{className:`ux-dialog_actions--${Le}`,children:Re})]})}$$4.propTypes={children:o$g.node.isRequired,title:o$g.node,prepend:o$g.node,toolbar:o$g.node,actions:o$g.node,showCloseButton:o$g.bool,actionsPosition:o$g.oneOf(["left","center","right"]),PaperProps:o$g.object,slotProps:o$g.shape({content:o$g.object,header:o$g.object}),onClose:o$g.func};const H$5=m$d(Dialog)`
537
537
  .MuiDialog-paper {
538
538
  ${be=>be.fullScreen?"border-radius: 0;":""};
539
539
  }
@@ -2880,4 +2880,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2880
2880
  padding-top: 16px;
2881
2881
  ${be=>be.scrollable?"":"overflow: hidden"};
2882
2882
  }
2883
- `;function GlobalSubscriber(){const{t:be}=T$9(),{session:Ce}=useSessionContext$1(),{info:Se,refresh:Te}=useNodeContext();return useSubscription(constantExports.TeamEvents.userUpdated,({teamDid:Re,user:ke})=>{Re===Se.did&&ke&&!ke.approved&&Ce&&Ce.user&&Ce.user.did===ke.did&&(H$7.warning(be("session.blockAccess"),{autoHideDuration:10*1e3}),Ce.logout())}),useSubscription(constantExports$1.EVENTS.NOTIFICATION_CREATE,Re=>{Re.entityType==="node"&&Te({silent:!0})}),useSubscription(constantExports$1.EVENTS.NODE_UPDATED,()=>{Te({silent:!0})}),null}const authorize=({user:be,launchType:Ce,nftId:Se})=>{if(!be)return!1;if(Ce==="serverless"){if(!Se)throw new Error("nftId is required");return be?.controller?.nftId===Se}return(be.permissions||[]).includes("mutate_blocklets")},isServerlessBlockletInstalled=be=>be.isGetBlocklet&&be.runtimeBlocklet?.controller?.consumedAt,getRestoredAccessUrl=async be=>{const Ce=getBlockletUrls({blocklet:be});let Se="";return Se=Ce.find(Te=>{try{const{hostname:Re}=new URL(Te);return urlEvaluationExports.isSlpDomain(Re)}catch(Re){return console.error(Re),!1}}),Se||(Se=await getAccessibleUrl(Ce)),Se},LaunchBlockletContext=reactExports.createContext({}),{Provider:Provider$1,Consumer:Consumer$1}=LaunchBlockletContext;function LaunchBlockletProvider({children:be}){const{session:Ce}=useSessionContext$1(),{t:Se}=T$9(),{api:Te,info:Re}=useNodeContext(),[ke]=useSearchParams(),Le=ke.get("launchType"),Pe=ke.get("fromLauncher"),Oe=ke.get("blocklet_meta_url")||"",qe=ke.get("nftId")||"",je=ke.get("from")||"",Fe=ke.get("launcherSessionId")||"",He=ke.get("launcherUrl")||"",Ge=je==="url",Ke=je==="empty",Je=Ge||Ke?"":new URL(Oe).origin,[Ze,Ye]=reactExports.useState({meta:null,appDid:ke.get("appDid")||null,sessionId:ke.get("sessionId")||null,isFree:!0,isExternal:!1,isInstalling:!1,isInstalled:!1,isRunning:!1,launcherSession:null,registryUrl:""}),tt=(rt,ut)=>Ye(gt=>({...gt,appDid:rt,sessionId:ut})),nt=authorize({user:Ce.user,launchType:Le,nftId:qe}),[it,ot]=reactExports.useState(null),[ft,St]=reactExports.useState(!0),Ct=reactExports.useMemo(()=>Re?getServerUrl(Re):"",[Re]),Ht=async rt=>{if(!rt)throw new Error("appDid should not be empty");const{blocklet:ut}=await Te.getBlocklet({input:{did:rt,attachConfig:!1}});if(!ut)return null;const gt=constantExports.BlockletStatus[ut.status],Tt=!!qe,bt=gt<constantExports.BlockletStatus.installed,wt=gt===constantExports.BlockletStatus.installed,It=gt===constantExports.BlockletStatus.running;return Ye(_t=>({..._t,isInstalled:wt,isRunning:It,isExternal:Tt,isInstalling:bt})),{isInstalled:wt,isRunning:It,isExternal:Tt,isInstalling:bt}},Bt=async()=>{if(St(!0),Ke){Ye(rt=>({...rt,meta:{title:ke.get("title")||"",description:ke.get("description")||""}})),St(!1);return}try{if(!Oe&&!Ke)throw new Error(Se("common.invalidParam"));const[{meta:rt,isFree:ut,registryUrl:gt},{launcherSession:Tt,error:bt}]=await Promise.all([Te.getBlockletMetaFromUrl({input:{url:Oe,checkPrice:!0}}),Fe?Te.getLauncherSession({input:{launcherSessionId:Fe,launcherUrl:He}}):Promise.resolve({})]);if(Fe&&!Tt)throw new Error(`Launch session invalid: ${bt}`);if(!rt)throw new Error(Se("LaunchBlockletBlocklet.error.loadMetaFailed"));let wt={};nt&&Ze.appDid&&(wt=await Ht(Ze.appDid)),Ye(It=>({...It,...wt,meta:rt,isFree:ut,registryUrl:gt,launcherSession:Tt}))}catch(rt){console.error(rt),ot(rt.message)}finally{St(!1)}};reactExports.useEffect(()=>{Ce?.user?.role===constantExports$1.SERVER_ROLES.EXTERNAL_BLOCKLET_CONTROLLER&&Ce?.user?.controller?.nftId!==qe&&Ce.logout(),Bt()},[]),reactExports.useEffect(()=>{ft||!Ze.meta||(nt?Ze.appDid&&Ht(Ze.appDid).catch(rt=>{H$7.error(rt.message)}):(Ye(rt=>({...rt,isInstalled:!1,isRunning:!1,isExternal:!1})),ot(null)))},[nt]);const qt={meta:Ze.meta,isFree:Ze.isFree,appDid:Ze.appDid,sessionId:Ze.sessionId,isInstalling:Ze.isInstalling,isInstalled:Ze.isInstalled,isExternal:Ze.isExternal,isRunning:Ze.isRunning,serverUrl:Ct,storeUrl:Ze.registryUrl||Je,blockletMetaUrl:Oe,fromLauncher:Pe,loading:ft,error:it,api:Te,getBlocklet:Ht,setAppDid:tt,launcherUrl:He,launcherSession:Ze.launcherSession,launcherSessionId:Fe,launchType:Le};return jsxRuntimeExports.jsx(Provider$1,{value:qt,children:be})}function useLaunchBlockletContext(){return reactExports.useContext(LaunchBlockletContext)}var useAsyncExports=requireUseAsync();const useAsync=getDefaultExportFromCjs$1(useAsyncExports);function useQuery(){return new URLSearchParams(useLocation().search)}const BlockletAppContext=reactExports.createContext(),{Provider,Consumer}=BlockletAppContext;function BlockletAppProvider({children:be}){const Se=useQuery().get("blocklet_meta_url"),Te=useAsync(async()=>{const{data:ke}=await axios.get(Se);return ke});if(Te.loading)return jsxRuntimeExports.jsx(o$d,{children:jsxRuntimeExports.jsx(CircularProgress,{})});const Re={meta:Te.value,error:Te.error};return jsxRuntimeExports.jsx(Provider,{value:Re,children:be})}BlockletAppProvider.propTypes={children:o$g.any.isRequired};function useBlockletAppContext(){return reactExports.useContext(BlockletAppContext)}const Dashboard=reactExports.lazy(()=>__vitePreload(()=>import("./index-BkKGnide.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)),BlockletList=reactExports.lazy(()=>__vitePreload(()=>import("./index-CetxjOR4.js"),__vite__mapDeps([5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,2,31,32,33,34,35,36,37,38]),import.meta.url)),BlockletRestore=reactExports.lazy(()=>__vitePreload(()=>import("./index-BvXZoEXP.js"),__vite__mapDeps([39,40,41,42,43,44,23,6,35,45,46,47,19,15]),import.meta.url)),BlockletStore=reactExports.lazy(()=>__vitePreload(()=>import("./index-6RpNlUXw.js"),__vite__mapDeps([48,6,49,50,51,17,15,52,31,32,53,54,36,35,55,45,56,4,19,23,24,25,57,58,26,59,60]),import.meta.url)),Settings=reactExports.lazy(()=>__vitePreload(()=>import("./index-zzs1-5cA.js"),__vite__mapDeps([61,62,59,63,64,65,26,7,8,9,10,11,12,13,14,15,16,17,18,19,66,21,56,4,2,67,6,68,69,70,36,20,71,51,72,73,74,75,76]),import.meta.url)),LogPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-cTnbzuAx.js"),__vite__mapDeps([77,78,24,25,79,6]),import.meta.url)),TeamPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-eIJb2ap_.js"),__vite__mapDeps([80,62,81,15,16,17,18,6,82,83,84,85,86,52,21,87,36,88,7,8,9,10,11,12,13,14,19,89,90,26,4,91,92,76,2,53,45,93,94,95,96,97,44,37,24,25,98,30,99,100,101,72,102,103,1,56,104,105]),import.meta.url)),BlockletDetail=reactExports.lazy(()=>__vitePreload(()=>import("./detail-BnT9dQ5L.js"),__vite__mapDeps([106,62,20,21,22,6,19,23,24,25,26,52,107,86,60]),import.meta.url)),EULAPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-CtQwTN0O.js"),[],import.meta.url)),Notifications=reactExports.lazy(()=>__vitePreload(()=>import("./index-Fkt3goDq.js"),[],import.meta.url)),IssuePassport=reactExports.lazy(()=>__vitePreload(()=>import("./index-C5u5PlQ4.js"),__vite__mapDeps([108,109,107,94,10,110,95,111,23]),import.meta.url)),LostPassport=reactExports.lazy(()=>__vitePreload(()=>import("./index-DisxfPKg.js"),__vite__mapDeps([112,88,55,94,10,111,23,34]),import.meta.url)),ExchangePassport=reactExports.lazy(()=>__vitePreload(()=>import("./index-CggE-p2z.js"),__vite__mapDeps([113,111,23]),import.meta.url)),BlockletLauncher=reactExports.lazy(()=>__vitePreload(()=>import("./index-oYMWAdg8.js"),__vite__mapDeps([114,41,42,43,44,104,105,115,82,83,84,23,28,29,47,38,6,67,58]),import.meta.url)),NotFoundPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-Bi6RkZIu.js"),__vite__mapDeps([116,107]),import.meta.url)),Invite=reactExports.lazy(()=>__vitePreload(()=>import("./index-DnEBdfll.js"),__vite__mapDeps([117,109,107,94,10,110,95,111]),import.meta.url)),Console=reactExports.lazy(()=>__vitePreload(()=>import("./index-BkAmHTzO.js"),[],import.meta.url)),AnalyticsPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-CULQHTfE.js"),__vite__mapDeps([118,62,119,120,50,51,121,13,122,123,91,92,9,76,7,8,10,11,12,14,15,16,17,18,19,124,125,74,6,101,25]),import.meta.url)),GenKeyPair=reactExports.lazy(()=>__vitePreload(()=>import("./index-30uk3Zde.js"),__vite__mapDeps([126,107]),import.meta.url));function useSharedContext(){const be=useNodeContext(),{session:Ce}=useSessionContext$1(),{wallet:Se}=d$e(),Te=Ce.user&&Ce.user.did;return reactExports.useEffect(()=>{const Re=getWsClient();return Te?Re.connect():Re.isConnected()&&Re.disconnect(),()=>{Re.isConnected()&&Re.disconnect()}},[Te]),reactExports.useEffect(()=>{if(Se)return()=>{};const Re=()=>{document.visibilityState==="visible"&&Ce.refresh()};return document.addEventListener("visibilitychange",Re),()=>{document.removeEventListener("visibilitychange",Re)}},[]),{node:be,session:Ce}}function ProtectedApp(){const{t:be}=T$9(),{node:Ce,session:Se}=useSharedContext(),Te=useLocation();reactExports.useEffect(()=>{window.tracker&&typeof window.tracker.pageView=="function"&&window.tracker.pageView(`${Te.pathname}${Te.search}`)},[Te]),reactExports.useEffect(()=>{Se?.user?.role===constantExports$1.SERVER_ROLES.EXTERNAL_BLOCKLET_CONTROLLER&&Se.logout()},[Se?.user?.role]);const Re=jsxRuntimeExports.jsx(CircularProgress,{});if(Ce.loading||Se.loading)return jsxRuntimeExports.jsx(o$d,{children:Re});if(!Ce.info.initialized)return getAuthMethodExports.getServerAuthMethod(Ce.info)==="nft"?jsxRuntimeExports.jsx(NodeVerifyOwner,{action:"verify-owner"}):jsxRuntimeExports.jsx(o$d,{children:jsxRuntimeExports.jsx(NodeConnectOwner,{})});if(Ce.info.upgradeSessionId)return jsxRuntimeExports.jsx(o$d,{children:jsxRuntimeExports.jsx(MaintainProgress,{})});if(!Se.user)return jsxRuntimeExports.jsx(NodeLogin,{loadingEle:Re});const ke=jsxRuntimeExports.jsx(o$d,{children:jsxRuntimeExports.jsx(CircularProgress,{})});return jsxRuntimeExports.jsx(BlockletsProvider,{children:jsxRuntimeExports.jsxs(NotificationProvider,{children:[jsxRuntimeExports.jsx(Health,{}),jsxRuntimeExports.jsx(CheckNodeStatus,{}),jsxRuntimeExports.jsx(GlobalSubscriber,{}),jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:ke,children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:"/dashboard",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:"Dashboard",children:jsxRuntimeExports.jsx(Dashboard,{})})}),jsxRuntimeExports.jsx(Route,{path:"/blocklets",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:be("common.blocklets"),children:jsxRuntimeExports.jsx(BlockletList,{})})}),jsxRuntimeExports.jsx(Route,{path:"/blocklets/:did/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:"Blocklets",children:jsxRuntimeExports.jsx(BlockletDetail,{})})}),jsxRuntimeExports.jsx(Route,{path:"/settings/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:be("common.setting"),children:jsxRuntimeExports.jsx(Settings,{})})}),jsxRuntimeExports.jsx(Route,{path:"/eula",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:be("setup.steps.eula"),children:jsxRuntimeExports.jsx(EULAPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/store",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:be("common.store"),children:jsxRuntimeExports.jsx(BlockletStore,{})})}),jsxRuntimeExports.jsx(Route,{path:"/console",element:jsxRuntimeExports.jsx(DashboardRoute,{title:`GraphQL ${be("common.console")}`,scrollable:!1,fullWidth:!0,children:jsxRuntimeExports.jsx(Console,{})})}),jsxRuntimeExports.jsx(Route,{path:"/notifications",element:jsxRuntimeExports.jsx(DashboardRoute,{children:jsxRuntimeExports.jsx(Notifications,{})})}),jsxRuntimeExports.jsx(Route,{path:"/team/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:be("common.team"),children:jsxRuntimeExports.jsx(TeamPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/logs/:name?",element:jsxRuntimeExports.jsx(DashboardRoute,{scrollable:!1,fullWidth:!0,title:be("common.logs"),children:jsxRuntimeExports.jsx(LogPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/analytics/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:be("common.analytics"),children:jsxRuntimeExports.jsx(AnalyticsPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/",element:jsxRuntimeExports.jsx(Navigate,{to:"/dashboard",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/team",element:jsxRuntimeExports.jsx(Navigate,{to:"/team/members",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/analytics",element:jsxRuntimeExports.jsx(Navigate,{to:"/analytics/traffic",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/router",element:jsxRuntimeExports.jsx(Navigate,{to:"/router/rules",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/settings",element:jsxRuntimeExports.jsx(Navigate,{to:"/settings/basic",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/marketplace",element:jsxRuntimeExports.jsx(Navigate,{to:"/store",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/marketplace/:did",element:jsxRuntimeExports.jsx(Navigate,{to:"/store/:did",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"*",element:jsxRuntimeExports.jsx(NotFoundPage,{})})]})})]})})}function UnprotectedWrapper({children:be}){const{node:Ce,session:Se}=useSharedContext();return Ce.loading||!Se.initialized&&Se.loading?jsxRuntimeExports.jsx(o$d,{children:jsxRuntimeExports.jsx(CircularProgress,{})}):Ce.info.upgradeSessionId?jsxRuntimeExports.jsx(o$d,{children:jsxRuntimeExports.jsx(MaintainProgress,{})}):be}function App(){const{changeLocale:be}=T$9(),Ce=useQuery();reactExports.useEffect(()=>{const Te=Ce.get("locale");Te&&["zh","en"].includes(Te)&&be(Te)},[]);const Se=jsxRuntimeExports.jsx(o$d,{children:jsxRuntimeExports.jsx(CircularProgress,{})});return jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:Se,children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/issue-passport`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(IssuePassport,{})})}),jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/lost-passport`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(LostPassport,{})})}),jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/exchange-passport`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(ExchangePassport,{})})}),jsxRuntimeExports.jsx(Route,{path:"/accept-server",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(NodeVerifyOwner,{action:"accept-server"})})}),jsxRuntimeExports.jsx(Route,{path:"/gen-key-pair/",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(GenKeyPair,{})})}),jsxRuntimeExports.jsx(Route,{path:"/launch-blocklet/*",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(LaunchBlockletProvider,{children:jsxRuntimeExports.jsx(BlockletLauncher,{})})})}),jsxRuntimeExports.jsx(Route,{path:"/blocklets/restore/*",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(BlockletAppProvider,{children:jsxRuntimeExports.jsx(BlockletRestore,{})})})}),jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/invite`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(Invite,{})})}),jsxRuntimeExports.jsx(Route,{path:"/*",element:jsxRuntimeExports.jsx(ProtectedApp,{})})]})})}function AppWrapper(){const be=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";return jsxRuntimeExports.jsx(BrowserRouter,{history:history$1,basename:be,children:jsxRuntimeExports.jsx(Root,{children:jsxRuntimeExports.jsx(App,{})})})}const root=clientExports.createRoot(document.getElementById("root"));root.render(jsxRuntimeExports.jsx(AppWrapper,{}));const prefix=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";register(`${prefix}/service-worker.js`.replace(/\/+/g,"/"),{registrationOptions:{scope:prefix},registered(){console.info("Service worker has been registered.")},ready(){console.info("Service worker is active.")},cached(){console.info("Content has been cached for offline use.")},updatefound(){console.info("New content is downloading.")},updated(){console.info("New content is available; please refresh.")},offline(){console.info("No internet connection found. App is running in offline mode.")},error(be){console.error("Error during service worker registration:",be)}});export{$$4 as $,useNavigate as A,useSearchParams as B,CircularProgress as C,DialogContentText as D,constantExports$1 as E,useMediaQuery as F,Grid$1 as G,H$7 as H,libExports$3 as I,utilExports as J,Link$1 as K,Link as L,BlockletAppAvatar as M,Box as N,isEmpty as O,et as P,FormControl as Q,InputLabel as R,Select as S,Typography as T,MenuItem as U,Checkbox as V,WrappedDidAddress as W,Alert as X,formatError as Y,o$d as Z,CheckIcon$2 as _,useSubscription as a,Menu as a$,propTypesExports as a0,api as a1,merge as a2,cloneDeep as a3,IconButton as a4,R$4 as a5,ListItemSecondaryAction as a6,List as a7,ListItem as a8,ListItemText as a9,getBlockletMetaUrl as aA,ErrorBoundary as aB,k$1 as aC,formatRegistryLogoPath as aD,Icon as aE,ListItemIcon as aF,createSvgIcon as aG,ensureDomainAliases as aH,getIp as aI,normalizePathPrefix as aJ,sortBy as aK,stringSortHandlerAsc as aL,getAccessUrl as aM,history$1 as aN,semver as aO,useReactive as aP,useAsyncEffect as aQ,InfoOutlinedIcon as aR,sleep as aS,checkInputByType as aT,FormControlLabel as aU,Stack$1 as aV,useAsync as aW,axios as aX,shouldCheckDomainStatus as aY,formatMountPoint as aZ,urlPathFriendly as a_,getServerUrl as aa,useBlockletAppContext as ab,getAuthMethodExports as ac,ConfirmDialog as ad,getRestoredAccessUrl as ae,setSessionToken as af,isEqual as ag,isServerlessBlockletInstalled as ah,Debug as ai,getWsClient as aj,useQuery as ak,getPathPrefix as al,Global as am,Routes as an,Route as ao,Navigate as ap,HeaderAddon as aq,SessionContext as ar,css as as,$$5 as at,formatToDatetime as au,alpha$1 as av,getLaunchAgreementUrl as aw,axios$2 as ax,useSessionContext$1 as ay,Tooltip as az,constantExports as b,composeClasses as b$,checkIsWildcardDomain as b0,Popover as b1,Card as b2,formatToDate as b3,sortDomains as b4,M$7 as b5,Collapse as b6,CheckCircle as b7,styled as b8,isUrl as b9,isInstalling as bA,Badge as bB,createAppPassportSvg as bC,NavLink as bD,__vitePreload as bE,SetCache as bF,arrayIncludes$1 as bG,arrayIncludesWith as bH,cacheHas as bI,baseUniq as bJ,baseFlatten as bK,baseRest as bL,last as bM,arrayFilter as bN,isArrayLikeObject as bO,t$9 as bP,isDownloading as bQ,getBlockletUrl as bR,getBlockletUrlParams as bS,ButtonBase as bT,memoTheme as bU,emphasize as bV,generateUtilityClasses$1 as bW,generateUtilityClass$1 as bX,useDefaultProps as bY,useSlotProps as bZ,clsx$1 as b_,__awaiter as ba,__generator as bb,__spread as bc,getDefaultExportFromCjs$1 as bd,U$3 as be,dayjs as bf,Divider as bg,isCertificateMatch as bh,FormHelperText as bi,FormGroup as bj,o$a as bk,NodeContext as bl,useParams as bm,useNodeContext$1 as bn,uniqBy as bo,libExports$1 as bp,g$a as bq,a$9 as br,l$k as bs,BlockletAvatar as bt,ClickAwayListener as bu,f$9 as bv,createPassportSvg as bw,getWalletType as bx,useCreation as by,BlockletAdminRoles as bz,createCompounder as c,Q$3 as c$,__read as c0,toSlotDomain as c1,omit as c2,fixBlocklet as c3,isProtectedRole as c4,baseOrderBy as c5,isArray$1 as c6,rootShouldForwardProp as c7,useFormControl as c8,createChainedFunction$1 as c9,Container$3 as cA,K$3 as cB,getLauncherBaseURL as cC,SvgIcon as cD,Buffer$1 as cE,parseURL as cF,withHttps as cG,useLaunchBlockletContext as cH,z$3 as cI,authorize as cJ,ArrowForwardIcon as cK,isNewStoreUrl as cL,getAccessibleUrl as cM,getBlockletLogoUrl as cN,t as cO,F$6 as cP,__spreadArrays as cQ,__assign as cR,h$6 as cS,useLocation as cT,useMount as cU,e$c as cV,formatDateTime as cW,getExplorerLink as cX,patchJsxToLocale as cY,flat as cZ,en$2 as c_,useSlot as ca,capitalize$1 as cb,SwitchBase as cc,createSimplePaletteValueFilter as cd,useControlled as ce,useForkRef as cf,useId as cg,getBlockletUrls as ch,defaultCheckAccessible as ci,urlEvaluationExports as cj,memoize as ck,ButtonGroupContext as cl,ButtonGroupButtonContext as cm,useNotificationContext as cn,utilExports$1 as co,NotificationList as cp,useRequest as cq,useMemoizedFn as cr,isNumber$3 as cs,useLatest as ct,defaultDayjs as cu,d$e as cv,Avatar as cw,isFromWallet as cx,usePassportId as cy,isFunction$2 as cz,useBlockletsContext as d,auto as d$,getSessionToken as d0,LinearProgress as d1,SvgLogo as d2,isNumber$1 as d3,useEnhancedEffect$1 as d4,debounce$2 as d5,ownerWindow as d6,useRtl as d7,KeyboardArrowLeft as d8,KeyboardArrowRight as d9,require$$3$1 as dA,requireConstant$1 as dB,$e as dC,noop$1 as dD,Button as dE,Paper as dF,MenuList as dG,Popper as dH,_inheritsLoose$1 as dI,ReactDOM as dJ,_objectWithoutPropertiesLoose$1 as dK,TransitionGroup as dL,ENTERED as dM,ENTERING as dN,EXITING as dO,TransitionGroupContext as dP,Transition as dQ,config$1 as dR,popperGenerator as dS,eventListeners as dT,popperOffsets$1 as dU,computeStyles$1 as dV,applyStyles$1 as dW,afterMain as dX,afterRead as dY,afterWrite as dZ,arrow$1 as d_,useEventCallback$1 as da,ownerDocument as db,m$d as dc,requireReact as dd,o$f as de,oe$1 as df,ne$2 as dg,InfoIcon$2 as dh,upperFirst as di,camelCase as dj,Skeleton as dk,R$5 as dl,isArrayLike as dm,baseIteratee as dn,keys as dp,toInteger as dq,baseFindIndex as dr,commonjsGlobal as ds,getAugmentedNamespace as dt,emotionUtils_browser_esm as du,requireJsxRuntime as dv,requirePropTypes as dw,requireReactDom as dx,isObject$3 as dy,requireUrl as dz,useAsyncRetry as e,ThemeProvider$3 as e$,basePlacements as e0,beforeMain as e1,beforeRead as e2,beforeWrite as e3,bottom as e4,clippingParents as e5,createPopper as e6,createPopper$1 as e7,detectOverflow as e8,end as e9,requireUrlPathFriendly as eA,b$9 as eB,data$w as eC,global$2 as eD,hoistStatics as eE,isEqual$3 as eF,usePreviousProps as eG,setRef as eH,ClearIcon as eI,ArrowDropDownIcon as eJ,Chip as eK,filledInputClasses as eL,inputBaseClasses as eM,outlinedInputClasses as eN,inputClasses as eO,ListContext as eP,getListItemButtonUtilityClass as eQ,listItemButtonClasses as eR,emotionReact_browser_esm as eS,emotionCache_browser_esm as eT,cloneDeep$1 as eU,forceReflow as eV,_extends$2 as eW,toString$2 as eX,deepmerge$1 as eY,StyledEngineProvider as eZ,ThemeProvider as e_,flip$1 as ea,hide$1 as eb,left as ec,main as ed,modifierPhases as ee,offset$1 as ef,placements as eg,popper as eh,preventOverflow$1 as ei,read as ej,reference as ek,right as el,start as em,top as en,variationPlacements as eo,viewport as ep,write as eq,requireReactIs as er,emotionStyled_browser_esm as es,emotionSerialize_esm as et,emotionSheet_esm as eu,process$1 as ev,requireLib$3 as ew,requireLib$4 as ex,requireLib$2 as ey,requireConstant$2 as ez,useTheme as f,shouldForwardProp as f$,s$2 as f0,CloseIcon as f1,isString$1 as f2,__spreadArray as f3,useEventListener as f4,ae$4 as f5,getTargetElement as f6,createTheme as f7,createAxios as f8,pick as f9,formatTime as fA,CloseFullscreenIcon as fB,S$8 as fC,TablePagination as fD,parseAvatar as fE,tmp as fF,useUpdate as fG,Q$5 as fH,I$5 as fI,p$a as fJ,Z$1 as fK,requireUtil$6 as fL,requireObjectKeys$1 as fM,requireShams$1 as fN,requireCallBound as fO,requireEsObjectAtoms as fP,requireDefineDataProperty as fQ,requireHasPropertyDescriptors as fR,requireCallBind as fS,requireCallBound$1 as fT,requireSafeBuffer$1 as fU,requireBrowser$f as fV,requireElliptic as fW,requireCryptoBrowserify as fX,requireRipemd160 as fY,requireLib$1 as fZ,requireUtil as f_,omitBy as fa,MenuIcon as fb,useDebounceFn as fc,Dialog as fd,OutlinedInput as fe,data as ff,Drawer as fg,parseQuery as fh,parseFilename as fi,stringifyParsedURL as fj,Grow as fk,Wt as fl,InputAdornment as fm,tooltipClasses as fn,e$9 as fo,requireEngine as fp,clamp as fq,extractEventHandlers as fr,isFocusVisible as fs,isHostComponent as ft,lighten as fu,darken as fv,slotShouldForwardProp as fw,requireNormalizePathPrefix as fx,debounce as fy,useInterval as fz,g$e as g,d$f as g$,resolveComponentProps as g0,l as g1,getInviteLink as g2,copy as g3,e$b as g4,getIssuePassportLink as g5,uniqBy$1 as g6,isNodeOwner as g7,isSelf as g8,Q$1 as g9,requireBrowser$3 as gA,require$$3 as gB,useTimeout as gC,Fade as gD,FocusTrap as gE,DialogActions as gF,dialogClasses as gG,DialogContent as gH,localizedFormatPlugin as gI,n$8 as gJ,purify as gK,Buffer$1$1 as gL,Q$2 as gM,resolveProps as gN,useThemeProps as gO,defaultTheme$1 as gP,THEME_ID as gQ,l$a as gR,isIndex as gS,useTheme$4 as gT,objectAssign as gU,__extends as gV,isServerless as gW,isFunction$1 as gX,omit$1 as gY,TableContext as gZ,Tablelvl2Context as g_,createPassportSvgExports as ga,getBlockletAccessibleUrl as gb,A$1 as gc,createPassportSvg$1 as gd,requireMs as ge,E$3 as gf,trim as gg,BlockletSDK as gh,getBlockletSDK as gi,MoreHorizIcon as gj,identity$1 as gk,arrayEach as gl,baseEach as gm,arrayMap as gn,baseMap as go,baseForOwn as gp,isPlainObject$2 as gq,require$$11 as gr,throttle$2 as gs,isUndefined$1 as gt,requireJsonStableStringify as gu,requireSemver as gv,requireBrowser$5 as gw,require$$0$1 as gx,requireIsAbsoluteUrl as gy,requireDist$2 as gz,a as h,z$2 as h$,useUnmount as h0,isDidDomainOrIpEchoDomain as h1,ExpandLess as h2,validateDomain as h3,requireDist as h4,requireAxios as h5,trim$1 as h6,requirePRetry as h7,TableCell as h8,De as h9,requireHoistNonReactStatics_cjs as hA,_assertThisInitialized$1 as hB,reactDomExports as hC,loadIcon as hD,withoutLeadingSlash as hE,fetchSvgAsPng as hF,blobToFile as hG,withoutTrailingSlash as hH,Rt as hI,_$5 as hJ,i as hK,D$7 as hL,browserExports$1 as hM,highlightExports as hN,funcExports as hO,data$y as hP,useSnackbar as hQ,common$3 as hR,green as hS,amber as hT,SnackbarContent as hU,t$1 as hV,Y as hW,f$3 as hX,b as hY,g$8 as hZ,withErrorBoundary as h_,getSystemDomains as ha,copyArray as hb,baseIndexOf as hc,keyframes as hd,me$2 as he,useAppLogo as hf,getTransferAppLink as hg,requireBn as hh,require$$2 as hi,uniq as hj,data$s as hk,data$t as hl,data$r as hm,isNil as hn,requireBase32 as ho,Ft as hp,withTrailingSlash as hq,data$B as hr,requireAssertString as hs,isEmail as ht,isURL as hu,createUseStorageState as hv,isBrowser$1 as hw,root$1 as hx,isNil$1 as hy,require$$10 as hz,get$1 as i,M$3 as i0,ye as i1,G$1 as i2,ue as i3,useBlockletLogo as i4,isPlainObject$1 as i5,Toolbar as i6,_setPrototypeOf as i7,useEffectWithTarget$1 as i8,__values as i9,AxiosError as iA,T$a as iB,isNull as iC,orange as iD,purple as iE,useStore as iF,createStore as iG,create$1 as iH,t$f as iI,__rest as iJ,clientExports as iK,yt$1 as iL,retry as iM,isNetworkError as iN,requirePTimeout as iO,n$5 as iP,Modal as iQ,GlobalStyles$2 as iR,useSize as iS,isString$3 as ia,FormLabel as ib,RelativeTime as ic,isIncludeActivity as id,isUserActor as ie,ActorAvatar as ig,SendComponentAvatar as ih,Activity as ii,NotificationContent$1 as ij,AvatarGroup as ik,requireCjs as il,useTheme$2 as im,baseAssignValue as io,isValidClusterSize as ip,extractStatusUrlFromNextWorkflow as iq,pWaitFor as ir,hasRequiredSteps as is,getStoreList as it,flatten as iu,trimEnd as iv,DialogTitle as iw,base32Exports as ix,flatExports as iy,Et as iz,jsxRuntimeExports as j,filesize as k,formatLocale as l,T$9 as m,useSessionContext as n,o$g as o,prettyMs as p,useSetState as q,reactExports as r,styled$3 as s,TextField as t,useNodeContext as u,n$4 as v,$t as w,getWebWalletUrl as x,joinURL as y,withQuery as z};
2883
+ `;function GlobalSubscriber(){const{t:be}=T$9(),{session:Ce}=useSessionContext$1(),{info:Se,refresh:Te}=useNodeContext();return useSubscription(constantExports.TeamEvents.userUpdated,({teamDid:Re,user:ke})=>{Re===Se.did&&ke&&!ke.approved&&Ce&&Ce.user&&Ce.user.did===ke.did&&(H$7.warning(be("session.blockAccess"),{autoHideDuration:10*1e3}),Ce.logout())}),useSubscription(constantExports$1.EVENTS.NOTIFICATION_CREATE,Re=>{Re.entityType==="node"&&Te({silent:!0})}),useSubscription(constantExports$1.EVENTS.NODE_UPDATED,()=>{Te({silent:!0})}),null}const authorize=({user:be,launchType:Ce,nftId:Se})=>{if(!be)return!1;if(Ce==="serverless"){if(!Se)throw new Error("nftId is required");return be?.controller?.nftId===Se}return(be.permissions||[]).includes("mutate_blocklets")},isServerlessBlockletInstalled=be=>be.isGetBlocklet&&be.runtimeBlocklet?.controller?.consumedAt,getRestoredAccessUrl=async be=>{const Ce=getBlockletUrls({blocklet:be});let Se="";return Se=Ce.find(Te=>{try{const{hostname:Re}=new URL(Te);return urlEvaluationExports.isSlpDomain(Re)}catch(Re){return console.error(Re),!1}}),Se||(Se=await getAccessibleUrl(Ce)),Se},LaunchBlockletContext=reactExports.createContext({}),{Provider:Provider$1,Consumer:Consumer$1}=LaunchBlockletContext;function LaunchBlockletProvider({children:be}){const{session:Ce}=useSessionContext$1(),{t:Se}=T$9(),{api:Te,info:Re}=useNodeContext(),[ke]=useSearchParams(),Le=ke.get("launchType"),Pe=ke.get("fromLauncher"),Oe=ke.get("blocklet_meta_url")||"",qe=ke.get("nftId")||"",je=ke.get("from")||"",Fe=ke.get("launcherSessionId")||"",He=ke.get("launcherUrl")||"",Ge=je==="url",Ke=je==="empty",Je=Ge||Ke?"":new URL(Oe).origin,[Ze,Ye]=reactExports.useState({meta:null,appDid:ke.get("appDid")||null,sessionId:ke.get("sessionId")||null,isFree:!0,isExternal:!1,isInstalling:!1,isInstalled:!1,isRunning:!1,launcherSession:null,registryUrl:""}),tt=(rt,ut)=>Ye(gt=>({...gt,appDid:rt,sessionId:ut})),nt=authorize({user:Ce.user,launchType:Le,nftId:qe}),[it,ot]=reactExports.useState(null),[ft,St]=reactExports.useState(!0),Ct=reactExports.useMemo(()=>Re?getServerUrl(Re):"",[Re]),Ht=async rt=>{if(!rt)throw new Error("appDid should not be empty");const{blocklet:ut}=await Te.getBlocklet({input:{did:rt,attachConfig:!1}});if(!ut)return null;const gt=constantExports.BlockletStatus[ut.status],Tt=!!qe,bt=gt<constantExports.BlockletStatus.installed,wt=gt===constantExports.BlockletStatus.installed,It=gt===constantExports.BlockletStatus.running;return Ye(_t=>({..._t,isInstalled:wt,isRunning:It,isExternal:Tt,isInstalling:bt})),{isInstalled:wt,isRunning:It,isExternal:Tt,isInstalling:bt}},Bt=async()=>{if(St(!0),Ke){Ye(rt=>({...rt,meta:{title:ke.get("title")||"",description:ke.get("description")||""}})),St(!1);return}try{if(!Oe&&!Ke)throw new Error(Se("common.invalidParam"));const[{meta:rt,isFree:ut,registryUrl:gt},{launcherSession:Tt,error:bt}]=await Promise.all([Te.getBlockletMetaFromUrl({input:{url:Oe,checkPrice:!0}}),Fe?Te.getLauncherSession({input:{launcherSessionId:Fe,launcherUrl:He}}):Promise.resolve({})]);if(Fe&&!Tt)throw new Error(`Launch session invalid: ${bt}`);if(!rt)throw new Error(Se("LaunchBlockletBlocklet.error.loadMetaFailed"));let wt={};nt&&Ze.appDid&&(wt=await Ht(Ze.appDid)),Ye(It=>({...It,...wt,meta:rt,isFree:ut,registryUrl:gt,launcherSession:Tt}))}catch(rt){console.error(rt),ot(rt.message)}finally{St(!1)}};reactExports.useEffect(()=>{Ce?.user?.role===constantExports$1.SERVER_ROLES.EXTERNAL_BLOCKLET_CONTROLLER&&Ce?.user?.controller?.nftId!==qe&&Ce.logout(),Bt()},[]),reactExports.useEffect(()=>{ft||!Ze.meta||(nt?Ze.appDid&&Ht(Ze.appDid).catch(rt=>{H$7.error(rt.message)}):(Ye(rt=>({...rt,isInstalled:!1,isRunning:!1,isExternal:!1})),ot(null)))},[nt]);const qt={meta:Ze.meta,isFree:Ze.isFree,appDid:Ze.appDid,sessionId:Ze.sessionId,isInstalling:Ze.isInstalling,isInstalled:Ze.isInstalled,isExternal:Ze.isExternal,isRunning:Ze.isRunning,serverUrl:Ct,storeUrl:Ze.registryUrl||Je,blockletMetaUrl:Oe,fromLauncher:Pe,loading:ft,error:it,api:Te,getBlocklet:Ht,setAppDid:tt,launcherUrl:He,launcherSession:Ze.launcherSession,launcherSessionId:Fe,launchType:Le};return jsxRuntimeExports.jsx(Provider$1,{value:qt,children:be})}function useLaunchBlockletContext(){return reactExports.useContext(LaunchBlockletContext)}var useAsyncExports=requireUseAsync();const useAsync=getDefaultExportFromCjs$1(useAsyncExports);function useQuery(){return new URLSearchParams(useLocation().search)}const BlockletAppContext=reactExports.createContext(),{Provider,Consumer}=BlockletAppContext;function BlockletAppProvider({children:be}){const Se=useQuery().get("blocklet_meta_url"),Te=useAsync(async()=>{const{data:ke}=await axios.get(Se);return ke});if(Te.loading)return jsxRuntimeExports.jsx(o$d,{children:jsxRuntimeExports.jsx(CircularProgress,{})});const Re={meta:Te.value,error:Te.error};return jsxRuntimeExports.jsx(Provider,{value:Re,children:be})}BlockletAppProvider.propTypes={children:o$g.any.isRequired};function useBlockletAppContext(){return reactExports.useContext(BlockletAppContext)}const Dashboard=reactExports.lazy(()=>__vitePreload(()=>import("./index-B7ZNrnM-.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)),BlockletList=reactExports.lazy(()=>__vitePreload(()=>import("./index-BupHbkeI.js"),__vite__mapDeps([5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,2,31,32,33,34,35,36,37,38]),import.meta.url)),BlockletRestore=reactExports.lazy(()=>__vitePreload(()=>import("./index-DWI-Juvh.js"),__vite__mapDeps([39,40,41,42,43,44,23,6,35,45,46,47,19,15]),import.meta.url)),BlockletStore=reactExports.lazy(()=>__vitePreload(()=>import("./index-a8uqiYfW.js"),__vite__mapDeps([48,6,49,50,51,17,15,52,31,32,53,54,36,35,55,45,56,4,19,23,24,25,57,58,26,59,60]),import.meta.url)),Settings=reactExports.lazy(()=>__vitePreload(()=>import("./index-uNZWrXL2.js"),__vite__mapDeps([61,62,59,63,64,65,26,7,8,9,10,11,12,13,14,15,16,17,18,19,66,21,56,4,2,67,6,68,69,70,36,20,71,51,72,73,74,75,76]),import.meta.url)),LogPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-1lRds6IP.js"),__vite__mapDeps([77,78,24,25,79,6]),import.meta.url)),TeamPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-CgV386d2.js"),__vite__mapDeps([80,62,81,15,16,17,18,6,82,83,84,85,86,52,21,87,36,88,7,8,9,10,11,12,13,14,19,89,90,26,4,91,92,76,2,53,45,93,94,95,96,97,44,37,24,25,98,30,99,100,101,72,102,103,1,56,104,105]),import.meta.url)),BlockletDetail=reactExports.lazy(()=>__vitePreload(()=>import("./detail-Cg4TjDi0.js"),__vite__mapDeps([106,62,20,21,22,6,19,23,24,25,26,52,107,86,60]),import.meta.url)),EULAPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-DiT-8Xe3.js"),[],import.meta.url)),Notifications=reactExports.lazy(()=>__vitePreload(()=>import("./index-C1f5NJYc.js"),[],import.meta.url)),IssuePassport=reactExports.lazy(()=>__vitePreload(()=>import("./index-BKr-jX9v.js"),__vite__mapDeps([108,109,107,94,10,110,95,111,23]),import.meta.url)),LostPassport=reactExports.lazy(()=>__vitePreload(()=>import("./index-Cp7n-akO.js"),__vite__mapDeps([112,88,55,94,10,111,23,34]),import.meta.url)),ExchangePassport=reactExports.lazy(()=>__vitePreload(()=>import("./index-pSHx8NNU.js"),__vite__mapDeps([113,111,23]),import.meta.url)),BlockletLauncher=reactExports.lazy(()=>__vitePreload(()=>import("./index-fLIxpU-m.js"),__vite__mapDeps([114,41,42,43,44,104,105,115,82,83,84,23,28,29,47,38,6,67,58]),import.meta.url)),NotFoundPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-CsVvkoWj.js"),__vite__mapDeps([116,107]),import.meta.url)),Invite=reactExports.lazy(()=>__vitePreload(()=>import("./index-D9gay98p.js"),__vite__mapDeps([117,109,107,94,10,110,95,111]),import.meta.url)),Console=reactExports.lazy(()=>__vitePreload(()=>import("./index-aHWRyS56.js"),[],import.meta.url)),AnalyticsPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-B6L-XwR3.js"),__vite__mapDeps([118,62,119,120,50,51,121,13,122,123,91,92,9,76,7,8,10,11,12,14,15,16,17,18,19,124,125,74,6,101,25]),import.meta.url)),GenKeyPair=reactExports.lazy(()=>__vitePreload(()=>import("./index-DfB3-fEf.js"),__vite__mapDeps([126,107]),import.meta.url));function useSharedContext(){const be=useNodeContext(),{session:Ce}=useSessionContext$1(),{wallet:Se}=d$e(),Te=Ce.user&&Ce.user.did;return reactExports.useEffect(()=>{const Re=getWsClient();return Te?Re.connect():Re.isConnected()&&Re.disconnect(),()=>{Re.isConnected()&&Re.disconnect()}},[Te]),reactExports.useEffect(()=>{if(Se)return()=>{};const Re=()=>{document.visibilityState==="visible"&&Ce.refresh()};return document.addEventListener("visibilitychange",Re),()=>{document.removeEventListener("visibilitychange",Re)}},[]),{node:be,session:Ce}}function ProtectedApp(){const{t:be}=T$9(),{node:Ce,session:Se}=useSharedContext(),Te=useLocation();reactExports.useEffect(()=>{window.tracker&&typeof window.tracker.pageView=="function"&&window.tracker.pageView(`${Te.pathname}${Te.search}`)},[Te]),reactExports.useEffect(()=>{Se?.user?.role===constantExports$1.SERVER_ROLES.EXTERNAL_BLOCKLET_CONTROLLER&&Se.logout()},[Se?.user?.role]);const Re=jsxRuntimeExports.jsx(CircularProgress,{});if(Ce.loading||Se.loading)return jsxRuntimeExports.jsx(o$d,{children:Re});if(!Ce.info.initialized)return getAuthMethodExports.getServerAuthMethod(Ce.info)==="nft"?jsxRuntimeExports.jsx(NodeVerifyOwner,{action:"verify-owner"}):jsxRuntimeExports.jsx(o$d,{children:jsxRuntimeExports.jsx(NodeConnectOwner,{})});if(Ce.info.upgradeSessionId)return jsxRuntimeExports.jsx(o$d,{children:jsxRuntimeExports.jsx(MaintainProgress,{})});if(!Se.user)return jsxRuntimeExports.jsx(NodeLogin,{loadingEle:Re});const ke=jsxRuntimeExports.jsx(o$d,{children:jsxRuntimeExports.jsx(CircularProgress,{})});return jsxRuntimeExports.jsx(BlockletsProvider,{children:jsxRuntimeExports.jsxs(NotificationProvider,{children:[jsxRuntimeExports.jsx(Health,{}),jsxRuntimeExports.jsx(CheckNodeStatus,{}),jsxRuntimeExports.jsx(GlobalSubscriber,{}),jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:ke,children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:"/dashboard",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:"Dashboard",children:jsxRuntimeExports.jsx(Dashboard,{})})}),jsxRuntimeExports.jsx(Route,{path:"/blocklets",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:be("common.blocklets"),children:jsxRuntimeExports.jsx(BlockletList,{})})}),jsxRuntimeExports.jsx(Route,{path:"/blocklets/:did/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:"Blocklets",children:jsxRuntimeExports.jsx(BlockletDetail,{})})}),jsxRuntimeExports.jsx(Route,{path:"/settings/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:be("common.setting"),children:jsxRuntimeExports.jsx(Settings,{})})}),jsxRuntimeExports.jsx(Route,{path:"/eula",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:be("setup.steps.eula"),children:jsxRuntimeExports.jsx(EULAPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/store",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:be("common.store"),children:jsxRuntimeExports.jsx(BlockletStore,{})})}),jsxRuntimeExports.jsx(Route,{path:"/console",element:jsxRuntimeExports.jsx(DashboardRoute,{title:`GraphQL ${be("common.console")}`,scrollable:!1,fullWidth:!0,children:jsxRuntimeExports.jsx(Console,{})})}),jsxRuntimeExports.jsx(Route,{path:"/notifications",element:jsxRuntimeExports.jsx(DashboardRoute,{children:jsxRuntimeExports.jsx(Notifications,{})})}),jsxRuntimeExports.jsx(Route,{path:"/team/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:be("common.team"),children:jsxRuntimeExports.jsx(TeamPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/logs/:name?",element:jsxRuntimeExports.jsx(DashboardRoute,{scrollable:!1,fullWidth:!0,title:be("common.logs"),children:jsxRuntimeExports.jsx(LogPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/analytics/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:be("common.analytics"),children:jsxRuntimeExports.jsx(AnalyticsPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/",element:jsxRuntimeExports.jsx(Navigate,{to:"/dashboard",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/team",element:jsxRuntimeExports.jsx(Navigate,{to:"/team/members",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/analytics",element:jsxRuntimeExports.jsx(Navigate,{to:"/analytics/traffic",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/router",element:jsxRuntimeExports.jsx(Navigate,{to:"/router/rules",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/settings",element:jsxRuntimeExports.jsx(Navigate,{to:"/settings/basic",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/marketplace",element:jsxRuntimeExports.jsx(Navigate,{to:"/store",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/marketplace/:did",element:jsxRuntimeExports.jsx(Navigate,{to:"/store/:did",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"*",element:jsxRuntimeExports.jsx(NotFoundPage,{})})]})})]})})}function UnprotectedWrapper({children:be}){const{node:Ce,session:Se}=useSharedContext();return Ce.loading||!Se.initialized&&Se.loading?jsxRuntimeExports.jsx(o$d,{children:jsxRuntimeExports.jsx(CircularProgress,{})}):Ce.info.upgradeSessionId?jsxRuntimeExports.jsx(o$d,{children:jsxRuntimeExports.jsx(MaintainProgress,{})}):be}function App(){const{changeLocale:be}=T$9(),Ce=useQuery();reactExports.useEffect(()=>{const Te=Ce.get("locale");Te&&["zh","en"].includes(Te)&&be(Te)},[]);const Se=jsxRuntimeExports.jsx(o$d,{children:jsxRuntimeExports.jsx(CircularProgress,{})});return jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:Se,children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/issue-passport`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(IssuePassport,{})})}),jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/lost-passport`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(LostPassport,{})})}),jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/exchange-passport`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(ExchangePassport,{})})}),jsxRuntimeExports.jsx(Route,{path:"/accept-server",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(NodeVerifyOwner,{action:"accept-server"})})}),jsxRuntimeExports.jsx(Route,{path:"/gen-key-pair/",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(GenKeyPair,{})})}),jsxRuntimeExports.jsx(Route,{path:"/launch-blocklet/*",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(LaunchBlockletProvider,{children:jsxRuntimeExports.jsx(BlockletLauncher,{})})})}),jsxRuntimeExports.jsx(Route,{path:"/blocklets/restore/*",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(BlockletAppProvider,{children:jsxRuntimeExports.jsx(BlockletRestore,{})})})}),jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/invite`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(Invite,{})})}),jsxRuntimeExports.jsx(Route,{path:"/*",element:jsxRuntimeExports.jsx(ProtectedApp,{})})]})})}function AppWrapper(){const be=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";return jsxRuntimeExports.jsx(BrowserRouter,{history:history$1,basename:be,children:jsxRuntimeExports.jsx(Root,{children:jsxRuntimeExports.jsx(App,{})})})}const root=clientExports.createRoot(document.getElementById("root"));root.render(jsxRuntimeExports.jsx(AppWrapper,{}));const prefix=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";register(`${prefix}/service-worker.js`.replace(/\/+/g,"/"),{registrationOptions:{scope:prefix},registered(){console.info("Service worker has been registered.")},ready(){console.info("Service worker is active.")},cached(){console.info("Content has been cached for offline use.")},updatefound(){console.info("New content is downloading.")},updated(){console.info("New content is available; please refresh.")},offline(){console.info("No internet connection found. App is running in offline mode.")},error(be){console.error("Error during service worker registration:",be)}});export{$$4 as $,useNavigate as A,useSearchParams as B,CircularProgress as C,DialogContentText as D,constantExports$1 as E,useMediaQuery as F,Grid$1 as G,H$7 as H,libExports$3 as I,utilExports as J,Link$1 as K,Link as L,BlockletAppAvatar as M,Box as N,isEmpty as O,et as P,FormControl as Q,InputLabel as R,Select as S,Typography as T,MenuItem as U,Checkbox as V,WrappedDidAddress as W,Alert as X,formatError as Y,o$d as Z,CheckIcon$2 as _,useSubscription as a,Menu as a$,propTypesExports as a0,api as a1,merge as a2,cloneDeep as a3,IconButton as a4,R$4 as a5,ListItemSecondaryAction as a6,List as a7,ListItem as a8,ListItemText as a9,getBlockletMetaUrl as aA,ErrorBoundary as aB,k$1 as aC,formatRegistryLogoPath as aD,Icon as aE,ListItemIcon as aF,createSvgIcon as aG,ensureDomainAliases as aH,getIp as aI,normalizePathPrefix as aJ,sortBy as aK,stringSortHandlerAsc as aL,getAccessUrl as aM,history$1 as aN,semver as aO,useReactive as aP,useAsyncEffect as aQ,InfoOutlinedIcon as aR,sleep as aS,checkInputByType as aT,FormControlLabel as aU,Stack$1 as aV,useAsync as aW,axios as aX,shouldCheckDomainStatus as aY,formatMountPoint as aZ,urlPathFriendly as a_,getServerUrl as aa,useBlockletAppContext as ab,getAuthMethodExports as ac,ConfirmDialog as ad,getRestoredAccessUrl as ae,setSessionToken as af,isEqual as ag,isServerlessBlockletInstalled as ah,Debug as ai,getWsClient as aj,useQuery as ak,getPathPrefix as al,Global as am,Routes as an,Route as ao,Navigate as ap,HeaderAddon as aq,SessionContext as ar,css as as,$$5 as at,formatToDatetime as au,alpha$1 as av,getLaunchAgreementUrl as aw,axios$2 as ax,useSessionContext$1 as ay,Tooltip as az,constantExports as b,composeClasses as b$,checkIsWildcardDomain as b0,Popover as b1,Card as b2,formatToDate as b3,sortDomains as b4,M$7 as b5,Collapse as b6,CheckCircle as b7,styled as b8,isUrl as b9,isInstalling as bA,Badge as bB,createAppPassportSvg as bC,NavLink as bD,__vitePreload as bE,SetCache as bF,arrayIncludes$1 as bG,arrayIncludesWith as bH,cacheHas as bI,baseUniq as bJ,baseFlatten as bK,baseRest as bL,last as bM,arrayFilter as bN,isArrayLikeObject as bO,t$9 as bP,isDownloading as bQ,getBlockletUrl as bR,getBlockletUrlParams as bS,ButtonBase as bT,memoTheme as bU,emphasize as bV,generateUtilityClasses$1 as bW,generateUtilityClass$1 as bX,useDefaultProps as bY,useSlotProps as bZ,clsx$1 as b_,__awaiter as ba,__generator as bb,__spread as bc,getDefaultExportFromCjs$1 as bd,U$3 as be,dayjs as bf,Divider as bg,isCertificateMatch as bh,FormHelperText as bi,FormGroup as bj,o$a as bk,NodeContext as bl,useParams as bm,useNodeContext$1 as bn,uniqBy as bo,libExports$1 as bp,g$a as bq,a$9 as br,l$k as bs,BlockletAvatar as bt,ClickAwayListener as bu,f$9 as bv,createPassportSvg as bw,getWalletType as bx,useCreation as by,BlockletAdminRoles as bz,createCompounder as c,Q$3 as c$,__read as c0,toSlotDomain as c1,omit as c2,fixBlocklet as c3,isProtectedRole as c4,baseOrderBy as c5,isArray$1 as c6,rootShouldForwardProp as c7,useFormControl as c8,createChainedFunction$1 as c9,Container$3 as cA,K$3 as cB,getLauncherBaseURL as cC,SvgIcon as cD,Buffer$1 as cE,parseURL as cF,withHttps as cG,useLaunchBlockletContext as cH,z$3 as cI,authorize as cJ,ArrowForwardIcon as cK,isNewStoreUrl as cL,getAccessibleUrl as cM,getBlockletLogoUrl as cN,t as cO,F$6 as cP,__spreadArrays as cQ,__assign as cR,h$6 as cS,useLocation as cT,useMount as cU,e$c as cV,formatDateTime as cW,getExplorerLink as cX,patchJsxToLocale as cY,flat as cZ,en$2 as c_,useSlot as ca,capitalize$1 as cb,SwitchBase as cc,createSimplePaletteValueFilter as cd,useControlled as ce,useForkRef as cf,useId as cg,getBlockletUrls as ch,defaultCheckAccessible as ci,urlEvaluationExports as cj,memoize as ck,ButtonGroupContext as cl,ButtonGroupButtonContext as cm,useNotificationContext as cn,utilExports$1 as co,NotificationList as cp,useRequest as cq,useMemoizedFn as cr,isNumber$3 as cs,useLatest as ct,defaultDayjs as cu,d$e as cv,Avatar as cw,isFromWallet as cx,usePassportId as cy,isFunction$2 as cz,useBlockletsContext as d,auto as d$,getSessionToken as d0,LinearProgress as d1,SvgLogo as d2,isNumber$1 as d3,useEnhancedEffect$1 as d4,debounce$2 as d5,ownerWindow as d6,useRtl as d7,KeyboardArrowLeft as d8,KeyboardArrowRight as d9,require$$3$1 as dA,requireConstant$1 as dB,$e as dC,noop$1 as dD,Button as dE,Paper as dF,MenuList as dG,Popper as dH,_inheritsLoose$1 as dI,ReactDOM as dJ,_objectWithoutPropertiesLoose$1 as dK,TransitionGroup as dL,ENTERED as dM,ENTERING as dN,EXITING as dO,TransitionGroupContext as dP,Transition as dQ,config$1 as dR,popperGenerator as dS,eventListeners as dT,popperOffsets$1 as dU,computeStyles$1 as dV,applyStyles$1 as dW,afterMain as dX,afterRead as dY,afterWrite as dZ,arrow$1 as d_,useEventCallback$1 as da,ownerDocument as db,m$d as dc,requireReact as dd,o$f as de,oe$1 as df,ne$2 as dg,InfoIcon$2 as dh,upperFirst as di,camelCase as dj,Skeleton as dk,R$5 as dl,isArrayLike as dm,baseIteratee as dn,keys as dp,toInteger as dq,baseFindIndex as dr,commonjsGlobal as ds,getAugmentedNamespace as dt,emotionUtils_browser_esm as du,requireJsxRuntime as dv,requirePropTypes as dw,requireReactDom as dx,isObject$3 as dy,requireUrl as dz,useAsyncRetry as e,ThemeProvider$3 as e$,basePlacements as e0,beforeMain as e1,beforeRead as e2,beforeWrite as e3,bottom as e4,clippingParents as e5,createPopper as e6,createPopper$1 as e7,detectOverflow as e8,end as e9,requireUrlPathFriendly as eA,b$9 as eB,data$w as eC,global$2 as eD,hoistStatics as eE,isEqual$3 as eF,usePreviousProps as eG,setRef as eH,ClearIcon as eI,ArrowDropDownIcon as eJ,Chip as eK,filledInputClasses as eL,inputBaseClasses as eM,outlinedInputClasses as eN,inputClasses as eO,ListContext as eP,getListItemButtonUtilityClass as eQ,listItemButtonClasses as eR,emotionReact_browser_esm as eS,emotionCache_browser_esm as eT,cloneDeep$1 as eU,forceReflow as eV,_extends$2 as eW,toString$2 as eX,deepmerge$1 as eY,StyledEngineProvider as eZ,ThemeProvider as e_,flip$1 as ea,hide$1 as eb,left as ec,main as ed,modifierPhases as ee,offset$1 as ef,placements as eg,popper as eh,preventOverflow$1 as ei,read as ej,reference as ek,right as el,start as em,top as en,variationPlacements as eo,viewport as ep,write as eq,requireReactIs as er,emotionStyled_browser_esm as es,emotionSerialize_esm as et,emotionSheet_esm as eu,process$1 as ev,requireLib$3 as ew,requireLib$4 as ex,requireLib$2 as ey,requireConstant$2 as ez,useTheme as f,shouldForwardProp as f$,s$2 as f0,CloseIcon as f1,isString$1 as f2,__spreadArray as f3,useEventListener as f4,ae$4 as f5,getTargetElement as f6,createTheme as f7,createAxios as f8,pick as f9,formatTime as fA,CloseFullscreenIcon as fB,S$8 as fC,TablePagination as fD,parseAvatar as fE,tmp as fF,useUpdate as fG,Q$5 as fH,I$5 as fI,p$a as fJ,Z$1 as fK,requireUtil$6 as fL,requireObjectKeys$1 as fM,requireShams$1 as fN,requireCallBound as fO,requireEsObjectAtoms as fP,requireDefineDataProperty as fQ,requireHasPropertyDescriptors as fR,requireCallBind as fS,requireCallBound$1 as fT,requireSafeBuffer$1 as fU,requireBrowser$f as fV,requireElliptic as fW,requireCryptoBrowserify as fX,requireRipemd160 as fY,requireLib$1 as fZ,requireUtil as f_,omitBy as fa,MenuIcon as fb,useDebounceFn as fc,Dialog as fd,OutlinedInput as fe,data as ff,Drawer as fg,parseQuery as fh,parseFilename as fi,stringifyParsedURL as fj,Grow as fk,Wt as fl,InputAdornment as fm,tooltipClasses as fn,e$9 as fo,requireEngine as fp,clamp as fq,extractEventHandlers as fr,isFocusVisible as fs,isHostComponent as ft,lighten as fu,darken as fv,slotShouldForwardProp as fw,requireNormalizePathPrefix as fx,debounce as fy,useInterval as fz,g$e as g,d$f as g$,resolveComponentProps as g0,l as g1,getInviteLink as g2,copy as g3,e$b as g4,getIssuePassportLink as g5,uniqBy$1 as g6,isNodeOwner as g7,isSelf as g8,Q$1 as g9,requireBrowser$3 as gA,require$$3 as gB,useTimeout as gC,Fade as gD,FocusTrap as gE,DialogActions as gF,dialogClasses as gG,DialogContent as gH,localizedFormatPlugin as gI,n$8 as gJ,purify as gK,Buffer$1$1 as gL,Q$2 as gM,resolveProps as gN,useThemeProps as gO,defaultTheme$1 as gP,THEME_ID as gQ,l$a as gR,isIndex as gS,useTheme$4 as gT,objectAssign as gU,__extends as gV,isServerless as gW,isFunction$1 as gX,omit$1 as gY,TableContext as gZ,Tablelvl2Context as g_,createPassportSvgExports as ga,getBlockletAccessibleUrl as gb,A$1 as gc,createPassportSvg$1 as gd,requireMs as ge,E$3 as gf,trim as gg,BlockletSDK as gh,getBlockletSDK as gi,MoreHorizIcon as gj,identity$1 as gk,arrayEach as gl,baseEach as gm,arrayMap as gn,baseMap as go,baseForOwn as gp,isPlainObject$2 as gq,require$$11 as gr,throttle$2 as gs,isUndefined$1 as gt,requireJsonStableStringify as gu,requireSemver as gv,requireBrowser$5 as gw,require$$0$1 as gx,requireIsAbsoluteUrl as gy,requireDist$2 as gz,a as h,z$2 as h$,useUnmount as h0,isDidDomainOrIpEchoDomain as h1,ExpandLess as h2,validateDomain as h3,requireDist as h4,requireAxios as h5,trim$1 as h6,requirePRetry as h7,TableCell as h8,De as h9,requireHoistNonReactStatics_cjs as hA,_assertThisInitialized$1 as hB,reactDomExports as hC,loadIcon as hD,withoutLeadingSlash as hE,fetchSvgAsPng as hF,blobToFile as hG,withoutTrailingSlash as hH,Rt as hI,_$5 as hJ,i as hK,D$7 as hL,browserExports$1 as hM,highlightExports as hN,funcExports as hO,data$y as hP,useSnackbar as hQ,common$3 as hR,green as hS,amber as hT,SnackbarContent as hU,t$1 as hV,Y as hW,f$3 as hX,b as hY,g$8 as hZ,withErrorBoundary as h_,getSystemDomains as ha,copyArray as hb,baseIndexOf as hc,keyframes as hd,me$2 as he,useAppLogo as hf,getTransferAppLink as hg,requireBn as hh,require$$2 as hi,uniq as hj,data$s as hk,data$t as hl,data$r as hm,isNil as hn,requireBase32 as ho,Ft as hp,withTrailingSlash as hq,data$B as hr,requireAssertString as hs,isEmail as ht,isURL as hu,createUseStorageState as hv,isBrowser$1 as hw,root$1 as hx,isNil$1 as hy,require$$10 as hz,get$1 as i,M$3 as i0,ye as i1,G$1 as i2,ue as i3,useBlockletLogo as i4,isPlainObject$1 as i5,Toolbar as i6,_setPrototypeOf as i7,useEffectWithTarget$1 as i8,__values as i9,AxiosError as iA,T$a as iB,isNull as iC,orange as iD,purple as iE,useStore as iF,createStore as iG,create$1 as iH,t$f as iI,__rest as iJ,clientExports as iK,yt$1 as iL,retry as iM,isNetworkError as iN,requirePTimeout as iO,n$5 as iP,Modal as iQ,GlobalStyles$2 as iR,useSize as iS,isString$3 as ia,FormLabel as ib,RelativeTime as ic,isIncludeActivity as id,isUserActor as ie,ActorAvatar as ig,SendComponentAvatar as ih,Activity as ii,NotificationContent$1 as ij,AvatarGroup as ik,requireCjs as il,useTheme$2 as im,baseAssignValue as io,isValidClusterSize as ip,extractStatusUrlFromNextWorkflow as iq,pWaitFor as ir,hasRequiredSteps as is,getStoreList as it,flatten as iu,trimEnd as iv,DialogTitle as iw,base32Exports as ix,flatExports as iy,Et as iz,jsxRuntimeExports as j,filesize as k,formatLocale as l,T$9 as m,useSessionContext as n,o$g as o,prettyMs as p,useSetState as q,reactExports as r,styled$3 as s,TextField as t,useNodeContext as u,n$4 as v,$t as w,getWebWalletUrl as x,joinURL as y,withQuery as z};