@abtnode/webapp 1.16.29-beta-ec04c755 → 1.16.29-beta-87e06e1c
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.
- package/blocklet.js +1 -1
- package/blocklet.yml +1 -1
- package/dist/assets/{Add-S8FmGDEW.js → Add-9p89cr51.js} +1 -1
- package/dist/assets/{ArrowDropDown-kqaufX_R.js → ArrowDropDown-PUGycbah.js} +1 -1
- package/dist/assets/{Autocomplete-Dj2mk25h.js → Autocomplete-CBrNN6Wi.js} +1 -1
- package/dist/assets/{Breadcrumbs-mUETS3D_.js → Breadcrumbs-YbVhGF74.js} +1 -1
- package/dist/assets/{ButtonGroup-BG289Hc-.js → ButtonGroup-qjpoNO9j.js} +1 -1
- package/dist/assets/{CheckCircle-CdMVbx-I.js → CheckCircle-C458wd7t.js} +1 -1
- package/dist/assets/{ChevronLeft-BbMXopQ3.js → ChevronLeft-Bvm6nyLn.js} +1 -1
- package/dist/assets/{ChevronRight-DxkMLQbk.js → ChevronRight-pbRslwzZ.js} +1 -1
- package/dist/assets/{Close-C7KhPkZ5.js → Close-CRs5nN-9.js} +1 -1
- package/dist/assets/{Delete-CHjJqf5N.js → Delete-BTd8aIqu.js} +1 -1
- package/dist/assets/DeleteOutline-CT39B0th.js +1 -0
- package/dist/assets/DeleteOutline-DkbzMi-O.js +1 -0
- package/dist/assets/{Done-Du2yPyeR.js → Done-DycYtcxi.js} +1 -1
- package/dist/assets/{Edit-nFs3zYFm.js → Edit-CWojktHH.js} +1 -1
- package/dist/assets/{EditIcon-DzcsgVwr.js → EditIcon-ugJwCH0S.js} +1 -1
- package/dist/assets/{FilterList-PfFIR5os.js → FilterList-Cv0uknPg.js} +1 -1
- package/dist/assets/{Google-p4LhprXn.js → Google-Bpr-eboG.js} +1 -1
- package/dist/assets/{Https-BfRMUhqC.js → Https-DEV-Mw3j.js} +1 -1
- package/dist/assets/{InputAdornment-DOVAu-yj.js → InputAdornment-GAXpW_Pc.js} +1 -1
- package/dist/assets/{InputLabel-D-ANutnf.js → InputLabel-CdP2Vrv8.js} +1 -1
- package/dist/assets/{LastPage-DbHLAI8j.js → LastPage-BTLBin5_.js} +1 -1
- package/dist/assets/{Launch-BrScNYj_.js → Launch-C4_ktc4w.js} +1 -1
- package/dist/assets/{Link-DBXXvYQu.js → Link-DbSs28Vg.js} +1 -1
- package/dist/assets/{LoadingButton-D-zZ_beb.js → LoadingButton-DXivgZhE.js} +1 -1
- package/dist/assets/{LockIcon-CkeMSOZW.js → LockIcon-QS29DL1o.js} +1 -1
- package/dist/assets/{Loop-DTMwxGNx.js → Loop-Dpp5fctN.js} +1 -1
- package/dist/assets/{MoreVert-_9JIDWQ-.js → MoreVert-YMJ5zQGi.js} +1 -1
- package/dist/assets/{Pagination-D63gcrOy.js → Pagination-Dw5SQ0Cx.js} +1 -1
- package/dist/assets/{Public-yrj5YE7H.js → Public-DuGVgRc8.js} +1 -1
- package/dist/assets/{SchemaReference.es-CKfHJi24.js → SchemaReference.es-CuLNjPJp.js} +1 -1
- package/dist/assets/{Search-BxE3DEe4.js → Search-CnmiZ7r5.js} +1 -1
- package/dist/assets/{Select-DaYhHsvD.js → Select-D_jjFrx2.js} +1 -1
- package/dist/assets/{Skeleton-fapIW1UD.js → Skeleton-DMU-9YHS.js} +1 -1
- package/dist/assets/{Slider-BTL0mjzY.js → Slider-OEZKoU_q.js} +1 -1
- package/dist/assets/{Stepper-CAP95U5X.js → Stepper-BLioo72i.js} +1 -1
- package/dist/assets/{TextField-wYkDtvDf.js → TextField-udFGOQyD.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-DRAztwKA.js → ToggleButtonGroup-DOF-aia7.js} +1 -1
- package/dist/assets/{ViewList-BxisW_CC.js → ViewList-e_g9Zmbu.js} +1 -1
- package/dist/assets/{actions-BGTuno5d.js → actions-BWX_qXJD.js} +1 -1
- package/dist/assets/{actions-BpN3Sfme.js → actions-e3525553.js} +1 -1
- package/dist/assets/{agreement-Cqcvg8Cx.js → agreement-CvcGSLJB.js} +1 -1
- package/dist/assets/api-DeLIbQas.js +1 -0
- package/dist/assets/{app-avatar-Hi3hP8x1.js → app-avatar-CFWpqff1.js} +1 -1
- package/dist/assets/ar-DAUz5_Ej.js +1 -0
- package/dist/assets/{audit-logs-Bv1MQwRk.js → audit-logs-DPElXT2k.js} +1 -1
- package/dist/assets/blocklet-BBUrtnew.js +1 -0
- package/dist/assets/{brace-fold.es-DgRRN3A9.js → brace-fold.es-CXHeYjf1.js} +1 -1
- package/dist/assets/{bundle-avatar-RDTb67yt.js → bundle-avatar-DEQzPsHD.js} +1 -1
- package/dist/assets/{chart-Bua_-5PD.js → chart-B4W7fRqI.js} +1 -1
- package/dist/assets/{click-to-copy-BDQxvKCp.js → click-to-copy-6L_LfYIl.js} +1 -1
- package/dist/assets/{closebrackets.es-9VhiVZzG.js → closebrackets.es-ZZ8LeVnj.js} +1 -1
- package/dist/assets/{codemirror.es-BqHrKXET.js → codemirror.es-CF4ao-W3.js} +1 -1
- package/dist/assets/{comment.es-BA4idxbe.js → comment.es-DQ_cLmdb.js} +1 -1
- package/dist/assets/{config-navigation-B0fjysWu.js → config-navigation-CkEBHj2r.js} +1 -1
- package/dist/assets/de-JXmbvsP-.js +1 -0
- package/dist/assets/{delete-confirm-Cbqe2Qs7.js → delete-confirm-BN8gy06y.js} +1 -1
- package/dist/assets/{detail-BhtbSLcp.js → detail-CP83_tPj.js} +3 -3
- package/dist/assets/{dialog.es-DBRuVCoc.js → dialog.es-DExnqR6t.js} +1 -1
- package/dist/assets/{download-Di2qbvDI.js → download-DKskcy43.js} +1 -1
- package/dist/assets/es-D_uIRKnu.js +1 -0
- package/dist/assets/{foldgutter.es-BpU-LPFa.js → foldgutter.es-BRAMSNxp.js} +1 -1
- package/dist/assets/fr-BocLckhV.js +1 -0
- package/dist/assets/getValidReactChildren-DItgry09.js +1 -0
- package/dist/assets/hi-Bn38t0nX.js +1 -0
- package/dist/assets/{hint.es-DpA4ZeqO.js → hint.es-6G79xByO.js} +1 -1
- package/dist/assets/{hint.es2-0HaUBF6i.js → hint.es2-Baw04wRx.js} +1 -1
- package/dist/assets/id-DuC9mOr4.js +1 -0
- package/dist/assets/{iframe-B_V0sjAx.js → iframe-CpnjA8zm.js} +1 -1
- package/dist/assets/{index-DVhIxFU5.js → index-2gGHhy3B.js} +1 -1
- package/dist/assets/{index-Bg1DXPet.js → index-B2cmqIK_.js} +1 -1
- package/dist/assets/{index-CC6GTC_d.js → index-B6T71Xra.js} +1 -1
- package/dist/assets/{index-BE_sKGNs.js → index-BBsadaJh.js} +1 -1
- package/dist/assets/{index-BV3AGsfo.js → index-BIJwoRQp.js} +1 -1
- package/dist/assets/{index-Pru7C6Sl.js → index-BWxquNjq.js} +1 -1
- package/dist/assets/{index-PjsSSpzb.js → index-BdNyli-L.js} +1 -1
- package/dist/assets/{index-Zmmb1dq1.js → index-Bj-A_LO-.js} +1 -1
- package/dist/assets/{index-BNG8tguX.js → index-C3f4JgKQ.js} +1 -1
- package/dist/assets/{index-DONfuPEm.js → index-CB51-nwP.js} +1 -1
- package/dist/assets/{index-2VXOf9Xt.js → index-CBhH59N7.js} +1 -1
- package/dist/assets/index-CIh5WVdy.js +54 -0
- package/dist/assets/{index-B89DVQpZ.js → index-CIsUZHl3.js} +3 -3
- package/dist/assets/{index-DhKUIofz.js → index-CJBXTfA_.js} +1 -1
- package/dist/assets/{index-EhVIyZZS.js → index-COF37GzL.js} +1 -1
- package/dist/assets/{index-D77uE0yE.js → index-CS1P34PK.js} +1 -1
- package/dist/assets/{index-ouloC6Gg.js → index-Ca8SBrNy.js} +1 -1
- package/dist/assets/index-Cse3dDDG.js +21 -0
- package/dist/assets/{index-BV67nqVC.js → index-D0qCsQ_X.js} +1 -1
- package/dist/assets/{index-CezxqjIV.js → index-D0y4Peo7.js} +3 -3
- package/dist/assets/{index-Di5DaEUp.js → index-D3_95_AQ.js} +1 -1
- package/dist/assets/{index-B3dnO2Fn.js → index-DDVZbDc5.js} +1 -1
- package/dist/assets/{index-CZDMug8j.js → index-DH_YItOr.js} +1 -1
- package/dist/assets/{index-CufM15pd.js → index-DM-kSqOV.js} +1 -1
- package/dist/assets/{index-DREzkpqn.js → index-DOvGlVxX.js} +1 -1
- package/dist/assets/{index-BZ26C6cq.js → index-DQvie1Xo.js} +1 -1
- package/dist/assets/{index-QCIv2__T.js → index-DT3eBYfa.js} +1 -1
- package/dist/assets/{index-D9JWXKgu.js → index-DTCh76Oq.js} +2 -2
- package/dist/assets/{index-P6nFrjRu.js → index-DTt6OFJv.js} +1 -1
- package/dist/assets/{index-vybWhDAa.js → index-DVd2dq8l.js} +1 -1
- package/dist/assets/{index-BK1qvhiS.js → index-DW_sEbOX.js} +68 -68
- package/dist/assets/{index-Chf7Lymh.js → index-DYG5Tovq.js} +1 -1
- package/dist/assets/{index-DEloJKwa.js → index-DcAqvRRT.js} +1 -1
- package/dist/assets/{index-iSYbBTAC.js → index-DgFCpT_-.js} +5 -5
- package/dist/assets/{index-C_DoKTKb.js → index-DwL4aLvY.js} +1 -1
- package/dist/assets/{index-CqJd9GrK.js → index-Dylb0qYR.js} +1 -1
- package/dist/assets/{index-BLMUc3Wz.js → index-Dz1ahtjo.js} +10 -10
- package/dist/assets/{index-DFeF2nXp.js → index-I6_9XQww.js} +1 -1
- package/dist/assets/{index-Dmm59mxD.js → index-KGG0_6hI.js} +1 -1
- package/dist/assets/{index-BmAbGIZC.js → index-OpPbc3XM.js} +1 -1
- package/dist/assets/{index-CUr56c0w.js → index-WT4dVA5f.js} +1 -1
- package/dist/assets/{index-B-StNfme.js → index-XomN73iI.js} +1 -1
- package/dist/assets/{index-CKpDdqJe.js → index-aeB_hGnn.js} +1 -1
- package/dist/assets/{index-Cc2i3-vl.js → index-brs4Ovtr.js} +1 -1
- package/dist/assets/{index-CbO2DaD2.js → index-mFd06l0F.js} +1 -1
- package/dist/assets/{index.es-DudziN7o.js → index.es-D1k5M1E2.js} +1 -1
- package/dist/assets/{index.esm-CYB9QM8i.js → index.esm-NzqlBaFf.js} +1 -1
- package/dist/assets/{info-addon.es-BOxbuG8M.js → info-addon.es-D28Gve7b.js} +1 -1
- package/dist/assets/{info.es-DrYW0zUS.js → info.es-BHx5fgaf.js} +1 -1
- package/dist/assets/{install-from-url-Y5XUmsgB.js → install-from-url-D913MaCZ.js} +1 -1
- package/dist/assets/{invitation-yCGN5EAq.js → invitation-DSwZ-Xej.js} +1 -1
- package/dist/assets/{is-path-prefix-equal-DgUkdsg3.js → is-path-prefix-equal-ufTBNRSJ.js} +1 -1
- package/dist/assets/{isEqual-YLsRiJqe.js → isEqual-vbSrcyPi.js} +1 -1
- package/dist/assets/{item-Bn7qD1vG.js → item-B7ZSMqn6.js} +31 -31
- package/dist/assets/ja-B2J7-ZGM.js +1 -0
- package/dist/assets/{javascript.es-BSDaBlgC.js → javascript.es-WSUko8sV.js} +1 -1
- package/dist/assets/{jump-to-line.es-BcpHYG3o.js → jump-to-line.es-CcgyMzYU.js} +1 -1
- package/dist/assets/{jump.es-BUclqtG2.js → jump.es-dMMEnQpp.js} +1 -1
- package/dist/assets/ko-TAMb2jXz.js +1 -0
- package/dist/assets/{line-DOFfVg52.js → line-VZzxMXH1.js} +3 -3
- package/dist/assets/{lint.es-0x4XExd-.js → lint.es-BJtFL-R1.js} +1 -1
- package/dist/assets/{lint.es2-Di0LAyaj.js → lint.es2-8JV00Yve.js} +1 -1
- package/dist/assets/{lint.es3-Bb_yQUZm.js → lint.es3-1yXUm-RP.js} +1 -1
- package/dist/assets/{list-header-D7rP-Yru.js → list-header-DwVsFEjc.js} +1 -1
- package/dist/assets/{log-CZ5fTya6.js → log-BpKaLgPW.js} +1 -1
- package/dist/assets/{lottie-CraOAVnW.js → lottie-O2tV-OjZ.js} +1 -1
- package/dist/assets/{matchbrackets.es-BWk_roya.js → matchbrackets.es-rEntxSn4.js} +1 -1
- package/dist/assets/{memory-CZ8h_D7o.js → memory-GChDLCy_.js} +1 -1
- package/dist/assets/{mode.es-PTnc5SVt.js → mode.es-BR84FRL3.js} +1 -1
- package/dist/assets/{mode.es2-B8k0WPso.js → mode.es2-C9o9JxCy.js} +1 -1
- package/dist/assets/{mode.es3-43lXmeCk.js → mode.es3-hEzwa8oI.js} +1 -1
- package/dist/assets/{onlineParser.es-C4fW5cbi.js → onlineParser.es-bjnhX9oL.js} +1 -1
- package/dist/assets/{overview-CEZ3L9UM.js → overview-y9hXmNWR.js} +1 -1
- package/dist/assets/pt-DAmg1w9n.js +1 -0
- package/dist/assets/{react-BgqtIJCp.js → react-D74HYKcx.js} +3 -3
- package/dist/assets/{redux-CtUtNuh4.js → redux-AeaWrwCk.js} +1 -1
- package/dist/assets/{resource-dialog-D3KQsa3_.js → resource-dialog-RnJtI7_o.js} +1 -1
- package/dist/assets/ru-BqJl8PYs.js +1 -0
- package/dist/assets/{runtime-Cz4NXi5t.js → runtime-DfYA5FiE.js} +1 -1
- package/dist/assets/{search.es-K9lC36HN.js → search.es-BxNdUYNg.js} +1 -1
- package/dist/assets/{searchcursor.es-BQ5OUuwg.js → searchcursor.es-s8a8A3Ii.js} +1 -1
- package/dist/assets/service-CFkt34Sc.js +1 -0
- package/dist/assets/{shorten-label-Dbv6QZWh.js → shorten-label-pU8ae-Oh.js} +1 -1
- package/dist/assets/{show-hint.es-BIyDsKUu.js → show-hint.es-B1JGf57k.js} +1 -1
- package/dist/assets/{slicedToArray-BHxnx7kY.js → slicedToArray-C1UbO-hj.js} +1 -1
- package/dist/assets/{spaces-CjaSMZL9.js → spaces-2O-5X4yt.js} +1 -1
- package/dist/assets/{sublime.es-DLOzJjer.js → sublime.es-CiN5FIO2.js} +1 -1
- package/dist/assets/{switch-control-CN2d9vm2.js → switch-control-Dh1twa_3.js} +1 -1
- package/dist/assets/{table-icons-CrxYeSPt.js → table-icons-BmuX7Xai.js} +9 -9
- package/dist/assets/{tag-DR_0tK3I.js → tag-BgAeiRXM.js} +1 -1
- package/dist/assets/{team-Dw3e1bmr.js → team-DGUd51ZP.js} +1 -1
- package/dist/assets/th-CGcwcZWK.js +1 -0
- package/dist/assets/{toUpper-DUL_CZKH.js → toUpper-BSJ4Soan.js} +1 -1
- package/dist/assets/{traffic-Dwmi76x4.js → traffic-BEhPBbjp.js} +1 -1
- package/dist/assets/{url-evaluation-3fz2ul7D.js → url-evaluation-Cw18Tjx5.js} +1 -1
- package/dist/assets/{url-join-DuEUuiPy.js → url-join-Di_BFQmE.js} +1 -1
- package/dist/assets/{use-blocklet-info-for-connect-did-spaces-BFPsEtrW.js → use-blocklet-info-for-connect-did-spaces-CgjVAwmg.js} +1 -1
- package/dist/assets/{useLocalStorage-COIE7PL5.js → useLocalStorage-FbxxP1zi.js} +1 -1
- package/dist/assets/{util-TpwH7kjS.js → util-DWgJMgY9.js} +1 -1
- package/dist/assets/vi-lYszmNr_.js +1 -0
- package/dist/assets/{wait-container-BrKOoykW.js → wait-container-D5DZGw_l.js} +1 -1
- package/dist/assets/{withStyles-oYQ3AqcX.js → withStyles-D9qnQfcC.js} +1 -1
- package/dist/assets/wrap-locale-CDqxNJXh.js +1 -0
- package/dist/assets/zh-DMGrvlv0.js +2 -0
- package/dist/assets/zh-tw-BkGc-T4k.js +1 -0
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +1 -1
- package/dist/assets/DeleteOutline-COQc7j9b.js +0 -1
- package/dist/assets/api-BURJ-Xeh.js +0 -1
- package/dist/assets/ar-C47j1nYN.js +0 -1
- package/dist/assets/blocklet-COgUEBiQ.js +0 -1
- package/dist/assets/de-Cku7GZWy.js +0 -1
- package/dist/assets/es-DQdPvLwC.js +0 -1
- package/dist/assets/fr-BANF9nk5.js +0 -1
- package/dist/assets/getValidReactChildren-COK3kvsz.js +0 -1
- package/dist/assets/hi-3nYHQeSr.js +0 -1
- package/dist/assets/id-C4ULMWl7.js +0 -1
- package/dist/assets/index-BxkZOe_i.js +0 -54
- package/dist/assets/index-CImAXX__.js +0 -21
- package/dist/assets/ja-DUtPzStV.js +0 -1
- package/dist/assets/ko-DHayH4OX.js +0 -1
- package/dist/assets/pt-CtekrXAD.js +0 -1
- package/dist/assets/ru-aujlmrJM.js +0 -1
- package/dist/assets/service-BH3T6HEj.js +0 -1
- package/dist/assets/th-WxIih8J2.js +0 -1
- package/dist/assets/vi-DgBgwcpZ.js +0 -1
- package/dist/assets/wrap-locale-3Evsenjl.js +0 -1
- package/dist/assets/zh-g9dUotWi.js +0 -2
- package/dist/assets/zh-tw-CoNRcnfg.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__fileDeps=["./overview-
|
|
2
|
-
import{q as Ae,t as Gt,bn as M,r as m,F as z,j as p,J as Ye,O as ne,B as Xe,x as qt,bo as Ht,M as A,A as D,K as ce,$ as Be,aP as ae,b as be,P as Kt,bi as Ze,bp as P,z as Qt,u as Wt,bq as pe,br as Jt,V as Fe,C as Ue,N as Yt,bs as Xt,m as he,U as Zt,n as en,bt as tn}from"./index-
|
|
1
|
+
const __vite__fileDeps=["./overview-y9hXmNWR.js","./index-DW_sEbOX.js","./index-D7K8de1w.css","./keyboard-arrow-down-rounded-DadBVmpO.js","./index-DH_YItOr.js","./blocklet-BBUrtnew.js","./url-evaluation-Cw18Tjx5.js","./Delete-BTd8aIqu.js","./tag-BgAeiRXM.js","./Add-9p89cr51.js","./index-DTt6OFJv.js","./LockIcon-QS29DL1o.js","./index-DYG5Tovq.js","./Https-DEV-Mw3j.js","./is-path-prefix-equal-ufTBNRSJ.js","./index-aeB_hGnn.js","./api-DeLIbQas.js","./util-DWgJMgY9.js","./TextField-udFGOQyD.js","./Select-D_jjFrx2.js","./InputLabel-CdP2Vrv8.js","./LoadingButton-DXivgZhE.js","./actions-e3525553.js","./index-DOvGlVxX.js","./iframe-CpnjA8zm.js","./line-VZzxMXH1.js","./Done-DycYtcxi.js","./EditIcon-ugJwCH0S.js","./ArrowDropDown-PUGycbah.js","./ButtonGroup-qjpoNO9j.js","./getValidReactChildren-DItgry09.js","./index-BWxquNjq.js","./ChevronRight-pbRslwzZ.js","./index-DcAqvRRT.js","./bundle-avatar-DEQzPsHD.js","./app-avatar-CFWpqff1.js","./isEqual-vbSrcyPi.js","./Loop-Dpp5fctN.js","./Autocomplete-CBrNN6Wi.js","./mode-B2dWMeTO.js","./Public-DuGVgRc8.js","./click-to-copy-6L_LfYIl.js","./team-DGUd51ZP.js","./index-BIJwoRQp.js","./index.esm-NzqlBaFf.js","./Launch-C4_ktc4w.js","./Edit-CWojktHH.js","./actions-BWX_qXJD.js","./useLocalStorage-FbxxP1zi.js","./MoreVert-YMJ5zQGi.js","./index-COF37GzL.js","./redux-AeaWrwCk.js","./switch-control-Dh1twa_3.js","./Slider-OEZKoU_q.js","./index-CB51-nwP.js","./FilterList-Cv0uknPg.js","./LastPage-BTLBin5_.js","./Search-CnmiZ7r5.js","./index-KGG0_6hI.js","./index-DU3JORH0.css","./config-navigation-CkEBHj2r.js","./slicedToArray-C1UbO-hj.js","./index-Dylb0qYR.js","./index-DT3eBYfa.js","./InputAdornment-GAXpW_Pc.js","./index-DwL4aLvY.js","./Skeleton-DMU-9YHS.js","./audit-logs-DPElXT2k.js","./index-WT4dVA5f.js","./index-D4PP6P2d.css","./Pagination-Dw5SQ0Cx.js","./index-DDVZbDc5.js","./index-BdNyli-L.js","./list-header-DwVsFEjc.js","./Google-Bpr-eboG.js","./index-CBhH59N7.js","./index-BBsadaJh.js","./index-ZG7jWpak.js","./ToggleButtonGroup-DOF-aia7.js","./index-CJBXTfA_.js","./ViewList-e_g9Zmbu.js","./resource-dialog-RnJtI7_o.js","./index-2gGHhy3B.js","./shorten-label-pU8ae-Oh.js","./service-CFkt34Sc.js","./table-icons-BmuX7Xai.js","./ChevronLeft-Bvm6nyLn.js","./DeleteOutline-DkbzMi-O.js","./memoize-one.esm-BdPwpGay.js","./index-DTCh76Oq.js","./agreement-CvcGSLJB.js","./url-join-Di_BFQmE.js","./Link-DbSs28Vg.js","./item-B7ZSMqn6.js","./preact.module-B1z5cdvs.js","./DeleteOutline-CT39B0th.js","./delete-confirm-BN8gy06y.js","./item-CxkJY_14.css","./index-Bj-A_LO-.js","./Close-CRs5nN-9.js","./lottie-O2tV-OjZ.js","./toUpper-BSJ4Soan.js","./spaces-2O-5X4yt.js","./install-from-url-D913MaCZ.js","./Stepper-BLioo72i.js","./use-blocklet-info-for-connect-did-spaces-CgjVAwmg.js","./Breadcrumbs-YbVhGF74.js","./log-BpKaLgPW.js","./download-DKskcy43.js","./download-D33dFtt_.css","./runtime-DfYA5FiE.js","./memory-GChDLCy_.js","./chart-B4W7fRqI.js","./traffic-BEhPBbjp.js","./index-CIh5WVdy.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
|
|
2
|
+
import{q as Ae,t as Gt,bn as M,r as m,F as z,j as p,J as Ye,O as ne,B as Xe,x as qt,bo as Ht,M as A,A as D,K as ce,$ as Be,aP as ae,b as be,P as Kt,bi as Ze,bp as P,z as Qt,u as Wt,bq as pe,br as Jt,V as Fe,C as Ue,N as Yt,bs as Xt,m as he,U as Zt,n as en,bt as tn}from"./index-DW_sEbOX.js";import{T as nn}from"./index-DcAqvRRT.js";import{B as on}from"./url-evaluation-Cw18Tjx5.js";import{D as sn,B as rn}from"./actions-BWX_qXJD.js";import{B as cn}from"./app-avatar-CFWpqff1.js";import{u as F}from"./blocklet-BBUrtnew.js";import{a as an,b as ln}from"./spaces-2O-5X4yt.js";import{B as un,u as fn,T as dn}from"./team-DGUd51ZP.js";import{B as pn}from"./Breadcrumbs-YbVhGF74.js";/**
|
|
3
3
|
* (c) Iconify
|
|
4
4
|
*
|
|
5
5
|
* For the full copyright and license information, please view the license.txt or license.gpl.txt
|
|
@@ -9,7 +9,7 @@ import{q as Ae,t as Gt,bn as M,r as m,F as z,j as p,J as Ye,O as ne,B as Xe,x as
|
|
|
9
9
|
*
|
|
10
10
|
* @license MIT
|
|
11
11
|
* @version 3.1.1
|
|
12
|
-
*/const et=Object.freeze({left:0,top:0,width:16,height:16}),oe=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Q=Object.freeze({...et,...oe}),ve=Object.freeze({...Q,body:"",hidden:!1});function hn(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(n.rotate=o),n}function Ve(e,t){const n=hn(e,t);for(const o in ve)o in oe?o in e&&!(o in n)&&(n[o]=oe[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function mn(e,t){const n=e.icons,o=e.aliases||Object.create(null),s=Object.create(null);function r(i){if(n[i])return s[i]=[];if(!(i in s)){s[i]=null;const c=o[i]&&o[i].parent,a=c&&r(c);a&&(s[i]=[c].concat(a))}return s[i]}return(t||Object.keys(n).concat(Object.keys(o))).forEach(r),s}function gn(e,t,n){const o=e.icons,s=e.aliases||Object.create(null);let r={};function i(c){r=Ve(o[c]||s[c],r)}return i(t),n.forEach(i),Ve(e,r)}function tt(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(s=>{t(s,null),n.push(s)});const o=mn(e);for(const s in o){const r=o[s];r&&(t(s,gn(e,s,r)),n.push(s))}return n}const $=/^[a-z0-9]+(-[a-z0-9]+)*$/,U=(e,t,n,o="")=>{const s=e.split(":");if(e.slice(0,1)==="@"){if(s.length<2||s.length>3)return null;o=s.shift().slice(1)}if(s.length>3||!s.length)return null;if(s.length>1){const c=s.pop(),a=s.pop(),l={provider:s.length>0?s[0]:o,prefix:a,name:c};return t&&!ee(l)?null:l}const r=s[0],i=r.split("-");if(i.length>1){const c={provider:o,prefix:i.shift(),name:i.join("-")};return t&&!ee(c)?null:c}if(n&&o===""){const c={provider:o,prefix:"",name:r};return t&&!ee(c,n)?null:c}return null},ee=(e,t)=>e?!!((e.provider===""||e.provider.match($))&&(t&&e.prefix===""||e.prefix.match($))&&e.name.match($)):!1,yn={provider:"",aliases:{},not_found:{},...et};function me(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function nt(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!me(e,yn))return null;const n=t.icons;for(const s in n){const r=n[s];if(!s.match($)||typeof r.body!="string"||!me(r,ve))return null}const o=t.aliases||Object.create(null);for(const s in o){const r=o[s],i=r.parent;if(!s.match($)||typeof i!="string"||!n[i]&&!o[i]||!me(r,ve))return null}return t}const se=Object.create(null);function bn(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function _(e,t){const n=se[e]||(se[e]=Object.create(null));return n[t]||(n[t]=bn(e,t))}function je(e,t){return nt(t)?tt(t,(n,o)=>{o?e.icons[n]=o:e.missing.add(n)}):[]}function vn(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function xn(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(se)).forEach(s=>{(typeof s=="string"&&typeof t=="string"?[t]:Object.keys(se[s]||{})).forEach(i=>{const c=_(s,i);n=n.concat(Object.keys(c.icons).map(a=>(s!==""?"@"+s+":":"")+i+":"+a))})}),n}let H=!1;function Sn(e){return typeof e=="boolean"&&(H=e),H}function W(e){const t=typeof e=="string"?U(e,!0,H):e;if(t){const n=_(t.provider,t.prefix),o=t.name;return n.icons[o]||(n.missing.has(o)?null:void 0)}}function ot(e,t){const n=U(e,!0,H);if(!n)return!1;const o=_(n.provider,n.prefix);return vn(o,n.name,t)}function st(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),H&&!t&&!e.prefix){let s=!1;return nt(e)&&(e.prefix="",tt(e,(r,i)=>{i&&ot(r,i)&&(s=!0)})),s}const n=e.prefix;if(!ee({provider:t,prefix:n,name:"a"}))return!1;const o=_(t,n);return!!je(o,e)}function wn(e){return!!W(e)}function kn(e){const t=W(e);return t?{...Q,...t}:null}const rt=Object.freeze({width:null,height:null}),it=Object.freeze({...rt,...oe}),In=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Cn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function xe(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const o=e.split(In);if(o===null||!o.length)return e;const s=[];let r=o.shift(),i=Cn.test(r);for(;;){if(i){const c=parseFloat(r);isNaN(c)?s.push(r):s.push(Math.ceil(c*t*n)/n)}else s.push(r);if(r=o.shift(),r===void 0)return s.join("");i=!i}}const En=e=>e==="unset"||e==="undefined"||e==="none";function le(e,t){const n={...Q,...e},o={...it,...t},s={left:n.left,top:n.top,width:n.width,height:n.height};let r=n.body;[n,o].forEach(v=>{const x=[],C=v.hFlip,S=v.vFlip;let w=v.rotate;C?S?w+=2:(x.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),x.push("scale(-1 1)"),s.top=s.left=0):S&&(x.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),x.push("scale(1 -1)"),s.top=s.left=0);let k;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:k=s.height/2+s.top,x.unshift("rotate(90 "+k.toString()+" "+k.toString()+")");break;case 2:x.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:k=s.width/2+s.left,x.unshift("rotate(-90 "+k.toString()+" "+k.toString()+")");break}w%2===1&&(s.left!==s.top&&(k=s.left,s.left=s.top,s.top=k),s.width!==s.height&&(k=s.width,s.width=s.height,s.height=k)),x.length&&(r='<g transform="'+x.join(" ")+'">'+r+"</g>")});const i=o.width,c=o.height,a=s.width,l=s.height;let u,d;i===null?(d=c===null?"1em":c==="auto"?l:c,u=xe(d,a/l)):(u=i==="auto"?a:i,d=c===null?xe(u,l/a):c==="auto"?l:c);const f={},y=(v,x)=>{En(x)||(f[v]=x.toString())};return y("width",u),y("height",d),f.viewBox=s.left.toString()+" "+s.top.toString()+" "+a.toString()+" "+l.toString(),{attributes:f,body:r}}const Pn=/\sid="(\S+)"/g,Tn="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let _n=0;function ct(e,t=Tn){const n=[];let o;for(;o=Pn.exec(e);)n.push(o[1]);if(!n.length)return e;const s="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(r=>{const i=typeof t=="function"?t(r):t+(_n++).toString(),c=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+i+s+"$3")}),e=e.replace(new RegExp(s,"g"),""),e}const L={local:!0,session:!0},at={local:new Set,session:new Set};let Oe=!1;function An(e){Oe=e}const ze="iconify2",K="iconify",lt=K+"-count",$e=K+"-version",ut=36e5,Bn=168;function Se(e,t){try{return e.getItem(t)}catch{}}function De(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Ge(e,t){try{e.removeItem(t)}catch{}}function we(e,t){return De(e,lt,t.toString())}function ke(e){return parseInt(Se(e,lt))||0}let X=typeof window>"u"?{}:window;function ft(e){const t=e+"Storage";try{if(X&&X[t]&&typeof X[t].length=="number")return X[t]}catch{}L[e]=!1}function dt(e,t){const n=ft(e);if(!n)return;const o=Se(n,$e);if(o!==ze){if(o){const c=ke(n);for(let a=0;a<c;a++)Ge(n,K+a.toString())}De(n,$e,ze),we(n,0);return}const s=Math.floor(Date.now()/ut)-Bn,r=c=>{const a=K+c.toString(),l=Se(n,a);if(typeof l=="string"){try{const u=JSON.parse(l);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>s&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,c))return!0}catch{}Ge(n,a)}};let i=ke(n);for(let c=i-1;c>=0;c--)r(c)||(c===i-1?(i--,we(n,i)):at[e].add(c))}function pt(){if(!Oe){An(!0);for(const e in L)dt(e,t=>{const n=t.data,o=t.provider,s=n.prefix,r=_(o,s);if(!je(r,n).length)return!1;const i=n.lastModified||-1;return r.lastModifiedCached=r.lastModifiedCached?Math.min(r.lastModifiedCached,i):i,!0})}}function ht(e,t){switch(e){case"local":case"session":L[e]=t;break;case"all":for(const n in L)L[n]=t;break}}const Ie=Object.create(null);function mt(e,t){Ie[e]=t}function Ce(e){return Ie[e]||Ie[""]}function Le(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const ue=Object.create(null),V=["https://api.simplesvg.com","https://api.unisvg.com"],te=[];for(;V.length>0;)V.length===1||Math.random()>.5?te.push(V.shift()):te.push(V.pop());ue[""]=Le({resources:["https://api.iconify.design"].concat(te)});function gt(e,t){const n=Le(t);return n===null?!1:(ue[e]=n,!0)}function fe(e){return ue[e]}function jn(){return Object.keys(ue)}const On=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let re=On();function Dn(e){re=e}function Ln(){return re}function Nn(e,t){const n=fe(e);if(!n)return 0;let o;if(!n.maxURL)o=0;else{let s=0;n.resources.forEach(i=>{s=Math.max(s,i.length)});const r=t+".json?icons=";o=n.maxURL-s-n.path.length-r.length}return o}function Mn(e){return e===404}const Rn=(e,t,n)=>{const o=[],s=Nn(e,t),r="icons";let i={type:r,provider:e,prefix:t,icons:[]},c=0;return n.forEach((a,l)=>{c+=a.length+1,c>=s&&l>0&&(o.push(i),i={type:r,provider:e,prefix:t,icons:[]},c=a.length),i.icons.push(a)}),o.push(i),o};function Fn(e){if(typeof e=="string"){const t=fe(e);if(t)return t.path}return"/"}const Un=(e,t,n)=>{if(!re){n("abort",424);return}let o=Fn(t.provider);switch(t.type){case"icons":{const r=t.prefix,c=t.icons.join(","),a=new URLSearchParams({icons:c});o+=r+".json?"+a.toString();break}case"custom":{const r=t.uri;o+=r.slice(0,1)==="/"?r.slice(1):r;break}default:n("abort",400);return}let s=503;re(e+o).then(r=>{const i=r.status;if(i!==200){setTimeout(()=>{n(Mn(i)?"abort":"next",i)});return}return s=501,r.json()}).then(r=>{if(typeof r!="object"||r===null){setTimeout(()=>{r===404?n("abort",r):n("next",s)});return}setTimeout(()=>{n("success",r)})}).catch(()=>{n("next",s)})},Vn={prepare:Rn,send:Un};function zn(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((s,r)=>s.provider!==r.provider?s.provider.localeCompare(r.provider):s.prefix!==r.prefix?s.prefix.localeCompare(r.prefix):s.name.localeCompare(r.name));let o={provider:"",prefix:"",name:""};return e.forEach(s=>{if(o.name===s.name&&o.prefix===s.prefix&&o.provider===s.provider)return;o=s;const r=s.provider,i=s.prefix,c=s.name,a=n[r]||(n[r]=Object.create(null)),l=a[i]||(a[i]=_(r,i));let u;c in l.icons?u=t.loaded:i===""||l.missing.has(c)?u=t.missing:u=t.pending;const d={provider:r,prefix:i,name:c};u.push(d)}),t}function yt(e,t){e.forEach(n=>{const o=n.loaderCallbacks;o&&(n.loaderCallbacks=o.filter(s=>s.id!==t))})}function $n(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const o=e.provider,s=e.prefix;t.forEach(r=>{const i=r.icons,c=i.pending.length;i.pending=i.pending.filter(a=>{if(a.prefix!==s)return!0;const l=a.name;if(e.icons[l])i.loaded.push({provider:o,prefix:s,name:l});else if(e.missing.has(l))i.missing.push({provider:o,prefix:s,name:l});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||yt([e],r.id),r.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),r.abort))})}))}let Gn=0;function qn(e,t,n){const o=Gn++,s=yt.bind(null,n,o);if(!t.pending.length)return s;const r={id:o,icons:t,callback:e,abort:s};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(r)}),s}function Hn(e,t=!0,n=!1){const o=[];return e.forEach(s=>{const r=typeof s=="string"?U(s,t,n):s;r&&o.push(r)}),o}var Kn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Qn(e,t,n,o){const s=e.resources.length,r=e.random?Math.floor(Math.random()*s):e.index;let i;if(e.random){let g=e.resources.slice(0);for(i=[];g.length>1;){const I=Math.floor(Math.random()*g.length);i.push(g[I]),g=g.slice(0,I).concat(g.slice(I+1))}i=i.concat(g)}else i=e.resources.slice(r).concat(e.resources.slice(0,r));const c=Date.now();let a="pending",l=0,u,d=null,f=[],y=[];typeof o=="function"&&y.push(o);function v(){d&&(clearTimeout(d),d=null)}function x(){a==="pending"&&(a="aborted"),v(),f.forEach(g=>{g.status==="pending"&&(g.status="aborted")}),f=[]}function C(g,I){I&&(y=[]),typeof g=="function"&&y.push(g)}function S(){return{startTime:c,payload:t,status:a,queriesSent:l,queriesPending:f.length,subscribe:C,abort:x}}function w(){a="failed",y.forEach(g=>{g(void 0,u)})}function k(){f.forEach(g=>{g.status==="pending"&&(g.status="aborted")}),f=[]}function j(g,I,b){const T=I!=="success";switch(f=f.filter(E=>E!==g),a){case"pending":break;case"failed":if(T||!e.dataAfterTimeout)return;break;default:return}if(I==="abort"){u=b,w();return}if(T){u=b,f.length||(i.length?O():w());return}if(v(),k(),!e.random){const E=e.resources.indexOf(g.resource);E!==-1&&E!==e.index&&(e.index=E)}a="completed",y.forEach(E=>{E(b)})}function O(){if(a!=="pending")return;v();const g=i.shift();if(g===void 0){if(f.length){d=setTimeout(()=>{v(),a==="pending"&&(k(),w())},e.timeout);return}w();return}const I={status:"pending",resource:g,callback:(b,T)=>{j(I,b,T)}};f.push(I),l++,d=setTimeout(O,e.rotate),n(g,t,I.callback)}return setTimeout(O),S}function bt(e){const t={...Kn,...e};let n=[];function o(){n=n.filter(c=>c().status==="pending")}function s(c,a,l){const u=Qn(t,c,a,(d,f)=>{o(),l&&l(d,f)});return n.push(u),u}function r(c){return n.find(a=>c(a))||null}return{query:s,find:r,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:o}}function qe(){}const ge=Object.create(null);function Wn(e){if(!ge[e]){const t=fe(e);if(!t)return;const n=bt(t),o={config:t,redundancy:n};ge[e]=o}return ge[e]}function vt(e,t,n){let o,s;if(typeof e=="string"){const r=Ce(e);if(!r)return n(void 0,424),qe;s=r.send;const i=Wn(e);i&&(o=i.redundancy)}else{const r=Le(e);if(r){o=bt(r);const i=e.resources?e.resources[0]:"",c=Ce(i);c&&(s=c.send)}}return!o||!s?(n(void 0,424),qe):o.query(t,s,n)().abort}function Jn(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const o in L)dt(o,s=>{const r=s.data;return s.provider!==e.provider||r.prefix!==e.prefix||r.lastModified===t});return!0}function Yn(e,t){Oe||pt();function n(o){let s;if(!L[o]||!(s=ft(o)))return;const r=at[o];let i;if(r.size)r.delete(i=Array.from(r).shift());else if(i=ke(s),!we(s,i+1))return;const c={cached:Math.floor(Date.now()/ut),provider:e.provider,data:t};return De(s,K+i.toString(),JSON.stringify(c))}t.lastModified&&!Jn(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function He(){}function Xn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,$n(e)}))}function Zn(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:o}=e,s=e.iconsToLoad;delete e.iconsToLoad;let r;if(!s||!(r=Ce(n)))return;r.prepare(n,o,s).forEach(c=>{vt(n,c,a=>{if(typeof a!="object")c.icons.forEach(l=>{e.missing.add(l)});else try{const l=je(e,a);if(!l.length)return;const u=e.pendingIcons;u&&l.forEach(d=>{u.delete(d)}),Yn(e,a)}catch(l){console.error(l)}Xn(e)})})}))}const eo=e=>{const n=_(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},Ne=(e,t)=>{const n=Hn(e,!0,Sn()),o=zn(n);if(!o.pending.length){let a=!0;return t&&setTimeout(()=>{a&&t(o.loaded,o.missing,o.pending,He)}),()=>{a=!1}}const s=Object.create(null),r=[];let i,c;return o.pending.forEach(a=>{const{provider:l,prefix:u}=a;if(u===c&&l===i)return;i=l,c=u,r.push(_(l,u));const d=s[l]||(s[l]=Object.create(null));d[u]||(d[u]=[])}),o.pending.forEach(a=>{const{provider:l,prefix:u,name:d}=a,f=_(l,u),y=f.pendingIcons||(f.pendingIcons=new Set);y.has(d)||(y.add(d),s[l][u].push(d))}),r.forEach(a=>{const{provider:l,prefix:u}=a;s[l][u].length&&Zn(a,s[l][u])}),t?qn(t,o,r):He},to=e=>new Promise((t,n)=>{const o=typeof e=="string"?U(e,!0):e;if(!o){n(e);return}Ne([o||e],s=>{if(s.length&&o){const r=W(o);if(r){t({...Q,...r});return}}n(e)})});function xt(e,t){const n={...e};for(const o in t){const s=t[o],r=typeof s;o in rt?(s===null||s&&(r==="string"||r==="number"))&&(n[o]=s):r===typeof n[o]&&(n[o]=o==="rotate"?s%4:s)}return n}const de={...it,inline:!1},ye="iconify",Ee="iconify-inline",B="iconifyData"+Date.now();let N=[];function J(e){for(let t=0;t<N.length;t++){const n=N[t];if((typeof n.node=="function"?n.node():n.node)===e)return n}}function St(e,t=!1){let n=J(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},N.push(n),n)}function no(){if(document.documentElement)return St(document.documentElement);N.push({node:()=>document.documentElement})}function oo(e){N=N.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function Y(){return N}function so(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let G=null;const ro={childList:!0,subtree:!0,attributes:!0};function wt(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,G&&G(e)}))}function io(e,t){if(!e.observer)return;const n=e.observer;if(!n.pendingScan)for(let o=0;o<t.length;o++){const s=t[o];if(s.addedNodes&&s.addedNodes.length>0||s.type==="attributes"&&s.target[B]!==void 0){n.paused||wt(e);return}}}function kt(e,t){e.observer.instance.observe(t,ro)}function ie(e){let t=e.observer;if(t&&t.instance)return;const n=typeof e.node=="function"?e.node():e.node;!n||!window||(t||(t={paused:0},e.observer=t),t.instance=new window.MutationObserver(io.bind(null,e)),kt(e,n),t.paused||wt(e))}function Ke(){Y().forEach(ie)}function It(e){if(!e.observer)return;const t=e.observer;t.pendingScan&&(clearTimeout(t.pendingScan),delete t.pendingScan),t.instance&&(t.instance.disconnect(),delete t.instance)}function co(e){const t=G!==null;if(G!==e&&(G=e,t&&Y().forEach(It)),t){Ke();return}so(Ke)}function Pe(e){(e?[e]:Y()).forEach(t=>{if(!t.observer){t.observer={paused:1};return}const n=t.observer;if(n.paused++,n.paused>1||!n.instance)return;n.instance.disconnect()})}function ao(e){if(e){const t=J(e);t&&Pe(t)}else Pe()}function Te(e){(e?[e]:Y()).forEach(t=>{if(!t.observer){ie(t);return}const n=t.observer;if(n.paused&&(n.paused--,!n.paused)){const o=typeof t.node=="function"?t.node():t.node;if(o)n.instance?kt(t,o):ie(t);else return}})}function lo(e){if(e){const t=J(e);t&&Te(t)}else Te()}function Ct(e,t=!1){const n=St(e,t);return ie(n),n}function Et(e){const t=J(e);t&&(It(t),oo(e))}function uo(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,o=t.customisations;for(const s in de)if(n[s]!==o[s])return!0;return!1}function fo(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function o(s){for(;s<0;)s+=4;return s%4}if(n===""){const s=parseInt(e);return isNaN(s)?0:o(s)}else if(n!==e){let s=0;switch(n){case"%":s=25;break;case"deg":s=90}if(s){let r=parseFloat(e.slice(0,e.length-n.length));return isNaN(r)?0:(r=r/s,r%1===0?o(r):0)}}return t}const po=/[\s,]+/;function ho(e,t){t.split(po).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const mo=["width","height"],go=["inline","hFlip","vFlip"];function yo(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function bo(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&U(t,!0);if(!n)return null;const o={...de,inline:e.classList&&e.classList.contains(Ee)};mo.forEach(c=>{const a=e.getAttribute("data-"+c);a&&(o[c]=a)});const s=e.getAttribute("data-rotate");typeof s=="string"&&(o.rotate=fo(s));const r=e.getAttribute("data-flip");typeof r=="string"&&ho(o,r),go.forEach(c=>{const a="data-"+c,l=yo(e.getAttribute(a),a);typeof l=="boolean"&&(o[c]=l)});const i=e.getAttribute("data-mode");return{name:t,icon:n,customisations:o,mode:i}}const vo="svg."+ye+", i."+ye+", span."+ye+", i."+Ee+", span."+Ee;function xo(e){const t=[];return e.querySelectorAll(vo).forEach(n=>{const o=n[B]||n.tagName.toLowerCase()!=="svg"?bo(n):null;o&&t.push({node:n,props:o})}),t}function Pt(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in t)n+=" "+o+'="'+t[o]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}let q;function So(){try{q=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{q=null}}function wo(e){return q===void 0&&So(),q?q.createHTML(e):e}function Tt(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function _t(e,t,n,o){const s=e.classList;if(o){const i=o.classList;Array.from(i).forEach(c=>{s.add(c)})}const r=[];return t.forEach(i=>{s.contains(i)?n.has(i)&&r.push(i):(s.add(i),r.push(i))}),n.forEach(i=>{t.has(i)||s.remove(i)}),r}function At(e,t,n){const o=e.style;(n||[]).forEach(r=>{o.removeProperty(r)});const s=[];for(const r in t)o.getPropertyValue(r)||(s.push(r),o.setProperty(r,t[r]));return s}function Bt(e,t,n){let o;try{o=document.createElement("span")}catch{return e}const s=t.customisations,r=le(n,s),i=e[B],c=Pt(ct(r.body),{"aria-hidden":"true",role:"img",...r.attributes});o.innerHTML=wo(c);const a=o.childNodes[0],l=e.attributes;for(let v=0;v<l.length;v++){const x=l.item(v),C=x.name;C!=="class"&&!a.hasAttribute(C)&&a.setAttribute(C,x.value)}const u=Tt(t.icon),d=_t(a,u,new Set(i&&i.addedClasses),e),f=At(a,s.inline?{"vertical-align":"-0.125em"}:{},i&&i.addedStyles),y={...t,status:"loaded",addedClasses:d,addedStyles:f};return a[B]=y,e.parentNode&&e.parentNode.replaceChild(a,e),a}function ko(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Io(e){return"data:image/svg+xml,"+ko(e)}function Co(e){return'url("'+Io(e)+'")'}const Eo={display:"inline-block"},_e={"background-color":"currentColor"},jt={"background-color":"transparent"},Qe={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},We={"-webkit-mask":_e,mask:_e,background:jt};for(const e in We){const t=We[e];for(const n in Qe)t[e+"-"+n]=Qe[n]}function Je(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function Po(e,t,n,o){const s=t.customisations,r=le(n,s),i=r.attributes,c=e[B],a=Pt(r.body,{...i,width:n.width+"",height:n.height+""}),l=Tt(t.icon),u=_t(e,l,new Set(c&&c.addedClasses)),f={"--svg":Co(a),width:Je(i.width),height:Je(i.height),...Eo,...o?_e:jt};s.inline&&(f["vertical-align"]="-0.125em");const y=At(e,f,c&&c.addedStyles),v={...t,status:"loaded",addedClasses:u,addedStyles:y};return e[B]=v,e}let Z=!1;function To(){Z||(Z=!0,setTimeout(()=>{Z&&(Z=!1,R())}))}function R(e,t=!1){const n=Object.create(null);function o(s,r){const{provider:i,prefix:c,name:a}=s,l=_(i,c),u=l.icons[a];if(u)return{status:"loaded",icon:u};if(l.missing.has(a))return{status:"missing"};if(r&&!eo(s)){const d=n[i]||(n[i]=Object.create(null));(d[c]||(d[c]=new Set)).add(a)}return{status:"loading"}}(e?[e]:Y()).forEach(s=>{const r=typeof s.node=="function"?s.node():s.node;if(!r||!r.querySelectorAll)return;let i=!1,c=!1;function a(l,u,d){if(c||(c=!0,Pe(s)),l.tagName.toUpperCase()!=="SVG"){const f=u.mode,y=f==="mask"||(f==="bg"?!1:f==="style"?d.body.indexOf("currentColor")!==-1:null);if(typeof y=="boolean"){Po(l,u,{...Q,...d},y);return}}Bt(l,u,d)}xo(r).forEach(({node:l,props:u})=>{const d=l[B];if(!d){const{status:y,icon:v}=o(u.icon,!0);if(v){a(l,u,v);return}i=i||y==="loading",l[B]={...u,status:y};return}let f;if(uo(d,u)){if(f=o(u.icon,d.name!==u.name),!f.icon){i=i||f.status==="loading",Object.assign(d,{...u,status:f.status});return}}else{if(d.status!=="loading")return;if(f=o(u.icon,!1),!f.icon){d.status=f.status;return}}a(l,u,f.icon)}),s.temporary&&!i?Et(r):t&&i?Ct(r,!0):c&&s.observer&&Te(s)});for(const s in n){const r=n[s];for(const i in r){const c=r[i];Ne(Array.from(c).map(a=>({provider:s,prefix:i,name:a})),To)}}}function _o(e){const t=J(e);t?R(t):R({node:e,temporary:!0},!0)}function Ot(e,t,n=!1){const o=W(e);if(!o)return null;const s=U(e),r=xt(de,t||{}),i=Bt(document.createElement("span"),{name:e,icon:s,customisations:r},o);return n?i.outerHTML:i}function Ao(){return"3.1.1"}function Bo(e,t){return Ot(e,t,!1)}function jo(e,t){return Ot(e,t,!0)}function Oo(e,t){const n=W(e);if(!n)return null;const o=xt(de,t||{});return le(n,o)}function Do(e){e?_o(e):R()}if(typeof document<"u"&&typeof window<"u"){no();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!st(o))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{co(R),R()})}function Lo(e,t){ht(e,t!==!1)}function No(e){ht(e,!0)}mt("",Vn);if(typeof document<"u"&&typeof window<"u"){pt();const e=window;if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const n in t){const o="IconifyProviders["+n+"] is invalid.";try{const s=t[n];if(typeof s!="object"||!s||s.resources===void 0)continue;gt(n,s)||console.error(o)}catch{console.error(o)}}}}const Mo={getAPIConfig:fe,setAPIModule:mt,sendAPIQuery:vt,setFetch:Dn,getFetch:Ln,listAPIProviders:jn},Ro={_api:Mo,addAPIProvider:gt,loadIcons:Ne,loadIcon:to,iconExists:wn,getIcon:kn,listIcons:xn,addIcon:ot,addCollection:st,replaceIDs:ct,calculateSize:xe,buildIcon:le,getVersion:Ao,renderSVG:Bo,renderHTML:jo,renderIcon:Oo,scan:Do,observe:Ct,stopObserving:Et,pauseObserver:ao,resumeObserver:lo,enableCache:Lo,disableCache:No};try{self.Iconify===void 0&&(self.Iconify=Ro)}catch{}const Fo=e=>{const t={};let n=null;return A.forEachBlockletSync(e,o=>{t[o.meta.bundleDid]?n=A.getDisplayName(o,!0):o.meta.bundleDid&&(t[o.meta.bundleDid]=!0)}),n},Uo=(e,t,n)=>{var r;const{hostname:o,href:s}=e;if(!t)return s;if(n){const c=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(o);if(!c)return s;const a=c[0],u=((((r=t.site)==null?void 0:r.domainAliases)||[]).map(d=>d.value).filter(Boolean).find(d=>d.endsWith(z.DEFAULT_DID_DOMAIN))||"").replace(`.${z.DEFAULT_DID_DOMAIN}`,"");return u?s.replace(o,`${u}-${a}.${z.DEFAULT_IP_DOMAIN_SUFFIX}`):s}return s.replace(t.meta.bundleDid,t.appPid)};function Dt(){const{t:e}=Ae(),{api:t}=Gt(),{blocklet:n}=F(),{inService:o}=M(),[s,r]=m.useState(!1),[i,c]=m.useState(5),a=n&&n.structVersion!==z.APP_STRUCT_VERSION,l=()=>{try{if(n.status==="running"){D.error(e("blocklet.migrate.tip.running"));return}const f=Fo(n);if(f){D.error(e("blocklet.migrate.tip.duplicate",{name:f}));return}r(!0)}catch(f){D.error(ce(f))}},u=()=>{const f=Uo(window.location,n,o);setTimeout(()=>{window.location.href=f},5e3),c(5),setInterval(()=>{c(y=>y-1)},1e3)},d=()=>r(!1);return[a&&p.jsxs(Ye,{severity:"warning",style:{margin:"12px 0"},children:[p.jsxs(ne,{display:"flex",alignItems:"center",children:[p.jsx(Xe,{variant:"contained",size:"small",color:"primary",onClick:()=>l(),style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),p.jsx("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map(f=>p.jsx(ne,{display:"flex",alignItems:"center",children:e(`blocklet.migrate.intro.${f}`)},f))]},"alert"),n&&p.jsx(qt,{popup:!0,open:s,saveConnect:!1,forceConnected:!1,action:"migrate-app-to-struct-v2",checkFn:t.get,checkTimeout:5*60*1e3,onSuccess:u,extraParams:{appDid:n.appDid,did:n.meta.did,wt:Ht(n,!0),title:A.getDisplayName(n)},messages:{title:e("blocklet.migrate.title"),scan:e("blocklet.migrate.scan"),confirm:e("blocklet.migrate.confirm"),success:i>=0?e("blocklet.migrate.success",{sec:i}):"Redirecting..."},onClose:d},"connect")]}Dt.propTypes={};async function Vo({blockletDid:e,nodeApi:t,spaceGateways:n}){let o=!1;const s=await Promise.all(n.map(async r=>{let{name:i}=r;const c=await an(r.endpoint);return!Be.isEmpty(c)&&c!==i&&(i=c,o=!0),{...r,name:i}}));return o&&await Promise.all(s.filter(r=>r.did).map(r=>t.updateBlockletSpaceGateway({input:{did:e,where:{did:r.did},spaceGateway:{...r}}}))),s}function zo({setLoading:e,refresh:t}={}){var a;const{blocklet:n,actions:{refreshBlocklet:o}}=F(),s=(a=n==null?void 0:n.meta)==null?void 0:a.did,[r,i]=m.useState([]),{api:c}=M();return ae(async()=>{try{if(!s){i([]);return}e==null||e(!0);const{spaceGateways:l}=await c.getBlockletSpaceGateways({input:{did:s}}),u=await Vo({blockletDid:s,nodeApi:c,spaceGateways:l});i(u??[])}catch(l){console.error(l),D.error(ce(l))}finally{e==null||e(!1)}},[s,o,t]),{spaceGateways:r}}function Lt({deps:e,setLoading:t}={deps:[],setLoading:()=>{}}){var c;const{blocklet:n}=F(),[o,s]=m.useState([]),{api:r}=M(),i=Be.debounce(async()=>{try{if(t(!0),!n){s([]);return}const{backups:a}=await r.getBlockletBackups({input:{did:n.meta.did}});s(a??[])}catch(a){console.error(a),D.error(ce(a))}finally{t(!1)}},2e3);return ae(async()=>{i()},[(c=n==null?void 0:n.meta)==null?void 0:c.did].concat(e)),{backups:o}}function $o({appDid:e}){const{backups:t}=Lt(),[n,o]=m.useState({message:"",progress:0,completed:!1}),s=M(),{ws:{useSubscription:r}}=s;return r(be.BlockletEvents.backupProgress,i=>{e===(i==null?void 0:i.appDid)&&o(()=>({...i}))},[e]),m.useEffect(()=>{var i;if(t!=null&&t.length&&Be.isNull((i=t[0])==null?void 0:i.status)){const[c]=t;o(()=>({message:c.message,progress:c.progress,completed:c.progress>=100}))}},[t]),n}function Go({deps:e}={deps:[]}){var r;const{blocklet:t}=F(),{api:n}=M(),[o,s]=m.useState(null);return ae(async()=>{var i;if((i=t==null?void 0:t.meta)!=null&&i.did){const{autoBackup:c}=await n.getAutoBackup({input:{did:t.meta.did}});s(c)}},[(r=t==null?void 0:t.meta)==null?void 0:r.did].concat(e)),o}function qo({deps:e}={deps:[]}){var r;const{blocklet:t}=F(),{api:n}=M(),[o,s]=m.useState(null);return ae(async()=>{var i;if((i=t==null?void 0:t.meta)!=null&&i.did){const{autoCheckUpdate:c}=await n.getAutoCheckUpdate({input:{did:t.meta.did}});s(c)}},[(r=t==null?void 0:t.meta)==null?void 0:r.did].concat(e)),o}const Nt=m.createContext({}),{Provider:Ho,Consumer:bs}=Nt;function Me({children:e}){const{t}=Ae(),{api:n}=M(),{blocklet:o}=F(),[s,r]=m.useState(!1),[i,c]=m.useState(!1),{spaceGateways:a}=zo({refresh:i,setLoading:r}),l=$o({appDid:o==null?void 0:o.appDid}),[u,d]=m.useState(!1),f=m.useMemo(()=>ln(o==null?void 0:o.environments),[o,i,u]),[y,v]=m.useState(!1),{backups:x}=Lt({deps:[l],setLoading:v}),[C,S]=m.useState(a==null?void 0:a.find(h=>h.endpoint===f)),[w,k]=m.useState(!1),j=Go({deps:[w]}),[O,g]=m.useState(!1),I=qo({deps:[O]}),b=()=>{c(h=>!h)},T=()=>{d(h=>!h)},E=()=>{k(h=>!h)},Mt=()=>{g(h=>!h)},Rt=async(h,Re)=>{a.push({...h,loading:!0}),await n.addBlockletSpaceGateway({input:{did:o.meta.did,spaceGateway:h}}),f!==Re&&await n.configBlocklet({input:{did:[o.meta.did],configs:[{key:be.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:Re}]}}),b(),S(h)},Ft=async h=>{h&&(await n.deleteBlockletSpaceGateway({input:{did:o.meta.did,spaceGatewayDid:h==null?void 0:h.did}}),b(),S(h))},Ut=async h=>{await n.updateBlockletSpaceGateway({input:{did:o.meta.did,where:{did:h.did},spaceGateway:h}}),f!==h.endpoint&&await n.configBlocklet({input:{did:[o.meta.did],configs:[{key:be.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:h.endpoint}]}}),D.success(t("storage.spaces.connectedWithName",{name:(h==null?void 0:h.name)??"DID Spaces"})),b()},Vt=h=>(h==null?void 0:h.endpoint)===f,zt=async h=>{await n.updateAutoBackup({input:{did:o.meta.did,autoBackup:h}}),E()},$t=async h=>{await n.updateAutoCheckUpdate({input:{did:o.meta.did,autoCheckUpdate:h}}),Mt()};return p.jsx(Ho,{value:{spaceGateways:a,selectedSpaceGateway:C,addSpaceGateway:Rt,deleteSpaceGateway:Ft,updateSpaceGateway:Ut,refreshSpaceGateways:b,spaceGatewaysLoading:s,spaceGatewayIsSelected:Vt,updateAutoBackup:zt,updateAutoCheckUpdate:$t,autoCheckUpdate:I,backupEndpoint:f,backupProgress:l,backups:x,backupsLoading:y,refreshBackupEndpoint:T,autoBackup:j},children:e})}Me.propTypes={children:Kt.any.isRequired};Me.defaultProps={};function vs(){return m.useContext(Nt)}const Ko=m.lazy(()=>P(()=>import("./overview-CEZ3L9UM.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]),import.meta.url)),Qo=m.lazy(()=>P(()=>import("./index-DREzkpqn.js"),__vite__mapDeps([23,1,2,24,25,26,27,28,29,30,18,19,20,31,32,33,7,34,35,36,37,38,39,40,5,41,42,43,12,44,45,46,47,48,49,6,8,50,51,52,3,53,54,55,56,57,4,58,59]),import.meta.url)),Wo=m.lazy(()=>P(()=>import("./config-navigation-B0fjysWu.js"),__vite__mapDeps([60,1,2,50,51,61,36,47,48,49,7,29,30,6,8,44,62,63,19,20,18,33,42,5,64,38,65,35,66,21]),import.meta.url)),Jo=m.lazy(()=>P(()=>import("./audit-logs-Bv1MQwRk.js"),__vite__mapDeps([67,1,2,68,69,12,48,19,20,70,56]),import.meta.url)),Yo=m.lazy(()=>P(()=>import("./index-B3dnO2Fn.js"),__vite__mapDeps([71,1,2,9,72,29,30,27,11,73,57,18,19,20,42,5,74,12,75,10,36,76,77,64,78]),import.meta.url)),Xo=m.lazy(()=>P(()=>import("./index-DhKUIofz.js").then(e=>e.i),__vite__mapDeps([79,1,2,31,9,37,80,73,57,18,19,20,54,55,7,56,50,51,12,49,65,81,82,33,43,75,10,36,77,8,42,5,41,4,22,83]),import.meta.url)),Zo=m.lazy(()=>P(()=>import("./service-BH3T6HEj.js"),__vite__mapDeps([84,1,2,85,55,19,7,20,18,56,61,57,47,48,49,29,30,6,8,86,46,32,87,51,66,64,33,88,9,28]),import.meta.url)),es=m.lazy(()=>P(()=>import("./index-D9JWXKgu.js"),__vite__mapDeps([89,1,2,9,25,26,27,28,29,30,18,19,20,31,90,68,69,91,12,47,48,49,7,6,8,52,43,46,33,85,55,56,61,57,86,32,87,51,66,64,88,41,92,93,76,77,94,45,95,83,5,96,97,98,99,100,101,16,74,102,4,103,17,14,104,82,72,11,34,22,42,35,105]),import.meta.url)),ts=m.lazy(()=>P(()=>import("./log-CZ5fTya6.js"),__vite__mapDeps([106,1,2,48,107,29,30,19,108]),import.meta.url)),ns=m.lazy(()=>P(()=>import("./runtime-Cz4NXi5t.js"),__vite__mapDeps([109,1,2,54,55,19,7,20,18,56,50,51,57,12,49,5,110,111,34]),import.meta.url)),os=m.lazy(()=>P(()=>import("./traffic-Dwmi76x4.js"),__vite__mapDeps([112,1,2,24,86,32,19,111,18,20,64]),import.meta.url)),ss=m.lazy(()=>P(()=>import("./index-BxkZOe_i.js"),__vite__mapDeps([113,1,2,5,72,29,30,16,104,82,101,18,19,20,4,52,43,49,87,39,54,55,7,56,50,51,57,12,33,6,8,47,48,35,42,105]),import.meta.url)),rs=({children:e})=>e;function is(){var g,I;const e=Qt(),{tab:t="overview"}=Ze(),{did:n,blocklet:o,error:s,client:r,actions:{setBlocklet:i,refreshBlocklet:c}}=fn(),{refresh:a}=Wt(),{t:l}=Ae(),u=m.useCallback(()=>p.jsx(Jo,{scope:n}),[n]),d=((g=o==null?void 0:o.environments.find(b=>b.key==="BLOCKLET_APP_URL"))==null?void 0:g.value)||window.location.origin,f=b=>tn(b,d),y=b=>{e(`/blocklets/${n}/${b}`)},v=b=>{b&&i(b),c()},x=!o||pe(o.status)?[]:A.getAppMissingConfigs(o);let C=null;const S=[{label:l("common.overview"),value:"overview"},{breadcrumbsLabel:l("common.components"),label:p.jsx(Jt,{"data-cy":"blocklet-list",color:"error",variant:"dot",invisible:!x.length,children:l("common.components")}),value:"components"}];if(s)C=p.jsxs(p.Fragment,{children:[p.jsx(Ye,{severity:"error",variant:"icon",children:ce(s)}),p.jsx(Xe,{onClick:()=>c(),children:p.jsx("span",{style:{textDecoration:"underline"},children:l("common.retry")})})]});else if(o){const b={overview:p.jsx(Ko,{}),configuration:Qo,navigation:Wo,services:Zo,members:p.jsx(Xo,{type:"blocklet",createPassportSvg:f}),passports:Yo,components:es,"audit-logs":u,logs:ts,runtime:p.jsx(ns,{}),traffic:p.jsx(os,{client:r,did:n}),storage:p.jsx(ss,{})};t==="configuration"&&pe(o.status)&&y("overview"),pe(o.status)||(S.push({label:l("common.members"),value:"members"}),S.push({label:l("common.passport"),value:"passports"}),S.push({label:l("common.configuration"),value:"configuration"})),S.push({label:l("common.auditLogs"),value:"audit-logs"}),o&&((I=o.children)!=null&&I.length)&&o.structVersion===z.APP_STRUCT_VERSION&&S.push({label:l("common.logs"),value:"logs"}),S.push({label:l("common.configNavigation"),value:"navigation"}),S.push({label:l("common.runtime"),value:"runtime"}),S.push({label:l("common.traffic"),value:"traffic"}),S.push({label:l("common.storage"),value:"storage"}),A.getBlockletServices(o).length&&S.splice(2,0,{label:l("blocklet.services"),value:"services"});const E=b[t]||b.overview;C=p.jsxs(sn,{type:"components",children:[!A.isExternalBlocklet(o)&&p.jsx(nn,{tabs:S,current:t,onChange:y,scrollButtons:"auto"}),p.jsx("div",{className:"page-content",children:p.jsx(m.Suspense,{fallback:p.jsx(Fe,{relative:"parent",children:p.jsx(Ue,{})}),children:m.isValidElement(E)?E:p.jsx(E,{blocklet:o,onUpdate:v,createPassportSvg:f})})})]})}else C=p.jsx(Fe,{relative:"parent",children:p.jsx(Ue,{})});const w=()=>{},k=({action:b,error:T})=>{if(T){D.error(T.message);return}b==="remove"?(a(),e("/blocklets")):c()},j=S.find(b=>b.value===t),O=o?dn:rs;return p.jsx(O,{teamDid:n,children:p.jsxs(as,{children:[p.jsxs(pn,{separator:"›","aria-label":"breadcrumb",className:"page-breadcrumb",children:[p.jsx(Yt,{color:"textSecondary",to:"/blocklets",children:l("common.blocklets")}),p.jsx(Xt,{to:`/blocklets/${n}/overview`,style:b=>b?{color:"inherit"}:{},children:l("common.detail")}),p.jsx(he,{color:"textSecondary",children:j?j.breadcrumbsLabel||j.label:""})]}),p.jsxs(he,{component:"div",className:"page-header",children:[p.jsxs(he,{component:"h2",variant:"h4",className:"page-title",color:"textPrimary",children:[o?p.jsx(cn,{blocklet:o,style:{marginRight:16}}):null,o?p.jsxs(ne,{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1,children:[p.jsx(ne,{children:A.getDisplayName(o)}),(o==null?void 0:o.status)!=="unknown"&&p.jsx(on,{size:"12px",status:o.status,source:o.source,progress:o.progress})]}):`${l("common.blocklet")} ${l("common.detail")}`]}),p.jsx(Zt,{permission:"mutate_blocklets",children:!!o&&!A.isExternalBlocklet(o)&&p.jsx(rn,{className:"page-actions",blocklet:o,onStart:w,onComplete:k,variant:"group"})})]}),p.jsx(Dt,{}),C]})})}function cs(){const{did:e}=Ze();return e?p.jsx(un,{did:e,children:p.jsx(Me,{children:p.jsx(is,{})})}):null}const as=en.main`
|
|
12
|
+
*/const et=Object.freeze({left:0,top:0,width:16,height:16}),oe=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Q=Object.freeze({...et,...oe}),ve=Object.freeze({...Q,body:"",hidden:!1});function hn(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(n.rotate=o),n}function Ve(e,t){const n=hn(e,t);for(const o in ve)o in oe?o in e&&!(o in n)&&(n[o]=oe[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function mn(e,t){const n=e.icons,o=e.aliases||Object.create(null),s=Object.create(null);function r(i){if(n[i])return s[i]=[];if(!(i in s)){s[i]=null;const c=o[i]&&o[i].parent,a=c&&r(c);a&&(s[i]=[c].concat(a))}return s[i]}return(t||Object.keys(n).concat(Object.keys(o))).forEach(r),s}function gn(e,t,n){const o=e.icons,s=e.aliases||Object.create(null);let r={};function i(c){r=Ve(o[c]||s[c],r)}return i(t),n.forEach(i),Ve(e,r)}function tt(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(s=>{t(s,null),n.push(s)});const o=mn(e);for(const s in o){const r=o[s];r&&(t(s,gn(e,s,r)),n.push(s))}return n}const $=/^[a-z0-9]+(-[a-z0-9]+)*$/,U=(e,t,n,o="")=>{const s=e.split(":");if(e.slice(0,1)==="@"){if(s.length<2||s.length>3)return null;o=s.shift().slice(1)}if(s.length>3||!s.length)return null;if(s.length>1){const c=s.pop(),a=s.pop(),l={provider:s.length>0?s[0]:o,prefix:a,name:c};return t&&!ee(l)?null:l}const r=s[0],i=r.split("-");if(i.length>1){const c={provider:o,prefix:i.shift(),name:i.join("-")};return t&&!ee(c)?null:c}if(n&&o===""){const c={provider:o,prefix:"",name:r};return t&&!ee(c,n)?null:c}return null},ee=(e,t)=>e?!!((e.provider===""||e.provider.match($))&&(t&&e.prefix===""||e.prefix.match($))&&e.name.match($)):!1,yn={provider:"",aliases:{},not_found:{},...et};function me(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function nt(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!me(e,yn))return null;const n=t.icons;for(const s in n){const r=n[s];if(!s.match($)||typeof r.body!="string"||!me(r,ve))return null}const o=t.aliases||Object.create(null);for(const s in o){const r=o[s],i=r.parent;if(!s.match($)||typeof i!="string"||!n[i]&&!o[i]||!me(r,ve))return null}return t}const se=Object.create(null);function bn(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function _(e,t){const n=se[e]||(se[e]=Object.create(null));return n[t]||(n[t]=bn(e,t))}function je(e,t){return nt(t)?tt(t,(n,o)=>{o?e.icons[n]=o:e.missing.add(n)}):[]}function vn(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function xn(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(se)).forEach(s=>{(typeof s=="string"&&typeof t=="string"?[t]:Object.keys(se[s]||{})).forEach(i=>{const c=_(s,i);n=n.concat(Object.keys(c.icons).map(a=>(s!==""?"@"+s+":":"")+i+":"+a))})}),n}let H=!1;function Sn(e){return typeof e=="boolean"&&(H=e),H}function W(e){const t=typeof e=="string"?U(e,!0,H):e;if(t){const n=_(t.provider,t.prefix),o=t.name;return n.icons[o]||(n.missing.has(o)?null:void 0)}}function ot(e,t){const n=U(e,!0,H);if(!n)return!1;const o=_(n.provider,n.prefix);return vn(o,n.name,t)}function st(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),H&&!t&&!e.prefix){let s=!1;return nt(e)&&(e.prefix="",tt(e,(r,i)=>{i&&ot(r,i)&&(s=!0)})),s}const n=e.prefix;if(!ee({provider:t,prefix:n,name:"a"}))return!1;const o=_(t,n);return!!je(o,e)}function wn(e){return!!W(e)}function kn(e){const t=W(e);return t?{...Q,...t}:null}const rt=Object.freeze({width:null,height:null}),it=Object.freeze({...rt,...oe}),In=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Cn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function xe(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const o=e.split(In);if(o===null||!o.length)return e;const s=[];let r=o.shift(),i=Cn.test(r);for(;;){if(i){const c=parseFloat(r);isNaN(c)?s.push(r):s.push(Math.ceil(c*t*n)/n)}else s.push(r);if(r=o.shift(),r===void 0)return s.join("");i=!i}}const En=e=>e==="unset"||e==="undefined"||e==="none";function le(e,t){const n={...Q,...e},o={...it,...t},s={left:n.left,top:n.top,width:n.width,height:n.height};let r=n.body;[n,o].forEach(v=>{const x=[],C=v.hFlip,S=v.vFlip;let w=v.rotate;C?S?w+=2:(x.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),x.push("scale(-1 1)"),s.top=s.left=0):S&&(x.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),x.push("scale(1 -1)"),s.top=s.left=0);let k;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:k=s.height/2+s.top,x.unshift("rotate(90 "+k.toString()+" "+k.toString()+")");break;case 2:x.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:k=s.width/2+s.left,x.unshift("rotate(-90 "+k.toString()+" "+k.toString()+")");break}w%2===1&&(s.left!==s.top&&(k=s.left,s.left=s.top,s.top=k),s.width!==s.height&&(k=s.width,s.width=s.height,s.height=k)),x.length&&(r='<g transform="'+x.join(" ")+'">'+r+"</g>")});const i=o.width,c=o.height,a=s.width,l=s.height;let u,d;i===null?(d=c===null?"1em":c==="auto"?l:c,u=xe(d,a/l)):(u=i==="auto"?a:i,d=c===null?xe(u,l/a):c==="auto"?l:c);const f={},y=(v,x)=>{En(x)||(f[v]=x.toString())};return y("width",u),y("height",d),f.viewBox=s.left.toString()+" "+s.top.toString()+" "+a.toString()+" "+l.toString(),{attributes:f,body:r}}const Pn=/\sid="(\S+)"/g,Tn="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let _n=0;function ct(e,t=Tn){const n=[];let o;for(;o=Pn.exec(e);)n.push(o[1]);if(!n.length)return e;const s="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(r=>{const i=typeof t=="function"?t(r):t+(_n++).toString(),c=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+i+s+"$3")}),e=e.replace(new RegExp(s,"g"),""),e}const L={local:!0,session:!0},at={local:new Set,session:new Set};let Oe=!1;function An(e){Oe=e}const ze="iconify2",K="iconify",lt=K+"-count",$e=K+"-version",ut=36e5,Bn=168;function Se(e,t){try{return e.getItem(t)}catch{}}function De(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Ge(e,t){try{e.removeItem(t)}catch{}}function we(e,t){return De(e,lt,t.toString())}function ke(e){return parseInt(Se(e,lt))||0}let X=typeof window>"u"?{}:window;function ft(e){const t=e+"Storage";try{if(X&&X[t]&&typeof X[t].length=="number")return X[t]}catch{}L[e]=!1}function dt(e,t){const n=ft(e);if(!n)return;const o=Se(n,$e);if(o!==ze){if(o){const c=ke(n);for(let a=0;a<c;a++)Ge(n,K+a.toString())}De(n,$e,ze),we(n,0);return}const s=Math.floor(Date.now()/ut)-Bn,r=c=>{const a=K+c.toString(),l=Se(n,a);if(typeof l=="string"){try{const u=JSON.parse(l);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>s&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,c))return!0}catch{}Ge(n,a)}};let i=ke(n);for(let c=i-1;c>=0;c--)r(c)||(c===i-1?(i--,we(n,i)):at[e].add(c))}function pt(){if(!Oe){An(!0);for(const e in L)dt(e,t=>{const n=t.data,o=t.provider,s=n.prefix,r=_(o,s);if(!je(r,n).length)return!1;const i=n.lastModified||-1;return r.lastModifiedCached=r.lastModifiedCached?Math.min(r.lastModifiedCached,i):i,!0})}}function ht(e,t){switch(e){case"local":case"session":L[e]=t;break;case"all":for(const n in L)L[n]=t;break}}const Ie=Object.create(null);function mt(e,t){Ie[e]=t}function Ce(e){return Ie[e]||Ie[""]}function Le(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const ue=Object.create(null),V=["https://api.simplesvg.com","https://api.unisvg.com"],te=[];for(;V.length>0;)V.length===1||Math.random()>.5?te.push(V.shift()):te.push(V.pop());ue[""]=Le({resources:["https://api.iconify.design"].concat(te)});function gt(e,t){const n=Le(t);return n===null?!1:(ue[e]=n,!0)}function fe(e){return ue[e]}function jn(){return Object.keys(ue)}const On=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let re=On();function Dn(e){re=e}function Ln(){return re}function Nn(e,t){const n=fe(e);if(!n)return 0;let o;if(!n.maxURL)o=0;else{let s=0;n.resources.forEach(i=>{s=Math.max(s,i.length)});const r=t+".json?icons=";o=n.maxURL-s-n.path.length-r.length}return o}function Mn(e){return e===404}const Rn=(e,t,n)=>{const o=[],s=Nn(e,t),r="icons";let i={type:r,provider:e,prefix:t,icons:[]},c=0;return n.forEach((a,l)=>{c+=a.length+1,c>=s&&l>0&&(o.push(i),i={type:r,provider:e,prefix:t,icons:[]},c=a.length),i.icons.push(a)}),o.push(i),o};function Fn(e){if(typeof e=="string"){const t=fe(e);if(t)return t.path}return"/"}const Un=(e,t,n)=>{if(!re){n("abort",424);return}let o=Fn(t.provider);switch(t.type){case"icons":{const r=t.prefix,c=t.icons.join(","),a=new URLSearchParams({icons:c});o+=r+".json?"+a.toString();break}case"custom":{const r=t.uri;o+=r.slice(0,1)==="/"?r.slice(1):r;break}default:n("abort",400);return}let s=503;re(e+o).then(r=>{const i=r.status;if(i!==200){setTimeout(()=>{n(Mn(i)?"abort":"next",i)});return}return s=501,r.json()}).then(r=>{if(typeof r!="object"||r===null){setTimeout(()=>{r===404?n("abort",r):n("next",s)});return}setTimeout(()=>{n("success",r)})}).catch(()=>{n("next",s)})},Vn={prepare:Rn,send:Un};function zn(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((s,r)=>s.provider!==r.provider?s.provider.localeCompare(r.provider):s.prefix!==r.prefix?s.prefix.localeCompare(r.prefix):s.name.localeCompare(r.name));let o={provider:"",prefix:"",name:""};return e.forEach(s=>{if(o.name===s.name&&o.prefix===s.prefix&&o.provider===s.provider)return;o=s;const r=s.provider,i=s.prefix,c=s.name,a=n[r]||(n[r]=Object.create(null)),l=a[i]||(a[i]=_(r,i));let u;c in l.icons?u=t.loaded:i===""||l.missing.has(c)?u=t.missing:u=t.pending;const d={provider:r,prefix:i,name:c};u.push(d)}),t}function yt(e,t){e.forEach(n=>{const o=n.loaderCallbacks;o&&(n.loaderCallbacks=o.filter(s=>s.id!==t))})}function $n(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const o=e.provider,s=e.prefix;t.forEach(r=>{const i=r.icons,c=i.pending.length;i.pending=i.pending.filter(a=>{if(a.prefix!==s)return!0;const l=a.name;if(e.icons[l])i.loaded.push({provider:o,prefix:s,name:l});else if(e.missing.has(l))i.missing.push({provider:o,prefix:s,name:l});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||yt([e],r.id),r.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),r.abort))})}))}let Gn=0;function qn(e,t,n){const o=Gn++,s=yt.bind(null,n,o);if(!t.pending.length)return s;const r={id:o,icons:t,callback:e,abort:s};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(r)}),s}function Hn(e,t=!0,n=!1){const o=[];return e.forEach(s=>{const r=typeof s=="string"?U(s,t,n):s;r&&o.push(r)}),o}var Kn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Qn(e,t,n,o){const s=e.resources.length,r=e.random?Math.floor(Math.random()*s):e.index;let i;if(e.random){let g=e.resources.slice(0);for(i=[];g.length>1;){const I=Math.floor(Math.random()*g.length);i.push(g[I]),g=g.slice(0,I).concat(g.slice(I+1))}i=i.concat(g)}else i=e.resources.slice(r).concat(e.resources.slice(0,r));const c=Date.now();let a="pending",l=0,u,d=null,f=[],y=[];typeof o=="function"&&y.push(o);function v(){d&&(clearTimeout(d),d=null)}function x(){a==="pending"&&(a="aborted"),v(),f.forEach(g=>{g.status==="pending"&&(g.status="aborted")}),f=[]}function C(g,I){I&&(y=[]),typeof g=="function"&&y.push(g)}function S(){return{startTime:c,payload:t,status:a,queriesSent:l,queriesPending:f.length,subscribe:C,abort:x}}function w(){a="failed",y.forEach(g=>{g(void 0,u)})}function k(){f.forEach(g=>{g.status==="pending"&&(g.status="aborted")}),f=[]}function j(g,I,b){const T=I!=="success";switch(f=f.filter(E=>E!==g),a){case"pending":break;case"failed":if(T||!e.dataAfterTimeout)return;break;default:return}if(I==="abort"){u=b,w();return}if(T){u=b,f.length||(i.length?O():w());return}if(v(),k(),!e.random){const E=e.resources.indexOf(g.resource);E!==-1&&E!==e.index&&(e.index=E)}a="completed",y.forEach(E=>{E(b)})}function O(){if(a!=="pending")return;v();const g=i.shift();if(g===void 0){if(f.length){d=setTimeout(()=>{v(),a==="pending"&&(k(),w())},e.timeout);return}w();return}const I={status:"pending",resource:g,callback:(b,T)=>{j(I,b,T)}};f.push(I),l++,d=setTimeout(O,e.rotate),n(g,t,I.callback)}return setTimeout(O),S}function bt(e){const t={...Kn,...e};let n=[];function o(){n=n.filter(c=>c().status==="pending")}function s(c,a,l){const u=Qn(t,c,a,(d,f)=>{o(),l&&l(d,f)});return n.push(u),u}function r(c){return n.find(a=>c(a))||null}return{query:s,find:r,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:o}}function qe(){}const ge=Object.create(null);function Wn(e){if(!ge[e]){const t=fe(e);if(!t)return;const n=bt(t),o={config:t,redundancy:n};ge[e]=o}return ge[e]}function vt(e,t,n){let o,s;if(typeof e=="string"){const r=Ce(e);if(!r)return n(void 0,424),qe;s=r.send;const i=Wn(e);i&&(o=i.redundancy)}else{const r=Le(e);if(r){o=bt(r);const i=e.resources?e.resources[0]:"",c=Ce(i);c&&(s=c.send)}}return!o||!s?(n(void 0,424),qe):o.query(t,s,n)().abort}function Jn(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const o in L)dt(o,s=>{const r=s.data;return s.provider!==e.provider||r.prefix!==e.prefix||r.lastModified===t});return!0}function Yn(e,t){Oe||pt();function n(o){let s;if(!L[o]||!(s=ft(o)))return;const r=at[o];let i;if(r.size)r.delete(i=Array.from(r).shift());else if(i=ke(s),!we(s,i+1))return;const c={cached:Math.floor(Date.now()/ut),provider:e.provider,data:t};return De(s,K+i.toString(),JSON.stringify(c))}t.lastModified&&!Jn(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function He(){}function Xn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,$n(e)}))}function Zn(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:o}=e,s=e.iconsToLoad;delete e.iconsToLoad;let r;if(!s||!(r=Ce(n)))return;r.prepare(n,o,s).forEach(c=>{vt(n,c,a=>{if(typeof a!="object")c.icons.forEach(l=>{e.missing.add(l)});else try{const l=je(e,a);if(!l.length)return;const u=e.pendingIcons;u&&l.forEach(d=>{u.delete(d)}),Yn(e,a)}catch(l){console.error(l)}Xn(e)})})}))}const eo=e=>{const n=_(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},Ne=(e,t)=>{const n=Hn(e,!0,Sn()),o=zn(n);if(!o.pending.length){let a=!0;return t&&setTimeout(()=>{a&&t(o.loaded,o.missing,o.pending,He)}),()=>{a=!1}}const s=Object.create(null),r=[];let i,c;return o.pending.forEach(a=>{const{provider:l,prefix:u}=a;if(u===c&&l===i)return;i=l,c=u,r.push(_(l,u));const d=s[l]||(s[l]=Object.create(null));d[u]||(d[u]=[])}),o.pending.forEach(a=>{const{provider:l,prefix:u,name:d}=a,f=_(l,u),y=f.pendingIcons||(f.pendingIcons=new Set);y.has(d)||(y.add(d),s[l][u].push(d))}),r.forEach(a=>{const{provider:l,prefix:u}=a;s[l][u].length&&Zn(a,s[l][u])}),t?qn(t,o,r):He},to=e=>new Promise((t,n)=>{const o=typeof e=="string"?U(e,!0):e;if(!o){n(e);return}Ne([o||e],s=>{if(s.length&&o){const r=W(o);if(r){t({...Q,...r});return}}n(e)})});function xt(e,t){const n={...e};for(const o in t){const s=t[o],r=typeof s;o in rt?(s===null||s&&(r==="string"||r==="number"))&&(n[o]=s):r===typeof n[o]&&(n[o]=o==="rotate"?s%4:s)}return n}const de={...it,inline:!1},ye="iconify",Ee="iconify-inline",B="iconifyData"+Date.now();let N=[];function J(e){for(let t=0;t<N.length;t++){const n=N[t];if((typeof n.node=="function"?n.node():n.node)===e)return n}}function St(e,t=!1){let n=J(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},N.push(n),n)}function no(){if(document.documentElement)return St(document.documentElement);N.push({node:()=>document.documentElement})}function oo(e){N=N.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function Y(){return N}function so(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let G=null;const ro={childList:!0,subtree:!0,attributes:!0};function wt(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,G&&G(e)}))}function io(e,t){if(!e.observer)return;const n=e.observer;if(!n.pendingScan)for(let o=0;o<t.length;o++){const s=t[o];if(s.addedNodes&&s.addedNodes.length>0||s.type==="attributes"&&s.target[B]!==void 0){n.paused||wt(e);return}}}function kt(e,t){e.observer.instance.observe(t,ro)}function ie(e){let t=e.observer;if(t&&t.instance)return;const n=typeof e.node=="function"?e.node():e.node;!n||!window||(t||(t={paused:0},e.observer=t),t.instance=new window.MutationObserver(io.bind(null,e)),kt(e,n),t.paused||wt(e))}function Ke(){Y().forEach(ie)}function It(e){if(!e.observer)return;const t=e.observer;t.pendingScan&&(clearTimeout(t.pendingScan),delete t.pendingScan),t.instance&&(t.instance.disconnect(),delete t.instance)}function co(e){const t=G!==null;if(G!==e&&(G=e,t&&Y().forEach(It)),t){Ke();return}so(Ke)}function Pe(e){(e?[e]:Y()).forEach(t=>{if(!t.observer){t.observer={paused:1};return}const n=t.observer;if(n.paused++,n.paused>1||!n.instance)return;n.instance.disconnect()})}function ao(e){if(e){const t=J(e);t&&Pe(t)}else Pe()}function Te(e){(e?[e]:Y()).forEach(t=>{if(!t.observer){ie(t);return}const n=t.observer;if(n.paused&&(n.paused--,!n.paused)){const o=typeof t.node=="function"?t.node():t.node;if(o)n.instance?kt(t,o):ie(t);else return}})}function lo(e){if(e){const t=J(e);t&&Te(t)}else Te()}function Ct(e,t=!1){const n=St(e,t);return ie(n),n}function Et(e){const t=J(e);t&&(It(t),oo(e))}function uo(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,o=t.customisations;for(const s in de)if(n[s]!==o[s])return!0;return!1}function fo(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function o(s){for(;s<0;)s+=4;return s%4}if(n===""){const s=parseInt(e);return isNaN(s)?0:o(s)}else if(n!==e){let s=0;switch(n){case"%":s=25;break;case"deg":s=90}if(s){let r=parseFloat(e.slice(0,e.length-n.length));return isNaN(r)?0:(r=r/s,r%1===0?o(r):0)}}return t}const po=/[\s,]+/;function ho(e,t){t.split(po).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const mo=["width","height"],go=["inline","hFlip","vFlip"];function yo(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function bo(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&U(t,!0);if(!n)return null;const o={...de,inline:e.classList&&e.classList.contains(Ee)};mo.forEach(c=>{const a=e.getAttribute("data-"+c);a&&(o[c]=a)});const s=e.getAttribute("data-rotate");typeof s=="string"&&(o.rotate=fo(s));const r=e.getAttribute("data-flip");typeof r=="string"&&ho(o,r),go.forEach(c=>{const a="data-"+c,l=yo(e.getAttribute(a),a);typeof l=="boolean"&&(o[c]=l)});const i=e.getAttribute("data-mode");return{name:t,icon:n,customisations:o,mode:i}}const vo="svg."+ye+", i."+ye+", span."+ye+", i."+Ee+", span."+Ee;function xo(e){const t=[];return e.querySelectorAll(vo).forEach(n=>{const o=n[B]||n.tagName.toLowerCase()!=="svg"?bo(n):null;o&&t.push({node:n,props:o})}),t}function Pt(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in t)n+=" "+o+'="'+t[o]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}let q;function So(){try{q=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{q=null}}function wo(e){return q===void 0&&So(),q?q.createHTML(e):e}function Tt(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function _t(e,t,n,o){const s=e.classList;if(o){const i=o.classList;Array.from(i).forEach(c=>{s.add(c)})}const r=[];return t.forEach(i=>{s.contains(i)?n.has(i)&&r.push(i):(s.add(i),r.push(i))}),n.forEach(i=>{t.has(i)||s.remove(i)}),r}function At(e,t,n){const o=e.style;(n||[]).forEach(r=>{o.removeProperty(r)});const s=[];for(const r in t)o.getPropertyValue(r)||(s.push(r),o.setProperty(r,t[r]));return s}function Bt(e,t,n){let o;try{o=document.createElement("span")}catch{return e}const s=t.customisations,r=le(n,s),i=e[B],c=Pt(ct(r.body),{"aria-hidden":"true",role:"img",...r.attributes});o.innerHTML=wo(c);const a=o.childNodes[0],l=e.attributes;for(let v=0;v<l.length;v++){const x=l.item(v),C=x.name;C!=="class"&&!a.hasAttribute(C)&&a.setAttribute(C,x.value)}const u=Tt(t.icon),d=_t(a,u,new Set(i&&i.addedClasses),e),f=At(a,s.inline?{"vertical-align":"-0.125em"}:{},i&&i.addedStyles),y={...t,status:"loaded",addedClasses:d,addedStyles:f};return a[B]=y,e.parentNode&&e.parentNode.replaceChild(a,e),a}function ko(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Io(e){return"data:image/svg+xml,"+ko(e)}function Co(e){return'url("'+Io(e)+'")'}const Eo={display:"inline-block"},_e={"background-color":"currentColor"},jt={"background-color":"transparent"},Qe={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},We={"-webkit-mask":_e,mask:_e,background:jt};for(const e in We){const t=We[e];for(const n in Qe)t[e+"-"+n]=Qe[n]}function Je(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function Po(e,t,n,o){const s=t.customisations,r=le(n,s),i=r.attributes,c=e[B],a=Pt(r.body,{...i,width:n.width+"",height:n.height+""}),l=Tt(t.icon),u=_t(e,l,new Set(c&&c.addedClasses)),f={"--svg":Co(a),width:Je(i.width),height:Je(i.height),...Eo,...o?_e:jt};s.inline&&(f["vertical-align"]="-0.125em");const y=At(e,f,c&&c.addedStyles),v={...t,status:"loaded",addedClasses:u,addedStyles:y};return e[B]=v,e}let Z=!1;function To(){Z||(Z=!0,setTimeout(()=>{Z&&(Z=!1,R())}))}function R(e,t=!1){const n=Object.create(null);function o(s,r){const{provider:i,prefix:c,name:a}=s,l=_(i,c),u=l.icons[a];if(u)return{status:"loaded",icon:u};if(l.missing.has(a))return{status:"missing"};if(r&&!eo(s)){const d=n[i]||(n[i]=Object.create(null));(d[c]||(d[c]=new Set)).add(a)}return{status:"loading"}}(e?[e]:Y()).forEach(s=>{const r=typeof s.node=="function"?s.node():s.node;if(!r||!r.querySelectorAll)return;let i=!1,c=!1;function a(l,u,d){if(c||(c=!0,Pe(s)),l.tagName.toUpperCase()!=="SVG"){const f=u.mode,y=f==="mask"||(f==="bg"?!1:f==="style"?d.body.indexOf("currentColor")!==-1:null);if(typeof y=="boolean"){Po(l,u,{...Q,...d},y);return}}Bt(l,u,d)}xo(r).forEach(({node:l,props:u})=>{const d=l[B];if(!d){const{status:y,icon:v}=o(u.icon,!0);if(v){a(l,u,v);return}i=i||y==="loading",l[B]={...u,status:y};return}let f;if(uo(d,u)){if(f=o(u.icon,d.name!==u.name),!f.icon){i=i||f.status==="loading",Object.assign(d,{...u,status:f.status});return}}else{if(d.status!=="loading")return;if(f=o(u.icon,!1),!f.icon){d.status=f.status;return}}a(l,u,f.icon)}),s.temporary&&!i?Et(r):t&&i?Ct(r,!0):c&&s.observer&&Te(s)});for(const s in n){const r=n[s];for(const i in r){const c=r[i];Ne(Array.from(c).map(a=>({provider:s,prefix:i,name:a})),To)}}}function _o(e){const t=J(e);t?R(t):R({node:e,temporary:!0},!0)}function Ot(e,t,n=!1){const o=W(e);if(!o)return null;const s=U(e),r=xt(de,t||{}),i=Bt(document.createElement("span"),{name:e,icon:s,customisations:r},o);return n?i.outerHTML:i}function Ao(){return"3.1.1"}function Bo(e,t){return Ot(e,t,!1)}function jo(e,t){return Ot(e,t,!0)}function Oo(e,t){const n=W(e);if(!n)return null;const o=xt(de,t||{});return le(n,o)}function Do(e){e?_o(e):R()}if(typeof document<"u"&&typeof window<"u"){no();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!st(o))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{co(R),R()})}function Lo(e,t){ht(e,t!==!1)}function No(e){ht(e,!0)}mt("",Vn);if(typeof document<"u"&&typeof window<"u"){pt();const e=window;if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const n in t){const o="IconifyProviders["+n+"] is invalid.";try{const s=t[n];if(typeof s!="object"||!s||s.resources===void 0)continue;gt(n,s)||console.error(o)}catch{console.error(o)}}}}const Mo={getAPIConfig:fe,setAPIModule:mt,sendAPIQuery:vt,setFetch:Dn,getFetch:Ln,listAPIProviders:jn},Ro={_api:Mo,addAPIProvider:gt,loadIcons:Ne,loadIcon:to,iconExists:wn,getIcon:kn,listIcons:xn,addIcon:ot,addCollection:st,replaceIDs:ct,calculateSize:xe,buildIcon:le,getVersion:Ao,renderSVG:Bo,renderHTML:jo,renderIcon:Oo,scan:Do,observe:Ct,stopObserving:Et,pauseObserver:ao,resumeObserver:lo,enableCache:Lo,disableCache:No};try{self.Iconify===void 0&&(self.Iconify=Ro)}catch{}const Fo=e=>{const t={};let n=null;return A.forEachBlockletSync(e,o=>{t[o.meta.bundleDid]?n=A.getDisplayName(o,!0):o.meta.bundleDid&&(t[o.meta.bundleDid]=!0)}),n},Uo=(e,t,n)=>{var r;const{hostname:o,href:s}=e;if(!t)return s;if(n){const c=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(o);if(!c)return s;const a=c[0],u=((((r=t.site)==null?void 0:r.domainAliases)||[]).map(d=>d.value).filter(Boolean).find(d=>d.endsWith(z.DEFAULT_DID_DOMAIN))||"").replace(`.${z.DEFAULT_DID_DOMAIN}`,"");return u?s.replace(o,`${u}-${a}.${z.DEFAULT_IP_DOMAIN_SUFFIX}`):s}return s.replace(t.meta.bundleDid,t.appPid)};function Dt(){const{t:e}=Ae(),{api:t}=Gt(),{blocklet:n}=F(),{inService:o}=M(),[s,r]=m.useState(!1),[i,c]=m.useState(5),a=n&&n.structVersion!==z.APP_STRUCT_VERSION,l=()=>{try{if(n.status==="running"){D.error(e("blocklet.migrate.tip.running"));return}const f=Fo(n);if(f){D.error(e("blocklet.migrate.tip.duplicate",{name:f}));return}r(!0)}catch(f){D.error(ce(f))}},u=()=>{const f=Uo(window.location,n,o);setTimeout(()=>{window.location.href=f},5e3),c(5),setInterval(()=>{c(y=>y-1)},1e3)},d=()=>r(!1);return[a&&p.jsxs(Ye,{severity:"warning",style:{margin:"12px 0"},children:[p.jsxs(ne,{display:"flex",alignItems:"center",children:[p.jsx(Xe,{variant:"contained",size:"small",color:"primary",onClick:()=>l(),style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),p.jsx("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map(f=>p.jsx(ne,{display:"flex",alignItems:"center",children:e(`blocklet.migrate.intro.${f}`)},f))]},"alert"),n&&p.jsx(qt,{popup:!0,open:s,saveConnect:!1,forceConnected:!1,action:"migrate-app-to-struct-v2",checkFn:t.get,checkTimeout:5*60*1e3,onSuccess:u,extraParams:{appDid:n.appDid,did:n.meta.did,wt:Ht(n,!0),title:A.getDisplayName(n)},messages:{title:e("blocklet.migrate.title"),scan:e("blocklet.migrate.scan"),confirm:e("blocklet.migrate.confirm"),success:i>=0?e("blocklet.migrate.success",{sec:i}):"Redirecting..."},onClose:d},"connect")]}Dt.propTypes={};async function Vo({blockletDid:e,nodeApi:t,spaceGateways:n}){let o=!1;const s=await Promise.all(n.map(async r=>{let{name:i}=r;const c=await an(r.endpoint);return!Be.isEmpty(c)&&c!==i&&(i=c,o=!0),{...r,name:i}}));return o&&await Promise.all(s.filter(r=>r.did).map(r=>t.updateBlockletSpaceGateway({input:{did:e,where:{did:r.did},spaceGateway:{...r}}}))),s}function zo({setLoading:e,refresh:t}={}){var a;const{blocklet:n,actions:{refreshBlocklet:o}}=F(),s=(a=n==null?void 0:n.meta)==null?void 0:a.did,[r,i]=m.useState([]),{api:c}=M();return ae(async()=>{try{if(!s){i([]);return}e==null||e(!0);const{spaceGateways:l}=await c.getBlockletSpaceGateways({input:{did:s}}),u=await Vo({blockletDid:s,nodeApi:c,spaceGateways:l});i(u??[])}catch(l){console.error(l),D.error(ce(l))}finally{e==null||e(!1)}},[s,o,t]),{spaceGateways:r}}function Lt({deps:e,setLoading:t}={deps:[],setLoading:()=>{}}){var c;const{blocklet:n}=F(),[o,s]=m.useState([]),{api:r}=M(),i=Be.debounce(async()=>{try{if(t(!0),!n){s([]);return}const{backups:a}=await r.getBlockletBackups({input:{did:n.meta.did}});s(a??[])}catch(a){console.error(a),D.error(ce(a))}finally{t(!1)}},2e3);return ae(async()=>{i()},[(c=n==null?void 0:n.meta)==null?void 0:c.did].concat(e)),{backups:o}}function $o({appDid:e}){const{backups:t}=Lt(),[n,o]=m.useState({message:"",progress:0,completed:!1}),s=M(),{ws:{useSubscription:r}}=s;return r(be.BlockletEvents.backupProgress,i=>{e===(i==null?void 0:i.appDid)&&o(()=>({...i}))},[e]),m.useEffect(()=>{var i;if(t!=null&&t.length&&Be.isNull((i=t[0])==null?void 0:i.status)){const[c]=t;o(()=>({message:c.message,progress:c.progress,completed:c.progress>=100}))}},[t]),n}function Go({deps:e}={deps:[]}){var r;const{blocklet:t}=F(),{api:n}=M(),[o,s]=m.useState(null);return ae(async()=>{var i;if((i=t==null?void 0:t.meta)!=null&&i.did){const{autoBackup:c}=await n.getAutoBackup({input:{did:t.meta.did}});s(c)}},[(r=t==null?void 0:t.meta)==null?void 0:r.did].concat(e)),o}function qo({deps:e}={deps:[]}){var r;const{blocklet:t}=F(),{api:n}=M(),[o,s]=m.useState(null);return ae(async()=>{var i;if((i=t==null?void 0:t.meta)!=null&&i.did){const{autoCheckUpdate:c}=await n.getAutoCheckUpdate({input:{did:t.meta.did}});s(c)}},[(r=t==null?void 0:t.meta)==null?void 0:r.did].concat(e)),o}const Nt=m.createContext({}),{Provider:Ho,Consumer:bs}=Nt;function Me({children:e}){const{t}=Ae(),{api:n}=M(),{blocklet:o}=F(),[s,r]=m.useState(!1),[i,c]=m.useState(!1),{spaceGateways:a}=zo({refresh:i,setLoading:r}),l=$o({appDid:o==null?void 0:o.appDid}),[u,d]=m.useState(!1),f=m.useMemo(()=>ln(o==null?void 0:o.environments),[o,i,u]),[y,v]=m.useState(!1),{backups:x}=Lt({deps:[l],setLoading:v}),[C,S]=m.useState(a==null?void 0:a.find(h=>h.endpoint===f)),[w,k]=m.useState(!1),j=Go({deps:[w]}),[O,g]=m.useState(!1),I=qo({deps:[O]}),b=()=>{c(h=>!h)},T=()=>{d(h=>!h)},E=()=>{k(h=>!h)},Mt=()=>{g(h=>!h)},Rt=async(h,Re)=>{a.push({...h,loading:!0}),await n.addBlockletSpaceGateway({input:{did:o.meta.did,spaceGateway:h}}),f!==Re&&await n.configBlocklet({input:{did:[o.meta.did],configs:[{key:be.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:Re}]}}),b(),S(h)},Ft=async h=>{h&&(await n.deleteBlockletSpaceGateway({input:{did:o.meta.did,spaceGatewayDid:h==null?void 0:h.did}}),b(),S(h))},Ut=async h=>{await n.updateBlockletSpaceGateway({input:{did:o.meta.did,where:{did:h.did},spaceGateway:h}}),f!==h.endpoint&&await n.configBlocklet({input:{did:[o.meta.did],configs:[{key:be.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:h.endpoint}]}}),D.success(t("storage.spaces.connectedWithName",{name:(h==null?void 0:h.name)??"DID Spaces"})),b()},Vt=h=>(h==null?void 0:h.endpoint)===f,zt=async h=>{await n.updateAutoBackup({input:{did:o.meta.did,autoBackup:h}}),E()},$t=async h=>{await n.updateAutoCheckUpdate({input:{did:o.meta.did,autoCheckUpdate:h}}),Mt()};return p.jsx(Ho,{value:{spaceGateways:a,selectedSpaceGateway:C,addSpaceGateway:Rt,deleteSpaceGateway:Ft,updateSpaceGateway:Ut,refreshSpaceGateways:b,spaceGatewaysLoading:s,spaceGatewayIsSelected:Vt,updateAutoBackup:zt,updateAutoCheckUpdate:$t,autoCheckUpdate:I,backupEndpoint:f,backupProgress:l,backups:x,backupsLoading:y,refreshBackupEndpoint:T,autoBackup:j},children:e})}Me.propTypes={children:Kt.any.isRequired};Me.defaultProps={};function vs(){return m.useContext(Nt)}const Ko=m.lazy(()=>P(()=>import("./overview-y9hXmNWR.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]),import.meta.url)),Qo=m.lazy(()=>P(()=>import("./index-DOvGlVxX.js"),__vite__mapDeps([23,1,2,24,25,26,27,28,29,30,18,19,20,31,32,33,7,34,35,36,37,38,39,40,5,41,42,43,12,44,45,46,47,48,49,6,8,50,51,52,3,53,54,55,56,57,4,58,59]),import.meta.url)),Wo=m.lazy(()=>P(()=>import("./config-navigation-CkEBHj2r.js"),__vite__mapDeps([60,1,2,50,51,61,36,47,48,49,7,29,30,6,8,44,62,63,19,20,18,33,42,5,64,38,65,35,66,21]),import.meta.url)),Jo=m.lazy(()=>P(()=>import("./audit-logs-DPElXT2k.js"),__vite__mapDeps([67,1,2,68,69,12,48,19,20,70,56]),import.meta.url)),Yo=m.lazy(()=>P(()=>import("./index-DDVZbDc5.js"),__vite__mapDeps([71,1,2,9,72,29,30,27,11,73,57,18,19,20,42,5,74,12,75,10,36,76,77,64,78]),import.meta.url)),Xo=m.lazy(()=>P(()=>import("./index-CJBXTfA_.js").then(e=>e.i),__vite__mapDeps([79,1,2,31,9,37,80,73,57,18,19,20,54,55,7,56,50,51,12,49,65,81,82,33,43,75,10,36,77,8,42,5,41,4,22,83]),import.meta.url)),Zo=m.lazy(()=>P(()=>import("./service-CFkt34Sc.js"),__vite__mapDeps([84,1,2,85,55,19,7,20,18,56,61,57,47,48,49,29,30,6,8,86,46,32,87,51,66,64,33,88,9,28]),import.meta.url)),es=m.lazy(()=>P(()=>import("./index-DTCh76Oq.js"),__vite__mapDeps([89,1,2,9,25,26,27,28,29,30,18,19,20,31,90,68,69,91,12,47,48,49,7,6,8,52,43,46,33,85,55,56,61,57,86,32,87,51,66,64,88,41,92,93,76,77,94,45,95,96,83,5,97,98,99,100,101,102,16,74,103,4,104,17,14,105,82,72,11,34,22,42,35,106]),import.meta.url)),ts=m.lazy(()=>P(()=>import("./log-BpKaLgPW.js"),__vite__mapDeps([107,1,2,48,108,29,30,19,109]),import.meta.url)),ns=m.lazy(()=>P(()=>import("./runtime-DfYA5FiE.js"),__vite__mapDeps([110,1,2,54,55,19,7,20,18,56,50,51,57,12,49,5,111,112,34]),import.meta.url)),os=m.lazy(()=>P(()=>import("./traffic-BEhPBbjp.js"),__vite__mapDeps([113,1,2,24,86,32,19,112,18,20,64]),import.meta.url)),ss=m.lazy(()=>P(()=>import("./index-CIh5WVdy.js"),__vite__mapDeps([114,1,2,5,72,29,30,16,105,82,102,18,19,20,4,52,43,49,95,87,39,54,55,7,56,50,51,57,12,33,6,8,47,48,35,42,106]),import.meta.url)),rs=({children:e})=>e;function is(){var g,I;const e=Qt(),{tab:t="overview"}=Ze(),{did:n,blocklet:o,error:s,client:r,actions:{setBlocklet:i,refreshBlocklet:c}}=fn(),{refresh:a}=Wt(),{t:l}=Ae(),u=m.useCallback(()=>p.jsx(Jo,{scope:n}),[n]),d=((g=o==null?void 0:o.environments.find(b=>b.key==="BLOCKLET_APP_URL"))==null?void 0:g.value)||window.location.origin,f=b=>tn(b,d),y=b=>{e(`/blocklets/${n}/${b}`)},v=b=>{b&&i(b),c()},x=!o||pe(o.status)?[]:A.getAppMissingConfigs(o);let C=null;const S=[{label:l("common.overview"),value:"overview"},{breadcrumbsLabel:l("common.components"),label:p.jsx(Jt,{"data-cy":"blocklet-list",color:"error",variant:"dot",invisible:!x.length,children:l("common.components")}),value:"components"}];if(s)C=p.jsxs(p.Fragment,{children:[p.jsx(Ye,{severity:"error",variant:"icon",children:ce(s)}),p.jsx(Xe,{onClick:()=>c(),children:p.jsx("span",{style:{textDecoration:"underline"},children:l("common.retry")})})]});else if(o){const b={overview:p.jsx(Ko,{}),configuration:Qo,navigation:Wo,services:Zo,members:p.jsx(Xo,{type:"blocklet",createPassportSvg:f}),passports:Yo,components:es,"audit-logs":u,logs:ts,runtime:p.jsx(ns,{}),traffic:p.jsx(os,{client:r,did:n}),storage:p.jsx(ss,{})};t==="configuration"&&pe(o.status)&&y("overview"),pe(o.status)||(S.push({label:l("common.members"),value:"members"}),S.push({label:l("common.passport"),value:"passports"}),S.push({label:l("common.configuration"),value:"configuration"})),S.push({label:l("common.auditLogs"),value:"audit-logs"}),o&&((I=o.children)!=null&&I.length)&&o.structVersion===z.APP_STRUCT_VERSION&&S.push({label:l("common.logs"),value:"logs"}),S.push({label:l("common.configNavigation"),value:"navigation"}),S.push({label:l("common.runtime"),value:"runtime"}),S.push({label:l("common.traffic"),value:"traffic"}),S.push({label:l("common.storage"),value:"storage"}),A.getBlockletServices(o).length&&S.splice(2,0,{label:l("blocklet.services"),value:"services"});const E=b[t]||b.overview;C=p.jsxs(sn,{type:"components",children:[!A.isExternalBlocklet(o)&&p.jsx(nn,{tabs:S,current:t,onChange:y,scrollButtons:"auto"}),p.jsx("div",{className:"page-content",children:p.jsx(m.Suspense,{fallback:p.jsx(Fe,{relative:"parent",children:p.jsx(Ue,{})}),children:m.isValidElement(E)?E:p.jsx(E,{blocklet:o,onUpdate:v,createPassportSvg:f})})})]})}else C=p.jsx(Fe,{relative:"parent",children:p.jsx(Ue,{})});const w=()=>{},k=({action:b,error:T})=>{if(T){D.error(T.message);return}b==="remove"?(a(),e("/blocklets")):c()},j=S.find(b=>b.value===t),O=o?dn:rs;return p.jsx(O,{teamDid:n,children:p.jsxs(as,{children:[p.jsxs(pn,{separator:"›","aria-label":"breadcrumb",className:"page-breadcrumb",children:[p.jsx(Yt,{color:"textSecondary",to:"/blocklets",children:l("common.blocklets")}),p.jsx(Xt,{to:`/blocklets/${n}/overview`,style:b=>b?{color:"inherit"}:{},children:l("common.detail")}),p.jsx(he,{color:"textSecondary",children:j?j.breadcrumbsLabel||j.label:""})]}),p.jsxs(he,{component:"div",className:"page-header",children:[p.jsxs(he,{component:"h2",variant:"h4",className:"page-title",color:"textPrimary",children:[o?p.jsx(cn,{blocklet:o,style:{marginRight:16}}):null,o?p.jsxs(ne,{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1,children:[p.jsx(ne,{children:A.getDisplayName(o)}),(o==null?void 0:o.status)!=="unknown"&&p.jsx(on,{size:"12px",status:o.status,source:o.source,progress:o.progress})]}):`${l("common.blocklet")} ${l("common.detail")}`]}),p.jsx(Zt,{permission:"mutate_blocklets",children:!!o&&!A.isExternalBlocklet(o)&&p.jsx(rn,{className:"page-actions",blocklet:o,onStart:w,onComplete:k,variant:"group"})})]}),p.jsx(Dt,{}),C]})})}function cs(){const{did:e}=Ze();return e?p.jsx(un,{did:e,children:p.jsx(Me,{children:p.jsx(is,{})})}):null}const as=en.main`
|
|
13
13
|
.page-header {
|
|
14
14
|
display: flex;
|
|
15
15
|
justify-content: space-between;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as _}from"./codemirror.es-
|
|
1
|
+
import{a as _}from"./codemirror.es-CF4ao-W3.js";import"./index-DgFCpT_-.js";import"./index-DW_sEbOX.js";var O=Object.defineProperty,m=(g,v)=>O(g,"name",{value:v,configurable:!0});function N(g,v){return v.forEach(function(e){e&&typeof e!="string"&&!Array.isArray(e)&&Object.keys(e).forEach(function(c){if(c!=="default"&&!(c in g)){var d=Object.getOwnPropertyDescriptor(e,c);Object.defineProperty(g,c,d.get?d:{enumerable:!0,get:function(){return e[c]}})}})}),Object.freeze(g)}m(N,"_mergeNamespaces");var b={exports:{}};(function(g,v){(function(e){e(_.exports)})(function(e){function c(f,u,n){var o=f.getWrapperElement(),l;return l=o.appendChild(document.createElement("div")),n?l.className="CodeMirror-dialog CodeMirror-dialog-bottom":l.className="CodeMirror-dialog CodeMirror-dialog-top",typeof u=="string"?l.innerHTML=u:l.appendChild(u),e.addClass(o,"dialog-opened"),l}m(c,"dialogDiv");function d(f,u){f.state.currentNotificationClose&&f.state.currentNotificationClose(),f.state.currentNotificationClose=u}m(d,"closeNotification"),e.defineExtension("openDialog",function(f,u,n){n||(n={}),d(this,null);var o=c(this,f,n.bottom),l=!1,r=this;function i(t){if(typeof t=="string")a.value=t;else{if(l)return;l=!0,e.rmClass(o.parentNode,"dialog-opened"),o.parentNode.removeChild(o),r.focus(),n.onClose&&n.onClose(o)}}m(i,"close");var a=o.getElementsByTagName("input")[0],s;return a?(a.focus(),n.value&&(a.value=n.value,n.selectValueOnOpen!==!1&&a.select()),n.onInput&&e.on(a,"input",function(t){n.onInput(t,a.value,i)}),n.onKeyUp&&e.on(a,"keyup",function(t){n.onKeyUp(t,a.value,i)}),e.on(a,"keydown",function(t){n&&n.onKeyDown&&n.onKeyDown(t,a.value,i)||((t.keyCode==27||n.closeOnEnter!==!1&&t.keyCode==13)&&(a.blur(),e.e_stop(t),i()),t.keyCode==13&&u(a.value,t))}),n.closeOnBlur!==!1&&e.on(o,"focusout",function(t){t.relatedTarget!==null&&i()})):(s=o.getElementsByTagName("button")[0])&&(e.on(s,"click",function(){i(),r.focus()}),n.closeOnBlur!==!1&&e.on(s,"blur",i),s.focus()),i}),e.defineExtension("openConfirm",function(f,u,n){d(this,null);var o=c(this,f,n&&n.bottom),l=o.getElementsByTagName("button"),r=!1,i=this,a=1;function s(){r||(r=!0,e.rmClass(o.parentNode,"dialog-opened"),o.parentNode.removeChild(o),i.focus())}m(s,"close"),l[0].focus();for(var t=0;t<l.length;++t){var p=l[t];(function(y){e.on(p,"click",function(h){e.e_preventDefault(h),s(),y&&y(i)})})(u[t]),e.on(p,"blur",function(){--a,setTimeout(function(){a<=0&&s()},200)}),e.on(p,"focus",function(){++a})}}),e.defineExtension("openNotification",function(f,u){d(this,i);var n=c(this,f,u&&u.bottom),o=!1,l,r=u&&typeof u.duration<"u"?u.duration:5e3;function i(){o||(o=!0,clearTimeout(l),e.rmClass(n.parentNode,"dialog-opened"),n.parentNode.removeChild(n))}return m(i,"close"),e.on(n,"click",function(a){e.e_preventDefault(a),i()}),r&&(l=setTimeout(i,r)),i})})})();var E=b.exports,j=Object.freeze(N({__proto__:null,[Symbol.toStringTag]:"Module",default:E},[b.exports]));export{b as a,j as d};
|