@abtnode/webapp 1.17.1 → 1.17.2-beta-20251111-010532-4bb3b162
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-DFBxeUaR.js → AdapterDayjs-CMUuYuy4.js} +7 -7
- package/dist/assets/{Add-mLqDJ8LI.js → Add-9JnCS5ve.js} +1 -1
- package/dist/assets/ArrowDropDown-BB8h3lQf.js +1 -0
- package/dist/assets/{Autocomplete-ClklZJ4u.js → Autocomplete-BpXk1bAd.js} +1 -1
- package/dist/assets/{Breadcrumbs-WK-vnY0P.js → Breadcrumbs-CXMjXwhJ.js} +1 -1
- package/dist/assets/{ButtonGroup-CMBmZNOl.js → ButtonGroup-Bt7SjPF2.js} +1 -1
- package/dist/assets/{CSSTransition-BUs0PeOT.js → CSSTransition-C0HkZ3w8.js} +1 -1
- package/dist/assets/{CallMerge-Ccy0-f-p.js → CallMerge-zGCQzKKy.js} +1 -1
- package/dist/assets/{CardContent-Dt2MkEx5.js → CardContent-DwUw89Yr.js} +1 -1
- package/dist/assets/{ChevronLeft-CK0ZKGMb.js → ChevronLeft-EFWKK9wv.js} +1 -1
- package/dist/assets/{ChevronRight-DZLCO-zv.js → ChevronRight-Bpe2Pa9n.js} +1 -1
- package/dist/assets/{Clear-CZYOhyRd.js → Clear-DK1FdL-M.js} +1 -1
- package/dist/assets/{DeleteOutline-B-dACVWx.js → DeleteOutline-DD4V8Ym7.js} +1 -1
- package/dist/assets/{Done-CDE0letj.js → Done-CKNkXwvV.js} +1 -1
- package/dist/assets/{Edit-D8ZbFXVI.js → Edit-DvxKhYgv.js} +1 -1
- package/dist/assets/{ErrorOutline-BJGb9kj2.js → ErrorOutline-rnnrydXz.js} +1 -1
- package/dist/assets/{FilterList-CuIuGg48.js → FilterList-IdcsYV14.js} +1 -1
- package/dist/assets/{Google-DfP9X7Qz.js → Google-Cgwsyv-7.js} +1 -1
- package/dist/assets/{HelpOutline-q3orkcNe.js → HelpOutline-B9ZgnH_l.js} +1 -1
- package/dist/assets/{KeyboardArrowDown-Be7iWuOW.js → KeyboardArrowDown-BzkHUZaV.js} +1 -1
- package/dist/assets/{Launch-Gm7JKzLz.js → Launch-CbmF-Dvb.js} +1 -1
- package/dist/assets/{Link-Bag45Nmm.js → Link-qpyuA0xm.js} +1 -1
- package/dist/assets/{ListItemButton-_WjpNqWO.js → ListItemButton-B7fT9QtC.js} +1 -1
- package/dist/assets/{ListSubheader-8DfWQIce.js → ListSubheader-XQF0i2sj.js} +1 -1
- package/dist/assets/{LoadingButton-DXPIa7vL.js → LoadingButton-Bnv9Wc9i.js} +1 -1
- package/dist/assets/{MoreVert-DE8AiFjI.js → MoreVert-ByM1c2p0.js} +1 -1
- package/dist/assets/{OpenInNew-BIpr-3_I.js → OpenInNew-DjeSJ9aF.js} +1 -1
- package/dist/assets/{Refresh-RgR-j7H4.js → Refresh-BZK8Hnvv.js} +1 -1
- package/dist/assets/{Search-D6oiU39H.js → Search-HramZyeB.js} +1 -1
- package/dist/assets/{Stepper-qJguYqak.js → Stepper-CxXfcixd.js} +1 -1
- package/dist/assets/{Switch-vCG6Rhuh.js → Switch-D-4fj-ok.js} +1 -1
- package/dist/assets/{TableSearch-B9RjpEHI.js → TableSearch-Ds56-ytf.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-DXi7DrUh.js → ToggleButtonGroup-C8xKGWKO.js} +1 -1
- package/dist/assets/{UnfoldMore-qrx_0HRu.js → UnfoldMore-BGJ1UPRH.js} +1 -1
- package/dist/assets/{Verified-DdhxsAzr.js → Verified-Q08s-S-X.js} +1 -1
- package/dist/assets/{VerifiedUser-BHeVvCeR.js → VerifiedUser-CVNL7osf.js} +1 -1
- package/dist/assets/{ViewList-C89zW3h-.js → ViewList-CafMpBue.js} +1 -1
- package/dist/assets/{_createAggregator-BOClgXtp.js → _createAggregator-rMR5Qg7D.js} +1 -1
- package/dist/assets/actions-B_2z9BVp.js +1 -0
- package/dist/assets/{actions-CPISYK5O.js → actions-CrhiZcfn.js} +1 -1
- package/dist/assets/{agreement-BDhX2ibc.js → agreement-DSOC2es2.js} +1 -1
- package/dist/assets/api-_7-fERwE.js +1 -0
- package/dist/assets/{appearance-DN9vRsth.js → appearance-0DTAmiUy.js} +1 -1
- package/dist/assets/{audit-logs-CkkVykec.js → audit-logs-BYBxa0cE.js} +1 -1
- package/dist/assets/{base-chart-0UpZBjB1.js → base-chart-Cz1RUnvI.js} +1 -1
- package/dist/assets/{blocklet-VzchUeTl.js → blocklet-De_7MRFc.js} +1 -1
- package/dist/assets/{chain-CFWKzhms.js → chain-wMQG8lhu.js} +1 -1
- package/dist/assets/{click-to-copy-DIP6-GlN.js → click-to-copy-CCG028Ko.js} +1 -1
- package/dist/assets/cloneDeep-O8zlWyp5.js +1 -0
- package/dist/assets/{collapse-NkPXU5Zt.js → collapse-1hLxt0wI.js} +1 -1
- package/dist/assets/{config-navigation-DvT2sacY.js → config-navigation-CrYTHFE6.js} +3 -3
- package/dist/assets/{connect-to-dKWvV6V1.js → connect-to-Dw1C7w8-.js} +2 -2
- package/dist/assets/{cssMode-CRa3fC-T.js → cssMode-BqPXI3Du.js} +1 -1
- package/dist/assets/{delete-confirm-DrHD02tU.js → delete-confirm-Bhn4vc_k.js} +1 -1
- package/dist/assets/{depsEqual-DmupZl6g.js → depsEqual-BpfQCpbX.js} +1 -1
- package/dist/assets/{detail-2C5oOOsq.js → detail-Bi01DjBb.js} +3 -3
- package/dist/assets/{domains-5NbGN7b1.js → domains-CX0M13b-.js} +2 -2
- package/dist/assets/{download-DIcZVzlu.js → download-D4DkvHBX.js} +1 -1
- package/dist/assets/{edit.svg-Ds5gcSU5.js → edit.svg-CdZFoJWM.js} +1 -1
- package/dist/assets/emotion-cache.browser.esm-Dso39zEQ.js +1 -0
- package/dist/assets/engine-BJYRuTlq.js +1 -0
- package/dist/assets/{freemarker2-DNl5QT0f.js → freemarker2-BfXdkjvT.js} +1 -1
- package/dist/assets/{get-safe-url-HWq-Oak5.js → get-safe-url-C_QJsu0Y.js} +1 -1
- package/dist/assets/getValidReactChildren-DBOod-PS.js +1 -0
- package/dist/assets/{graphqlMode-Br-X2O9V.js → graphqlMode-dken7PaY.js} +2 -2
- package/dist/assets/{handlebars-CwBj6-fd.js → handlebars-C34j6xzr.js} +1 -1
- package/dist/assets/{html-D-nq4Xjw.js → html-Dcu8YGq0.js} +1 -1
- package/dist/assets/{html-title-DqkAZK1J.js → html-title-h5APx8NK.js} +1 -1
- package/dist/assets/{htmlMode-C9URfibM.js → htmlMode-BjXHegge.js} +1 -1
- package/dist/assets/{iframe-DkQL2XEZ.js → iframe-2Tg0eoDp.js} +1 -1
- package/dist/assets/{index-C60_rVUw.js → index-B7MRSlvg.js} +9 -9
- package/dist/assets/{index-DPt0BH8X.js → index-B8d2a7tG.js} +1 -1
- package/dist/assets/{index-DUXWweJB.js → index-B9O9NRkI.js} +1 -1
- package/dist/assets/{index-zrPeUDCF.js → index-BEJeOPNV.js} +1 -1
- package/dist/assets/{index-Be_P7bFl.js → index-BIQR59vh.js} +1 -1
- package/dist/assets/{index-HULeNGPa.js → index-BNX2Pw3P.js} +1 -1
- package/dist/assets/{index-DmDAGw_3.js → index-BPAmqYfL.js} +2 -2
- package/dist/assets/{index-86jXITjw.js → index-BPdhwSpl.js} +1 -1
- package/dist/assets/{index-D4zq3Dt5.js → index-BVyl6UbK.js} +1 -1
- package/dist/assets/{index-MctHnzlE.js → index-B_CxvOAZ.js} +1 -1
- package/dist/assets/index-Bemqr6mj.js +375 -0
- package/dist/assets/{index-BJkqb5Nl.js → index-Beuc5h-P.js} +1 -1
- package/dist/assets/{index-Bomu1pSL.js → index-BiHco_Sp.js} +1 -1
- package/dist/assets/{index-xGtC2yXK.js → index-BnsWZIgb.js} +1 -1
- package/dist/assets/{index-KjOI7Lrl.js → index-By4WCw2x.js} +1 -1
- package/dist/assets/index-ByF9HTyg.js +1 -0
- package/dist/assets/{index-BF7-dbpK.js → index-ByVAfYFQ.js} +1 -1
- package/dist/assets/{index-eMkLqV2U.js → index-C2bcTSPO.js} +1 -1
- package/dist/assets/{index-BHj2SGOW.js → index-CCYySBUZ.js} +1 -1
- package/dist/assets/{index-A1MOnEag.js → index-CGMvHi-k.js} +27 -31
- package/dist/assets/{index-CRgNQ1lV.js → index-CVoTNXeI.js} +2 -2
- package/dist/assets/{index-CqI5FNRR.js → index-CbkbAuFQ.js} +1 -1
- package/dist/assets/{index-YtRjVFv6.js → index-CpJbO2rC.js} +3 -3
- package/dist/assets/{index-PT65Iyhd.js → index-CzcdFllr.js} +1 -1
- package/dist/assets/{index-DZZV6bQv.js → index-D-lvltme.js} +1 -1
- package/dist/assets/{index-C-BqHBMK.js → index-DCSK-fqg.js} +4 -4
- package/dist/assets/{index-B5PREDjw.js → index-DGb1umc8.js} +1 -1
- package/dist/assets/{index-BdiX4005.js → index-DHFtYTRM.js} +1 -1
- package/dist/assets/{index-0rKT_Rue.js → index-DIb2wqJh.js} +1 -1
- package/dist/assets/{index-Dl9JeaR8.js → index-DcV8CYDD.js} +1 -1
- package/dist/assets/{index-C7-meaY1.js → index-DdCvfslA.js} +1 -1
- package/dist/assets/{index-dXNWda9h.js → index-DdQzQWrN.js} +1 -1
- package/dist/assets/{index-DrXQDInk.js → index-De4gIjYq.js} +1 -1
- package/dist/assets/{index-DeJNKYaM.js → index-DfikdYKu.js} +1 -1
- package/dist/assets/{index-BRWG_hHb.js → index-Di39u5HW.js} +1 -1
- package/dist/assets/{index-CHHDhSWA.js → index-DnRv1GeX.js} +1 -1
- package/dist/assets/{index-kz4od6fL.js → index-Du3AyAz5.js} +1 -1
- package/dist/assets/{index-1J76zhve.js → index-DzDJuZPq.js} +3 -3
- package/dist/assets/{index-BK5gMrki.js → index-J-96moen.js} +1 -1
- package/dist/assets/{index-Bjb7mplU.js → index-JGkLmMXE.js} +3 -3
- package/dist/assets/{index-Cwp4Qsa8.js → index-L5jT1lUQ.js} +1 -1
- package/dist/assets/{index-xEgN1uLu.js → index-LhNotK6-.js} +1 -1
- package/dist/assets/{index-Bq6pTCY2.js → index-XuIMkqsm.js} +1 -1
- package/dist/assets/{index-C-g_2H57.js → index-XzLrkhjQ.js} +1 -1
- package/dist/assets/{index-CEz8uxV0.js → index-cRUZeoHS.js} +128 -130
- package/dist/assets/{index-BvbFbG0L.js → index-m8Q2Gn_c.js} +1 -1
- package/dist/assets/{index.esm-D2OxNJ9M.js → index.esm-CaHvWLjN.js} +1 -1
- package/dist/assets/{install-from-url-BPzsmy3X.js → install-from-url-qw1cAT-z.js} +1 -1
- package/dist/assets/{invitation-a_kpf-F2.js → invitation-D5Uodbw1.js} +1 -1
- package/dist/assets/{is-path-prefix-equal-CGna6TSf.js → is-path-prefix-equal-DxQx_Gy6.js} +1 -1
- package/dist/assets/{item-DrGBW8bL.js → item-DqApkIPP.js} +1 -1
- package/dist/assets/{javascript-t_t4NAAt.js → javascript-Bf98E5IT.js} +1 -1
- package/dist/assets/{jsonMode-C3L-B4Yp.js → jsonMode-NehQBA18.js} +1 -1
- package/dist/assets/{liquid-C0eGHEa1.js → liquid-XdYnZT9Y.js} +1 -1
- package/dist/assets/{list-header-gr5aFkIY.js → list-header-CFUfJPzP.js} +1 -1
- package/dist/assets/{lock.svg-HxrlXX6z.js → lock.svg-B2nHOjXC.js} +1 -1
- package/dist/assets/{log-CpDKFVBw.js → log-C-APVK92.js} +1 -1
- package/dist/assets/{lottie-react.esm-BEkH145L.js → lottie-react.esm-BVTNB6Kb.js} +1 -1
- package/dist/assets/{mdx-D6wWuy-g.js → mdx-CHpyCPdX.js} +1 -1
- package/dist/assets/{memory-OMwAmVIf.js → memory-BCVCBdt8.js} +1 -1
- package/dist/assets/{metric-8OUJLbIG.js → metric-BxKOLJKN.js} +1 -1
- package/dist/assets/omit-XGYUnr-5.js +1 -0
- package/dist/assets/{overview-AZ1lmbKj.js → overview-COBZ3s5Z.js} +1 -1
- package/dist/assets/{permission-DT5OpofS.js → permission-BLVr7Zw0.js} +1 -1
- package/dist/assets/{preference-BkYqshJp.js → preference-D6S9vS1C.js} +4 -4
- package/dist/assets/{python-DNL9kUGf.js → python-B8M3PsCZ.js} +1 -1
- package/dist/assets/{raf-schd.esm-Fik6Olb4.js → raf-schd.esm-Y1E2arpp.js} +1 -1
- package/dist/assets/{razor-CuWC4j4G.js → razor-CbmPl0yc.js} +1 -1
- package/dist/assets/{rotate-session-key-BMUCkqUv.js → rotate-session-key-DPYWhtrS.js} +1 -1
- package/dist/assets/{runtime-DIifoTnh.js → runtime-CO5cgqvu.js} +1 -1
- package/dist/assets/schema-BVvJ40XE.js +1 -0
- package/dist/assets/sdk-DF86kc1O.js +1 -0
- package/dist/assets/{service-BiTGgoni.js → service-2Y50GePl.js} +1 -1
- package/dist/assets/{shorten-label-ekW_2gPe.js → shorten-label-CbtaF7f0.js} +1 -1
- package/dist/assets/{simple-select-C92Ah9-P.js → simple-select-BzcaP23z.js} +1 -1
- package/dist/assets/{spaces-Bp-q5eSI.js → spaces-BW-rgMj8.js} +1 -1
- package/dist/assets/{status-DkrRfk0B.js → status-B2mQIGBg.js} +1 -1
- package/dist/assets/{status-C0bImW42.js → status-BthBbJQ4.js} +1 -1
- package/dist/assets/{switch-control-6fnNFCSf.js → switch-control-ChCh4wim.js} +1 -1
- package/dist/assets/{table-icons-Dk6N7tf2.js → table-icons-BZlnCpGP.js} +1 -1
- package/dist/assets/{team-hXrV5_3J.js → team-CVQ226A7.js} +1 -1
- package/dist/assets/{toLower-C3Vv0nJs.js → toLower-ECkrjidD.js} +1 -1
- package/dist/assets/toUpper-ksJp1AoH.js +1 -0
- package/dist/assets/{traffic-yxJiUmHD.js → traffic-Dd5kjulp.js} +1 -1
- package/dist/assets/{tsMode-CMLFyKkc.js → tsMode-CUZOrf3C.js} +1 -1
- package/dist/assets/{typescript-ChsL_qhx.js → typescript-TFujWg3l.js} +1 -1
- package/dist/assets/{url-evaluation-Dez2t2Dn.js → url-evaluation-Cj1Svots.js} +1 -1
- package/dist/assets/{url-join-D4N_BY6M.js → url-join-b14TJctX.js} +1 -1
- package/dist/assets/{use-mobile-DfTH0u3I.js → use-mobile-B_P2g0h9.js} +1 -1
- package/dist/assets/{use-mobile-NIsLTlyM.js → use-mobile-CkPVbK-I.js} +1 -1
- package/dist/assets/{useAsync-DtphY6Zp.js → useAsync-CYKs18ma.js} +1 -1
- package/dist/assets/{useAsyncRetry-Dsb2N_WV.js → useAsyncRetry-D2phKTtt.js} +1 -1
- package/dist/assets/{useLocalStorage-Pga2d3Q5.js → useLocalStorage-DmhieRfi.js} +1 -1
- package/dist/assets/useThemeProps-BBmrcW6d.js +1 -0
- package/dist/assets/{util-BHw1AnwZ.js → util-IucnAc0V.js} +1 -1
- package/dist/assets/{wait-container-HUF_V5Wk.js → wait-container-DF920PNz.js} +1 -1
- package/dist/assets/{without-wallet-Dpl0lfi-.js → without-wallet-DTmb8URK.js} +1 -1
- package/dist/assets/wrap-locale-bTizNGs8.js +1 -0
- package/dist/assets/{xml-BwCA4eHX.js → xml-CfIPK_Op.js} +1 -1
- package/dist/assets/{yaml-BfofWF78.js → yaml-DMage_Vt.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +1 -1
- package/dist/assets/ArrowDropDown-OAaai_hD.js +0 -1
- package/dist/assets/actions-DtgzhVPu.js +0 -1
- package/dist/assets/api-DQs1mKD0.js +0 -1
- package/dist/assets/cloneDeep-BJ1sWYVb.js +0 -1
- package/dist/assets/emotion-cache.browser.esm-Cv8nFFJn.js +0 -1
- package/dist/assets/engine-C1SqzQqx.js +0 -1
- package/dist/assets/getValidReactChildren-CZQOwkpM.js +0 -1
- package/dist/assets/index-BGUcx9Di.js +0 -1
- package/dist/assets/index-CAWu-mmR.js +0 -376
- package/dist/assets/omit-CzTAhPDm.js +0 -1
- package/dist/assets/schema-DLP5qafk.js +0 -1
- package/dist/assets/sdk-Ba4Oxcv8.js +0 -1
- package/dist/assets/toUpper-BA_1QmXv.js +0 -1
- package/dist/assets/useThemeProps-BjIObq-D.js +0 -1
- package/dist/assets/wrap-locale-ChZSYdOH.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as a,u as D,j as e,T as k,be as Y,K as i,s as U,b2 as Q,o as l,p as P,k as M,d4 as X,bk as ee,d as te,Y as re,C as ne,V as se,i as v,a as h,aH as T,b,d5 as oe,J as ie,bx as ae,aD as le,d6 as me,G as C,H as R,l as ce,m as ue,A as de,bm as pe}from"./index-
|
|
1
|
+
import{r as a,u as D,j as e,T as k,be as Y,K as i,s as U,b2 as Q,o as l,p as P,k as M,d4 as X,bk as ee,d as te,Y as re,C as ne,V as se,i as v,a as h,aH as T,b,d5 as oe,J as ie,bx as ae,aD as le,d6 as me,G as C,H as R,l as ce,m as ue,A as de,bm as pe}from"./index-cRUZeoHS.js";import{u as fe,T as xe}from"./html-title-h5APx8NK.js";import{T as ge}from"./traffic-Dd5kjulp.js";import{H as he}from"./index-DdCvfslA.js";import{x as V}from"./index-DRYJ0xIl.js";import{C as ye,M as L}from"./memory-BCVCBdt8.js";import{C as ve}from"./CardContent-DwUw89Yr.js";import{u as Ce}from"./useLocalStorage-DmhieRfi.js";import{T as je,a as Ie}from"./ToggleButtonGroup-C8xKGWKO.js";import"./iframe-2Tg0eoDp.js";import"./ChevronLeft-EFWKK9wv.js";import"./ChevronRight-Bpe2Pa9n.js";import"./index-DBii9-f-.js";import"./typeof-QjJsDpFa.js";import"./base-chart-Cz1RUnvI.js";import"./index-DIb2wqJh.js";import"./AdapterDayjs-CMUuYuy4.js";import"./useThemeProps-BBmrcW6d.js";import"./CSSTransition-C0HkZ3w8.js";import"./visuallyHidden-Dan1xhjv.js";import"./FilterList-IdcsYV14.js";import"./emotion-cache.browser.esm-Dso39zEQ.js";import"./index-LhNotK6-.js";import"./redux-DfszZyTl.js";import"./depsEqual-BpfQCpbX.js";import"./index-BIQR59vh.js";import"./TableSearch-Ds56-ytf.js";import"./Search-HramZyeB.js";import"./Clear-DK1FdL-M.js";import"./MoreVert-ByM1c2p0.js";import"./getValidReactChildren-DBOod-PS.js";const be=o=>a.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...o},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.08295 3.2C2.08295 2.58144 2.58439 2.08 3.20295 2.08H28.8029C29.4215 2.08 29.9229 2.58144 29.9229 3.2V13.44C29.9229 14.0586 29.4215 14.56 28.8029 14.56H3.20295C2.58439 14.56 2.08295 14.0586 2.08295 13.44V3.2ZM4.32295 4.32V12.32H27.6829V4.32H4.32295ZM2.08295 18.56C2.08295 17.9414 2.58439 17.44 3.20295 17.44H28.8029C29.4215 17.44 29.9229 17.9414 29.9229 18.56V28.8C29.9229 29.4186 29.4215 29.92 28.8029 29.92H3.20295C2.58439 29.92 2.08295 29.4186 2.08295 28.8V18.56ZM4.32295 19.68V27.68H27.6829V19.68H4.32295Z",fill:"currentColor"}),a.createElement("path",{d:"M8.96297 7.04001H7.68297C7.51323 7.04001 7.35044 7.10744 7.23042 7.22746C7.1104 7.34748 7.04297 7.51027 7.04297 7.68001V8.96001C7.04297 9.12975 7.1104 9.29253 7.23042 9.41256C7.35044 9.53258 7.51323 9.60001 7.68297 9.60001H8.96297C9.13271 9.60001 9.29549 9.53258 9.41552 9.41256C9.53554 9.29253 9.60297 9.12975 9.60297 8.96001V7.68001C9.60297 7.51027 9.53554 7.34748 9.41552 7.22746C9.29549 7.10744 9.13271 7.04001 8.96297 7.04001ZM8.96297 22.4H7.68297C7.51323 22.4 7.35044 22.4674 7.23042 22.5875C7.1104 22.7075 7.04297 22.8703 7.04297 23.04V24.32C7.04297 24.4897 7.1104 24.6525 7.23042 24.7726C7.35044 24.8926 7.51323 24.96 7.68297 24.96H8.96297C9.13271 24.96 9.29549 24.8926 9.41552 24.7726C9.53554 24.6525 9.60297 24.4897 9.60297 24.32V23.04C9.60297 22.8703 9.53554 22.7075 9.41552 22.5875C9.29549 22.4674 9.13271 22.4 8.96297 22.4ZM14.083 7.04001H12.803C12.6332 7.04001 12.4704 7.10744 12.3504 7.22746C12.2304 7.34748 12.163 7.51027 12.163 7.68001V8.96001C12.163 9.12975 12.2304 9.29253 12.3504 9.41256C12.4704 9.53258 12.6332 9.60001 12.803 9.60001H14.083C14.2527 9.60001 14.4155 9.53258 14.5355 9.41256C14.6555 9.29253 14.723 9.12975 14.723 8.96001V7.68001C14.723 7.51027 14.6555 7.34748 14.5355 7.22746C14.4155 7.10744 14.2527 7.04001 14.083 7.04001ZM14.083 22.4H12.803C12.6332 22.4 12.4704 22.4674 12.3504 22.5875C12.2304 22.7075 12.163 22.8703 12.163 23.04V24.32C12.163 24.4897 12.2304 24.6525 12.3504 24.7726C12.4704 24.8926 12.6332 24.96 12.803 24.96H14.083C14.2527 24.96 14.4155 24.8926 14.5355 24.7726C14.6555 24.6525 14.723 24.4897 14.723 24.32V23.04C14.723 22.8703 14.6555 22.7075 14.5355 22.5875C14.4155 22.4674 14.2527 22.4 14.083 22.4Z",fill:"currentColor"}));function Me(){const{api:o,info:s}=D();return e.jsx(ge,{client:o,did:s.did})}function $({style:o={},title:s=null,value:m=null,graph:c=null,description:p=null,empty:f=null}){return e.jsx(ke,{children:e.jsxs(ve,{style:{...o},children:[e.jsx(k,{sx:{color:"text.secondary",fontSize:14},children:s}),f&&Y.isValidElement(f)?e.jsx(i,{style:{height:150},sx:{color:"text.secondary",display:"flex",justifyContent:"center",alignItems:"center"},children:f}):e.jsxs(e.Fragment,{children:[e.jsx(k,{variant:"h5",component:"div",sx:{mt:1},children:m}),c,!!p&&e.jsx(i,{sx:{display:"flex",color:"text.secondary",fontSize:12,marginTop:3},children:p})]})]})})}$.propTypes={style:l.object,title:l.node,value:l.node,graph:l.node,description:l.any,empty:l.node};const ke=U(Q)`
|
|
2
2
|
.card-content {
|
|
3
3
|
height: 150px;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aF as de,j as e,hp as Es,hq as Is,bP as Ds,r as q,s as xe,K as $,f5 as kt,t as U,eO as ft,a3 as ae,C as Ee,bi as Bt,dL as Ls,o as T,hr as qs,b2 as Ht,cA as Ms,cT as zs,dp as Bs,T as Y,dG as it,bn as ne,bD as mt,p as ue,hs as Hs,bE as pt,b as W,bg as G,dI as ee,H as Z,aV as ie,V as oe,n as Nt,q as Ns,w as Ft,ac as Fs,i as Zt,gl as Zs,ht as Vs,at as Us,aU as X,R as Te,$ as ke,D as Ws,U as Js,v as re,X as at,hu as Ks,hv as Gs,eA as Ys,eC as Xs,F as je,aH as J,ga as Qs,c$ as St,W as er,fn as Vt,ay as te,aR as Ct,hw as tr,f9 as Re,cv as E,bC as ge,aD as se,O as Q,aP as ye,hx as qe,a1 as sr,hy as Je,c6 as Ce,eD as rr,hz as nr,dH as ce,f as Oe,y as Ut,bz as ot,M as ir,cH as Wt,bs as ar,gr as Ze,hA as or,b9 as lr,L as cr,cu as ze,aK as He,hB as dr,Q as ur,bp as hr,af as Rt,a2 as Jt,bj as Ne,hC as Kt,b6 as fr,gL as we,fa as Gt,cZ as Yt,B as mr,b5 as Ot,fc as pr,fh as gr,G as Ke,J as yr,bx as xr}from"./index-CEz8uxV0.js";import{F as vr,a as lt,s as br,L as _e,S as jr,B as _r}from"./preference-BkYqshJp.js";import{N as $t}from"./ChevronRight-DZLCO-zv.js";import{T as Fe}from"./html-title-DqkAZK1J.js";import{w as Ie,P as wr}from"./permission-DT5OpofS.js";import{u as gt}from"./index-BGUcx9Di.js";import{D as kr}from"./Done-CDE0letj.js";import{R as Sr,S as M}from"./collapse-NkPXU5Zt.js";import{A as Cr,a as At}from"./Autocomplete-ClklZJ4u.js";import{C as Rr,R as Or,S as $r,P as Ar}from"./rotate-session-key-BMUCkqUv.js";import{u as le}from"./blocklet-VzchUeTl.js";import{C as Xt}from"./click-to-copy-DIP6-GlN.js";import{u as Ve}from"./team-hXrV5_3J.js";import{v as Qt}from"./index-eMkLqV2U.js";import{g as Pr}from"./chain-CFWKzhms.js";import{V as Tr,d as Er}from"./status-DkrRfk0B.js";import{S as pe}from"./Switch-vCG6Rhuh.js";import{B as Ir}from"./index-86jXITjw.js";import{y as Dr}from"./index-Be_P7bFl.js";import{I as Lr,J as qr,K as Mr,L as zr}from"./index-xEgN1uLu.js";import{u as ve,C as H,b as Pt}from"./index.esm-D2OxNJ9M.js";import{S as Be,u as Br}from"./switch-control-6fnNFCSf.js";import{D as Tt,R as es,a as ts}from"./url-evaluation-Dez2t2Dn.js";import{A as Et}from"./Add-mLqDJ8LI.js";import{H as Ue}from"./index-C7-meaY1.js";import{u as ss}from"./use-mobile-DfTH0u3I.js";import{S as Ge}from"./simple-select-C92Ah9-P.js";import{G as Hr}from"./actions-CPISYK5O.js";import{C as Nr}from"./CardContent-Dt2MkEx5.js";import"./omit-CzTAhPDm.js";import"./index-KjOI7Lrl.js";import"./edit.svg-Ds5gcSU5.js";import"./ArrowDropDown-OAaai_hD.js";import"./ButtonGroup-CMBmZNOl.js";import"./getValidReactChildren-CZQOwkpM.js";import"./index-zrPeUDCF.js";import"./iframe-DkQL2XEZ.js";import"./ListSubheader-8DfWQIce.js";import"./visuallyHidden-Dan1xhjv.js";import"./ErrorOutline-BJGb9kj2.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./FilterList-CuIuGg48.js";import"./CSSTransition-BUs0PeOT.js";import"./emotion-cache.browser.esm-Cv8nFFJn.js";import"./depsEqual-DmupZl6g.js";import"./TableSearch-B9RjpEHI.js";import"./Search-D6oiU39H.js";import"./Clear-CZYOhyRd.js";import"./MoreVert-DE8AiFjI.js";import"./useLocalStorage-Pga2d3Q5.js";import"./get-safe-url-HWq-Oak5.js";const rs=de([e.jsx("path",{d:"M21 7.28V5c0-1.1-.9-2-2-2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-2.28c.59-.35 1-.98 1-1.72V9c0-.74-.41-1.37-1-1.72M20 9v6h-7V9zM5 19V5h14v2h-6c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h6v2z"},"0"),e.jsx("circle",{cx:"16",cy:"12",r:"1.5"},"1")]),Fr=de([e.jsx("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"},"0"),e.jsx("path",{d:"M14 17H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"},"1")]),Zr=de(e.jsx("path",{d:"M21 8V7l-3 2-3-2v1l3 2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2M8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1zm8-6h-8V6h8z"})),Vr=de(e.jsx("path",{d:"M24 9v2h-6V9zM8 4C5.79 4 4 5.79 4 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4m4.51-8.95C13.43 5.11 14 6.49 14 8s-.57 2.89-1.49 3.95C14.47 11.7 16 10.04 16 8s-1.53-3.7-3.49-3.95m4.02 9.78C17.42 14.66 18 15.7 18 17v3h2v-3c0-1.45-1.59-2.51-3.47-3.17"})),Ur=de(e.jsx("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3"})),Wr=de(e.jsx("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3"})),ct=de(e.jsx("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1z"})),Jr=de([e.jsx("path",{d:"M18 11c.7 0 1.37.1 2 .29V10c0-1.1-.9-2-2-2h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6.26c-.79-1.13-1.26-2.51-1.26-4 0-3.87 3.13-7 7-7M8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H8.9z"},"0"),e.jsx("path",{d:"M18 13c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5m0 2c.83 0 1.5.67 1.5 1.5S18.83 18 18 18s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5m0 6c-1.03 0-1.94-.52-2.48-1.32.73-.42 1.57-.68 2.48-.68s1.75.26 2.48.68c-.54.8-1.45 1.32-2.48 1.32"},"1")]),Kr=de(e.jsx("path",{d:"M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8z"})),Gr=de(e.jsx("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2m6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5z"})),ns=de(e.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2m4.24 16L12 15.45 7.77 18l1.12-4.81-3.73-3.23 4.92-.42L12 5l1.92 4.53 4.92.42-3.73 3.23z"})),Yr=de(e.jsx("path",{d:"M3 18c0 .55.45 1 1 1h5v-2H4c-.55 0-1 .45-1 1M3 6c0 .55.45 1 1 1h9V5H4c-.55 0-1 .45-1 1m10 14v-1h7c.55 0 1-.45 1-1s-.45-1-1-1h-7v-1c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1s1-.45 1-1M7 10v1H4c-.55 0-1 .45-1 1s.45 1 1 1h3v1c0 .55.45 1 1 1s1-.45 1-1v-4c0-.55-.45-1-1-1s-1 .45-1 1m14 2c0-.55-.45-1-1-1h-9v2h9c.55 0 1-.45 1-1m-5-3c.55 0 1-.45 1-1V7h3c.55 0 1-.45 1-1s-.45-1-1-1h-3V4c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1"})),Xr=de(e.jsx("path",{d:"M16 13c3.09-2.81 6-5.44 6-7.7C22 3.45 20.55 2 18.7 2c-1.04 0-2.05.49-2.7 1.25C15.34 2.49 14.34 2 13.3 2 11.45 2 10 3.45 10 5.3c0 2.26 2.91 4.89 6 7.7m-2.7-9c.44 0 .89.21 1.18.55L16 6.34l1.52-1.79c.29-.34.74-.55 1.18-.55.74 0 1.3.56 1.3 1.3 0 1.12-2.04 3.17-4 4.99-1.96-1.82-4-3.88-4-4.99 0-.74.56-1.3 1.3-1.3M19 16h-2c0-1.2-.75-2.28-1.87-2.7L8.97 11H1v11h6v-1.44l7 1.94 8-2.5v-1c0-1.66-1.34-3-3-3M3 20v-7h2v7zm10.97.41L7 18.48V13h1.61l5.82 2.17c.34.13.57.46.57.83 0 0-1.99-.05-2.3-.15l-2.38-.79-.63 1.9 2.38.79c.51.17 1.04.26 1.58.26H19c.39 0 .74.23.9.56z"}));var Qr=Array.prototype,It=Qr.splice;function en(v,R,O,C){var _=Is,j=-1,p=R.length,i=v;for(v===R&&(R=Es(R));++j<p;)for(var m=0,f=R[j],h=f;(m=_(i,h,m))>-1;)i!==v&&It.call(i,m,1),It.call(v,m,1);return v}function tn(v,R){return v&&v.length&&R&&R.length?en(v,R):v}var sn=Ds(tn);const rn={width:24,height:24,body:'<path fill="currentColor" d="M4.975 15q-.425 0-.7-.288T4 14q0-.425.288-.713T5 13h14.025q.425 0 .7.288T20 14q0 .425-.288.713T19 15H4.975Zm0 4q-.425 0-.7-.288T4 18q0-.425.288-.713T5 17h14.025q.425 0 .7.288T20 18q0 .425-.288.713T19 19H4.975Zm0-8q-.425 0-.7-.288T4 10q0-.425.288-.713T5 9h14.025q.425 0 .7.288T20 10q0 .425-.288.713T19 11H4.975Zm0-4q-.425 0-.7-.288T4 6q0-.425.288-.713T5 5h14.025q.425 0 .7.288T20 6q0 .425-.288.713T19 7H4.975Z"/>'};function is({label:v="",disabled:R=!1,required:O=!1,initialValue:C="",onChange:_=()=>{},style:j={},onSubmit:p=()=>{},triggers:i=[],options:m=[],formatterBeforeSubmit:f=n=>n.join(","),helperText:h="",placeholder:t="",renderImage:l=()=>null,renderLabel:o=()=>"",filterKeys:r=["name"],noEmpty:s=!1,...c}){const[n,a]=q.useState(!1),[u,g]=q.useState(!1),[y,k]=q.useState(""),w=q.useRef(null),[d,x]=q.useState(C),[b,S]=q.useState(d),A=q.useMemo(()=>{if(!m)return{};const B={};return m.forEach(I=>{B[I.code]=I}),B},[m]),P=()=>{if(!m)return[];if(!y)return m.map(I=>I.code);const B=new RegExp(y.toLowerCase());return m.filter(I=>{for(let z=0;z<r.length;z++){const F=r[z];if(B.test(I[F]?.toLowerCase()))return!0}return!1}).map(I=>I.code)},L=async()=>{g(!0);try{await p(typeof f=="function"?f(b):b)===!1?S(d):s&&!b.length?(S(C),x(C)):(S(b),x(b))}catch{S(d)}finally{g(!1),a(!1)}},D=(B,I)=>{if(!Array.isArray(I)){S([]),_([]);return}const z=I.filter(F=>A[F]);if(!z.length){S([]),_([]);return}S(z),_(z)},N=B=>{B.stopPropagation(),a(!0),setTimeout(()=>{if(w.current){const I=w.current.querySelector("input");I&&I.focus()}},500)},V=n?e.jsx(Cr,{ref:w,options:m,value:b,onChange:D,inputValue:y,onInputChange:(B,I)=>{k(I)},fullWidth:!0,multiple:!0,variant:"outlined",margin:"dense",filterOptions:P,getOptionLabel:B=>A[B]?.name,renderInput:B=>e.jsx(U,{...B,label:"",placeholder:t}),renderOption:(B,I)=>{const z=b.indexOf(I)!==-1;return q.createElement(nn,{component:"li",...B,key:I},l(A[I]||{}),e.jsx($,{sx:{"& > img":{mr:2,flexShrink:0}},style:{flex:1,fontWeight:z?"700":"normal"},children:o(I,A[I])||A[I]?.name}),e.jsx($,{component:kt,sx:{opacity:.5,width:18,height:18},style:{visibility:z?"visible":"hidden"}}))},...c,slots:{popper:an}}):e.jsx($,{className:"form-item-input slot",onClick:N,style:{whiteSpace:"pre-wrap",cursor:"text"},sx:{px:1},children:b.filter(B=>m.some(I=>I.code===B)).map(B=>e.jsx(ft,{label:m.find(I=>I.code===B).name,style:{marginRight:8},size:"small"},B))});return e.jsx(vr,{className:"form",style:j,children:e.jsxs($,{className:"form-item",children:[e.jsxs($,{className:"form-item-label",children:[v,O&&e.jsx(Sr,{})]}),e.jsxs($,{className:"form-item-body",children:[e.jsx($,{className:"form-item-input",children:V}),n?e.jsx($,{className:"form-item-action",children:e.jsxs(e.Fragment,{children:[e.jsx(ae,{"data-cy":"schema-form-item-confirm",onClick:L,disabled:R||u,size:"large",children:u?e.jsx(Ee,{size:24}):e.jsx(kr,{})}),e.jsx(ae,{"data-cy":"schema-form-item-cancel",onClick:()=>{S(d),a(!1)},disabled:R||u,size:"large",children:e.jsx(kt,{})})]})}):null]}),n&&h&&e.jsx(Bt,{children:h})]})})}is.propTypes={style:T.object,onSubmit:T.func,onChange:T.func,label:T.string,initialValue:T.string,required:T.bool,disabled:T.bool,triggers:T.array,options:T.array,helperText:T.string,formatterBeforeSubmit:T.func,placeholder:T.string,renderImage:T.func,filterKeys:T.arrayOf(T.string),noEmpty:T.bool,renderLabel:T.func};const nn=xe.div`
|
|
1
|
+
import{aF as de,j as e,hh as Es,hi as Is,bP as Ds,r as q,s as xe,K as $,f5 as kt,t as U,eO as ft,a3 as ae,C as Ee,bi as Bt,dL as Ls,o as T,hj as qs,b2 as Ht,cA as Ms,cT as zs,dp as Bs,T as Y,dG as it,bn as ne,bD as mt,p as ue,hk as Hs,bE as pt,b as W,bg as G,dI as ee,H as Z,aV as ie,V as oe,n as Nt,q as Ns,w as Ft,ac as Fs,i as Zt,gd as Zs,hl as Vs,at as Us,aU as X,R as Te,$ as ke,D as Ws,U as Js,v as re,X as at,hm as Ks,hn as Gs,eA as Ys,eC as Xs,F as je,aH as J,g2 as Qs,c$ as St,W as er,fn as Vt,ay as te,aR as Ct,ho as tr,f9 as Re,cv as E,bC as ge,aD as se,O as Q,aP as ye,hp as qe,a1 as sr,hq as Je,c6 as Ce,eD as rr,hr as nr,dH as ce,f as Oe,y as Ut,bz as ot,M as ir,cH as Wt,bs as ar,gj as Ze,hs as or,b9 as lr,L as cr,cu as ze,aK as He,ht as dr,Q as ur,bp as hr,af as Rt,a2 as Jt,bj as Ne,hu as Kt,b6 as fr,gD as we,fa as Gt,cZ as Yt,B as mr,b5 as Ot,fc as pr,fh as gr,G as Ke,J as yr,bx as xr}from"./index-cRUZeoHS.js";import{F as vr,a as lt,s as br,L as _e,S as jr,B as _r}from"./preference-D6S9vS1C.js";import{N as $t}from"./ChevronRight-Bpe2Pa9n.js";import{T as Fe}from"./html-title-h5APx8NK.js";import{w as Ie,P as wr}from"./permission-BLVr7Zw0.js";import{u as gt}from"./index-ByF9HTyg.js";import{D as kr}from"./Done-CKNkXwvV.js";import{R as Sr,S as M}from"./collapse-1hLxt0wI.js";import{A as Cr,a as At}from"./Autocomplete-BpXk1bAd.js";import{C as Rr,R as Or,S as $r,P as Ar}from"./rotate-session-key-DPYWhtrS.js";import{u as le}from"./blocklet-De_7MRFc.js";import{C as Xt}from"./click-to-copy-CCG028Ko.js";import{u as Ve}from"./team-CVQ226A7.js";import{v as Qt}from"./index-C2bcTSPO.js";import{g as Pr}from"./chain-wMQG8lhu.js";import{V as Tr,d as Er}from"./status-B2mQIGBg.js";import{S as pe}from"./Switch-D-4fj-ok.js";import{B as Ir}from"./index-BPdhwSpl.js";import{y as Dr}from"./index-BIQR59vh.js";import{I as Lr,J as qr,K as Mr,L as zr}from"./index-LhNotK6-.js";import{u as ve,C as H,b as Pt}from"./index.esm-CaHvWLjN.js";import{S as Be,u as Br}from"./switch-control-ChCh4wim.js";import{D as Tt,R as es,a as ts}from"./url-evaluation-Cj1Svots.js";import{A as Et}from"./Add-9JnCS5ve.js";import{H as Ue}from"./index-DdCvfslA.js";import{u as ss}from"./use-mobile-B_P2g0h9.js";import{S as Ge}from"./simple-select-BzcaP23z.js";import{G as Hr}from"./actions-CrhiZcfn.js";import{C as Nr}from"./CardContent-DwUw89Yr.js";import"./omit-XGYUnr-5.js";import"./index-By4WCw2x.js";import"./edit.svg-CdZFoJWM.js";import"./ArrowDropDown-BB8h3lQf.js";import"./ButtonGroup-Bt7SjPF2.js";import"./getValidReactChildren-DBOod-PS.js";import"./index-BEJeOPNV.js";import"./iframe-2Tg0eoDp.js";import"./ListSubheader-XQF0i2sj.js";import"./visuallyHidden-Dan1xhjv.js";import"./ErrorOutline-rnnrydXz.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./FilterList-IdcsYV14.js";import"./CSSTransition-C0HkZ3w8.js";import"./emotion-cache.browser.esm-Dso39zEQ.js";import"./depsEqual-BpfQCpbX.js";import"./TableSearch-Ds56-ytf.js";import"./Search-HramZyeB.js";import"./Clear-DK1FdL-M.js";import"./MoreVert-ByM1c2p0.js";import"./useLocalStorage-DmhieRfi.js";import"./get-safe-url-C_QJsu0Y.js";const rs=de([e.jsx("path",{d:"M21 7.28V5c0-1.1-.9-2-2-2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-2.28c.59-.35 1-.98 1-1.72V9c0-.74-.41-1.37-1-1.72M20 9v6h-7V9zM5 19V5h14v2h-6c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h6v2z"},"0"),e.jsx("circle",{cx:"16",cy:"12",r:"1.5"},"1")]),Fr=de([e.jsx("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"},"0"),e.jsx("path",{d:"M14 17H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"},"1")]),Zr=de(e.jsx("path",{d:"M21 8V7l-3 2-3-2v1l3 2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2M8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1zm8-6h-8V6h8z"})),Vr=de(e.jsx("path",{d:"M24 9v2h-6V9zM8 4C5.79 4 4 5.79 4 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4m4.51-8.95C13.43 5.11 14 6.49 14 8s-.57 2.89-1.49 3.95C14.47 11.7 16 10.04 16 8s-1.53-3.7-3.49-3.95m4.02 9.78C17.42 14.66 18 15.7 18 17v3h2v-3c0-1.45-1.59-2.51-3.47-3.17"})),Ur=de(e.jsx("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3"})),Wr=de(e.jsx("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3"})),ct=de(e.jsx("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1z"})),Jr=de([e.jsx("path",{d:"M18 11c.7 0 1.37.1 2 .29V10c0-1.1-.9-2-2-2h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6.26c-.79-1.13-1.26-2.51-1.26-4 0-3.87 3.13-7 7-7M8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H8.9z"},"0"),e.jsx("path",{d:"M18 13c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5m0 2c.83 0 1.5.67 1.5 1.5S18.83 18 18 18s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5m0 6c-1.03 0-1.94-.52-2.48-1.32.73-.42 1.57-.68 2.48-.68s1.75.26 2.48.68c-.54.8-1.45 1.32-2.48 1.32"},"1")]),Kr=de(e.jsx("path",{d:"M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8z"})),Gr=de(e.jsx("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2m6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5z"})),ns=de(e.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2m4.24 16L12 15.45 7.77 18l1.12-4.81-3.73-3.23 4.92-.42L12 5l1.92 4.53 4.92.42-3.73 3.23z"})),Yr=de(e.jsx("path",{d:"M3 18c0 .55.45 1 1 1h5v-2H4c-.55 0-1 .45-1 1M3 6c0 .55.45 1 1 1h9V5H4c-.55 0-1 .45-1 1m10 14v-1h7c.55 0 1-.45 1-1s-.45-1-1-1h-7v-1c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1s1-.45 1-1M7 10v1H4c-.55 0-1 .45-1 1s.45 1 1 1h3v1c0 .55.45 1 1 1s1-.45 1-1v-4c0-.55-.45-1-1-1s-1 .45-1 1m14 2c0-.55-.45-1-1-1h-9v2h9c.55 0 1-.45 1-1m-5-3c.55 0 1-.45 1-1V7h3c.55 0 1-.45 1-1s-.45-1-1-1h-3V4c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1"})),Xr=de(e.jsx("path",{d:"M16 13c3.09-2.81 6-5.44 6-7.7C22 3.45 20.55 2 18.7 2c-1.04 0-2.05.49-2.7 1.25C15.34 2.49 14.34 2 13.3 2 11.45 2 10 3.45 10 5.3c0 2.26 2.91 4.89 6 7.7m-2.7-9c.44 0 .89.21 1.18.55L16 6.34l1.52-1.79c.29-.34.74-.55 1.18-.55.74 0 1.3.56 1.3 1.3 0 1.12-2.04 3.17-4 4.99-1.96-1.82-4-3.88-4-4.99 0-.74.56-1.3 1.3-1.3M19 16h-2c0-1.2-.75-2.28-1.87-2.7L8.97 11H1v11h6v-1.44l7 1.94 8-2.5v-1c0-1.66-1.34-3-3-3M3 20v-7h2v7zm10.97.41L7 18.48V13h1.61l5.82 2.17c.34.13.57.46.57.83 0 0-1.99-.05-2.3-.15l-2.38-.79-.63 1.9 2.38.79c.51.17 1.04.26 1.58.26H19c.39 0 .74.23.9.56z"}));var Qr=Array.prototype,It=Qr.splice;function en(v,R,O,C){var _=Is,j=-1,p=R.length,i=v;for(v===R&&(R=Es(R));++j<p;)for(var m=0,f=R[j],h=f;(m=_(i,h,m))>-1;)i!==v&&It.call(i,m,1),It.call(v,m,1);return v}function tn(v,R){return v&&v.length&&R&&R.length?en(v,R):v}var sn=Ds(tn);const rn={width:24,height:24,body:'<path fill="currentColor" d="M4.975 15q-.425 0-.7-.288T4 14q0-.425.288-.713T5 13h14.025q.425 0 .7.288T20 14q0 .425-.288.713T19 15H4.975Zm0 4q-.425 0-.7-.288T4 18q0-.425.288-.713T5 17h14.025q.425 0 .7.288T20 18q0 .425-.288.713T19 19H4.975Zm0-8q-.425 0-.7-.288T4 10q0-.425.288-.713T5 9h14.025q.425 0 .7.288T20 10q0 .425-.288.713T19 11H4.975Zm0-4q-.425 0-.7-.288T4 6q0-.425.288-.713T5 5h14.025q.425 0 .7.288T20 6q0 .425-.288.713T19 7H4.975Z"/>'};function is({label:v="",disabled:R=!1,required:O=!1,initialValue:C="",onChange:_=()=>{},style:j={},onSubmit:p=()=>{},triggers:i=[],options:m=[],formatterBeforeSubmit:f=n=>n.join(","),helperText:h="",placeholder:t="",renderImage:l=()=>null,renderLabel:o=()=>"",filterKeys:r=["name"],noEmpty:s=!1,...c}){const[n,a]=q.useState(!1),[u,g]=q.useState(!1),[y,k]=q.useState(""),w=q.useRef(null),[d,x]=q.useState(C),[b,S]=q.useState(d),A=q.useMemo(()=>{if(!m)return{};const B={};return m.forEach(I=>{B[I.code]=I}),B},[m]),P=()=>{if(!m)return[];if(!y)return m.map(I=>I.code);const B=new RegExp(y.toLowerCase());return m.filter(I=>{for(let z=0;z<r.length;z++){const F=r[z];if(B.test(I[F]?.toLowerCase()))return!0}return!1}).map(I=>I.code)},L=async()=>{g(!0);try{await p(typeof f=="function"?f(b):b)===!1?S(d):s&&!b.length?(S(C),x(C)):(S(b),x(b))}catch{S(d)}finally{g(!1),a(!1)}},D=(B,I)=>{if(!Array.isArray(I)){S([]),_([]);return}const z=I.filter(F=>A[F]);if(!z.length){S([]),_([]);return}S(z),_(z)},N=B=>{B.stopPropagation(),a(!0),setTimeout(()=>{if(w.current){const I=w.current.querySelector("input");I&&I.focus()}},500)},V=n?e.jsx(Cr,{ref:w,options:m,value:b,onChange:D,inputValue:y,onInputChange:(B,I)=>{k(I)},fullWidth:!0,multiple:!0,variant:"outlined",margin:"dense",filterOptions:P,getOptionLabel:B=>A[B]?.name,renderInput:B=>e.jsx(U,{...B,label:"",placeholder:t}),renderOption:(B,I)=>{const z=b.indexOf(I)!==-1;return q.createElement(nn,{component:"li",...B,key:I},l(A[I]||{}),e.jsx($,{sx:{"& > img":{mr:2,flexShrink:0}},style:{flex:1,fontWeight:z?"700":"normal"},children:o(I,A[I])||A[I]?.name}),e.jsx($,{component:kt,sx:{opacity:.5,width:18,height:18},style:{visibility:z?"visible":"hidden"}}))},...c,slots:{popper:an}}):e.jsx($,{className:"form-item-input slot",onClick:N,style:{whiteSpace:"pre-wrap",cursor:"text"},sx:{px:1},children:b.filter(B=>m.some(I=>I.code===B)).map(B=>e.jsx(ft,{label:m.find(I=>I.code===B).name,style:{marginRight:8},size:"small"},B))});return e.jsx(vr,{className:"form",style:j,children:e.jsxs($,{className:"form-item",children:[e.jsxs($,{className:"form-item-label",children:[v,O&&e.jsx(Sr,{})]}),e.jsxs($,{className:"form-item-body",children:[e.jsx($,{className:"form-item-input",children:V}),n?e.jsx($,{className:"form-item-action",children:e.jsxs(e.Fragment,{children:[e.jsx(ae,{"data-cy":"schema-form-item-confirm",onClick:L,disabled:R||u,size:"large",children:u?e.jsx(Ee,{size:24}):e.jsx(kr,{})}),e.jsx(ae,{"data-cy":"schema-form-item-cancel",onClick:()=>{S(d),a(!1)},disabled:R||u,size:"large",children:e.jsx(kt,{})})]})}):null]}),n&&h&&e.jsx(Bt,{children:h})]})})}is.propTypes={style:T.object,onSubmit:T.func,onChange:T.func,label:T.string,initialValue:T.string,required:T.bool,disabled:T.bool,triggers:T.array,options:T.array,helperText:T.string,formatterBeforeSubmit:T.func,placeholder:T.string,renderImage:T.func,filterKeys:T.arrayOf(T.string),noEmpty:T.bool,renderLabel:T.func};const nn=xe.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
align-items: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as i,j as t,K as o,br as c,o as n}from"./index-
|
|
1
|
+
import{r as i,j as t,K as o,br as c,o as n}from"./index-cRUZeoHS.js";const h=e=>i.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.36096 2.3999C7.04725 2.3999 6.76249 2.58326 6.63267 2.86886L0.872671 15.5409C0.825415 15.6448 0.800964 15.7577 0.800964 15.8719V15.9999V27.3919C0.800964 27.8337 1.15914 28.1919 1.60096 28.1919H30.401C30.8428 28.1919 31.201 27.8337 31.201 27.3919V15.8719C31.201 15.7577 31.1765 15.6448 31.1293 15.5409L25.3693 2.86886C25.2394 2.58326 24.9547 2.3999 24.641 2.3999H7.36096ZM2.40096 16.7999V26.5919H29.601V16.7932C29.5669 16.7976 29.5321 16.7999 29.4968 16.7999H22.3993L20.3328 19.8997C20.1845 20.1222 19.9347 20.2559 19.6672 20.2559H11.6032C11.3357 20.2559 11.0859 20.1222 10.9375 19.8997L8.87104 16.7999H2.40096ZM29.2167 15.1999H21.9712C21.7037 15.1999 21.4539 15.3336 21.3056 15.5561L19.239 18.6559H12.0313L9.96483 15.5561C9.81645 15.3336 9.56667 15.1999 9.29919 15.1999H2.78519L7.8761 3.9999H24.1258L29.2167 15.1999Z",fill:"currentColor"})),a=c(o)`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
align-items: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aF as G,j as e,r as b,aV as V,cA as Le,T as F,ay as K,o as y,V as N,be as ie,b8 as je,K as g,N as oe,W as Q,eO as ve,fI as be,bC as Ft,bu as Lt,bv as Bt,bw as Mt,aO as Be,aP as $t,$ as H,s as W,bn as A,cu as le,C as O,U as Ke,at as Ot,dl as Et,bf as Ze,bg as _t,aH as U,H as z,bD as X,gv as qt,gw as Ht,i as Wt,v as B,b as Ut,a2 as J,t as E,Q as ce,a3 as q,aS as ae,X as ne,F as Qe,ac as Ce,bd as Je,gx as Vt,q as Gt,fn as Yt,P as Xe,ff as et,bi as tt,g as Kt,D as Zt,c8 as st,aU as Qt,R as Jt,dI as Xt,E as es,gy as Me,fG as ts,gz as ss,S as rs}from"./index-CEz8uxV0.js";import{H as Se,g as ns}from"./index-C7-meaY1.js";import{T as as}from"./html-title-DqkAZK1J.js";import{u as M}from"./team-hXrV5_3J.js";import{U as os}from"./ua-parser-DP5omx3I.js";import{u as is}from"./use-mobile-DfTH0u3I.js";import{v as se}from"./index-CqI5FNRR.js";import{w as Y,P as rt}from"./permission-DT5OpofS.js";import{C as ls}from"./Google-DfP9X7Qz.js";import{u as cs}from"./blocklet-VzchUeTl.js";import{A as we}from"./Add-mLqDJ8LI.js";import{y as Te}from"./index-Be_P7bFl.js";import{e as pe}from"./edit.svg-Ds5gcSU5.js";import{M as nt}from"./TableSearch-B9RjpEHI.js";import{L as at}from"./list-header-gr5aFkIY.js";import{g as ds}from"./chain-CFWKzhms.js";import{T as ot,a as re}from"./ToggleButtonGroup-DXi7DrUh.js";import{C as ps}from"./lock.svg-HxrlXX6z.js";const us=G(e.jsx("path",{d:"m17.6 9.48 1.84-3.18c.16-.31.04-.69-.26-.85-.29-.15-.65-.06-.83.22l-1.88 3.24c-2.86-1.21-6.08-1.21-8.94 0L5.65 5.67c-.19-.29-.58-.38-.87-.2-.28.18-.37.54-.22.83L6.4 9.48C3.3 11.25 1.28 14.44 1 18h22c-.28-3.56-2.3-6.75-5.4-8.52M7 15.25c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25m10 0c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25"})),$e=G(e.jsx("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"})),it=G(e.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"})),me=G(e.jsx("path",{d:"M20 3H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6v2H8v2h8v-2h-2v-2h6c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"})),ms=G(e.jsx("path",{d:"M20 18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2zM4 6h16v10H4z"})),fs=G(e.jsx("path",{d:"M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1m-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m4.5-4H7V4h9z"})),xs=G(e.jsx("path",{d:"M21 4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 1.99-.9 1.99-2L23 6c0-1.1-.9-2-2-2m-2 14H5V6h14z"})),fe=G(e.jsx("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m-5 14H4v-4h11zm0-5H4V9h11zm5 5h-4V9h4z"})),ue=s=>b.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...s},b.createElement("path",{d:"M8.4375 4.3125H8.25C8.35313 4.3125 8.4375 4.22812 8.4375 4.125V4.3125H15.5625V4.125C15.5625 4.22812 15.6469 4.3125 15.75 4.3125H15.5625V6H17.25V4.125C17.25 3.29766 16.5773 2.625 15.75 2.625H8.25C7.42266 2.625 6.75 3.29766 6.75 4.125V6H8.4375V4.3125ZM20.25 6H3.75C3.33516 6 3 6.33516 3 6.75V7.5C3 7.60313 3.08437 7.6875 3.1875 7.6875H4.60312L5.18203 19.9453C5.21953 20.7445 5.88047 21.375 6.67969 21.375H17.3203C18.1219 21.375 18.7805 20.7469 18.818 19.9453L19.3969 7.6875H20.8125C20.9156 7.6875 21 7.60313 21 7.5V6.75C21 6.33516 20.6648 6 20.25 6ZM17.1398 19.6875H6.86016L6.29297 7.6875H17.707L17.1398 19.6875Z"}));function hs(s){return!s||typeof s!="string"?"break-all":s.includes(" ")?"break-word":"break-all"}function lt({logo:s="",name:n="",description:l="",size:p=40,variant:c="rounded",sx:u={},className:f="",logoName:a="",tooltip:d=null}){const r={width:p,height:p,...u},o=typeof n=="string"?n:s,i=e.jsxs(V,{direction:"row",spacing:1,className:`info-card-wrapper ${f}`,sx:{alignItems:"center",cursor:d?"pointer":"default"},children:[s?e.jsx(Le,{src:s,alt:a??o,variant:c,sx:r}):e.jsx(Le,{variant:c,sx:r,children:o?.slice(0,1)}),e.jsxs(V,{direction:"column",sx:{alignItems:"flex-start",justifyContent:"space-around",wordBreak:hs(n),minWidth:{xs:100,sm:140}},children:[e.jsx(F,{variant:"body1",component:"div",sx:{color:"text.primary"},children:n}),l&&e.jsx(F,{variant:"subtitle1",sx:{color:"text.secondary"},children:l})]})]});return d?e.jsx(K,{title:d,placement:"top-start",slotProps:{tooltip:{sx:{bgcolor:t=>t.palette.mode==="dark"?"#2a2e37":"#ffffff",color:t=>t.palette.mode==="dark"?"#ffffff":t.palette.text.primary,boxShadow:"0 2px 10px rgba(0, 0, 0, 0.15)",borderRadius:2,padding:"10px 16px",fontSize:14,maxWidth:400,minWidth:240,wordBreak:"break-word",border:t=>t.palette.mode==="dark"?"1px solid #3a3f48":"1px solid #e0e0e0","& .MuiTooltip-arrow":{color:t=>t.palette.mode==="dark"?"#2a2e37":"#ffffff","&::before":{border:t=>t.palette.mode==="dark"?"1px solid #3a3f48":"1px solid #e0e0e0",backgroundColor:t=>t.palette.mode==="dark"?"#2a2e37":"#ffffff"}}}}},children:i}):i}lt.propTypes={logo:y.string,name:y.oneOfType([y.string,y.node]).isRequired,description:y.oneOfType([y.string,y.node]),size:y.oneOfType([y.number,y.string]),variant:y.oneOf(["square","rounded","circular"]),sx:y.object,className:y.string,logoName:y.string,tooltip:y.oneOfType([y.string,y.node])};function gs(s){try{if(!s.trim())return{device:{icon:e.jsx(me,{fontSize:"small"}),text:"Unknown Device"},os:{icon:null,text:"Unknown OS"},browser:{icon:e.jsx(fe,{fontSize:"small"}),text:"Unknown Browser"}};const l=new os(s).getResult();let p="";const c=s.split(/\s+/).find(d=>d.startsWith("arcwallet"));if(c){const d=c.split("/");d.length>1&&Be.coerce(d[1])&&(p=Be.coerce(d[1]).version)}const u=(()=>{const{type:d="",model:r=""}=l.device;return d==="mobile"?{icon:e.jsx(fs,{fontSize:"small"}),text:r||"Mobile Device"}:d==="tablet"?{icon:e.jsx(xs,{fontSize:"small"}),text:r||"Tablet"}:{icon:e.jsx(ms,{fontSize:"small"}),text:r||"Desktop"}})(),f=(()=>{const{name:d="",version:r=""}=l.os;return d.toLowerCase().includes("mac")?{icon:e.jsx($e,{fontSize:"small"}),text:`${d} ${r}`}:d.toLowerCase().includes("ios")?{icon:e.jsx($e,{fontSize:"small"}),text:`${d} ${r}`}:d.toLowerCase().includes("android")?{icon:e.jsx(us,{fontSize:"small"}),text:`${d} ${r}`}:d.toLowerCase().includes("windows")?{icon:e.jsx(me,{fontSize:"small"}),text:`${d} ${r}`}:{icon:null,text:d?`${d} ${r}`:"Unknown OS"}})(),a=(()=>{const{name:d="",version:r=""}=l.browser;return{icon:e.jsx(fe,{fontSize:"small"}),text:d?`${d} ${r}`:"Unknown Browser"}})();return{device:u,os:f,browser:a,...p?{walletVersion:{icon:null,text:p}}:{}}}catch(n){return console.error("Error parsing user agent:",n),{device:{icon:e.jsx(me,{fontSize:"small"}),text:"Unknown Device"},os:{icon:null,text:"Unknown OS"},browser:{icon:e.jsx(fe,{fontSize:"small"}),text:"Unknown Browser"}}}}function ct({ua:s}){const n=gs(s);return e.jsx(V,{spacing:1,children:Object.entries(n).map(([l,{icon:p,text:c}])=>e.jsxs(g,{sx:{display:"flex",alignItems:"center",gap:1},children:[e.jsx(g,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:p}),e.jsx(F,{variant:"body2",sx:{display:"flex"},children:c})]},l))})}ct.propTypes={ua:y.string.isRequired};const dt=()=>{const{t:s}=N(),n={$all:s("common.all"),owner:"Owner",admin:"Admin",member:"Member",guest:"Guest"};return{SYSTEM_ROLES:n,formatRoleName:p=>{const c=(p||"").toLowerCase();return c.startsWith("$")?n[c]||c.slice(1):n[c]||c}}},ys=(s,n=!1)=>{const l=n?1:.6;switch(s){case"owner":return`rgba(232, 222, 255, ${l})`;case"admin":return`rgba(227, 242, 253, ${l})`;case"member":return`rgba(232, 245, 233, ${l})`;case"guest":return`rgba(245, 245, 245, ${l})`;default:return`rgba(245, 245, 245, ${l})`}},js=je(ve)(({role:s})=>({backgroundColor:ys(s.toLowerCase()),color:"#000000"})),vs=s=>{switch(s){case"valid":return n=>n.palette.success.light;case"expired":return n=>n.palette.text.disabled;case"revoked":return n=>n.palette.error.light;default:return n=>n.palette.warning.light}},bs=je(ve)(({theme:s,status:n})=>({backgroundColor:vs(n)(s),color:"#FFFFFF"}));function pt({did:s}){return e.jsx(Q,{size:14,responsive:!1,compact:!0,copyable:!1,did:s})}pt.propTypes={did:y.string.isRequired};function ut({timestamp:s,locale:n}){return e.jsx(g,{sx:{minWidth:"100px"},children:e.jsx(oe,{value:s,locale:n})})}ut.propTypes={timestamp:y.number.isRequired,locale:y.string.isRequired};function mt({name:s="",role:n}){const{formatRoleName:l}=dt();return e.jsx(js,{label:l(s||n),size:"small",role:s||n,sx:{borderRadius:1}})}mt.propTypes={role:y.string.isRequired,name:y.string};function ft({status:s}){const{t:n}=N();return e.jsx(bs,{label:n(`team.passport.statusMap.${s}`),size:"small",status:s,sx:{borderRadius:1}})}ft.propTypes={status:y.string.isRequired};function xt({source:s}){const{t:n}=N();return s?n(`team.passport.sourceMaps.${s}`):"-"}xt.propTypes={source:y.string.isRequired};function ht({user:s,size:n="default",tooltip:l=!1,inService:p=!1}){const{teamDid:c}=M(),u=ie.useMemo(()=>be(s.avatar,c,p),[s.avatar,c,p]),f=ie.useMemo(()=>e.jsx(Q,{did:s?.did,compact:!0,responsive:!1,sx:{whiteSpace:"nowrap"},size:12}),[s?.did]),a=Ft(()=>({...s,avatar:u}),[s,u]);return n==="small"?e.jsx(lt,{variant:"circular",logo:u,name:e.jsx(F,{sx:{maxWidth:320,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},className:"customer-link-name",children:s.fullName||s.email}),...n==="small"?{tooltip:l?e.jsx(Q,{did:s?.did}):!1,size:24}:{description:f,size:36}}):e.jsx(Lt,{user:a,avatarSize:n==="small"?24:36,cardType:Mt.Detailed,infoType:Bt.Minimal,sx:{padding:0,border:"none"},showDid:!0,didProps:{compact:!0,responsive:!1},showHoverCard:!1})}ht.propTypes={user:y.object.isRequired,size:y.string,tooltip:y.bool,inService:y.bool};const Cs=ie.memo(ht),Ss=s=>e.jsx(pt,{did:s}),Ie=(s,n)=>e.jsx(mt,{name:s,role:n}),Re=s=>e.jsx(ft,{status:s}),gt=(s,n)=>e.jsx(ut,{timestamp:s,locale:n}),de=s=>e.jsx(xt,{source:s}),De=(s,n=!1)=>e.jsx(Cs,{user:s,inService:n}),ws=s=>e.jsx(ct,{ua:s}),Oe="info";function yt({createPassportSvg:s,passport:n,onCancel:l,onSwitchPassport:p=()=>{}}){const{t:c}=N(),u=$t({tab:Oe}),f={info:{label:c("common.basicInfo"),value:Oe,component:()=>e.jsx(jt,{passport:n,createPassportSvg:s})},logs:{label:c("common.logs"),value:"logs",component:()=>e.jsx(Ct,{passport:n})},related:{label:c("team.passport.related"),value:"related",component:()=>e.jsx(St,{passport:n,onSwitchPassport:p})}},a=Object.values(f).map(({label:o,value:i})=>({label:o,value:i})).filter(o=>o.value==="related"?n.parentDid:!0),d=f[u.tab]||f.info,r=o=>{u.tab=o};return e.jsx(H,{title:c("common.passport"),onClose:l,open:!0,PaperProps:{style:{maxWidth:800,minHeight:"80vh"}},fullWidth:!0,children:e.jsxs(Ts,{children:[e.jsx(g,{className:"tabs",children:e.jsx(as,{tabs:a,current:u.tab,onChange:r,scrollButtons:"auto"})}),e.jsx(g,{className:"body",children:e.jsx(d.component,{})})]})})}yt.propTypes={createPassportSvg:y.func.isRequired,passport:y.object.isRequired,onCancel:y.func.isRequired,onSwitchPassport:y.func};const Ts=W(g)`
|
|
1
|
+
import{aF as G,j as e,r as b,aV as V,cA as Le,T as F,ay as K,o as y,V as N,be as ie,b8 as je,K as g,N as oe,W as Q,eO as ve,fI as be,bC as Ft,bu as Lt,bv as Bt,bw as Mt,aO as Be,aP as $t,$ as H,s as W,bn as A,cu as le,C as O,U as Ke,at as Ot,dl as Et,bf as Ze,bg as _t,aH as U,H as z,bD as X,gn as qt,go as Ht,i as Wt,v as B,b as Ut,a2 as J,t as E,Q as ce,a3 as q,aS as ae,X as ne,F as Qe,ac as Ce,bd as Je,gp as Vt,q as Gt,fn as Yt,P as Xe,ff as et,bi as tt,g as Kt,D as Zt,c8 as st,aU as Qt,R as Jt,dI as Xt,E as es,gq as Me,fG as ts,gr as ss,S as rs}from"./index-cRUZeoHS.js";import{H as Se,g as ns}from"./index-DdCvfslA.js";import{T as as}from"./html-title-h5APx8NK.js";import{u as M}from"./team-CVQ226A7.js";import{U as os}from"./ua-parser-DP5omx3I.js";import{u as is}from"./use-mobile-B_P2g0h9.js";import{v as se}from"./index-CbkbAuFQ.js";import{w as Y,P as rt}from"./permission-BLVr7Zw0.js";import{C as ls}from"./Google-Cgwsyv-7.js";import{u as cs}from"./blocklet-De_7MRFc.js";import{A as we}from"./Add-9JnCS5ve.js";import{y as Te}from"./index-BIQR59vh.js";import{e as pe}from"./edit.svg-CdZFoJWM.js";import{M as nt}from"./TableSearch-Ds56-ytf.js";import{L as at}from"./list-header-CFUfJPzP.js";import{g as ds}from"./chain-wMQG8lhu.js";import{T as ot,a as re}from"./ToggleButtonGroup-C8xKGWKO.js";import{C as ps}from"./lock.svg-B2nHOjXC.js";const us=G(e.jsx("path",{d:"m17.6 9.48 1.84-3.18c.16-.31.04-.69-.26-.85-.29-.15-.65-.06-.83.22l-1.88 3.24c-2.86-1.21-6.08-1.21-8.94 0L5.65 5.67c-.19-.29-.58-.38-.87-.2-.28.18-.37.54-.22.83L6.4 9.48C3.3 11.25 1.28 14.44 1 18h22c-.28-3.56-2.3-6.75-5.4-8.52M7 15.25c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25m10 0c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25"})),$e=G(e.jsx("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"})),it=G(e.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"})),me=G(e.jsx("path",{d:"M20 3H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6v2H8v2h8v-2h-2v-2h6c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"})),ms=G(e.jsx("path",{d:"M20 18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2zM4 6h16v10H4z"})),fs=G(e.jsx("path",{d:"M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1m-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m4.5-4H7V4h9z"})),xs=G(e.jsx("path",{d:"M21 4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 1.99-.9 1.99-2L23 6c0-1.1-.9-2-2-2m-2 14H5V6h14z"})),fe=G(e.jsx("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m-5 14H4v-4h11zm0-5H4V9h11zm5 5h-4V9h4z"})),ue=s=>b.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...s},b.createElement("path",{d:"M8.4375 4.3125H8.25C8.35313 4.3125 8.4375 4.22812 8.4375 4.125V4.3125H15.5625V4.125C15.5625 4.22812 15.6469 4.3125 15.75 4.3125H15.5625V6H17.25V4.125C17.25 3.29766 16.5773 2.625 15.75 2.625H8.25C7.42266 2.625 6.75 3.29766 6.75 4.125V6H8.4375V4.3125ZM20.25 6H3.75C3.33516 6 3 6.33516 3 6.75V7.5C3 7.60313 3.08437 7.6875 3.1875 7.6875H4.60312L5.18203 19.9453C5.21953 20.7445 5.88047 21.375 6.67969 21.375H17.3203C18.1219 21.375 18.7805 20.7469 18.818 19.9453L19.3969 7.6875H20.8125C20.9156 7.6875 21 7.60313 21 7.5V6.75C21 6.33516 20.6648 6 20.25 6ZM17.1398 19.6875H6.86016L6.29297 7.6875H17.707L17.1398 19.6875Z"}));function hs(s){return!s||typeof s!="string"?"break-all":s.includes(" ")?"break-word":"break-all"}function lt({logo:s="",name:n="",description:l="",size:p=40,variant:c="rounded",sx:u={},className:f="",logoName:a="",tooltip:d=null}){const r={width:p,height:p,...u},o=typeof n=="string"?n:s,i=e.jsxs(V,{direction:"row",spacing:1,className:`info-card-wrapper ${f}`,sx:{alignItems:"center",cursor:d?"pointer":"default"},children:[s?e.jsx(Le,{src:s,alt:a??o,variant:c,sx:r}):e.jsx(Le,{variant:c,sx:r,children:o?.slice(0,1)}),e.jsxs(V,{direction:"column",sx:{alignItems:"flex-start",justifyContent:"space-around",wordBreak:hs(n),minWidth:{xs:100,sm:140}},children:[e.jsx(F,{variant:"body1",component:"div",sx:{color:"text.primary"},children:n}),l&&e.jsx(F,{variant:"subtitle1",sx:{color:"text.secondary"},children:l})]})]});return d?e.jsx(K,{title:d,placement:"top-start",slotProps:{tooltip:{sx:{bgcolor:t=>t.palette.mode==="dark"?"#2a2e37":"#ffffff",color:t=>t.palette.mode==="dark"?"#ffffff":t.palette.text.primary,boxShadow:"0 2px 10px rgba(0, 0, 0, 0.15)",borderRadius:2,padding:"10px 16px",fontSize:14,maxWidth:400,minWidth:240,wordBreak:"break-word",border:t=>t.palette.mode==="dark"?"1px solid #3a3f48":"1px solid #e0e0e0","& .MuiTooltip-arrow":{color:t=>t.palette.mode==="dark"?"#2a2e37":"#ffffff","&::before":{border:t=>t.palette.mode==="dark"?"1px solid #3a3f48":"1px solid #e0e0e0",backgroundColor:t=>t.palette.mode==="dark"?"#2a2e37":"#ffffff"}}}}},children:i}):i}lt.propTypes={logo:y.string,name:y.oneOfType([y.string,y.node]).isRequired,description:y.oneOfType([y.string,y.node]),size:y.oneOfType([y.number,y.string]),variant:y.oneOf(["square","rounded","circular"]),sx:y.object,className:y.string,logoName:y.string,tooltip:y.oneOfType([y.string,y.node])};function gs(s){try{if(!s.trim())return{device:{icon:e.jsx(me,{fontSize:"small"}),text:"Unknown Device"},os:{icon:null,text:"Unknown OS"},browser:{icon:e.jsx(fe,{fontSize:"small"}),text:"Unknown Browser"}};const l=new os(s).getResult();let p="";const c=s.split(/\s+/).find(d=>d.startsWith("arcwallet"));if(c){const d=c.split("/");d.length>1&&Be.coerce(d[1])&&(p=Be.coerce(d[1]).version)}const u=(()=>{const{type:d="",model:r=""}=l.device;return d==="mobile"?{icon:e.jsx(fs,{fontSize:"small"}),text:r||"Mobile Device"}:d==="tablet"?{icon:e.jsx(xs,{fontSize:"small"}),text:r||"Tablet"}:{icon:e.jsx(ms,{fontSize:"small"}),text:r||"Desktop"}})(),f=(()=>{const{name:d="",version:r=""}=l.os;return d.toLowerCase().includes("mac")?{icon:e.jsx($e,{fontSize:"small"}),text:`${d} ${r}`}:d.toLowerCase().includes("ios")?{icon:e.jsx($e,{fontSize:"small"}),text:`${d} ${r}`}:d.toLowerCase().includes("android")?{icon:e.jsx(us,{fontSize:"small"}),text:`${d} ${r}`}:d.toLowerCase().includes("windows")?{icon:e.jsx(me,{fontSize:"small"}),text:`${d} ${r}`}:{icon:null,text:d?`${d} ${r}`:"Unknown OS"}})(),a=(()=>{const{name:d="",version:r=""}=l.browser;return{icon:e.jsx(fe,{fontSize:"small"}),text:d?`${d} ${r}`:"Unknown Browser"}})();return{device:u,os:f,browser:a,...p?{walletVersion:{icon:null,text:p}}:{}}}catch(n){return console.error("Error parsing user agent:",n),{device:{icon:e.jsx(me,{fontSize:"small"}),text:"Unknown Device"},os:{icon:null,text:"Unknown OS"},browser:{icon:e.jsx(fe,{fontSize:"small"}),text:"Unknown Browser"}}}}function ct({ua:s}){const n=gs(s);return e.jsx(V,{spacing:1,children:Object.entries(n).map(([l,{icon:p,text:c}])=>e.jsxs(g,{sx:{display:"flex",alignItems:"center",gap:1},children:[e.jsx(g,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:p}),e.jsx(F,{variant:"body2",sx:{display:"flex"},children:c})]},l))})}ct.propTypes={ua:y.string.isRequired};const dt=()=>{const{t:s}=N(),n={$all:s("common.all"),owner:"Owner",admin:"Admin",member:"Member",guest:"Guest"};return{SYSTEM_ROLES:n,formatRoleName:p=>{const c=(p||"").toLowerCase();return c.startsWith("$")?n[c]||c.slice(1):n[c]||c}}},ys=(s,n=!1)=>{const l=n?1:.6;switch(s){case"owner":return`rgba(232, 222, 255, ${l})`;case"admin":return`rgba(227, 242, 253, ${l})`;case"member":return`rgba(232, 245, 233, ${l})`;case"guest":return`rgba(245, 245, 245, ${l})`;default:return`rgba(245, 245, 245, ${l})`}},js=je(ve)(({role:s})=>({backgroundColor:ys(s.toLowerCase()),color:"#000000"})),vs=s=>{switch(s){case"valid":return n=>n.palette.success.light;case"expired":return n=>n.palette.text.disabled;case"revoked":return n=>n.palette.error.light;default:return n=>n.palette.warning.light}},bs=je(ve)(({theme:s,status:n})=>({backgroundColor:vs(n)(s),color:"#FFFFFF"}));function pt({did:s}){return e.jsx(Q,{size:14,responsive:!1,compact:!0,copyable:!1,did:s})}pt.propTypes={did:y.string.isRequired};function ut({timestamp:s,locale:n}){return e.jsx(g,{sx:{minWidth:"100px"},children:e.jsx(oe,{value:s,locale:n})})}ut.propTypes={timestamp:y.number.isRequired,locale:y.string.isRequired};function mt({name:s="",role:n}){const{formatRoleName:l}=dt();return e.jsx(js,{label:l(s||n),size:"small",role:s||n,sx:{borderRadius:1}})}mt.propTypes={role:y.string.isRequired,name:y.string};function ft({status:s}){const{t:n}=N();return e.jsx(bs,{label:n(`team.passport.statusMap.${s}`),size:"small",status:s,sx:{borderRadius:1}})}ft.propTypes={status:y.string.isRequired};function xt({source:s}){const{t:n}=N();return s?n(`team.passport.sourceMaps.${s}`):"-"}xt.propTypes={source:y.string.isRequired};function ht({user:s,size:n="default",tooltip:l=!1,inService:p=!1}){const{teamDid:c}=M(),u=ie.useMemo(()=>be(s.avatar,c,p),[s.avatar,c,p]),f=ie.useMemo(()=>e.jsx(Q,{did:s?.did,compact:!0,responsive:!1,sx:{whiteSpace:"nowrap"},size:12}),[s?.did]),a=Ft(()=>({...s,avatar:u}),[s,u]);return n==="small"?e.jsx(lt,{variant:"circular",logo:u,name:e.jsx(F,{sx:{maxWidth:320,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},className:"customer-link-name",children:s.fullName||s.email}),...n==="small"?{tooltip:l?e.jsx(Q,{did:s?.did}):!1,size:24}:{description:f,size:36}}):e.jsx(Lt,{user:a,avatarSize:n==="small"?24:36,cardType:Mt.Detailed,infoType:Bt.Minimal,sx:{padding:0,border:"none"},showDid:!0,didProps:{compact:!0,responsive:!1},showHoverCard:!1})}ht.propTypes={user:y.object.isRequired,size:y.string,tooltip:y.bool,inService:y.bool};const Cs=ie.memo(ht),Ss=s=>e.jsx(pt,{did:s}),Ie=(s,n)=>e.jsx(mt,{name:s,role:n}),Re=s=>e.jsx(ft,{status:s}),gt=(s,n)=>e.jsx(ut,{timestamp:s,locale:n}),de=s=>e.jsx(xt,{source:s}),De=(s,n=!1)=>e.jsx(Cs,{user:s,inService:n}),ws=s=>e.jsx(ct,{ua:s}),Oe="info";function yt({createPassportSvg:s,passport:n,onCancel:l,onSwitchPassport:p=()=>{}}){const{t:c}=N(),u=$t({tab:Oe}),f={info:{label:c("common.basicInfo"),value:Oe,component:()=>e.jsx(jt,{passport:n,createPassportSvg:s})},logs:{label:c("common.logs"),value:"logs",component:()=>e.jsx(Ct,{passport:n})},related:{label:c("team.passport.related"),value:"related",component:()=>e.jsx(St,{passport:n,onSwitchPassport:p})}},a=Object.values(f).map(({label:o,value:i})=>({label:o,value:i})).filter(o=>o.value==="related"?n.parentDid:!0),d=f[u.tab]||f.info,r=o=>{u.tab=o};return e.jsx(H,{title:c("common.passport"),onClose:l,open:!0,PaperProps:{style:{maxWidth:800,minHeight:"80vh"}},fullWidth:!0,children:e.jsxs(Ts,{children:[e.jsx(g,{className:"tabs",children:e.jsx(as,{tabs:a,current:u.tab,onChange:r,scrollButtons:"auto"})}),e.jsx(g,{className:"body",children:e.jsx(d.component,{})})]})})}yt.propTypes={createPassportSvg:y.func.isRequired,passport:y.object.isRequired,onCancel:y.func.isRequired,onSwitchPassport:y.func};const Ts=W(g)`
|
|
2
2
|
margin-top: -16px;
|
|
3
3
|
|
|
4
4
|
.tabs {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-
|
|
2
|
-
import{r as t,p as n,j as r,bI as i,d3 as a}from"./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-B7MRSlvg.js","./index-cRUZeoHS.js","./index-DGkT7afN.css","./decode-DPztD6kB.js","./index-CX3PrUL2.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{r as t,p as n,j as r,bI as i,d3 as a}from"./index-cRUZeoHS.js";const s=t.lazy(()=>i(()=>import("./index-B7MRSlvg.js").then(o=>o.i),__vite__mapDeps([0,1,2,3,4]),import.meta.url)),d=`{
|
|
3
3
|
getNodeInfo {
|
|
4
4
|
code
|
|
5
5
|
info {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aF as le,j as e,hE as ce,bd as ue,bn as Y,V as Z,gr as ee,f9 as te,aP as re,cv as u,H as E,hF as M,K as R,t as p,hG as V,aU as H,O as x,ay as de,v as N,s as ie,aV as ne,z as me,y as fe,aH as he,r as U,p as pe,bC as xe}from"./index-CEz8uxV0.js";import{T as ve}from"./html-title-DqkAZK1J.js";import{u as se,C as m}from"./index.esm-D2OxNJ9M.js";import{S as h,A as je,a as be,b as ge,c as ye}from"./collapse-NkPXU5Zt.js";import{u as ae}from"./blocklet-VzchUeTl.js";import{S as $}from"./Switch-vCG6Rhuh.js";const Re=le(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 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}));var K={exports:{}},O={exports:{}},z={exports:{}},J;function ke(){return J||(J=1,function(c,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=t;function t(d){return d==null}c.exports=s.default,c.exports.default=s.default}(z,z.exports)),z.exports}var G;function we(){return G||(G=1,function(c,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=S;var t=b(ce()),d=b(ke());function b(n){return n&&n.__esModule?n:{default:n}}var f=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,P=/^[-+]?[0-9]+$/;function S(n,i){(0,t.default)(n),i=i||{};var _=i.allow_leading_zeroes===!1?f:P,q=!i.hasOwnProperty("min")||(0,d.default)(i.min)||n>=i.min,l=!i.hasOwnProperty("max")||(0,d.default)(i.max)||n<=i.max,a=!i.hasOwnProperty("lt")||(0,d.default)(i.lt)||n<i.lt,C=!i.hasOwnProperty("gt")||(0,d.default)(i.gt)||n>i.gt;return _.test(n)&&q&&l&&a&&C}c.exports=s.default,c.exports.default=s.default}(O,O.exports)),O.exports}var Q;function Te(){return Q||(Q=1,function(c,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=b;var t=d(we());function d(f){return f&&f.__esModule?f:{default:f}}function b(f){return(0,t.default)(f,{allow_leading_zeroes:!1,min:0,max:65535})}c.exports=s.default,c.exports.default=s.default}(K,K.exports)),K.exports}var Ee=Te();const Se=ue(Ee),B={enabled:!1,secure:!1,from:"",host:"",port:"",user:"",password:"",companyName:"",companyLink:"",companyAddress:"",supportEmail:""};function Ce(){const{api:c}=Y(),{blocklet:s}=ae(),{t}=Z(),{confirmApi:d,confirmHolder:b}=ee(),f=s?.meta?.did,P=Object.assign({...B},s?.settings?.notification?.email||{}),{handleSubmit:S,control:n,formState:i,watch:_,reset:q}=se({defaultValues:te(P,Object.keys(B))}),l=re({testReceiver:"",testReceiverError:""}),a=_("enabled"),C=u(async(r,g,T=!0)=>{try{const{blocklet:y}=await c.configNotification({input:{did:f,notification:JSON.stringify({email:r})}}),oe=Object.assign({...B},y?.settings?.notification?.email||{});q(oe),T&&E.success(t("oauth.saveSuccess"))}catch(y){if(T)E.error(y.message||t("oauth.saveFailed"));else throw y}}),W=u(async(r,g,T)=>{try{i.isDirty&&await C(r,g,!1),await c.sendEmail({input:{did:f,receiver:T,email:JSON.stringify({body:"Your SMTP configuration is correct!",title:"Test email",type:"notification",attachments:[{type:"link",data:{url:"https://community.arcblock.io",title:"Community",image:"https://community.arcblock.io/.well-known/service/blocklet/logo-rect-dark",utm:{campaign:"test-campaign"}}}],utm:{content:"test-email-button"}})}}),E.success(t("notification.email.testSuccess"))}catch(y){E.error(y.message||t("notification.email.testfailed"))}}),A=u((r,g)=>{l.testReceiver=localStorage.getItem("test-receiver")||"",l.testReceiverError="",d.open({title:t("notification.email.testSendEmail"),content:()=>e.jsx(R,{sx:{width:"300px"},children:e.jsx(p,{sx:{mt:1},fullWidth:!0,name:"testReceiver",label:t("notification.email.inputTestReceiver"),value:l.testReceiver,onChange:T=>{l.testReceiver=T.target.value},error:!!l.testReceiverError,helperText:l.testReceiverError||" "})}),confirmButtonText:t("common.confirm"),cancelButtonText:t("common.cancel"),async onConfirm(T){const y=l.testReceiver?.trim();if(!y){l.testReceiverError=t("notification.email.receiverRequired");return}if(!M(y)){l.testReceiverError=t("notification.email.receiverInvalid");return}l.testReceiverError="",await W(r,g,y),T()}})}),F=u(r=>{const g=r?.trim();return g?M(g)?!0:t("notification.email.fromInvalid"):t("notification.email.fromRequired")}),L=u(r=>{const g=r?.trim();return g?V(g,{require_host:!1,protocols:[]})?!0:t("notification.email.hostInvalid"):t("notification.email.hostRequired")}),o=u(r=>r?Se(r)?!0:t("notification.email.portInvalid"):t("notification.email.portRequired")),k=u(r=>r?.trim()?!0:t("notification.email.userRequired")),v=u(r=>r?.trim()?!0:t("notification.email.passwordRequired")),w=u(r=>r?.trim()&&!V(r,{protocols:["http","https"],require_protocol:!0})?t("notification.email.linkInvalid"):!0),I=u(r=>r?.trim()&&!M(r)?t("notification.email.emailInvalid"):!0),j=u(()=>!0);return e.jsxs(R,{children:[e.jsxs(Pe,{component:"form",onSubmit:S(C),disabled:!0,sx:{".section-left":{width:"160px"}},children:[e.jsx(h,{title:t("notification.email.enable"),my:2.5,children:e.jsx(m,{name:"enabled",control:n,render:({field:r})=>e.jsx(H,{control:e.jsx($,{checked:r.value,...r})})})}),e.jsx(h,{title:t("notification.email.from"),children:e.jsx(m,{name:"from",control:n,rules:{validate:a?F:j},render:({field:r})=>e.jsx(x,{fullWidth:!0,children:e.jsx(p,{...r,size:"small",required:!0,label:t("notification.email.from"),error:!!i.errors[r.name],helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.host"),children:e.jsx(m,{name:"host",control:n,rules:{validate:a?L:j},render:({field:r})=>e.jsx(x,{fullWidth:!0,children:e.jsx(p,{...r,size:"small",required:!0,error:!!i.errors[r.name],label:t("notification.email.host"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.port"),children:e.jsx(m,{name:"port",control:n,rules:{validate:a?o:j},render:({field:r})=>e.jsx(x,{fullWidth:!0,children:e.jsx(p,{...r,size:"small",required:!0,type:"number",error:!!i.errors[r.name],label:t("notification.email.port"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.user"),children:e.jsx(m,{name:"user",control:n,rules:{validate:a?k:j},render:({field:r})=>e.jsx(x,{fullWidth:!0,children:e.jsx(p,{...r,size:"small",required:!0,error:!!i.errors[r.name],label:t("notification.email.user"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.password"),children:e.jsx(m,{name:"password",control:n,rules:{validate:a?v:j},render:({field:r})=>e.jsx(x,{fullWidth:!0,children:e.jsx(p,{...r,size:"small",required:!0,type:"password",error:!!i.errors[r.name],label:t("notification.email.password"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.secure"),children:e.jsx(m,{name:"secure",control:n,rules:{validate:j},render:({field:r})=>e.jsx(x,{fullWidth:!0,children:e.jsx(H,{control:e.jsx($,{checked:r.value,...r,disabled:!a})})})})}),e.jsxs(je,{children:[e.jsxs(be,{expandIcon:e.jsx(ge,{fontSize:"small"}),"aria-controls":"panel1-content",id:"panel1-header",children:[t("notification.email.signature"),e.jsx(de,{title:t("notification.email.signatureTooltip"),children:e.jsx(Re,{fontSize:"small",sx:{ml:1,cursor:"help"}})})]}),e.jsxs(ye,{children:[e.jsx(h,{title:t("notification.email.companyName"),children:e.jsx(m,{name:"companyName",control:n,rules:{validate:j},render:({field:r})=>e.jsx(x,{fullWidth:!0,children:e.jsx(p,{...r,size:"small",error:!!i.errors[r.name],label:t("notification.email.companyName"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.companyLink"),children:e.jsx(m,{name:"companyLink",control:n,rules:{validate:a?w:j},render:({field:r})=>e.jsx(x,{fullWidth:!0,children:e.jsx(p,{...r,size:"small",error:!!i.errors[r.name],label:t("notification.email.companyLink"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.companyAddress"),children:e.jsx(m,{name:"companyAddress",control:n,rules:{validate:j},render:({field:r})=>e.jsx(x,{fullWidth:!0,children:e.jsx(p,{...r,size:"small",error:!!i.errors[r.name],label:t("notification.email.companyAddress"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.supportEmail"),children:e.jsx(m,{name:"supportEmail",control:n,rules:{validate:a?I:j},render:({field:r})=>e.jsx(x,{fullWidth:!0,children:e.jsx(p,{...r,size:"small",type:"email",error:!!i.errors[r.name],label:t("notification.email.supportEmail"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})})]})]}),e.jsxs(R,{sx:{display:"flex",justifyContent:"flex-end",gap:2,mt:3},children:[e.jsx(N,{variant:"outlined",color:"warning",onClick:S(A),disabled:!a,children:t("oauth.runTest")}),e.jsx(N,{type:"submit",variant:"contained",disabled:!i.isDirty,children:t("oauth.save")})]})]}),b]})}const Pe=ie(ne)``,D={enabled:!1,endpoint:"",did:void 0,pushPath:void 0};function _e(){const{api:c}=Y(),{blocklet:s}=ae(),{t}=Z(),{confirmApi:d,confirmHolder:b}=ee(),f=s?.meta?.did,P=Object.assign({...D},s?.settings?.notification?.pushKit||{}),{handleSubmit:S,control:n,formState:i,watch:_,reset:q}=se({defaultValues:te(P,Object.keys(D))}),l=re({testReceiver:"",testReceiverError:""}),a=_("enabled"),C=u(async(o,k,v=!0)=>{try{const{blocklet:w}=await c.configNotification({input:{did:f,notification:JSON.stringify({pushKit:o})}}),I=Object.assign({...D},w?.settings?.notification?.pushKit||{});q(I),v&&E.success(t("oauth.saveSuccess"))}catch(w){if(v)E.error(w.message||t("oauth.saveFailed"));else throw w}}),W=u(async(o,k)=>{try{i.isDirty&&await C(o,k,!1);const v=(s?.configs||[]).find(j=>j.key==="BLOCKLET_APP_URL")?.value,w=me(fe(v,he.WELLKNOWN_SERVICE_PATH_PREFIX,"/blocklet/logo"),{v:s?.meta?.version,t:new Date(s?.updatedAt||0).getTime()}),I={type:"passthrough",passthroughType:"messageStatus",data:{message:{title:"Test push-kit notification",body:"This is message from push-kit config test",sender:{did:s?.appDid,fullName:s?.meta?.title,avatar:w}}}};await c.sendPush({input:{did:f,receiver:l.testReceiver,notification:JSON.stringify(I)}}),E.success(t("notification.pushKit.testSuccess"))}catch(v){E.error(v.message||t("notification.pushKit.testfailed"))}}),A=u((o,k)=>{l.testReceiverError="",d.open({title:t("notification.pushKit.testSend"),content:()=>e.jsx(R,{sx:{width:"450px",maxWidth:"100%"},children:e.jsx(p,{sx:{mt:1},fullWidth:!0,name:"testReceiver",label:t("notification.pushKit.inputTestReceiver"),value:l.testReceiver,onChange:v=>{l.testReceiver=v.target.value},error:!!l.testReceiverError,helperText:l.testReceiverError||" "})}),confirmButtonText:t("common.confirm"),cancelButtonText:t("common.cancel"),async onConfirm(v){if(!l.testReceiver?.trim()){l.testReceiverError=t("notification.pushKit.receiverRequired");return}l.testReceiverError="",await W(o,k),v()}})}),F=u(o=>{const k=o?.trim();return k?V(k)?!0:t("notification.pushKit.endpointInvalid"):t("notification.pushKit.endpointRequired")}),L=u(()=>!0);return e.jsxs(R,{children:[e.jsxs(qe,{component:"form",onSubmit:S(C),disabled:!0,sx:{".section-left":{width:"160px"}},children:[e.jsx(h,{title:t("notification.pushKit.enable"),my:2.5,children:e.jsx(m,{name:"enabled",control:n,render:({field:o})=>e.jsx(H,{control:e.jsx($,{checked:o.value,...o})})})}),e.jsx(h,{title:t("notification.pushKit.endpoint"),children:e.jsx(m,{name:"endpoint",control:n,rules:{validate:a?F:L},render:({field:o})=>e.jsx(x,{fullWidth:!0,children:e.jsx(p,{...o,size:"small",required:!0,label:t("notification.pushKit.endpoint"),error:!!i.errors[o.name],helperText:i.errors[o.name]?.message||" ",disabled:!a})})})}),e.jsxs(h,{title:t("notification.pushKit.customOptions"),children:[e.jsx(m,{name:"did",control:n,render:({field:o})=>e.jsx(x,{fullWidth:!0,children:e.jsx(p,{...o,size:"small",label:t("notification.pushKit.did"),error:!!i.errors[o.name],helperText:i.errors[o.name]?.message||" ",disabled:!a})})}),e.jsx(m,{name:"pushPath",control:n,render:({field:o})=>e.jsx(x,{fullWidth:!0,children:e.jsx(p,{...o,size:"small",label:t("notification.pushKit.pushPath"),error:!!i.errors[o.name],helperText:i.errors[o.name]?.message||" ",disabled:!a})})})]}),e.jsxs(R,{sx:{display:"flex",justifyContent:"flex-end",gap:2,mt:3},children:[e.jsx(N,{variant:"outlined",color:"warning",onClick:S(A),disabled:!a,children:t("oauth.runTest")}),e.jsx(N,{type:"submit",variant:"contained",disabled:!i.isDirty,children:t("oauth.save")})]})]}),b]})}const qe=ie(ne)``,X=[{label:e.jsx(R,{sx:{textAlign:"center",width:"100%"},children:"Email"}),value:"email"},{label:e.jsx(R,{sx:{textAlign:"center",width:"100%"},children:"Push Kit"}),value:"pushKit"}];function Ae(){const[c,s]=U.useState(X[0].value),{locale:t}=U.useContext(pe),d=xe(()=>({email:e.jsx(Ce,{}),pushKit:e.jsx(_e,{})}),[t]),b=U.useMemo(()=>({padding:"10px 0"}),[]);return e.jsxs(R,{children:[e.jsx(ve,{tabs:X,current:c,onChange:s}),e.jsx(R,{style:b,children:d[c]})]})}export{Ae as B};
|
|
1
|
+
import{aF as le,j as e,hw as ce,bd as ue,bn as Z,V as G,gj as ee,f9 as te,aP as re,cv as u,H as S,hx as M,K as R,t as x,hy as V,aU as H,O as p,ay as de,v as N,s as ie,aV as ne,z as me,y as fe,aH as he,r as U,p as xe,bC as pe}from"./index-cRUZeoHS.js";import{T as ve}from"./html-title-h5APx8NK.js";import{u as se,C as m}from"./index.esm-CaHvWLjN.js";import{S as h,A as je,a as be,b as ge,c as ye}from"./collapse-1hLxt0wI.js";import{u as ae}from"./blocklet-De_7MRFc.js";import{S as $}from"./Switch-D-4fj-ok.js";const Re=le(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 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}));var K={exports:{}},O={exports:{}},z={exports:{}},J;function ke(){return J||(J=1,function(c,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=t;function t(d){return d==null}c.exports=s.default,c.exports.default=s.default}(z,z.exports)),z.exports}var Q;function we(){return Q||(Q=1,function(c,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=E;var t=b(ce()),d=b(ke());function b(n){return n&&n.__esModule?n:{default:n}}var f=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,P=/^[-+]?[0-9]+$/;function E(n,i){(0,t.default)(n),i=i||{};var _=i.allow_leading_zeroes===!1?f:P,q=!i.hasOwnProperty("min")||(0,d.default)(i.min)||n>=i.min,l=!i.hasOwnProperty("max")||(0,d.default)(i.max)||n<=i.max,a=!i.hasOwnProperty("lt")||(0,d.default)(i.lt)||n<i.lt,C=!i.hasOwnProperty("gt")||(0,d.default)(i.gt)||n>i.gt;return _.test(n)&&q&&l&&a&&C}c.exports=s.default,c.exports.default=s.default}(O,O.exports)),O.exports}var X;function Te(){return X||(X=1,function(c,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=b;var t=d(we());function d(f){return f&&f.__esModule?f:{default:f}}function b(f){return(0,t.default)(f,{allow_leading_zeroes:!1,min:0,max:65535})}c.exports=s.default,c.exports.default=s.default}(K,K.exports)),K.exports}var Se=Te();const Ee=ue(Se),B={enabled:!1,secure:!1,from:"",host:"",port:"",user:"",password:"",companyName:"",companyLink:"",companyAddress:"",supportEmail:""};function Ce(){const{api:c}=Z(),{blocklet:s}=ae(),{t}=G(),{confirmApi:d,confirmHolder:b}=ee(),f=s?.meta?.did,P=Object.assign({...B},s?.settings?.notification?.email||{}),{handleSubmit:E,control:n,formState:i,watch:_,reset:q}=se({defaultValues:te(P,Object.keys(B))}),l=re({testReceiver:"",testReceiverError:""}),a=_("enabled"),C=u(async(r,g,T=!0)=>{try{const{blocklet:y}=await c.configNotification({input:{did:f,notification:JSON.stringify({email:r})}}),oe=Object.assign({...B},y?.settings?.notification?.email||{});q(oe),T&&S.success(t("oauth.saveSuccess"))}catch(y){if(T)S.error(y.message||t("oauth.saveFailed"));else throw y}}),W=u(async(r,g,T)=>{try{i.isDirty&&await C(r,g,!1),await c.sendEmail({input:{did:f,receiver:T,email:JSON.stringify({body:"Your SMTP configuration is correct!",title:"Test email",type:"notification",attachments:[{type:"link",data:{url:"https://community.arcblock.io",title:"Community",image:"https://community.arcblock.io/.well-known/service/blocklet/logo-rect-dark",utm:{campaign:"test-campaign"}}}],utm:{content:"test-email-button"}})}}),S.success(t("notification.email.testSuccess"))}catch(y){S.error(y.message||t("notification.email.testfailed"))}}),A=u((r,g)=>{l.testReceiver=localStorage.getItem("test-receiver")||"",l.testReceiverError="",d.open({title:t("notification.email.testSendEmail"),content:()=>e.jsx(R,{sx:{width:"300px"},children:e.jsx(x,{sx:{mt:1},fullWidth:!0,name:"testReceiver",label:t("notification.email.inputTestReceiver"),value:l.testReceiver,onChange:T=>{l.testReceiver=T.target.value},error:!!l.testReceiverError,helperText:l.testReceiverError||" "})}),confirmButtonText:t("common.confirm"),cancelButtonText:t("common.cancel"),async onConfirm(T){const y=l.testReceiver?.trim();if(!y){l.testReceiverError=t("notification.email.receiverRequired");return}if(!M(y)){l.testReceiverError=t("notification.email.receiverInvalid");return}l.testReceiverError="",await W(r,g,y),T()}})}),F=u(r=>{const g=r?.trim();return g?M(g)?!0:t("notification.email.fromInvalid"):t("notification.email.fromRequired")}),L=u(r=>{const g=r?.trim();return g?V(g,{require_host:!1,protocols:[]})?!0:t("notification.email.hostInvalid"):t("notification.email.hostRequired")}),o=u(r=>r?Ee(r)?!0:t("notification.email.portInvalid"):t("notification.email.portRequired")),k=u(r=>r?.trim()?!0:t("notification.email.userRequired")),v=u(r=>r?.trim()?!0:t("notification.email.passwordRequired")),w=u(r=>r?.trim()&&!V(r,{protocols:["http","https"],require_protocol:!0})?t("notification.email.linkInvalid"):!0),I=u(r=>r?.trim()&&!M(r)?t("notification.email.emailInvalid"):!0),j=u(()=>!0);return e.jsxs(R,{children:[e.jsxs(Pe,{component:"form",onSubmit:E(C),disabled:!0,sx:{".section-left":{width:"160px"}},children:[e.jsx(h,{title:t("notification.email.enable"),my:2.5,children:e.jsx(m,{name:"enabled",control:n,render:({field:r})=>e.jsx(H,{control:e.jsx($,{checked:r.value,...r})})})}),e.jsx(h,{title:t("notification.email.from"),children:e.jsx(m,{name:"from",control:n,rules:{validate:a?F:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,label:t("notification.email.from"),error:!!i.errors[r.name],helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.host"),children:e.jsx(m,{name:"host",control:n,rules:{validate:a?L:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,error:!!i.errors[r.name],label:t("notification.email.host"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.port"),children:e.jsx(m,{name:"port",control:n,rules:{validate:a?o:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,type:"number",error:!!i.errors[r.name],label:t("notification.email.port"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.user"),children:e.jsx(m,{name:"user",control:n,rules:{validate:a?k:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,error:!!i.errors[r.name],label:t("notification.email.user"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.password"),children:e.jsx(m,{name:"password",control:n,rules:{validate:a?v:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,type:"password",error:!!i.errors[r.name],label:t("notification.email.password"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.secure"),children:e.jsx(m,{name:"secure",control:n,rules:{validate:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(H,{control:e.jsx($,{checked:r.value,...r,disabled:!a})})})})}),e.jsxs(je,{children:[e.jsxs(be,{expandIcon:e.jsx(ge,{fontSize:"small"}),"aria-controls":"panel1-content",id:"panel1-header",children:[t("notification.email.signature"),e.jsx(de,{title:t("notification.email.signatureTooltip"),children:e.jsx(Re,{fontSize:"small",sx:{ml:1,cursor:"help"}})})]}),e.jsxs(ye,{children:[e.jsx(h,{title:t("notification.email.companyName"),children:e.jsx(m,{name:"companyName",control:n,rules:{validate:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",error:!!i.errors[r.name],label:t("notification.email.companyName"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.companyLink"),children:e.jsx(m,{name:"companyLink",control:n,rules:{validate:a?w:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",error:!!i.errors[r.name],label:t("notification.email.companyLink"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.companyAddress"),children:e.jsx(m,{name:"companyAddress",control:n,rules:{validate:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",error:!!i.errors[r.name],label:t("notification.email.companyAddress"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.supportEmail"),children:e.jsx(m,{name:"supportEmail",control:n,rules:{validate:a?I:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",type:"email",error:!!i.errors[r.name],label:t("notification.email.supportEmail"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})})]})]}),e.jsxs(R,{sx:{display:"flex",justifyContent:"flex-end",gap:2,mt:3},children:[e.jsx(N,{variant:"outlined",color:"warning",onClick:E(A),disabled:!a,children:t("oauth.runTest")}),e.jsx(N,{type:"submit",variant:"contained",disabled:!i.isDirty,children:t("oauth.save")})]})]}),b]})}const Pe=ie(ne)``,D={enabled:!1,endpoint:"",did:void 0,pushPath:void 0};function _e(){const{api:c}=Z(),{blocklet:s}=ae(),{t}=G(),{confirmApi:d,confirmHolder:b}=ee(),f=s?.meta?.did,P=Object.assign({...D},s?.settings?.notification?.pushKit||{}),{handleSubmit:E,control:n,formState:i,watch:_,reset:q}=se({defaultValues:te(P,Object.keys(D))}),l=re({testReceiver:"",testReceiverError:""}),a=_("enabled"),C=u(async(o,k,v=!0)=>{try{const{blocklet:w}=await c.configNotification({input:{did:f,notification:JSON.stringify({pushKit:o})}}),I=Object.assign({...D},w?.settings?.notification?.pushKit||{});q(I),v&&S.success(t("oauth.saveSuccess"))}catch(w){if(v)S.error(w.message||t("oauth.saveFailed"));else throw w}}),W=u(async(o,k)=>{try{i.isDirty&&await C(o,k,!1);const v=(s?.configs||[]).find(j=>j.key==="BLOCKLET_APP_URL")?.value,w=me(fe(v,he.WELLKNOWN_SERVICE_PATH_PREFIX,"/blocklet/logo"),{v:s?.meta?.version,t:new Date(s?.updatedAt||0).getTime()}),I={type:"passthrough",passthroughType:"messageStatus",data:{message:{title:"Test push-kit notification",body:"This is message from push-kit config test",sender:{did:s?.appDid,fullName:s?.meta?.title,avatar:w}}}};await c.sendPush({input:{did:f,receiver:l.testReceiver,notification:JSON.stringify(I)}}),S.success(t("notification.pushKit.testSuccess"))}catch(v){S.error(v.message||t("notification.pushKit.testfailed"))}}),A=u((o,k)=>{l.testReceiverError="",d.open({title:t("notification.pushKit.testSend"),content:()=>e.jsx(R,{sx:{width:"450px",maxWidth:"100%"},children:e.jsx(x,{sx:{mt:1},fullWidth:!0,name:"testReceiver",label:t("notification.pushKit.inputTestReceiver"),value:l.testReceiver,onChange:v=>{l.testReceiver=v.target.value},error:!!l.testReceiverError,helperText:l.testReceiverError||" "})}),confirmButtonText:t("common.confirm"),cancelButtonText:t("common.cancel"),async onConfirm(v){if(!l.testReceiver?.trim()){l.testReceiverError=t("notification.pushKit.receiverRequired");return}l.testReceiverError="",await W(o,k),v()}})}),F=u(o=>{const k=o?.trim();return k?V(k)?!0:t("notification.pushKit.endpointInvalid"):t("notification.pushKit.endpointRequired")}),L=u(()=>!0);return e.jsxs(R,{children:[e.jsxs(qe,{component:"form",onSubmit:E(C),disabled:!0,sx:{".section-left":{width:"160px"}},children:[e.jsx(h,{title:t("notification.pushKit.enable"),my:2.5,children:e.jsx(m,{name:"enabled",control:n,render:({field:o})=>e.jsx(H,{control:e.jsx($,{checked:o.value,...o})})})}),e.jsx(h,{title:t("notification.pushKit.endpoint"),children:e.jsx(m,{name:"endpoint",control:n,rules:{validate:a?F:L},render:({field:o})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...o,size:"small",required:!0,label:t("notification.pushKit.endpoint"),error:!!i.errors[o.name],helperText:i.errors[o.name]?.message||" ",disabled:!a})})})}),e.jsxs(h,{title:t("notification.pushKit.customOptions"),children:[e.jsx(m,{name:"did",control:n,render:({field:o})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...o,size:"small",label:t("notification.pushKit.did"),error:!!i.errors[o.name],helperText:i.errors[o.name]?.message||" ",disabled:!a})})}),e.jsx(m,{name:"pushPath",control:n,render:({field:o})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...o,size:"small",label:t("notification.pushKit.pushPath"),error:!!i.errors[o.name],helperText:i.errors[o.name]?.message||" ",disabled:!a})})})]}),e.jsxs(R,{sx:{display:"flex",justifyContent:"flex-end",gap:2,mt:3},children:[e.jsx(N,{variant:"outlined",color:"warning",onClick:E(A),disabled:!a,children:t("oauth.runTest")}),e.jsx(N,{type:"submit",variant:"contained",disabled:!i.isDirty,children:t("oauth.save")})]})]}),b]})}const qe=ie(ne)``,Y=[{label:e.jsx(R,{sx:{textAlign:"center",width:"100%"},children:"Email"}),value:"email"},{label:e.jsx(R,{sx:{textAlign:"center",width:"100%"},children:"Push Kit"}),value:"pushKit"}];function Ae(){const[c,s]=U.useState(Y[0].value),{locale:t}=U.useContext(xe),d=pe(()=>({email:e.jsx(Ce,{}),pushKit:e.jsx(_e,{})}),[t]),b=U.useMemo(()=>({padding:"10px 0"}),[]);return e.jsxs(R,{children:[e.jsx(ve,{tabs:Y,current:c,onChange:s}),e.jsx(R,{style:b,children:d[c]})]})}export{Ae as B};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aF as ks,j as t,aH as on,bn as Oe,bo as Ds,V as ye,N as Fe,r as Y,O as Bn,P as $n,S as Pn,Q as Un,K as $,bp as Nt,o as j,n as Bs,v as vn,C as $s,ac as yt,aV as Fn,t as Mn,bd as Ps,s as ve,Z as Us,bq as Be,br as Fs,bs as js,p as Ks,y as ze,$ as xt,aU as Hs,R as zs,at as Gs,H as Ws,m as Zs,bt as Sn,W as Ys,bu as At,bv as St,bw as Tt,bx as qs,i as Xs,T as Ue,by as Vs,ay as dt,a3 as gt,aR as pt,bk as Js,bz as Qs,U as ea,X as na,A as ta,u as sa,bm as aa,d as ia,bA as oa}from"./index-CEz8uxV0.js";import{u as ra,T as ca}from"./html-title-DqkAZK1J.js";import la from"./audit-logs-CkkVykec.js";import{T as Rt,M as ua}from"./index-CAWu-mmR.js";import{r as Ct,P as da}from"./index-HULeNGPa.js";import{u as Ge,T as ga}from"./team-hXrV5_3J.js";import{g as pa,H as ba}from"./index-C7-meaY1.js";import{D as fa}from"./url-evaluation-Dez2t2Dn.js";import{E as ma}from"./Edit-D8ZbFXVI.js";import{y as Ea}from"./index-Be_P7bFl.js";import{A as ha}from"./Add-mLqDJ8LI.js";import{C as Ln}from"./click-to-copy-DIP6-GlN.js";import{f as _a}from"./index-BojVbZw0.js";import{D as Na}from"./delete-confirm-DrHD02tU.js";import{P as ya}from"./permission-DT5OpofS.js";import{u as xa}from"./blocklet-VzchUeTl.js";import{u as jn}from"./use-mobile-DfTH0u3I.js";import{A as Aa}from"./actions-DtgzhVPu.js";import{u as Sa}from"./useAsyncRetry-Dsb2N_WV.js";import"./TableSearch-B9RjpEHI.js";import"./Search-D6oiU39H.js";import"./Clear-CZYOhyRd.js";import"./useLocalStorage-Pga2d3Q5.js";import"./index-xGtC2yXK.js";import"./decode-DPztD6kB.js";import"./UnfoldMore-qrx_0HRu.js";import"./shorten-label-ekW_2gPe.js";import"./ViewList-C89zW3h-.js";import"./index-CqI5FNRR.js";import"./ButtonGroup-CMBmZNOl.js";import"./getValidReactChildren-CZQOwkpM.js";import"./index.esm-D2OxNJ9M.js";import"./Google-DfP9X7Qz.js";import"./cloneDeep-BJ1sWYVb.js";import"./Autocomplete-ClklZJ4u.js";import"./ListSubheader-8DfWQIce.js";import"./AdapterDayjs-DFBxeUaR.js";import"./useThemeProps-BjIObq-D.js";import"./CSSTransition-BUs0PeOT.js";import"./visuallyHidden-Dan1xhjv.js";import"./index-eMkLqV2U.js";import"./Verified-DdhxsAzr.js";import"./DeleteOutline-B-dACVWx.js";import"./ErrorOutline-BJGb9kj2.js";import"./index-C-BqHBMK.js";import"./emotion-cache.browser.esm-Cv8nFFJn.js";import"./sdk-Ba4Oxcv8.js";import"./index-BvbFbG0L.js";import"./ua-parser-DP5omx3I.js";import"./edit.svg-Ds5gcSU5.js";import"./list-header-gr5aFkIY.js";import"./chain-CFWKzhms.js";import"./ToggleButtonGroup-DXi7DrUh.js";import"./lock.svg-HxrlXX6z.js";import"./FilterList-CuIuGg48.js";import"./index-xEgN1uLu.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./depsEqual-DmupZl6g.js";import"./MoreVert-DE8AiFjI.js";import"./useAsync-DtphY6Zp.js";const Ta=ks(t.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"}));function Kn({value:e}){const{t:s,locale:a}=ye(),i=new Date;return new Date(e)<i?t.jsxs("span",{style:{color:"red"},children:[t.jsx(Fe,{value:e,locale:a}),`${s("setting.accessKey.expired",{time:""})}`]}):t.jsx(Fe,{mode:"daysLeft",value:e,locale:a,type:"all"})}Kn.propTypes={value:j.string.isRequired};function Hn({value:e,onChange:s,...a}){const{t:i}=ye(),g=Y.useMemo(()=>[{value:"signature",title:i("setting.accessKey.signature"),description:i("setting.accessKey.signatureDesc")},{value:"simple",title:i("setting.accessKey.simple"),description:i("setting.accessKey.simpleDesc")}],[i]);return t.jsxs(Bn,{style:{width:"100%"},variant:"outlined",...a,children:[t.jsx($n,{children:i("setting.accessKey.authType")}),t.jsx(Pn,{value:e,onChange:s,fullWidth:!0,label:i("setting.accessKey.authType"),IconComponent:E=>t.jsx(Nt,{...E,width:20,height:20}),children:g.map(E=>t.jsx(Un,{value:E.value,children:t.jsxs($,{children:[t.jsx("span",{children:E.title}),t.jsx($,{sx:{maxWidth:510,fontSize:12,color:"#999",whiteSpace:"normal"},children:E.description})]})},E.value))})]})}Hn.propTypes={value:j.string.isRequired,onChange:j.func.isRequired};const zn=()=>{const e=on.RBAC_CONFIG.roles.filter(g=>g.passport),{inService:s}=Oe(),{roles:a}=Ge(),i=[...e,...s?a:[]];return Ds(i,"name").filter(g=>g.name!==on.ROLES.OWNER)};function wt(){const{session:e}=Bs(),s=zn();return Y.useMemo(()=>{if(!e?.user?.role)return[];if(["owner","admin"].includes(e.user.role))return s;const i=s.filter(E=>E.name==="guest");return[...s.filter(E=>E.name!=="guest").filter(E=>e.user.passports.find(_=>_.role===E.name)),...i]},[s,e?.user?.passports,e?.user?.role])}function It({onCreate:e=()=>{},remark:s=""}){const{api:a}=Oe(),{teamDid:i}=Ge(),{t:g}=ye(),[E,_]=Y.useState(!1),[l,h]=Y.useState(null),u=wt(),y=()=>{_(!1),h(null)},T=async f=>{const{remark:v,passport:A,authType:b}=f;_(!0);const C=await a.createAccessKey({input:{teamDid:i,remark:v.trim(),passport:A,expireAt:f.expireAt?new Date(f.expireAt).getTime():null,authType:b}}),{data:B}=C;e(B),h(null),_(!1)},c={title:`${g("common.create")} ${g("accessKey")}`,description:(f,v,A)=>t.jsxs(Fn,{sx:{gap:3},children:[t.jsx(Mn,{label:g("setting.accessKey.tip"),autoComplete:"off",variant:"outlined",name:"remark",fullWidth:!0,autoFocus:!0,margin:"dense",value:f.remark,onChange:b=>{v({...f,remark:b.target.value,__disableConfirm:!f.passport||!b.target.value.trim()}),b.target.value.trim()?A(""):A(g("setting.accessKey.remarkInvalid"))},slotProps:{htmlInput:{"data-cy":"remark-input"}}}),t.jsxs(Bn,{style:{width:"100%"},variant:"outlined",children:[t.jsx($n,{sx:{width:"calc(100% - 46px)"},children:g("setting.accessKey.passport")}),t.jsx(Pn,{"data-cy":"create-access-key-select-passport",value:f.passport,onChange:b=>{const C=b.target.value;A(null),v({...f,passport:C,__disableConfirm:!f.remark||!C})},fullWidth:!0,label:g("setting.accessKey.passport"),disabled:E,IconComponent:b=>t.jsx(Nt,{...b,width:20,height:20}),children:u.map(b=>t.jsx(Un,{value:b.name,"data-cy":`create-access-key-passport-option-${b.name}`,children:t.jsxs($,{children:[t.jsx("span",{children:b.title||b.name}),t.jsx($,{sx:{maxWidth:440,fontSize:12,color:"#999",whiteSpace:"normal",textAlign:"justify"},children:b.description})]})},b.name))})]}),t.jsx(Hn,{value:f.authType,onChange:b=>{v({...f,authType:b.target.value})}}),t.jsx(Rt,{placeholder:g("setting.accessKey.expireTime"),value:f.expireAt,onChange:b=>{v({...f,expireAt:b,__disableConfirm:!f.passport||!f.remark||!b})}})]}),confirm:g("common.confirm"),cancel:g("common.cancel"),color:"primary",params:{remark:s,authType:"signature",__disableConfirm:!s.trim()},onConfirm:T,onCancel:y};return t.jsxs(t.Fragment,{children:[t.jsxs(vn,{sx:{color:"common.white"},edge:"end",variant:"contained",color:"primary","data-cy":"add-access-key-btn",onClick:()=>h(c),className:"rule-action",children:[E?t.jsx($s,{size:16}):t.jsx(ha,{style:{fontSize:16}}),g("common.create")]}),l&&t.jsx(yt,{title:l.title,description:l.description,confirm:l.confirm,color:l.color,cancel:l.cancel,params:l.params,onConfirm:l.onConfirm,onCancel:l.onCancel})]})}It.propTypes={remark:j.string,onCreate:j.func};var Tn,bt;function Ra(){if(bt)return Tn;bt=1;function e(n){return n instanceof Map?n.clear=n.delete=n.set=function(){throw new Error("map is read-only")}:n instanceof Set&&(n.add=n.clear=n.delete=function(){throw new Error("set is read-only")}),Object.freeze(n),Object.getOwnPropertyNames(n).forEach(o=>{const d=n[o],w=typeof d;(w==="object"||w==="function")&&!Object.isFrozen(d)&&e(d)}),n}class s{constructor(o){o.data===void 0&&(o.data={}),this.data=o.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function a(n){return n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function i(n,...o){const d=Object.create(null);for(const w in n)d[w]=n[w];return o.forEach(function(w){for(const J in w)d[J]=w[J]}),d}const g="</span>",E=n=>!!n.scope,_=(n,{prefix:o})=>{if(n.startsWith("language:"))return n.replace("language:","language-");if(n.includes(".")){const d=n.split(".");return[`${o}${d.shift()}`,...d.map((w,J)=>`${w}${"_".repeat(J+1)}`)].join(" ")}return`${o}${n}`};class l{constructor(o,d){this.buffer="",this.classPrefix=d.classPrefix,o.walk(this)}addText(o){this.buffer+=a(o)}openNode(o){if(!E(o))return;const d=_(o.scope,{prefix:this.classPrefix});this.span(d)}closeNode(o){E(o)&&(this.buffer+=g)}value(){return this.buffer}span(o){this.buffer+=`<span class="${o}">`}}const h=(n={})=>{const o={children:[]};return Object.assign(o,n),o};class u{constructor(){this.rootNode=h(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(o){this.top.children.push(o)}openNode(o){const d=h({scope:o});this.add(d),this.stack.push(d)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(o){return this.constructor._walk(o,this.rootNode)}static _walk(o,d){return typeof d=="string"?o.addText(d):d.children&&(o.openNode(d),d.children.forEach(w=>this._walk(o,w)),o.closeNode(d)),o}static _collapse(o){typeof o!="string"&&o.children&&(o.children.every(d=>typeof d=="string")?o.children=[o.children.join("")]:o.children.forEach(d=>{u._collapse(d)}))}}class y extends u{constructor(o){super(),this.options=o}addText(o){o!==""&&this.add(o)}startScope(o){this.openNode(o)}endScope(){this.closeNode()}__addSublanguage(o,d){const w=o.root;d&&(w.scope=`language:${d}`),this.add(w)}toHTML(){return new l(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function T(n){return n?typeof n=="string"?n:n.source:null}function c(n){return A("(?=",n,")")}function f(n){return A("(?:",n,")*")}function v(n){return A("(?:",n,")?")}function A(...n){return n.map(d=>T(d)).join("")}function b(n){const o=n[n.length-1];return typeof o=="object"&&o.constructor===Object?(n.splice(n.length-1,1),o):{}}function C(...n){return"("+(b(n).capture?"":"?:")+n.map(w=>T(w)).join("|")+")"}function B(n){return new RegExp(n.toString()+"|").exec("").length-1}function M(n,o){const d=n&&n.exec(o);return d&&d.index===0}const P=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function k(n,{joinWith:o}){let d=0;return n.map(w=>{d+=1;const J=d;let Q=T(w),N="";for(;Q.length>0;){const m=P.exec(Q);if(!m){N+=Q;break}N+=Q.substring(0,m.index),Q=Q.substring(m.index+m[0].length),m[0][0]==="\\"&&m[1]?N+="\\"+String(Number(m[1])+J):(N+=m[0],m[0]==="("&&d++)}return N}).map(w=>`(${w})`).join(o)}const X=/\b\B/,ge="[a-zA-Z]\\w*",ae="[a-zA-Z_]\\w*",ne="\\b\\d+(\\.\\d+)?",be="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Ee="\\b(0b[01]+)",fe="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",I=(n={})=>{const o=/^#![ ]*\//;return n.binary&&(n.begin=A(o,/.*\b/,n.binary,/\b.*/)),i({scope:"meta",begin:o,end:/$/,relevance:0,"on:begin":(d,w)=>{d.index!==0&&w.ignoreMatch()}},n)},G={begin:"\\\\[\\s\\S]",relevance:0},V={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[G]},q={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[G]},xe={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/},U=function(n,o,d={}){const w=i({scope:"comment",begin:n,end:o,contains:[]},d);w.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 J=C("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 w.contains.push({begin:A(/[ ]+/,"(",J,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),w},ie=U("//","$"),ue=U("/\\*","\\*/"),ce=U("#","$"),oe={scope:"number",begin:ne,relevance:0},Ae={scope:"number",begin:be,relevance:0},ln={scope:"number",begin:Ee,relevance:0},We={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[G,{begin:/\[/,end:/\]/,relevance:0,contains:[G]}]},je={scope:"title",begin:ge,relevance:0},un={scope:"title",begin:ae,relevance:0},Ze={begin:"\\.\\s*"+ae,relevance:0};var Me=Object.freeze({__proto__:null,APOS_STRING_MODE:V,BACKSLASH_ESCAPE:G,BINARY_NUMBER_MODE:ln,BINARY_NUMBER_RE:Ee,COMMENT:U,C_BLOCK_COMMENT_MODE:ue,C_LINE_COMMENT_MODE:ie,C_NUMBER_MODE:Ae,C_NUMBER_RE:be,END_SAME_AS_BEGIN:function(n){return Object.assign(n,{"on:begin":(o,d)=>{d.data._beginMatch=o[1]},"on:end":(o,d)=>{d.data._beginMatch!==o[1]&&d.ignoreMatch()}})},HASH_COMMENT_MODE:ce,IDENT_RE:ge,MATCH_NOTHING_RE:X,METHOD_GUARD:Ze,NUMBER_MODE:oe,NUMBER_RE:ne,PHRASAL_WORDS_MODE:xe,QUOTE_STRING_MODE:q,REGEXP_MODE:We,RE_STARTERS_RE:fe,SHEBANG:I,TITLE_MODE:je,UNDERSCORE_IDENT_RE:ae,UNDERSCORE_TITLE_MODE:un});function dn(n,o){n.input[n.index-1]==="."&&o.ignoreMatch()}function gn(n,o){n.className!==void 0&&(n.scope=n.className,delete n.className)}function pn(n,o){o&&n.beginKeywords&&(n.begin="\\b("+n.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",n.__beforeBegin=dn,n.keywords=n.keywords||n.beginKeywords,delete n.beginKeywords,n.relevance===void 0&&(n.relevance=0))}function bn(n,o){Array.isArray(n.illegal)&&(n.illegal=C(...n.illegal))}function fn(n,o){if(n.match){if(n.begin||n.end)throw new Error("begin & end are not supported with match");n.begin=n.match,delete n.match}}function K(n,o){n.relevance===void 0&&(n.relevance=1)}const Le=(n,o)=>{if(!n.beforeMatch)return;if(n.starts)throw new Error("beforeMatch cannot be used with starts");const d=Object.assign({},n);Object.keys(n).forEach(w=>{delete n[w]}),n.keywords=d.keywords,n.begin=A(d.beforeMatch,c(d.begin)),n.starts={relevance:0,contains:[Object.assign(d,{endsParent:!0})]},n.relevance=0,delete d.beforeMatch},Ce=["of","and","for","in","not","or","if","then","parent","list","value"],mn="keyword";function qn(n,o,d=mn){const w=Object.create(null);return typeof n=="string"?J(d,n.split(" ")):Array.isArray(n)?J(d,n):Object.keys(n).forEach(function(Q){Object.assign(w,qn(n[Q],o,Q))}),w;function J(Q,N){o&&(N=N.map(m=>m.toLowerCase())),N.forEach(function(m){const R=m.split("|");w[R[0]]=[Q,is(R[0],R[1])]})}}function is(n,o){return o?Number(o):os(n)?0:1}function os(n){return Ce.includes(n.toLowerCase())}const Xn={},we=n=>{console.error(n)},Vn=(n,...o)=>{console.log(`WARN: ${n}`,...o)},ke=(n,o)=>{Xn[`${n}/${o}`]||(console.log(`Deprecated as of ${n}. ${o}`),Xn[`${n}/${o}`]=!0)},Ye=new Error;function Jn(n,o,{key:d}){let w=0;const J=n[d],Q={},N={};for(let m=1;m<=o.length;m++)N[m+w]=J[m],Q[m+w]=!0,w+=B(o[m-1]);n[d]=N,n[d]._emit=Q,n[d]._multi=!0}function rs(n){if(Array.isArray(n.begin)){if(n.skip||n.excludeBegin||n.returnBegin)throw we("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Ye;if(typeof n.beginScope!="object"||n.beginScope===null)throw we("beginScope must be object"),Ye;Jn(n,n.begin,{key:"beginScope"}),n.begin=k(n.begin,{joinWith:""})}}function cs(n){if(Array.isArray(n.end)){if(n.skip||n.excludeEnd||n.returnEnd)throw we("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Ye;if(typeof n.endScope!="object"||n.endScope===null)throw we("endScope must be object"),Ye;Jn(n,n.end,{key:"endScope"}),n.end=k(n.end,{joinWith:""})}}function ls(n){n.scope&&typeof n.scope=="object"&&n.scope!==null&&(n.beginScope=n.scope,delete n.scope)}function us(n){ls(n),typeof n.beginScope=="string"&&(n.beginScope={_wrap:n.beginScope}),typeof n.endScope=="string"&&(n.endScope={_wrap:n.endScope}),rs(n),cs(n)}function ds(n){function o(N,m){return new RegExp(T(N),"m"+(n.case_insensitive?"i":"")+(n.unicodeRegex?"u":"")+(m?"g":""))}class d{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(m,R){R.position=this.position++,this.matchIndexes[this.matchAt]=R,this.regexes.push([R,m]),this.matchAt+=B(m)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const m=this.regexes.map(R=>R[1]);this.matcherRe=o(k(m,{joinWith:"|"}),!0),this.lastIndex=0}exec(m){this.matcherRe.lastIndex=this.lastIndex;const R=this.matcherRe.exec(m);if(!R)return null;const se=R.findIndex((Ke,hn)=>hn>0&&Ke!==void 0),ee=this.matchIndexes[se];return R.splice(0,se),Object.assign(R,ee)}}class w{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(m){if(this.multiRegexes[m])return this.multiRegexes[m];const R=new d;return this.rules.slice(m).forEach(([se,ee])=>R.addRule(se,ee)),R.compile(),this.multiRegexes[m]=R,R}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(m,R){this.rules.push([m,R]),R.type==="begin"&&this.count++}exec(m){const R=this.getMatcher(this.regexIndex);R.lastIndex=this.lastIndex;let se=R.exec(m);if(this.resumingScanAtSamePosition()&&!(se&&se.index===this.lastIndex)){const ee=this.getMatcher(0);ee.lastIndex=this.lastIndex+1,se=ee.exec(m)}return se&&(this.regexIndex+=se.position+1,this.regexIndex===this.count&&this.considerAll()),se}}function J(N){const m=new w;return N.contains.forEach(R=>m.addRule(R.begin,{rule:R,type:"begin"})),N.terminatorEnd&&m.addRule(N.terminatorEnd,{type:"end"}),N.illegal&&m.addRule(N.illegal,{type:"illegal"}),m}function Q(N,m){const R=N;if(N.isCompiled)return R;[gn,fn,us,Le].forEach(ee=>ee(N,m)),n.compilerExtensions.forEach(ee=>ee(N,m)),N.__beforeBegin=null,[pn,bn,K].forEach(ee=>ee(N,m)),N.isCompiled=!0;let se=null;return typeof N.keywords=="object"&&N.keywords.$pattern&&(N.keywords=Object.assign({},N.keywords),se=N.keywords.$pattern,delete N.keywords.$pattern),se=se||/\w+/,N.keywords&&(N.keywords=qn(N.keywords,n.case_insensitive)),R.keywordPatternRe=o(se,!0),m&&(N.begin||(N.begin=/\B|\b/),R.beginRe=o(R.begin),!N.end&&!N.endsWithParent&&(N.end=/\B|\b/),N.end&&(R.endRe=o(R.end)),R.terminatorEnd=T(R.end)||"",N.endsWithParent&&m.terminatorEnd&&(R.terminatorEnd+=(N.end?"|":"")+m.terminatorEnd)),N.illegal&&(R.illegalRe=o(N.illegal)),N.contains||(N.contains=[]),N.contains=[].concat(...N.contains.map(function(ee){return gs(ee==="self"?N:ee)})),N.contains.forEach(function(ee){Q(ee,R)}),N.starts&&Q(N.starts,m),R.matcher=J(R),R}if(n.compilerExtensions||(n.compilerExtensions=[]),n.contains&&n.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return n.classNameAliases=i(n.classNameAliases||{}),Q(n)}function Qn(n){return n?n.endsWithParent||Qn(n.starts):!1}function gs(n){return n.variants&&!n.cachedVariants&&(n.cachedVariants=n.variants.map(function(o){return i(n,{variants:null},o)})),n.cachedVariants?n.cachedVariants:Qn(n)?i(n,{starts:n.starts?i(n.starts):null}):Object.isFrozen(n)?i(n):n}var ps="11.11.1";class bs extends Error{constructor(o,d){super(o),this.name="HTMLInjectionError",this.html=d}}const En=a,et=i,nt=Symbol("nomatch"),fs=7,tt=function(n){const o=Object.create(null),d=Object.create(null),w=[];let J=!0;const Q="Could not find the language '{}', did you forget to load/include a language module?",N={disableAutodetect:!0,name:"Plain text",contains:[]};let m={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:y};function R(r){return m.noHighlightRe.test(r)}function se(r){let S=r.className+" ";S+=r.parentNode?r.parentNode.className:"";const D=m.languageDetectRe.exec(S);if(D){const W=Te(D[1]);return W||(Vn(Q.replace("{}",D[1])),Vn("Falling back to no-highlight mode for this block.",r)),W?D[1]:"no-highlight"}return S.split(/\s+/).find(W=>R(W)||Te(W))}function ee(r,S,D){let W="",te="";typeof S=="object"?(W=r,D=S.ignoreIllegals,te=S.language):(ke("10.7.0","highlight(lang, code, ...args) has been deprecated."),ke("10.7.0",`Please use highlight(code, options) instead.
|
|
1
|
+
import{aF as ks,j as t,aH as on,bn as Oe,bo as Ds,V as ye,N as Fe,r as Y,O as Bn,P as $n,S as Pn,Q as Un,K as $,bp as Nt,o as j,n as Bs,v as vn,C as $s,ac as yt,aV as Fn,t as Mn,bd as Ps,s as ve,Z as Us,bq as Be,br as Fs,bs as js,p as Ks,y as ze,$ as xt,aU as Hs,R as zs,at as Gs,H as Ws,m as Zs,bt as Sn,W as Ys,bu as At,bv as St,bw as Tt,bx as qs,i as Xs,T as Ue,by as Vs,ay as dt,a3 as gt,aR as pt,bk as Js,bz as Qs,U as ea,X as na,A as ta,u as sa,bm as aa,d as ia,bA as oa}from"./index-cRUZeoHS.js";import{u as ra,T as ca}from"./html-title-h5APx8NK.js";import la from"./audit-logs-BYBxa0cE.js";import{T as Rt,M as ua}from"./index-Bemqr6mj.js";import{r as Ct,P as da}from"./index-BNX2Pw3P.js";import{u as Ge,T as ga}from"./team-CVQ226A7.js";import{g as pa,H as ba}from"./index-DdCvfslA.js";import{D as fa}from"./url-evaluation-Cj1Svots.js";import{E as ma}from"./Edit-DvxKhYgv.js";import{y as Ea}from"./index-BIQR59vh.js";import{A as ha}from"./Add-9JnCS5ve.js";import{C as Ln}from"./click-to-copy-CCG028Ko.js";import{f as _a}from"./index-BojVbZw0.js";import{D as Na}from"./delete-confirm-Bhn4vc_k.js";import{P as ya}from"./permission-BLVr7Zw0.js";import{u as xa}from"./blocklet-De_7MRFc.js";import{u as jn}from"./use-mobile-B_P2g0h9.js";import{A as Aa}from"./actions-B_2z9BVp.js";import{u as Sa}from"./useAsyncRetry-D2phKTtt.js";import"./TableSearch-Ds56-ytf.js";import"./Search-HramZyeB.js";import"./Clear-DK1FdL-M.js";import"./useLocalStorage-DmhieRfi.js";import"./index-BnsWZIgb.js";import"./decode-DPztD6kB.js";import"./UnfoldMore-BGJ1UPRH.js";import"./shorten-label-CbtaF7f0.js";import"./ViewList-CafMpBue.js";import"./index-CbkbAuFQ.js";import"./ButtonGroup-Bt7SjPF2.js";import"./getValidReactChildren-DBOod-PS.js";import"./index.esm-CaHvWLjN.js";import"./Google-Cgwsyv-7.js";import"./cloneDeep-O8zlWyp5.js";import"./Autocomplete-BpXk1bAd.js";import"./ListSubheader-XQF0i2sj.js";import"./AdapterDayjs-CMUuYuy4.js";import"./useThemeProps-BBmrcW6d.js";import"./CSSTransition-C0HkZ3w8.js";import"./visuallyHidden-Dan1xhjv.js";import"./index-C2bcTSPO.js";import"./Verified-Q08s-S-X.js";import"./DeleteOutline-DD4V8Ym7.js";import"./ErrorOutline-rnnrydXz.js";import"./index-DCSK-fqg.js";import"./emotion-cache.browser.esm-Dso39zEQ.js";import"./sdk-DF86kc1O.js";import"./index-m8Q2Gn_c.js";import"./ua-parser-DP5omx3I.js";import"./edit.svg-CdZFoJWM.js";import"./list-header-CFUfJPzP.js";import"./chain-wMQG8lhu.js";import"./ToggleButtonGroup-C8xKGWKO.js";import"./lock.svg-B2nHOjXC.js";import"./FilterList-IdcsYV14.js";import"./index-LhNotK6-.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./depsEqual-BpfQCpbX.js";import"./MoreVert-ByM1c2p0.js";import"./useAsync-CYKs18ma.js";const Ta=ks(t.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"}));function Kn({value:e}){const{t:s,locale:a}=ye(),i=new Date;return new Date(e)<i?t.jsxs("span",{style:{color:"red"},children:[t.jsx(Fe,{value:e,locale:a}),`${s("setting.accessKey.expired",{time:""})}`]}):t.jsx(Fe,{mode:"daysLeft",value:e,locale:a,type:"all"})}Kn.propTypes={value:j.string.isRequired};function Hn({value:e,onChange:s,...a}){const{t:i}=ye(),g=Y.useMemo(()=>[{value:"signature",title:i("setting.accessKey.signature"),description:i("setting.accessKey.signatureDesc")},{value:"simple",title:i("setting.accessKey.simple"),description:i("setting.accessKey.simpleDesc")}],[i]);return t.jsxs(Bn,{style:{width:"100%"},variant:"outlined",...a,children:[t.jsx($n,{children:i("setting.accessKey.authType")}),t.jsx(Pn,{value:e,onChange:s,fullWidth:!0,label:i("setting.accessKey.authType"),IconComponent:E=>t.jsx(Nt,{...E,width:20,height:20}),children:g.map(E=>t.jsx(Un,{value:E.value,children:t.jsxs($,{children:[t.jsx("span",{children:E.title}),t.jsx($,{sx:{maxWidth:510,fontSize:12,color:"#999",whiteSpace:"normal"},children:E.description})]})},E.value))})]})}Hn.propTypes={value:j.string.isRequired,onChange:j.func.isRequired};const zn=()=>{const e=on.RBAC_CONFIG.roles.filter(g=>g.passport),{inService:s}=Oe(),{roles:a}=Ge(),i=[...e,...s?a:[]];return Ds(i,"name").filter(g=>g.name!==on.ROLES.OWNER)};function wt(){const{session:e}=Bs(),s=zn();return Y.useMemo(()=>{if(!e?.user?.role)return[];if(["owner","admin"].includes(e.user.role))return s;const i=s.filter(E=>E.name==="guest");return[...s.filter(E=>E.name!=="guest").filter(E=>e.user.passports.find(_=>_.role===E.name)),...i]},[s,e?.user?.passports,e?.user?.role])}function It({onCreate:e=()=>{},remark:s=""}){const{api:a}=Oe(),{teamDid:i}=Ge(),{t:g}=ye(),[E,_]=Y.useState(!1),[l,h]=Y.useState(null),u=wt(),y=()=>{_(!1),h(null)},T=async f=>{const{remark:v,passport:A,authType:b}=f;_(!0);const C=await a.createAccessKey({input:{teamDid:i,remark:v.trim(),passport:A,expireAt:f.expireAt?new Date(f.expireAt).getTime():null,authType:b}}),{data:B}=C;e(B),h(null),_(!1)},c={title:`${g("common.create")} ${g("accessKey")}`,description:(f,v,A)=>t.jsxs(Fn,{sx:{gap:3},children:[t.jsx(Mn,{label:g("setting.accessKey.tip"),autoComplete:"off",variant:"outlined",name:"remark",fullWidth:!0,autoFocus:!0,margin:"dense",value:f.remark,onChange:b=>{v({...f,remark:b.target.value,__disableConfirm:!f.passport||!b.target.value.trim()}),b.target.value.trim()?A(""):A(g("setting.accessKey.remarkInvalid"))},slotProps:{htmlInput:{"data-cy":"remark-input"}}}),t.jsxs(Bn,{style:{width:"100%"},variant:"outlined",children:[t.jsx($n,{sx:{width:"calc(100% - 46px)"},children:g("setting.accessKey.passport")}),t.jsx(Pn,{"data-cy":"create-access-key-select-passport",value:f.passport,onChange:b=>{const C=b.target.value;A(null),v({...f,passport:C,__disableConfirm:!f.remark||!C})},fullWidth:!0,label:g("setting.accessKey.passport"),disabled:E,IconComponent:b=>t.jsx(Nt,{...b,width:20,height:20}),children:u.map(b=>t.jsx(Un,{value:b.name,"data-cy":`create-access-key-passport-option-${b.name}`,children:t.jsxs($,{children:[t.jsx("span",{children:b.title||b.name}),t.jsx($,{sx:{maxWidth:440,fontSize:12,color:"#999",whiteSpace:"normal",textAlign:"justify"},children:b.description})]})},b.name))})]}),t.jsx(Hn,{value:f.authType,onChange:b=>{v({...f,authType:b.target.value})}}),t.jsx(Rt,{placeholder:g("setting.accessKey.expireTime"),value:f.expireAt,onChange:b=>{v({...f,expireAt:b,__disableConfirm:!f.passport||!f.remark||!b})}})]}),confirm:g("common.confirm"),cancel:g("common.cancel"),color:"primary",params:{remark:s,authType:"signature",__disableConfirm:!s.trim()},onConfirm:T,onCancel:y};return t.jsxs(t.Fragment,{children:[t.jsxs(vn,{sx:{color:"common.white"},edge:"end",variant:"contained",color:"primary","data-cy":"add-access-key-btn",onClick:()=>h(c),className:"rule-action",children:[E?t.jsx($s,{size:16}):t.jsx(ha,{style:{fontSize:16}}),g("common.create")]}),l&&t.jsx(yt,{title:l.title,description:l.description,confirm:l.confirm,color:l.color,cancel:l.cancel,params:l.params,onConfirm:l.onConfirm,onCancel:l.onCancel})]})}It.propTypes={remark:j.string,onCreate:j.func};var Tn,bt;function Ra(){if(bt)return Tn;bt=1;function e(n){return n instanceof Map?n.clear=n.delete=n.set=function(){throw new Error("map is read-only")}:n instanceof Set&&(n.add=n.clear=n.delete=function(){throw new Error("set is read-only")}),Object.freeze(n),Object.getOwnPropertyNames(n).forEach(o=>{const d=n[o],w=typeof d;(w==="object"||w==="function")&&!Object.isFrozen(d)&&e(d)}),n}class s{constructor(o){o.data===void 0&&(o.data={}),this.data=o.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function a(n){return n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function i(n,...o){const d=Object.create(null);for(const w in n)d[w]=n[w];return o.forEach(function(w){for(const J in w)d[J]=w[J]}),d}const g="</span>",E=n=>!!n.scope,_=(n,{prefix:o})=>{if(n.startsWith("language:"))return n.replace("language:","language-");if(n.includes(".")){const d=n.split(".");return[`${o}${d.shift()}`,...d.map((w,J)=>`${w}${"_".repeat(J+1)}`)].join(" ")}return`${o}${n}`};class l{constructor(o,d){this.buffer="",this.classPrefix=d.classPrefix,o.walk(this)}addText(o){this.buffer+=a(o)}openNode(o){if(!E(o))return;const d=_(o.scope,{prefix:this.classPrefix});this.span(d)}closeNode(o){E(o)&&(this.buffer+=g)}value(){return this.buffer}span(o){this.buffer+=`<span class="${o}">`}}const h=(n={})=>{const o={children:[]};return Object.assign(o,n),o};class u{constructor(){this.rootNode=h(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(o){this.top.children.push(o)}openNode(o){const d=h({scope:o});this.add(d),this.stack.push(d)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(o){return this.constructor._walk(o,this.rootNode)}static _walk(o,d){return typeof d=="string"?o.addText(d):d.children&&(o.openNode(d),d.children.forEach(w=>this._walk(o,w)),o.closeNode(d)),o}static _collapse(o){typeof o!="string"&&o.children&&(o.children.every(d=>typeof d=="string")?o.children=[o.children.join("")]:o.children.forEach(d=>{u._collapse(d)}))}}class y extends u{constructor(o){super(),this.options=o}addText(o){o!==""&&this.add(o)}startScope(o){this.openNode(o)}endScope(){this.closeNode()}__addSublanguage(o,d){const w=o.root;d&&(w.scope=`language:${d}`),this.add(w)}toHTML(){return new l(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function T(n){return n?typeof n=="string"?n:n.source:null}function c(n){return A("(?=",n,")")}function f(n){return A("(?:",n,")*")}function v(n){return A("(?:",n,")?")}function A(...n){return n.map(d=>T(d)).join("")}function b(n){const o=n[n.length-1];return typeof o=="object"&&o.constructor===Object?(n.splice(n.length-1,1),o):{}}function C(...n){return"("+(b(n).capture?"":"?:")+n.map(w=>T(w)).join("|")+")"}function B(n){return new RegExp(n.toString()+"|").exec("").length-1}function M(n,o){const d=n&&n.exec(o);return d&&d.index===0}const P=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function k(n,{joinWith:o}){let d=0;return n.map(w=>{d+=1;const J=d;let Q=T(w),N="";for(;Q.length>0;){const m=P.exec(Q);if(!m){N+=Q;break}N+=Q.substring(0,m.index),Q=Q.substring(m.index+m[0].length),m[0][0]==="\\"&&m[1]?N+="\\"+String(Number(m[1])+J):(N+=m[0],m[0]==="("&&d++)}return N}).map(w=>`(${w})`).join(o)}const X=/\b\B/,ge="[a-zA-Z]\\w*",ae="[a-zA-Z_]\\w*",ne="\\b\\d+(\\.\\d+)?",be="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Ee="\\b(0b[01]+)",fe="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",I=(n={})=>{const o=/^#![ ]*\//;return n.binary&&(n.begin=A(o,/.*\b/,n.binary,/\b.*/)),i({scope:"meta",begin:o,end:/$/,relevance:0,"on:begin":(d,w)=>{d.index!==0&&w.ignoreMatch()}},n)},G={begin:"\\\\[\\s\\S]",relevance:0},V={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[G]},q={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[G]},xe={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/},U=function(n,o,d={}){const w=i({scope:"comment",begin:n,end:o,contains:[]},d);w.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 J=C("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 w.contains.push({begin:A(/[ ]+/,"(",J,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),w},ie=U("//","$"),ue=U("/\\*","\\*/"),ce=U("#","$"),oe={scope:"number",begin:ne,relevance:0},Ae={scope:"number",begin:be,relevance:0},ln={scope:"number",begin:Ee,relevance:0},We={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[G,{begin:/\[/,end:/\]/,relevance:0,contains:[G]}]},je={scope:"title",begin:ge,relevance:0},un={scope:"title",begin:ae,relevance:0},Ze={begin:"\\.\\s*"+ae,relevance:0};var Me=Object.freeze({__proto__:null,APOS_STRING_MODE:V,BACKSLASH_ESCAPE:G,BINARY_NUMBER_MODE:ln,BINARY_NUMBER_RE:Ee,COMMENT:U,C_BLOCK_COMMENT_MODE:ue,C_LINE_COMMENT_MODE:ie,C_NUMBER_MODE:Ae,C_NUMBER_RE:be,END_SAME_AS_BEGIN:function(n){return Object.assign(n,{"on:begin":(o,d)=>{d.data._beginMatch=o[1]},"on:end":(o,d)=>{d.data._beginMatch!==o[1]&&d.ignoreMatch()}})},HASH_COMMENT_MODE:ce,IDENT_RE:ge,MATCH_NOTHING_RE:X,METHOD_GUARD:Ze,NUMBER_MODE:oe,NUMBER_RE:ne,PHRASAL_WORDS_MODE:xe,QUOTE_STRING_MODE:q,REGEXP_MODE:We,RE_STARTERS_RE:fe,SHEBANG:I,TITLE_MODE:je,UNDERSCORE_IDENT_RE:ae,UNDERSCORE_TITLE_MODE:un});function dn(n,o){n.input[n.index-1]==="."&&o.ignoreMatch()}function gn(n,o){n.className!==void 0&&(n.scope=n.className,delete n.className)}function pn(n,o){o&&n.beginKeywords&&(n.begin="\\b("+n.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",n.__beforeBegin=dn,n.keywords=n.keywords||n.beginKeywords,delete n.beginKeywords,n.relevance===void 0&&(n.relevance=0))}function bn(n,o){Array.isArray(n.illegal)&&(n.illegal=C(...n.illegal))}function fn(n,o){if(n.match){if(n.begin||n.end)throw new Error("begin & end are not supported with match");n.begin=n.match,delete n.match}}function K(n,o){n.relevance===void 0&&(n.relevance=1)}const Le=(n,o)=>{if(!n.beforeMatch)return;if(n.starts)throw new Error("beforeMatch cannot be used with starts");const d=Object.assign({},n);Object.keys(n).forEach(w=>{delete n[w]}),n.keywords=d.keywords,n.begin=A(d.beforeMatch,c(d.begin)),n.starts={relevance:0,contains:[Object.assign(d,{endsParent:!0})]},n.relevance=0,delete d.beforeMatch},Ce=["of","and","for","in","not","or","if","then","parent","list","value"],mn="keyword";function qn(n,o,d=mn){const w=Object.create(null);return typeof n=="string"?J(d,n.split(" ")):Array.isArray(n)?J(d,n):Object.keys(n).forEach(function(Q){Object.assign(w,qn(n[Q],o,Q))}),w;function J(Q,N){o&&(N=N.map(m=>m.toLowerCase())),N.forEach(function(m){const R=m.split("|");w[R[0]]=[Q,is(R[0],R[1])]})}}function is(n,o){return o?Number(o):os(n)?0:1}function os(n){return Ce.includes(n.toLowerCase())}const Xn={},we=n=>{console.error(n)},Vn=(n,...o)=>{console.log(`WARN: ${n}`,...o)},ke=(n,o)=>{Xn[`${n}/${o}`]||(console.log(`Deprecated as of ${n}. ${o}`),Xn[`${n}/${o}`]=!0)},Ye=new Error;function Jn(n,o,{key:d}){let w=0;const J=n[d],Q={},N={};for(let m=1;m<=o.length;m++)N[m+w]=J[m],Q[m+w]=!0,w+=B(o[m-1]);n[d]=N,n[d]._emit=Q,n[d]._multi=!0}function rs(n){if(Array.isArray(n.begin)){if(n.skip||n.excludeBegin||n.returnBegin)throw we("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Ye;if(typeof n.beginScope!="object"||n.beginScope===null)throw we("beginScope must be object"),Ye;Jn(n,n.begin,{key:"beginScope"}),n.begin=k(n.begin,{joinWith:""})}}function cs(n){if(Array.isArray(n.end)){if(n.skip||n.excludeEnd||n.returnEnd)throw we("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Ye;if(typeof n.endScope!="object"||n.endScope===null)throw we("endScope must be object"),Ye;Jn(n,n.end,{key:"endScope"}),n.end=k(n.end,{joinWith:""})}}function ls(n){n.scope&&typeof n.scope=="object"&&n.scope!==null&&(n.beginScope=n.scope,delete n.scope)}function us(n){ls(n),typeof n.beginScope=="string"&&(n.beginScope={_wrap:n.beginScope}),typeof n.endScope=="string"&&(n.endScope={_wrap:n.endScope}),rs(n),cs(n)}function ds(n){function o(N,m){return new RegExp(T(N),"m"+(n.case_insensitive?"i":"")+(n.unicodeRegex?"u":"")+(m?"g":""))}class d{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(m,R){R.position=this.position++,this.matchIndexes[this.matchAt]=R,this.regexes.push([R,m]),this.matchAt+=B(m)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const m=this.regexes.map(R=>R[1]);this.matcherRe=o(k(m,{joinWith:"|"}),!0),this.lastIndex=0}exec(m){this.matcherRe.lastIndex=this.lastIndex;const R=this.matcherRe.exec(m);if(!R)return null;const se=R.findIndex((Ke,hn)=>hn>0&&Ke!==void 0),ee=this.matchIndexes[se];return R.splice(0,se),Object.assign(R,ee)}}class w{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(m){if(this.multiRegexes[m])return this.multiRegexes[m];const R=new d;return this.rules.slice(m).forEach(([se,ee])=>R.addRule(se,ee)),R.compile(),this.multiRegexes[m]=R,R}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(m,R){this.rules.push([m,R]),R.type==="begin"&&this.count++}exec(m){const R=this.getMatcher(this.regexIndex);R.lastIndex=this.lastIndex;let se=R.exec(m);if(this.resumingScanAtSamePosition()&&!(se&&se.index===this.lastIndex)){const ee=this.getMatcher(0);ee.lastIndex=this.lastIndex+1,se=ee.exec(m)}return se&&(this.regexIndex+=se.position+1,this.regexIndex===this.count&&this.considerAll()),se}}function J(N){const m=new w;return N.contains.forEach(R=>m.addRule(R.begin,{rule:R,type:"begin"})),N.terminatorEnd&&m.addRule(N.terminatorEnd,{type:"end"}),N.illegal&&m.addRule(N.illegal,{type:"illegal"}),m}function Q(N,m){const R=N;if(N.isCompiled)return R;[gn,fn,us,Le].forEach(ee=>ee(N,m)),n.compilerExtensions.forEach(ee=>ee(N,m)),N.__beforeBegin=null,[pn,bn,K].forEach(ee=>ee(N,m)),N.isCompiled=!0;let se=null;return typeof N.keywords=="object"&&N.keywords.$pattern&&(N.keywords=Object.assign({},N.keywords),se=N.keywords.$pattern,delete N.keywords.$pattern),se=se||/\w+/,N.keywords&&(N.keywords=qn(N.keywords,n.case_insensitive)),R.keywordPatternRe=o(se,!0),m&&(N.begin||(N.begin=/\B|\b/),R.beginRe=o(R.begin),!N.end&&!N.endsWithParent&&(N.end=/\B|\b/),N.end&&(R.endRe=o(R.end)),R.terminatorEnd=T(R.end)||"",N.endsWithParent&&m.terminatorEnd&&(R.terminatorEnd+=(N.end?"|":"")+m.terminatorEnd)),N.illegal&&(R.illegalRe=o(N.illegal)),N.contains||(N.contains=[]),N.contains=[].concat(...N.contains.map(function(ee){return gs(ee==="self"?N:ee)})),N.contains.forEach(function(ee){Q(ee,R)}),N.starts&&Q(N.starts,m),R.matcher=J(R),R}if(n.compilerExtensions||(n.compilerExtensions=[]),n.contains&&n.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return n.classNameAliases=i(n.classNameAliases||{}),Q(n)}function Qn(n){return n?n.endsWithParent||Qn(n.starts):!1}function gs(n){return n.variants&&!n.cachedVariants&&(n.cachedVariants=n.variants.map(function(o){return i(n,{variants:null},o)})),n.cachedVariants?n.cachedVariants:Qn(n)?i(n,{starts:n.starts?i(n.starts):null}):Object.isFrozen(n)?i(n):n}var ps="11.11.1";class bs extends Error{constructor(o,d){super(o),this.name="HTMLInjectionError",this.html=d}}const En=a,et=i,nt=Symbol("nomatch"),fs=7,tt=function(n){const o=Object.create(null),d=Object.create(null),w=[];let J=!0;const Q="Could not find the language '{}', did you forget to load/include a language module?",N={disableAutodetect:!0,name:"Plain text",contains:[]};let m={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:y};function R(r){return m.noHighlightRe.test(r)}function se(r){let S=r.className+" ";S+=r.parentNode?r.parentNode.className:"";const D=m.languageDetectRe.exec(S);if(D){const W=Te(D[1]);return W||(Vn(Q.replace("{}",D[1])),Vn("Falling back to no-highlight mode for this block.",r)),W?D[1]:"no-highlight"}return S.split(/\s+/).find(W=>R(W)||Te(W))}function ee(r,S,D){let W="",te="";typeof S=="object"?(W=r,D=S.ignoreIllegals,te=S.language):(ke("10.7.0","highlight(lang, code, ...args) has been deprecated."),ke("10.7.0",`Please use highlight(code, options) instead.
|
|
2
2
|
https://github.com/highlightjs/highlight.js/issues/2277`),te=r,W=S),D===void 0&&(D=!0);const me={code:W,language:te};Xe("before:highlight",me);const Re=me.result?me.result:Ke(me.language,me.code,D);return Re.code=me.code,Xe("after:highlight",Re),Re}function Ke(r,S,D,W){const te=Object.create(null);function me(p,x){return p.keywords[x]}function Re(){if(!O.keywords){re.addText(Z);return}let p=0;O.keywordPatternRe.lastIndex=0;let x=O.keywordPatternRe.exec(Z),L="";for(;x;){L+=Z.substring(p,x.index);const F=_e.case_insensitive?x[0].toLowerCase():x[0],le=me(O,F);if(le){const[Se,Ms]=le;if(re.addText(L),L="",te[F]=(te[F]||0)+1,te[F]<=fs&&(Qe+=Ms),Se.startsWith("_"))L+=x[0];else{const Ls=_e.classNameAliases[Se]||Se;he(x[0],Ls)}}else L+=x[0];p=O.keywordPatternRe.lastIndex,x=O.keywordPatternRe.exec(Z)}L+=Z.substring(p),re.addText(L)}function Ve(){if(Z==="")return;let p=null;if(typeof O.subLanguage=="string"){if(!o[O.subLanguage]){re.addText(Z);return}p=Ke(O.subLanguage,Z,!0,ut[O.subLanguage]),ut[O.subLanguage]=p._top}else p=_n(Z,O.subLanguage.length?O.subLanguage:null);O.relevance>0&&(Qe+=p.relevance),re.__addSublanguage(p._emitter,p.language)}function pe(){O.subLanguage!=null?Ve():Re(),Z=""}function he(p,x){p!==""&&(re.startScope(x),re.addText(p),re.endScope())}function ot(p,x){let L=1;const F=x.length-1;for(;L<=F;){if(!p._emit[L]){L++;continue}const le=_e.classNameAliases[p[L]]||p[L],Se=x[L];le?he(Se,le):(Z=Se,Re(),Z=""),L++}}function rt(p,x){return p.scope&&typeof p.scope=="string"&&re.openNode(_e.classNameAliases[p.scope]||p.scope),p.beginScope&&(p.beginScope._wrap?(he(Z,_e.classNameAliases[p.beginScope._wrap]||p.beginScope._wrap),Z=""):p.beginScope._multi&&(ot(p.beginScope,x),Z="")),O=Object.create(p,{parent:{value:O}}),O}function ct(p,x,L){let F=M(p.endRe,L);if(F){if(p["on:end"]){const le=new s(p);p["on:end"](x,le),le.isMatchIgnored&&(F=!1)}if(F){for(;p.endsParent&&p.parent;)p=p.parent;return p}}if(p.endsWithParent)return ct(p.parent,x,L)}function Cs(p){return O.matcher.regexIndex===0?(Z+=p[0],1):(An=!0,0)}function ws(p){const x=p[0],L=p.rule,F=new s(L),le=[L.__beforeBegin,L["on:begin"]];for(const Se of le)if(Se&&(Se(p,F),F.isMatchIgnored))return Cs(x);return L.skip?Z+=x:(L.excludeBegin&&(Z+=x),pe(),!L.returnBegin&&!L.excludeBegin&&(Z=x)),rt(L,p),L.returnBegin?0:x.length}function Is(p){const x=p[0],L=S.substring(p.index),F=ct(O,p,L);if(!F)return nt;const le=O;O.endScope&&O.endScope._wrap?(pe(),he(x,O.endScope._wrap)):O.endScope&&O.endScope._multi?(pe(),ot(O.endScope,p)):le.skip?Z+=x:(le.returnEnd||le.excludeEnd||(Z+=x),pe(),le.excludeEnd&&(Z=x));do O.scope&&re.closeNode(),!O.skip&&!O.subLanguage&&(Qe+=O.relevance),O=O.parent;while(O!==F.parent);return F.starts&&rt(F.starts,p),le.returnEnd?0:x.length}function Os(){const p=[];for(let x=O;x!==_e;x=x.parent)x.scope&&p.unshift(x.scope);p.forEach(x=>re.openNode(x))}let Je={};function lt(p,x){const L=x&&x[0];if(Z+=p,L==null)return pe(),0;if(Je.type==="begin"&&x.type==="end"&&Je.index===x.index&&L===""){if(Z+=S.slice(x.index,x.index+1),!J){const F=new Error(`0 width match regex (${r})`);throw F.languageName=r,F.badRule=Je.rule,F}return 1}if(Je=x,x.type==="begin")return ws(x);if(x.type==="illegal"&&!D){const F=new Error('Illegal lexeme "'+L+'" for mode "'+(O.scope||"<unnamed>")+'"');throw F.mode=O,F}else if(x.type==="end"){const F=Is(x);if(F!==nt)return F}if(x.type==="illegal"&&L==="")return Z+=`
|
|
3
3
|
`,1;if(xn>1e5&&xn>x.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Z+=L,L.length}const _e=Te(r);if(!_e)throw we(Q.replace("{}",r)),new Error('Unknown language: "'+r+'"');const vs=ds(_e);let yn="",O=W||vs;const ut={},re=new m.__emitter(m);Os();let Z="",Qe=0,Ie=0,xn=0,An=!1;try{if(_e.__emitTokens)_e.__emitTokens(S,re);else{for(O.matcher.considerAll();;){xn++,An?An=!1:O.matcher.considerAll(),O.matcher.lastIndex=Ie;const p=O.matcher.exec(S);if(!p)break;const x=S.substring(Ie,p.index),L=lt(x,p);Ie=p.index+L}lt(S.substring(Ie))}return re.finalize(),yn=re.toHTML(),{language:r,value:yn,relevance:Qe,illegal:!1,_emitter:re,_top:O}}catch(p){if(p.message&&p.message.includes("Illegal"))return{language:r,value:En(S),illegal:!0,relevance:0,_illegalBy:{message:p.message,index:Ie,context:S.slice(Ie-100,Ie+100),mode:p.mode,resultSoFar:yn},_emitter:re};if(J)return{language:r,value:En(S),illegal:!1,relevance:0,errorRaised:p,_emitter:re,_top:O};throw p}}function hn(r){const S={value:En(r),illegal:!1,relevance:0,_top:N,_emitter:new m.__emitter(m)};return S._emitter.addText(r),S}function _n(r,S){S=S||m.languages||Object.keys(o);const D=hn(r),W=S.filter(Te).filter(it).map(pe=>Ke(pe,r,!1));W.unshift(D);const te=W.sort((pe,he)=>{if(pe.relevance!==he.relevance)return he.relevance-pe.relevance;if(pe.language&&he.language){if(Te(pe.language).supersetOf===he.language)return 1;if(Te(he.language).supersetOf===pe.language)return-1}return 0}),[me,Re]=te,Ve=me;return Ve.secondBest=Re,Ve}function ms(r,S,D){const W=S&&d[S]||D;r.classList.add("hljs"),r.classList.add(`language-${W}`)}function Nn(r){let S=null;const D=se(r);if(R(D))return;if(Xe("before:highlightElement",{el:r,language:D}),r.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",r);return}if(r.children.length>0&&(m.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)),m.throwUnescapedHTML))throw new bs("One of your code blocks includes unescaped HTML.",r.innerHTML);S=r;const W=S.textContent,te=D?ee(W,{language:D,ignoreIllegals:!0}):_n(W);r.innerHTML=te.value,r.dataset.highlighted="yes",ms(r,D,te.language),r.result={language:te.language,re:te.relevance,relevance:te.relevance},te.secondBest&&(r.secondBest={language:te.secondBest.language,relevance:te.secondBest.relevance}),Xe("after:highlightElement",{el:r,result:te,text:W})}function Es(r){m=et(m,r)}const hs=()=>{qe(),ke("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function _s(){qe(),ke("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let st=!1;function qe(){function r(){qe()}if(document.readyState==="loading"){st||window.addEventListener("DOMContentLoaded",r,!1),st=!0;return}document.querySelectorAll(m.cssSelector).forEach(Nn)}function Ns(r,S){let D=null;try{D=S(n)}catch(W){if(we("Language definition for '{}' could not be registered.".replace("{}",r)),J)we(W);else throw W;D=N}D.name||(D.name=r),o[r]=D,D.rawDefinition=S.bind(null,n),D.aliases&&at(D.aliases,{languageName:r})}function ys(r){delete o[r];for(const S of Object.keys(d))d[S]===r&&delete d[S]}function xs(){return Object.keys(o)}function Te(r){return r=(r||"").toLowerCase(),o[r]||o[d[r]]}function at(r,{languageName:S}){typeof r=="string"&&(r=[r]),r.forEach(D=>{d[D.toLowerCase()]=S})}function it(r){const S=Te(r);return S&&!S.disableAutodetect}function As(r){r["before:highlightBlock"]&&!r["before:highlightElement"]&&(r["before:highlightElement"]=S=>{r["before:highlightBlock"](Object.assign({block:S.el},S))}),r["after:highlightBlock"]&&!r["after:highlightElement"]&&(r["after:highlightElement"]=S=>{r["after:highlightBlock"](Object.assign({block:S.el},S))})}function Ss(r){As(r),w.push(r)}function Ts(r){const S=w.indexOf(r);S!==-1&&w.splice(S,1)}function Xe(r,S){const D=r;w.forEach(function(W){W[D]&&W[D](S)})}function Rs(r){return ke("10.7.0","highlightBlock will be removed entirely in v12.0"),ke("10.7.0","Please use highlightElement now."),Nn(r)}Object.assign(n,{highlight:ee,highlightAuto:_n,highlightAll:qe,highlightElement:Nn,highlightBlock:Rs,configure:Es,initHighlighting:hs,initHighlightingOnLoad:_s,registerLanguage:Ns,unregisterLanguage:ys,listLanguages:xs,getLanguage:Te,registerAliases:at,autoDetection:it,inherit:et,addPlugin:Ss,removePlugin:Ts}),n.debugMode=function(){J=!1},n.safeMode=function(){J=!0},n.versionString=ps,n.regex={concat:A,lookahead:c,either:C,optional:v,anyNumberOfTimes:f};for(const r in Me)typeof Me[r]=="object"&&e(Me[r]);return Object.assign(n,Me),n},De=tt({});return De.newInstance=()=>tt({}),Tn=De,De.HighlightJS=De,De.default=De,Tn}var Ca=Ra();const z=Ps(Ca),ft="[A-Za-z$_][0-9A-Za-z$_]*",wa=["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","using"],Ia=["true","false","null","undefined","NaN","Infinity"],Ot=["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"],vt=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Mt=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Oa=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],va=[].concat(Mt,Ot,vt);function Gn(e){const s=e.regex,a=(U,{after:ie})=>{const ue="</"+U[0].slice(1);return U.input.indexOf(ue,ie)!==-1},i=ft,g={begin:"<>",end:"</>"},E=/<[A-Za-z0-9\\._:-]+\s*\/>/,_={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(U,ie)=>{const ue=U[0].length+U.index,ce=U.input[ue];if(ce==="<"||ce===","){ie.ignoreMatch();return}ce===">"&&(a(U,{after:ue})||ie.ignoreMatch());let oe;const Ae=U.input.substring(ue);if(oe=Ae.match(/^\s*=/)){ie.ignoreMatch();return}if((oe=Ae.match(/^\s+extends\s+/))&&oe.index===0){ie.ignoreMatch();return}}},l={$pattern:ft,keyword:wa,literal:Ia,built_in:va,"variable.language":Oa},h="[0-9](_?[0-9])*",u=`\\.(${h})`,y="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",T={className:"number",variants:[{begin:`(\\b(${y})((${u})|\\.)?|(${u}))[eE][+-]?(${h})\\b`},{begin:`\\b(${y})\\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},c={className:"subst",begin:"\\$\\{",end:"\\}",keywords:l,contains:[]},f={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,c],subLanguage:"xml"}},v={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,c],subLanguage:"css"}},A={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,c],subLanguage:"graphql"}},b={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,c]},B={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:i+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},M=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,f,v,A,b,{match:/\$\d+/},T];c.contains=M.concat({begin:/\{/,end:/\}/,keywords:l,contains:["self"].concat(M)});const P=[].concat(B,c.contains),k=P.concat([{begin:/(\s*)\(/,end:/\)/,keywords:l,contains:["self"].concat(P)}]),X={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:k},ge={variants:[{match:[/class/,/\s+/,i,/\s+/,/extends/,/\s+/,s.concat(i,"(",s.concat(/\./,i),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,i],scope:{1:"keyword",3:"title.class"}}]},ae={relevance:0,match:s.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:{_:[...Ot,...vt]}},ne={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},be={variants:[{match:[/function/,/\s+/,i,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[X],illegal:/%/},Ee={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function fe(U){return s.concat("(?!",U.join("|"),")")}const I={match:s.concat(/\b/,fe([...Mt,"super","import"].map(U=>`${U}\\s*\\(`)),i,s.lookahead(/\s*\(/)),className:"title.function",relevance:0},G={begin:s.concat(/\./,s.lookahead(s.concat(i,/(?![0-9A-Za-z$_(])/))),end:i,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},V={match:[/get|set/,/\s+/,i,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},X]},q="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",xe={match:[/const|var|let/,/\s+/,i,/\s*/,/=\s*/,/(async\s*)?/,s.lookahead(q)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[X]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:l,exports:{PARAMS_CONTAINS:k,CLASS_REFERENCE:ae},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),ne,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,f,v,A,b,B,{match:/\$\d+/},T,ae,{scope:"attr",match:i+s.lookahead(":"),relevance:0},xe,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[B,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:l,contains:k}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:g.begin,end:g.end},{match:E},{begin:_.begin,"on:begin":_.isTrulyOpeningTag,end:_.end}],subLanguage:"xml",contains:[{begin:_.begin,end:_.end,skip:!0,contains:["self"]}]}]},be,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[X,e.inherit(e.TITLE_MODE,{begin:i,className:"title.function"})]},{match:/\.\.\./,relevance:0},G,{match:"\\$"+i,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[X]},I,Ee,ge,V,{match:/\$[(.]/}]}}const rn="[A-Za-z$_][0-9A-Za-z$_]*",Lt=["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","using"],kt=["true","false","null","undefined","NaN","Infinity"],Dt=["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"],Bt=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],$t=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Pt=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Ut=[].concat($t,Dt,Bt);function Ma(e){const s=e.regex,a=(U,{after:ie})=>{const ue="</"+U[0].slice(1);return U.input.indexOf(ue,ie)!==-1},i=rn,g={begin:"<>",end:"</>"},E=/<[A-Za-z0-9\\._:-]+\s*\/>/,_={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(U,ie)=>{const ue=U[0].length+U.index,ce=U.input[ue];if(ce==="<"||ce===","){ie.ignoreMatch();return}ce===">"&&(a(U,{after:ue})||ie.ignoreMatch());let oe;const Ae=U.input.substring(ue);if(oe=Ae.match(/^\s*=/)){ie.ignoreMatch();return}if((oe=Ae.match(/^\s+extends\s+/))&&oe.index===0){ie.ignoreMatch();return}}},l={$pattern:rn,keyword:Lt,literal:kt,built_in:Ut,"variable.language":Pt},h="[0-9](_?[0-9])*",u=`\\.(${h})`,y="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",T={className:"number",variants:[{begin:`(\\b(${y})((${u})|\\.)?|(${u}))[eE][+-]?(${h})\\b`},{begin:`\\b(${y})\\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},c={className:"subst",begin:"\\$\\{",end:"\\}",keywords:l,contains:[]},f={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,c],subLanguage:"xml"}},v={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,c],subLanguage:"css"}},A={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,c],subLanguage:"graphql"}},b={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,c]},B={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:i+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},M=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,f,v,A,b,{match:/\$\d+/},T];c.contains=M.concat({begin:/\{/,end:/\}/,keywords:l,contains:["self"].concat(M)});const P=[].concat(B,c.contains),k=P.concat([{begin:/(\s*)\(/,end:/\)/,keywords:l,contains:["self"].concat(P)}]),X={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:k},ge={variants:[{match:[/class/,/\s+/,i,/\s+/,/extends/,/\s+/,s.concat(i,"(",s.concat(/\./,i),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,i],scope:{1:"keyword",3:"title.class"}}]},ae={relevance:0,match:s.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:{_:[...Dt,...Bt]}},ne={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},be={variants:[{match:[/function/,/\s+/,i,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[X],illegal:/%/},Ee={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function fe(U){return s.concat("(?!",U.join("|"),")")}const I={match:s.concat(/\b/,fe([...$t,"super","import"].map(U=>`${U}\\s*\\(`)),i,s.lookahead(/\s*\(/)),className:"title.function",relevance:0},G={begin:s.concat(/\./,s.lookahead(s.concat(i,/(?![0-9A-Za-z$_(])/))),end:i,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},V={match:[/get|set/,/\s+/,i,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},X]},q="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",xe={match:[/const|var|let/,/\s+/,i,/\s*/,/=\s*/,/(async\s*)?/,s.lookahead(q)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[X]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:l,exports:{PARAMS_CONTAINS:k,CLASS_REFERENCE:ae},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),ne,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,f,v,A,b,B,{match:/\$\d+/},T,ae,{scope:"attr",match:i+s.lookahead(":"),relevance:0},xe,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[B,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:l,contains:k}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:g.begin,end:g.end},{match:E},{begin:_.begin,"on:begin":_.isTrulyOpeningTag,end:_.end}],subLanguage:"xml",contains:[{begin:_.begin,end:_.end,skip:!0,contains:["self"]}]}]},be,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[X,e.inherit(e.TITLE_MODE,{begin:i,className:"title.function"})]},{match:/\.\.\./,relevance:0},G,{match:"\\$"+i,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[X]},I,Ee,ge,V,{match:/\$[(.]/}]}}function Wn(e){const s=e.regex,a=Ma(e),i=rn,g=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],E={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},_={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:g},contains:[a.exports.CLASS_REFERENCE]},l={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},h=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],u={$pattern:rn,keyword:Lt.concat(h),literal:kt,built_in:Ut.concat(g),"variable.language":Pt},y={className:"meta",begin:"@"+i},T=(A,b,C)=>{const B=A.contains.findIndex(M=>M.label===b);if(B===-1)throw new Error("can not find mode to replace");A.contains.splice(B,1,C)};Object.assign(a.keywords,u),a.exports.PARAMS_CONTAINS.push(y);const c=a.contains.find(A=>A.scope==="attr"),f=Object.assign({},c,{match:s.concat(i,s.lookahead(/\s*\?:/))});a.exports.PARAMS_CONTAINS.push([a.exports.CLASS_REFERENCE,c,f]),a.contains=a.contains.concat([y,E,_,f]),T(a,"shebang",e.SHEBANG()),T(a,"use_strict",l);const v=a.contains.find(A=>A.label==="func.def");return v.relevance=0,Object.assign(a,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),a}function La(e){const s={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},a={match:/[{}[\],:]/,className:"punctuation",relevance:0},i=["true","false","null"],g={scope:"literal",beginKeywords:i.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:i},contains:[s,a,e.QUOTE_STRING_MODE,g,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}function ka(e){const s=e.regex,a="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",i="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",_={$pattern:a,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"]},l={className:"subst",begin:/#\{/,end:/\}/,keywords:_},h={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},y={match:/\\[\s\S]/,scope:"char.escape",relevance:0},T=`[/|([{<"']`,c=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin:/</,end:/>/}],f=k=>({scope:"char.escape",begin:s.concat(/\\/,k),relevance:0}),v={className:"string",begin:"~[a-z](?="+T+")",contains:c.map(k=>e.inherit(k,{contains:[f(k.end),y,l]}))},A={className:"string",begin:"~[A-Z](?="+T+")",contains:c.map(k=>e.inherit(k,{contains:[f(k.end)]}))},b={className:"regex",variants:[{begin:"~r(?="+T+")",contains:c.map(k=>e.inherit(k,{end:s.concat(k.end,/[uismxfU]{0,7}/),contains:[f(k.end),y,l]}))},{begin:"~R(?="+T+")",contains:c.map(k=>e.inherit(k,{end:s.concat(k.end,/[uismxfU]{0,7}/),contains:[f(k.end)]}))}]},C={className:"string",contains:[e.BACKSLASH_ESCAPE,l],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:/"/}]},B={className:"function",beginKeywords:"def defp defmacro defmacrop",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:a,endsParent:!0})]},M=e.inherit(B,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),P=[C,b,A,v,e.HASH_COMMENT_MODE,M,B,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[C,{begin:i}],relevance:0},{className:"symbol",begin:a+":(?!:)",relevance:0},{className:"title.class",begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},h,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"}];return l.contains=P,{name:"Elixir",aliases:["ex","exs"],keywords:_,contains:P}}var $e="[0-9](_*[0-9])*",en=`\\.(${$e})`,nn="[0-9a-fA-F](_*[0-9a-fA-F])*",mt={className:"number",variants:[{begin:`(\\b(${$e})((${en})|\\.)?|(${en}))[eE][+-]?(${$e})[fFdD]?\\b`},{begin:`\\b(${$e})((${en})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${en})[fFdD]?\\b`},{begin:`\\b(${$e})[fFdD]\\b`},{begin:`\\b0[xX]((${nn})\\.?|(${nn})?\\.(${nn}))[pP][+-]?(${$e})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${nn})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function Ft(e,s,a){return a===-1?"":e.replace(s,i=>Ft(e,s,a-1))}function Da(e){const s=e.regex,a="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",i=a+Ft("(?:<"+a+"~~~(?:\\s*,\\s*"+a+"~~~)*>)?",/~~~/g,2),h={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","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},u={className:"meta",begin:"@"+a,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},y={className:"params",begin:/\(/,end:/\)/,keywords:h,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:h,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+/,a],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[s.concat(/(?!else)/,a),/\s+/,a,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,a],className:{1:"keyword",3:"title.class"},contains:[y,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+i+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:h,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:h,relevance:0,contains:[u,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,mt,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},mt,u]}}function jt(e){return e?typeof e=="string"?e:e.source:null}function He(e){return H("(?=",e,")")}function H(...e){return e.map(a=>jt(a)).join("")}function Ba(e){const s=e[e.length-1];return typeof s=="object"&&s.constructor===Object?(e.splice(e.length-1,1),s):{}}function de(...e){return"("+(Ba(e).capture?"":"?:")+e.map(i=>jt(i)).join("|")+")"}const Zn=e=>H(/\b/,e,/\w$/.test(e)?/\b/:/\B/),$a=["Protocol","Type"].map(Zn),Et=["init","self"].map(Zn),Pa=["Any","Self"],Rn=["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"],ht=["false","nil","true"],Ua=["assignment","associativity","higherThan","left","lowerThan","none","right"],Fa=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],_t=["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"],Kt=de(/[/=\-+!*%<>&|^~?]/,/[\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]/),Ht=de(Kt,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),Cn=H(Kt,Ht,"*"),zt=de(/[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]/),cn=de(zt,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),Ne=H(zt,cn,"*"),tn=H(/[A-Z]/,cn,"*"),ja=["attached","autoclosure",H(/convention\(/,de("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",H(/objc\(/,Ne,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],Ka=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function Ha(e){const s={match:/\s+/,relevance:0},a=e.COMMENT("/\\*","\\*/",{contains:["self"]}),i=[e.C_LINE_COMMENT_MODE,a],g={match:[/\./,de(...$a,...Et)],className:{2:"keyword"}},E={match:H(/\./,de(...Rn)),relevance:0},_=Rn.filter(K=>typeof K=="string").concat(["_|0"]),l=Rn.filter(K=>typeof K!="string").concat(Pa).map(Zn),h={variants:[{className:"keyword",match:de(...l,...Et)}]},u={$pattern:de(/\b\w+/,/#\w+/),keyword:_.concat(Fa),literal:ht},y=[g,E,h],T={match:H(/\./,de(..._t)),relevance:0},c={className:"built_in",match:H(/\b/,de(..._t),/(?=\()/)},f=[T,c],v={match:/->/,relevance:0},A={className:"operator",relevance:0,variants:[{match:Cn},{match:`\\.(\\.|${Ht})+`}]},b=[v,A],C="([0-9]_*)+",B="([0-9a-fA-F]_*)+",M={className:"number",relevance:0,variants:[{match:`\\b(${C})(\\.(${C}))?([eE][+-]?(${C}))?\\b`},{match:`\\b0x(${B})(\\.(${B}))?([pP][+-]?(${C}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},P=(K="")=>({className:"subst",variants:[{match:H(/\\/,K,/[0\\tnr"']/)},{match:H(/\\/,K,/u\{[0-9a-fA-F]{1,8}\}/)}]}),k=(K="")=>({className:"subst",match:H(/\\/,K,/[\t ]*(?:[\r\n]|\r\n)/)}),X=(K="")=>({className:"subst",label:"interpol",begin:H(/\\/,K,/\(/),end:/\)/}),ge=(K="")=>({begin:H(K,/"""/),end:H(/"""/,K),contains:[P(K),k(K),X(K)]}),ae=(K="")=>({begin:H(K,/"/),end:H(/"/,K),contains:[P(K),X(K)]}),ne={className:"string",variants:[ge(),ge("#"),ge("##"),ge("###"),ae(),ae("#"),ae("##"),ae("###")]},be=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],Ee={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:be},fe=K=>{const Le=H(K,/\//),Ce=H(/\//,K);return{begin:Le,end:Ce,contains:[...be,{scope:"comment",begin:`#(?!.*${Ce})`,end:/$/}]}},I={scope:"regexp",variants:[fe("###"),fe("##"),fe("#"),Ee]},G={match:H(/`/,Ne,/`/)},V={className:"variable",match:/\$\d+/},q={className:"variable",match:`\\$${cn}+`},xe=[G,V,q],U={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:Ka,contains:[...b,M,ne]}]}},ie={scope:"keyword",match:H(/@/,de(...ja),He(de(/\(/,/\s+/)))},ue={scope:"meta",match:H(/@/,Ne)},ce=[U,ie,ue],oe={match:He(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:H(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,cn,"+")},{className:"type",match:tn,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:H(/\s+&\s+/,He(tn)),relevance:0}]},Ae={begin:/</,end:/>/,keywords:u,contains:[...i,...y,...ce,v,oe]};oe.contains.push(Ae);const ln={match:H(Ne,/\s*:/),keywords:"_|0",relevance:0},We={begin:/\(/,end:/\)/,relevance:0,keywords:u,contains:["self",ln,...i,I,...y,...f,...b,M,ne,...xe,...ce,oe]},je={begin:/</,end:/>/,keywords:"repeat each",contains:[...i,oe]},un={begin:de(He(H(Ne,/\s*:/)),He(H(Ne,/\s+/,Ne,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:Ne}]},Ze={begin:/\(/,end:/\)/,keywords:u,contains:[un,...i,...y,...b,M,ne,...ce,oe,We],endsParent:!0,illegal:/["']/},Yn={match:[/(func|macro)/,/\s+/,de(G.match,Ne,Cn)],className:{1:"keyword",3:"title.function"},contains:[je,Ze,s],illegal:[/\[/,/%/]},Me={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[je,Ze,s],illegal:/\[|%/},dn={match:[/operator/,/\s+/,Cn],className:{1:"keyword",3:"title"}},gn={begin:[/precedencegroup/,/\s+/,tn],className:{1:"keyword",3:"title"},contains:[oe],keywords:[...Ua,...ht],end:/}/},pn={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},bn={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},fn={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,Ne,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:u,contains:[je,...y,{begin:/:/,end:/\{/,keywords:u,contains:[{scope:"title.class.inherited",match:tn},...y],relevance:0}]};for(const K of ne.variants){const Le=K.contains.find(mn=>mn.label==="interpol");Le.keywords=u;const Ce=[...y,...f,...b,M,ne,...xe];Le.contains=[...Ce,{begin:/\(/,end:/\)/,contains:["self",...Ce]}]}return{name:"Swift",keywords:u,contains:[...i,Yn,Me,pn,bn,fn,dn,gn,{beginKeywords:"import",end:/$/,contains:[...i],relevance:0},I,...y,...f,...b,M,ne,...xe,...ce,oe,We]}}function Gt(e){const s={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+"},a=/[a-zA-Z@][a-zA-Z0-9_]*/,l={"variable.language":["this","super"],$pattern:a,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"]},h={$pattern:a,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:l,illegal:"</",contains:[s,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:"("+h.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:h,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}var Pe="[0-9](_*[0-9])*",sn=`\\.(${Pe})`,an="[0-9a-fA-F](_*[0-9a-fA-F])*",za={className:"number",variants:[{begin:`(\\b(${Pe})((${sn})|\\.)?|(${sn}))[eE][+-]?(${Pe})[fFdD]?\\b`},{begin:`\\b(${Pe})((${sn})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${sn})[fFdD]?\\b`},{begin:`\\b(${Pe})[fFdD]\\b`},{begin:`\\b0[xX]((${an})\\.?|(${an})?\\.(${an}))[pP][+-]?(${Pe})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${an})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function Wt(e){const s={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"},a={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},i={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},g={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},E={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},_={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[E,g]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,E,g]}]};g.contains.push(_);const l={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},h={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(_,{className:"string"}),"self"]}]},u=za,y=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),T={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},c=T;return c.variants[1].contains=[T],T.variants[1].contains=[c],{name:"Kotlin",aliases:["kt","kts"],keywords:s,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,y,a,i,l,h,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:s,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:s,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[T,e.C_LINE_COMMENT_MODE,y],relevance:0},e.C_LINE_COMMENT_MODE,y,l,h,_,e.C_NUMBER_MODE]},y]},{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},l,h]},_,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
|
|
4
4
|
`},u]}}function Zt(e){const s=["package","import","option","optional","required","repeated","group","oneof"],a=["double","float","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","bool","string","bytes"],i={match:[/(message|enum|service)\s+/,e.IDENT_RE],scope:{1:"keyword",2:"title.class"}};return{name:"Protocol Buffers",aliases:["proto"],keywords:{keyword:s,type:a,literal:["true","false"]},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,{className:"function",beginKeywords:"rpc",end:/[{;]/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}function Yt(e){const s=e.regex,a=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),i=["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"],l={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:i,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"]},h={className:"meta",begin:/^(>>>|\.\.\.) /},u={className:"subst",begin:/\{/,end:/\}/,keywords:l,illegal:/#/},y={begin:/\{\{/,relevance:0},T={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,h],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,h],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,h,y,u]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,h,y,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,y,u]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,y,u]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},c="[0-9](_?[0-9])*",f=`(\\b(${c}))?\\.(${c})|\\b(${c})\\.`,v=`\\b|${i.join("|")}`,A={className:"number",relevance:0,variants:[{begin:`(\\b(${c})|(${f}))[eE][+-]?(${c})[jJ]?(?=${v})`},{begin:`(${f})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${v})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${v})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${v})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${v})`},{begin:`\\b(${c})[jJ](?=${v})`}]},b={className:"comment",begin:s.lookahead(/# type:/),end:/$/,keywords:l,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},C={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:["self",h,A,T,e.HASH_COMMENT_MODE]}]};return u.contains=[T,A,h],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:l,illegal:/(<\/|\?)|=>/,contains:[h,A,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},T,b,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,a],scope:{1:"keyword",3:"title.function"},contains:[C]},{variants:[{match:[/\bclass/,/\s+/,a,/\s*/,/\(\s*/,a,/\s*\)/]},{match:[/\bclass/,/\s+/,a]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[A,C,T]}]}}function qt(e){const s="true false yes no null",a="[\\w#;/?:@&=+$,.~*'()[\\]]+",i={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},g={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},E={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},_={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,g]},l=e.inherit(_,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),c={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"},f={end:",",endsWithParent:!0,excludeEnd:!0,keywords:s,relevance:0},v={begin:/\{/,end:/\}/,contains:[f],illegal:"\\n",relevance:0},A={begin:"\\[",end:"\\]",contains:[f],illegal:"\\n",relevance:0},b=[i,{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+!"+a},{className:"type",begin:"!<"+a+">"},{className:"type",begin:"!"+a},{className:"type",begin:"!!"+a},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:s,keywords:{literal:s}},c,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},v,A,E,_],C=[...b];return C.pop(),C.push(l),f.contains=C,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:b}}function Xt(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function Vt(e){const s=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:s.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:s.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 Jt(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function Ga(e){const s=e.regex,a={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},i={begin:"^[-\\*]{3,}",end:"$"},g={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}]},E={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},_={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},l=/[A-Za-z][A-Za-z0-9+.-]*/,h={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:s.concat(/\[.+?\]\(/,l,/:\/\/.*?\)/),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}/}]},y={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},T=e.inherit(u,{contains:[]}),c=e.inherit(y,{contains:[]});u.contains.push(c),y.contains.push(T);let f=[a,h];return[u,y,T,c].forEach(C=>{C.contains=C.contains.concat(f)}),f=f.concat(u,y),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:f},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:f}]}]},a,E,u,y,{className:"quote",begin:"^>\\s+",contains:f,end:"$"},g,i,h,_,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}const Wa=ve("div")`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as g,bm as v,u as y,j as r,O as f,S as x,Q as h}from"./index-
|
|
1
|
+
import{A as g,bm as v,u as y,j as r,O as f,S as x,Q as h}from"./index-cRUZeoHS.js";import{L as S,D as j}from"./download-D4DkvHBX.js";import{u as L}from"./useLocalStorage-DmhieRfi.js";import"./ButtonGroup-Bt7SjPF2.js";import"./getValidReactChildren-DBOod-PS.js";function I(){const c=g(),[s,i]=L("server-logs-filter",{name:"abtnode",type:{abtnode:"error"}}),{name:t=s.name}=v(),{info:l}=y(),n=l.routing.provider,a=[{id:"abtnode",name:"Blocklet Server",types:["error","info","access","stdout","stderr","pm2"]},{id:"blocklet-services",name:"Blocklet Services",types:["error","info","access","stdout","stderr"]}];if(n){const e=`Service Gateway(${n})`;a.push({id:`service-gateway-${n}`,name:e,types:["error","access","security"]})}const d=e=>{i({...s,name:e.target.value}),c(`/logs/${e.target.value}`)},m=r.jsx(f,{sx:{minWidth:240},children:r.jsx(x,{value:t,onChange:d,size:"small",children:a.map(e=>r.jsx(h,{value:e.id,children:e.name},e.id))})}),o=a.find(e=>e.id===t)||a[0],p=o.types.indexOf(s.type[t]||"error"),u=e=>{i({name:t,type:{...s.type,[t]:e}})};return r.jsx(S,{name:o.name,logId:o.id,types:o.types,prepend:m,postpend:r.jsx(j,{id:l.did,name:"blocklet-server"}),defaultTypeIndex:p,onTypeChange:u},o.id)}export{I as default};
|