@abtnode/webapp 1.17.7-beta-20251230-041316-624cafaf → 1.17.7-beta-20251230-120126-2836fe04

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (195) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{AdapterDayjs-BBi3P2IC.js → AdapterDayjs-D4yhIBjp.js} +1 -1
  4. package/dist/assets/{Add-DBDPvM2L.js → Add-BqehlncY.js} +1 -1
  5. package/dist/assets/ArrowDropDown-Cc-RKnnq.js +1 -0
  6. package/dist/assets/{Autocomplete-6CVDh-bw.js → Autocomplete-DQwU_oez.js} +1 -1
  7. package/dist/assets/{Breadcrumbs-CIhr-IBH.js → Breadcrumbs-DWjoGi7V.js} +1 -1
  8. package/dist/assets/{ButtonGroup-Um1mBtyg.js → ButtonGroup-CiscHb2s.js} +1 -1
  9. package/dist/assets/{CSSTransition-BcU1vShi.js → CSSTransition-R4tGAk7r.js} +1 -1
  10. package/dist/assets/{CallMerge-CqN4JiFM.js → CallMerge-BeazH3jg.js} +1 -1
  11. package/dist/assets/{CardContent-C16B5Bpa.js → CardContent-C5NwNVow.js} +1 -1
  12. package/dist/assets/{ChevronLeft-Ds4qWfjb.js → ChevronLeft-BaZj3l6K.js} +1 -1
  13. package/dist/assets/{ChevronRight-BFqUOmvp.js → ChevronRight-CpLm1bKY.js} +1 -1
  14. package/dist/assets/{Clear-L4-iFi83.js → Clear-siFOH-um.js} +1 -1
  15. package/dist/assets/{Delete-DVp4fJb1.js → Delete-8zGU1uok.js} +1 -1
  16. package/dist/assets/{DeleteOutline-CDxyWfLx.js → DeleteOutline-BiwjsR6p.js} +1 -1
  17. package/dist/assets/{Done-D7TYY_5X.js → Done-DzBppTPg.js} +1 -1
  18. package/dist/assets/{Edit-DYn1CF5Y.js → Edit-CKpLr219.js} +1 -1
  19. package/dist/assets/{ErrorOutline-By74cLGJ.js → ErrorOutline-B0v25XAB.js} +1 -1
  20. package/dist/assets/{FilterList-Czj4Os71.js → FilterList-Be5ZzrNM.js} +1 -1
  21. package/dist/assets/{Google-DZPfsfDE.js → Google-BB2TEIzp.js} +1 -1
  22. package/dist/assets/{HelpOutline-DS85eUTc.js → HelpOutline-D4ZrboH1.js} +1 -1
  23. package/dist/assets/{KeyboardArrowDown-C53dgTNk.js → KeyboardArrowDown-DdCuxSq1.js} +1 -1
  24. package/dist/assets/{Launch-l1uaKrAG.js → Launch-BiV6tbTp.js} +1 -1
  25. package/dist/assets/{Link-Bs8vi6ND.js → Link-Cogxu9aB.js} +1 -1
  26. package/dist/assets/{ListItemButton-KbcDtzXD.js → ListItemButton-C9pXyehQ.js} +1 -1
  27. package/dist/assets/{ListSubheader-C-Lxj5FB.js → ListSubheader-I1pRAfr2.js} +1 -1
  28. package/dist/assets/{LoadingButton-CZNIV9Ok.js → LoadingButton-BCz99YbN.js} +1 -1
  29. package/dist/assets/{MoreVert-DaM6pG5s.js → MoreVert-BOGr0n7e.js} +1 -1
  30. package/dist/assets/{OpenInNew-BQeSMHR-.js → OpenInNew-CCra_7I0.js} +1 -1
  31. package/dist/assets/{Refresh-BJnu5a0L.js → Refresh-EilcFp8b.js} +1 -1
  32. package/dist/assets/{Replay-BV6q004T.js → Replay-N-tBrT6I.js} +1 -1
  33. package/dist/assets/{Search-CApGhXwm.js → Search-BwAHZ5GK.js} +1 -1
  34. package/dist/assets/{Stepper-B2_oAcOZ.js → Stepper-Bn1MKAsJ.js} +1 -1
  35. package/dist/assets/TableSearch-BFj05c9C.js +51 -0
  36. package/dist/assets/{ToggleButtonGroup-t3tLzS74.js → ToggleButtonGroup-npFh1mr6.js} +1 -1
  37. package/dist/assets/{UnfoldMore-D2Y42T3n.js → UnfoldMore-DVoycFqc.js} +1 -1
  38. package/dist/assets/{Verified-QiB22jgm.js → Verified-CWEd1DVE.js} +1 -1
  39. package/dist/assets/{VerifiedUser-kPobsDlg.js → VerifiedUser-CigB8Fdv.js} +1 -1
  40. package/dist/assets/{ViewList-Ceb1JHIv.js → ViewList-D7TqVQ4P.js} +1 -1
  41. package/dist/assets/{_createAggregator-g-PBWDTI.js → _createAggregator-CQ-mLfMP.js} +1 -1
  42. package/dist/assets/{actions-BCMsejAj.js → actions-CDHomwcW.js} +2 -2
  43. package/dist/assets/{actions-Dp-VL6XB.js → actions-GoWYDb6F.js} +1 -1
  44. package/dist/assets/{agreement-Bun3wUY-.js → agreement-BhNIuQec.js} +3 -3
  45. package/dist/assets/api-CSBvUv9A.js +1 -0
  46. package/dist/assets/{appearance-yP6FtjZ0.js → appearance-Bux4sdxO.js} +1 -1
  47. package/dist/assets/{audit-logs-bPLYn_cc.js → audit-logs-CpckHt6s.js} +1 -1
  48. package/dist/assets/{base-chart-BZha7l7D.js → base-chart-CxDa_CaZ.js} +1 -1
  49. package/dist/assets/{blocklet-Nw4kpsVs.js → blocklet-D4otp8nH.js} +1 -1
  50. package/dist/assets/{chain-WdOor_5_.js → chain-CfwM2JWo.js} +1 -1
  51. package/dist/assets/{click-to-copy-DjkhfhsV.js → click-to-copy-CcQkmf0B.js} +1 -1
  52. package/dist/assets/cloneDeep-B3VWXnFc.js +1 -0
  53. package/dist/assets/{config-navigation-Pdv-g1jO.js → config-navigation-DVGyxdD_.js} +3 -3
  54. package/dist/assets/{connect-to-D2aJnmIt.js → connect-to-CbHwvZLx.js} +3 -3
  55. package/dist/assets/{cssMode-CbVfvomN.js → cssMode-CtObRSSW.js} +1 -1
  56. package/dist/assets/{delete-confirm-DCHvoTQs.js → delete-confirm-DfVCfmx_.js} +1 -1
  57. package/dist/assets/{depsEqual-LiU_ATMs.js → depsEqual-BF3eoqLy.js} +1 -1
  58. package/dist/assets/{detail-B-lIb4O1.js → detail-DYfAWDl1.js} +3 -3
  59. package/dist/assets/domains-CC4Opwi7.js +28 -0
  60. package/dist/assets/{download-DHuOHOVu.js → download-scJq5nd3.js} +1 -1
  61. package/dist/assets/{edit.svg-D0_FvYeH.js → edit.svg-BgAMrWjM.js} +1 -1
  62. package/dist/assets/emotion-cache.browser.esm-DyzCXqsA.js +1 -0
  63. package/dist/assets/engine-KybwGdMh.js +1 -0
  64. package/dist/assets/{freemarker2-Dbd2dz2J.js → freemarker2-D5TW5Eft.js} +1 -1
  65. package/dist/assets/{get-safe-url-DDm_hPj1.js → get-safe-url-HOLWsAs0.js} +1 -1
  66. package/dist/assets/getValidReactChildren-Ck9KmKnh.js +1 -0
  67. package/dist/assets/{graphqlMode-BNREvohj.js → graphqlMode-Bblq7qR7.js} +2 -2
  68. package/dist/assets/{handlebars-Ce_TkpEQ.js → handlebars-WxLGbhWH.js} +1 -1
  69. package/dist/assets/{html-CUmDiv7k.js → html-DuZCuVkX.js} +1 -1
  70. package/dist/assets/{html-title-D3mv3IQk.js → html-title-CifiMfjt.js} +1 -1
  71. package/dist/assets/{htmlMode-Ca_TsxJH.js → htmlMode-0w5arQMe.js} +1 -1
  72. package/dist/assets/{iframe-Dt-xbP5x.js → iframe-Dq0hkTrq.js} +1 -1
  73. package/dist/assets/{index-B2WmX6Fx.js → index-B24ZOg0s.js} +8 -8
  74. package/dist/assets/{index-C8CmKnU4.js → index-B3lwT4Ol.js} +2 -2
  75. package/dist/assets/{index-CTWQgRaZ.js → index-BD7A3_Da.js} +1 -1
  76. package/dist/assets/{index-BLI3C2o7.js → index-BGcMePQ8.js} +1 -1
  77. package/dist/assets/{index-CAA1AdyJ.js → index-BPA__Xw6.js} +2 -2
  78. package/dist/assets/index-BcmOVFqY.js +1 -0
  79. package/dist/assets/index-BnXKKyQZ.js +155 -0
  80. package/dist/assets/{index-CQogNORn.js → index-C8Yc1xhR.js} +13 -13
  81. package/dist/assets/{index-B11n09kE.js → index-C9Doh9s3.js} +1 -1
  82. package/dist/assets/{index-CODEE-RB.js → index-CFu4UTTj.js} +1 -1
  83. package/dist/assets/{index-D0-rZXcm.js → index-CGzi7zV_.js} +1 -1
  84. package/dist/assets/{index-Ci1hoD9j.js → index-CH_WzJ6f.js} +2 -2
  85. package/dist/assets/{index-WbuPRmjd.js → index-CIAqUMHH.js} +1 -1
  86. package/dist/assets/{index-IWOqJkOB.js → index-CNVrqxCI.js} +1 -1
  87. package/dist/assets/{index-BHAdZ1FZ.js → index-COhyQV8C.js} +2 -2
  88. package/dist/assets/{index-DT5BIL2_.js → index-CXTibO7-.js} +1 -1
  89. package/dist/assets/{index-umVLVZjs.js → index-CbKLDJsb.js} +1 -1
  90. package/dist/assets/{index-Dtkcfmzb.js → index-Ci0V4E2u.js} +11 -11
  91. package/dist/assets/{index-DtJVzdtH.js → index-CrQaw0BF.js} +2 -2
  92. package/dist/assets/{index-2VA5XrmO.js → index-Cs8W6nmK.js} +11 -11
  93. package/dist/assets/index-CzQzijaC.js +1 -0
  94. package/dist/assets/index-D2gNdot7.js +79 -0
  95. package/dist/assets/{index-CQYzPG_n.js → index-D57ncOaj.js} +1 -1
  96. package/dist/assets/{index-CypG4Dbq.js → index-D93jIJAg.js} +1 -1
  97. package/dist/assets/{index-jT3H-jhB.js → index-DAMZQWKn.js} +1 -1
  98. package/dist/assets/index-DBJqSNjU.js +1 -0
  99. package/dist/assets/{index-CvZItgju.js → index-DDG-ZEI-.js} +1 -1
  100. package/dist/assets/{index-BQNKAwfZ.js → index-DN9WepcN.js} +1 -1
  101. package/dist/assets/{index-B0O0JwRT.js → index-DPs8sVol.js} +1 -1
  102. package/dist/assets/index-DVOJBn33.js +20 -0
  103. package/dist/assets/{index-CR1U7OM5.js → index-DWm5KlVP.js} +1 -1
  104. package/dist/assets/{index-CdxsHt3r.js → index-DYW_sHYx.js} +3 -3
  105. package/dist/assets/index-DhXU_Vz9.js +1 -0
  106. package/dist/assets/{index-KI2LGzUW.js → index-DidKpbc0.js} +1 -1
  107. package/dist/assets/{index-z-tbDeE3.js → index-DyIPXbau.js} +1 -1
  108. package/dist/assets/{index-Dt9htCod.js → index-DzQWOvtr.js} +3 -3
  109. package/dist/assets/{index-CADLzzXJ.js → index-OtVuze_0.js} +3 -3
  110. package/dist/assets/{index-DJ9zSKl1.js → index-ZCO60mrW.js} +1 -1
  111. package/dist/assets/{index-CL2N86sI.js → index-_-mWQ6ov.js} +12 -12
  112. package/dist/assets/{index-DQItZ4UM.js → index-b78VjA-Y.js} +1 -1
  113. package/dist/assets/{index-BxX_nqnW.js → index-nvPO7sCa.js} +2 -2
  114. package/dist/assets/{index-kRFEBldM.js → index-rsjiYKAZ.js} +2 -2
  115. package/dist/assets/{index-D319vBae.js → index-wIt3UxPD.js} +9 -9
  116. package/dist/assets/{index-BsjY45Cd.js → index-yQeeHJJ2.js} +1 -1
  117. package/dist/assets/{index.esm-Zck39Kvz.js → index.esm-B06DCVM7.js} +1 -1
  118. package/dist/assets/install-from-url-B0gehZWB.js +1 -0
  119. package/dist/assets/{invitation-4F28SRYz.js → invitation-DjNwS-Ha.js} +3 -3
  120. package/dist/assets/{is-path-prefix-equal-BJMXSv43.js → is-path-prefix-equal-Dr7EUhi7.js} +1 -1
  121. package/dist/assets/{item-C1JxTPT2.js → item-Bojg28Ma.js} +6 -6
  122. package/dist/assets/{javascript-B0m7UVIe.js → javascript-xUySVVaa.js} +1 -1
  123. package/dist/assets/{jsonMode-CgwGbFre.js → jsonMode-aXjE405B.js} +1 -1
  124. package/dist/assets/{liquid-BZyWy1Tr.js → liquid-CqO0loMD.js} +1 -1
  125. package/dist/assets/{list-header-BZRIF_iO.js → list-header-D5a_5edu.js} +1 -1
  126. package/dist/assets/{lock.svg-Ba4McgFD.js → lock.svg-Bnm1mppT.js} +1 -1
  127. package/dist/assets/{log-BFB-zvPt.js → log-Dh6sGyEk.js} +1 -1
  128. package/dist/assets/{lottie-react.esm-CGSms1Pf.js → lottie-react.esm-uLWIPZ8N.js} +1 -1
  129. package/dist/assets/{mdx-BRVCuIrx.js → mdx-gAWRd386.js} +1 -1
  130. package/dist/assets/{memory-B2j_d87p.js → memory-BwHtkqHB.js} +1 -1
  131. package/dist/assets/{metric-DpvjSsZq.js → metric-Q_9BNbHj.js} +1 -1
  132. package/dist/assets/omit-DeumLxdH.js +1 -0
  133. package/dist/assets/overview-DZjSoaFM.js +13 -0
  134. package/dist/assets/{permission-DTFazP7s.js → permission-B8q324ya.js} +1 -1
  135. package/dist/assets/{preference-DYVCo0KF.js → preference-DjOBLR-v.js} +6 -6
  136. package/dist/assets/{python-B-wSNZ_T.js → python-DnlpLwjq.js} +1 -1
  137. package/dist/assets/{raf-schd.esm-B7_MlDzu.js → raf-schd.esm-B2LNukSh.js} +1 -1
  138. package/dist/assets/{razor-BR_HjGgi.js → razor-JAsAlMne.js} +1 -1
  139. package/dist/assets/{rotate-session-key-Bz5QE7gB.js → rotate-session-key-BFiVoa6I.js} +1 -1
  140. package/dist/assets/{runtime-DM0B8rA4.js → runtime-BB_E-r_A.js} +1 -1
  141. package/dist/assets/schema-DC2ou5i0.js +1 -0
  142. package/dist/assets/sdk-DZJdUnPV.js +1 -0
  143. package/dist/assets/{service-DkoTQaTk.js → service-DLwgL4rt.js} +1 -1
  144. package/dist/assets/{shorten-label-BR48Ofqe.js → shorten-label-CybgQDYs.js} +1 -1
  145. package/dist/assets/{simple-select-D38wTw_o.js → simple-select-DJn1UT5H.js} +1 -1
  146. package/dist/assets/{spaces-YFYDpL5l.js → spaces-DBXblECR.js} +1 -1
  147. package/dist/assets/{status-B_ZSV6JY.js → status-CW0QYGeF.js} +1 -1
  148. package/dist/assets/{status-BTCwUhiG.js → status-DG36cpK9.js} +1 -1
  149. package/dist/assets/{switch-control-Fq47wOrt.js → switch-control-Bzy_oqas.js} +1 -1
  150. package/dist/assets/{table-icons-DYQRHdVu.js → table-icons-DKoPQwjv.js} +1 -1
  151. package/dist/assets/{team-DKJfzzKD.js → team-DLwXXgYX.js} +1 -1
  152. package/dist/assets/{toLower-62VYhzjn.js → toLower-CXuGXHcC.js} +1 -1
  153. package/dist/assets/toUpper-DN59t43l.js +1 -0
  154. package/dist/assets/traffic-DSdpsMku.js +1 -0
  155. package/dist/assets/{tsMode-CxSxmJBQ.js → tsMode-Dh0Ri32L.js} +1 -1
  156. package/dist/assets/{typescript-Dnu6Xv3U.js → typescript-D316NgIh.js} +1 -1
  157. package/dist/assets/{url-evaluation-Cf4MPEtF.js → url-evaluation-DMCBEvQj.js} +1 -1
  158. package/dist/assets/{url-join-P8kMCiOB.js → url-join-DoFkjCNr.js} +1 -1
  159. package/dist/assets/{use-mobile-BnTDQjTV.js → use-mobile-BGG1Yti5.js} +1 -1
  160. package/dist/assets/{use-mobile-D1KGwOlr.js → use-mobile-DqSNKVo1.js} +1 -1
  161. package/dist/assets/{useAsync-SwSlukzF.js → useAsync-ByRujkOO.js} +1 -1
  162. package/dist/assets/{useAsyncRetry-BQEwzyM4.js → useAsyncRetry-CLcTront.js} +1 -1
  163. package/dist/assets/{useLocalStorage-41az-hAK.js → useLocalStorage-DjnxkTrj.js} +1 -1
  164. package/dist/assets/{useThemeProps-Cw6i_sME.js → useThemeProps-CFIloaX5.js} +1 -1
  165. package/dist/assets/{util-C9NPDRP-.js → util-DvscRj0S.js} +1 -1
  166. package/dist/assets/{wait-container-GLOlfScg.js → wait-container-BPFMrDUL.js} +3 -3
  167. package/dist/assets/{without-wallet-rfYvx_29.js → without-wallet-D2bQnWJt.js} +1 -1
  168. package/dist/assets/wrap-locale-BbIFvnmJ.js +1 -0
  169. package/dist/assets/{xml-D06mM15g.js → xml-BGgxhX96.js} +1 -1
  170. package/dist/assets/{yaml-DrMeEOdm.js → yaml-9hmveKGV.js} +1 -1
  171. package/dist/index.html +1 -1
  172. package/package.json +1 -1
  173. package/dist/assets/ArrowDropDown-CqYw-eY9.js +0 -1
  174. package/dist/assets/TableSearch-CKjIHAce.js +0 -51
  175. package/dist/assets/api-DDSUcMPT.js +0 -1
  176. package/dist/assets/cloneDeep-Bl8wZyrm.js +0 -1
  177. package/dist/assets/domains-CeCMQUBm.js +0 -28
  178. package/dist/assets/emotion-cache.browser.esm-D1-P5QGD.js +0 -1
  179. package/dist/assets/engine-D8Acg7DY.js +0 -1
  180. package/dist/assets/getValidReactChildren-DpcxJbs9.js +0 -1
  181. package/dist/assets/index-2lzs7bat.js +0 -1
  182. package/dist/assets/index-BPuMob2k.js +0 -1
  183. package/dist/assets/index-Be8ehpQE.js +0 -1
  184. package/dist/assets/index-CKHOafPq.js +0 -79
  185. package/dist/assets/index-CaDcvTD7.js +0 -155
  186. package/dist/assets/index-DdYx-VNK.js +0 -1
  187. package/dist/assets/index-DjQqmpzQ.js +0 -20
  188. package/dist/assets/install-from-url-BXftFn4t.js +0 -1
  189. package/dist/assets/omit-CyTnrDNo.js +0 -1
  190. package/dist/assets/overview-DkMLRtwO.js +0 -13
  191. package/dist/assets/schema-BKPaewSy.js +0 -1
  192. package/dist/assets/sdk-CXClyXm7.js +0 -1
  193. package/dist/assets/toUpper-CBmQ5f7q.js +0 -1
  194. package/dist/assets/traffic-Dh_MwZxy.js +0 -1
  195. package/dist/assets/wrap-locale-C-Q-ES8F.js +0 -1
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./overview-DkMLRtwO.js","./index-DtJVzdtH.js","./index-DGkT7afN.css","./HelpOutline-DS85eUTc.js","./index-BojVbZw0.js","./index-jT3H-jhB.js","./blocklet-Nw4kpsVs.js","./team-DKJfzzKD.js","./url-evaluation-Cf4MPEtF.js","./status-BTCwUhiG.js","./index-2lzs7bat.js","./ErrorOutline-By74cLGJ.js","./omit-CyTnrDNo.js","./metric-DpvjSsZq.js","./CardContent-C16B5Bpa.js","./spaces-YFYDpL5l.js","./api-DDSUcMPT.js","./domains-CeCMQUBm.js","./useAsync-SwSlukzF.js","./permission-DTFazP7s.js","./Delete-DVp4fJb1.js","./actions-Dp-VL6XB.js","./delete-confirm-DCHvoTQs.js","./click-to-copy-DjkhfhsV.js","./status-B_ZSV6JY.js","./VerifiedUser-kPobsDlg.js","./Add-DBDPvM2L.js","./CallMerge-CqN4JiFM.js","./toLower-62VYhzjn.js","./use-mobile-D1KGwOlr.js","./util-C9NPDRP-.js","./is-path-prefix-equal-BJMXSv43.js","./engine-D8Acg7DY.js","./OpenInNew-BQeSMHR-.js","./LoadingButton-CZNIV9Ok.js","./index-CL2N86sI.js","./actions-BCMsejAj.js","./useLocalStorage-41az-hAK.js","./MoreVert-DaM6pG5s.js","./DeleteOutline-CDxyWfLx.js","./get-safe-url-DDm_hPj1.js","./ButtonGroup-Um1mBtyg.js","./getValidReactChildren-DpcxJbs9.js","./ChevronRight-BFqUOmvp.js","./html-title-D3mv3IQk.js","./preference-DYVCo0KF.js","./index-BLI3C2o7.js","./Done-D7TYY_5X.js","./edit.svg-D0_FvYeH.js","./ArrowDropDown-CqYw-eY9.js","./index-CODEE-RB.js","./iframe-Dt-xbP5x.js","./Autocomplete-6CVDh-bw.js","./ListSubheader-C-Lxj5FB.js","./rotate-session-key-Bz5QE7gB.js","./visuallyHidden-Dan1xhjv.js","./chain-WdOor_5_.js","./switch-control-Fq47wOrt.js","./index.esm-Zck39Kvz.js","./index-CR1U7OM5.js","./redux-DfszZyTl.js","./typeof-QjJsDpFa.js","./simple-select-D38wTw_o.js","./index-IWOqJkOB.js","./FilterList-Czj4Os71.js","./CSSTransition-BcU1vShi.js","./emotion-cache.browser.esm-D1-P5QGD.js","./depsEqual-LiU_ATMs.js","./TableSearch-CKjIHAce.js","./Search-CApGhXwm.js","./Clear-L4-iFi83.js","./use-mobile-BnTDQjTV.js","./appearance-yP6FtjZ0.js","./config-navigation-Pdv-g1jO.js","./cloneDeep-Bl8wZyrm.js","./_createAggregator-g-PBWDTI.js","./raf-schd.esm-B7_MlDzu.js","./ListItemButton-KbcDtzXD.js","./index-DdYx-VNK.js","./KeyboardArrowDown-C53dgTNk.js","./index-WbuPRmjd.js","./index-BsjY45Cd.js","./shorten-label-BR48Ofqe.js","./Replay-BV6q004T.js","./Refresh-BJnu5a0L.js","./traffic-Dh_MwZxy.js","./ChevronLeft-Ds4qWfjb.js","./index-DBii9-f-.js","./base-chart-BZha7l7D.js","./index-B0O0JwRT.js","./AdapterDayjs-BBi3P2IC.js","./useThemeProps-Cw6i_sME.js","./audit-logs-bPLYn_cc.js","./index-DQItZ4UM.js","./decode-DPztD6kB.js","./index-gnjjKJuC.css","./UnfoldMore-D2Y42T3n.js","./index-Dtkcfmzb.js","./ua-parser-DP5omx3I.js","./index-CypG4Dbq.js","./Google-DZPfsfDE.js","./list-header-BZRIF_iO.js","./ToggleButtonGroup-t3tLzS74.js","./lock.svg-Ba4McgFD.js","./index-DT5BIL2_.js","./ViewList-Ceb1JHIv.js","./Verified-QiB22jgm.js","./index-z-tbDeE3.js","./sdk-CXClyXm7.js","./service-DkoTQaTk.js","./table-icons-DYQRHdVu.js","./Edit-DYn1CF5Y.js","./index-Dt9htCod.js","./Link-Bs8vi6ND.js","./item-C1JxTPT2.js","./Launch-l1uaKrAG.js","./item-G0iZE90Q.css","./index-Ci1hoD9j.js","./url-join-P8kMCiOB.js","./connect-to-D2aJnmIt.js","./index-DRYJ0xIl.js","./agreement-Bun3wUY-.js","./install-from-url-BXftFn4t.js","./without-wallet-rfYvx_29.js","./Stepper-B2_oAcOZ.js","./toUpper-CBmQ5f7q.js","./log-BFB-zvPt.js","./download-DHuOHOVu.js","./runtime-DM0B8rA4.js","./memory-B2j_d87p.js","./index-BHAdZ1FZ.js"])))=>i.map(i=>d[i]);
2
- import{V as He,n as qe,bo as Ct,r as b,aH as F,j as d,U as Qe,J as Z,v as Ge,w as Tt,i as j,bD as jt,H as J,X as Ke,bn as We,A as Pt,u as At,d as Dt,bE as Ot,bF as Lt,bG as Ae,bH as Bt,bI as Mt,Y as De,C as Oe,F as Rt,bJ as Nt,T as ue,I as Ft,bK as I,s as Vt}from"./index-DtJVzdtH.js";import{T as zt,u as $t}from"./html-title-D3mv3IQk.js";import{B as Ut}from"./status-B_ZSV6JY.js";import{D as Ht,B as qt}from"./actions-BCMsejAj.js";import{u as Qt}from"./blocklet-Nw4kpsVs.js";import{p as Gt}from"./index-kRFEBldM.js";import{B as Kt,a as Wt,T as Jt}from"./team-DKJfzzKD.js";import{P as Xt}from"./permission-DTFazP7s.js";import{B as Yt}from"./Breadcrumbs-CIhr-IBH.js";import"./useLocalStorage-41az-hAK.js";import"./MoreVert-DaM6pG5s.js";import"./DeleteOutline-CDxyWfLx.js";import"./get-safe-url-DDm_hPj1.js";import"./ButtonGroup-Um1mBtyg.js";import"./getValidReactChildren-DpcxJbs9.js";import"./url-evaluation-Cf4MPEtF.js";/**
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./overview-DZjSoaFM.js","./index-CrQaw0BF.js","./index-DGkT7afN.css","./HelpOutline-D4ZrboH1.js","./index-BojVbZw0.js","./index-DAMZQWKn.js","./blocklet-D4otp8nH.js","./team-DLwXXgYX.js","./url-evaluation-DMCBEvQj.js","./status-DG36cpK9.js","./index-BcmOVFqY.js","./ErrorOutline-B0v25XAB.js","./omit-DeumLxdH.js","./metric-Q_9BNbHj.js","./CardContent-C5NwNVow.js","./spaces-DBXblECR.js","./api-CSBvUv9A.js","./domains-CC4Opwi7.js","./useAsync-ByRujkOO.js","./permission-B8q324ya.js","./Delete-8zGU1uok.js","./actions-GoWYDb6F.js","./delete-confirm-DfVCfmx_.js","./click-to-copy-CcQkmf0B.js","./status-CW0QYGeF.js","./VerifiedUser-CigB8Fdv.js","./Add-BqehlncY.js","./CallMerge-BeazH3jg.js","./toLower-CXuGXHcC.js","./use-mobile-DqSNKVo1.js","./util-DvscRj0S.js","./is-path-prefix-equal-Dr7EUhi7.js","./engine-KybwGdMh.js","./OpenInNew-CCra_7I0.js","./LoadingButton-BCz99YbN.js","./index-_-mWQ6ov.js","./actions-CDHomwcW.js","./useLocalStorage-DjnxkTrj.js","./MoreVert-BOGr0n7e.js","./DeleteOutline-BiwjsR6p.js","./get-safe-url-HOLWsAs0.js","./ButtonGroup-CiscHb2s.js","./getValidReactChildren-Ck9KmKnh.js","./ChevronRight-CpLm1bKY.js","./html-title-CifiMfjt.js","./preference-DjOBLR-v.js","./index-BGcMePQ8.js","./Done-DzBppTPg.js","./edit.svg-BgAMrWjM.js","./ArrowDropDown-Cc-RKnnq.js","./index-CFu4UTTj.js","./iframe-Dq0hkTrq.js","./Autocomplete-DQwU_oez.js","./ListSubheader-I1pRAfr2.js","./rotate-session-key-BFiVoa6I.js","./visuallyHidden-Dan1xhjv.js","./chain-CfwM2JWo.js","./switch-control-Bzy_oqas.js","./index.esm-B06DCVM7.js","./index-DWm5KlVP.js","./redux-DfszZyTl.js","./typeof-QjJsDpFa.js","./simple-select-DJn1UT5H.js","./index-CNVrqxCI.js","./FilterList-Be5ZzrNM.js","./CSSTransition-R4tGAk7r.js","./emotion-cache.browser.esm-DyzCXqsA.js","./depsEqual-BF3eoqLy.js","./TableSearch-BFj05c9C.js","./Search-BwAHZ5GK.js","./Clear-siFOH-um.js","./use-mobile-BGG1Yti5.js","./appearance-Bux4sdxO.js","./config-navigation-DVGyxdD_.js","./cloneDeep-B3VWXnFc.js","./_createAggregator-CQ-mLfMP.js","./raf-schd.esm-B2LNukSh.js","./ListItemButton-C9pXyehQ.js","./index-DBJqSNjU.js","./KeyboardArrowDown-DdCuxSq1.js","./index-CIAqUMHH.js","./index-yQeeHJJ2.js","./shorten-label-CybgQDYs.js","./Replay-N-tBrT6I.js","./Refresh-EilcFp8b.js","./traffic-DSdpsMku.js","./ChevronLeft-BaZj3l6K.js","./index-DBii9-f-.js","./base-chart-CxDa_CaZ.js","./index-DPs8sVol.js","./AdapterDayjs-D4yhIBjp.js","./useThemeProps-CFIloaX5.js","./audit-logs-CpckHt6s.js","./index-b78VjA-Y.js","./decode-DPztD6kB.js","./index-gnjjKJuC.css","./UnfoldMore-DVoycFqc.js","./index-Ci0V4E2u.js","./ua-parser-DP5omx3I.js","./index-D93jIJAg.js","./Google-BB2TEIzp.js","./list-header-D5a_5edu.js","./ToggleButtonGroup-npFh1mr6.js","./lock.svg-Bnm1mppT.js","./index-CXTibO7-.js","./ViewList-D7TqVQ4P.js","./Verified-CWEd1DVE.js","./index-DyIPXbau.js","./sdk-DZJdUnPV.js","./service-DLwgL4rt.js","./table-icons-DKoPQwjv.js","./Edit-CKpLr219.js","./index-DzQWOvtr.js","./Link-Cogxu9aB.js","./item-Bojg28Ma.js","./Launch-BiV6tbTp.js","./item-G0iZE90Q.css","./index-CH_WzJ6f.js","./url-join-DoFkjCNr.js","./connect-to-CbHwvZLx.js","./index-DRYJ0xIl.js","./agreement-BhNIuQec.js","./install-from-url-B0gehZWB.js","./without-wallet-D2bQnWJt.js","./Stepper-Bn1MKAsJ.js","./toUpper-DN59t43l.js","./log-Dh6sGyEk.js","./download-scJq5nd3.js","./runtime-BB_E-r_A.js","./memory-BwHtkqHB.js","./index-COhyQV8C.js"])))=>i.map(i=>d[i]);
2
+ import{V as He,n as qe,bo as Ct,r as b,aI as F,j as d,Z as Qe,K as Y,v as Ge,w as Tt,i as j,bD as jt,H as J,_ as Ke,bn as We,A as Pt,u as At,d as Dt,bE as Ot,bF as Lt,bG as Ae,bH as Bt,bI as Mt,I as De,C as Oe,N as Rt,bJ as Nt,T as ue,M as Ft,bK as I,s as Vt}from"./index-CrQaw0BF.js";import{T as zt,u as $t}from"./html-title-CifiMfjt.js";import{B as Ut}from"./status-CW0QYGeF.js";import{D as Ht,B as qt}from"./actions-CDHomwcW.js";import{u as Qt}from"./blocklet-D4otp8nH.js";import{p as Gt}from"./index-rsjiYKAZ.js";import{B as Kt,a as Wt,T as Jt}from"./team-DLwXXgYX.js";import{P as Xt}from"./permission-B8q324ya.js";import{B as Zt}from"./Breadcrumbs-DWjoGi7V.js";import"./useLocalStorage-DjnxkTrj.js";import"./MoreVert-BOGr0n7e.js";import"./DeleteOutline-BiwjsR6p.js";import"./get-safe-url-HOLWsAs0.js";import"./ButtonGroup-CiscHb2s.js";import"./getValidReactChildren-Ck9KmKnh.js";import"./url-evaluation-DMCBEvQj.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{V as He,n as qe,bo as Ct,r as b,aH as F,j as d,U as Qe,J as Z,v as Ge,w a
9
9
  *
10
10
  * @license MIT
11
11
  * @version 3.1.1
12
- */const Je=Object.freeze({left:0,top:0,width:16,height:16}),ee=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),H=Object.freeze({...Je,...ee}),me=Object.freeze({...H,body:"",hidden:!1});function Zt(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function Le(e,t){const n=Zt(e,t);for(const r in me)r in ee?r in e&&!(r in n)&&(n[r]=ee[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function en(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const c=r[i]&&r[i].parent,l=c&&s(c);l&&(o[i]=[c].concat(l))}return o[i]}return Object.keys(n).concat(Object.keys(r)).forEach(s),o}function tn(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(c){s=Le(r[c]||o[c],s)}return i(t),n.forEach(i),Le(e,s)}function nn(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=en(e);for(const o in r){const s=r[o];s&&(t(o,tn(e,o,s)),n.push(o))}return n}const V=/^[a-z0-9]+(-[a-z0-9]+)*$/,R=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const c=o.pop(),l=o.pop(),a={provider:o.length>0?o[0]:r,prefix:l,name:c};return t&&!X(a)?null:a}const s=o[0],i=s.split("-");if(i.length>1){const c={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!X(c)?null:c}if(n&&r===""){const c={provider:r,prefix:"",name:s};return t&&!X(c,n)?null:c}return null},X=(e,t)=>e?!!((e.provider===""||e.provider.match(V))&&(t&&e.prefix===""||e.prefix.match(V))&&e.name.match(V)):!1,on={provider:"",aliases:{},not_found:{},...Je};function fe(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function rn(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!fe(e,on))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(V)||typeof s.body!="string"||!fe(s,me))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(V)||typeof i!="string"||!n[i]&&!r[i]||!fe(s,me))return null}return t}const te=Object.create(null);function sn(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function C(e,t){const n=te[e]||(te[e]=Object.create(null));return n[t]||(n[t]=sn(e,t))}function Ee(e,t){return rn(t)?nn(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function cn(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function an(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(te)).forEach(o=>{(typeof o=="string"&&typeof t=="string"?[t]:Object.keys(te[o]||{})).forEach(i=>{const c=C(o,i);n=n.concat(Object.keys(c.icons).map(l=>(o!==""?"@"+o+":":"")+i+":"+l))})}),n}let _e=!1;function ln(e){return _e}function q(e){const t=typeof e=="string"?R(e,!0,_e):e;if(t){const n=C(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function un(e,t){const n=R(e,!0,_e);if(!n)return!1;const r=C(n.provider,n.prefix);return cn(r,n.name,t)}function Xe(e,t){if(typeof e!="object")return!1;typeof t!="string"&&(t=e.provider||"");const n=e.prefix;if(!X({provider:t,prefix:n,name:"a"}))return!1;const r=C(t,n);return!!Ee(r,e)}function fn(e){return!!q(e)}function dn(e){const t=q(e);return t?{...H,...t}:null}const Ye=Object.freeze({width:null,height:null}),Ze=Object.freeze({...Ye,...ee}),pn=/(-?[0-9.]*[0-9]+[0-9.]*)/g,mn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function he(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(pn);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=mn.test(s);for(;;){if(i){const c=parseFloat(s);isNaN(c)?o.push(s):o.push(Math.ceil(c*t*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}const hn=e=>e==="unset"||e==="undefined"||e==="none";function re(e,t){const n={...H,...e},r={...Ze,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(g=>{const y=[],E=g.hFlip,A=g.vFlip;let w=g.rotate;E?A?w+=2:(y.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),y.push("scale(-1 1)"),o.top=o.left=0):A&&(y.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),y.push("scale(1 -1)"),o.top=o.left=0);let S;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:S=o.height/2+o.top,y.unshift("rotate(90 "+S.toString()+" "+S.toString()+")");break;case 2:y.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:S=o.width/2+o.left,y.unshift("rotate(-90 "+S.toString()+" "+S.toString()+")");break}w%2===1&&(o.left!==o.top&&(S=o.left,o.left=o.top,o.top=S),o.width!==o.height&&(S=o.width,o.width=o.height,o.height=S)),y.length&&(s='<g transform="'+y.join(" ")+'">'+s+"</g>")});const i=r.width,c=r.height,l=o.width,a=o.height;let u,p;i===null?(p=c===null?"1em":c==="auto"?a:c,u=he(p,l/a)):(u=i==="auto"?l:i,p=c===null?he(u,a/l):c==="auto"?a:c);const f={},h=(g,y)=>{hn(y)||(f[g]=y.toString())};return h("width",u),h("height",p),f.viewBox=o.left.toString()+" "+o.top.toString()+" "+l.toString()+" "+a.toString(),{attributes:f,body:s}}const gn=/\sid="(\S+)"/g,bn="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let yn=0;function et(e,t=bn){const n=[];let r;for(;r=gn.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const i=typeof t=="function"?t(s):t+(yn++).toString(),c=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const D={local:!0,session:!0},tt={local:new Set,session:new Set};let Ce=!1;function vn(e){Ce=e}const Be="iconify2",U="iconify",nt=U+"-count",Me=U+"-version",ot=36e5,xn=168;function ge(e,t){try{return e.getItem(t)}catch{}}function Te(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Re(e,t){try{e.removeItem(t)}catch{}}function be(e,t){return Te(e,nt,t.toString())}function ye(e){return parseInt(ge(e,nt))||0}let K=typeof window>"u"?{}:window;function rt(e){const t=e+"Storage";try{if(K&&K[t]&&typeof K[t].length=="number")return K[t]}catch{}D[e]=!1}function st(e,t){const n=rt(e);if(!n)return;const r=ge(n,Me);if(r!==Be){if(r){const c=ye(n);for(let l=0;l<c;l++)Re(n,U+l.toString())}Te(n,Me,Be),be(n,0);return}const o=Math.floor(Date.now()/ot)-xn,s=c=>{const l=U+c.toString(),a=ge(n,l);if(typeof a=="string"){try{const u=JSON.parse(a);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,c))return!0}catch{}Re(n,l)}};let i=ye(n);for(let c=i-1;c>=0;c--)s(c)||(c===i-1?(i--,be(n,i)):tt[e].add(c))}function it(){if(!Ce){vn(!0);for(const e in D)st(e,t=>{const n=t.data,r=t.provider,o=n.prefix,s=C(r,o);if(!Ee(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function ct(e,t){switch(e){case"local":case"session":D[e]=t;break;case"all":for(const n in D)D[n]=t;break}}const ve=Object.create(null);function at(e,t){ve[e]=t}function xe(e){return ve[e]||ve[""]}function je(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 se=Object.create(null),N=["https://api.simplesvg.com","https://api.unisvg.com"],Y=[];for(;N.length>0;)N.length===1||Math.random()>.5?Y.push(N.shift()):Y.push(N.pop());se[""]=je({resources:["https://api.iconify.design"].concat(Y)});function lt(e,t){const n=je(t);return n===null?!1:(se[e]=n,!0)}function ie(e){return se[e]}function wn(){return Object.keys(se)}const Sn=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let ne=Sn();function In(e){ne=e}function kn(){return ne}function En(e,t){const n=ie(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function _n(e){return e===404}const Cn=(e,t,n)=>{const r=[],o=En(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},c=0;return n.forEach((l,a)=>{c+=l.length+1,c>=o&&a>0&&(r.push(i),i={type:s,provider:e,prefix:t,icons:[]},c=l.length),i.icons.push(l)}),r.push(i),r};function Tn(e){if(typeof e=="string"){const t=ie(e);if(t)return t.path}return"/"}const jn=(e,t,n)=>{if(!ne){n("abort",424);return}let r=Tn(t.provider);switch(t.type){case"icons":{const s=t.prefix,c=t.icons.join(","),l=new URLSearchParams({icons:c});r+=s+".json?"+l.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;ne(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(_n(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},Pn={prepare:Cn,send:jn};function An(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,c=o.name,l=n[s]||(n[s]=Object.create(null)),a=l[i]||(l[i]=C(s,i));let u;c in a.icons?u=t.loaded:i===""||a.missing.has(c)?u=t.missing:u=t.pending;const p={provider:s,prefix:i,name:c};u.push(p)}),t}function ut(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function Dn(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(s=>{const i=s.icons,c=i.pending.length;i.pending=i.pending.filter(l=>{if(l.prefix!==o)return!0;const a=l.name;if(e.icons[a])i.loaded.push({provider:r,prefix:o,name:a});else if(e.missing.has(a))i.missing.push({provider:r,prefix:o,name:a});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||ut([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let On=0;function Ln(e,t,n){const r=On++,o=ut.bind(null,n,r);if(!t.pending.length)return o;const s={id:r,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}function Bn(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?R(o,t,n):o;s&&r.push(s)}),r}var Mn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Rn(e,t,n,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let m=e.resources.slice(0);for(i=[];m.length>1;){const k=Math.floor(Math.random()*m.length);i.push(m[k]),m=m.slice(0,k).concat(m.slice(k+1))}i=i.concat(m)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const c=Date.now();let l="pending",a=0,u,p=null,f=[],h=[];typeof r=="function"&&h.push(r);function g(){p&&(clearTimeout(p),p=null)}function y(){l==="pending"&&(l="aborted"),g(),f.forEach(m=>{m.status==="pending"&&(m.status="aborted")}),f=[]}function E(m,k){k&&(h=[]),typeof m=="function"&&h.push(m)}function A(){return{startTime:c,payload:t,status:l,queriesSent:a,queriesPending:f.length,subscribe:E,abort:y}}function w(){l="failed",h.forEach(m=>{m(void 0,u)})}function S(){f.forEach(m=>{m.status==="pending"&&(m.status="aborted")}),f=[]}function L(m,k,_){const B=k!=="success";switch(f=f.filter(T=>T!==m),l){case"pending":break;case"failed":if(B||!e.dataAfterTimeout)return;break;default:return}if(k==="abort"){u=_,w();return}if(B){u=_,f.length||(i.length?v():w());return}if(g(),S(),!e.random){const T=e.resources.indexOf(m.resource);T!==-1&&T!==e.index&&(e.index=T)}l="completed",h.forEach(T=>{T(_)})}function v(){if(l!=="pending")return;g();const m=i.shift();if(m===void 0){if(f.length){p=setTimeout(()=>{g(),l==="pending"&&(S(),w())},e.timeout);return}w();return}const k={status:"pending",resource:m,callback:(_,B)=>{L(k,_,B)}};f.push(k),a++,p=setTimeout(v,e.rotate),n(m,t,k.callback)}return setTimeout(v),A}function ft(e){const t={...Mn,...e};let n=[];function r(){n=n.filter(c=>c().status==="pending")}function o(c,l,a){const u=Rn(t,c,l,(p,f)=>{r(),a&&a(p,f)});return n.push(u),u}function s(c){return n.find(l=>c(l))||null}return{query:o,find:s,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:r}}function Ne(){}const de=Object.create(null);function Nn(e){if(!de[e]){const t=ie(e);if(!t)return;const n=ft(t),r={config:t,redundancy:n};de[e]=r}return de[e]}function dt(e,t,n){let r,o;if(typeof e=="string"){const s=xe(e);if(!s)return n(void 0,424),Ne;o=s.send;const i=Nn(e);i&&(r=i.redundancy)}else{const s=je(e);if(s){r=ft(s);const i=e.resources?e.resources[0]:"",c=xe(i);c&&(o=c.send)}}return!r||!o?(n(void 0,424),Ne):r.query(t,o,n)().abort}function Fn(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in D)st(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function Vn(e,t){Ce||it();function n(r){let o;if(!D[r]||!(o=rt(r)))return;const s=tt[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=ye(o),!be(o,i+1))return;const c={cached:Math.floor(Date.now()/ot),provider:e.provider,data:t};return Te(o,U+i.toString(),JSON.stringify(c))}t.lastModified&&!Fn(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Fe(){}function zn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Dn(e)}))}function $n(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=xe(n)))return;s.prepare(n,r,o).forEach(c=>{dt(n,c,l=>{if(typeof l!="object")c.icons.forEach(a=>{e.missing.add(a)});else try{const a=Ee(e,l);if(!a.length)return;const u=e.pendingIcons;u&&a.forEach(p=>{u.delete(p)}),Vn(e,l)}catch(a){console.error(a)}zn(e)})})}))}const Un=e=>{const n=C(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},Pe=(e,t)=>{const n=Bn(e,!0,ln()),r=An(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,Fe)}),()=>{l=!1}}const o=Object.create(null),s=[];let i,c;return r.pending.forEach(l=>{const{provider:a,prefix:u}=l;if(u===c&&a===i)return;i=a,c=u,s.push(C(a,u));const p=o[a]||(o[a]=Object.create(null));p[u]||(p[u]=[])}),r.pending.forEach(l=>{const{provider:a,prefix:u,name:p}=l,f=C(a,u),h=f.pendingIcons||(f.pendingIcons=new Set);h.has(p)||(h.add(p),o[a][u].push(p))}),s.forEach(l=>{const{provider:a,prefix:u}=l;o[a][u].length&&$n(l,o[a][u])}),t?Ln(t,r,s):Fe},Hn=e=>new Promise((t,n)=>{const r=typeof e=="string"?R(e,!0):e;if(!r){n(e);return}Pe([r||e],o=>{if(o.length&&r){const s=q(r);if(s){t({...H,...s});return}}n(e)})});function pt(e,t){const n={...e};for(const r in t){const o=t[r],s=typeof o;r in Ye?(o===null||o&&(s==="string"||s==="number"))&&(n[r]=o):s===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const ce={...Ze,inline:!1},pe="iconify",we="iconify-inline",P="iconifyData"+Date.now();let O=[];function Q(e){for(let t=0;t<O.length;t++){const n=O[t];if((typeof n.node=="function"?n.node():n.node)===e)return n}}function mt(e,t=!1){let n=Q(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},O.push(n),n)}function qn(){if(document.documentElement)return mt(document.documentElement);O.push({node:()=>document.documentElement})}function Qn(e){O=O.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function G(){return O}function Gn(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let z=null;const Kn={childList:!0,subtree:!0,attributes:!0};function ht(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,z&&z(e)}))}function Wn(e,t){if(!e.observer)return;const n=e.observer;if(!n.pendingScan)for(let r=0;r<t.length;r++){const o=t[r];if(o.addedNodes&&o.addedNodes.length>0||o.type==="attributes"&&o.target[P]!==void 0){n.paused||ht(e);return}}}function gt(e,t){e.observer.instance.observe(t,Kn)}function oe(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(Wn.bind(null,e)),gt(e,n),t.paused||ht(e))}function Ve(){G().forEach(oe)}function bt(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 Jn(e){const t=z!==null;if(z!==e&&(z=e,t&&G().forEach(bt)),t){Ve();return}Gn(Ve)}function Se(e){(e?[e]:G()).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 Xn(e){if(e){const t=Q(e);t&&Se(t)}else Se()}function Ie(e){(e?[e]:G()).forEach(t=>{if(!t.observer){oe(t);return}const n=t.observer;if(n.paused&&(n.paused--,!n.paused)){const r=typeof t.node=="function"?t.node():t.node;if(r)n.instance?gt(t,r):oe(t);else return}})}function Yn(e){if(e){const t=Q(e);t&&Ie(t)}else Ie()}function yt(e,t=!1){const n=mt(e,t);return oe(n),n}function vt(e){const t=Q(e);t&&(bt(t),Qn(e))}function Zn(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,r=t.customisations;for(const o in ce)if(n[o]!==r[o])return!0;return!1}function eo(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return t}const to=/[\s,]+/;function no(e,t){t.split(to).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const oo=["width","height"],ro=["inline","hFlip","vFlip"];function so(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function io(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&R(t,!0);if(!n)return null;const r={...ce,inline:e.classList&&e.classList.contains(we)};oo.forEach(c=>{const l=e.getAttribute("data-"+c);l&&(r[c]=l)});const o=e.getAttribute("data-rotate");typeof o=="string"&&(r.rotate=eo(o));const s=e.getAttribute("data-flip");typeof s=="string"&&no(r,s),ro.forEach(c=>{const l="data-"+c,a=so(e.getAttribute(l),l);typeof a=="boolean"&&(r[c]=a)});const i=e.getAttribute("data-mode");return{name:t,icon:n,customisations:r,mode:i}}const co="svg."+pe+", i."+pe+", span."+pe+", i."+we+", span."+we;function ao(e){const t=[];return e.querySelectorAll(co).forEach(n=>{const r=n[P]||n.tagName.toLowerCase()!=="svg"?io(n):null;r&&t.push({node:n,props:r})}),t}function xt(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}let $;function lo(){try{$=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{$=null}}function uo(e){return $===void 0&&lo(),$?$.createHTML(e):e}function wt(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function St(e,t,n,r){const o=e.classList;if(r){const i=r.classList;Array.from(i).forEach(c=>{o.add(c)})}const s=[];return t.forEach(i=>{o.contains(i)?n.has(i)&&s.push(i):(o.add(i),s.push(i))}),n.forEach(i=>{t.has(i)||o.remove(i)}),s}function It(e,t,n){const r=e.style;(n||[]).forEach(s=>{r.removeProperty(s)});const o=[];for(const s in t)r.getPropertyValue(s)||(o.push(s),r.setProperty(s,t[s]));return o}function kt(e,t,n){let r;try{r=document.createElement("span")}catch{return e}const o=t.customisations,s=re(n,o),i=e[P],c=xt(et(s.body),{"aria-hidden":"true",role:"img",...s.attributes});r.innerHTML=uo(c);const l=r.childNodes[0],a=e.attributes;for(let g=0;g<a.length;g++){const y=a.item(g),E=y.name;E!=="class"&&!l.hasAttribute(E)&&l.setAttribute(E,y.value)}const u=wt(t.icon),p=St(l,u,new Set(i&&i.addedClasses),e),f=It(l,o.inline?{"vertical-align":"-0.125em"}:{},i&&i.addedStyles),h={...t,status:"loaded",addedClasses:p,addedStyles:f};return l[P]=h,e.parentNode&&e.parentNode.replaceChild(l,e),l}function fo(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function po(e){return"data:image/svg+xml,"+fo(e)}function mo(e){return'url("'+po(e)+'")'}const ho={display:"inline-block"},ke={"background-color":"currentColor"},Et={"background-color":"transparent"},ze={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},$e={"-webkit-mask":ke,mask:ke,background:Et};for(const e in $e){const t=$e[e];for(const n in ze)t[e+"-"+n]=ze[n]}function Ue(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function go(e,t,n,r){const o=t.customisations,s=re(n,o),i=s.attributes,c=e[P],l=xt(s.body,{...i,width:n.width+"",height:n.height+""}),a=wt(t.icon),u=St(e,a,new Set(c&&c.addedClasses)),f={"--svg":mo(l),width:Ue(i.width),height:Ue(i.height),...ho,...r?ke:Et};o.inline&&(f["vertical-align"]="-0.125em");const h=It(e,f,c&&c.addedStyles),g={...t,status:"loaded",addedClasses:u,addedStyles:h};return e[P]=g,e}let W=!1;function bo(){W||(W=!0,setTimeout(()=>{W&&(W=!1,M())}))}function M(e,t=!1){const n=Object.create(null);function r(o,s){const{provider:i,prefix:c,name:l}=o,a=C(i,c),u=a.icons[l];if(u)return{status:"loaded",icon:u};if(a.missing.has(l))return{status:"missing"};if(s&&!Un(o)){const p=n[i]||(n[i]=Object.create(null));(p[c]||(p[c]=new Set)).add(l)}return{status:"loading"}}(e?[e]:G()).forEach(o=>{const s=typeof o.node=="function"?o.node():o.node;if(!s||!s.querySelectorAll)return;let i=!1,c=!1;function l(a,u,p){if(c||(c=!0,Se(o)),a.tagName.toUpperCase()!=="SVG"){const f=u.mode,h=f==="mask"||(f==="bg"?!1:f==="style"?p.body.indexOf("currentColor")!==-1:null);if(typeof h=="boolean"){go(a,u,{...H,...p},h);return}}kt(a,u,p)}ao(s).forEach(({node:a,props:u})=>{const p=a[P];if(!p){const{status:h,icon:g}=r(u.icon,!0);if(g){l(a,u,g);return}i=i||h==="loading",a[P]={...u,status:h};return}let f;if(Zn(p,u)){if(f=r(u.icon,p.name!==u.name),!f.icon){i=i||f.status==="loading",Object.assign(p,{...u,status:f.status});return}}else{if(p.status!=="loading")return;if(f=r(u.icon,!1),!f.icon){p.status=f.status;return}}l(a,u,f.icon)}),o.temporary&&!i?vt(s):t&&i?yt(s,!0):c&&o.observer&&Ie(o)});for(const o in n){const s=n[o];for(const i in s){const c=s[i];Pe(Array.from(c).map(l=>({provider:o,prefix:i,name:l})),bo)}}}function yo(e){const t=Q(e);t?M(t):M({node:e,temporary:!0},!0)}function _t(e,t,n=!1){const r=q(e);if(!r)return null;const o=R(e),s=pt(ce,t||{}),i=kt(document.createElement("span"),{name:e,icon:o,customisations:s},r);return n?i.outerHTML:i}function vo(){return"3.1.1"}function xo(e,t){return _t(e,t,!1)}function wo(e,t){return _t(e,t,!0)}function So(e,t){const n=q(e);if(!n)return null;const r=pt(ce,t||{});return re(n,r)}function Io(e){e?yo(e):M()}if(typeof document<"u"&&typeof window<"u"){qn();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!Xe(r))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{Jn(M),M()})}function ko(e,t){ct(e,t!==!1)}function Eo(e){ct(e,!0)}at("",Pn);if(typeof document<"u"&&typeof window<"u"){it();const e=window;if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const n in t){const r="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;lt(n,o)||console.error(r)}catch{console.error(r)}}}}const _o={getAPIConfig:ie,setAPIModule:at,sendAPIQuery:dt,setFetch:In,getFetch:kn,listAPIProviders:wn},Co={_api:_o,addAPIProvider:lt,loadIcons:Pe,loadIcon:Hn,iconExists:fn,getIcon:dn,listIcons:an,addIcon:un,addCollection:Xe,replaceIDs:et,calculateSize:he,buildIcon:re,getVersion:vo,renderSVG:xo,renderHTML:wo,renderIcon:So,scan:Io,observe:yt,stopObserving:vt,pauseObserver:Xn,resumeObserver:Yn,enableCache:ko,disableCache:Eo};try{self.Iconify===void 0&&(self.Iconify=Co)}catch{}const To=e=>{const t={};let n=null;return j.forEachBlockletSync(e,r=>{t[r.meta.bundleDid]?n=j.getDisplayName(r,!0):r.meta.bundleDid&&(t[r.meta.bundleDid]=!0)}),n},jo=(e,t,n)=>{const{hostname:r,href:o}=e;if(!t)return o;if(n){const i=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(r);if(!i)return o;const c=i[0],a=((t.site?.domainAliases||[]).map(u=>u.value).filter(Boolean).find(u=>u.endsWith(F.DEFAULT_DID_DOMAIN))||"").replace(`.${F.DEFAULT_DID_DOMAIN}`,"");return a?o.replace(r,`${a}-${c}.${F.DEFAULT_IP_DOMAIN_SUFFIX}`):o}return o.replace(t.meta.bundleDid,t.appPid)};function Po(){const{t:e}=He(),{api:t}=qe(),{blocklet:n}=Qt(),{inService:r}=Ct(),[o,s]=b.useState(!1),[i,c]=b.useState(5),l=n&&n.structVersion!==F.APP_STRUCT_VERSION,a=()=>{try{if(j.isBlockletRunning(n)){J.error(e("blocklet.migrate.tip.running"));return}const f=To(n);if(f){J.error(e("blocklet.migrate.tip.duplicate",{name:f}));return}s(!0)}catch(f){J.error(Ke(f))}},u=()=>{const f=jo(window.location,n,r);setTimeout(()=>{window.location.href=f},5e3),c(5),setInterval(()=>{c(h=>h-1)},1e3)},p=()=>s(!1);return[l&&d.jsxs(Qe,{severity:"warning",style:{margin:"12px 0"},children:[d.jsxs(Z,{sx:{display:"flex",alignItems:"center"},children:[d.jsx(Ge,{variant:"contained",size:"small",color:"primary",onClick:()=>a(),style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),d.jsx("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map(f=>d.jsx(Z,{sx:{display:"flex",alignItems:"center"},children:e(`blocklet.migrate.intro.${f}`)},f))]},"alert"),n&&d.jsx(Tt,{popup:!0,open:o,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:jt(n,!0),title:j.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:p},"connect")]}const Ao=b.lazy(()=>I(()=>import("./overview-DkMLRtwO.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]),import.meta.url)),Do=b.lazy(()=>I(()=>import("./domains-CeCMQUBm.js"),__vite__mapDeps([17,1,2,18,6,19,20,21,22,23,24,25,14,26,27,28,29,5,30,31,32,33,34,10]),import.meta.url)),Oo=b.lazy(()=>I(()=>import("./index-CL2N86sI.js"),__vite__mapDeps([35,1,2,36,37,38,39,40,41,42,8,19,43,44,10,45,12,46,47,48,49,50,51,52,53,54,55,6,23,7,5,56,9,11,57,58,59,60,61,62,20,26,63,64,65,66,67,68,69,70,71,14]),import.meta.url)),Lo=b.lazy(()=>I(()=>import("./appearance-yP6FtjZ0.js"),__vite__mapDeps([72,1,2,6,71]),import.meta.url)),Bo=b.lazy(()=>I(()=>import("./config-navigation-Pdv-g1jO.js"),__vite__mapDeps([73,1,2,12,74,46,75,67,6,59,60,61,76,7,8,36,37,38,39,40,41,42,19,58,62,44,70,49,16,52,53,77,29,78,79,69,26,33,80,51,34]),import.meta.url)),Mo=b.lazy(()=>I(()=>import("./index-BsjY45Cd.js"),__vite__mapDeps([81,1,2,63,64,65,66,59,60,61,67,68,69,70,38,82,5,44,83,84,85,51,86,43,87,88,89,90,91,55]),import.meta.url)),Ro=b.lazy(()=>I(()=>import("./audit-logs-bPLYn_cc.js"),__vite__mapDeps([92,1,2,68,69,70,37,93,94,95,96,82,7,6,8]),import.meta.url)),No=b.lazy(()=>I(()=>import("./index-Dtkcfmzb.js").then(e=>e.i),__vite__mapDeps([97,1,2,63,64,65,66,59,60,61,67,68,69,70,38,44,7,6,8,98,71,99,41,42,19,100,74,26,48,101,56,102,103]),import.meta.url)),Fo=b.lazy(()=>I(()=>import("./index-DT5BIL2_.js").then(e=>e.i),__vite__mapDeps([104,1,2,26,105,63,64,65,66,59,60,61,67,68,69,70,38,99,41,42,7,6,8,58,100,74,52,53,96,19,23,90,91,55,44,5,106,39,11,107,108,78,71,20,21,82,98]),import.meta.url)),Vo=b.lazy(()=>I(()=>import("./service-DkoTQaTk.js"),__vite__mapDeps([109,1,2,110,64,65,66,87,61,76,60,91,44,26,20,70,111,43,86,69,49]),import.meta.url)),zo=b.lazy(()=>I(()=>import("./index-Dt9htCod.js"),__vite__mapDeps([112,1,2,36,37,38,39,40,41,42,8,19,57,6,111,110,64,65,66,87,61,76,60,91,44,26,20,70,43,86,69,49,45,12,46,47,48,50,51,23,99,113,114,78,79,52,53,106,25,115,22,116,117,118,32,119,4,15,16,33,120,3,121,93,94,95,100,74,122,24,123,5,77,124,30,31,71,11,103,83,21,125,7]),import.meta.url)),$o=b.lazy(()=>I(()=>import("./log-BFB-zvPt.js"),__vite__mapDeps([126,1,2,37,127,41,42,53]),import.meta.url)),Uo=b.lazy(()=>I(()=>import("./runtime-DM0B8rA4.js"),__vite__mapDeps([128,1,2,63,64,65,66,59,60,61,67,68,69,70,38,6,120,129,88,89,24,102,42]),import.meta.url)),Ho=b.lazy(()=>I(()=>import("./traffic-Dh_MwZxy.js").then(e=>e.t),__vite__mapDeps([85,1,2,51,86,43,87,61,88,89,90,91,65,55]),import.meta.url)),qo=b.lazy(()=>I(()=>import("./index-BHAdZ1FZ.js"),__vite__mapDeps([130,1,2,44,6,71,119,99,41,42,4,15,16,39,33,120,3,5,89,63,64,65,66,59,60,61,67,68,69,70,38,40,57,101]),import.meta.url)),Qo=({children:e})=>e;function Go(){const e=Pt(),{tab:t="overview"}=We(),{did:n,blocklet:r,error:o,client:s,actions:{setBlocklet:i,refreshBlocklet:c}}=Wt(),{refresh:l}=At(),{t:a}=He(),{session:u}=qe(),{data:p}=Dt(),f=Ot(()=>u.user?.role&&Lt.includes(u.user.role),[u]),h=b.useCallback(()=>d.jsx(Ro,{scope:n,blocklets:p}),[n,p]),g=b.useCallback(()=>f?d.jsx(Mo,{blocklet:r}):d.jsx(Gt,{status:403}),[r,f]),y=r?.environments.find(x=>x.key==="BLOCKLET_APP_URL")?.value||window.location.origin,E=x=>Mt(x,y),A=x=>{e(`/blocklets/${n}/${x}`)},w=x=>{x&&i(x),c()},S=!r||Ae(r.status)?[]:j.getAppMissingConfigs(r);let L=null;const v=[{label:a("common.overview"),value:"overview"},{breadcrumbsLabel:a("common.components"),label:d.jsx(Bt,{"data-cy":"blocklet-list",color:"error",variant:"dot",invisible:!S.length,children:a("common.components")}),value:"components"}];if(o)L=d.jsxs(d.Fragment,{children:[d.jsx(Qe,{severity:"error",children:Ke(o)}),d.jsx(Ge,{onClick:()=>c(),children:d.jsx("span",{style:{textDecoration:"underline"},children:a("common.retry")})})]});else if(r){const x={overview:d.jsx(Ao,{}),domains:d.jsx(Do,{}),configuration:Oo,appearance:Lo,navigation:Bo,services:Vo,members:d.jsx(Fo,{type:"blocklet",createPassportSvg:E}),passports:No,components:zo,"audit-logs":h,notifications:g,logs:$o,runtime:d.jsx(Uo,{}),traffic:d.jsx(Ho,{client:s,did:n}),didSpaces:d.jsx(qo,{})};t==="configuration"&&Ae(r.status)&&A("overview"),v.push({label:a("common.domains"),value:"domains"}),v.push({label:a("common.members"),value:"members"}),v.push({label:a("team.member.passports"),value:"passports"}),v.push({label:a("common.configuration"),value:"configuration"}),v.push({label:a("common.appearance"),value:"appearance"}),v.push({label:a("common.auditLogs"),value:"audit-logs"}),f&&v.push({label:a("common.notificationRecords"),value:"notifications"}),r&&r.children?.length&&r.structVersion===F.APP_STRUCT_VERSION&&v.push({label:a("common.logs"),value:"logs"}),v.push({label:a("common.configNavigation"),value:"navigation"}),v.push({label:a("common.runtime"),value:"runtime"}),v.push({label:a("common.traffic"),value:"traffic"}),v.push({label:a("storage.spaces.title"),value:"didSpaces"}),j.getBlockletServices(r).length&&v.splice(2,0,{label:a("blocklet.services"),value:"services"});const le=x[t]||x.overview;L=d.jsxs(Ht,{type:"components",children:[!j.isExternalBlocklet(r)&&d.jsx(zt,{tabs:v,current:t,onChange:A,scrollButtons:"auto"}),d.jsx("div",{className:"page-content",children:d.jsx(b.Suspense,{fallback:d.jsx(De,{relative:"parent",children:d.jsx(Oe,{})}),children:b.isValidElement(le)?le:d.jsx(le,{blocklet:r,onUpdate:w,createPassportSvg:E})})})]})}else L=d.jsx(De,{relative:"parent",children:d.jsx(Oe,{})});const m=()=>{},k=({action:x,error:ae})=>{if(ae){J.error(ae.message);return}x==="remove"?(l(),e("/blocklets")):c()},_=v.find(x=>x.value===t),B=r?Jt:Qo,T=$t(_,r?.meta?.title||a("common.blocklets"));return d.jsxs(B,{teamDid:n,children:[T,d.jsxs(Ko,{children:[d.jsxs(Yt,{separator:"›","aria-label":"breadcrumb",className:"page-breadcrumb",children:[d.jsx(Rt,{color:"textSecondary",to:"/blocklets",children:a("common.blocklets")}),d.jsx(Nt,{to:`/blocklets/${n}/overview`,style:x=>x?{color:"inherit"}:{},children:a("common.detail")}),d.jsx(ue,{color:"textSecondary",children:_?_.breadcrumbsLabel||_.label:""})]}),d.jsxs(ue,{component:"div",className:"page-header",children:[d.jsxs(ue,{component:"h2",variant:"h4",className:"page-title",color:"textPrimary",children:[r?d.jsx(Ft,{blocklet:r,style:{marginRight:16}}):null,r?d.jsxs(Z,{sx:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1},children:[d.jsx(Z,{children:j.getDisplayName(r)}),r?.status!=="unknown"&&d.jsx(Ut,{size:"12px",status:r.status,source:r.source,progress:r.progress})]}):`${a("common.blocklet")} ${a("common.detail")}`]}),d.jsx(Xt,{permission:"mutate_blocklets",children:!!r&&!j.isExternalBlocklet(r)&&d.jsx(qt,{className:"page-actions",blocklet:r,onStart:m,onComplete:k,variant:"group",source:"blocklet-detail"})})]}),d.jsx(Po,{}),L]})]})}function fr(){const{did:e}=We();return e?d.jsx(Kt,{did:e,children:d.jsx(Go,{})}):null}const Ko=Vt.main`
12
+ */const Je=Object.freeze({left:0,top:0,width:16,height:16}),ee=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),H=Object.freeze({...Je,...ee}),me=Object.freeze({...H,body:"",hidden:!1});function Yt(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function Le(e,t){const n=Yt(e,t);for(const r in me)r in ee?r in e&&!(r in n)&&(n[r]=ee[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function en(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const c=r[i]&&r[i].parent,l=c&&s(c);l&&(o[i]=[c].concat(l))}return o[i]}return Object.keys(n).concat(Object.keys(r)).forEach(s),o}function tn(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(c){s=Le(r[c]||o[c],s)}return i(t),n.forEach(i),Le(e,s)}function nn(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=en(e);for(const o in r){const s=r[o];s&&(t(o,tn(e,o,s)),n.push(o))}return n}const V=/^[a-z0-9]+(-[a-z0-9]+)*$/,R=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const c=o.pop(),l=o.pop(),a={provider:o.length>0?o[0]:r,prefix:l,name:c};return t&&!X(a)?null:a}const s=o[0],i=s.split("-");if(i.length>1){const c={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!X(c)?null:c}if(n&&r===""){const c={provider:r,prefix:"",name:s};return t&&!X(c,n)?null:c}return null},X=(e,t)=>e?!!((e.provider===""||e.provider.match(V))&&(t&&e.prefix===""||e.prefix.match(V))&&e.name.match(V)):!1,on={provider:"",aliases:{},not_found:{},...Je};function fe(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function rn(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!fe(e,on))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(V)||typeof s.body!="string"||!fe(s,me))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(V)||typeof i!="string"||!n[i]&&!r[i]||!fe(s,me))return null}return t}const te=Object.create(null);function sn(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function C(e,t){const n=te[e]||(te[e]=Object.create(null));return n[t]||(n[t]=sn(e,t))}function Ee(e,t){return rn(t)?nn(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function cn(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function an(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(te)).forEach(o=>{(typeof o=="string"&&typeof t=="string"?[t]:Object.keys(te[o]||{})).forEach(i=>{const c=C(o,i);n=n.concat(Object.keys(c.icons).map(l=>(o!==""?"@"+o+":":"")+i+":"+l))})}),n}let _e=!1;function ln(e){return _e}function q(e){const t=typeof e=="string"?R(e,!0,_e):e;if(t){const n=C(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function un(e,t){const n=R(e,!0,_e);if(!n)return!1;const r=C(n.provider,n.prefix);return cn(r,n.name,t)}function Xe(e,t){if(typeof e!="object")return!1;typeof t!="string"&&(t=e.provider||"");const n=e.prefix;if(!X({provider:t,prefix:n,name:"a"}))return!1;const r=C(t,n);return!!Ee(r,e)}function fn(e){return!!q(e)}function dn(e){const t=q(e);return t?{...H,...t}:null}const Ze=Object.freeze({width:null,height:null}),Ye=Object.freeze({...Ze,...ee}),pn=/(-?[0-9.]*[0-9]+[0-9.]*)/g,mn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function he(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(pn);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=mn.test(s);for(;;){if(i){const c=parseFloat(s);isNaN(c)?o.push(s):o.push(Math.ceil(c*t*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}const hn=e=>e==="unset"||e==="undefined"||e==="none";function re(e,t){const n={...H,...e},r={...Ye,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(g=>{const y=[],E=g.hFlip,A=g.vFlip;let w=g.rotate;E?A?w+=2:(y.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),y.push("scale(-1 1)"),o.top=o.left=0):A&&(y.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),y.push("scale(1 -1)"),o.top=o.left=0);let S;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:S=o.height/2+o.top,y.unshift("rotate(90 "+S.toString()+" "+S.toString()+")");break;case 2:y.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:S=o.width/2+o.left,y.unshift("rotate(-90 "+S.toString()+" "+S.toString()+")");break}w%2===1&&(o.left!==o.top&&(S=o.left,o.left=o.top,o.top=S),o.width!==o.height&&(S=o.width,o.width=o.height,o.height=S)),y.length&&(s='<g transform="'+y.join(" ")+'">'+s+"</g>")});const i=r.width,c=r.height,l=o.width,a=o.height;let u,p;i===null?(p=c===null?"1em":c==="auto"?a:c,u=he(p,l/a)):(u=i==="auto"?l:i,p=c===null?he(u,a/l):c==="auto"?a:c);const f={},h=(g,y)=>{hn(y)||(f[g]=y.toString())};return h("width",u),h("height",p),f.viewBox=o.left.toString()+" "+o.top.toString()+" "+l.toString()+" "+a.toString(),{attributes:f,body:s}}const gn=/\sid="(\S+)"/g,bn="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let yn=0;function et(e,t=bn){const n=[];let r;for(;r=gn.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const i=typeof t=="function"?t(s):t+(yn++).toString(),c=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const D={local:!0,session:!0},tt={local:new Set,session:new Set};let Ce=!1;function vn(e){Ce=e}const Be="iconify2",U="iconify",nt=U+"-count",Me=U+"-version",ot=36e5,xn=168;function ge(e,t){try{return e.getItem(t)}catch{}}function Te(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Re(e,t){try{e.removeItem(t)}catch{}}function be(e,t){return Te(e,nt,t.toString())}function ye(e){return parseInt(ge(e,nt))||0}let K=typeof window>"u"?{}:window;function rt(e){const t=e+"Storage";try{if(K&&K[t]&&typeof K[t].length=="number")return K[t]}catch{}D[e]=!1}function st(e,t){const n=rt(e);if(!n)return;const r=ge(n,Me);if(r!==Be){if(r){const c=ye(n);for(let l=0;l<c;l++)Re(n,U+l.toString())}Te(n,Me,Be),be(n,0);return}const o=Math.floor(Date.now()/ot)-xn,s=c=>{const l=U+c.toString(),a=ge(n,l);if(typeof a=="string"){try{const u=JSON.parse(a);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,c))return!0}catch{}Re(n,l)}};let i=ye(n);for(let c=i-1;c>=0;c--)s(c)||(c===i-1?(i--,be(n,i)):tt[e].add(c))}function it(){if(!Ce){vn(!0);for(const e in D)st(e,t=>{const n=t.data,r=t.provider,o=n.prefix,s=C(r,o);if(!Ee(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function ct(e,t){switch(e){case"local":case"session":D[e]=t;break;case"all":for(const n in D)D[n]=t;break}}const ve=Object.create(null);function at(e,t){ve[e]=t}function xe(e){return ve[e]||ve[""]}function je(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 se=Object.create(null),N=["https://api.simplesvg.com","https://api.unisvg.com"],Z=[];for(;N.length>0;)N.length===1||Math.random()>.5?Z.push(N.shift()):Z.push(N.pop());se[""]=je({resources:["https://api.iconify.design"].concat(Z)});function lt(e,t){const n=je(t);return n===null?!1:(se[e]=n,!0)}function ie(e){return se[e]}function wn(){return Object.keys(se)}const Sn=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let ne=Sn();function In(e){ne=e}function kn(){return ne}function En(e,t){const n=ie(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function _n(e){return e===404}const Cn=(e,t,n)=>{const r=[],o=En(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},c=0;return n.forEach((l,a)=>{c+=l.length+1,c>=o&&a>0&&(r.push(i),i={type:s,provider:e,prefix:t,icons:[]},c=l.length),i.icons.push(l)}),r.push(i),r};function Tn(e){if(typeof e=="string"){const t=ie(e);if(t)return t.path}return"/"}const jn=(e,t,n)=>{if(!ne){n("abort",424);return}let r=Tn(t.provider);switch(t.type){case"icons":{const s=t.prefix,c=t.icons.join(","),l=new URLSearchParams({icons:c});r+=s+".json?"+l.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;ne(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(_n(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},Pn={prepare:Cn,send:jn};function An(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,c=o.name,l=n[s]||(n[s]=Object.create(null)),a=l[i]||(l[i]=C(s,i));let u;c in a.icons?u=t.loaded:i===""||a.missing.has(c)?u=t.missing:u=t.pending;const p={provider:s,prefix:i,name:c};u.push(p)}),t}function ut(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function Dn(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(s=>{const i=s.icons,c=i.pending.length;i.pending=i.pending.filter(l=>{if(l.prefix!==o)return!0;const a=l.name;if(e.icons[a])i.loaded.push({provider:r,prefix:o,name:a});else if(e.missing.has(a))i.missing.push({provider:r,prefix:o,name:a});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||ut([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let On=0;function Ln(e,t,n){const r=On++,o=ut.bind(null,n,r);if(!t.pending.length)return o;const s={id:r,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}function Bn(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?R(o,t,n):o;s&&r.push(s)}),r}var Mn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Rn(e,t,n,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let m=e.resources.slice(0);for(i=[];m.length>1;){const k=Math.floor(Math.random()*m.length);i.push(m[k]),m=m.slice(0,k).concat(m.slice(k+1))}i=i.concat(m)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const c=Date.now();let l="pending",a=0,u,p=null,f=[],h=[];typeof r=="function"&&h.push(r);function g(){p&&(clearTimeout(p),p=null)}function y(){l==="pending"&&(l="aborted"),g(),f.forEach(m=>{m.status==="pending"&&(m.status="aborted")}),f=[]}function E(m,k){k&&(h=[]),typeof m=="function"&&h.push(m)}function A(){return{startTime:c,payload:t,status:l,queriesSent:a,queriesPending:f.length,subscribe:E,abort:y}}function w(){l="failed",h.forEach(m=>{m(void 0,u)})}function S(){f.forEach(m=>{m.status==="pending"&&(m.status="aborted")}),f=[]}function L(m,k,_){const B=k!=="success";switch(f=f.filter(T=>T!==m),l){case"pending":break;case"failed":if(B||!e.dataAfterTimeout)return;break;default:return}if(k==="abort"){u=_,w();return}if(B){u=_,f.length||(i.length?v():w());return}if(g(),S(),!e.random){const T=e.resources.indexOf(m.resource);T!==-1&&T!==e.index&&(e.index=T)}l="completed",h.forEach(T=>{T(_)})}function v(){if(l!=="pending")return;g();const m=i.shift();if(m===void 0){if(f.length){p=setTimeout(()=>{g(),l==="pending"&&(S(),w())},e.timeout);return}w();return}const k={status:"pending",resource:m,callback:(_,B)=>{L(k,_,B)}};f.push(k),a++,p=setTimeout(v,e.rotate),n(m,t,k.callback)}return setTimeout(v),A}function ft(e){const t={...Mn,...e};let n=[];function r(){n=n.filter(c=>c().status==="pending")}function o(c,l,a){const u=Rn(t,c,l,(p,f)=>{r(),a&&a(p,f)});return n.push(u),u}function s(c){return n.find(l=>c(l))||null}return{query:o,find:s,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:r}}function Ne(){}const de=Object.create(null);function Nn(e){if(!de[e]){const t=ie(e);if(!t)return;const n=ft(t),r={config:t,redundancy:n};de[e]=r}return de[e]}function dt(e,t,n){let r,o;if(typeof e=="string"){const s=xe(e);if(!s)return n(void 0,424),Ne;o=s.send;const i=Nn(e);i&&(r=i.redundancy)}else{const s=je(e);if(s){r=ft(s);const i=e.resources?e.resources[0]:"",c=xe(i);c&&(o=c.send)}}return!r||!o?(n(void 0,424),Ne):r.query(t,o,n)().abort}function Fn(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in D)st(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function Vn(e,t){Ce||it();function n(r){let o;if(!D[r]||!(o=rt(r)))return;const s=tt[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=ye(o),!be(o,i+1))return;const c={cached:Math.floor(Date.now()/ot),provider:e.provider,data:t};return Te(o,U+i.toString(),JSON.stringify(c))}t.lastModified&&!Fn(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Fe(){}function zn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Dn(e)}))}function $n(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=xe(n)))return;s.prepare(n,r,o).forEach(c=>{dt(n,c,l=>{if(typeof l!="object")c.icons.forEach(a=>{e.missing.add(a)});else try{const a=Ee(e,l);if(!a.length)return;const u=e.pendingIcons;u&&a.forEach(p=>{u.delete(p)}),Vn(e,l)}catch(a){console.error(a)}zn(e)})})}))}const Un=e=>{const n=C(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},Pe=(e,t)=>{const n=Bn(e,!0,ln()),r=An(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,Fe)}),()=>{l=!1}}const o=Object.create(null),s=[];let i,c;return r.pending.forEach(l=>{const{provider:a,prefix:u}=l;if(u===c&&a===i)return;i=a,c=u,s.push(C(a,u));const p=o[a]||(o[a]=Object.create(null));p[u]||(p[u]=[])}),r.pending.forEach(l=>{const{provider:a,prefix:u,name:p}=l,f=C(a,u),h=f.pendingIcons||(f.pendingIcons=new Set);h.has(p)||(h.add(p),o[a][u].push(p))}),s.forEach(l=>{const{provider:a,prefix:u}=l;o[a][u].length&&$n(l,o[a][u])}),t?Ln(t,r,s):Fe},Hn=e=>new Promise((t,n)=>{const r=typeof e=="string"?R(e,!0):e;if(!r){n(e);return}Pe([r||e],o=>{if(o.length&&r){const s=q(r);if(s){t({...H,...s});return}}n(e)})});function pt(e,t){const n={...e};for(const r in t){const o=t[r],s=typeof o;r in Ze?(o===null||o&&(s==="string"||s==="number"))&&(n[r]=o):s===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const ce={...Ye,inline:!1},pe="iconify",we="iconify-inline",P="iconifyData"+Date.now();let O=[];function Q(e){for(let t=0;t<O.length;t++){const n=O[t];if((typeof n.node=="function"?n.node():n.node)===e)return n}}function mt(e,t=!1){let n=Q(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},O.push(n),n)}function qn(){if(document.documentElement)return mt(document.documentElement);O.push({node:()=>document.documentElement})}function Qn(e){O=O.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function G(){return O}function Gn(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let z=null;const Kn={childList:!0,subtree:!0,attributes:!0};function ht(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,z&&z(e)}))}function Wn(e,t){if(!e.observer)return;const n=e.observer;if(!n.pendingScan)for(let r=0;r<t.length;r++){const o=t[r];if(o.addedNodes&&o.addedNodes.length>0||o.type==="attributes"&&o.target[P]!==void 0){n.paused||ht(e);return}}}function gt(e,t){e.observer.instance.observe(t,Kn)}function oe(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(Wn.bind(null,e)),gt(e,n),t.paused||ht(e))}function Ve(){G().forEach(oe)}function bt(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 Jn(e){const t=z!==null;if(z!==e&&(z=e,t&&G().forEach(bt)),t){Ve();return}Gn(Ve)}function Se(e){(e?[e]:G()).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 Xn(e){if(e){const t=Q(e);t&&Se(t)}else Se()}function Ie(e){(e?[e]:G()).forEach(t=>{if(!t.observer){oe(t);return}const n=t.observer;if(n.paused&&(n.paused--,!n.paused)){const r=typeof t.node=="function"?t.node():t.node;if(r)n.instance?gt(t,r):oe(t);else return}})}function Zn(e){if(e){const t=Q(e);t&&Ie(t)}else Ie()}function yt(e,t=!1){const n=mt(e,t);return oe(n),n}function vt(e){const t=Q(e);t&&(bt(t),Qn(e))}function Yn(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,r=t.customisations;for(const o in ce)if(n[o]!==r[o])return!0;return!1}function eo(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return t}const to=/[\s,]+/;function no(e,t){t.split(to).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const oo=["width","height"],ro=["inline","hFlip","vFlip"];function so(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function io(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&R(t,!0);if(!n)return null;const r={...ce,inline:e.classList&&e.classList.contains(we)};oo.forEach(c=>{const l=e.getAttribute("data-"+c);l&&(r[c]=l)});const o=e.getAttribute("data-rotate");typeof o=="string"&&(r.rotate=eo(o));const s=e.getAttribute("data-flip");typeof s=="string"&&no(r,s),ro.forEach(c=>{const l="data-"+c,a=so(e.getAttribute(l),l);typeof a=="boolean"&&(r[c]=a)});const i=e.getAttribute("data-mode");return{name:t,icon:n,customisations:r,mode:i}}const co="svg."+pe+", i."+pe+", span."+pe+", i."+we+", span."+we;function ao(e){const t=[];return e.querySelectorAll(co).forEach(n=>{const r=n[P]||n.tagName.toLowerCase()!=="svg"?io(n):null;r&&t.push({node:n,props:r})}),t}function xt(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}let $;function lo(){try{$=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{$=null}}function uo(e){return $===void 0&&lo(),$?$.createHTML(e):e}function wt(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function St(e,t,n,r){const o=e.classList;if(r){const i=r.classList;Array.from(i).forEach(c=>{o.add(c)})}const s=[];return t.forEach(i=>{o.contains(i)?n.has(i)&&s.push(i):(o.add(i),s.push(i))}),n.forEach(i=>{t.has(i)||o.remove(i)}),s}function It(e,t,n){const r=e.style;(n||[]).forEach(s=>{r.removeProperty(s)});const o=[];for(const s in t)r.getPropertyValue(s)||(o.push(s),r.setProperty(s,t[s]));return o}function kt(e,t,n){let r;try{r=document.createElement("span")}catch{return e}const o=t.customisations,s=re(n,o),i=e[P],c=xt(et(s.body),{"aria-hidden":"true",role:"img",...s.attributes});r.innerHTML=uo(c);const l=r.childNodes[0],a=e.attributes;for(let g=0;g<a.length;g++){const y=a.item(g),E=y.name;E!=="class"&&!l.hasAttribute(E)&&l.setAttribute(E,y.value)}const u=wt(t.icon),p=St(l,u,new Set(i&&i.addedClasses),e),f=It(l,o.inline?{"vertical-align":"-0.125em"}:{},i&&i.addedStyles),h={...t,status:"loaded",addedClasses:p,addedStyles:f};return l[P]=h,e.parentNode&&e.parentNode.replaceChild(l,e),l}function fo(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function po(e){return"data:image/svg+xml,"+fo(e)}function mo(e){return'url("'+po(e)+'")'}const ho={display:"inline-block"},ke={"background-color":"currentColor"},Et={"background-color":"transparent"},ze={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},$e={"-webkit-mask":ke,mask:ke,background:Et};for(const e in $e){const t=$e[e];for(const n in ze)t[e+"-"+n]=ze[n]}function Ue(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function go(e,t,n,r){const o=t.customisations,s=re(n,o),i=s.attributes,c=e[P],l=xt(s.body,{...i,width:n.width+"",height:n.height+""}),a=wt(t.icon),u=St(e,a,new Set(c&&c.addedClasses)),f={"--svg":mo(l),width:Ue(i.width),height:Ue(i.height),...ho,...r?ke:Et};o.inline&&(f["vertical-align"]="-0.125em");const h=It(e,f,c&&c.addedStyles),g={...t,status:"loaded",addedClasses:u,addedStyles:h};return e[P]=g,e}let W=!1;function bo(){W||(W=!0,setTimeout(()=>{W&&(W=!1,M())}))}function M(e,t=!1){const n=Object.create(null);function r(o,s){const{provider:i,prefix:c,name:l}=o,a=C(i,c),u=a.icons[l];if(u)return{status:"loaded",icon:u};if(a.missing.has(l))return{status:"missing"};if(s&&!Un(o)){const p=n[i]||(n[i]=Object.create(null));(p[c]||(p[c]=new Set)).add(l)}return{status:"loading"}}(e?[e]:G()).forEach(o=>{const s=typeof o.node=="function"?o.node():o.node;if(!s||!s.querySelectorAll)return;let i=!1,c=!1;function l(a,u,p){if(c||(c=!0,Se(o)),a.tagName.toUpperCase()!=="SVG"){const f=u.mode,h=f==="mask"||(f==="bg"?!1:f==="style"?p.body.indexOf("currentColor")!==-1:null);if(typeof h=="boolean"){go(a,u,{...H,...p},h);return}}kt(a,u,p)}ao(s).forEach(({node:a,props:u})=>{const p=a[P];if(!p){const{status:h,icon:g}=r(u.icon,!0);if(g){l(a,u,g);return}i=i||h==="loading",a[P]={...u,status:h};return}let f;if(Yn(p,u)){if(f=r(u.icon,p.name!==u.name),!f.icon){i=i||f.status==="loading",Object.assign(p,{...u,status:f.status});return}}else{if(p.status!=="loading")return;if(f=r(u.icon,!1),!f.icon){p.status=f.status;return}}l(a,u,f.icon)}),o.temporary&&!i?vt(s):t&&i?yt(s,!0):c&&o.observer&&Ie(o)});for(const o in n){const s=n[o];for(const i in s){const c=s[i];Pe(Array.from(c).map(l=>({provider:o,prefix:i,name:l})),bo)}}}function yo(e){const t=Q(e);t?M(t):M({node:e,temporary:!0},!0)}function _t(e,t,n=!1){const r=q(e);if(!r)return null;const o=R(e),s=pt(ce,t||{}),i=kt(document.createElement("span"),{name:e,icon:o,customisations:s},r);return n?i.outerHTML:i}function vo(){return"3.1.1"}function xo(e,t){return _t(e,t,!1)}function wo(e,t){return _t(e,t,!0)}function So(e,t){const n=q(e);if(!n)return null;const r=pt(ce,t||{});return re(n,r)}function Io(e){e?yo(e):M()}if(typeof document<"u"&&typeof window<"u"){qn();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!Xe(r))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{Jn(M),M()})}function ko(e,t){ct(e,t!==!1)}function Eo(e){ct(e,!0)}at("",Pn);if(typeof document<"u"&&typeof window<"u"){it();const e=window;if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const n in t){const r="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;lt(n,o)||console.error(r)}catch{console.error(r)}}}}const _o={getAPIConfig:ie,setAPIModule:at,sendAPIQuery:dt,setFetch:In,getFetch:kn,listAPIProviders:wn},Co={_api:_o,addAPIProvider:lt,loadIcons:Pe,loadIcon:Hn,iconExists:fn,getIcon:dn,listIcons:an,addIcon:un,addCollection:Xe,replaceIDs:et,calculateSize:he,buildIcon:re,getVersion:vo,renderSVG:xo,renderHTML:wo,renderIcon:So,scan:Io,observe:yt,stopObserving:vt,pauseObserver:Xn,resumeObserver:Zn,enableCache:ko,disableCache:Eo};try{self.Iconify===void 0&&(self.Iconify=Co)}catch{}const To=e=>{const t={};let n=null;return j.forEachBlockletSync(e,r=>{t[r.meta.bundleDid]?n=j.getDisplayName(r,!0):r.meta.bundleDid&&(t[r.meta.bundleDid]=!0)}),n},jo=(e,t,n)=>{const{hostname:r,href:o}=e;if(!t)return o;if(n){const i=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(r);if(!i)return o;const c=i[0],a=((t.site?.domainAliases||[]).map(u=>u.value).filter(Boolean).find(u=>u.endsWith(F.DEFAULT_DID_DOMAIN))||"").replace(`.${F.DEFAULT_DID_DOMAIN}`,"");return a?o.replace(r,`${a}-${c}.${F.DEFAULT_IP_DOMAIN_SUFFIX}`):o}return o.replace(t.meta.bundleDid,t.appPid)};function Po(){const{t:e}=He(),{api:t}=qe(),{blocklet:n}=Qt(),{inService:r}=Ct(),[o,s]=b.useState(!1),[i,c]=b.useState(5),l=n&&n.structVersion!==F.APP_STRUCT_VERSION,a=()=>{try{if(j.isBlockletRunning(n)){J.error(e("blocklet.migrate.tip.running"));return}const f=To(n);if(f){J.error(e("blocklet.migrate.tip.duplicate",{name:f}));return}s(!0)}catch(f){J.error(Ke(f))}},u=()=>{const f=jo(window.location,n,r);setTimeout(()=>{window.location.href=f},5e3),c(5),setInterval(()=>{c(h=>h-1)},1e3)},p=()=>s(!1);return[l&&d.jsxs(Qe,{severity:"warning",style:{margin:"12px 0"},children:[d.jsxs(Y,{sx:{display:"flex",alignItems:"center"},children:[d.jsx(Ge,{variant:"contained",size:"small",color:"primary",onClick:()=>a(),style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),d.jsx("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map(f=>d.jsx(Y,{sx:{display:"flex",alignItems:"center"},children:e(`blocklet.migrate.intro.${f}`)},f))]},"alert"),n&&d.jsx(Tt,{popup:!0,open:o,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:jt(n,!0),title:j.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:p},"connect")]}const Ao=b.lazy(()=>I(()=>import("./overview-DZjSoaFM.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]),import.meta.url)),Do=b.lazy(()=>I(()=>import("./domains-CC4Opwi7.js"),__vite__mapDeps([17,1,2,18,6,19,20,21,22,23,24,25,14,26,27,28,29,5,30,31,32,33,34,10]),import.meta.url)),Oo=b.lazy(()=>I(()=>import("./index-_-mWQ6ov.js"),__vite__mapDeps([35,1,2,36,37,38,39,40,41,42,8,19,43,44,10,45,12,46,47,48,49,50,51,52,53,54,55,6,23,7,5,56,9,11,57,58,59,60,61,62,20,26,63,64,65,66,67,68,69,70,71,14]),import.meta.url)),Lo=b.lazy(()=>I(()=>import("./appearance-Bux4sdxO.js"),__vite__mapDeps([72,1,2,6,71]),import.meta.url)),Bo=b.lazy(()=>I(()=>import("./config-navigation-DVGyxdD_.js"),__vite__mapDeps([73,1,2,12,74,46,75,67,6,59,60,61,76,7,8,36,37,38,39,40,41,42,19,58,62,44,70,49,16,52,53,77,29,78,79,69,26,33,80,51,34]),import.meta.url)),Mo=b.lazy(()=>I(()=>import("./index-yQeeHJJ2.js"),__vite__mapDeps([81,1,2,63,64,65,66,59,60,61,67,68,69,70,38,82,5,44,83,84,85,51,86,43,87,88,89,90,91,55]),import.meta.url)),Ro=b.lazy(()=>I(()=>import("./audit-logs-CpckHt6s.js"),__vite__mapDeps([92,1,2,68,69,70,37,93,94,95,96,82,7,6,8]),import.meta.url)),No=b.lazy(()=>I(()=>import("./index-Ci0V4E2u.js").then(e=>e.i),__vite__mapDeps([97,1,2,63,64,65,66,59,60,61,67,68,69,70,38,44,7,6,8,98,71,99,41,42,19,100,74,26,48,101,56,102,103]),import.meta.url)),Fo=b.lazy(()=>I(()=>import("./index-CXTibO7-.js").then(e=>e.i),__vite__mapDeps([104,1,2,26,105,63,64,65,66,59,60,61,67,68,69,70,38,99,41,42,7,6,8,58,100,74,52,53,96,19,23,90,91,55,44,5,106,39,11,107,108,78,71,20,21,82,98]),import.meta.url)),Vo=b.lazy(()=>I(()=>import("./service-DLwgL4rt.js"),__vite__mapDeps([109,1,2,110,64,65,66,87,61,76,60,91,44,26,20,70,111,43,86,69,49]),import.meta.url)),zo=b.lazy(()=>I(()=>import("./index-DzQWOvtr.js"),__vite__mapDeps([112,1,2,36,37,38,39,40,41,42,8,19,57,6,111,110,64,65,66,87,61,76,60,91,44,26,20,70,43,86,69,49,45,12,46,47,48,50,51,23,99,113,114,78,79,52,53,106,25,115,22,116,117,118,32,119,4,15,16,33,120,3,121,93,94,95,100,74,122,24,123,5,77,124,30,31,71,11,103,83,21,125,7]),import.meta.url)),$o=b.lazy(()=>I(()=>import("./log-Dh6sGyEk.js"),__vite__mapDeps([126,1,2,37,127,41,42,53]),import.meta.url)),Uo=b.lazy(()=>I(()=>import("./runtime-BB_E-r_A.js"),__vite__mapDeps([128,1,2,63,64,65,66,59,60,61,67,68,69,70,38,6,120,129,88,89,24,102,42]),import.meta.url)),Ho=b.lazy(()=>I(()=>import("./traffic-DSdpsMku.js").then(e=>e.t),__vite__mapDeps([85,1,2,51,86,43,87,61,88,89,90,91,65,55]),import.meta.url)),qo=b.lazy(()=>I(()=>import("./index-COhyQV8C.js"),__vite__mapDeps([130,1,2,44,6,71,119,99,41,42,4,15,16,39,33,120,3,5,89,63,64,65,66,59,60,61,67,68,69,70,38,40,57,101]),import.meta.url)),Qo=({children:e})=>e;function Go(){const e=Pt(),{tab:t="overview"}=We(),{did:n,blocklet:r,error:o,client:s,actions:{setBlocklet:i,refreshBlocklet:c}}=Wt(),{refresh:l}=At(),{t:a}=He(),{session:u}=qe(),{data:p}=Dt(),f=Ot(()=>u.user?.role&&Lt.includes(u.user.role),[u]),h=b.useCallback(()=>d.jsx(Ro,{scope:n,blocklets:p}),[n,p]),g=b.useCallback(()=>f?d.jsx(Mo,{blocklet:r}):d.jsx(Gt,{status:403}),[r,f]),y=r?.environments.find(x=>x.key==="BLOCKLET_APP_URL")?.value||window.location.origin,E=x=>Mt(x,y),A=x=>{e(`/blocklets/${n}/${x}`)},w=x=>{x&&i(x),c()},S=!r||Ae(r.status)?[]:j.getAppMissingConfigs(r);let L=null;const v=[{label:a("common.overview"),value:"overview"},{breadcrumbsLabel:a("common.components"),label:d.jsx(Bt,{"data-cy":"blocklet-list",color:"error",variant:"dot",invisible:!S.length,children:a("common.components")}),value:"components"}];if(o)L=d.jsxs(d.Fragment,{children:[d.jsx(Qe,{severity:"error",children:Ke(o)}),d.jsx(Ge,{onClick:()=>c(),children:d.jsx("span",{style:{textDecoration:"underline"},children:a("common.retry")})})]});else if(r){const x={overview:d.jsx(Ao,{}),domains:d.jsx(Do,{}),configuration:Oo,appearance:Lo,navigation:Bo,services:Vo,members:d.jsx(Fo,{type:"blocklet",createPassportSvg:E}),passports:No,components:zo,"audit-logs":h,notifications:g,logs:$o,runtime:d.jsx(Uo,{}),traffic:d.jsx(Ho,{client:s,did:n}),didSpaces:d.jsx(qo,{})};t==="configuration"&&Ae(r.status)&&A("overview"),v.push({label:a("common.domains"),value:"domains"}),v.push({label:a("common.members"),value:"members"}),v.push({label:a("team.member.passports"),value:"passports"}),v.push({label:a("common.configuration"),value:"configuration"}),v.push({label:a("common.appearance"),value:"appearance"}),v.push({label:a("common.auditLogs"),value:"audit-logs"}),f&&v.push({label:a("common.notificationRecords"),value:"notifications"}),r&&r.children?.length&&r.structVersion===F.APP_STRUCT_VERSION&&v.push({label:a("common.logs"),value:"logs"}),v.push({label:a("common.configNavigation"),value:"navigation"}),v.push({label:a("common.runtime"),value:"runtime"}),v.push({label:a("common.traffic"),value:"traffic"}),v.push({label:a("storage.spaces.title"),value:"didSpaces"}),j.getBlockletServices(r).length&&v.splice(2,0,{label:a("blocklet.services"),value:"services"});const le=x[t]||x.overview;L=d.jsxs(Ht,{type:"components",children:[!j.isExternalBlocklet(r)&&d.jsx(zt,{tabs:v,current:t,onChange:A,scrollButtons:"auto"}),d.jsx("div",{className:"page-content",children:d.jsx(b.Suspense,{fallback:d.jsx(De,{relative:"parent",children:d.jsx(Oe,{})}),children:b.isValidElement(le)?le:d.jsx(le,{blocklet:r,onUpdate:w,createPassportSvg:E})})})]})}else L=d.jsx(De,{relative:"parent",children:d.jsx(Oe,{})});const m=()=>{},k=({action:x,error:ae})=>{if(ae){J.error(ae.message);return}x==="remove"?(l(),e("/blocklets")):c()},_=v.find(x=>x.value===t),B=r?Jt:Qo,T=$t(_,r?.meta?.title||a("common.blocklets"));return d.jsxs(B,{teamDid:n,children:[T,d.jsxs(Ko,{children:[d.jsxs(Zt,{separator:"›","aria-label":"breadcrumb",className:"page-breadcrumb",children:[d.jsx(Rt,{color:"textSecondary",to:"/blocklets",children:a("common.blocklets")}),d.jsx(Nt,{to:`/blocklets/${n}/overview`,style:x=>x?{color:"inherit"}:{},children:a("common.detail")}),d.jsx(ue,{color:"textSecondary",children:_?_.breadcrumbsLabel||_.label:""})]}),d.jsxs(ue,{component:"div",className:"page-header",children:[d.jsxs(ue,{component:"h2",variant:"h4",className:"page-title",color:"textPrimary",children:[r?d.jsx(Ft,{blocklet:r,style:{marginRight:16}}):null,r?d.jsxs(Y,{sx:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1},children:[d.jsx(Y,{children:j.getDisplayName(r)}),r?.status!=="unknown"&&d.jsx(Ut,{size:"12px",status:r.status,source:r.source,progress:r.progress})]}):`${a("common.blocklet")} ${a("common.detail")}`]}),d.jsx(Xt,{permission:"mutate_blocklets",children:!!r&&!j.isExternalBlocklet(r)&&d.jsx(qt,{className:"page-actions",blocklet:r,onStart:m,onComplete:k,variant:"group",source:"blocklet-detail"})})]}),d.jsx(Po,{}),L]})]})}function fr(){const{did:e}=We();return e?d.jsx(Kt,{did:e,children:d.jsx(Go,{})}):null}const Ko=Vt.main`
13
13
  .page-header {
14
14
  display: flex;
15
15
  justify-content: space-between;
@@ -0,0 +1,28 @@
1
+ import{c1 as W,c0 as V,r as y,c2 as G,j as e,h6 as Ut,b9 as K,c4 as X,c5 as Z,b_ as Je,h7 as Te,aw as ve,aG as Ye,f9 as et,y as ae,h8 as Ft,z as Nt,fc as tt,d4 as zt,V as S,cw as $t,F as ne,h9 as Ht,$ as Ot,K as x,C as N,b8 as _t,T,Z as de,q as ue,f as Q,E as me,Q as E,b2 as nt,ha as Wt,aZ as ot,O as Vt,bo as L,e as Gt,b as Ue,ae as pe,H as M,o,v as fe,aT as Kt,X as st,aF as Xt,aa as Zt,b3 as Qt,h as Jt,b4 as Fe,b1 as Yt,bF as en,h2 as it,b5 as rt,cp as Ce,aW as O,J as tn,dK as at,hb as nn,b6 as on,fI as lt,gv as ke,s as sn,hc as ct,hd as rn,he as an,dz as dt,hf as ln,be as cn,hg as dn,L as un,hh as H,_ as z,i as le,hi as mn,aX as pn,dJ as oe,I as Ne,t as fn,aS as xn,hj as hn}from"./index-CrQaw0BF.js";import{u as gn}from"./useAsync-ByRujkOO.js";import{u as J}from"./blocklet-D4otp8nH.js";import{w as ut}from"./permission-B8q324ya.js";import{D as mt}from"./Delete-8zGU1uok.js";import{A as yn}from"./actions-GoWYDb6F.js";import{D as Dn}from"./delete-confirm-DfVCfmx_.js";import{D as ze}from"./status-CW0QYGeF.js";import{S as bn,V as jn}from"./VerifiedUser-CigB8Fdv.js";import{C as vn}from"./CardContent-C5NwNVow.js";import{A as Cn}from"./Add-BqehlncY.js";import{A as wn}from"./CallMerge-BeazH3jg.js";import{a as Rn}from"./toLower-CXuGXHcC.js";import{u as Sn}from"./use-mobile-DqSNKVo1.js";import{v as Tn}from"./index-DAMZQWKn.js";import{g as kn,p as $e}from"./util-DvscRj0S.js";import{O as An}from"./OpenInNew-CCra_7I0.js";import{C as In}from"./click-to-copy-CcQkmf0B.js";import{L as pt}from"./LoadingButton-BCz99YbN.js";import{u as Pn}from"./index-BcmOVFqY.js";import"./is-path-prefix-equal-Dr7EUhi7.js";import"./engine-KybwGdMh.js";function qn(t){return W("MuiTable",t)}V("MuiTable",["root","stickyHeader"]);const Mn=t=>{const{classes:n,stickyHeader:s}=t;return Z({root:["root",s&&"stickyHeader"]},qn,n)},En=K("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:s}=t;return[n.root,s.stickyHeader&&n.stickyHeader]}})(Je(({theme:t})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...t.typography.body2,padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:n})=>n.stickyHeader,style:{borderCollapse:"separate"}}]}))),He="table",Ln=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTable"}),{className:i,component:r=He,padding:c="normal",size:l="medium",stickyHeader:d=!1,...p}=a,f={...a,component:r,padding:c,size:l,stickyHeader:d},u=Mn(f),g=y.useMemo(()=>({padding:c,size:l,stickyHeader:d}),[c,l,d]);return e.jsx(Ut.Provider,{value:g,children:e.jsx(En,{as:r,role:r===He?null:"table",ref:s,className:X(u.root,i),ownerState:f,...p})})});function Bn(t){return W("MuiTableBody",t)}V("MuiTableBody",["root"]);const Un=t=>{const{classes:n}=t;return Z({root:["root"]},Bn,n)},Fn=K("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),Nn={variant:"body"},Oe="tbody",zn=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTableBody"}),{className:i,component:r=Oe,...c}=a,l={...a,component:r},d=Un(l);return e.jsx(Te.Provider,{value:Nn,children:e.jsx(Fn,{className:X(d.root,i),as:r,ref:s,role:r===Oe?null:"rowgroup",ownerState:l,...c})})});function $n(t){return W("MuiTableContainer",t)}V("MuiTableContainer",["root"]);const Hn=t=>{const{classes:n}=t;return Z({root:["root"]},$n,n)},On=K("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),_n=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTableContainer"}),{className:i,component:r="div",...c}=a,l={...a,component:r},d=Hn(l);return e.jsx(On,{ref:s,as:r,className:X(d.root,i),ownerState:l,...c})});function Wn(t){return W("MuiTableHead",t)}V("MuiTableHead",["root"]);const Vn=t=>{const{classes:n}=t;return Z({root:["root"]},Wn,n)},Gn=K("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),Kn={variant:"head"},_e="thead",Xn=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTableHead"}),{className:i,component:r=_e,...c}=a,l={...a,component:r},d=Vn(l);return e.jsx(Te.Provider,{value:Kn,children:e.jsx(Gn,{as:r,className:X(d.root,i),ref:s,role:r===_e?null:"rowgroup",ownerState:l,...c})})});function Zn(t){return W("MuiTableRow",t)}const We=V("MuiTableRow",["root","selected","hover","head","footer"]),Qn=t=>{const{classes:n,selected:s,hover:a,head:i,footer:r}=t;return Z({root:["root",s&&"selected",a&&"hover",i&&"head",r&&"footer"]},Zn,n)},Jn=K("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:s}=t;return[n.root,s.head&&n.head,s.footer&&n.footer]}})(Je(({theme:t})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${We.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${We.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:ve(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:ve(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}))),Ve="tr",Ge=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTableRow"}),{className:i,component:r=Ve,hover:c=!1,selected:l=!1,...d}=a,p=y.useContext(Te),f={...a,component:r,hover:c,selected:l,head:p&&p.variant==="head",footer:p&&p.variant==="footer"},u=Qn(f);return e.jsx(Jn,{as:r,ref:s,className:X(u.root,i),role:r===Ve?null:"row",ownerState:f,...d})}),Yn=Ye(e.jsx("path",{d:"M19 15v4H5v-4zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1M7 18.5c-.82 0-1.5-.67-1.5-1.5s.68-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5M19 5v4H5V5zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1M7 8.5c-.82 0-1.5-.67-1.5-1.5S6.18 5.5 7 5.5s1.5.68 1.5 1.5S7.83 8.5 7 8.5"})),eo=Ye(e.jsx("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm-1 6h2v2h-2zm0 4h2v6h-2z"})),to=et({});to.interceptors.request.use(t=>{const n=window.blocklet?window.blocklet.prefix:"/";return t.baseURL=n||"",t.url=ae("/api",String(t.url)),t.timeout=2e5,t.params=t.params||{},new URLSearchParams(t.url.split("?")[1]).has("locale")||(t.params.locale=Ft()),t},t=>Promise.reject(t));const ft=(...t)=>et(...t),no=(t,n)=>n?t?[t,...Array.isArray(n)?n:[n]]:n:t,oo=(t,{width:n=600,height:s=700,name:a="did-domain:popup"}={})=>{const i=window.screenX+(window.innerWidth-n)/2,r=window.screenY+(window.innerHeight-s)/2,c=[`left=${i}`,`top=${r}`,`width=${n}`,`height=${s}`,"resizable=no","scrollbars=yes","status=yes","popup=yes"],l=window.open("",a,c.join(","));if(l===null)throw new Error("Failed to open popup");return l.location.href=Nt(t,{opener:window.location.origin}),l},so="z2qaGosS3rZ7m5ttP3Nd4V4qczR9TryTcRV4p",xt=async t=>{if(!t||!t?.trim())return null;const n=ft(),s=new URL(t);s.pathname="__blocklet__.js",s.searchParams.set("type","json");const{data:a}=await n.get(s.toString()),i=a?.componentMountPoints?.find(d=>d.did===so),r=new URL(t);r.pathname=i?.mountPoint;const c=r.toString(),l=ae(c,"/api");return{base:c,api:l}},io=tt({embed:{iconTip:"Click to view subscription details"},buy:{button:{title:"Buy DID Domain"},status:{inProgress:"Please wait while we are processing your request, the domain will be automatically resolved to the current app after the purchase...",success:"Purchase completed!"},error:{failedToCreateSession:"Failed to create session"}}}),ro=tt({embed:{iconTip:"点击查看订阅详情"},buy:{button:{title:"购买 DID 域名"},status:{inProgress:"请稍等,我们正在处理您的请求,购买域名后会自动解析到当前的应用...",success:"购买完成!"},error:{failedToCreateSession:"创建会话失败"}}}),ao={zh:ro,en:io},lo=async({didDomainURL:t,delegatee:n,delegateePk:s})=>{const a=await xt(t);if(!a)return null;const i=ft({baseURL:a.api}),{data:r}=await i.post("/payment/session",{delegatee:n,delegateePk:s});return{sessionId:r.sessionId,baseURL:a.base}};function co({delegatee:t,delegateePk:n,didDomainURL:s,locale:a,title:i="",onSuccess:r=()=>{},...c}){const{t:l}=S(),[d,p]=Pn({currentState:1}),f=y.useRef(null),u=$t(async()=>{const m=await lo({didDomainURL:s,delegatee:t,delegateePk:n});return m},{debounceWait:500,debounceLeading:!0,debounceTrailing:!1,debounceMaxWait:3e3,refreshDeps:[],onError(m){console.error(m)}}),g=ne(m=>{m.data.type==="didDomain.success"&&(r?.({nftDid:m.data?.nftDid,domain:m.data?.domain,chainHost:m.data?.chainHost}),f.current?.close(),f.current=null,p({currentState:4}),setTimeout(()=>{p({currentState:8})},2e3))});Ht(()=>{try{window.removeEventListener("message",g),f.current?.close(),f.current=null}catch(m){console.warn("Failed to close popup",m)}});const b=ne(()=>{p({currentState:1})}),h=ne(()=>{if(p({currentState:2}),!u.data){console.error("Failed to create session");return}j({sessionId:u.data.sessionId,baseURL:u.data.baseURL})}),j=ne(({sessionId:m,baseURL:w})=>{window.addEventListener("message",g);const C=new URL(w);C.searchParams.set("sessionId",m),C.searchParams.set("locale",a),C.searchParams.set("embed","1"),f.current=oo(C.toString());const q=setInterval(()=>{f.current?.closed&&(clearInterval(q),b())},1e3);return()=>clearInterval(q)});return e.jsxs(e.Fragment,{children:[e.jsx(pt,{loading:u.loading,onClick:h,variant:"contained",startIcon:e.jsx(bn,{}),...c,children:i||l("buy.button.title")}),e.jsxs(Ot,{fullWidth:!0,maxWidth:"xs",open:d.currentState>1&&d.currentState<8,onClose:b,children:[!u.error&&e.jsxs(x,{sx:{display:"flex",alignItems:"center",flexDirection:"column",gap:2},children:[d.currentState===2&&e.jsx(N,{size:50}),d.currentState===4&&e.jsx(_t,{sx:{color:"primary.main",fontSize:"5rem"}}),d.currentState===2&&e.jsx(T,{children:l("buy.status.inProgress")}),d.currentState===4&&e.jsx(T,{children:l("buy.status.success")})]}),u.error&&e.jsx(de,{severity:"error",children:l("buy.error.failedToCreateSession")})]})]})}function uo(t){return e.jsx(zt,{locale:t.locale,translations:ao,children:e.jsx(co,{...t})})}function mo({nftDid:t,didDomainURL:n,locale:s,sx:a={}}){const{t:i}=S(),[r,c]=ue({safeIframeRef:null,popoverAnchorEl:null}),l=y.useRef(null),d=Q(),p=me(d.breakpoints.down("md")),f=h=>{c({popoverAnchorEl:h.currentTarget})},u=()=>{c({popoverAnchorEl:null})},g=gn(async()=>{const h=await xt(n);return h?h.base:null});if(!g.value)return null;if(g.loading)return e.jsx(N,{});const b=ae(g.value,`/embed/domain?nft-did=${t}&locale=${s}`);return e.jsxs(e.Fragment,{children:[e.jsx(E,{title:i("embed.iconTip"),children:e.jsx(x,{component:"img",src:ae(n,"/.well-known/service/blocklet/logo"),alt:"logo",onClick:f,sx:[{width:16,height:16},no({cursor:"pointer"},a)]})}),e.jsx(nt,{id:"popover-info",open:!!r.popoverAnchorEl,anchorEl:r.popoverAnchorEl,onClose:u,anchorOrigin:{vertical:"bottom",horizontal:"right"},children:e.jsx("iframe",{ref:l,title:i("common.subscription"),width:p?"320px":"400px",height:"350px",style:{border:0,display:"block"},src:b})})]})}const po=t=>["waiting","creating","renewaling"].includes(t);function ht({siteId:t,domain:n,onAdd:s=()=>{},children:a=null,did:i,issuing:r=!1,setIssuing:c=()=>{}}){const{t:l}=S(),[d,p]=y.useState(!1),{inService:f}=L(),[u,g]=y.useState(null),{api:b,ws:{useSubscription:h}}=L(),{mode:j,actions:{refreshDomainStatus:m}}=J(),w=Gt(async()=>{const{cert:A}=await b.findCertificateByDomain({input:{domain:n,did:i}});return A}),C=(A,R)=>{A.domain===n&&(c(!1),p(!1),f&&j!=="setup"&&(R==="success"?M.success(l("setup.domain.genCertSuccess",{domain:A.domain})):R==="error"&&M.error(l("setup.domain.genCertFailed",{domain:A.domain,message:A.message}))))};if(y.useEffect(()=>{w.loading||c(po(w.value?.status))},[w.loading,w.value?.status,c]),h(Ue.BlockletEvents.certError,A=>C(A,"error")),h(Ue.BlockletEvents.certIssued,A=>{w.retry(),m(A.domain),C(A,"success")}),w.loading||w.value?.status==="normal")return"";const q=()=>{p(!1),g(null)},U=async()=>{p(!0);try{await b.issueLetsEncryptCert({input:{siteId:t,domain:n,did:i,inBlockletSetup:j==="setup"}}),s(),c(!0)}catch(A){console.error(A),c(!1)}finally{p(!1),g(null)}},B={title:l("router.cert.genLetsEncryptCert.title"),description:e.jsxs("div",{children:[e.jsx(de,{severity:"success",children:l("router.cert.genLetsEncryptCert.dnsTip")}),l("router.cert.genLetsEncryptCert.description")]}),confirm:l("common.confirm"),onConfirm:U,onCancel:q},F=A=>{A.stopPropagation(),g(B)};return e.jsxs(e.Fragment,{children:[r?e.jsx(E,{title:l("router.cert.issuing"),children:e.jsx(N,{size:13,style:{fontSize:"13px"}})}):a({loading:d,open:F}),u&&e.jsx(pe,{color:"primary",title:u.title,description:u.description,confirm:u.confirm,params:u.params,onConfirm:u.onConfirm,onCancel:u.onCancel})]})}ht.propTypes={domain:o.string.isRequired,did:o.string.isRequired,siteId:o.string.isRequired,onAdd:o.func,children:o.any,issuing:o.bool,setIssuing:o.func};function gt({domain:t,domainStatus:n,did:s,onAdd:a=()=>{},children:i=null,issuing:r=!1,setIssuing:c=()=>{},...l}){return Wt(t)||!ot(t)||Vt(n)||n?.isHttps?"":e.jsx(ht,{...l,domain:t,did:s,onAdd:a,issuing:r,setIssuing:c,children:i})}gt.propTypes={domain:o.string.isRequired,domainStatus:o.shape({isHttps:o.bool}).isRequired,did:o.string.isRequired,onAdd:o.func,children:o.any,issuing:o.bool,setIssuing:o.func};function yt({id:t,domain:n,children:s=null,teamDid:a="",onDelete:i=null}){const{t:r}=S(),[c,l]=y.useState(!1),[d,p]=y.useState(null),{api:f}=L(),u=()=>{l(!1),p(null)},g=async()=>{l(!0);try{await f.deleteDomainAlias({input:{id:t,domainAlias:n,teamDid:a}}),i?.(),await Kt(2e3)}catch(j){M.error(j.message)}finally{p(null),l(!1)}},b={keyName:n,title:r("router.domainAlias.delete.title"),description:r("router.domainAlias.delete.description",{domain:n}),confirmPlaceholder:r("router.domainAlias.delete.confirmPlaceholder",{domain:n}),confirm:r("common.delete"),onConfirm:g,onCancel:u},h=j=>{j.stopPropagation(),p(b)};return e.jsxs(e.Fragment,{children:[typeof s=="function"?s({loading:c,open:h}):e.jsxs(fe,{edge:"end",onClick:h,size:"small",className:"rule-action",color:"error","data-cy":"action-delete-domain-alias",children:[c?e.jsx(N,{size:16}):e.jsx(mt,{style:{fontSize:16}}),r("common.delete")]}),d&&e.jsx(Dn,{keyName:d.keyName,title:d.title,description:d.description,confirmPlaceholder:d.confirmPlaceholder,confirm:d.confirm,params:d.params,onConfirm:d.onConfirm,onCancel:d.onCancel})]})}yt.propTypes={id:o.string.isRequired,domain:o.string.isRequired,children:o.any,teamDid:o.string,onDelete:o.func};function Dt({site:t,domain:n,blocklet:s,onDelete:a=()=>{}}){const{t:i}=S(),r=n.value===window.location.hostname;return e.jsx(yn,{"data-cy":"domain-actions",size:"large",actions:[({close:c})=>e.jsx(yt,{id:t.id,domain:n.value,teamDid:s?.meta?.did,onDelete:a,children:({open:l})=>e.jsx(E,{title:r?i("blocklet.router.currentDomainTip"):"",children:e.jsx("span",{children:e.jsxs(st,{disabled:n.isProtected||r,dense:!0,onClick:d=>{c(),l(d)},"data-cy":"action-toggle-block",children:[e.jsx(Xt,{style:{minWidth:24,marginRight:8},children:e.jsx(mt,{})}),e.jsx(Zt,{primary:i("common.delete")})]},"remove")})})})]})}Dt.propTypes={site:o.object.isRequired,domain:o.object.isRequired,blocklet:o.object.isRequired,onDelete:o.func};const xe=o.shape({href:o.string,accessibility:o.shape({loading:o.bool,accessible:o.bool}),domainStatus:o.shape({isHttps:o.bool,matchedCert:o.object}),dns:o.shape({resolved:o.bool,ip:o.string})});function bt({certificate:t={}}){const[n,s]=y.useState(null),a=L(),{t:i,locale:r}=S(),c=p=>{s(p.currentTarget)},l=()=>{s(null)},d=!!n;return e.jsxs(e.Fragment,{children:[e.jsx(jn,{"aria-owns":d?"mouse-over-popover":void 0,onMouseEnter:c,onMouseLeave:l,style:{color:"#44cdc6",fontSize:"1em",cursor:"pointer"}}),e.jsx(nt,{id:"mouse-over-popover",style:{pointerEvents:"none"},open:d,anchorEl:n,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:l,disableRestoreFocus:!0,children:e.jsx(Qt,{children:e.jsxs(vn,{style:{display:"flex"},children:[e.jsx("div",{children:e.jsx("img",{src:`${a.imgPrefix}/https-certificate-icon.png`,alt:"certificate icon",style:{maxHeight:"100%",maxWidth:"100%"}})}),e.jsxs(T,{component:"div",style:{marginLeft:"16px"},children:[e.jsx(T,{component:"div",style:{fontWeight:"bold"},children:t.domain}),e.jsx(T,{component:"div",children:`${i("common.issuer")}: ${Jt(t,"issuer.commonName","")}`}),e.jsx(T,{component:"div",children:`${i("router.cert.issuedOn")}: ${Fe(t.validFrom,r)}`}),e.jsx(T,{component:"div",children:`${i("router.cert.expiryOn")}: ${Fe(t.validTo,r)}`})]})]})})})]})}bt.propTypes={certificate:o.object};function ce({domain:t,filters:n=["domain","http"]}){const{t:s}=S(),{value:a,domainStatus:i}=t;if(!ot(a))return null;let r=null,c=null;const{isHttps:l,matchedCert:d}=i,{dns:{ip:p,isDnsResolved:f,isCnameMatch:u}={}}=i,g=f&&u;Yt(a)||(g||p==="127.0.0.1"?r=e.jsx(E,{title:s("router.domain.verify.ok"),children:e.jsx(ze,{color:"success"})}):r=e.jsx(E,{title:s("router.domain.verify.notResolved"),children:e.jsx(ze,{color:"error"})})),g?l?c=e.jsx(bt,{certificate:d}):c=e.jsx(E,{title:s("router.domain.https.bad"),children:e.jsx(eo,{style:{color:"#D0021B",fontSize:"1em",cursor:"pointer"}})}):c=e.jsx(E,{title:s("router.domain.verify.notResolved"),children:e.jsx(Yn,{style:{color:"#D0021B",fontSize:"1em",cursor:"pointer"}})});const b=n.map(h=>h==="domain"?r:h==="http"?c:null);return y.createElement(y.Fragment,null,...b)}ce.propTypes={domain:xe.isRequired,filters:o.array};const fo=ut(Ae,"mutate_blocklets"),xo=ut(Ae,"",en);function ho(t){const{inService:n}=L(),{blocklet:s,loadingRuntimeInfo:a}=J();let i=fo;return n&&(i=xo),e.jsx(i,{...t,blocklet:s,inService:n,loadingRuntimeInfo:a})}const Ke="nft-domain";function Ae({hasPermission:t=!1,blocklet:n,loadingRuntimeInfo:s=!1,inService:a=!1,showAllDomains:i=!1,updateBlockletDomainAliases:r=()=>{},systemTips:c=null}){const{t:l}=S(),d=me(m=>m.breakpoints.down("md")),p=y.useMemo(()=>{let m=t;return it(n)&&(m=m&&a),m},[t,a,n]),{site:f}=n,u=y.useMemo(()=>rt(n.site?.domainAliases),[n.site?.domainAliases]),g=y.useMemo(()=>u.filter(m=>!Ce.isCustomDomain(m.value)),[u]),b=y.useMemo(()=>u.filter(m=>Ce.isCustomDomain(m.value)),[u]),h=y.useMemo(()=>b.filter(m=>m.type!==Ke),[b]),j=y.useMemo(()=>b.filter(m=>m.type===Ke),[b]);return e.jsxs(e.Fragment,{children:[e.jsxs(O,{sx:{gap:3},children:[!!j.length&&e.jsx(re,{title:l("common.didDomains"),description:l("common.didDomainsDescription"),domains:j,hasMutatePermission:p,blocklet:n,site:f,mobile:d,showAllDomains:i,updateBlockletDomainAliases:r}),!!h.length&&e.jsx(re,{title:l("common.manualDomains"),description:l("common.manualDomainsDescription"),domains:h,hasMutatePermission:p,blocklet:n,site:f,mobile:d,showAllDomains:i,updateBlockletDomainAliases:r}),!!g.length&&e.jsxs(x,{children:[c,e.jsx(re,{title:l("common.systemDomains"),description:l("common.systemDomainsDescription"),domains:g,hasMutatePermission:p,blocklet:n,site:f,mobile:d,updateBlockletDomainAliases:r})]})]}),!u.length&&(s?e.jsx(N,{size:16}):e.jsx(tn,{children:l("common.empty")}))]})}Ae.propTypes={hasPermission:o.bool,blocklet:o.object.isRequired,loadingRuntimeInfo:o.bool,inService:o.bool.isRequired,showAllDomains:o.bool,updateBlockletDomainAliases:o.func,systemTips:o.node};function se({children:t=null}){return e.jsx(x,{component:"span",sx:{verticalAlign:"bottom"},children:t})}se.propTypes={children:o.node};function we({domain:t,children:n,suffix:s=null,...a}){const{t:i,locale:r}=S(),c=Q(),{href:l,accessibility:d,value:p}=t,f=y.useCallback(()=>e.jsx(lt,{content:ke(p),locale:r,style:{marginLeft:"4px",color:c.palette.text.secondary,fontSize:"0.8em"}}),[p,r,c]);return!d||d.loading?e.jsxs(De,{component:"span",...a,children:[e.jsx(E,{title:void 0,placement:"top-end",children:e.jsx(x,{component:"span",children:n})}),f(),e.jsx(se,{children:s}),e.jsx(E,{title:i("blocklet.router.checkUrlAccessible"),placement:"top-end",children:e.jsx(x,{component:"span",className:"status",children:e.jsx(N,{size:13,style:{fontSize:"13px"}})})})]}):d.accessible?e.jsxs(De,{component:"span",...a,children:[e.jsx(x,{component:"a",href:l,target:"_blank",rel:"noopener noreferrer",sx:{color:t.loading?"text.disabled":void 0},children:e.jsx(E,{title:void 0,placement:"top-end",children:e.jsx(x,{component:"span",children:n})})}),f(),e.jsx(se,{children:s})]}):e.jsxs(De,{component:"span",...a,children:[e.jsx(E,{title:i("blocklet.router.urlInaccessible"),placement:"top-end",children:e.jsx(x,{component:"span",children:n})}),!t.loading&&f(),e.jsx(se,{children:s})]})}we.propTypes={domain:xe.isRequired,children:o.any.isRequired,suffix:o.node};const De=sn(x)`
2
+ display: inline-block;
3
+ vertical-align: middle;
4
+
5
+ & > span {
6
+ line-height: 24px;
7
+ }
8
+
9
+ &,
10
+ & > * {
11
+ color: ${({theme:t})=>t.palette.text.primary};
12
+ font-size: 18px;
13
+ }
14
+
15
+ &,
16
+ & > * {
17
+ word-break: break-all;
18
+ }
19
+
20
+ svg {
21
+ vertical-align: text-top;
22
+ }
23
+
24
+ .status {
25
+ margin-left: 8px;
26
+ font-size: 13px;
27
+ }
28
+ `;function Re({hasMutatePermission:t,site:n,domain:s,blocklet:a,onDelete:i}){return t&&!s.isProtected?e.jsx(Dt,{site:n,domain:s,blocklet:a,onDelete:i}):null}Re.propTypes={hasMutatePermission:o.bool.isRequired,site:o.object.isRequired,domain:xe.isRequired,blocklet:o.object.isRequired,onDelete:o.func.isRequired};function ie({siteId:t,domain:n,blocklet:s,hasMutatePermission:a}){const{info:i}=L(),{t:r,locale:c}=S(),[l,d]=y.useState(!1);return e.jsxs(x,{sx:{display:"flex",justifyContent:"flex-start",alignItems:"center",gap:.5,button:{lineHeight:1}},children:[n.type==="nft-domain"&&e.jsx(mo,{locale:c,nftDid:n.nftDid,didDomainURL:i.nftDomainUrl}),e.jsx(x,{sx:{display:"flex",mt:"-1px"},children:e.jsx(ce,{domain:n,filters:["http"]},`${n.value}-http`)}),a&&n.canGenerateCertificate&&e.jsx(gt,{siteId:t,domain:n.value,domainStatus:n.domainStatus,did:s.meta.did,issuing:l,setIssuing:d,children:({open:p})=>e.jsx(fe,{sx:{padding:0},size:"small",onClick:f=>p(f),children:r("router.cert.genLetsEncryptCert.title")})})]})}ie.propTypes={siteId:o.string.isRequired,domain:xe.isRequired,blocklet:o.object.isRequired,hasMutatePermission:o.bool.isRequired};function re({title:t,description:n,domains:s=[],hasMutatePermission:a,blocklet:i,site:r,mobile:c,showAllDomains:l=!1,updateBlockletDomainAliases:d=()=>{}}){const[p,f]=y.useState(!1),u=y.useMemo(()=>l||p?s:s.slice(0,1),[s,p,l]),g=s.length>1,b=h=>a&&!h.isProtected;return e.jsx(at,{elevation:0,sx:{p:3,pb:l?3:1.5,display:"flex",alignItems:"flex-start",gap:3,borderRadius:2,border:"1px solid",borderColor:"divider",transition:"box-shadow 0.2s ease-in-out"},children:e.jsxs(O,{sx:{width:1},children:[e.jsxs(x,{sx:{mb:1.5},children:[e.jsx(T,{variant:"h6",children:t}),e.jsx(T,{sx:{fontSize:12,color:"text.secondary",mt:.5},children:n})]}),u.map((h,j)=>e.jsxs(O,{children:[j!==0&&e.jsx(x,{sx:{my:.75,width:1,height:"1px"}}),!c&&e.jsxs(x,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[e.jsxs(x,{sx:{display:"flex",alignItems:"center",gap:1},children:[e.jsx(x,{sx:{height:28,display:"flex",alignItems:"center"},children:e.jsx(ce,{domain:h,filters:["domain"]},`${h.value}-domain`)}),e.jsxs(x,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",gap:.5,svg:{width:"1em",height:"1em"},img:{width:"0.9em",height:"0.9em"}},children:[e.jsx(we,{domain:h,target:"_blank",children:h.value}),e.jsx(x,{sx:{mt:"2px"},children:e.jsx(ie,{siteId:i.site?.id,domain:h,blocklet:i,hasMutatePermission:a})})]})]}),e.jsx(x,{sx:{button:{padding:0}},children:e.jsx(Re,{hasMutatePermission:a,site:r,domain:h,blocklet:i,onDelete:()=>d(h,"delete")})})]}),c&&e.jsxs(x,{sx:{display:"flex",flexDirection:"column"},children:[e.jsxs(x,{sx:{display:"flex",justifyContent:"flex-start",gap:1},children:[e.jsx(x,{sx:{height:28,display:"flex",alignItems:"center"},children:e.jsx(ce,{domain:h,filters:["domain"]},`${h.value}-domain`)}),e.jsx(we,{domain:h,target:"_blank",suffix:b(h)?null:e.jsx(x,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"space-between",svg:{width:"1em",height:"1rem"},img:{width:"0.9rem",height:"0.9rem"}},children:e.jsx(ie,{siteId:i.site?.id,domain:h,blocklet:i,hasMutatePermission:a})}),children:h.value})]}),b(h)&&e.jsxs(x,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",ml:"18px"},children:[e.jsx(x,{sx:{display:"flex",alignItems:"center"},children:e.jsx(ie,{siteId:i.site?.id,domain:h,blocklet:i,hasMutatePermission:a})}),e.jsx(x,{sx:{button:{padding:0}},children:e.jsx(Re,{hasMutatePermission:a,site:r,domain:h,blocklet:i,onDelete:()=>d(h,"delete")})})]})]})]},h.value)),g&&!l&&e.jsx(fe,{onClick:()=>f(!p),sx:{p:0,mt:.5,alignSelf:"center"},children:p?e.jsx(nn,{}):e.jsx(on,{})})]})})}re.propTypes={title:o.string.isRequired,description:o.string.isRequired,domains:o.array.isRequired,hasMutatePermission:o.bool.isRequired,blocklet:o.object.isRequired,site:o.object.isRequired,mobile:o.bool.isRequired,showAllDomains:o.bool,updateBlockletDomainAliases:o.func};const jt=y.createContext({}),{Provider:go,Consumer:Qo}=jt;function yo({children:t}){const[n,s]=ue({domain:"",error:null}),{locale:a}=S(),i={error:n.error,domain:n.domain,setError:r=>{s({error:r})},setDomain:r=>{const c=ke(r),l=ct(c,a);s({domain:c,error:l})}};return e.jsx(go,{value:{value:i},children:t})}function Do(){const{value:t}=y.useContext(jt);return t}var be,Xe;function bo(){if(Xe)return be;Xe=1;const{joinURL:t}=rn(),n=an(),s="z2qaGosS3rZ7m5ttP3Nd4V4qczR9TryTcRV4p";return be={DID_DOMAIN_SERVICE_DID:s,getDidDomainServiceURL:async i=>{if(!i||!i?.trim())return null;const r=new URL(i);r.pathname="__blocklet__.js",r.searchParams.set("type","json");const{data:c}=await n.get(r.toString()),l=c?.componentMountPoints?.find(u=>u.did===s),d=new URL(i);d.pathname=l?.mountPoint;const p=d.toString(),f=t(p,"/api");return{base:p,api:f,domain:t(f,"/domains")}}},be}var jo=bo();const vo=dt(Rn),Co=dt(ln);var je,Ze;function wo(){if(Ze)return je;Ze=1;const t=vo,n=Co;function s(i){return!i||typeof i!="string"?!1:i.split(".").length===2}return je={isTopLevelDomain:s,formatTopLevelDidDomain:i=>{const r=t(n(i));return r&&(s(r)?`www.${r}`:r)}},je}var Qe=wo(),Ro=dn();const So=cn(Ro);function vt({domain:t="",resolvedTarget:n,...s}){const{t:a,locale:i}=S();return e.jsxs(x,{sx:{backgroundColor:"rgb(236, 251, 253)",borderColor:"rgb(236, 251, 253)",borderRadius:"8px",padding:"12px"},...s,children:[e.jsxs(x,{sx:{display:"flex",flexWrap:"wrap"},children:[a("router.domain.setup.tipStart"),t&&e.jsx(x,{sx:{mx:.5,color:"primary.main",fontWeight:"fontWeightBold"},children:t}),a("router.domain.setup.tipEnd"),":"]}),e.jsxs(O,{sx:{gap:.5,"&>div":{mb:0},marginTop:"12px"},children:[e.jsx(Se,{label:a("router.domain.setup.recordType"),value:"CNAME",locale:i}),e.jsx(Se,{label:a("router.domain.setup.recordValue"),value:n,locale:i})]})]})}vt.propTypes={domain:o.string,resolvedTarget:o.string.isRequired};function Se({locale:t,label:n,value:s}){const a=me(r=>r.breakpoints.down("md")),i=Q();return e.jsx(Tn,{name:n,nameWidth:120,children:e.jsxs(x,{sx:{display:"flex",alignItems:"center",lineHeight:1},children:[e.jsx(T,{component:"span",sx:[{color:"primary.main",overflow:"auto"},a?{maxWidth:"95%",wordWrap:"break-word"}:{wordWrap:"break-word"}],children:s}),e.jsx(lt,{content:s,locale:t,style:{marginLeft:"4px",color:i.palette.text.secondary}})]})})}Se.propTypes={locale:o.string.isRequired,label:o.string.isRequired,value:o.string.isRequired};function Ct({children:t=null,href:n="",sx:s=null,showIcon:a=!1,...i}){const r=Q();return e.jsxs(un,{href:n,target:"_blank",...i,sx:{display:"inline-flex",alignItems:"center",color:"text.primary",":hover":{color:r.palette.primary.main},...s},children:[t,a&&e.jsx(An,{fontSize:"small",sx:{ml:"4px",fontSize:"1rem"}})]})}Ct.propTypes={children:o.node,sx:o.object,href:o.string,showIcon:o.bool};function wt({records:t}){return e.jsx(_n,{component:x,sx:{".MuiTableCell-root":{color:"text.primary"}},children:e.jsxs(Ln,{children:[e.jsx(Xn,{children:e.jsxs(Ge,{children:[e.jsx(H,{children:"Type"}),e.jsx(H,{children:"Name"}),e.jsx(H,{children:"Data"})]})}),e.jsx(zn,{children:t.map(n=>e.jsxs(Ge,{children:[e.jsx(H,{children:n.type}),e.jsx(H,{children:n.name}),e.jsx(H,{sx:{wordBreak:"break-word"},children:e.jsx(In,{children:n.data})})]},n.name))})]})})}wt.propTypes={records:o.array.isRequired};function Rt({url:t,domain:n=""}){const{t:s}=S();return e.jsxs(x,{sx:{display:"flex",flexDirection:"column",gap:2},children:[e.jsxs(x,{sx:{display:"flex",flexDirection:"column",gap:1},children:[e.jsx(T,{component:"h3",variant:"h6",children:s("setting.dns.step1Title")}),e.jsxs(T,{component:"section",children:[s("setting.dns.step1Desc1"),e.jsx(Ct,{href:"https://lookup.icann.org/",target:"_blank",children:"ICANN"})]})]}),e.jsxs(x,{sx:{display:"flex",flexDirection:"column",gap:1},children:[e.jsx(T,{component:"h3",variant:"h6",children:s("setting.dns.step2Title",{url:t})}),e.jsx(T,{component:"section",children:s("setting.dns.step2Desc")})]}),e.jsxs(x,{sx:{display:"flex",flexDirection:"column",gap:1},children:[e.jsx(T,{component:"h3",variant:"h6",children:s("setting.dns.step3Title")}),e.jsx(T,{component:"section",children:s("setting.dns.step3Desc")}),e.jsx(wt,{records:[{type:"CNAME",name:kn(t),data:n}]})]})]})}Rt.propTypes={url:o.string.isRequired,domain:o.string};const St=y.createContext();function To({children:t}){const{t:n}=S(),{api:s}=L(),{blocklet:a}=J(),[i,r]=y.useState(null),c=y.useCallback(async(p,f)=>{try{const u=await s.getBlocklet({input:{domain:p,did:a?.meta?.did}});return u?.blocklet?new Promise(g=>{r({title:n("setting.domain.conflictTitle",{domain:p}),description:n("setting.domain.conflictDescription",{domain:p,title:u.blocklet.meta?.title,from:u.blocklet.meta?.title,to:a.meta?.title}),confirm:n("common.confirm"),cancel:n("common.cancel"),onConfirm:async()=>{r(null),await f?.(),g(!0)},onCancel:()=>{r(null),g(!1)}})}):!1}catch(u){return console.error(u),M.error(z(u)),!1}},[s,n,a]),l=y.useCallback(()=>i?e.jsx(pe,{title:i.title,description:i.description,confirm:i.confirm,cancel:i.cancel,onConfirm:i.onConfirm,onCancel:i.onCancel}):null,[i]),d=y.useMemo(()=>({checkConflict:c}),[c]);return e.jsxs(St.Provider,{value:d,children:[t,l()]})}function Tt(){return y.useContext(St)}function kt({siteId:t,teamDid:n,cnameDomain:s,defaultCustomDomain:a="",onInputDomain:i=oe,appId:r="",appPk:c="",onSuccess:l=oe,onError:d=oe,disabled:p=!1,autoFocus:f=!0,inBlockletSetup:u=!1,shouldCheckDomain:g=!1,onStateChange:b=oe,currentIp:h="",...j}){const{t:m,locale:w}=S(),{api:C,info:q}=L(),{blocklet:U}=J(),B=Do(),F=Q(),A=Sn({key:"sm"}),[R,P]=ue({submittingDomain:!1,domain:a,error:null,type:q?.nftDomainUrl?"nftDomain":"inputDomain",showDnsTip:!1}),he=le.getDisplayName(U),{checkConflict:Ie}=Tt(),{connectApi:Mt}=mn(),Y=pn(()=>jo.getDidDomainServiceURL(q?.nftDomainUrl));if(q?.nftDomainUrl&&Y.loading)return e.jsx(x,{...j,onError:d,currentIp:h,children:e.jsx(Ne,{relative:"parent",children:e.jsx(N,{})})});if(Y.error)return e.jsx(x,{...j,onError:d,currentIp:h,children:e.jsx(Ne,{relative:"parent",children:Y.error.message})});const Pe=Y.value,ge=()=>{P({invalidDNSDomain:null})},qe=async(D,v,k=!1)=>{await C.addDomainAlias({input:{id:t,domainAlias:D,teamDid:n,inBlockletSetup:!0,force:k}}),P({submittingDomain:!1}),l({domain:D,type:"inputDomain",canGenerateCertificate:!v})},ye=async(D,v)=>{b(m("setting.domain.addingDomain"));try{await qe(D,v,!1)}catch(k){if(console.error(k),ge(),z(k).includes("already exists")){await Ie(D,()=>qe(D,v,!0));return}M.error(z(k))}},Me=async({domain:D,type:v,nftDid:k,chainHost:_})=>{try{if(!g){if(v==="inputDomain"){await ye(D);return}l({domain:D,type:v,nftDid:k,chainHost:_});return}b({text:m("setting.domain.checkingResolvable")});let I=30;const $=3e3,Bt=I*1e3/$,Be=setInterval(()=>{if(I<=0){clearInterval(Be);return}b({text:`${m("setting.domain.checkingResolvable")} (${I--}s)`})},1e3),ee=await So(()=>C.getDomainDNS({input:{teamDid:n,domain:D}}),{retries:Bt,minTimeout:$,maxTimeout:$,onFailedAttempt:console.error});if(clearInterval(Be),!ee?.isDnsResolved||!ee?.isCnameMatch){let te="";if(ee.isDnsResolved?ee.isCnameMatch||(te=m("setting.domain.resolvedAddressError",{domain:D,curDomain:s})):te=m("setting.domain.cannotResolve",{domain:D}),v==="nftDomain"){M.error(te),l({domain:D,type:"nftDomain"});return}b({text:""}),P({invalidDNSDomain:{domain:D,error:te},domain:D,type:v,submittingDomain:!1});return}if(v==="nftDomain"){l({domain:D,type:"nftDomain"});return}await ye(D)}catch(I){M.error(I.message),b({text:""}),P({submittingDomain:!1})}},Ee=async({domain:D,nftDid:v,chainHost:k,force:_})=>{let I=$e(D);I=Qe.formatTopLevelDidDomain(I),P({submittingDomain:!0}),await C.addDomainAlias({input:{id:t,type:"nft-domain",domainAlias:I,nftDid:v,chainHost:k,teamDid:n,inBlockletSetup:u,force:_}});const $="nftDomain";P({type:$}),await Me({domain:I,type:$,nftDid:v,chainHost:k})},Et=async({domain:D,nftDid:v,chainHost:k,isDomainOwner:_})=>{if(!_){const I=m("router.domainAlias.addDomainNFT.authorizeFailed");M.error(I),P({submittingDomain:!1,error:I});return}try{await Ee({domain:D,nftDid:v,chainHost:k,force:!1})}catch(I){if(console.error(I),ge(),z(I).includes("already exists")){await Ie(D,()=>Ee({domain:D,nftDid:v,chainHost:k,force:!0}));return}M.error(z(I))}finally{P({submittingDomain:!1})}},Lt=async()=>{try{P({submittingDomain:!0});const D=$e(R.domain);if(q.nftDomainUrl&&Pe&&(await C.isDidDomain({input:{domain:D}})).value===!0){Mt.openPopup({prefix:"/connect-to-did-domain",custom:!0,locale:w,extraParams:{provider:"wallet",delegatee:r,delegateePk:c,domain:Qe.formatTopLevelDidDomain(R.domain),appName:he,appUrl:le.getAppUrl(U)},message:{title:m("router.domainAlias.addDomainNFT.connect.title",{appName:he}),scan:m("router.domainAlias.addDomainNFT.connect.scan",{domain:R.domain,appName:he}),confirm:m("router.domainAlias.addDomainNFT.connect.confirm"),success:m("router.domainAlias.addDomainNFT.connect.success")},onSuccess:Et,onError:k=>{M.error(k.message),P({submittingDomain:!1})},onClose:()=>P({submittingDomain:!1}),checkTimeout:60*5e3},{baseUrl:Pe.base,locale:w});return}await Me({domain:D,type:R.type})}catch(D){P({submittingDomain:!1}),B.setError(D.message)}},Le=B.error||R.error;return e.jsx(x,{...j,onError:d,currentIp:h,children:e.jsxs(x,{sx:{display:"flex",flexDirection:"column",justifyContent:"flex-start",gap:"1em"},children:[e.jsxs(x,{component:"form",onSubmit:D=>{D.preventDefault(),Lt()},sx:{display:"flex",flexDirection:"column",gap:"8px"},children:[e.jsx(T,{sx:{color:F.palette.text.primary},children:m("router.domainAlias.add.tips")}),e.jsx(fn,{sx:{display:"block",marginTop:"8px"},label:m("router.domainAlias.add.domainDescription"),helperText:R.type==="inputDomain"&&Le||m("router.domainAlias.add.helperText"),fullWidth:!0,disabled:p,value:R.domain,size:"small",variant:"outlined",error:!!Le&&R.type==="inputDomain",onChange:D=>{const v=ke(D.target?.value);B.setDomain(v);const k=ct(v,w);P({domain:v,error:k,type:"inputDomain"}),i({domain:v,error:k,type:"inputDomain"})},autoFocus:f,onBlur:()=>{B.domain||(P({error:null}),B.setError(null))},slotProps:{htmlInput:{"data-cy":"domain-name-input"}}}),e.jsx(x,{sx:{width:"100%",display:"flex",justifyContent:"flex-end"},children:e.jsx(pt,{"data-cy":"confirm-add-domain",fullWidth:A,variant:"contained",loading:R.submittingDomain,type:"submit",children:m("common.add")})}),e.jsx(x,{sx:{backgroundColor:()=>ve(F.palette.primary.light,.1),borderRadius:"8px",padding:"12px"},children:m("router.domainAlias.addDomainNFT.topLevelDidDomainHint")}),e.jsxs(x,{sx:{cursor:"pointer",fontSize:"14px",display:"flex",alignItems:"center",gap:"4px",lineHeight:1,color:F.palette.primary.main},onClick:()=>P({showDnsTip:!R.showDnsTip}),children:[e.jsx(xn,{fontSize:"1em"}),m("router.domainAlias.showTipHint")]}),R.showDnsTip&&e.jsx(vt,{domain:R.domain,resolvedTarget:s,style:{marginTop:"4px"}})]}),R.invalidDNSDomain&&e.jsx(pe,{maxWidth:"md",title:m("common.reminder"),description:e.jsxs(O,{sx:{gap:2},children:[e.jsx(de,{severity:"warning",children:m("setting.domain.invalidDNSReminder",{error:R.invalidDNSDomain.error})}),e.jsx(Rt,{url:R.domain,domain:s})]}),color:"primary",confirm:m("setting.domain.continueAdd"),onConfirm:()=>ye(R.invalidDNSDomain.domain,R.type),onCancel:ge})]})})}kt.propTypes={siteId:o.string.isRequired,currentIp:o.string,teamDid:o.string.isRequired,cnameDomain:o.string.isRequired,defaultCustomDomain:o.string,onInputDomain:o.func,onSuccess:o.func,appId:o.string,appPk:o.string,disabled:o.bool,autoFocus:o.bool,inBlockletSetup:o.bool,shouldCheckDomain:o.bool,onStateChange:o.func,onError:o.func};function At({id:t,children:n=null,title:s="",teamDid:a="",systemDomains:i,appId:r=null,appPk:c,onAddDomainAlias:l=()=>{},...d}){const{t:p}=S(),[f,u]=ue({loading:!1,confirmSetting:null}),g=i.find(m=>Ce.isDidDomain(m)),b=()=>{u({loading:!1,confirmSetting:null})},h={title:s||p("router.domainAlias.add.title"),description:function(w,C,q){return e.jsx(kt,{siteId:t,teamDid:a,cnameDomain:g,onSuccess:U=>{l(U),u({confirmSetting:null})},onInputDomain:({domain:U,type:B,error:F})=>{C({...w,domain:U,type:B,__disableConfirm:!!F}),q(F)},appId:r,appPk:c,...d})},confirm:p("common.confirm"),cancel:p("common.cancel"),params:{domain:"",__disableConfirm:!0},onCancel:b},j=m=>{m.stopPropagation(),u({confirmSetting:h})};return e.jsxs(e.Fragment,{children:[typeof n=="function"?n({loading:f.loading,open:j}):e.jsxs(st,{onClick:j,className:"rule-action","data-cy":"action-add-domain-alias",children:[f.loading?e.jsx(N,{size:16}):e.jsx(wn,{style:{fontSize:18,marginRight:5}}),p("router.domainAlias.add.title")]}),f.confirmSetting&&e.jsx(pe,{title:f.confirmSetting.title,description:f.confirmSetting.description,confirm:f.confirmSetting.confirm,cancel:f.confirmSetting.cancel,params:f.confirmSetting.params,onCancel:f.confirmSetting.onCancel,showConfirm:!1,showCancel:!0,displayError:!1,color:"primary",loading:f.loading,maxWidth:"sm"})]})}At.propTypes={id:o.string.isRequired,children:o.any,title:o.string,teamDid:o.string,systemDomains:o.arrayOf(o.string).isRequired,appId:o.string,appPk:o.string.isRequired,onAddDomainAlias:o.func};function ko(t){return e.jsx(yo,{children:e.jsx(At,{...t})})}function It({appId:t,appPk:n,siteId:s,inBlockletSetup:a,teamDid:i,sx:r={},onAddDomainAlias:c=()=>{},...l}){const{api:d,info:p}=L(),{locale:f,t:u}=S(),{checkConflict:g}=Tt(),b=async({domain:j,nftDid:m,chainHost:w,force:C})=>{const q={id:s,type:"nft-domain",domainAlias:j,nftDid:m,chainHost:w,teamDid:i,inBlockletSetup:a,force:C};return await d.addDomainAlias({input:q}),q},h=async({domain:j,nftDid:m,chainHost:w})=>{try{const C=await b({domain:j,nftDid:m,chainHost:w,force:!1});c(C)}catch(C){if(z(C).includes("already exists")){await g(j,()=>b({domain:j,nftDid:m,chainHost:w,force:!0}));return}M.error(z(C))}};return e.jsx(uo,{delegatee:t,delegateePk:n,didDomainURL:p.nftDomainUrl,onSuccess:h,locale:f,variant:"outlined",sx:r,title:u("router.domainAlias.addDomainNFT.buy"),...l})}It.propTypes={appId:o.string.isRequired,appPk:o.string.isRequired,siteId:o.string.isRequired,inBlockletSetup:o.bool.isRequired,teamDid:o.string.isRequired,sx:o.object,onAddDomainAlias:o.func};function Pt({blocklet:t,bugDidDomainProps:n={},connectDomainProps:s={},updateBlockletDomainAliases:a=()=>{}}){const{t:i}=S(),{info:r}=L(),c=me(u=>u.breakpoints.down("md")),{site:l}=t,d=y.useMemo(()=>rt(t.site?.domainAliases),[t.site?.domainAliases]),p=t.environments?.find(u=>u.key==="BLOCKLET_APP_PK")?.value,f=hn(d);return e.jsx(To,{children:e.jsx(qt,{action:e.jsxs(x,{sx:{display:"flex",alignItems:c?"stretch":"center",flexDirection:c?"column":"row",gap:1},children:[r.nftDomainUrl&&e.jsx(It,{variant:"contained",appId:t.appPid,appPk:p,siteId:l.id,inBlockletSetup:!1,teamDid:t.meta.did,onAddDomainAlias:u=>{const g={value:u.domainAlias,isProtected:!1,type:u.type,nftDid:u.nftDid,chainHost:u.chainHost,accessibility:{loading:!0}};a(g)},...n}),e.jsx(ko,{id:l.id,title:i("common.connectExistingDomain"),teamDid:t.meta?.did,appId:t.appPid,appPk:p,systemDomains:f?.map(u=>u.value),onAddDomainAlias:u=>{const g={value:u.domain,isProtected:!1,type:u.type==="nftDomain"?"nft-domain":"",nftDid:u.nftDid,chainHost:u.chainHost,accessibility:{loading:!0},canGenerateCertificate:u.canGenerateCertificate===void 0?!0:u.canGenerateCertificate};a(g)},...s,children:({open:u})=>e.jsxs(fe,{variant:"outlined",sx:{borderColor:"#ddd",color:"text.primary","&:hover":{bgcolor:g=>g.palette.primary.main,color:g=>g.palette.primary.contrastText}},"data-cy":"add-domain-alias",onClick:u,disabled:le.isInProgress(t.status),children:[e.jsx(Cn,{style:{fontSize:"1.3em",marginRight:4}}),i("common.connectExistingDomain")]})})]})})})}Pt.propTypes={blocklet:o.object.isRequired,bugDidDomainProps:o.object,connectDomainProps:o.object,updateBlockletDomainAliases:o.func};function qt({action:t}){const{t:n}=S();return e.jsxs(at,{elevation:0,sx:{p:3,borderRadius:2,border:"1px solid",borderColor:"divider"},children:[e.jsx(x,{sx:{display:"flex",alignItems:"center",gap:2},children:e.jsxs(x,{sx:{flex:1,width:0,mb:1.5},children:[e.jsx(T,{variant:"h6",children:n("common.bugOrConnectDomain")}),e.jsx(T,{sx:{fontSize:12,color:"text.secondary",mt:.5},children:n("common.bugOrConnectDomainTip")})]})}),t]})}qt.propTypes={action:o.element.isRequired};function Jo(){const{blocklet:t,actions:{updateBlockletDomainAliases:n}}=J(),{inService:s}=L(),{t:a}=S(),i=y.useMemo(()=>{let r=!0;return it(t)&&(r=r&&s),r},[s,t]);return e.jsxs(x,{component:O,sx:{gap:3,maxWidth:820},children:[e.jsxs(e.Fragment,{children:[le.isAccessible(t.status)===!1&&e.jsx(de,{severity:"warning",children:a("blocklet.router.noRunning")}),i&&e.jsx(Pt,{blocklet:t,updateBlockletDomainAliases:n,connectDomainProps:{shouldCheckDomain:!0}})]}),e.jsx(ho,{showAllDomains:!0,updateBlockletDomainAliases:n})]})}export{Jo as default};
@@ -1,4 +1,4 @@
1
- import{aF as Ne,j as Y,eA as ke,s as ge,bf as $e,fE as je,dJ as Le,o as te,r as he,fF as ze,fG as Ke,bo as Ie,E as qe,bB as Ve,be as Ge,V as Ye,J as pe,v as De,C as Re,$ as Xe,O as Je,S as Ze,Q as Qe,bg as et,H as tt}from"./index-DtJVzdtH.js";import{B as it}from"./ButtonGroup-Um1mBtyg.js";const rt=Ne(Y.jsx("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}));var we={exports:{}},Ae;function st(){return Ae||(Ae=1,function(X,q){(function(j,V){X.exports=V()})(globalThis,()=>(()=>{var j={4567:function(A,s,o){var d=this&&this.__decorate||function(e,r,a,f){var p,g=arguments.length,l=g<3?r:f===null?f=Object.getOwnPropertyDescriptor(r,a):f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,r,a,f);else for(var m=e.length-1;m>=0;m--)(p=e[m])&&(l=(g<3?p(l):g>3?p(r,a,l):p(r,a))||l);return g>3&&l&&Object.defineProperty(r,a,l),l},_=this&&this.__param||function(e,r){return function(a,f){r(a,f,e)}};Object.defineProperty(s,"__esModule",{value:!0}),s.AccessibilityManager=void 0;const n=o(9042),c=o(9924),u=o(844),v=o(4725),h=o(2585),t=o(3656);let i=s.AccessibilityManager=class extends u.Disposable{constructor(e,r,a,f){super(),this._terminal=e,this._coreBrowserService=a,this._renderService=f,this._rowColumns=new WeakMap,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=this._coreBrowserService.mainDocument.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=this._coreBrowserService.mainDocument.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let p=0;p<this._terminal.rows;p++)this._rowElements[p]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[p]);if(this._topBoundaryFocusListener=p=>this._handleBoundaryFocus(p,0),this._bottomBoundaryFocusListener=p=>this._handleBoundaryFocus(p,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=this._coreBrowserService.mainDocument.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new c.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize(p=>this._handleResize(p.rows))),this.register(this._terminal.onRender(p=>this._refreshRows(p.start,p.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(p=>this._handleChar(p))),this.register(this._terminal.onLineFeed(()=>this._handleChar(`
1
+ import{aG as Ne,j as Y,eA as ke,s as ge,bf as $e,fE as je,dJ as Le,o as te,r as he,fF as ze,fG as Ke,bo as Ie,E as qe,bB as Ve,be as Ge,V as Ye,K as pe,v as De,C as Re,$ as Xe,R as Je,U as Ze,X as Qe,bg as et,H as tt}from"./index-CrQaw0BF.js";import{B as it}from"./ButtonGroup-CiscHb2s.js";const rt=Ne(Y.jsx("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}));var we={exports:{}},Ae;function st(){return Ae||(Ae=1,function(X,q){(function(j,V){X.exports=V()})(globalThis,()=>(()=>{var j={4567:function(A,s,o){var d=this&&this.__decorate||function(e,r,a,f){var p,g=arguments.length,l=g<3?r:f===null?f=Object.getOwnPropertyDescriptor(r,a):f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,r,a,f);else for(var m=e.length-1;m>=0;m--)(p=e[m])&&(l=(g<3?p(l):g>3?p(r,a,l):p(r,a))||l);return g>3&&l&&Object.defineProperty(r,a,l),l},_=this&&this.__param||function(e,r){return function(a,f){r(a,f,e)}};Object.defineProperty(s,"__esModule",{value:!0}),s.AccessibilityManager=void 0;const n=o(9042),c=o(9924),u=o(844),v=o(4725),h=o(2585),t=o(3656);let i=s.AccessibilityManager=class extends u.Disposable{constructor(e,r,a,f){super(),this._terminal=e,this._coreBrowserService=a,this._renderService=f,this._rowColumns=new WeakMap,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=this._coreBrowserService.mainDocument.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=this._coreBrowserService.mainDocument.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let p=0;p<this._terminal.rows;p++)this._rowElements[p]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[p]);if(this._topBoundaryFocusListener=p=>this._handleBoundaryFocus(p,0),this._bottomBoundaryFocusListener=p=>this._handleBoundaryFocus(p,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=this._coreBrowserService.mainDocument.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new c.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize(p=>this._handleResize(p.rows))),this.register(this._terminal.onRender(p=>this._refreshRows(p.start,p.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(p=>this._handleChar(p))),this.register(this._terminal.onLineFeed(()=>this._handleChar(`
2
2
  `))),this.register(this._terminal.onA11yTab(p=>this._handleTab(p))),this.register(this._terminal.onKey(p=>this._handleKey(p.key))),this.register(this._terminal.onBlur(()=>this._clearLiveRegion())),this.register(this._renderService.onDimensionsChange(()=>this._refreshRowsDimensions())),this.register((0,t.addDisposableDomListener)(document,"selectionchange",()=>this._handleSelectionChange())),this.register(this._coreBrowserService.onDprChange(()=>this._refreshRowsDimensions())),this._refreshRows(),this.register((0,u.toDisposable)(()=>{this._accessibilityContainer.remove(),this._rowElements.length=0}))}_handleTab(e){for(let r=0;r<e;r++)this._handleChar(" ")}_handleChar(e){this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==e&&(this._charsToAnnounce+=e):this._charsToAnnounce+=e,e===`
3
3
  `&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=n.tooMuchOutput)))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0}_handleKey(e){this._clearLiveRegion(),new RegExp("\\p{Control}","u").test(e)||this._charsToConsume.push(e)}_refreshRows(e,r){this._liveRegionDebouncer.refresh(e,r,this._terminal.rows)}_renderRows(e,r){const a=this._terminal.buffer,f=a.lines.length.toString();for(let p=e;p<=r;p++){const g=a.lines.get(a.ydisp+p),l=[],m=g?.translateToString(!0,void 0,void 0,l)||"",E=(a.ydisp+p+1).toString(),x=this._rowElements[p];x&&(m.length===0?(x.innerText=" ",this._rowColumns.set(x,[0,1])):(x.textContent=m,this._rowColumns.set(x,l)),x.setAttribute("aria-posinset",E),x.setAttribute("aria-setsize",f))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(e,r){const a=e.target,f=this._rowElements[r===0?1:this._rowElements.length-2];if(a.getAttribute("aria-posinset")===(r===0?"1":`${this._terminal.buffer.lines.length}`)||e.relatedTarget!==f)return;let p,g;if(r===0?(p=a,g=this._rowElements.pop(),this._rowContainer.removeChild(g)):(p=this._rowElements.shift(),g=a,this._rowContainer.removeChild(p)),p.removeEventListener("focus",this._topBoundaryFocusListener),g.removeEventListener("focus",this._bottomBoundaryFocusListener),r===0){const l=this._createAccessibilityTreeNode();this._rowElements.unshift(l),this._rowContainer.insertAdjacentElement("afterbegin",l)}else{const l=this._createAccessibilityTreeNode();this._rowElements.push(l),this._rowContainer.appendChild(l)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(r===0?-1:1),this._rowElements[r===0?1:this._rowElements.length-2].focus(),e.preventDefault(),e.stopImmediatePropagation()}_handleSelectionChange(){if(this._rowElements.length===0)return;const e=document.getSelection();if(!e)return;if(e.isCollapsed)return void(this._rowContainer.contains(e.anchorNode)&&this._terminal.clearSelection());if(!e.anchorNode||!e.focusNode)return void console.error("anchorNode and/or focusNode are null");let r={node:e.anchorNode,offset:e.anchorOffset},a={node:e.focusNode,offset:e.focusOffset};if((r.node.compareDocumentPosition(a.node)&Node.DOCUMENT_POSITION_PRECEDING||r.node===a.node&&r.offset>a.offset)&&([r,a]=[a,r]),r.node.compareDocumentPosition(this._rowElements[0])&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_FOLLOWING)&&(r={node:this._rowElements[0].childNodes[0],offset:0}),!this._rowContainer.contains(r.node))return;const f=this._rowElements.slice(-1)[0];if(a.node.compareDocumentPosition(f)&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_PRECEDING)&&(a={node:f,offset:f.textContent?.length??0}),!this._rowContainer.contains(a.node))return;const p=({node:m,offset:E})=>{const x=m instanceof Text?m.parentNode:m;let L=parseInt(x?.getAttribute("aria-posinset"),10)-1;if(isNaN(L))return console.warn("row is invalid. Race condition?"),null;const b=this._rowColumns.get(x);if(!b)return console.warn("columns is null. Race condition?"),null;let R=E<b.length?b[E]:b.slice(-1)[0]+1;return R>=this._terminal.cols&&(++L,R=0),{row:L,column:R}},g=p(r),l=p(a);if(g&&l){if(g.row>l.row||g.row===l.row&&g.column>=l.column)throw new Error("invalid range");this._terminal.select(g.column,g.row,(l.row-g.row)*this._terminal.cols-g.column+l.column)}}_handleResize(e){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let r=this._rowContainer.children.length;r<this._terminal.rows;r++)this._rowElements[r]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[r]);for(;this._rowElements.length>e;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){const e=this._coreBrowserService.mainDocument.createElement("div");return e.setAttribute("role","listitem"),e.tabIndex=-1,this._refreshRowDimensions(e),e}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){this._accessibilityContainer.style.width=`${this._renderService.dimensions.css.canvas.width}px`,this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let e=0;e<this._terminal.rows;e++)this._refreshRowDimensions(this._rowElements[e])}}_refreshRowDimensions(e){e.style.height=`${this._renderService.dimensions.css.cell.height}px`}};s.AccessibilityManager=i=d([_(1,h.IInstantiationService),_(2,v.ICoreBrowserService),_(3,v.IRenderService)],i)},3614:(A,s)=>{function o(c){return c.replace(/\r?\n/g,"\r")}function d(c,u){return u?"\x1B[200~"+c+"\x1B[201~":c}function _(c,u,v,h){c=d(c=o(c),v.decPrivateModes.bracketedPasteMode&&h.rawOptions.ignoreBracketedPasteMode!==!0),v.triggerDataEvent(c,!0),u.value=""}function n(c,u,v){const h=v.getBoundingClientRect(),t=c.clientX-h.left-10,i=c.clientY-h.top-10;u.style.width="20px",u.style.height="20px",u.style.left=`${t}px`,u.style.top=`${i}px`,u.style.zIndex="1000",u.focus()}Object.defineProperty(s,"__esModule",{value:!0}),s.rightClickHandler=s.moveTextAreaUnderMouseCursor=s.paste=s.handlePasteEvent=s.copyHandler=s.bracketTextForPaste=s.prepareTextForTerminal=void 0,s.prepareTextForTerminal=o,s.bracketTextForPaste=d,s.copyHandler=function(c,u){c.clipboardData&&c.clipboardData.setData("text/plain",u.selectionText),c.preventDefault()},s.handlePasteEvent=function(c,u,v,h){c.stopPropagation(),c.clipboardData&&_(c.clipboardData.getData("text/plain"),u,v,h)},s.paste=_,s.moveTextAreaUnderMouseCursor=n,s.rightClickHandler=function(c,u,v,h,t){n(c,u,v),t&&h.rightClickSelect(c),u.value=h.selectionText,u.select()}},7239:(A,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.ColorContrastCache=void 0;const d=o(1505);s.ColorContrastCache=class{constructor(){this._color=new d.TwoKeyMap,this._css=new d.TwoKeyMap}setCss(_,n,c){this._css.set(_,n,c)}getCss(_,n){return this._css.get(_,n)}setColor(_,n,c){this._color.set(_,n,c)}getColor(_,n){return this._color.get(_,n)}clear(){this._color.clear(),this._css.clear()}}},3656:(A,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.addDisposableDomListener=void 0,s.addDisposableDomListener=function(o,d,_,n){o.addEventListener(d,_,n);let c=!1;return{dispose:()=>{c||(c=!0,o.removeEventListener(d,_,n))}}}},3551:function(A,s,o){var d=this&&this.__decorate||function(i,e,r,a){var f,p=arguments.length,g=p<3?e:a===null?a=Object.getOwnPropertyDescriptor(e,r):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(i,e,r,a);else for(var l=i.length-1;l>=0;l--)(f=i[l])&&(g=(p<3?f(g):p>3?f(e,r,g):f(e,r))||g);return p>3&&g&&Object.defineProperty(e,r,g),g},_=this&&this.__param||function(i,e){return function(r,a){e(r,a,i)}};Object.defineProperty(s,"__esModule",{value:!0}),s.Linkifier=void 0;const n=o(3656),c=o(8460),u=o(844),v=o(2585),h=o(4725);let t=s.Linkifier=class extends u.Disposable{get currentLink(){return this._currentLink}constructor(i,e,r,a,f){super(),this._element=i,this._mouseService=e,this._renderService=r,this._bufferService=a,this._linkProviderService=f,this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this.register(new c.EventEmitter),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this.register(new c.EventEmitter),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this.register((0,u.getDisposeArrayDisposable)(this._linkCacheDisposables)),this.register((0,u.toDisposable)(()=>{this._lastMouseEvent=void 0,this._activeProviderReplies?.clear()})),this.register(this._bufferService.onResize(()=>{this._clearCurrentLink(),this._wasResized=!0})),this.register((0,n.addDisposableDomListener)(this._element,"mouseleave",()=>{this._isMouseOut=!0,this._clearCurrentLink()})),this.register((0,n.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,n.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,n.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_handleMouseMove(i){this._lastMouseEvent=i;const e=this._positionFromMouseEvent(i,this._element,this._mouseService);if(!e)return;this._isMouseOut=!1;const r=i.composedPath();for(let a=0;a<r.length;a++){const f=r[a];if(f.classList.contains("xterm"))break;if(f.classList.contains("xterm-hover"))return}this._lastBufferCell&&e.x===this._lastBufferCell.x&&e.y===this._lastBufferCell.y||(this._handleHover(e),this._lastBufferCell=e)}_handleHover(i){if(this._activeLine!==i.y||this._wasResized)return this._clearCurrentLink(),this._askForLink(i,!1),void(this._wasResized=!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,i)||(this._clearCurrentLink(),this._askForLink(i,!0))}_askForLink(i,e){this._activeProviderReplies&&e||(this._activeProviderReplies?.forEach(a=>{a?.forEach(f=>{f.link.dispose&&f.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=i.y);let r=!1;for(const[a,f]of this._linkProviderService.linkProviders.entries())e?this._activeProviderReplies?.get(a)&&(r=this._checkLinkProviderResult(a,i,r)):f.provideLinks(i.y,p=>{if(this._isMouseOut)return;const g=p?.map(l=>({link:l}));this._activeProviderReplies?.set(a,g),r=this._checkLinkProviderResult(a,i,r),this._activeProviderReplies?.size===this._linkProviderService.linkProviders.length&&this._removeIntersectingLinks(i.y,this._activeProviderReplies)})}_removeIntersectingLinks(i,e){const r=new Set;for(let a=0;a<e.size;a++){const f=e.get(a);if(f)for(let p=0;p<f.length;p++){const g=f[p],l=g.link.range.start.y<i?0:g.link.range.start.x,m=g.link.range.end.y>i?this._bufferService.cols:g.link.range.end.x;for(let E=l;E<=m;E++){if(r.has(E)){f.splice(p--,1);break}r.add(E)}}}}_checkLinkProviderResult(i,e,r){if(!this._activeProviderReplies)return r;const a=this._activeProviderReplies.get(i);let f=!1;for(let p=0;p<i;p++)this._activeProviderReplies.has(p)&&!this._activeProviderReplies.get(p)||(f=!0);if(!f&&a){const p=a.find(g=>this._linkAtPosition(g.link,e));p&&(r=!0,this._handleNewLink(p))}if(this._activeProviderReplies.size===this._linkProviderService.linkProviders.length&&!r)for(let p=0;p<this._activeProviderReplies.size;p++){const g=this._activeProviderReplies.get(p)?.find(l=>this._linkAtPosition(l.link,e));if(g){r=!0,this._handleNewLink(g);break}}return r}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(i){if(!this._currentLink)return;const e=this._positionFromMouseEvent(i,this._element,this._mouseService);e&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,e)&&this._currentLink.link.activate(i,this._currentLink.link.text)}_clearCurrentLink(i,e){this._currentLink&&this._lastMouseEvent&&(!i||!e||this._currentLink.link.range.start.y>=i&&this._currentLink.link.range.end.y<=e)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,u.disposeArray)(this._linkCacheDisposables))}_handleNewLink(i){if(!this._lastMouseEvent)return;const e=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);e&&this._linkAtPosition(i.link,e)&&(this._currentLink=i,this._currentLink.state={decorations:{underline:i.link.decorations===void 0||i.link.decorations.underline,pointerCursor:i.link.decorations===void 0||i.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,i.link,this._lastMouseEvent),i.link.decorations={},Object.defineProperties(i.link.decorations,{pointerCursor:{get:()=>this._currentLink?.state?.decorations.pointerCursor,set:r=>{this._currentLink?.state&&this._currentLink.state.decorations.pointerCursor!==r&&(this._currentLink.state.decorations.pointerCursor=r,this._currentLink.state.isHovered&&this._element.classList.toggle("xterm-cursor-pointer",r))}},underline:{get:()=>this._currentLink?.state?.decorations.underline,set:r=>{this._currentLink?.state&&this._currentLink?.state?.decorations.underline!==r&&(this._currentLink.state.decorations.underline=r,this._currentLink.state.isHovered&&this._fireUnderlineEvent(i.link,r))}}}),this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(r=>{if(!this._currentLink)return;const a=r.start===0?0:r.start+1+this._bufferService.buffer.ydisp,f=this._bufferService.buffer.ydisp+1+r.end;if(this._currentLink.link.range.start.y>=a&&this._currentLink.link.range.end.y<=f&&(this._clearCurrentLink(a,f),this._lastMouseEvent)){const p=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);p&&this._askForLink(p,!1)}})))}_linkHover(i,e,r){this._currentLink?.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(e,!0),this._currentLink.state.decorations.pointerCursor&&i.classList.add("xterm-cursor-pointer")),e.hover&&e.hover(r,e.text)}_fireUnderlineEvent(i,e){const r=i.range,a=this._bufferService.buffer.ydisp,f=this._createLinkUnderlineEvent(r.start.x-1,r.start.y-a-1,r.end.x,r.end.y-a-1,void 0);(e?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(f)}_linkLeave(i,e,r){this._currentLink?.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(e,!1),this._currentLink.state.decorations.pointerCursor&&i.classList.remove("xterm-cursor-pointer")),e.leave&&e.leave(r,e.text)}_linkAtPosition(i,e){const r=i.range.start.y*this._bufferService.cols+i.range.start.x,a=i.range.end.y*this._bufferService.cols+i.range.end.x,f=e.y*this._bufferService.cols+e.x;return r<=f&&f<=a}_positionFromMouseEvent(i,e,r){const a=r.getCoords(i,e,this._bufferService.cols,this._bufferService.rows);if(a)return{x:a[0],y:a[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(i,e,r,a,f){return{x1:i,y1:e,x2:r,y2:a,cols:this._bufferService.cols,fg:f}}};s.Linkifier=t=d([_(1,h.IMouseService),_(2,h.IRenderService),_(3,v.IBufferService),_(4,h.ILinkProviderService)],t)},9042:(A,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.tooMuchOutput=s.promptLabel=void 0,s.promptLabel="Terminal input",s.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(A,s,o){var d=this&&this.__decorate||function(h,t,i,e){var r,a=arguments.length,f=a<3?t:e===null?e=Object.getOwnPropertyDescriptor(t,i):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(h,t,i,e);else for(var p=h.length-1;p>=0;p--)(r=h[p])&&(f=(a<3?r(f):a>3?r(t,i,f):r(t,i))||f);return a>3&&f&&Object.defineProperty(t,i,f),f},_=this&&this.__param||function(h,t){return function(i,e){t(i,e,h)}};Object.defineProperty(s,"__esModule",{value:!0}),s.OscLinkProvider=void 0;const n=o(511),c=o(2585);let u=s.OscLinkProvider=class{constructor(h,t,i){this._bufferService=h,this._optionsService=t,this._oscLinkService=i}provideLinks(h,t){const i=this._bufferService.buffer.lines.get(h-1);if(!i)return void t(void 0);const e=[],r=this._optionsService.rawOptions.linkHandler,a=new n.CellData,f=i.getTrimmedLength();let p=-1,g=-1,l=!1;for(let m=0;m<f;m++)if(g!==-1||i.hasContent(m)){if(i.loadCell(m,a),a.hasExtendedAttrs()&&a.extended.urlId){if(g===-1){g=m,p=a.extended.urlId;continue}l=a.extended.urlId!==p}else g!==-1&&(l=!0);if(l||g!==-1&&m===f-1){const E=this._oscLinkService.getLinkData(p)?.uri;if(E){const x={start:{x:g+1,y:h},end:{x:m+(l||m!==f-1?0:1),y:h}};let L=!1;if(!r?.allowNonHttpProtocols)try{const b=new URL(E);["http:","https:"].includes(b.protocol)||(L=!0)}catch{L=!0}L||e.push({text:E,range:x,activate:(b,R)=>r?r.activate(b,R,x):v(0,R),hover:(b,R)=>r?.hover?.(b,R,x),leave:(b,R)=>r?.leave?.(b,R,x)})}l=!1,a.hasExtendedAttrs()&&a.extended.urlId?(g=m,p=a.extended.urlId):(g=-1,p=-1)}}t(e)}};function v(h,t){if(confirm(`Do you want to navigate to ${t}?
4
4
 
@@ -1 +1 @@
1
- import{r as C}from"./index-DtJVzdtH.js";const L=t=>C.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t},C.createElement("path",{d:"M6.03984 17.625C6.08672 17.625 6.13359 17.6203 6.18047 17.6133L10.1227 16.9219C10.1695 16.9125 10.2141 16.8914 10.2469 16.8563L20.182 6.92109C20.2038 6.89941 20.221 6.87366 20.2328 6.8453C20.2445 6.81695 20.2506 6.78656 20.2506 6.75586C20.2506 6.72516 20.2445 6.69477 20.2328 6.66642C20.221 6.63806 20.2038 6.61231 20.182 6.59063L16.2867 2.69297C16.2422 2.64844 16.1836 2.625 16.1203 2.625C16.057 2.625 15.9984 2.64844 15.9539 2.69297L6.01875 12.6281C5.98359 12.6633 5.9625 12.7055 5.95312 12.7523L5.26172 16.6945C5.23892 16.8201 5.24707 16.9493 5.28545 17.071C5.32384 17.1927 5.39132 17.3032 5.48203 17.393C5.63672 17.543 5.83125 17.625 6.03984 17.625ZM7.61953 13.5375L16.1203 5.03906L17.8383 6.75703L9.3375 15.2555L7.25391 15.6234L7.61953 13.5375ZM20.625 19.5938H3.375C2.96016 19.5938 2.625 19.9289 2.625 20.3438V21.1875C2.625 21.2906 2.70937 21.375 2.8125 21.375H21.1875C21.2906 21.375 21.375 21.2906 21.375 21.1875V20.3438C21.375 19.9289 21.0398 19.5938 20.625 19.5938Z"}));export{L as e};
1
+ import{r as C}from"./index-CrQaw0BF.js";const L=t=>C.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t},C.createElement("path",{d:"M6.03984 17.625C6.08672 17.625 6.13359 17.6203 6.18047 17.6133L10.1227 16.9219C10.1695 16.9125 10.2141 16.8914 10.2469 16.8563L20.182 6.92109C20.2038 6.89941 20.221 6.87366 20.2328 6.8453C20.2445 6.81695 20.2506 6.78656 20.2506 6.75586C20.2506 6.72516 20.2445 6.69477 20.2328 6.66642C20.221 6.63806 20.2038 6.61231 20.182 6.59063L16.2867 2.69297C16.2422 2.64844 16.1836 2.625 16.1203 2.625C16.057 2.625 15.9984 2.64844 15.9539 2.69297L6.01875 12.6281C5.98359 12.6633 5.9625 12.7055 5.95312 12.7523L5.26172 16.6945C5.23892 16.8201 5.24707 16.9493 5.28545 17.071C5.32384 17.1927 5.39132 17.3032 5.48203 17.393C5.63672 17.543 5.83125 17.625 6.03984 17.625ZM7.61953 13.5375L16.1203 5.03906L17.8383 6.75703L9.3375 15.2555L7.25391 15.6234L7.61953 13.5375ZM20.625 19.5938H3.375C2.96016 19.5938 2.625 19.9289 2.625 20.3438V21.1875C2.625 21.2906 2.70937 21.375 2.8125 21.375H21.1875C21.2906 21.375 21.375 21.2906 21.375 21.1875V20.3438C21.375 19.9289 21.0398 19.5938 20.625 19.5938Z"}));export{L as e};
@@ -0,0 +1 @@
1
+ import{dz as e,eX as r,eY as s}from"./index-CrQaw0BF.js";const a=e(r),t=e(s);export{a,t as r};
@@ -0,0 +1 @@
1
+ import{fq as e}from"./index-CrQaw0BF.js";var i=e();export{i as e};
@@ -1,4 +1,4 @@
1
- import{m as f}from"./index-D319vBae.js";import"./index-DtJVzdtH.js";import"./decode-DPztD6kB.js";/*!-----------------------------------------------------------------------------
1
+ import{m as f}from"./index-wIt3UxPD.js";import"./index-CrQaw0BF.js";import"./decode-DPztD6kB.js";/*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
4
4
  * Released under the MIT license
@@ -1 +1 @@
1
- import{cY as t,H as o}from"./index-DtJVzdtH.js";function c(...e){try{return t(...e)}catch(r){throw o.error("Invalid redirect url"),console.error("Invalid redirect url",r),r}}export{c as g};
1
+ import{cY as t,H as o}from"./index-CrQaw0BF.js";function c(...e){try{return t(...e)}catch(r){throw o.error("Invalid redirect url"),console.error("Invalid redirect url",r),r}}export{c as g};
@@ -0,0 +1 @@
1
+ import{r}from"./index-CrQaw0BF.js";function a(t){return r.Children.toArray(t).filter(e=>r.isValidElement(e))}export{a as g};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-D319vBae.js","./index-DtJVzdtH.js","./index-DGkT7afN.css","./decode-DPztD6kB.js","./index-CX3PrUL2.css"])))=>i.map(i=>d[i]);
2
- import{e as h,g as v,a as f,U as M,l as m,C as r}from"./index-D319vBae.js";import{bK as T}from"./index-DtJVzdtH.js";import"./decode-DPztD6kB.js";const x=2*60*1e3;class b{_defaults;_idleCheckInterval;_lastUsedTime=0;_configChangeListener;_worker=null;_client=null;constructor(e){this._defaults=e,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._configChangeListener=this._defaults.onDidChange(()=>{this._stopWorker()})}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>x&&this._stopWorker()}async _getClient(){if(this._lastUsedTime=Date.now(),!this._client&&!this._worker)try{const{languageId:e,formattingOptions:s,schemas:c,externalFragmentDefinitions:a,completionSettings:l}=this._defaults;this._worker=h.createWebWorker({moduleId:"monaco-graphql/esm/GraphQLWorker.js",label:e,createData:{languageId:e,formattingOptions:s,languageConfig:{schemas:c?.map(v),externalFragmentDefinitions:a,fillLeafsOnComplete:l.__experimental__fillLeafsOnComplete}}}),this._client=this._worker.getProxy()}catch(e){console.error("error loading worker",e)}return this._client}async getLanguageServiceWorker(...e){const s=await this._getClient();return await this._worker.withSyncedResources(e),s}}class F{defaults;_worker;_disposables=[];_listener=Object.create(null);constructor(e,s){this.defaults=e,this._worker=s,this._worker=s;let c;const a=t=>{const d=f(t);if(d!==this.defaults.languageId)return;const g=t.uri.toString(),u=e.diagnosticSettings.validateVariablesJSON?.[g];c=setTimeout(()=>{this._doValidate(t.uri,d,u)},400),this._listener[g]=t.onDidChangeContent(()=>{clearTimeout(c),c=setTimeout(()=>{this._doValidate(t.uri,d,u)},400)})},l=t=>{h.setModelMarkers(t,this.defaults.languageId,[]);const d=t.uri.toString(),g=this._listener[d];g&&(g.dispose(),delete this._listener[d])};this._disposables.push(h.onDidCreateModel(a),{dispose(){clearTimeout(c)}},h.onWillDisposeModel(t=>{l(t)}),h.onDidChangeModelLanguage(t=>{l(t.model),a(t.model)}),{dispose:()=>{for(const t of Object.values(this._listener))t.dispose()}},e.onDidChange(()=>{for(const t of h.getModels())f(t)===this.defaults.languageId&&(l(t),a(t))}));for(const t of h.getModels())f(t)===this.defaults.languageId&&a(t)}dispose(){for(const e of this._disposables)e.dispose();this._disposables=[]}async _doValidate(e,s,c){const a=await this._worker(e);if(!a)return;const l=await a.doValidation(e.toString());if(h.setModelMarkers(h.getModel(e),s,l),c){if(await T(()=>import("./index-D319vBae.js").then(p=>p.b),__vite__mapDeps([0,1,2,3,4]),import.meta.url),!c.length)throw new Error("No variables URI strings provided to validate");const t=await a.doGetVariablesJSONSchema(e.toString());if(!t)return;const d=M.file(c[0].replace(".json","-schema.json")).toString(),g={uri:d,schema:t,fileMatch:c},u=m.json.jsonDefaults.diagnosticsOptions.schemas?.filter(p=>p.uri!==d)||[];m.json.jsonDefaults.setDiagnosticsOptions({schemaValidation:"error",validate:!0,...this.defaults.diagnosticSettings.jsonDiagnosticSettings,schemas:[...u,g],enableSchemaRequest:!1})}}}const i=m.CompletionItemKind,C={[r.Text]:i.Text,[r.Method]:i.Method,[r.Function]:i.Function,[r.Constructor]:i.Constructor,[r.Field]:i.Field,[r.Variable]:i.Variable,[r.Class]:i.Class,[r.Interface]:i.Interface,[r.Module]:i.Module,[r.Property]:i.Property,[r.Unit]:i.Unit,[r.Value]:i.Value,[r.Enum]:i.Enum,[r.Keyword]:i.Keyword,[r.Snippet]:i.Snippet,[r.Color]:i.Color,[r.File]:i.File,[r.Reference]:i.Reference,[r.Folder]:i.Folder,[r.EnumMember]:i.EnumMember,[r.Constant]:i.Constant,[r.Struct]:i.Struct,[r.Event]:i.Event,[r.Operator]:i.Operator,[r.TypeParameter]:i.TypeParameter};function E(o){return o in C?C[o]:i.Text}function O(o){return{range:o.range,kind:E(o.kind),label:o.label,insertText:o.insertText??o.label,insertTextRules:o.insertText?m.CompletionItemInsertTextRule.InsertAsSnippet:void 0,sortText:o.sortText,filterText:o.filterText,documentation:o.documentation,detail:o.detail,command:o.command}}class L{_worker;constructor(e){this._worker=e,this._worker=e}get triggerCharacters(){return[":","$"," ","(","@"]}async provideCompletionItems(e,s,c,a){try{return{incomplete:!0,suggestions:(await(await this._worker(e.uri)).doComplete(e.uri.toString(),s)).map(O)}}catch(l){return console.error("Error fetching completion items",l),{suggestions:[]}}}}class P{_worker;constructor(e){this._worker=e,this._worker=e}async provideDocumentFormattingEdits(e,s,c){const l=await(await this._worker(e.uri)).doFormat(e.uri.toString());return l?[{range:e.getFullModelRange(),text:l}]:[]}}class V{_worker;constructor(e){this._worker=e}async provideHover(e,s,c){const a=e.uri,t=await(await this._worker(e.uri)).doHover(a.toString(),s);return t?{range:t.range,contents:[{value:t.content}]}:{contents:[]}}dispose(){}}function W(o){const e=[],s=[],c=new b(o);e.push(c);const a=(...n)=>{try{return c.getLanguageServiceWorker(...n)}catch{throw new Error("Error fetching graphql language service worker")}};function l(){const{modeConfiguration:n,languageId:_}=o;n.documentFormattingEdits&&s.push(m.registerDocumentFormattingEditProvider(_,new P(a)))}function t(n){const{modeConfiguration:_,languageId:w}=o;S(s),_.completionItems&&s.push(m.registerCompletionItemProvider(w,new L(a))),_.diagnostics&&s.push(new F(n,a)),_.hovers&&s.push(m.registerHoverProvider(w,new V(a))),l()}let{modeConfiguration:d,formattingOptions:g,diagnosticSettings:u,externalFragmentDefinitions:p,schemas:k}=o;return t(o),o.onDidChange(n=>{n.modeConfiguration!==d&&(d=n.modeConfiguration,t(n)),n.formattingOptions!==g&&(g=n.formattingOptions,l()),n.externalFragmentDefinitions!==p&&(p=n.externalFragmentDefinitions,t(n)),n.diagnosticSettings!==u&&(u=n.diagnosticSettings,t(n)),n.schemas!==k&&(k=n.schemas,t(n))}),e.push(I(s)),I(e)}function I(o){return{dispose:()=>S(o)}}function S(o){for(;o.length;)o.pop().dispose()}export{W as setupMode};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-wIt3UxPD.js","./index-CrQaw0BF.js","./index-DGkT7afN.css","./decode-DPztD6kB.js","./index-CX3PrUL2.css"])))=>i.map(i=>d[i]);
2
+ import{e as h,g as v,a as f,U as M,l as m,C as r}from"./index-wIt3UxPD.js";import{bK as T}from"./index-CrQaw0BF.js";import"./decode-DPztD6kB.js";const x=2*60*1e3;class b{_defaults;_idleCheckInterval;_lastUsedTime=0;_configChangeListener;_worker=null;_client=null;constructor(e){this._defaults=e,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._configChangeListener=this._defaults.onDidChange(()=>{this._stopWorker()})}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>x&&this._stopWorker()}async _getClient(){if(this._lastUsedTime=Date.now(),!this._client&&!this._worker)try{const{languageId:e,formattingOptions:s,schemas:c,externalFragmentDefinitions:a,completionSettings:l}=this._defaults;this._worker=h.createWebWorker({moduleId:"monaco-graphql/esm/GraphQLWorker.js",label:e,createData:{languageId:e,formattingOptions:s,languageConfig:{schemas:c?.map(v),externalFragmentDefinitions:a,fillLeafsOnComplete:l.__experimental__fillLeafsOnComplete}}}),this._client=this._worker.getProxy()}catch(e){console.error("error loading worker",e)}return this._client}async getLanguageServiceWorker(...e){const s=await this._getClient();return await this._worker.withSyncedResources(e),s}}class F{defaults;_worker;_disposables=[];_listener=Object.create(null);constructor(e,s){this.defaults=e,this._worker=s,this._worker=s;let c;const a=t=>{const d=f(t);if(d!==this.defaults.languageId)return;const g=t.uri.toString(),u=e.diagnosticSettings.validateVariablesJSON?.[g];c=setTimeout(()=>{this._doValidate(t.uri,d,u)},400),this._listener[g]=t.onDidChangeContent(()=>{clearTimeout(c),c=setTimeout(()=>{this._doValidate(t.uri,d,u)},400)})},l=t=>{h.setModelMarkers(t,this.defaults.languageId,[]);const d=t.uri.toString(),g=this._listener[d];g&&(g.dispose(),delete this._listener[d])};this._disposables.push(h.onDidCreateModel(a),{dispose(){clearTimeout(c)}},h.onWillDisposeModel(t=>{l(t)}),h.onDidChangeModelLanguage(t=>{l(t.model),a(t.model)}),{dispose:()=>{for(const t of Object.values(this._listener))t.dispose()}},e.onDidChange(()=>{for(const t of h.getModels())f(t)===this.defaults.languageId&&(l(t),a(t))}));for(const t of h.getModels())f(t)===this.defaults.languageId&&a(t)}dispose(){for(const e of this._disposables)e.dispose();this._disposables=[]}async _doValidate(e,s,c){const a=await this._worker(e);if(!a)return;const l=await a.doValidation(e.toString());if(h.setModelMarkers(h.getModel(e),s,l),c){if(await T(()=>import("./index-wIt3UxPD.js").then(p=>p.b),__vite__mapDeps([0,1,2,3,4]),import.meta.url),!c.length)throw new Error("No variables URI strings provided to validate");const t=await a.doGetVariablesJSONSchema(e.toString());if(!t)return;const d=M.file(c[0].replace(".json","-schema.json")).toString(),g={uri:d,schema:t,fileMatch:c},u=m.json.jsonDefaults.diagnosticsOptions.schemas?.filter(p=>p.uri!==d)||[];m.json.jsonDefaults.setDiagnosticsOptions({schemaValidation:"error",validate:!0,...this.defaults.diagnosticSettings.jsonDiagnosticSettings,schemas:[...u,g],enableSchemaRequest:!1})}}}const i=m.CompletionItemKind,C={[r.Text]:i.Text,[r.Method]:i.Method,[r.Function]:i.Function,[r.Constructor]:i.Constructor,[r.Field]:i.Field,[r.Variable]:i.Variable,[r.Class]:i.Class,[r.Interface]:i.Interface,[r.Module]:i.Module,[r.Property]:i.Property,[r.Unit]:i.Unit,[r.Value]:i.Value,[r.Enum]:i.Enum,[r.Keyword]:i.Keyword,[r.Snippet]:i.Snippet,[r.Color]:i.Color,[r.File]:i.File,[r.Reference]:i.Reference,[r.Folder]:i.Folder,[r.EnumMember]:i.EnumMember,[r.Constant]:i.Constant,[r.Struct]:i.Struct,[r.Event]:i.Event,[r.Operator]:i.Operator,[r.TypeParameter]:i.TypeParameter};function E(o){return o in C?C[o]:i.Text}function O(o){return{range:o.range,kind:E(o.kind),label:o.label,insertText:o.insertText??o.label,insertTextRules:o.insertText?m.CompletionItemInsertTextRule.InsertAsSnippet:void 0,sortText:o.sortText,filterText:o.filterText,documentation:o.documentation,detail:o.detail,command:o.command}}class L{_worker;constructor(e){this._worker=e,this._worker=e}get triggerCharacters(){return[":","$"," ","(","@"]}async provideCompletionItems(e,s,c,a){try{return{incomplete:!0,suggestions:(await(await this._worker(e.uri)).doComplete(e.uri.toString(),s)).map(O)}}catch(l){return console.error("Error fetching completion items",l),{suggestions:[]}}}}class P{_worker;constructor(e){this._worker=e,this._worker=e}async provideDocumentFormattingEdits(e,s,c){const l=await(await this._worker(e.uri)).doFormat(e.uri.toString());return l?[{range:e.getFullModelRange(),text:l}]:[]}}class V{_worker;constructor(e){this._worker=e}async provideHover(e,s,c){const a=e.uri,t=await(await this._worker(e.uri)).doHover(a.toString(),s);return t?{range:t.range,contents:[{value:t.content}]}:{contents:[]}}dispose(){}}function W(o){const e=[],s=[],c=new b(o);e.push(c);const a=(...n)=>{try{return c.getLanguageServiceWorker(...n)}catch{throw new Error("Error fetching graphql language service worker")}};function l(){const{modeConfiguration:n,languageId:_}=o;n.documentFormattingEdits&&s.push(m.registerDocumentFormattingEditProvider(_,new P(a)))}function t(n){const{modeConfiguration:_,languageId:w}=o;S(s),_.completionItems&&s.push(m.registerCompletionItemProvider(w,new L(a))),_.diagnostics&&s.push(new F(n,a)),_.hovers&&s.push(m.registerHoverProvider(w,new V(a))),l()}let{modeConfiguration:d,formattingOptions:g,diagnosticSettings:u,externalFragmentDefinitions:p,schemas:k}=o;return t(o),o.onDidChange(n=>{n.modeConfiguration!==d&&(d=n.modeConfiguration,t(n)),n.formattingOptions!==g&&(g=n.formattingOptions,l()),n.externalFragmentDefinitions!==p&&(p=n.externalFragmentDefinitions,t(n)),n.diagnosticSettings!==u&&(u=n.diagnosticSettings,t(n)),n.schemas!==k&&(k=n.schemas,t(n))}),e.push(I(s)),I(e)}function I(o){return{dispose:()=>S(o)}}function S(o){for(;o.length;)o.pop().dispose()}export{W as setupMode};
@@ -1,4 +1,4 @@
1
- import{m as i}from"./index-D319vBae.js";import"./index-DtJVzdtH.js";import"./decode-DPztD6kB.js";/*!-----------------------------------------------------------------------------
1
+ import{m as i}from"./index-wIt3UxPD.js";import"./index-CrQaw0BF.js";import"./decode-DPztD6kB.js";/*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
4
4
  * Released under the MIT license
@@ -1,4 +1,4 @@
1
- import{m as s}from"./index-D319vBae.js";import"./index-DtJVzdtH.js";import"./decode-DPztD6kB.js";/*!-----------------------------------------------------------------------------
1
+ import{m as s}from"./index-wIt3UxPD.js";import"./index-CrQaw0BF.js";import"./decode-DPztD6kB.js";/*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
4
4
  * Released under the MIT license