@abtnode/blocklet-services 1.16.33-beta-20241018-093853-2efbcd5e → 1.16.33-beta-20241022-042744-ed5c22d7

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 (197) hide show
  1. package/api/validators/login.js +1 -1
  2. package/dist/assets/{Add-DAQA4hl7.js → Add-B_zIhg44.js} +1 -1
  3. package/dist/assets/{Alert-B8kenWpY.js → Alert-BD7qiL2D.js} +1 -1
  4. package/dist/assets/{ArrowDropDown-B4CQuaFu.js → ArrowDropDown-D0yU-g1-.js} +1 -1
  5. package/dist/assets/{Autocomplete-D0sWlFIR.js → Autocomplete-f3t4pSsb.js} +1 -1
  6. package/dist/assets/{Avatar-7y20d6uv.js → Avatar-PQdoLJAj.js} +1 -1
  7. package/dist/assets/{ButtonGroup-DRVN-vsI.js → ButtonGroup-C_U4IcCx.js} +1 -1
  8. package/dist/assets/{CheckCircle-BI66VMY6.js → CheckCircle-u2dgH5cg.js} +1 -1
  9. package/dist/assets/{ChevronLeft-DmDrmJDF.js → ChevronLeft-COq-aHuB.js} +1 -1
  10. package/dist/assets/{ChevronRight-D-HWZ2Zs.js → ChevronRight-s8o0SkiY.js} +1 -1
  11. package/dist/assets/{Close-BWGd-Nvb.js → Close-shWfX4Fx.js} +1 -1
  12. package/dist/assets/{CloseOutlined-BxdDTJtY.js → CloseOutlined-BnUYxZqj.js} +1 -1
  13. package/dist/assets/{Delete-Cbmwi2_n.js → Delete-BTff40qP.js} +1 -1
  14. package/dist/assets/{DeleteOutline-DCYu02gd.js → DeleteOutline-qo86utWY.js} +1 -1
  15. package/dist/assets/{DialogContentText-M0t1zhqn.js → DialogContentText-BLTyWj7L.js} +1 -1
  16. package/dist/assets/{Done-DqYPOWOz.js → Done-DPAJGUIH.js} +1 -1
  17. package/dist/assets/{Download-BRihSpJ5.js → Download-o95MMX9a.js} +1 -1
  18. package/dist/assets/{Edit-Dm5CBPHC.js → Edit-dS-85akO.js} +1 -1
  19. package/dist/assets/{EditIcon-BzxcFyWF.js → EditIcon-DWwHcOSH.js} +1 -1
  20. package/dist/assets/{Error-D_2Fmq_E.js → Error-_ycpReOF.js} +1 -1
  21. package/dist/assets/{ExpandMore-BlBxw7cf.js → ExpandMore-Bks5Rs1W.js} +1 -1
  22. package/dist/assets/{FormControl-P0hOBz_d.js → FormControl-D_xlQ0oS.js} +1 -1
  23. package/dist/assets/{FormControlLabel-DXJxfDzh.js → FormControlLabel-C4BfEVkE.js} +1 -1
  24. package/dist/assets/{FormGroup-BMxqnWKW.js → FormGroup-BCAdKjF1.js} +1 -1
  25. package/dist/assets/{Google-Dz_lBWZG.js → Google-CdpMhp0D.js} +1 -1
  26. package/dist/assets/{Grid-Dk_DYqwe.js → Grid-BRi4wY3I.js} +1 -1
  27. package/dist/assets/{Hidden-3B3zKMrj.js → Hidden-DRzgqRjG.js} +1 -1
  28. package/dist/assets/{InfoOutlined-BxfEr3Yv.js → InfoOutlined-BUEfaYJO.js} +1 -1
  29. package/dist/assets/{InputAdornment-DBYVP0VZ.js → InputAdornment-DdYsc1uM.js} +1 -1
  30. package/dist/assets/{InputLabel-CUj0gAgE.js → InputLabel-Dh-MCVtK.js} +1 -1
  31. package/dist/assets/{LastPage-DfP2R9Oa.js → LastPage-CrqwFm31.js} +1 -1
  32. package/dist/assets/{Launch-B871fo3J.js → Launch-BIUWVs2B.js} +1 -1
  33. package/dist/assets/{LaunchOutlined-DMPabe2p.js → LaunchOutlined-ntNPLvJ4.js} +1 -1
  34. package/dist/assets/{Link-DiIwF6B2.js → Link-DKpyb7YJ.js} +1 -1
  35. package/dist/assets/{LoadingButton-B9Uh-LQA.js → LoadingButton-CF2Q6W1c.js} +1 -1
  36. package/dist/assets/{LockIcon-PoUIp4UY.js → LockIcon-CUg33kAh.js} +1 -1
  37. package/dist/assets/{Loop-Cz6irMix.js → Loop-CRzXoIx1.js} +1 -1
  38. package/dist/assets/{Menu-D9WDrqHE.js → Menu-DowAkE3E.js} +1 -1
  39. package/dist/assets/{MoreHoriz-Bzyp9XwU.js → MoreHoriz-BGYW9E7p.js} +1 -1
  40. package/dist/assets/{MoreVert-6cQtfCA6.js → MoreVert-vvYPgtTT.js} +1 -1
  41. package/dist/assets/{OpenInNew-Cyzkq5Z6.js → OpenInNew-CZW6S_iL.js} +1 -1
  42. package/dist/assets/{Pagination-CIhFbEoY.js → Pagination-GSQx3K8F.js} +1 -1
  43. package/dist/assets/{PlayArrow-DfVelCxI.js → PlayArrow-S0oN_KUI.js} +1 -1
  44. package/dist/assets/{QuestionMarkCircle-Dmo7fO3q.js → QuestionMarkCircle-ebeXOBuM.js} +1 -1
  45. package/dist/assets/{RadioGroup-C8LRTono.js → RadioGroup-Cv3lH7a9.js} +1 -1
  46. package/dist/assets/{Search-sf4kfFV4.js → Search-CQVAmSnj.js} +1 -1
  47. package/dist/assets/{Select-DiRwP_6a.js → Select-_tnTCxoo.js} +1 -1
  48. package/dist/assets/{ServerLogo-DrHcOw4m.js → ServerLogo-Blq7l0_1.js} +1 -1
  49. package/dist/assets/{Skeleton-DiG5VWr2.js → Skeleton-D4tslYDP.js} +1 -1
  50. package/dist/assets/{Slider-DHlnySvX.js → Slider-BLemrBSe.js} +1 -1
  51. package/dist/assets/{Stack-BkDLp2S8.js → Stack-DLxwswxp.js} +1 -1
  52. package/dist/assets/{Stepper-Cr4Ue7LM.js → Stepper-D3Itx747.js} +1 -1
  53. package/dist/assets/{TextField-CCB_Jmv_.js → TextField-jO6zLRwt.js} +1 -1
  54. package/dist/assets/{Toolbar-BAiWv4-B.js → Toolbar-B3I1C6hD.js} +1 -1
  55. package/dist/assets/{ViewColumn-DhNVCNtY.js → ViewColumn-BPYRCwhU.js} +1 -1
  56. package/dist/assets/{ViewList-D2QiFryN.js → ViewList-C7rjsnO8.js} +1 -1
  57. package/dist/assets/{access-control-B1yRTcWF.js → access-control-CkWlWQOm.js} +1 -1
  58. package/dist/assets/{actions-Cm4y3Vxr.js → actions-BS6B9xB1.js} +1 -1
  59. package/dist/assets/{add-component-core-BAFb6uHx.js → add-component-core-BNNE4gaf.js} +2 -2
  60. package/dist/assets/add-resource-CwJEXGIa.js +1 -0
  61. package/dist/assets/{addon-uerpU2Yk.js → addon-DM61lKIS.js} +1 -1
  62. package/dist/assets/{analytics-CX0H_3Z4.js → analytics-BJQaDJpa.js} +1 -1
  63. package/dist/assets/api-DU7XtVew.js +1 -0
  64. package/dist/assets/{audit-logs-B77XgUxl.js → audit-logs-T8m9cab6.js} +1 -1
  65. package/dist/assets/{base32-BbDUMCim.js → base32-e4-hEDvj.js} +1 -1
  66. package/dist/assets/{bundle-avatar-J_a9wisR.js → bundle-avatar-S5VVQLmS.js} +1 -1
  67. package/dist/assets/{button-CZGN0DFI.js → button-Dls6GlJp.js} +1 -1
  68. package/dist/assets/{click-to-copy-CPjwr766.js → click-to-copy-Bc4F7J-M.js} +1 -1
  69. package/dist/assets/{complete-C9fCRXxg.js → complete-CAfWHIxe.js} +1 -1
  70. package/dist/assets/{component-Bjp-R3IE.js → component-DUI0h-ax.js} +1 -1
  71. package/dist/assets/{config-BxeAHcCc.js → config-EyNP1KZ4.js} +1 -1
  72. package/dist/assets/{config-ChJImtJc.js → config-mgEUCT7H.js} +1 -1
  73. package/dist/assets/{config-navigation-Cxy6wwv0.js → config-navigation-SHlDKd6P.js} +1 -1
  74. package/dist/assets/{confirm-CZh9lrf7.js → confirm--goQCY50.js} +1 -1
  75. package/dist/assets/{connect-Cc_HQwn4.js → connect-C14Gunt2.js} +1 -1
  76. package/dist/assets/{connect-CKHZQLeh.js → connect-CCfHmotZ.js} +1 -1
  77. package/dist/assets/{connect-to-BvUi2lDi.js → connect-to-DnAL6fzo.js} +1 -1
  78. package/dist/assets/{content-layout-dCNXPQB4.js → content-layout-Bmj3qwn2.js} +1 -1
  79. package/dist/assets/{dashboard-BhEpCrng.js → dashboard-Bx3PK8vV.js} +10 -10
  80. package/dist/assets/{deprecate-CstKkKFM.js → deprecate-BqZG0sUo.js} +1 -1
  81. package/dist/assets/{did-address-DXunIer2.js → did-address-D-yVl_K0.js} +1 -1
  82. package/dist/assets/{domain-T2wMVe21.js → domain-lMNpVYZO.js} +1 -1
  83. package/dist/assets/{domain-list-BIxxgG74.js → domain-list-Be48YS53.js} +1 -1
  84. package/dist/assets/{email-BWRSAcoV.js → email-BjZXIRBS.js} +3 -3
  85. package/dist/assets/emotion-cache.browser.esm-CZlt0hks.js +1 -0
  86. package/dist/assets/{exchange-passport-CuCHGbCf.js → exchange-passport-C-ST8eQY.js} +1 -1
  87. package/dist/assets/{fallback-B1bvHdlx.js → fallback-DAFQQ9ZX.js} +1 -1
  88. package/dist/assets/{format-error-MSTr4Dld.js → format-error-VtIlQW7O.js} +1 -1
  89. package/dist/assets/{fuel-Dgzaq3De.js → fuel-rmMVHFlr.js} +1 -1
  90. package/dist/assets/{fullpage-BwWBbfSq.js → fullpage-DTrYPCDG.js} +1 -1
  91. package/dist/assets/{home-74tIkF1B.js → home-DzbhEa_p.js} +1 -1
  92. package/dist/assets/{iframe-86-twlRv.js → iframe-DYja1hx6.js} +1 -1
  93. package/dist/assets/{index-DYtGXeNF.js → index-39JRJvY4.js} +1 -1
  94. package/dist/assets/{index-BJZKVgnz.js → index-BC0lMU8_.js} +1 -1
  95. package/dist/assets/{index-D1wE6UgA.js → index-BCRgUmeQ.js} +1 -1
  96. package/dist/assets/{index-D3z0u_tU.js → index-BIcoMPI1.js} +1 -1
  97. package/dist/assets/{index-29_4R1is.js → index-BQ0lBDB3.js} +1 -1
  98. package/dist/assets/{index-B5PmYJ9f.js → index-BZrFGkc-.js} +3 -3
  99. package/dist/assets/{index-BnwRbf34.js → index-BbqMNG1y.js} +1 -1
  100. package/dist/assets/{index-DL-uDyV1.js → index-BdOBigee.js} +1 -1
  101. package/dist/assets/{index-BYwmGv42.js → index-BdUVqVxS.js} +1 -1
  102. package/dist/assets/{index-bo5TF2Hm.js → index-BizYqoo7.js} +1 -1
  103. package/dist/assets/{index-DZAe2asg.js → index-BmenTnvD.js} +1 -1
  104. package/dist/assets/{index-Dvdwt5er.js → index-BoMlY1bM.js} +1 -1
  105. package/dist/assets/{index-BKvulX5F.js → index-C0IZfDu_.js} +1 -1
  106. package/dist/assets/{index-j8fq8gc5.js → index-CO34d6F-.js} +1 -1
  107. package/dist/assets/{index-DYgo92mz.js → index-CRTWxI2E.js} +1 -1
  108. package/dist/assets/{index-D_l3bgiM.js → index-CZJBy12a.js} +1 -1
  109. package/dist/assets/{index-C9uoGnCi.js → index-CecjgqNu.js} +1 -1
  110. package/dist/assets/{index-DY43G97W.js → index-CxG2UB6c.js} +1 -1
  111. package/dist/assets/{index-BFeN7gRX.js → index-D-DYHbf8.js} +1 -1
  112. package/dist/assets/{index-DlP4vQPr.js → index-DA7WmjFs.js} +1 -1
  113. package/dist/assets/{index-Df44Oc0v.js → index-DFQaq3Rr.js} +1 -1
  114. package/dist/assets/{index-BaOr19U9.js → index-DrfPYJyV.js} +1 -1
  115. package/dist/assets/{index-Bi4O8Q7b.js → index-KsNw_oCk.js} +1 -1
  116. package/dist/assets/{index-D6Fo42LG.js → index-LqIfjjYK.js} +4 -4
  117. package/dist/assets/{index-rvdKk-hW.js → index-WtTNYGBm.js} +1 -1
  118. package/dist/assets/{index-B_vncBdF.js → index-azbXVc35.js} +1 -1
  119. package/dist/assets/{index-DyV0uX5c.js → index-dlqbDSV2.js} +1 -1
  120. package/dist/assets/{index-HE7O7jgn.js → index-eJVYGApL.js} +1 -1
  121. package/dist/assets/{index-C8tvv1mE.js → index-gQ96oHXr.js} +1 -1
  122. package/dist/assets/{index-C2SclAt1.js → index-i2bJjWlC.js} +3 -3
  123. package/dist/assets/{index-TIPq1YB5.js → index-q7KWKYhz.js} +1 -1
  124. package/dist/assets/{index-D2v_q--c.js → index-tZjr-3si.js} +1 -1
  125. package/dist/assets/{index-Cb5ummYm.js → index-yjXJ4CA8.js} +1 -1
  126. package/dist/assets/{index.es-D6kSEknT.js → index.es-DMI9d8E2.js} +1 -1
  127. package/dist/assets/{index.esm-BACx3Bgt.js → index.esm-BC532VA_.js} +1 -1
  128. package/dist/assets/{invitation--LuhvYG3.js → invitation-XHieI5vr.js} +1 -1
  129. package/dist/assets/{invite-CnAaywBJ.js → invite-BxOQWM7O.js} +1 -1
  130. package/dist/assets/{issue-passport-CHQbzhyM.js → issue-passport-DIAD70Qs.js} +1 -1
  131. package/dist/assets/{item-DiPWmg4D.js → item-BB4SRNhY.js} +1 -1
  132. package/dist/assets/{jss-plugin-props-sort.esm-BbUCTvTY.js → jss-plugin-props-sort.esm-DgbF_O4R.js} +1 -1
  133. package/dist/assets/{launch-result-message-DUOKkM73.js → launch-result-message-mYdCt9l5.js} +1 -1
  134. package/dist/assets/{layout-DpBlA8e2.js → layout-CafawZ5h.js} +1 -1
  135. package/dist/assets/{list-header-DWE1hNBN.js → list-header-n2SJwvar.js} +1 -1
  136. package/dist/assets/localization-CzQ82J7V.js +1 -0
  137. package/dist/assets/{log-53QGCL9A.js → log-fYGuc_1q.js} +1 -1
  138. package/dist/assets/{login-BaZ1FJDR.js → login-Clgkf5Aq.js} +1 -1
  139. package/dist/assets/{login-oauth-callback-CTDRh2SM.js → login-oauth-callback-DDQdN2UB.js} +1 -1
  140. package/dist/assets/{logo-uploader-D48tPsQ7.js → logo-uploader-KD_gkrS7.js} +3 -3
  141. package/dist/assets/{lost-passport-BguCyjaA.js → lost-passport-J4t_A22k.js} +3 -3
  142. package/dist/assets/{lottie-DXvsb19-.js → lottie-1sENXOdz.js} +1 -1
  143. package/dist/assets/{notifications-0JFtARNG.js → notifications-Bv9kdMWF.js} +1 -1
  144. package/dist/assets/{open-window-CpqnuS9I.js → open-window-OsbeOyPq.js} +1 -1
  145. package/dist/assets/{overview-CiGfQ_r4.js → overview-hAiGOEVT.js} +1 -1
  146. package/dist/assets/{page-header-BhMIblde.js → page-header-Bsz3-PCn.js} +1 -1
  147. package/dist/assets/{permission-Bn8ONtBu.js → permission-DvCC8ds5.js} +1 -1
  148. package/dist/assets/{preferences-Be_zxnom.js → preferences-yhQptfjz.js} +1 -1
  149. package/dist/assets/publish-resource-UKZEpRvd.js +1 -0
  150. package/dist/assets/{react-B76g6xcQ.js → react-B7n6Pl9d.js} +3 -3
  151. package/dist/assets/{redux-DNNFTtlX.js → redux-BTtsVqLb.js} +1 -1
  152. package/dist/assets/{resource-dialog-D9phHFD1.js → resource-dialog-BgvHsNtp.js} +1 -1
  153. package/dist/assets/sdk-BZqku07r.js +1 -0
  154. package/dist/assets/{selector-CHNq0IRi.js → selector-Ctoe5_yc.js} +1 -1
  155. package/dist/assets/session-BsF6Ry4f.js +1 -0
  156. package/dist/assets/{setup-BQC0e1_I.js → setup-BuwsirSg.js} +3 -3
  157. package/dist/assets/{shorten-label-DsvGvUrQ.js → shorten-label-BphXq2mC.js} +1 -1
  158. package/dist/assets/{slicedToArray-DXMU5JZD.js → slicedToArray-CnkUutQg.js} +1 -1
  159. package/dist/assets/{spaces-D4gX0_rK.js → spaces-DkLAGFaG.js} +1 -1
  160. package/dist/assets/{start-Bt8Vsvhc.js → start-BUAn95QR.js} +1 -1
  161. package/dist/assets/{step-actions-Dkbriu2L.js → step-actions-nWZxuI9o.js} +1 -1
  162. package/dist/assets/{studio-Dqu6paHO.js → studio-Cbf1GMll.js} +1 -1
  163. package/dist/assets/{switch-control-DbSaBWqA.js → switch-control-DVFPWamX.js} +1 -1
  164. package/dist/assets/{toUpper-CliKP7G7.js → toUpper-BXqYglad.js} +1 -1
  165. package/dist/assets/{transfer-Bm_twE74.js → transfer-CAcjBxzC.js} +1 -1
  166. package/dist/assets/{trim-B-4xv-e3.js → trim-Bt2VQ0Ha.js} +1 -1
  167. package/dist/assets/{uniqBy-B9USxWYR.js → uniqBy-NzQMBrwx.js} +1 -1
  168. package/dist/assets/{unsubscribe-CmK-13jy.js → unsubscribe-DUwn4A2G.js} +1 -1
  169. package/dist/assets/{url-join-M0zkNbYb.js → url-join-CF8lZEtN.js} +1 -1
  170. package/dist/assets/{use-blocklet-info-for-connect-did-spaces-D6v0hDzW.js → use-blocklet-info-for-connect-did-spaces-BvdUptjO.js} +1 -1
  171. package/dist/assets/{use-mobile-B0GQXwHM.js → use-mobile-U_gbz8U8.js} +1 -1
  172. package/dist/assets/{useAsync-BWFWaRkz.js → useAsync-DrKowMF-.js} +1 -1
  173. package/dist/assets/{useFormControl-B0cusiJt.js → useFormControl-YhhxESzJ.js} +1 -1
  174. package/dist/assets/{useLocalStorage-CuRBIcWm.js → useLocalStorage-C2WA_Ro_.js} +1 -1
  175. package/dist/assets/{useSetState-BMiClb9g.js → useSetState-WFCMcsBA.js} +1 -1
  176. package/dist/assets/{useSlot-CRlI8p2I.js → useSlot-CYg01tyr.js} +1 -1
  177. package/dist/assets/{useSlotProps-JEaJsoR3.js → useSlotProps-BUxaWUJH.js} +1 -1
  178. package/dist/assets/{useThemeProps-pSaUXwQT.js → useThemeProps-y2LaMc6g.js} +1 -1
  179. package/dist/assets/{user-center-Pqaf1DAY.js → user-center-BfUlcGOS.js} +1 -1
  180. package/dist/assets/{user-sessions-Cc78WqU9.js → user-sessions-B72qqeSd.js} +1 -1
  181. package/dist/assets/{util-BKr59-9_.js → util-Tmhb8Xbm.js} +1 -1
  182. package/dist/assets/{wrap-locale-CK-9zfpl.js → wrap-locale-DJyf4EEv.js} +1 -1
  183. package/dist/assets/zh-CT0fSzRS.js +2 -0
  184. package/dist/assets/{zh-tw-DYU_VaXB.js → zh-tw-GFcs7F29.js} +1 -1
  185. package/dist/assets/zh-tw-i93Px0uV.js +1 -0
  186. package/dist/index.html +1 -1
  187. package/dist/service-worker.js +1 -1
  188. package/package.json +18 -18
  189. package/dist/assets/add-resource-Bxy_EIU5.js +0 -1
  190. package/dist/assets/api-DxtqIksv.js +0 -1
  191. package/dist/assets/emotion-cache.browser.esm-Mm6229p7.js +0 -1
  192. package/dist/assets/localization-C5NLdJbv.js +0 -1
  193. package/dist/assets/publish-resource-B2D7mrbE.js +0 -1
  194. package/dist/assets/sdk-D3N7Lly-.js +0 -1
  195. package/dist/assets/session-DQy8BnkU.js +0 -1
  196. package/dist/assets/zh-AGc49itB.js +0 -2
  197. package/dist/assets/zh-tw-CwZfwqpL.js +0 -1
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/overview-CiGfQ_r4.js","assets/index-C2SclAt1.js","assets/index-D8NuaJ66.css","assets/keyboard-arrow-down-rounded-DadBVmpO.js","assets/index-Df44Oc0v.js","assets/index-DY43G97W.js","assets/did-address-DXunIer2.js","assets/Link-DiIwF6B2.js","assets/domain-list-BIxxgG74.js","assets/trim-B-4xv-e3.js","assets/Add-DAQA4hl7.js","assets/ExpandMore-BlBxw7cf.js","assets/base32-BbDUMCim.js","assets/LockIcon-PoUIp4UY.js","assets/index-BaOr19U9.js","assets/permission-Bn8ONtBu.js","assets/useAsync-BWFWaRkz.js","assets/session-DQy8BnkU.js","assets/confirm-CZh9lrf7.js","assets/DialogContentText-M0t1zhqn.js","assets/Alert-B8kenWpY.js","assets/useSlot-CRlI8p2I.js","assets/format-error-MSTr4Dld.js","assets/useSetState-BMiClb9g.js","assets/use-mobile-B0GQXwHM.js","assets/InfoOutlined-BxfEr3Yv.js","assets/OpenInNew-Cyzkq5Z6.js","assets/index-Bi4O8Q7b.js","assets/api-DxtqIksv.js","assets/util-BKr59-9_.js","assets/TextField-CCB_Jmv_.js","assets/FormControl-P0hOBz_d.js","assets/useFormControl-B0cusiJt.js","assets/InputLabel-CUj0gAgE.js","assets/Select-DiRwP_6a.js","assets/LoadingButton-B9Uh-LQA.js","assets/useThemeProps-pSaUXwQT.js","assets/Delete-Cbmwi2_n.js","assets/actions-Cm4y3Vxr.js","assets/MoreHoriz-Bzyp9XwU.js","assets/index-BYwmGv42.js","assets/useLocalStorage-CuRBIcWm.js","assets/MoreVert-6cQtfCA6.js","assets/PlayArrow-DfVelCxI.js","assets/ButtonGroup-DRVN-vsI.js","assets/RadioGroup-C8LRTono.js","assets/FormControlLabel-DXJxfDzh.js","assets/Stack-BkDLp2S8.js","assets/FormGroup-BMxqnWKW.js","assets/Avatar-7y20d6uv.js","assets/fallback-B1bvHdlx.js","assets/index-TIPq1YB5.js","assets/Menu-D9WDrqHE.js","assets/Toolbar-BAiWv4-B.js","assets/Hidden-3B3zKMrj.js","assets/index-BJZKVgnz.js","assets/selector-CHNq0IRi.js","assets/deprecate-CstKkKFM.js","assets/index-DL-uDyV1.js","assets/index-DlP4vQPr.js","assets/Loop-Cz6irMix.js","assets/ViewList-D2QiFryN.js","assets/list-header-DWE1hNBN.js","assets/Search-sf4kfFV4.js","assets/index-C9uoGnCi.js","assets/Grid-Dk_DYqwe.js","assets/emotion-cache.browser.esm-Mm6229p7.js","assets/index-BFeN7gRX.js","assets/redux-DNNFTtlX.js","assets/ViewColumn-DhNVCNtY.js","assets/LastPage-DfP2R9Oa.js","assets/index-Cb5ummYm.js","assets/resource-dialog-D9phHFD1.js","assets/index-j8fq8gc5.js","assets/CloseOutlined-BxdDTJtY.js","assets/index-29_4R1is.js","assets/user-sessions-Cc78WqU9.js","assets/click-to-copy-CPjwr766.js","assets/uniqBy-B9USxWYR.js","assets/sdk-D3N7Lly-.js","assets/index-HqFqdQ4r.js","assets/shorten-label-DsvGvUrQ.js","assets/index-D_l3bgiM.js","assets/index-B_vncBdF.js","assets/EditIcon-BzxcFyWF.js","assets/Google-Dz_lBWZG.js","assets/InputAdornment-DBYVP0VZ.js","assets/index-BKvulX5F.js","assets/iframe-86-twlRv.js","assets/Edit-Dm5CBPHC.js","assets/Done-DqYPOWOz.js","assets/logo-uploader-D48tPsQ7.js","assets/ArrowDropDown-B4CQuaFu.js","assets/ChevronRight-D-HWZ2Zs.js","assets/bundle-avatar-J_a9wisR.js","assets/Autocomplete-D0sWlFIR.js","assets/mode-B2dWMeTO.js","assets/index.esm-BACx3Bgt.js","assets/Launch-B871fo3J.js","assets/config-BxeAHcCc.js","assets/switch-control-DbSaBWqA.js","assets/Slider-DHlnySvX.js","assets/index-BnwRbf34.js","assets/index-D1wE6UgA.js","assets/index-foZCwT8M.css","assets/audit-logs-B77XgUxl.js","assets/index-DyV0uX5c.js","assets/index-D4PP6P2d.css","assets/Pagination-CIhFbEoY.js","assets/index-D2v_q--c.js","assets/log-53QGCL9A.js","assets/Download-BRihSpJ5.js","assets/log-D33dFtt_.css","assets/index-D6Fo42LG.js","assets/Error-D_2Fmq_E.js","assets/QuestionMarkCircle-Dmo7fO3q.js","assets/useSlotProps-JEaJsoR3.js","assets/DeleteOutline-DCYu02gd.js","assets/item-DiPWmg4D.js","assets/jss-plugin-props-sort.esm-BbUCTvTY.js","assets/Stepper-Cr4Ue7LM.js","assets/config-navigation-Cxy6wwv0.js","assets/slicedToArray-DXMU5JZD.js","assets/index-bo5TF2Hm.js","assets/index-D3z0u_tU.js","assets/Skeleton-DiG5VWr2.js","assets/index-DZAe2asg.js","assets/use-blocklet-info-for-connect-did-spaces-D6v0hDzW.js","assets/spaces-D4gX0_rK.js","assets/component-Bjp-R3IE.js","assets/index-Dvdwt5er.js","assets/toUpper-CliKP7G7.js","assets/ChevronLeft-DmDrmJDF.js","assets/add-component-core-BAFb6uHx.js","assets/lottie-DXvsb19-.js","assets/index-DYgo92mz.js","assets/url-join-M0zkNbYb.js","assets/launch-result-message-DUOKkM73.js","assets/Close-BWGd-Nvb.js","assets/page-header-BhMIblde.js","assets/index-C8tvv1mE.js","assets/connect-to-BvUi2lDi.js","assets/content-layout-dCNXPQB4.js","assets/preact.module-DJUF--8d.js","assets/add-component-core-Dg7G08Fh.css","assets/analytics-CX0H_3Z4.js","assets/LaunchOutlined-DMPabe2p.js","assets/notifications-0JFtARNG.js"])))=>i.map(i=>d[i]);
2
- import{aE as Zn,aF as Jn,aG as Nt,aH as W,r as x,aI as er,aJ as tr,aK as ge,aL as Pn,aM as vt,j as c,aN as nr,aO as ho,X as k,Y as z,P as m,Z as Ze,e as Je,aP as ye,a0 as Mt,a8 as B,aa as Z,aQ as Ne,aC as Ut,aR as vo,L as Bt,aS as yt,aT as yo,n as te,a1 as he,G as $,T as G,t as J,aU as xo,aV as bo,c as ke,aW as jo,aX as xt,u as Q,aY as wo,B as D,K as So,aZ as _o,a as He,a_ as Co,a$ as Oo,b0 as Po,b1 as Io,b2 as Eo,b3 as Ro,b4 as To,b5 as Lo,b6 as Do,b7 as rr,b8 as Ao,b9 as $o,ba as No,bb as or,bc as sr,bd as ir,$ as et,be as ar,bf as ce,bg as me,bh as kt,bi as cr,bj as Mo,af as qe,aj as Uo,bk as Bo,bl as ko,bm as zo,ai as Fo,bn as Vo,bo as Ho,ak as Ee,bp as qo,aB as Ko,C as Ke,bq as Wo,br as Go,bs as _e,bt as lr,bu as Qo,ad as In,a7 as Xo,ab as Yo,ae as Zo,ag as Jo,bv as ze,a6 as Me,bw as es,H as ts,a3 as F,bx as ns,ap as rs,Q as En}from"./index-C2SclAt1.js";import{T as os}from"./index-BYwmGv42.js";import{u as ur,_ as Rn}from"./useLocalStorage-CuRBIcWm.js";import{d as ss}from"./MoreVert-6cQtfCA6.js";import{C as Tn}from"./confirm-CZh9lrf7.js";import{d as is,L as as,a as dr}from"./Delete-Cbmwi2_n.js";import{d as cs,u as ls}from"./PlayArrow-DfVelCxI.js";import{A as fr}from"./Alert-B8kenWpY.js";import{B as us}from"./ButtonGroup-DRVN-vsI.js";import{R as ds,a as Ln}from"./RadioGroup-C8LRTono.js";import{F as bt,C as fs}from"./FormControlLabel-DXJxfDzh.js";import{f as zt}from"./format-error-MSTr4Dld.js";import{A as pr}from"./Avatar-7y20d6uv.js";import{u as ps}from"./session-DQy8BnkU.js";import{D as ms,_ as mr,P as gs}from"./permission-Bn8ONtBu.js";import{T as gr,b as hs}from"./index-DY43G97W.js";import{L as hr}from"./Link-DiIwF6B2.js";import{_ as vr}from"./useSetState-BMiClb9g.js";import{E as vs}from"./fallback-B1bvHdlx.js";import{u as ys}from"./index-TIPq1YB5.js";import{L as xs,D as bs}from"./index-BJZKVgnz.js";import{w as yr}from"./deprecate-CstKkKFM.js";function js(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=ur({badgeContent:t,max:r});let s=n;n===!1&&t===0&&!o&&(s=!0);const{badgeContent:a,max:l=r}=s?i:e,u=a&&Number(a)>l?`${l}+`:a;return{badgeContent:a,invisible:s,max:l,displayValue:u}}function ws(e){return Jn("MuiBadge",e)}const re=Zn("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Ss=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],ut=10,dt=4,_s=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:s={}}=e,a={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${W(n.vertical)}${W(n.horizontal)}`,`anchorOrigin${W(n.vertical)}${W(n.horizontal)}${W(o)}`,`overlap${W(o)}`,t!=="default"&&`color${W(t)}`]};return nr(a,ws,s)},Cs=Nt("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Os=Nt("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${W(n.anchorOrigin.vertical)}${W(n.anchorOrigin.horizontal)}${W(n.overlap)}`],n.color!=="default"&&t[`color${W(n.color)}`],n.invisible&&t.invisible]}})(({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:ut*2,lineHeight:1,padding:"0 6px",height:ut*2,borderRadius:ut,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r,o;return((r=e.vars)!=null?r:e).palette[n].main&&((o=e.vars)!=null?o:e).palette[n].contrastText}).map(n=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText}})),{props:{variant:"dot"},style:{borderRadius:dt,height:dt*2,minWidth:dt*2,padding:0}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${re.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${re.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${re.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${re.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${re.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${re.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${re.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${re.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),xr=x.forwardRef(function(t,n){var r,o,i,s,a,l;const u=er({props:t,name:"MuiBadge"}),{anchorOrigin:d={vertical:"top",horizontal:"right"},className:f,component:p,components:v={},componentsProps:b={},children:h,overlap:j="rectangular",color:I="default",invisible:g=!1,max:_=99,badgeContent:w,slots:O,slotProps:S,showZero:R=!1,variant:C="standard"}=u,P=tr(u,Ss),{badgeContent:E,invisible:T,max:ne,displayValue:M}=js({max:_,invisible:g,badgeContent:w,showZero:R}),be=ur({anchorOrigin:d,color:I,overlap:j,variant:C,badgeContent:w}),je=T||E==null&&C!=="dot",{color:it=I,overlap:at=j,anchorOrigin:ct=d,variant:ie=C}=je?be:u,y=ie!=="dot"?M:void 0,L=ge({},u,{badgeContent:E,invisible:je,max:ne,displayValue:y,showZero:R,anchorOrigin:ct,color:it,overlap:at,variant:ie}),V=_s(L),H=(r=(o=O==null?void 0:O.root)!=null?o:v.Root)!=null?r:Cs,X=(i=(s=O==null?void 0:O.badge)!=null?s:v.Badge)!=null?i:Os,q=(a=S==null?void 0:S.root)!=null?a:b.root,N=(l=S==null?void 0:S.badge)!=null?l:b.badge,lt=Pn({elementType:H,externalSlotProps:q,externalForwardedProps:P,additionalProps:{ref:n,as:p},ownerState:L,className:vt(q==null?void 0:q.className,V.root,f)}),de=Pn({elementType:X,externalSlotProps:N,ownerState:L,className:vt(V.badge,N==null?void 0:N.className)});return c.jsxs(H,ge({},lt,{children:[h,c.jsx(X,ge({},de,{children:y}))]}))});function Ps(e){return Jn("MuiListItemAvatar",e)}Zn("MuiListItemAvatar",["root","alignItemsFlexStart"]);const Is=["className"],Es=e=>{const{alignItems:t,classes:n}=e;return nr({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Ps,n)},Rs=Nt("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>ge({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),Ts=x.forwardRef(function(t,n){const r=er({props:t,name:"MuiListItemAvatar"}),{className:o}=r,i=tr(r,Is),s=x.useContext(ho),a=ge({},r,{alignItems:s.alignItems}),l=Es(a);return c.jsx(Rs,ge({className:vt(l.root,o),ownerState:a,ref:n},i))});var Ft={},Ls=z;Object.defineProperty(Ft,"__esModule",{value:!0});var br=Ft.default=void 0,Ds=Ls(k()),As=c;br=Ft.default=(0,Ds.default)((0,As.jsx)("path",{d:"M6 6h12v12H6z"}),"Stop");var Vt={},$s=z;Object.defineProperty(Vt,"__esModule",{value:!0});var jr=Vt.default=void 0,Ns=$s(k()),Ms=c;jr=Vt.default=(0,Ns.default)((0,Ms.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"}),"Replay");var Ht={},Us=z;Object.defineProperty(Ht,"__esModule",{value:!0});var wr=Ht.default=void 0,Bs=Us(k()),ks=c;wr=Ht.default=(0,Bs.default)((0,ks.jsx)("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"}),"Autorenew");var qt={},zs=z;Object.defineProperty(qt,"__esModule",{value:!0});var Sr=qt.default=void 0,Fs=zs(k()),Vs=c;Sr=qt.default=(0,Fs.default)((0,Vs.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");var Kt={},Hs=z;Object.defineProperty(Kt,"__esModule",{value:!0});var _r=Kt.default=void 0,qs=Hs(k()),Ks=c;_r=Kt.default=(0,qs.default)((0,Ks.jsx)("path",{d:"M18 17H6v-2h12zm0-4H6v-2h12zm0-4H6V7h12zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2 4.5 3.5 3 2z"}),"Receipt");var Wt={},Ws=z;Object.defineProperty(Wt,"__esModule",{value:!0});var Cr=Wt.default=void 0,Gs=Ws(k()),Qs=c;Cr=Wt.default=(0,Gs.default)((0,Qs.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"Group");var Gt={},Xs=z;Object.defineProperty(Gt,"__esModule",{value:!0});var Or=Gt.default=void 0,Ys=Xs(k()),Zs=c;Or=Gt.default=(0,Ys.default)((0,Zs.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20m6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9"}),"NotInterested");var Qt={};Object.defineProperty(Qt,"__esModule",{value:!0});var Pr=Qt.default=void 0;Js(x);var Dn=c;function Js(e){return e&&e.__esModule?e:{default:e}}function An(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function $n(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?An(Object(n),!0).forEach(function(r){ei(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):An(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ei(e,t,n){return(t=ti(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ti(e){var t=ni(e,"string");return typeof t=="symbol"?t:t+""}function ni(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xt=function(t){return(0,Dn.jsx)("svg",$n($n({},t),{},{children:(0,Dn.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.33 8.207A11.52 11.52 0 0 1 23.504 26.34H8.496A11.52 11.52 0 0 1 9.33 8.207zM16 3.52a14.08 14.08 0 0 0-8.76 25.102c.226.18.506.278.796.278h15.928c.29 0 .57-.098.797-.278A14.08 14.08 0 0 0 16 3.52zm5.883 10.072a1.28 1.28 0 0 0-1.81-1.81l-2.205 2.205a4.124 4.124 0 1 0 1.81 1.81l2.205-2.205zm-7.447 4.073a1.564 1.564 0 1 1 3.128 0 1.564 1.564 0 0 1-3.129 0z",fill:"currentColor"})}))};Xt.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};Xt.displayName="dashboard";Pr=Qt.default=Xt;var Yt={},ri=z;Object.defineProperty(Yt,"__esModule",{value:!0});var Ir=Yt.default=void 0,oi=ri(k()),si=c;Ir=Yt.default=(0,oi.default)((0,si.jsx)("path",{d:"m18.25 7.6-5.5-3.18c-.46-.27-1.04-.27-1.5 0L5.75 7.6c-.46.27-.75.76-.75 1.3v6.35c0 .54.29 1.03.75 1.3l5.5 3.18c.46.27 1.04.27 1.5 0l5.5-3.18c.46-.27.75-.76.75-1.3V8.9c0-.54-.29-1.03-.75-1.3M7 14.96v-4.62l4 2.32v4.61zm5-4.03L8 8.61l4-2.31 4 2.31zm1 6.34v-4.61l4-2.32v4.62zM7 2H3.5C2.67 2 2 2.67 2 3.5V7h2V4h3zm10 0h3.5c.83 0 1.5.67 1.5 1.5V7h-2V4h-3zM7 22H3.5c-.83 0-1.5-.67-1.5-1.5V17h2v3h3zm10 0h3.5c.83 0 1.5-.67 1.5-1.5V17h-2v3h-3z"}),"ViewInAr");const pe={Start:cs,Stop:br,Restart:jr,Reload:wr,Remove:is,Config:Sr,Log:_r,Group:Cr,Cancel:Or,Dashboard:Pr,Overview:Ir},ii="internal",ai="external";function Zt({blocklet:e,onStart:t,onComplete:n,variant:r,hasPermission:o,getComponentUrl:i,useBlockletUrlEvaluation:s,...a}){const l=Je(),u=ye(),[d,f]=x.useState(null),[p,v]=x.useState(null),[b,h]=x.useState(!1),[j,I]=x.useState(null),{t:g}=x.useContext(Mt),[_]=Rn("skip-blocklet-setup",!1),{loading:w,recommendedUrl:O}=s(e),[S]=Rn("blocklet-type-filter",ii),R=B.isInProgress(e.status),[C,P]=x.useState(!1);x.useEffect(()=>{var L,V;if(!(e!=null&&e.controller))return;P(((V=(L=e==null?void 0:e.controller)==null?void 0:L.status)==null?void 0:V.value)===Z.BLOCKLET_CONTROLLER_STATUS.suspended),(async()=>{var H,X,q;try{const N=await u.api.getLauncherSession({input:{launcherSessionId:(H=e==null?void 0:e.controller)==null?void 0:H.launcherSessionId,launcherUrl:(X=e==null?void 0:e.controller)==null?void 0:X.launcherUrl}});if(N!=null&&N.error){console.error("get launcher session failed",N.error);return}P([$.LAUNCH_SESSION_STATUS.overdue,$.LAUNCH_SESSION_STATUS.canceled,$.LAUNCH_SESSION_STATUS.terminated].includes((q=N==null?void 0:N.launcherSession)==null?void 0:q.status))}catch(N){console.error("call getLauncherSession error",N)}})()},[]);const{inService:E}=u,T=(y,L,V=!1)=>async()=>{const H=async de=>{var $e;t({action:y,blocklet:e}),h(!0),v(y);let Ae=!1;try{if(y==="remove")await L(de);else if(y==="start"){if(!B.hasRunnableComponent(e)){J.error(g("blocklet.noComponent"));return}if(!E&&!_&&!(($e=e.settings)!=null&&$e.initialized)&&e.mode!==Z.BLOCKLET_MODES.DEVELOPMENT){const Y=xo(u.info),On=new URL(O);On.searchParams.set("serverUrl",Y),window.open(On.href),n({action:y,blocklet:e});return}const ae=e.children.filter(Y=>!B.isInProgress(Y.status)&&Y.status!=="running").map(Y=>Y.meta.did),fe={did:e.meta.did,componentDids:ae};await L({input:fe})}else if(["stop","restart","reload"].includes(y)){const ae=e.children.filter(Y=>Y.status==="running").map(Y=>Y.meta.did),fe={did:e.meta.did,componentDids:ae};await L({input:fe})}else{const ae={did:e.meta.did};await L({input:ae})}y==="remove"?Ae=!0:await bo(1e3),y==="reload"&&J.success(g("blocklet.reloadSuccess")),I(null),n({action:y,blocklet:e})}catch(ae){const fe=`Blocklet ${y} failed: ${zt(ae)}`;throw n({action:y,blocklet:e,error:new Error(fe)}),new Error(fe)}finally{Ae||h(!1)}},X=()=>{h(!1),I(null)},q=B.getDisplayName(e,!0),N=e.mode===Z.BLOCKLET_MODES.DEVELOPMENT?{description:()=>c.jsx(G,{component:"div",children:c.jsx(G,{gutterBottom:!0,children:g("blocklet.action.removeApplicationDescription")})}),params:{removeType:"complete"}}:{description:(de,Ae)=>c.jsxs(G,{component:"div",children:[c.jsx(G,{gutterBottom:!0,children:g("blocklet.action.removeApplicationDescription")}),c.jsxs(ds,{name:"removeType",value:de.removeType,onChange:$e=>Ae({...de,removeType:$e.target.value}),children:[c.jsx(bt,{value:"backup",control:c.jsx(Ln,{}),label:g("blocklet.action.removeApplicationAfterBackup")}),c.jsx(bt,{value:"complete",control:c.jsx(Ln,{}),label:g("blocklet.action.removeApplicationComplete")})]})]}),params:{removeType:"backup"}},lt={stop:{title:`${g("common.stop")} ${q}`,description:g("blocklet.action.stopDescription"),confirm:g("blocklet.action.confirmStop"),cancel:g("common.cancel"),onConfirm:H,onCancel:X},restart:{title:`${g("common.restart")} ${q}`,description:g("blocklet.action.restartDescription"),confirm:g("blocklet.action.confirmRestart"),cancel:g("common.cancel"),onConfirm:H,onCancel:X},remove:{title:`${g("common.remove")} ${q}`,confirm:g("blocklet.action.confirmRemove"),cancel:g("common.cancel"),onConfirm:H,onCancel:X,...N},cancelDownload:{title:`${g("common.cancel")}`,description:g("blocklet.action.cancelDownloadDescription",{name:q}),confirm:g("common.confirm"),cancel:g("common.cancel"),onConfirm:H,onCancel:X}};V?I(lt[y]):await H()},ne=!!d,M=y=>{try{y.stopPropagation(),y.preventDefault()}catch{}f(y.currentTarget)},be=y=>{try{y.stopPropagation(),y.preventDefault()}catch{}f(null)},je=async(y,L)=>{try{L.stopPropagation(),L.preventDefault()}catch{}if(typeof y.handler=="function")try{h(!0),v(y.action),await y.handler()}catch(V){console.error(`Blocklet ${y.name} failed: `,V)}finally{h(!1),f(null)}else f(null)},it=!E&&B.isDeletableBlocklet(e)?{action:"remove",icon:pe.Remove,name:g("common.remove"),handler:T("remove",async({removeType:y})=>{y==="backup"&&await u.api.backupBlocklet({input:{appDid:e.appDid,to:"disk"}}),await u.api.deleteBlocklet({input:{did:e.meta.did,keepData:!1}})},!0),disabled:R}:null,at={action:"remove",icon:({sx:y,...L})=>c.jsx(pe.Cancel,{sx:{...y,paddingRight:"2px",zoom:.95},...L}),name:g("common.cancel"),handler:T("cancelDownload",u.api.cancelDownloadBlocklet,!0)},ct=B.getAppMissingConfigs(e);let ie=[{action:"start",icon:pe.Start,name:g("common.start"),handler:T("start",u.api.startBlocklet),disabled:C||e.children.every(y=>y.status==="running")||Ne(e.status)||w||R},{action:"stop",icon:pe.Stop,name:g("common.stop"),handler:T("stop",u.api.stopBlocklet,!0),disabled:!["running","starting"].includes(e.status)},{action:"restart",icon:pe.Restart,name:g("common.restart"),handler:T("restart",u.api.restartBlocklet,!0),disabled:C||e.status!=="running"},Ne(e.status)?at:it,{separator:!0},E?null:{onlyInMenu:!0,action:"overview",icon:pe.Overview,name:g("common.overview"),handler:()=>{l(`/blocklets/${e.meta.did}/overview`)},disabled:Ne(e.status)}].filter(Boolean);return S===ai&&(ie=ie.filter(y=>y.onlyInMenu)),r==="menu"?c.jsxs(Nn,{"data-cy":"blocklet-actions",children:[c.jsx(Ut,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions","actions-blocklet-did":e.meta.did,onClick:M,size:"small",disabled:!o||!Ne(e.status)&&b,children:c.jsx(ss,{})}),c.jsxs(vo,{id:"actions-menu",anchorEl:d,keepMounted:!0,open:ne,onClose:be,PaperProps:{},children:[ct.length>0&&c.jsxs(fr,{style:{maxWidth:"400px"},severity:"error",children:[g("blocklet.config.missingRequired"),c.jsx("br",{}),c.jsx(Bt,{to:`/blocklets/${e.meta.did}/components`,children:g("blocklet.config.gotoFix")})]}),ie.map((y,L)=>y.separator?c.jsx(yt,{},`separator-${L}`):c.jsxs(yo,{dense:!0,onClick:V=>je(y,V),disabled:b||y.disabled,"data-cy":`${y.action}-blocklet`,children:[c.jsx(as,{style:{minWidth:24},children:p===y.action&&b?c.jsx(te,{size:16,sx:{marginRight:1}}):c.jsx(y.icon,{fontSize:"small"})}),c.jsx(dr,{primary:y.name})]},y.name))]}),j&&c.jsx(Tn,{title:j.title,description:j.description,confirm:j.confirm,cancel:j.cancel,params:j.params,onConfirm:j.onConfirm,onCancel:j.onCancel})]}):c.jsxs(Nn,{"data-cy":"blocklet-actions",...a,children:[c.jsx(us,{children:ie.filter(y=>!y.separator&&!y.onlyInMenu).map(y=>c.jsxs(he,{title:y.name,"data-cy":`${y.action}-blocklet`,onClick:()=>je(y),disabled:!!y.disabled||b,children:[p===y.action&&b?c.jsx(te,{size:16,sx:{marginRight:1}}):c.jsx(y.icon,{}),c.jsx("span",{className:"blocklet-action-text",children:y.name})]},y.name))}),j&&c.jsx(Tn,{title:j.title,description:j.description,confirm:j.confirm,cancel:j.cancel,params:j.params,onConfirm:j.onConfirm,onCancel:j.onCancel})]})}Zt.propTypes={getComponentUrl:m.func,blocklet:m.object.isRequired,onStart:m.func.isRequired,onComplete:m.func.isRequired,variant:m.oneOf(["menu","group"]),hasPermission:m.bool,useBlockletUrlEvaluation:m.func};Zt.defaultProps={getComponentUrl:null,variant:"menu",hasPermission:!1,useBlockletUrlEvaluation:()=>{var e;return{loading:!1,recommendedUrl:(e=window==null?void 0:window.location)==null?void 0:e.href}}};const Nn=Ze.div`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/overview-hAiGOEVT.js","assets/index-i2bJjWlC.js","assets/index-D8NuaJ66.css","assets/keyboard-arrow-down-rounded-DadBVmpO.js","assets/index-DFQaq3Rr.js","assets/index-CxG2UB6c.js","assets/did-address-D-yVl_K0.js","assets/Link-DKpyb7YJ.js","assets/domain-list-Be48YS53.js","assets/trim-Bt2VQ0Ha.js","assets/Add-B_zIhg44.js","assets/ExpandMore-Bks5Rs1W.js","assets/base32-e4-hEDvj.js","assets/LockIcon-CUg33kAh.js","assets/index-DrfPYJyV.js","assets/permission-DvCC8ds5.js","assets/useAsync-DrKowMF-.js","assets/session-BsF6Ry4f.js","assets/confirm--goQCY50.js","assets/DialogContentText-BLTyWj7L.js","assets/Alert-BD7qiL2D.js","assets/useSlot-CYg01tyr.js","assets/format-error-VtIlQW7O.js","assets/useSetState-WFCMcsBA.js","assets/use-mobile-U_gbz8U8.js","assets/InfoOutlined-BUEfaYJO.js","assets/OpenInNew-CZW6S_iL.js","assets/index-KsNw_oCk.js","assets/api-DU7XtVew.js","assets/util-Tmhb8Xbm.js","assets/TextField-jO6zLRwt.js","assets/FormControl-D_xlQ0oS.js","assets/useFormControl-YhhxESzJ.js","assets/InputLabel-Dh-MCVtK.js","assets/Select-_tnTCxoo.js","assets/LoadingButton-CF2Q6W1c.js","assets/useThemeProps-y2LaMc6g.js","assets/Delete-BTff40qP.js","assets/actions-BS6B9xB1.js","assets/MoreHoriz-BGYW9E7p.js","assets/index-BdUVqVxS.js","assets/useLocalStorage-C2WA_Ro_.js","assets/MoreVert-vvYPgtTT.js","assets/PlayArrow-S0oN_KUI.js","assets/ButtonGroup-C_U4IcCx.js","assets/RadioGroup-Cv3lH7a9.js","assets/FormControlLabel-C4BfEVkE.js","assets/Stack-DLxwswxp.js","assets/FormGroup-BCAdKjF1.js","assets/Avatar-PQdoLJAj.js","assets/fallback-DAFQQ9ZX.js","assets/index-q7KWKYhz.js","assets/Menu-DowAkE3E.js","assets/Toolbar-B3I1C6hD.js","assets/Hidden-DRzgqRjG.js","assets/index-BC0lMU8_.js","assets/selector-Ctoe5_yc.js","assets/deprecate-BqZG0sUo.js","assets/index-BdOBigee.js","assets/index-DA7WmjFs.js","assets/Loop-CRzXoIx1.js","assets/ViewList-C7rjsnO8.js","assets/list-header-n2SJwvar.js","assets/Search-CQVAmSnj.js","assets/index-CecjgqNu.js","assets/Grid-BRi4wY3I.js","assets/emotion-cache.browser.esm-CZlt0hks.js","assets/index-D-DYHbf8.js","assets/redux-BTtsVqLb.js","assets/ViewColumn-BPYRCwhU.js","assets/LastPage-CrqwFm31.js","assets/index-yjXJ4CA8.js","assets/resource-dialog-BgvHsNtp.js","assets/index-CO34d6F-.js","assets/CloseOutlined-BnUYxZqj.js","assets/index-BQ0lBDB3.js","assets/user-sessions-B72qqeSd.js","assets/click-to-copy-Bc4F7J-M.js","assets/uniqBy-NzQMBrwx.js","assets/sdk-BZqku07r.js","assets/index-HqFqdQ4r.js","assets/shorten-label-BphXq2mC.js","assets/index-CZJBy12a.js","assets/index-azbXVc35.js","assets/EditIcon-DWwHcOSH.js","assets/Google-CdpMhp0D.js","assets/InputAdornment-DdYsc1uM.js","assets/index-C0IZfDu_.js","assets/iframe-DYja1hx6.js","assets/Edit-dS-85akO.js","assets/Done-DPAJGUIH.js","assets/logo-uploader-KD_gkrS7.js","assets/ArrowDropDown-D0yU-g1-.js","assets/ChevronRight-s8o0SkiY.js","assets/bundle-avatar-S5VVQLmS.js","assets/Autocomplete-f3t4pSsb.js","assets/mode-B2dWMeTO.js","assets/index.esm-BC532VA_.js","assets/Launch-BIUWVs2B.js","assets/config-EyNP1KZ4.js","assets/switch-control-DVFPWamX.js","assets/Slider-BLemrBSe.js","assets/index-BbqMNG1y.js","assets/index-BCRgUmeQ.js","assets/index-foZCwT8M.css","assets/audit-logs-T8m9cab6.js","assets/index-dlqbDSV2.js","assets/index-D4PP6P2d.css","assets/Pagination-GSQx3K8F.js","assets/index-tZjr-3si.js","assets/log-fYGuc_1q.js","assets/Download-o95MMX9a.js","assets/log-D33dFtt_.css","assets/index-LqIfjjYK.js","assets/Error-_ycpReOF.js","assets/QuestionMarkCircle-ebeXOBuM.js","assets/useSlotProps-BUxaWUJH.js","assets/DeleteOutline-qo86utWY.js","assets/item-BB4SRNhY.js","assets/jss-plugin-props-sort.esm-DgbF_O4R.js","assets/Stepper-D3Itx747.js","assets/config-navigation-SHlDKd6P.js","assets/slicedToArray-CnkUutQg.js","assets/index-BizYqoo7.js","assets/index-BIcoMPI1.js","assets/Skeleton-D4tslYDP.js","assets/index-BmenTnvD.js","assets/use-blocklet-info-for-connect-did-spaces-BvdUptjO.js","assets/spaces-DkLAGFaG.js","assets/component-DUI0h-ax.js","assets/index-BoMlY1bM.js","assets/toUpper-BXqYglad.js","assets/ChevronLeft-COq-aHuB.js","assets/add-component-core-BNNE4gaf.js","assets/lottie-1sENXOdz.js","assets/index-CRTWxI2E.js","assets/url-join-CF8lZEtN.js","assets/launch-result-message-mYdCt9l5.js","assets/Close-shWfX4Fx.js","assets/page-header-Bsz3-PCn.js","assets/index-gQ96oHXr.js","assets/connect-to-DnAL6fzo.js","assets/content-layout-Bmj3qwn2.js","assets/preact.module-DJUF--8d.js","assets/add-component-core-Dg7G08Fh.css","assets/analytics-BJQaDJpa.js","assets/LaunchOutlined-ntNPLvJ4.js","assets/notifications-Bv9kdMWF.js"])))=>i.map(i=>d[i]);
2
+ import{aE as Zn,aF as Jn,aG as Nt,aH as W,r as x,aI as er,aJ as tr,aK as ge,aL as Pn,aM as vt,j as c,aN as nr,aO as ho,X as k,Y as z,P as m,Z as Ze,e as Je,aP as ye,a0 as Mt,a8 as B,aa as Z,aQ as Ne,aC as Ut,aR as vo,L as Bt,aS as yt,aT as yo,n as te,a1 as he,G as $,T as G,t as J,aU as xo,aV as bo,c as ke,aW as jo,aX as xt,u as Q,aY as wo,B as D,K as So,aZ as _o,a as He,a_ as Co,a$ as Oo,b0 as Po,b1 as Io,b2 as Eo,b3 as Ro,b4 as To,b5 as Lo,b6 as Do,b7 as rr,b8 as Ao,b9 as $o,ba as No,bb as or,bc as sr,bd as ir,$ as et,be as ar,bf as ce,bg as me,bh as kt,bi as cr,bj as Mo,af as qe,aj as Uo,bk as Bo,bl as ko,bm as zo,ai as Fo,bn as Vo,bo as Ho,ak as Ee,bp as qo,aB as Ko,C as Ke,bq as Wo,br as Go,bs as _e,bt as lr,bu as Qo,ad as In,a7 as Xo,ab as Yo,ae as Zo,ag as Jo,bv as ze,a6 as Me,bw as es,H as ts,a3 as F,bx as ns,ap as rs,Q as En}from"./index-i2bJjWlC.js";import{T as os}from"./index-BdUVqVxS.js";import{u as ur,_ as Rn}from"./useLocalStorage-C2WA_Ro_.js";import{d as ss}from"./MoreVert-vvYPgtTT.js";import{C as Tn}from"./confirm--goQCY50.js";import{d as is,L as as,a as dr}from"./Delete-BTff40qP.js";import{d as cs,u as ls}from"./PlayArrow-S0oN_KUI.js";import{A as fr}from"./Alert-BD7qiL2D.js";import{B as us}from"./ButtonGroup-C_U4IcCx.js";import{R as ds,a as Ln}from"./RadioGroup-Cv3lH7a9.js";import{F as bt,C as fs}from"./FormControlLabel-C4BfEVkE.js";import{f as zt}from"./format-error-VtIlQW7O.js";import{A as pr}from"./Avatar-PQdoLJAj.js";import{u as ps}from"./session-BsF6Ry4f.js";import{D as ms,_ as mr,P as gs}from"./permission-DvCC8ds5.js";import{T as gr,b as hs}from"./index-CxG2UB6c.js";import{L as hr}from"./Link-DKpyb7YJ.js";import{_ as vr}from"./useSetState-WFCMcsBA.js";import{E as vs}from"./fallback-DAFQQ9ZX.js";import{u as ys}from"./index-q7KWKYhz.js";import{L as xs,D as bs}from"./index-BC0lMU8_.js";import{w as yr}from"./deprecate-BqZG0sUo.js";function js(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=ur({badgeContent:t,max:r});let s=n;n===!1&&t===0&&!o&&(s=!0);const{badgeContent:a,max:l=r}=s?i:e,u=a&&Number(a)>l?`${l}+`:a;return{badgeContent:a,invisible:s,max:l,displayValue:u}}function ws(e){return Jn("MuiBadge",e)}const re=Zn("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Ss=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],ut=10,dt=4,_s=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:s={}}=e,a={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${W(n.vertical)}${W(n.horizontal)}`,`anchorOrigin${W(n.vertical)}${W(n.horizontal)}${W(o)}`,`overlap${W(o)}`,t!=="default"&&`color${W(t)}`]};return nr(a,ws,s)},Cs=Nt("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Os=Nt("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${W(n.anchorOrigin.vertical)}${W(n.anchorOrigin.horizontal)}${W(n.overlap)}`],n.color!=="default"&&t[`color${W(n.color)}`],n.invisible&&t.invisible]}})(({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:ut*2,lineHeight:1,padding:"0 6px",height:ut*2,borderRadius:ut,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r,o;return((r=e.vars)!=null?r:e).palette[n].main&&((o=e.vars)!=null?o:e).palette[n].contrastText}).map(n=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText}})),{props:{variant:"dot"},style:{borderRadius:dt,height:dt*2,minWidth:dt*2,padding:0}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${re.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${re.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${re.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${re.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${re.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${re.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${re.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${re.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),xr=x.forwardRef(function(t,n){var r,o,i,s,a,l;const u=er({props:t,name:"MuiBadge"}),{anchorOrigin:d={vertical:"top",horizontal:"right"},className:f,component:p,components:v={},componentsProps:b={},children:h,overlap:j="rectangular",color:I="default",invisible:g=!1,max:_=99,badgeContent:w,slots:O,slotProps:S,showZero:R=!1,variant:C="standard"}=u,P=tr(u,Ss),{badgeContent:E,invisible:T,max:ne,displayValue:M}=js({max:_,invisible:g,badgeContent:w,showZero:R}),be=ur({anchorOrigin:d,color:I,overlap:j,variant:C,badgeContent:w}),je=T||E==null&&C!=="dot",{color:it=I,overlap:at=j,anchorOrigin:ct=d,variant:ie=C}=je?be:u,y=ie!=="dot"?M:void 0,L=ge({},u,{badgeContent:E,invisible:je,max:ne,displayValue:y,showZero:R,anchorOrigin:ct,color:it,overlap:at,variant:ie}),V=_s(L),H=(r=(o=O==null?void 0:O.root)!=null?o:v.Root)!=null?r:Cs,X=(i=(s=O==null?void 0:O.badge)!=null?s:v.Badge)!=null?i:Os,q=(a=S==null?void 0:S.root)!=null?a:b.root,N=(l=S==null?void 0:S.badge)!=null?l:b.badge,lt=Pn({elementType:H,externalSlotProps:q,externalForwardedProps:P,additionalProps:{ref:n,as:p},ownerState:L,className:vt(q==null?void 0:q.className,V.root,f)}),de=Pn({elementType:X,externalSlotProps:N,ownerState:L,className:vt(V.badge,N==null?void 0:N.className)});return c.jsxs(H,ge({},lt,{children:[h,c.jsx(X,ge({},de,{children:y}))]}))});function Ps(e){return Jn("MuiListItemAvatar",e)}Zn("MuiListItemAvatar",["root","alignItemsFlexStart"]);const Is=["className"],Es=e=>{const{alignItems:t,classes:n}=e;return nr({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Ps,n)},Rs=Nt("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>ge({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),Ts=x.forwardRef(function(t,n){const r=er({props:t,name:"MuiListItemAvatar"}),{className:o}=r,i=tr(r,Is),s=x.useContext(ho),a=ge({},r,{alignItems:s.alignItems}),l=Es(a);return c.jsx(Rs,ge({className:vt(l.root,o),ownerState:a,ref:n},i))});var Ft={},Ls=z;Object.defineProperty(Ft,"__esModule",{value:!0});var br=Ft.default=void 0,Ds=Ls(k()),As=c;br=Ft.default=(0,Ds.default)((0,As.jsx)("path",{d:"M6 6h12v12H6z"}),"Stop");var Vt={},$s=z;Object.defineProperty(Vt,"__esModule",{value:!0});var jr=Vt.default=void 0,Ns=$s(k()),Ms=c;jr=Vt.default=(0,Ns.default)((0,Ms.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"}),"Replay");var Ht={},Us=z;Object.defineProperty(Ht,"__esModule",{value:!0});var wr=Ht.default=void 0,Bs=Us(k()),ks=c;wr=Ht.default=(0,Bs.default)((0,ks.jsx)("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"}),"Autorenew");var qt={},zs=z;Object.defineProperty(qt,"__esModule",{value:!0});var Sr=qt.default=void 0,Fs=zs(k()),Vs=c;Sr=qt.default=(0,Fs.default)((0,Vs.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");var Kt={},Hs=z;Object.defineProperty(Kt,"__esModule",{value:!0});var _r=Kt.default=void 0,qs=Hs(k()),Ks=c;_r=Kt.default=(0,qs.default)((0,Ks.jsx)("path",{d:"M18 17H6v-2h12zm0-4H6v-2h12zm0-4H6V7h12zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2 4.5 3.5 3 2z"}),"Receipt");var Wt={},Ws=z;Object.defineProperty(Wt,"__esModule",{value:!0});var Cr=Wt.default=void 0,Gs=Ws(k()),Qs=c;Cr=Wt.default=(0,Gs.default)((0,Qs.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"Group");var Gt={},Xs=z;Object.defineProperty(Gt,"__esModule",{value:!0});var Or=Gt.default=void 0,Ys=Xs(k()),Zs=c;Or=Gt.default=(0,Ys.default)((0,Zs.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20m6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9"}),"NotInterested");var Qt={};Object.defineProperty(Qt,"__esModule",{value:!0});var Pr=Qt.default=void 0;Js(x);var Dn=c;function Js(e){return e&&e.__esModule?e:{default:e}}function An(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function $n(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?An(Object(n),!0).forEach(function(r){ei(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):An(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ei(e,t,n){return(t=ti(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ti(e){var t=ni(e,"string");return typeof t=="symbol"?t:t+""}function ni(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xt=function(t){return(0,Dn.jsx)("svg",$n($n({},t),{},{children:(0,Dn.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.33 8.207A11.52 11.52 0 0 1 23.504 26.34H8.496A11.52 11.52 0 0 1 9.33 8.207zM16 3.52a14.08 14.08 0 0 0-8.76 25.102c.226.18.506.278.796.278h15.928c.29 0 .57-.098.797-.278A14.08 14.08 0 0 0 16 3.52zm5.883 10.072a1.28 1.28 0 0 0-1.81-1.81l-2.205 2.205a4.124 4.124 0 1 0 1.81 1.81l2.205-2.205zm-7.447 4.073a1.564 1.564 0 1 1 3.128 0 1.564 1.564 0 0 1-3.129 0z",fill:"currentColor"})}))};Xt.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};Xt.displayName="dashboard";Pr=Qt.default=Xt;var Yt={},ri=z;Object.defineProperty(Yt,"__esModule",{value:!0});var Ir=Yt.default=void 0,oi=ri(k()),si=c;Ir=Yt.default=(0,oi.default)((0,si.jsx)("path",{d:"m18.25 7.6-5.5-3.18c-.46-.27-1.04-.27-1.5 0L5.75 7.6c-.46.27-.75.76-.75 1.3v6.35c0 .54.29 1.03.75 1.3l5.5 3.18c.46.27 1.04.27 1.5 0l5.5-3.18c.46-.27.75-.76.75-1.3V8.9c0-.54-.29-1.03-.75-1.3M7 14.96v-4.62l4 2.32v4.61zm5-4.03L8 8.61l4-2.31 4 2.31zm1 6.34v-4.61l4-2.32v4.62zM7 2H3.5C2.67 2 2 2.67 2 3.5V7h2V4h3zm10 0h3.5c.83 0 1.5.67 1.5 1.5V7h-2V4h-3zM7 22H3.5c-.83 0-1.5-.67-1.5-1.5V17h2v3h3zm10 0h3.5c.83 0 1.5-.67 1.5-1.5V17h-2v3h-3z"}),"ViewInAr");const pe={Start:cs,Stop:br,Restart:jr,Reload:wr,Remove:is,Config:Sr,Log:_r,Group:Cr,Cancel:Or,Dashboard:Pr,Overview:Ir},ii="internal",ai="external";function Zt({blocklet:e,onStart:t,onComplete:n,variant:r,hasPermission:o,getComponentUrl:i,useBlockletUrlEvaluation:s,...a}){const l=Je(),u=ye(),[d,f]=x.useState(null),[p,v]=x.useState(null),[b,h]=x.useState(!1),[j,I]=x.useState(null),{t:g}=x.useContext(Mt),[_]=Rn("skip-blocklet-setup",!1),{loading:w,recommendedUrl:O}=s(e),[S]=Rn("blocklet-type-filter",ii),R=B.isInProgress(e.status),[C,P]=x.useState(!1);x.useEffect(()=>{var L,V;if(!(e!=null&&e.controller))return;P(((V=(L=e==null?void 0:e.controller)==null?void 0:L.status)==null?void 0:V.value)===Z.BLOCKLET_CONTROLLER_STATUS.suspended),(async()=>{var H,X,q;try{const N=await u.api.getLauncherSession({input:{launcherSessionId:(H=e==null?void 0:e.controller)==null?void 0:H.launcherSessionId,launcherUrl:(X=e==null?void 0:e.controller)==null?void 0:X.launcherUrl}});if(N!=null&&N.error){console.error("get launcher session failed",N.error);return}P([$.LAUNCH_SESSION_STATUS.overdue,$.LAUNCH_SESSION_STATUS.canceled,$.LAUNCH_SESSION_STATUS.terminated].includes((q=N==null?void 0:N.launcherSession)==null?void 0:q.status))}catch(N){console.error("call getLauncherSession error",N)}})()},[]);const{inService:E}=u,T=(y,L,V=!1)=>async()=>{const H=async de=>{var $e;t({action:y,blocklet:e}),h(!0),v(y);let Ae=!1;try{if(y==="remove")await L(de);else if(y==="start"){if(!B.hasRunnableComponent(e)){J.error(g("blocklet.noComponent"));return}if(!E&&!_&&!(($e=e.settings)!=null&&$e.initialized)&&e.mode!==Z.BLOCKLET_MODES.DEVELOPMENT){const Y=xo(u.info),On=new URL(O);On.searchParams.set("serverUrl",Y),window.open(On.href),n({action:y,blocklet:e});return}const ae=e.children.filter(Y=>!B.isInProgress(Y.status)&&Y.status!=="running").map(Y=>Y.meta.did),fe={did:e.meta.did,componentDids:ae};await L({input:fe})}else if(["stop","restart","reload"].includes(y)){const ae=e.children.filter(Y=>Y.status==="running").map(Y=>Y.meta.did),fe={did:e.meta.did,componentDids:ae};await L({input:fe})}else{const ae={did:e.meta.did};await L({input:ae})}y==="remove"?Ae=!0:await bo(1e3),y==="reload"&&J.success(g("blocklet.reloadSuccess")),I(null),n({action:y,blocklet:e})}catch(ae){const fe=`Blocklet ${y} failed: ${zt(ae)}`;throw n({action:y,blocklet:e,error:new Error(fe)}),new Error(fe)}finally{Ae||h(!1)}},X=()=>{h(!1),I(null)},q=B.getDisplayName(e,!0),N=e.mode===Z.BLOCKLET_MODES.DEVELOPMENT?{description:()=>c.jsx(G,{component:"div",children:c.jsx(G,{gutterBottom:!0,children:g("blocklet.action.removeApplicationDescription")})}),params:{removeType:"complete"}}:{description:(de,Ae)=>c.jsxs(G,{component:"div",children:[c.jsx(G,{gutterBottom:!0,children:g("blocklet.action.removeApplicationDescription")}),c.jsxs(ds,{name:"removeType",value:de.removeType,onChange:$e=>Ae({...de,removeType:$e.target.value}),children:[c.jsx(bt,{value:"backup",control:c.jsx(Ln,{}),label:g("blocklet.action.removeApplicationAfterBackup")}),c.jsx(bt,{value:"complete",control:c.jsx(Ln,{}),label:g("blocklet.action.removeApplicationComplete")})]})]}),params:{removeType:"backup"}},lt={stop:{title:`${g("common.stop")} ${q}`,description:g("blocklet.action.stopDescription"),confirm:g("blocklet.action.confirmStop"),cancel:g("common.cancel"),onConfirm:H,onCancel:X},restart:{title:`${g("common.restart")} ${q}`,description:g("blocklet.action.restartDescription"),confirm:g("blocklet.action.confirmRestart"),cancel:g("common.cancel"),onConfirm:H,onCancel:X},remove:{title:`${g("common.remove")} ${q}`,confirm:g("blocklet.action.confirmRemove"),cancel:g("common.cancel"),onConfirm:H,onCancel:X,...N},cancelDownload:{title:`${g("common.cancel")}`,description:g("blocklet.action.cancelDownloadDescription",{name:q}),confirm:g("common.confirm"),cancel:g("common.cancel"),onConfirm:H,onCancel:X}};V?I(lt[y]):await H()},ne=!!d,M=y=>{try{y.stopPropagation(),y.preventDefault()}catch{}f(y.currentTarget)},be=y=>{try{y.stopPropagation(),y.preventDefault()}catch{}f(null)},je=async(y,L)=>{try{L.stopPropagation(),L.preventDefault()}catch{}if(typeof y.handler=="function")try{h(!0),v(y.action),await y.handler()}catch(V){console.error(`Blocklet ${y.name} failed: `,V)}finally{h(!1),f(null)}else f(null)},it=!E&&B.isDeletableBlocklet(e)?{action:"remove",icon:pe.Remove,name:g("common.remove"),handler:T("remove",async({removeType:y})=>{y==="backup"&&await u.api.backupBlocklet({input:{appDid:e.appDid,to:"disk"}}),await u.api.deleteBlocklet({input:{did:e.meta.did,keepData:!1}})},!0),disabled:R}:null,at={action:"remove",icon:({sx:y,...L})=>c.jsx(pe.Cancel,{sx:{...y,paddingRight:"2px",zoom:.95},...L}),name:g("common.cancel"),handler:T("cancelDownload",u.api.cancelDownloadBlocklet,!0)},ct=B.getAppMissingConfigs(e);let ie=[{action:"start",icon:pe.Start,name:g("common.start"),handler:T("start",u.api.startBlocklet),disabled:C||e.children.every(y=>y.status==="running")||Ne(e.status)||w||R},{action:"stop",icon:pe.Stop,name:g("common.stop"),handler:T("stop",u.api.stopBlocklet,!0),disabled:!["running","starting"].includes(e.status)},{action:"restart",icon:pe.Restart,name:g("common.restart"),handler:T("restart",u.api.restartBlocklet,!0),disabled:C||e.status!=="running"},Ne(e.status)?at:it,{separator:!0},E?null:{onlyInMenu:!0,action:"overview",icon:pe.Overview,name:g("common.overview"),handler:()=>{l(`/blocklets/${e.meta.did}/overview`)},disabled:Ne(e.status)}].filter(Boolean);return S===ai&&(ie=ie.filter(y=>y.onlyInMenu)),r==="menu"?c.jsxs(Nn,{"data-cy":"blocklet-actions",children:[c.jsx(Ut,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions","actions-blocklet-did":e.meta.did,onClick:M,size:"small",disabled:!o||!Ne(e.status)&&b,children:c.jsx(ss,{})}),c.jsxs(vo,{id:"actions-menu",anchorEl:d,keepMounted:!0,open:ne,onClose:be,PaperProps:{},children:[ct.length>0&&c.jsxs(fr,{style:{maxWidth:"400px"},severity:"error",children:[g("blocklet.config.missingRequired"),c.jsx("br",{}),c.jsx(Bt,{to:`/blocklets/${e.meta.did}/components`,children:g("blocklet.config.gotoFix")})]}),ie.map((y,L)=>y.separator?c.jsx(yt,{},`separator-${L}`):c.jsxs(yo,{dense:!0,onClick:V=>je(y,V),disabled:b||y.disabled,"data-cy":`${y.action}-blocklet`,children:[c.jsx(as,{style:{minWidth:24},children:p===y.action&&b?c.jsx(te,{size:16,sx:{marginRight:1}}):c.jsx(y.icon,{fontSize:"small"})}),c.jsx(dr,{primary:y.name})]},y.name))]}),j&&c.jsx(Tn,{title:j.title,description:j.description,confirm:j.confirm,cancel:j.cancel,params:j.params,onConfirm:j.onConfirm,onCancel:j.onCancel})]}):c.jsxs(Nn,{"data-cy":"blocklet-actions",...a,children:[c.jsx(us,{children:ie.filter(y=>!y.separator&&!y.onlyInMenu).map(y=>c.jsxs(he,{title:y.name,"data-cy":`${y.action}-blocklet`,onClick:()=>je(y),disabled:!!y.disabled||b,children:[p===y.action&&b?c.jsx(te,{size:16,sx:{marginRight:1}}):c.jsx(y.icon,{}),c.jsx("span",{className:"blocklet-action-text",children:y.name})]},y.name))}),j&&c.jsx(Tn,{title:j.title,description:j.description,confirm:j.confirm,cancel:j.cancel,params:j.params,onConfirm:j.onConfirm,onCancel:j.onCancel})]})}Zt.propTypes={getComponentUrl:m.func,blocklet:m.object.isRequired,onStart:m.func.isRequired,onComplete:m.func.isRequired,variant:m.oneOf(["menu","group"]),hasPermission:m.bool,useBlockletUrlEvaluation:m.func};Zt.defaultProps={getComponentUrl:null,variant:"menu",hasPermission:!1,useBlockletUrlEvaluation:()=>{var e;return{loading:!1,recommendedUrl:(e=window==null?void 0:window.location)==null?void 0:e.href}}};const Nn=Ze.div`
3
3
  display: flex;
4
4
  align-items: center;
5
5
 
@@ -9,7 +9,7 @@ import{aE as Zn,aF as Jn,aG as Nt,aH as W,r as x,aI as er,aJ as tr,aK as ge,aL a
9
9
  font-size: 10px;
10
10
  }
11
11
  }
12
- `,ft=(e,t)=>{var r;let n="?v=";return t?n+=jo(t):n+=`${(r=e==null?void 0:e.meta)==null?void 0:r.version}${xt(e==null?void 0:e.status)?"~":""}`,n};function ci({blocklet:e}){var u,d,f,p;const{inService:t}=ye(),n=(u=((e==null?void 0:e.environments)||[]).find(v=>v.key===Z.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_SQUARE))==null?void 0:u.value,r=(d=((e==null?void 0:e.environments)||[]).find(v=>v.key===Z.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_RECT))==null?void 0:d.value,o=(f=((e==null?void 0:e.environments)||[]).find(v=>v.key===Z.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_FAVICON))==null?void 0:f.value,i=((p=window.env)==null?void 0:p.apiPrefix)||"/",s=`${ke(i,`/blocklet/logo/${t?"":e.meta.did}`)}${ft(e,n)}`,a=`${ke(i,`/blocklet/logo-rect/${t?"":e.meta.did}`)}${ft(e,r)}`,l=`${ke(i,`/blocklet/logo-favicon/${t?"":e.meta.did}`)}${ft(e,o)}`;return{logoUrl:s,rectLogoUrl:a,faviconUrl:l}}function Jt({blocklet:e,style:t,size:n,...r}){const{logoUrl:o}=ci({blocklet:e}),{variant:i}=r;return c.jsx(pr,{variant:i||"square",style:Object.assign({backgroundColor:"transparent",width:n,height:n,borderRadius:10},t),...r,children:c.jsx("img",{src:o,alt:"",style:{width:n}})})}Jt.propTypes={blocklet:m.object.isRequired,style:m.object,size:m.oneOfType([m.number,m.string])};Jt.defaultProps={style:{},size:40};const li=e=>{const t={};let n=null;return B.forEachBlockletSync(e,r=>{t[r.meta.bundleDid]?n=B.getDisplayName(r,!0):r.meta.bundleDid&&(t[r.meta.bundleDid]=!0)}),n},ui=(e,t,n)=>{var i;const{hostname:r,href:o}=e;if(!t)return o;if(n){const a=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(r);if(!a)return o;const l=a[0],d=((((i=t.site)==null?void 0:i.domainAliases)||[]).map(f=>f.value).filter(Boolean).find(f=>f.endsWith($.DEFAULT_DID_DOMAIN))||"").replace(`.${$.DEFAULT_DID_DOMAIN}`,"");return d?o.replace(r,`${d}-${l}.${$.DEFAULT_IP_DOMAIN_SUFFIX}`):o}return o.replace(t.meta.bundleDid,t.appPid)};function Er(){const{t:e}=Q(),{api:t}=ps(),{blocklet:n}=wo(),{inService:r}=ye(),[o,i]=x.useState(!1),[s,a]=x.useState(5),l=n&&n.structVersion!==$.APP_STRUCT_VERSION,u=()=>{try{if(n.status==="running"){J.error(e("blocklet.migrate.tip.running"));return}const p=li(n);if(p){J.error(e("blocklet.migrate.tip.duplicate",{name:p}));return}i(!0)}catch(p){J.error(zt(p))}},d=()=>{const p=ui(window.location,n,r);setTimeout(()=>{window.location.href=p},5e3),a(5),setInterval(()=>{a(v=>v-1)},1e3)},f=()=>i(!1);return[l&&c.jsxs(fr,{severity:"warning",style:{margin:"12px 0"},children:[c.jsxs(D,{display:"flex",alignItems:"center",children:[c.jsx(he,{variant:"contained",size:"small",color:"primary",onClick:()=>u(),style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),c.jsx("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map(p=>c.jsx(D,{display:"flex",alignItems:"center",children:e(`blocklet.migrate.intro.${p}`)},p))]},"alert"),n&&c.jsx(So,{popup:!0,open:o,saveConnect:!1,forceConnected:!1,action:"migrate-app-to-struct-v2",checkFn:t.get,checkTimeout:5*60*1e3,onSuccess:d,extraParams:{appDid:n.appDid,did:n.meta.did,wt:_o(n,!0),title:B.getDisplayName(n)},messages:{title:e("blocklet.migrate.title"),scan:e("blocklet.migrate.scan"),confirm:e("blocklet.migrate.confirm"),success:s>=0?e("blocklet.migrate.success",{sec:s}):"Redirecting..."},onClose:f},"connect")]}Er.propTypes={};function en({children:e,style:t,...n}){return c.jsx(gr,{style:t,...n,children:e})}en.propTypes={children:m.any.isRequired,style:m.object};en.defaultProps={style:{}};const U={yellow:"#FFCF71",grey:"#888888"};function tn({isResource:e,status:t,variant:n,source:r,progress:o,...i}){const{t:s}=x.useContext(Mt),a={added:"primary",waiting:"warning",downloading:"warning",extracting:"warning",downloaded:"primary",installing:"warning",installed:"primary",starting:"warning",running:"success",stopping:"warning",stopped:"reverse",error:"error",upgrading:"warning",restarting:"warning",corrupted:"error",deleting:"warning",resource:"primary"},l={added:U.grey,waiting:U.yellow,downloading:U.yellow,extracting:U.yellow,downloaded:U.grey,installing:U.yellow,installed:U.grey,starting:U.yellow,running:"success",stopping:U.yellow,stopped:U.grey,error:"error",upgrading:U.yellow,restarting:U.yellow,corrupted:"error",deleting:U.yellow,resource:"primary"},u=B.isInProgress(t),d=e&&t==="stopped"?"resource":t,f=s(`blocklet.status.${d}`);return n==="dot"?c.jsx(He,{title:s("blocklet.statusTip",{status:f}),children:c.jsx(ms,{color:l[d],...i})}):c.jsxs(en,{type:a[d],...i,children:[u&&c.jsx(te,{size:12,color:"inherit",style:{marginRight:5}}),f,d==="downloading"&&o?c.jsx("div",{style:{marginLeft:5},children:`${o} %`}):null]})}tn.propTypes={status:m.string.isRequired,variant:m.oneOf(["dot","tag"]),source:m.string,progress:m.number,isResource:m.bool};tn.defaultProps={isResource:!1,variant:"tag",source:"",progress:0};var di=Co,fi=Io,pi=Eo,mi=Oo,gi=Po,hi=Ro,vi=200;function yi(e,t,n,r){var o=-1,i=fi,s=!0,a=e.length,l=[],u=t.length;if(!a)return l;n&&(t=mi(t,gi(n))),r?(i=pi,s=!1):t.length>=vi&&(i=hi,s=!1,t=new di(t));e:for(;++o<a;){var d=e[o],f=n==null?d:n(d);if(d=r||d!==0?d:0,s&&f===f){for(var p=u;p--;)if(t[p]===f)continue e;l.push(d)}else i(t,f,r)||l.push(d)}return l}var xi=yi,bi=xi,ji=To,Mn=Lo;function wi(e,t,n){var r=e.length;if(r<2)return r?Mn(e[0]):[];for(var o=-1,i=Array(r);++o<r;)for(var s=e[o],a=-1;++a<r;)a!=o&&(i[o]=bi(i[o]||s,e[a],t,n));return Mn(ji(i,1),t,n)}var Si=wi,_i=Ao,Ci=Do,Oi=Si,Pi=No,Ii=$o,Ei=Ci(function(e){var t=Ii(e);return t=typeof t=="function"?t:void 0,Oi(_i(e,Pi),void 0,t)}),Ri=Ei;const Ti=rr(Ri),Rr=x.createContext({});function nn({children:e,type:t}){const[n,r]=x.useState([]),o=x.useRef([]),i=l=>{if(!o.current.includes(l)){const u=[...o.current,l];r(u),o.current=u}},s=l=>{if(o.current.includes(l)){const u=o.current.filter(d=>d!==l);r(u),o.current=u}},a=l=>{const u=n.filter(f=>l.find(p=>p===f));Ti(u,n).forEach(f=>s(f))};return c.jsx(Rr.Provider,{value:{type:t,deletingBlocklets:n,addDeletingDid:i,removeDeletingDid:s,matchDeletingDid:a},children:e})}nn.propTypes={type:m.string,children:m.node.isRequired};nn.defaultProps={type:"blocklets"};function Al(){return x.useContext(Rr)}function A(e,t,n){return or.call(t,"css")?c.jsx(sr,ir(e,t),n):c.jsx(e,t,n)}function pt(e,t,n){return or.call(t,"css")?c.jsxs(sr,ir(e,t),n):c.jsxs(e,t,n)}/**
12
+ `,ci=x.memo(Zt),ft=(e,t)=>{var r;let n="?v=";return t?n+=jo(t):n+=`${(r=e==null?void 0:e.meta)==null?void 0:r.version}${xt(e==null?void 0:e.status)?"~":""}`,n};function li({blocklet:e}){var u,d,f,p;const{inService:t}=ye(),n=(u=((e==null?void 0:e.environments)||[]).find(v=>v.key===Z.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_SQUARE))==null?void 0:u.value,r=(d=((e==null?void 0:e.environments)||[]).find(v=>v.key===Z.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_RECT))==null?void 0:d.value,o=(f=((e==null?void 0:e.environments)||[]).find(v=>v.key===Z.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_FAVICON))==null?void 0:f.value,i=((p=window.env)==null?void 0:p.apiPrefix)||"/",s=`${ke(i,`/blocklet/logo/${t?"":e.meta.did}`)}${ft(e,n)}`,a=`${ke(i,`/blocklet/logo-rect/${t?"":e.meta.did}`)}${ft(e,r)}`,l=`${ke(i,`/blocklet/logo-favicon/${t?"":e.meta.did}`)}${ft(e,o)}`;return{logoUrl:s,rectLogoUrl:a,faviconUrl:l}}function Jt({blocklet:e,style:t,size:n,...r}){const{logoUrl:o}=li({blocklet:e}),{variant:i}=r;return c.jsx(pr,{variant:i||"square",style:Object.assign({backgroundColor:"transparent",width:n,height:n,borderRadius:10},t),...r,children:c.jsx("img",{src:o,alt:"",style:{width:n}})})}Jt.propTypes={blocklet:m.object.isRequired,style:m.object,size:m.oneOfType([m.number,m.string])};Jt.defaultProps={style:{},size:40};const ui=e=>{const t={};let n=null;return B.forEachBlockletSync(e,r=>{t[r.meta.bundleDid]?n=B.getDisplayName(r,!0):r.meta.bundleDid&&(t[r.meta.bundleDid]=!0)}),n},di=(e,t,n)=>{var i;const{hostname:r,href:o}=e;if(!t)return o;if(n){const a=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(r);if(!a)return o;const l=a[0],d=((((i=t.site)==null?void 0:i.domainAliases)||[]).map(f=>f.value).filter(Boolean).find(f=>f.endsWith($.DEFAULT_DID_DOMAIN))||"").replace(`.${$.DEFAULT_DID_DOMAIN}`,"");return d?o.replace(r,`${d}-${l}.${$.DEFAULT_IP_DOMAIN_SUFFIX}`):o}return o.replace(t.meta.bundleDid,t.appPid)};function Er(){const{t:e}=Q(),{api:t}=ps(),{blocklet:n}=wo(),{inService:r}=ye(),[o,i]=x.useState(!1),[s,a]=x.useState(5),l=n&&n.structVersion!==$.APP_STRUCT_VERSION,u=()=>{try{if(n.status==="running"){J.error(e("blocklet.migrate.tip.running"));return}const p=ui(n);if(p){J.error(e("blocklet.migrate.tip.duplicate",{name:p}));return}i(!0)}catch(p){J.error(zt(p))}},d=()=>{const p=di(window.location,n,r);setTimeout(()=>{window.location.href=p},5e3),a(5),setInterval(()=>{a(v=>v-1)},1e3)},f=()=>i(!1);return[l&&c.jsxs(fr,{severity:"warning",style:{margin:"12px 0"},children:[c.jsxs(D,{display:"flex",alignItems:"center",children:[c.jsx(he,{variant:"contained",size:"small",color:"primary",onClick:()=>u(),style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),c.jsx("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map(p=>c.jsx(D,{display:"flex",alignItems:"center",children:e(`blocklet.migrate.intro.${p}`)},p))]},"alert"),n&&c.jsx(So,{popup:!0,open:o,saveConnect:!1,forceConnected:!1,action:"migrate-app-to-struct-v2",checkFn:t.get,checkTimeout:5*60*1e3,onSuccess:d,extraParams:{appDid:n.appDid,did:n.meta.did,wt:_o(n,!0),title:B.getDisplayName(n)},messages:{title:e("blocklet.migrate.title"),scan:e("blocklet.migrate.scan"),confirm:e("blocklet.migrate.confirm"),success:s>=0?e("blocklet.migrate.success",{sec:s}):"Redirecting..."},onClose:f},"connect")]}Er.propTypes={};function en({children:e,style:t,...n}){return c.jsx(gr,{style:t,...n,children:e})}en.propTypes={children:m.any.isRequired,style:m.object};en.defaultProps={style:{}};const U={yellow:"#FFCF71",grey:"#888888"};function tn({isResource:e,status:t,variant:n,source:r,progress:o,...i}){const{t:s}=x.useContext(Mt),a={added:"primary",waiting:"warning",downloading:"warning",extracting:"warning",downloaded:"primary",installing:"warning",installed:"primary",starting:"warning",running:"success",stopping:"warning",stopped:"reverse",error:"error",upgrading:"warning",restarting:"warning",corrupted:"error",deleting:"warning",resource:"primary"},l={added:U.grey,waiting:U.yellow,downloading:U.yellow,extracting:U.yellow,downloaded:U.grey,installing:U.yellow,installed:U.grey,starting:U.yellow,running:"success",stopping:U.yellow,stopped:U.grey,error:"error",upgrading:U.yellow,restarting:U.yellow,corrupted:"error",deleting:U.yellow,resource:"primary"},u=B.isInProgress(t),d=e&&t==="stopped"?"resource":t,f=s(`blocklet.status.${d}`);return n==="dot"?c.jsx(He,{title:s("blocklet.statusTip",{status:f}),children:c.jsx(ms,{color:l[d],...i})}):c.jsxs(en,{type:a[d],...i,children:[u&&c.jsx(te,{size:12,color:"inherit",style:{marginRight:5}}),f,d==="downloading"&&o?c.jsx("div",{style:{marginLeft:5},children:`${o} %`}):null]})}tn.propTypes={status:m.string.isRequired,variant:m.oneOf(["dot","tag"]),source:m.string,progress:m.number,isResource:m.bool};tn.defaultProps={isResource:!1,variant:"tag",source:"",progress:0};var fi=Co,pi=Io,mi=Eo,gi=Oo,hi=Po,vi=Ro,yi=200;function xi(e,t,n,r){var o=-1,i=pi,s=!0,a=e.length,l=[],u=t.length;if(!a)return l;n&&(t=gi(t,hi(n))),r?(i=mi,s=!1):t.length>=yi&&(i=vi,s=!1,t=new fi(t));e:for(;++o<a;){var d=e[o],f=n==null?d:n(d);if(d=r||d!==0?d:0,s&&f===f){for(var p=u;p--;)if(t[p]===f)continue e;l.push(d)}else i(t,f,r)||l.push(d)}return l}var bi=xi,ji=bi,wi=To,Mn=Lo;function Si(e,t,n){var r=e.length;if(r<2)return r?Mn(e[0]):[];for(var o=-1,i=Array(r);++o<r;)for(var s=e[o],a=-1;++a<r;)a!=o&&(i[o]=ji(i[o]||s,e[a],t,n));return Mn(wi(i,1),t,n)}var _i=Si,Ci=Ao,Oi=Do,Pi=_i,Ii=No,Ei=$o,Ri=Oi(function(e){var t=Ei(e);return t=typeof t=="function"?t:void 0,Pi(Ci(e,Ii),void 0,t)}),Ti=Ri;const Li=rr(Ti),Rr=x.createContext({});function nn({children:e,type:t}){const[n,r]=x.useState([]),o=x.useRef([]),i=l=>{if(!o.current.includes(l)){const u=[...o.current,l];r(u),o.current=u}},s=l=>{if(o.current.includes(l)){const u=o.current.filter(d=>d!==l);r(u),o.current=u}},a=l=>{const u=n.filter(f=>l.find(p=>p===f));Li(u,n).forEach(f=>s(f))};return c.jsx(Rr.Provider,{value:{type:t,deletingBlocklets:n,addDeletingDid:i,removeDeletingDid:s,matchDeletingDid:a},children:e})}nn.propTypes={type:m.string,children:m.node.isRequired};nn.defaultProps={type:"blocklets"};function $l(){return x.useContext(Rr)}function A(e,t,n){return or.call(t,"css")?c.jsx(sr,ir(e,t),n):c.jsx(e,t,n)}function pt(e,t,n){return or.call(t,"css")?c.jsxs(sr,ir(e,t),n):c.jsxs(e,t,n)}/**
13
13
  * (c) Iconify
14
14
  *
15
15
  * For the full copyright and license information, please view the license.txt or license.gpl.txt
@@ -19,7 +19,7 @@ import{aE as Zn,aF as Jn,aG as Nt,aH as W,r as x,aI as er,aJ as tr,aK as ge,aL a
19
19
  *
20
20
  * @license MIT
21
21
  * @version 3.1.1
22
- */const Tr=Object.freeze({left:0,top:0,width:16,height:16}),We=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Re=Object.freeze({...Tr,...We}),jt=Object.freeze({...Re,body:"",hidden:!1});function Li(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function Un(e,t){const n=Li(e,t);for(const r in jt)r in We?r in e&&!(r in n)&&(n[r]=We[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function Di(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function i(s){if(n[s])return o[s]=[];if(!(s in o)){o[s]=null;const a=r[s]&&r[s].parent,l=a&&i(a);l&&(o[s]=[a].concat(l))}return o[s]}return Object.keys(n).concat(Object.keys(r)).forEach(i),o}function Ai(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let i={};function s(a){i=Un(r[a]||o[a],i)}return s(t),n.forEach(s),Un(e,i)}function $i(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=Di(e);for(const o in r){const i=r[o];i&&(t(o,Ai(e,o,i)),n.push(o))}return n}const Ce=/^[a-z0-9]+(-[a-z0-9]+)*$/,xe=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),l=o.pop(),u={provider:o.length>0?o[0]:r,prefix:l,name:a};return t&&!Fe(u)?null:u}const i=o[0],s=i.split("-");if(s.length>1){const a={provider:r,prefix:s.shift(),name:s.join("-")};return t&&!Fe(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:i};return t&&!Fe(a,n)?null:a}return null},Fe=(e,t)=>e?!!((e.provider===""||e.provider.match(Ce))&&(t&&e.prefix===""||e.prefix.match(Ce))&&e.name.match(Ce)):!1,Ni={provider:"",aliases:{},not_found:{},...Tr};function mt(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Mi(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!mt(e,Ni))return null;const n=t.icons;for(const o in n){const i=n[o];if(!o.match(Ce)||typeof i.body!="string"||!mt(i,jt))return null}const r=t.aliases||Object.create(null);for(const o in r){const i=r[o],s=i.parent;if(!o.match(Ce)||typeof s!="string"||!n[s]&&!r[s]||!mt(i,jt))return null}return t}const Ge=Object.create(null);function Ui(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function ee(e,t){const n=Ge[e]||(Ge[e]=Object.create(null));return n[t]||(n[t]=Ui(e,t))}function rn(e,t){return Mi(t)?$i(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function Bi(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function ki(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(Ge)).forEach(o=>{(typeof o=="string"&&typeof t=="string"?[t]:Object.keys(Ge[o]||{})).forEach(s=>{const a=ee(o,s);n=n.concat(Object.keys(a.icons).map(l=>(o!==""?"@"+o+":":"")+s+":"+l))})}),n}let on=!1;function zi(e){return on}function Te(e){const t=typeof e=="string"?xe(e,!0,on):e;if(t){const n=ee(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function Fi(e,t){const n=xe(e,!0,on);if(!n)return!1;const r=ee(n.provider,n.prefix);return Bi(r,n.name,t)}function Lr(e,t){if(typeof e!="object")return!1;typeof t!="string"&&(t=e.provider||"");const n=e.prefix;if(!Fe({provider:t,prefix:n,name:"a"}))return!1;const r=ee(t,n);return!!rn(r,e)}function Vi(e){return!!Te(e)}function Hi(e){const t=Te(e);return t?{...Re,...t}:null}const Dr=Object.freeze({width:null,height:null}),Ar=Object.freeze({...Dr,...We}),qi=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Ki=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function wt(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(qi);if(r===null||!r.length)return e;const o=[];let i=r.shift(),s=Ki.test(i);for(;;){if(s){const a=parseFloat(i);isNaN(a)?o.push(i):o.push(Math.ceil(a*t*n)/n)}else o.push(i);if(i=r.shift(),i===void 0)return o.join("");s=!s}}const Wi=e=>e==="unset"||e==="undefined"||e==="none";function tt(e,t){const n={...Re,...e},r={...Ar,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,r].forEach(b=>{const h=[],j=b.hFlip,I=b.vFlip;let g=b.rotate;j?I?g+=2:(h.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),h.push("scale(-1 1)"),o.top=o.left=0):I&&(h.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),h.push("scale(1 -1)"),o.top=o.left=0);let _;switch(g<0&&(g-=Math.floor(g/4)*4),g=g%4,g){case 1:_=o.height/2+o.top,h.unshift("rotate(90 "+_.toString()+" "+_.toString()+")");break;case 2:h.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:_=o.width/2+o.left,h.unshift("rotate(-90 "+_.toString()+" "+_.toString()+")");break}g%2===1&&(o.left!==o.top&&(_=o.left,o.left=o.top,o.top=_),o.width!==o.height&&(_=o.width,o.width=o.height,o.height=_)),h.length&&(i='<g transform="'+h.join(" ")+'">'+i+"</g>")});const s=r.width,a=r.height,l=o.width,u=o.height;let d,f;s===null?(f=a===null?"1em":a==="auto"?u:a,d=wt(f,l/u)):(d=s==="auto"?l:s,f=a===null?wt(d,u/l):a==="auto"?u:a);const p={},v=(b,h)=>{Wi(h)||(p[b]=h.toString())};return v("width",d),v("height",f),p.viewBox=o.left.toString()+" "+o.top.toString()+" "+l.toString()+" "+u.toString(),{attributes:p,body:i}}const Gi=/\sid="(\S+)"/g,Qi="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Xi=0;function $r(e,t=Qi){const n=[];let r;for(;r=Gi.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(i=>{const s=typeof t=="function"?t(i):t+(Xi++).toString(),a=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+s+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const le={local:!0,session:!0},Nr={local:new Set,session:new Set};let sn=!1;function Yi(e){sn=e}const Bn="iconify2",Ie="iconify",Mr=Ie+"-count",kn=Ie+"-version",Ur=36e5,Zi=168;function St(e,t){try{return e.getItem(t)}catch{}}function an(e,t,n){try{return e.setItem(t,n),!0}catch{}}function zn(e,t){try{e.removeItem(t)}catch{}}function _t(e,t){return an(e,Mr,t.toString())}function Ct(e){return parseInt(St(e,Mr))||0}let Ue=typeof window>"u"?{}:window;function Br(e){const t=e+"Storage";try{if(Ue&&Ue[t]&&typeof Ue[t].length=="number")return Ue[t]}catch{}le[e]=!1}function kr(e,t){const n=Br(e);if(!n)return;const r=St(n,kn);if(r!==Bn){if(r){const a=Ct(n);for(let l=0;l<a;l++)zn(n,Ie+l.toString())}an(n,kn,Bn),_t(n,0);return}const o=Math.floor(Date.now()/Ur)-Zi,i=a=>{const l=Ie+a.toString(),u=St(n,l);if(typeof u=="string"){try{const d=JSON.parse(u);if(typeof d=="object"&&typeof d.cached=="number"&&d.cached>o&&typeof d.provider=="string"&&typeof d.data=="object"&&typeof d.data.prefix=="string"&&t(d,a))return!0}catch{}zn(n,l)}};let s=Ct(n);for(let a=s-1;a>=0;a--)i(a)||(a===s-1?(s--,_t(n,s)):Nr[e].add(a))}function zr(){if(!sn){Yi(!0);for(const e in le)kr(e,t=>{const n=t.data,r=t.provider,o=n.prefix,i=ee(r,o);if(!rn(i,n).length)return!1;const s=n.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,s):s,!0})}}function Fr(e,t){switch(e){case"local":case"session":le[e]=t;break;case"all":for(const n in le)le[n]=t;break}}const Ot=Object.create(null);function Vr(e,t){Ot[e]=t}function Pt(e){return Ot[e]||Ot[""]}function cn(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const nt=Object.create(null),we=["https://api.simplesvg.com","https://api.unisvg.com"],Ve=[];for(;we.length>0;)we.length===1||Math.random()>.5?Ve.push(we.shift()):Ve.push(we.pop());nt[""]=cn({resources:["https://api.iconify.design"].concat(Ve)});function Hr(e,t){const n=cn(t);return n===null?!1:(nt[e]=n,!0)}function rt(e){return nt[e]}function Ji(){return Object.keys(nt)}const ea=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Qe=ea();function ta(e){Qe=e}function na(){return Qe}function ra(e,t){const n=rt(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(s=>{o=Math.max(o,s.length)});const i=t+".json?icons=";r=n.maxURL-o-n.path.length-i.length}return r}function oa(e){return e===404}const sa=(e,t,n)=>{const r=[],o=ra(e,t),i="icons";let s={type:i,provider:e,prefix:t,icons:[]},a=0;return n.forEach((l,u)=>{a+=l.length+1,a>=o&&u>0&&(r.push(s),s={type:i,provider:e,prefix:t,icons:[]},a=l.length),s.icons.push(l)}),r.push(s),r};function ia(e){if(typeof e=="string"){const t=rt(e);if(t)return t.path}return"/"}const aa=(e,t,n)=>{if(!Qe){n("abort",424);return}let r=ia(t.provider);switch(t.type){case"icons":{const i=t.prefix,a=t.icons.join(","),l=new URLSearchParams({icons:a});r+=i+".json?"+l.toString();break}case"custom":{const i=t.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:n("abort",400);return}let o=503;Qe(e+r).then(i=>{const s=i.status;if(s!==200){setTimeout(()=>{n(oa(s)?"abort":"next",s)});return}return o=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?n("abort",i):n("next",o)});return}setTimeout(()=>{n("success",i)})}).catch(()=>{n("next",o)})},ca={prepare:sa,send:aa};function la(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,i)=>o.provider!==i.provider?o.provider.localeCompare(i.provider):o.prefix!==i.prefix?o.prefix.localeCompare(i.prefix):o.name.localeCompare(i.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const i=o.provider,s=o.prefix,a=o.name,l=n[i]||(n[i]=Object.create(null)),u=l[s]||(l[s]=ee(i,s));let d;a in u.icons?d=t.loaded:s===""||u.missing.has(a)?d=t.missing:d=t.pending;const f={provider:i,prefix:s,name:a};d.push(f)}),t}function qr(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function ua(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(i=>{const s=i.icons,a=s.pending.length;s.pending=s.pending.filter(l=>{if(l.prefix!==o)return!0;const u=l.name;if(e.icons[u])s.loaded.push({provider:r,prefix:o,name:u});else if(e.missing.has(u))s.missing.push({provider:r,prefix:o,name:u});else return n=!0,!0;return!1}),s.pending.length!==a&&(n||qr([e],i.id),i.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),i.abort))})}))}let da=0;function fa(e,t,n){const r=da++,o=qr.bind(null,n,r);if(!t.pending.length)return o;const i={id:r,icons:t,callback:e,abort:o};return n.forEach(s=>{(s.loaderCallbacks||(s.loaderCallbacks=[])).push(i)}),o}function pa(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const i=typeof o=="string"?xe(o,t,n):o;i&&r.push(i)}),r}var ma={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ga(e,t,n,r){const o=e.resources.length,i=e.random?Math.floor(Math.random()*o):e.index;let s;if(e.random){let S=e.resources.slice(0);for(s=[];S.length>1;){const R=Math.floor(Math.random()*S.length);s.push(S[R]),S=S.slice(0,R).concat(S.slice(R+1))}s=s.concat(S)}else s=e.resources.slice(i).concat(e.resources.slice(0,i));const a=Date.now();let l="pending",u=0,d,f=null,p=[],v=[];typeof r=="function"&&v.push(r);function b(){f&&(clearTimeout(f),f=null)}function h(){l==="pending"&&(l="aborted"),b(),p.forEach(S=>{S.status==="pending"&&(S.status="aborted")}),p=[]}function j(S,R){R&&(v=[]),typeof S=="function"&&v.push(S)}function I(){return{startTime:a,payload:t,status:l,queriesSent:u,queriesPending:p.length,subscribe:j,abort:h}}function g(){l="failed",v.forEach(S=>{S(void 0,d)})}function _(){p.forEach(S=>{S.status==="pending"&&(S.status="aborted")}),p=[]}function w(S,R,C){const P=R!=="success";switch(p=p.filter(E=>E!==S),l){case"pending":break;case"failed":if(P||!e.dataAfterTimeout)return;break;default:return}if(R==="abort"){d=C,g();return}if(P){d=C,p.length||(s.length?O():g());return}if(b(),_(),!e.random){const E=e.resources.indexOf(S.resource);E!==-1&&E!==e.index&&(e.index=E)}l="completed",v.forEach(E=>{E(C)})}function O(){if(l!=="pending")return;b();const S=s.shift();if(S===void 0){if(p.length){f=setTimeout(()=>{b(),l==="pending"&&(_(),g())},e.timeout);return}g();return}const R={status:"pending",resource:S,callback:(C,P)=>{w(R,C,P)}};p.push(R),u++,f=setTimeout(O,e.rotate),n(S,t,R.callback)}return setTimeout(O),I}function Kr(e){const t={...ma,...e};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function o(a,l,u){const d=ga(t,a,l,(f,p)=>{r(),u&&u(f,p)});return n.push(d),d}function i(a){return n.find(l=>a(l))||null}return{query:o,find:i,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:r}}function Fn(){}const gt=Object.create(null);function ha(e){if(!gt[e]){const t=rt(e);if(!t)return;const n=Kr(t),r={config:t,redundancy:n};gt[e]=r}return gt[e]}function Wr(e,t,n){let r,o;if(typeof e=="string"){const i=Pt(e);if(!i)return n(void 0,424),Fn;o=i.send;const s=ha(e);s&&(r=s.redundancy)}else{const i=cn(e);if(i){r=Kr(i);const s=e.resources?e.resources[0]:"",a=Pt(s);a&&(o=a.send)}}return!r||!o?(n(void 0,424),Fn):r.query(t,o,n)().abort}function va(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in le)kr(r,o=>{const i=o.data;return o.provider!==e.provider||i.prefix!==e.prefix||i.lastModified===t});return!0}function ya(e,t){sn||zr();function n(r){let o;if(!le[r]||!(o=Br(r)))return;const i=Nr[r];let s;if(i.size)i.delete(s=Array.from(i).shift());else if(s=Ct(o),!_t(o,s+1))return;const a={cached:Math.floor(Date.now()/Ur),provider:e.provider,data:t};return an(o,Ie+s.toString(),JSON.stringify(a))}t.lastModified&&!va(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Vn(){}function xa(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,ua(e)}))}function ba(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let i;if(!o||!(i=Pt(n)))return;i.prepare(n,r,o).forEach(a=>{Wr(n,a,l=>{if(typeof l!="object")a.icons.forEach(u=>{e.missing.add(u)});else try{const u=rn(e,l);if(!u.length)return;const d=e.pendingIcons;d&&u.forEach(f=>{d.delete(f)}),ya(e,l)}catch(u){console.error(u)}xa(e)})})}))}const ja=e=>{const n=ee(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},ln=(e,t)=>{const n=pa(e,!0,zi()),r=la(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,Vn)}),()=>{l=!1}}const o=Object.create(null),i=[];let s,a;return r.pending.forEach(l=>{const{provider:u,prefix:d}=l;if(d===a&&u===s)return;s=u,a=d,i.push(ee(u,d));const f=o[u]||(o[u]=Object.create(null));f[d]||(f[d]=[])}),r.pending.forEach(l=>{const{provider:u,prefix:d,name:f}=l,p=ee(u,d),v=p.pendingIcons||(p.pendingIcons=new Set);v.has(f)||(v.add(f),o[u][d].push(f))}),i.forEach(l=>{const{provider:u,prefix:d}=l;o[u][d].length&&ba(l,o[u][d])}),t?fa(t,r,i):Vn},wa=e=>new Promise((t,n)=>{const r=typeof e=="string"?xe(e,!0):e;if(!r){n(e);return}ln([r||e],o=>{if(o.length&&r){const i=Te(r);if(i){t({...Re,...i});return}}n(e)})});function Gr(e,t){const n={...e};for(const r in t){const o=t[r],i=typeof o;r in Dr?(o===null||o&&(i==="string"||i==="number"))&&(n[r]=o):i===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const ot={...Ar,inline:!1},ht="iconify",It="iconify-inline",se="iconifyData"+Date.now();let ue=[];function Le(e){for(let t=0;t<ue.length;t++){const n=ue[t];if((typeof n.node=="function"?n.node():n.node)===e)return n}}function Qr(e,t=!1){let n=Le(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},ue.push(n),n)}function Sa(){if(document.documentElement)return Qr(document.documentElement);ue.push({node:()=>document.documentElement})}function _a(e){ue=ue.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function De(){return ue}function Ca(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let Oe=null;const Oa={childList:!0,subtree:!0,attributes:!0};function Xr(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,Oe&&Oe(e)}))}function Pa(e,t){if(!e.observer)return;const n=e.observer;if(!n.pendingScan)for(let r=0;r<t.length;r++){const o=t[r];if(o.addedNodes&&o.addedNodes.length>0||o.type==="attributes"&&o.target[se]!==void 0){n.paused||Xr(e);return}}}function Yr(e,t){e.observer.instance.observe(t,Oa)}function Xe(e){let t=e.observer;if(t&&t.instance)return;const n=typeof e.node=="function"?e.node():e.node;!n||!window||(t||(t={paused:0},e.observer=t),t.instance=new window.MutationObserver(Pa.bind(null,e)),Yr(e,n),t.paused||Xr(e))}function Hn(){De().forEach(Xe)}function Zr(e){if(!e.observer)return;const t=e.observer;t.pendingScan&&(clearTimeout(t.pendingScan),delete t.pendingScan),t.instance&&(t.instance.disconnect(),delete t.instance)}function Ia(e){const t=Oe!==null;if(Oe!==e&&(Oe=e,t&&De().forEach(Zr)),t){Hn();return}Ca(Hn)}function Et(e){(e?[e]:De()).forEach(t=>{if(!t.observer){t.observer={paused:1};return}const n=t.observer;if(n.paused++,n.paused>1||!n.instance)return;n.instance.disconnect()})}function Ea(e){if(e){const t=Le(e);t&&Et(t)}else Et()}function Rt(e){(e?[e]:De()).forEach(t=>{if(!t.observer){Xe(t);return}const n=t.observer;if(n.paused&&(n.paused--,!n.paused)){const r=typeof t.node=="function"?t.node():t.node;if(r)n.instance?Yr(t,r):Xe(t);else return}})}function Ra(e){if(e){const t=Le(e);t&&Rt(t)}else Rt()}function Jr(e,t=!1){const n=Qr(e,t);return Xe(n),n}function eo(e){const t=Le(e);t&&(Zr(t),_a(e))}function Ta(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,r=t.customisations;for(const o in ot)if(n[o]!==r[o])return!0;return!1}function La(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i=i/o,i%1===0?r(i):0)}}return t}const Da=/[\s,]+/;function Aa(e,t){t.split(Da).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const $a=["width","height"],Na=["inline","hFlip","vFlip"];function Ma(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function Ua(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&xe(t,!0);if(!n)return null;const r={...ot,inline:e.classList&&e.classList.contains(It)};$a.forEach(a=>{const l=e.getAttribute("data-"+a);l&&(r[a]=l)});const o=e.getAttribute("data-rotate");typeof o=="string"&&(r.rotate=La(o));const i=e.getAttribute("data-flip");typeof i=="string"&&Aa(r,i),Na.forEach(a=>{const l="data-"+a,u=Ma(e.getAttribute(l),l);typeof u=="boolean"&&(r[a]=u)});const s=e.getAttribute("data-mode");return{name:t,icon:n,customisations:r,mode:s}}const Ba="svg."+ht+", i."+ht+", span."+ht+", i."+It+", span."+It;function ka(e){const t=[];return e.querySelectorAll(Ba).forEach(n=>{const r=n[se]||n.tagName.toLowerCase()!=="svg"?Ua(n):null;r&&t.push({node:n,props:r})}),t}function to(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}let Pe;function za(){try{Pe=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{Pe=null}}function Fa(e){return Pe===void 0&&za(),Pe?Pe.createHTML(e):e}function no(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function ro(e,t,n,r){const o=e.classList;if(r){const s=r.classList;Array.from(s).forEach(a=>{o.add(a)})}const i=[];return t.forEach(s=>{o.contains(s)?n.has(s)&&i.push(s):(o.add(s),i.push(s))}),n.forEach(s=>{t.has(s)||o.remove(s)}),i}function oo(e,t,n){const r=e.style;(n||[]).forEach(i=>{r.removeProperty(i)});const o=[];for(const i in t)r.getPropertyValue(i)||(o.push(i),r.setProperty(i,t[i]));return o}function so(e,t,n){let r;try{r=document.createElement("span")}catch{return e}const o=t.customisations,i=tt(n,o),s=e[se],a=to($r(i.body),{"aria-hidden":"true",role:"img",...i.attributes});r.innerHTML=Fa(a);const l=r.childNodes[0],u=e.attributes;for(let b=0;b<u.length;b++){const h=u.item(b),j=h.name;j!=="class"&&!l.hasAttribute(j)&&l.setAttribute(j,h.value)}const d=no(t.icon),f=ro(l,d,new Set(s&&s.addedClasses),e),p=oo(l,o.inline?{"vertical-align":"-0.125em"}:{},s&&s.addedStyles),v={...t,status:"loaded",addedClasses:f,addedStyles:p};return l[se]=v,e.parentNode&&e.parentNode.replaceChild(l,e),l}function Va(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Ha(e){return"data:image/svg+xml,"+Va(e)}function qa(e){return'url("'+Ha(e)+'")'}const Ka={display:"inline-block"},Tt={"background-color":"currentColor"},io={"background-color":"transparent"},qn={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Kn={"-webkit-mask":Tt,mask:Tt,background:io};for(const e in Kn){const t=Kn[e];for(const n in qn)t[e+"-"+n]=qn[n]}function Wn(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function Wa(e,t,n,r){const o=t.customisations,i=tt(n,o),s=i.attributes,a=e[se],l=to(i.body,{...s,width:n.width+"",height:n.height+""}),u=no(t.icon),d=ro(e,u,new Set(a&&a.addedClasses)),p={"--svg":qa(l),width:Wn(s.width),height:Wn(s.height),...Ka,...r?Tt:io};o.inline&&(p["vertical-align"]="-0.125em");const v=oo(e,p,a&&a.addedStyles),b={...t,status:"loaded",addedClasses:d,addedStyles:v};return e[se]=b,e}let Be=!1;function Ga(){Be||(Be=!0,setTimeout(()=>{Be&&(Be=!1,ve())}))}function ve(e,t=!1){const n=Object.create(null);function r(o,i){const{provider:s,prefix:a,name:l}=o,u=ee(s,a),d=u.icons[l];if(d)return{status:"loaded",icon:d};if(u.missing.has(l))return{status:"missing"};if(i&&!ja(o)){const f=n[s]||(n[s]=Object.create(null));(f[a]||(f[a]=new Set)).add(l)}return{status:"loading"}}(e?[e]:De()).forEach(o=>{const i=typeof o.node=="function"?o.node():o.node;if(!i||!i.querySelectorAll)return;let s=!1,a=!1;function l(u,d,f){if(a||(a=!0,Et(o)),u.tagName.toUpperCase()!=="SVG"){const p=d.mode,v=p==="mask"||(p==="bg"?!1:p==="style"?f.body.indexOf("currentColor")!==-1:null);if(typeof v=="boolean"){Wa(u,d,{...Re,...f},v);return}}so(u,d,f)}ka(i).forEach(({node:u,props:d})=>{const f=u[se];if(!f){const{status:v,icon:b}=r(d.icon,!0);if(b){l(u,d,b);return}s=s||v==="loading",u[se]={...d,status:v};return}let p;if(Ta(f,d)){if(p=r(d.icon,f.name!==d.name),!p.icon){s=s||p.status==="loading",Object.assign(f,{...d,status:p.status});return}}else{if(f.status!=="loading")return;if(p=r(d.icon,!1),!p.icon){f.status=p.status;return}}l(u,d,p.icon)}),o.temporary&&!s?eo(i):t&&s?Jr(i,!0):a&&o.observer&&Rt(o)});for(const o in n){const i=n[o];for(const s in i){const a=i[s];ln(Array.from(a).map(l=>({provider:o,prefix:s,name:l})),Ga)}}}function Qa(e){const t=Le(e);t?ve(t):ve({node:e,temporary:!0},!0)}function ao(e,t,n=!1){const r=Te(e);if(!r)return null;const o=xe(e),i=Gr(ot,t||{}),s=so(document.createElement("span"),{name:e,icon:o,customisations:i},r);return n?s.outerHTML:s}function Xa(){return"3.1.1"}function Ya(e,t){return ao(e,t,!1)}function Za(e,t){return ao(e,t,!0)}function Ja(e,t){const n=Te(e);if(!n)return null;const r=Gr(ot,t||{});return tt(n,r)}function ec(e){e?Qa(e):ve()}if(typeof document<"u"&&typeof window<"u"){Sa();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!Lr(r))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{Ia(ve),ve()})}function tc(e,t){Fr(e,t!==!1)}function nc(e){Fr(e,!0)}Vr("",ca);if(typeof document<"u"&&typeof window<"u"){zr();const e=window;if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const n in t){const r="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;Hr(n,o)||console.error(r)}catch{console.error(r)}}}}const rc={getAPIConfig:rt,setAPIModule:Vr,sendAPIQuery:Wr,setFetch:ta,getFetch:na,listAPIProviders:Ji},oc={_api:rc,addAPIProvider:Hr,loadIcons:ln,loadIcon:wa,iconExists:Vi,getIcon:Hi,listIcons:ki,addIcon:Fi,addCollection:Lr,replaceIDs:$r,calculateSize:wt,buildIcon:tt,getVersion:Xa,renderSVG:Ya,renderHTML:Za,renderIcon:Ja,scan:ec,observe:Jr,stopObserving:eo,pauseObserver:Ea,resumeObserver:Ra,enableCache:tc,disableCache:nc};try{self.Iconify===void 0&&(self.Iconify=oc)}catch{}var un={},sc=z;Object.defineProperty(un,"__esModule",{value:!0});var co=un.default=void 0,ic=sc(k()),ac=c;co=un.default=(0,ic.default)((0,ac.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");function dn({infos:e}){const{t}=Q(),n=new URL("https://community.arcblock.io/discussions/add");e.forEach(o=>{n.searchParams.set(o.label,o.value)});const r=e.map(o=>`* ${o.label}: ${o.value}`).join(`
22
+ */const Tr=Object.freeze({left:0,top:0,width:16,height:16}),We=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Re=Object.freeze({...Tr,...We}),jt=Object.freeze({...Re,body:"",hidden:!1});function Di(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function Un(e,t){const n=Di(e,t);for(const r in jt)r in We?r in e&&!(r in n)&&(n[r]=We[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function Ai(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function i(s){if(n[s])return o[s]=[];if(!(s in o)){o[s]=null;const a=r[s]&&r[s].parent,l=a&&i(a);l&&(o[s]=[a].concat(l))}return o[s]}return Object.keys(n).concat(Object.keys(r)).forEach(i),o}function $i(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let i={};function s(a){i=Un(r[a]||o[a],i)}return s(t),n.forEach(s),Un(e,i)}function Ni(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=Ai(e);for(const o in r){const i=r[o];i&&(t(o,$i(e,o,i)),n.push(o))}return n}const Ce=/^[a-z0-9]+(-[a-z0-9]+)*$/,xe=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),l=o.pop(),u={provider:o.length>0?o[0]:r,prefix:l,name:a};return t&&!Fe(u)?null:u}const i=o[0],s=i.split("-");if(s.length>1){const a={provider:r,prefix:s.shift(),name:s.join("-")};return t&&!Fe(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:i};return t&&!Fe(a,n)?null:a}return null},Fe=(e,t)=>e?!!((e.provider===""||e.provider.match(Ce))&&(t&&e.prefix===""||e.prefix.match(Ce))&&e.name.match(Ce)):!1,Mi={provider:"",aliases:{},not_found:{},...Tr};function mt(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Ui(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!mt(e,Mi))return null;const n=t.icons;for(const o in n){const i=n[o];if(!o.match(Ce)||typeof i.body!="string"||!mt(i,jt))return null}const r=t.aliases||Object.create(null);for(const o in r){const i=r[o],s=i.parent;if(!o.match(Ce)||typeof s!="string"||!n[s]&&!r[s]||!mt(i,jt))return null}return t}const Ge=Object.create(null);function Bi(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function ee(e,t){const n=Ge[e]||(Ge[e]=Object.create(null));return n[t]||(n[t]=Bi(e,t))}function rn(e,t){return Ui(t)?Ni(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function ki(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function zi(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(Ge)).forEach(o=>{(typeof o=="string"&&typeof t=="string"?[t]:Object.keys(Ge[o]||{})).forEach(s=>{const a=ee(o,s);n=n.concat(Object.keys(a.icons).map(l=>(o!==""?"@"+o+":":"")+s+":"+l))})}),n}let on=!1;function Fi(e){return on}function Te(e){const t=typeof e=="string"?xe(e,!0,on):e;if(t){const n=ee(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function Vi(e,t){const n=xe(e,!0,on);if(!n)return!1;const r=ee(n.provider,n.prefix);return ki(r,n.name,t)}function Lr(e,t){if(typeof e!="object")return!1;typeof t!="string"&&(t=e.provider||"");const n=e.prefix;if(!Fe({provider:t,prefix:n,name:"a"}))return!1;const r=ee(t,n);return!!rn(r,e)}function Hi(e){return!!Te(e)}function qi(e){const t=Te(e);return t?{...Re,...t}:null}const Dr=Object.freeze({width:null,height:null}),Ar=Object.freeze({...Dr,...We}),Ki=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Wi=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function wt(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(Ki);if(r===null||!r.length)return e;const o=[];let i=r.shift(),s=Wi.test(i);for(;;){if(s){const a=parseFloat(i);isNaN(a)?o.push(i):o.push(Math.ceil(a*t*n)/n)}else o.push(i);if(i=r.shift(),i===void 0)return o.join("");s=!s}}const Gi=e=>e==="unset"||e==="undefined"||e==="none";function tt(e,t){const n={...Re,...e},r={...Ar,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,r].forEach(b=>{const h=[],j=b.hFlip,I=b.vFlip;let g=b.rotate;j?I?g+=2:(h.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),h.push("scale(-1 1)"),o.top=o.left=0):I&&(h.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),h.push("scale(1 -1)"),o.top=o.left=0);let _;switch(g<0&&(g-=Math.floor(g/4)*4),g=g%4,g){case 1:_=o.height/2+o.top,h.unshift("rotate(90 "+_.toString()+" "+_.toString()+")");break;case 2:h.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:_=o.width/2+o.left,h.unshift("rotate(-90 "+_.toString()+" "+_.toString()+")");break}g%2===1&&(o.left!==o.top&&(_=o.left,o.left=o.top,o.top=_),o.width!==o.height&&(_=o.width,o.width=o.height,o.height=_)),h.length&&(i='<g transform="'+h.join(" ")+'">'+i+"</g>")});const s=r.width,a=r.height,l=o.width,u=o.height;let d,f;s===null?(f=a===null?"1em":a==="auto"?u:a,d=wt(f,l/u)):(d=s==="auto"?l:s,f=a===null?wt(d,u/l):a==="auto"?u:a);const p={},v=(b,h)=>{Gi(h)||(p[b]=h.toString())};return v("width",d),v("height",f),p.viewBox=o.left.toString()+" "+o.top.toString()+" "+l.toString()+" "+u.toString(),{attributes:p,body:i}}const Qi=/\sid="(\S+)"/g,Xi="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Yi=0;function $r(e,t=Xi){const n=[];let r;for(;r=Qi.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(i=>{const s=typeof t=="function"?t(i):t+(Yi++).toString(),a=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+s+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const le={local:!0,session:!0},Nr={local:new Set,session:new Set};let sn=!1;function Zi(e){sn=e}const Bn="iconify2",Ie="iconify",Mr=Ie+"-count",kn=Ie+"-version",Ur=36e5,Ji=168;function St(e,t){try{return e.getItem(t)}catch{}}function an(e,t,n){try{return e.setItem(t,n),!0}catch{}}function zn(e,t){try{e.removeItem(t)}catch{}}function _t(e,t){return an(e,Mr,t.toString())}function Ct(e){return parseInt(St(e,Mr))||0}let Ue=typeof window>"u"?{}:window;function Br(e){const t=e+"Storage";try{if(Ue&&Ue[t]&&typeof Ue[t].length=="number")return Ue[t]}catch{}le[e]=!1}function kr(e,t){const n=Br(e);if(!n)return;const r=St(n,kn);if(r!==Bn){if(r){const a=Ct(n);for(let l=0;l<a;l++)zn(n,Ie+l.toString())}an(n,kn,Bn),_t(n,0);return}const o=Math.floor(Date.now()/Ur)-Ji,i=a=>{const l=Ie+a.toString(),u=St(n,l);if(typeof u=="string"){try{const d=JSON.parse(u);if(typeof d=="object"&&typeof d.cached=="number"&&d.cached>o&&typeof d.provider=="string"&&typeof d.data=="object"&&typeof d.data.prefix=="string"&&t(d,a))return!0}catch{}zn(n,l)}};let s=Ct(n);for(let a=s-1;a>=0;a--)i(a)||(a===s-1?(s--,_t(n,s)):Nr[e].add(a))}function zr(){if(!sn){Zi(!0);for(const e in le)kr(e,t=>{const n=t.data,r=t.provider,o=n.prefix,i=ee(r,o);if(!rn(i,n).length)return!1;const s=n.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,s):s,!0})}}function Fr(e,t){switch(e){case"local":case"session":le[e]=t;break;case"all":for(const n in le)le[n]=t;break}}const Ot=Object.create(null);function Vr(e,t){Ot[e]=t}function Pt(e){return Ot[e]||Ot[""]}function cn(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const nt=Object.create(null),we=["https://api.simplesvg.com","https://api.unisvg.com"],Ve=[];for(;we.length>0;)we.length===1||Math.random()>.5?Ve.push(we.shift()):Ve.push(we.pop());nt[""]=cn({resources:["https://api.iconify.design"].concat(Ve)});function Hr(e,t){const n=cn(t);return n===null?!1:(nt[e]=n,!0)}function rt(e){return nt[e]}function ea(){return Object.keys(nt)}const ta=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Qe=ta();function na(e){Qe=e}function ra(){return Qe}function oa(e,t){const n=rt(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(s=>{o=Math.max(o,s.length)});const i=t+".json?icons=";r=n.maxURL-o-n.path.length-i.length}return r}function sa(e){return e===404}const ia=(e,t,n)=>{const r=[],o=oa(e,t),i="icons";let s={type:i,provider:e,prefix:t,icons:[]},a=0;return n.forEach((l,u)=>{a+=l.length+1,a>=o&&u>0&&(r.push(s),s={type:i,provider:e,prefix:t,icons:[]},a=l.length),s.icons.push(l)}),r.push(s),r};function aa(e){if(typeof e=="string"){const t=rt(e);if(t)return t.path}return"/"}const ca=(e,t,n)=>{if(!Qe){n("abort",424);return}let r=aa(t.provider);switch(t.type){case"icons":{const i=t.prefix,a=t.icons.join(","),l=new URLSearchParams({icons:a});r+=i+".json?"+l.toString();break}case"custom":{const i=t.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:n("abort",400);return}let o=503;Qe(e+r).then(i=>{const s=i.status;if(s!==200){setTimeout(()=>{n(sa(s)?"abort":"next",s)});return}return o=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?n("abort",i):n("next",o)});return}setTimeout(()=>{n("success",i)})}).catch(()=>{n("next",o)})},la={prepare:ia,send:ca};function ua(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,i)=>o.provider!==i.provider?o.provider.localeCompare(i.provider):o.prefix!==i.prefix?o.prefix.localeCompare(i.prefix):o.name.localeCompare(i.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const i=o.provider,s=o.prefix,a=o.name,l=n[i]||(n[i]=Object.create(null)),u=l[s]||(l[s]=ee(i,s));let d;a in u.icons?d=t.loaded:s===""||u.missing.has(a)?d=t.missing:d=t.pending;const f={provider:i,prefix:s,name:a};d.push(f)}),t}function qr(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function da(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(i=>{const s=i.icons,a=s.pending.length;s.pending=s.pending.filter(l=>{if(l.prefix!==o)return!0;const u=l.name;if(e.icons[u])s.loaded.push({provider:r,prefix:o,name:u});else if(e.missing.has(u))s.missing.push({provider:r,prefix:o,name:u});else return n=!0,!0;return!1}),s.pending.length!==a&&(n||qr([e],i.id),i.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),i.abort))})}))}let fa=0;function pa(e,t,n){const r=fa++,o=qr.bind(null,n,r);if(!t.pending.length)return o;const i={id:r,icons:t,callback:e,abort:o};return n.forEach(s=>{(s.loaderCallbacks||(s.loaderCallbacks=[])).push(i)}),o}function ma(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const i=typeof o=="string"?xe(o,t,n):o;i&&r.push(i)}),r}var ga={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ha(e,t,n,r){const o=e.resources.length,i=e.random?Math.floor(Math.random()*o):e.index;let s;if(e.random){let S=e.resources.slice(0);for(s=[];S.length>1;){const R=Math.floor(Math.random()*S.length);s.push(S[R]),S=S.slice(0,R).concat(S.slice(R+1))}s=s.concat(S)}else s=e.resources.slice(i).concat(e.resources.slice(0,i));const a=Date.now();let l="pending",u=0,d,f=null,p=[],v=[];typeof r=="function"&&v.push(r);function b(){f&&(clearTimeout(f),f=null)}function h(){l==="pending"&&(l="aborted"),b(),p.forEach(S=>{S.status==="pending"&&(S.status="aborted")}),p=[]}function j(S,R){R&&(v=[]),typeof S=="function"&&v.push(S)}function I(){return{startTime:a,payload:t,status:l,queriesSent:u,queriesPending:p.length,subscribe:j,abort:h}}function g(){l="failed",v.forEach(S=>{S(void 0,d)})}function _(){p.forEach(S=>{S.status==="pending"&&(S.status="aborted")}),p=[]}function w(S,R,C){const P=R!=="success";switch(p=p.filter(E=>E!==S),l){case"pending":break;case"failed":if(P||!e.dataAfterTimeout)return;break;default:return}if(R==="abort"){d=C,g();return}if(P){d=C,p.length||(s.length?O():g());return}if(b(),_(),!e.random){const E=e.resources.indexOf(S.resource);E!==-1&&E!==e.index&&(e.index=E)}l="completed",v.forEach(E=>{E(C)})}function O(){if(l!=="pending")return;b();const S=s.shift();if(S===void 0){if(p.length){f=setTimeout(()=>{b(),l==="pending"&&(_(),g())},e.timeout);return}g();return}const R={status:"pending",resource:S,callback:(C,P)=>{w(R,C,P)}};p.push(R),u++,f=setTimeout(O,e.rotate),n(S,t,R.callback)}return setTimeout(O),I}function Kr(e){const t={...ga,...e};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function o(a,l,u){const d=ha(t,a,l,(f,p)=>{r(),u&&u(f,p)});return n.push(d),d}function i(a){return n.find(l=>a(l))||null}return{query:o,find:i,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:r}}function Fn(){}const gt=Object.create(null);function va(e){if(!gt[e]){const t=rt(e);if(!t)return;const n=Kr(t),r={config:t,redundancy:n};gt[e]=r}return gt[e]}function Wr(e,t,n){let r,o;if(typeof e=="string"){const i=Pt(e);if(!i)return n(void 0,424),Fn;o=i.send;const s=va(e);s&&(r=s.redundancy)}else{const i=cn(e);if(i){r=Kr(i);const s=e.resources?e.resources[0]:"",a=Pt(s);a&&(o=a.send)}}return!r||!o?(n(void 0,424),Fn):r.query(t,o,n)().abort}function ya(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in le)kr(r,o=>{const i=o.data;return o.provider!==e.provider||i.prefix!==e.prefix||i.lastModified===t});return!0}function xa(e,t){sn||zr();function n(r){let o;if(!le[r]||!(o=Br(r)))return;const i=Nr[r];let s;if(i.size)i.delete(s=Array.from(i).shift());else if(s=Ct(o),!_t(o,s+1))return;const a={cached:Math.floor(Date.now()/Ur),provider:e.provider,data:t};return an(o,Ie+s.toString(),JSON.stringify(a))}t.lastModified&&!ya(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Vn(){}function ba(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,da(e)}))}function ja(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let i;if(!o||!(i=Pt(n)))return;i.prepare(n,r,o).forEach(a=>{Wr(n,a,l=>{if(typeof l!="object")a.icons.forEach(u=>{e.missing.add(u)});else try{const u=rn(e,l);if(!u.length)return;const d=e.pendingIcons;d&&u.forEach(f=>{d.delete(f)}),xa(e,l)}catch(u){console.error(u)}ba(e)})})}))}const wa=e=>{const n=ee(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},ln=(e,t)=>{const n=ma(e,!0,Fi()),r=ua(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,Vn)}),()=>{l=!1}}const o=Object.create(null),i=[];let s,a;return r.pending.forEach(l=>{const{provider:u,prefix:d}=l;if(d===a&&u===s)return;s=u,a=d,i.push(ee(u,d));const f=o[u]||(o[u]=Object.create(null));f[d]||(f[d]=[])}),r.pending.forEach(l=>{const{provider:u,prefix:d,name:f}=l,p=ee(u,d),v=p.pendingIcons||(p.pendingIcons=new Set);v.has(f)||(v.add(f),o[u][d].push(f))}),i.forEach(l=>{const{provider:u,prefix:d}=l;o[u][d].length&&ja(l,o[u][d])}),t?pa(t,r,i):Vn},Sa=e=>new Promise((t,n)=>{const r=typeof e=="string"?xe(e,!0):e;if(!r){n(e);return}ln([r||e],o=>{if(o.length&&r){const i=Te(r);if(i){t({...Re,...i});return}}n(e)})});function Gr(e,t){const n={...e};for(const r in t){const o=t[r],i=typeof o;r in Dr?(o===null||o&&(i==="string"||i==="number"))&&(n[r]=o):i===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const ot={...Ar,inline:!1},ht="iconify",It="iconify-inline",se="iconifyData"+Date.now();let ue=[];function Le(e){for(let t=0;t<ue.length;t++){const n=ue[t];if((typeof n.node=="function"?n.node():n.node)===e)return n}}function Qr(e,t=!1){let n=Le(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},ue.push(n),n)}function _a(){if(document.documentElement)return Qr(document.documentElement);ue.push({node:()=>document.documentElement})}function Ca(e){ue=ue.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function De(){return ue}function Oa(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let Oe=null;const Pa={childList:!0,subtree:!0,attributes:!0};function Xr(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,Oe&&Oe(e)}))}function Ia(e,t){if(!e.observer)return;const n=e.observer;if(!n.pendingScan)for(let r=0;r<t.length;r++){const o=t[r];if(o.addedNodes&&o.addedNodes.length>0||o.type==="attributes"&&o.target[se]!==void 0){n.paused||Xr(e);return}}}function Yr(e,t){e.observer.instance.observe(t,Pa)}function Xe(e){let t=e.observer;if(t&&t.instance)return;const n=typeof e.node=="function"?e.node():e.node;!n||!window||(t||(t={paused:0},e.observer=t),t.instance=new window.MutationObserver(Ia.bind(null,e)),Yr(e,n),t.paused||Xr(e))}function Hn(){De().forEach(Xe)}function Zr(e){if(!e.observer)return;const t=e.observer;t.pendingScan&&(clearTimeout(t.pendingScan),delete t.pendingScan),t.instance&&(t.instance.disconnect(),delete t.instance)}function Ea(e){const t=Oe!==null;if(Oe!==e&&(Oe=e,t&&De().forEach(Zr)),t){Hn();return}Oa(Hn)}function Et(e){(e?[e]:De()).forEach(t=>{if(!t.observer){t.observer={paused:1};return}const n=t.observer;if(n.paused++,n.paused>1||!n.instance)return;n.instance.disconnect()})}function Ra(e){if(e){const t=Le(e);t&&Et(t)}else Et()}function Rt(e){(e?[e]:De()).forEach(t=>{if(!t.observer){Xe(t);return}const n=t.observer;if(n.paused&&(n.paused--,!n.paused)){const r=typeof t.node=="function"?t.node():t.node;if(r)n.instance?Yr(t,r):Xe(t);else return}})}function Ta(e){if(e){const t=Le(e);t&&Rt(t)}else Rt()}function Jr(e,t=!1){const n=Qr(e,t);return Xe(n),n}function eo(e){const t=Le(e);t&&(Zr(t),Ca(e))}function La(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,r=t.customisations;for(const o in ot)if(n[o]!==r[o])return!0;return!1}function Da(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i=i/o,i%1===0?r(i):0)}}return t}const Aa=/[\s,]+/;function $a(e,t){t.split(Aa).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const Na=["width","height"],Ma=["inline","hFlip","vFlip"];function Ua(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function Ba(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&xe(t,!0);if(!n)return null;const r={...ot,inline:e.classList&&e.classList.contains(It)};Na.forEach(a=>{const l=e.getAttribute("data-"+a);l&&(r[a]=l)});const o=e.getAttribute("data-rotate");typeof o=="string"&&(r.rotate=Da(o));const i=e.getAttribute("data-flip");typeof i=="string"&&$a(r,i),Ma.forEach(a=>{const l="data-"+a,u=Ua(e.getAttribute(l),l);typeof u=="boolean"&&(r[a]=u)});const s=e.getAttribute("data-mode");return{name:t,icon:n,customisations:r,mode:s}}const ka="svg."+ht+", i."+ht+", span."+ht+", i."+It+", span."+It;function za(e){const t=[];return e.querySelectorAll(ka).forEach(n=>{const r=n[se]||n.tagName.toLowerCase()!=="svg"?Ba(n):null;r&&t.push({node:n,props:r})}),t}function to(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}let Pe;function Fa(){try{Pe=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{Pe=null}}function Va(e){return Pe===void 0&&Fa(),Pe?Pe.createHTML(e):e}function no(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function ro(e,t,n,r){const o=e.classList;if(r){const s=r.classList;Array.from(s).forEach(a=>{o.add(a)})}const i=[];return t.forEach(s=>{o.contains(s)?n.has(s)&&i.push(s):(o.add(s),i.push(s))}),n.forEach(s=>{t.has(s)||o.remove(s)}),i}function oo(e,t,n){const r=e.style;(n||[]).forEach(i=>{r.removeProperty(i)});const o=[];for(const i in t)r.getPropertyValue(i)||(o.push(i),r.setProperty(i,t[i]));return o}function so(e,t,n){let r;try{r=document.createElement("span")}catch{return e}const o=t.customisations,i=tt(n,o),s=e[se],a=to($r(i.body),{"aria-hidden":"true",role:"img",...i.attributes});r.innerHTML=Va(a);const l=r.childNodes[0],u=e.attributes;for(let b=0;b<u.length;b++){const h=u.item(b),j=h.name;j!=="class"&&!l.hasAttribute(j)&&l.setAttribute(j,h.value)}const d=no(t.icon),f=ro(l,d,new Set(s&&s.addedClasses),e),p=oo(l,o.inline?{"vertical-align":"-0.125em"}:{},s&&s.addedStyles),v={...t,status:"loaded",addedClasses:f,addedStyles:p};return l[se]=v,e.parentNode&&e.parentNode.replaceChild(l,e),l}function Ha(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function qa(e){return"data:image/svg+xml,"+Ha(e)}function Ka(e){return'url("'+qa(e)+'")'}const Wa={display:"inline-block"},Tt={"background-color":"currentColor"},io={"background-color":"transparent"},qn={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Kn={"-webkit-mask":Tt,mask:Tt,background:io};for(const e in Kn){const t=Kn[e];for(const n in qn)t[e+"-"+n]=qn[n]}function Wn(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function Ga(e,t,n,r){const o=t.customisations,i=tt(n,o),s=i.attributes,a=e[se],l=to(i.body,{...s,width:n.width+"",height:n.height+""}),u=no(t.icon),d=ro(e,u,new Set(a&&a.addedClasses)),p={"--svg":Ka(l),width:Wn(s.width),height:Wn(s.height),...Wa,...r?Tt:io};o.inline&&(p["vertical-align"]="-0.125em");const v=oo(e,p,a&&a.addedStyles),b={...t,status:"loaded",addedClasses:d,addedStyles:v};return e[se]=b,e}let Be=!1;function Qa(){Be||(Be=!0,setTimeout(()=>{Be&&(Be=!1,ve())}))}function ve(e,t=!1){const n=Object.create(null);function r(o,i){const{provider:s,prefix:a,name:l}=o,u=ee(s,a),d=u.icons[l];if(d)return{status:"loaded",icon:d};if(u.missing.has(l))return{status:"missing"};if(i&&!wa(o)){const f=n[s]||(n[s]=Object.create(null));(f[a]||(f[a]=new Set)).add(l)}return{status:"loading"}}(e?[e]:De()).forEach(o=>{const i=typeof o.node=="function"?o.node():o.node;if(!i||!i.querySelectorAll)return;let s=!1,a=!1;function l(u,d,f){if(a||(a=!0,Et(o)),u.tagName.toUpperCase()!=="SVG"){const p=d.mode,v=p==="mask"||(p==="bg"?!1:p==="style"?f.body.indexOf("currentColor")!==-1:null);if(typeof v=="boolean"){Ga(u,d,{...Re,...f},v);return}}so(u,d,f)}za(i).forEach(({node:u,props:d})=>{const f=u[se];if(!f){const{status:v,icon:b}=r(d.icon,!0);if(b){l(u,d,b);return}s=s||v==="loading",u[se]={...d,status:v};return}let p;if(La(f,d)){if(p=r(d.icon,f.name!==d.name),!p.icon){s=s||p.status==="loading",Object.assign(f,{...d,status:p.status});return}}else{if(f.status!=="loading")return;if(p=r(d.icon,!1),!p.icon){f.status=p.status;return}}l(u,d,p.icon)}),o.temporary&&!s?eo(i):t&&s?Jr(i,!0):a&&o.observer&&Rt(o)});for(const o in n){const i=n[o];for(const s in i){const a=i[s];ln(Array.from(a).map(l=>({provider:o,prefix:s,name:l})),Qa)}}}function Xa(e){const t=Le(e);t?ve(t):ve({node:e,temporary:!0},!0)}function ao(e,t,n=!1){const r=Te(e);if(!r)return null;const o=xe(e),i=Gr(ot,t||{}),s=so(document.createElement("span"),{name:e,icon:o,customisations:i},r);return n?s.outerHTML:s}function Ya(){return"3.1.1"}function Za(e,t){return ao(e,t,!1)}function Ja(e,t){return ao(e,t,!0)}function ec(e,t){const n=Te(e);if(!n)return null;const r=Gr(ot,t||{});return tt(n,r)}function tc(e){e?Xa(e):ve()}if(typeof document<"u"&&typeof window<"u"){_a();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!Lr(r))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{Ea(ve),ve()})}function nc(e,t){Fr(e,t!==!1)}function rc(e){Fr(e,!0)}Vr("",la);if(typeof document<"u"&&typeof window<"u"){zr();const e=window;if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const n in t){const r="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;Hr(n,o)||console.error(r)}catch{console.error(r)}}}}const oc={getAPIConfig:rt,setAPIModule:Vr,sendAPIQuery:Wr,setFetch:na,getFetch:ra,listAPIProviders:ea},sc={_api:oc,addAPIProvider:Hr,loadIcons:ln,loadIcon:Sa,iconExists:Hi,getIcon:qi,listIcons:zi,addIcon:Vi,addCollection:Lr,replaceIDs:$r,calculateSize:wt,buildIcon:tt,getVersion:Ya,renderSVG:Za,renderHTML:Ja,renderIcon:ec,scan:tc,observe:Jr,stopObserving:eo,pauseObserver:Ra,resumeObserver:Ta,enableCache:nc,disableCache:rc};try{self.Iconify===void 0&&(self.Iconify=sc)}catch{}var un={},ic=z;Object.defineProperty(un,"__esModule",{value:!0});var co=un.default=void 0,ac=ic(k()),cc=c;co=un.default=(0,ac.default)((0,cc.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");function dn({infos:e}){const{t}=Q(),n=new URL("https://community.arcblock.io/discussions/add");e.forEach(o=>{n.searchParams.set(o.label,o.value)});const r=e.map(o=>`* ${o.label}: ${o.value}`).join(`
23
23
  `);return n.searchParams.set("report","server"),n.searchParams.set("context",`[Enter feedback here]
24
24
 
25
25
 
@@ -29,7 +29,7 @@ import{aE as Zn,aF as Jn,aG as Nt,aH as W,r as x,aI as er,aJ as tr,aK as ge,aL a
29
29
  ${r}
30
30
  * Page: ${window.location.href}
31
31
  -->
32
- `),A(D,{sx:{mx:{xs:0,md:2}},children:A(hr,{sx:{color:"text.primary"},target:"_blank",href:n.href,rel:"noreferrer",style:{textDecoration:"underline"},children:t("common.reportIssue")})})}dn.propTypes={infos:m.arrayOf(m.shape({label:m.string,value:m.string}))};dn.defaultProps={infos:[]};var cc={year:{long:"year",short:"y"},day:{long:"day",short:"d"},hour:{long:"hour",short:"h"},minute:{long:"minute",short:"m"},second:{long:"second",short:"s"},millisecond:{long:"millisecond",short:"ms"},microsecond:{long:"microsecond",short:"µs"},nanosecond:{long:"nanosecond",short:"ns"}},lc={year:{long:"年",short:"年"},day:{long:"天",short:"天"},hour:{long:"小时",short:"小时"},minute:{long:"分钟",short:"分"},second:{long:"秒钟",short:"秒"},millisecond:{long:"毫秒",short:"毫秒"},microsecond:{long:"微秒",short:"微秒"},nanosecond:{long:"纳秒",short:"纳秒"}};const Lt=new Map,uc=(e,t)=>{Lt.set(e,t)},dc=(e="en_US")=>Lt.get(e)||Lt.get("en_US");var lo={registerLang:uc,getLang:dc},fc=e=>{if(typeof e!="number")throw new TypeError("Expected a number");const t=e>0?Math.floor:Math.ceil;return{days:t(e/864e5),hours:t(e/36e5)%24,minutes:t(e/6e4)%60,seconds:t(e/1e3)%60,milliseconds:t(e)%1e3,microseconds:t(e*1e3)%1e3,nanoseconds:t(e*1e6)%1e3}};const pc=fc,{getLang:Se}=lo,mc=(e,t)=>t===1?e:`${e}s`,gc=1e-7;var hc=(e,t={})=>{if(!Number.isFinite(e))throw new TypeError("Expected a finite number");t.colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);const n=Se(t.locale),r=[],o=(a,l)=>{const u=Math.floor(a*10**l+gc);return(Math.round(u)/10**l).toFixed(l)},i=(a,l,u)=>{if((r.length===0||!t.colonNotation)&&a===0&&!(t.colonNotation&&l==="minute"))return;const{long:d}=n[l]||Se("en_US")[l],{short:f}=n[l]||Se("en_US")[l];let p=(u||a||"0").toString(),v,b;if(t.colonNotation){v=r.length>0?":":"",b="";const h=p.includes(".")?p.split(".")[0].length:p.length,j=r.length>0?2:1;p="0".repeat(Math.max(0,j-h))+p}else v="",t.locale==="zh_CN"?Object.values(s).filter(h=>h>0).length>1?!s.days&&!s.hours&&s.minutes&&t.compact?b=d:b=f:s.minutes?b=d:b=f:b=t.verbose?` ${mc(d,a)}`:f;r.push(v+p+b)},s=pc(e);if(i(Math.trunc(s.days/365),"year"),i(s.days%365,"day"),i(s.hours,"hour"),i(s.minutes,"minute"),t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3)if(i(s.seconds,"second"),t.formatSubMilliseconds)i(s.milliseconds,"millisecond"),i(s.microseconds,"microsecond"),i(s.nanoseconds,"nanosecond");else{const a=s.milliseconds+s.microseconds/1e3+s.nanoseconds/1e6,l=typeof t.millisecondsDecimalDigits=="number"?t.millisecondsDecimalDigits:0,u=a>=1?Math.round(a):Math.ceil(a),d=l?a.toFixed(l):u;i(Number.parseFloat(d,10),"millisecond",d)}else{const a=e/1e3%60,l=typeof t.secondsDecimalDigits=="number"?t.secondsDecimalDigits:1,u=o(a,l),d=t.keepDecimalsOnWholeSeconds?u:u.replace(/\.0+$/,"");i(Number.parseFloat(d,10),"second",d)}if(r.length===0){const a=(n.millisecond||Se("en_US").millisecond).long,l=(n.millisecond||Se("en_US").millisecond).short;return t.locale==="zh_CN"?`0${t.verbose?`${a}`:l}`:`0${t.verbose?` ${a}s`:l}`}if(t.compact)return r[0];if(typeof t.unitCount=="number"){const a=t.colonNotation?"":" ";return r.slice(0,Math.max(t.unitCount,1)).join(a)}return t.colonNotation?r.join(""):r.join(" ")};const vc=cc,yc=lc,{registerLang:fn}=lo,uo=hc;fn("en_US",vc);fn("zh_CN",yc);uo.registerLang=fn;var xc=uo;const Ye=rr(xc);var pn={},bc=z;Object.defineProperty(pn,"__esModule",{value:!0});var Dt=pn.default=void 0,jc=bc(k()),Gn=c;Dt=pn.default=(0,jc.default)([(0,Gn.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,Gn.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function oe({children:e}){return et(n=>n.breakpoints.down("md"))?c.jsx(He,{enterDelay:500,leaveDelay:2e3,title:typeof e=="string"?e:"",children:c.jsx(D,{sx:{display:"flex",alignItems:"center",gap:1},children:c.jsx(Dt,{fontSize:"small"})})}):c.jsxs(D,{sx:{display:"flex",alignItems:"center",gap:1},children:[c.jsx(Dt,{fontSize:"small"}),e]})}oe.propTypes={children:m.node.isRequired};const wc="https://launcher.arcblock.io/",Sc=30*24*60*60*1e3;function mn({launcherUrl:e,chainHost:t,nftId:n,launcherSessionId:r,...o}){var O,S,R,C,P,E;const{t:i,locale:s}=Q(),a=ye(),[l,u]=vr({safeIframeRef:null,popoverAnchorEl:null}),d=x.useRef(null),f=et(T=>T.breakpoints.down("md")),{sx:p={},...v}=o,b=f?"mobile":"desktop",h=mr(async()=>{const[T,ne]=await Promise.all([a.api.getLauncherSession({input:{launcherSessionId:r,launcherUrl:e}}),ar({launcherUrl:e||wc,nftDid:n,launcherSessionId:r,locale:s})]);if(T!=null&&T.error)throw new Error(T.error);return{launcherSession:T.launcherSession,subscriptionURL:ne}},[s]);if(h.loading)return c.jsx(ce,{label:c.jsxs(oe,{children:[!f&&i("expiration.desktop.loading"),c.jsx(te,{size:16})]}),variant:"success",sx:{cursor:"pointer",...p},...v});if(h.error)return console.error(h.error),c.jsx(ce,{label:c.jsx(oe,{children:i(`expiration.${b}.loadFailed`)}),color:"error",variant:"success",sx:{cursor:"pointer",...p},...v,onClick:()=>h.retry()});const j=T=>{u({popoverAnchorEl:T.currentTarget})},I=()=>{u({popoverAnchorEl:null})},g=(O=h.value)==null?void 0:O.launcherSession;let _="success";[$.LAUNCH_SESSION_STATUS.overdue,$.LAUNCH_SESSION_STATUS.canceled,$.LAUNCH_SESSION_STATUS.terminated].includes((R=(S=h.value)==null?void 0:S.launcherSession)==null?void 0:R.status)&&(_="error");let w=null;if(g.expirationDate&&!g.subscription){const T=me(g.expirationDate).diff(me(),"ms");w=i(`expiration.${b}.tips.${_}`,{validity:Ye(T,{locale:kt(s),compact:!0,verbose:!0})}),T>0&&T<=Sc&&(_="warning")}return c.jsxs(c.Fragment,{children:[c.jsx(ce,{label:c.jsx(oe,{children:w||((P=(C=g==null?void 0:g.subscription)==null?void 0:C.product)==null?void 0:P.name)||i("common.subscription")}),color:_,variant:_!=="success"?"contained":"outlined",sx:{cursor:"pointer",...p},...v,onClick:j}),c.jsx(cr,{id:"popover-info",open:!!l.popoverAnchorEl,anchorEl:l.popoverAnchorEl,onClose:I,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:c.jsx("iframe",{ref:d,title:i("common.subscription"),width:"360px",height:"600px",style:{border:0},src:(E=h.value)==null?void 0:E.subscriptionURL})})]})}mn.propTypes={chainHost:m.string.isRequired,nftId:m.string,launcherSessionId:m.string,sx:m.object,retention:m.number,launcherUrl:m.string.isRequired};mn.defaultProps={sx:{},retention:0,nftId:"",launcherSessionId:""};const _c=30*24*60*60*1e3,Cc="https://launcher.arcblock.io/";function gn({launcherUrl:e,chainHost:t,nftId:n,launcherSessionId:r,...o}){var S,R,C,P,E,T,ne;const{t:i,locale:s}=Q(),[a,l]=vr({safeIframeRef:null,popoverAnchorEl:null}),u=x.useRef(null),d=et(M=>M.breakpoints.down("md")),f=ye(),{sx:p={},...v}=o,b=d?"mobile":"desktop",h=mr(async()=>{const[M,be]=await Promise.all([f.api.getLauncherSession({input:{launcherSessionId:r||n,launcherUrl:e}}),ar({launcherUrl:e||Cc,nftDid:n,launcherSessionId:r,locale:s})]);if(M!=null&&M.error)throw new Error(M.error);return{launcherSession:M.launcherSession,subscriptionURL:be}},[s]);if(h.loading)return c.jsx(ce,{label:c.jsxs(oe,{children:[!d&&i("expiration.desktop.loading"),c.jsx(te,{size:16})]}),variant:"success",sx:{cursor:"pointer",...p},...v});if(h.error)return console.error(h.error),c.jsx(ce,{label:c.jsx(oe,{children:i(`expiration.${b}.loadFailed`)}),color:"error",variant:"success",sx:{cursor:"pointer",...p},...v,onClick:()=>h.retry()});const j=(R=(S=h.value)==null?void 0:S.launcherSession)==null?void 0:R.expirationDate,I=me(j).isBefore(me()),g=me(j).diff(me(),"ms");let _="success";g<=_c&&(_="warning"),I&&(_="error");const w=M=>{l({popoverAnchorEl:M.currentTarget})},O=()=>{l({popoverAnchorEl:null})};return c.jsxs(c.Fragment,{children:[((P=(C=h.value)==null?void 0:C.launcherSession)==null?void 0:P.subscription)&&c.jsx(ce,{label:c.jsx(oe,{children:i("expiration.desktop.nextInvoice",{date:Mo(j,s)})}),color:"success",variant:"outlined",sx:{cursor:"pointer",...p},...v,onClick:w}),!((T=(E=h.value)==null?void 0:E.launcherSession)!=null&&T.subscription)&&c.jsx(ce,{label:c.jsx(oe,{children:i(`expiration.${b}.tips.${_}`,{validity:Ye(g,{locale:kt(s),compact:!0,verbose:!0})})}),color:_,variant:_!=="success"?"contained":"outlined",sx:{cursor:"pointer",...p},...v,onClick:w}),c.jsx(cr,{id:"popover-info",open:!!a.popoverAnchorEl,anchorEl:a.popoverAnchorEl,onClose:O,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:c.jsx("iframe",{ref:u,title:i("common.subscription"),width:"360px",height:"600px",style:{border:0},src:(ne=h.value)==null?void 0:ne.subscriptionURL})})]})}gn.propTypes={chainHost:m.string.isRequired,nftId:m.string,launcherSessionId:m.string,sx:m.object,retention:m.number,launcherUrl:m.string.isRequired};gn.defaultProps={sx:{},retention:0,nftId:"",launcherSessionId:""};var hn={},Oc=z;Object.defineProperty(hn,"__esModule",{value:!0});var fo=hn.default=void 0,Pc=Oc(k()),Ic=c;fo=hn.default=(0,Pc.default)((0,Ic.jsx)("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"}),"Fullscreen");var vn={},Ec=z;Object.defineProperty(vn,"__esModule",{value:!0});var po=vn.default=void 0,Rc=Ec(k()),Tc=c;po=vn.default=(0,Rc.default)((0,Tc.jsx)("path",{d:"M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"}),"FullscreenExit");var yn={};Object.defineProperty(yn,"__esModule",{value:!0});var At=yn.default=void 0;Lc(x);var Qn=c;function Lc(e){return e&&e.__esModule?e:{default:e}}function Xn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Yn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Xn(Object(n),!0).forEach(function(r){Dc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xn(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dc(e,t,n){return(t=Ac(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ac(e){var t=$c(e,"string");return typeof t=="symbol"?t:t+""}function $c(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xn=function(t){return(0,Qn.jsx)("svg",Yn(Yn({},t),{},{children:(0,Qn.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.251 2.5c-2.576-.006-4.747 2.1-4.766 4.506v5.784c0 .793-.084 1.778-.58 2.71h12.19c-.496-.932-.58-1.917-.58-2.711V7.01c-.035-2.403-2.21-4.502-4.797-4.508L9.25 2.5zM17.015 7v5.789c0 .79.1 1.562.53 2.219l.287.438c.436.664-.033 1.554-.817 1.554H2.985c-.785 0-1.255-.89-.818-1.554l.287-.438c.43-.657.53-1.428.53-2.218V7c.024-3.291 2.927-6.008 6.27-6l1.467.003c3.344.008 6.254 2.706 6.294 5.998zM11.06 18.06A1.5 1.5 0 0 0 11.5 17H13a3 3 0 0 1-6 0h1.5a1.5 1.5 0 0 0 2.56 1.06z",fill:"currentColor"})}))};xn.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};xn.displayName="notification";At=yn.default=xn;function mo({status:e,...t}){const n={warning:"warning",error:"error",info:"primary"};return!e||e==="info"||e==="success"?null:c.jsx(gr,{type:n[e],style:{borderRadius:5,border:"1px solid #ccc"},...t,children:e})}mo.propTypes={status:m.string.isRequired};function bn({value:e,...t}){const{t:n,locale:r}=Q();if(!e)return"-";const o={locale:kt(r),compact:!0},i=new Date(e).getTime(),s=Date.now();if(i>s){const l=Ye(i-s,o);return c.jsx(He,{title:qe(e,r),placement:"top-end",enterTouchDelay:0,children:c.jsx("span",{...t,children:n("common.afterTime",{time:l})})})}const a=Ye(s-i,o);return c.jsx(He,{title:qe(e,r),placement:"top-end",enterTouchDelay:0,children:c.jsx("span",{...t,children:n("common.timeAgo",{time:a})})})}bn.propTypes={value:m.any};bn.defaultProps={value:""};function Nc(e,t){const n=x.useRef(t);x.useEffect(()=>{const r=o=>n.current(o.detail);return window.addEventListener(e,r),()=>window.removeEventListener(e,r)},[e])}function Mc(){window.dispatchEvent(new CustomEvent("checkUpdate"))}function $l(e){const t=Je(),{t:n}=Q(),r=()=>{const o=new URLSearchParams(window.location.search);o.get("checkUpdate")&&(o.delete("checkUpdate"),t(o.toString()),e(),J.success(n("notification.checkingForUpdates")))};x.useEffect(r,[]),Nc("checkUpdate",r)}function jn({onHide:e,api:t,notifications:n,updateNotifications:r,viewAllUrl:o,teamDid:i}){const{inService:s}=ye(),{t:a,locale:l}=x.useContext(Mt),[u,d]=x.useState(!0),[f,p]=x.useState(!1),v=Je(),b=Uo();let h=u?n:n.filter(w=>w.read===!1);h=h.slice(0,5);const j=n.filter(w=>w.read===!1).length>0,I=async()=>{p(!0);const w=n.filter(O=>O.read===!1).map(O=>O.id).join(",");s?await t.readBlockletNotifications({input:{id:w,teamDid:i}}):await t.readNotifications({input:{id:w}}),r(),p(!1)},g=(w,O)=>{O.read||(s?t.readBlockletNotifications({input:{id:O.id,teamDid:i}}).then(()=>r()):t.readNotifications({input:{id:O.id}}).then(()=>r())),e(w),v(o)},_=(w,O)=>{w.preventDefault(),w.stopPropagation(),v(O),Mc()};return c.jsxs(Uc,{children:[c.jsxs(G,{component:"h3",variant:"h6",className:"notification-header",children:[a("notification.title"),c.jsx(he,{component:Bt,to:o,"data-cy":"view-all-notifications-btn",onClick:e,children:a("notification.viewAll")})]}),c.jsx(yt,{}),c.jsxs(Bo,{className:"notification-list",style:{maxHeight:"calc(100vh - 200px)",overflow:"auto"},children:[h.length===0&&c.jsx(G,{component:"p",variant:"body1",className:"notification-tip",children:a("notification.empty")}),h.length>0&&h.map(w=>c.jsxs(xs,{alignItems:"flex-start",disabled:w.read,onClick:O=>g(O,w),children:[c.jsx(Ts,{className:"list-item-avatar",children:c.jsxs(c.Fragment,{children:[c.jsx(pr,{children:w.entityType.substr(0,1).toUpperCase()}),c.jsx(mo,{className:"notification-tag",status:w.severity})]})}),c.jsx(dr,{primary:w.title,secondary:c.jsxs(D,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[c.jsx(G,{component:"span",sx:{overflow:"hidden","-webkit-line-clamp":"3","-webkit-box-orient":"vertical",display:"-webkit-box","text-overflow":"ellipsis"},children:w.description}),c.jsxs(D,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",children:[c.jsx(bn,{value:w.createdAt,locale:l,style:{color:b.palette.text.secondary,fontSize:"0.875rem",marginTop:"4px"}}),w.action&&!w.read?c.jsx(he,{color:"primary",variant:"outlined",onPointerDown:O=>{O.stopPropagation(),O.preventDefault()},onClick:O=>_(O,w.action),"data-cy":"check-for-updates",children:a("notification.proceed")}):null]})]})})]},w.id))]}),c.jsx(yt,{}),c.jsxs(G,{component:"div",className:"notification-footer",children:[c.jsx(bt,{control:c.jsx(fs,{checked:u,onChange:()=>d(!u),name:"showRead",color:"primary"}),label:a("notification.showRead")}),c.jsx(gs,{permission:s?"":"mutate_notification",role:s?ko:[],children:j&&c.jsxs(he,{disabled:f,onClick:I,className:"",children:[f&&c.jsx(te,{size:16,style:{marginRight:"1em"}}),a("notification.markAllAsRead")]})})]})]})}const Uc=Ze.div`
32
+ `),A(D,{sx:{mx:{xs:0,md:2}},children:A(hr,{sx:{color:"text.primary"},target:"_blank",href:n.href,rel:"noreferrer",style:{textDecoration:"underline"},children:t("common.reportIssue")})})}dn.propTypes={infos:m.arrayOf(m.shape({label:m.string,value:m.string}))};dn.defaultProps={infos:[]};var lc={year:{long:"year",short:"y"},day:{long:"day",short:"d"},hour:{long:"hour",short:"h"},minute:{long:"minute",short:"m"},second:{long:"second",short:"s"},millisecond:{long:"millisecond",short:"ms"},microsecond:{long:"microsecond",short:"µs"},nanosecond:{long:"nanosecond",short:"ns"}},uc={year:{long:"年",short:"年"},day:{long:"天",short:"天"},hour:{long:"小时",short:"小时"},minute:{long:"分钟",short:"分"},second:{long:"秒钟",short:"秒"},millisecond:{long:"毫秒",short:"毫秒"},microsecond:{long:"微秒",short:"微秒"},nanosecond:{long:"纳秒",short:"纳秒"}};const Lt=new Map,dc=(e,t)=>{Lt.set(e,t)},fc=(e="en_US")=>Lt.get(e)||Lt.get("en_US");var lo={registerLang:dc,getLang:fc},pc=e=>{if(typeof e!="number")throw new TypeError("Expected a number");const t=e>0?Math.floor:Math.ceil;return{days:t(e/864e5),hours:t(e/36e5)%24,minutes:t(e/6e4)%60,seconds:t(e/1e3)%60,milliseconds:t(e)%1e3,microseconds:t(e*1e3)%1e3,nanoseconds:t(e*1e6)%1e3}};const mc=pc,{getLang:Se}=lo,gc=(e,t)=>t===1?e:`${e}s`,hc=1e-7;var vc=(e,t={})=>{if(!Number.isFinite(e))throw new TypeError("Expected a finite number");t.colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);const n=Se(t.locale),r=[],o=(a,l)=>{const u=Math.floor(a*10**l+hc);return(Math.round(u)/10**l).toFixed(l)},i=(a,l,u)=>{if((r.length===0||!t.colonNotation)&&a===0&&!(t.colonNotation&&l==="minute"))return;const{long:d}=n[l]||Se("en_US")[l],{short:f}=n[l]||Se("en_US")[l];let p=(u||a||"0").toString(),v,b;if(t.colonNotation){v=r.length>0?":":"",b="";const h=p.includes(".")?p.split(".")[0].length:p.length,j=r.length>0?2:1;p="0".repeat(Math.max(0,j-h))+p}else v="",t.locale==="zh_CN"?Object.values(s).filter(h=>h>0).length>1?!s.days&&!s.hours&&s.minutes&&t.compact?b=d:b=f:s.minutes?b=d:b=f:b=t.verbose?` ${gc(d,a)}`:f;r.push(v+p+b)},s=mc(e);if(i(Math.trunc(s.days/365),"year"),i(s.days%365,"day"),i(s.hours,"hour"),i(s.minutes,"minute"),t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3)if(i(s.seconds,"second"),t.formatSubMilliseconds)i(s.milliseconds,"millisecond"),i(s.microseconds,"microsecond"),i(s.nanoseconds,"nanosecond");else{const a=s.milliseconds+s.microseconds/1e3+s.nanoseconds/1e6,l=typeof t.millisecondsDecimalDigits=="number"?t.millisecondsDecimalDigits:0,u=a>=1?Math.round(a):Math.ceil(a),d=l?a.toFixed(l):u;i(Number.parseFloat(d,10),"millisecond",d)}else{const a=e/1e3%60,l=typeof t.secondsDecimalDigits=="number"?t.secondsDecimalDigits:1,u=o(a,l),d=t.keepDecimalsOnWholeSeconds?u:u.replace(/\.0+$/,"");i(Number.parseFloat(d,10),"second",d)}if(r.length===0){const a=(n.millisecond||Se("en_US").millisecond).long,l=(n.millisecond||Se("en_US").millisecond).short;return t.locale==="zh_CN"?`0${t.verbose?`${a}`:l}`:`0${t.verbose?` ${a}s`:l}`}if(t.compact)return r[0];if(typeof t.unitCount=="number"){const a=t.colonNotation?"":" ";return r.slice(0,Math.max(t.unitCount,1)).join(a)}return t.colonNotation?r.join(""):r.join(" ")};const yc=lc,xc=uc,{registerLang:fn}=lo,uo=vc;fn("en_US",yc);fn("zh_CN",xc);uo.registerLang=fn;var bc=uo;const Ye=rr(bc);var pn={},jc=z;Object.defineProperty(pn,"__esModule",{value:!0});var Dt=pn.default=void 0,wc=jc(k()),Gn=c;Dt=pn.default=(0,wc.default)([(0,Gn.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,Gn.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function oe({children:e}){return et(n=>n.breakpoints.down("md"))?c.jsx(He,{enterDelay:500,leaveDelay:2e3,title:typeof e=="string"?e:"",children:c.jsx(D,{sx:{display:"flex",alignItems:"center",gap:1},children:c.jsx(Dt,{fontSize:"small"})})}):c.jsxs(D,{sx:{display:"flex",alignItems:"center",gap:1},children:[c.jsx(Dt,{fontSize:"small"}),e]})}oe.propTypes={children:m.node.isRequired};const Sc="https://launcher.arcblock.io/",_c=30*24*60*60*1e3;function mn({launcherUrl:e,chainHost:t,nftId:n,launcherSessionId:r,...o}){var O,S,R,C,P,E;const{t:i,locale:s}=Q(),a=ye(),[l,u]=vr({safeIframeRef:null,popoverAnchorEl:null}),d=x.useRef(null),f=et(T=>T.breakpoints.down("md")),{sx:p={},...v}=o,b=f?"mobile":"desktop",h=mr(async()=>{const[T,ne]=await Promise.all([a.api.getLauncherSession({input:{launcherSessionId:r,launcherUrl:e}}),ar({launcherUrl:e||Sc,nftDid:n,launcherSessionId:r,locale:s})]);if(T!=null&&T.error)throw new Error(T.error);return{launcherSession:T.launcherSession,subscriptionURL:ne}},[s]);if(h.loading)return c.jsx(ce,{label:c.jsxs(oe,{children:[!f&&i("expiration.desktop.loading"),c.jsx(te,{size:16})]}),variant:"success",sx:{cursor:"pointer",...p},...v});if(h.error)return console.error(h.error),c.jsx(ce,{label:c.jsx(oe,{children:i(`expiration.${b}.loadFailed`)}),color:"error",variant:"success",sx:{cursor:"pointer",...p},...v,onClick:()=>h.retry()});const j=T=>{u({popoverAnchorEl:T.currentTarget})},I=()=>{u({popoverAnchorEl:null})},g=(O=h.value)==null?void 0:O.launcherSession;let _="success";[$.LAUNCH_SESSION_STATUS.overdue,$.LAUNCH_SESSION_STATUS.canceled,$.LAUNCH_SESSION_STATUS.terminated].includes((R=(S=h.value)==null?void 0:S.launcherSession)==null?void 0:R.status)&&(_="error");let w=null;if(g.expirationDate&&!g.subscription){const T=me(g.expirationDate).diff(me(),"ms");w=i(`expiration.${b}.tips.${_}`,{validity:Ye(T,{locale:kt(s),compact:!0,verbose:!0})}),T>0&&T<=_c&&(_="warning")}return c.jsxs(c.Fragment,{children:[c.jsx(ce,{label:c.jsx(oe,{children:w||((P=(C=g==null?void 0:g.subscription)==null?void 0:C.product)==null?void 0:P.name)||i("common.subscription")}),color:_,variant:_!=="success"?"contained":"outlined",sx:{cursor:"pointer",...p},...v,onClick:j}),c.jsx(cr,{id:"popover-info",open:!!l.popoverAnchorEl,anchorEl:l.popoverAnchorEl,onClose:I,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:c.jsx("iframe",{ref:d,title:i("common.subscription"),width:"360px",height:"600px",style:{border:0},src:(E=h.value)==null?void 0:E.subscriptionURL})})]})}mn.propTypes={chainHost:m.string.isRequired,nftId:m.string,launcherSessionId:m.string,sx:m.object,retention:m.number,launcherUrl:m.string.isRequired};mn.defaultProps={sx:{},retention:0,nftId:"",launcherSessionId:""};const Cc=30*24*60*60*1e3,Oc="https://launcher.arcblock.io/";function gn({launcherUrl:e,chainHost:t,nftId:n,launcherSessionId:r,...o}){var S,R,C,P,E,T,ne;const{t:i,locale:s}=Q(),[a,l]=vr({safeIframeRef:null,popoverAnchorEl:null}),u=x.useRef(null),d=et(M=>M.breakpoints.down("md")),f=ye(),{sx:p={},...v}=o,b=d?"mobile":"desktop",h=mr(async()=>{const[M,be]=await Promise.all([f.api.getLauncherSession({input:{launcherSessionId:r||n,launcherUrl:e}}),ar({launcherUrl:e||Oc,nftDid:n,launcherSessionId:r,locale:s})]);if(M!=null&&M.error)throw new Error(M.error);return{launcherSession:M.launcherSession,subscriptionURL:be}},[s]);if(h.loading)return c.jsx(ce,{label:c.jsxs(oe,{children:[!d&&i("expiration.desktop.loading"),c.jsx(te,{size:16})]}),variant:"success",sx:{cursor:"pointer",...p},...v});if(h.error)return console.error(h.error),c.jsx(ce,{label:c.jsx(oe,{children:i(`expiration.${b}.loadFailed`)}),color:"error",variant:"success",sx:{cursor:"pointer",...p},...v,onClick:()=>h.retry()});const j=(R=(S=h.value)==null?void 0:S.launcherSession)==null?void 0:R.expirationDate,I=me(j).isBefore(me()),g=me(j).diff(me(),"ms");let _="success";g<=Cc&&(_="warning"),I&&(_="error");const w=M=>{l({popoverAnchorEl:M.currentTarget})},O=()=>{l({popoverAnchorEl:null})};return c.jsxs(c.Fragment,{children:[((P=(C=h.value)==null?void 0:C.launcherSession)==null?void 0:P.subscription)&&c.jsx(ce,{label:c.jsx(oe,{children:i("expiration.desktop.nextInvoice",{date:Mo(j,s)})}),color:"success",variant:"outlined",sx:{cursor:"pointer",...p},...v,onClick:w}),!((T=(E=h.value)==null?void 0:E.launcherSession)!=null&&T.subscription)&&c.jsx(ce,{label:c.jsx(oe,{children:i(`expiration.${b}.tips.${_}`,{validity:Ye(g,{locale:kt(s),compact:!0,verbose:!0})})}),color:_,variant:_!=="success"?"contained":"outlined",sx:{cursor:"pointer",...p},...v,onClick:w}),c.jsx(cr,{id:"popover-info",open:!!a.popoverAnchorEl,anchorEl:a.popoverAnchorEl,onClose:O,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:c.jsx("iframe",{ref:u,title:i("common.subscription"),width:"360px",height:"600px",style:{border:0},src:(ne=h.value)==null?void 0:ne.subscriptionURL})})]})}gn.propTypes={chainHost:m.string.isRequired,nftId:m.string,launcherSessionId:m.string,sx:m.object,retention:m.number,launcherUrl:m.string.isRequired};gn.defaultProps={sx:{},retention:0,nftId:"",launcherSessionId:""};var hn={},Pc=z;Object.defineProperty(hn,"__esModule",{value:!0});var fo=hn.default=void 0,Ic=Pc(k()),Ec=c;fo=hn.default=(0,Ic.default)((0,Ec.jsx)("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"}),"Fullscreen");var vn={},Rc=z;Object.defineProperty(vn,"__esModule",{value:!0});var po=vn.default=void 0,Tc=Rc(k()),Lc=c;po=vn.default=(0,Tc.default)((0,Lc.jsx)("path",{d:"M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"}),"FullscreenExit");var yn={};Object.defineProperty(yn,"__esModule",{value:!0});var At=yn.default=void 0;Dc(x);var Qn=c;function Dc(e){return e&&e.__esModule?e:{default:e}}function Xn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Yn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Xn(Object(n),!0).forEach(function(r){Ac(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xn(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ac(e,t,n){return(t=$c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $c(e){var t=Nc(e,"string");return typeof t=="symbol"?t:t+""}function Nc(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xn=function(t){return(0,Qn.jsx)("svg",Yn(Yn({},t),{},{children:(0,Qn.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.251 2.5c-2.576-.006-4.747 2.1-4.766 4.506v5.784c0 .793-.084 1.778-.58 2.71h12.19c-.496-.932-.58-1.917-.58-2.711V7.01c-.035-2.403-2.21-4.502-4.797-4.508L9.25 2.5zM17.015 7v5.789c0 .79.1 1.562.53 2.219l.287.438c.436.664-.033 1.554-.817 1.554H2.985c-.785 0-1.255-.89-.818-1.554l.287-.438c.43-.657.53-1.428.53-2.218V7c.024-3.291 2.927-6.008 6.27-6l1.467.003c3.344.008 6.254 2.706 6.294 5.998zM11.06 18.06A1.5 1.5 0 0 0 11.5 17H13a3 3 0 0 1-6 0h1.5a1.5 1.5 0 0 0 2.56 1.06z",fill:"currentColor"})}))};xn.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};xn.displayName="notification";At=yn.default=xn;function mo({status:e,...t}){const n={warning:"warning",error:"error",info:"primary"};return!e||e==="info"||e==="success"?null:c.jsx(gr,{type:n[e],style:{borderRadius:5,border:"1px solid #ccc"},...t,children:e})}mo.propTypes={status:m.string.isRequired};function bn({value:e,...t}){const{t:n,locale:r}=Q();if(!e)return"-";const o={locale:kt(r),compact:!0},i=new Date(e).getTime(),s=Date.now();if(i>s){const l=Ye(i-s,o);return c.jsx(He,{title:qe(e,r),placement:"top-end",enterTouchDelay:0,children:c.jsx("span",{...t,children:n("common.afterTime",{time:l})})})}const a=Ye(s-i,o);return c.jsx(He,{title:qe(e,r),placement:"top-end",enterTouchDelay:0,children:c.jsx("span",{...t,children:n("common.timeAgo",{time:a})})})}bn.propTypes={value:m.any};bn.defaultProps={value:""};function Mc(e,t){const n=x.useRef(t);x.useEffect(()=>{const r=o=>n.current(o.detail);return window.addEventListener(e,r),()=>window.removeEventListener(e,r)},[e])}function Uc(){window.dispatchEvent(new CustomEvent("checkUpdate"))}function Nl(e){const t=Je(),{t:n}=Q(),r=()=>{const o=new URLSearchParams(window.location.search);o.get("checkUpdate")&&(o.delete("checkUpdate"),t(o.toString()),e(),J.success(n("notification.checkingForUpdates")))};x.useEffect(r,[]),Mc("checkUpdate",r)}function jn({onHide:e,api:t,notifications:n,updateNotifications:r,viewAllUrl:o,teamDid:i}){const{inService:s}=ye(),{t:a,locale:l}=x.useContext(Mt),[u,d]=x.useState(!0),[f,p]=x.useState(!1),v=Je(),b=Uo();let h=u?n:n.filter(w=>w.read===!1);h=h.slice(0,5);const j=n.filter(w=>w.read===!1).length>0,I=async()=>{p(!0);const w=n.filter(O=>O.read===!1).map(O=>O.id).join(",");s?await t.readBlockletNotifications({input:{id:w,teamDid:i}}):await t.readNotifications({input:{id:w}}),r(),p(!1)},g=(w,O)=>{O.read||(s?t.readBlockletNotifications({input:{id:O.id,teamDid:i}}).then(()=>r()):t.readNotifications({input:{id:O.id}}).then(()=>r())),e(w),v(o)},_=(w,O)=>{w.preventDefault(),w.stopPropagation(),v(O),Uc()};return c.jsxs(Bc,{children:[c.jsxs(G,{component:"h3",variant:"h6",className:"notification-header",children:[a("notification.title"),c.jsx(he,{component:Bt,to:o,"data-cy":"view-all-notifications-btn",onClick:e,children:a("notification.viewAll")})]}),c.jsx(yt,{}),c.jsxs(Bo,{className:"notification-list",style:{maxHeight:"calc(100vh - 200px)",overflow:"auto"},children:[h.length===0&&c.jsx(G,{component:"p",variant:"body1",className:"notification-tip",children:a("notification.empty")}),h.length>0&&h.map(w=>c.jsxs(xs,{alignItems:"flex-start",disabled:w.read,onClick:O=>g(O,w),children:[c.jsx(Ts,{className:"list-item-avatar",children:c.jsxs(c.Fragment,{children:[c.jsx(pr,{children:w.entityType.substr(0,1).toUpperCase()}),c.jsx(mo,{className:"notification-tag",status:w.severity})]})}),c.jsx(dr,{primary:w.title,secondary:c.jsxs(D,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[c.jsx(G,{component:"span",sx:{overflow:"hidden","-webkit-line-clamp":"3","-webkit-box-orient":"vertical",display:"-webkit-box","text-overflow":"ellipsis"},children:w.description}),c.jsxs(D,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",children:[c.jsx(bn,{value:w.createdAt,locale:l,style:{color:b.palette.text.secondary,fontSize:"0.875rem",marginTop:"4px"}}),w.action&&!w.read?c.jsx(he,{color:"primary",variant:"outlined",onPointerDown:O=>{O.stopPropagation(),O.preventDefault()},onClick:O=>_(O,w.action),"data-cy":"check-for-updates",children:a("notification.proceed")}):null]})]})})]},w.id))]}),c.jsx(yt,{}),c.jsxs(G,{component:"div",className:"notification-footer",children:[c.jsx(bt,{control:c.jsx(fs,{checked:u,onChange:()=>d(!u),name:"showRead",color:"primary"}),label:a("notification.showRead")}),c.jsx(gs,{permission:s?"":"mutate_notification",role:s?ko:[],children:j&&c.jsxs(he,{disabled:f,onClick:I,className:"",children:[f&&c.jsx(te,{size:16,style:{marginRight:"1em"}}),a("notification.markAllAsRead")]})})]})]})}const Bc=Ze.div`
33
33
  width: 420px;
34
34
 
35
35
  @media (max-width: ${e=>e.theme.breakpoints.values.sm}px) {
@@ -72,7 +72,7 @@ ${r}
72
72
  background: ${e=>e.theme.palette.primary.light};
73
73
  }
74
74
  }
75
- `;jn.propTypes={onHide:m.func,api:m.shape({readNotifications:m.func.isRequired,readBlockletNotifications:m.func.isRequired}).isRequired,notifications:m.arrayOf(m.shape({id:m.string,read:m.bool,entityType:m.string,title:m.string,createdAt:m.string,description:m.string}).isRequired).isRequired,updateNotifications:m.func.isRequired,viewAllUrl:m.string.isRequired,teamDid:m.string};jn.defaultProps={onHide:()=>{},teamDid:""};function wn({api:e,notifications:t,updateNotifications:n,viewAllUrl:r,teamDid:o}){const[i,s]=x.useState(!1),a=x.useRef(null),l=()=>{s(f=>!f)},u=f=>{a.current&&a.current.contains(f.target)||s(!1)},d=t.filter(f=>f.read===!1).length;return c.jsxs("div",{className:"notification-addon",children:[c.jsx(Ut,{ref:a,"aria-controls":"notify-list-grow","aria-haspopup":"true","data-cy":"toggle-notification-btn",onClick:l,children:d>0?c.jsx(xr,{badgeContent:d,max:99,color:"primary",children:c.jsx(At,{style:{width:"auto",height:24}})}):c.jsx(At,{style:{width:"auto",height:24}})}),i&&c.jsx(zo,{open:!0,anchorEl:a.current,disablePortal:!0,placement:"bottom-end",children:c.jsx(Fo,{id:"notify-list-grow",children:c.jsx(Vo,{onClickAway:u,children:c.jsx("div",{children:c.jsx(jn,{notifications:t,updateNotifications:n,api:e,viewAllUrl:r,onHide:u,teamDid:o})})})})})]})}wn.propTypes={notifications:m.arrayOf(m.object),viewAllUrl:m.string.isRequired,api:m.object.isRequired,updateNotifications:m.func.isRequired,teamDid:m.string};wn.defaultProps={notifications:[],teamDid:""};const Bc=`${$.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/notifications`;function Sn(){const{did:e}=window.env,{api:t,data:n,refresh:r}=Ho();return c.jsx(wn,{api:t,viewAllUrl:Bc,notifications:n||[],updateNotifications:r,teamDid:e})}Sn.propTypes={};Sn.defaultProps={};function kc(){const{inFullPage:e,toggleFullPage:t}=ys();return A(Ut,{onClick:t,children:e?A(po,{sx:{transform:"scale(1.3)"}}):A(fo,{sx:{transform:"scale(1.3)"}})})}function _n({children:e}){var h;const{t}=Q(),{loading:n,error:r,actions:{refreshBlocklet:o},env:i,blocklet:s}=Ee(),{info:a}=qo(),l=Ko(),u=et(j=>j.breakpoints.down("md")),{appId:d,version:f}=i,p=[{label:"App ID",value:d},{label:"App Version",value:f},{label:"App Bundle Name",value:(h=s==null?void 0:s.meta)==null?void 0:h.bundleName},{label:"Server Id",value:a.did},{label:"Server Version",value:a.version}],v=j=>{var g,_,w,O;const I=Array.isArray(j)?j:[j];if(I.unshift(A(Sn,{})),u||I.unshift(A(kc,{})),s){const S={cursor:"pointer",marginRight:{xs:"8px",md:"48px"}};Go(s)?I.unshift(A(mn,{chainHost:(g=s==null?void 0:s.controller)==null?void 0:g.chainHost,nftId:(_=s==null?void 0:s.controller)==null?void 0:_.nftId,launcherSessionId:(w=s==null?void 0:s.controller)==null?void 0:w.launcherSessionId,launcherUrl:(O=s==null?void 0:s.controller)==null?void 0:O.launcherUrl,sx:S})):a.ownerNft&&a.launcher&&I.unshift(A(gn,{chainHost:a.launcher.chainHost,launcherUrl:a.launcher.url,nftId:a.ownerNft.did,launcherSessionId:a.ownerNft.launcherSessionId,sx:S}))}return I},b={};return u&&(b.logo=null),pt(zc,{legacy:!1,fullWidth:!0,headerAddons:v,headerProps:b,isMobile:u,footerProps:{addon:A(dn,{infos:p})},children:[!s&&n&&A(Ke,{relative:"parent",children:A(te,{})}),!s&&r&&pt(Ke,{relative:"parent",children:[pt(D,{display:"flex",alignItems:"center",children:[A(co,{color:"error",sx:{marginRight:1}}),zt(r)]}),A(he,{onClick:()=>o(),children:A("span",{style:{textDecoration:"underline"},children:t("common.retry")})})]}),!!s&&A(D,{flex:1,padding:u?2:3,display:"flex",flexDirection:"column",children:A(Wo,{FallbackComponent:vs,resetKeys:[l.pathname],children:e})})]})}_n.propTypes={children:m.any};_n.defaultProps={children:null};const zc=Ze(bs)`
75
+ `;jn.propTypes={onHide:m.func,api:m.shape({readNotifications:m.func.isRequired,readBlockletNotifications:m.func.isRequired}).isRequired,notifications:m.arrayOf(m.shape({id:m.string,read:m.bool,entityType:m.string,title:m.string,createdAt:m.string,description:m.string}).isRequired).isRequired,updateNotifications:m.func.isRequired,viewAllUrl:m.string.isRequired,teamDid:m.string};jn.defaultProps={onHide:()=>{},teamDid:""};function wn({api:e,notifications:t,updateNotifications:n,viewAllUrl:r,teamDid:o}){const[i,s]=x.useState(!1),a=x.useRef(null),l=()=>{s(f=>!f)},u=f=>{a.current&&a.current.contains(f.target)||s(!1)},d=t.filter(f=>f.read===!1).length;return c.jsxs("div",{className:"notification-addon",children:[c.jsx(Ut,{ref:a,"aria-controls":"notify-list-grow","aria-haspopup":"true","data-cy":"toggle-notification-btn",onClick:l,children:d>0?c.jsx(xr,{badgeContent:d,max:99,color:"primary",children:c.jsx(At,{style:{width:"auto",height:24}})}):c.jsx(At,{style:{width:"auto",height:24}})}),i&&c.jsx(zo,{open:!0,anchorEl:a.current,disablePortal:!0,placement:"bottom-end",children:c.jsx(Fo,{id:"notify-list-grow",children:c.jsx(Vo,{onClickAway:u,children:c.jsx("div",{children:c.jsx(jn,{notifications:t,updateNotifications:n,api:e,viewAllUrl:r,onHide:u,teamDid:o})})})})})]})}wn.propTypes={notifications:m.arrayOf(m.object),viewAllUrl:m.string.isRequired,api:m.object.isRequired,updateNotifications:m.func.isRequired,teamDid:m.string};wn.defaultProps={notifications:[],teamDid:""};const kc=`${$.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/notifications`;function Sn(){const{did:e}=window.env,{api:t,data:n,refresh:r}=Ho();return c.jsx(wn,{api:t,viewAllUrl:kc,notifications:n||[],updateNotifications:r,teamDid:e})}Sn.propTypes={};Sn.defaultProps={};function zc(){const{inFullPage:e,toggleFullPage:t}=ys();return A(Ut,{onClick:t,children:e?A(po,{sx:{transform:"scale(1.3)"}}):A(fo,{sx:{transform:"scale(1.3)"}})})}function _n({children:e}){var h;const{t}=Q(),{loading:n,error:r,actions:{refreshBlocklet:o},env:i,blocklet:s}=Ee(),{info:a}=qo(),l=Ko(),u=et(j=>j.breakpoints.down("md")),{appId:d,version:f}=i,p=[{label:"App ID",value:d},{label:"App Version",value:f},{label:"App Bundle Name",value:(h=s==null?void 0:s.meta)==null?void 0:h.bundleName},{label:"Server Id",value:a.did},{label:"Server Version",value:a.version}],v=j=>{var g,_,w,O;const I=Array.isArray(j)?j:[j];if(I.unshift(A(Sn,{})),u||I.unshift(A(zc,{})),s){const S={cursor:"pointer",marginRight:{xs:"8px",md:"48px"}};Go(s)?I.unshift(A(mn,{chainHost:(g=s==null?void 0:s.controller)==null?void 0:g.chainHost,nftId:(_=s==null?void 0:s.controller)==null?void 0:_.nftId,launcherSessionId:(w=s==null?void 0:s.controller)==null?void 0:w.launcherSessionId,launcherUrl:(O=s==null?void 0:s.controller)==null?void 0:O.launcherUrl,sx:S})):a.ownerNft&&a.launcher&&I.unshift(A(gn,{chainHost:a.launcher.chainHost,launcherUrl:a.launcher.url,nftId:a.ownerNft.did,launcherSessionId:a.ownerNft.launcherSessionId,sx:S}))}return I},b={};return u&&(b.logo=null),pt(Fc,{legacy:!1,fullWidth:!0,headerAddons:v,headerProps:b,isMobile:u,footerProps:{addon:A(dn,{infos:p})},children:[!s&&n&&A(Ke,{relative:"parent",children:A(te,{})}),!s&&r&&pt(Ke,{relative:"parent",children:[pt(D,{display:"flex",alignItems:"center",children:[A(co,{color:"error",sx:{marginRight:1}}),zt(r)]}),A(he,{onClick:()=>o(),children:A("span",{style:{textDecoration:"underline"},children:t("common.retry")})})]}),!!s&&A(D,{flex:1,padding:u?2:3,display:"flex",flexDirection:"column",children:A(Wo,{FallbackComponent:vs,resetKeys:[l.pathname],children:e})})]})}_n.propTypes={children:m.any};_n.defaultProps={children:null};const Fc=Ze(bs)`
76
76
  div.dashboard-content {
77
77
  padding: 0;
78
78
  }
@@ -80,7 +80,7 @@ ${r}
80
80
  max-height: 400px;
81
81
  overflow-y: auto;
82
82
  }
83
- `,Fc={light:"fal",regular:"far",solid:"fas"};function Cn({name:e,color:t,size:n,variant:r,rounded:o,style:i,className:s,forwardedRef:a,...l}){const u=c.jsx("i",{ref:a,className:`${Fc[r]} fa-${e} ${o?"":s}`,style:Object.assign({color:t,fontSize:`${n}px`},i||{})});return o?c.jsx(Vc,{ref:a,size:n,color:t,className:s,...l,children:u}):u}Cn.propTypes={name:m.string.isRequired,className:m.string,color:m.string,rounded:m.bool,variant:m.string,size:m.number,style:m.object};Cn.defaultProps={rounded:!1,variant:"light",color:_e.grey[900],className:"",size:24,style:{}};const Vc=lr("span")`
83
+ `,Vc={light:"fal",regular:"far",solid:"fas"};function Cn({name:e,color:t,size:n,variant:r,rounded:o,style:i,className:s,forwardedRef:a,...l}){const u=c.jsx("i",{ref:a,className:`${Vc[r]} fa-${e} ${o?"":s}`,style:Object.assign({color:t,fontSize:`${n}px`},i||{})});return o?c.jsx(Hc,{ref:a,size:n,color:t,className:s,...l,children:u}):u}Cn.propTypes={name:m.string.isRequired,className:m.string,color:m.string,rounded:m.bool,variant:m.string,size:m.number,style:m.object};Cn.defaultProps={rounded:!1,variant:"light",color:_e.grey[900],className:"",size:24,style:{}};const Hc=lr("span")`
84
84
  width: ${e=>e.size*2}px;
85
85
  height: ${e=>e.size*2}px;
86
86
  border-radius: 50%;
@@ -95,7 +95,7 @@ ${r}
95
95
  .far {
96
96
  line-height: ${e=>e.size}px;
97
97
  }
98
- `,Hc=yr(x.forwardRef((e,t)=>c.jsx(Cn,{...e,forwardedRef:t})),{name:"Icon",alternative:"SVG icons"}),$t={error:{icon:"exclamation-circle",color:_e.error.main,borderColor:"#e35b54",backgroundColor:"rgba(227, 91, 84, 0.2)"},warning:{icon:"exclamation-triangle",color:_e.warning.main,borderColor:"#f7d040",backgroundColor:"rgba(247, 208, 64, 0.2)"},success:{icon:"check-circle",color:_e.success.main,borderColor:"#89ddd9",backgroundColor:"rgba(137, 221, 217, 0.2)"},tip:{icon:"info-circle",color:_e.grey[500],borderColor:"#222222",backgroundColor:"#EEEEEE"}};function st(e){const t=Qo(e,st,["style"]),{type:n,children:r,style:o,className:i,variant:s,...a}=t,{icon:l,color:u,backgroundColor:d,borderColor:f}=$t[n]||$t.success,p=Object.assign({color:hs[500],backgroundColor:s==="border"?d:"transparent",borderLeft:s==="border"?`5px solid ${f}`:"none"},o);return c.jsxs(Kc,{...a,className:`alert alert--${n} alert--${s} ${i}`.trim(),style:p,children:[s==="icon"&&c.jsx(Hc,{className:"alert-icon",name:l,size:24,style:{color:u}}),c.jsx(G,{component:"div",className:"alert-content",children:r})]})}st.propTypes={type:m.oneOf(Object.keys($t)),children:m.any.isRequired,className:m.string,style:m.oneOfType([m.object,m.string]),variant:m.oneOf(["border","icon"])};st.defaultProps={type:"tip",className:"",style:"{}",variant:"border"};const qc=yr(st,{name:"Alert",alternative:"@mui/material/Alert"}),Kc=lr("div")`
98
+ `,qc=yr(x.forwardRef((e,t)=>c.jsx(Cn,{...e,forwardedRef:t})),{name:"Icon",alternative:"SVG icons"}),$t={error:{icon:"exclamation-circle",color:_e.error.main,borderColor:"#e35b54",backgroundColor:"rgba(227, 91, 84, 0.2)"},warning:{icon:"exclamation-triangle",color:_e.warning.main,borderColor:"#f7d040",backgroundColor:"rgba(247, 208, 64, 0.2)"},success:{icon:"check-circle",color:_e.success.main,borderColor:"#89ddd9",backgroundColor:"rgba(137, 221, 217, 0.2)"},tip:{icon:"info-circle",color:_e.grey[500],borderColor:"#222222",backgroundColor:"#EEEEEE"}};function st(e){const t=Qo(e,st,["style"]),{type:n,children:r,style:o,className:i,variant:s,...a}=t,{icon:l,color:u,backgroundColor:d,borderColor:f}=$t[n]||$t.success,p=Object.assign({color:hs[500],backgroundColor:s==="border"?d:"transparent",borderLeft:s==="border"?`5px solid ${f}`:"none"},o);return c.jsxs(Wc,{...a,className:`alert alert--${n} alert--${s} ${i}`.trim(),style:p,children:[s==="icon"&&c.jsx(qc,{className:"alert-icon",name:l,size:24,style:{color:u}}),c.jsx(G,{component:"div",className:"alert-content",children:r})]})}st.propTypes={type:m.oneOf(Object.keys($t)),children:m.any.isRequired,className:m.string,style:m.oneOfType([m.object,m.string]),variant:m.oneOf(["border","icon"])};st.defaultProps={type:"tip",className:"",style:"{}",variant:"border"};const Kc=yr(st,{name:"Alert",alternative:"@mui/material/Alert"}),Wc=lr("div")`
99
99
  display: flex;
100
100
  align-items: center;
101
101
  font-size: 16px;
@@ -116,7 +116,7 @@ ${r}
116
116
  display: flex;
117
117
  flex-direction: column;
118
118
  }
119
- `;function Wc(){const{t:e,locale:t}=Q(),{blocklet:n,launcherSession:r}=Ee(),[o,i]=ls({subscriptionURL:"#"});if(x.useEffect(()=>{var l,u;In(n,r)&&Xo({launcherSessionId:(l=n==null?void 0:n.controller)==null?void 0:l.launcherSessionId,launcherUrl:(u=n==null?void 0:n.controller)==null?void 0:u.launcherUrl,locale:t}).then(d=>{i({subscriptionURL:d})}).catch(d=>{console.error("get subscription url error:",d)})},[n,r]),!n||!r||!Yo(n)||r.status===$.LAUNCH_SESSION_STATUS.installed)return"";let s=null,a="";return In(n,r)?(s=c.jsx(hr,{href:o.subscriptionURL,children:e("blocklet.manageSubscription")}),a=e("blocklet.suspendedCausedByExpired",{deadline:qe(r==null?void 0:r.reservedUntil,t)})):Zo(n,r)&&(s=c.jsx(Bt,{to:ke($.WELLKNOWN_BLOCKLET_ADMIN_PATH,"/storage"),children:e("common.backup")}),a=e("blocklet.suspendedCausedByTerminated",{canceledAt:qe(r==null?void 0:r.terminatedAt,t),deadline:Jo(r==null?void 0:r.terminatedAt,t)})),c.jsxs(D,{component:qc,type:"error",sx:{"&> .alert-content":{display:"block"}},children:[a,c.jsx(G,{component:"span",sx:{marginLeft:"4px"},children:s})]})}const go=x.createContext({});function Nl(){return x.useContext(go)}const{Provider:Gc,Consumer:Ml}=go,{did:K,appId:Qc}=window.env;function Xc({children:e}){var S,R;const{t,locale:n}=Q(),{blocklet:r}=Ee(),[o,i]=x.useState([]),[s,a]=x.useState([]),[l,u]=x.useState([]),d=B.getDisplayName(r),f=((S=((r==null?void 0:r.environments)||[]).find(C=>C.key===Z.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_PASSPORT_COLOR))==null?void 0:S.value)||"auto",p=(r==null?void 0:r.trustedPassports)||[],v=(r==null?void 0:r.trustedFactories)||[],b=(r==null?void 0:r.enablePassportIssuance)!==!1,h=async()=>{try{const C=await Me.doBatchQuery({getRoles:{input:{teamDid:K}},getPermissions:{input:{teamDid:K}},getInvitations:{input:{teamDid:K}}});a((C.getRoles.roles||[]).filter(P=>!$.RBAC_CONFIG.roles.some(E=>E.name===P.name&&(!E.passport||E.ci))).map(P=>(P.hasDescription=!!P.description,P.hasDescription||(P.description=t("team.passport.description",{teamName:d,title:P.title})),P))),u(C.getPermissions.permissions||[]),i(C.getInvitations.invitations||[])}catch(C){J.error(C.message)}},j=({did:C}={})=>{const P={teamDid:K,user:{did:C}};return Me.getUser({input:P})},I=({query:C,paging:P}={})=>{const E={teamDid:K};return P&&(E.paging=P),C&&(E.query=C),E.sort={lastLoginAt:-1},Me.getUsers({input:E})},g=()=>Me.getUsersCountPerRole({input:{teamDid:K}}),_=()=>h();x.useEffect(()=>{var C;(C=r==null?void 0:r.meta)!=null&&C.did&&h()},[(R=r==null?void 0:r.meta)==null?void 0:R.did]),x.useEffect(()=>{a(C=>C.map(P=>(P.hasDescription||(P.description=t("team.passport.description",{teamName:d,title:P.title})),{...P})))},[t,n]);const w=C=>{C.teamDid===K&&h()};ze(Z.TeamEvents.userAdded,w,[K]),ze(Z.TeamEvents.userRemoved,w,[K]),ze(Z.TeamEvents.userUpdated,w,[K]);const O={teamDid:K,teamIssuerDid:Qc,teamName:d,invitations:o,roles:s,permissions:l,trustedPassports:p,trustedFactories:v,isNodeTeam:!1,enablePassportIssuance:b,refresh:_,passportColor:f,endpoint:window.location.origin,blocklet:r,api:{getUser:j,getUsers:I,getUsersCountPerRole:g}};return c.jsx(Gc,{value:O,children:e})}const Yc=x.lazy(()=>F(()=>import("./overview-CiGfQ_r4.js"),__vite__mapDeps([0,1,2,3,4,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,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57]))),Zc=x.lazy(()=>F(()=>import("./index-DL-uDyV1.js"),__vite__mapDeps([58,1,2,59,10,60,61,62,63,30,31,32,33,34,64,36,65,66,67,68,46,47,69,48,37,40,70,53,14,42,71,50,51,52,54,55,56,11,49,21,72,73,26,74,24,7,75,76,6,15,16,17,77,19,20,22,4,18,78,79,80,38,39,81,41,43,44,45,5,23,57]))),Jc=x.lazy(()=>F(()=>import("./index-D_l3bgiM.js"),__vite__mapDeps([82,1,2,10,83,11,44,84,13,62,63,30,31,32,33,34,15,16,17,18,19,20,21,22,46,47,85,14,6,7,5,23,86,40,41,42,37,43,45,48,49,50,51,52,53,54,55,56,57]))),el=x.lazy(()=>F(()=>import("./index-BKvulX5F.js"),__vite__mapDeps([87,1,2,88,89,90,91,59,84,92,44,30,31,32,33,34,93,11,40,94,49,21,60,95,20,41,96,15,16,17,18,19,22,23,77,46,47,75,14,97,98,99,37,67,68,65,100,3,10,101,64,36,66,69,48,70,53,63,42,4,12,102,103,43,45,5,7,50,51,52,54,55,56,57,104]))),tl=x.lazy(()=>F(()=>import("./audit-logs-B77XgUxl.js"),__vite__mapDeps([105,1,2,106,107,14,5,41,31,32,33,34,108,70,109,40,42,18,19,20,21,22,37,43,44,45,46,47,48,49,17,15,16,7,23,50,51,52,53,54,55,56,57]))),nl=x.lazy(()=>F(()=>import("./log-53QGCL9A.js"),__vite__mapDeps([110,1,2,41,44,111,31,32,34,112]))),rl=x.lazy(()=>F(()=>import("./index-D6Fo42LG.js"),__vite__mapDeps([113,1,2,10,37,114,64,36,65,66,67,68,46,32,47,69,31,48,34,33,30,40,70,53,63,14,42,5,18,19,20,21,22,17,6,7,94,49,81,111,115,23,59,80,28,103,11,93,26,116,117,118,98,90,77,44,119,92,86,75,106,107,109,120,45]))),ol=x.lazy(()=>F(()=>import("./config-navigation-Cxy6wwv0.js"),__vite__mapDeps([121,1,2,67,68,65,122,119,97,123,124,31,32,33,34,37,30,40,86,95,20,21,41,71,50,51,52,53,54,55,42,56,11,49,125,22,44,35,36,18,19,43,45,46,47,48,17,15,16,5,7,23,57]))),sl=x.lazy(()=>F(()=>import("./index-DZAe2asg.js"),__vite__mapDeps([126,1,2,83,11,44,28,127,74,128,103,22,19,30,31,32,33,34,20,21,4,6,7,100,75,46,47,39,117,37,96,5,64,36,65,66,67,68,69,48,40,70,53,63,14,42]))),il=x.lazy(()=>F(()=>import("./component-Bjp-R3IE.js"),__vite__mapDeps([129,1,2,10,89,90,91,59,84,92,44,30,31,32,33,34,14,100,75,46,47,15,16,17,40,68,65,122,119,130,131,77,37,69,93,132,63,20,21,22,133,118,42,19,98,117,81,18,6,7,49,134,135,128,103,28,136,125,54,137,138,139,78,140,85,106,107,123,4,41,95,120,29,141,127,74,83,11,142,50,52,143,86,144,13,25,94,45,48,43,38,39,5,23,51,53,55,56,57]))),al=x.lazy(()=>F(()=>import("./analytics-CX0H_3Z4.js"),__vite__mapDeps([145,1,2,40,15,16,17,88,146,132,93,130,65,42,37,31,32,34,20,21,22,36,116,30,33,86,64,66,67,68,46,47,69,48,70,53,63,14,94,49,41,18,19,43,44,45,5,7,23,50,51,52,54,55,56,57]))),cl=x.lazy(()=>F(()=>import("./notifications-0JFtARNG.js"),__vite__mapDeps([147,1,2,15,16,17,46,32,47,42,49,21,37,108,70,40,41,18,19,20,22,43,44,45,48,5,7,23,50,51,52,53,54,55,56,57])));function ll(){var h,j;const e=Je(),{tab:t="overview"}=ns(),{blocklet:n,actions:{refreshBlocklet:r}}=Ee(),{t:o}=Q(),i=(h=n==null?void 0:n.meta)==null?void 0:h.did,s=I=>{e(`${$.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/${I}`)},a=()=>{r()},l=!n||xt(n.status)?[]:B.getAppMissingConfigs(n),u=[{label:o("common.overview"),value:"overview"},{label:c.jsx(xr,{"data-cy":"blocklet-list",color:"error",variant:"dot",invisible:!l.length,children:o("common.components")}),value:"components"}];xt(n==null?void 0:n.status)||u.push({label:o("common.configuration"),value:"configuration"}),u.push({label:o("common.auditLogs"),value:"audit-logs"}),n&&((j=n.children)!=null&&j.length)&&n.structVersion===$.APP_STRUCT_VERSION&&u.push({label:o("common.logs"),value:"logs"}),u.push({label:o("common.configNavigation"),value:"navigation"}),u.push({label:o("common.storage"),value:"storage"});const d=c.jsx(tl,{scope:i,categories:["blocklet","team","security","certificates","gateway"]});ze($.EVENTS.NOTIFICATION_BLOCKLET_CREATE,I=>{const{severity:g,title:_,description:w}=I||{};g==="error"?J.error(w||_):J.success(w||_)});const f={overview:c.jsx(Yc,{}),members:c.jsx(D,{mt:-5,children:c.jsx(Zc,{type:"blocklet",createPassportSvg:En})}),passports:c.jsx(D,{mt:-4.5,children:c.jsx(Jc,{createPassportSvg:En})}),components:il,configuration:c.jsx(el,{blocklet:n,onUpdate:a}),"audit-logs":d,logs:nl,navigation:ol,storage:c.jsx(sl,{}),analytics:c.jsx(D,{mt:-5,children:c.jsx(al,{})}),publish:c.jsx(D,{mt:-3,children:c.jsx(rl,{})}),notifications:c.jsx(cl,{})},p=f[t]||f.overview,v=!["members","passports","analytics","publish","notifications"].includes(t),b=n?c.jsxs(nn,{type:"components",children:[v&&c.jsx(D,{pt:3,children:c.jsx(os,{tabs:u,current:t,onChange:s,scrollButtons:"auto"})}),c.jsx("div",{className:"page-content",children:c.jsx(x.Suspense,{fallback:c.jsx(Ke,{relative:"parent",children:c.jsx(te,{})}),children:x.isValidElement(p)?p:c.jsx(p,{blocklet:n})})})]}):c.jsx(Ke,{relative:"parent",children:c.jsx(te,{})});return c.jsx(rs,{children:c.jsx(Xc,{children:c.jsx(_n,{children:c.jsxs(dl,{children:[v&&c.jsxs(D,{component:"div",className:"page-header",children:[c.jsxs(G,{component:"h6",variant:"h6",className:"page-title",color:"textPrimary",children:[n?c.jsx(Jt,{blocklet:n,style:{marginRight:16}}):null,n?c.jsxs(D,{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1,children:[c.jsx(D,{children:B.getDisplayName(n)}),(n==null?void 0:n.status)!=="unknown"&&c.jsx(tn,{size:"12px",status:n.status,source:n.source,progress:n.progress})]}):`${o("common.blocklet")} ${o("common.detail")}`]}),n?c.jsx(Zt,{className:"page-actions",hasPermission:!0,blocklet:n,onStart:()=>{},onComplete:({error:I}={})=>{I&&J.error(I.message)},variant:"group"}):null]}),c.jsx(Er,{}),c.jsx(Wc,{}),b]})})})})}function ul(){var r;const{blocklet:e}=Ee(),{t}=Q(),n=(r=e==null?void 0:e.meta)==null?void 0:r.did;return x.useEffect(()=>{const o=es();return n&&o.connect(),()=>{n&&o.isConnected()&&o.disconnect()}},[n]),c.jsxs(c.Fragment,{children:[c.jsx(ts,{children:c.jsx("title",{children:t("pageTitle.dashboard")})}),c.jsx(ll,{})]})}const dl=Ze.main`
119
+ `;function Gc(){const{t:e,locale:t}=Q(),{blocklet:n,launcherSession:r}=Ee(),[o,i]=ls({subscriptionURL:"#"});if(x.useEffect(()=>{var l,u;In(n,r)&&Xo({launcherSessionId:(l=n==null?void 0:n.controller)==null?void 0:l.launcherSessionId,launcherUrl:(u=n==null?void 0:n.controller)==null?void 0:u.launcherUrl,locale:t}).then(d=>{i({subscriptionURL:d})}).catch(d=>{console.error("get subscription url error:",d)})},[n,r]),!n||!r||!Yo(n)||r.status===$.LAUNCH_SESSION_STATUS.installed)return"";let s=null,a="";return In(n,r)?(s=c.jsx(hr,{href:o.subscriptionURL,children:e("blocklet.manageSubscription")}),a=e("blocklet.suspendedCausedByExpired",{deadline:qe(r==null?void 0:r.reservedUntil,t)})):Zo(n,r)&&(s=c.jsx(Bt,{to:ke($.WELLKNOWN_BLOCKLET_ADMIN_PATH,"/storage"),children:e("common.backup")}),a=e("blocklet.suspendedCausedByTerminated",{canceledAt:qe(r==null?void 0:r.terminatedAt,t),deadline:Jo(r==null?void 0:r.terminatedAt,t)})),c.jsxs(D,{component:Kc,type:"error",sx:{"&> .alert-content":{display:"block"}},children:[a,c.jsx(G,{component:"span",sx:{marginLeft:"4px"},children:s})]})}const go=x.createContext({});function Ml(){return x.useContext(go)}const{Provider:Qc,Consumer:Ul}=go,{did:K,appId:Xc}=window.env;function Yc({children:e}){var S,R;const{t,locale:n}=Q(),{blocklet:r}=Ee(),[o,i]=x.useState([]),[s,a]=x.useState([]),[l,u]=x.useState([]),d=B.getDisplayName(r),f=((S=((r==null?void 0:r.environments)||[]).find(C=>C.key===Z.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_PASSPORT_COLOR))==null?void 0:S.value)||"auto",p=(r==null?void 0:r.trustedPassports)||[],v=(r==null?void 0:r.trustedFactories)||[],b=(r==null?void 0:r.enablePassportIssuance)!==!1,h=async()=>{try{const C=await Me.doBatchQuery({getRoles:{input:{teamDid:K}},getPermissions:{input:{teamDid:K}},getInvitations:{input:{teamDid:K}}});a((C.getRoles.roles||[]).filter(P=>!$.RBAC_CONFIG.roles.some(E=>E.name===P.name&&(!E.passport||E.ci))).map(P=>(P.hasDescription=!!P.description,P.hasDescription||(P.description=t("team.passport.description",{teamName:d,title:P.title})),P))),u(C.getPermissions.permissions||[]),i(C.getInvitations.invitations||[])}catch(C){J.error(C.message)}},j=({did:C}={})=>{const P={teamDid:K,user:{did:C}};return Me.getUser({input:P})},I=({query:C,paging:P}={})=>{const E={teamDid:K};return P&&(E.paging=P),C&&(E.query=C),E.sort={lastLoginAt:-1},Me.getUsers({input:E})},g=()=>Me.getUsersCountPerRole({input:{teamDid:K}}),_=()=>h();x.useEffect(()=>{var C;(C=r==null?void 0:r.meta)!=null&&C.did&&h()},[(R=r==null?void 0:r.meta)==null?void 0:R.did]),x.useEffect(()=>{a(C=>C.map(P=>(P.hasDescription||(P.description=t("team.passport.description",{teamName:d,title:P.title})),{...P})))},[t,n]);const w=C=>{C.teamDid===K&&h()};ze(Z.TeamEvents.userAdded,w,[K]),ze(Z.TeamEvents.userRemoved,w,[K]),ze(Z.TeamEvents.userUpdated,w,[K]);const O={teamDid:K,teamIssuerDid:Xc,teamName:d,invitations:o,roles:s,permissions:l,trustedPassports:p,trustedFactories:v,isNodeTeam:!1,enablePassportIssuance:b,refresh:_,passportColor:f,endpoint:window.location.origin,blocklet:r,api:{getUser:j,getUsers:I,getUsersCountPerRole:g}};return c.jsx(Qc,{value:O,children:e})}const Zc=x.lazy(()=>F(()=>import("./overview-hAiGOEVT.js"),__vite__mapDeps([0,1,2,3,4,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,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57]))),Jc=x.lazy(()=>F(()=>import("./index-BdOBigee.js"),__vite__mapDeps([58,1,2,59,10,60,61,62,63,30,31,32,33,34,64,36,65,66,67,68,46,47,69,48,37,40,70,53,14,42,71,50,51,52,54,55,56,11,49,21,72,73,26,74,24,7,75,76,6,15,16,17,77,19,20,22,4,18,78,79,80,38,39,81,41,43,44,45,5,23,57]))),el=x.lazy(()=>F(()=>import("./index-CZJBy12a.js"),__vite__mapDeps([82,1,2,10,83,11,44,84,13,62,63,30,31,32,33,34,15,16,17,18,19,20,21,22,46,47,85,14,6,7,5,23,86,40,41,42,37,43,45,48,49,50,51,52,53,54,55,56,57]))),tl=x.lazy(()=>F(()=>import("./index-C0IZfDu_.js"),__vite__mapDeps([87,1,2,88,89,90,91,59,84,92,44,30,31,32,33,34,93,11,40,94,49,21,60,95,20,41,96,15,16,17,18,19,22,23,77,46,47,75,14,97,98,99,37,67,68,65,100,3,10,101,64,36,66,69,48,70,53,63,42,4,12,102,103,43,45,5,7,50,51,52,54,55,56,57,104]))),nl=x.lazy(()=>F(()=>import("./audit-logs-T8m9cab6.js"),__vite__mapDeps([105,1,2,106,107,14,5,41,31,32,33,34,108,70,109,40,42,18,19,20,21,22,37,43,44,45,46,47,48,49,17,15,16,7,23,50,51,52,53,54,55,56,57]))),rl=x.lazy(()=>F(()=>import("./log-fYGuc_1q.js"),__vite__mapDeps([110,1,2,41,44,111,31,32,34,112]))),ol=x.lazy(()=>F(()=>import("./index-LqIfjjYK.js"),__vite__mapDeps([113,1,2,10,37,114,64,36,65,66,67,68,46,32,47,69,31,48,34,33,30,40,70,53,63,14,42,5,18,19,20,21,22,17,6,7,94,49,81,111,115,23,59,80,28,103,11,93,26,116,117,118,98,90,77,44,119,92,86,75,106,107,109,120,45]))),sl=x.lazy(()=>F(()=>import("./config-navigation-SHlDKd6P.js"),__vite__mapDeps([121,1,2,67,68,65,122,119,97,123,124,31,32,33,34,37,30,40,86,95,20,21,41,71,50,51,52,53,54,55,42,56,11,49,125,22,44,35,36,18,19,43,45,46,47,48,17,15,16,5,7,23,57]))),il=x.lazy(()=>F(()=>import("./index-BmenTnvD.js"),__vite__mapDeps([126,1,2,83,11,44,28,127,74,128,103,22,19,30,31,32,33,34,20,21,4,6,7,100,75,46,47,39,117,37,96,5,64,36,65,66,67,68,69,48,40,70,53,63,14,42]))),al=x.lazy(()=>F(()=>import("./component-DUI0h-ax.js"),__vite__mapDeps([129,1,2,10,89,90,91,59,84,92,44,30,31,32,33,34,14,100,75,46,47,15,16,17,40,68,65,122,119,130,131,77,37,69,93,132,63,20,21,22,133,118,42,19,98,117,81,18,6,7,49,134,135,128,103,28,136,125,54,137,138,139,78,140,85,106,107,123,4,41,95,120,29,141,127,74,83,11,142,50,52,143,86,144,13,25,94,45,48,43,38,39,5,23,51,53,55,56,57]))),cl=x.lazy(()=>F(()=>import("./analytics-BJQaDJpa.js"),__vite__mapDeps([145,1,2,40,15,16,17,88,146,132,93,130,65,42,37,31,32,34,20,21,22,36,116,30,33,86,64,66,67,68,46,47,69,48,70,53,63,14,94,49,41,18,19,43,44,45,5,7,23,50,51,52,54,55,56,57]))),ll=x.lazy(()=>F(()=>import("./notifications-Bv9kdMWF.js"),__vite__mapDeps([147,1,2,15,16,17,46,32,47,42,49,21,37,108,70,40,41,18,19,20,22,43,44,45,48,5,7,23,50,51,52,53,54,55,56,57])));function ul(){var h,j;const e=Je(),{tab:t="overview"}=ns(),{blocklet:n,actions:{refreshBlocklet:r}}=Ee(),{t:o}=Q(),i=(h=n==null?void 0:n.meta)==null?void 0:h.did,s=I=>{e(`${$.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/${I}`)},a=()=>{r()},l=!n||xt(n.status)?[]:B.getAppMissingConfigs(n),u=[{label:o("common.overview"),value:"overview"},{label:c.jsx(xr,{"data-cy":"blocklet-list",color:"error",variant:"dot",invisible:!l.length,children:o("common.components")}),value:"components"}];xt(n==null?void 0:n.status)||u.push({label:o("common.configuration"),value:"configuration"}),u.push({label:o("common.auditLogs"),value:"audit-logs"}),n&&((j=n.children)!=null&&j.length)&&n.structVersion===$.APP_STRUCT_VERSION&&u.push({label:o("common.logs"),value:"logs"}),u.push({label:o("common.configNavigation"),value:"navigation"}),u.push({label:o("common.storage"),value:"storage"});const d=c.jsx(nl,{scope:i,categories:["blocklet","team","security","certificates","gateway"]});ze($.EVENTS.NOTIFICATION_BLOCKLET_CREATE,I=>{const{severity:g,title:_,description:w}=I||{};g==="error"?J.error(w||_):J.success(w||_)});const f={overview:c.jsx(Zc,{}),members:c.jsx(D,{mt:-5,children:c.jsx(Jc,{type:"blocklet",createPassportSvg:En})}),passports:c.jsx(D,{mt:-4.5,children:c.jsx(el,{createPassportSvg:En})}),components:al,configuration:c.jsx(tl,{blocklet:n,onUpdate:a}),"audit-logs":d,logs:rl,navigation:sl,storage:c.jsx(il,{}),analytics:c.jsx(D,{mt:-5,children:c.jsx(cl,{})}),publish:c.jsx(D,{mt:-3,children:c.jsx(ol,{})}),notifications:c.jsx(ll,{})},p=f[t]||f.overview,v=!["members","passports","analytics","publish","notifications"].includes(t),b=n?c.jsxs(nn,{type:"components",children:[v&&c.jsx(D,{pt:3,children:c.jsx(os,{tabs:u,current:t,onChange:s,scrollButtons:"auto"})}),c.jsx("div",{className:"page-content",children:c.jsx(x.Suspense,{fallback:c.jsx(Ke,{relative:"parent",children:c.jsx(te,{})}),children:x.isValidElement(p)?p:c.jsx(p,{blocklet:n})})})]}):c.jsx(Ke,{relative:"parent",children:c.jsx(te,{})});return c.jsx(rs,{children:c.jsx(Yc,{children:c.jsx(_n,{children:c.jsxs(fl,{children:[v&&c.jsxs(D,{component:"div",className:"page-header",children:[c.jsxs(G,{component:"h6",variant:"h6",className:"page-title",color:"textPrimary",children:[n?c.jsx(Jt,{blocklet:n,style:{marginRight:16}}):null,n?c.jsxs(D,{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1,children:[c.jsx(D,{children:B.getDisplayName(n)}),(n==null?void 0:n.status)!=="unknown"&&c.jsx(tn,{size:"12px",status:n.status,source:n.source,progress:n.progress})]}):`${o("common.blocklet")} ${o("common.detail")}`]}),n?c.jsx(ci,{className:"page-actions",hasPermission:!0,blocklet:n,onStart:()=>{},onComplete:({error:I}={})=>{I&&J.error(I.message)},variant:"group"}):null]}),c.jsx(Er,{}),c.jsx(Gc,{}),b]})})})})}function dl(){var r;const{blocklet:e}=Ee(),{t}=Q(),n=(r=e==null?void 0:e.meta)==null?void 0:r.did;return x.useEffect(()=>{const o=es();return n&&o.connect(),()=>{n&&o.isConnected()&&o.disconnect()}},[n]),c.jsxs(c.Fragment,{children:[c.jsx(ts,{children:c.jsx("title",{children:t("pageTitle.dashboard")})}),c.jsx(ul,{})]})}const fl=Ze.main`
120
120
  .page-header {
121
121
  display: flex;
122
122
  justify-content: space-between;
@@ -162,4 +162,4 @@ ${r}
162
162
  margin-bottom: 15px;
163
163
  }
164
164
  }
165
- `,Ul=Object.freeze(Object.defineProperty({__proto__:null,default:ul},Symbol.toStringTag,{value:"Module"}));export{tn as B,Ts as L,mo as N,bn as R,en as W,xi as _,xr as a,ci as b,Cr as c,co as d,Jt as e,pe as f,br as g,Al as h,jr as i,$l as j,Ul as k,Ye as p,Nl as u};
165
+ `,Bl=Object.freeze(Object.defineProperty({__proto__:null,default:dl},Symbol.toStringTag,{value:"Module"}));export{tn as B,Ts as L,mo as N,bn as R,en as W,bi as _,xr as a,li as b,Cr as c,co as d,Jt as e,pe as f,br as g,$l as h,jr as i,Nl as j,Bl as k,Ye as p,Ml as u};
@@ -1 +1 @@
1
- import{r,j as a}from"./index-C2SclAt1.js";const p=(e,{name:s,alternative:n})=>function(t){return r.useEffect(()=>{},[]),a.jsx(e,{...t})};export{p as w};
1
+ import{r,j as a}from"./index-i2bJjWlC.js";const p=(e,{name:s,alternative:n})=>function(t){return r.useEffect(()=>{},[]),a.jsx(e,{...t})};export{p as w};
@@ -1 +1 @@
1
- import{j as s,D as p,L as d,P as r}from"./index-C2SclAt1.js";import{L as l}from"./Link-DiIwF6B2.js";function a({did:o,href:t,external:n,avatarProps:f,...i}){const e=s.jsx(p,{did:o,...i});return t?n?s.jsx(l,{target:"_blank",href:t,underline:"hover",children:e}):s.jsx(d,{to:t,children:e}):e}a.propTypes={did:r.string.isRequired,to:r.string,href:r.string,avatarProps:r.object,external:r.bool};a.defaultProps={to:"",href:"",avatarProps:{},external:!1};export{a as W};
1
+ import{j as s,D as p,L as d,P as r}from"./index-i2bJjWlC.js";import{L as l}from"./Link-DKpyb7YJ.js";function a({did:o,href:t,external:n,avatarProps:f,...i}){const e=s.jsx(p,{did:o,...i});return t?n?s.jsx(l,{target:"_blank",href:t,underline:"hover",children:e}):s.jsx(d,{to:t,children:e}):e}a.propTypes={did:r.string.isRequired,to:r.string,href:r.string,avatarProps:r.object,external:r.bool};a.defaultProps={to:"",href:"",avatarProps:{},external:!1};export{a as W};