@abtnode/webapp 1.16.44-beta-20250526-130644-5e05dc90 → 1.16.44-beta-20250528-003415-7a5e5d90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/blocklet.js +1 -1
- package/blocklet.yml +1 -1
- package/dist/assets/{AdapterDayjs-bsD4OAFM.js → AdapterDayjs-jFq0UWbd.js} +1 -1
- package/dist/assets/{Add-BYFWsyUF.js → Add-DTqXwW0N.js} +1 -1
- package/dist/assets/{ArrowDropDown-b23Ws4Dh.js → ArrowDropDown-0HCdgPxM.js} +1 -1
- package/dist/assets/{Autocomplete-Cbi7HzEa.js → Autocomplete-BYtQlJN2.js} +1 -1
- package/dist/assets/{Breadcrumbs-C_csYT5C.js → Breadcrumbs-CgmOQ_4k.js} +1 -1
- package/dist/assets/{ButtonGroup-BbvSuEoF.js → ButtonGroup-DqXuhqTn.js} +1 -1
- package/dist/assets/{CSSTransition-CJ-9QKlG.js → CSSTransition-CSF6lDgV.js} +1 -1
- package/dist/assets/{CallMerge-SZDzfJgb.js → CallMerge-BAR1CVFk.js} +1 -1
- package/dist/assets/{CardContent-BCodnoZu.js → CardContent-BqJnOH3m.js} +1 -1
- package/dist/assets/{ChevronLeft-BCWTA2ES.js → ChevronLeft-CGdwfN-l.js} +1 -1
- package/dist/assets/{ChevronRight-B8F_ru7A.js → ChevronRight-Bj9Dx-t_.js} +1 -1
- package/dist/assets/{Clear-n1FkleT7.js → Clear-CRBYarsa.js} +1 -1
- package/dist/assets/{Close-Cem8y-ph.js → Close-C9PKpEMp.js} +1 -1
- package/dist/assets/{Community-stiBX7J2.js → Community-CBnFvaWW.js} +1 -1
- package/dist/assets/{Delete-D0GFkYtH.js → Delete-C3LWwjqe.js} +1 -1
- package/dist/assets/{Delete-CwKOurFN.js → Delete-DlSWg7eg.js} +1 -1
- package/dist/assets/{DeleteOutline-CSi3y8ZI.js → DeleteOutline-5qAShT9Y.js} +1 -1
- package/dist/assets/{Done-D3hzYYUk.js → Done-CFH2iz5e.js} +1 -1
- package/dist/assets/{Edit-DUZ7gP_b.js → Edit-Co5BQerz.js} +1 -1
- package/dist/assets/{ErrorOutline-zzYP4d-G.js → ErrorOutline-QNgelF6z.js} +1 -1
- package/dist/assets/{HelpOutline-BtTkcIQl.js → HelpOutline-DeEYOkJi.js} +1 -1
- package/dist/assets/{Holiday-CFhQLlq2.js → Holiday-CtZZm1wa.js} +1 -1
- package/dist/assets/{Launch-C-pZPEtf.js → Launch-BRFCKSJq.js} +1 -1
- package/dist/assets/{Link-DoRwHSx9.js → Link-CXQij6OR.js} +1 -1
- package/dist/assets/{ListItemButton-C4nle7Vw.js → ListItemButton-DzUr79Sz.js} +1 -1
- package/dist/assets/{ListSubheader-CN5kB_3v.js → ListSubheader-DQqgb2yu.js} +1 -1
- package/dist/assets/{LoadingButton-DzOnJ8zq.js → LoadingButton-D2TB2UiI.js} +1 -1
- package/dist/assets/{LockIcon-DzCd9ccj.js → LockIcon-BPfDiFv0.js} +1 -1
- package/dist/assets/{Meeting-1bsu0vcq.js → Meeting-BKSUCsIc.js} +1 -1
- package/dist/assets/{MoreHoriz-DC7IikA2.js → MoreHoriz-Bx_Om50v.js} +1 -1
- package/dist/assets/{MoreVert-CrQ5BD1O.js → MoreVert-w75snDQs.js} +1 -1
- package/dist/assets/{OffSick-xV6w5rWa.js → OffSick-D6cKjiM0.js} +1 -1
- package/dist/assets/{OpenInNew-DeXzob2p.js → OpenInNew-CSKLA26V.js} +1 -1
- package/dist/assets/{Public-B575ztUz.js → Public-BhHHVMRE.js} +1 -1
- package/dist/assets/{Refresh-2rMRmiq8.js → Refresh-BwkLbOVU.js} +1 -1
- package/dist/assets/{SchemaReference.es-Dde3PXx0.js → SchemaReference.es-CokzFsv5.js} +1 -1
- package/dist/assets/{Search-DlTi3_X0.js → Search-YHtyGibW.js} +1 -1
- package/dist/assets/{Slider-DVwffPl5.js → Slider-IbRqxtbE.js} +1 -1
- package/dist/assets/{Stepper-DBIHjo83.js → Stepper-CnVr1egz.js} +1 -1
- package/dist/assets/{Switch-Qp41_PVH.js → Switch-Dt84DR0H.js} +1 -1
- package/dist/assets/{TableRow-CDB9WIef.js → TableRow-Bvi-hC54.js} +1 -1
- package/dist/assets/{TableSearch-C_ybT7kk.js → TableSearch-3PXeI6hz.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-C-CIJkUk.js → ToggleButtonGroup-CeXjKQIC.js} +1 -1
- package/dist/assets/{Verified-CLm0sUb6.js → Verified-CDTmywG7.js} +1 -1
- package/dist/assets/{VerifiedUser-Cz-5rgpe.js → VerifiedUser-CFJTQaF3.js} +1 -1
- package/dist/assets/{ViewColumn-Db8V4QN9.js → ViewColumn-lUXnk2yu.js} +1 -1
- package/dist/assets/{ViewList-BaTy1Ph1.js → ViewList-DRI2pLPW.js} +1 -1
- package/dist/assets/{WorkingRemotely-C_qc4360.js → WorkingRemotely-ny604xCG.js} +1 -1
- package/dist/assets/{_createAggregator-CEr_MPC5.js → _createAggregator-ClP6Cm9L.js} +1 -1
- package/dist/assets/{actions-DQy4Y2na.js → actions-Bv8xSPmq.js} +1 -1
- package/dist/assets/{actions-DveJjfxt.js → actions-CuQoe9ro.js} +1 -1
- package/dist/assets/{agreement-DeYzUIM7.js → agreement-lauLYxz3.js} +1 -1
- package/dist/assets/api-Bwpwhvmw.js +1 -0
- package/dist/assets/{appearance-DbHWwKo-.js → appearance-R6pCalNk.js} +1 -1
- package/dist/assets/{audit-logs-DWljSpy4.js → audit-logs-PeOew4LK.js} +1 -1
- package/dist/assets/{base-chart-CneSkRrp.js → base-chart-BHYVZ1Je.js} +1 -1
- package/dist/assets/{blocklet-BNsbNDuf.js → blocklet-ztLpKfcq.js} +1 -1
- package/dist/assets/{brace-fold.es-CHQJKmOH.js → brace-fold.es-D0r7X0ju.js} +1 -1
- package/dist/assets/{chain-DZftcLJ3.js → chain-DGcvJwBH.js} +1 -1
- package/dist/assets/{click-to-copy-ADdBawgq.js → click-to-copy-C-Mvzzk0.js} +1 -1
- package/dist/assets/cloneDeep-CQRRTnm9.js +1 -0
- package/dist/assets/{closebrackets.es-DDKcuj7l.js → closebrackets.es-DaqRgn_7.js} +1 -1
- package/dist/assets/{codemirror.es-CDd3nIcD.js → codemirror.es-CfIYuCsS.js} +1 -1
- package/dist/assets/{collapse-S-vTWAhi.js → collapse-CtX6Q5OE.js} +1 -1
- package/dist/assets/{comment.es-BCYde1B6.js → comment.es-Obb_rrHd.js} +1 -1
- package/dist/assets/{config-navigation-CNRkvto9.js → config-navigation-d-hkol10.js} +3 -3
- package/dist/assets/{connect-to-Dr4HhNJU.js → connect-to-_sVZRdFn.js} +1 -1
- package/dist/assets/{delete-confirm-DoYSwIFx.js → delete-confirm-8IsMhNfe.js} +1 -1
- package/dist/assets/{detail-B9ggyBgZ.js → detail-uVfu7mmV.js} +3 -3
- package/dist/assets/{dialog.es-MsWV9Nfp.js → dialog.es-SmbBknMt.js} +1 -1
- package/dist/assets/{domains-B3WgGegI.js → domains-DVbEaFc-.js} +1 -1
- package/dist/assets/{download-CCFD10FS.js → download-BhaEzFmY.js} +1 -1
- package/dist/assets/emotion-react.browser.esm-C7FmDYVX.js +1 -0
- package/dist/assets/{foldgutter.es-Dlj2we2Y.js → foldgutter.es-CnQ7PIpm.js} +1 -1
- package/dist/assets/{get-safe-url-DWTB-tRE.js → get-safe-url-BnKD7fjX.js} +1 -1
- package/dist/assets/{get-safe-url-h3P_Qh4v.js → get-safe-url-CtJu_FcU.js} +1 -1
- package/dist/assets/getValidReactChildren-C169OtBB.js +1 -0
- package/dist/assets/{hint.es-Dy1C7k3I.js → hint.es-gkCfoe9H.js} +1 -1
- package/dist/assets/{hint.es2-NY7C4sAJ.js → hint.es2-CwjbpV60.js} +1 -1
- package/dist/assets/{iframe-Cs_wGN9V.js → iframe-B5FbPH5I.js} +1 -1
- package/dist/assets/{index-BoDwKZkr.js → index-B0SCwFpt.js} +1 -1
- package/dist/assets/{index-DjfLAu4m.js → index-BBUEHNQ4.js} +1 -1
- package/dist/assets/{index-B4oRLjo7.js → index-BGANteup.js} +1 -1
- package/dist/assets/{index-BuuM5jo8.js → index-BOob6bmx.js} +5 -5
- package/dist/assets/{index-DhUL5M2s.js → index-BPPbe7Ly.js} +1 -1
- package/dist/assets/{index-BPpMhVpd.js → index-BPe1hR7R.js} +3 -3
- package/dist/assets/{index-e66xJJ-x.js → index-BbonVJKD.js} +116 -116
- package/dist/assets/{index-CNOx9gM8.js → index-Bk6_2RlM.js} +1 -1
- package/dist/assets/{index-f9QTV2yS.js → index-Bs8cSBPh.js} +1 -1
- package/dist/assets/{index-BA0q44b7.js → index-BsFHSz5F.js} +1 -1
- package/dist/assets/{index-BIr1sHAt.js → index-C0SfTeU5.js} +1 -1
- package/dist/assets/{index-JsgthZUN.js → index-C1Pho2dB.js} +1 -1
- package/dist/assets/{index-bbeMAhGa.js → index-CEhsrtIa.js} +1 -1
- package/dist/assets/{index-D5xjISzz.js → index-CJxcYJLK.js} +1 -1
- package/dist/assets/{index-Btu-tCxx.js → index-CMsTph0_.js} +1 -1
- package/dist/assets/{index-1REZAjOu.js → index-CNVBgJcy.js} +1 -1
- package/dist/assets/{index-Bt1dFWNc.js → index-CS2M01En.js} +1 -1
- package/dist/assets/{index-EWwtp8EM.js → index-CTjLU7vX.js} +1 -1
- package/dist/assets/{index-PRwzODZo.js → index-CVOEL3Gp.js} +1 -1
- package/dist/assets/{index-rsJnFyyL.js → index-C_84W9Fm.js} +1 -1
- package/dist/assets/{index-1k7DvKxH.js → index-CaIW_cPG.js} +1 -1
- package/dist/assets/{index-0U-vrSlK.js → index-Cha8AEfb.js} +1 -1
- package/dist/assets/{index-1l3rmmE5.js → index-Cotu4R77.js} +1 -1
- package/dist/assets/{index-Dx0P0x6J.js → index-CtuwR1sA.js} +1 -1
- package/dist/assets/{index-MgaM83zd.js → index-CxHMQs9m.js} +1 -1
- package/dist/assets/{index-DM-X6w1C.js → index-CxYFOfNB.js} +1 -1
- package/dist/assets/{index-c-0gMptp.js → index-DA6HVDyx.js} +1 -1
- package/dist/assets/{index-DjMNpYZS.js → index-DFrfo67i.js} +1 -1
- package/dist/assets/{index-Co9nkuve.js → index-DGB-iK2Y.js} +1 -1
- package/dist/assets/{index-gkWEdVLt.js → index-DG_FSP3T.js} +1 -1
- package/dist/assets/index-DGa0JEU6.js +1 -0
- package/dist/assets/index-DJaOwfhS.js +41 -0
- package/dist/assets/{index-BI9Br-d5.js → index-DJt958VA.js} +1 -1
- package/dist/assets/{index-BTVRLsIg.js → index-DLWDtECG.js} +1 -1
- package/dist/assets/{index-CSOOaDVw.js → index-DMWWH-Y9.js} +3 -3
- package/dist/assets/{index-DuTpAxAe.js → index-DP9Hxqjf.js} +3 -3
- package/dist/assets/{index-Bm4jeiDa.js → index-DUntKj7y.js} +1 -1
- package/dist/assets/{index-IViEbtE5.js → index-DmtgaYFg.js} +1 -1
- package/dist/assets/{index-CuFXa0mJ.js → index-GIIeTjtx.js} +1 -1
- package/dist/assets/{index-BKivhg3S.js → index-IK7f-_29.js} +1 -1
- package/dist/assets/{index-7iYq2V4L.js → index-LVdFbQrm.js} +1 -1
- package/dist/assets/{index-Cvhm7Tb9.js → index-YV1oiFK2.js} +1 -1
- package/dist/assets/{index-Cjt_N1wY.js → index-Z8uAvilC.js} +1 -1
- package/dist/assets/{index-CIH-dF5H.js → index-cgrbzc6D.js} +1 -1
- package/dist/assets/{index-Vn3yqa3y.js → index-dZUhu4al.js} +1 -1
- package/dist/assets/{index-BeEM_0q3.js → index-igL_j9mT.js} +1 -1
- package/dist/assets/{index-DuQ11Re2.js → index-oZ9KIv19.js} +1 -1
- package/dist/assets/{index-RNqR3FXM.js → index-pKJXF5_b.js} +5 -5
- package/dist/assets/{index-_Y4g7Ki7.js → index-zzCN19ij.js} +1 -1
- package/dist/assets/{index.esm-BiZwp2sI.js → index.esm-DQhqo8hM.js} +1 -1
- package/dist/assets/{info-addon.es-ipFCgBgs.js → info-addon.es-DvIhfDpC.js} +1 -1
- package/dist/assets/{info.es-CXZgqePH.js → info.es-Bri-_MhX.js} +1 -1
- package/dist/assets/{install-from-url-CSiK3Yao.js → install-from-url-BO7wobBK.js} +1 -1
- package/dist/assets/{invitation-D6ia_iSD.js → invitation-oNb4r7x5.js} +1 -1
- package/dist/assets/is-path-prefix-equal-Dcl3Dpc2.js +1 -0
- package/dist/assets/{item-11xHJrBQ.js → item-BTj4eHCb.js} +1 -1
- package/dist/assets/{javascript.es-BOFqQkgH.js → javascript.es-Uakm0f2H.js} +1 -1
- package/dist/assets/{jump-to-line.es-Cx_iKetf.js → jump-to-line.es-CK5tO2wK.js} +1 -1
- package/dist/assets/{jump.es-UmQ5eqNY.js → jump.es-sXmaNAPB.js} +1 -1
- package/dist/assets/{lint.es-CkuzJ0c7.js → lint.es-ph9YB1LC.js} +1 -1
- package/dist/assets/{lint.es2-CPQEeICW.js → lint.es2-QoEEHeh3.js} +1 -1
- package/dist/assets/{lint.es3-B2trihuW.js → lint.es3-DPm8l1RE.js} +1 -1
- package/dist/assets/{list-header-ovy1bk-e.js → list-header-EIjqu6Bb.js} +1 -1
- package/dist/assets/{log--8P_TkIi.js → log-D7iyaOA3.js} +1 -1
- package/dist/assets/{lottie-react.esm-BWBFsFNg.js → lottie-react.esm--z6GyRUO.js} +1 -1
- package/dist/assets/{matchbrackets.es-DnV41gw8.js → matchbrackets.es-BpNRzm5X.js} +1 -1
- package/dist/assets/{memory-CLu87brV.js → memory-_Cfdc6eg.js} +1 -1
- package/dist/assets/{metric-CgjE4Yze.js → metric-CEHee5mz.js} +1 -1
- package/dist/assets/{mode.es-CikDBGfg.js → mode.es-CPqJNtl_.js} +1 -1
- package/dist/assets/{mode.es2-C1ydBzoH.js → mode.es2-DSL_TIwg.js} +1 -1
- package/dist/assets/{mode.es3-dTgcRvSz.js → mode.es3-DGQgWSc2.js} +1 -1
- package/dist/assets/omit-BSmdwFJv.js +1 -0
- package/dist/assets/{onlineParser.es-CWgvKSNI.js → onlineParser.es-BrkC1Rxw.js} +1 -1
- package/dist/assets/{overview-APoIqy5P.js → overview-D1biLPCD.js} +1 -1
- package/dist/assets/{permission-CtZli8Hf.js → permission-CWix4PtW.js} +1 -1
- package/dist/assets/{preference-0MD46HXq.js → preference-D99hgSUh.js} +3 -3
- package/dist/assets/{raf-schd.esm-CjWurqZc.js → raf-schd.esm-Bg2vGkG6.js} +1 -1
- package/dist/assets/refType-zKgXx_ar.js +1 -0
- package/dist/assets/{resource-dialog-DtmI53Zf.js → resource-dialog-CCtMXZiw.js} +4 -4
- package/dist/assets/{runtime-BjHuHXy7.js → runtime-CUQISXx6.js} +1 -1
- package/dist/assets/{schema-DG7Gb1Zp.js → schema-DA-E-9cd.js} +1 -1
- package/dist/assets/sdk-C-ut0VQ6.js +1 -0
- package/dist/assets/{search.es-sAbvHQqG.js → search.es-vxqs3CoJ.js} +1 -1
- package/dist/assets/{searchcursor.es-BiTKqSTz.js → searchcursor.es-BIY3U3Jt.js} +1 -1
- package/dist/assets/{service-yH9ZzgNY.js → service-cI5sUn7i.js} +1 -1
- package/dist/assets/{shorten-label-w_L-1NYs.js → shorten-label-CrkBaee5.js} +1 -1
- package/dist/assets/{show-hint.es-nq7hJT2o.js → show-hint.es-BNALS2hN.js} +1 -1
- package/dist/assets/{simple-select-N7r4TYd1.js → simple-select-DHpiGJRj.js} +1 -1
- package/dist/assets/{spaces-BTe9w9go.js → spaces-DyBB-5Eg.js} +1 -1
- package/dist/assets/{status-DTf_MR_m.js → status-Bs7sjvnO.js} +1 -1
- package/dist/assets/{status-DRBez5Qf.js → status-DTKEarT9.js} +1 -1
- package/dist/assets/{sublime.es-DZ-Kt_RU.js → sublime.es-B-ZAyGKa.js} +1 -1
- package/dist/assets/{switch-control-Cohshryy.js → switch-control-DpFXMKLS.js} +1 -1
- package/dist/assets/{table-icons-Bs7Hkb6l.js → table-icons-DU8hTbxC.js} +1 -1
- package/dist/assets/{table-tips-BLg1K8Th.js → table-tips-D9nXnglU.js} +1 -1
- package/dist/assets/{team-BczhIV16.js → team-8WMHXK3a.js} +1 -1
- package/dist/assets/{toLower-PXiIHwDf.js → toLower-OpLhWDaq.js} +1 -1
- package/dist/assets/toUpper-B4jRVv5E.js +1 -0
- package/dist/assets/{traffic-CoY4yr_p.js → traffic-CRZc451k.js} +1 -1
- package/dist/assets/{url-evaluation-DRKjUU7g.js → url-evaluation-CtyhxHau.js} +1 -1
- package/dist/assets/{url-join-CM2acrDe.js → url-join-DP1r7KXa.js} +1 -1
- package/dist/assets/{use-mobile-D02_HykR.js → use-mobile-7OX4w2nG.js} +1 -1
- package/dist/assets/{use-mobile-B7_S05ne.js → use-mobile-iVwM_YK-.js} +1 -1
- package/dist/assets/{useAsync-D-2V_lHb.js → useAsync-DtAj-sLJ.js} +1 -1
- package/dist/assets/{useAsyncRetry-DYNhhV2W.js → useAsyncRetry-De8O7cnw.js} +1 -1
- package/dist/assets/{useLocalStorage-ChdS5XVQ.js → useLocalStorage-Bp8WWQpB.js} +1 -1
- package/dist/assets/{useThemeProps-Dk-4jx1U.js → useThemeProps-DmvmZB1-.js} +1 -1
- package/dist/assets/{util-wc6KkzlL.js → util-CAGtQj-e.js} +1 -1
- package/dist/assets/{wait-container-BIM4llf9.js → wait-container-BdSj3R09.js} +1 -1
- package/dist/assets/{withStyles-Dcw4_09o.js → withStyles-B62bDqhH.js} +1 -1
- package/dist/assets/{wrap-locale-B6I84qwC.js → wrap-locale-DOaCGmjV.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +1 -1
- package/dist/assets/api-sNy9Buh2.js +0 -1
- package/dist/assets/cloneDeep-JEYtEd7F.js +0 -1
- package/dist/assets/emotion-react.browser.esm-BsFIkhYD.js +0 -1
- package/dist/assets/getValidReactChildren-DTJlyDSN.js +0 -1
- package/dist/assets/index-Bnl28jeD.js +0 -41
- package/dist/assets/index-CcKekV6p.js +0 -1
- package/dist/assets/is-path-prefix-equal-CF4M2MVl.js +0 -1
- package/dist/assets/omit-zgah02wK.js +0 -1
- package/dist/assets/refType-CrQ6NnaY.js +0 -1
- package/dist/assets/sdk-CGbU2sfF.js +0 -1
- package/dist/assets/toUpper-Cv02sfIb.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as fe,g as je}from"./index-CIH-dF5H.js";import{bX as $,j as e,P as t,m as B,r as T,bq as V,fW as ye,ld as we,h9 as ke,K as m,t as le,k as I,C as H,V as X,ha as Ee,eo as N,aY as ae,U,aB as q,aV as Z,a8 as G,bh as ee,a9 as Q,cz as ve,ei as L,a4 as te,ic as Ce,ba as Se,bb as Te,bm as Ie,y as M,bi as Re,M as pe,aZ as P,bj as ze,G as K,aI as Pe,aa as De,cH as Oe,a2 as We,aH as Ae,lh as qe,fR as Le,bs as ue,b8 as he,E as Me,li as $e,ae as Be}from"./index-e66xJJ-x.js";import{d as He}from"./Add-BYFWsyUF.js";import{u as _}from"./team-BczhIV16.js";import{u as Ne}from"./use-mobile-B7_S05ne.js";import{u as Fe,C as Y}from"./index.esm-BiZwp2sI.js";import{u as xe}from"./blocklet-BNsbNDuf.js";import{C as J}from"./index-Dx0P0x6J.js";import{u as Ve}from"./index-Co9nkuve.js";import{L as _e}from"./ListSubheader-CN5kB_3v.js";import{C as Ue}from"./Close-Cem8y-ph.js";import{E as Ke}from"./index-f9QTV2yS.js";import{A as Ye}from"./actions-DveJjfxt.js";import{T as ce}from"./table-tips-BLg1K8Th.js";import{D as Je}from"./Delete-CwKOurFN.js";import"./TableRow-CDB9WIef.js";import"./useThemeProps-Dk-4jx1U.js";import"./emotion-react.browser.esm-BsFIkhYD.js";import"./ViewColumn-Db8V4QN9.js";import"./Search-DlTi3_X0.js";import"./Clear-n1FkleT7.js";import"./Delete-D0GFkYtH.js";import"./MoreVert-CrQ5BD1O.js";import"./TableSearch-C_ybT7kk.js";import"./url-evaluation-DRKjUU7g.js";import"./MoreHoriz-DC7IikA2.js";const Ge=$(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m4.59-12.42L10 14.17l-2.59-2.58L6 13l4 4 8-8z"}),"CheckCircleOutlined"),Qe=$(e.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit"),Xe=$(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"ErrorOutlined"),Ze=$(e.jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined"),et=$(e.jsx("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"}),"Pause"),tt=$(e.jsx("path",{d:"M8 5v14l11-7z"}),"PlayArrow"),ot=o=>{var f,w;const[p,u]=T.useState(null),[E,s]=T.useState(!o),[R,c]=T.useState(null),{blocklet:a}=xe(),d=(w=(f=a==null?void 0:a.site)==null?void 0:f.domainAliases[0])==null?void 0:w.value,j=T.useMemo(()=>{const b={};return p&&(p.sources.forEach(l=>{b[l.did]={source:l,events:[],count:0}}),p.events.forEach(l=>{b[l.source]&&(b[l.source].events.push(l),b[l.source].count+=1)})),b},[p]),y=async()=>{try{if(s(!0),!d)return;const l=await(await fetch(`https://${d}/.well-known/service/openevent.json`)).json();u(l),c(null)}catch(b){c(b instanceof Error?b:new Error(String(b)))}finally{s(!1)}};return T.useEffect(()=>{y()},[d]),{openEvent:p,setOpenEvent:u,eventsBySource:j,loading:E,error:R,loadData:y}};function oe({eventsBySource:o,selectedEvents:p,setSelectedEvents:u,error:E}){const{t:s}=B(),[R,c]=T.useState({}),a=T.useMemo(()=>{const l={};return Object.entries(o).forEach(([g,{events:h}])=>{const S=h.filter(x=>p[`${x.type}-${x.source}`]).length;l[g]=S}),l},[o,p]),d=T.useMemo(()=>Object.values(a).reduce((l,g)=>l+g,0),[a]),j=T.useMemo(()=>Object.values(o).reduce((l,{events:g})=>l+g.length,0),[o]),y=(l,g)=>{g.stopPropagation(),c({...R,[l]:!R[l]})},f=l=>{const g=`${l.type}-${l.source}`;u(h=>({...h,[g]:!h[g]}))},w=(l,g)=>{const h={};l.forEach(S=>{const x=`${S.type}-${S.source}`;h[x]=!g}),u(S=>({...S,...h}))},b=l=>{const g={};Object.values(o).forEach(({events:h})=>{h.forEach(S=>{const x=`${S.type}-${S.source}`;g[x]=l.target.checked})}),u(g)};return e.jsxs(m,{sx:{width:"100%"},children:[e.jsxs(m,{sx:{display:"flex",alignItems:"center",mb:1,mt:1},children:[e.jsx(ae,{control:e.jsx(U,{onChange:b,checked:d>0&&d===j}),label:e.jsxs(m,{sx:{display:"flex",alignItems:"center",cursor:"pointer"},children:[s("webhookEndpoint.selectAllEvents"),e.jsx(m,{sx:{display:"flex",alignItems:"center"},children:e.jsx(q,{title:s("webhookEndpoint.selectAllEventsTooltip"),placement:"right",children:e.jsx(Z,{fontSize:"small",sx:{ml:.5,cursor:"help"}})})})]}),sx:{m:0}}),d>0&&e.jsx(I,{variant:"body2",color:"primary",sx:{ml:"auto"},children:s("webhookEndpoint.selectedEventsCount",{count:d})})]}),e.jsx(m,{sx:{maxHeight:"50vh",overflow:"auto"},children:e.jsx(G,{disablePadding:!0,sx:{border:"1px solid",borderColor:"divider",borderRadius:"4px"},children:Object.entries(o).map(([l,{source:g,events:h,count:S}],x)=>{const z=a[l]>0,k=a[l]===h.length&&h.length>0,O=R[l];return e.jsxs(ee.Fragment,{children:[e.jsx(Q,{sx:{borderBottom:({palette:i})=>x<Object.keys(o).length-1?`1px solid ${i.divider}`:"none",px:2,py:1.5,"&:hover":{bgcolor:"rgba(0, 0, 0, 0.02)"}},children:e.jsxs(m,{sx:{display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center"},onClick:i=>{i.target.closest(".MuiFormControlLabel-root")||y(l,i)},children:[e.jsx(m,{sx:{display:"flex",alignItems:"center"},children:h.length>0&&e.jsx(ae,{control:e.jsx(U,{checked:k,indeterminate:z&&!k,onChange:i=>{i.stopPropagation(),w(h,k)}}),label:e.jsxs(m,{sx:{display:"flex",alignItems:"center",gap:1},children:[g.logo&&e.jsx(ve,{src:g.logo,sx:{width:24,height:24}}),e.jsx(m,{children:g.title||l}),z&&e.jsx(L,{label:s("webhookEndpoint.selectedCount",{count:a[l]}),size:"small",sx:{mt:"2px",height:"20px",fontSize:"12px",bgcolor:i=>`${i.palette.primary.main}20`,color:"primary.main",fontWeight:500}})]}),sx:{m:0,"& .MuiFormControlLabel-label":{flex:1}}})}),e.jsxs(m,{sx:{display:"flex",alignItems:"center"},children:[e.jsx(I,{variant:"body2",color:"text.secondary",sx:{mr:1},children:s("webhookEndpoint.eventsCount",{count:S})}),h.length>0&&e.jsx(te,{size:"small",edge:"end",children:O?e.jsx(Ce,{}):e.jsx(Se,{})})]})]})}),h.length>0&&e.jsx(Te,{in:O,timeout:"auto",unmountOnExit:!0,children:e.jsx(G,{disablePadding:!0,sx:{pl:2,pr:2,py:1,bgcolor:"rgba(0, 0, 0, 0.01)"},children:h.map(i=>{const r=`${i.type}-${i.source}`,n=!!p[r];return e.jsx(Q,{dense:!0,sx:{py:.75},onClick:()=>f(i),children:e.jsxs(m,{sx:{display:"flex",alignItems:"flex-start",width:"100%"},children:[e.jsx(U,{checked:n,sx:{mr:1}}),e.jsxs(m,{children:[e.jsx(I,{variant:"body1",sx:{cursor:"pointer"},children:i.type}),e.jsx(I,{variant:"caption",color:"text.disabled",sx:{display:"block",cursor:"pointer"},children:i.description})]})]})},r)})})})]},l)})})}),E&&e.jsx(Ie,{error:!0,sx:{mt:1},children:E})]})}oe.propTypes={eventsBySource:t.objectOf(t.shape({source:t.shape({did:t.string.isRequired,title:t.string,description:t.string,version:t.string,logo:t.string}).isRequired,events:t.arrayOf(t.shape({type:t.string.isRequired,description:t.string.isRequired,source:t.string.isRequired})).isRequired,count:t.number.isRequired})).isRequired,selectedEvents:t.objectOf(t.bool).isRequired,setSelectedEvents:t.func.isRequired,error:t.string};oe.defaultProps={error:null};function se({id:o,url:p,description:u,enabledEvents:E,onSubmit:s,onClose:R}){var i;const{t:c}=B(),[a,d]=T.useState({}),{teamDid:j}=_(),{api:y}=V(),{loading:f,error:w,eventsBySource:b}=ot(),{control:l,handleSubmit:g,formState:{errors:h},reset:S,setValue:x,trigger:z}=Fe({defaultValues:{url:"",description:""}});T.useEffect(()=>{const r=Object.values(a).some(n=>n);x("selectedEvents",r?"valid":""),z("selectedEvents")},[a,x,z]);const k=()=>{d({}),S(),R()},O=async r=>{const n=Object.keys(a).filter(v=>a[v]),C={url:r.url,description:r.description,enabledEvents:n.map(v=>{const[D,A]=v.split("-");return!D||!A?null:{type:D,source:A}}).filter(Boolean)};try{if(o){const v=await y.updateWebhookEndpoint({input:{teamDid:j,id:o,data:C}});M.success(`${c("webhookEndpoint.updateWebhook")} ${c("webhookEndpoint.success")}`),s(v)}else{const v=await y.createWebhookEndpoint({input:{teamDid:j,input:C}});M.success(`${c("webhookEndpoint.createWebhook")} ${c("webhookEndpoint.success")}`),s(v)}}catch(v){M.error(v==null?void 0:v.message)}k()};return T.useEffect(()=>{S({url:p,description:u}),d(E.reduce((r,n)=>(r[`${n.type}-${n.source}`]=!0,r),{}))},[S,d,p,u,E]),e.jsx(ye,{open:!0,onClose:k,maxWidth:"lg",fullWidth:!0,sx:{"& .MuiDialog-paper":{minHeight:600}},children:e.jsxs("form",{onSubmit:g(O),children:[e.jsx(we,{children:c(o?"webhookEndpoint.editWebhookTitle":"webhookEndpoint.createWebhookTitle")}),e.jsx(ke,{children:e.jsxs(m,{sx:{display:"flex",flexDirection:"column",gap:2,mt:2},children:[e.jsx(Y,{name:"url",control:l,rules:{required:c("webhookEndpoint.validation.urlRequired"),pattern:{value:/^(http|https):\/\/[^ "]+$/,message:c("webhookEndpoint.validation.urlInvalid")}},render:({field:r})=>{var n;return e.jsx(le,{...r,label:c("webhookEndpoint.url.label"),fullWidth:!0,error:!!h.url,helperText:(n=h.url)==null?void 0:n.message})}}),e.jsx(Y,{name:"description",control:l,rules:{required:c("webhookEndpoint.validation.descriptionRequired")},render:({field:r})=>{var n;return e.jsx(le,{...r,label:c("webhookEndpoint.description.label"),fullWidth:!0,multiline:!0,minRows:2,maxRows:4,error:!!h.description,helperText:(n=h.description)==null?void 0:n.message})}}),e.jsx(Y,{name:"selectedEvents",control:l,rules:{required:c("webhookEndpoint.validation.eventRequired")},render:({field:r})=>e.jsx("input",{type:"hidden",...r})}),!f&&b&&Object.keys(b).length>0&&e.jsx(oe,{eventsBySource:b,selectedEvents:a,setSelectedEvents:d,error:(i=h.selectedEvents)==null?void 0:i.message}),!f&&(!b||Object.keys(b).length===0)&&e.jsx(I,{color:"text.secondary",children:c("webhookEndpoint.noAvailableEvents")}),f&&e.jsx(m,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"500px",width:"100%"},children:e.jsx(H,{size:20})}),w&&e.jsx(X,{severity:"error",children:c("webhookEndpoint.loadingError",{message:w==null?void 0:w.message})})]})}),e.jsxs(Ee,{sx:{p:"8px 24px 24px"},children:[e.jsx(N,{onClick:k,children:c("common.cancel")}),e.jsx(N,{type:"submit",variant:"contained",color:"primary",children:c(o?"webhookEndpoint.updateWebhook":"webhookEndpoint.saveWebhook")})]})]})})}se.propTypes={onSubmit:t.func.isRequired,id:t.string,url:t.string,description:t.string,enabledEvents:t.arrayOf(t.shape({type:t.string.isRequired,source:t.string.isRequired})),onClose:t.func};se.defaultProps={id:null,url:"",description:"",enabledEvents:[],onClose:()=>{}};function me(o){switch(o){case"enabled":return"success";case"disabled":default:return"default"}}const st=(o="en")=>o==="tw"?"zh":o;function F(o,p="YYYY-MM-DD HH:mm:ss",u="en"){return o?Re(o).locale(st(u)).format(p):"-"}function nt(o){return typeof o=="number"?!1:pe(o)}function it(o){return o>=200&&o<300}function W(o){const p=nt(o.value);return e.jsxs(e.Fragment,{children:[e.jsxs(P,{direction:"column",alignItems:"flex-start",children:[e.jsxs(I,{component:"div",variant:"body1",mb:1,color:"text.primary",sx:{fontWeight:500},children:[o.label,!!o.tip&&e.jsx(q,{title:o.tip,children:e.jsx(Ze,{fontSize:"small"})})]}),e.jsx(I,{component:"div",variant:"body1",color:p?"text.disabled":"text.secondary",sx:{width:"100%",minHeight:"24px"},children:p?"-":o.value})]}),o.divider&&e.jsx(ze,{orientation:"vertical",flexItem:!0})]})}W.propTypes={label:t.oneOfType([t.string,t.node]).isRequired,value:t.oneOfType([t.string,t.node]).isRequired,tip:t.oneOfType([t.string,t.node]),divider:t.bool};W.defaultProps={tip:"",divider:!1};function ne(o){return e.jsxs(P,{className:"section-header",direction:"row",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:1,sx:{mb:o.mb,mt:o.mt,pb:1},children:[e.jsx(I,{variant:"h3",sx:{fontSize:{xs:"18px",md:"1.09375rem"}},component:"div",children:o.title}),o.children]})}ne.propTypes={title:t.oneOfType([t.string,t.node]).isRequired,children:t.node,mb:t.number,mt:t.number};ne.defaultProps={children:null,mb:1.5,mt:1.5};const rt=o=>{const p={};return o.forEach(u=>{var s;const E=new Date(u.createdAt).toLocaleDateString();p[E]||(p[E]=[]),(s=p[E])==null||s.push(u)}),p};function ie({eventId:o,webhookEndpointId:p,event:u}){const{api:E}=V(),{t:s}=B(),{teamDid:R}=_(),{blocklet:c}=xe(),{data:a,loadMore:d,loadingMore:j,loading:y}=Ve(x=>{const k=x?Math.ceil(x.list.length/15)+1:1;return E.getWebhookAttempts({input:{teamDid:R,input:{eventId:o,webhookId:p},paging:{page:k,pageSize:15}}})},{reloadDeps:[o,p]}),f=(a==null?void 0:a.list)||[],[w,b]=T.useState(null),l=rt(f);T.useEffect(()=>{!w&&(a!=null&&a.list.length)&&b(a.list[0])},[a==null?void 0:a.list.length,w]);const g=x=>{b(x)};if(y)return e.jsx(H,{});const h=a&&a.list.length<a.paging.total,S=x=>{var z,k,O,i,r;if(x.responseBody&&((z=x.responseBody)!=null&&z.sessionId)&&((k=x.responseBody)!=null&&k.projectId)&&((O=x.responseBody)!=null&&O.agentId)){const n=(r=(i=c==null?void 0:c.site)==null?void 0:i.domainAliases[0])==null?void 0:r.value,C=(c.children||[]).find(D=>{var A;return((A=D==null?void 0:D.meta)==null?void 0:A.name)==="ai-studio"}),v=Oe(We(`https://${n}`,(C==null?void 0:C.mountPoint)||"","projects",x.responseBody.projectId,"logs/main"),{sessionId:x.responseBody.sessionId,agentId:x.responseBody.agentId});return e.jsx(te,{sx:{fontSize:20},onClick:()=>window.open(v,"_blank"),children:e.jsx(m,{component:Ae,icon:qe})})}return null};return e.jsxs(K,{container:!0,spacing:{xs:0,md:1},sx:{height:1},children:[e.jsx(K,{item:!0,xs:12,md:4,height:1,children:pe(Object.keys(l))?e.jsx(I,{color:"text.secondary",children:s("webhookEndpoint.waitingForEvents")}):e.jsxs(e.Fragment,{children:[e.jsx(G,{sx:{maxHeight:"calc(100% - 40px)",py:0,overflowY:"auto"},children:Object.entries(l).map(([x,z])=>e.jsxs(ee.Fragment,{children:[e.jsx(_e,{children:x}),z.map(k=>e.jsxs(Q,{sx:{cursor:"pointer"},onClick:()=>g(k),selected:w===k,secondaryAction:e.jsx(I,{color:"text.secondary",children:F(k.createdAt,"HH:mm:ss")}),children:[e.jsx(Pe,{sx:{minWidth:0,mr:1.5},children:it(k.responseStatus)===!1?e.jsx(Xe,{color:"error"}):e.jsx(Ge,{color:"success"})}),e.jsx(De,{primary:e.jsx(I,{color:"text.primary",children:k.event.type})})]},k.id))]},x))}),h&&e.jsx(m,{display:"flex",justifyContent:"center",alignItems:"center",width:1,children:e.jsx(N,{variant:"text",type:"button",color:"inherit",onClick:d,disabled:j,sx:{color:x=>x.palette.text.disabled},children:s(j?"webhookEndpoint.loadingMore":"webhookEndpoint.loadMore")})})]})}),e.jsxs(K,{item:!0,xs:12,md:8,height:1,children:[w&&e.jsxs(P,{height:1,overflow:"auto",direction:"column",spacing:2,sx:{pl:{xs:0,md:1},mt:{xs:2,md:0},borderLeft:{xs:"none"}},children:[e.jsxs(m,{sx:{display:"flex",alignItems:"center",gap:1},children:[e.jsx(I,{variant:"h6",children:o?w.endpoint.url:w.event.type}),e.jsx(m,{children:S(w)})]}),e.jsxs(m,{children:[e.jsxs(I,{variant:"h6",children:[s("webhookEndpoint.response")," (",w.responseStatus,")"]}),e.jsx(J,{language:"json",children:JSON.stringify(w.responseBody,null,2)})]}),e.jsxs(m,{children:[e.jsx(P,{direction:"row",alignItems:"center",spacing:1,children:e.jsx(I,{variant:"h6",children:s("webhookEndpoint.request")})}),e.jsx(J,{language:"json",sx:{margin:0},children:JSON.stringify(w.event,null,2)})]})]}),(a==null?void 0:a.list.length)===0&&u&&e.jsxs(m,{children:[e.jsx(P,{direction:"row",alignItems:"center",spacing:1,children:e.jsx(I,{variant:"h6",children:s("webhookEndpoint.eventData")})}),e.jsx(J,{language:"json",sx:{margin:0},children:JSON.stringify(u.data,null,2)})]})]})]})}ie.propTypes={eventId:t.string,webhookEndpointId:t.string,event:t.shape({type:t.string,data:t.object,request:t.object,requestInfo:t.object})};ie.defaultProps={eventId:"",webhookEndpointId:"",event:null};function be({id:o,onClose:p}){var j,y,f,w;const{t:u}=B(),{api:E}=V(),{teamDid:s}=_(),{loading:R,error:c,data:a}=ue(()=>E.getWebhookEndpoint({input:{teamDid:s,id:o}})),d=a==null?void 0:a.data;return c?e.jsx(X,{severity:"error",children:c.message}):R||!d?e.jsx(m,{display:"flex",justifyContent:"center",alignItems:"center",height:1,width:1,children:e.jsx(H,{})}):e.jsxs(lt,{direction:"column",sx:{height:{xs:"auto",md:1}},children:[e.jsxs(m,{children:[e.jsxs(P,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[e.jsx(P,{flex:1,width:0,children:e.jsxs(m,{sx:{display:"flex",alignItems:"center",gap:1},children:[e.jsx(I,{variant:"h5",fontWeight:600,sx:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:d.description}),e.jsx(q,{title:d.url,children:e.jsx(Z,{sx:{fontSize:"16px",marginTop:"2px"}})})]})}),e.jsx(P,{direction:"row",alignItems:"center",children:e.jsx(te,{edge:"end",color:"inherit",onClick:p,children:e.jsx(Ue,{})})})]}),e.jsx(m,{mt:2,children:e.jsxs(P,{className:"section-body",direction:{xs:"column",md:"row"},spacing:{xs:1,md:3},justifyContent:"flex-start",flexWrap:"wrap",sx:{pt:2,mt:2,borderTop:"1px solid #eee"},children:[e.jsx(W,{label:u("common.status"),value:e.jsx(L,{size:"small",variant:"filled",label:d.status,color:me(d.status),sx:{borderRadius:"4px",lineHeight:"20px",textTransform:"capitalize"}}),divider:!0}),e.jsx(W,{label:u("webhookEndpoint.listen"),value:e.jsx(q,{arrow:!0,title:e.jsx("ul",{style:{padding:0,margin:0},children:d.enabledEvents.map(b=>e.jsx("li",{style:{fontSize:"0.7875rem"},children:b==null?void 0:b.type},b))}),children:e.jsx(L,{size:"small",variant:"filled",label:u("webhookEndpoint.eventsCount",{count:d.enabledEvents.length}),sx:{borderRadius:"4px",lineHeight:"20px",textTransform:"capitalize"}})}),divider:!0}),e.jsx(W,{label:u("webhookEndpoint.version"),value:d.apiVersion,divider:!0}),e.jsx(W,{label:u("common.createdAt"),value:F(d.createdAt),divider:!0}),e.jsx(W,{label:u("common.updatedAt"),value:F(d.updatedAt),divider:!0}),e.jsx(W,{label:u("common.createdBy"),value:e.jsx(q,{arrow:!0,title:(j=d.createUser)==null?void 0:j.did,children:e.jsx(L,{size:"small",variant:"filled",label:(y=d.createUser)==null?void 0:y.fullName,sx:{borderRadius:"4px",lineHeight:"20px",textTransform:"capitalize"}})}),divider:!0}),e.jsx(W,{label:u("common.updatedBy"),value:e.jsx(q,{arrow:!0,title:(f=d.updateUser)==null?void 0:f.did,children:e.jsx(L,{size:"small",variant:"filled",label:(w=d.updateUser)==null?void 0:w.fullName,sx:{borderRadius:"4px",lineHeight:"20px",textTransform:"capitalize"}})})})]})})]}),e.jsxs(P,{className:"section",flex:1,height:0,overflow:"hidden",children:[e.jsx(ne,{title:u("webhookEndpoint.attempts"),mb:0,mt:4}),e.jsx(P,{height:0,flex:1,overflow:"hidden",children:e.jsx(ie,{webhookEndpointId:d.id})})]})]})}be.propTypes={id:t.string.isRequired,onClose:t.func.isRequired};const lt=he(P)``;function ge({open:o,onClose:p,id:u}){return e.jsx(Le,{anchor:"right",open:o,onClose:p,PaperProps:{sx:{width:"90vw",maxWidth:"1200px"}},children:e.jsx(m,{sx:{height:"100vh",p:3},children:e.jsx(be,{id:u,onClose:p})})})}ge.propTypes={open:t.bool.isRequired,onClose:t.func.isRequired,id:t.string.isRequired};function de(){return null}const re=ee.memo(({options:o,columns:p,toolbar:u=!0,footer:E=!0,hasRowLink:s=!1,emptyNodeText:R="",...c})=>{const{locale:a}=B(),d=Me(f=>f.breakpoints.down("md")),j={print:!1,download:!1,filter:!1,selectableRows:"none",rowsPerPage:d?5:10,rowsPerPageOptions:[5,10,20,50,100],searchDebounceTime:300,tableBodyHeight:"100%",loading:!0},y={};return u||(y.TableToolbar=de),E||(y.TableFooter=de),e.jsx(at,{locale:a,options:{...j,...o},columns:(p||[]).map(f=>(f.options=f.options||{},f.options.filter=f.options.filter||!1,f.options.sort=f.options.sort||!1,f)),emptyNode:e.jsx(Ke,{children:R}),...c,components:y,hasRowLink:s,isMobile:d})});re.propTypes={options:t.object,columns:t.array,toolbar:t.bool,footer:t.bool,hasRowLink:t.bool,emptyNodeText:t.node,durable:t.string,durableKeys:t.array,data:t.array,loading:t.bool,onChange:t.func,title:t.node,components:t.object};re.defaultProps={options:{},columns:[],toolbar:!0,footer:!0,hasRowLink:!1,emptyNodeText:null,durable:"",durableKeys:[],data:[],loading:!1,onChange:()=>{},title:null,components:{}};const at=he(fe)``,ct=re;function qt(){const{teamDid:o}=_(),p=Ne(),u=`webhook-endpoints-${o}`,E=je(u),{t:s,locale:R}=B(),{api:c}=V(),[a,d]=T.useState(""),[j,y]=T.useState({webhookDetail:{open:!1,id:null},createEdit:{open:!1,id:null,url:"",description:"",enabledEvents:[]},deleteConfirm:null}),[f,w]=$e(u,{defaultValue:{pageSize:E.rowsPerPage||20,page:E.page?E.page+1:1}}),{loading:b,error:l,data:g,refresh:h}=ue(()=>c.getWebhookEndpoints({input:{teamDid:o,paging:{page:f.page,pageSize:f.pageSize}}}));T.useEffect(()=>{h()},[f,h]);const S=T.useCallback(async(i,r)=>{try{await c.updateWebhookEndpoint({input:{teamDid:o,id:i.id,data:{status:r?"disabled":"enabled"}}}),h(),M.success(`${s(r?"webhookEndpoint.disable":"webhookEndpoint.enable")}${s("webhookEndpoint.success")}`)}catch(n){M.error(n==null?void 0:n.message)}},[c,o,h,s]),x=T.useCallback(async i=>{try{await c.deleteWebhookEndpoint({input:{teamDid:o,id:i}}),h(),y(r=>({...r,deleteConfirm:null})),M.success(`${s("common.delete")}${s("webhookEndpoint.success")}`)}catch(r){M.error(r==null?void 0:r.message)}},[c,o,h,s]),z=(i,r)=>{let n=i.page+1;const C=i.searchText||"";if(C!==a){d(C);return}if(r==="changePage"||r==="changeRowsPerPage"){r!=="changePage"&&(n=1);const v={page:n,pageSize:i.rowsPerPage};d(""),w(v)}};if(l)return e.jsx(X,{severity:"error",children:l.message});if(b||!g)return e.jsx(m,{display:"flex",justifyContent:"center",alignItems:"center",width:1,height:500,children:e.jsx(H,{})});const k=((g==null?void 0:g.list)||[]).filter(i=>{if(!a)return!0;const r=a.toLowerCase();return i.description.toLowerCase().includes(r)||i.url.toLowerCase().includes(r)}),O=[{label:"URL",name:"url",options:{customBodyRenderLite:(i,r)=>{const n=k[r];return e.jsxs(m,{sx:{display:"flex",alignItems:"center",cursor:"pointer",gap:.5},children:[e.jsx(I,{variant:"body2",children:n.description}),e.jsx(m,{sx:{display:"flex"},onClick:C=>{C.stopPropagation()},children:e.jsx(q,{title:n.url,children:e.jsx(Z,{sx:{fontSize:"15px",marginTop:"1px"}})})})]})}}},{label:"Events",name:"events",options:{customBodyRenderLite:(i,r)=>{const n=k[r];return e.jsx(m,{sx:{display:"flex",alignItems:"center",gap:1,flexWrap:"wrap"},children:n.enabledEvents.map(C=>e.jsx(L,{size:"small",variant:"filled",label:C.type,sx:{borderRadius:"4px",textTransform:"capitalize"}},`${n.source}-${C.type}`))})}}},{label:s("common.status"),name:"status",options:{customBodyRenderLite:(i,r)=>{const n=k[r];return e.jsx(L,{size:"small",variant:"filled",label:s(`webhookEndpoint.${n==null?void 0:n.status}`),color:me(n==null?void 0:n.status),sx:{borderRadius:"4px",textTransform:"capitalize"}},`status-${n.status}`)}}},{label:s("common.createdAt"),name:"createdAt",minWidth:200,options:{customBodyRender:i=>F(i)}},{label:s("common.actions"),name:"actions",width:100,align:"center",verticalKeyAlign:"center",options:{customBodyRenderLite:(i,r)=>{const n=k[r],C=(n==null?void 0:n.status)==="enabled";return e.jsx(Ye,{actions:[{icon:C?e.jsx(et,{}):e.jsx(tt,{}),text:s(C?"webhookEndpoint.disable":"webhookEndpoint.enable"),onClick:v=>{v.stopPropagation(),S(n,C)}},{icon:e.jsx(Qe,{}),text:s("common.edit"),onClick:v=>{v.stopPropagation(),y(D=>({...D,createEdit:{open:!0,id:n.id,url:n.url,description:n.description,enabledEvents:n.enabledEvents}}))}},{icon:e.jsx(Je,{}),text:s("common.delete"),onClick:v=>{v.stopPropagation(),y(D=>({...D,deleteConfirm:{title:s("webhookEndpoint.deleteWebhook.title"),description:s("webhookEndpoint.deleteWebhook.description"),confirm:s("common.confirm"),cancel:s("common.cancel"),onConfirm:()=>x(n.id),onCancel:()=>y(A=>({...A,deleteConfirm:null}))}}))}}]})}}}];return e.jsxs(m,{sx:{".custom-toobar-btns":{gap:"8px"},".custom-toobar-title .custom-toobar-title-inner>span":{display:"flex",alignItems:"center","white-space":"inherit",height:"100%"}},children:[p?e.jsx(ce,{title:s("webhookEndpoint.listTitle"),tooltipTitle:s("webhookEndpoint.tooltipTitle"),link:`https://www.arcblock.io/docs/blocklet-developer/${R}/webhook`}):null,e.jsx(ct,{durable:u,durableKeys:["page","rowsPerPage"],data:k,columns:O,options:{count:g.count,page:f.page-1,rowsPerPage:f.pageSize,viewColumns:!1,onRowClick:(i,{dataIndex:r})=>{const n=g.list[r];y(C=>({...C,webhookDetail:{open:!0,id:n.id}}))}},loading:b,onChange:z,emptyNodeText:e.jsx(P,{gap:1,children:s("webhookEndpoint.noWebhooksAdded")}),title:p?null:e.jsx(ce,{title:s("webhookEndpoint.listTitle"),tooltipTitle:s("webhookEndpoint.tooltipTitle"),link:`https://www.arcblock.io/docs/blocklet-developer/${R}/webhook`}),customButtons:[e.jsxs(N,{sx:{color:"common.white"},edge:"end",variant:"contained",color:"primary",onClick:()=>y(i=>({...i,createEdit:{...i.createEdit,open:!0}})),className:"rule-action",children:[b?e.jsx(H,{size:16}):e.jsx(He,{style:{fontSize:16}}),s("common.create")]},"add")]}),j.webhookDetail.open&&e.jsx(ge,{open:!0,onClose:()=>y(i=>({...i,webhookDetail:{open:!1,id:null}})),id:j.webhookDetail.id}),j.createEdit.open&&e.jsx(se,{onSubmit:h,...j.createEdit,onClose:()=>y(i=>({...i,createEdit:{id:null,url:"",description:"",enabledEvents:[],open:!1}}))}),j.deleteConfirm&&e.jsx(Be,{title:j.deleteConfirm.title,description:j.deleteConfirm.description,confirm:j.deleteConfirm.confirm,cancel:j.deleteConfirm.cancel,params:j.deleteConfirm.params,onConfirm:j.deleteConfirm.onConfirm,onCancel:j.deleteConfirm.onCancel})]})}export{qt as default};
|
|
1
|
+
import{D as fe,g as je}from"./index-cgrbzc6D.js";import{bX as $,j as e,P as t,m as B,r as T,bq as V,fW as ye,la as we,h9 as ke,K as m,t as le,k as I,C as H,V as X,ha as Ee,eo as N,aY as ae,U,aB as q,aV as Z,a8 as G,bh as ee,a9 as Q,cz as ve,ei as L,a4 as te,ic as Ce,ba as Se,bb as Te,bm as Ie,y as M,bi as Re,M as pe,aZ as P,bj as ze,G as K,aI as Pe,aa as De,cH as Oe,a2 as We,aH as Ae,le as qe,fR as Le,bs as ue,b8 as he,E as Me,lf as $e,ae as Be}from"./index-BbonVJKD.js";import{d as He}from"./Add-DTqXwW0N.js";import{u as _}from"./team-8WMHXK3a.js";import{u as Ne}from"./use-mobile-iVwM_YK-.js";import{u as Fe,C as Y}from"./index.esm-DQhqo8hM.js";import{u as xe}from"./blocklet-ztLpKfcq.js";import{C as J}from"./index-CtuwR1sA.js";import{u as Ve}from"./index-DGB-iK2Y.js";import{L as _e}from"./ListSubheader-DQqgb2yu.js";import{C as Ue}from"./Close-C9PKpEMp.js";import{E as Ke}from"./index-Bs8cSBPh.js";import{A as Ye}from"./actions-CuQoe9ro.js";import{T as ce}from"./table-tips-D9nXnglU.js";import{D as Je}from"./Delete-DlSWg7eg.js";import"./TableRow-Bvi-hC54.js";import"./useThemeProps-DmvmZB1-.js";import"./emotion-react.browser.esm-C7FmDYVX.js";import"./ViewColumn-lUXnk2yu.js";import"./Search-YHtyGibW.js";import"./Clear-CRBYarsa.js";import"./Delete-C3LWwjqe.js";import"./MoreVert-w75snDQs.js";import"./TableSearch-3PXeI6hz.js";import"./url-evaluation-CtyhxHau.js";import"./MoreHoriz-Bx_Om50v.js";const Ge=$(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m4.59-12.42L10 14.17l-2.59-2.58L6 13l4 4 8-8z"}),"CheckCircleOutlined"),Qe=$(e.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit"),Xe=$(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"ErrorOutlined"),Ze=$(e.jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined"),et=$(e.jsx("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"}),"Pause"),tt=$(e.jsx("path",{d:"M8 5v14l11-7z"}),"PlayArrow"),ot=o=>{var f,w;const[p,u]=T.useState(null),[E,s]=T.useState(!o),[R,c]=T.useState(null),{blocklet:a}=xe(),d=(w=(f=a==null?void 0:a.site)==null?void 0:f.domainAliases[0])==null?void 0:w.value,j=T.useMemo(()=>{const b={};return p&&(p.sources.forEach(l=>{b[l.did]={source:l,events:[],count:0}}),p.events.forEach(l=>{b[l.source]&&(b[l.source].events.push(l),b[l.source].count+=1)})),b},[p]),y=async()=>{try{if(s(!0),!d)return;const l=await(await fetch(`https://${d}/.well-known/service/openevent.json`)).json();u(l),c(null)}catch(b){c(b instanceof Error?b:new Error(String(b)))}finally{s(!1)}};return T.useEffect(()=>{y()},[d]),{openEvent:p,setOpenEvent:u,eventsBySource:j,loading:E,error:R,loadData:y}};function oe({eventsBySource:o,selectedEvents:p,setSelectedEvents:u,error:E}){const{t:s}=B(),[R,c]=T.useState({}),a=T.useMemo(()=>{const l={};return Object.entries(o).forEach(([g,{events:h}])=>{const S=h.filter(x=>p[`${x.type}-${x.source}`]).length;l[g]=S}),l},[o,p]),d=T.useMemo(()=>Object.values(a).reduce((l,g)=>l+g,0),[a]),j=T.useMemo(()=>Object.values(o).reduce((l,{events:g})=>l+g.length,0),[o]),y=(l,g)=>{g.stopPropagation(),c({...R,[l]:!R[l]})},f=l=>{const g=`${l.type}-${l.source}`;u(h=>({...h,[g]:!h[g]}))},w=(l,g)=>{const h={};l.forEach(S=>{const x=`${S.type}-${S.source}`;h[x]=!g}),u(S=>({...S,...h}))},b=l=>{const g={};Object.values(o).forEach(({events:h})=>{h.forEach(S=>{const x=`${S.type}-${S.source}`;g[x]=l.target.checked})}),u(g)};return e.jsxs(m,{sx:{width:"100%"},children:[e.jsxs(m,{sx:{display:"flex",alignItems:"center",mb:1,mt:1},children:[e.jsx(ae,{control:e.jsx(U,{onChange:b,checked:d>0&&d===j}),label:e.jsxs(m,{sx:{display:"flex",alignItems:"center",cursor:"pointer"},children:[s("webhookEndpoint.selectAllEvents"),e.jsx(m,{sx:{display:"flex",alignItems:"center"},children:e.jsx(q,{title:s("webhookEndpoint.selectAllEventsTooltip"),placement:"right",children:e.jsx(Z,{fontSize:"small",sx:{ml:.5,cursor:"help"}})})})]}),sx:{m:0}}),d>0&&e.jsx(I,{variant:"body2",color:"primary",sx:{ml:"auto"},children:s("webhookEndpoint.selectedEventsCount",{count:d})})]}),e.jsx(m,{sx:{maxHeight:"50vh",overflow:"auto"},children:e.jsx(G,{disablePadding:!0,sx:{border:"1px solid",borderColor:"divider",borderRadius:"4px"},children:Object.entries(o).map(([l,{source:g,events:h,count:S}],x)=>{const z=a[l]>0,k=a[l]===h.length&&h.length>0,O=R[l];return e.jsxs(ee.Fragment,{children:[e.jsx(Q,{sx:{borderBottom:({palette:i})=>x<Object.keys(o).length-1?`1px solid ${i.divider}`:"none",px:2,py:1.5,"&:hover":{bgcolor:"rgba(0, 0, 0, 0.02)"}},children:e.jsxs(m,{sx:{display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center"},onClick:i=>{i.target.closest(".MuiFormControlLabel-root")||y(l,i)},children:[e.jsx(m,{sx:{display:"flex",alignItems:"center"},children:h.length>0&&e.jsx(ae,{control:e.jsx(U,{checked:k,indeterminate:z&&!k,onChange:i=>{i.stopPropagation(),w(h,k)}}),label:e.jsxs(m,{sx:{display:"flex",alignItems:"center",gap:1},children:[g.logo&&e.jsx(ve,{src:g.logo,sx:{width:24,height:24}}),e.jsx(m,{children:g.title||l}),z&&e.jsx(L,{label:s("webhookEndpoint.selectedCount",{count:a[l]}),size:"small",sx:{mt:"2px",height:"20px",fontSize:"12px",bgcolor:i=>`${i.palette.primary.main}20`,color:"primary.main",fontWeight:500}})]}),sx:{m:0,"& .MuiFormControlLabel-label":{flex:1}}})}),e.jsxs(m,{sx:{display:"flex",alignItems:"center"},children:[e.jsx(I,{variant:"body2",color:"text.secondary",sx:{mr:1},children:s("webhookEndpoint.eventsCount",{count:S})}),h.length>0&&e.jsx(te,{size:"small",edge:"end",children:O?e.jsx(Ce,{}):e.jsx(Se,{})})]})]})}),h.length>0&&e.jsx(Te,{in:O,timeout:"auto",unmountOnExit:!0,children:e.jsx(G,{disablePadding:!0,sx:{pl:2,pr:2,py:1,bgcolor:"rgba(0, 0, 0, 0.01)"},children:h.map(i=>{const r=`${i.type}-${i.source}`,n=!!p[r];return e.jsx(Q,{dense:!0,sx:{py:.75},onClick:()=>f(i),children:e.jsxs(m,{sx:{display:"flex",alignItems:"flex-start",width:"100%"},children:[e.jsx(U,{checked:n,sx:{mr:1}}),e.jsxs(m,{children:[e.jsx(I,{variant:"body1",sx:{cursor:"pointer"},children:i.type}),e.jsx(I,{variant:"caption",color:"text.disabled",sx:{display:"block",cursor:"pointer"},children:i.description})]})]})},r)})})})]},l)})})}),E&&e.jsx(Ie,{error:!0,sx:{mt:1},children:E})]})}oe.propTypes={eventsBySource:t.objectOf(t.shape({source:t.shape({did:t.string.isRequired,title:t.string,description:t.string,version:t.string,logo:t.string}).isRequired,events:t.arrayOf(t.shape({type:t.string.isRequired,description:t.string.isRequired,source:t.string.isRequired})).isRequired,count:t.number.isRequired})).isRequired,selectedEvents:t.objectOf(t.bool).isRequired,setSelectedEvents:t.func.isRequired,error:t.string};oe.defaultProps={error:null};function se({id:o,url:p,description:u,enabledEvents:E,onSubmit:s,onClose:R}){var i;const{t:c}=B(),[a,d]=T.useState({}),{teamDid:j}=_(),{api:y}=V(),{loading:f,error:w,eventsBySource:b}=ot(),{control:l,handleSubmit:g,formState:{errors:h},reset:S,setValue:x,trigger:z}=Fe({defaultValues:{url:"",description:""}});T.useEffect(()=>{const r=Object.values(a).some(n=>n);x("selectedEvents",r?"valid":""),z("selectedEvents")},[a,x,z]);const k=()=>{d({}),S(),R()},O=async r=>{const n=Object.keys(a).filter(v=>a[v]),C={url:r.url,description:r.description,enabledEvents:n.map(v=>{const[D,A]=v.split("-");return!D||!A?null:{type:D,source:A}}).filter(Boolean)};try{if(o){const v=await y.updateWebhookEndpoint({input:{teamDid:j,id:o,data:C}});M.success(`${c("webhookEndpoint.updateWebhook")} ${c("webhookEndpoint.success")}`),s(v)}else{const v=await y.createWebhookEndpoint({input:{teamDid:j,input:C}});M.success(`${c("webhookEndpoint.createWebhook")} ${c("webhookEndpoint.success")}`),s(v)}}catch(v){M.error(v==null?void 0:v.message)}k()};return T.useEffect(()=>{S({url:p,description:u}),d(E.reduce((r,n)=>(r[`${n.type}-${n.source}`]=!0,r),{}))},[S,d,p,u,E]),e.jsx(ye,{open:!0,onClose:k,maxWidth:"lg",fullWidth:!0,sx:{"& .MuiDialog-paper":{minHeight:600}},children:e.jsxs("form",{onSubmit:g(O),children:[e.jsx(we,{children:c(o?"webhookEndpoint.editWebhookTitle":"webhookEndpoint.createWebhookTitle")}),e.jsx(ke,{children:e.jsxs(m,{sx:{display:"flex",flexDirection:"column",gap:2,mt:2},children:[e.jsx(Y,{name:"url",control:l,rules:{required:c("webhookEndpoint.validation.urlRequired"),pattern:{value:/^(http|https):\/\/[^ "]+$/,message:c("webhookEndpoint.validation.urlInvalid")}},render:({field:r})=>{var n;return e.jsx(le,{...r,label:c("webhookEndpoint.url.label"),fullWidth:!0,error:!!h.url,helperText:(n=h.url)==null?void 0:n.message})}}),e.jsx(Y,{name:"description",control:l,rules:{required:c("webhookEndpoint.validation.descriptionRequired")},render:({field:r})=>{var n;return e.jsx(le,{...r,label:c("webhookEndpoint.description.label"),fullWidth:!0,multiline:!0,minRows:2,maxRows:4,error:!!h.description,helperText:(n=h.description)==null?void 0:n.message})}}),e.jsx(Y,{name:"selectedEvents",control:l,rules:{required:c("webhookEndpoint.validation.eventRequired")},render:({field:r})=>e.jsx("input",{type:"hidden",...r})}),!f&&b&&Object.keys(b).length>0&&e.jsx(oe,{eventsBySource:b,selectedEvents:a,setSelectedEvents:d,error:(i=h.selectedEvents)==null?void 0:i.message}),!f&&(!b||Object.keys(b).length===0)&&e.jsx(I,{color:"text.secondary",children:c("webhookEndpoint.noAvailableEvents")}),f&&e.jsx(m,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"500px",width:"100%"},children:e.jsx(H,{size:20})}),w&&e.jsx(X,{severity:"error",children:c("webhookEndpoint.loadingError",{message:w==null?void 0:w.message})})]})}),e.jsxs(Ee,{sx:{p:"8px 24px 24px"},children:[e.jsx(N,{onClick:k,children:c("common.cancel")}),e.jsx(N,{type:"submit",variant:"contained",color:"primary",children:c(o?"webhookEndpoint.updateWebhook":"webhookEndpoint.saveWebhook")})]})]})})}se.propTypes={onSubmit:t.func.isRequired,id:t.string,url:t.string,description:t.string,enabledEvents:t.arrayOf(t.shape({type:t.string.isRequired,source:t.string.isRequired})),onClose:t.func};se.defaultProps={id:null,url:"",description:"",enabledEvents:[],onClose:()=>{}};function me(o){switch(o){case"enabled":return"success";case"disabled":default:return"default"}}const st=(o="en")=>o==="tw"?"zh":o;function F(o,p="YYYY-MM-DD HH:mm:ss",u="en"){return o?Re(o).locale(st(u)).format(p):"-"}function nt(o){return typeof o=="number"?!1:pe(o)}function it(o){return o>=200&&o<300}function W(o){const p=nt(o.value);return e.jsxs(e.Fragment,{children:[e.jsxs(P,{direction:"column",alignItems:"flex-start",children:[e.jsxs(I,{component:"div",variant:"body1",mb:1,color:"text.primary",sx:{fontWeight:500},children:[o.label,!!o.tip&&e.jsx(q,{title:o.tip,children:e.jsx(Ze,{fontSize:"small"})})]}),e.jsx(I,{component:"div",variant:"body1",color:p?"text.disabled":"text.secondary",sx:{width:"100%",minHeight:"24px"},children:p?"-":o.value})]}),o.divider&&e.jsx(ze,{orientation:"vertical",flexItem:!0})]})}W.propTypes={label:t.oneOfType([t.string,t.node]).isRequired,value:t.oneOfType([t.string,t.node]).isRequired,tip:t.oneOfType([t.string,t.node]),divider:t.bool};W.defaultProps={tip:"",divider:!1};function ne(o){return e.jsxs(P,{className:"section-header",direction:"row",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:1,sx:{mb:o.mb,mt:o.mt,pb:1},children:[e.jsx(I,{variant:"h3",sx:{fontSize:{xs:"18px",md:"1.09375rem"}},component:"div",children:o.title}),o.children]})}ne.propTypes={title:t.oneOfType([t.string,t.node]).isRequired,children:t.node,mb:t.number,mt:t.number};ne.defaultProps={children:null,mb:1.5,mt:1.5};const rt=o=>{const p={};return o.forEach(u=>{var s;const E=new Date(u.createdAt).toLocaleDateString();p[E]||(p[E]=[]),(s=p[E])==null||s.push(u)}),p};function ie({eventId:o,webhookEndpointId:p,event:u}){const{api:E}=V(),{t:s}=B(),{teamDid:R}=_(),{blocklet:c}=xe(),{data:a,loadMore:d,loadingMore:j,loading:y}=Ve(x=>{const k=x?Math.ceil(x.list.length/15)+1:1;return E.getWebhookAttempts({input:{teamDid:R,input:{eventId:o,webhookId:p},paging:{page:k,pageSize:15}}})},{reloadDeps:[o,p]}),f=(a==null?void 0:a.list)||[],[w,b]=T.useState(null),l=rt(f);T.useEffect(()=>{!w&&(a!=null&&a.list.length)&&b(a.list[0])},[a==null?void 0:a.list.length,w]);const g=x=>{b(x)};if(y)return e.jsx(H,{});const h=a&&a.list.length<a.paging.total,S=x=>{var z,k,O,i,r;if(x.responseBody&&((z=x.responseBody)!=null&&z.sessionId)&&((k=x.responseBody)!=null&&k.projectId)&&((O=x.responseBody)!=null&&O.agentId)){const n=(r=(i=c==null?void 0:c.site)==null?void 0:i.domainAliases[0])==null?void 0:r.value,C=(c.children||[]).find(D=>{var A;return((A=D==null?void 0:D.meta)==null?void 0:A.name)==="ai-studio"}),v=Oe(We(`https://${n}`,(C==null?void 0:C.mountPoint)||"","projects",x.responseBody.projectId,"logs/main"),{sessionId:x.responseBody.sessionId,agentId:x.responseBody.agentId});return e.jsx(te,{sx:{fontSize:20},onClick:()=>window.open(v,"_blank"),children:e.jsx(m,{component:Ae,icon:qe})})}return null};return e.jsxs(K,{container:!0,spacing:{xs:0,md:1},sx:{height:1},children:[e.jsx(K,{item:!0,xs:12,md:4,height:1,children:pe(Object.keys(l))?e.jsx(I,{color:"text.secondary",children:s("webhookEndpoint.waitingForEvents")}):e.jsxs(e.Fragment,{children:[e.jsx(G,{sx:{maxHeight:"calc(100% - 40px)",py:0,overflowY:"auto"},children:Object.entries(l).map(([x,z])=>e.jsxs(ee.Fragment,{children:[e.jsx(_e,{children:x}),z.map(k=>e.jsxs(Q,{sx:{cursor:"pointer"},onClick:()=>g(k),selected:w===k,secondaryAction:e.jsx(I,{color:"text.secondary",children:F(k.createdAt,"HH:mm:ss")}),children:[e.jsx(Pe,{sx:{minWidth:0,mr:1.5},children:it(k.responseStatus)===!1?e.jsx(Xe,{color:"error"}):e.jsx(Ge,{color:"success"})}),e.jsx(De,{primary:e.jsx(I,{color:"text.primary",children:k.event.type})})]},k.id))]},x))}),h&&e.jsx(m,{display:"flex",justifyContent:"center",alignItems:"center",width:1,children:e.jsx(N,{variant:"text",type:"button",color:"inherit",onClick:d,disabled:j,sx:{color:x=>x.palette.text.disabled},children:s(j?"webhookEndpoint.loadingMore":"webhookEndpoint.loadMore")})})]})}),e.jsxs(K,{item:!0,xs:12,md:8,height:1,children:[w&&e.jsxs(P,{height:1,overflow:"auto",direction:"column",spacing:2,sx:{pl:{xs:0,md:1},mt:{xs:2,md:0},borderLeft:{xs:"none"}},children:[e.jsxs(m,{sx:{display:"flex",alignItems:"center",gap:1},children:[e.jsx(I,{variant:"h6",children:o?w.endpoint.url:w.event.type}),e.jsx(m,{children:S(w)})]}),e.jsxs(m,{children:[e.jsxs(I,{variant:"h6",children:[s("webhookEndpoint.response")," (",w.responseStatus,")"]}),e.jsx(J,{language:"json",children:JSON.stringify(w.responseBody,null,2)})]}),e.jsxs(m,{children:[e.jsx(P,{direction:"row",alignItems:"center",spacing:1,children:e.jsx(I,{variant:"h6",children:s("webhookEndpoint.request")})}),e.jsx(J,{language:"json",sx:{margin:0},children:JSON.stringify(w.event,null,2)})]})]}),(a==null?void 0:a.list.length)===0&&u&&e.jsxs(m,{children:[e.jsx(P,{direction:"row",alignItems:"center",spacing:1,children:e.jsx(I,{variant:"h6",children:s("webhookEndpoint.eventData")})}),e.jsx(J,{language:"json",sx:{margin:0},children:JSON.stringify(u.data,null,2)})]})]})]})}ie.propTypes={eventId:t.string,webhookEndpointId:t.string,event:t.shape({type:t.string,data:t.object,request:t.object,requestInfo:t.object})};ie.defaultProps={eventId:"",webhookEndpointId:"",event:null};function be({id:o,onClose:p}){var j,y,f,w;const{t:u}=B(),{api:E}=V(),{teamDid:s}=_(),{loading:R,error:c,data:a}=ue(()=>E.getWebhookEndpoint({input:{teamDid:s,id:o}})),d=a==null?void 0:a.data;return c?e.jsx(X,{severity:"error",children:c.message}):R||!d?e.jsx(m,{display:"flex",justifyContent:"center",alignItems:"center",height:1,width:1,children:e.jsx(H,{})}):e.jsxs(lt,{direction:"column",sx:{height:{xs:"auto",md:1}},children:[e.jsxs(m,{children:[e.jsxs(P,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[e.jsx(P,{flex:1,width:0,children:e.jsxs(m,{sx:{display:"flex",alignItems:"center",gap:1},children:[e.jsx(I,{variant:"h5",fontWeight:600,sx:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:d.description}),e.jsx(q,{title:d.url,children:e.jsx(Z,{sx:{fontSize:"16px",marginTop:"2px"}})})]})}),e.jsx(P,{direction:"row",alignItems:"center",children:e.jsx(te,{edge:"end",color:"inherit",onClick:p,children:e.jsx(Ue,{})})})]}),e.jsx(m,{mt:2,children:e.jsxs(P,{className:"section-body",direction:{xs:"column",md:"row"},spacing:{xs:1,md:3},justifyContent:"flex-start",flexWrap:"wrap",sx:{pt:2,mt:2,borderTop:"1px solid #eee"},children:[e.jsx(W,{label:u("common.status"),value:e.jsx(L,{size:"small",variant:"filled",label:d.status,color:me(d.status),sx:{borderRadius:"4px",lineHeight:"20px",textTransform:"capitalize"}}),divider:!0}),e.jsx(W,{label:u("webhookEndpoint.listen"),value:e.jsx(q,{arrow:!0,title:e.jsx("ul",{style:{padding:0,margin:0},children:d.enabledEvents.map(b=>e.jsx("li",{style:{fontSize:"0.7875rem"},children:b==null?void 0:b.type},b))}),children:e.jsx(L,{size:"small",variant:"filled",label:u("webhookEndpoint.eventsCount",{count:d.enabledEvents.length}),sx:{borderRadius:"4px",lineHeight:"20px",textTransform:"capitalize"}})}),divider:!0}),e.jsx(W,{label:u("webhookEndpoint.version"),value:d.apiVersion,divider:!0}),e.jsx(W,{label:u("common.createdAt"),value:F(d.createdAt),divider:!0}),e.jsx(W,{label:u("common.updatedAt"),value:F(d.updatedAt),divider:!0}),e.jsx(W,{label:u("common.createdBy"),value:e.jsx(q,{arrow:!0,title:(j=d.createUser)==null?void 0:j.did,children:e.jsx(L,{size:"small",variant:"filled",label:(y=d.createUser)==null?void 0:y.fullName,sx:{borderRadius:"4px",lineHeight:"20px",textTransform:"capitalize"}})}),divider:!0}),e.jsx(W,{label:u("common.updatedBy"),value:e.jsx(q,{arrow:!0,title:(f=d.updateUser)==null?void 0:f.did,children:e.jsx(L,{size:"small",variant:"filled",label:(w=d.updateUser)==null?void 0:w.fullName,sx:{borderRadius:"4px",lineHeight:"20px",textTransform:"capitalize"}})})})]})})]}),e.jsxs(P,{className:"section",flex:1,height:0,overflow:"hidden",children:[e.jsx(ne,{title:u("webhookEndpoint.attempts"),mb:0,mt:4}),e.jsx(P,{height:0,flex:1,overflow:"hidden",children:e.jsx(ie,{webhookEndpointId:d.id})})]})]})}be.propTypes={id:t.string.isRequired,onClose:t.func.isRequired};const lt=he(P)``;function ge({open:o,onClose:p,id:u}){return e.jsx(Le,{anchor:"right",open:o,onClose:p,PaperProps:{sx:{width:"90vw",maxWidth:"1200px"}},children:e.jsx(m,{sx:{height:"100vh",p:3},children:e.jsx(be,{id:u,onClose:p})})})}ge.propTypes={open:t.bool.isRequired,onClose:t.func.isRequired,id:t.string.isRequired};function de(){return null}const re=ee.memo(({options:o,columns:p,toolbar:u=!0,footer:E=!0,hasRowLink:s=!1,emptyNodeText:R="",...c})=>{const{locale:a}=B(),d=Me(f=>f.breakpoints.down("md")),j={print:!1,download:!1,filter:!1,selectableRows:"none",rowsPerPage:d?5:10,rowsPerPageOptions:[5,10,20,50,100],searchDebounceTime:300,tableBodyHeight:"100%",loading:!0},y={};return u||(y.TableToolbar=de),E||(y.TableFooter=de),e.jsx(at,{locale:a,options:{...j,...o},columns:(p||[]).map(f=>(f.options=f.options||{},f.options.filter=f.options.filter||!1,f.options.sort=f.options.sort||!1,f)),emptyNode:e.jsx(Ke,{children:R}),...c,components:y,hasRowLink:s,isMobile:d})});re.propTypes={options:t.object,columns:t.array,toolbar:t.bool,footer:t.bool,hasRowLink:t.bool,emptyNodeText:t.node,durable:t.string,durableKeys:t.array,data:t.array,loading:t.bool,onChange:t.func,title:t.node,components:t.object};re.defaultProps={options:{},columns:[],toolbar:!0,footer:!0,hasRowLink:!1,emptyNodeText:null,durable:"",durableKeys:[],data:[],loading:!1,onChange:()=>{},title:null,components:{}};const at=he(fe)``,ct=re;function qt(){const{teamDid:o}=_(),p=Ne(),u=`webhook-endpoints-${o}`,E=je(u),{t:s,locale:R}=B(),{api:c}=V(),[a,d]=T.useState(""),[j,y]=T.useState({webhookDetail:{open:!1,id:null},createEdit:{open:!1,id:null,url:"",description:"",enabledEvents:[]},deleteConfirm:null}),[f,w]=$e(u,{defaultValue:{pageSize:E.rowsPerPage||20,page:E.page?E.page+1:1}}),{loading:b,error:l,data:g,refresh:h}=ue(()=>c.getWebhookEndpoints({input:{teamDid:o,paging:{page:f.page,pageSize:f.pageSize}}}));T.useEffect(()=>{h()},[f,h]);const S=T.useCallback(async(i,r)=>{try{await c.updateWebhookEndpoint({input:{teamDid:o,id:i.id,data:{status:r?"disabled":"enabled"}}}),h(),M.success(`${s(r?"webhookEndpoint.disable":"webhookEndpoint.enable")}${s("webhookEndpoint.success")}`)}catch(n){M.error(n==null?void 0:n.message)}},[c,o,h,s]),x=T.useCallback(async i=>{try{await c.deleteWebhookEndpoint({input:{teamDid:o,id:i}}),h(),y(r=>({...r,deleteConfirm:null})),M.success(`${s("common.delete")}${s("webhookEndpoint.success")}`)}catch(r){M.error(r==null?void 0:r.message)}},[c,o,h,s]),z=(i,r)=>{let n=i.page+1;const C=i.searchText||"";if(C!==a){d(C);return}if(r==="changePage"||r==="changeRowsPerPage"){r!=="changePage"&&(n=1);const v={page:n,pageSize:i.rowsPerPage};d(""),w(v)}};if(l)return e.jsx(X,{severity:"error",children:l.message});if(b||!g)return e.jsx(m,{display:"flex",justifyContent:"center",alignItems:"center",width:1,height:500,children:e.jsx(H,{})});const k=((g==null?void 0:g.list)||[]).filter(i=>{if(!a)return!0;const r=a.toLowerCase();return i.description.toLowerCase().includes(r)||i.url.toLowerCase().includes(r)}),O=[{label:"URL",name:"url",options:{customBodyRenderLite:(i,r)=>{const n=k[r];return e.jsxs(m,{sx:{display:"flex",alignItems:"center",cursor:"pointer",gap:.5},children:[e.jsx(I,{variant:"body2",children:n.description}),e.jsx(m,{sx:{display:"flex"},onClick:C=>{C.stopPropagation()},children:e.jsx(q,{title:n.url,children:e.jsx(Z,{sx:{fontSize:"15px",marginTop:"1px"}})})})]})}}},{label:"Events",name:"events",options:{customBodyRenderLite:(i,r)=>{const n=k[r];return e.jsx(m,{sx:{display:"flex",alignItems:"center",gap:1,flexWrap:"wrap"},children:n.enabledEvents.map(C=>e.jsx(L,{size:"small",variant:"filled",label:C.type,sx:{borderRadius:"4px",textTransform:"capitalize"}},`${n.source}-${C.type}`))})}}},{label:s("common.status"),name:"status",options:{customBodyRenderLite:(i,r)=>{const n=k[r];return e.jsx(L,{size:"small",variant:"filled",label:s(`webhookEndpoint.${n==null?void 0:n.status}`),color:me(n==null?void 0:n.status),sx:{borderRadius:"4px",textTransform:"capitalize"}},`status-${n.status}`)}}},{label:s("common.createdAt"),name:"createdAt",minWidth:200,options:{customBodyRender:i=>F(i)}},{label:s("common.actions"),name:"actions",width:100,align:"center",verticalKeyAlign:"center",options:{customBodyRenderLite:(i,r)=>{const n=k[r],C=(n==null?void 0:n.status)==="enabled";return e.jsx(Ye,{actions:[{icon:C?e.jsx(et,{}):e.jsx(tt,{}),text:s(C?"webhookEndpoint.disable":"webhookEndpoint.enable"),onClick:v=>{v.stopPropagation(),S(n,C)}},{icon:e.jsx(Qe,{}),text:s("common.edit"),onClick:v=>{v.stopPropagation(),y(D=>({...D,createEdit:{open:!0,id:n.id,url:n.url,description:n.description,enabledEvents:n.enabledEvents}}))}},{icon:e.jsx(Je,{}),text:s("common.delete"),onClick:v=>{v.stopPropagation(),y(D=>({...D,deleteConfirm:{title:s("webhookEndpoint.deleteWebhook.title"),description:s("webhookEndpoint.deleteWebhook.description"),confirm:s("common.confirm"),cancel:s("common.cancel"),onConfirm:()=>x(n.id),onCancel:()=>y(A=>({...A,deleteConfirm:null}))}}))}}]})}}}];return e.jsxs(m,{sx:{".custom-toobar-btns":{gap:"8px"},".custom-toobar-title .custom-toobar-title-inner>span":{display:"flex",alignItems:"center","white-space":"inherit",height:"100%"}},children:[p?e.jsx(ce,{title:s("webhookEndpoint.listTitle"),tooltipTitle:s("webhookEndpoint.tooltipTitle"),link:`https://www.arcblock.io/docs/blocklet-developer/${R}/webhook`}):null,e.jsx(ct,{durable:u,durableKeys:["page","rowsPerPage"],data:k,columns:O,options:{count:g.count,page:f.page-1,rowsPerPage:f.pageSize,viewColumns:!1,onRowClick:(i,{dataIndex:r})=>{const n=g.list[r];y(C=>({...C,webhookDetail:{open:!0,id:n.id}}))}},loading:b,onChange:z,emptyNodeText:e.jsx(P,{gap:1,children:s("webhookEndpoint.noWebhooksAdded")}),title:p?null:e.jsx(ce,{title:s("webhookEndpoint.listTitle"),tooltipTitle:s("webhookEndpoint.tooltipTitle"),link:`https://www.arcblock.io/docs/blocklet-developer/${R}/webhook`}),customButtons:[e.jsxs(N,{sx:{color:"common.white"},edge:"end",variant:"contained",color:"primary",onClick:()=>y(i=>({...i,createEdit:{...i.createEdit,open:!0}})),className:"rule-action",children:[b?e.jsx(H,{size:16}):e.jsx(He,{style:{fontSize:16}}),s("common.create")]},"add")]}),j.webhookDetail.open&&e.jsx(ge,{open:!0,onClose:()=>y(i=>({...i,webhookDetail:{open:!1,id:null}})),id:j.webhookDetail.id}),j.createEdit.open&&e.jsx(se,{onSubmit:h,...j.createEdit,onClose:()=>y(i=>({...i,createEdit:{id:null,url:"",description:"",enabledEvents:[],open:!1}}))}),j.deleteConfirm&&e.jsx(Be,{title:j.deleteConfirm.title,description:j.deleteConfirm.description,confirm:j.deleteConfirm.confirm,cancel:j.deleteConfirm.cancel,params:j.deleteConfirm.params,onConfirm:j.deleteConfirm.onConfirm,onCancel:j.deleteConfirm.onCancel})]})}export{qt as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aP as no,aQ as oo,j as o,gi as us,r as _,cu as Fr,gj as ds,gk as It,fm as $e,gl as fs,gm as ps,gn as so,go as ms,gp as hs,gq as gs,gr as io,gs as bs,gt as Ur,gu as ys,gv as vs,gw as xs,gx as ws,cF as Rr,fn as $r,gy as ao,bu as Cs,F as Ts,bl as Ss,d8 as wn,fg as Ps,H as js,c1 as ze,c0 as He,b8 as ye,bZ as J,b$ as ke,c4 as We,c5 as Le,a4 as Vr,k as Be,dh as Ds,ck as Es,fk as lo,Q as pt,ax as Yt,cj as co,c3 as uo,dn as Gt,eo as Br,t as mt,P as l,al as fo,gz as qr,bj as Cn,E as ks,bi as _e,bD as po,N as Ot,bm as Rs,m as Fe,K as pe,gA as Is,bq as Ue,aT as Kr,O as Ir,S as Or,av as Os,fh as As,gB as Zt,aw as At,d9 as Ns,y as Qe,D as ft,B as Ie,C as Ct,s as zr,V as xt,X as st,gC as Ms,h as Ar,a_ as _s,v as Ls,w as Fs,n as Ae,fN as Us,e as Lt,ae as Ft,bE as ht,gD as $s,b as nt,dv as Vs,o as Ut,A as rt,aB as Nt,d3 as Bs,gE as qs,gF as mo,gG as Qt,gH as Ks,fi as Tn,W as Hr,ea as zs,bv as ho,bw as go,bx as Hs,aH as Ws,bt as bo,R as Nr,gI as yo,aW as Ys,gJ as vo,aI as Gs,aa as Zs,a2 as Qs,cX as Xs,bG as Js,aY as ei,U as ti,M as ri}from"./index-e66xJJ-x.js";import{d as Xt}from"./Add-BYFWsyUF.js";import{d as ni}from"./ViewList-BaTy1Ph1.js";import{D as xo,g as oi}from"./index-CIH-dF5H.js";import{R as wo,U as si}from"./resource-dialog-DtmI53Zf.js";import{W as Co}from"./url-evaluation-DRKjUU7g.js";import{u as Ye}from"./team-BczhIV16.js";import{u as To}from"./blocklet-BNsbNDuf.js";import{P as ot}from"./permission-CtZli8Hf.js";import{C as or}from"./click-to-copy-ADdBawgq.js";import{u as Xe,a as at,f as Ze,s as gt,S as ii,g as ai,P as Wr,b as li,c as So,d as Yr,e as Gr,h as Zr,i as Qr,j as Jt,k as sr,D as Po,M as kt,l as ci,v as ui,m as di,n as fi,o as jo,p as er,q as pi,r as mi,t as Mt,w as Sn,x as Pn,y as tt,z as zt,A as hi,T as gi,B as bi,C as yi,E as vi,V as xi,F as wt,G as wi,H as Do,I as Ci,J as Ti,K as Si,L as Pi,N as ji}from"./AdapterDayjs-bsD4OAFM.js";import{u as Re}from"./useThemeProps-Dk-4jx1U.js";import{a as Di,t as Ei,b as jn,T as ki}from"./index-CNOx9gM8.js";import{r as Eo}from"./refType-CrQ6NnaY.js";import{I as Me}from"./index-JsgthZUN.js";import{d as Ri}from"./Verified-CLm0sUb6.js";import{d as Ii}from"./DeleteOutline-CSi3y8ZI.js";import{d as Dn}from"./ErrorOutline-zzYP4d-G.js";import{E as ko}from"./index-f9QTV2yS.js";import{d as Oi}from"./Search-DlTi3_X0.js";import{N as Ai}from"./index-BTVRLsIg.js";import{b as Ni}from"./sdk-CGbU2sfF.js";import{d as Mi}from"./Delete-D0GFkYtH.js";import{A as _i}from"./actions-DveJjfxt.js";import{S as Li}from"./shorten-label-w_L-1NYs.js";var Xr={},Fi=oo;Object.defineProperty(Xr,"__esModule",{value:!0});var Ro=Xr.default=void 0,Ui=Fi(no()),$i=o;Ro=Xr.default=(0,Ui.default)((0,$i.jsx)("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"}),"Loop");var Jr=function(e){return o.jsxs("svg",{...e,children:[o.jsx("g",{clipPath:"url(#clip0)",children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.99997 1.59778C8.19071 1.59778 7.39961 1.83775 6.72673 2.28736C6.05385 2.73697 5.5294 3.37601 5.21971 4.12367C4.91001 4.87134 4.82898 5.69405 4.98686 6.48777C5.14474 7.28149 5.53444 8.01056 6.10668 8.5828C6.67892 9.15504 7.408 9.54474 8.20172 9.70262C8.99544 9.8605 9.81815 9.77947 10.5658 9.46978C11.3135 9.16009 11.9525 8.63564 12.4021 7.96276C12.8517 7.28987 13.0917 6.49878 13.0917 5.68951C13.0917 4.60432 12.6606 3.56357 11.8933 2.79622C11.1259 2.02887 10.0852 1.59778 8.99997 1.59778ZM7.27426 3.9638C7.73195 3.50611 8.35271 3.24899 8.99997 3.24899C9.48266 3.24899 9.95452 3.39212 10.3559 3.66029C10.7572 3.92846 11.07 4.30962 11.2547 4.75556C11.4394 5.20151 11.4878 5.69222 11.3936 6.16563C11.2994 6.63905 11.067 7.07391 10.7257 7.41522C10.3844 7.75654 9.94951 7.98897 9.4761 8.08314C9.00268 8.17731 8.51197 8.12898 8.06603 7.94426C7.62008 7.75954 7.23892 7.44674 6.97075 7.04539C6.70258 6.64405 6.55945 6.1722 6.55945 5.68951C6.55945 5.04224 6.81658 4.42149 7.27426 3.9638ZM7.36691 10.3075C6.28172 10.3075 5.24097 10.7385 4.47362 11.5059C3.70627 12.2732 3.27518 13.314 3.27518 14.3992V17.121C3.27518 17.2763 3.4011 17.4022 3.55643 17.4022H4.64514C4.80047 17.4022 4.92639 17.2763 4.92639 17.121V14.3992C4.92639 13.7519 5.18351 13.1312 5.6412 12.6735C6.09889 12.2158 6.71964 11.9587 7.36691 11.9587H10.633C10.9535 11.9587 11.2709 12.0218 11.567 12.1444C11.8631 12.2671 12.1321 12.4469 12.3588 12.6735C12.5854 12.9001 12.7651 13.1691 12.8878 13.4652C13.0104 13.7613 13.0736 14.0787 13.0736 14.3992V17.121C13.0736 17.2763 13.1995 17.4022 13.3548 17.4022H14.4435C14.5989 17.4022 14.7248 17.2763 14.7248 17.121V14.3992C14.7248 13.314 14.2937 12.2732 13.5263 11.5059C12.759 10.7385 11.7182 10.3075 10.633 10.3075H7.36691Z"})}),o.jsx("defs",{children:o.jsx("clipPath",{id:"clip0",children:o.jsx("rect",{width:"18",height:"18",transform:"translate(0 0.5)"})})})]})};Jr.defaultProps={width:"18",height:"19",viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg"};Jr.displayName="person";const Vi=Jr;var en=function(e){return o.jsxs("svg",{...e,children:[o.jsx("path",{d:"M1.25 2.7087C1.25 2.24826 1.62326 1.875 2.0837 1.875H14.339C14.7995 1.875 15.1727 2.24826 15.1727 2.7087V9.31574C15.1727 9.77618 14.7995 10.1494 14.339 10.1494C13.8786 10.1494 13.5053 9.77618 13.5053 9.31574V3.54239H2.91739V16.7565H6.53772H8.34788H9.32435C9.78479 16.7565 10.158 17.1297 10.158 17.5902C10.158 18.0506 9.78479 18.4239 9.32435 18.4239H8.34788H2.0837C1.62326 18.4239 1.25 18.0506 1.25 17.5902V2.7087Z"}),o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.21129 7.91935C7.70481 7.91935 7.29422 8.32993 7.29422 8.83641C7.29422 9.34289 7.70481 9.75348 8.21129 9.75348C8.71777 9.75348 9.12836 9.34289 9.12836 8.83641C9.12836 8.32993 8.71777 7.91935 8.21129 7.91935ZM5.62683 8.83641C5.62683 7.40905 6.78393 6.25195 8.21129 6.25195C9.63865 6.25195 10.7957 7.40905 10.7957 8.83641C10.7957 10.2638 9.63865 11.4209 8.21129 11.4209C6.78393 11.4209 5.62683 10.2638 5.62683 8.83641Z"}),o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.62683 13.2133C5.62683 12.7529 6.00009 12.3796 6.46053 12.3796H9.96205C10.4225 12.3796 10.7957 12.7529 10.7957 13.2133C10.7957 13.6737 10.4225 14.047 9.96205 14.047H6.46053C6.00009 14.047 5.62683 13.6737 5.62683 13.2133Z"}),o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6406 11.3125C15.8547 11.3125 16.0503 11.434 16.145 11.626L17.1779 13.7184L19.4876 14.056C19.6994 14.087 19.8753 14.2355 19.9413 14.4391C20.0074 14.6427 19.9521 14.8662 19.7987 15.0156L18.1279 16.643L18.5222 18.9421C18.5584 19.1532 18.4716 19.3665 18.2984 19.4923C18.1252 19.6182 17.8955 19.6347 17.706 19.5351L15.6406 18.4489L13.5753 19.5351C13.3858 19.6347 13.1561 19.6182 12.9829 19.4923C12.8096 19.3665 12.7229 19.1532 12.7591 18.9421L13.1534 16.643L11.4825 15.0156C11.3292 14.8662 11.2739 14.6427 11.3399 14.4391C11.406 14.2355 11.5818 14.087 11.7937 14.056L14.1034 13.7184L15.1362 11.626C15.231 11.434 15.4265 11.3125 15.6406 11.3125ZM15.6406 13.1458L14.9815 14.4813C14.8996 14.6471 14.7414 14.7621 14.5584 14.7889L13.0835 15.0044L14.1503 16.0435C14.283 16.1727 14.3435 16.359 14.3122 16.5416L14.0606 18.0088L15.3788 17.3155C15.5427 17.2293 15.7386 17.2293 15.9025 17.3155L17.2207 18.0088L16.969 16.5416C16.9377 16.359 16.9983 16.1727 17.131 16.0435L18.1978 15.0044L16.7229 14.7889C16.5399 14.7621 16.3817 14.6471 16.2998 14.4813L15.6406 13.1458Z"})]})};en.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};en.displayName="external-issuer";const Io=en;var Ht={},Bi=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),Oo="%[a-f0-9]{2}",En=new RegExp("("+Oo+")|([^%]+?)","gi"),kn=new RegExp("("+Oo+")+","gi");function Mr(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],Mr(n),Mr(r))}function qi(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(En)||[],n=1;n<t.length;n++)e=Mr(t,n).join(""),t=e.match(En)||[];return e}}function Ki(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=kn.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch{var r=qi(n[0]);r!==n[0]&&(t[n[0]]=r)}n=kn.exec(e)}t["%C2"]="�";for(var s=Object.keys(t),a=0;a<s.length;a++){var u=s[a];e=e.replace(new RegExp(u,"g"),t[u])}return e}var zi=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return Ki(e)}},Hi=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const n=e.indexOf(t);return n===-1?[e]:[e.slice(0,n),e.slice(n+t.length)]},Wi=function(e,t){for(var n={},r=Object.keys(e),s=Array.isArray(t),a=0;a<r.length;a++){var u=r[a],p=e[u];(s?t.indexOf(u)!==-1:t(u,p,e))&&(n[u]=p)}return n};(function(e){const t=Bi,n=zi,r=Hi,s=Wi,a=c=>c==null;function u(c){switch(c.arrayFormat){case"index":return i=>(d,b)=>{const T=d.length;return b===void 0||c.skipNull&&b===null||c.skipEmptyString&&b===""?d:b===null?[...d,[m(i,c),"[",T,"]"].join("")]:[...d,[m(i,c),"[",m(T,c),"]=",m(b,c)].join("")]};case"bracket":return i=>(d,b)=>b===void 0||c.skipNull&&b===null||c.skipEmptyString&&b===""?d:b===null?[...d,[m(i,c),"[]"].join("")]:[...d,[m(i,c),"[]=",m(b,c)].join("")];case"comma":case"separator":return i=>(d,b)=>b==null||b.length===0?d:d.length===0?[[m(i,c),"=",m(b,c)].join("")]:[[d,m(b,c)].join(c.arrayFormatSeparator)];default:return i=>(d,b)=>b===void 0||c.skipNull&&b===null||c.skipEmptyString&&b===""?d:b===null?[...d,m(i,c)]:[...d,[m(i,c),"=",m(b,c)].join("")]}}function p(c){let i;switch(c.arrayFormat){case"index":return(d,b,T)=>{if(i=/\[(\d*)\]$/.exec(d),d=d.replace(/\[\d*\]$/,""),!i){T[d]=b;return}T[d]===void 0&&(T[d]={}),T[d][i[1]]=b};case"bracket":return(d,b,T)=>{if(i=/(\[\])$/.exec(d),d=d.replace(/\[\]$/,""),!i){T[d]=b;return}if(T[d]===void 0){T[d]=[b];return}T[d]=[].concat(T[d],b)};case"comma":case"separator":return(d,b,T)=>{const S=typeof b=="string"&&b.includes(c.arrayFormatSeparator),k=typeof b=="string"&&!S&&f(b,c).includes(c.arrayFormatSeparator);b=k?f(b,c):b;const Y=S||k?b.split(c.arrayFormatSeparator).map(B=>f(B,c)):b===null?b:f(b,c);T[d]=Y};default:return(d,b,T)=>{if(T[d]===void 0){T[d]=b;return}T[d]=[].concat(T[d],b)}}}function v(c){if(typeof c!="string"||c.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function m(c,i){return i.encode?i.strict?t(c):encodeURIComponent(c):c}function f(c,i){return i.decode?n(c):c}function E(c){return Array.isArray(c)?c.sort():typeof c=="object"?E(Object.keys(c)).sort((i,d)=>Number(i)-Number(d)).map(i=>c[i]):c}function g(c){const i=c.indexOf("#");return i!==-1&&(c=c.slice(0,i)),c}function D(c){let i="";const d=c.indexOf("#");return d!==-1&&(i=c.slice(d)),i}function y(c){c=g(c);const i=c.indexOf("?");return i===-1?"":c.slice(i+1)}function R(c,i){return i.parseNumbers&&!Number.isNaN(Number(c))&&typeof c=="string"&&c.trim()!==""?c=Number(c):i.parseBooleans&&c!==null&&(c.toLowerCase()==="true"||c.toLowerCase()==="false")&&(c=c.toLowerCase()==="true"),c}function j(c,i){i=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},i),v(i.arrayFormatSeparator);const d=p(i),b=Object.create(null);if(typeof c!="string"||(c=c.trim().replace(/^[?#&]/,""),!c))return b;for(const T of c.split("&")){if(T==="")continue;let[S,k]=r(i.decode?T.replace(/\+/g," "):T,"=");k=k===void 0?null:["comma","separator"].includes(i.arrayFormat)?k:f(k,i),d(f(S,i),k,b)}for(const T of Object.keys(b)){const S=b[T];if(typeof S=="object"&&S!==null)for(const k of Object.keys(S))S[k]=R(S[k],i);else b[T]=R(S,i)}return i.sort===!1?b:(i.sort===!0?Object.keys(b).sort():Object.keys(b).sort(i.sort)).reduce((T,S)=>{const k=b[S];return k&&typeof k=="object"&&!Array.isArray(k)?T[S]=E(k):T[S]=k,T},Object.create(null))}e.extract=y,e.parse=j,e.stringify=(c,i)=>{if(!c)return"";i=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},i),v(i.arrayFormatSeparator);const d=k=>i.skipNull&&a(c[k])||i.skipEmptyString&&c[k]==="",b=u(i),T={};for(const k of Object.keys(c))d(k)||(T[k]=c[k]);const S=Object.keys(T);return i.sort!==!1&&S.sort(i.sort),S.map(k=>{const Y=c[k];return Y===void 0?"":Y===null?m(k,i):Array.isArray(Y)?Y.reduce(b(k),[]).join("&"):m(k,i)+"="+m(Y,i)}).filter(k=>k.length>0).join("&")},e.parseUrl=(c,i)=>{i=Object.assign({decode:!0},i);const[d,b]=r(c,"#");return Object.assign({url:d.split("?")[0]||"",query:j(y(c),i)},i&&i.parseFragmentIdentifier&&b?{fragmentIdentifier:f(b,i)}:{})},e.stringifyUrl=(c,i)=>{i=Object.assign({encode:!0,strict:!0},i);const d=g(c.url).split("?")[0]||"",b=e.extract(c.url),T=e.parse(b,{sort:!1}),S=Object.assign(T,c.query);let k=e.stringify(S,i);k&&(k=`?${k}`);let Y=D(c.url);return c.fragmentIdentifier&&(Y=`#${m(c.fragmentIdentifier,i)}`),`${d}${k}${Y}`},e.pick=(c,i,d)=>{d=Object.assign({parseFragmentIdentifier:!0},d);const{url:b,query:T,fragmentIdentifier:S}=e.parseUrl(c,d);return e.stringifyUrl({url:b,query:s(T,i),fragmentIdentifier:S},d)},e.exclude=(c,i,d)=>{const b=Array.isArray(i)?T=>!i.includes(T):(T,S)=>!i(T,S);return e.pick(c,b,d)}})(Ht);const Dt=ds,Yi={parseNumbers:!1,parseBooleans:!1},Gi={skipNull:!1,skipEmptyString:!1},Zi=(e,t)=>{var n,r;const{navigateMode:s="push",parseOptions:a,stringifyOptions:u}={},p=Object.assign(Object.assign({},Yi),a),v=Object.assign(Object.assign({},Gi),u),m=Dt.useLocation(),f=(n=Dt.useHistory)===null||n===void 0?void 0:n.call(Dt),E=(r=Dt.useNavigate)===null||r===void 0?void 0:r.call(Dt),g=us(),D=_.useRef(typeof e=="function"?e():e||{}),y=_.useMemo(()=>Ht.parse(m.search,p),[m.search]),R=_.useMemo(()=>Object.assign(Object.assign({},D.current),y),[y]);return[R,Fr(c=>{const i=typeof c=="function"?c(R):c;g(),f&&f[s]({hash:m.hash,search:Ht.stringify(Object.assign(Object.assign({},y),i),v)||"?"},m.state),E&&E({hash:m.hash,search:Ht.stringify(Object.assign(Object.assign({},y),i),v)||"?"},{replace:s==="replace",state:m.state})})]},Qi=Zi;var fr={exports:{}},pr={},Rn;function Ao(){if(Rn)return pr;Rn=1;function e(i){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},e(i)}function t(i,d,b){return Object.defineProperty(i,"prototype",{writable:!1}),i}function n(i,d){if(!(i instanceof d))throw new TypeError("Cannot call a class as a function")}function r(i,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(d&&d.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),d&&s(i,d)}function s(i,d){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(T,S){return T.__proto__=S,T},s(i,d)}function a(i){var d=v();return function(){var T=m(i),S;if(d){var k=m(this).constructor;S=Reflect.construct(T,arguments,k)}else S=T.apply(this,arguments);return u(this,S)}}function u(i,d){if(d&&(e(d)==="object"||typeof d=="function"))return d;if(d!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return p(i)}function p(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function v(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function m(i){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(b){return b.__proto__||Object.getPrototypeOf(b)},m(i)}var f={},E,g;function D(i,d,b){b||(b=Error);function T(k,Y,B){return typeof d=="string"?d:d(k,Y,B)}var S=function(k){r(B,k);var Y=a(B);function B(z,K,H){var Q;return n(this,B),Q=Y.call(this,T(z,K,H)),Q.code=i,Q}return t(B)}(b);f[i]=S}function y(i,d){if(Array.isArray(i)){var b=i.length;return i=i.map(function(T){return String(T)}),b>2?"one of ".concat(d," ").concat(i.slice(0,b-1).join(", "),", or ")+i[b-1]:b===2?"one of ".concat(d," ").concat(i[0]," or ").concat(i[1]):"of ".concat(d," ").concat(i[0])}else return"of ".concat(d," ").concat(String(i))}function R(i,d,b){return i.substr(0,d.length)===d}function j(i,d,b){return(b===void 0||b>i.length)&&(b=i.length),i.substring(b-d.length,b)===d}function c(i,d,b){return typeof b!="number"&&(b=0),b+d.length>i.length?!1:i.indexOf(d,b)!==-1}return D("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),D("ERR_INVALID_ARG_TYPE",function(i,d,b){E===void 0&&(E=_r()),E(typeof i=="string","'name' must be a string");var T;typeof d=="string"&&R(d,"not ")?(T="must not be",d=d.replace(/^not /,"")):T="must be";var S;if(j(i," argument"))S="The ".concat(i," ").concat(T," ").concat(y(d,"type"));else{var k=c(i,".")?"property":"argument";S='The "'.concat(i,'" ').concat(k," ").concat(T," ").concat(y(d,"type"))}return S+=". Received type ".concat(e(b)),S},TypeError),D("ERR_INVALID_ARG_VALUE",function(i,d){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";g===void 0&&(g=It);var T=g.inspect(d);return T.length>128&&(T="".concat(T.slice(0,128),"...")),"The argument '".concat(i,"' ").concat(b,". Received ").concat(T)},TypeError),D("ERR_INVALID_RETURN_VALUE",function(i,d,b){var T;return b&&b.constructor&&b.constructor.name?T="instance of ".concat(b.constructor.name):T="type ".concat(e(b)),"Expected ".concat(i,' to be returned from the "').concat(d,'"')+" function but got ".concat(T,".")},TypeError),D("ERR_MISSING_ARGS",function(){for(var i=arguments.length,d=new Array(i),b=0;b<i;b++)d[b]=arguments[b];E===void 0&&(E=_r()),E(d.length>0,"At least one arg needs to be specified");var T="The ",S=d.length;switch(d=d.map(function(k){return'"'.concat(k,'"')}),S){case 1:T+="".concat(d[0]," argument");break;case 2:T+="".concat(d[0]," and ").concat(d[1]," arguments");break;default:T+=d.slice(0,S-1).join(", "),T+=", and ".concat(d[S-1]," arguments");break}return"".concat(T," must be specified")},TypeError),pr.codes=f,pr}var mr,In;function Xi(){if(In)return mr;In=1;function e(I,N){var G=Object.keys(I);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(I);N&&(U=U.filter(function($){return Object.getOwnPropertyDescriptor(I,$).enumerable})),G.push.apply(G,U)}return G}function t(I){for(var N=1;N<arguments.length;N++){var G=arguments[N]!=null?arguments[N]:{};N%2?e(Object(G),!0).forEach(function(U){n(I,U,G[U])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(G)):e(Object(G)).forEach(function(U){Object.defineProperty(I,U,Object.getOwnPropertyDescriptor(G,U))})}return I}function n(I,N,G){return N=u(N),N in I?Object.defineProperty(I,N,{value:G,enumerable:!0,configurable:!0,writable:!0}):I[N]=G,I}function r(I,N){if(!(I instanceof N))throw new TypeError("Cannot call a class as a function")}function s(I,N){for(var G=0;G<N.length;G++){var U=N[G];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(I,u(U.key),U)}}function a(I,N,G){return N&&s(I.prototype,N),Object.defineProperty(I,"prototype",{writable:!1}),I}function u(I){var N=p(I,"string");return i(N)==="symbol"?N:String(N)}function p(I,N){if(i(I)!=="object"||I===null)return I;var G=I[Symbol.toPrimitive];if(G!==void 0){var U=G.call(I,N||"default");if(i(U)!=="object")return U;throw new TypeError("@@toPrimitive must return a primitive value.")}return(N==="string"?String:Number)(I)}function v(I,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(N&&N.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),Object.defineProperty(I,"prototype",{writable:!1}),N&&j(I,N)}function m(I){var N=y();return function(){var U=c(I),$;if(N){var P=c(this).constructor;$=Reflect.construct(U,arguments,P)}else $=U.apply(this,arguments);return f(this,$)}}function f(I,N){if(N&&(i(N)==="object"||typeof N=="function"))return N;if(N!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return E(I)}function E(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function g(I){var N=typeof Map=="function"?new Map:void 0;return g=function(U){if(U===null||!R(U))return U;if(typeof U!="function")throw new TypeError("Super expression must either be null or a function");if(typeof N<"u"){if(N.has(U))return N.get(U);N.set(U,$)}function $(){return D(U,arguments,c(this).constructor)}return $.prototype=Object.create(U.prototype,{constructor:{value:$,enumerable:!1,writable:!0,configurable:!0}}),j($,U)},g(I)}function D(I,N,G){return y()?D=Reflect.construct.bind():D=function($,P,x){var w=[null];w.push.apply(w,P);var L=Function.bind.apply($,w),M=new L;return x&&j(M,x.prototype),M},D.apply(null,arguments)}function y(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function R(I){return Function.toString.call(I).indexOf("[native code]")!==-1}function j(I,N){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(U,$){return U.__proto__=$,U},j(I,N)}function c(I){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(G){return G.__proto__||Object.getPrototypeOf(G)},c(I)}function i(I){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(N){return typeof N}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},i(I)}var d=It,b=d.inspect,T=Ao(),S=T.codes.ERR_INVALID_ARG_TYPE;function k(I,N,G){return(G===void 0||G>I.length)&&(G=I.length),I.substring(G-N.length,G)===N}function Y(I,N){if(N=Math.floor(N),I.length==0||N==0)return"";var G=I.length*N;for(N=Math.floor(Math.log(N)/Math.log(2));N;)I+=I,N--;return I+=I.substring(0,G-I.length),I}var B="",z="",K="",H="",Q={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},le=10;function he(I){var N=Object.keys(I),G=Object.create(Object.getPrototypeOf(I));return N.forEach(function(U){G[U]=I[U]}),Object.defineProperty(G,"message",{value:I.message}),G}function de(I){return b(I,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function te(I,N,G){var U="",$="",P=0,x="",w=!1,L=de(I),M=L.split(`
|
|
1
|
+
import{aP as no,aQ as oo,j as o,gi as us,r as _,cu as Fr,gj as ds,gk as It,fm as $e,gl as fs,gm as ps,gn as so,go as ms,gp as hs,gq as gs,gr as io,gs as bs,gt as Ur,gu as ys,gv as vs,gw as xs,gx as ws,cF as Rr,fn as $r,gy as ao,bu as Cs,F as Ts,bl as Ss,d8 as wn,fg as Ps,H as js,c1 as ze,c0 as He,b8 as ye,bZ as J,b$ as ke,c4 as We,c5 as Le,a4 as Vr,k as Be,dh as Ds,ck as Es,fk as lo,Q as pt,ax as Yt,cj as co,c3 as uo,dn as Gt,eo as Br,t as mt,P as l,al as fo,gz as qr,bj as Cn,E as ks,bi as _e,bD as po,N as Ot,bm as Rs,m as Fe,K as pe,gA as Is,bq as Ue,aT as Kr,O as Ir,S as Or,av as Os,fh as As,gB as Zt,aw as At,d9 as Ns,y as Qe,D as ft,B as Ie,C as Ct,s as zr,V as xt,X as st,gC as Ms,h as Ar,a_ as _s,v as Ls,w as Fs,n as Ae,fN as Us,e as Lt,ae as Ft,bE as ht,gD as $s,b as nt,dv as Vs,o as Ut,A as rt,aB as Nt,d3 as Bs,gE as qs,gF as mo,gG as Qt,gH as Ks,fi as Tn,W as Hr,ea as zs,bv as ho,bw as go,bx as Hs,aH as Ws,bt as bo,R as Nr,gI as yo,aW as Ys,gJ as vo,aI as Gs,aa as Zs,a2 as Qs,cX as Xs,bG as Js,aY as ei,U as ti,M as ri}from"./index-BbonVJKD.js";import{d as Xt}from"./Add-DTqXwW0N.js";import{d as ni}from"./ViewList-DRI2pLPW.js";import{D as xo,g as oi}from"./index-cgrbzc6D.js";import{R as wo,U as si}from"./resource-dialog-CCtMXZiw.js";import{W as Co}from"./url-evaluation-CtyhxHau.js";import{u as Ye}from"./team-8WMHXK3a.js";import{u as To}from"./blocklet-ztLpKfcq.js";import{P as ot}from"./permission-CWix4PtW.js";import{C as or}from"./click-to-copy-C-Mvzzk0.js";import{u as Xe,a as at,f as Ze,s as gt,S as ii,g as ai,P as Wr,b as li,c as So,d as Yr,e as Gr,h as Zr,i as Qr,j as Jt,k as sr,D as Po,M as kt,l as ci,v as ui,m as di,n as fi,o as jo,p as er,q as pi,r as mi,t as Mt,w as Sn,x as Pn,y as tt,z as zt,A as hi,T as gi,B as bi,C as yi,E as vi,V as xi,F as wt,G as wi,H as Do,I as Ci,J as Ti,K as Si,L as Pi,N as ji}from"./AdapterDayjs-jFq0UWbd.js";import{u as Re}from"./useThemeProps-DmvmZB1-.js";import{a as Di,t as Ei,b as jn,T as ki}from"./index-Bk6_2RlM.js";import{r as Eo}from"./refType-zKgXx_ar.js";import{I as Me}from"./index-C1Pho2dB.js";import{d as Ri}from"./Verified-CDTmywG7.js";import{d as Ii}from"./DeleteOutline-5qAShT9Y.js";import{d as Dn}from"./ErrorOutline-QNgelF6z.js";import{E as ko}from"./index-Bs8cSBPh.js";import{d as Oi}from"./Search-YHtyGibW.js";import{N as Ai}from"./index-DLWDtECG.js";import{b as Ni}from"./sdk-C-ut0VQ6.js";import{d as Mi}from"./Delete-C3LWwjqe.js";import{A as _i}from"./actions-CuQoe9ro.js";import{S as Li}from"./shorten-label-CrkBaee5.js";var Xr={},Fi=oo;Object.defineProperty(Xr,"__esModule",{value:!0});var Ro=Xr.default=void 0,Ui=Fi(no()),$i=o;Ro=Xr.default=(0,Ui.default)((0,$i.jsx)("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"}),"Loop");var Jr=function(e){return o.jsxs("svg",{...e,children:[o.jsx("g",{clipPath:"url(#clip0)",children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.99997 1.59778C8.19071 1.59778 7.39961 1.83775 6.72673 2.28736C6.05385 2.73697 5.5294 3.37601 5.21971 4.12367C4.91001 4.87134 4.82898 5.69405 4.98686 6.48777C5.14474 7.28149 5.53444 8.01056 6.10668 8.5828C6.67892 9.15504 7.408 9.54474 8.20172 9.70262C8.99544 9.8605 9.81815 9.77947 10.5658 9.46978C11.3135 9.16009 11.9525 8.63564 12.4021 7.96276C12.8517 7.28987 13.0917 6.49878 13.0917 5.68951C13.0917 4.60432 12.6606 3.56357 11.8933 2.79622C11.1259 2.02887 10.0852 1.59778 8.99997 1.59778ZM7.27426 3.9638C7.73195 3.50611 8.35271 3.24899 8.99997 3.24899C9.48266 3.24899 9.95452 3.39212 10.3559 3.66029C10.7572 3.92846 11.07 4.30962 11.2547 4.75556C11.4394 5.20151 11.4878 5.69222 11.3936 6.16563C11.2994 6.63905 11.067 7.07391 10.7257 7.41522C10.3844 7.75654 9.94951 7.98897 9.4761 8.08314C9.00268 8.17731 8.51197 8.12898 8.06603 7.94426C7.62008 7.75954 7.23892 7.44674 6.97075 7.04539C6.70258 6.64405 6.55945 6.1722 6.55945 5.68951C6.55945 5.04224 6.81658 4.42149 7.27426 3.9638ZM7.36691 10.3075C6.28172 10.3075 5.24097 10.7385 4.47362 11.5059C3.70627 12.2732 3.27518 13.314 3.27518 14.3992V17.121C3.27518 17.2763 3.4011 17.4022 3.55643 17.4022H4.64514C4.80047 17.4022 4.92639 17.2763 4.92639 17.121V14.3992C4.92639 13.7519 5.18351 13.1312 5.6412 12.6735C6.09889 12.2158 6.71964 11.9587 7.36691 11.9587H10.633C10.9535 11.9587 11.2709 12.0218 11.567 12.1444C11.8631 12.2671 12.1321 12.4469 12.3588 12.6735C12.5854 12.9001 12.7651 13.1691 12.8878 13.4652C13.0104 13.7613 13.0736 14.0787 13.0736 14.3992V17.121C13.0736 17.2763 13.1995 17.4022 13.3548 17.4022H14.4435C14.5989 17.4022 14.7248 17.2763 14.7248 17.121V14.3992C14.7248 13.314 14.2937 12.2732 13.5263 11.5059C12.759 10.7385 11.7182 10.3075 10.633 10.3075H7.36691Z"})}),o.jsx("defs",{children:o.jsx("clipPath",{id:"clip0",children:o.jsx("rect",{width:"18",height:"18",transform:"translate(0 0.5)"})})})]})};Jr.defaultProps={width:"18",height:"19",viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg"};Jr.displayName="person";const Vi=Jr;var en=function(e){return o.jsxs("svg",{...e,children:[o.jsx("path",{d:"M1.25 2.7087C1.25 2.24826 1.62326 1.875 2.0837 1.875H14.339C14.7995 1.875 15.1727 2.24826 15.1727 2.7087V9.31574C15.1727 9.77618 14.7995 10.1494 14.339 10.1494C13.8786 10.1494 13.5053 9.77618 13.5053 9.31574V3.54239H2.91739V16.7565H6.53772H8.34788H9.32435C9.78479 16.7565 10.158 17.1297 10.158 17.5902C10.158 18.0506 9.78479 18.4239 9.32435 18.4239H8.34788H2.0837C1.62326 18.4239 1.25 18.0506 1.25 17.5902V2.7087Z"}),o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.21129 7.91935C7.70481 7.91935 7.29422 8.32993 7.29422 8.83641C7.29422 9.34289 7.70481 9.75348 8.21129 9.75348C8.71777 9.75348 9.12836 9.34289 9.12836 8.83641C9.12836 8.32993 8.71777 7.91935 8.21129 7.91935ZM5.62683 8.83641C5.62683 7.40905 6.78393 6.25195 8.21129 6.25195C9.63865 6.25195 10.7957 7.40905 10.7957 8.83641C10.7957 10.2638 9.63865 11.4209 8.21129 11.4209C6.78393 11.4209 5.62683 10.2638 5.62683 8.83641Z"}),o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.62683 13.2133C5.62683 12.7529 6.00009 12.3796 6.46053 12.3796H9.96205C10.4225 12.3796 10.7957 12.7529 10.7957 13.2133C10.7957 13.6737 10.4225 14.047 9.96205 14.047H6.46053C6.00009 14.047 5.62683 13.6737 5.62683 13.2133Z"}),o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6406 11.3125C15.8547 11.3125 16.0503 11.434 16.145 11.626L17.1779 13.7184L19.4876 14.056C19.6994 14.087 19.8753 14.2355 19.9413 14.4391C20.0074 14.6427 19.9521 14.8662 19.7987 15.0156L18.1279 16.643L18.5222 18.9421C18.5584 19.1532 18.4716 19.3665 18.2984 19.4923C18.1252 19.6182 17.8955 19.6347 17.706 19.5351L15.6406 18.4489L13.5753 19.5351C13.3858 19.6347 13.1561 19.6182 12.9829 19.4923C12.8096 19.3665 12.7229 19.1532 12.7591 18.9421L13.1534 16.643L11.4825 15.0156C11.3292 14.8662 11.2739 14.6427 11.3399 14.4391C11.406 14.2355 11.5818 14.087 11.7937 14.056L14.1034 13.7184L15.1362 11.626C15.231 11.434 15.4265 11.3125 15.6406 11.3125ZM15.6406 13.1458L14.9815 14.4813C14.8996 14.6471 14.7414 14.7621 14.5584 14.7889L13.0835 15.0044L14.1503 16.0435C14.283 16.1727 14.3435 16.359 14.3122 16.5416L14.0606 18.0088L15.3788 17.3155C15.5427 17.2293 15.7386 17.2293 15.9025 17.3155L17.2207 18.0088L16.969 16.5416C16.9377 16.359 16.9983 16.1727 17.131 16.0435L18.1978 15.0044L16.7229 14.7889C16.5399 14.7621 16.3817 14.6471 16.2998 14.4813L15.6406 13.1458Z"})]})};en.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};en.displayName="external-issuer";const Io=en;var Ht={},Bi=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),Oo="%[a-f0-9]{2}",En=new RegExp("("+Oo+")|([^%]+?)","gi"),kn=new RegExp("("+Oo+")+","gi");function Mr(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],Mr(n),Mr(r))}function qi(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(En)||[],n=1;n<t.length;n++)e=Mr(t,n).join(""),t=e.match(En)||[];return e}}function Ki(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=kn.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch{var r=qi(n[0]);r!==n[0]&&(t[n[0]]=r)}n=kn.exec(e)}t["%C2"]="�";for(var s=Object.keys(t),a=0;a<s.length;a++){var u=s[a];e=e.replace(new RegExp(u,"g"),t[u])}return e}var zi=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return Ki(e)}},Hi=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const n=e.indexOf(t);return n===-1?[e]:[e.slice(0,n),e.slice(n+t.length)]},Wi=function(e,t){for(var n={},r=Object.keys(e),s=Array.isArray(t),a=0;a<r.length;a++){var u=r[a],p=e[u];(s?t.indexOf(u)!==-1:t(u,p,e))&&(n[u]=p)}return n};(function(e){const t=Bi,n=zi,r=Hi,s=Wi,a=c=>c==null;function u(c){switch(c.arrayFormat){case"index":return i=>(d,b)=>{const T=d.length;return b===void 0||c.skipNull&&b===null||c.skipEmptyString&&b===""?d:b===null?[...d,[m(i,c),"[",T,"]"].join("")]:[...d,[m(i,c),"[",m(T,c),"]=",m(b,c)].join("")]};case"bracket":return i=>(d,b)=>b===void 0||c.skipNull&&b===null||c.skipEmptyString&&b===""?d:b===null?[...d,[m(i,c),"[]"].join("")]:[...d,[m(i,c),"[]=",m(b,c)].join("")];case"comma":case"separator":return i=>(d,b)=>b==null||b.length===0?d:d.length===0?[[m(i,c),"=",m(b,c)].join("")]:[[d,m(b,c)].join(c.arrayFormatSeparator)];default:return i=>(d,b)=>b===void 0||c.skipNull&&b===null||c.skipEmptyString&&b===""?d:b===null?[...d,m(i,c)]:[...d,[m(i,c),"=",m(b,c)].join("")]}}function p(c){let i;switch(c.arrayFormat){case"index":return(d,b,T)=>{if(i=/\[(\d*)\]$/.exec(d),d=d.replace(/\[\d*\]$/,""),!i){T[d]=b;return}T[d]===void 0&&(T[d]={}),T[d][i[1]]=b};case"bracket":return(d,b,T)=>{if(i=/(\[\])$/.exec(d),d=d.replace(/\[\]$/,""),!i){T[d]=b;return}if(T[d]===void 0){T[d]=[b];return}T[d]=[].concat(T[d],b)};case"comma":case"separator":return(d,b,T)=>{const S=typeof b=="string"&&b.includes(c.arrayFormatSeparator),k=typeof b=="string"&&!S&&f(b,c).includes(c.arrayFormatSeparator);b=k?f(b,c):b;const Y=S||k?b.split(c.arrayFormatSeparator).map(B=>f(B,c)):b===null?b:f(b,c);T[d]=Y};default:return(d,b,T)=>{if(T[d]===void 0){T[d]=b;return}T[d]=[].concat(T[d],b)}}}function v(c){if(typeof c!="string"||c.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function m(c,i){return i.encode?i.strict?t(c):encodeURIComponent(c):c}function f(c,i){return i.decode?n(c):c}function E(c){return Array.isArray(c)?c.sort():typeof c=="object"?E(Object.keys(c)).sort((i,d)=>Number(i)-Number(d)).map(i=>c[i]):c}function g(c){const i=c.indexOf("#");return i!==-1&&(c=c.slice(0,i)),c}function D(c){let i="";const d=c.indexOf("#");return d!==-1&&(i=c.slice(d)),i}function y(c){c=g(c);const i=c.indexOf("?");return i===-1?"":c.slice(i+1)}function R(c,i){return i.parseNumbers&&!Number.isNaN(Number(c))&&typeof c=="string"&&c.trim()!==""?c=Number(c):i.parseBooleans&&c!==null&&(c.toLowerCase()==="true"||c.toLowerCase()==="false")&&(c=c.toLowerCase()==="true"),c}function j(c,i){i=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},i),v(i.arrayFormatSeparator);const d=p(i),b=Object.create(null);if(typeof c!="string"||(c=c.trim().replace(/^[?#&]/,""),!c))return b;for(const T of c.split("&")){if(T==="")continue;let[S,k]=r(i.decode?T.replace(/\+/g," "):T,"=");k=k===void 0?null:["comma","separator"].includes(i.arrayFormat)?k:f(k,i),d(f(S,i),k,b)}for(const T of Object.keys(b)){const S=b[T];if(typeof S=="object"&&S!==null)for(const k of Object.keys(S))S[k]=R(S[k],i);else b[T]=R(S,i)}return i.sort===!1?b:(i.sort===!0?Object.keys(b).sort():Object.keys(b).sort(i.sort)).reduce((T,S)=>{const k=b[S];return k&&typeof k=="object"&&!Array.isArray(k)?T[S]=E(k):T[S]=k,T},Object.create(null))}e.extract=y,e.parse=j,e.stringify=(c,i)=>{if(!c)return"";i=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},i),v(i.arrayFormatSeparator);const d=k=>i.skipNull&&a(c[k])||i.skipEmptyString&&c[k]==="",b=u(i),T={};for(const k of Object.keys(c))d(k)||(T[k]=c[k]);const S=Object.keys(T);return i.sort!==!1&&S.sort(i.sort),S.map(k=>{const Y=c[k];return Y===void 0?"":Y===null?m(k,i):Array.isArray(Y)?Y.reduce(b(k),[]).join("&"):m(k,i)+"="+m(Y,i)}).filter(k=>k.length>0).join("&")},e.parseUrl=(c,i)=>{i=Object.assign({decode:!0},i);const[d,b]=r(c,"#");return Object.assign({url:d.split("?")[0]||"",query:j(y(c),i)},i&&i.parseFragmentIdentifier&&b?{fragmentIdentifier:f(b,i)}:{})},e.stringifyUrl=(c,i)=>{i=Object.assign({encode:!0,strict:!0},i);const d=g(c.url).split("?")[0]||"",b=e.extract(c.url),T=e.parse(b,{sort:!1}),S=Object.assign(T,c.query);let k=e.stringify(S,i);k&&(k=`?${k}`);let Y=D(c.url);return c.fragmentIdentifier&&(Y=`#${m(c.fragmentIdentifier,i)}`),`${d}${k}${Y}`},e.pick=(c,i,d)=>{d=Object.assign({parseFragmentIdentifier:!0},d);const{url:b,query:T,fragmentIdentifier:S}=e.parseUrl(c,d);return e.stringifyUrl({url:b,query:s(T,i),fragmentIdentifier:S},d)},e.exclude=(c,i,d)=>{const b=Array.isArray(i)?T=>!i.includes(T):(T,S)=>!i(T,S);return e.pick(c,b,d)}})(Ht);const Dt=ds,Yi={parseNumbers:!1,parseBooleans:!1},Gi={skipNull:!1,skipEmptyString:!1},Zi=(e,t)=>{var n,r;const{navigateMode:s="push",parseOptions:a,stringifyOptions:u}={},p=Object.assign(Object.assign({},Yi),a),v=Object.assign(Object.assign({},Gi),u),m=Dt.useLocation(),f=(n=Dt.useHistory)===null||n===void 0?void 0:n.call(Dt),E=(r=Dt.useNavigate)===null||r===void 0?void 0:r.call(Dt),g=us(),D=_.useRef(typeof e=="function"?e():e||{}),y=_.useMemo(()=>Ht.parse(m.search,p),[m.search]),R=_.useMemo(()=>Object.assign(Object.assign({},D.current),y),[y]);return[R,Fr(c=>{const i=typeof c=="function"?c(R):c;g(),f&&f[s]({hash:m.hash,search:Ht.stringify(Object.assign(Object.assign({},y),i),v)||"?"},m.state),E&&E({hash:m.hash,search:Ht.stringify(Object.assign(Object.assign({},y),i),v)||"?"},{replace:s==="replace",state:m.state})})]},Qi=Zi;var fr={exports:{}},pr={},Rn;function Ao(){if(Rn)return pr;Rn=1;function e(i){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},e(i)}function t(i,d,b){return Object.defineProperty(i,"prototype",{writable:!1}),i}function n(i,d){if(!(i instanceof d))throw new TypeError("Cannot call a class as a function")}function r(i,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(d&&d.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),d&&s(i,d)}function s(i,d){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(T,S){return T.__proto__=S,T},s(i,d)}function a(i){var d=v();return function(){var T=m(i),S;if(d){var k=m(this).constructor;S=Reflect.construct(T,arguments,k)}else S=T.apply(this,arguments);return u(this,S)}}function u(i,d){if(d&&(e(d)==="object"||typeof d=="function"))return d;if(d!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return p(i)}function p(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function v(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function m(i){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(b){return b.__proto__||Object.getPrototypeOf(b)},m(i)}var f={},E,g;function D(i,d,b){b||(b=Error);function T(k,Y,B){return typeof d=="string"?d:d(k,Y,B)}var S=function(k){r(B,k);var Y=a(B);function B(z,K,H){var Q;return n(this,B),Q=Y.call(this,T(z,K,H)),Q.code=i,Q}return t(B)}(b);f[i]=S}function y(i,d){if(Array.isArray(i)){var b=i.length;return i=i.map(function(T){return String(T)}),b>2?"one of ".concat(d," ").concat(i.slice(0,b-1).join(", "),", or ")+i[b-1]:b===2?"one of ".concat(d," ").concat(i[0]," or ").concat(i[1]):"of ".concat(d," ").concat(i[0])}else return"of ".concat(d," ").concat(String(i))}function R(i,d,b){return i.substr(0,d.length)===d}function j(i,d,b){return(b===void 0||b>i.length)&&(b=i.length),i.substring(b-d.length,b)===d}function c(i,d,b){return typeof b!="number"&&(b=0),b+d.length>i.length?!1:i.indexOf(d,b)!==-1}return D("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),D("ERR_INVALID_ARG_TYPE",function(i,d,b){E===void 0&&(E=_r()),E(typeof i=="string","'name' must be a string");var T;typeof d=="string"&&R(d,"not ")?(T="must not be",d=d.replace(/^not /,"")):T="must be";var S;if(j(i," argument"))S="The ".concat(i," ").concat(T," ").concat(y(d,"type"));else{var k=c(i,".")?"property":"argument";S='The "'.concat(i,'" ').concat(k," ").concat(T," ").concat(y(d,"type"))}return S+=". Received type ".concat(e(b)),S},TypeError),D("ERR_INVALID_ARG_VALUE",function(i,d){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";g===void 0&&(g=It);var T=g.inspect(d);return T.length>128&&(T="".concat(T.slice(0,128),"...")),"The argument '".concat(i,"' ").concat(b,". Received ").concat(T)},TypeError),D("ERR_INVALID_RETURN_VALUE",function(i,d,b){var T;return b&&b.constructor&&b.constructor.name?T="instance of ".concat(b.constructor.name):T="type ".concat(e(b)),"Expected ".concat(i,' to be returned from the "').concat(d,'"')+" function but got ".concat(T,".")},TypeError),D("ERR_MISSING_ARGS",function(){for(var i=arguments.length,d=new Array(i),b=0;b<i;b++)d[b]=arguments[b];E===void 0&&(E=_r()),E(d.length>0,"At least one arg needs to be specified");var T="The ",S=d.length;switch(d=d.map(function(k){return'"'.concat(k,'"')}),S){case 1:T+="".concat(d[0]," argument");break;case 2:T+="".concat(d[0]," and ").concat(d[1]," arguments");break;default:T+=d.slice(0,S-1).join(", "),T+=", and ".concat(d[S-1]," arguments");break}return"".concat(T," must be specified")},TypeError),pr.codes=f,pr}var mr,In;function Xi(){if(In)return mr;In=1;function e(I,N){var G=Object.keys(I);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(I);N&&(U=U.filter(function($){return Object.getOwnPropertyDescriptor(I,$).enumerable})),G.push.apply(G,U)}return G}function t(I){for(var N=1;N<arguments.length;N++){var G=arguments[N]!=null?arguments[N]:{};N%2?e(Object(G),!0).forEach(function(U){n(I,U,G[U])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(G)):e(Object(G)).forEach(function(U){Object.defineProperty(I,U,Object.getOwnPropertyDescriptor(G,U))})}return I}function n(I,N,G){return N=u(N),N in I?Object.defineProperty(I,N,{value:G,enumerable:!0,configurable:!0,writable:!0}):I[N]=G,I}function r(I,N){if(!(I instanceof N))throw new TypeError("Cannot call a class as a function")}function s(I,N){for(var G=0;G<N.length;G++){var U=N[G];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(I,u(U.key),U)}}function a(I,N,G){return N&&s(I.prototype,N),Object.defineProperty(I,"prototype",{writable:!1}),I}function u(I){var N=p(I,"string");return i(N)==="symbol"?N:String(N)}function p(I,N){if(i(I)!=="object"||I===null)return I;var G=I[Symbol.toPrimitive];if(G!==void 0){var U=G.call(I,N||"default");if(i(U)!=="object")return U;throw new TypeError("@@toPrimitive must return a primitive value.")}return(N==="string"?String:Number)(I)}function v(I,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(N&&N.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),Object.defineProperty(I,"prototype",{writable:!1}),N&&j(I,N)}function m(I){var N=y();return function(){var U=c(I),$;if(N){var P=c(this).constructor;$=Reflect.construct(U,arguments,P)}else $=U.apply(this,arguments);return f(this,$)}}function f(I,N){if(N&&(i(N)==="object"||typeof N=="function"))return N;if(N!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return E(I)}function E(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function g(I){var N=typeof Map=="function"?new Map:void 0;return g=function(U){if(U===null||!R(U))return U;if(typeof U!="function")throw new TypeError("Super expression must either be null or a function");if(typeof N<"u"){if(N.has(U))return N.get(U);N.set(U,$)}function $(){return D(U,arguments,c(this).constructor)}return $.prototype=Object.create(U.prototype,{constructor:{value:$,enumerable:!1,writable:!0,configurable:!0}}),j($,U)},g(I)}function D(I,N,G){return y()?D=Reflect.construct.bind():D=function($,P,x){var w=[null];w.push.apply(w,P);var L=Function.bind.apply($,w),M=new L;return x&&j(M,x.prototype),M},D.apply(null,arguments)}function y(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function R(I){return Function.toString.call(I).indexOf("[native code]")!==-1}function j(I,N){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(U,$){return U.__proto__=$,U},j(I,N)}function c(I){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(G){return G.__proto__||Object.getPrototypeOf(G)},c(I)}function i(I){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(N){return typeof N}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},i(I)}var d=It,b=d.inspect,T=Ao(),S=T.codes.ERR_INVALID_ARG_TYPE;function k(I,N,G){return(G===void 0||G>I.length)&&(G=I.length),I.substring(G-N.length,G)===N}function Y(I,N){if(N=Math.floor(N),I.length==0||N==0)return"";var G=I.length*N;for(N=Math.floor(Math.log(N)/Math.log(2));N;)I+=I,N--;return I+=I.substring(0,G-I.length),I}var B="",z="",K="",H="",Q={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},le=10;function he(I){var N=Object.keys(I),G=Object.create(Object.getPrototypeOf(I));return N.forEach(function(U){G[U]=I[U]}),Object.defineProperty(G,"message",{value:I.message}),G}function de(I){return b(I,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function te(I,N,G){var U="",$="",P=0,x="",w=!1,L=de(I),M=L.split(`
|
|
2
2
|
`),F=de(N).split(`
|
|
3
3
|
`),Z=0,re="";if(G==="strictEqual"&&i(I)==="object"&&i(N)==="object"&&I!==null&&N!==null&&(G="strictEqualObject"),M.length===1&&F.length===1&&M[0]!==F[0]){var se=M[0].length+F[0].length;if(se<=le){if((i(I)!=="object"||I===null)&&(i(N)!=="object"||N===null)&&(I!==0||N!==0))return"".concat(Q[G],`
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{bl as Vn,aP as qn,aQ as Jn,j as G,n as Qn,r as et,$ as nt,d9 as tt,dq as st,fZ as ce}from"./index-e66xJJ-x.js";function dn(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(n=>{const t=e[n],s=typeof t;(s==="object"||s==="function")&&!Object.isFrozen(t)&&dn(t)}),e}class Qe{constructor(n){n.data===void 0&&(n.data={}),this.data=n.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function En(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function ae(e,...n){const t=Object.create(null);for(const s in e)t[s]=e[s];return n.forEach(function(s){for(const b in s)t[b]=s[b]}),t}const at="</span>",en=e=>!!e.scope,it=(e,{prefix:n})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const t=e.split(".");return[`${n}${t.shift()}`,...t.map((s,b)=>`${s}${"_".repeat(b+1)}`)].join(" ")}return`${n}${e}`};class rt{constructor(n,t){this.buffer="",this.classPrefix=t.classPrefix,n.walk(this)}addText(n){this.buffer+=En(n)}openNode(n){if(!en(n))return;const t=it(n.scope,{prefix:this.classPrefix});this.span(t)}closeNode(n){en(n)&&(this.buffer+=at)}value(){return this.buffer}span(n){this.buffer+=`<span class="${n}">`}}const nn=(e={})=>{const n={children:[]};return Object.assign(n,e),n};class ze{constructor(){this.rootNode=nn(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(n){this.top.children.push(n)}openNode(n){const t=nn({scope:n});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(n){return this.constructor._walk(n,this.rootNode)}static _walk(n,t){return typeof t=="string"?n.addText(t):t.children&&(n.openNode(t),t.children.forEach(s=>this._walk(n,s)),n.closeNode(t)),n}static _collapse(n){typeof n!="string"&&n.children&&(n.children.every(t=>typeof t=="string")?n.children=[n.children.join("")]:n.children.forEach(t=>{ze._collapse(t)}))}}class ct extends ze{constructor(n){super(),this.options=n}addText(n){n!==""&&this.add(n)}startScope(n){this.openNode(n)}endScope(){this.closeNode()}__addSublanguage(n,t){const s=n.root;t&&(s.scope=`language:${t}`),this.add(s)}toHTML(){return new rt(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function pe(e){return e?typeof e=="string"?e:e.source:null}function bn(e){return le("(?=",e,")")}function ot(e){return le("(?:",e,")*")}function lt(e){return le("(?:",e,")?")}function le(...e){return e.map(t=>pe(t)).join("")}function ut(e){const n=e[e.length-1];return typeof n=="object"&&n.constructor===Object?(e.splice(e.length-1,1),n):{}}function We(...e){return"("+(ut(e).capture?"":"?:")+e.map(s=>pe(s)).join("|")+")"}function fn(e){return new RegExp(e.toString()+"|").exec("").length-1}function gt(e,n){const t=e&&e.exec(n);return t&&t.index===0}const dt=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Ze(e,{joinWith:n}){let t=0;return e.map(s=>{t+=1;const b=t;let f=pe(s),i="";for(;f.length>0;){const a=dt.exec(f);if(!a){i+=f;break}i+=f.substring(0,a.index),f=f.substring(a.index+a[0].length),a[0][0]==="\\"&&a[1]?i+="\\"+String(Number(a[1])+b):(i+=a[0],a[0]==="("&&t++)}return i}).map(s=>`(${s})`).join(n)}const Et=/\b\B/,_n="[a-zA-Z]\\w*",Ye="[a-zA-Z_]\\w*",pn="\\b\\d+(\\.\\d+)?",Nn="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",hn="\\b(0b[01]+)",bt="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",ft=(e={})=>{const n=/^#![ ]*\//;return e.binary&&(e.begin=le(n,/.*\b/,e.binary,/\b.*/)),ae({scope:"meta",begin:n,end:/$/,relevance:0,"on:begin":(t,s)=>{t.index!==0&&s.ignoreMatch()}},e)},Ne={begin:"\\\\[\\s\\S]",relevance:0},_t={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Ne]},pt={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Ne]},Nt={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Le=function(e,n,t={}){const s=ae({scope:"comment",begin:e,end:n,contains:[]},t);s.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const b=We("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return s.contains.push({begin:le(/[ ]+/,"(",b,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),s},ht=Le("//","$"),St=Le("/\\*","\\*/"),mt=Le("#","$"),At={scope:"number",begin:pn,relevance:0},Rt={scope:"number",begin:Nn,relevance:0},Tt={scope:"number",begin:hn,relevance:0},yt={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Ne,{begin:/\[/,end:/\]/,relevance:0,contains:[Ne]}]},Ot={scope:"title",begin:_n,relevance:0},It={scope:"title",begin:Ye,relevance:0},Mt={begin:"\\.\\s*"+Ye,relevance:0},Ct=function(e){return Object.assign(e,{"on:begin":(n,t)=>{t.data._beginMatch=n[1]},"on:end":(n,t)=>{t.data._beginMatch!==n[1]&&t.ignoreMatch()}})};var Ae=Object.freeze({__proto__:null,APOS_STRING_MODE:_t,BACKSLASH_ESCAPE:Ne,BINARY_NUMBER_MODE:Tt,BINARY_NUMBER_RE:hn,COMMENT:Le,C_BLOCK_COMMENT_MODE:St,C_LINE_COMMENT_MODE:ht,C_NUMBER_MODE:Rt,C_NUMBER_RE:Nn,END_SAME_AS_BEGIN:Ct,HASH_COMMENT_MODE:mt,IDENT_RE:_n,MATCH_NOTHING_RE:Et,METHOD_GUARD:Mt,NUMBER_MODE:At,NUMBER_RE:pn,PHRASAL_WORDS_MODE:Nt,QUOTE_STRING_MODE:pt,REGEXP_MODE:yt,RE_STARTERS_RE:bt,SHEBANG:ft,TITLE_MODE:Ot,UNDERSCORE_IDENT_RE:Ye,UNDERSCORE_TITLE_MODE:It});function wt(e,n){e.input[e.index-1]==="."&&n.ignoreMatch()}function Lt(e,n){e.className!==void 0&&(e.scope=e.className,delete e.className)}function xt(e,n){n&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=wt,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function vt(e,n){Array.isArray(e.illegal)&&(e.illegal=We(...e.illegal))}function Dt(e,n){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function Bt(e,n){e.relevance===void 0&&(e.relevance=1)}const kt=(e,n)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},e);Object.keys(e).forEach(s=>{delete e[s]}),e.keywords=t.keywords,e.begin=le(t.beforeMatch,bn(t.begin)),e.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},e.relevance=0,delete t.beforeMatch},$t=["of","and","for","in","not","or","if","then","parent","list","value"],Ut="keyword";function Sn(e,n,t=Ut){const s=Object.create(null);return typeof e=="string"?b(t,e.split(" ")):Array.isArray(e)?b(t,e):Object.keys(e).forEach(function(f){Object.assign(s,Sn(e[f],n,f))}),s;function b(f,i){n&&(i=i.map(a=>a.toLowerCase())),i.forEach(function(a){const c=a.split("|");s[c[0]]=[f,Ft(c[0],c[1])]})}}function Ft(e,n){return n?Number(n):Pt(e)?0:1}function Pt(e){return $t.includes(e.toLowerCase())}const tn={},oe=e=>{console.error(e)},sn=(e,...n)=>{console.log(`WARN: ${e}`,...n)},ge=(e,n)=>{tn[`${e}/${n}`]||(console.log(`Deprecated as of ${e}. ${n}`),tn[`${e}/${n}`]=!0)},Me=new Error;function mn(e,n,{key:t}){let s=0;const b=e[t],f={},i={};for(let a=1;a<=n.length;a++)i[a+s]=b[a],f[a+s]=!0,s+=fn(n[a-1]);e[t]=i,e[t]._emit=f,e[t]._multi=!0}function Kt(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw oe("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Me;if(typeof e.beginScope!="object"||e.beginScope===null)throw oe("beginScope must be object"),Me;mn(e,e.begin,{key:"beginScope"}),e.begin=Ze(e.begin,{joinWith:""})}}function Ht(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw oe("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Me;if(typeof e.endScope!="object"||e.endScope===null)throw oe("endScope must be object"),Me;mn(e,e.end,{key:"endScope"}),e.end=Ze(e.end,{joinWith:""})}}function Gt(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function zt(e){Gt(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),Kt(e),Ht(e)}function Wt(e){function n(i,a){return new RegExp(pe(i),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(a?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(a,c){c.position=this.position++,this.matchIndexes[this.matchAt]=c,this.regexes.push([c,a]),this.matchAt+=fn(a)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const a=this.regexes.map(c=>c[1]);this.matcherRe=n(Ze(a,{joinWith:"|"}),!0),this.lastIndex=0}exec(a){this.matcherRe.lastIndex=this.lastIndex;const c=this.matcherRe.exec(a);if(!c)return null;const u=c.findIndex((m,_)=>_>0&&m!==void 0),g=this.matchIndexes[u];return c.splice(0,u),Object.assign(c,g)}}class s{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(a){if(this.multiRegexes[a])return this.multiRegexes[a];const c=new t;return this.rules.slice(a).forEach(([u,g])=>c.addRule(u,g)),c.compile(),this.multiRegexes[a]=c,c}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(a,c){this.rules.push([a,c]),c.type==="begin"&&this.count++}exec(a){const c=this.getMatcher(this.regexIndex);c.lastIndex=this.lastIndex;let u=c.exec(a);if(this.resumingScanAtSamePosition()&&!(u&&u.index===this.lastIndex)){const g=this.getMatcher(0);g.lastIndex=this.lastIndex+1,u=g.exec(a)}return u&&(this.regexIndex+=u.position+1,this.regexIndex===this.count&&this.considerAll()),u}}function b(i){const a=new s;return i.contains.forEach(c=>a.addRule(c.begin,{rule:c,type:"begin"})),i.terminatorEnd&&a.addRule(i.terminatorEnd,{type:"end"}),i.illegal&&a.addRule(i.illegal,{type:"illegal"}),a}function f(i,a){const c=i;if(i.isCompiled)return c;[Lt,Dt,zt,kt].forEach(g=>g(i,a)),e.compilerExtensions.forEach(g=>g(i,a)),i.__beforeBegin=null,[xt,vt,Bt].forEach(g=>g(i,a)),i.isCompiled=!0;let u=null;return typeof i.keywords=="object"&&i.keywords.$pattern&&(i.keywords=Object.assign({},i.keywords),u=i.keywords.$pattern,delete i.keywords.$pattern),u=u||/\w+/,i.keywords&&(i.keywords=Sn(i.keywords,e.case_insensitive)),c.keywordPatternRe=n(u,!0),a&&(i.begin||(i.begin=/\B|\b/),c.beginRe=n(c.begin),!i.end&&!i.endsWithParent&&(i.end=/\B|\b/),i.end&&(c.endRe=n(c.end)),c.terminatorEnd=pe(c.end)||"",i.endsWithParent&&a.terminatorEnd&&(c.terminatorEnd+=(i.end?"|":"")+a.terminatorEnd)),i.illegal&&(c.illegalRe=n(i.illegal)),i.contains||(i.contains=[]),i.contains=[].concat(...i.contains.map(function(g){return Zt(g==="self"?i:g)})),i.contains.forEach(function(g){f(g,c)}),i.starts&&f(i.starts,a),c.matcher=b(c),c}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=ae(e.classNameAliases||{}),f(e)}function An(e){return e?e.endsWithParent||An(e.starts):!1}function Zt(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(n){return ae(e,{variants:null},n)})),e.cachedVariants?e.cachedVariants:An(e)?ae(e,{starts:e.starts?ae(e.starts):null}):Object.isFrozen(e)?ae(e):e}var Yt="11.10.0";class Xt extends Error{constructor(n,t){super(n),this.name="HTMLInjectionError",this.html=t}}const Pe=En,an=ae,rn=Symbol("nomatch"),jt=7,Rn=function(e){const n=Object.create(null),t=Object.create(null),s=[];let b=!0;const f="Could not find the language '{}', did you forget to load/include a language module?",i={disableAutodetect:!0,name:"Plain text",contains:[]};let a={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:ct};function c(r){return a.noHighlightRe.test(r)}function u(r){let o=r.className+" ";o+=r.parentNode?r.parentNode.className:"";const E=a.languageDetectRe.exec(o);if(E){const N=D(E[1]);return N||(sn(f.replace("{}",E[1])),sn("Falling back to no-highlight mode for this block.",r)),N?E[1]:"no-highlight"}return o.split(/\s+/).find(N=>c(N)||D(N))}function g(r,o,E){let N="",A="";typeof o=="object"?(N=r,E=o.ignoreIllegals,A=o.language):(ge("10.7.0","highlight(lang, code, ...args) has been deprecated."),ge("10.7.0",`Please use highlight(code, options) instead.
|
|
1
|
+
import{bl as Vn,aP as qn,aQ as Jn,j as G,n as Qn,r as et,$ as nt,d9 as tt,dq as st,fZ as ce}from"./index-BbonVJKD.js";function dn(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(n=>{const t=e[n],s=typeof t;(s==="object"||s==="function")&&!Object.isFrozen(t)&&dn(t)}),e}class Qe{constructor(n){n.data===void 0&&(n.data={}),this.data=n.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function En(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function ae(e,...n){const t=Object.create(null);for(const s in e)t[s]=e[s];return n.forEach(function(s){for(const b in s)t[b]=s[b]}),t}const at="</span>",en=e=>!!e.scope,it=(e,{prefix:n})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const t=e.split(".");return[`${n}${t.shift()}`,...t.map((s,b)=>`${s}${"_".repeat(b+1)}`)].join(" ")}return`${n}${e}`};class rt{constructor(n,t){this.buffer="",this.classPrefix=t.classPrefix,n.walk(this)}addText(n){this.buffer+=En(n)}openNode(n){if(!en(n))return;const t=it(n.scope,{prefix:this.classPrefix});this.span(t)}closeNode(n){en(n)&&(this.buffer+=at)}value(){return this.buffer}span(n){this.buffer+=`<span class="${n}">`}}const nn=(e={})=>{const n={children:[]};return Object.assign(n,e),n};class ze{constructor(){this.rootNode=nn(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(n){this.top.children.push(n)}openNode(n){const t=nn({scope:n});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(n){return this.constructor._walk(n,this.rootNode)}static _walk(n,t){return typeof t=="string"?n.addText(t):t.children&&(n.openNode(t),t.children.forEach(s=>this._walk(n,s)),n.closeNode(t)),n}static _collapse(n){typeof n!="string"&&n.children&&(n.children.every(t=>typeof t=="string")?n.children=[n.children.join("")]:n.children.forEach(t=>{ze._collapse(t)}))}}class ct extends ze{constructor(n){super(),this.options=n}addText(n){n!==""&&this.add(n)}startScope(n){this.openNode(n)}endScope(){this.closeNode()}__addSublanguage(n,t){const s=n.root;t&&(s.scope=`language:${t}`),this.add(s)}toHTML(){return new rt(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function pe(e){return e?typeof e=="string"?e:e.source:null}function bn(e){return le("(?=",e,")")}function ot(e){return le("(?:",e,")*")}function lt(e){return le("(?:",e,")?")}function le(...e){return e.map(t=>pe(t)).join("")}function ut(e){const n=e[e.length-1];return typeof n=="object"&&n.constructor===Object?(e.splice(e.length-1,1),n):{}}function We(...e){return"("+(ut(e).capture?"":"?:")+e.map(s=>pe(s)).join("|")+")"}function fn(e){return new RegExp(e.toString()+"|").exec("").length-1}function gt(e,n){const t=e&&e.exec(n);return t&&t.index===0}const dt=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Ze(e,{joinWith:n}){let t=0;return e.map(s=>{t+=1;const b=t;let f=pe(s),i="";for(;f.length>0;){const a=dt.exec(f);if(!a){i+=f;break}i+=f.substring(0,a.index),f=f.substring(a.index+a[0].length),a[0][0]==="\\"&&a[1]?i+="\\"+String(Number(a[1])+b):(i+=a[0],a[0]==="("&&t++)}return i}).map(s=>`(${s})`).join(n)}const Et=/\b\B/,_n="[a-zA-Z]\\w*",Ye="[a-zA-Z_]\\w*",pn="\\b\\d+(\\.\\d+)?",Nn="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",hn="\\b(0b[01]+)",bt="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",ft=(e={})=>{const n=/^#![ ]*\//;return e.binary&&(e.begin=le(n,/.*\b/,e.binary,/\b.*/)),ae({scope:"meta",begin:n,end:/$/,relevance:0,"on:begin":(t,s)=>{t.index!==0&&s.ignoreMatch()}},e)},Ne={begin:"\\\\[\\s\\S]",relevance:0},_t={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Ne]},pt={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Ne]},Nt={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Le=function(e,n,t={}){const s=ae({scope:"comment",begin:e,end:n,contains:[]},t);s.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const b=We("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return s.contains.push({begin:le(/[ ]+/,"(",b,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),s},ht=Le("//","$"),St=Le("/\\*","\\*/"),mt=Le("#","$"),At={scope:"number",begin:pn,relevance:0},Rt={scope:"number",begin:Nn,relevance:0},Tt={scope:"number",begin:hn,relevance:0},yt={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Ne,{begin:/\[/,end:/\]/,relevance:0,contains:[Ne]}]},Ot={scope:"title",begin:_n,relevance:0},It={scope:"title",begin:Ye,relevance:0},Mt={begin:"\\.\\s*"+Ye,relevance:0},Ct=function(e){return Object.assign(e,{"on:begin":(n,t)=>{t.data._beginMatch=n[1]},"on:end":(n,t)=>{t.data._beginMatch!==n[1]&&t.ignoreMatch()}})};var Ae=Object.freeze({__proto__:null,APOS_STRING_MODE:_t,BACKSLASH_ESCAPE:Ne,BINARY_NUMBER_MODE:Tt,BINARY_NUMBER_RE:hn,COMMENT:Le,C_BLOCK_COMMENT_MODE:St,C_LINE_COMMENT_MODE:ht,C_NUMBER_MODE:Rt,C_NUMBER_RE:Nn,END_SAME_AS_BEGIN:Ct,HASH_COMMENT_MODE:mt,IDENT_RE:_n,MATCH_NOTHING_RE:Et,METHOD_GUARD:Mt,NUMBER_MODE:At,NUMBER_RE:pn,PHRASAL_WORDS_MODE:Nt,QUOTE_STRING_MODE:pt,REGEXP_MODE:yt,RE_STARTERS_RE:bt,SHEBANG:ft,TITLE_MODE:Ot,UNDERSCORE_IDENT_RE:Ye,UNDERSCORE_TITLE_MODE:It});function wt(e,n){e.input[e.index-1]==="."&&n.ignoreMatch()}function Lt(e,n){e.className!==void 0&&(e.scope=e.className,delete e.className)}function xt(e,n){n&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=wt,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function vt(e,n){Array.isArray(e.illegal)&&(e.illegal=We(...e.illegal))}function Dt(e,n){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function Bt(e,n){e.relevance===void 0&&(e.relevance=1)}const kt=(e,n)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},e);Object.keys(e).forEach(s=>{delete e[s]}),e.keywords=t.keywords,e.begin=le(t.beforeMatch,bn(t.begin)),e.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},e.relevance=0,delete t.beforeMatch},$t=["of","and","for","in","not","or","if","then","parent","list","value"],Ut="keyword";function Sn(e,n,t=Ut){const s=Object.create(null);return typeof e=="string"?b(t,e.split(" ")):Array.isArray(e)?b(t,e):Object.keys(e).forEach(function(f){Object.assign(s,Sn(e[f],n,f))}),s;function b(f,i){n&&(i=i.map(a=>a.toLowerCase())),i.forEach(function(a){const c=a.split("|");s[c[0]]=[f,Ft(c[0],c[1])]})}}function Ft(e,n){return n?Number(n):Pt(e)?0:1}function Pt(e){return $t.includes(e.toLowerCase())}const tn={},oe=e=>{console.error(e)},sn=(e,...n)=>{console.log(`WARN: ${e}`,...n)},ge=(e,n)=>{tn[`${e}/${n}`]||(console.log(`Deprecated as of ${e}. ${n}`),tn[`${e}/${n}`]=!0)},Me=new Error;function mn(e,n,{key:t}){let s=0;const b=e[t],f={},i={};for(let a=1;a<=n.length;a++)i[a+s]=b[a],f[a+s]=!0,s+=fn(n[a-1]);e[t]=i,e[t]._emit=f,e[t]._multi=!0}function Kt(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw oe("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Me;if(typeof e.beginScope!="object"||e.beginScope===null)throw oe("beginScope must be object"),Me;mn(e,e.begin,{key:"beginScope"}),e.begin=Ze(e.begin,{joinWith:""})}}function Ht(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw oe("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Me;if(typeof e.endScope!="object"||e.endScope===null)throw oe("endScope must be object"),Me;mn(e,e.end,{key:"endScope"}),e.end=Ze(e.end,{joinWith:""})}}function Gt(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function zt(e){Gt(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),Kt(e),Ht(e)}function Wt(e){function n(i,a){return new RegExp(pe(i),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(a?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(a,c){c.position=this.position++,this.matchIndexes[this.matchAt]=c,this.regexes.push([c,a]),this.matchAt+=fn(a)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const a=this.regexes.map(c=>c[1]);this.matcherRe=n(Ze(a,{joinWith:"|"}),!0),this.lastIndex=0}exec(a){this.matcherRe.lastIndex=this.lastIndex;const c=this.matcherRe.exec(a);if(!c)return null;const u=c.findIndex((m,_)=>_>0&&m!==void 0),g=this.matchIndexes[u];return c.splice(0,u),Object.assign(c,g)}}class s{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(a){if(this.multiRegexes[a])return this.multiRegexes[a];const c=new t;return this.rules.slice(a).forEach(([u,g])=>c.addRule(u,g)),c.compile(),this.multiRegexes[a]=c,c}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(a,c){this.rules.push([a,c]),c.type==="begin"&&this.count++}exec(a){const c=this.getMatcher(this.regexIndex);c.lastIndex=this.lastIndex;let u=c.exec(a);if(this.resumingScanAtSamePosition()&&!(u&&u.index===this.lastIndex)){const g=this.getMatcher(0);g.lastIndex=this.lastIndex+1,u=g.exec(a)}return u&&(this.regexIndex+=u.position+1,this.regexIndex===this.count&&this.considerAll()),u}}function b(i){const a=new s;return i.contains.forEach(c=>a.addRule(c.begin,{rule:c,type:"begin"})),i.terminatorEnd&&a.addRule(i.terminatorEnd,{type:"end"}),i.illegal&&a.addRule(i.illegal,{type:"illegal"}),a}function f(i,a){const c=i;if(i.isCompiled)return c;[Lt,Dt,zt,kt].forEach(g=>g(i,a)),e.compilerExtensions.forEach(g=>g(i,a)),i.__beforeBegin=null,[xt,vt,Bt].forEach(g=>g(i,a)),i.isCompiled=!0;let u=null;return typeof i.keywords=="object"&&i.keywords.$pattern&&(i.keywords=Object.assign({},i.keywords),u=i.keywords.$pattern,delete i.keywords.$pattern),u=u||/\w+/,i.keywords&&(i.keywords=Sn(i.keywords,e.case_insensitive)),c.keywordPatternRe=n(u,!0),a&&(i.begin||(i.begin=/\B|\b/),c.beginRe=n(c.begin),!i.end&&!i.endsWithParent&&(i.end=/\B|\b/),i.end&&(c.endRe=n(c.end)),c.terminatorEnd=pe(c.end)||"",i.endsWithParent&&a.terminatorEnd&&(c.terminatorEnd+=(i.end?"|":"")+a.terminatorEnd)),i.illegal&&(c.illegalRe=n(i.illegal)),i.contains||(i.contains=[]),i.contains=[].concat(...i.contains.map(function(g){return Zt(g==="self"?i:g)})),i.contains.forEach(function(g){f(g,c)}),i.starts&&f(i.starts,a),c.matcher=b(c),c}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=ae(e.classNameAliases||{}),f(e)}function An(e){return e?e.endsWithParent||An(e.starts):!1}function Zt(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(n){return ae(e,{variants:null},n)})),e.cachedVariants?e.cachedVariants:An(e)?ae(e,{starts:e.starts?ae(e.starts):null}):Object.isFrozen(e)?ae(e):e}var Yt="11.10.0";class Xt extends Error{constructor(n,t){super(n),this.name="HTMLInjectionError",this.html=t}}const Pe=En,an=ae,rn=Symbol("nomatch"),jt=7,Rn=function(e){const n=Object.create(null),t=Object.create(null),s=[];let b=!0;const f="Could not find the language '{}', did you forget to load/include a language module?",i={disableAutodetect:!0,name:"Plain text",contains:[]};let a={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:ct};function c(r){return a.noHighlightRe.test(r)}function u(r){let o=r.className+" ";o+=r.parentNode?r.parentNode.className:"";const E=a.languageDetectRe.exec(o);if(E){const N=D(E[1]);return N||(sn(f.replace("{}",E[1])),sn("Falling back to no-highlight mode for this block.",r)),N?E[1]:"no-highlight"}return o.split(/\s+/).find(N=>c(N)||D(N))}function g(r,o,E){let N="",A="";typeof o=="object"?(N=r,E=o.ignoreIllegals,A=o.language):(ge("10.7.0","highlight(lang, code, ...args) has been deprecated."),ge("10.7.0",`Please use highlight(code, options) instead.
|
|
2
2
|
https://github.com/highlightjs/highlight.js/issues/2277`),A=r,N=o),E===void 0&&(E=!0);const M={code:N,language:A};j("before:highlight",M);const F=M.result?M.result:m(M.language,M.code,E);return F.code=M.code,j("after:highlight",F),F}function m(r,o,E,N){const A=Object.create(null);function M(l,d){return l.keywords[d]}function F(){if(!p.keywords){B.addText(w);return}let l=0;p.keywordPatternRe.lastIndex=0;let d=p.keywordPatternRe.exec(w),h="";for(;d;){h+=w.substring(l,d.index);const T=K.case_insensitive?d[0].toLowerCase():d[0],H=M(p,T);if(H){const[ee,Xn]=H;if(B.addText(h),h="",A[T]=(A[T]||0)+1,A[T]<=jt&&(me+=Xn),ee.startsWith("_"))h+=d[0];else{const jn=K.classNameAliases[ee]||ee;Z(d[0],jn)}}else h+=d[0];l=p.keywordPatternRe.lastIndex,d=p.keywordPatternRe.exec(w)}h+=w.substring(l),B.addText(h)}function ue(){if(w==="")return;let l=null;if(typeof p.subLanguage=="string"){if(!n[p.subLanguage]){B.addText(w);return}l=m(p.subLanguage,w,!0,Je[p.subLanguage]),Je[p.subLanguage]=l._top}else l=S(w,p.subLanguage.length?p.subLanguage:null);p.relevance>0&&(me+=l.relevance),B.__addSublanguage(l._emitter,l.language)}function P(){p.subLanguage!=null?ue():F(),w=""}function Z(l,d){l!==""&&(B.startScope(d),B.addText(l),B.endScope())}function he(l,d){let h=1;const T=d.length-1;for(;h<=T;){if(!l._emit[h]){h++;continue}const H=K.classNameAliases[l[h]]||l[h],ee=d[h];H?Z(ee,H):(w=ee,F(),w=""),h++}}function fe(l,d){return l.scope&&typeof l.scope=="string"&&B.openNode(K.classNameAliases[l.scope]||l.scope),l.beginScope&&(l.beginScope._wrap?(Z(w,K.classNameAliases[l.beginScope._wrap]||l.beginScope._wrap),w=""):l.beginScope._multi&&(he(l.beginScope,d),w="")),p=Object.create(l,{parent:{value:p}}),p}function Se(l,d,h){let T=gt(l.endRe,h);if(T){if(l["on:end"]){const H=new Qe(l);l["on:end"](d,H),H.isMatchIgnored&&(T=!1)}if(T){for(;l.endsParent&&l.parent;)l=l.parent;return l}}if(l.endsWithParent)return Se(l.parent,d,h)}function xe(l){return p.matcher.regexIndex===0?(w+=l[0],1):(Fe=!0,0)}function ve(l){const d=l[0],h=l.rule,T=new Qe(h),H=[h.__beforeBegin,h["on:begin"]];for(const ee of H)if(ee&&(ee(l,T),T.isMatchIgnored))return xe(d);return h.skip?w+=d:(h.excludeBegin&&(w+=d),P(),!h.returnBegin&&!h.excludeBegin&&(w=d)),fe(h,l),h.returnBegin?0:d.length}function De(l){const d=l[0],h=o.substring(l.index),T=Se(p,l,h);if(!T)return rn;const H=p;p.endScope&&p.endScope._wrap?(P(),Z(d,p.endScope._wrap)):p.endScope&&p.endScope._multi?(P(),he(p.endScope,l)):H.skip?w+=d:(H.returnEnd||H.excludeEnd||(w+=d),P(),H.excludeEnd&&(w=d));do p.scope&&B.closeNode(),!p.skip&&!p.subLanguage&&(me+=p.relevance),p=p.parent;while(p!==T.parent);return T.starts&&fe(T.starts,l),H.returnEnd?0:d.length}function Be(){const l=[];for(let d=p;d!==K;d=d.parent)d.scope&&l.unshift(d.scope);l.forEach(d=>B.openNode(d))}let R={};function ie(l,d){const h=d&&d[0];if(w+=l,h==null)return P(),0;if(R.type==="begin"&&d.type==="end"&&R.index===d.index&&h===""){if(w+=o.slice(d.index,d.index+1),!b){const T=new Error(`0 width match regex (${r})`);throw T.languageName=r,T.badRule=R.rule,T}return 1}if(R=d,d.type==="begin")return ve(d);if(d.type==="illegal"&&!E){const T=new Error('Illegal lexeme "'+h+'" for mode "'+(p.scope||"<unnamed>")+'"');throw T.mode=p,T}else if(d.type==="end"){const T=De(d);if(T!==rn)return T}if(d.type==="illegal"&&h==="")return 1;if(Ue>1e5&&Ue>d.index*3)throw new Error("potential infinite loop, way more iterations than matches");return w+=h,h.length}const K=D(r);if(!K)throw oe(f.replace("{}",r)),new Error('Unknown language: "'+r+'"');const ke=Wt(K);let $e="",p=N||ke;const Je={},B=new a.__emitter(a);Be();let w="",me=0,re=0,Ue=0,Fe=!1;try{if(K.__emitTokens)K.__emitTokens(o,B);else{for(p.matcher.considerAll();;){Ue++,Fe?Fe=!1:p.matcher.considerAll(),p.matcher.lastIndex=re;const l=p.matcher.exec(o);if(!l)break;const d=o.substring(re,l.index),h=ie(d,l);re=l.index+h}ie(o.substring(re))}return B.finalize(),$e=B.toHTML(),{language:r,value:$e,relevance:me,illegal:!1,_emitter:B,_top:p}}catch(l){if(l.message&&l.message.includes("Illegal"))return{language:r,value:Pe(o),illegal:!0,relevance:0,_illegalBy:{message:l.message,index:re,context:o.slice(re-100,re+100),mode:l.mode,resultSoFar:$e},_emitter:B};if(b)return{language:r,value:Pe(o),illegal:!1,relevance:0,errorRaised:l,_emitter:B,_top:p};throw l}}function _(r){const o={value:Pe(r),illegal:!1,relevance:0,_top:i,_emitter:new a.__emitter(a)};return o._emitter.addText(r),o}function S(r,o){o=o||a.languages||Object.keys(n);const E=_(r),N=o.filter(D).filter(ne).map(P=>m(P,r,!1));N.unshift(E);const A=N.sort((P,Z)=>{if(P.relevance!==Z.relevance)return Z.relevance-P.relevance;if(P.language&&Z.language){if(D(P.language).supersetOf===Z.language)return 1;if(D(Z.language).supersetOf===P.language)return-1}return 0}),[M,F]=A,ue=M;return ue.secondBest=F,ue}function L(r,o,E){const N=o&&t[o]||E;r.classList.add("hljs"),r.classList.add(`language-${N}`)}function x(r){let o=null;const E=u(r);if(c(E))return;if(j("before:highlightElement",{el:r,language:E}),r.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",r);return}if(r.children.length>0&&(a.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(r)),a.throwUnescapedHTML))throw new Xt("One of your code blocks includes unescaped HTML.",r.innerHTML);o=r;const N=o.textContent,A=E?g(N,{language:E,ignoreIllegals:!0}):S(N);r.innerHTML=A.value,r.dataset.highlighted="yes",L(r,E,A.language),r.result={language:A.language,re:A.relevance,relevance:A.relevance},A.secondBest&&(r.secondBest={language:A.secondBest.language,relevance:A.secondBest.relevance}),j("after:highlightElement",{el:r,result:A,text:N})}function C(r){a=an(a,r)}const v=()=>{$(),ge("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function z(){$(),ge("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let k=!1;function $(){if(document.readyState==="loading"){k=!0;return}document.querySelectorAll(a.cssSelector).forEach(x)}function I(){k&&$()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",I,!1);function U(r,o){let E=null;try{E=o(e)}catch(N){if(oe("Language definition for '{}' could not be registered.".replace("{}",r)),b)oe(N);else throw N;E=i}E.name||(E.name=r),n[r]=E,E.rawDefinition=o.bind(null,e),E.aliases&&q(E.aliases,{languageName:r})}function X(r){delete n[r];for(const o of Object.keys(t))t[o]===r&&delete t[o]}function Y(){return Object.keys(n)}function D(r){return r=(r||"").toLowerCase(),n[r]||n[t[r]]}function q(r,{languageName:o}){typeof r=="string"&&(r=[r]),r.forEach(E=>{t[E.toLowerCase()]=o})}function ne(r){const o=D(r);return o&&!o.disableAutodetect}function J(r){r["before:highlightBlock"]&&!r["before:highlightElement"]&&(r["before:highlightElement"]=o=>{r["before:highlightBlock"](Object.assign({block:o.el},o))}),r["after:highlightBlock"]&&!r["after:highlightElement"]&&(r["after:highlightElement"]=o=>{r["after:highlightBlock"](Object.assign({block:o.el},o))})}function te(r){J(r),s.push(r)}function se(r){const o=s.indexOf(r);o!==-1&&s.splice(o,1)}function j(r,o){const E=r;s.forEach(function(N){N[E]&&N[E](o)})}function Q(r){return ge("10.7.0","highlightBlock will be removed entirely in v12.0"),ge("10.7.0","Please use highlightElement now."),x(r)}Object.assign(e,{highlight:g,highlightAuto:S,highlightAll:$,highlightElement:x,highlightBlock:Q,configure:C,initHighlighting:v,initHighlightingOnLoad:z,registerLanguage:U,unregisterLanguage:X,listLanguages:Y,getLanguage:D,registerAliases:q,autoDetection:ne,inherit:an,addPlugin:te,removePlugin:se}),e.debugMode=function(){b=!1},e.safeMode=function(){b=!0},e.versionString=Yt,e.regex={concat:le,lookahead:bn,either:We,optional:lt,anyNumberOfTimes:ot};for(const r in Ae)typeof Ae[r]=="object"&&dn(Ae[r]);return Object.assign(e,Ae),e},be=Rn({});be.newInstance=()=>Rn({});var Vt=be;be.HighlightJS=be;be.default=be;const O=Vn(Vt),cn="[A-Za-z$_][0-9A-Za-z$_]*",qt=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],Jt=["true","false","null","undefined","NaN","Infinity"],Tn=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],yn=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],On=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Qt=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],es=[].concat(On,Tn,yn);function Xe(e){const n=e.regex,t=(o,{after:E})=>{const N="</"+o[0].slice(1);return o.input.indexOf(N,E)!==-1},s=cn,b={begin:"<>",end:"</>"},f=/<[A-Za-z0-9\\._:-]+\s*\/>/,i={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(o,E)=>{const N=o[0].length+o.index,A=o.input[N];if(A==="<"||A===","){E.ignoreMatch();return}A===">"&&(t(o,{after:N})||E.ignoreMatch());let M;const F=o.input.substring(N);if(M=F.match(/^\s*=/)){E.ignoreMatch();return}if((M=F.match(/^\s+extends\s+/))&&M.index===0){E.ignoreMatch();return}}},a={$pattern:cn,keyword:qt,literal:Jt,built_in:es,"variable.language":Qt},c="[0-9](_?[0-9])*",u=`\\.(${c})`,g="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",m={className:"number",variants:[{begin:`(\\b(${g})((${u})|\\.)?|(${u}))[eE][+-]?(${c})\\b`},{begin:`\\b(${g})\\b((${u})\\b|\\.)?|(${u})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},_={className:"subst",begin:"\\$\\{",end:"\\}",keywords:a,contains:[]},S={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,_],subLanguage:"xml"}},L={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,_],subLanguage:"css"}},x={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,_],subLanguage:"graphql"}},C={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,_]},z={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:s+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},k=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,S,L,x,C,{match:/\$\d+/},m];_.contains=k.concat({begin:/\{/,end:/\}/,keywords:a,contains:["self"].concat(k)});const $=[].concat(z,_.contains),I=$.concat([{begin:/(\s*)\(/,end:/\)/,keywords:a,contains:["self"].concat($)}]),U={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:I},X={variants:[{match:[/class/,/\s+/,s,/\s+/,/extends/,/\s+/,n.concat(s,"(",n.concat(/\./,s),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,s],scope:{1:"keyword",3:"title.class"}}]},Y={relevance:0,match:n.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Tn,...yn]}},D={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},q={variants:[{match:[/function/,/\s+/,s,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[U],illegal:/%/},ne={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function J(o){return n.concat("(?!",o.join("|"),")")}const te={match:n.concat(/\b/,J([...On,"super","import"].map(o=>`${o}\\s*\\(`)),s,n.lookahead(/\s*\(/)),className:"title.function",relevance:0},se={begin:n.concat(/\./,n.lookahead(n.concat(s,/(?![0-9A-Za-z$_(])/))),end:s,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},j={match:[/get|set/,/\s+/,s,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},U]},Q="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",r={match:[/const|var|let/,/\s+/,s,/\s*/,/=\s*/,/(async\s*)?/,n.lookahead(Q)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[U]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:a,exports:{PARAMS_CONTAINS:I,CLASS_REFERENCE:Y},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),D,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,S,L,x,C,z,{match:/\$\d+/},m,Y,{className:"attr",begin:s+n.lookahead(":"),relevance:0},r,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[z,e.REGEXP_MODE,{className:"function",begin:Q,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:I}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:b.begin,end:b.end},{match:f},{begin:i.begin,"on:begin":i.isTrulyOpeningTag,end:i.end}],subLanguage:"xml",contains:[{begin:i.begin,end:i.end,skip:!0,contains:["self"]}]}]},q,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[U,e.inherit(e.TITLE_MODE,{begin:s,className:"title.function"})]},{match:/\.\.\./,relevance:0},se,{match:"\\$"+s,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[U]},te,ne,X,j,{match:/\$[(.]/}]}}const Ce="[A-Za-z$_][0-9A-Za-z$_]*",In=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],Mn=["true","false","null","undefined","NaN","Infinity"],Cn=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],wn=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Ln=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],xn=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],vn=[].concat(Ln,Cn,wn);function ns(e){const n=e.regex,t=(o,{after:E})=>{const N="</"+o[0].slice(1);return o.input.indexOf(N,E)!==-1},s=Ce,b={begin:"<>",end:"</>"},f=/<[A-Za-z0-9\\._:-]+\s*\/>/,i={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(o,E)=>{const N=o[0].length+o.index,A=o.input[N];if(A==="<"||A===","){E.ignoreMatch();return}A===">"&&(t(o,{after:N})||E.ignoreMatch());let M;const F=o.input.substring(N);if(M=F.match(/^\s*=/)){E.ignoreMatch();return}if((M=F.match(/^\s+extends\s+/))&&M.index===0){E.ignoreMatch();return}}},a={$pattern:Ce,keyword:In,literal:Mn,built_in:vn,"variable.language":xn},c="[0-9](_?[0-9])*",u=`\\.(${c})`,g="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",m={className:"number",variants:[{begin:`(\\b(${g})((${u})|\\.)?|(${u}))[eE][+-]?(${c})\\b`},{begin:`\\b(${g})\\b((${u})\\b|\\.)?|(${u})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},_={className:"subst",begin:"\\$\\{",end:"\\}",keywords:a,contains:[]},S={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,_],subLanguage:"xml"}},L={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,_],subLanguage:"css"}},x={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,_],subLanguage:"graphql"}},C={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,_]},z={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:s+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},k=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,S,L,x,C,{match:/\$\d+/},m];_.contains=k.concat({begin:/\{/,end:/\}/,keywords:a,contains:["self"].concat(k)});const $=[].concat(z,_.contains),I=$.concat([{begin:/(\s*)\(/,end:/\)/,keywords:a,contains:["self"].concat($)}]),U={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:I},X={variants:[{match:[/class/,/\s+/,s,/\s+/,/extends/,/\s+/,n.concat(s,"(",n.concat(/\./,s),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,s],scope:{1:"keyword",3:"title.class"}}]},Y={relevance:0,match:n.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Cn,...wn]}},D={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},q={variants:[{match:[/function/,/\s+/,s,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[U],illegal:/%/},ne={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function J(o){return n.concat("(?!",o.join("|"),")")}const te={match:n.concat(/\b/,J([...Ln,"super","import"].map(o=>`${o}\\s*\\(`)),s,n.lookahead(/\s*\(/)),className:"title.function",relevance:0},se={begin:n.concat(/\./,n.lookahead(n.concat(s,/(?![0-9A-Za-z$_(])/))),end:s,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},j={match:[/get|set/,/\s+/,s,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},U]},Q="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",r={match:[/const|var|let/,/\s+/,s,/\s*/,/=\s*/,/(async\s*)?/,n.lookahead(Q)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[U]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:a,exports:{PARAMS_CONTAINS:I,CLASS_REFERENCE:Y},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),D,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,S,L,x,C,z,{match:/\$\d+/},m,Y,{className:"attr",begin:s+n.lookahead(":"),relevance:0},r,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[z,e.REGEXP_MODE,{className:"function",begin:Q,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:I}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:b.begin,end:b.end},{match:f},{begin:i.begin,"on:begin":i.isTrulyOpeningTag,end:i.end}],subLanguage:"xml",contains:[{begin:i.begin,end:i.end,skip:!0,contains:["self"]}]}]},q,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[U,e.inherit(e.TITLE_MODE,{begin:s,className:"title.function"})]},{match:/\.\.\./,relevance:0},se,{match:"\\$"+s,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[U]},te,ne,X,j,{match:/\$[(.]/}]}}function je(e){const n=ns(e),t=Ce,s=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],b={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},f={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:s},contains:[n.exports.CLASS_REFERENCE]},i={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},a=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],c={$pattern:Ce,keyword:In.concat(a),literal:Mn,built_in:vn.concat(s),"variable.language":xn},u={className:"meta",begin:"@"+t},g=(S,L,x)=>{const C=S.contains.findIndex(v=>v.label===L);if(C===-1)throw new Error("can not find mode to replace");S.contains.splice(C,1,x)};Object.assign(n.keywords,c),n.exports.PARAMS_CONTAINS.push(u);const m=n.contains.find(S=>S.className==="attr");n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,m]),n.contains=n.contains.concat([u,b,f]),g(n,"shebang",e.SHEBANG()),g(n,"use_strict",i);const _=n.contains.find(S=>S.label==="func.def");return _.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}function ts(e){const n={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},t={match:/[{}[\],:]/,className:"punctuation",relevance:0},s=["true","false","null"],b={scope:"literal",beginKeywords:s.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:s},contains:[n,t,e.QUOTE_STRING_MODE,b,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}function ss(e){const n=e.regex,t="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",s="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",i={$pattern:t,keyword:["after","alias","and","case","catch","cond","defstruct","defguard","do","else","end","fn","for","if","import","in","not","or","quote","raise","receive","require","reraise","rescue","try","unless","unquote","unquote_splicing","use","when","with|0"],literal:["false","nil","true"]},a={className:"subst",begin:/#\{/,end:/\}/,keywords:i},c={className:"number",begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[0-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)",relevance:0},g={match:/\\[\s\S]/,scope:"char.escape",relevance:0},m=`[/|([{<"']`,_=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin:/</,end:/>/}],S=I=>({scope:"char.escape",begin:n.concat(/\\/,I),relevance:0}),L={className:"string",begin:"~[a-z](?="+m+")",contains:_.map(I=>e.inherit(I,{contains:[S(I.end),g,a]}))},x={className:"string",begin:"~[A-Z](?="+m+")",contains:_.map(I=>e.inherit(I,{contains:[S(I.end)]}))},C={className:"regex",variants:[{begin:"~r(?="+m+")",contains:_.map(I=>e.inherit(I,{end:n.concat(I.end,/[uismxfU]{0,7}/),contains:[S(I.end),g,a]}))},{begin:"~R(?="+m+")",contains:_.map(I=>e.inherit(I,{end:n.concat(I.end,/[uismxfU]{0,7}/),contains:[S(I.end)]}))}]},v={className:"string",contains:[e.BACKSLASH_ESCAPE,a],variants:[{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},z={className:"function",beginKeywords:"def defp defmacro defmacrop",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:t,endsParent:!0})]},k=e.inherit(z,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),$=[v,C,x,L,e.HASH_COMMENT_MODE,k,z,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[v,{begin:s}],relevance:0},{className:"symbol",begin:t+":(?!:)",relevance:0},{className:"title.class",begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},c,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"}];return a.contains=$,{name:"Elixir",aliases:["ex","exs"],keywords:i,contains:$}}var de="[0-9](_*[0-9])*",Re=`\\.(${de})`,Te="[0-9a-fA-F](_*[0-9a-fA-F])*",on={className:"number",variants:[{begin:`(\\b(${de})((${Re})|\\.)?|(${Re}))[eE][+-]?(${de})[fFdD]?\\b`},{begin:`\\b(${de})((${Re})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Re})[fFdD]?\\b`},{begin:`\\b(${de})[fFdD]\\b`},{begin:`\\b0[xX]((${Te})\\.?|(${Te})?\\.(${Te}))[pP][+-]?(${de})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Te})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function Dn(e,n,t){return t===-1?"":e.replace(n,s=>Dn(e,n,t-1))}function as(e){const n=e.regex,t="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",s=t+Dn("(?:<"+t+"~~~(?:\\s*,\\s*"+t+"~~~)*>)?",/~~~/g,2),c={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},u={className:"meta",begin:"@"+t,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},g={className:"params",begin:/\(/,end:/\)/,keywords:c,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:c,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,t],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[n.concat(/(?!else)/,t),/\s+/,t,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,t],className:{1:"keyword",3:"title.class"},contains:[g,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+s+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:c,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:c,relevance:0,contains:[u,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,on,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},on,u]}}function Bn(e){return e?typeof e=="string"?e:e.source:null}function _e(e){return y("(?=",e,")")}function y(...e){return e.map(t=>Bn(t)).join("")}function is(e){const n=e[e.length-1];return typeof n=="object"&&n.constructor===Object?(e.splice(e.length-1,1),n):{}}function W(...e){return"("+(is(e).capture?"":"?:")+e.map(s=>Bn(s)).join("|")+")"}const Ve=e=>y(/\b/,e,/\w$/.test(e)?/\b/:/\B/),rs=["Protocol","Type"].map(Ve),ln=["init","self"].map(Ve),cs=["Any","Self"],Ke=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],un=["false","nil","true"],os=["assignment","associativity","higherThan","left","lowerThan","none","right"],ls=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],gn=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],kn=W(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),$n=W(kn,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),He=y(kn,$n,"*"),Un=W(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),we=W(Un,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),V=y(Un,we,"*"),ye=y(/[A-Z]/,we,"*"),us=["attached","autoclosure",y(/convention\(/,W("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",y(/objc\(/,V,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],gs=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function ds(e){const n={match:/\s+/,relevance:0},t=e.COMMENT("/\\*","\\*/",{contains:["self"]}),s=[e.C_LINE_COMMENT_MODE,t],b={match:[/\./,W(...rs,...ln)],className:{2:"keyword"}},f={match:y(/\./,W(...Ke)),relevance:0},i=Ke.filter(R=>typeof R=="string").concat(["_|0"]),a=Ke.filter(R=>typeof R!="string").concat(cs).map(Ve),c={variants:[{className:"keyword",match:W(...a,...ln)}]},u={$pattern:W(/\b\w+/,/#\w+/),keyword:i.concat(ls),literal:un},g=[b,f,c],m={match:y(/\./,W(...gn)),relevance:0},_={className:"built_in",match:y(/\b/,W(...gn),/(?=\()/)},S=[m,_],L={match:/->/,relevance:0},x={className:"operator",relevance:0,variants:[{match:He},{match:`\\.(\\.|${$n})+`}]},C=[L,x],v="([0-9]_*)+",z="([0-9a-fA-F]_*)+",k={className:"number",relevance:0,variants:[{match:`\\b(${v})(\\.(${v}))?([eE][+-]?(${v}))?\\b`},{match:`\\b0x(${z})(\\.(${z}))?([pP][+-]?(${v}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},$=(R="")=>({className:"subst",variants:[{match:y(/\\/,R,/[0\\tnr"']/)},{match:y(/\\/,R,/u\{[0-9a-fA-F]{1,8}\}/)}]}),I=(R="")=>({className:"subst",match:y(/\\/,R,/[\t ]*(?:[\r\n]|\r\n)/)}),U=(R="")=>({className:"subst",label:"interpol",begin:y(/\\/,R,/\(/),end:/\)/}),X=(R="")=>({begin:y(R,/"""/),end:y(/"""/,R),contains:[$(R),I(R),U(R)]}),Y=(R="")=>({begin:y(R,/"/),end:y(/"/,R),contains:[$(R),U(R)]}),D={className:"string",variants:[X(),X("#"),X("##"),X("###"),Y(),Y("#"),Y("##"),Y("###")]},q=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],ne={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:q},J=R=>{const ie=y(R,/\//),K=y(/\//,R);return{begin:ie,end:K,contains:[...q,{scope:"comment",begin:`#(?!.*${K})`,end:/$/}]}},te={scope:"regexp",variants:[J("###"),J("##"),J("#"),ne]},se={match:y(/`/,V,/`/)},j={className:"variable",match:/\$\d+/},Q={className:"variable",match:`\\$${we}+`},r=[se,j,Q],o={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:gs,contains:[...C,k,D]}]}},E={scope:"keyword",match:y(/@/,W(...us),_e(W(/\(/,/\s+/)))},N={scope:"meta",match:y(/@/,V)},A=[o,E,N],M={match:_e(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:y(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,we,"+")},{className:"type",match:ye,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:y(/\s+&\s+/,_e(ye)),relevance:0}]},F={begin:/</,end:/>/,keywords:u,contains:[...s,...g,...A,L,M]};M.contains.push(F);const ue={match:y(V,/\s*:/),keywords:"_|0",relevance:0},P={begin:/\(/,end:/\)/,relevance:0,keywords:u,contains:["self",ue,...s,te,...g,...S,...C,k,D,...r,...A,M]},Z={begin:/</,end:/>/,keywords:"repeat each",contains:[...s,M]},he={begin:W(_e(y(V,/\s*:/)),_e(y(V,/\s+/,V,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:V}]},fe={begin:/\(/,end:/\)/,keywords:u,contains:[he,...s,...g,...C,k,D,...A,M,P],endsParent:!0,illegal:/["']/},Se={match:[/(func|macro)/,/\s+/,W(se.match,V,He)],className:{1:"keyword",3:"title.function"},contains:[Z,fe,n],illegal:[/\[/,/%/]},xe={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[Z,fe,n],illegal:/\[|%/},ve={match:[/operator/,/\s+/,He],className:{1:"keyword",3:"title"}},De={begin:[/precedencegroup/,/\s+/,ye],className:{1:"keyword",3:"title"},contains:[M],keywords:[...os,...un],end:/}/},Be={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,V,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:u,contains:[Z,...g,{begin:/:/,end:/\{/,keywords:u,contains:[{scope:"title.class.inherited",match:ye},...g],relevance:0}]};for(const R of D.variants){const ie=R.contains.find(ke=>ke.label==="interpol");ie.keywords=u;const K=[...g,...S,...C,k,D,...r];ie.contains=[...K,{begin:/\(/,end:/\)/,contains:["self",...K]}]}return{name:"Swift",keywords:u,contains:[...s,Se,xe,Be,ve,De,{beginKeywords:"import",end:/$/,contains:[...s],relevance:0},te,...g,...S,...C,k,D,...r,...A,M,P]}}function Fn(e){const n={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},t=/[a-zA-Z@][a-zA-Z0-9_]*/,a={"variable.language":["this","super"],$pattern:t,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},c={$pattern:t,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:a,illegal:"</",contains:[n,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+c.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:c,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}var Ee="[0-9](_*[0-9])*",Oe=`\\.(${Ee})`,Ie="[0-9a-fA-F](_*[0-9a-fA-F])*",Es={className:"number",variants:[{begin:`(\\b(${Ee})((${Oe})|\\.)?|(${Oe}))[eE][+-]?(${Ee})[fFdD]?\\b`},{begin:`\\b(${Ee})((${Oe})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Oe})[fFdD]?\\b`},{begin:`\\b(${Ee})[fFdD]\\b`},{begin:`\\b0[xX]((${Ie})\\.?|(${Ie})?\\.(${Ie}))[pP][+-]?(${Ee})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Ie})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function Pn(e){const n={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},t={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},s={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},b={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},f={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},i={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[f,b]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,f,b]}]};b.contains.push(i);const a={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},c={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(i,{className:"string"}),"self"]}]},u=Es,g=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),m={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},_=m;return _.variants[1].contains=[m],m.variants[1].contains=[_],{name:"Kotlin",aliases:["kt","kts"],keywords:n,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,g,t,s,a,c,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:n,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:n,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[m,e.C_LINE_COMMENT_MODE,g],relevance:0},e.C_LINE_COMMENT_MODE,g,a,c,i,e.C_NUMBER_MODE]},g]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},a,c]},i,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
|
|
3
3
|
`},u]}}function Kn(e){const n=["package","import","option","optional","required","repeated","group","oneof"],t=["double","float","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","bool","string","bytes"],s={match:[/(message|enum|service)\s+/,e.IDENT_RE],scope:{1:"keyword",2:"title.class"}};return{name:"Protocol Buffers",aliases:["proto"],keywords:{keyword:n,type:t,literal:["true","false"]},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s,{className:"function",beginKeywords:"rpc",end:/[{;]/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}function Hn(e){const n=e.regex,t=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),s=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],a={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:s,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},c={className:"meta",begin:/^(>>>|\.\.\.) /},u={className:"subst",begin:/\{/,end:/\}/,keywords:a,illegal:/#/},g={begin:/\{\{/,relevance:0},m={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,c],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,c],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,c,g,u]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,c,g,u]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,g,u]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,g,u]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},_="[0-9](_?[0-9])*",S=`(\\b(${_}))?\\.(${_})|\\b(${_})\\.`,L=`\\b|${s.join("|")}`,x={className:"number",relevance:0,variants:[{begin:`(\\b(${_})|(${S}))[eE][+-]?(${_})[jJ]?(?=${L})`},{begin:`(${S})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${L})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${L})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${L})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${L})`},{begin:`\\b(${_})[jJ](?=${L})`}]},C={className:"comment",begin:n.lookahead(/# type:/),end:/$/,keywords:a,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},v={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:["self",c,x,m,e.HASH_COMMENT_MODE]}]};return u.contains=[m,x,c],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:a,illegal:/(<\/|\?)|=>/,contains:[c,x,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},m,C,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,t],scope:{1:"keyword",3:"title.function"},contains:[v]},{variants:[{match:[/\bclass/,/\s+/,t,/\s*/,/\(\s*/,t,/\s*\)/]},{match:[/\bclass/,/\s+/,t]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[x,v,m]}]}}function Gn(e){const n="true false yes no null",t="[\\w#;/?:@&=+$,.~*'()[\\]]+",s={className:"attr",variants:[{begin:/\w[\w :()\./-]*:(?=[ \t]|$)/},{begin:/"\w[\w :()\./-]*":(?=[ \t]|$)/},{begin:/'\w[\w :()\./-]*':(?=[ \t]|$)/}]},b={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},f={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,b]},i=e.inherit(f,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),m={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},_={end:",",endsWithParent:!0,excludeEnd:!0,keywords:n,relevance:0},S={begin:/\{/,end:/\}/,contains:[_],illegal:"\\n",relevance:0},L={begin:"\\[",end:"\\]",contains:[_],illegal:"\\n",relevance:0},x=[s,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+t},{className:"type",begin:"!<"+t+">"},{className:"type",begin:"!"+t},{className:"type",begin:"!!"+t},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:n,keywords:{literal:n}},m,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},S,L,f],C=[...x];return C.pop(),C.push(i),_.contains=C,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:x}}function zn(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function Wn(e){const n=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:n.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:n.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function Zn(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function bs(e){const n=e.regex,t={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},s={begin:"^[-\\*]{3,}",end:"$"},b={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},f={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},i={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},a=/[A-Za-z][A-Za-z0-9+.-]*/,c={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:n.concat(/\[.+?\]\(/,a,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},u={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},g={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},m=e.inherit(u,{contains:[]}),_=e.inherit(g,{contains:[]});u.contains.push(_),g.contains.push(m);let S=[t,c];return[u,g,m,_].forEach(v=>{v.contains=v.contains.concat(S)}),S=S.concat(u,g),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:S},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:S}]}]},t,f,u,g,{className:"quote",begin:"^>\\s+",contains:S,end:"$"},b,s,c,i,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}var qe={},fs=Jn;Object.defineProperty(qe,"__esModule",{value:!0});var Yn=qe.default=void 0,_s=fs(qn()),ps=G;Yn=qe.default=(0,_s.default)((0,ps.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm-1 4 6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2zm-1 7h5.5L14 6.5z"}),"FileCopy");const Ns=Qn("div")`
|
|
4
4
|
display: block;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{cF as qm,bl as s2,i6 as tT,be as Km,cU as jm,bh as l2,r as u2,bf as Jm}from"./index-
|
|
1
|
+
import{cF as qm,bl as s2,i6 as tT,be as Km,cU as jm,bh as l2,r as u2,bf as Jm}from"./index-BbonVJKD.js";/*! *****************************************************************************
|
|
2
2
|
Copyright (c) Microsoft Corporation.
|
|
3
3
|
|
|
4
4
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{bX as Bo,j as t,f6 as Oo,hL as $o,l5 as Mo,aP as Gt,aQ as Wt,m as W,bq as H,K as y,aB as Ce,P as i,y as L,al as ft,r as f,e as ve,bF as qe,b as Y,H as B,V as $t,bE as He,t as K,n as $,X as ie,l6 as Ao,a4 as Z,aZ as ao,k as te,D as ht,b5 as qo,gK as Go,gL as Wo,e2 as zo,C as ue,fN as Fo,w as Vo,az as Gn,a2 as gt,v as Yo,l7 as Ko,l8 as Ho,B as ae,l9 as Qo,Y as Zo,Z as Xo,la as lo,br as co,Q as ye,dG as Jo,dT as er,aD as tr,aE as nr,aF as or,aH as Q,aS as rr,cR as sr,E as uo,bp as ir,$ as ar,M as at,aG as po,b1 as zt,lb as lr,b2 as je,aC as Wn,cP as cr,k0 as dr,A as U,ae as Ge,aO as mo,bW as Ft,cz as ur,g as xt,lc as pr,bd as mr,x as fo,aY as Mt,T as fr,aW as Ke,R as Ut,W as hr,bG as ho,gJ as gr,cu as xr,aK as yr,by as Cr,aV as jr,eo as vr,fW as zn,ld as Fn,h9 as Vn,U as Yn,G as lt,cO as br,ha as Rr,bV as Sr,k1 as wr}from"./index-e66xJJ-x.js";import{d as Er}from"./Add-BYFWsyUF.js";import{E as Tr}from"./index-f9QTV2yS.js";import{e as Pr,f as kr,g as _r,u as Vt,a as Ir}from"./actions-DQy4Y2na.js";import{S as Dr}from"./switch-control-Cohshryy.js";import{u as pe}from"./blocklet-BNsbNDuf.js";import{P as At,w as yt}from"./permission-CtZli8Hf.js";import{d as go}from"./Edit-DUZ7gP_b.js";import{T as Ur,M as Nr,t as Lr}from"./table-icons-Bs7Hkb6l.js";import{C as Kn}from"./click-to-copy-ADdBawgq.js";import{d as Yt}from"./Link-DoRwHSx9.js";import{c as Br,C as Or,b as $r,s as xo,e as Mr,z as Ar,d as yo,a as qr,A as Gr,B as Wr,f as zr,S as Fr}from"./item-11xHJrBQ.js";import{u as Vr,a as Yr,P as Co,L as Hn,A as Kr,S as Hr}from"./index-BoDwKZkr.js";import{u as Qr,C as Zr,D as Xr,a as Jr,b as es}from"./connect-to-Dr4HhNJU.js";import{C as ts,u as ns,A as os}from"./agreement-DeYzUIM7.js";import{R as dt,F as rs,L as ss,d as is,B as as}from"./preference-0MD46HXq.js";import{d as ls}from"./Done-D3hzYYUk.js";import{A as cs,a as ds,d as us,b as ps}from"./collapse-S-vTWAhi.js";import{C as ms,L as fs}from"./LockIcon-DzCd9ccj.js";import{I as hs,a as gs,f as xs,B as ys}from"./install-from-url-CSiK3Yao.js";import{a as Qn}from"./api-sNy9Buh2.js";import{v as jo,e as Cs,a as ut}from"./util-wc6KkzlL.js";import{u as vo}from"./use-mobile-B7_S05ne.js";import{d as js}from"./ArrowDropDown-b23Ws4Dh.js";import{_ as vs}from"./useLocalStorage-ChdS5XVQ.js";import{d as Ct}from"./Delete-D0GFkYtH.js";import{d as bo}from"./Launch-C-pZPEtf.js";import{D as bs}from"./delete-confirm-DoYSwIFx.js";import{W as Qe,R as Rs,a as Zn}from"./url-evaluation-DRKjUU7g.js";import{B as Ro}from"./status-DRBez5Qf.js";import{A as So}from"./actions-DveJjfxt.js";import{I as Nt}from"./index-JsgthZUN.js";import{t as Ss}from"./toUpper-Cv02sfIb.js";import{S as ws}from"./Switch-Qp41_PVH.js";import{a as Es}from"./team-BczhIV16.js";import"./MoreVert-CrQ5BD1O.js";import"./get-safe-url-h3P_Qh4v.js";import"./ButtonGroup-BbvSuEoF.js";import"./getValidReactChildren-DTJlyDSN.js";import"./index-B4oRLjo7.js";import"./raf-schd.esm-CjWurqZc.js";import"./index-_Y4g7Ki7.js";import"./ViewColumn-Db8V4QN9.js";import"./CSSTransition-CJ-9QKlG.js";import"./index-CNOx9gM8.js";import"./Clear-n1FkleT7.js";import"./ChevronRight-B8F_ru7A.js";import"./ChevronLeft-BCWTA2ES.js";import"./Search-DlTi3_X0.js";import"./index-Co9nkuve.js";import"./Autocomplete-Cbi7HzEa.js";import"./ListSubheader-CN5kB_3v.js";import"./Verified-CLm0sUb6.js";import"./VerifiedUser-Cz-5rgpe.js";import"./DeleteOutline-CSi3y8ZI.js";import"./url-join-CM2acrDe.js";import"./Close-Cem8y-ph.js";import"./index-BeEM_0q3.js";import"./OpenInNew-DeXzob2p.js";import"./index-BJHGOv7L.js";import"./index-BojVbZw0.js";import"./HelpOutline-BtTkcIQl.js";import"./index-DjfLAu4m.js";import"./spaces-BTe9w9go.js";import"./index-1k7DvKxH.js";import"./index-BI9Br-d5.js";import"./iframe-Cs_wGN9V.js";import"./cloneDeep-JEYtEd7F.js";import"./schema-DG7Gb1Zp.js";import"./index-1REZAjOu.js";import"./ListItemButton-C4nle7Vw.js";import"./Stepper-DBIHjo83.js";import"./is-path-prefix-equal-CF4M2MVl.js";import"./MoreHoriz-DC7IikA2.js";const Ts=Bo(t.jsx("path",{d:"M14.17 5 19 9.83V19H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V9.83c0-.53-.21-1.04-.59-1.41l-4.83-4.83c-.37-.38-.88-.59-1.41-.59M7 15h10v2H7zm0-4h10v2H7zm0-4h7v2H7z"}),"TextSnippetOutlined");function Xn(e,o){var n={};return o=Oo(o),$o(e,function(a,r,s){Mo(n,r,o(a,r,s))}),n}var Kt={},Ps=Wt;Object.defineProperty(Kt,"__esModule",{value:!0});var wo=Kt.default=void 0,ks=Ps(Gt()),_s=t;wo=Kt.default=(0,ks.default)((0,_s.jsx)("path",{d:"M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8z"}),"Update");var Ht={},Is=Wt;Object.defineProperty(Ht,"__esModule",{value:!0});var Qt=Ht.default=void 0,Ds=Is(Gt()),Us=t;Qt=Ht.default=(0,Ds.default)((0,Us.jsx)("path",{d:"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z"}),"TuneOutlined");function Zt({children:e,...o}){var x;const{t:n}=W(),{api:a}=H(),{blocklet:r}=pe(),s=(x=r==null?void 0:r.settings)==null?void 0:x.autoCheckUpdate,h=async g=>{await a.updateAutoCheckUpdate({input:{did:r.meta.did,autoCheckUpdate:g}})},c=async()=>{try{const g=!(s!=null&&s.enabled);await h({enabled:g}),L.success(n(g?"storage.spaces.autoCheckUpdate.enabled":"storage.spaces.autoCheckUpdate.disabled"))}catch(g){L.error(g.message)}},p=!!(s!=null&&s.enabled);return t.jsxs(y,{display:"flex",flexDirection:"row",alignItems:"center",children:[e,t.jsx(Ce,{title:n("storage.spaces.autoCheckUpdate.title"),arrow:!0,placement:"right",children:t.jsx("div",{children:t.jsx(Dr,{checked:p,onChange:c,name:"enableWelcomePage",style:{...o.style,zoom:.8}})})})]})}Zt.propTypes={children:i.any};Zt.defaultProps={children:null};function Jn(e){function o({sx:n,...a}){return t.jsx(e,{...a,sx:{color:"text.primary",...n}})}return o}const Ns={...Xn(Lr,Jn),...Xn(Pr,Jn)},Ls=(e,o)=>{let{description:n}=e;return(Object.values(Y.CHAIN_PROP_MAP).includes(e.key)||B.isEnvShareable(e))&&(n?n=`${n} (${o("blocklet.config.sharedToAllComponents")})`:n=o("blocklet.config.sharedToAllComponents")),n&&t.jsx("div",{style:{marginLeft:12},children:n})},Lt=(e,o,n=[])=>!(n!=null&&n.length)&&!e.custom&&!["CHAIN_ID","CHAIN_HOST"].includes(e.key)&&!o.meta.environments.find(a=>a.name===e.key)&&o.children.every(a=>!a.meta.environments.find(r=>r.name===e.key))?!0:e.custom,eo=e=>[Y.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE].includes(e)?!0:!(e.startsWith("BLOCKLET_")||e.startsWith("COMPONENT_")),Bt=e=>[Y.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE].includes(e)===!1;function Xt({blocklet:e,ancestors:o}){const n=H(),{palette:a}=ft(),{inService:r}=n,{t:s}=f.useContext(ve),h=[...o.map(m=>m.meta.did),e.meta.did],c=()=>L.success(s("blocklet.config.changedTip")),p=m=>Lt(m,e,o);if(qe(e.status)||e.status==="unknown"&&qe(e.status))return null;const x=m=>new Promise(async(u,v)=>{if(!m.key.trim()||!m.value.trim()){L.error(s("blocklet.config.environment.keyValueRequired")),v();return}if(eo(m.key)===!1){L.error(s("blocklet.config.environment.invalidKey")),v();return}m.custom=Bt(m.key);try{const w=await n.api.configBlocklet({input:{did:h,configs:[m]}});c(w.blocklet),u()}catch(w){L.error(ie(w)),v()}}),g=(m,u)=>new Promise(async(v,w)=>{if(m.required&&(!m.key.trim()||!m.value.trim())){L.error(s("blocklet.config.environment.keyValueRequired")),w();return}if(eo(m.key)===!1){L.error(s("blocklet.config.environment.invalidKey")),w();return}if(m.key===Y.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE){const N=Ao(m);if(N){L.error(N),w();return}}const j=[{...m,value:m.secure&&m.value==="__encrypted__"?"":m.value}];if(m.key!==u.key){if(!Lt(m,e,o)){L.error("Only key of custom env can be changed"),w();return}j.push({key:u.key,custom:Bt(m.key)})}try{const N=await n.api.configBlocklet({input:{did:h,configs:j}});c(N.blocklet),v()}catch(N){L.error(ie(N)),w()}}),l=m=>new Promise(async(u,v)=>{if(m.required){L.error(s("blocklet.config.environment.deleteForbidden")),v();return}if(!Lt(m,e,o)){L.error("Only key of custom env can be changed"),v();return}try{const w=await n.api.configBlocklet({input:{did:h,configs:[{key:m.key,custom:Bt(m.key)}]}});c(w.blocklet),u()}catch(w){L.error(ie(w)),v()}}),b=(e.configs||[]).filter(m=>!Y.BLOCKLET_CONFIGURABLE_KEY[m.key]||[Y.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE].includes(m.key)),d=B.getSharedConfigObj(o[0],e),T=B.getComponentMissingConfigs(e,o[0]),S=b.map(m=>({...m,value:Object.values(Y.CHAIN_PROP_MAP).includes(m.key)&&Object.keys(d).includes(m.key)?d[m.key]:d[m.key]||m.value})),R=S.some(m=>m.key&&m.key.startsWith("BWA_")),k={onRowAdd:x,onRowUpdate:g,onRowDelete:l,isDeletable:p},C=()=>[{title:s("common.key"),field:"key",initialEditValue:"",width:"30%",render:m=>t.jsx(Kn,{value:m.value,style:{color:m.required&&!m.value?a.error.main:a.text.primary,fontWeight:m.required?"bold":"normal"},children:m.key}),editComponent:m=>{const{value:u,rowData:v,onChange:w}=m;return t.jsx(to,{children:t.jsx(K,{fullWidth:!0,size:"small",disabled:p(v)===!1,value:u,onChange:j=>w(j.target.value),variant:"outlined",label:"Key",placeholder:s("blocklet.config.environment.key"),margin:"dense",autoFocus:!0})})}},{title:s("common.value"),field:"value",initialEditValue:"",width:"calc((100% - (96px + 30%)) / 1)",render:m=>m.value?m.secure?"******":t.jsx(Kn,{unstyled:!0,value:m.value,style:{wordBreak:"break-all"},children:m.value}):null,editComponent:m=>{const{value:u,rowData:v,onChange:w}=m;return t.jsxs(to,{children:[t.jsx(K,{fullWidth:!0,size:"small",value:u==="__encrypted__"?"":u,onChange:j=>w(j.target.value),variant:"outlined",label:s("common.value"),placeholder:s("blocklet.config.environment.value"),margin:"dense"}),Ls(v,s)]})}}];return t.jsxs(Bs,{children:[!!T.length&&t.jsx($t,{severity:"error",style:{marginTop:24},children:s("blocklet.config.missingRequired")}),R&&t.jsx($t,{severity:"info",children:s("blocklet.config.environment.tip")}),t.jsx(At,{permission:r?"":"mutate_blocklets",role:r?He:[],children:m=>t.jsx(Ur,{className:"config-table",children:t.jsx(Nr,{title:t.jsx(y,{fontWeight:"bold",children:s("common.environments")}),columns:C(),icons:Ns,options:{emptyRowsWhenPaging:!1,actionsColumnIndex:-1,tableLayout:"auto",maxBodyHeight:"100%",paging:!1,search:!1,actionsCellStyle:{padding:"0",textAlign:"right",width:"80px"}},localization:{header:{actions:s("common.actions")},body:{emptyDataSourceMessage:s("common.noData")}},data:S,editable:m?k:{}})})})]})}Xt.propTypes={blocklet:i.object.isRequired,ancestors:i.array};Xt.defaultProps={ancestors:[]};const Bs=$.div`
|
|
1
|
+
import{bX as Bo,j as t,f6 as Oo,hL as $o,l2 as Mo,aP as Gt,aQ as Wt,m as W,bq as H,K as y,aB as Ce,P as i,y as L,al as ft,r as f,e as ve,bF as qe,b as Y,H as B,V as $t,bE as He,t as K,n as $,X as ie,l3 as Ao,a4 as Z,aZ as ao,k as te,D as ht,b5 as qo,gK as Go,gL as Wo,e2 as zo,C as ue,fN as Fo,w as Vo,az as Gn,a2 as gt,v as Yo,l4 as Ko,l5 as Ho,B as ae,l6 as Qo,Y as Zo,Z as Xo,l7 as lo,br as co,Q as ye,dG as Jo,dT as er,aD as tr,aE as nr,aF as or,aH as Q,aS as rr,cR as sr,E as uo,bp as ir,$ as ar,M as at,aG as po,b1 as zt,l8 as lr,b2 as je,aC as Wn,cP as cr,k0 as dr,A as U,ae as Ge,aO as mo,bW as Ft,cz as ur,g as xt,l9 as pr,bd as mr,x as fo,aY as Mt,T as fr,aW as Ke,R as Ut,W as hr,bG as ho,gJ as gr,cu as xr,aK as yr,by as Cr,aV as jr,eo as vr,fW as zn,la as Fn,h9 as Vn,U as Yn,G as lt,cO as br,ha as Rr,bV as Sr,k1 as wr}from"./index-BbonVJKD.js";import{d as Er}from"./Add-DTqXwW0N.js";import{E as Tr}from"./index-Bs8cSBPh.js";import{e as Pr,f as kr,g as _r,u as Vt,a as Ir}from"./actions-Bv8xSPmq.js";import{S as Dr}from"./switch-control-DpFXMKLS.js";import{u as pe}from"./blocklet-ztLpKfcq.js";import{P as At,w as yt}from"./permission-CWix4PtW.js";import{d as go}from"./Edit-Co5BQerz.js";import{T as Ur,M as Nr,t as Lr}from"./table-icons-DU8hTbxC.js";import{C as Kn}from"./click-to-copy-C-Mvzzk0.js";import{d as Yt}from"./Link-CXQij6OR.js";import{c as Br,C as Or,b as $r,s as xo,e as Mr,z as Ar,d as yo,a as qr,A as Gr,B as Wr,f as zr,S as Fr}from"./item-BTj4eHCb.js";import{u as Vr,a as Yr,P as Co,L as Hn,A as Kr,S as Hr}from"./index-B0SCwFpt.js";import{u as Qr,C as Zr,D as Xr,a as Jr,b as es}from"./connect-to-_sVZRdFn.js";import{C as ts,u as ns,A as os}from"./agreement-lauLYxz3.js";import{R as dt,F as rs,L as ss,d as is,B as as}from"./preference-D99hgSUh.js";import{d as ls}from"./Done-CFH2iz5e.js";import{A as cs,a as ds,d as us,b as ps}from"./collapse-CtX6Q5OE.js";import{C as ms,L as fs}from"./LockIcon-BPfDiFv0.js";import{I as hs,a as gs,f as xs,B as ys}from"./install-from-url-BO7wobBK.js";import{a as Qn}from"./api-Bwpwhvmw.js";import{v as jo,e as Cs,a as ut}from"./util-CAGtQj-e.js";import{u as vo}from"./use-mobile-iVwM_YK-.js";import{d as js}from"./ArrowDropDown-0HCdgPxM.js";import{_ as vs}from"./useLocalStorage-Bp8WWQpB.js";import{d as Ct}from"./Delete-C3LWwjqe.js";import{d as bo}from"./Launch-BRFCKSJq.js";import{D as bs}from"./delete-confirm-8IsMhNfe.js";import{W as Qe,R as Rs,a as Zn}from"./url-evaluation-CtyhxHau.js";import{B as Ro}from"./status-DTKEarT9.js";import{A as So}from"./actions-CuQoe9ro.js";import{I as Nt}from"./index-C1Pho2dB.js";import{t as Ss}from"./toUpper-B4jRVv5E.js";import{S as ws}from"./Switch-Dt84DR0H.js";import{a as Es}from"./team-8WMHXK3a.js";import"./MoreVert-w75snDQs.js";import"./get-safe-url-CtJu_FcU.js";import"./ButtonGroup-DqXuhqTn.js";import"./getValidReactChildren-C169OtBB.js";import"./index-BGANteup.js";import"./raf-schd.esm-Bg2vGkG6.js";import"./index-zzCN19ij.js";import"./ViewColumn-lUXnk2yu.js";import"./CSSTransition-CSF6lDgV.js";import"./index-Bk6_2RlM.js";import"./Clear-CRBYarsa.js";import"./ChevronRight-Bj9Dx-t_.js";import"./ChevronLeft-CGdwfN-l.js";import"./Search-YHtyGibW.js";import"./index-DGB-iK2Y.js";import"./Autocomplete-BYtQlJN2.js";import"./ListSubheader-DQqgb2yu.js";import"./Verified-CDTmywG7.js";import"./VerifiedUser-CFJTQaF3.js";import"./DeleteOutline-5qAShT9Y.js";import"./url-join-DP1r7KXa.js";import"./Close-C9PKpEMp.js";import"./index-igL_j9mT.js";import"./OpenInNew-CSKLA26V.js";import"./index-BJHGOv7L.js";import"./index-BojVbZw0.js";import"./HelpOutline-DeEYOkJi.js";import"./index-BBUEHNQ4.js";import"./spaces-DyBB-5Eg.js";import"./index-CaIW_cPG.js";import"./index-DJt958VA.js";import"./iframe-B5FbPH5I.js";import"./cloneDeep-CQRRTnm9.js";import"./schema-DA-E-9cd.js";import"./index-CNVBgJcy.js";import"./ListItemButton-DzUr79Sz.js";import"./Stepper-CnVr1egz.js";import"./is-path-prefix-equal-Dcl3Dpc2.js";import"./MoreHoriz-Bx_Om50v.js";const Ts=Bo(t.jsx("path",{d:"M14.17 5 19 9.83V19H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V9.83c0-.53-.21-1.04-.59-1.41l-4.83-4.83c-.37-.38-.88-.59-1.41-.59M7 15h10v2H7zm0-4h10v2H7zm0-4h7v2H7z"}),"TextSnippetOutlined");function Xn(e,o){var n={};return o=Oo(o),$o(e,function(a,r,s){Mo(n,r,o(a,r,s))}),n}var Kt={},Ps=Wt;Object.defineProperty(Kt,"__esModule",{value:!0});var wo=Kt.default=void 0,ks=Ps(Gt()),_s=t;wo=Kt.default=(0,ks.default)((0,_s.jsx)("path",{d:"M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8z"}),"Update");var Ht={},Is=Wt;Object.defineProperty(Ht,"__esModule",{value:!0});var Qt=Ht.default=void 0,Ds=Is(Gt()),Us=t;Qt=Ht.default=(0,Ds.default)((0,Us.jsx)("path",{d:"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z"}),"TuneOutlined");function Zt({children:e,...o}){var x;const{t:n}=W(),{api:a}=H(),{blocklet:r}=pe(),s=(x=r==null?void 0:r.settings)==null?void 0:x.autoCheckUpdate,h=async g=>{await a.updateAutoCheckUpdate({input:{did:r.meta.did,autoCheckUpdate:g}})},c=async()=>{try{const g=!(s!=null&&s.enabled);await h({enabled:g}),L.success(n(g?"storage.spaces.autoCheckUpdate.enabled":"storage.spaces.autoCheckUpdate.disabled"))}catch(g){L.error(g.message)}},p=!!(s!=null&&s.enabled);return t.jsxs(y,{display:"flex",flexDirection:"row",alignItems:"center",children:[e,t.jsx(Ce,{title:n("storage.spaces.autoCheckUpdate.title"),arrow:!0,placement:"right",children:t.jsx("div",{children:t.jsx(Dr,{checked:p,onChange:c,name:"enableWelcomePage",style:{...o.style,zoom:.8}})})})]})}Zt.propTypes={children:i.any};Zt.defaultProps={children:null};function Jn(e){function o({sx:n,...a}){return t.jsx(e,{...a,sx:{color:"text.primary",...n}})}return o}const Ns={...Xn(Lr,Jn),...Xn(Pr,Jn)},Ls=(e,o)=>{let{description:n}=e;return(Object.values(Y.CHAIN_PROP_MAP).includes(e.key)||B.isEnvShareable(e))&&(n?n=`${n} (${o("blocklet.config.sharedToAllComponents")})`:n=o("blocklet.config.sharedToAllComponents")),n&&t.jsx("div",{style:{marginLeft:12},children:n})},Lt=(e,o,n=[])=>!(n!=null&&n.length)&&!e.custom&&!["CHAIN_ID","CHAIN_HOST"].includes(e.key)&&!o.meta.environments.find(a=>a.name===e.key)&&o.children.every(a=>!a.meta.environments.find(r=>r.name===e.key))?!0:e.custom,eo=e=>[Y.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE].includes(e)?!0:!(e.startsWith("BLOCKLET_")||e.startsWith("COMPONENT_")),Bt=e=>[Y.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE].includes(e)===!1;function Xt({blocklet:e,ancestors:o}){const n=H(),{palette:a}=ft(),{inService:r}=n,{t:s}=f.useContext(ve),h=[...o.map(m=>m.meta.did),e.meta.did],c=()=>L.success(s("blocklet.config.changedTip")),p=m=>Lt(m,e,o);if(qe(e.status)||e.status==="unknown"&&qe(e.status))return null;const x=m=>new Promise(async(u,v)=>{if(!m.key.trim()||!m.value.trim()){L.error(s("blocklet.config.environment.keyValueRequired")),v();return}if(eo(m.key)===!1){L.error(s("blocklet.config.environment.invalidKey")),v();return}m.custom=Bt(m.key);try{const w=await n.api.configBlocklet({input:{did:h,configs:[m]}});c(w.blocklet),u()}catch(w){L.error(ie(w)),v()}}),g=(m,u)=>new Promise(async(v,w)=>{if(m.required&&(!m.key.trim()||!m.value.trim())){L.error(s("blocklet.config.environment.keyValueRequired")),w();return}if(eo(m.key)===!1){L.error(s("blocklet.config.environment.invalidKey")),w();return}if(m.key===Y.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE){const N=Ao(m);if(N){L.error(N),w();return}}const j=[{...m,value:m.secure&&m.value==="__encrypted__"?"":m.value}];if(m.key!==u.key){if(!Lt(m,e,o)){L.error("Only key of custom env can be changed"),w();return}j.push({key:u.key,custom:Bt(m.key)})}try{const N=await n.api.configBlocklet({input:{did:h,configs:j}});c(N.blocklet),v()}catch(N){L.error(ie(N)),w()}}),l=m=>new Promise(async(u,v)=>{if(m.required){L.error(s("blocklet.config.environment.deleteForbidden")),v();return}if(!Lt(m,e,o)){L.error("Only key of custom env can be changed"),v();return}try{const w=await n.api.configBlocklet({input:{did:h,configs:[{key:m.key,custom:Bt(m.key)}]}});c(w.blocklet),u()}catch(w){L.error(ie(w)),v()}}),b=(e.configs||[]).filter(m=>!Y.BLOCKLET_CONFIGURABLE_KEY[m.key]||[Y.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE].includes(m.key)),d=B.getSharedConfigObj(o[0],e),T=B.getComponentMissingConfigs(e,o[0]),S=b.map(m=>({...m,value:Object.values(Y.CHAIN_PROP_MAP).includes(m.key)&&Object.keys(d).includes(m.key)?d[m.key]:d[m.key]||m.value})),R=S.some(m=>m.key&&m.key.startsWith("BWA_")),k={onRowAdd:x,onRowUpdate:g,onRowDelete:l,isDeletable:p},C=()=>[{title:s("common.key"),field:"key",initialEditValue:"",width:"30%",render:m=>t.jsx(Kn,{value:m.value,style:{color:m.required&&!m.value?a.error.main:a.text.primary,fontWeight:m.required?"bold":"normal"},children:m.key}),editComponent:m=>{const{value:u,rowData:v,onChange:w}=m;return t.jsx(to,{children:t.jsx(K,{fullWidth:!0,size:"small",disabled:p(v)===!1,value:u,onChange:j=>w(j.target.value),variant:"outlined",label:"Key",placeholder:s("blocklet.config.environment.key"),margin:"dense",autoFocus:!0})})}},{title:s("common.value"),field:"value",initialEditValue:"",width:"calc((100% - (96px + 30%)) / 1)",render:m=>m.value?m.secure?"******":t.jsx(Kn,{unstyled:!0,value:m.value,style:{wordBreak:"break-all"},children:m.value}):null,editComponent:m=>{const{value:u,rowData:v,onChange:w}=m;return t.jsxs(to,{children:[t.jsx(K,{fullWidth:!0,size:"small",value:u==="__encrypted__"?"":u,onChange:j=>w(j.target.value),variant:"outlined",label:s("common.value"),placeholder:s("blocklet.config.environment.value"),margin:"dense"}),Ls(v,s)]})}}];return t.jsxs(Bs,{children:[!!T.length&&t.jsx($t,{severity:"error",style:{marginTop:24},children:s("blocklet.config.missingRequired")}),R&&t.jsx($t,{severity:"info",children:s("blocklet.config.environment.tip")}),t.jsx(At,{permission:r?"":"mutate_blocklets",role:r?He:[],children:m=>t.jsx(Ur,{className:"config-table",children:t.jsx(Nr,{title:t.jsx(y,{fontWeight:"bold",children:s("common.environments")}),columns:C(),icons:Ns,options:{emptyRowsWhenPaging:!1,actionsColumnIndex:-1,tableLayout:"auto",maxBodyHeight:"100%",paging:!1,search:!1,actionsCellStyle:{padding:"0",textAlign:"right",width:"80px"}},localization:{header:{actions:s("common.actions")},body:{emptyDataSourceMessage:s("common.noData")}},data:S,editable:m?k:{}})})})]})}Xt.propTypes={blocklet:i.object.isRequired,ancestors:i.array};Xt.defaultProps={ancestors:[]};const Bs=$.div`
|
|
2
2
|
.config-table {
|
|
3
3
|
margin-bottom: 24px;
|
|
4
4
|
position: relative;
|