@abtnode/blocklet-services 1.16.32-beta-0593a408 → 1.16.32-beta-5463e017

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 (181) hide show
  1. package/api/services/auth/connect/update-kyc.js +11 -3
  2. package/dist/assets/{Add-BXK5RFEZ.js → Add-DPWETbuH.js} +1 -1
  3. package/dist/assets/{Alert-CeGhMuEg.js → Alert-DDr4PUmN.js} +1 -1
  4. package/dist/assets/{ArrowDropDown-JIsmOdUp.js → ArrowDropDown-BCZ8iqaM.js} +1 -1
  5. package/dist/assets/{Avatar-DlL4WPrD.js → Avatar-Der2Q3Zi.js} +1 -1
  6. package/dist/assets/{ButtonGroup-ailEu1Nr.js → ButtonGroup-zMm3edlK.js} +1 -1
  7. package/dist/assets/{CheckCircle-CEIChsEH.js → CheckCircle-BfztTFob.js} +1 -1
  8. package/dist/assets/{ChevronLeft-D_bQ82yy.js → ChevronLeft-CrTHRIqK.js} +1 -1
  9. package/dist/assets/{ChevronRight-BGd4BknI.js → ChevronRight-CIt5KDbd.js} +1 -1
  10. package/dist/assets/{Close-uLBCA-jx.js → Close-CgA7Qef8.js} +1 -1
  11. package/dist/assets/{CloseOutlined-IVnREWlC.js → CloseOutlined-OBzuC30j.js} +1 -1
  12. package/dist/assets/{Delete-BVwa0m1R.js → Delete-DVYTl7-n.js} +1 -1
  13. package/dist/assets/{DeleteOutline-CZQhsml4.js → DeleteOutline-DKoxIRL9.js} +1 -1
  14. package/dist/assets/{DialogContentText-ClisAi23.js → DialogContentText-BnQAOkxN.js} +1 -1
  15. package/dist/assets/{Done-Dsagjn-5.js → Done-D1_3yhtX.js} +1 -1
  16. package/dist/assets/{Download-BONj8GVi.js → Download-CvngcFRX.js} +1 -1
  17. package/dist/assets/{Edit-uwWLILxD.js → Edit-DQ3aLTS3.js} +1 -1
  18. package/dist/assets/{EditIcon-Ccz9ZvCO.js → EditIcon-C5DCIJQ3.js} +1 -1
  19. package/dist/assets/{Error-Cpv-DWNH.js → Error-DOhq8cCM.js} +1 -1
  20. package/dist/assets/{ExpandMore-DUJJgQvW.js → ExpandMore-BgcTT2Bb.js} +1 -1
  21. package/dist/assets/{FormControl-DFtCJG5u.js → FormControl-D00yHDcj.js} +1 -1
  22. package/dist/assets/{FormControlLabel-DXsQRQXS.js → FormControlLabel-BJXWJJky.js} +1 -1
  23. package/dist/assets/{FormGroup-BYqGm4p-.js → FormGroup-CBgybl1l.js} +1 -1
  24. package/dist/assets/{Google-_v-FGHrH.js → Google-Be2TlnTX.js} +1 -1
  25. package/dist/assets/{Hidden-qI_JwCnJ.js → Hidden-Bg6BPxEd.js} +1 -1
  26. package/dist/assets/{InfoOutlined-ph3gfjxo.js → InfoOutlined-BxTwuqiu.js} +1 -1
  27. package/dist/assets/{InputAdornment-ooDD0p7-.js → InputAdornment-BGOXKboF.js} +1 -1
  28. package/dist/assets/{InputLabel-BvnZs665.js → InputLabel-BaHBEVm2.js} +1 -1
  29. package/dist/assets/{LastPage-Cyi1MuLL.js → LastPage-DyrTuTrl.js} +1 -1
  30. package/dist/assets/{Launch-DuItzynA.js → Launch-CNWKbDVj.js} +1 -1
  31. package/dist/assets/{LaunchOutlined-D-2u70Um.js → LaunchOutlined-BuQ3n0Nq.js} +1 -1
  32. package/dist/assets/{Link-Bi0x7esG.js → Link-CiVKLn7B.js} +1 -1
  33. package/dist/assets/{ListItemText-5Rgq6wEi.js → ListItemText-BW_owdy0.js} +1 -1
  34. package/dist/assets/{LoadingButton-D5Z3wmwU.js → LoadingButton-AM-IIW_5.js} +1 -1
  35. package/dist/assets/{LockIcon-m3nszp09.js → LockIcon-0vWjHODV.js} +1 -1
  36. package/dist/assets/{Loop-DxSgdtYO.js → Loop-C8sLBH67.js} +1 -1
  37. package/dist/assets/{MoreHoriz-BhT61kh5.js → MoreHoriz-i1hLrklo.js} +1 -1
  38. package/dist/assets/{MoreVert-BZrKRQjN.js → MoreVert-D_g6Th6c.js} +1 -1
  39. package/dist/assets/{OpenInNew-BmjNdWrg.js → OpenInNew-DBNjDxil.js} +1 -1
  40. package/dist/assets/{Pagination-BuAgd0Fq.js → Pagination-DLYy7jWI.js} +1 -1
  41. package/dist/assets/{PlayArrow-duerFb9i.js → PlayArrow-ywjbMR8A.js} +1 -1
  42. package/dist/assets/{QuestionMarkCircle-e6Dqgeid.js → QuestionMarkCircle-UZOXHzIe.js} +1 -1
  43. package/dist/assets/{RadioGroup-hK79XBIl.js → RadioGroup-BOq5mI1A.js} +1 -1
  44. package/dist/assets/{Search-BMPJQuLV.js → Search-Cm2FDsnl.js} +1 -1
  45. package/dist/assets/{Select-BeArBHJP.js → Select-_ZzhxUOz.js} +1 -1
  46. package/dist/assets/{ServerLogo-BNlEHeUQ.js → ServerLogo-DeFJVAh8.js} +1 -1
  47. package/dist/assets/{Skeleton-D5U61zVB.js → Skeleton-D6pzHOGJ.js} +1 -1
  48. package/dist/assets/{Slider-DTLSNhz0.js → Slider-ZYL8jZ1U.js} +1 -1
  49. package/dist/assets/{Stack-CZh-rd3Z.js → Stack-DuNNAX-1.js} +1 -1
  50. package/dist/assets/{Stepper-DRS0AaL5.js → Stepper-DJcNoyk4.js} +1 -1
  51. package/dist/assets/{TextField-qwbmqJ_2.js → TextField-DvTYZ6EA.js} +1 -1
  52. package/dist/assets/{Toolbar-vbF-NV4R.js → Toolbar-DbekG5v-.js} +1 -1
  53. package/dist/assets/{ViewColumn-C39IjII_.js → ViewColumn-BOqfI3PF.js} +1 -1
  54. package/dist/assets/{ViewList-D9Rx7CG7.js → ViewList-DloAt_wk.js} +1 -1
  55. package/dist/assets/{access-control-CZ2vCfvl.js → access-control-Coh2AROp.js} +1 -1
  56. package/dist/assets/{actions-bp0tIFPr.js → actions-DU4pTpmF.js} +1 -1
  57. package/dist/assets/{add-component-core-C1Hjv9Mu.js → add-component-core-DT8eSr6D.js} +1 -1
  58. package/dist/assets/{add-resource-ClftlsDn.js → add-resource-CSMNGPH3.js} +1 -1
  59. package/dist/assets/{addon-CR-5t9SG.js → addon-DImOcoyp.js} +1 -1
  60. package/dist/assets/{analytics-DtV5hN-G.js → analytics-CdJi4q2Q.js} +1 -1
  61. package/dist/assets/api-DUETbHv8.js +1 -0
  62. package/dist/assets/{audit-logs-CLta2fsb.js → audit-logs-Bf2mKt3i.js} +1 -1
  63. package/dist/assets/{button-C_Ohwi26.js → button-LdgYe-Yo.js} +1 -1
  64. package/dist/assets/{click-to-copy-DdG-v5Xf.js → click-to-copy-GLcS-PQh.js} +1 -1
  65. package/dist/assets/{complete-d1ZMK4NF.js → complete-d1PDQlj9.js} +1 -1
  66. package/dist/assets/{component-C3cEDupm.js → component-Ny_sGfYr.js} +1 -1
  67. package/dist/assets/{config-CoCmaQP0.js → config-CFU2n19a.js} +1 -1
  68. package/dist/assets/{config-Dx0nfjiu.js → config-CpPqNxWJ.js} +1 -1
  69. package/dist/assets/{config-navigation-WnNuhnxu.js → config-navigation-BQEWPLSH.js} +1 -1
  70. package/dist/assets/{confirm-BY-9Ale6.js → confirm-BdJlZzQ-.js} +1 -1
  71. package/dist/assets/{connect-eNCvhZ4O.js → connect-BDR3XUNJ.js} +1 -1
  72. package/dist/assets/{connect-DDUiaDOH.js → connect-ndruP8fv.js} +1 -1
  73. package/dist/assets/{connect-to-CTihUmuN.js → connect-to-D6gkq_5F.js} +1 -1
  74. package/dist/assets/{content-layout-DYHA2DoT.js → content-layout-9pObqqwC.js} +1 -1
  75. package/dist/assets/{dashboard-C8VgUavf.js → dashboard-Clr7sJbb.js} +3 -3
  76. package/dist/assets/{did-address-Bye61gv9.js → did-address-DNmiCCjI.js} +1 -1
  77. package/dist/assets/{domain-JYDawt5A.js → domain-BM3Ias2K.js} +1 -1
  78. package/dist/assets/{domain-list-1LRFMuDN.js → domain-list-BdKqoNlW.js} +1 -1
  79. package/dist/assets/{email-THIe3MUl.js → email-03xGEqer.js} +3 -3
  80. package/dist/assets/{exchange-passport-CvhlZqQF.js → exchange-passport-BwiQ670F.js} +1 -1
  81. package/dist/assets/{fallback-0bWgPkSN.js → fallback-BLJkxLTK.js} +1 -1
  82. package/dist/assets/{format-error-BOfFwKPG.js → format-error-C43xGCjC.js} +1 -1
  83. package/dist/assets/{fuel-CfBzTTU6.js → fuel-C7otG6Kf.js} +1 -1
  84. package/dist/assets/{fullpage-ChxIZLoV.js → fullpage-C4Et_NyD.js} +1 -1
  85. package/dist/assets/{home-DNnK3U-z.js → home-CZCCRVbe.js} +1 -1
  86. package/dist/assets/{iframe-BuZAORHf.js → iframe-CPKiwkND.js} +1 -1
  87. package/dist/assets/{index-Dn3O_6kH.js → index-AgTn3eU4.js} +1 -1
  88. package/dist/assets/{index-BmJ_HmLz.js → index-B3ThwVSS.js} +1 -1
  89. package/dist/assets/{index-DnNh-evc.js → index-BCMjvLku.js} +1 -1
  90. package/dist/assets/{index-DMGDz3J5.js → index-BK9kuqs5.js} +1 -1
  91. package/dist/assets/{index-BVQpPnuL.js → index-BRnCFYx3.js} +1 -1
  92. package/dist/assets/{index--Zmo4lNz.js → index-BWVDn9BP.js} +1 -1
  93. package/dist/assets/{index-fpoxcuML.js → index-BaC4EhQh.js} +20 -20
  94. package/dist/assets/{index-C2qWDMpv.js → index-Bc3FFnWG.js} +1 -1
  95. package/dist/assets/{index-B-Fz2GNJ.js → index-BlvJrvQX.js} +1 -1
  96. package/dist/assets/{index-Be2wLDD2.js → index-BrFlqDrV.js} +1 -1
  97. package/dist/assets/{index-BML-rKDv.js → index-BzY4clAs.js} +1 -1
  98. package/dist/assets/{index-CMg55b21.js → index-CD6yQnY4.js} +1 -1
  99. package/dist/assets/{index-BmTem0RD.js → index-CFpdZL6w.js} +1 -1
  100. package/dist/assets/{index-CeNlYeEB.js → index-CH2n2mOS.js} +1 -1
  101. package/dist/assets/{index-D0TT-qXy.js → index-CT70Tuv9.js} +1 -1
  102. package/dist/assets/{index-BlaHh4Bq.js → index-CTil0VJz.js} +1 -1
  103. package/dist/assets/{index-Dg3ZdGFC.js → index-CWjTgh2V.js} +1 -1
  104. package/dist/assets/{index-CmriykVM.js → index-CbBjirNE.js} +1 -1
  105. package/dist/assets/{index-CsqAQtnh.js → index-Cfnr_7cH.js} +4 -4
  106. package/dist/assets/{index-BqbUZVee.js → index-ChWrF7R7.js} +1 -1
  107. package/dist/assets/{index--PkoOt7s.js → index-CzxDEhmG.js} +1 -1
  108. package/dist/assets/{index-D3wlHMtS.js → index-D9e3uQkW.js} +1 -1
  109. package/dist/assets/{index-C5cJ2AYH.js → index-DPXmNWqb.js} +1 -1
  110. package/dist/assets/{index-DyEaiz-D.js → index-DR40cJFL.js} +3 -3
  111. package/dist/assets/{index-BElhBMsQ.js → index-DiOkeCOc.js} +1 -1
  112. package/dist/assets/{index-DCyB2kx5.js → index-Dp6zROo4.js} +1 -1
  113. package/dist/assets/{index-C0fRQdXZ.js → index-Ez2y1Lea.js} +1 -1
  114. package/dist/assets/{index-CuDHF3xN.js → index-TwQfcdR0.js} +1 -1
  115. package/dist/assets/{index-DCx94jgM.js → index-hkkOggLS.js} +1 -1
  116. package/dist/assets/{index-52sgx-HD.js → index-lVfYf5Oq.js} +1 -1
  117. package/dist/assets/{index-BM94YLjm.js → index-s95vTNww.js} +1 -1
  118. package/dist/assets/{index.es-BXRXZClL.js → index.es-CkGqU4MQ.js} +1 -1
  119. package/dist/assets/{index.esm-BPFo6X8Z.js → index.esm-8yCk0S5h.js} +1 -1
  120. package/dist/assets/{invitation-D1Wp3bRP.js → invitation-DAGy7I2M.js} +1 -1
  121. package/dist/assets/{invite-YMYQJqN-.js → invite-06pBNgrg.js} +1 -1
  122. package/dist/assets/{issue-passport-BGReKwsC.js → issue-passport-CbtgsLgQ.js} +1 -1
  123. package/dist/assets/{item-BXQ3arsv.js → item-B0XIEv1j.js} +1 -1
  124. package/dist/assets/{jss-plugin-props-sort.esm-C9YatkDP.js → jss-plugin-props-sort.esm-D4wv_NcC.js} +1 -1
  125. package/dist/assets/{launch-result-message-BerDxO98.js → launch-result-message-BGkFHBr0.js} +1 -1
  126. package/dist/assets/{layout-D4J5Y79b.js → layout-C1fJ0PwQ.js} +1 -1
  127. package/dist/assets/{list-header-Be3w9ZWF.js → list-header-D2TsmXsU.js} +1 -1
  128. package/dist/assets/localization-IrbI0TJr.js +1 -0
  129. package/dist/assets/{log-CQOOprUt.js → log-Bx1CDJfR.js} +1 -1
  130. package/dist/assets/{login-BE50q_9g.js → login-Ci8kprd2.js} +1 -1
  131. package/dist/assets/{login-oauth-callback-BPCfA25m.js → login-oauth-callback-OcVe-Pko.js} +1 -1
  132. package/dist/assets/{logo-uploader-BQq1Bvz4.js → logo-uploader-DPtvNrwp.js} +3 -3
  133. package/dist/assets/{lost-passport-CqiiJzdw.js → lost-passport-DQYzD5oM.js} +3 -3
  134. package/dist/assets/{lottie-8CewroZu.js → lottie-Dtcij0yx.js} +1 -1
  135. package/dist/assets/{notifications-hFiNE8Kp.js → notifications-u_yxMKF9.js} +1 -1
  136. package/dist/assets/{open-window-DZuQsoOo.js → open-window-Ca8SnnJR.js} +1 -1
  137. package/dist/assets/{overview-eXanKabi.js → overview-hyt-Fv0L.js} +1 -1
  138. package/dist/assets/{page-header-D6emPvgS.js → page-header-DZBo2jY4.js} +1 -1
  139. package/dist/assets/{permission-CV9At0xV.js → permission-DDD12SuE.js} +1 -1
  140. package/dist/assets/{preferences-GIta-dYt.js → preferences-BzxjYd2D.js} +1 -1
  141. package/dist/assets/publish-resource-BL3ifBGp.js +1 -0
  142. package/dist/assets/{react-BnX7dsCg.js → react-iXxw1Yhu.js} +3 -3
  143. package/dist/assets/{redux-B4e5IkPl.js → redux-Bma4eNss.js} +1 -1
  144. package/dist/assets/{resource-dialog-DSlBHCVu.js → resource-dialog-DhmviK8K.js} +1 -1
  145. package/dist/assets/sdk-B37oViy1.js +1 -0
  146. package/dist/assets/{selector-fvBTD9SB.js → selector-B8IAFODK.js} +1 -1
  147. package/dist/assets/session-D3mS3Gz5.js +1 -0
  148. package/dist/assets/{setup-p-Q92t4g.js → setup-TXTEwwLA.js} +3 -3
  149. package/dist/assets/{shorten-label-BOSkgF_N.js → shorten-label-DWH-tsmz.js} +1 -1
  150. package/dist/assets/{slicedToArray-CbPRhqfX.js → slicedToArray-Doa8i3Sy.js} +1 -1
  151. package/dist/assets/{spaces-Dv5sTFBl.js → spaces-DPfrZKXe.js} +1 -1
  152. package/dist/assets/{start-D4PsKATv.js → start-DwEZv43D.js} +1 -1
  153. package/dist/assets/{step-actions-DvJ3jG2s.js → step-actions-B1vsf_QO.js} +1 -1
  154. package/dist/assets/{studio-kDlNaA-v.js → studio-CTK5QQPt.js} +1 -1
  155. package/dist/assets/{switch-control-CCflGHVj.js → switch-control-DJhTvGtn.js} +1 -1
  156. package/dist/assets/{toUpper-DxMwQ-7A.js → toUpper-Bff1Q0mA.js} +1 -1
  157. package/dist/assets/{transfer-Cdc4gT4M.js → transfer-IRhzEeuE.js} +1 -1
  158. package/dist/assets/{uniqBy-C7E-hw0R.js → uniqBy-DIeGY4K_.js} +1 -1
  159. package/dist/assets/{unsubscribe-CZRtq6xH.js → unsubscribe-CwygyLJZ.js} +1 -1
  160. package/dist/assets/{url-join-Cc5BAZ2e.js → url-join-D5TK65dM.js} +1 -1
  161. package/dist/assets/{use-blocklet-info-for-connect-did-spaces-Dro42um_.js → use-blocklet-info-for-connect-did-spaces-DaNxIRBj.js} +1 -1
  162. package/dist/assets/{use-mobile-BziK5djw.js → use-mobile-BA_cO1yG.js} +1 -1
  163. package/dist/assets/{useAsync-fA1HnQaq.js → useAsync-Bl2lmnoD.js} +1 -1
  164. package/dist/assets/{useFormControl-CQ_7pr9i.js → useFormControl-CAWQrhew.js} +1 -1
  165. package/dist/assets/{useLocalStorage-CpPhACy5.js → useLocalStorage-DkK4fk62.js} +1 -1
  166. package/dist/assets/{useSetState-5snwvlLZ.js → useSetState-OuMAH4bG.js} +1 -1
  167. package/dist/assets/{useSlot-GRhp-924.js → useSlot-nO86v-Bn.js} +1 -1
  168. package/dist/assets/{useSlotProps-CPXTP7XP.js → useSlotProps-B8lkbwkT.js} +1 -1
  169. package/dist/assets/{useThemeProps-BnBMhVDF.js → useThemeProps-CIT7yB5m.js} +1 -1
  170. package/dist/assets/{user-center-CuPwYsI_.js → user-center-BEb-hcxI.js} +1 -1
  171. package/dist/assets/{user-sessions-lG0a9kqK.js → user-sessions-D_s7CT2k.js} +1 -1
  172. package/dist/assets/{util-BBmowc-s.js → util-znUxW1sG.js} +1 -1
  173. package/dist/assets/{wrap-locale-D-ibzwQK.js → wrap-locale-BjkpLOO0.js} +1 -1
  174. package/dist/index.html +1 -1
  175. package/dist/service-worker.js +1 -1
  176. package/package.json +25 -25
  177. package/dist/assets/api-BdPs8cnO.js +0 -1
  178. package/dist/assets/localization-C6Hais-M.js +0 -1
  179. package/dist/assets/publish-resource-E3qK4Lfb.js +0 -1
  180. package/dist/assets/sdk-C5Eo3Lk8.js +0 -1
  181. package/dist/assets/session-BHe45BP1.js +0 -1
@@ -1 +1 @@
1
- import{X as Ue,Y as ze,j as o,bA as Q,c as fe,bB as he,u as z,r as O,bC as ee,l as y,k as C,aj as ye,B as f,A as ke,bD as q,T as B,bf as De,bE as j,bF as P,bG as _e,bH as Ee,a as re,bI as L,n as oe,D as Ce,aC as H,t as _,bJ as Fe,bK as Se,bL as ge,bM as Me,N as K,aT as ne,bN as Oe,bO as We,O as ae,bP as me,aS as $e,a1 as ie,bQ as Pe,bR as He,bS as S,bT as Ne,bU as Ge,bV as Ve,bW as qe,s as Qe,q as Xe,bX as Ke,bY as Je,bZ as Ye,b_ as Ze,b$ as eo,c0 as oo,c1 as to,c2 as ro,m as no,R as ao,w as be,bx as io,H as so}from"./index-fpoxcuML.js";import{H as lo,F as co}from"./index-BmTem0RD.js";import{f as po,g as uo}from"./index-DnNh-evc.js";import{S as xo,t as T,P as fo,a as ho,b as go,M as mo,C as ve,c as bo,d as vo,E as jo,D as wo,A as yo,e as M,I as ko,L as Co,f as So,g as Po}from"./resource-dialog-DSlBHCVu.js";import{T as Ie}from"./index-DMGDz3J5.js";import{E as Z}from"./index-BmJ_HmLz.js";import{E as Io}from"./fallback-0bWgPkSN.js";import{d as Ao,U as Bo}from"./user-sessions-lG0a9kqK.js";import{u as Ro}from"./uniqBy-C7E-hw0R.js";import{S as Ae}from"./index-BqbUZVee.js";import{i as Lo}from"./index-CMg55b21.js";import{S as Be}from"./Select-BeArBHJP.js";import{T as To}from"./TextField-qwbmqJ_2.js";import{I as Uo}from"./InputAdornment-ooDD0p7-.js";import{A as zo}from"./Alert-CeGhMuEg.js";import{S as Do}from"./Stack-CZh-rd3Z.js";import"./index-D0TT-qXy.js";import"./index-BElhBMsQ.js";import"./Toolbar-vbF-NV4R.js";import"./Hidden-qI_JwCnJ.js";import"./ExpandMore-DUJJgQvW.js";import"./Avatar-DlL4WPrD.js";import"./useSlot-GRhp-924.js";import"./MoreVert-BZrKRQjN.js";import"./selector-fvBTD9SB.js";import"./OpenInNew-BmjNdWrg.js";import"./CloseOutlined-IVnREWlC.js";import"./use-mobile-BziK5djw.js";import"./Link-Bi0x7esG.js";import"./FormControlLabel-DXsQRQXS.js";import"./useFormControl-CQ_7pr9i.js";import"./FormControl-DFtCJG5u.js";import"./InputLabel-BvnZs665.js";import"./useThemeProps-BnBMhVDF.js";import"./toPropertyKey-PLuKRk1e.js";import"./index-BM94YLjm.js";import"./redux-B4e5IkPl.js";import"./ViewColumn-C39IjII_.js";import"./FormGroup-BYqGm4p-.js";import"./ListItemText-5Rgq6wEi.js";import"./LastPage-Cyi1MuLL.js";import"./Search-BMPJQuLV.js";import"./Delete-BVwa0m1R.js";var se={},_o=ze;Object.defineProperty(se,"__esModule",{value:!0});var Re=se.default=void 0,Eo=_o(Ue()),Fo=o;Re=se.default=(0,Eo.default)((0,Fo.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"RefreshOutlined");const Le=(e,c)=>{let i;return e==="default"?i=Q.DEFAULT_COLORS["app-passport"]:e==="auto"?i=Q.getNftBGColorFromDid(c):i=Q.getNftBGColor(e),i},Mo=({issuer:e="",title:c="",issuerDid:i="",issuerAvatarUrl:h="",ownerDid:a="",ownerAvatarUrl:d="",preferredColor:x="default",revoked:r=!1,isDataUrl:l=!1,width:t="100%",height:p="100%"})=>{const g=Le(x,i),v=Q.getSvg({width:t,height:p,tag:r?"revoked":"",tagVariant:r?"error":"info",color:g,did:a,variant:"app-passport",verifiable:!0,issuer:{name:e,icon:h},header:{name:c,icon:d},extra:{key:"Exp",value:"2123-01-01"}});return l?`data:image/svg+xml;utf8,${encodeURIComponent(v)}`:v},Oo=({issuer:e="",title:c="",issuerDid:i="",issuerAvatarUrl:h="",ownerDid:a="",ownerName:d="",ownerAvatarUrl:x="",preferredColor:r="default",type:l="email",revoked:t=!1,isDataUrl:p=!1,width:g="100%",height:v="100%"})=>{const u=Le(r,i),s=Q.getSvg({width:g,height:v,tag:t?"revoked":"",tagVariant:t?"error":"info",color:u,did:a,variant:"app-kyc",verifiable:!0,issuer:{name:e,icon:h},header:{name:d,icon:x},extra:{key:l,value:c}});return p?`data:image/svg+xml;utf8,${encodeURIComponent(s)}`:s},X=e=>{const{response:c}=e;return c?`Request failed: ${c.status} ${c.statusText}: ${JSON.stringify(c.data)}`:e.message},Wo=e=>e.scope==="kyc"?Oo({...e,issuerAvatarUrl:fe(window.location.origin,he,"/blocklet/logo"),type:e.role}):Mo({...e,issuerAvatarUrl:fe(window.location.origin,he,"/blocklet/logo")});function je({user:e,isMyself:c=!0,showFullDid:i=!0,switchPassport:h,switchProfile:a,openSettings:d,...x}){var b;const{locale:r}=z(),{session:l}=O.useContext(ee),[t,p]=O.useState(!1),g=y((m,k={})=>L(T,m,r,"en",k)),v=C(()=>{var m;return(m=(e==null?void 0:e.passports)||[])==null?void 0:m.find(k=>k.name===e.role)},[e==null?void 0:e.passports,e==null?void 0:e.role]),u=ye(),s=u.breakpoints.down("md");if(!e)return null;const n=async()=>{try{p(!0),await l.refreshProfile(),l.refresh(),_.success(L(T,"refreshProfile.successfully",r))}catch(m){console.error(m),_.error(X(m))}finally{p(!1)}};return o.jsxs(f,{...x,sx:{position:"relative",...x.sx},children:[o.jsx(ke,{src:e==null?void 0:e.avatar,did:e==null?void 0:e.did,size:s?64:80,variant:"circle",shape:"circle",sx:{borderRadius:"100%",backgroundColor:"#fff",position:"relative",overflow:"hidden",mb:1.5,...c?{cursor:"pointer","&:hover":{"&::after":{content:`"${g("switchProfile")}"`}},"&::after":{color:"white",position:"absolute",fontSize:"12px",bottom:0,left:0,right:0,height:"50%",backgroundColor:"rgba(0, 0, 0, 0.3)",display:"flex",justifyContent:"center",alignItems:"center"}}:{}},onClick:c?a:q}),o.jsxs(B,{variant:"h6",sx:{fontWeight:"bold",display:"flex",alignItems:"center",gap:1,fontSize:"24px !important"},children:[e==null?void 0:e.fullName,c?o.jsxs(o.Fragment,{children:[o.jsx(De,{label:(v==null?void 0:v.title)||(e==null?void 0:e.role)||"Guest",size:"small",variant:"outlined",sx:{flexShrink:0,fontWeight:"bold",fontSize:"12px",color:j.textBase,borderColor:j.strokeBorderStrong,backgroundColor:"transparent",textTransform:"capitalize",pr:1,pl:.5,"&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"},"&:active":{boxShadow:"none"}},clickable:!0,deleteIcon:o.jsx(P,{icon:_e,color:j.textBase}),onDelete:h,onClick:h}),!Ee(e.url)&&o.jsx(re,{title:!t&&L(T,"refreshProfile.title",r),sx:{display:"flex",alignItems:"center"},children:t?o.jsx(oe,{size:"16px",sx:{color:(b=u==null?void 0:u.colors)==null?void 0:b.primary,ml:.5}}):o.jsx(Re,{onClick:n})})]}):null]}),o.jsx(Ce,{did:e.did,showQrcode:!0,copyable:!0,compact:!i,responsive:!i,locale:r}),c?o.jsx(H,{sx:{borderRadius:2,color:j.textBase,backgroundColor:"white",border:`1px solid ${j.strokeBorderBase}`,position:"absolute",top:0,right:0},disableFocusRipple:!0,onClick:d,children:o.jsx(P,{icon:xo})}):null]})}function $o({data:e,verified:c,...i}){return o.jsxs(f,{...i,sx:{display:"flex",alignItems:"center",justifyContent:"space-between",...i.sx},children:[o.jsxs(B,{sx:{display:"flex",alignItems:"center",color:j.textBase,fontSize:"14px",gap:1,fontWeight:500},children:[e.icon,e.title]}),o.jsxs(f,{display:"flex",flexDirection:"row",alignItems:"center",children:[o.jsx(B,{sx:{color:j.textSubtitle,whiteSpace:"pre-wrap",fontSize:"14px"},children:e.content}),c&&o.jsx(Ao,{color:"success",style:{fontSize:16,marginLeft:4}})]})]})}function Ho({user:e,isMySelf:c=!1,...i}){const{locale:h}=z(),a=y((r,l={})=>L(T,r,h,"en",l)),d=C(()=>(e==null?void 0:e.sourceProvider)&&Fe[e.sourceProvider]||a("unknown"),[e==null?void 0:e.sourceProvider]),x=[];return c&&(x.push({icon:o.jsx(P,{fontSize:16,icon:Se}),title:a("email"),content:(e==null?void 0:e.email)||a("emptyField"),verified:e==null?void 0:e.emailVerified}),x.push({icon:o.jsx(P,{fontSize:16,icon:fo}),title:a("phone"),content:(e==null?void 0:e.phone)||a("emptyField"),verified:e==null?void 0:e.phoneVerified}),x.push({icon:o.jsx(P,{fontSize:16,icon:ho}),title:a("lastLoginAt"),content:e!=null&&e.lastLoginAt?o.jsx(ge,{locale:h,value:e==null?void 0:e.lastLoginAt,relativeRange:3*86400*1e3}):a("unknown")}),x.push({icon:o.jsx(P,{fontSize:16,icon:go}),title:a("lastLoginIp"),content:(e==null?void 0:e.lastLoginIp)||a("unknown")})),x.push({icon:o.jsx(P,{fontSize:16,icon:mo}),title:a("createdAt"),content:e!=null&&e.createdAt?o.jsx(ge,{locale:h,value:e==null?void 0:e.createdAt}):a("unknown")}),c&&(x.push({icon:o.jsx(P,{fontSize:16,icon:ve}),title:a("registerFrom"),content:d}),x.push({icon:o.jsx(P,{fontSize:16,icon:ve}),title:a("invitedBy"),content:e!=null&&e.inviter?o.jsx(Ce,{did:e.inviter,showQrcode:!0,copyable:!0,compact:!0,responsive:!0,locale:h}):"-"})),o.jsx(f,{...i,sx:{display:"flex",flexDirection:"column",gap:1.5,...i==null?void 0:i.sx},children:x.map(r=>o.jsx($o,{data:r,sx:{flex:1},verified:r.verified},r.title))})}function No({user:e,...c}){var l,t;const{locale:i}=z(),h=y((p,g={})=>L(T,p,i,"en",g)),a=ye(),d=C(()=>{const p=((e==null?void 0:e.passports)||[]).map(g=>({...g,revoked:g.status===Me.REVOKED}));return p.sort((g,v)=>g.revoked===v.revoked?0:g.revoked?1:-1),Ro(p,"role")},[e==null?void 0:e.passports]),x=C(()=>d==null?void 0:d.find(p=>p.name===e.role),[d,e==null?void 0:e.role]),r=C(()=>{var p,g;return((g=(p=a==null?void 0:a.palette)==null?void 0:p.primary)==null?void 0:g.main)||j.textBase},[(t=(l=a==null?void 0:a.palette)==null?void 0:l.primary)==null?void 0:t.main]);return d.length===0?o.jsx(f,{children:o.jsx(Z,{children:h("noPassport")})}):o.jsx(f,{...c,sx:{display:"grid",gridTemplateColumns:{xs:"repeat(2, 1fr)",sm:"repeat(3, 1fr)",md:"repeat(2, 1fr)"},gap:2.5,...c.sx},children:d.map(p=>o.jsx(bo,{passport:p,user:e,color:window.blocklet.passportColor,createPassportSvg:Wo,title:x&&x.role===p.role?h("currentPassport"):"",sx:{flexDirection:"column",alignItems:"center",gap:1,".passport-item__display":{width:166,height:166,borderRadius:2,px:2,display:"flex",justifyContent:"center",backgroundColor:j.backgroundsBgComponent,boxShadow:x&&x.role===p.role?`0px 2px 4px 0px ${r}, 0px 1px 2px -1px ${r}, 0px 0px 0px 1px ${r} !important`:"unset"},".passport-item__body":{marginLeft:"0 !important"}}},p.id))})}function we({onTest:e=q,onDelete:c=q,onSave:i=q,onCancel:h=q,type:a="slack",url:d="",edit:x=!1}){const{locale:r}=z(),l=y((n,b={})=>L(T,n,r,"en",b)),t=K({type:a||"slack",url:d||"",edit:x??!1,error:"",loading:!1}),p=y(()=>t.url?Lo(t.url)?(t.error="",!0):(t.error=l("common.invalid"),!1):(t.error=l("common.required"),!1)),g=y(()=>{t.edit=!1,t.url=d||"",t.type=a||"slack",t.error="",t.loading=!1,h()}),v=y(async n=>{t.loading=!0,await e(n),t.loading=!1}),u=y(n=>()=>{p()&&n({type:t.type,url:t.url})}),s=C(()=>t.error?o.jsx(B,{component:"span",color:"error",children:t.error}):t.edit?t.loading?o.jsx(oe,{size:16}):o.jsx(H,{size:"small",onClick:u(v),sx:{mr:-1},children:o.jsx(P,{icon:vo})}):null,[t.error,t.edit,t.loading]);return o.jsxs(f,{sx:{display:"flex",gap:1.5,width:"100%",alignItems:{xs:"flex-start",md:"center"},flexDirection:{xs:"column",md:"row"}},children:[o.jsxs(Be,{sx:{borderRadius:2,"&.Mui-disabled":{backgroundColor:j.backgroundsBgField}},disabled:!t.edit||t.loading,size:"small",value:t.type,onChange:n=>{t.type=n.target.value},children:[o.jsx(ne,{value:"api",children:l("webhook.url")}),o.jsx(ne,{value:"slack",children:l("webhook.slack")})]}),o.jsxs(f,{sx:{display:"flex",alignItems:"center",gap:.5,width:"100%"},children:[o.jsx(To,{sx:{flex:1,".MuiInputBase-root":{borderRadius:2,"&.Mui-disabled":{backgroundColor:j.backgroundsBgField}}},disabled:!t.edit||t.loading,fullWidth:!0,size:"small",required:!0,value:t.url,onChange:n=>{t.url=n.target.value,p()},error:!!t.error,InputProps:{endAdornment:o.jsx(Uo,{position:"end",children:s})}}),o.jsx(f,{sx:{display:"flex",gap:.5},children:t.edit?o.jsxs(o.Fragment,{children:[o.jsx(H,{color:"success",onClick:u((...n)=>{i(...n),t.edit=!1}),sx:{borderRadius:2,border:`1px solid ${j.strokeBorderBase}`},children:o.jsx(P,{icon:Oe})}),o.jsx(H,{color:"error",onClick:g,sx:{borderRadius:2,border:`1px solid ${j.strokeBorderBase}`},children:o.jsx(P,{icon:We})})]}):o.jsxs(o.Fragment,{children:[o.jsx(H,{onClick:()=>{t.edit=!0},sx:{borderRadius:2,border:`1px solid ${j.strokeBorderBase}`},children:o.jsx(P,{icon:jo})}),o.jsx(H,{color:"error",onClick:()=>{c({type:t.type,url:t.url})},sx:{borderRadius:2,border:`1px solid ${j.strokeBorderBase}`},children:o.jsx(P,{icon:wo})})]})})]})]})}function te({title:e,description:c,value:i,onChange:h}){return o.jsx(Ae,{checked:i,labelProps:{label:o.jsxs(B,{color:"text.primary",sx:{fontSize:14,display:"flex",flexFlow:"wrap",columnGap:1,flex:1},children:[e,c]})},size:"small",onChange:h})}function Go({user:e}){var u,s;const{locale:c}=z(),i=y((n,b={})=>L(T,n,c,"en",b)),h=K({showAdd:!1}),a=ae(async()=>await M.user.getUserNotificationConfig(),{refreshDeps:[e],loadingDelay:300}),d=C(()=>{var n;return{wallet:!0,email:!0,phone:!1,push:!0,...((n=a==null?void 0:a.data)==null?void 0:n.notifications)||{}}},[(u=a==null?void 0:a.data)==null?void 0:u.notifications]),x=C(()=>{var n;return((n=a==null?void 0:a.data)==null?void 0:n.webhooks)||[]},[(s=a==null?void 0:a.data)==null?void 0:s.webhooks]),r=y(async n=>{try{await M.user.saveUserNotificationConfig(n),_.success(i("saveSuccess")),a.run()}catch(b){_.error(X(b))}}),l=y(async(n,b)=>{await r({notifications:{[n]:b}})}),t=async n=>{try{await M.user.testNotificationWebhook(n),_.success(i("webhookTested"))}catch(b){_.error(X(b))}},p=y(async n=>{await r({webhooks:x.filter((b,m)=>m!==n)})}),g=y(async(n,b)=>{await r({webhooks:x.map((m,k)=>k===n?b:m)})}),v=y(async n=>{await r({webhooks:[...x,n]}),h.showAdd=!1});return a.error?o.jsx(zo,{severity:"error",children:a.error.message}):a.loading||!a.data?o.jsx(f,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100px"},children:o.jsx(oe,{})}):o.jsxs(f,{sx:{display:"flex",flexDirection:"column",gap:2},children:[o.jsxs(f,{sx:{display:"flex",flexDirection:"column",gap:1,alignItems:"start",".MuiFormControlLabel-root":{gap:1,m:0,flexDirection:{xs:"row-reverse",md:"row"},width:{xs:"100%",md:"unset"}},".MuiSwitch-track":{borderRadius:"100vw"},".MuiSwitch-thumb":{borderRadius:"100%"},".MuiSwitch-root.MuiSwitch-sizeSmall":{height:"20px",width:"36px",".MuiSwitch-thumb":{width:"16px",height:"16px"}}},children:[o.jsx(te,{value:d.wallet,title:i("walletNotification"),onChange:n=>l("wallet",n.target.checked),description:me(e)&&o.jsx(B,{component:"span",color:"text.secondary",fontSize:13,children:me(e)})}),o.jsx(te,{value:d.email,onChange:n=>l("email",n.target.checked),title:i("emailNotification"),description:(e==null?void 0:e.email)&&o.jsx(B,{component:"span",color:"text.secondary",fontSize:13,children:e==null?void 0:e.email})}),o.jsx(te,{value:d.push,title:i("pushNotification"),onChange:n=>l("push",n.target.checked)})]}),o.jsx($e,{}),o.jsxs(Do,{spacing:1.5,useFlexGap:!0,direction:"column",alignItems:"start",children:[x.map((n,b)=>o.jsx(we,{onTest:t,onDelete:()=>p(b),onSave:(...m)=>g(b,...m),type:n.type,url:n.url,edit:!1},`${b}_${n.url}`)),h.showAdd&&o.jsx(we,{onTest:t,onCancel:()=>{h.showAdd=!1},onSave:(...n)=>v(...n),edit:!0},"add"),o.jsx(ie,{variant:"outlined",size:"small",sx:{color:j.foregroundsFgBase,borderColor:j.strokeBorderBase,backgroundColor:j.buttonsButtonNeutral,"&:hover":{borderColor:j.strokeBorderBase,backgroundColor:j.buttonsButtonNeutralHover},py:.5,borderRadius:2},startIcon:o.jsx(P,{icon:yo}),onClick:()=>{h.showAdd=!0},children:i("addWebhook")})]})]})}function Vo({configList:e,onSave:c}){const[i,h]=O.useState(e),{locale:a}=z(),d=y((r,l={})=>L(T,r,a,"en",l)),x=y(async(r,l)=>{try{const t=await M.user.saveUserPrivacyConfig({[r]:!l});h(i.map(p=>({...p,value:(t==null?void 0:t[p.key])??p.value}))),_.success(d("saveSuccess")),c("privacy")}catch(t){_.error(X(t))}});return o.jsx(f,{sx:{display:"flex",flexDirection:"column",gap:1,alignItems:"start",".MuiFormControlLabel-root":{gap:1,m:0,flexDirection:{xs:"row-reverse",md:"row"},width:{xs:"100%",md:"unset"}},".MuiSwitch-track":{borderRadius:"100vw"},".MuiSwitch-thumb":{borderRadius:"100%"},".MuiSwitch-root.MuiSwitch-sizeSmall":{height:"20px",width:"36px",".MuiSwitch-thumb":{width:"16px",height:"16px"}}},children:i.map(r=>o.jsx(Ae,{checked:!r.value,labelProps:{label:o.jsx(B,{color:"text.primary",sx:{fontSize:14,display:"flex",flexFlow:"wrap",columnGap:1,flex:1},children:d("toPublic",{name:r.name})})},size:"small",onChange:l=>x(r.key,l.target.checked)},r.key))})}function qo({item:e}){var n,b,m,k,J;const{confirmApi:c,confirmHolder:i}=Pe(),h=K({loading:!1}),{locale:a}=z(),d=y((U,A={})=>L(T,U,a,"en",A)),{session:x}=O.useContext(ee),{bindOAuth:r,unbindOAuth:l,setBaseUrl:t,baseUrl:p}=x.useOAuth(),g={[S.AUTH0]:Se,[S.APPLE]:Ne,[S.GITHUB]:Ge,[S.GOOGLE]:Ve},v=C(()=>g[e==null?void 0:e.provider],[e==null?void 0:e.provider]),u=C(()=>He[e==null?void 0:e.provider]||"unknown",[e==null?void 0:e.provider]),s=y(async()=>{try{h.loading=!0,await new Promise((U,A)=>{var R;if(e!=null&&e._bind)c.open({title:d("thirdPartyLogin.confirmUnbind",{name:u}),content:d("thirdPartyLogin.confirmUnbindDescription",{name:u}),confirmButtonText:d("common.confirm"),cancelButtonText:d("common.cancel"),onConfirm(E){l({session:x,connectedAccount:{...qe(e,["did","pk"]),showProvider:e.provider,provider:e._rawProvider}}).then(U).catch(A),E()},onCancel:U});else{const E=p,Y=window==null?void 0:window.blocklet;let W="/";const N=Qe(Y),$=Xe(Y);N&&($!=null&&$.appPid)&&((R=x==null?void 0:x.user)!=null&&R.sourceAppPid)&&(W=$.appUrl),t(W),r({session:x,oauthItem:{...e,provider:e._rawProvider}}).then(U).catch(A).finally(()=>{t(E)})}})}catch(U){console.error(`Failed to ${e!=null&&e._bind?"unbind":"bind"} oauth account`,U)}finally{h.loading=!1}});return o.jsxs(o.Fragment,{children:[o.jsxs(f,{sx:{borderRadius:2,border:`1px solid ${j.strokeBorderBase}`,background:j.backgroundsBgField,display:"flex",alignItems:"center",py:1,px:1.5,gap:.75,fontSize:"14px",lineHeight:1,overflow:"hidden"},children:[o.jsx(f,{component:P,icon:v,width:"1em",height:"1em",sx:{flexShrink:0,fontSize:16}}),o.jsx(f,{sx:{flex:1},children:u}),o.jsxs(f,{sx:{display:"flex",alignItems:"center",gap:.5},children:[o.jsx(f,{sx:{flex:1,textOverflow:"ellipsis",overflow:"hidden",lineHeight:"normal"},children:((n=e.userInfo)==null?void 0:n.email)||e.did}),(b=e.userInfo)!=null&&b.email?o.jsx(re,{title:o.jsx(o.Fragment,{children:o.jsxs(f,{sx:{display:"flex",alignItems:"center",gap:1},children:[o.jsx(ke,{size:36,variant:"circle",shape:"circle",src:(m=e.userInfo)==null?void 0:m.picture,did:e.did}),o.jsxs(f,{children:[o.jsx(B,{sx:{whiteSpace:"normal",wordBreak:"break-all",fontSize:"0.9rem"},children:(k=e.userInfo)==null?void 0:k.name}),o.jsx(B,{sx:{whiteSpace:"normal",wordBreak:"break-all",fontSize:"0.9rem"},children:(J=e.userInfo)==null?void 0:J.email})]})]})}),children:o.jsx(f,{component:P,icon:ko,color:j.textSubtitle,fontSize:16,sx:{cursor:"pointer",flexShrink:0}})}):null]})]}),o.jsx(re,{title:e._mainProvider?d("thirdPartyLogin.mainProviderCantRemove"):"",children:o.jsx(f,{children:o.jsx(ie,{variant:"outlined",size:"small",sx:{color:e!=null&&e._bind?j.red:j.foregroundsFgBase,borderColor:e!=null&&e._bind?j.red:j.strokeBorderBase,backgroundColor:j.buttonsButtonNeutral,"&:hover":{borderColor:e!=null&&e._bind?j.red:j.strokeBorderBase,backgroundColor:j.buttonsButtonNeutralHover},py:.5,borderRadius:2,fontWeight:500,whiteSpace:"nowrap"},fullWidth:!0,startIcon:h.loading?null:o.jsx(P,{icon:Co}),onClick:s,disabled:e._mainProvider,loading:h.loading,children:e!=null&&e._bind?d("thirdPartyLogin.disconnect"):d("thirdPartyLogin.connect")})})}),i]})}function Qo({user:e}){const{session:c}=O.useContext(ee),[i,h]=O.useState({}),{getOAuthConfigs:a}=c.useOAuth();Ke(async()=>{const r=await a({sourceAppPid:e==null?void 0:e.sourceAppPid});h(r)},[e==null?void 0:e.sourceAppPid]);const d=C(()=>Object.keys(i).map(l=>({...i[l],provider:l})).filter(l=>l.enabled),[i]),x=C(()=>{const r=Je(e);let l=!1,t="",p=Ye(e);const g=r.find(u=>u.provider===S.AUTH0);return g&&(g.id.startsWith("google-oauth2|")&&(r.some(u=>u.provider==="google")||(l=!0,t=S.GOOGLE,p===S.AUTH0&&(p=S.GOOGLE))),g.id.startsWith("appleid|")&&(r.some(u=>u.provider===S.APPLE)||(l=!0,t=S.APPLE,p===S.AUTH0&&(p=S.APPLE))),g.id.startsWith("github|")&&(r.some(u=>u.provider===S.GITHUB)||(l=!0,t=S.GITHUB,p===S.AUTH0&&(p=S.GITHUB)))),d.map(u=>{if(u.provider===S.AUTH0&&l)return null;const s=l&&u.provider===t?r.find(n=>n.provider===S.AUTH0):r.find(n=>n.provider===u.provider);return s?{...u,provider:u.provider,did:s.did,pk:s.pk,userInfo:s.userInfo,_bind:!0,_rawProvider:s.provider,_mainProvider:u.provider===p}:{...u,provider:u.provider,_rawProvider:u.provider,_mainProvider:u.provider===p}}).filter(Boolean).sort((u,s)=>(u==null?void 0:u.order)!==void 0&&(s==null?void 0:s.order)!==void 0?u.order-s.order:(u==null?void 0:u.order)!==void 0?-1:1)},[e==null?void 0:e.connectedAccounts,d]);return o.jsx(f,{sx:{gap:1,display:"grid",gridTemplateColumns:"1fr min-content"},children:x.map(r=>o.jsx(qo,{item:r},r==null?void 0:r.provider))})}const Xo=[{name:"English",code:"en"},{name:"中文",code:"zh"}];function Ko({user:e,onSave:c}){const{locale:i,changeLocale:h}=z(),a=y((r,l={})=>L(T,r,i,"en",l)),d=K({locale:e.locale,loading:!1}),x=y(async r=>{try{const{value:l}=r.target;d.loading=!0,await M.user.saveProfile({locale:l}),await c("profile"),h(l),d.locale=l}catch(l){_.error(X(l))}finally{d.loading=!1}});return o.jsxs(f,{sx:{gap:1,display:"grid",alignItems:"center",gridTemplateColumns:{xs:"1fr",sm:"max-content 1fr"}},children:[o.jsx(f,{children:a("commonSetting.locale")}),o.jsxs(f,{children:[o.jsx(Ze,{color:"primary",sx:{visibility:d.loading?"visible":"hidden",height:2}}),o.jsx(Be,{fullWidth:!0,value:d.locale,onChange:x,size:"small",children:(window.blocklet.languages||Xo).map(r=>o.jsx(ne,{value:r.code,children:r.name}))})]})]})}function Jo({user:e,settings:c,onSave:i,...h}){const{locale:a}=z(),d=y((g,v={})=>L(T,g,a,"en",v)),x=C(()=>((c==null?void 0:c.userCenterTabs)||[]).map(v=>({key:v.value,name:v.label,value:v.protected})),[c==null?void 0:c.userCenterTabs]),r=C(()=>{var g;return[{label:d("commonSetting.title"),value:"common",content:o.jsx(Ko,{user:e,onSave:i})},{label:d("notificationManagement"),value:"notification",content:o.jsx(Go,{user:e})},{label:d("thirdPartyLogin.title"),value:"thirdPartyLogin",content:o.jsx(Qo,{user:e})},{label:d("privacyManagement"),value:"privacy",content:o.jsx(Vo,{configList:x,onSave:i})},((g=e==null?void 0:e.didSpace)==null?void 0:g.endpoint)&&{label:d("storageManagement"),value:"storage",content:o.jsx(So,{children:o.jsx(Po,{})})},{label:d("sessionManagement"),value:"session",content:o.jsx(Bo,{user:e})}].filter(Boolean)},[e,x]),l=K({tab:r[0].value}),t=C(()=>r.find(g=>g.value===l.tab),[l.tab,r]),p=y(g=>{l.tab=g});return t&&o.jsxs(f,{...h,sx:{...h==null?void 0:h.sx,minWidth:{md:500},maxWidth:"100%"},children:[o.jsx(Ie,{variant:"card",tabs:r,current:t.value,onChange:p}),o.jsx(f,{mt:2.5,children:t.content})]})}function Yo({children:e,notLoginContent:c=null,currentTab:i,contentProps:h={},disableAutoRedirect:a=!1,autoPopupSetting:d=!1,hideFooter:x=!1,headerProps:r={},footerProps:l={},userDid:t=void 0,stickySidebar:p=!1}){var le,ce,de,pe,ue,xe;const{locale:g}=z(),v=y((w,I={})=>L(T,w,g,"en",I)),u=O.useContext(ee),s=u==null?void 0:u.session,n=C(()=>{var D;if(t)return t;const w=window.location.href,I=eo(w);return I!=null&&I.did?Array.isArray(I.did)?I.did[0]:I.did:(D=s==null?void 0:s.user)==null?void 0:D.did},[(le=s==null?void 0:s.user)==null?void 0:le.did,t]),b=C(()=>{var w;return s!=null&&s.user?n===((w=s==null?void 0:s.user)==null?void 0:w.did):!1},[n,(ce=s==null?void 0:s.user)==null?void 0:ce.did]),m=ae(async()=>{if(await oo(()=>s==null?void 0:s.initialized),b)return s.user;if(n)return M.user.getUserPublicInfo({did:n})},{refreshDeps:[n,b,s==null?void 0:s.initialized,s==null?void 0:s.user]}),k=ae(async()=>m.data&&i?await M.user.getUserPrivacyConfig({did:n}):null,{refreshDeps:[n,m.data,i],loadingDelay:300}),{confirmHolder:J,confirmApi:U}=Pe({sx:{".MuiDialog-paper":{borderRadius:2,maxWidth:1200},".ux-dialog_title":{fontWeight:600},".ux-dialog_closeButton":{p:1},".MuiDialogActions-root":{display:{xs:"none",md:"flex"}}}}),A=C(()=>{const w=to(window.blocklet);try{return po(w)}catch(I){return console.error("Failed to format blocklet info",I,w),w}},[]),R=C(()=>{var D;const w=((D=A==null?void 0:A.navigation)==null?void 0:D.userCenter)||[];return(uo(w,g)||[]).map(F=>{var V;const G=F._rawLink??F.link;return{value:G,label:F.title,url:F.link,protected:((V=k==null?void 0:k.data)==null?void 0:V[G])??!1}})},[A,m.data,k==null?void 0:k.data,g]),E=C(()=>R.find(w=>w.value===i),[R]),Y=y(w=>{const I=R.find(D=>D.value===w);I&&(window.location.href=be(I.url,{did:b?void 0:n}))}),W=C(()=>o.jsx(Jo,{user:m.data,settings:{userCenterTabs:R},onSave:async w=>w==="privacy"?(await k.runAsync(),k.data):(w==="profile"&&await s.refresh(),null)}),[m.data,R,k.data,k.runAsync]),N=y(()=>{U.open({title:v("settings"),content:W,showCancelButton:!1,confirmButtonText:v("done"),onConfirm:U.close})});ro(()=>{U.update({content:W})},[W]),no(()=>{d&&N()});const $=C(()=>{var w,I,D,F,G;if(m.loading||s.loading)return null;if(m.error){if(((I=(w=m.error)==null?void 0:w.response)==null?void 0:I.status)===404)return o.jsx(f,{sx:{width:"100%"},children:o.jsx(ao,{status:404,description:v("noUserFound")})});const Te={message:((F=(D=m.error.response)==null?void 0:D.data)==null?void 0:F.error)||m.error.message||"error occurred"};return o.jsx(f,{sx:{width:"100%"},children:o.jsx(Io,{error:Te})})}return!n&&!m.data?c||o.jsx(f,{sx:{width:"100%"},children:o.jsxs(f,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:1},children:[o.jsx(Z,{children:v("viewAfterLogin")}),o.jsx(ie,{size:"small",variant:"contained",onClick:()=>s.login(),children:v("loginNow")})]})}):o.jsxs(o.Fragment,{children:[o.jsxs(f,{sx:[{flex:{xs:"revert",md:1},overflow:"hidden"}],children:[(G=m==null?void 0:m.data)!=null&&G.fullName?o.jsx(B,{variant:"h4",sx:{py:1.5,fontWeight:700,display:{xs:"none",md:"block"}},children:m.data.fullName}):null,o.jsx(je,{isMyself:b,switchPassport:s.switchPassport,switchProfile:s.switchProfile,openSettings:N,user:m.data,showFullDid:!1,sx:{display:{md:"none",xs:"block"},mb:1.5}}),R.length>0&&i?o.jsxs(f,{sx:{overflow:"auto",padding:"1px"},children:[o.jsx(Ie,{variant:"line",tabs:R,current:i,onChange:Y,sx:{mb:1.5}}),!k.data||k.loading?o.jsx(f,{sx:{height:"100%",minWidth:"160px",minHeight:"160px",display:"flex",justifyContent:"center",alignItems:"center"},children:o.jsx(oe,{sx:{color:j.primary100}})}):o.jsx(o.Fragment,{children:E!=null&&E.protected&&!b?o.jsx(f,{children:o.jsx(Z,{children:v("underProtected")})}):o.jsx(o.Fragment,{children:e&&o.jsx(f,{...h,children:e})})})]}):null,R.length===0?o.jsx(f,{sx:{display:{xs:b?"none":"block",md:"block"},py:3},children:o.jsx(Z,{children:v("emptyContent")})}):null]}),o.jsx(f,{sx:{display:{xs:"none",md:"block"},width:"1px",my:-3,backgroundColor:j.strokeSep}}),o.jsx(f,{sx:{width:{sx:"100%",md:420},maxWidth:"100%",position:"relative"},children:o.jsxs(f,{sx:{display:"flex",flexDirection:"column",gap:2.5,position:{xs:"static",md:p?"sticky":"static"},top:V=>p?V.spacing(3):"unset"},children:[o.jsx(je,{isMyself:b,switchPassport:s.switchPassport,switchProfile:s.switchProfile,openSettings:N,user:m.data,sx:{display:{xs:"none",md:"block"}}}),o.jsxs(f,{children:[o.jsx(B,{sx:{fontWeight:600,mb:1.5},children:v(b?"myInfo":"hisInfo")}),o.jsx(Ho,{user:m.data,isMySelf:b})]}),b?o.jsxs(f,{children:[o.jsx(B,{sx:{fontWeight:600,mb:1.5},children:v("passport")}),o.jsx(No,{user:m.data})]}):null]})})]})},[m,R,b,E,k,i,p]);if(!a&&!i&&((pe=(de=A==null?void 0:A.navigation)==null?void 0:de.userCenter)==null?void 0:pe.length)>0){const w=(xe=(ue=A==null?void 0:A.navigation)==null?void 0:ue.userCenter[0])==null?void 0:xe.link;return w&&window.location.replace(be(w,{did:b?void 0:n})),null}return o.jsxs(f,{sx:{backgroundColor:j.backgroundsBgSubtitle,minHeight:"100vh",display:"flex",flexDirection:"column"},children:[o.jsx(lo,{bordered:!0,...r}),o.jsxs(f,{flex:1,sx:{width:"100%",maxWidth:1200,margin:"0 auto",p:3,display:"flex",alignItems:"stretch",flexDirection:{xs:"column",md:"row"},gap:2.5},children:[$,J]}),x?null:o.jsx(co,{bordered:!0,...l})]})}function Ht(){const c=io().tab,{t:i}=z();return o.jsxs(o.Fragment,{children:[o.jsx(so,{children:o.jsx("title",{children:i("pageTitle.userCenter")})}),o.jsx(Yo,{disableAutoRedirect:c==="settings",autoPopupSetting:c==="settings"})]})}export{Ht as default};
1
+ import{X as Ue,Y as ze,j as o,bA as Q,c as fe,bB as he,u as z,r as O,bC as ee,l as y,k as C,aj as ye,B as f,A as ke,bD as q,T as B,bf as De,bE as j,bF as P,bG as _e,bH as Ee,a as re,bI as L,n as oe,D as Ce,aC as H,t as _,bJ as Fe,bK as Se,bL as ge,bM as Me,N as K,aT as ne,bN as Oe,bO as We,O as ae,bP as me,aS as $e,a1 as ie,bQ as Pe,bR as He,bS as S,bT as Ne,bU as Ge,bV as Ve,bW as qe,s as Qe,q as Xe,bX as Ke,bY as Je,bZ as Ye,b_ as Ze,b$ as eo,c0 as oo,c1 as to,c2 as ro,m as no,R as ao,w as be,bx as io,H as so}from"./index-BaC4EhQh.js";import{H as lo,F as co}from"./index-CFpdZL6w.js";import{f as po,g as uo}from"./index-BCMjvLku.js";import{S as xo,t as T,P as fo,a as ho,b as go,M as mo,C as ve,c as bo,d as vo,E as jo,D as wo,A as yo,e as M,I as ko,L as Co,f as So,g as Po}from"./resource-dialog-DhmviK8K.js";import{T as Ie}from"./index-BK9kuqs5.js";import{E as Z}from"./index-B3ThwVSS.js";import{E as Io}from"./fallback-BLJkxLTK.js";import{d as Ao,U as Bo}from"./user-sessions-D_s7CT2k.js";import{u as Ro}from"./uniqBy-DIeGY4K_.js";import{S as Ae}from"./index-ChWrF7R7.js";import{i as Lo}from"./index-CD6yQnY4.js";import{S as Be}from"./Select-_ZzhxUOz.js";import{T as To}from"./TextField-DvTYZ6EA.js";import{I as Uo}from"./InputAdornment-BGOXKboF.js";import{A as zo}from"./Alert-DDr4PUmN.js";import{S as Do}from"./Stack-DuNNAX-1.js";import"./index-CT70Tuv9.js";import"./index-DiOkeCOc.js";import"./Toolbar-DbekG5v-.js";import"./Hidden-Bg6BPxEd.js";import"./ExpandMore-BgcTT2Bb.js";import"./Avatar-Der2Q3Zi.js";import"./useSlot-nO86v-Bn.js";import"./MoreVert-D_g6Th6c.js";import"./selector-B8IAFODK.js";import"./OpenInNew-DBNjDxil.js";import"./CloseOutlined-OBzuC30j.js";import"./use-mobile-BA_cO1yG.js";import"./Link-CiVKLn7B.js";import"./FormControlLabel-BJXWJJky.js";import"./useFormControl-CAWQrhew.js";import"./FormControl-D00yHDcj.js";import"./InputLabel-BaHBEVm2.js";import"./useThemeProps-CIT7yB5m.js";import"./toPropertyKey-PLuKRk1e.js";import"./index-s95vTNww.js";import"./redux-Bma4eNss.js";import"./ViewColumn-BOqfI3PF.js";import"./FormGroup-CBgybl1l.js";import"./ListItemText-BW_owdy0.js";import"./LastPage-DyrTuTrl.js";import"./Search-Cm2FDsnl.js";import"./Delete-DVYTl7-n.js";var se={},_o=ze;Object.defineProperty(se,"__esModule",{value:!0});var Re=se.default=void 0,Eo=_o(Ue()),Fo=o;Re=se.default=(0,Eo.default)((0,Fo.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"RefreshOutlined");const Le=(e,c)=>{let i;return e==="default"?i=Q.DEFAULT_COLORS["app-passport"]:e==="auto"?i=Q.getNftBGColorFromDid(c):i=Q.getNftBGColor(e),i},Mo=({issuer:e="",title:c="",issuerDid:i="",issuerAvatarUrl:h="",ownerDid:a="",ownerAvatarUrl:d="",preferredColor:x="default",revoked:r=!1,isDataUrl:l=!1,width:t="100%",height:p="100%"})=>{const g=Le(x,i),v=Q.getSvg({width:t,height:p,tag:r?"revoked":"",tagVariant:r?"error":"info",color:g,did:a,variant:"app-passport",verifiable:!0,issuer:{name:e,icon:h},header:{name:c,icon:d},extra:{key:"Exp",value:"2123-01-01"}});return l?`data:image/svg+xml;utf8,${encodeURIComponent(v)}`:v},Oo=({issuer:e="",title:c="",issuerDid:i="",issuerAvatarUrl:h="",ownerDid:a="",ownerName:d="",ownerAvatarUrl:x="",preferredColor:r="default",type:l="email",revoked:t=!1,isDataUrl:p=!1,width:g="100%",height:v="100%"})=>{const u=Le(r,i),s=Q.getSvg({width:g,height:v,tag:t?"revoked":"",tagVariant:t?"error":"info",color:u,did:a,variant:"app-kyc",verifiable:!0,issuer:{name:e,icon:h},header:{name:d,icon:x},extra:{key:l,value:c}});return p?`data:image/svg+xml;utf8,${encodeURIComponent(s)}`:s},X=e=>{const{response:c}=e;return c?`Request failed: ${c.status} ${c.statusText}: ${JSON.stringify(c.data)}`:e.message},Wo=e=>e.scope==="kyc"?Oo({...e,issuerAvatarUrl:fe(window.location.origin,he,"/blocklet/logo"),type:e.role}):Mo({...e,issuerAvatarUrl:fe(window.location.origin,he,"/blocklet/logo")});function je({user:e,isMyself:c=!0,showFullDid:i=!0,switchPassport:h,switchProfile:a,openSettings:d,...x}){var b;const{locale:r}=z(),{session:l}=O.useContext(ee),[t,p]=O.useState(!1),g=y((m,k={})=>L(T,m,r,"en",k)),v=C(()=>{var m;return(m=(e==null?void 0:e.passports)||[])==null?void 0:m.find(k=>k.name===e.role)},[e==null?void 0:e.passports,e==null?void 0:e.role]),u=ye(),s=u.breakpoints.down("md");if(!e)return null;const n=async()=>{try{p(!0),await l.refreshProfile(),l.refresh(),_.success(L(T,"refreshProfile.successfully",r))}catch(m){console.error(m),_.error(X(m))}finally{p(!1)}};return o.jsxs(f,{...x,sx:{position:"relative",...x.sx},children:[o.jsx(ke,{src:e==null?void 0:e.avatar,did:e==null?void 0:e.did,size:s?64:80,variant:"circle",shape:"circle",sx:{borderRadius:"100%",backgroundColor:"#fff",position:"relative",overflow:"hidden",mb:1.5,...c?{cursor:"pointer","&:hover":{"&::after":{content:`"${g("switchProfile")}"`}},"&::after":{color:"white",position:"absolute",fontSize:"12px",bottom:0,left:0,right:0,height:"50%",backgroundColor:"rgba(0, 0, 0, 0.3)",display:"flex",justifyContent:"center",alignItems:"center"}}:{}},onClick:c?a:q}),o.jsxs(B,{variant:"h6",sx:{fontWeight:"bold",display:"flex",alignItems:"center",gap:1,fontSize:"24px !important"},children:[e==null?void 0:e.fullName,c?o.jsxs(o.Fragment,{children:[o.jsx(De,{label:(v==null?void 0:v.title)||(e==null?void 0:e.role)||"Guest",size:"small",variant:"outlined",sx:{flexShrink:0,fontWeight:"bold",fontSize:"12px",color:j.textBase,borderColor:j.strokeBorderStrong,backgroundColor:"transparent",textTransform:"capitalize",pr:1,pl:.5,"&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"},"&:active":{boxShadow:"none"}},clickable:!0,deleteIcon:o.jsx(P,{icon:_e,color:j.textBase}),onDelete:h,onClick:h}),!Ee(e.url)&&o.jsx(re,{title:!t&&L(T,"refreshProfile.title",r),sx:{display:"flex",alignItems:"center"},children:t?o.jsx(oe,{size:"16px",sx:{color:(b=u==null?void 0:u.colors)==null?void 0:b.primary,ml:.5}}):o.jsx(Re,{onClick:n})})]}):null]}),o.jsx(Ce,{did:e.did,showQrcode:!0,copyable:!0,compact:!i,responsive:!i,locale:r}),c?o.jsx(H,{sx:{borderRadius:2,color:j.textBase,backgroundColor:"white",border:`1px solid ${j.strokeBorderBase}`,position:"absolute",top:0,right:0},disableFocusRipple:!0,onClick:d,children:o.jsx(P,{icon:xo})}):null]})}function $o({data:e,verified:c,...i}){return o.jsxs(f,{...i,sx:{display:"flex",alignItems:"center",justifyContent:"space-between",...i.sx},children:[o.jsxs(B,{sx:{display:"flex",alignItems:"center",color:j.textBase,fontSize:"14px",gap:1,fontWeight:500},children:[e.icon,e.title]}),o.jsxs(f,{display:"flex",flexDirection:"row",alignItems:"center",children:[o.jsx(B,{sx:{color:j.textSubtitle,whiteSpace:"pre-wrap",fontSize:"14px"},children:e.content}),c&&o.jsx(Ao,{color:"success",style:{fontSize:16,marginLeft:4}})]})]})}function Ho({user:e,isMySelf:c=!1,...i}){const{locale:h}=z(),a=y((r,l={})=>L(T,r,h,"en",l)),d=C(()=>(e==null?void 0:e.sourceProvider)&&Fe[e.sourceProvider]||a("unknown"),[e==null?void 0:e.sourceProvider]),x=[];return c&&(x.push({icon:o.jsx(P,{fontSize:16,icon:Se}),title:a("email"),content:(e==null?void 0:e.email)||a("emptyField"),verified:e==null?void 0:e.emailVerified}),x.push({icon:o.jsx(P,{fontSize:16,icon:fo}),title:a("phone"),content:(e==null?void 0:e.phone)||a("emptyField"),verified:e==null?void 0:e.phoneVerified}),x.push({icon:o.jsx(P,{fontSize:16,icon:ho}),title:a("lastLoginAt"),content:e!=null&&e.lastLoginAt?o.jsx(ge,{locale:h,value:e==null?void 0:e.lastLoginAt,relativeRange:3*86400*1e3}):a("unknown")}),x.push({icon:o.jsx(P,{fontSize:16,icon:go}),title:a("lastLoginIp"),content:(e==null?void 0:e.lastLoginIp)||a("unknown")})),x.push({icon:o.jsx(P,{fontSize:16,icon:mo}),title:a("createdAt"),content:e!=null&&e.createdAt?o.jsx(ge,{locale:h,value:e==null?void 0:e.createdAt}):a("unknown")}),c&&(x.push({icon:o.jsx(P,{fontSize:16,icon:ve}),title:a("registerFrom"),content:d}),x.push({icon:o.jsx(P,{fontSize:16,icon:ve}),title:a("invitedBy"),content:e!=null&&e.inviter?o.jsx(Ce,{did:e.inviter,showQrcode:!0,copyable:!0,compact:!0,responsive:!0,locale:h}):"-"})),o.jsx(f,{...i,sx:{display:"flex",flexDirection:"column",gap:1.5,...i==null?void 0:i.sx},children:x.map(r=>o.jsx($o,{data:r,sx:{flex:1},verified:r.verified},r.title))})}function No({user:e,...c}){var l,t;const{locale:i}=z(),h=y((p,g={})=>L(T,p,i,"en",g)),a=ye(),d=C(()=>{const p=((e==null?void 0:e.passports)||[]).map(g=>({...g,revoked:g.status===Me.REVOKED}));return p.sort((g,v)=>g.revoked===v.revoked?0:g.revoked?1:-1),Ro(p,"role")},[e==null?void 0:e.passports]),x=C(()=>d==null?void 0:d.find(p=>p.name===e.role),[d,e==null?void 0:e.role]),r=C(()=>{var p,g;return((g=(p=a==null?void 0:a.palette)==null?void 0:p.primary)==null?void 0:g.main)||j.textBase},[(t=(l=a==null?void 0:a.palette)==null?void 0:l.primary)==null?void 0:t.main]);return d.length===0?o.jsx(f,{children:o.jsx(Z,{children:h("noPassport")})}):o.jsx(f,{...c,sx:{display:"grid",gridTemplateColumns:{xs:"repeat(2, 1fr)",sm:"repeat(3, 1fr)",md:"repeat(2, 1fr)"},gap:2.5,...c.sx},children:d.map(p=>o.jsx(bo,{passport:p,user:e,color:window.blocklet.passportColor,createPassportSvg:Wo,title:x&&x.role===p.role?h("currentPassport"):"",sx:{flexDirection:"column",alignItems:"center",gap:1,".passport-item__display":{width:166,height:166,borderRadius:2,px:2,display:"flex",justifyContent:"center",backgroundColor:j.backgroundsBgComponent,boxShadow:x&&x.role===p.role?`0px 2px 4px 0px ${r}, 0px 1px 2px -1px ${r}, 0px 0px 0px 1px ${r} !important`:"unset"},".passport-item__body":{marginLeft:"0 !important"}}},p.id))})}function we({onTest:e=q,onDelete:c=q,onSave:i=q,onCancel:h=q,type:a="slack",url:d="",edit:x=!1}){const{locale:r}=z(),l=y((n,b={})=>L(T,n,r,"en",b)),t=K({type:a||"slack",url:d||"",edit:x??!1,error:"",loading:!1}),p=y(()=>t.url?Lo(t.url)?(t.error="",!0):(t.error=l("common.invalid"),!1):(t.error=l("common.required"),!1)),g=y(()=>{t.edit=!1,t.url=d||"",t.type=a||"slack",t.error="",t.loading=!1,h()}),v=y(async n=>{t.loading=!0,await e(n),t.loading=!1}),u=y(n=>()=>{p()&&n({type:t.type,url:t.url})}),s=C(()=>t.error?o.jsx(B,{component:"span",color:"error",children:t.error}):t.edit?t.loading?o.jsx(oe,{size:16}):o.jsx(H,{size:"small",onClick:u(v),sx:{mr:-1},children:o.jsx(P,{icon:vo})}):null,[t.error,t.edit,t.loading]);return o.jsxs(f,{sx:{display:"flex",gap:1.5,width:"100%",alignItems:{xs:"flex-start",md:"center"},flexDirection:{xs:"column",md:"row"}},children:[o.jsxs(Be,{sx:{borderRadius:2,"&.Mui-disabled":{backgroundColor:j.backgroundsBgField}},disabled:!t.edit||t.loading,size:"small",value:t.type,onChange:n=>{t.type=n.target.value},children:[o.jsx(ne,{value:"api",children:l("webhook.url")}),o.jsx(ne,{value:"slack",children:l("webhook.slack")})]}),o.jsxs(f,{sx:{display:"flex",alignItems:"center",gap:.5,width:"100%"},children:[o.jsx(To,{sx:{flex:1,".MuiInputBase-root":{borderRadius:2,"&.Mui-disabled":{backgroundColor:j.backgroundsBgField}}},disabled:!t.edit||t.loading,fullWidth:!0,size:"small",required:!0,value:t.url,onChange:n=>{t.url=n.target.value,p()},error:!!t.error,InputProps:{endAdornment:o.jsx(Uo,{position:"end",children:s})}}),o.jsx(f,{sx:{display:"flex",gap:.5},children:t.edit?o.jsxs(o.Fragment,{children:[o.jsx(H,{color:"success",onClick:u((...n)=>{i(...n),t.edit=!1}),sx:{borderRadius:2,border:`1px solid ${j.strokeBorderBase}`},children:o.jsx(P,{icon:Oe})}),o.jsx(H,{color:"error",onClick:g,sx:{borderRadius:2,border:`1px solid ${j.strokeBorderBase}`},children:o.jsx(P,{icon:We})})]}):o.jsxs(o.Fragment,{children:[o.jsx(H,{onClick:()=>{t.edit=!0},sx:{borderRadius:2,border:`1px solid ${j.strokeBorderBase}`},children:o.jsx(P,{icon:jo})}),o.jsx(H,{color:"error",onClick:()=>{c({type:t.type,url:t.url})},sx:{borderRadius:2,border:`1px solid ${j.strokeBorderBase}`},children:o.jsx(P,{icon:wo})})]})})]})]})}function te({title:e,description:c,value:i,onChange:h}){return o.jsx(Ae,{checked:i,labelProps:{label:o.jsxs(B,{color:"text.primary",sx:{fontSize:14,display:"flex",flexFlow:"wrap",columnGap:1,flex:1},children:[e,c]})},size:"small",onChange:h})}function Go({user:e}){var u,s;const{locale:c}=z(),i=y((n,b={})=>L(T,n,c,"en",b)),h=K({showAdd:!1}),a=ae(async()=>await M.user.getUserNotificationConfig(),{refreshDeps:[e],loadingDelay:300}),d=C(()=>{var n;return{wallet:!0,email:!0,phone:!1,push:!0,...((n=a==null?void 0:a.data)==null?void 0:n.notifications)||{}}},[(u=a==null?void 0:a.data)==null?void 0:u.notifications]),x=C(()=>{var n;return((n=a==null?void 0:a.data)==null?void 0:n.webhooks)||[]},[(s=a==null?void 0:a.data)==null?void 0:s.webhooks]),r=y(async n=>{try{await M.user.saveUserNotificationConfig(n),_.success(i("saveSuccess")),a.run()}catch(b){_.error(X(b))}}),l=y(async(n,b)=>{await r({notifications:{[n]:b}})}),t=async n=>{try{await M.user.testNotificationWebhook(n),_.success(i("webhookTested"))}catch(b){_.error(X(b))}},p=y(async n=>{await r({webhooks:x.filter((b,m)=>m!==n)})}),g=y(async(n,b)=>{await r({webhooks:x.map((m,k)=>k===n?b:m)})}),v=y(async n=>{await r({webhooks:[...x,n]}),h.showAdd=!1});return a.error?o.jsx(zo,{severity:"error",children:a.error.message}):a.loading||!a.data?o.jsx(f,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100px"},children:o.jsx(oe,{})}):o.jsxs(f,{sx:{display:"flex",flexDirection:"column",gap:2},children:[o.jsxs(f,{sx:{display:"flex",flexDirection:"column",gap:1,alignItems:"start",".MuiFormControlLabel-root":{gap:1,m:0,flexDirection:{xs:"row-reverse",md:"row"},width:{xs:"100%",md:"unset"}},".MuiSwitch-track":{borderRadius:"100vw"},".MuiSwitch-thumb":{borderRadius:"100%"},".MuiSwitch-root.MuiSwitch-sizeSmall":{height:"20px",width:"36px",".MuiSwitch-thumb":{width:"16px",height:"16px"}}},children:[o.jsx(te,{value:d.wallet,title:i("walletNotification"),onChange:n=>l("wallet",n.target.checked),description:me(e)&&o.jsx(B,{component:"span",color:"text.secondary",fontSize:13,children:me(e)})}),o.jsx(te,{value:d.email,onChange:n=>l("email",n.target.checked),title:i("emailNotification"),description:(e==null?void 0:e.email)&&o.jsx(B,{component:"span",color:"text.secondary",fontSize:13,children:e==null?void 0:e.email})}),o.jsx(te,{value:d.push,title:i("pushNotification"),onChange:n=>l("push",n.target.checked)})]}),o.jsx($e,{}),o.jsxs(Do,{spacing:1.5,useFlexGap:!0,direction:"column",alignItems:"start",children:[x.map((n,b)=>o.jsx(we,{onTest:t,onDelete:()=>p(b),onSave:(...m)=>g(b,...m),type:n.type,url:n.url,edit:!1},`${b}_${n.url}`)),h.showAdd&&o.jsx(we,{onTest:t,onCancel:()=>{h.showAdd=!1},onSave:(...n)=>v(...n),edit:!0},"add"),o.jsx(ie,{variant:"outlined",size:"small",sx:{color:j.foregroundsFgBase,borderColor:j.strokeBorderBase,backgroundColor:j.buttonsButtonNeutral,"&:hover":{borderColor:j.strokeBorderBase,backgroundColor:j.buttonsButtonNeutralHover},py:.5,borderRadius:2},startIcon:o.jsx(P,{icon:yo}),onClick:()=>{h.showAdd=!0},children:i("addWebhook")})]})]})}function Vo({configList:e,onSave:c}){const[i,h]=O.useState(e),{locale:a}=z(),d=y((r,l={})=>L(T,r,a,"en",l)),x=y(async(r,l)=>{try{const t=await M.user.saveUserPrivacyConfig({[r]:!l});h(i.map(p=>({...p,value:(t==null?void 0:t[p.key])??p.value}))),_.success(d("saveSuccess")),c("privacy")}catch(t){_.error(X(t))}});return o.jsx(f,{sx:{display:"flex",flexDirection:"column",gap:1,alignItems:"start",".MuiFormControlLabel-root":{gap:1,m:0,flexDirection:{xs:"row-reverse",md:"row"},width:{xs:"100%",md:"unset"}},".MuiSwitch-track":{borderRadius:"100vw"},".MuiSwitch-thumb":{borderRadius:"100%"},".MuiSwitch-root.MuiSwitch-sizeSmall":{height:"20px",width:"36px",".MuiSwitch-thumb":{width:"16px",height:"16px"}}},children:i.map(r=>o.jsx(Ae,{checked:!r.value,labelProps:{label:o.jsx(B,{color:"text.primary",sx:{fontSize:14,display:"flex",flexFlow:"wrap",columnGap:1,flex:1},children:d("toPublic",{name:r.name})})},size:"small",onChange:l=>x(r.key,l.target.checked)},r.key))})}function qo({item:e}){var n,b,m,k,J;const{confirmApi:c,confirmHolder:i}=Pe(),h=K({loading:!1}),{locale:a}=z(),d=y((U,A={})=>L(T,U,a,"en",A)),{session:x}=O.useContext(ee),{bindOAuth:r,unbindOAuth:l,setBaseUrl:t,baseUrl:p}=x.useOAuth(),g={[S.AUTH0]:Se,[S.APPLE]:Ne,[S.GITHUB]:Ge,[S.GOOGLE]:Ve},v=C(()=>g[e==null?void 0:e.provider],[e==null?void 0:e.provider]),u=C(()=>He[e==null?void 0:e.provider]||"unknown",[e==null?void 0:e.provider]),s=y(async()=>{try{h.loading=!0,await new Promise((U,A)=>{var R;if(e!=null&&e._bind)c.open({title:d("thirdPartyLogin.confirmUnbind",{name:u}),content:d("thirdPartyLogin.confirmUnbindDescription",{name:u}),confirmButtonText:d("common.confirm"),cancelButtonText:d("common.cancel"),onConfirm(E){l({session:x,connectedAccount:{...qe(e,["did","pk"]),showProvider:e.provider,provider:e._rawProvider}}).then(U).catch(A),E()},onCancel:U});else{const E=p,Y=window==null?void 0:window.blocklet;let W="/";const N=Qe(Y),$=Xe(Y);N&&($!=null&&$.appPid)&&((R=x==null?void 0:x.user)!=null&&R.sourceAppPid)&&(W=$.appUrl),t(W),r({session:x,oauthItem:{...e,provider:e._rawProvider}}).then(U).catch(A).finally(()=>{t(E)})}})}catch(U){console.error(`Failed to ${e!=null&&e._bind?"unbind":"bind"} oauth account`,U)}finally{h.loading=!1}});return o.jsxs(o.Fragment,{children:[o.jsxs(f,{sx:{borderRadius:2,border:`1px solid ${j.strokeBorderBase}`,background:j.backgroundsBgField,display:"flex",alignItems:"center",py:1,px:1.5,gap:.75,fontSize:"14px",lineHeight:1,overflow:"hidden"},children:[o.jsx(f,{component:P,icon:v,width:"1em",height:"1em",sx:{flexShrink:0,fontSize:16}}),o.jsx(f,{sx:{flex:1},children:u}),o.jsxs(f,{sx:{display:"flex",alignItems:"center",gap:.5},children:[o.jsx(f,{sx:{flex:1,textOverflow:"ellipsis",overflow:"hidden",lineHeight:"normal"},children:((n=e.userInfo)==null?void 0:n.email)||e.did}),(b=e.userInfo)!=null&&b.email?o.jsx(re,{title:o.jsx(o.Fragment,{children:o.jsxs(f,{sx:{display:"flex",alignItems:"center",gap:1},children:[o.jsx(ke,{size:36,variant:"circle",shape:"circle",src:(m=e.userInfo)==null?void 0:m.picture,did:e.did}),o.jsxs(f,{children:[o.jsx(B,{sx:{whiteSpace:"normal",wordBreak:"break-all",fontSize:"0.9rem"},children:(k=e.userInfo)==null?void 0:k.name}),o.jsx(B,{sx:{whiteSpace:"normal",wordBreak:"break-all",fontSize:"0.9rem"},children:(J=e.userInfo)==null?void 0:J.email})]})]})}),children:o.jsx(f,{component:P,icon:ko,color:j.textSubtitle,fontSize:16,sx:{cursor:"pointer",flexShrink:0}})}):null]})]}),o.jsx(re,{title:e._mainProvider?d("thirdPartyLogin.mainProviderCantRemove"):"",children:o.jsx(f,{children:o.jsx(ie,{variant:"outlined",size:"small",sx:{color:e!=null&&e._bind?j.red:j.foregroundsFgBase,borderColor:e!=null&&e._bind?j.red:j.strokeBorderBase,backgroundColor:j.buttonsButtonNeutral,"&:hover":{borderColor:e!=null&&e._bind?j.red:j.strokeBorderBase,backgroundColor:j.buttonsButtonNeutralHover},py:.5,borderRadius:2,fontWeight:500,whiteSpace:"nowrap"},fullWidth:!0,startIcon:h.loading?null:o.jsx(P,{icon:Co}),onClick:s,disabled:e._mainProvider,loading:h.loading,children:e!=null&&e._bind?d("thirdPartyLogin.disconnect"):d("thirdPartyLogin.connect")})})}),i]})}function Qo({user:e}){const{session:c}=O.useContext(ee),[i,h]=O.useState({}),{getOAuthConfigs:a}=c.useOAuth();Ke(async()=>{const r=await a({sourceAppPid:e==null?void 0:e.sourceAppPid});h(r)},[e==null?void 0:e.sourceAppPid]);const d=C(()=>Object.keys(i).map(l=>({...i[l],provider:l})).filter(l=>l.enabled),[i]),x=C(()=>{const r=Je(e);let l=!1,t="",p=Ye(e);const g=r.find(u=>u.provider===S.AUTH0);return g&&(g.id.startsWith("google-oauth2|")&&(r.some(u=>u.provider==="google")||(l=!0,t=S.GOOGLE,p===S.AUTH0&&(p=S.GOOGLE))),g.id.startsWith("appleid|")&&(r.some(u=>u.provider===S.APPLE)||(l=!0,t=S.APPLE,p===S.AUTH0&&(p=S.APPLE))),g.id.startsWith("github|")&&(r.some(u=>u.provider===S.GITHUB)||(l=!0,t=S.GITHUB,p===S.AUTH0&&(p=S.GITHUB)))),d.map(u=>{if(u.provider===S.AUTH0&&l)return null;const s=l&&u.provider===t?r.find(n=>n.provider===S.AUTH0):r.find(n=>n.provider===u.provider);return s?{...u,provider:u.provider,did:s.did,pk:s.pk,userInfo:s.userInfo,_bind:!0,_rawProvider:s.provider,_mainProvider:u.provider===p}:{...u,provider:u.provider,_rawProvider:u.provider,_mainProvider:u.provider===p}}).filter(Boolean).sort((u,s)=>(u==null?void 0:u.order)!==void 0&&(s==null?void 0:s.order)!==void 0?u.order-s.order:(u==null?void 0:u.order)!==void 0?-1:1)},[e==null?void 0:e.connectedAccounts,d]);return o.jsx(f,{sx:{gap:1,display:"grid",gridTemplateColumns:"1fr min-content"},children:x.map(r=>o.jsx(qo,{item:r},r==null?void 0:r.provider))})}const Xo=[{name:"English",code:"en"},{name:"中文",code:"zh"}];function Ko({user:e,onSave:c}){const{locale:i,changeLocale:h}=z(),a=y((r,l={})=>L(T,r,i,"en",l)),d=K({locale:e.locale,loading:!1}),x=y(async r=>{try{const{value:l}=r.target;d.loading=!0,await M.user.saveProfile({locale:l}),await c("profile"),h(l),d.locale=l}catch(l){_.error(X(l))}finally{d.loading=!1}});return o.jsxs(f,{sx:{gap:1,display:"grid",alignItems:"center",gridTemplateColumns:{xs:"1fr",sm:"max-content 1fr"}},children:[o.jsx(f,{children:a("commonSetting.locale")}),o.jsxs(f,{children:[o.jsx(Ze,{color:"primary",sx:{visibility:d.loading?"visible":"hidden",height:2}}),o.jsx(Be,{fullWidth:!0,value:d.locale,onChange:x,size:"small",children:(window.blocklet.languages||Xo).map(r=>o.jsx(ne,{value:r.code,children:r.name}))})]})]})}function Jo({user:e,settings:c,onSave:i,...h}){const{locale:a}=z(),d=y((g,v={})=>L(T,g,a,"en",v)),x=C(()=>((c==null?void 0:c.userCenterTabs)||[]).map(v=>({key:v.value,name:v.label,value:v.protected})),[c==null?void 0:c.userCenterTabs]),r=C(()=>{var g;return[{label:d("commonSetting.title"),value:"common",content:o.jsx(Ko,{user:e,onSave:i})},{label:d("notificationManagement"),value:"notification",content:o.jsx(Go,{user:e})},{label:d("thirdPartyLogin.title"),value:"thirdPartyLogin",content:o.jsx(Qo,{user:e})},{label:d("privacyManagement"),value:"privacy",content:o.jsx(Vo,{configList:x,onSave:i})},((g=e==null?void 0:e.didSpace)==null?void 0:g.endpoint)&&{label:d("storageManagement"),value:"storage",content:o.jsx(So,{children:o.jsx(Po,{})})},{label:d("sessionManagement"),value:"session",content:o.jsx(Bo,{user:e})}].filter(Boolean)},[e,x]),l=K({tab:r[0].value}),t=C(()=>r.find(g=>g.value===l.tab),[l.tab,r]),p=y(g=>{l.tab=g});return t&&o.jsxs(f,{...h,sx:{...h==null?void 0:h.sx,minWidth:{md:500},maxWidth:"100%"},children:[o.jsx(Ie,{variant:"card",tabs:r,current:t.value,onChange:p}),o.jsx(f,{mt:2.5,children:t.content})]})}function Yo({children:e,notLoginContent:c=null,currentTab:i,contentProps:h={},disableAutoRedirect:a=!1,autoPopupSetting:d=!1,hideFooter:x=!1,headerProps:r={},footerProps:l={},userDid:t=void 0,stickySidebar:p=!1}){var le,ce,de,pe,ue,xe;const{locale:g}=z(),v=y((w,I={})=>L(T,w,g,"en",I)),u=O.useContext(ee),s=u==null?void 0:u.session,n=C(()=>{var D;if(t)return t;const w=window.location.href,I=eo(w);return I!=null&&I.did?Array.isArray(I.did)?I.did[0]:I.did:(D=s==null?void 0:s.user)==null?void 0:D.did},[(le=s==null?void 0:s.user)==null?void 0:le.did,t]),b=C(()=>{var w;return s!=null&&s.user?n===((w=s==null?void 0:s.user)==null?void 0:w.did):!1},[n,(ce=s==null?void 0:s.user)==null?void 0:ce.did]),m=ae(async()=>{if(await oo(()=>s==null?void 0:s.initialized),b)return s.user;if(n)return M.user.getUserPublicInfo({did:n})},{refreshDeps:[n,b,s==null?void 0:s.initialized,s==null?void 0:s.user]}),k=ae(async()=>m.data&&i?await M.user.getUserPrivacyConfig({did:n}):null,{refreshDeps:[n,m.data,i],loadingDelay:300}),{confirmHolder:J,confirmApi:U}=Pe({sx:{".MuiDialog-paper":{borderRadius:2,maxWidth:1200},".ux-dialog_title":{fontWeight:600},".ux-dialog_closeButton":{p:1},".MuiDialogActions-root":{display:{xs:"none",md:"flex"}}}}),A=C(()=>{const w=to(window.blocklet);try{return po(w)}catch(I){return console.error("Failed to format blocklet info",I,w),w}},[]),R=C(()=>{var D;const w=((D=A==null?void 0:A.navigation)==null?void 0:D.userCenter)||[];return(uo(w,g)||[]).map(F=>{var V;const G=F._rawLink??F.link;return{value:G,label:F.title,url:F.link,protected:((V=k==null?void 0:k.data)==null?void 0:V[G])??!1}})},[A,m.data,k==null?void 0:k.data,g]),E=C(()=>R.find(w=>w.value===i),[R]),Y=y(w=>{const I=R.find(D=>D.value===w);I&&(window.location.href=be(I.url,{did:b?void 0:n}))}),W=C(()=>o.jsx(Jo,{user:m.data,settings:{userCenterTabs:R},onSave:async w=>w==="privacy"?(await k.runAsync(),k.data):(w==="profile"&&await s.refresh(),null)}),[m.data,R,k.data,k.runAsync]),N=y(()=>{U.open({title:v("settings"),content:W,showCancelButton:!1,confirmButtonText:v("done"),onConfirm:U.close})});ro(()=>{U.update({content:W})},[W]),no(()=>{d&&N()});const $=C(()=>{var w,I,D,F,G;if(m.loading||s.loading)return null;if(m.error){if(((I=(w=m.error)==null?void 0:w.response)==null?void 0:I.status)===404)return o.jsx(f,{sx:{width:"100%"},children:o.jsx(ao,{status:404,description:v("noUserFound")})});const Te={message:((F=(D=m.error.response)==null?void 0:D.data)==null?void 0:F.error)||m.error.message||"error occurred"};return o.jsx(f,{sx:{width:"100%"},children:o.jsx(Io,{error:Te})})}return!n&&!m.data?c||o.jsx(f,{sx:{width:"100%"},children:o.jsxs(f,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:1},children:[o.jsx(Z,{children:v("viewAfterLogin")}),o.jsx(ie,{size:"small",variant:"contained",onClick:()=>s.login(),children:v("loginNow")})]})}):o.jsxs(o.Fragment,{children:[o.jsxs(f,{sx:[{flex:{xs:"revert",md:1},overflow:"hidden"}],children:[(G=m==null?void 0:m.data)!=null&&G.fullName?o.jsx(B,{variant:"h4",sx:{py:1.5,fontWeight:700,display:{xs:"none",md:"block"}},children:m.data.fullName}):null,o.jsx(je,{isMyself:b,switchPassport:s.switchPassport,switchProfile:s.switchProfile,openSettings:N,user:m.data,showFullDid:!1,sx:{display:{md:"none",xs:"block"},mb:1.5}}),R.length>0&&i?o.jsxs(f,{sx:{overflow:"auto",padding:"1px"},children:[o.jsx(Ie,{variant:"line",tabs:R,current:i,onChange:Y,sx:{mb:1.5}}),!k.data||k.loading?o.jsx(f,{sx:{height:"100%",minWidth:"160px",minHeight:"160px",display:"flex",justifyContent:"center",alignItems:"center"},children:o.jsx(oe,{sx:{color:j.primary100}})}):o.jsx(o.Fragment,{children:E!=null&&E.protected&&!b?o.jsx(f,{children:o.jsx(Z,{children:v("underProtected")})}):o.jsx(o.Fragment,{children:e&&o.jsx(f,{...h,children:e})})})]}):null,R.length===0?o.jsx(f,{sx:{display:{xs:b?"none":"block",md:"block"},py:3},children:o.jsx(Z,{children:v("emptyContent")})}):null]}),o.jsx(f,{sx:{display:{xs:"none",md:"block"},width:"1px",my:-3,backgroundColor:j.strokeSep}}),o.jsx(f,{sx:{width:{sx:"100%",md:420},maxWidth:"100%",position:"relative"},children:o.jsxs(f,{sx:{display:"flex",flexDirection:"column",gap:2.5,position:{xs:"static",md:p?"sticky":"static"},top:V=>p?V.spacing(3):"unset"},children:[o.jsx(je,{isMyself:b,switchPassport:s.switchPassport,switchProfile:s.switchProfile,openSettings:N,user:m.data,sx:{display:{xs:"none",md:"block"}}}),o.jsxs(f,{children:[o.jsx(B,{sx:{fontWeight:600,mb:1.5},children:v(b?"myInfo":"hisInfo")}),o.jsx(Ho,{user:m.data,isMySelf:b})]}),b?o.jsxs(f,{children:[o.jsx(B,{sx:{fontWeight:600,mb:1.5},children:v("passport")}),o.jsx(No,{user:m.data})]}):null]})})]})},[m,R,b,E,k,i,p]);if(!a&&!i&&((pe=(de=A==null?void 0:A.navigation)==null?void 0:de.userCenter)==null?void 0:pe.length)>0){const w=(xe=(ue=A==null?void 0:A.navigation)==null?void 0:ue.userCenter[0])==null?void 0:xe.link;return w&&window.location.replace(be(w,{did:b?void 0:n})),null}return o.jsxs(f,{sx:{backgroundColor:j.backgroundsBgSubtitle,minHeight:"100vh",display:"flex",flexDirection:"column"},children:[o.jsx(lo,{bordered:!0,...r}),o.jsxs(f,{flex:1,sx:{width:"100%",maxWidth:1200,margin:"0 auto",p:3,display:"flex",alignItems:"stretch",flexDirection:{xs:"column",md:"row"},gap:2.5},children:[$,J]}),x?null:o.jsx(co,{bordered:!0,...l})]})}function Ht(){const c=io().tab,{t:i}=z();return o.jsxs(o.Fragment,{children:[o.jsx(so,{children:o.jsx("title",{children:i("pageTitle.userCenter")})}),o.jsx(Yo,{disableAutoRedirect:c==="settings",autoPopupSetting:c==="settings"})]})}export{Ht as default};
@@ -1 +1 @@
1
- import{X as Y,Y as G,j as s,k as A,B as m,A as H,a as F,T as S,bf as J,bE as O,g as Q,u as X,bQ as K,l as E,O as U,b as k,bL as N,bI as Z,ey as ee}from"./index-fpoxcuML.js";import{D as te}from"./index-D0TT-qXy.js";import{U as T,e as R}from"./resource-dialog-DSlBHCVu.js";var L={},oe=G;Object.defineProperty(L,"__esModule",{value:!0});var ne=L.default=void 0,re=oe(Y()),ie=s;ne=L.default=(0,re.default)((0,ie.jsx)("path",{d:"m23 12-2.44-2.79.34-3.69-3.61-.82-1.89-3.2L12 2.96 8.6 1.5 6.71 4.69 3.1 5.5l.34 3.7L1 12l2.44 2.79-.34 3.7 3.61.82L8.6 22.5l3.4-1.47 3.4 1.46 1.89-3.19 3.61-.82-.34-3.69zm-12.91 4.72-3.8-3.81 1.48-1.48 2.32 2.33 5.85-5.87 1.48 1.48z"}),"Verified");class se extends Error{constructor(n){super(),this.name="AbortError",this.message=n}}const z=e=>globalThis.DOMException===void 0?new se(e):new DOMException(e),M=e=>{const n=e.reason===void 0?z("This operation was aborted."):e.reason;return n instanceof Error?n:z(n)};async function ae(e,n,{concurrency:i=Number.POSITIVE_INFINITY,stopOnError:a=!0,signal:u}={}){return new Promise((w,C)=>{if(e[Symbol.iterator]===void 0&&e[Symbol.asyncIterator]===void 0)throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof e})`);if(typeof n!="function")throw new TypeError("Mapper function is required");if(!((Number.isSafeInteger(i)||i===Number.POSITIVE_INFINITY)&&i>=1))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${i}\` (${typeof i})`);const r=[],v=[],g=new Map;let c=!1,x=!1,b=!1,y=0,B=0;const D=e[Symbol.iterator]===void 0?e[Symbol.asyncIterator]():e[Symbol.iterator](),h=t=>{c=!0,x=!0,C(t)};u&&(u.aborted&&h(M(u)),u.addEventListener("abort",()=>{h(M(u))}));const I=async()=>{if(x)return;const t=await D.next(),o=B;if(B++,t.done){if(b=!0,y===0&&!x){if(!a&&v.length>0){h(new AggregateError(v));return}if(x=!0,g.size===0){w(r);return}const l=[];for(const[d,p]of r.entries())g.get(d)!==_&&l.push(p);w(l)}return}y++,(async()=>{try{const l=await t.value;if(x)return;const d=await n(l,o);d===_&&g.set(o,d),r[o]=d,y--,await I()}catch(l){if(a)h(l);else{v.push(l),y--;try{await I()}catch(d){h(d)}}}})()};(async()=>{for(let t=0;t<i;t++){try{await I()}catch(o){h(o);break}if(b||c)break}})()})}const _=Symbol("skip");async function le(e,n){return ae(e,i=>i(),n)}function ue({user:e,sessionUser:n}){const i=A(()=>{var a;return(a=(e==null?void 0:e.passports)||[])==null?void 0:a.find(u=>u.name===n.role)},[e==null?void 0:e.passports,n==null?void 0:n.role]);return s.jsxs(m,{sx:{display:"flex",alignItems:"center",gap:1},children:[s.jsx(H,{size:40,variant:"circle",shape:"circle",src:n.avatar,did:n.did,sx:{flexShrink:0}}),s.jsxs(m,{sx:{flex:1,overflow:"hidden"},children:[s.jsxs(m,{sx:{display:"flex",alignItems:"center",gap:1},children:[s.jsx(F,{title:n.fullName,children:s.jsx(S,{sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flex:1},children:n.fullName})}),s.jsx(J,{label:(i==null?void 0:i.title)||(i==null?void 0:i.name)||"Guest",size:"small",variant:"outlined",sx:{flexShrink:0,fontWeight:"bold",fontSize:"12px",color:O.textBase,borderColor:O.strokeBorderStrong,backgroundColor:"transparent",textTransform:"capitalize",pr:.5,pl:0,height:"auto"}})]}),s.jsx(F,{title:n.email,children:s.jsx(S,{variant:"body2",color:"grey",sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:n.email})})]})]})}const ce={zh:{confirm:"确认",cancel:"取消",visitorId:"设备标识",deviceType:"设备类型",platform:"操作系统",walletOS:"钱包类型",role:"角色",fullname:"姓名",email:"邮箱",avatar:"头像",user:"用户",createdAt:"首次活动时间",updatedAt:"最近活动时间",lastLoginIp:"最近活动地址",actions:"操作",logoutAll:"注销所有会话",logoutAllTips:"不会注销当前会话",logout:"注销",currentSession:"当前会话",unknown:"未知",expired:"已过期",remove:"删除",logoutThisSession:"注销指定会话",logoutThisSessionConfirm:"确定要注销此会话吗?",logoutAllSession:"注销所有会话",logoutAllSessionConfirm:"确定要注销所有会话吗?"},en:{confirm:"Confirm",cancel:"Cancel",visitorId:"Device ID",deviceType:"Device Type",platform:"Platform",walletOS:"Wallet OS",role:"Role",fullname:"Fullname",email:"Email",avatar:"Avatar",user:"User",createdAt:"First Active Time",updatedAt:"Last Active Time",actions:"Actions",lastLoginIp:"Last Login IP",logoutAll:"Logout all",logoutAllTips:"Will not logout current session",logout:"Logout",currentSession:"Current Session",unknown:"Unknown",expired:"Expired",remove:"Remove",logoutThisSession:"Logout this session",logoutThisSessionConfirm:"Are you sure to logout this session?",logoutAllSession:"Logout all sessions",logoutAllSessionConfirm:"Are you sure to logout all sessions?"}},V="Reserved IP",P="ip-region-cache";async function de(e){const n=`https://ipapi.co/${e}/json/`,a=await(await fetch(n)).json();let u="";return a.error?a.reserved&&(u=V):u=[a.country_name,a.region,a.city].filter(Boolean).join("/"),u}async function pe(e){const n=`https://api.ip.sb/geoip/${e}`,a=await(await fetch(n)).json();let u="";return a.error?a.reserved&&(u=V):u=[a.country,a.region,a.city].filter(Boolean).join("/"),u}async function fe(e){let n="",i={};try{const a=localStorage.getItem(P);a&&(i=JSON.parse(a))}catch{i={}}if(i[e])n=i[e];else{try{n=await pe(e)}catch{console.warn("Fail to get ip region from ip.sb")}if(!n)try{n=await de(e)}catch{console.warn("Fail to get ip region from ip-api.co")}}if(n){const a=Object.keys(i);a.length>100&&delete i[a[0]],i[e]&&delete i[e],i[e]=n,localStorage.setItem(P,JSON.stringify(i))}return n}async function me(e){return Promise.all(e.map(n=>fe(n)))}const W=e=>new T(e,{browser:[[/(ArcWallet)\/([\w\.]+)/i],[T.BROWSER.NAME,T.BROWSER.VERSION]]}).getResult();function we({user:e,showAction:n=!0,showUser:i=!0}){const a=Q(),{locale:u}=X(),{confirmApi:w,confirmHolder:C}=K(),r=E((t,o={})=>Z(ce,t,u,"en",o)),v=E(async()=>{let t=e==null?void 0:e.userSessions;t||(t=await R.userSession.getUserSessions({did:e.did}));try{const l=t==null?void 0:t.map((f,j)=>[j,f.lastLoginIp]).filter(f=>!!f[1]),d=l==null?void 0:l.map(f=>f[1]),p=await me(d);for(let f=0;f<p.length;f++){const j=p[f],q=l[f],$=t[q[0]];$.ipRegion=j}}catch(l){console.warn("Failed to convert ip to region"),console.error(l)}const o=new Date().getTime();return ee(t,l=>l.visitorId===a?-1:o-new Date(l.updatedAt).getTime())}),g=U(v),c=A(()=>g.data||[],[g.data]),x=A(()=>c.reduce((t,o)=>(t[o.lastLoginIp]=o.ipRegion,t),{}),[c]),b=E(({visitorId:t})=>{w.open({title:r("logoutThisSession"),content:r("logoutThisSessionConfirm"),confirmButtonText:r("confirm"),cancelButtonText:r("cancel"),onConfirm:async()=>{await R.user.logout({visitorId:t}),g.refresh(),w.close()}})}),y=A(()=>c.filter(o=>o.visitorId!==a),[c]),B=E(()=>{w.open({title:r("logoutAllSession"),content:r("logoutAllSessionConfirm"),confirmButtonText:r("confirm"),cancelButtonText:r("cancel"),onConfirm:async()=>{const t=y.map(o=>()=>R.user.logout({visitorId:o.visitorId}));await le(t,{concurrency:3,stopOnError:!1}),g.refresh(),w.close()}})}),D=[];n&&D.push(s.jsx(F,{title:r("logoutAllTips"),children:s.jsx(k,{sx:{ml:.5},size:"small",variant:"contained",color:"error",onClick:B,disabled:y.length===0,children:r("logoutAll")})},"logoutAll"));const h=A(()=>({search:!1,sort:!1,download:!1,filter:!1,print:!1,expandableRowsOnClick:!1,searchDebounceTime:600}),[]),I=[{label:r("platform"),name:"platform",options:{customBodyRenderLite:t=>{var d,p;const o=c[t],l=W(o.ua);return s.jsx(m,{children:[(d=l.os)==null?void 0:d.name,(p=l.os)==null?void 0:p.version].filter(Boolean).join("/")||r("unknown")})}}},{label:r("deviceType"),name:"deviceType",options:{customBodyRenderLite:t=>{var d,p;const o=c[t],l=W(o.ua);return s.jsx(m,{children:[(d=l.browser)==null?void 0:d.name,(p=l.browser)==null?void 0:p.version].filter(Boolean).join("/")||r("unknown")})}}},{label:r("walletOS"),name:"walletOS",options:{customBodyRenderLite:t=>{var l;const o=c[t];return s.jsx(m,{children:((l=o.extra)==null?void 0:l.walletOS)||r("unknown")})}}},i&&{label:r("user"),name:"user",options:{customBodyRenderLite:t=>{const o=c[t];return s.jsx(m,{sx:{minWidth:150,maxWidth:250},children:s.jsx(ue,{sessionUser:o.user,user:e})})}}},{label:r("createdAt"),name:"createdAt",options:{customBodyRenderLite:t=>{const o=c[t];return o.createdAt?s.jsx(N,{value:o.createdAt,relativeRange:3*86400*1e3,locale:u}):r("unknown")}}},{label:r("updatedAt"),name:"updatedAt",options:{customBodyRenderLite:t=>{const o=c[t];return o.status==="expired"?r("expired"):s.jsx(N,{value:o.updatedAt,relativeRange:3*86400*1e3,locale:u})}}},{label:r("lastLoginIp"),name:"lastLoginIp",options:{customBodyRenderLite:t=>{const o=c[t];return s.jsx(m,{children:x[o.lastLoginIp]?s.jsxs(s.Fragment,{children:[s.jsx(S,{variant:"body2",children:x[o.lastLoginIp]}),s.jsx(S,{variant:"body2",color:"grey",children:o.lastLoginIp||r("unknown")})]}):s.jsx(S,{children:o.lastLoginIp||r("unknown")})})}}},n&&{label:r("actions"),name:"actions",options:{customBodyRenderLite:t=>{const o=c[t];return s.jsx(m,{children:s.jsx(k,{sx:{whiteSpace:"nowrap",fontSize:"12px",px:1},disabled:a===o.visitorId,variant:"outlined",size:"small",color:"error",onClick:()=>b({visitorId:o.visitorId}),children:o.status==="expired"?r("remove"):a===o.visitorId?r("currentSession"):r("logout")})})}}}].filter(Boolean);return s.jsxs(m,{sx:{".MuiTableCell-head":{whiteSpace:"nowrap",fontWeight:"bold"}},children:[C,s.jsx(te,{locale:u,data:c,columns:I,customButtons:D,options:h,loading:g.loading})]})}export{we as U,ne as d};
1
+ import{X as Y,Y as G,j as s,k as A,B as m,A as H,a as F,T as S,bf as J,bE as O,g as Q,u as X,bQ as K,l as E,O as U,b as k,bL as N,bI as Z,ey as ee}from"./index-BaC4EhQh.js";import{D as te}from"./index-CT70Tuv9.js";import{U as T,e as R}from"./resource-dialog-DhmviK8K.js";var L={},oe=G;Object.defineProperty(L,"__esModule",{value:!0});var ne=L.default=void 0,re=oe(Y()),ie=s;ne=L.default=(0,re.default)((0,ie.jsx)("path",{d:"m23 12-2.44-2.79.34-3.69-3.61-.82-1.89-3.2L12 2.96 8.6 1.5 6.71 4.69 3.1 5.5l.34 3.7L1 12l2.44 2.79-.34 3.7 3.61.82L8.6 22.5l3.4-1.47 3.4 1.46 1.89-3.19 3.61-.82-.34-3.69zm-12.91 4.72-3.8-3.81 1.48-1.48 2.32 2.33 5.85-5.87 1.48 1.48z"}),"Verified");class se extends Error{constructor(n){super(),this.name="AbortError",this.message=n}}const z=e=>globalThis.DOMException===void 0?new se(e):new DOMException(e),M=e=>{const n=e.reason===void 0?z("This operation was aborted."):e.reason;return n instanceof Error?n:z(n)};async function ae(e,n,{concurrency:i=Number.POSITIVE_INFINITY,stopOnError:a=!0,signal:u}={}){return new Promise((w,C)=>{if(e[Symbol.iterator]===void 0&&e[Symbol.asyncIterator]===void 0)throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof e})`);if(typeof n!="function")throw new TypeError("Mapper function is required");if(!((Number.isSafeInteger(i)||i===Number.POSITIVE_INFINITY)&&i>=1))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${i}\` (${typeof i})`);const r=[],v=[],g=new Map;let c=!1,x=!1,b=!1,y=0,B=0;const D=e[Symbol.iterator]===void 0?e[Symbol.asyncIterator]():e[Symbol.iterator](),h=t=>{c=!0,x=!0,C(t)};u&&(u.aborted&&h(M(u)),u.addEventListener("abort",()=>{h(M(u))}));const I=async()=>{if(x)return;const t=await D.next(),o=B;if(B++,t.done){if(b=!0,y===0&&!x){if(!a&&v.length>0){h(new AggregateError(v));return}if(x=!0,g.size===0){w(r);return}const l=[];for(const[d,p]of r.entries())g.get(d)!==_&&l.push(p);w(l)}return}y++,(async()=>{try{const l=await t.value;if(x)return;const d=await n(l,o);d===_&&g.set(o,d),r[o]=d,y--,await I()}catch(l){if(a)h(l);else{v.push(l),y--;try{await I()}catch(d){h(d)}}}})()};(async()=>{for(let t=0;t<i;t++){try{await I()}catch(o){h(o);break}if(b||c)break}})()})}const _=Symbol("skip");async function le(e,n){return ae(e,i=>i(),n)}function ue({user:e,sessionUser:n}){const i=A(()=>{var a;return(a=(e==null?void 0:e.passports)||[])==null?void 0:a.find(u=>u.name===n.role)},[e==null?void 0:e.passports,n==null?void 0:n.role]);return s.jsxs(m,{sx:{display:"flex",alignItems:"center",gap:1},children:[s.jsx(H,{size:40,variant:"circle",shape:"circle",src:n.avatar,did:n.did,sx:{flexShrink:0}}),s.jsxs(m,{sx:{flex:1,overflow:"hidden"},children:[s.jsxs(m,{sx:{display:"flex",alignItems:"center",gap:1},children:[s.jsx(F,{title:n.fullName,children:s.jsx(S,{sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flex:1},children:n.fullName})}),s.jsx(J,{label:(i==null?void 0:i.title)||(i==null?void 0:i.name)||"Guest",size:"small",variant:"outlined",sx:{flexShrink:0,fontWeight:"bold",fontSize:"12px",color:O.textBase,borderColor:O.strokeBorderStrong,backgroundColor:"transparent",textTransform:"capitalize",pr:.5,pl:0,height:"auto"}})]}),s.jsx(F,{title:n.email,children:s.jsx(S,{variant:"body2",color:"grey",sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:n.email})})]})]})}const ce={zh:{confirm:"确认",cancel:"取消",visitorId:"设备标识",deviceType:"设备类型",platform:"操作系统",walletOS:"钱包类型",role:"角色",fullname:"姓名",email:"邮箱",avatar:"头像",user:"用户",createdAt:"首次活动时间",updatedAt:"最近活动时间",lastLoginIp:"最近活动地址",actions:"操作",logoutAll:"注销所有会话",logoutAllTips:"不会注销当前会话",logout:"注销",currentSession:"当前会话",unknown:"未知",expired:"已过期",remove:"删除",logoutThisSession:"注销指定会话",logoutThisSessionConfirm:"确定要注销此会话吗?",logoutAllSession:"注销所有会话",logoutAllSessionConfirm:"确定要注销所有会话吗?"},en:{confirm:"Confirm",cancel:"Cancel",visitorId:"Device ID",deviceType:"Device Type",platform:"Platform",walletOS:"Wallet OS",role:"Role",fullname:"Fullname",email:"Email",avatar:"Avatar",user:"User",createdAt:"First Active Time",updatedAt:"Last Active Time",actions:"Actions",lastLoginIp:"Last Login IP",logoutAll:"Logout all",logoutAllTips:"Will not logout current session",logout:"Logout",currentSession:"Current Session",unknown:"Unknown",expired:"Expired",remove:"Remove",logoutThisSession:"Logout this session",logoutThisSessionConfirm:"Are you sure to logout this session?",logoutAllSession:"Logout all sessions",logoutAllSessionConfirm:"Are you sure to logout all sessions?"}},V="Reserved IP",P="ip-region-cache";async function de(e){const n=`https://ipapi.co/${e}/json/`,a=await(await fetch(n)).json();let u="";return a.error?a.reserved&&(u=V):u=[a.country_name,a.region,a.city].filter(Boolean).join("/"),u}async function pe(e){const n=`https://api.ip.sb/geoip/${e}`,a=await(await fetch(n)).json();let u="";return a.error?a.reserved&&(u=V):u=[a.country,a.region,a.city].filter(Boolean).join("/"),u}async function fe(e){let n="",i={};try{const a=localStorage.getItem(P);a&&(i=JSON.parse(a))}catch{i={}}if(i[e])n=i[e];else{try{n=await pe(e)}catch{console.warn("Fail to get ip region from ip.sb")}if(!n)try{n=await de(e)}catch{console.warn("Fail to get ip region from ip-api.co")}}if(n){const a=Object.keys(i);a.length>100&&delete i[a[0]],i[e]&&delete i[e],i[e]=n,localStorage.setItem(P,JSON.stringify(i))}return n}async function me(e){return Promise.all(e.map(n=>fe(n)))}const W=e=>new T(e,{browser:[[/(ArcWallet)\/([\w\.]+)/i],[T.BROWSER.NAME,T.BROWSER.VERSION]]}).getResult();function we({user:e,showAction:n=!0,showUser:i=!0}){const a=Q(),{locale:u}=X(),{confirmApi:w,confirmHolder:C}=K(),r=E((t,o={})=>Z(ce,t,u,"en",o)),v=E(async()=>{let t=e==null?void 0:e.userSessions;t||(t=await R.userSession.getUserSessions({did:e.did}));try{const l=t==null?void 0:t.map((f,j)=>[j,f.lastLoginIp]).filter(f=>!!f[1]),d=l==null?void 0:l.map(f=>f[1]),p=await me(d);for(let f=0;f<p.length;f++){const j=p[f],q=l[f],$=t[q[0]];$.ipRegion=j}}catch(l){console.warn("Failed to convert ip to region"),console.error(l)}const o=new Date().getTime();return ee(t,l=>l.visitorId===a?-1:o-new Date(l.updatedAt).getTime())}),g=U(v),c=A(()=>g.data||[],[g.data]),x=A(()=>c.reduce((t,o)=>(t[o.lastLoginIp]=o.ipRegion,t),{}),[c]),b=E(({visitorId:t})=>{w.open({title:r("logoutThisSession"),content:r("logoutThisSessionConfirm"),confirmButtonText:r("confirm"),cancelButtonText:r("cancel"),onConfirm:async()=>{await R.user.logout({visitorId:t}),g.refresh(),w.close()}})}),y=A(()=>c.filter(o=>o.visitorId!==a),[c]),B=E(()=>{w.open({title:r("logoutAllSession"),content:r("logoutAllSessionConfirm"),confirmButtonText:r("confirm"),cancelButtonText:r("cancel"),onConfirm:async()=>{const t=y.map(o=>()=>R.user.logout({visitorId:o.visitorId}));await le(t,{concurrency:3,stopOnError:!1}),g.refresh(),w.close()}})}),D=[];n&&D.push(s.jsx(F,{title:r("logoutAllTips"),children:s.jsx(k,{sx:{ml:.5},size:"small",variant:"contained",color:"error",onClick:B,disabled:y.length===0,children:r("logoutAll")})},"logoutAll"));const h=A(()=>({search:!1,sort:!1,download:!1,filter:!1,print:!1,expandableRowsOnClick:!1,searchDebounceTime:600}),[]),I=[{label:r("platform"),name:"platform",options:{customBodyRenderLite:t=>{var d,p;const o=c[t],l=W(o.ua);return s.jsx(m,{children:[(d=l.os)==null?void 0:d.name,(p=l.os)==null?void 0:p.version].filter(Boolean).join("/")||r("unknown")})}}},{label:r("deviceType"),name:"deviceType",options:{customBodyRenderLite:t=>{var d,p;const o=c[t],l=W(o.ua);return s.jsx(m,{children:[(d=l.browser)==null?void 0:d.name,(p=l.browser)==null?void 0:p.version].filter(Boolean).join("/")||r("unknown")})}}},{label:r("walletOS"),name:"walletOS",options:{customBodyRenderLite:t=>{var l;const o=c[t];return s.jsx(m,{children:((l=o.extra)==null?void 0:l.walletOS)||r("unknown")})}}},i&&{label:r("user"),name:"user",options:{customBodyRenderLite:t=>{const o=c[t];return s.jsx(m,{sx:{minWidth:150,maxWidth:250},children:s.jsx(ue,{sessionUser:o.user,user:e})})}}},{label:r("createdAt"),name:"createdAt",options:{customBodyRenderLite:t=>{const o=c[t];return o.createdAt?s.jsx(N,{value:o.createdAt,relativeRange:3*86400*1e3,locale:u}):r("unknown")}}},{label:r("updatedAt"),name:"updatedAt",options:{customBodyRenderLite:t=>{const o=c[t];return o.status==="expired"?r("expired"):s.jsx(N,{value:o.updatedAt,relativeRange:3*86400*1e3,locale:u})}}},{label:r("lastLoginIp"),name:"lastLoginIp",options:{customBodyRenderLite:t=>{const o=c[t];return s.jsx(m,{children:x[o.lastLoginIp]?s.jsxs(s.Fragment,{children:[s.jsx(S,{variant:"body2",children:x[o.lastLoginIp]}),s.jsx(S,{variant:"body2",color:"grey",children:o.lastLoginIp||r("unknown")})]}):s.jsx(S,{children:o.lastLoginIp||r("unknown")})})}}},n&&{label:r("actions"),name:"actions",options:{customBodyRenderLite:t=>{const o=c[t];return s.jsx(m,{children:s.jsx(k,{sx:{whiteSpace:"nowrap",fontSize:"12px",px:1},disabled:a===o.visitorId,variant:"outlined",size:"small",color:"error",onClick:()=>b({visitorId:o.visitorId}),children:o.status==="expired"?r("remove"):a===o.visitorId?r("currentSession"):r("logout")})})}}}].filter(Boolean);return s.jsxs(m,{sx:{".MuiTableCell-head":{whiteSpace:"nowrap",fontWeight:"bold"}},children:[C,s.jsx(te,{locale:u,data:c,columns:I,customButtons:D,options:h,loading:g.loading})]})}export{we as U,ne as d};
@@ -1 +1 @@
1
- import{b7 as h,fh as s,fi as l,aa as P,G as u}from"./index-fpoxcuML.js";const d=s;var E=(e,r)=>d(e)===d(r);const c=h(E),x=(e,r)=>{if(e.type===u.ROUTING_RULE_TYPES.REDIRECT){if(!e.url)return new Error(`${r("router.validation.redirectUrlRequired")}`);if(!e.redirectCode)return new Error(`redirect ${r("router.validation.redirectCodeRequired")}`)}else if(e.type===u.ROUTING_RULE_TYPES.BLOCKLET&&!e.did)return new Error(r("router.validation.didRequired"));return null},R=(e,r)=>{const t=x(e,r);return t||(e.pathPrefix.length?e.pathPrefix.length>150?new Error(r("router.validation.pathPrefixTooLong",{length:150})):null:new Error(r("router.validation.pathPrefixCannotBeEmpty")))},v=({params:e,blocklets:r,blocklet:t,locale:o="en"})=>{if(t){let i=(t.children||[]).find(f=>l.hasStartEngine(f.meta)&&c(f.mountPoint,e.pathPrefix));if(t.meta.group!=="gateway"&&e.pathPrefix==="/"&&(i="/"),i)return{zh:`挂载点 ${e.pathPrefix} 已存在,请使用其他挂载点`,en:`The mount point ${e.pathPrefix} already exist, please use another mount point`}[o]}const a=r.find(i=>i.meta.did===e.did);if(!a)return"";const n=a.meta.interfaces.find(i=>i.type==="web");return n&&n.prefix!==P.BLOCKLET_DYNAMIC_PATH_PREFIX&&e.pathPrefix!==n.prefix?{zh:`该 blocklet 只能挂载在 ${n.prefix}`,en:`This blocklet can only be mounted on ${n.prefix}`}[o]:""},T=e=>{if(!e||typeof e!="string")return e;let r=e.trim();try{return r=r.toLowerCase(),r.startsWith("http://")||r.startsWith("https://")?new URL(r).hostname:r}catch(t){return console.error("format domain failed",t),r}};export{R as a,T as p,v};
1
+ import{b7 as h,fh as s,fi as l,aa as P,G as u}from"./index-BaC4EhQh.js";const d=s;var E=(e,r)=>d(e)===d(r);const c=h(E),x=(e,r)=>{if(e.type===u.ROUTING_RULE_TYPES.REDIRECT){if(!e.url)return new Error(`${r("router.validation.redirectUrlRequired")}`);if(!e.redirectCode)return new Error(`redirect ${r("router.validation.redirectCodeRequired")}`)}else if(e.type===u.ROUTING_RULE_TYPES.BLOCKLET&&!e.did)return new Error(r("router.validation.didRequired"));return null},R=(e,r)=>{const t=x(e,r);return t||(e.pathPrefix.length?e.pathPrefix.length>150?new Error(r("router.validation.pathPrefixTooLong",{length:150})):null:new Error(r("router.validation.pathPrefixCannotBeEmpty")))},v=({params:e,blocklets:r,blocklet:t,locale:o="en"})=>{if(t){let i=(t.children||[]).find(f=>l.hasStartEngine(f.meta)&&c(f.mountPoint,e.pathPrefix));if(t.meta.group!=="gateway"&&e.pathPrefix==="/"&&(i="/"),i)return{zh:`挂载点 ${e.pathPrefix} 已存在,请使用其他挂载点`,en:`The mount point ${e.pathPrefix} already exist, please use another mount point`}[o]}const a=r.find(i=>i.meta.did===e.did);if(!a)return"";const n=a.meta.interfaces.find(i=>i.type==="web");return n&&n.prefix!==P.BLOCKLET_DYNAMIC_PATH_PREFIX&&e.pathPrefix!==n.prefix?{zh:`该 blocklet 只能挂载在 ${n.prefix}`,en:`This blocklet can only be mounted on ${n.prefix}`}[o]:""},T=e=>{if(!e||typeof e!="string")return e;let r=e.trim();try{return r=r.toLowerCase(),r.startsWith("http://")||r.startsWith("https://")?new URL(r).hostname:r}catch(t){return console.error("format domain failed",t),r}};export{R as a,T as p,v};
@@ -1 +1 @@
1
- import{ay as _,az as i,a3 as e,j as r,aA as a}from"./index-fpoxcuML.js";const u={en:_(i),ar:()=>e(()=>import("./ar-BywPGmOa.js"),[]).then(t=>_(t.default)),de:()=>e(()=>import("./de-qs3PjT55.js"),[]).then(t=>_(t.default)),es:()=>e(()=>import("./es-DXb9xB6c.js"),[]).then(t=>_(t.default)),fr:()=>e(()=>import("./fr-CMgZc3LR.js"),[]).then(t=>_(t.default)),hi:()=>e(()=>import("./hi-Ch52Lky6.js"),[]).then(t=>_(t.default)),id:()=>e(()=>import("./id-_x67Rh2B.js"),[]).then(t=>_(t.default)),ja:()=>e(()=>import("./ja-BemsOTjE.js"),[]).then(t=>_(t.default)),ko:()=>e(()=>import("./ko-CqkhhVdi.js"),[]).then(t=>_(t.default)),pt:()=>e(()=>import("./pt-DZmF_qcN.js"),[]).then(t=>_(t.default)),ru:()=>e(()=>import("./ru-BFNdjdAO.js"),[]).then(t=>_(t.default)),th:()=>e(()=>import("./th-B61cOYck.js"),[]).then(t=>_(t.default)),vi:()=>e(()=>import("./vi-B884zOLu.js"),[]).then(t=>_(t.default)),"zh-TW":()=>e(()=>import("./zh-tw-Bn1Pkz9A.js"),[]).then(t=>_(t.default)),zh:()=>e(()=>import("./zh-kNAPjCk5.js"),[]).then(t=>_(t.default))};function E(t){return function(o){return r.jsx(a,{translations:u,children:r.jsx(t,{...o})})}}export{E as w};
1
+ import{ay as _,az as i,a3 as e,j as r,aA as a}from"./index-BaC4EhQh.js";const u={en:_(i),ar:()=>e(()=>import("./ar-BywPGmOa.js"),[]).then(t=>_(t.default)),de:()=>e(()=>import("./de-qs3PjT55.js"),[]).then(t=>_(t.default)),es:()=>e(()=>import("./es-DXb9xB6c.js"),[]).then(t=>_(t.default)),fr:()=>e(()=>import("./fr-CMgZc3LR.js"),[]).then(t=>_(t.default)),hi:()=>e(()=>import("./hi-Ch52Lky6.js"),[]).then(t=>_(t.default)),id:()=>e(()=>import("./id-_x67Rh2B.js"),[]).then(t=>_(t.default)),ja:()=>e(()=>import("./ja-BemsOTjE.js"),[]).then(t=>_(t.default)),ko:()=>e(()=>import("./ko-CqkhhVdi.js"),[]).then(t=>_(t.default)),pt:()=>e(()=>import("./pt-DZmF_qcN.js"),[]).then(t=>_(t.default)),ru:()=>e(()=>import("./ru-BFNdjdAO.js"),[]).then(t=>_(t.default)),th:()=>e(()=>import("./th-B61cOYck.js"),[]).then(t=>_(t.default)),vi:()=>e(()=>import("./vi-B884zOLu.js"),[]).then(t=>_(t.default)),"zh-TW":()=>e(()=>import("./zh-tw-Bn1Pkz9A.js"),[]).then(t=>_(t.default)),zh:()=>e(()=>import("./zh-kNAPjCk5.js"),[]).then(t=>_(t.default))};function E(t){return function(o){return r.jsx(a,{translations:u,children:r.jsx(t,{...o})})}}export{E as w};
package/dist/index.html CHANGED
@@ -13,7 +13,7 @@
13
13
  padding: 0;
14
14
  }
15
15
  </style>
16
- <script type="module" crossorigin src="/.well-known/service/static/assets/index-fpoxcuML.js"></script>
16
+ <script type="module" crossorigin src="/.well-known/service/static/assets/index-BaC4EhQh.js"></script>
17
17
  <link rel="stylesheet" crossorigin href="/.well-known/service/static/assets/index-D8NuaJ66.css">
18
18
  <link rel="manifest" href="/.well-known/service/static/manifest.webmanifest"><script id="vite-plugin-pwa:register-sw" src="/.well-known/service/static/registerSW.js"></script></head>
19
19
 
@@ -1,2 +1,2 @@
1
1
  try{self["workbox:core:7.0.0"]&&_()}catch{}const ae=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},ne=ae;let y=class extends Error{constructor(e,t){const r=ne(e,t);super(r),this.name=e,this.details=t}};const ie=new Set,d={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},N=s=>[d.prefix,s,d.suffix].filter(e=>e&&e.length>0).join("-"),ce=s=>{for(const e of Object.keys(d))s(e)},oe={updateDetails:s=>{ce(e=>{typeof s[e]=="string"&&(d[e]=s[e])})},getGoogleAnalyticsName:s=>s||N(d.googleAnalytics),getPrecacheName:s=>s||N(d.precache),getPrefix:()=>d.prefix,getRuntimeName:s=>s||N(d.runtime),getSuffix:()=>d.suffix};function $(s,e){const t=new URL(s);for(const r of e)t.searchParams.delete(r);return t.href}async function le(s,e,t,r){const a=$(e.url,t);if(e.url===a)return s.match(e,r);const i=Object.assign(Object.assign({},r),{ignoreSearch:!0}),n=await s.keys(e,i);for(const c of n){const o=$(c.url,t);if(a===o)return s.match(c,r)}}let he=class{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};async function ue(){for(const s of ie)await s()}const fe=s=>new URL(String(s),location.href).href.replace(new RegExp(`^${location.origin}`),"");function de(s){return new Promise(e=>setTimeout(e,s))}function pe(){self.addEventListener("activate",()=>self.clients.claim())}try{self["workbox:core:7.0.0"]&&_()}catch{}const ge=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},me=ge;let u=class extends Error{constructor(e,t){const r=me(e,t);super(r),this.name=e,this.details=t}};const p={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},M=s=>[p.prefix,s,p.suffix].filter(e=>e&&e.length>0).join("-"),we=s=>{for(const e of Object.keys(p))s(e)},j={updateDetails:s=>{we(e=>{typeof s[e]=="string"&&(p[e]=s[e])})},getGoogleAnalyticsName:s=>s||M(p.googleAnalytics),getPrecacheName:s=>s||M(p.precache),getPrefix:()=>p.prefix,getRuntimeName:s=>s||M(p.runtime),getSuffix:()=>p.suffix};function H(s,e){const t=e();return s.waitUntil(t),t}try{self["workbox:precaching:7.0.0"]&&_()}catch{}const ye="__WB_REVISION__";function _e(s){if(!s)throw new u("add-to-cache-list-unexpected-type",{entry:s});if(typeof s=="string"){const i=new URL(s,location.href);return{cacheKey:i.href,url:i.href}}const{revision:e,url:t}=s;if(!t)throw new u("add-to-cache-list-unexpected-type",{entry:s});if(!e){const i=new URL(t,location.href);return{cacheKey:i.href,url:i.href}}const r=new URL(t,location.href),a=new URL(t,location.href);return r.searchParams.set(ye,e),{cacheKey:r.href,url:a.href}}class Re{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:e,state:t})=>{t&&(t.originalRequest=e)},this.cachedResponseWillBeUsed=async({event:e,state:t,cachedResponse:r})=>{if(e.type==="install"&&t&&t.originalRequest&&t.originalRequest instanceof Request){const a=t.originalRequest.url;r?this.notUpdatedURLs.push(a):this.updatedURLs.push(a)}return r}}}class be{constructor({precacheController:e}){this.cacheKeyWillBeUsed=async({request:t,params:r})=>{const a=(r==null?void 0:r.cacheKey)||this._precacheController.getCacheKeyForURL(t.url);return a?new Request(a,{headers:t.headers}):t},this._precacheController=e}}let b;function Ce(){if(b===void 0){const s=new Response("");if("body"in s)try{new Response(s.body),b=!0}catch{b=!1}b=!1}return b}async function xe(s,e){let t=null;if(s.url&&(t=new URL(s.url).origin),t!==self.location.origin)throw new u("cross-origin-copy-response",{origin:t});const r=s.clone(),i={headers:new Headers(r.headers),status:r.status,statusText:r.statusText},n=Ce()?r.body:await r.blob();return new Response(n,i)}const ke=s=>new URL(String(s),location.href).href.replace(new RegExp(`^${location.origin}`),"");function B(s,e){const t=new URL(s);for(const r of e)t.searchParams.delete(r);return t.href}async function Ee(s,e,t,r){const a=B(e.url,t);if(e.url===a)return s.match(e,r);const i=Object.assign(Object.assign({},r),{ignoreSearch:!0}),n=await s.keys(e,i);for(const c of n){const o=B(c.url,t);if(a===o)return s.match(c,r)}}class De{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}const Ue=new Set;async function Le(){for(const s of Ue)await s()}function Pe(s){return new Promise(e=>setTimeout(e,s))}try{self["workbox:strategies:7.0.0"]&&_()}catch{}function D(s){return typeof s=="string"?new Request(s):s}let ve=class{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new De,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const r of this._plugins)this._pluginStateMap.set(r,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let r=D(e);if(r.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const n=await t.preloadResponse;if(n)return n}const a=this.hasCallback("fetchDidFail")?r.clone():null;try{for(const n of this.iterateCallbacks("requestWillFetch"))r=await n({request:r.clone(),event:t})}catch(n){if(n instanceof Error)throw new u("plugin-error-request-will-fetch",{thrownErrorMessage:n.message})}const i=r.clone();try{let n;n=await fetch(r,r.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const c of this.iterateCallbacks("fetchDidSucceed"))n=await c({event:t,request:i,response:n});return n}catch(n){throw a&&await this.runCallbacks("fetchDidFail",{error:n,event:t,originalRequest:a.clone(),request:i.clone()}),n}}async fetchAndCachePut(e){const t=await this.fetch(e),r=t.clone();return this.waitUntil(this.cachePut(e,r)),t}async cacheMatch(e){const t=D(e);let r;const{cacheName:a,matchOptions:i}=this._strategy,n=await this.getCacheKey(t,"read"),c=Object.assign(Object.assign({},i),{cacheName:a});r=await caches.match(n,c);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))r=await o({cacheName:a,matchOptions:i,cachedResponse:r,request:n,event:this.event})||void 0;return r}async cachePut(e,t){const r=D(e);await Pe(0);const a=await this.getCacheKey(r,"write");if(!t)throw new u("cache-put-with-no-response",{url:ke(a.url)});const i=await this._ensureResponseSafeToCache(t);if(!i)return!1;const{cacheName:n,matchOptions:c}=this._strategy,o=await self.caches.open(n),l=this.hasCallback("cacheDidUpdate"),f=l?await Ee(o,a.clone(),["__WB_REVISION__"],c):null;try{await o.put(a,l?i.clone():i)}catch(h){if(h instanceof Error)throw h.name==="QuotaExceededError"&&await Le(),h}for(const h of this.iterateCallbacks("cacheDidUpdate"))await h({cacheName:n,oldResponse:f,newResponse:i.clone(),request:a,event:this.event});return!0}async getCacheKey(e,t){const r=`${e.url} | ${t}`;if(!this._cacheKeys[r]){let a=e;for(const i of this.iterateCallbacks("cacheKeyWillBeUsed"))a=D(await i({mode:t,request:a,event:this.event,params:this.params}));this._cacheKeys[r]=a}return this._cacheKeys[r]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const r of this.iterateCallbacks(e))await r(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const r=this._pluginStateMap.get(t);yield i=>{const n=Object.assign(Object.assign({},i),{state:r});return t[e](n)}}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,r=!1;for(const a of this.iterateCallbacks("cacheWillUpdate"))if(t=await a({request:this.request,response:t,event:this.event})||void 0,r=!0,!t)break;return r||t&&t.status!==200&&(t=void 0),t}},Ne=class{constructor(e={}){this.cacheName=j.getRuntimeName(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,r=typeof e.request=="string"?new Request(e.request):e.request,a="params"in e?e.params:void 0,i=new ve(this,{event:t,request:r,params:a}),n=this._getResponse(i,r,t),c=this._awaitComplete(n,i,r,t);return[n,c]}async _getResponse(e,t,r){await e.runCallbacks("handlerWillStart",{event:r,request:t});let a;try{if(a=await this._handle(t,e),!a||a.type==="error")throw new u("no-response",{url:t.url})}catch(i){if(i instanceof Error){for(const n of e.iterateCallbacks("handlerDidError"))if(a=await n({error:i,event:r,request:t}),a)break}if(!a)throw i}for(const i of e.iterateCallbacks("handlerWillRespond"))a=await i({event:r,request:t,response:a});return a}async _awaitComplete(e,t,r,a){let i,n;try{i=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:a,request:r,response:i}),await t.doneWaiting()}catch(c){c instanceof Error&&(n=c)}if(await t.runCallbacks("handlerDidComplete",{event:a,request:r,response:i,error:n}),t.destroy(),n)throw n}};class w extends Ne{constructor(e={}){e.cacheName=j.getPrecacheName(e.cacheName),super(e),this._fallbackToNetwork=e.fallbackToNetwork!==!1,this.plugins.push(w.copyRedirectedCacheableResponsesPlugin)}async _handle(e,t){const r=await t.cacheMatch(e);return r||(t.event&&t.event.type==="install"?await this._handleInstall(e,t):await this._handleFetch(e,t))}async _handleFetch(e,t){let r;const a=t.params||{};if(this._fallbackToNetwork){const i=a.integrity,n=e.integrity,c=!n||n===i;r=await t.fetch(new Request(e,{integrity:e.mode!=="no-cors"?n||i:void 0})),i&&c&&e.mode!=="no-cors"&&(this._useDefaultCacheabilityPluginIfNeeded(),await t.cachePut(e,r.clone()))}else throw new u("missing-precache-entry",{cacheName:this.cacheName,url:e.url});return r}async _handleInstall(e,t){this._useDefaultCacheabilityPluginIfNeeded();const r=await t.fetch(e);if(!await t.cachePut(e,r.clone()))throw new u("bad-precaching-response",{url:e.url,status:r.status});return r}_useDefaultCacheabilityPluginIfNeeded(){let e=null,t=0;for(const[r,a]of this.plugins.entries())a!==w.copyRedirectedCacheableResponsesPlugin&&(a===w.defaultPrecacheCacheabilityPlugin&&(e=r),a.cacheWillUpdate&&t++);t===0?this.plugins.push(w.defaultPrecacheCacheabilityPlugin):t>1&&e!==null&&this.plugins.splice(e,1)}}w.defaultPrecacheCacheabilityPlugin={async cacheWillUpdate({response:s}){return!s||s.status>=400?null:s}};w.copyRedirectedCacheableResponsesPlugin={async cacheWillUpdate({response:s}){return s.redirected?await xe(s):s}};class Me{constructor({cacheName:e,plugins:t=[],fallbackToNetwork:r=!0}={}){this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new w({cacheName:j.getPrecacheName(e),plugins:[...t,new be({precacheController:this})],fallbackToNetwork:r}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this._strategy}precache(e){this.addToCacheList(e),this._installAndActiveListenersAdded||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this._installAndActiveListenersAdded=!0)}addToCacheList(e){const t=[];for(const r of e){typeof r=="string"?t.push(r):r&&r.revision===void 0&&t.push(r.url);const{cacheKey:a,url:i}=_e(r),n=typeof r!="string"&&r.revision?"reload":"default";if(this._urlsToCacheKeys.has(i)&&this._urlsToCacheKeys.get(i)!==a)throw new u("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(i),secondEntry:a});if(typeof r!="string"&&r.integrity){if(this._cacheKeysToIntegrities.has(a)&&this._cacheKeysToIntegrities.get(a)!==r.integrity)throw new u("add-to-cache-list-conflicting-integrities",{url:i});this._cacheKeysToIntegrities.set(a,r.integrity)}if(this._urlsToCacheKeys.set(i,a),this._urlsToCacheModes.set(i,n),t.length>0){const c=`Workbox is precaching URLs without revision info: ${t.join(", ")}
2
- This is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(c)}}}install(e){return H(e,async()=>{const t=new Re;this.strategy.plugins.push(t);for(const[i,n]of this._urlsToCacheKeys){const c=this._cacheKeysToIntegrities.get(n),o=this._urlsToCacheModes.get(i),l=new Request(i,{integrity:c,cache:o,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:n},request:l,event:e}))}const{updatedURLs:r,notUpdatedURLs:a}=t;return{updatedURLs:r,notUpdatedURLs:a}})}activate(e){return H(e,async()=>{const t=await self.caches.open(this.strategy.cacheName),r=await t.keys(),a=new Set(this._urlsToCacheKeys.values()),i=[];for(const n of r)a.has(n.url)||(await t.delete(n),i.push(n.url));return{deletedURLs:i}})}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){const t=e instanceof Request?e.url:e,r=this.getCacheKeyForURL(t);if(r)return(await self.caches.open(this.strategy.cacheName)).match(r)}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new u("non-precached-url",{url:e});return r=>(r.request=new Request(e),r.params=Object.assign({cacheKey:t},r.params),this.strategy.handle(r))}}let T;const J=()=>(T||(T=new Me),T);try{self["workbox:routing:7.0.0"]&&_()}catch{}const z="GET",P=s=>s&&typeof s=="object"?s:{handle:s};let E=class{constructor(e,t,r=z){this.handler=P(t),this.match=e,this.method=r}setCatchHandler(e){this.catchHandler=P(e)}},Te=class extends E{constructor(e,t,r){const a=({url:i})=>{const n=e.exec(i.href);if(n&&!(i.origin!==location.origin&&n.index!==0))return n.slice(1)};super(a,t,r)}},Oe=class{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,r=this.handleRequest({request:t,event:e});r&&e.respondWith(r)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,r=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const i=new Request(...a);return this.handleRequest({request:i,event:e})}));e.waitUntil(r),e.ports&&e.ports[0]&&r.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const r=new URL(e.url,location.href);if(!r.protocol.startsWith("http"))return;const a=r.origin===location.origin,{params:i,route:n}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:r});let c=n&&n.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let l;try{l=c.handle({url:r,request:e,event:t,params:i})}catch(h){l=Promise.reject(h)}const f=n&&n.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:r,request:e,event:t,params:i})}catch(R){R instanceof Error&&(h=R)}if(this._catchHandler)return this._catchHandler.handle({url:r,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:r,event:a}){const i=this._routes.get(r.method)||[];for(const n of i){let c;const o=n.match({url:e,sameOrigin:t,request:r,event:a});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:n,params:c}}return{}}setDefaultHandler(e,t=z){this._defaultHandlerMap.set(t,P(e))}setCatchHandler(e){this._catchHandler=P(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new u("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new u("unregister-route-route-not-registered")}},C;const Se=()=>(C||(C=new Oe,C.addFetchListener(),C.addCacheListener()),C);function Ae(s,e,t){let r;if(typeof s=="string"){const i=new URL(s,location.href),n=({url:c})=>c.href===i.href;r=new E(n,e,t)}else if(s instanceof RegExp)r=new Te(s,e,t);else if(typeof s=="function")r=new E(s,e,t);else if(s instanceof E)r=s;else throw new u("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return Se().registerRoute(r),r}function Ke(s,e=[]){for(const t of[...s.searchParams.keys()])e.some(r=>r.test(t))&&s.searchParams.delete(t);return s}function*Ie(s,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:t="index.html",cleanURLs:r=!0,urlManipulation:a}={}){const i=new URL(s,location.href);i.hash="",yield i.href;const n=Ke(i,e);if(yield n.href,t&&n.pathname.endsWith("/")){const c=new URL(n.href);c.pathname+=t,yield c.href}if(r){const c=new URL(n.href);c.pathname+=".html",yield c.href}if(a){const c=a({url:i});for(const o of c)yield o.href}}class We extends E{constructor(e,t){const r=({request:a})=>{const i=e.getURLsToCacheKeys();for(const n of Ie(a.url,t)){const c=i.get(n);if(c){const o=e.getIntegrityForCacheKey(c);return{cacheKey:c,integrity:o}}}};super(r,e.strategy)}}function je(s){const e=J(),t=new We(e,s);Ae(t)}function qe(s){J().precache(s)}function $e(s,e){qe(s),je(e)}try{self["workbox:core:7.0.0"]&&_()}catch{}const He=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},Be=He;class Fe extends Error{constructor(e,t){const r=Be(e,t);super(r),this.name=e,this.details=t}}function X(s){s.then(()=>{})}const Ve=(s,e)=>e.some(t=>s instanceof t);let F,V;function Ge(){return F||(F=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Qe(){return V||(V=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Y=new WeakMap,I=new WeakMap,Z=new WeakMap,O=new WeakMap,q=new WeakMap;function Je(s){const e=new Promise((t,r)=>{const a=()=>{s.removeEventListener("success",i),s.removeEventListener("error",n)},i=()=>{t(m(s.result)),a()},n=()=>{r(s.error),a()};s.addEventListener("success",i),s.addEventListener("error",n)});return e.then(t=>{t instanceof IDBCursor&&Y.set(t,s)}).catch(()=>{}),q.set(e,s),e}function ze(s){if(I.has(s))return;const e=new Promise((t,r)=>{const a=()=>{s.removeEventListener("complete",i),s.removeEventListener("error",n),s.removeEventListener("abort",n)},i=()=>{t(),a()},n=()=>{r(s.error||new DOMException("AbortError","AbortError")),a()};s.addEventListener("complete",i),s.addEventListener("error",n),s.addEventListener("abort",n)});I.set(s,e)}let W={get(s,e,t){if(s instanceof IDBTransaction){if(e==="done")return I.get(s);if(e==="objectStoreNames")return s.objectStoreNames||Z.get(s);if(e==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return m(s[e])},set(s,e,t){return s[e]=t,!0},has(s,e){return s instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in s}};function Xe(s){W=s(W)}function Ye(s){return s===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const r=s.call(S(this),e,...t);return Z.set(r,e.sort?e.sort():[e]),m(r)}:Qe().includes(s)?function(...e){return s.apply(S(this),e),m(Y.get(this))}:function(...e){return m(s.apply(S(this),e))}}function Ze(s){return typeof s=="function"?Ye(s):(s instanceof IDBTransaction&&ze(s),Ve(s,Ge())?new Proxy(s,W):s)}function m(s){if(s instanceof IDBRequest)return Je(s);if(O.has(s))return O.get(s);const e=Ze(s);return e!==s&&(O.set(s,e),q.set(e,s)),e}const S=s=>q.get(s);function et(s,e,{blocked:t,upgrade:r,blocking:a,terminated:i}={}){const n=indexedDB.open(s,e),c=m(n);return r&&n.addEventListener("upgradeneeded",o=>{r(m(n.result),o.oldVersion,o.newVersion,m(n.transaction),o)}),t&&n.addEventListener("blocked",o=>t(o.oldVersion,o.newVersion,o)),c.then(o=>{i&&o.addEventListener("close",()=>i()),a&&o.addEventListener("versionchange",l=>a(l.oldVersion,l.newVersion,l))}).catch(()=>{}),c}function tt(s,{blocked:e}={}){const t=indexedDB.deleteDatabase(s);return e&&t.addEventListener("blocked",r=>e(r.oldVersion,r)),m(t).then(()=>{})}const st=["get","getKey","getAll","getAllKeys","count"],rt=["put","add","delete","clear"],A=new Map;function G(s,e){if(!(s instanceof IDBDatabase&&!(e in s)&&typeof e=="string"))return;if(A.get(e))return A.get(e);const t=e.replace(/FromIndex$/,""),r=e!==t,a=rt.includes(t);if(!(t in(r?IDBIndex:IDBObjectStore).prototype)||!(a||st.includes(t)))return;const i=async function(n,...c){const o=this.transaction(n,a?"readwrite":"readonly");let l=o.store;return r&&(l=l.index(c.shift())),(await Promise.all([l[t](...c),a&&o.done]))[0]};return A.set(e,i),i}Xe(s=>({...s,get:(e,t,r)=>G(e,t)||s.get(e,t,r),has:(e,t)=>!!G(e,t)||s.has(e,t)}));try{self["workbox:expiration:7.0.0"]&&_()}catch{}const at="workbox-expiration",x="cache-entries",Q=s=>{const e=new URL(s,location.href);return e.hash="",e.href};class nt{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(x,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&tt(this._cacheName)}async setTimestamp(e,t){e=Q(e);const r={url:e,timestamp:t,cacheName:this._cacheName,id:this._getId(e)},i=(await this.getDb()).transaction(x,"readwrite",{durability:"relaxed"});await i.store.put(r),await i.done}async getTimestamp(e){const r=await(await this.getDb()).get(x,this._getId(e));return r==null?void 0:r.timestamp}async expireEntries(e,t){const r=await this.getDb();let a=await r.transaction(x).store.index("timestamp").openCursor(null,"prev");const i=[];let n=0;for(;a;){const o=a.value;o.cacheName===this._cacheName&&(e&&o.timestamp<e||t&&n>=t?i.push(a.value):n++),a=await a.continue()}const c=[];for(const o of i)await r.delete(x,o.id),c.push(o.url);return c}_getId(e){return this._cacheName+"|"+Q(e)}async getDb(){return this._db||(this._db=await et(at,1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class it{constructor(e,t={}){this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=t.maxEntries,this._maxAgeSeconds=t.maxAgeSeconds,this._matchOptions=t.matchOptions,this._cacheName=e,this._timestampModel=new nt(e)}async expireEntries(){if(this._isRunning){this._rerunRequested=!0;return}this._isRunning=!0;const e=this._maxAgeSeconds?Date.now()-this._maxAgeSeconds*1e3:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),r=await self.caches.open(this._cacheName);for(const a of t)await r.delete(a,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,X(this.expireEntries()))}async updateTimestamp(e){await this._timestampModel.setTimestamp(e,Date.now())}async isURLExpired(e){if(this._maxAgeSeconds){const t=await this._timestampModel.getTimestamp(e),r=Date.now()-this._maxAgeSeconds*1e3;return t!==void 0?t<r:!0}else return!1}async delete(){this._rerunRequested=!1,await this._timestampModel.expireEntries(1/0)}}const g={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},K=s=>[g.prefix,s,g.suffix].filter(e=>e&&e.length>0).join("-"),ct=s=>{for(const e of Object.keys(g))s(e)},ot={updateDetails:s=>{ct(e=>{typeof s[e]=="string"&&(g[e]=s[e])})},getGoogleAnalyticsName:s=>s||K(g.googleAnalytics),getPrecacheName:s=>s||K(g.precache),getPrefix:()=>g.prefix,getRuntimeName:s=>s||K(g.runtime),getSuffix:()=>g.suffix},lt=new Set;function ht(s){lt.add(s)}class ut{constructor(e={}){this.cachedResponseWillBeUsed=async({event:t,request:r,cacheName:a,cachedResponse:i})=>{if(!i)return null;const n=this._isResponseDateFresh(i),c=this._getCacheExpiration(a);X(c.expireEntries());const o=c.updateTimestamp(r.url);if(t)try{t.waitUntil(o)}catch{}return n?i:null},this.cacheDidUpdate=async({cacheName:t,request:r})=>{const a=this._getCacheExpiration(t);await a.updateTimestamp(r.url),await a.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&ht(()=>this.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===ot.getRuntimeName())throw new Fe("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new it(e,this._config),this._cacheExpirations.set(e,t)),t}_isResponseDateFresh(e){if(!this._maxAgeSeconds)return!0;const t=this._getDateHeaderTimestamp(e);if(t===null)return!0;const r=Date.now();return t>=r-this._maxAgeSeconds*1e3}_getDateHeaderTimestamp(e){if(!e.headers.has("date"))return null;const t=e.headers.get("date"),a=new Date(t).getTime();return isNaN(a)?null:a}async deleteCacheAndMetadata(){for(const[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}}try{self["workbox:routing:7.0.0"]&&_()}catch{}const ee="GET",v=s=>s&&typeof s=="object"?s:{handle:s};class L{constructor(e,t,r=ee){this.handler=v(t),this.match=e,this.method=r}setCatchHandler(e){this.catchHandler=v(e)}}class ft extends L{constructor(e,t,r){const a=({url:i})=>{const n=e.exec(i.href);if(n&&!(i.origin!==location.origin&&n.index!==0))return n.slice(1)};super(a,t,r)}}class dt{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,r=this.handleRequest({request:t,event:e});r&&e.respondWith(r)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,r=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const i=new Request(...a);return this.handleRequest({request:i,event:e})}));e.waitUntil(r),e.ports&&e.ports[0]&&r.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const r=new URL(e.url,location.href);if(!r.protocol.startsWith("http"))return;const a=r.origin===location.origin,{params:i,route:n}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:r});let c=n&&n.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let l;try{l=c.handle({url:r,request:e,event:t,params:i})}catch(h){l=Promise.reject(h)}const f=n&&n.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:r,request:e,event:t,params:i})}catch(R){R instanceof Error&&(h=R)}if(this._catchHandler)return this._catchHandler.handle({url:r,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:r,event:a}){const i=this._routes.get(r.method)||[];for(const n of i){let c;const o=n.match({url:e,sameOrigin:t,request:r,event:a});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:n,params:c}}return{}}setDefaultHandler(e,t=ee){this._defaultHandlerMap.set(t,v(e))}setCatchHandler(e){this._catchHandler=v(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new y("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new y("unregister-route-route-not-registered")}}let k;const pt=()=>(k||(k=new dt,k.addFetchListener(),k.addCacheListener()),k);function te(s,e,t){let r;if(typeof s=="string"){const i=new URL(s,location.href),n=({url:c})=>c.href===i.href;r=new L(n,e,t)}else if(s instanceof RegExp)r=new ft(s,e,t);else if(typeof s=="function")r=new L(s,e,t);else if(s instanceof L)r=s;else throw new y("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return pt().registerRoute(r),r}try{self["workbox:strategies:7.0.0"]&&_()}catch{}function U(s){return typeof s=="string"?new Request(s):s}class gt{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new he,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const r of this._plugins)this._pluginStateMap.set(r,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let r=U(e);if(r.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const n=await t.preloadResponse;if(n)return n}const a=this.hasCallback("fetchDidFail")?r.clone():null;try{for(const n of this.iterateCallbacks("requestWillFetch"))r=await n({request:r.clone(),event:t})}catch(n){if(n instanceof Error)throw new y("plugin-error-request-will-fetch",{thrownErrorMessage:n.message})}const i=r.clone();try{let n;n=await fetch(r,r.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const c of this.iterateCallbacks("fetchDidSucceed"))n=await c({event:t,request:i,response:n});return n}catch(n){throw a&&await this.runCallbacks("fetchDidFail",{error:n,event:t,originalRequest:a.clone(),request:i.clone()}),n}}async fetchAndCachePut(e){const t=await this.fetch(e),r=t.clone();return this.waitUntil(this.cachePut(e,r)),t}async cacheMatch(e){const t=U(e);let r;const{cacheName:a,matchOptions:i}=this._strategy,n=await this.getCacheKey(t,"read"),c=Object.assign(Object.assign({},i),{cacheName:a});r=await caches.match(n,c);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))r=await o({cacheName:a,matchOptions:i,cachedResponse:r,request:n,event:this.event})||void 0;return r}async cachePut(e,t){const r=U(e);await de(0);const a=await this.getCacheKey(r,"write");if(!t)throw new y("cache-put-with-no-response",{url:fe(a.url)});const i=await this._ensureResponseSafeToCache(t);if(!i)return!1;const{cacheName:n,matchOptions:c}=this._strategy,o=await self.caches.open(n),l=this.hasCallback("cacheDidUpdate"),f=l?await le(o,a.clone(),["__WB_REVISION__"],c):null;try{await o.put(a,l?i.clone():i)}catch(h){if(h instanceof Error)throw h.name==="QuotaExceededError"&&await ue(),h}for(const h of this.iterateCallbacks("cacheDidUpdate"))await h({cacheName:n,oldResponse:f,newResponse:i.clone(),request:a,event:this.event});return!0}async getCacheKey(e,t){const r=`${e.url} | ${t}`;if(!this._cacheKeys[r]){let a=e;for(const i of this.iterateCallbacks("cacheKeyWillBeUsed"))a=U(await i({mode:t,request:a,event:this.event,params:this.params}));this._cacheKeys[r]=a}return this._cacheKeys[r]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const r of this.iterateCallbacks(e))await r(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const r=this._pluginStateMap.get(t);yield i=>{const n=Object.assign(Object.assign({},i),{state:r});return t[e](n)}}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,r=!1;for(const a of this.iterateCallbacks("cacheWillUpdate"))if(t=await a({request:this.request,response:t,event:this.event})||void 0,r=!0,!t)break;return r||t&&t.status!==200&&(t=void 0),t}}class se{constructor(e={}){this.cacheName=oe.getRuntimeName(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,r=typeof e.request=="string"?new Request(e.request):e.request,a="params"in e?e.params:void 0,i=new gt(this,{event:t,request:r,params:a}),n=this._getResponse(i,r,t),c=this._awaitComplete(n,i,r,t);return[n,c]}async _getResponse(e,t,r){await e.runCallbacks("handlerWillStart",{event:r,request:t});let a;try{if(a=await this._handle(t,e),!a||a.type==="error")throw new y("no-response",{url:t.url})}catch(i){if(i instanceof Error){for(const n of e.iterateCallbacks("handlerDidError"))if(a=await n({error:i,event:r,request:t}),a)break}if(!a)throw i}for(const i of e.iterateCallbacks("handlerWillRespond"))a=await i({event:r,request:t,response:a});return a}async _awaitComplete(e,t,r,a){let i,n;try{i=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:a,request:r,response:i}),await t.doneWaiting()}catch(c){c instanceof Error&&(n=c)}if(await t.runCallbacks("handlerDidComplete",{event:a,request:r,response:i,error:n}),t.destroy(),n)throw n}}class mt extends se{async _handle(e,t){let r=await t.cacheMatch(e),a;if(!r)try{r=await t.fetchAndCachePut(e)}catch(i){i instanceof Error&&(a=i)}if(!r)throw new y("no-response",{url:e.url,error:a});return r}}const wt={cacheWillUpdate:async({response:s})=>s.status===200||s.status===0?s:null};class yt extends se{constructor(e={}){super(e),this.plugins.some(t=>"cacheWillUpdate"in t)||this.plugins.unshift(wt)}async _handle(e,t){const r=t.fetchAndCachePut(e).catch(()=>{});t.waitUntil(r);let a=await t.cacheMatch(e),i;if(!a)try{a=await r}catch(n){n instanceof Error&&(i=n)}if(!a)throw new y("no-response",{url:e.url,error:i});return a}}$e(([{"revision":null,"url":"assets/access-control-CZ2vCfvl.js"},{"revision":null,"url":"assets/actions-bp0tIFPr.js"},{"revision":null,"url":"assets/Add-BXK5RFEZ.js"},{"revision":null,"url":"assets/add-component-core-C1Hjv9Mu.js"},{"revision":null,"url":"assets/add-component-core-D_j8BgsJ.css"},{"revision":null,"url":"assets/add-resource-ClftlsDn.js"},{"revision":null,"url":"assets/addon-CR-5t9SG.js"},{"revision":null,"url":"assets/Alert-CeGhMuEg.js"},{"revision":null,"url":"assets/analytics-DtV5hN-G.js"},{"revision":null,"url":"assets/api-BdPs8cnO.js"},{"revision":null,"url":"assets/ar-BywPGmOa.js"},{"revision":null,"url":"assets/ar-cd9W8CrI.js"},{"revision":null,"url":"assets/ArrowDropDown-JIsmOdUp.js"},{"revision":null,"url":"assets/audit-logs-CLta2fsb.js"},{"revision":null,"url":"assets/Avatar-DlL4WPrD.js"},{"revision":null,"url":"assets/button-C_Ohwi26.js"},{"revision":null,"url":"assets/ButtonGroup-ailEu1Nr.js"},{"revision":null,"url":"assets/CheckCircle-CEIChsEH.js"},{"revision":null,"url":"assets/ChevronLeft-D_bQ82yy.js"},{"revision":null,"url":"assets/ChevronRight-BGd4BknI.js"},{"revision":null,"url":"assets/click-to-copy-DdG-v5Xf.js"},{"revision":null,"url":"assets/Close-uLBCA-jx.js"},{"revision":null,"url":"assets/CloseOutlined-IVnREWlC.js"},{"revision":null,"url":"assets/complete-d1ZMK4NF.js"},{"revision":null,"url":"assets/component-C3cEDupm.js"},{"revision":null,"url":"assets/config-CoCmaQP0.js"},{"revision":null,"url":"assets/config-Dx0nfjiu.js"},{"revision":null,"url":"assets/config-navigation-WnNuhnxu.js"},{"revision":null,"url":"assets/confirm-BY-9Ale6.js"},{"revision":null,"url":"assets/connect-DDUiaDOH.js"},{"revision":null,"url":"assets/connect-eNCvhZ4O.js"},{"revision":null,"url":"assets/connect-to-CTihUmuN.js"},{"revision":null,"url":"assets/content-layout-DYHA2DoT.js"},{"revision":null,"url":"assets/dashboard-C8VgUavf.js"},{"revision":null,"url":"assets/de-DS4XAN75.js"},{"revision":null,"url":"assets/de-qs3PjT55.js"},{"revision":null,"url":"assets/Delete-BVwa0m1R.js"},{"revision":null,"url":"assets/DeleteOutline-CZQhsml4.js"},{"revision":null,"url":"assets/DialogContentText-ClisAi23.js"},{"revision":null,"url":"assets/did-address-Bye61gv9.js"},{"revision":null,"url":"assets/domain-JYDawt5A.js"},{"revision":null,"url":"assets/domain-list-1LRFMuDN.js"},{"revision":null,"url":"assets/Done-Dsagjn-5.js"},{"revision":null,"url":"assets/Download-BONj8GVi.js"},{"revision":null,"url":"assets/Edit-uwWLILxD.js"},{"revision":null,"url":"assets/EditIcon-Ccz9ZvCO.js"},{"revision":null,"url":"assets/email-THIe3MUl.js"},{"revision":null,"url":"assets/Error-Cpv-DWNH.js"},{"revision":null,"url":"assets/es-DXb9xB6c.js"},{"revision":null,"url":"assets/es-XT3Dd0hc.js"},{"revision":null,"url":"assets/exchange-passport-CvhlZqQF.js"},{"revision":null,"url":"assets/ExpandMore-DUJJgQvW.js"},{"revision":null,"url":"assets/fallback-0bWgPkSN.js"},{"revision":null,"url":"assets/format-error-BOfFwKPG.js"},{"revision":null,"url":"assets/FormControl-DFtCJG5u.js"},{"revision":null,"url":"assets/FormControlLabel-DXsQRQXS.js"},{"revision":null,"url":"assets/FormGroup-BYqGm4p-.js"},{"revision":null,"url":"assets/fr-C5TQA9s1.js"},{"revision":null,"url":"assets/fr-CMgZc3LR.js"},{"revision":null,"url":"assets/fuel-CfBzTTU6.js"},{"revision":null,"url":"assets/fullpage-ChxIZLoV.js"},{"revision":null,"url":"assets/Google-_v-FGHrH.js"},{"revision":null,"url":"assets/hi-C_Mli2FO.js"},{"revision":null,"url":"assets/hi-Ch52Lky6.js"},{"revision":null,"url":"assets/Hidden-qI_JwCnJ.js"},{"revision":null,"url":"assets/home-DNnK3U-z.js"},{"revision":null,"url":"assets/id-_x67Rh2B.js"},{"revision":null,"url":"assets/id-BkncNzMh.js"},{"revision":null,"url":"assets/iframe-BuZAORHf.js"},{"revision":null,"url":"assets/index--PkoOt7s.js"},{"revision":null,"url":"assets/index--Zmo4lNz.js"},{"revision":null,"url":"assets/index-52sgx-HD.js"},{"revision":null,"url":"assets/index-B-Fz2GNJ.js"},{"revision":null,"url":"assets/index-Be2wLDD2.js"},{"revision":null,"url":"assets/index-BElhBMsQ.js"},{"revision":null,"url":"assets/index-BlaHh4Bq.js"},{"revision":null,"url":"assets/index-BM94YLjm.js"},{"revision":null,"url":"assets/index-BmJ_HmLz.js"},{"revision":null,"url":"assets/index-BML-rKDv.js"},{"revision":null,"url":"assets/index-BmTem0RD.js"},{"revision":null,"url":"assets/index-BqbUZVee.js"},{"revision":null,"url":"assets/index-BVQpPnuL.js"},{"revision":null,"url":"assets/index-C0fRQdXZ.js"},{"revision":null,"url":"assets/index-C2qWDMpv.js"},{"revision":null,"url":"assets/index-C5cJ2AYH.js"},{"revision":null,"url":"assets/index-CeNlYeEB.js"},{"revision":null,"url":"assets/index-CMg55b21.js"},{"revision":null,"url":"assets/index-CmriykVM.js"},{"revision":null,"url":"assets/index-CsqAQtnh.js"},{"revision":null,"url":"assets/index-CuDHF3xN.js"},{"revision":null,"url":"assets/index-D0TT-qXy.js"},{"revision":null,"url":"assets/index-D3wlHMtS.js"},{"revision":null,"url":"assets/index-D4PP6P2d.css"},{"revision":null,"url":"assets/index-D8NuaJ66.css"},{"revision":null,"url":"assets/index-DCx94jgM.js"},{"revision":null,"url":"assets/index-DCyB2kx5.js"},{"revision":null,"url":"assets/index-Dg3ZdGFC.js"},{"revision":null,"url":"assets/index-DMGDz3J5.js"},{"revision":null,"url":"assets/index-Dn3O_6kH.js"},{"revision":null,"url":"assets/index-DnNh-evc.js"},{"revision":null,"url":"assets/index-DTEEl-sV.js"},{"revision":null,"url":"assets/index-DyEaiz-D.js"},{"revision":null,"url":"assets/index-foZCwT8M.css"},{"revision":null,"url":"assets/index-fpoxcuML.js"},{"revision":null,"url":"assets/index-HqFqdQ4r.js"},{"revision":null,"url":"assets/index.es-BXRXZClL.js"},{"revision":null,"url":"assets/index.esm-BPFo6X8Z.js"},{"revision":null,"url":"assets/InfoOutlined-ph3gfjxo.js"},{"revision":null,"url":"assets/InputAdornment-ooDD0p7-.js"},{"revision":null,"url":"assets/InputLabel-BvnZs665.js"},{"revision":null,"url":"assets/invitation-D1Wp3bRP.js"},{"revision":null,"url":"assets/invite-YMYQJqN-.js"},{"revision":null,"url":"assets/issue-passport-BGReKwsC.js"},{"revision":null,"url":"assets/item-BXQ3arsv.js"},{"revision":null,"url":"assets/ja-BemsOTjE.js"},{"revision":null,"url":"assets/ja-j9_7sWtG.js"},{"revision":null,"url":"assets/jss-plugin-props-sort.esm-C9YatkDP.js"},{"revision":null,"url":"assets/keyboard-arrow-down-rounded-DadBVmpO.js"},{"revision":null,"url":"assets/ko-BcDVaiV3.js"},{"revision":null,"url":"assets/ko-CqkhhVdi.js"},{"revision":null,"url":"assets/LastPage-Cyi1MuLL.js"},{"revision":null,"url":"assets/Launch-DuItzynA.js"},{"revision":null,"url":"assets/launch-result-message-BerDxO98.js"},{"revision":null,"url":"assets/LaunchOutlined-D-2u70Um.js"},{"revision":null,"url":"assets/layout-D4J5Y79b.js"},{"revision":null,"url":"assets/Link-Bi0x7esG.js"},{"revision":null,"url":"assets/list-header-Be3w9ZWF.js"},{"revision":null,"url":"assets/ListItemText-5Rgq6wEi.js"},{"revision":null,"url":"assets/LoadingButton-D5Z3wmwU.js"},{"revision":null,"url":"assets/localization-C6Hais-M.js"},{"revision":null,"url":"assets/LockIcon-m3nszp09.js"},{"revision":null,"url":"assets/log-CQOOprUt.js"},{"revision":null,"url":"assets/log-D33dFtt_.css"},{"revision":null,"url":"assets/login-BE50q_9g.js"},{"revision":null,"url":"assets/login-oauth-callback-BPCfA25m.js"},{"revision":null,"url":"assets/logo-uploader-BQq1Bvz4.js"},{"revision":null,"url":"assets/Loop-DxSgdtYO.js"},{"revision":null,"url":"assets/lost-passport-CqiiJzdw.js"},{"revision":null,"url":"assets/lottie-8CewroZu.js"},{"revision":null,"url":"assets/mode-B2dWMeTO.js"},{"revision":null,"url":"assets/MoreHoriz-BhT61kh5.js"},{"revision":null,"url":"assets/MoreVert-BZrKRQjN.js"},{"revision":null,"url":"assets/notifications-hFiNE8Kp.js"},{"revision":null,"url":"assets/open-window-DZuQsoOo.js"},{"revision":null,"url":"assets/OpenInNew-BmjNdWrg.js"},{"revision":null,"url":"assets/overview-eXanKabi.js"},{"revision":null,"url":"assets/page-header-D6emPvgS.js"},{"revision":null,"url":"assets/Pagination-BuAgd0Fq.js"},{"revision":null,"url":"assets/permission-CV9At0xV.js"},{"revision":null,"url":"assets/PlayArrow-duerFb9i.js"},{"revision":null,"url":"assets/preact.module-DJUF--8d.js"},{"revision":null,"url":"assets/preferences-GIta-dYt.js"},{"revision":null,"url":"assets/pt-DZmF_qcN.js"},{"revision":null,"url":"assets/pt-NjuvVfFo.js"},{"revision":null,"url":"assets/publish-resource-E3qK4Lfb.js"},{"revision":null,"url":"assets/QuestionMarkCircle-e6Dqgeid.js"},{"revision":null,"url":"assets/RadioGroup-hK79XBIl.js"},{"revision":null,"url":"assets/react-BnX7dsCg.js"},{"revision":null,"url":"assets/react-BW7E7-P9.css"},{"revision":null,"url":"assets/redux-B4e5IkPl.js"},{"revision":null,"url":"assets/resource-dialog-DSlBHCVu.js"},{"revision":null,"url":"assets/ru-BFNdjdAO.js"},{"revision":null,"url":"assets/ru-BsFEd75u.js"},{"revision":null,"url":"assets/sdk-C5Eo3Lk8.js"},{"revision":null,"url":"assets/Search-BMPJQuLV.js"},{"revision":null,"url":"assets/Select-BeArBHJP.js"},{"revision":null,"url":"assets/selector-fvBTD9SB.js"},{"revision":null,"url":"assets/ServerLogo-BNlEHeUQ.js"},{"revision":null,"url":"assets/session-BHe45BP1.js"},{"revision":null,"url":"assets/setup-p-Q92t4g.js"},{"revision":null,"url":"assets/shorten-label-BOSkgF_N.js"},{"revision":null,"url":"assets/Skeleton-D5U61zVB.js"},{"revision":null,"url":"assets/slicedToArray-CbPRhqfX.js"},{"revision":null,"url":"assets/Slider-DTLSNhz0.js"},{"revision":null,"url":"assets/spaces-Dv5sTFBl.js"},{"revision":null,"url":"assets/Stack-CZh-rd3Z.js"},{"revision":null,"url":"assets/start-D4PsKATv.js"},{"revision":null,"url":"assets/step-actions-DvJ3jG2s.js"},{"revision":null,"url":"assets/Stepper-DRS0AaL5.js"},{"revision":null,"url":"assets/studio-kDlNaA-v.js"},{"revision":null,"url":"assets/switch-control-CCflGHVj.js"},{"revision":null,"url":"assets/TextField-qwbmqJ_2.js"},{"revision":null,"url":"assets/th-B61cOYck.js"},{"revision":null,"url":"assets/th-C7TEM40B.js"},{"revision":null,"url":"assets/Toolbar-vbF-NV4R.js"},{"revision":null,"url":"assets/toPropertyKey-PLuKRk1e.js"},{"revision":null,"url":"assets/toUpper-DxMwQ-7A.js"},{"revision":null,"url":"assets/transfer-Cdc4gT4M.js"},{"revision":null,"url":"assets/uniqBy-C7E-hw0R.js"},{"revision":null,"url":"assets/unsubscribe-CZRtq6xH.js"},{"revision":null,"url":"assets/url-join-Cc5BAZ2e.js"},{"revision":null,"url":"assets/use-blocklet-info-for-connect-did-spaces-Dro42um_.js"},{"revision":null,"url":"assets/use-mobile-BziK5djw.js"},{"revision":null,"url":"assets/use-passport-id-B-b-_oYF.js"},{"revision":null,"url":"assets/useAsync-fA1HnQaq.js"},{"revision":null,"url":"assets/useFormControl-CQ_7pr9i.js"},{"revision":null,"url":"assets/useLocalStorage-CpPhACy5.js"},{"revision":null,"url":"assets/user-center-CuPwYsI_.js"},{"revision":null,"url":"assets/user-sessions-lG0a9kqK.js"},{"revision":null,"url":"assets/useSetState-5snwvlLZ.js"},{"revision":null,"url":"assets/useSlot-GRhp-924.js"},{"revision":null,"url":"assets/useSlotProps-CPXTP7XP.js"},{"revision":null,"url":"assets/useThemeProps-BnBMhVDF.js"},{"revision":null,"url":"assets/util-BBmowc-s.js"},{"revision":null,"url":"assets/vi-B884zOLu.js"},{"revision":null,"url":"assets/vi-C1X-AoyG.js"},{"revision":null,"url":"assets/ViewColumn-C39IjII_.js"},{"revision":null,"url":"assets/ViewList-D9Rx7CG7.js"},{"revision":null,"url":"assets/wrap-locale-D-ibzwQK.js"},{"revision":null,"url":"assets/zh-DjEnl7LY.js"},{"revision":null,"url":"assets/zh-kNAPjCk5.js"},{"revision":null,"url":"assets/zh-tw-Bn1Pkz9A.js"},{"revision":null,"url":"assets/zh-tw-DSZuinRu.js"},{"revision":"35c30913207ba2ae84b5c2880c1a329a","url":"index.html"},{"revision":"186b2f1889d7c89ecd30e422ab415c8a","url":"registerSW.js"},{"revision":"07a287e43ae8e959a20d6b367a581667","url":"router-template-styles/styles.css"},{"revision":"ecdddc9b1297e7511cad18529d5cfd89","url":"manifest.webmanifest"}]||[]).filter(s=>s.url!=="/"&&!s.url.includes("index.html")));pe();self.addEventListener("activate",()=>{console.log("Service Worker activated")});self.addEventListener("install",s=>{console.log("Service Worker installed"),s.waitUntil(self.skipWaiting())});const re=s=>!!(s.method!=="GET"||s.url.includes("/api")||s.url.includes("__meta__.js")||s.url.includes("__blocklet__.js"));te(s=>{const{request:e}=s;return re(e)?!1:e.url.includes("/static/")},new mt({cacheName:"static",plugins:[new ut({maxEntries:200})]}));te(s=>{const{request:e}=s;return re(e)?!1:e.url.includes("/images/")||e.url.includes("/router/-template-styles/")},new yt);
2
+ This is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(c)}}}install(e){return H(e,async()=>{const t=new Re;this.strategy.plugins.push(t);for(const[i,n]of this._urlsToCacheKeys){const c=this._cacheKeysToIntegrities.get(n),o=this._urlsToCacheModes.get(i),l=new Request(i,{integrity:c,cache:o,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:n},request:l,event:e}))}const{updatedURLs:r,notUpdatedURLs:a}=t;return{updatedURLs:r,notUpdatedURLs:a}})}activate(e){return H(e,async()=>{const t=await self.caches.open(this.strategy.cacheName),r=await t.keys(),a=new Set(this._urlsToCacheKeys.values()),i=[];for(const n of r)a.has(n.url)||(await t.delete(n),i.push(n.url));return{deletedURLs:i}})}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){const t=e instanceof Request?e.url:e,r=this.getCacheKeyForURL(t);if(r)return(await self.caches.open(this.strategy.cacheName)).match(r)}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new u("non-precached-url",{url:e});return r=>(r.request=new Request(e),r.params=Object.assign({cacheKey:t},r.params),this.strategy.handle(r))}}let T;const J=()=>(T||(T=new Me),T);try{self["workbox:routing:7.0.0"]&&_()}catch{}const z="GET",P=s=>s&&typeof s=="object"?s:{handle:s};let E=class{constructor(e,t,r=z){this.handler=P(t),this.match=e,this.method=r}setCatchHandler(e){this.catchHandler=P(e)}},Te=class extends E{constructor(e,t,r){const a=({url:i})=>{const n=e.exec(i.href);if(n&&!(i.origin!==location.origin&&n.index!==0))return n.slice(1)};super(a,t,r)}},Oe=class{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,r=this.handleRequest({request:t,event:e});r&&e.respondWith(r)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,r=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const i=new Request(...a);return this.handleRequest({request:i,event:e})}));e.waitUntil(r),e.ports&&e.ports[0]&&r.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const r=new URL(e.url,location.href);if(!r.protocol.startsWith("http"))return;const a=r.origin===location.origin,{params:i,route:n}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:r});let c=n&&n.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let l;try{l=c.handle({url:r,request:e,event:t,params:i})}catch(h){l=Promise.reject(h)}const f=n&&n.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:r,request:e,event:t,params:i})}catch(R){R instanceof Error&&(h=R)}if(this._catchHandler)return this._catchHandler.handle({url:r,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:r,event:a}){const i=this._routes.get(r.method)||[];for(const n of i){let c;const o=n.match({url:e,sameOrigin:t,request:r,event:a});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:n,params:c}}return{}}setDefaultHandler(e,t=z){this._defaultHandlerMap.set(t,P(e))}setCatchHandler(e){this._catchHandler=P(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new u("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new u("unregister-route-route-not-registered")}},C;const Se=()=>(C||(C=new Oe,C.addFetchListener(),C.addCacheListener()),C);function Ae(s,e,t){let r;if(typeof s=="string"){const i=new URL(s,location.href),n=({url:c})=>c.href===i.href;r=new E(n,e,t)}else if(s instanceof RegExp)r=new Te(s,e,t);else if(typeof s=="function")r=new E(s,e,t);else if(s instanceof E)r=s;else throw new u("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return Se().registerRoute(r),r}function Ke(s,e=[]){for(const t of[...s.searchParams.keys()])e.some(r=>r.test(t))&&s.searchParams.delete(t);return s}function*Ie(s,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:t="index.html",cleanURLs:r=!0,urlManipulation:a}={}){const i=new URL(s,location.href);i.hash="",yield i.href;const n=Ke(i,e);if(yield n.href,t&&n.pathname.endsWith("/")){const c=new URL(n.href);c.pathname+=t,yield c.href}if(r){const c=new URL(n.href);c.pathname+=".html",yield c.href}if(a){const c=a({url:i});for(const o of c)yield o.href}}class We extends E{constructor(e,t){const r=({request:a})=>{const i=e.getURLsToCacheKeys();for(const n of Ie(a.url,t)){const c=i.get(n);if(c){const o=e.getIntegrityForCacheKey(c);return{cacheKey:c,integrity:o}}}};super(r,e.strategy)}}function je(s){const e=J(),t=new We(e,s);Ae(t)}function qe(s){J().precache(s)}function $e(s,e){qe(s),je(e)}try{self["workbox:core:7.0.0"]&&_()}catch{}const He=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},Be=He;class Fe extends Error{constructor(e,t){const r=Be(e,t);super(r),this.name=e,this.details=t}}function X(s){s.then(()=>{})}const Ve=(s,e)=>e.some(t=>s instanceof t);let F,V;function Ge(){return F||(F=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Qe(){return V||(V=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Y=new WeakMap,I=new WeakMap,Z=new WeakMap,O=new WeakMap,q=new WeakMap;function Je(s){const e=new Promise((t,r)=>{const a=()=>{s.removeEventListener("success",i),s.removeEventListener("error",n)},i=()=>{t(m(s.result)),a()},n=()=>{r(s.error),a()};s.addEventListener("success",i),s.addEventListener("error",n)});return e.then(t=>{t instanceof IDBCursor&&Y.set(t,s)}).catch(()=>{}),q.set(e,s),e}function ze(s){if(I.has(s))return;const e=new Promise((t,r)=>{const a=()=>{s.removeEventListener("complete",i),s.removeEventListener("error",n),s.removeEventListener("abort",n)},i=()=>{t(),a()},n=()=>{r(s.error||new DOMException("AbortError","AbortError")),a()};s.addEventListener("complete",i),s.addEventListener("error",n),s.addEventListener("abort",n)});I.set(s,e)}let W={get(s,e,t){if(s instanceof IDBTransaction){if(e==="done")return I.get(s);if(e==="objectStoreNames")return s.objectStoreNames||Z.get(s);if(e==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return m(s[e])},set(s,e,t){return s[e]=t,!0},has(s,e){return s instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in s}};function Xe(s){W=s(W)}function Ye(s){return s===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const r=s.call(S(this),e,...t);return Z.set(r,e.sort?e.sort():[e]),m(r)}:Qe().includes(s)?function(...e){return s.apply(S(this),e),m(Y.get(this))}:function(...e){return m(s.apply(S(this),e))}}function Ze(s){return typeof s=="function"?Ye(s):(s instanceof IDBTransaction&&ze(s),Ve(s,Ge())?new Proxy(s,W):s)}function m(s){if(s instanceof IDBRequest)return Je(s);if(O.has(s))return O.get(s);const e=Ze(s);return e!==s&&(O.set(s,e),q.set(e,s)),e}const S=s=>q.get(s);function et(s,e,{blocked:t,upgrade:r,blocking:a,terminated:i}={}){const n=indexedDB.open(s,e),c=m(n);return r&&n.addEventListener("upgradeneeded",o=>{r(m(n.result),o.oldVersion,o.newVersion,m(n.transaction),o)}),t&&n.addEventListener("blocked",o=>t(o.oldVersion,o.newVersion,o)),c.then(o=>{i&&o.addEventListener("close",()=>i()),a&&o.addEventListener("versionchange",l=>a(l.oldVersion,l.newVersion,l))}).catch(()=>{}),c}function tt(s,{blocked:e}={}){const t=indexedDB.deleteDatabase(s);return e&&t.addEventListener("blocked",r=>e(r.oldVersion,r)),m(t).then(()=>{})}const st=["get","getKey","getAll","getAllKeys","count"],rt=["put","add","delete","clear"],A=new Map;function G(s,e){if(!(s instanceof IDBDatabase&&!(e in s)&&typeof e=="string"))return;if(A.get(e))return A.get(e);const t=e.replace(/FromIndex$/,""),r=e!==t,a=rt.includes(t);if(!(t in(r?IDBIndex:IDBObjectStore).prototype)||!(a||st.includes(t)))return;const i=async function(n,...c){const o=this.transaction(n,a?"readwrite":"readonly");let l=o.store;return r&&(l=l.index(c.shift())),(await Promise.all([l[t](...c),a&&o.done]))[0]};return A.set(e,i),i}Xe(s=>({...s,get:(e,t,r)=>G(e,t)||s.get(e,t,r),has:(e,t)=>!!G(e,t)||s.has(e,t)}));try{self["workbox:expiration:7.0.0"]&&_()}catch{}const at="workbox-expiration",x="cache-entries",Q=s=>{const e=new URL(s,location.href);return e.hash="",e.href};class nt{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(x,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&tt(this._cacheName)}async setTimestamp(e,t){e=Q(e);const r={url:e,timestamp:t,cacheName:this._cacheName,id:this._getId(e)},i=(await this.getDb()).transaction(x,"readwrite",{durability:"relaxed"});await i.store.put(r),await i.done}async getTimestamp(e){const r=await(await this.getDb()).get(x,this._getId(e));return r==null?void 0:r.timestamp}async expireEntries(e,t){const r=await this.getDb();let a=await r.transaction(x).store.index("timestamp").openCursor(null,"prev");const i=[];let n=0;for(;a;){const o=a.value;o.cacheName===this._cacheName&&(e&&o.timestamp<e||t&&n>=t?i.push(a.value):n++),a=await a.continue()}const c=[];for(const o of i)await r.delete(x,o.id),c.push(o.url);return c}_getId(e){return this._cacheName+"|"+Q(e)}async getDb(){return this._db||(this._db=await et(at,1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class it{constructor(e,t={}){this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=t.maxEntries,this._maxAgeSeconds=t.maxAgeSeconds,this._matchOptions=t.matchOptions,this._cacheName=e,this._timestampModel=new nt(e)}async expireEntries(){if(this._isRunning){this._rerunRequested=!0;return}this._isRunning=!0;const e=this._maxAgeSeconds?Date.now()-this._maxAgeSeconds*1e3:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),r=await self.caches.open(this._cacheName);for(const a of t)await r.delete(a,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,X(this.expireEntries()))}async updateTimestamp(e){await this._timestampModel.setTimestamp(e,Date.now())}async isURLExpired(e){if(this._maxAgeSeconds){const t=await this._timestampModel.getTimestamp(e),r=Date.now()-this._maxAgeSeconds*1e3;return t!==void 0?t<r:!0}else return!1}async delete(){this._rerunRequested=!1,await this._timestampModel.expireEntries(1/0)}}const g={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},K=s=>[g.prefix,s,g.suffix].filter(e=>e&&e.length>0).join("-"),ct=s=>{for(const e of Object.keys(g))s(e)},ot={updateDetails:s=>{ct(e=>{typeof s[e]=="string"&&(g[e]=s[e])})},getGoogleAnalyticsName:s=>s||K(g.googleAnalytics),getPrecacheName:s=>s||K(g.precache),getPrefix:()=>g.prefix,getRuntimeName:s=>s||K(g.runtime),getSuffix:()=>g.suffix},lt=new Set;function ht(s){lt.add(s)}class ut{constructor(e={}){this.cachedResponseWillBeUsed=async({event:t,request:r,cacheName:a,cachedResponse:i})=>{if(!i)return null;const n=this._isResponseDateFresh(i),c=this._getCacheExpiration(a);X(c.expireEntries());const o=c.updateTimestamp(r.url);if(t)try{t.waitUntil(o)}catch{}return n?i:null},this.cacheDidUpdate=async({cacheName:t,request:r})=>{const a=this._getCacheExpiration(t);await a.updateTimestamp(r.url),await a.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&ht(()=>this.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===ot.getRuntimeName())throw new Fe("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new it(e,this._config),this._cacheExpirations.set(e,t)),t}_isResponseDateFresh(e){if(!this._maxAgeSeconds)return!0;const t=this._getDateHeaderTimestamp(e);if(t===null)return!0;const r=Date.now();return t>=r-this._maxAgeSeconds*1e3}_getDateHeaderTimestamp(e){if(!e.headers.has("date"))return null;const t=e.headers.get("date"),a=new Date(t).getTime();return isNaN(a)?null:a}async deleteCacheAndMetadata(){for(const[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}}try{self["workbox:routing:7.0.0"]&&_()}catch{}const ee="GET",v=s=>s&&typeof s=="object"?s:{handle:s};class L{constructor(e,t,r=ee){this.handler=v(t),this.match=e,this.method=r}setCatchHandler(e){this.catchHandler=v(e)}}class ft extends L{constructor(e,t,r){const a=({url:i})=>{const n=e.exec(i.href);if(n&&!(i.origin!==location.origin&&n.index!==0))return n.slice(1)};super(a,t,r)}}class dt{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,r=this.handleRequest({request:t,event:e});r&&e.respondWith(r)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,r=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const i=new Request(...a);return this.handleRequest({request:i,event:e})}));e.waitUntil(r),e.ports&&e.ports[0]&&r.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const r=new URL(e.url,location.href);if(!r.protocol.startsWith("http"))return;const a=r.origin===location.origin,{params:i,route:n}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:r});let c=n&&n.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let l;try{l=c.handle({url:r,request:e,event:t,params:i})}catch(h){l=Promise.reject(h)}const f=n&&n.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:r,request:e,event:t,params:i})}catch(R){R instanceof Error&&(h=R)}if(this._catchHandler)return this._catchHandler.handle({url:r,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:r,event:a}){const i=this._routes.get(r.method)||[];for(const n of i){let c;const o=n.match({url:e,sameOrigin:t,request:r,event:a});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:n,params:c}}return{}}setDefaultHandler(e,t=ee){this._defaultHandlerMap.set(t,v(e))}setCatchHandler(e){this._catchHandler=v(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new y("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new y("unregister-route-route-not-registered")}}let k;const pt=()=>(k||(k=new dt,k.addFetchListener(),k.addCacheListener()),k);function te(s,e,t){let r;if(typeof s=="string"){const i=new URL(s,location.href),n=({url:c})=>c.href===i.href;r=new L(n,e,t)}else if(s instanceof RegExp)r=new ft(s,e,t);else if(typeof s=="function")r=new L(s,e,t);else if(s instanceof L)r=s;else throw new y("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return pt().registerRoute(r),r}try{self["workbox:strategies:7.0.0"]&&_()}catch{}function U(s){return typeof s=="string"?new Request(s):s}class gt{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new he,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const r of this._plugins)this._pluginStateMap.set(r,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let r=U(e);if(r.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const n=await t.preloadResponse;if(n)return n}const a=this.hasCallback("fetchDidFail")?r.clone():null;try{for(const n of this.iterateCallbacks("requestWillFetch"))r=await n({request:r.clone(),event:t})}catch(n){if(n instanceof Error)throw new y("plugin-error-request-will-fetch",{thrownErrorMessage:n.message})}const i=r.clone();try{let n;n=await fetch(r,r.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const c of this.iterateCallbacks("fetchDidSucceed"))n=await c({event:t,request:i,response:n});return n}catch(n){throw a&&await this.runCallbacks("fetchDidFail",{error:n,event:t,originalRequest:a.clone(),request:i.clone()}),n}}async fetchAndCachePut(e){const t=await this.fetch(e),r=t.clone();return this.waitUntil(this.cachePut(e,r)),t}async cacheMatch(e){const t=U(e);let r;const{cacheName:a,matchOptions:i}=this._strategy,n=await this.getCacheKey(t,"read"),c=Object.assign(Object.assign({},i),{cacheName:a});r=await caches.match(n,c);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))r=await o({cacheName:a,matchOptions:i,cachedResponse:r,request:n,event:this.event})||void 0;return r}async cachePut(e,t){const r=U(e);await de(0);const a=await this.getCacheKey(r,"write");if(!t)throw new y("cache-put-with-no-response",{url:fe(a.url)});const i=await this._ensureResponseSafeToCache(t);if(!i)return!1;const{cacheName:n,matchOptions:c}=this._strategy,o=await self.caches.open(n),l=this.hasCallback("cacheDidUpdate"),f=l?await le(o,a.clone(),["__WB_REVISION__"],c):null;try{await o.put(a,l?i.clone():i)}catch(h){if(h instanceof Error)throw h.name==="QuotaExceededError"&&await ue(),h}for(const h of this.iterateCallbacks("cacheDidUpdate"))await h({cacheName:n,oldResponse:f,newResponse:i.clone(),request:a,event:this.event});return!0}async getCacheKey(e,t){const r=`${e.url} | ${t}`;if(!this._cacheKeys[r]){let a=e;for(const i of this.iterateCallbacks("cacheKeyWillBeUsed"))a=U(await i({mode:t,request:a,event:this.event,params:this.params}));this._cacheKeys[r]=a}return this._cacheKeys[r]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const r of this.iterateCallbacks(e))await r(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const r=this._pluginStateMap.get(t);yield i=>{const n=Object.assign(Object.assign({},i),{state:r});return t[e](n)}}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,r=!1;for(const a of this.iterateCallbacks("cacheWillUpdate"))if(t=await a({request:this.request,response:t,event:this.event})||void 0,r=!0,!t)break;return r||t&&t.status!==200&&(t=void 0),t}}class se{constructor(e={}){this.cacheName=oe.getRuntimeName(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,r=typeof e.request=="string"?new Request(e.request):e.request,a="params"in e?e.params:void 0,i=new gt(this,{event:t,request:r,params:a}),n=this._getResponse(i,r,t),c=this._awaitComplete(n,i,r,t);return[n,c]}async _getResponse(e,t,r){await e.runCallbacks("handlerWillStart",{event:r,request:t});let a;try{if(a=await this._handle(t,e),!a||a.type==="error")throw new y("no-response",{url:t.url})}catch(i){if(i instanceof Error){for(const n of e.iterateCallbacks("handlerDidError"))if(a=await n({error:i,event:r,request:t}),a)break}if(!a)throw i}for(const i of e.iterateCallbacks("handlerWillRespond"))a=await i({event:r,request:t,response:a});return a}async _awaitComplete(e,t,r,a){let i,n;try{i=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:a,request:r,response:i}),await t.doneWaiting()}catch(c){c instanceof Error&&(n=c)}if(await t.runCallbacks("handlerDidComplete",{event:a,request:r,response:i,error:n}),t.destroy(),n)throw n}}class mt extends se{async _handle(e,t){let r=await t.cacheMatch(e),a;if(!r)try{r=await t.fetchAndCachePut(e)}catch(i){i instanceof Error&&(a=i)}if(!r)throw new y("no-response",{url:e.url,error:a});return r}}const wt={cacheWillUpdate:async({response:s})=>s.status===200||s.status===0?s:null};class yt extends se{constructor(e={}){super(e),this.plugins.some(t=>"cacheWillUpdate"in t)||this.plugins.unshift(wt)}async _handle(e,t){const r=t.fetchAndCachePut(e).catch(()=>{});t.waitUntil(r);let a=await t.cacheMatch(e),i;if(!a)try{a=await r}catch(n){n instanceof Error&&(i=n)}if(!a)throw new y("no-response",{url:e.url,error:i});return a}}$e(([{"revision":null,"url":"assets/access-control-Coh2AROp.js"},{"revision":null,"url":"assets/actions-DU4pTpmF.js"},{"revision":null,"url":"assets/add-component-core-D_j8BgsJ.css"},{"revision":null,"url":"assets/add-component-core-DT8eSr6D.js"},{"revision":null,"url":"assets/Add-DPWETbuH.js"},{"revision":null,"url":"assets/add-resource-CSMNGPH3.js"},{"revision":null,"url":"assets/addon-DImOcoyp.js"},{"revision":null,"url":"assets/Alert-DDr4PUmN.js"},{"revision":null,"url":"assets/analytics-CdJi4q2Q.js"},{"revision":null,"url":"assets/api-DUETbHv8.js"},{"revision":null,"url":"assets/ar-BywPGmOa.js"},{"revision":null,"url":"assets/ar-cd9W8CrI.js"},{"revision":null,"url":"assets/ArrowDropDown-BCZ8iqaM.js"},{"revision":null,"url":"assets/audit-logs-Bf2mKt3i.js"},{"revision":null,"url":"assets/Avatar-Der2Q3Zi.js"},{"revision":null,"url":"assets/button-LdgYe-Yo.js"},{"revision":null,"url":"assets/ButtonGroup-zMm3edlK.js"},{"revision":null,"url":"assets/CheckCircle-BfztTFob.js"},{"revision":null,"url":"assets/ChevronLeft-CrTHRIqK.js"},{"revision":null,"url":"assets/ChevronRight-CIt5KDbd.js"},{"revision":null,"url":"assets/click-to-copy-GLcS-PQh.js"},{"revision":null,"url":"assets/Close-CgA7Qef8.js"},{"revision":null,"url":"assets/CloseOutlined-OBzuC30j.js"},{"revision":null,"url":"assets/complete-d1PDQlj9.js"},{"revision":null,"url":"assets/component-Ny_sGfYr.js"},{"revision":null,"url":"assets/config-CFU2n19a.js"},{"revision":null,"url":"assets/config-CpPqNxWJ.js"},{"revision":null,"url":"assets/config-navigation-BQEWPLSH.js"},{"revision":null,"url":"assets/confirm-BdJlZzQ-.js"},{"revision":null,"url":"assets/connect-BDR3XUNJ.js"},{"revision":null,"url":"assets/connect-ndruP8fv.js"},{"revision":null,"url":"assets/connect-to-D6gkq_5F.js"},{"revision":null,"url":"assets/content-layout-9pObqqwC.js"},{"revision":null,"url":"assets/dashboard-Clr7sJbb.js"},{"revision":null,"url":"assets/de-DS4XAN75.js"},{"revision":null,"url":"assets/de-qs3PjT55.js"},{"revision":null,"url":"assets/Delete-DVYTl7-n.js"},{"revision":null,"url":"assets/DeleteOutline-DKoxIRL9.js"},{"revision":null,"url":"assets/DialogContentText-BnQAOkxN.js"},{"revision":null,"url":"assets/did-address-DNmiCCjI.js"},{"revision":null,"url":"assets/domain-BM3Ias2K.js"},{"revision":null,"url":"assets/domain-list-BdKqoNlW.js"},{"revision":null,"url":"assets/Done-D1_3yhtX.js"},{"revision":null,"url":"assets/Download-CvngcFRX.js"},{"revision":null,"url":"assets/Edit-DQ3aLTS3.js"},{"revision":null,"url":"assets/EditIcon-C5DCIJQ3.js"},{"revision":null,"url":"assets/email-03xGEqer.js"},{"revision":null,"url":"assets/Error-DOhq8cCM.js"},{"revision":null,"url":"assets/es-DXb9xB6c.js"},{"revision":null,"url":"assets/es-XT3Dd0hc.js"},{"revision":null,"url":"assets/exchange-passport-BwiQ670F.js"},{"revision":null,"url":"assets/ExpandMore-BgcTT2Bb.js"},{"revision":null,"url":"assets/fallback-BLJkxLTK.js"},{"revision":null,"url":"assets/format-error-C43xGCjC.js"},{"revision":null,"url":"assets/FormControl-D00yHDcj.js"},{"revision":null,"url":"assets/FormControlLabel-BJXWJJky.js"},{"revision":null,"url":"assets/FormGroup-CBgybl1l.js"},{"revision":null,"url":"assets/fr-C5TQA9s1.js"},{"revision":null,"url":"assets/fr-CMgZc3LR.js"},{"revision":null,"url":"assets/fuel-C7otG6Kf.js"},{"revision":null,"url":"assets/fullpage-C4Et_NyD.js"},{"revision":null,"url":"assets/Google-Be2TlnTX.js"},{"revision":null,"url":"assets/hi-C_Mli2FO.js"},{"revision":null,"url":"assets/hi-Ch52Lky6.js"},{"revision":null,"url":"assets/Hidden-Bg6BPxEd.js"},{"revision":null,"url":"assets/home-CZCCRVbe.js"},{"revision":null,"url":"assets/id-_x67Rh2B.js"},{"revision":null,"url":"assets/id-BkncNzMh.js"},{"revision":null,"url":"assets/iframe-CPKiwkND.js"},{"revision":null,"url":"assets/index-AgTn3eU4.js"},{"revision":null,"url":"assets/index-B3ThwVSS.js"},{"revision":null,"url":"assets/index-BaC4EhQh.js"},{"revision":null,"url":"assets/index-Bc3FFnWG.js"},{"revision":null,"url":"assets/index-BCMjvLku.js"},{"revision":null,"url":"assets/index-BK9kuqs5.js"},{"revision":null,"url":"assets/index-BlvJrvQX.js"},{"revision":null,"url":"assets/index-BrFlqDrV.js"},{"revision":null,"url":"assets/index-BRnCFYx3.js"},{"revision":null,"url":"assets/index-BWVDn9BP.js"},{"revision":null,"url":"assets/index-BzY4clAs.js"},{"revision":null,"url":"assets/index-CbBjirNE.js"},{"revision":null,"url":"assets/index-CD6yQnY4.js"},{"revision":null,"url":"assets/index-Cfnr_7cH.js"},{"revision":null,"url":"assets/index-CFpdZL6w.js"},{"revision":null,"url":"assets/index-CH2n2mOS.js"},{"revision":null,"url":"assets/index-ChWrF7R7.js"},{"revision":null,"url":"assets/index-CT70Tuv9.js"},{"revision":null,"url":"assets/index-CTil0VJz.js"},{"revision":null,"url":"assets/index-CWjTgh2V.js"},{"revision":null,"url":"assets/index-CzxDEhmG.js"},{"revision":null,"url":"assets/index-D4PP6P2d.css"},{"revision":null,"url":"assets/index-D8NuaJ66.css"},{"revision":null,"url":"assets/index-D9e3uQkW.js"},{"revision":null,"url":"assets/index-DiOkeCOc.js"},{"revision":null,"url":"assets/index-Dp6zROo4.js"},{"revision":null,"url":"assets/index-DPXmNWqb.js"},{"revision":null,"url":"assets/index-DR40cJFL.js"},{"revision":null,"url":"assets/index-DTEEl-sV.js"},{"revision":null,"url":"assets/index-Ez2y1Lea.js"},{"revision":null,"url":"assets/index-foZCwT8M.css"},{"revision":null,"url":"assets/index-hkkOggLS.js"},{"revision":null,"url":"assets/index-HqFqdQ4r.js"},{"revision":null,"url":"assets/index-lVfYf5Oq.js"},{"revision":null,"url":"assets/index-s95vTNww.js"},{"revision":null,"url":"assets/index-TwQfcdR0.js"},{"revision":null,"url":"assets/index.es-CkGqU4MQ.js"},{"revision":null,"url":"assets/index.esm-8yCk0S5h.js"},{"revision":null,"url":"assets/InfoOutlined-BxTwuqiu.js"},{"revision":null,"url":"assets/InputAdornment-BGOXKboF.js"},{"revision":null,"url":"assets/InputLabel-BaHBEVm2.js"},{"revision":null,"url":"assets/invitation-DAGy7I2M.js"},{"revision":null,"url":"assets/invite-06pBNgrg.js"},{"revision":null,"url":"assets/issue-passport-CbtgsLgQ.js"},{"revision":null,"url":"assets/item-B0XIEv1j.js"},{"revision":null,"url":"assets/ja-BemsOTjE.js"},{"revision":null,"url":"assets/ja-j9_7sWtG.js"},{"revision":null,"url":"assets/jss-plugin-props-sort.esm-D4wv_NcC.js"},{"revision":null,"url":"assets/keyboard-arrow-down-rounded-DadBVmpO.js"},{"revision":null,"url":"assets/ko-BcDVaiV3.js"},{"revision":null,"url":"assets/ko-CqkhhVdi.js"},{"revision":null,"url":"assets/LastPage-DyrTuTrl.js"},{"revision":null,"url":"assets/Launch-CNWKbDVj.js"},{"revision":null,"url":"assets/launch-result-message-BGkFHBr0.js"},{"revision":null,"url":"assets/LaunchOutlined-BuQ3n0Nq.js"},{"revision":null,"url":"assets/layout-C1fJ0PwQ.js"},{"revision":null,"url":"assets/Link-CiVKLn7B.js"},{"revision":null,"url":"assets/list-header-D2TsmXsU.js"},{"revision":null,"url":"assets/ListItemText-BW_owdy0.js"},{"revision":null,"url":"assets/LoadingButton-AM-IIW_5.js"},{"revision":null,"url":"assets/localization-IrbI0TJr.js"},{"revision":null,"url":"assets/LockIcon-0vWjHODV.js"},{"revision":null,"url":"assets/log-Bx1CDJfR.js"},{"revision":null,"url":"assets/log-D33dFtt_.css"},{"revision":null,"url":"assets/login-Ci8kprd2.js"},{"revision":null,"url":"assets/login-oauth-callback-OcVe-Pko.js"},{"revision":null,"url":"assets/logo-uploader-DPtvNrwp.js"},{"revision":null,"url":"assets/Loop-C8sLBH67.js"},{"revision":null,"url":"assets/lost-passport-DQYzD5oM.js"},{"revision":null,"url":"assets/lottie-Dtcij0yx.js"},{"revision":null,"url":"assets/mode-B2dWMeTO.js"},{"revision":null,"url":"assets/MoreHoriz-i1hLrklo.js"},{"revision":null,"url":"assets/MoreVert-D_g6Th6c.js"},{"revision":null,"url":"assets/notifications-u_yxMKF9.js"},{"revision":null,"url":"assets/open-window-Ca8SnnJR.js"},{"revision":null,"url":"assets/OpenInNew-DBNjDxil.js"},{"revision":null,"url":"assets/overview-hyt-Fv0L.js"},{"revision":null,"url":"assets/page-header-DZBo2jY4.js"},{"revision":null,"url":"assets/Pagination-DLYy7jWI.js"},{"revision":null,"url":"assets/permission-DDD12SuE.js"},{"revision":null,"url":"assets/PlayArrow-ywjbMR8A.js"},{"revision":null,"url":"assets/preact.module-DJUF--8d.js"},{"revision":null,"url":"assets/preferences-BzxjYd2D.js"},{"revision":null,"url":"assets/pt-DZmF_qcN.js"},{"revision":null,"url":"assets/pt-NjuvVfFo.js"},{"revision":null,"url":"assets/publish-resource-BL3ifBGp.js"},{"revision":null,"url":"assets/QuestionMarkCircle-UZOXHzIe.js"},{"revision":null,"url":"assets/RadioGroup-BOq5mI1A.js"},{"revision":null,"url":"assets/react-BW7E7-P9.css"},{"revision":null,"url":"assets/react-iXxw1Yhu.js"},{"revision":null,"url":"assets/redux-Bma4eNss.js"},{"revision":null,"url":"assets/resource-dialog-DhmviK8K.js"},{"revision":null,"url":"assets/ru-BFNdjdAO.js"},{"revision":null,"url":"assets/ru-BsFEd75u.js"},{"revision":null,"url":"assets/sdk-B37oViy1.js"},{"revision":null,"url":"assets/Search-Cm2FDsnl.js"},{"revision":null,"url":"assets/Select-_ZzhxUOz.js"},{"revision":null,"url":"assets/selector-B8IAFODK.js"},{"revision":null,"url":"assets/ServerLogo-DeFJVAh8.js"},{"revision":null,"url":"assets/session-D3mS3Gz5.js"},{"revision":null,"url":"assets/setup-TXTEwwLA.js"},{"revision":null,"url":"assets/shorten-label-DWH-tsmz.js"},{"revision":null,"url":"assets/Skeleton-D6pzHOGJ.js"},{"revision":null,"url":"assets/slicedToArray-Doa8i3Sy.js"},{"revision":null,"url":"assets/Slider-ZYL8jZ1U.js"},{"revision":null,"url":"assets/spaces-DPfrZKXe.js"},{"revision":null,"url":"assets/Stack-DuNNAX-1.js"},{"revision":null,"url":"assets/start-DwEZv43D.js"},{"revision":null,"url":"assets/step-actions-B1vsf_QO.js"},{"revision":null,"url":"assets/Stepper-DJcNoyk4.js"},{"revision":null,"url":"assets/studio-CTK5QQPt.js"},{"revision":null,"url":"assets/switch-control-DJhTvGtn.js"},{"revision":null,"url":"assets/TextField-DvTYZ6EA.js"},{"revision":null,"url":"assets/th-B61cOYck.js"},{"revision":null,"url":"assets/th-C7TEM40B.js"},{"revision":null,"url":"assets/Toolbar-DbekG5v-.js"},{"revision":null,"url":"assets/toPropertyKey-PLuKRk1e.js"},{"revision":null,"url":"assets/toUpper-Bff1Q0mA.js"},{"revision":null,"url":"assets/transfer-IRhzEeuE.js"},{"revision":null,"url":"assets/uniqBy-DIeGY4K_.js"},{"revision":null,"url":"assets/unsubscribe-CwygyLJZ.js"},{"revision":null,"url":"assets/url-join-D5TK65dM.js"},{"revision":null,"url":"assets/use-blocklet-info-for-connect-did-spaces-DaNxIRBj.js"},{"revision":null,"url":"assets/use-mobile-BA_cO1yG.js"},{"revision":null,"url":"assets/use-passport-id-B-b-_oYF.js"},{"revision":null,"url":"assets/useAsync-Bl2lmnoD.js"},{"revision":null,"url":"assets/useFormControl-CAWQrhew.js"},{"revision":null,"url":"assets/useLocalStorage-DkK4fk62.js"},{"revision":null,"url":"assets/user-center-BEb-hcxI.js"},{"revision":null,"url":"assets/user-sessions-D_s7CT2k.js"},{"revision":null,"url":"assets/useSetState-OuMAH4bG.js"},{"revision":null,"url":"assets/useSlot-nO86v-Bn.js"},{"revision":null,"url":"assets/useSlotProps-B8lkbwkT.js"},{"revision":null,"url":"assets/useThemeProps-CIT7yB5m.js"},{"revision":null,"url":"assets/util-znUxW1sG.js"},{"revision":null,"url":"assets/vi-B884zOLu.js"},{"revision":null,"url":"assets/vi-C1X-AoyG.js"},{"revision":null,"url":"assets/ViewColumn-BOqfI3PF.js"},{"revision":null,"url":"assets/ViewList-DloAt_wk.js"},{"revision":null,"url":"assets/wrap-locale-BjkpLOO0.js"},{"revision":null,"url":"assets/zh-DjEnl7LY.js"},{"revision":null,"url":"assets/zh-kNAPjCk5.js"},{"revision":null,"url":"assets/zh-tw-Bn1Pkz9A.js"},{"revision":null,"url":"assets/zh-tw-DSZuinRu.js"},{"revision":"ca71630d30711ee03744e3ca0e880bcd","url":"index.html"},{"revision":"186b2f1889d7c89ecd30e422ab415c8a","url":"registerSW.js"},{"revision":"07a287e43ae8e959a20d6b367a581667","url":"router-template-styles/styles.css"},{"revision":"ecdddc9b1297e7511cad18529d5cfd89","url":"manifest.webmanifest"}]||[]).filter(s=>s.url!=="/"&&!s.url.includes("index.html")));pe();self.addEventListener("activate",()=>{console.log("Service Worker activated")});self.addEventListener("install",s=>{console.log("Service Worker installed"),s.waitUntil(self.skipWaiting())});const re=s=>!!(s.method!=="GET"||s.url.includes("/api")||s.url.includes("__meta__.js")||s.url.includes("__blocklet__.js"));te(s=>{const{request:e}=s;return re(e)?!1:e.url.includes("/static/")},new mt({cacheName:"static",plugins:[new ut({maxEntries:200})]}));te(s=>{const{request:e}=s;return re(e)?!1:e.url.includes("/images/")||e.url.includes("/router/-template-styles/")},new yt);
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.32-beta-0593a408",
6
+ "version": "1.16.32-beta-5463e017",
7
7
  "description": "Provide unified services for every blocklet",
8
8
  "main": "api/index.js",
9
9
  "files": [
@@ -33,17 +33,17 @@
33
33
  "author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
34
34
  "license": "Apache-2.0",
35
35
  "dependencies": {
36
- "@abtnode/analytics": "1.16.32-beta-0593a408",
37
- "@abtnode/auth": "1.16.32-beta-0593a408",
38
- "@abtnode/client": "1.16.32-beta-0593a408",
39
- "@abtnode/connect-storage": "1.16.32-beta-0593a408",
40
- "@abtnode/constant": "1.16.32-beta-0593a408",
41
- "@abtnode/core": "1.16.32-beta-0593a408",
42
- "@abtnode/cron": "1.16.32-beta-0593a408",
43
- "@abtnode/logger": "1.16.32-beta-0593a408",
44
- "@abtnode/models": "1.16.32-beta-0593a408",
45
- "@abtnode/router-templates": "1.16.32-beta-0593a408",
46
- "@abtnode/util": "1.16.32-beta-0593a408",
36
+ "@abtnode/analytics": "1.16.32-beta-5463e017",
37
+ "@abtnode/auth": "1.16.32-beta-5463e017",
38
+ "@abtnode/client": "1.16.32-beta-5463e017",
39
+ "@abtnode/connect-storage": "1.16.32-beta-5463e017",
40
+ "@abtnode/constant": "1.16.32-beta-5463e017",
41
+ "@abtnode/core": "1.16.32-beta-5463e017",
42
+ "@abtnode/cron": "1.16.32-beta-5463e017",
43
+ "@abtnode/logger": "1.16.32-beta-5463e017",
44
+ "@abtnode/models": "1.16.32-beta-5463e017",
45
+ "@abtnode/router-templates": "1.16.32-beta-5463e017",
46
+ "@abtnode/util": "1.16.32-beta-5463e017",
47
47
  "@arcblock/did": "^1.18.135",
48
48
  "@arcblock/did-auth": "1.18.135",
49
49
  "@arcblock/did-ext": "^1.18.135",
@@ -52,11 +52,11 @@
52
52
  "@arcblock/jwt": "1.18.135",
53
53
  "@arcblock/validator": "^1.18.135",
54
54
  "@arcblock/ws": "1.18.135",
55
- "@blocklet/constant": "1.16.32-beta-0593a408",
55
+ "@blocklet/constant": "1.16.32-beta-5463e017",
56
56
  "@blocklet/form-builder": "^0.1.11",
57
57
  "@blocklet/form-collector": "^0.1.8",
58
- "@blocklet/meta": "1.16.32-beta-0593a408",
59
- "@blocklet/sdk": "1.16.32-beta-0593a408",
58
+ "@blocklet/meta": "1.16.32-beta-5463e017",
59
+ "@blocklet/sdk": "1.16.32-beta-5463e017",
60
60
  "@did-connect/authenticator": "^2.2.4",
61
61
  "@did-connect/relay-adapter-express": "^2.2.4",
62
62
  "@ocap/client": "1.18.135",
@@ -101,15 +101,15 @@
101
101
  "minimatch": "9.0.4"
102
102
  },
103
103
  "devDependencies": {
104
- "@abtnode/ux": "1.16.32-beta-0593a408",
105
- "@arcblock/bridge": "^2.10.32",
106
- "@arcblock/did-connect": "^2.10.32",
107
- "@arcblock/icons": "^2.10.32",
108
- "@arcblock/react-hooks": "^2.10.32",
109
- "@arcblock/ux": "^2.10.32",
110
- "@blocklet/launcher-layout": "2.10.32",
111
- "@blocklet/tracker": "1.16.32-beta-0593a408",
112
- "@blocklet/ui-react": "^2.10.32",
104
+ "@abtnode/ux": "1.16.32-beta-5463e017",
105
+ "@arcblock/bridge": "^2.10.33",
106
+ "@arcblock/did-connect": "^2.10.33",
107
+ "@arcblock/icons": "^2.10.33",
108
+ "@arcblock/react-hooks": "^2.10.33",
109
+ "@arcblock/ux": "^2.10.33",
110
+ "@blocklet/launcher-layout": "2.10.33",
111
+ "@blocklet/tracker": "1.16.32-beta-5463e017",
112
+ "@blocklet/ui-react": "^2.10.33",
113
113
  "@emotion/react": "^11.11.4",
114
114
  "@emotion/styled": "^11.11.5",
115
115
  "@iconify/iconify": "^3.1.1",
@@ -182,5 +182,5 @@
182
182
  "url": "https://github.com/ArcBlock/blocklet-server/issues",
183
183
  "email": "shijun@arcblock.io"
184
184
  },
185
- "gitHead": "5cca981049ad04018d8d361d9cdd33748f47d7d7"
185
+ "gitHead": "aff2d89d663ccd842757ff664fb80e1d7ae05029"
186
186
  }
@@ -1 +0,0 @@
1
- import{c3 as a}from"./index-fpoxcuML.js";a.defaults.timeout=10*1e3;const o=a.create();export{o as a};
@@ -1 +0,0 @@
1
- import{j as o}from"./index-fpoxcuML.js";import{S as t}from"./studio-kDlNaA-v.js";import"./index-BElhBMsQ.js";import"./Toolbar-vbF-NV4R.js";import"./Hidden-qI_JwCnJ.js";import"./fallback-0bWgPkSN.js";function u(){return o.jsx(t,{children:"Coming soon..."})}export{u as default};
@@ -1 +0,0 @@
1
- import{u as n,bx as l,$ as d,r as c,j as i,au as u,B as h}from"./index-fpoxcuML.js";import g from"./index-CsqAQtnh.js";import"./Add-BXK5RFEZ.js";import"./Delete-BVwa0m1R.js";import"./Error-Cpv-DWNH.js";import"./index-D0TT-qXy.js";import"./useThemeProps-BnBMhVDF.js";import"./toPropertyKey-PLuKRk1e.js";import"./index-BM94YLjm.js";import"./redux-B4e5IkPl.js";import"./FormControlLabel-DXsQRQXS.js";import"./useFormControl-CQ_7pr9i.js";import"./Stack-CZh-rd3Z.js";import"./ViewColumn-C39IjII_.js";import"./FormControl-DFtCJG5u.js";import"./FormGroup-BYqGm4p-.js";import"./Select-BeArBHJP.js";import"./InputLabel-BvnZs665.js";import"./ListItemText-5Rgq6wEi.js";import"./TextField-qwbmqJ_2.js";import"./index-DMGDz3J5.js";import"./LastPage-Cyi1MuLL.js";import"./Toolbar-vbF-NV4R.js";import"./Search-BMPJQuLV.js";import"./index-BmJ_HmLz.js";import"./MoreVert-BZrKRQjN.js";import"./index-DCyB2kx5.js";import"./confirm-BY-9Ale6.js";import"./DialogContentText-ClisAi23.js";import"./Alert-CeGhMuEg.js";import"./useSlot-GRhp-924.js";import"./format-error-BOfFwKPG.js";import"./session-BHe45BP1.js";import"./did-address-Bye61gv9.js";import"./Link-Bi0x7esG.js";import"./ChevronRight-BGd4BknI.js";import"./Avatar-DlL4WPrD.js";import"./shorten-label-BOSkgF_N.js";import"./Download-BONj8GVi.js";import"./QuestionMarkCircle-e6Dqgeid.js";import"./useSetState-5snwvlLZ.js";import"./index-C5cJ2AYH.js";import"./index-HqFqdQ4r.js";import"./api-BdPs8cnO.js";import"./index-CMg55b21.js";import"./ExpandMore-DUJJgQvW.js";import"./OpenInNew-BmjNdWrg.js";import"./useSlotProps-CPXTP7XP.js";import"./DeleteOutline-CZQhsml4.js";import"./item-BXQ3arsv.js";import"./Launch-DuItzynA.js";import"./Done-Dsagjn-5.js";import"./click-to-copy-DdG-v5Xf.js";import"./ButtonGroup-ailEu1Nr.js";import"./jss-plugin-props-sort.esm-C9YatkDP.js";import"./ArrowDropDown-JIsmOdUp.js";import"./InputAdornment-ooDD0p7-.js";import"./index-BqbUZVee.js";import"./index-Be2wLDD2.js";import"./index--PkoOt7s.js";import"./Stepper-DRS0AaL5.js";import"./RadioGroup-hK79XBIl.js";const r=new URL(window.location.href),m=r.searchParams.get("mode")==="dialog",w=m?"":r.searchParams.get("padding")||"";function Eo(){const{t:e}=n(),{componentDid:o}=l(),s=d(t=>t.breakpoints.down("md")),a=t=>{t.stopPropagation(),window.parent.postMessage({event:"resourceDialog.close",componentDid:o},"*")};c.useEffect(()=>{window.parent.postMessage({event:"resourceDialog.loaded",componentDid:o},"*")},[o]);const p=i.jsx(g,{padding:w,initUrl:r});return m?i.jsx(u,{className:"studio-dialog",title:e("blocklet.publish.blockletStudio"),maxWidth:!1,fullWidth:!1,PaperProps:{style:s?{width:"100%",height:window.innerHeight}:{maxWidth:1350,minWidth:930,width:"80%"}},onClose:a,showCloseButton:!0,disableEscapeKeyDown:!0,open:!0,children:i.jsx(h,{sx:{height:"72vh",overflow:"auto",position:"relative"},children:p})}):p}export{Eo as default};
@@ -1 +0,0 @@
1
- import{cm as o}from"./index-fpoxcuML.js";const c=new o;export{c as b};
@@ -1 +0,0 @@
1
- import{r as o,bC as t}from"./index-fpoxcuML.js";function e(){return o.useContext(t)}export{e as u};