@abtnode/webapp 1.16.33 → 1.16.34-beta-20241120-080738-bbbe036c
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/README.md +1 -1
- package/blocklet.js +1 -1
- package/blocklet.yml +1 -1
- package/dist/assets/{Add-1IpBHqiQ.js → Add-Dh_DeTW0.js} +1 -1
- package/dist/assets/{ArrowDropDown-CO_v_gGe.js → ArrowDropDown-CFRRmuNz.js} +1 -1
- package/dist/assets/{Autocomplete-BNAhky76.js → Autocomplete-BBeQ6-hj.js} +1 -1
- package/dist/assets/{Breadcrumbs-bwWUdzXH.js → Breadcrumbs-la_h0jmE.js} +1 -1
- package/dist/assets/{ButtonGroup-6y7yf9hV.js → ButtonGroup-stQLgH3W.js} +1 -1
- package/dist/assets/{CSSTransition-DnBIou_i.js → CSSTransition-CLx0i89t.js} +1 -1
- package/dist/assets/{CheckCircle-D7oERMFD.js → CheckCircle-Cnr4La0N.js} +1 -1
- package/dist/assets/{ChevronLeft-BphFdKoe.js → ChevronLeft-46fJs4Nx.js} +1 -1
- package/dist/assets/{ChevronRight-CLG1ay4A.js → ChevronRight-CAETeava.js} +1 -1
- package/dist/assets/{Close-DaUTq1SJ.js → Close-DTQrAVX4.js} +1 -1
- package/dist/assets/{Delete-Ctg2zeKs.js → Delete-BF5FxXLc.js} +1 -1
- package/dist/assets/{DeleteOutline-BlYvTbWy.js → DeleteOutline-DPxWTBB6.js} +1 -1
- package/dist/assets/{Done-CaIeE7qp.js → Done-DOjWCsLg.js} +1 -1
- package/dist/assets/{Edit-Df1qVd3M.js → Edit-B3-Fr9Tj.js} +1 -1
- package/dist/assets/{EditIcon-RrUDe7G9.js → EditIcon-BrPLxRwL.js} +1 -1
- package/dist/assets/{ExpandMore-v0D4A-jC.js → ExpandMore-CVyKHY4x.js} +1 -1
- package/dist/assets/{Google-1CqVsK9-.js → Google-Cnxb_l0p.js} +1 -1
- package/dist/assets/{HelpOutline-D2GlWrSn.js → HelpOutline-6TC2ROi9.js} +1 -1
- package/dist/assets/{Https-CnQMz8bU.js → Https-DnghL9tF.js} +1 -1
- package/dist/assets/{InputAdornment-CZ1xQxbJ.js → InputAdornment-BZCjodnq.js} +1 -1
- package/dist/assets/{InputLabel-CBKMP0kd.js → InputLabel-do0oj_cA.js} +1 -1
- package/dist/assets/{LastPage-O0R3NHtX.js → LastPage-BUGLoStw.js} +1 -1
- package/dist/assets/{Launch-BSF3J60R.js → Launch-DFcuOomh.js} +1 -1
- package/dist/assets/{Link-v9IWh6cd.js → Link-CSWVpt77.js} +1 -1
- package/dist/assets/{ListSubheader-CIqta_y7.js → ListSubheader-UNIM44v3.js} +1 -1
- package/dist/assets/{LoadingButton-DyT3S3FL.js → LoadingButton-D_RPeOOx.js} +1 -1
- package/dist/assets/{LockIcon-YcQjwpaB.js → LockIcon-B1ad8URq.js} +1 -1
- package/dist/assets/{Loop-CyRqHFwv.js → Loop-WIH3HPCS.js} +1 -1
- package/dist/assets/{MoreHoriz-BuJY4jyH.js → MoreHoriz-Du5Tf-OZ.js} +1 -1
- package/dist/assets/{MoreVert-B-UcAPyF.js → MoreVert-CQDScAiQ.js} +1 -1
- package/dist/assets/{Pagination-DCfuW4XM.js → Pagination-BcMuhf2X.js} +1 -1
- package/dist/assets/{Public-Dwmx99ns.js → Public-CP2wvAUH.js} +1 -1
- package/dist/assets/{SchemaReference.es-MroxBk7t.js → SchemaReference.es-SxViH3rT.js} +1 -1
- package/dist/assets/{Search-cMjY7-w9.js → Search-DIjK_pEi.js} +1 -1
- package/dist/assets/{Select-DMrgQlpi.js → Select-BjFMRCFC.js} +1 -1
- package/dist/assets/{Skeleton-D9vyaoYF.js → Skeleton-CWJ5kMp8.js} +1 -1
- package/dist/assets/{Slider-Dkmvlog2.js → Slider-Doh2hHer.js} +1 -1
- package/dist/assets/{Stepper-4TPScSpn.js → Stepper-DcyZplpy.js} +1 -1
- package/dist/assets/{TextField-Ck96Zj1i.js → TextField-CffC6XHW.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-Bx3WaqEd.js → ToggleButtonGroup-DPzxadRI.js} +1 -1
- package/dist/assets/{ViewColumn-Dh3y3SOn.js → ViewColumn-81MArwOv.js} +1 -1
- package/dist/assets/{ViewList-CSwdI9xa.js → ViewList-C2PZp7Ah.js} +1 -1
- package/dist/assets/{_createAggregator-CC8samq7.js → _createAggregator-h86wTnGB.js} +1 -1
- package/dist/assets/{actions-DCoY4ND_.js → actions-Bx59OiFa.js} +1 -1
- package/dist/assets/actions-j2SGu6Ou.js +11 -0
- package/dist/assets/{agreement-Dm4gD1iv.js → agreement-XlWwj2S4.js} +1 -1
- package/dist/assets/api-Di8RsrU-.js +1 -0
- package/dist/assets/{app-avatar-rCMCHSVi.js → app-avatar-kyTZFM62.js} +1 -1
- package/dist/assets/{audit-logs-7Liwu019.js → audit-logs-CqPNdVpf.js} +1 -1
- package/dist/assets/{base32-7h1_w7qX.js → base32-Kw73pSzm.js} +1 -1
- package/dist/assets/blocklet-CpvMNcyR.js +1 -0
- package/dist/assets/{brace-fold.es-Cu37dStD.js → brace-fold.es-dNadKjdU.js} +1 -1
- package/dist/assets/{bundle-avatar-BGPsgY2n.js → bundle-avatar-DVvrB_hk.js} +1 -1
- package/dist/assets/{chart-CVsNPRkp.js → chart-8UOrjLJn.js} +1 -1
- package/dist/assets/{click-to-copy-A5WCwDlw.js → click-to-copy-BHPvbJ6H.js} +1 -1
- package/dist/assets/{closebrackets.es-CTJZzL0l.js → closebrackets.es-Cy6yh08f.js} +1 -1
- package/dist/assets/{codemirror.es-DNZDhAgz.js → codemirror.es-22B2FS1I.js} +1 -1
- package/dist/assets/{comment.es-FqVc1tUC.js → comment.es-CPuWlK9d.js} +1 -1
- package/dist/assets/{config-navigation-TqkqgYat.js → config-navigation-B8rbcuth.js} +1 -1
- package/dist/assets/{connect-to-BYaKsqLT.js → connect-to-iWwfwBUr.js} +1 -1
- package/dist/assets/{delete-confirm-CSfka7us.js → delete-confirm-BvTjtXVg.js} +1 -1
- package/dist/assets/{detail-Cl_ipErR.js → detail-CbgKOW0-.js} +3 -3
- package/dist/assets/{dialog.es-B2g1Md2H.js → dialog.es-C2q4_MT5.js} +1 -1
- package/dist/assets/{download-rfA-BgeB.js → download-B57AHfX0.js} +1 -1
- package/dist/assets/emotion-react.browser.esm-7BXVq9Fp.js +1 -0
- package/dist/assets/{foldgutter.es-CDRazssP.js → foldgutter.es-YTVPMmZG.js} +1 -1
- package/dist/assets/getValidReactChildren-B0SBEHgb.js +1 -0
- package/dist/assets/{hint.es-DPt0iO5-.js → hint.es-DzlqosAN.js} +1 -1
- package/dist/assets/{hint.es2-Cb56J6wD.js → hint.es2-C0dFJXPn.js} +1 -1
- package/dist/assets/{iframe-Dkdmu2fU.js → iframe-CNi4eFHU.js} +1 -1
- package/dist/assets/{index-r95Ymzg4.js → index--381hgpI.js} +1 -1
- package/dist/assets/{index-CpGwNSQ5.js → index-0asJnBTm.js} +1 -1
- package/dist/assets/{index-Ca9M3B8h.js → index-2wQ3tu6m.js} +1 -1
- package/dist/assets/{index-DB5iie93.js → index-B0wMsD8P.js} +3 -3
- package/dist/assets/{index-CId0olRH.js → index-BD-_sxeY.js} +1 -1
- package/dist/assets/{index-DYxj4bsg.js → index-BJnzhtRd.js} +3 -3
- package/dist/assets/{index-BHnQz9ut.js → index-BLAXOuyV.js} +1 -1
- package/dist/assets/{index-BkQeHFWv.js → index-BMDwhPjF.js} +1 -1
- package/dist/assets/{index-Cx0pTn8V.js → index-BPwHguXO.js} +1 -1
- package/dist/assets/{index-C_H-un3r.js → index-BRubCfOC.js} +1 -1
- package/dist/assets/{index-D8yTZoR9.js → index-BTUjLSxo.js} +1 -1
- package/dist/assets/{index-D6rWCRih.js → index-BZIaRptn.js} +1 -1
- package/dist/assets/{index-B4FJ57Sl.js → index-B_neISJG.js} +1 -1
- package/dist/assets/{index-BvGfyxwm.js → index-BfSSkn6W.js} +1 -1
- package/dist/assets/{index-BessETTM.js → index-Bgd6dClm.js} +1 -1
- package/dist/assets/{index-Deih0d9w.js → index-BkDozNly.js} +1 -1
- package/dist/assets/{index-BALhaKtR.js → index-BkrLS-vH.js} +1 -1
- package/dist/assets/{index-BmJR2grL.js → index-Btxwim6f.js} +3 -3
- package/dist/assets/{index-Bn9YgWiZ.js → index-BweS_goE.js} +1 -1
- package/dist/assets/{index-j0AXsS2r.js → index-BxngBW5S.js} +1 -1
- package/dist/assets/{index-fqtLEedX.js → index-C0airVMt.js} +1 -1
- package/dist/assets/{index-CFR1XYQc.js → index-C4dTigzK.js} +1 -1
- package/dist/assets/{index-D4yD9wCL.js → index-CMZcjkA4.js} +1 -1
- package/dist/assets/{index-BcaBGkyp.js → index-CP7qtUGh.js} +1 -1
- package/dist/assets/{index-B3esz3LS.js → index-CTU8UxFT.js} +1 -1
- package/dist/assets/{index-B2tDACFP.js → index-Cb9RaNpS.js} +1 -1
- package/dist/assets/{index-67oWSwtN.js → index-Cbh5ETtr.js} +1 -1
- package/dist/assets/{index-DMjshc-U.js → index-CcXQVpnD.js} +1 -1
- package/dist/assets/{index-msCsCKKf.js → index-ChZGJi2F.js} +1 -1
- package/dist/assets/index-CkXRE3yy.js +5 -0
- package/dist/assets/{index-xwOBGVcu.js → index-D-ozzI7w.js} +1 -1
- package/dist/assets/{index-BkDbIMQb.js → index-DEPIq3Ep.js} +3 -3
- package/dist/assets/{index-DhjpRk6v.js → index-DHcEznQE.js} +1 -1
- package/dist/assets/{index-kGpBMKCz.js → index-DHf3-jHo.js} +1 -1
- package/dist/assets/{index-D-hrDvN6.js → index-DVCF6ypc.js} +1 -1
- package/dist/assets/{index-DtvC5owf.js → index-DpaWBoah.js} +1 -1
- package/dist/assets/{index-Fu4xuw11.js → index-DrtnF2Ne.js} +1 -1
- package/dist/assets/{index-DLagUrz3.js → index-T3PzDQk5.js} +1 -1
- package/dist/assets/{index-CNd74BR0.js → index-Un4UNZxQ.js} +1 -1
- package/dist/assets/{index-DfFXqsLX.js → index-bw-c4iIy.js} +1 -1
- package/dist/assets/{index-qcRGUCNe.js → index-c9RCKtxM.js} +5 -5
- package/dist/assets/{index-Bl77Q4pX.js → index-cFdzntdI.js} +1 -1
- package/dist/assets/{index-DVhqctGu.js → index-cJ8AIyQl.js} +1 -1
- package/dist/assets/index-srZBzsVC.js +23 -0
- package/dist/assets/{index-B6A5anpq.js → index-z7L9EHH-.js} +1 -1
- package/dist/assets/{index.esm-COz0rluF.js → index.esm-Ckwd_Oui.js} +1 -1
- package/dist/assets/{info-addon.es-BKKs8WFv.js → info-addon.es-BohNUKc-.js} +1 -1
- package/dist/assets/{info.es-C7gsHsn9.js → info.es-BnW1Do_Y.js} +1 -1
- package/dist/assets/{install-from-url-q76xLrvq.js → install-from-url-BiicPj9r.js} +1 -1
- package/dist/assets/{invitation-BW39GEcj.js → invitation-B6Icjnbl.js} +1 -1
- package/dist/assets/{is-path-prefix-equal-DWPB--12.js → is-path-prefix-equal-C2z6ul9S.js} +1 -1
- package/dist/assets/{item-DVTe-0gW.js → item-CtFxCPVi.js} +4 -4
- package/dist/assets/{javascript.es-CeTA0JKb.js → javascript.es-BwfQfmqf.js} +1 -1
- package/dist/assets/{jump-to-line.es-a_ngctA3.js → jump-to-line.es-DW43cy5p.js} +1 -1
- package/dist/assets/{jump.es-BWFjhcCo.js → jump.es-BUWLv8sH.js} +1 -1
- package/dist/assets/{lint.es-0gIIjnyf.js → lint.es-CUD4uJk8.js} +1 -1
- package/dist/assets/{lint.es2-CK1foe9-.js → lint.es2-Ctzkd-tt.js} +1 -1
- package/dist/assets/{lint.es3-B47_eujS.js → lint.es3-D6NsAVnc.js} +1 -1
- package/dist/assets/{list-header-CAC5y8Zb.js → list-header-D2LZ98zO.js} +1 -1
- package/dist/assets/{log-D9Z8kQgA.js → log-BUmAf7kF.js} +1 -1
- package/dist/assets/{logo-uploader-BGLx9vI_.js → logo-uploader-C63-zwbL.js} +3 -3
- package/dist/assets/{lottie-react.esm-BJprpjVk.js → lottie-react.esm-ZfnMm-33.js} +1 -1
- package/dist/assets/{matchbrackets.es-UzgJNlKv.js → matchbrackets.es-CqNvocTD.js} +1 -1
- package/dist/assets/{memory-ZSDA0OPQ.js → memory-Bd4JzDMd.js} +1 -1
- package/dist/assets/{mode.es-1zi4TBuR.js → mode.es-CGqn8n8L.js} +1 -1
- package/dist/assets/{mode.es2-BYT5Jd2Q.js → mode.es2-CMlQj1rc.js} +1 -1
- package/dist/assets/{mode.es3-BQkosdMI.js → mode.es3-BKGLApK7.js} +1 -1
- package/dist/assets/{onlineParser.es-BQLNL2qV.js → onlineParser.es-CmEFRZkl.js} +1 -1
- package/dist/assets/{overview-21qvx5BN.js → overview-DyU-Gr76.js} +1 -1
- package/dist/assets/{redux-D0hsiq_w.js → redux-uxGspPZE.js} +1 -1
- package/dist/assets/{resource-dialog-BoHq8v69.js → resource-dialog-BUSTiKav.js} +1 -1
- package/dist/assets/{runtime-Bd-F8WXx.js → runtime-rQYdRlsi.js} +1 -1
- package/dist/assets/{schema-B0T6A2Gz.js → schema-BDun2IRa.js} +1 -1
- package/dist/assets/sdk-DOSc1EPd.js +1 -0
- package/dist/assets/{search.es-BRUyj6I8.js → search.es-D6OrQ2zK.js} +1 -1
- package/dist/assets/{searchcursor.es-DzF-ECNC.js → searchcursor.es-BLA8FXL_.js} +1 -1
- package/dist/assets/{service-CufKunUa.js → service-nYvoJZ4V.js} +1 -1
- package/dist/assets/{shorten-label-BmNhwxO2.js → shorten-label-DZ9hQKJE.js} +1 -1
- package/dist/assets/{show-hint.es-_DytH3OZ.js → show-hint.es-CBMrYmmg.js} +1 -1
- package/dist/assets/{simple-select-DQMt4spB.js → simple-select-wsKOgQkD.js} +1 -1
- package/dist/assets/{slicedToArray-BsFyrH9P.js → slicedToArray-CDGik_Tm.js} +1 -1
- package/dist/assets/{spaces-BH8l3rDt.js → spaces-DztvnP2G.js} +1 -1
- package/dist/assets/{status-BwD-EBJu.js → status-_kkqAfEb.js} +1 -1
- package/dist/assets/{sublime.es-Dwi03jzh.js → sublime.es-CUR6yVxx.js} +1 -1
- package/dist/assets/{switch-control-B41nAAlH.js → switch-control-xOZw1m8W.js} +1 -1
- package/dist/assets/{table-icons-DLP-yfOz.js → table-icons-CBn5a_I0.js} +1 -1
- package/dist/assets/{team-C9C-b8dk.js → team-DvBIHwmh.js} +1 -1
- package/dist/assets/{toUpper-CRVjMgiU.js → toUpper-BOYZhoca.js} +1 -1
- package/dist/assets/{traffic-2e_bhX4O.js → traffic-BLoZjYrO.js} +1 -1
- package/dist/assets/{trim-a3cAMo7n.js → trim-BIGD4a61.js} +1 -1
- package/dist/assets/{uniqBy-COL9eNcG.js → uniqBy-4pHrjjeb.js} +1 -1
- package/dist/assets/{url-evaluation-_cliB2H6.js → url-evaluation-C1MAR5hw.js} +1 -1
- package/dist/assets/{url-join-BN5FuiJc.js → url-join-pEynD2Ji.js} +1 -1
- package/dist/assets/{useLocalStorage-BHwD0007.js → useLocalStorage-CQuk9gV7.js} +1 -1
- package/dist/assets/{useThemeProps-D02eSTIA.js → useThemeProps-BHp4rQcT.js} +1 -1
- package/dist/assets/{util-dakRC-rv.js → util-D9I2y3jU.js} +1 -1
- package/dist/assets/{wait-container-CvST8QRD.js → wait-container-BCP-KbSz.js} +1 -1
- package/dist/assets/{withStyles-GBXoa1NK.js → withStyles-7lCw-2jD.js} +1 -1
- package/dist/assets/{wrap-locale-_cUmGXc1.js → wrap-locale-Drqc-Zcp.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +1 -1
- package/dist/assets/actions-CYK55IDo.js +0 -11
- package/dist/assets/api-C59NHs3o.js +0 -1
- package/dist/assets/blocklet-q3h8NbCP.js +0 -1
- package/dist/assets/emotion-react.browser.esm-BNqOuiVX.js +0 -1
- package/dist/assets/getValidReactChildren-BxcBBj68.js +0 -1
- package/dist/assets/index-Bh8rfP9m.js +0 -23
- package/dist/assets/index-DoOoNVVw.js +0 -6
- package/dist/assets/sdk-CFjHlo2e.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{bo as S,r as u,j as t,A as I,q as M,C as B,N as b,Q as R,n as W,aw as E,m as f,M as N,T as z,fy as O,F}from"./index-
|
|
1
|
+
import{bo as S,r as u,j as t,A as I,q as M,C as B,N as b,Q as R,n as W,aw as E,m as f,M as N,T as z,fy as O,F}from"./index-BJnzhtRd.js";import{c as U,v as D,p as G,s as C,M as Z}from"./index--381hgpI.js";import{E as H}from"./index-cJ8AIyQl.js";import{_ as K}from"./useLocalStorage-CQuk9gV7.js";import{F as X,S as q}from"./Select-BjFMRCFC.js";import{I as Q}from"./InputLabel-do0oj_cA.js";import{P as J}from"./Pagination-BcMuhf2X.js";import"./LastPage-BUGLoStw.js";const V=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,Y=/^[a-zA-Z]:\\/;function ee(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return Y.test(e)?!1:V.test(e)}const te=["http","https"],re=["nofollow"],se={};function ae(e){const r=e||se,o=r.protocols||te,n=U(r.test);return function(p){D(p,"element",function(s,i,c){if(s.tagName==="a"&&typeof s.properties.href=="string"&&n(s,i,c)){const a=s.properties.href;if(ee(a)?o.includes(a.slice(0,a.indexOf(":"))):a.startsWith("//")){const l=x(r.content,s),y=l&&!Array.isArray(l)?[l]:l,g=x(r.rel,s)||re,m=typeof g=="string"?G(g):g,d=x(r.target,s),v=x(r.properties,s);if(v&&Object.assign(s.properties,C(v)),m.length>0&&(s.properties.rel=[...m]),d&&(s.properties.target=d),y){const w=x(r.contentProperties,s)||{};s.children.push({type:"element",tagName:"span",properties:C(w),children:C(y)})}}}})}}function x(e,r){return typeof e=="function"?e(r):e}const k=u.createContext({}),{Provider:oe,Consumer:ve}=k;function ne({children:e,scope:r="",categories:o=[],showScope:n,scopeFormatter:p}){const{api:s,info:i}=S(),[c,a]=u.useState([]),[l,y]=u.useState({total:0,pageSize:20,pageCount:0,page:1}),[g,m]=u.useState(!1),[d,v]=K(`audit-log-category-${r}`,"all"),$=[{value:"all",label:"All",description:""},{value:"blocklet",label:"Blocklet Management",description:""},{value:"server",label:"Server Management",description:""},{value:"team",label:"Team Management",description:""},{value:"security",label:"Security",description:""},{value:"certificates",label:"Certificate Management",description:""},{value:"integrations",label:"Integration Management",description:""},{value:"gateway",label:"Gateway",description:""}].filter(j=>o.length?j.value==="all"||o.includes(j.value):!0),L=async({page:j=1,silent:_=!0}={})=>{if(!g){_||m(!0);try{const h=await s.getAuditLogs({input:{paging:{page:j},category:d==="all"?"":d,scope:r}});n&&(h.list||[]).forEach(A=>{A.scope!==i.did&&(A.link=`/blocklets/${A.scope}/components`)}),a(h.list),y(h.paging),m(!1)}catch(h){I.error(h.message),m(!1)}}};u.useEffect(()=>{L({page:1,silent:!1})},[]),u.useEffect(()=>{L({page:1,silent:!1})},[d]);const T={loading:g,fetch:L,filter:{category:d,scope:r},categories:$,setCategory:v,data:c,paging:l,showScope:n,scopeFormatter:p};return t.jsx(oe,{value:{auditLogs:T},children:e})}function P(){const{auditLogs:e}=u.useContext(k);return e}const ie=({log:e,info:r,inService:o})=>o?`${F.WELLKNOWN_BLOCKLET_ADMIN_PATH}/members?did=${e.actor.did}`:e.scope===r.did?`/team/members?did=${e.actor.did}`:`/blocklets/${e.scope}/members?did=${e.actor.did}`;function ce({log:e}){var i,c;const{inService:r,info:o}=S(),{showScope:n,scopeFormatter:p=a=>a}=P();if(!e.actor.did)return null;const s=!["blocklet",""].includes(e.actor.role);return t.jsxs(b,{className:"log-entry","data-cy":"log-entry",children:[t.jsx("div",{className:"log-author",children:s?t.jsx(E,{did:e.actor.did,size:36,shape:"circle"}):t.jsx(E,{did:e.actor.did,size:36})}),t.jsxs("div",{className:"log-body",children:[t.jsxs(f,{className:"log-header",color:"textSecondary",component:"p",gutterBottom:!0,display:"flex",alignItems:"center",children:[n&&t.jsx(N,{to:e.link,children:t.jsx(z,{style:{marginRight:8},children:p(e.scope)})}),s?t.jsxs(N,{to:ie({log:e,inService:r,info:o}),target:"_blank",children:[e.actor.fullName,e.actor.role?`(${e.actor.role})`:""]}):t.jsxs("span",{children:[e.actor.fullName,e.actor.role?`(${e.actor.role})`:""]})," ",t.jsx("span",{style:{margin:"0 4px"},children:"-"})," ",e.action]}),t.jsx(f,{className:"log-content",maxWidth:"lg",color:"textPrimary",component:"div","data-color-mode":"light",gutterBottom:!0,children:t.jsx(Z,{source:e.content,rehypePlugins:[[ae,{target:"_blank"}]]})}),t.jsxs(b,{className:"log-meta",variant:"body2",children:[!!e.ip&&t.jsx(f,{component:"span",color:"textSecondary",children:`IP: ${e.ip}`}),!!((i=e.env.os)!=null&&i.name)&&t.jsxs(f,{component:"span",color:"textSecondary",children:[e.env.os.name,"(",e.env.os.version,")"]}),!!((c=e.env.browser)!=null&&c.name)&&t.jsxs(f,{component:"span",color:"textSecondary",children:[e.env.browser.name,"(",e.env.browser.version,")"]}),t.jsx(f,{component:"span",color:"textSecondary",children:t.jsx(O,{value:e.createdAt})})]})]})]})}function le(){const{t:e}=M(),{data:r,loading:o,paging:n,filter:p,categories:s,setCategory:i,fetch:c}=P();return o?t.jsx("div",{style:{textAlign:"center",marginTop:"50px"},children:t.jsx(B,{})}):t.jsxs(pe,{"data-cy":"audit-logs",children:[t.jsx(b,{className:"log-controls",children:t.jsxs(X,{style:{width:"240px"},variant:"outlined",children:[t.jsx(Q,{children:e("common.filter")}),t.jsx(q,{"data-cy":"filter-by-category-trigger",value:p.category,onChange:a=>i(a.target.value),fullWidth:!0,label:e("common.category"),disabled:o,children:s.map(a=>t.jsx(R,{value:a.value,"data-cy":`filter-by-category-${a.value}`,children:t.jsx(b,{children:t.jsx("span",{children:a.label})})},a.label))})]})}),r.length===0&&t.jsx(H,{children:e("common.empty")}),r.length>0&&r.map(a=>t.jsx(ce,{log:a},a.id)),n.pageCount>1&&t.jsx(J,{page:n.page,count:n.pageCount,onChange:(a,l)=>c({page:l}),showFirstButton:!0,showLastButton:!0})]})}function je({scope:e,categories:r,showScope:o,scopeFormatter:n}){return t.jsx(ne,{scope:e,categories:r,showScope:o,scopeFormatter:n,children:t.jsx(le,{})})}const pe=W.div`
|
|
2
2
|
.log-controls {
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: space-between;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{cL as l,eS as x}from"./index-
|
|
1
|
+
import{cL as l,eS as x}from"./index-BJnzhtRd.js";class m{constructor(e,t,o){this.name=e,this.prefix=t,this.baseEncode=o}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class w{constructor(e,t,o){if(this.name=e,this.prefix=t,t.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=o}decode(e){if(typeof e=="string"){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(e){return f(this,e)}}class g{constructor(e){this.decoders=e}or(e){return f(this,e)}decode(e){const t=e[0],o=this.decoders[t];if(o)return o.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const f=(r,e)=>new g({...r.decoders||{[r.prefix]:r},...e.decoders||{[e.prefix]:e}});class y{constructor(e,t,o,s){this.name=e,this.prefix=t,this.baseEncode=o,this.baseDecode=s,this.encoder=new m(e,t,o),this.decoder=new w(e,t,s)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}const E=({name:r,prefix:e,encode:t,decode:o})=>new y(r,e,t,o),$=(r,e,t,o)=>{const s={};for(let p=0;p<e.length;++p)s[e[p]]=p;let c=r.length;for(;r[c-1]==="=";)--c;const i=new Uint8Array(c*t/8|0);let n=0,d=0,u=0;for(let p=0;p<c;++p){const h=s[r[p]];if(h===void 0)throw new SyntaxError(`Non-${o} character`);d=d<<t|h,n+=t,n>=8&&(n-=8,i[u++]=255&d>>n)}if(n>=t||255&d<<8-n)throw new SyntaxError("Unexpected end of data");return i},A=(r,e,t)=>{const o=e[e.length-1]==="=",s=(1<<t)-1;let c="",i=0,n=0;for(let d=0;d<r.length;++d)for(n=n<<8|r[d],i+=8;i>t;)i-=t,c+=e[s&n>>i];if(i&&(c+=e[s&n<<t-i]),o)for(;c.length*t&7;)c+="=";return c},a=({name:r,prefix:e,bitsPerChar:t,alphabet:o})=>E({prefix:e,name:r,encode(s){return A(s,o,t)},decode(s){return $(s,o,t,r)}}),C=a({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),P=a({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),S=a({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),U=a({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),v=a({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),O=a({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),j=a({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),k=a({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),D=a({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),N=Object.freeze(Object.defineProperty({__proto__:null,base32:C,base32hex:v,base32hexpad:j,base32hexpadupper:k,base32hexupper:O,base32pad:S,base32padupper:U,base32upper:P,base32z:D},Symbol.toStringTag,{value:"Module"})),B=l(N),{toBuffer:q,toAddress:z,toBase58:J,toHex:T}=x,{base32:b}=B,H=r=>{if(!r)return r;const e=q(z(r));return b.encode(e)},I=r=>{if(!r)return r;const e=b.decode(r),t=J(e);return t.length>30?t:T(e)};var M={encode:H,decode:I};export{M as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t}from"./index-BJnzhtRd.js";const e=t.createContext({});function r(){return t.useContext(e)}export{e as B,r as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as I}from"./codemirror.es-
|
|
1
|
+
import{a as I}from"./codemirror.es-22B2FS1I.js";import"./index-c9RCKtxM.js";import"./index-BJnzhtRd.js";var H=Object.defineProperty,L=(k,m)=>H(k,"name",{value:m,configurable:!0});function j(k,m){return m.forEach(function(e){e&&typeof e!="string"&&!Array.isArray(e)&&Object.keys(e).forEach(function(u){if(u!=="default"&&!(u in k)){var n=Object.getOwnPropertyDescriptor(e,u);Object.defineProperty(k,u,n.get?n:{enumerable:!0,get:function(){return e[u]}})}})}),Object.freeze(k)}L(j,"_mergeNamespaces");var F={exports:{}};(function(k,m){(function(e){e(I.exports)})(function(e){function u(n){return function(o,a){var r=a.line,s=o.getLine(r);function c(i){for(var l,v=a.ch,p=0;;){var b=v<=0?-1:s.lastIndexOf(i[0],v-1);if(b==-1){if(p==1)break;p=1,v=s.length;continue}if(p==1&&b<a.ch)break;if(l=o.getTokenTypeAt(e.Pos(r,b+1)),!/^(comment|string)/.test(l))return{ch:b+1,tokenType:l,pair:i};v=b-1}}L(c,"findOpening");function h(i){var l=1,v=o.lastLine(),p,b=i.ch,A;e:for(var d=r;d<=v;++d)for(var T=o.getLine(d),P=d==r?b:0;;){var O=T.indexOf(i.pair[0],P),_=T.indexOf(i.pair[1],P);if(O<0&&(O=T.length),_<0&&(_=T.length),P=Math.min(O,_),P==T.length)break;if(o.getTokenTypeAt(e.Pos(d,P+1))==i.tokenType){if(P==O)++l;else if(!--l){p=d,A=P;break e}}++P}return p==null||r==p?null:{from:e.Pos(r,b),to:e.Pos(p,A)}}L(h,"findRange");for(var f=[],t=0;t<n.length;t++){var g=c(n[t]);g&&f.push(g)}f.sort(function(i,l){return i.ch-l.ch});for(var t=0;t<f.length;t++){var y=h(f[t]);if(y)return y}return null}}L(u,"bracketFolding"),e.registerHelper("fold","brace",u([["{","}"],["[","]"]])),e.registerHelper("fold","brace-paren",u([["{","}"],["[","]"],["(",")"]])),e.registerHelper("fold","import",function(n,o){function a(t){if(t<n.firstLine()||t>n.lastLine())return null;var g=n.getTokenAt(e.Pos(t,1));if(/\S/.test(g.string)||(g=n.getTokenAt(e.Pos(t,g.end+1))),g.type!="keyword"||g.string!="import")return null;for(var y=t,i=Math.min(n.lastLine(),t+10);y<=i;++y){var l=n.getLine(y),v=l.indexOf(";");if(v!=-1)return{startCh:g.end,end:e.Pos(y,v)}}}L(a,"hasImport");var r=o.line,s=a(r),c;if(!s||a(r-1)||(c=a(r-2))&&c.end.line==r-1)return null;for(var h=s.end;;){var f=a(h.line+1);if(f==null)break;h=f.end}return{from:n.clipPos(e.Pos(r,s.startCh+1)),to:h}}),e.registerHelper("fold","include",function(n,o){function a(f){if(f<n.firstLine()||f>n.lastLine())return null;var t=n.getTokenAt(e.Pos(f,1));if(/\S/.test(t.string)||(t=n.getTokenAt(e.Pos(f,t.end+1))),t.type=="meta"&&t.string.slice(0,8)=="#include")return t.start+8}L(a,"hasInclude");var r=o.line,s=a(r);if(s==null||a(r-1)!=null)return null;for(var c=r;;){var h=a(c+1);if(h==null)break;++c}return{from:e.Pos(r,s+1),to:n.clipPos(e.Pos(c))}})})})();var S=F.exports,E=Object.freeze(j({__proto__:null,[Symbol.toStringTag]:"Module",default:S},[F.exports]));export{E as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bo as y,bI as x,gR as P,a3 as m,aF as $,F as j,gS as E,j as f,aw as R,cf as h,P as r}from"./index-
|
|
1
|
+
import{bo as y,bI as x,gR as P,a3 as m,aF as $,F as j,gS as E,j as f,aw as R,cf as h,P as r}from"./index-BJnzhtRd.js";function F({blocklet:s,ancestors:p=[]}){var i;const a=y(),{inService:n}=a,o=x(s==null?void 0:s.status)||P(s==null?void 0:s.status),e=`?v=${(i=s==null?void 0:s.meta)==null?void 0:i.version}${o?"~":""}`;let t=n?`${m(E,j.WELLKNOWN_SERVICE_PATH_PREFIX,"/blocklet/logo-bundle")}${e}`:m(a.imgPrefix,"blocklet.png");if(s.source==="registry"&&s.deployedFrom&&s.meta.logo)t=`${m(s.deployedFrom,$(s.meta.bundleDid,s.meta.logo))}${e}`;else{const u=window.env.apiPrefix||"/",d=p.concat(s),g=n?d.slice(1):d;t=`${m(u,`/blocklet/logo-bundle${g.map(c=>`/${c.meta.did}`).join("")}`)}${e}`}return{logoUrl:t,inService:n}}function v({blocklet:s,style:p,size:a,ancestors:n,...o}){const e=y(),{logoUrl:t,inService:i}=F({blocklet:s,ancestors:n}),{variant:u}=o,d=i?()=>{}:c=>{c.target.src=`${e.imgPrefix}/blocklet.png`};let g=f.jsx("img",{src:t,onError:d,alt:s.meta.name,style:{width:a}});return s.meta.logo||(g=f.jsx(R,{did:s.meta.did||"",responsive:!0})),f.jsx(h,{variant:u||"square",style:Object.assign({backgroundColor:"transparent",width:a,height:a,borderRadius:10},p),...o,children:g})}v.propTypes={blocklet:r.object.isRequired,style:r.object,size:r.oneOfType([r.number,r.string]),ancestors:r.array};v.defaultProps={style:{},size:40,ancestors:[]};export{v as B};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as a,b6 as H,m as N,be as Z,N as z,P as s,n as G,b5 as J,r as F,aS as K,fT as Q}from"./index-
|
|
1
|
+
import{j as a,b6 as H,m as N,be as Z,N as z,P as s,n as G,b5 as J,r as F,aS as K,fT as Q}from"./index-BJnzhtRd.js";function D(t,e,n,r){return parseFloat((e-r*e/t+n).toFixed(2))}function U(t){[...t.querySelectorAll("*")].forEach(e=>t.removeChild(e))}function _(t){return t.value}function j(t,e){const n=document.createElementNS("http://www.w3.org/2000/svg",t);for(const r in e)n.setAttribute(r,e[r]);return n}function tt(t,e,n){if(U(t),e.length<=1)return;n=n||{},typeof e[0]=="number"&&(e=e.map(i=>({value:i})));const{onmousemove:r}=n,{onmouseout:d}=n,p="interactive"in n?n.interactive:!!r,m=n.spotRadius||2,h=m*2,b=n.cursorWidth||2,k=parseFloat(t.attributes["stroke-width"].value),o=n.fetch||_,f=e.map(i=>o(i)),S=parseFloat(t.attributes.width.value)-h*2,u=parseFloat(t.attributes.height.value),w=u-k*2-h,A=Math.max(...f)===0?1:Math.max(...f),l=-1e3,$=f.length-1,E=S/$,v=[],M=D(A,w,k+m,f[0]);let T=`M${h} ${M}`;f.forEach((i,y)=>{const c=y*E+h,x=D(A,w,k+m,i);v.push(Object.assign({},e[y],{index:y,x:c,y:x})),T+=` L ${c} ${x}`});const O=j("path",{class:"sparkline--line",d:T,fill:"none"}),V=`${T} V ${u} L ${h} ${u} Z`,X=j("path",{class:"sparkline--fill",d:V,stroke:"none"});if(t.appendChild(X),t.appendChild(O),!p)return;const g=j("line",{class:"sparkline--cursor",x1:l,x2:l,y1:0,y2:u,"stroke-width":b}),R=j("circle",{class:"sparkline--spot",cx:l,cy:l,r:m});t.appendChild(g),t.appendChild(R);const P=j("rect",{width:t.attributes.width.value,height:t.attributes.height.value,style:"fill: transparent; stroke: transparent",class:"sparkline--interaction-layer"});t.appendChild(P),P.addEventListener("mouseout",i=>{g.setAttribute("x1",l),g.setAttribute("x2",l),R.setAttribute("cx",l),d&&d(i)}),P.addEventListener("mousemove",i=>{const y=i.offsetX;let c=v.find(B=>B.x>=y);c||(c=v[$]);const x=v[v.indexOf(c)-1];let C,L;x?(L=x.x+(c.x-x.x)/2,C=y>=L?c:x):C=c;const{x:I}=C,{y:Y}=C;R.setAttribute("cx",I),R.setAttribute("cy",Y),g.setAttribute("x1",I),g.setAttribute("x2",I),r&&r(i,C)})}function q({style:t,title:e,value:n,graph:r,description:d,empty:p}){return a.jsx(et,{children:a.jsxs(H,{style:{...t},children:[a.jsx(N,{sx:{fontSize:14},color:"text.secondary",children:e}),p&&Z.isValidElement(p)?a.jsx(z,{color:"text.secondary",display:"flex",justifyContent:"center",alignItems:"center",style:{height:150},children:p}):a.jsxs(a.Fragment,{children:[a.jsx(N,{variant:"h5",component:"div",mt:1,children:n}),r,!!d&&a.jsx(z,{display:"flex",sx:{fontSize:12,marginTop:3},color:"text.secondary",children:d})]})]})})}q.propTypes={style:s.object,title:s.node,value:s.node,graph:s.node,description:s.any,empty:s.node};q.defaultProps={style:{},title:null,value:null,graph:null,empty:null,description:null};const et=G(J)`
|
|
2
2
|
.card-content {
|
|
3
3
|
height: 150px;
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,f as s,j as t,da as r,P as c}from"./index-
|
|
1
|
+
import{r as i,f as s,j as t,da as r,P as c}from"./index-BJnzhtRd.js";function n({children:p,...e}){const{t:o}=i.useContext(s);return t.jsx(r,{tip:o("common.copyTip"),copiedTip:o("common.copiedTip"),...e,children:p})}n.propTypes={children:c.any.isRequired};export{n as C};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as G}from"./codemirror.es-
|
|
1
|
+
import{a as G}from"./codemirror.es-22B2FS1I.js";import"./index-c9RCKtxM.js";import"./index-BJnzhtRd.js";var H=Object.defineProperty,h=(O,B)=>H(O,"name",{value:B,configurable:!0});function D(O,B){return B.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(d){if(d!=="default"&&!(d in O)){var o=Object.getOwnPropertyDescriptor(n,d);Object.defineProperty(O,d,o.get?o:{enumerable:!0,get:function(){return n[d]}})}})}),Object.freeze(O)}h(D,"_mergeNamespaces");var q={exports:{}};(function(O,B){(function(n){n(G.exports)})(function(n){var d={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},o=n.Pos;n.defineOption("autoCloseBrackets",!1,function(e,t,a){a&&a!=n.Init&&(e.removeKeyMap(y),e.state.closeBrackets=null),t&&(_(b(t,"pairs")),e.state.closeBrackets=t,e.addKeyMap(y))});function b(e,t){return t=="pairs"&&typeof e=="string"?e:typeof e=="object"&&e[t]!=null?e[t]:d[t]}h(b,"getOption");var y={Backspace:$,Enter:z};function _(e){for(var t=0;t<e.length;t++){var a=e.charAt(t),i="'"+a+"'";y[i]||(y[i]=I(a))}}h(_,"ensureBound"),_(d.pairs+"`");function I(e){return function(t){return K(t,e)}}h(I,"handler");function x(e){var t=e.state.closeBrackets;if(!t||t.override)return t;var a=e.getModeAt(e.getCursor());return a.closeBrackets||t}h(x,"getConfig");function $(e){var t=x(e);if(!t||e.getOption("disableInput"))return n.Pass;for(var a=b(t,"pairs"),i=e.listSelections(),r=0;r<i.length;r++){if(!i[r].empty())return n.Pass;var f=j(e,i[r].head);if(!f||a.indexOf(f)%2!=0)return n.Pass}for(var r=i.length-1;r>=0;r--){var l=i[r].head;e.replaceRange("",o(l.line,l.ch-1),o(l.line,l.ch+1),"+delete")}}h($,"handleBackspace");function z(e){var t=x(e),a=t&&b(t,"explode");if(!a||e.getOption("disableInput"))return n.Pass;for(var i=e.listSelections(),r=0;r<i.length;r++){if(!i[r].empty())return n.Pass;var f=j(e,i[r].head);if(!f||a.indexOf(f)%2!=0)return n.Pass}e.operation(function(){var l=e.lineSeparator()||`
|
|
2
2
|
`;e.replaceSelection(l+l,null),P(e,-1),i=e.listSelections();for(var g=0;g<i.length;g++){var k=i[g].head.line;e.indentLine(k,null,!0),e.indentLine(k+1,null,!0)}})}h(z,"handleEnter");function P(e,t){for(var a=[],i=e.listSelections(),r=0,f=0;f<i.length;f++){var l=i[f];l.head==e.getCursor()&&(r=f);var g=l.head.ch||t>0?{line:l.head.line,ch:l.head.ch+t}:{line:l.head.line-1};a.push({anchor:g,head:g})}e.setSelections(a,r)}h(P,"moveSel");function F(e){var t=n.cmpPos(e.anchor,e.head)>0;return{anchor:new o(e.anchor.line,e.anchor.ch+(t?-1:1)),head:new o(e.head.line,e.head.ch+(t?1:-1))}}h(F,"contractSelection");function K(e,t){var a=x(e);if(!a||e.getOption("disableInput"))return n.Pass;var i=b(a,"pairs"),r=i.indexOf(t);if(r==-1)return n.Pass;for(var f=b(a,"closeBefore"),l=b(a,"triples"),g=i.charAt(r+1)==t,k=e.listSelections(),R=r%2==0,c,E=0;E<k.length;E++){var N=k[E],s=N.head,p,A=e.getRange(s,o(s.line,s.ch+1));if(R&&!N.empty())p="surround";else if((g||!R)&&A==t)g&&L(e,s)?p="both":l.indexOf(t)>=0&&e.getRange(s,o(s.line,s.ch+3))==t+t+t?p="skipThree":p="skip";else if(g&&s.ch>1&&l.indexOf(t)>=0&&e.getRange(o(s.line,s.ch-2),s)==t+t){if(s.ch>2&&/\bstring/.test(e.getTokenTypeAt(o(s.line,s.ch-2))))return n.Pass;p="addFour"}else if(g){var W=s.ch==0?" ":e.getRange(o(s.line,s.ch-1),s);if(!n.isWordChar(A)&&W!=t&&!n.isWordChar(W))p="both";else return n.Pass}else if(R&&(A.length===0||/\s/.test(A)||f.indexOf(A)>-1))p="both";else return n.Pass;if(!c)c=p;else if(c!=p)return n.Pass}var S=r%2?i.charAt(r-1):t,w=r%2?t:i.charAt(r+1);e.operation(function(){if(c=="skip")P(e,1);else if(c=="skipThree")P(e,3);else if(c=="surround"){for(var u=e.getSelections(),v=0;v<u.length;v++)u[v]=S+u[v]+w;e.replaceSelections(u,"around"),u=e.listSelections().slice();for(var v=0;v<u.length;v++)u[v]=F(u[v]);e.setSelections(u)}else c=="both"?(e.replaceSelection(S+w,null),e.triggerElectric(S+w),P(e,-1)):c=="addFour"&&(e.replaceSelection(S+S+S+S,"before"),P(e,1))})}h(K,"handleChar");function j(e,t){var a=e.getRange(o(t.line,t.ch-1),o(t.line,t.ch+1));return a.length==2?a:null}h(j,"charsAround");function L(e,t){var a=e.getTokenAt(o(t.line,t.ch+1));return/\bstring/.test(a.type)&&a.start==t.ch&&(t.ch==0||!/\bstring/.test(e.getTokenTypeAt(t)))}h(L,"stringStartsAfter")})})();var J=q.exports,V=Object.freeze(D({__proto__:null,[Symbol.toStringTag]:"Module",default:J},[q.exports]));export{V as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as su}from"./index-qcRGUCNe.js";import"./index-DYxj4bsg.js";var uu=Object.defineProperty,u=(ht,ei)=>uu(ht,"name",{value:ei,configurable:!0});function Ks(ht,ei){return ei.forEach(function(z){z&&typeof z!="string"&&!Array.isArray(z)&&Object.keys(z).forEach(function(Ne){if(Ne!=="default"&&!(Ne in ht)){var Ce=Object.getOwnPropertyDescriptor(z,Ne);Object.defineProperty(ht,Ne,Ce.get?Ce:{enumerable:!0,get:function(){return z[Ne]}})}})}),Object.freeze(ht)}u(Ks,"_mergeNamespaces");var Al={exports:{}};(function(ht,ei){(function(z,Ne){ht.exports=Ne()})(su,function(){var z=navigator.userAgent,Ne=navigator.platform,Ce=/gecko\/\d/i.test(z),Ol=/MSIE \d/.test(z),Nl=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(z),ti=/Edge\/(\d+)/.exec(z),N=Ol||Nl||ti,I=N&&(Ol?document.documentMode||6:+(ti||Nl)[1]),oe=!ti&&/WebKit\//.test(z),_s=oe&&/Qt\/\d+\.\d+/.test(z),ri=!ti&&/Chrome\//.test(z),Te=/Opera\//.test(z),ii=/Apple Computer/.test(navigator.vendor),Xs=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(z),Ys=/PhantomJS/.test(z),hr=ii&&(/Mobile\/\w+/.test(z)||navigator.maxTouchPoints>2),ni=/Android/.test(z),dr=hr||ni||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(z),Se=hr||/Mac/.test(Ne),qs=/\bCrOS\b/.test(z),Zs=/win/i.test(Ne),dt=Te&&z.match(/Version\/(\d*\.\d*)/);dt&&(dt=Number(dt[1])),dt&&dt>=15&&(Te=!1,oe=!0);var Wl=Se&&(_s||Te&&(dt==null||dt<12.11)),gn=Ce||N&&I>=9;function ct(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}u(ct,"classTest");var pt=u(function(e,t){var i=e.className,r=ct(t).exec(i);if(r){var n=i.slice(r.index+r[0].length);e.className=i.slice(0,r.index)+(n?r[1]+n:"")}},"rmClass");function Be(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}u(Be,"removeChildren");function ve(e,t){return Be(e).appendChild(t)}u(ve,"removeChildrenAndAdd");function T(e,t,i,r){var n=document.createElement(e);if(i&&(n.className=i),r&&(n.style.cssText=r),typeof t=="string")n.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)n.appendChild(t[o]);return n}u(T,"elt");function vt(e,t,i,r){var n=T(e,t,i,r);return n.setAttribute("role","presentation"),n}u(vt,"eltP");var gt;document.createRange?gt=u(function(e,t,i,r){var n=document.createRange();return n.setEnd(r||e,i),n.setStart(e,t),n},"range"):gt=u(function(e,t,i){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch{return r}return r.collapse(!0),r.moveEnd("character",i),r.moveStart("character",t),r},"range");function Re(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}u(Re,"contains");function ye(){var e;try{e=document.activeElement}catch{e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}u(ye,"activeElt");function Je(e,t){var i=e.className;ct(t).test(i)||(e.className+=(i?" ":"")+t)}u(Je,"addClass");function oi(e,t){for(var i=e.split(" "),r=0;r<i.length;r++)i[r]&&!ct(i[r]).test(t)&&(t+=" "+i[r]);return t}u(oi,"joinClasses");var cr=u(function(e){e.select()},"selectInput");hr?cr=u(function(e){e.selectionStart=0,e.selectionEnd=e.value.length},"selectInput"):N&&(cr=u(function(e){try{e.select()}catch{}},"selectInput"));function li(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}u(li,"bind");function je(e,t,i){t||(t={});for(var r in e)e.hasOwnProperty(r)&&(i!==!1||!t.hasOwnProperty(r))&&(t[r]=e[r]);return t}u(je,"copyObj");function me(e,t,i,r,n){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var o=r||0,l=n||0;;){var a=e.indexOf(" ",o);if(a<0||a>=t)return l+(t-o);l+=a-o,l+=i-l%i,o=a+1}}u(me,"countColumn");var Ve=u(function(){this.id=null,this.f=null,this.time=0,this.handler=li(this.onTimeout,this)},"Delayed");Ve.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},Ve.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=i)};function ee(e,t){for(var i=0;i<e.length;++i)if(e[i]==t)return i;return-1}u(ee,"indexOf");var Hl=50,ai={toString:function(){return"CodeMirror.Pass"}},We={scroll:!1},yn={origin:"*mouse"},pr={origin:"+move"};function si(e,t,i){for(var r=0,n=0;;){var o=e.indexOf(" ",r);o==-1&&(o=e.length);var l=o-r;if(o==e.length||n+l>=t)return r+Math.min(l,t-n);if(n+=o-r,n+=i-n%i,r=o+1,n>=t)return r}}u(si,"findColumn");var ui=[""];function fi(e){for(;ui.length<=e;)ui.push(W(ui)+" ");return ui[e]}u(fi,"spaceStr");function W(e){return e[e.length-1]}u(W,"lst");function vr(e,t){for(var i=[],r=0;r<e.length;r++)i[r]=t(e[r],r);return i}u(vr,"map");function Pl(e,t,i){for(var r=0,n=i(t);r<e.length&&i(e[r])<=n;)r++;e.splice(r,0,t)}u(Pl,"insertSorted");function mn(){}u(mn,"nothing");function bn(e,t){var i;return Object.create?i=Object.create(e):(mn.prototype=e,i=new mn),t&&je(t,i),i}u(bn,"createObj");var Qs=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function hi(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||Qs.test(e))}u(hi,"isWordCharBasic");function gr(e,t){return t?t.source.indexOf("\\w")>-1&&hi(e)?!0:t.test(e):hi(e)}u(gr,"isWordChar");function xn(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}u(xn,"isEmpty");var Js=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function di(e){return e.charCodeAt(0)>=768&&Js.test(e)}u(di,"isExtendingChar");function Cn(e,t,i){for(;(i<0?t>0:t<e.length)&&di(e.charAt(t));)t+=i;return t}u(Cn,"skipExtendingChars");function Et(e,t,i){for(var r=t>i?-1:1;;){if(t==i)return t;var n=(t+i)/2,o=r<0?Math.ceil(n):Math.floor(n);if(o==t)return e(o)?t:i;e(o)?i=o:t=o+r}}u(Et,"findFirst");function Fl(e,t,i,r){if(!e)return r(t,i,"ltr",0);for(var n=!1,o=0;o<e.length;++o){var l=e[o];(l.from<i&&l.to>t||t==i&&l.to==t)&&(r(Math.max(l.from,t),Math.min(l.to,i),l.level==1?"rtl":"ltr",o),n=!0)}n||r(t,i,"ltr")}u(Fl,"iterateBidiSections");var yr=null;function It(e,t,i){var r;yr=null;for(var n=0;n<e.length;++n){var o=e[n];if(o.from<t&&o.to>t)return n;o.to==t&&(o.from!=o.to&&i=="before"?r=n:yr=n),o.from==t&&(o.from!=o.to&&i!="before"?r=n:yr=n)}return r??yr}u(It,"getBidiPartAt");var js=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(f){return f<=247?e.charAt(f):1424<=f&&f<=1524?"R":1536<=f&&f<=1785?t.charAt(f-1536):1774<=f&&f<=2220?"r":8192<=f&&f<=8203?"w":f==8204?"b":"L"}u(i,"charType");var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,o=/[LRr]/,l=/[Lb1n]/,a=/[1n]/;function s(f,h,d){this.level=f,this.from=h,this.to=d}return u(s,"BidiSpan"),function(f,h){var d=h=="ltr"?"L":"R";if(f.length==0||h=="ltr"&&!r.test(f))return!1;for(var p=f.length,c=[],v=0;v<p;++v)c.push(i(f.charCodeAt(v)));for(var g=0,m=d;g<p;++g){var b=c[g];b=="m"?c[g]=m:m=b}for(var C=0,x=d;C<p;++C){var S=c[C];S=="1"&&x=="r"?c[C]="n":o.test(S)&&(x=S,S=="r"&&(c[C]="R"))}for(var k=1,L=c[0];k<p-1;++k){var O=c[k];O=="+"&&L=="1"&&c[k+1]=="1"?c[k]="1":O==","&&L==c[k+1]&&(L=="1"||L=="n")&&(c[k]=L),L=O}for(var E=0;E<p;++E){var V=c[E];if(V==",")c[E]="N";else if(V=="%"){var R=void 0;for(R=E+1;R<p&&c[R]=="%";++R);for(var he=E&&c[E-1]=="!"||R<p&&c[R]=="1"?"1":"N",de=E;de<R;++de)c[de]=he;E=R-1}}for(var X=0,ce=d;X<p;++X){var re=c[X];ce=="L"&&re=="1"?c[X]="L":o.test(re)&&(ce=re)}for(var j=0;j<p;++j)if(n.test(c[j])){var Y=void 0;for(Y=j+1;Y<p&&n.test(c[Y]);++Y);for(var G=(j?c[j-1]:d)=="L",pe=(Y<p?c[Y]:d)=="L",ur=G==pe?G?"L":"R":d,ft=j;ft<Y;++ft)c[ft]=ur;j=Y-1}for(var ne=[],Ie,$=0;$<p;)if(l.test(c[$])){var Ml=$;for(++$;$<p&&l.test(c[$]);++$);ne.push(new s(0,Ml,$))}else{var Qe=$,Pt=ne.length,Ft=h=="rtl"?1:0;for(++$;$<p&&c[$]!="L";++$);for(var se=Qe;se<$;)if(a.test(c[se])){Qe<se&&(ne.splice(Pt,0,new s(1,Qe,se)),Pt+=Ft);var fr=se;for(++se;se<$&&a.test(c[se]);++se);ne.splice(Pt,0,new s(2,fr,se)),Pt+=Ft,Qe=se}else++se;Qe<$&&ne.splice(Pt,0,new s(1,Qe,$))}return h=="ltr"&&(ne[0].level==1&&(Ie=f.match(/^\s+/))&&(ne[0].from=Ie[0].length,ne.unshift(new s(0,0,Ie[0].length))),W(ne).level==1&&(Ie=f.match(/\s+$/))&&(W(ne).to-=Ie[0].length,ne.push(new s(0,p-Ie[0].length,p)))),h=="rtl"?ne.reverse():ne}}();function He(e,t){var i=e.order;return i==null&&(i=e.order=js(e.text,t)),i}u(He,"getOrder");var El=[],M=u(function(e,t,i){if(e.addEventListener)e.addEventListener(t,i,!1);else if(e.attachEvent)e.attachEvent("on"+t,i);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||El).concat(i)}},"on");function ci(e,t){return e._handlers&&e._handlers[t]||El}u(ci,"getHandlers");function ge(e,t,i){if(e.removeEventListener)e.removeEventListener(t,i,!1);else if(e.detachEvent)e.detachEvent("on"+t,i);else{var r=e._handlers,n=r&&r[t];if(n){var o=ee(n,i);o>-1&&(r[t]=n.slice(0,o).concat(n.slice(o+1)))}}}u(ge,"off");function U(e,t){var i=ci(e,t);if(i.length)for(var r=Array.prototype.slice.call(arguments,2),n=0;n<i.length;++n)i[n].apply(null,r)}u(U,"signal");function q(e,t,i){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),U(e,i||t.type,e,t),pi(t)||t.codemirrorIgnore}u(q,"signalDOMEvent");function Sn(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var i=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)ee(i,t[r])==-1&&i.push(t[r])}u(Sn,"signalCursorActivity");function be(e,t){return ci(e,t).length>0}u(be,"hasHandler");function yt(e){e.prototype.on=function(t,i){M(this,t,i)},e.prototype.off=function(t,i){ge(this,t,i)}}u(yt,"eventMixin");function le(e){e.preventDefault?e.preventDefault():e.returnValue=!1}u(le,"e_preventDefault");function wn(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}u(wn,"e_stopPropagation");function pi(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}u(pi,"e_defaultPrevented");function Bt(e){le(e),wn(e)}u(Bt,"e_stop");function vi(e){return e.target||e.srcElement}u(vi,"e_target");function Ln(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),Se&&e.ctrlKey&&t==1&&(t=3),t}u(Ln,"e_button");var Vs=function(){if(N&&I<9)return!1;var e=T("div");return"draggable"in e||"dragDrop"in e}(),kn;function Il(e){if(kn==null){var t=T("span","");ve(e,T("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(kn=t.offsetWidth<=1&&t.offsetHeight>2&&!(N&&I<8))}var i=kn?T("span",""):T("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}u(Il,"zeroWidthElement");var Tn;function Bl(e){if(Tn!=null)return Tn;var t=ve(e,document.createTextNode("AخA")),i=gt(t,0,1).getBoundingClientRect(),r=gt(t,1,2).getBoundingClientRect();return Be(e),!i||i.left==i.right?!1:Tn=r.right-i.right<3}u(Bl,"hasBadBidiRects");var Mn=`
|
|
1
|
+
import{c as su}from"./index-c9RCKtxM.js";import"./index-BJnzhtRd.js";var uu=Object.defineProperty,u=(ht,ei)=>uu(ht,"name",{value:ei,configurable:!0});function Ks(ht,ei){return ei.forEach(function(z){z&&typeof z!="string"&&!Array.isArray(z)&&Object.keys(z).forEach(function(Ne){if(Ne!=="default"&&!(Ne in ht)){var Ce=Object.getOwnPropertyDescriptor(z,Ne);Object.defineProperty(ht,Ne,Ce.get?Ce:{enumerable:!0,get:function(){return z[Ne]}})}})}),Object.freeze(ht)}u(Ks,"_mergeNamespaces");var Al={exports:{}};(function(ht,ei){(function(z,Ne){ht.exports=Ne()})(su,function(){var z=navigator.userAgent,Ne=navigator.platform,Ce=/gecko\/\d/i.test(z),Ol=/MSIE \d/.test(z),Nl=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(z),ti=/Edge\/(\d+)/.exec(z),N=Ol||Nl||ti,I=N&&(Ol?document.documentMode||6:+(ti||Nl)[1]),oe=!ti&&/WebKit\//.test(z),_s=oe&&/Qt\/\d+\.\d+/.test(z),ri=!ti&&/Chrome\//.test(z),Te=/Opera\//.test(z),ii=/Apple Computer/.test(navigator.vendor),Xs=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(z),Ys=/PhantomJS/.test(z),hr=ii&&(/Mobile\/\w+/.test(z)||navigator.maxTouchPoints>2),ni=/Android/.test(z),dr=hr||ni||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(z),Se=hr||/Mac/.test(Ne),qs=/\bCrOS\b/.test(z),Zs=/win/i.test(Ne),dt=Te&&z.match(/Version\/(\d*\.\d*)/);dt&&(dt=Number(dt[1])),dt&&dt>=15&&(Te=!1,oe=!0);var Wl=Se&&(_s||Te&&(dt==null||dt<12.11)),gn=Ce||N&&I>=9;function ct(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}u(ct,"classTest");var pt=u(function(e,t){var i=e.className,r=ct(t).exec(i);if(r){var n=i.slice(r.index+r[0].length);e.className=i.slice(0,r.index)+(n?r[1]+n:"")}},"rmClass");function Be(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}u(Be,"removeChildren");function ve(e,t){return Be(e).appendChild(t)}u(ve,"removeChildrenAndAdd");function T(e,t,i,r){var n=document.createElement(e);if(i&&(n.className=i),r&&(n.style.cssText=r),typeof t=="string")n.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)n.appendChild(t[o]);return n}u(T,"elt");function vt(e,t,i,r){var n=T(e,t,i,r);return n.setAttribute("role","presentation"),n}u(vt,"eltP");var gt;document.createRange?gt=u(function(e,t,i,r){var n=document.createRange();return n.setEnd(r||e,i),n.setStart(e,t),n},"range"):gt=u(function(e,t,i){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch{return r}return r.collapse(!0),r.moveEnd("character",i),r.moveStart("character",t),r},"range");function Re(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}u(Re,"contains");function ye(){var e;try{e=document.activeElement}catch{e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}u(ye,"activeElt");function Je(e,t){var i=e.className;ct(t).test(i)||(e.className+=(i?" ":"")+t)}u(Je,"addClass");function oi(e,t){for(var i=e.split(" "),r=0;r<i.length;r++)i[r]&&!ct(i[r]).test(t)&&(t+=" "+i[r]);return t}u(oi,"joinClasses");var cr=u(function(e){e.select()},"selectInput");hr?cr=u(function(e){e.selectionStart=0,e.selectionEnd=e.value.length},"selectInput"):N&&(cr=u(function(e){try{e.select()}catch{}},"selectInput"));function li(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}u(li,"bind");function je(e,t,i){t||(t={});for(var r in e)e.hasOwnProperty(r)&&(i!==!1||!t.hasOwnProperty(r))&&(t[r]=e[r]);return t}u(je,"copyObj");function me(e,t,i,r,n){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var o=r||0,l=n||0;;){var a=e.indexOf(" ",o);if(a<0||a>=t)return l+(t-o);l+=a-o,l+=i-l%i,o=a+1}}u(me,"countColumn");var Ve=u(function(){this.id=null,this.f=null,this.time=0,this.handler=li(this.onTimeout,this)},"Delayed");Ve.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},Ve.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=i)};function ee(e,t){for(var i=0;i<e.length;++i)if(e[i]==t)return i;return-1}u(ee,"indexOf");var Hl=50,ai={toString:function(){return"CodeMirror.Pass"}},We={scroll:!1},yn={origin:"*mouse"},pr={origin:"+move"};function si(e,t,i){for(var r=0,n=0;;){var o=e.indexOf(" ",r);o==-1&&(o=e.length);var l=o-r;if(o==e.length||n+l>=t)return r+Math.min(l,t-n);if(n+=o-r,n+=i-n%i,r=o+1,n>=t)return r}}u(si,"findColumn");var ui=[""];function fi(e){for(;ui.length<=e;)ui.push(W(ui)+" ");return ui[e]}u(fi,"spaceStr");function W(e){return e[e.length-1]}u(W,"lst");function vr(e,t){for(var i=[],r=0;r<e.length;r++)i[r]=t(e[r],r);return i}u(vr,"map");function Pl(e,t,i){for(var r=0,n=i(t);r<e.length&&i(e[r])<=n;)r++;e.splice(r,0,t)}u(Pl,"insertSorted");function mn(){}u(mn,"nothing");function bn(e,t){var i;return Object.create?i=Object.create(e):(mn.prototype=e,i=new mn),t&&je(t,i),i}u(bn,"createObj");var Qs=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function hi(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||Qs.test(e))}u(hi,"isWordCharBasic");function gr(e,t){return t?t.source.indexOf("\\w")>-1&&hi(e)?!0:t.test(e):hi(e)}u(gr,"isWordChar");function xn(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}u(xn,"isEmpty");var Js=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function di(e){return e.charCodeAt(0)>=768&&Js.test(e)}u(di,"isExtendingChar");function Cn(e,t,i){for(;(i<0?t>0:t<e.length)&&di(e.charAt(t));)t+=i;return t}u(Cn,"skipExtendingChars");function Et(e,t,i){for(var r=t>i?-1:1;;){if(t==i)return t;var n=(t+i)/2,o=r<0?Math.ceil(n):Math.floor(n);if(o==t)return e(o)?t:i;e(o)?i=o:t=o+r}}u(Et,"findFirst");function Fl(e,t,i,r){if(!e)return r(t,i,"ltr",0);for(var n=!1,o=0;o<e.length;++o){var l=e[o];(l.from<i&&l.to>t||t==i&&l.to==t)&&(r(Math.max(l.from,t),Math.min(l.to,i),l.level==1?"rtl":"ltr",o),n=!0)}n||r(t,i,"ltr")}u(Fl,"iterateBidiSections");var yr=null;function It(e,t,i){var r;yr=null;for(var n=0;n<e.length;++n){var o=e[n];if(o.from<t&&o.to>t)return n;o.to==t&&(o.from!=o.to&&i=="before"?r=n:yr=n),o.from==t&&(o.from!=o.to&&i!="before"?r=n:yr=n)}return r??yr}u(It,"getBidiPartAt");var js=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(f){return f<=247?e.charAt(f):1424<=f&&f<=1524?"R":1536<=f&&f<=1785?t.charAt(f-1536):1774<=f&&f<=2220?"r":8192<=f&&f<=8203?"w":f==8204?"b":"L"}u(i,"charType");var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,o=/[LRr]/,l=/[Lb1n]/,a=/[1n]/;function s(f,h,d){this.level=f,this.from=h,this.to=d}return u(s,"BidiSpan"),function(f,h){var d=h=="ltr"?"L":"R";if(f.length==0||h=="ltr"&&!r.test(f))return!1;for(var p=f.length,c=[],v=0;v<p;++v)c.push(i(f.charCodeAt(v)));for(var g=0,m=d;g<p;++g){var b=c[g];b=="m"?c[g]=m:m=b}for(var C=0,x=d;C<p;++C){var S=c[C];S=="1"&&x=="r"?c[C]="n":o.test(S)&&(x=S,S=="r"&&(c[C]="R"))}for(var k=1,L=c[0];k<p-1;++k){var O=c[k];O=="+"&&L=="1"&&c[k+1]=="1"?c[k]="1":O==","&&L==c[k+1]&&(L=="1"||L=="n")&&(c[k]=L),L=O}for(var E=0;E<p;++E){var V=c[E];if(V==",")c[E]="N";else if(V=="%"){var R=void 0;for(R=E+1;R<p&&c[R]=="%";++R);for(var he=E&&c[E-1]=="!"||R<p&&c[R]=="1"?"1":"N",de=E;de<R;++de)c[de]=he;E=R-1}}for(var X=0,ce=d;X<p;++X){var re=c[X];ce=="L"&&re=="1"?c[X]="L":o.test(re)&&(ce=re)}for(var j=0;j<p;++j)if(n.test(c[j])){var Y=void 0;for(Y=j+1;Y<p&&n.test(c[Y]);++Y);for(var G=(j?c[j-1]:d)=="L",pe=(Y<p?c[Y]:d)=="L",ur=G==pe?G?"L":"R":d,ft=j;ft<Y;++ft)c[ft]=ur;j=Y-1}for(var ne=[],Ie,$=0;$<p;)if(l.test(c[$])){var Ml=$;for(++$;$<p&&l.test(c[$]);++$);ne.push(new s(0,Ml,$))}else{var Qe=$,Pt=ne.length,Ft=h=="rtl"?1:0;for(++$;$<p&&c[$]!="L";++$);for(var se=Qe;se<$;)if(a.test(c[se])){Qe<se&&(ne.splice(Pt,0,new s(1,Qe,se)),Pt+=Ft);var fr=se;for(++se;se<$&&a.test(c[se]);++se);ne.splice(Pt,0,new s(2,fr,se)),Pt+=Ft,Qe=se}else++se;Qe<$&&ne.splice(Pt,0,new s(1,Qe,$))}return h=="ltr"&&(ne[0].level==1&&(Ie=f.match(/^\s+/))&&(ne[0].from=Ie[0].length,ne.unshift(new s(0,0,Ie[0].length))),W(ne).level==1&&(Ie=f.match(/\s+$/))&&(W(ne).to-=Ie[0].length,ne.push(new s(0,p-Ie[0].length,p)))),h=="rtl"?ne.reverse():ne}}();function He(e,t){var i=e.order;return i==null&&(i=e.order=js(e.text,t)),i}u(He,"getOrder");var El=[],M=u(function(e,t,i){if(e.addEventListener)e.addEventListener(t,i,!1);else if(e.attachEvent)e.attachEvent("on"+t,i);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||El).concat(i)}},"on");function ci(e,t){return e._handlers&&e._handlers[t]||El}u(ci,"getHandlers");function ge(e,t,i){if(e.removeEventListener)e.removeEventListener(t,i,!1);else if(e.detachEvent)e.detachEvent("on"+t,i);else{var r=e._handlers,n=r&&r[t];if(n){var o=ee(n,i);o>-1&&(r[t]=n.slice(0,o).concat(n.slice(o+1)))}}}u(ge,"off");function U(e,t){var i=ci(e,t);if(i.length)for(var r=Array.prototype.slice.call(arguments,2),n=0;n<i.length;++n)i[n].apply(null,r)}u(U,"signal");function q(e,t,i){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),U(e,i||t.type,e,t),pi(t)||t.codemirrorIgnore}u(q,"signalDOMEvent");function Sn(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var i=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)ee(i,t[r])==-1&&i.push(t[r])}u(Sn,"signalCursorActivity");function be(e,t){return ci(e,t).length>0}u(be,"hasHandler");function yt(e){e.prototype.on=function(t,i){M(this,t,i)},e.prototype.off=function(t,i){ge(this,t,i)}}u(yt,"eventMixin");function le(e){e.preventDefault?e.preventDefault():e.returnValue=!1}u(le,"e_preventDefault");function wn(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}u(wn,"e_stopPropagation");function pi(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}u(pi,"e_defaultPrevented");function Bt(e){le(e),wn(e)}u(Bt,"e_stop");function vi(e){return e.target||e.srcElement}u(vi,"e_target");function Ln(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),Se&&e.ctrlKey&&t==1&&(t=3),t}u(Ln,"e_button");var Vs=function(){if(N&&I<9)return!1;var e=T("div");return"draggable"in e||"dragDrop"in e}(),kn;function Il(e){if(kn==null){var t=T("span","");ve(e,T("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(kn=t.offsetWidth<=1&&t.offsetHeight>2&&!(N&&I<8))}var i=kn?T("span",""):T("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}u(Il,"zeroWidthElement");var Tn;function Bl(e){if(Tn!=null)return Tn;var t=ve(e,document.createTextNode("AخA")),i=gt(t,0,1).getBoundingClientRect(),r=gt(t,1,2).getBoundingClientRect();return Be(e),!i||i.left==i.right?!1:Tn=r.right-i.right<3}u(Bl,"hasBadBidiRects");var Mn=`
|
|
2
2
|
|
|
3
3
|
b`.split(/\n/).length!=3?function(e){for(var t=0,i=[],r=e.length;t<=r;){var n=e.indexOf(`
|
|
4
4
|
`,t);n==-1&&(n=e.length);var o=e.slice(t,e.charAt(n-1)=="\r"?n-1:n),l=o.indexOf("\r");l!=-1?(i.push(o.slice(0,l)),t+=l+1):(i.push(o),t=n+1)}return i}:function(e){return e.split(/\r\n?|\n/)},$s=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},eu=function(){var e=T("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Dn=null;function Rl(e){if(Dn!=null)return Dn;var t=ve(e,T("span","x")),i=t.getBoundingClientRect(),r=gt(t,0,1).getBoundingClientRect();return Dn=Math.abs(i.left-r.left)>1}u(Rl,"hasBadZoomedRects");var An={},Rt={};function zl(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),An[e]=t}u(zl,"defineMode");function Gl(e,t){Rt[e]=t}u(Gl,"defineMIME");function mr(e){if(typeof e=="string"&&Rt.hasOwnProperty(e))e=Rt[e];else if(e&&typeof e.name=="string"&&Rt.hasOwnProperty(e.name)){var t=Rt[e.name];typeof t=="string"&&(t={name:t}),e=bn(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return mr("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return mr("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}u(mr,"resolveMode");function gi(e,t){t=mr(t);var i=An[t.name];if(!i)return gi(e,"text/plain");var r=i(e,t);if(zt.hasOwnProperty(t.name)){var n=zt[t.name];for(var o in n)n.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=n[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var l in t.modeProps)r[l]=t.modeProps[l];return r}u(gi,"getMode");var zt={};function Ul(e,t){var i=zt.hasOwnProperty(e)?zt[e]:zt[e]={};je(t,i)}u(Ul,"extendMode");function $e(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var i={};for(var r in t){var n=t[r];n instanceof Array&&(n=n.concat([])),i[r]=n}return i}u($e,"copyState");function yi(e,t){for(var i;e.innerMode&&(i=e.innerMode(t),!(!i||i.mode==e));)t=i.state,e=i.mode;return i||{mode:e,state:t}}u(yi,"innerMode");function On(e,t,i){return e.startState?e.startState(t,i):!0}u(On,"startState");var _=u(function(e,t,i){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=i},"StringStream");_.prototype.eol=function(){return this.pos>=this.string.length},_.prototype.sol=function(){return this.pos==this.lineStart},_.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},_.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},_.prototype.eat=function(e){var t=this.string.charAt(this.pos),i;if(typeof e=="string"?i=t==e:i=t&&(e.test?e.test(t):e(t)),i)return++this.pos,t},_.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},_.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},_.prototype.skipToEnd=function(){this.pos=this.string.length},_.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},_.prototype.backUp=function(e){this.pos-=e},_.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=me(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?me(this.string,this.lineStart,this.tabSize):0)},_.prototype.indentation=function(){return me(this.string,null,this.tabSize)-(this.lineStart?me(this.string,this.lineStart,this.tabSize):0)},_.prototype.match=function(e,t,i){if(typeof e=="string"){var r=u(function(l){return i?l.toLowerCase():l},"cased"),n=this.string.substr(this.pos,e.length);if(r(n)==r(e))return t!==!1&&(this.pos+=e.length),!0}else{var o=this.string.slice(this.pos).match(e);return o&&o.index>0?null:(o&&t!==!1&&(this.pos+=o[0].length),o)}},_.prototype.current=function(){return this.string.slice(this.start,this.pos)},_.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},_.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},_.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function w(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var i=e;!i.lines;)for(var r=0;;++r){var n=i.children[r],o=n.chunkSize();if(t<o){i=n;break}t-=o}return i.lines[t]}u(w,"getLine");function et(e,t,i){var r=[],n=t.line;return e.iter(t.line,i.line+1,function(o){var l=o.text;n==i.line&&(l=l.slice(0,i.ch)),n==t.line&&(l=l.slice(t.ch)),r.push(l),++n}),r}u(et,"getBetween");function mi(e,t,i){var r=[];return e.iter(t,i,function(n){r.push(n.text)}),r}u(mi,"getLines");function Me(e,t){var i=t-e.height;if(i)for(var r=e;r;r=r.parent)r.height+=i}u(Me,"updateLineHeight");function P(e){if(e.parent==null)return null;for(var t=e.parent,i=ee(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var n=0;r.children[n]!=t;++n)i+=r.children[n].chunkSize();return i+t.first}u(P,"lineNo");function tt(e,t){var i=e.first;e:do{for(var r=0;r<e.children.length;++r){var n=e.children[r],o=n.height;if(t<o){e=n;continue e}t-=o,i+=n.chunkSize()}return i}while(!e.lines);for(var l=0;l<e.lines.length;++l){var a=e.lines[l],s=a.height;if(t<s)break;t-=s}return i+l}u(tt,"lineAtHeight");function Gt(e,t){return t>=e.first&&t<e.first+e.size}u(Gt,"isLine");function bi(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}u(bi,"lineNumberFor");function y(e,t,i){if(i===void 0&&(i=null),!(this instanceof y))return new y(e,t,i);this.line=e,this.ch=t,this.sticky=i}u(y,"Pos");function D(e,t){return e.line-t.line||e.ch-t.ch}u(D,"cmp");function xi(e,t){return e.sticky==t.sticky&&D(e,t)==0}u(xi,"equalCursorPos");function Ci(e){return y(e.line,e.ch)}u(Ci,"copyPos");function br(e,t){return D(e,t)<0?t:e}u(br,"maxPos");function xr(e,t){return D(e,t)<0?e:t}u(xr,"minPos");function Nn(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}u(Nn,"clipLine");function A(e,t){if(t.line<e.first)return y(e.first,0);var i=e.first+e.size-1;return t.line>i?y(i,w(e,i).text.length):Kl(t,w(e,t.line).text.length)}u(A,"clipPos");function Kl(e,t){var i=e.ch;return i==null||i>t?y(e.line,t):i<0?y(e.line,0):e}u(Kl,"clipToLen");function Wn(e,t){for(var i=[],r=0;r<t.length;r++)i[r]=A(e,t[r]);return i}u(Wn,"clipPosArray");var Si=u(function(e,t){this.state=e,this.lookAhead=t},"SavedContext"),Pe=u(function(e,t,i,r){this.state=t,this.doc=e,this.line=i,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1},"Context");Pe.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Pe.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Pe.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Pe.fromSaved=function(e,t,i){return t instanceof Si?new Pe(e,$e(e.mode,t.state),i,t.lookAhead):new Pe(e,$e(e.mode,t),i)},Pe.prototype.save=function(e){var t=e!==!1?$e(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Si(t,this.maxLookAhead):t};function Hn(e,t,i,r){var n=[e.state.modeGen],o={};Bn(e,t.text,e.doc.mode,i,function(f,h){return n.push(f,h)},o,r);for(var l=i.state,a=u(function(f){i.baseTokens=n;var h=e.state.overlays[f],d=1,p=0;i.state=!0,Bn(e,t.text,h.mode,i,function(c,v){for(var g=d;p<c;){var m=n[d];m>c&&n.splice(d,1,c,n[d+1],m),d+=2,p=Math.min(c,m)}if(v)if(h.opaque)n.splice(g,d-g,c,"overlay "+v),d=g+2;else for(;g<d;g+=2){var b=n[g+1];n[g+1]=(b?b+" ":"")+"overlay "+v}},o),i.state=l,i.baseTokens=null,i.baseTokenPos=1},"loop"),s=0;s<e.state.overlays.length;++s)a(s);return{styles:n,classes:o.bgClass||o.textClass?o:null}}u(Hn,"highlightLine");function Pn(e,t,i){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=Ut(e,P(t)),n=t.text.length>e.options.maxHighlightLength&&$e(e.doc.mode,r.state),o=Hn(e,t,r);n&&(r.state=n),t.stateAfter=r.save(!n),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),i===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}u(Pn,"getLineStyles");function Ut(e,t,i){var r=e.doc,n=e.display;if(!r.mode.startState)return new Pe(r,!0,t);var o=Xl(e,t,i),l=o>r.first&&w(r,o-1).stateAfter,a=l?Pe.fromSaved(r,l,o):new Pe(r,On(r.mode),o);return r.iter(o,t,function(s){wi(e,s.text,a);var f=a.line;s.stateAfter=f==t-1||f%5==0||f>=n.viewFrom&&f<n.viewTo?a.save():null,a.nextLine()}),i&&(r.modeFrontier=a.line),a}u(Ut,"getContextBefore");function wi(e,t,i,r){var n=e.doc.mode,o=new _(t,e.options.tabSize,i);for(o.start=o.pos=r||0,t==""&&Fn(n,i.state);!o.eol();)Li(n,o,i.state),o.start=o.pos}u(wi,"processLine");function Fn(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var i=yi(e,t);if(i.mode.blankLine)return i.mode.blankLine(i.state)}}u(Fn,"callBlankLine");function Li(e,t,i,r){for(var n=0;n<10;n++){r&&(r[0]=yi(e,i).mode);var o=e.token(t,i);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}u(Li,"readToken");var _l=u(function(e,t,i){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=i},"Token");function En(e,t,i,r){var n=e.doc,o=n.mode,l;t=A(n,t);var a=w(n,t.line),s=Ut(e,t.line,i),f=new _(a.text,e.options.tabSize,s),h;for(r&&(h=[]);(r||f.pos<t.ch)&&!f.eol();)f.start=f.pos,l=Li(o,f,s.state),r&&h.push(new _l(f,l,$e(n.mode,s.state)));return r?h:new _l(f,l,s.state)}u(En,"takeToken");function In(e,t){if(e)for(;;){var i=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!i)break;e=e.slice(0,i.index)+e.slice(i.index+i[0].length);var r=i[1]?"bgClass":"textClass";t[r]==null?t[r]=i[2]:new RegExp("(?:^|\\s)"+i[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+i[2])}return e}u(In,"extractLineClasses");function Bn(e,t,i,r,n,o,l){var a=i.flattenSpans;a==null&&(a=e.options.flattenSpans);var s=0,f=null,h=new _(t,e.options.tabSize,r),d,p=e.options.addModeClass&&[null];for(t==""&&In(Fn(i,r.state),o);!h.eol();){if(h.pos>e.options.maxHighlightLength?(a=!1,l&&wi(e,t,r,h.pos),h.pos=t.length,d=null):d=In(Li(i,h,r.state,p),o),p){var c=p[0].name;c&&(d="m-"+(d?c+" "+d:c))}if(!a||f!=d){for(;s<h.start;)s=Math.min(h.start,s+5e3),n(s,f);f=d}h.start=h.pos}for(;s<h.pos;){var v=Math.min(h.pos,s+5e3);n(v,f),s=v}}u(Bn,"runMode");function Xl(e,t,i){for(var r,n,o=e.doc,l=i?-1:t-(e.doc.mode.innerMode?1e3:100),a=t;a>l;--a){if(a<=o.first)return o.first;var s=w(o,a-1),f=s.stateAfter;if(f&&(!i||a+(f instanceof Si?f.lookAhead:0)<=o.modeFrontier))return a;var h=me(s.text,null,e.options.tabSize);(n==null||r>h)&&(n=a-1,r=h)}return n}u(Xl,"findStartLine");function Yl(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var i=e.first,r=t-1;r>i;r--){var n=w(e,r).stateAfter;if(n&&(!(n instanceof Si)||r+n.lookAhead<t)){i=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,i)}}u(Yl,"retreatFrontier");var ql=!1,ze=!1;function Zl(){ql=!0}u(Zl,"seeReadOnlySpans");function Ql(){ze=!0}u(Ql,"seeCollapsedSpans");function Cr(e,t,i){this.marker=e,this.from=t,this.to=i}u(Cr,"MarkedSpan");function Kt(e,t){if(e)for(var i=0;i<e.length;++i){var r=e[i];if(r.marker==t)return r}}u(Kt,"getMarkedSpanFor");function Jl(e,t){for(var i,r=0;r<e.length;++r)e[r]!=t&&(i||(i=[])).push(e[r]);return i}u(Jl,"removeMarkedSpan");function jl(e,t,i){var r=i&&window.WeakSet&&(i.markedSpans||(i.markedSpans=new WeakSet));r&&e.markedSpans&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}u(jl,"addMarkedSpan");function Vl(e,t,i){var r;if(e)for(var n=0;n<e.length;++n){var o=e[n],l=o.marker,a=o.from==null||(l.inclusiveLeft?o.from<=t:o.from<t);if(a||o.from==t&&l.type=="bookmark"&&(!i||!o.marker.insertLeft)){var s=o.to==null||(l.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new Cr(l,o.from,s?null:o.to))}}return r}u(Vl,"markedSpansBefore");function $l(e,t,i){var r;if(e)for(var n=0;n<e.length;++n){var o=e[n],l=o.marker,a=o.to==null||(l.inclusiveRight?o.to>=t:o.to>t);if(a||o.from==t&&l.type=="bookmark"&&(!i||o.marker.insertLeft)){var s=o.from==null||(l.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new Cr(l,s?null:o.from-t,o.to==null?null:o.to-t))}}return r}u($l,"markedSpansAfter");function ki(e,t){if(t.full)return null;var i=Gt(e,t.from.line)&&w(e,t.from.line).markedSpans,r=Gt(e,t.to.line)&&w(e,t.to.line).markedSpans;if(!i&&!r)return null;var n=t.from.ch,o=t.to.ch,l=D(t.from,t.to)==0,a=Vl(i,n,l),s=$l(r,o,l),f=t.text.length==1,h=W(t.text).length+(f?n:0);if(a)for(var d=0;d<a.length;++d){var p=a[d];if(p.to==null){var c=Kt(s,p.marker);c?f&&(p.to=c.to==null?null:c.to+h):p.to=n}}if(s)for(var v=0;v<s.length;++v){var g=s[v];if(g.to!=null&&(g.to+=h),g.from==null){var m=Kt(a,g.marker);m||(g.from=h,f&&(a||(a=[])).push(g))}else g.from+=h,f&&(a||(a=[])).push(g)}a&&(a=Rn(a)),s&&s!=a&&(s=Rn(s));var b=[a];if(!f){var C=t.text.length-2,x;if(C>0&&a)for(var S=0;S<a.length;++S)a[S].to==null&&(x||(x=[])).push(new Cr(a[S].marker,null,null));for(var k=0;k<C;++k)b.push(x);b.push(s)}return b}u(ki,"stretchSpansOverChange");function Rn(e){for(var t=0;t<e.length;++t){var i=e[t];i.from!=null&&i.from==i.to&&i.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}u(Rn,"clearEmptySpans");function ea(e,t,i){var r=null;if(e.iter(t.line,i.line+1,function(c){if(c.markedSpans)for(var v=0;v<c.markedSpans.length;++v){var g=c.markedSpans[v].marker;g.readOnly&&(!r||ee(r,g)==-1)&&(r||(r=[])).push(g)}}),!r)return null;for(var n=[{from:t,to:i}],o=0;o<r.length;++o)for(var l=r[o],a=l.find(0),s=0;s<n.length;++s){var f=n[s];if(!(D(f.to,a.from)<0||D(f.from,a.to)>0)){var h=[s,1],d=D(f.from,a.from),p=D(f.to,a.to);(d<0||!l.inclusiveLeft&&!d)&&h.push({from:f.from,to:a.from}),(p>0||!l.inclusiveRight&&!p)&&h.push({from:a.to,to:f.to}),n.splice.apply(n,h),s+=h.length-3}}return n}u(ea,"removeReadOnlyRanges");function zn(e){var t=e.markedSpans;if(t){for(var i=0;i<t.length;++i)t[i].marker.detachLine(e);e.markedSpans=null}}u(zn,"detachMarkedSpans");function Gn(e,t){if(t){for(var i=0;i<t.length;++i)t[i].marker.attachLine(e);e.markedSpans=t}}u(Gn,"attachMarkedSpans");function Sr(e){return e.inclusiveLeft?-1:0}u(Sr,"extraLeft");function wr(e){return e.inclusiveRight?1:0}u(wr,"extraRight");function Ti(e,t){var i=e.lines.length-t.lines.length;if(i!=0)return i;var r=e.find(),n=t.find(),o=D(r.from,n.from)||Sr(e)-Sr(t);if(o)return-o;var l=D(r.to,n.to)||wr(e)-wr(t);return l||t.id-e.id}u(Ti,"compareCollapsedMarkers");function Un(e,t){var i=ze&&e.markedSpans,r;if(i)for(var n=void 0,o=0;o<i.length;++o)n=i[o],n.marker.collapsed&&(t?n.from:n.to)==null&&(!r||Ti(r,n.marker)<0)&&(r=n.marker);return r}u(Un,"collapsedSpanAtSide");function Kn(e){return Un(e,!0)}u(Kn,"collapsedSpanAtStart");function Lr(e){return Un(e,!1)}u(Lr,"collapsedSpanAtEnd");function ta(e,t){var i=ze&&e.markedSpans,r;if(i)for(var n=0;n<i.length;++n){var o=i[n];o.marker.collapsed&&(o.from==null||o.from<t)&&(o.to==null||o.to>t)&&(!r||Ti(r,o.marker)<0)&&(r=o.marker)}return r}u(ta,"collapsedSpanAround");function _n(e,t,i,r,n){var o=w(e,t),l=ze&&o.markedSpans;if(l)for(var a=0;a<l.length;++a){var s=l[a];if(s.marker.collapsed){var f=s.marker.find(0),h=D(f.from,i)||Sr(s.marker)-Sr(n),d=D(f.to,r)||wr(s.marker)-wr(n);if(!(h>=0&&d<=0||h<=0&&d>=0)&&(h<=0&&(s.marker.inclusiveRight&&n.inclusiveLeft?D(f.to,i)>=0:D(f.to,i)>0)||h>=0&&(s.marker.inclusiveRight&&n.inclusiveLeft?D(f.from,r)<=0:D(f.from,r)<0)))return!0}}}u(_n,"conflictingCollapsedRange");function we(e){for(var t;t=Kn(e);)e=t.find(-1,!0).line;return e}u(we,"visualLine");function ra(e){for(var t;t=Lr(e);)e=t.find(1,!0).line;return e}u(ra,"visualLineEnd");function ia(e){for(var t,i;t=Lr(e);)e=t.find(1,!0).line,(i||(i=[])).push(e);return i}u(ia,"visualLineContinued");function Mi(e,t){var i=w(e,t),r=we(i);return i==r?t:P(r)}u(Mi,"visualLineNo");function Xn(e,t){if(t>e.lastLine())return t;var i=w(e,t),r;if(!Ge(e,i))return t;for(;r=Lr(i);)i=r.find(1,!0).line;return P(i)+1}u(Xn,"visualLineEndNo");function Ge(e,t){var i=ze&&t.markedSpans;if(i){for(var r=void 0,n=0;n<i.length;++n)if(r=i[n],!!r.marker.collapsed){if(r.from==null)return!0;if(!r.marker.widgetNode&&r.from==0&&r.marker.inclusiveLeft&&Di(e,t,r))return!0}}}u(Ge,"lineIsHidden");function Di(e,t,i){if(i.to==null){var r=i.marker.find(1,!0);return Di(e,r.line,Kt(r.line.markedSpans,i.marker))}if(i.marker.inclusiveRight&&i.to==t.text.length)return!0;for(var n=void 0,o=0;o<t.markedSpans.length;++o)if(n=t.markedSpans[o],n.marker.collapsed&&!n.marker.widgetNode&&n.from==i.to&&(n.to==null||n.to!=i.from)&&(n.marker.inclusiveLeft||i.marker.inclusiveRight)&&Di(e,t,n))return!0}u(Di,"lineIsHiddenInner");function Fe(e){e=we(e);for(var t=0,i=e.parent,r=0;r<i.lines.length;++r){var n=i.lines[r];if(n==e)break;t+=n.height}for(var o=i.parent;o;i=o,o=i.parent)for(var l=0;l<o.children.length;++l){var a=o.children[l];if(a==i)break;t+=a.height}return t}u(Fe,"heightAtLine");function kr(e){if(e.height==0)return 0;for(var t=e.text.length,i,r=e;i=Kn(r);){var n=i.find(0,!0);r=n.from.line,t+=n.from.ch-n.to.ch}for(r=e;i=Lr(r);){var o=i.find(0,!0);t-=r.text.length-o.from.ch,r=o.to.line,t+=r.text.length-o.to.ch}return t}u(kr,"lineLength");function Ai(e){var t=e.display,i=e.doc;t.maxLine=w(i,i.first),t.maxLineLength=kr(t.maxLine),t.maxLineChanged=!0,i.iter(function(r){var n=kr(r);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=r)})}u(Ai,"findMaxLine");var _t=u(function(e,t,i){this.text=e,Gn(this,t),this.height=i?i(this):1},"Line");_t.prototype.lineNo=function(){return P(this)},yt(_t);function na(e,t,i,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),zn(e),Gn(e,i);var n=r?r(e):1;n!=e.height&&Me(e,n)}u(na,"updateLine");function oa(e){e.parent=null,zn(e)}u(oa,"cleanUpLine");var tu={},ru={};function Yn(e,t){if(!e||/^\s*$/.test(e))return null;var i=t.addModeClass?ru:tu;return i[e]||(i[e]=e.replace(/\S+/g,"cm-$&"))}u(Yn,"interpretTokenStyle");function qn(e,t){var i=vt("span",null,null,oe?"padding-right: .1px":null),r={pre:vt("pre",[i],"CodeMirror-line"),content:i,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var n=0;n<=(t.rest?t.rest.length:0);n++){var o=n?t.rest[n-1]:t.line,l=void 0;r.pos=0,r.addToken=aa,Bl(e.display.measure)&&(l=He(o,e.doc.direction))&&(r.addToken=ua(r.addToken,l)),r.map=[];var a=t!=e.display.externalMeasured&&P(o);fa(o,r,Pn(e,o,a)),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=oi(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=oi(o.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(Il(e.display.measure))),n==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(oe){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return U(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=oi(r.pre.className,r.textClass||"")),r}u(qn,"buildLineContent");function la(e){var t=T("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}u(la,"defaultSpecialCharPlaceholder");function aa(e,t,i,r,n,o,l){if(t){var a=e.splitSpaces?sa(t,e.trailingSpace):t,s=e.cm.state.specialChars,f=!1,h;if(!s.test(t))e.col+=t.length,h=document.createTextNode(a),e.map.push(e.pos,e.pos+t.length,h),N&&I<9&&(f=!0),e.pos+=t.length;else{h=document.createDocumentFragment();for(var d=0;;){s.lastIndex=d;var p=s.exec(t),c=p?p.index-d:t.length-d;if(c){var v=document.createTextNode(a.slice(d,d+c));N&&I<9?h.appendChild(T("span",[v])):h.appendChild(v),e.map.push(e.pos,e.pos+c,v),e.col+=c,e.pos+=c}if(!p)break;d+=c+1;var g=void 0;if(p[0]==" "){var m=e.cm.options.tabSize,b=m-e.col%m;g=h.appendChild(T("span",fi(b),"cm-tab")),g.setAttribute("role","presentation"),g.setAttribute("cm-text"," "),e.col+=b}else p[0]=="\r"||p[0]==`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as G}from"./codemirror.es-
|
|
1
|
+
import{a as G}from"./codemirror.es-22B2FS1I.js";import"./index-c9RCKtxM.js";import"./index-BJnzhtRd.js";var H=Object.defineProperty,N=(O,A)=>H(O,"name",{value:A,configurable:!0});function q(O,A){return A.forEach(function(s){s&&typeof s!="string"&&!Array.isArray(s)&&Object.keys(s).forEach(function(b){if(b!=="default"&&!(b in O)){var d=Object.getOwnPropertyDescriptor(s,b);Object.defineProperty(O,b,d.get?d:{enumerable:!0,get:function(){return s[b]}})}})}),Object.freeze(O)}N(q,"_mergeNamespaces");var w={exports:{}};(function(O,A){(function(s){s(G.exports)})(function(s){var b={},d=/[^\s\u00a0]/,m=s.Pos,F=s.cmpPos;function P(t){var a=t.search(d);return a==-1?0:a}N(P,"firstNonWS"),s.commands.toggleComment=function(t){t.toggleComment()},s.defineExtension("toggleComment",function(t){t||(t=b);for(var a=this,n=1/0,e=this.listSelections(),g=null,c=e.length-1;c>=0;c--){var l=e[c].from(),r=e[c].to();l.line>=n||(r.line>=n&&(r=m(n,0)),n=l.line,g==null?a.uncomment(l,r,t)?g="un":(a.lineComment(l,r,t),g="line"):g=="un"?a.uncomment(l,r,t):a.lineComment(l,r,t))}});function $(t,a,n){return/\bstring\b/.test(t.getTokenTypeAt(m(a.line,0)))&&!/^[\'\"\`]/.test(n)}N($,"probablyInsideString");function j(t,a){var n=t.getMode();return n.useInnerComments===!1||!n.innerMode?n:t.getModeAt(a)}N(j,"getMode"),s.defineExtension("lineComment",function(t,a,n){n||(n=b);var e=this,g=j(e,t),c=e.getLine(t.line);if(!(c==null||$(e,t,c))){var l=n.lineComment||g.lineComment;if(!l){(n.blockCommentStart||g.blockCommentStart)&&(n.fullLines=!0,e.blockComment(t,a,n));return}var r=Math.min(a.ch!=0||a.line==t.line?a.line+1:a.line,e.lastLine()+1),C=n.padding==null?" ":n.padding,f=n.commentBlankLines||t.line==a.line;e.operation(function(){if(n.indent){for(var v=null,i=t.line;i<r;++i){var u=e.getLine(i),h=u.slice(0,P(u));(v==null||v.length>h.length)&&(v=h)}for(var i=t.line;i<r;++i){var u=e.getLine(i),o=v.length;!f&&!d.test(u)||(u.slice(0,o)!=v&&(o=P(u)),e.replaceRange(v+l+C,m(i,0),m(i,o)))}}else for(var i=t.line;i<r;++i)(f||d.test(e.getLine(i)))&&e.replaceRange(l+C,m(i,0))})}}),s.defineExtension("blockComment",function(t,a,n){n||(n=b);var e=this,g=j(e,t),c=n.blockCommentStart||g.blockCommentStart,l=n.blockCommentEnd||g.blockCommentEnd;if(!c||!l){(n.lineComment||g.lineComment)&&n.fullLines!=!1&&e.lineComment(t,a,n);return}if(!/\bcomment\b/.test(e.getTokenTypeAt(m(t.line,0)))){var r=Math.min(a.line,e.lastLine());r!=t.line&&a.ch==0&&d.test(e.getLine(r))&&--r;var C=n.padding==null?" ":n.padding;t.line>r||e.operation(function(){if(n.fullLines!=!1){var f=d.test(e.getLine(r));e.replaceRange(C+l,m(r)),e.replaceRange(c+C,m(t.line,0));var v=n.blockCommentLead||g.blockCommentLead;if(v!=null)for(var i=t.line+1;i<=r;++i)(i!=r||f)&&e.replaceRange(v+C,m(i,0))}else{var u=F(e.getCursor("to"),a)==0,h=!e.somethingSelected();e.replaceRange(l,a),u&&e.setSelection(h?a:e.getCursor("from"),a),e.replaceRange(c,t)}})}}),s.defineExtension("uncomment",function(t,a,n){n||(n=b);var e=this,g=j(e,t),c=Math.min(a.ch!=0||a.line==t.line?a.line:a.line-1,e.lastLine()),l=Math.min(t.line,c),r=n.lineComment||g.lineComment,C=[],f=n.padding==null?" ":n.padding,v;e:{if(!r)break e;for(var i=l;i<=c;++i){var u=e.getLine(i),h=u.indexOf(r);if(h>-1&&!/comment/.test(e.getTokenTypeAt(m(i,h+1)))&&(h=-1),h==-1&&d.test(u)||h>-1&&d.test(u.slice(0,h)))break e;C.push(u)}if(e.operation(function(){for(var L=l;L<=c;++L){var p=C[L-l],x=p.indexOf(r),k=x+r.length;x<0||(p.slice(k,k+f.length)==f&&(k+=f.length),v=!0,e.replaceRange("",m(L,x),m(L,k)))}}),v)return!0}var o=n.blockCommentStart||g.blockCommentStart,S=n.blockCommentEnd||g.blockCommentEnd;if(!o||!S)return!1;var W=n.blockCommentLead||g.blockCommentLead,E=e.getLine(l),_=E.indexOf(o);if(_==-1)return!1;var I=c==l?E:e.getLine(c),y=I.indexOf(S,c==l?_+o.length:0),z=m(l,_+1),B=m(c,y+1);if(y==-1||!/comment/.test(e.getTokenTypeAt(z))||!/comment/.test(e.getTokenTypeAt(B))||e.getRange(z,B,`
|
|
2
2
|
`).indexOf(S)>-1)return!1;var R=E.lastIndexOf(o,t.ch),T=R==-1?-1:E.slice(0,t.ch).indexOf(S,R+o.length);if(R!=-1&&T!=-1&&T+S.length!=t.ch)return!1;T=I.indexOf(S,a.ch);var D=I.slice(a.ch).lastIndexOf(o,T-a.ch);return R=T==-1||D==-1?-1:a.ch+D,T!=-1&&R!=-1&&R!=a.ch?!1:(e.operation(function(){e.replaceRange("",m(c,y-(f&&I.slice(y-f.length,y)==f?f.length:0)),m(c,y+S.length));var L=_+o.length;if(f&&E.slice(L,L+f.length)==f&&(L+=f.length),e.replaceRange("",m(l,_),m(l,L)),W)for(var p=l+1;p<=c;++p){var x=e.getLine(p),k=x.indexOf(W);if(!(k==-1||d.test(x.slice(0,k)))){var M=k+W.length;f&&x.slice(M,M+f.length)==f&&(M+=f.length),e.replaceRange("",m(p,k),m(p,M))}}}),!0)})})})();var J=w.exports,V=Object.freeze(q({__proto__:null,[Symbol.toStringTag]:"Module",default:J},[w.exports]));export{V as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{cl as Ur,r as O,cQ as Pe,eP as it,$ as Vr,iQ as ri,et as wt,g as pe,bP as ne,cO as oi,P as T,be as U,bR as ii,gK as ai,iR as li,iS as si,iT as ci,iU as di,iV as ui,iW as hi,iX as fi,iY as pi,iZ as gi,cL as vi,j as I,cX as ae,aj as mi,q as rt,eB as Ke,N as ye,m as be,bw as Si,ex as yi,bD as qr,bG as Kr,bB as _i,bC as Ci,bF as wi,i_ as xi,g0 as bi,i$ as Ri,j0 as Ti,eD as Ii,f$ as zi,j1 as Di,gD as Pi,eT as Oi,gI as ki,aG as Ni,aS as Ut,c5 as Qe,a5 as He,b4 as Mi,e0 as hn,b as Wt,a1 as Ne,j2 as jn,a3 as Qr,O as Li,f3 as Gn,iA as Ei,A as ht,D as Ai,B as ji,j3 as Gi,aT as Fi,g5 as Xr,F as jt,j4 as Wi,fd as Hi,j5 as $i,dZ as Bi,n as Ui,G as Fn,H as Vi,V as Wn,Q as Hn,en as $n,dR as Zt,fP as qi,a6 as Ki,eA as Ie}from"./index-DYxj4bsg.js";import{r as Qi,b as Xi,i as Bn,c as Yi,d as Un,D as Ji,H as Zi}from"./index-DMjshc-U.js";import{r as ea,a as ta,b as na,c as ra,d as oa,e as ia,f as aa,g as la,h as sa,i as ca}from"./slicedToArray-BsFyrH9P.js";import{_ as da}from"./actions-CYK55IDo.js";import{u as ua,C as at}from"./index.esm-COz0rluF.js";import{p as ha}from"./index-BkQeHFWv.js";import{_ as fa,u as pa}from"./_createAggregator-CC8samq7.js";import{S as fn}from"./simple-select-DQMt4spB.js";import{a as ga,b as Vn}from"./index-BHnQz9ut.js";import{a as Yr}from"./team-C9C-b8dk.js";import{u as Vt}from"./blocklet-q3h8NbCP.js";import{T as en}from"./TextField-Ck96Zj1i.js";import{I as qn}from"./InputAdornment-CZ1xQxbJ.js";import{F as Jr,S as Kn}from"./Select-DMrgQlpi.js";import{A as va}from"./Autocomplete-BNAhky76.js";import{H as ma,D as Sa,F as ya}from"./index-j0AXsS2r.js";import{u as _a}from"./app-avatar-rCMCHSVi.js";import{S as tn}from"./Skeleton-D9vyaoYF.js";import{B as nn}from"./ButtonGroup-6y7yf9hV.js";import{L as Qn}from"./LoadingButton-DyT3S3FL.js";import{I as Ca}from"./InputLabel-CBKMP0kd.js";import"./redux-D0hsiq_w.js";import"./useLocalStorage-BHwD0007.js";import"./MoreVert-B-UcAPyF.js";import"./Delete-Ctg2zeKs.js";import"./status-BwD-EBJu.js";import"./url-evaluation-_cliB2H6.js";import"./ListSubheader-CIqta_y7.js";import"./ExpandMore-v0D4A-jC.js";import"./getValidReactChildren-BxcBBj68.js";import"./useThemeProps-D02eSTIA.js";function wa(n,o){var r=Ur(O.useState(n),2),e=r[0],t=r[1],i=O.useMemo(function(){var a=!n,l=function(){return t(function(u){return u===n?a:n})},s=function(u){return t(u)},d=function(){return t(n)},c=function(){return t(a)};return{toggle:l,set:s,setLeft:d,setRight:c}},[]);return[e,i]}function xa(n){var o=Ur(wa(!!n),2),r=o[0],e=o[1],t=e.toggle,i=e.set,a=O.useMemo(function(){var l=function(){return i(!0)},s=function(){return i(!1)};return{toggle:t,set:function(d){return i(!!d)},setTrue:l,setFalse:s}},[]);return[r,a]}var ke={},Zr="Expected a function",Xn=NaN,ba="[object Symbol]",Ra=/^\s+|\s+$/g,Ta=/^[-+]0x[0-9a-f]+$/i,Ia=/^0b[01]+$/i,za=/^0o[0-7]+$/i,Da=parseInt,Pa=typeof Pe=="object"&&Pe&&Pe.Object===Object&&Pe,Oa=typeof self=="object"&&self&&self.Object===Object&&self,ka=Pa||Oa||Function("return this")(),Na=Object.prototype,Ma=Na.toString,La=Math.max,Ea=Math.min,rn=function(){return ka.Date.now()};function Aa(n,o,r){var e,t,i,a,l,s,d=0,c=!1,u=!1,h=!0;if(typeof n!="function")throw new TypeError(Zr);o=Yn(o)||0,Ht(r)&&(c=!!r.leading,u="maxWait"in r,i=u?La(Yn(r.maxWait)||0,o):i,h="trailing"in r?!!r.trailing:h);function p(b){var R=e,y=t;return e=t=void 0,d=b,a=n.apply(y,R),a}function f(b){return d=b,l=setTimeout(w,o),c?p(b):a}function m(b){var R=b-s,y=b-d,k=o-R;return u?Ea(k,i-y):k}function S(b){var R=b-s,y=b-d;return s===void 0||R>=o||R<0||u&&y>=i}function w(){var b=rn();if(S(b))return v(b);l=setTimeout(w,m(b))}function v(b){return l=void 0,h&&e?p(b):(e=t=void 0,a)}function D(){l!==void 0&&clearTimeout(l),d=0,e=s=t=l=void 0}function C(){return l===void 0?a:v(rn())}function g(){var b=rn(),R=S(b);if(e=arguments,t=this,s=b,R){if(l===void 0)return f(s);if(u)return l=setTimeout(w,o),p(s)}return l===void 0&&(l=setTimeout(w,o)),a}return g.cancel=D,g.flush=C,g}function ja(n,o,r){var e=!0,t=!0;if(typeof n!="function")throw new TypeError(Zr);return Ht(r)&&(e="leading"in r?!!r.leading:e,t="trailing"in r?!!r.trailing:t),Aa(n,o,{leading:e,maxWait:o,trailing:t})}function Ht(n){var o=typeof n;return!!n&&(o=="object"||o=="function")}function Ga(n){return!!n&&typeof n=="object"}function Fa(n){return typeof n=="symbol"||Ga(n)&&Ma.call(n)==ba}function Yn(n){if(typeof n=="number")return n;if(Fa(n))return Xn;if(Ht(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=Ht(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=n.replace(Ra,"");var r=Ia.test(n);return r||za.test(n)?Da(n.slice(2),r?2:8):Ta.test(n)?Xn:+n}var Wa=ja,qt={exports:{}},ft={exports:{}};(function(){var n,o,r,e,t,i;typeof performance<"u"&&performance!==null&&performance.now?ft.exports=function(){return performance.now()}:typeof it<"u"&&it!==null&&it.hrtime?(ft.exports=function(){return(n()-t)/1e6},o=it.hrtime,n=function(){var a;return a=o(),a[0]*1e9+a[1]},e=n(),i=it.uptime()*1e9,t=e-i):Date.now?(ft.exports=function(){return Date.now()-r},r=Date.now()):(ft.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(Pe);var Ha=ft.exports,$a=Ha,Oe=typeof window>"u"?Pe:window,Nt=["moz","webkit"],Je="AnimationFrame",et=Oe["request"+Je],_t=Oe["cancel"+Je]||Oe["cancelRequest"+Je];for(var lt=0;!et&<<Nt.length;lt++)et=Oe[Nt[lt]+"Request"+Je],_t=Oe[Nt[lt]+"Cancel"+Je]||Oe[Nt[lt]+"CancelRequest"+Je];if(!et||!_t){var on=0,Jn=0,Ge=[],Ba=1e3/60;et=function(n){if(Ge.length===0){var o=$a(),r=Math.max(0,Ba-(o-on));on=r+o,setTimeout(function(){var e=Ge.slice(0);Ge.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(on)}catch(i){setTimeout(function(){throw i},0)}},Math.round(r))}return Ge.push({handle:++Jn,callback:n,cancelled:!1}),Jn},_t=function(n){for(var o=0;o<Ge.length;o++)Ge[o].handle===n&&(Ge[o].cancelled=!0)}}qt.exports=function(n){return et.call(Oe,n)};qt.exports.cancel=function(){_t.apply(Oe,arguments)};qt.exports.polyfill=function(n){n||(n=Oe),n.requestAnimationFrame=et,n.cancelAnimationFrame=_t};var Ua=qt.exports,yn={};Object.defineProperty(yn,"__esModule",{value:!0});yn.default=Va;function Va(n){return n.displayName||n.name||(typeof n=="string"&&n.length>0?n:"Unknown")}var xt={};Object.defineProperty(xt,"__esModule",{value:!0});xt.noop=qa;xt.intBetween=Ka;xt.getCoords=Qa;function qa(){}function Ka(n,o,r){return Math.floor(Math.min(o,Math.max(n,r)))}function Qa(n){return n.type==="touchmove"?{x:n.changedTouches[0].clientX,y:n.changedTouches[0].clientY}:{x:n.clientX,y:n.clientY}}Object.defineProperty(ke,"__esModule",{value:!0});var Xa=ke.createHorizontalStrength=to,Ya=ke.createVerticalStrength=no,Ja=ke.createScrollingComponent=io,Za=ke.default=fl;ke.defaultVerticalStrength=ke.defaultHorizontalStrength=void 0;var St=il(O),st=bt(Vr),el=wt,tl=bt(Wa),Zn=bt(Ua),nl=bt(yn),rl=Qi,ol=bt(ri),Mt=xt;function bt(n){return n&&n.__esModule?n:{default:n}}function il(n){if(n&&n.__esModule)return n;var o={};if(n!=null){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var e=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(n,r):{};e.get||e.set?Object.defineProperty(o,r,e):o[r]=n[r]}}return o.default=n,o}function Gt(n){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Gt=function(r){return typeof r}:Gt=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Gt(n)}function $t(){return $t=Object.assign||function(n){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(n[e]=r[e])}return n},$t.apply(this,arguments)}function al(n,o){if(n==null)return{};var r=ll(n,o),e,t;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(t=0;t<i.length;t++)e=i[t],!(o.indexOf(e)>=0)&&Object.prototype.propertyIsEnumerable.call(n,e)&&(r[e]=n[e])}return r}function ll(n,o){if(n==null)return{};var r={},e=Object.keys(n),t,i;for(i=0;i<e.length;i++)t=e[i],!(o.indexOf(t)>=0)&&(r[t]=n[t]);return r}function sl(n,o){if(!(n instanceof o))throw new TypeError("Cannot call a class as a function")}function cl(n,o){for(var r=0;r<o.length;r++){var e=o[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,e.key,e)}}function dl(n,o,r){return o&&cl(n.prototype,o),n}function ul(n,o){return o&&(Gt(o)==="object"||typeof o=="function")?o:pt(n)}function pn(n){return pn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},pn(n)}function hl(n,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(o&&o.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),o&&gn(n,o)}function gn(n,o){return gn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},gn(n,o)}function pt(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function ct(n,o,r){return o in n?Object.defineProperty(n,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[o]=r,n}var eo=150;function to(n){return function(r,e){var t=r.x,i=r.w,a=r.y,l=r.h,s=Math.min(i/2,n),d=e.x>=t&&e.x<=t+i,c=d&&e.y>=a&&e.y<=a+l;if(c){if(e.x<t+s)return(e.x-t-s)/s;if(e.x>t+i-s)return-(t+i-e.x-s)/s}return 0}}function no(n){return function(r,e){var t=r.y,i=r.h,a=r.x,l=r.w,s=Math.min(i/2,n),d=e.y>=t&&e.y<=t+i,c=d&&e.x>=a&&e.x<=a+l;if(c){if(e.y<t+s)return(e.y-t-s)/s;if(e.y>t+i-s)return-(t+i-e.y-s)/s}return 0}}var ro=to(eo);ke.defaultHorizontalStrength=ro;var oo=no(eo);ke.defaultVerticalStrength=oo;function io(n){var o=function(r){hl(e,r);function e(t,i){var a;return sl(this,e),a=ul(this,pn(e).call(this,t,i)),ct(pt(pt(a)),"updateScrolling",(0,tl.default)(function(l){var s=a.container.getBoundingClientRect(),d=s.left,c=s.top,u=s.width,h=s.height,p={x:d,y:c,w:u,h},f=(0,Mt.getCoords)(l),m=a.props,S=m.horizontalStrength,w=m.verticalStrength;a.scaleX=S(p,f),a.scaleY=w(p,f),!a.frame&&(a.scaleX||a.scaleY)&&a.startScrolling()},100,{trailing:!1})),ct(pt(pt(a)),"handleEvent",function(l){a.dragging&&!a.attached&&(a.attach(),a.updateScrolling(l))}),a.wrappedInstance=St.default.createRef(),a.scaleX=0,a.scaleY=0,a.frame=null,a.attached=!1,a.dragging=!1,a}return dl(e,[{key:"componentDidMount",value:function(){var i=this;this.container=(0,el.findDOMNode)(this.wrappedInstance.current),this.container&&typeof this.container.addEventListener=="function"&&this.container.addEventListener("dragover",this.handleEvent),window.document.body.addEventListener("touchmove",this.handleEvent);var a=this.props.dragDropManager;this.clearMonitorSubscription=a.getMonitor().subscribeToStateChange(function(){return i.handleMonitorChange()})}},{key:"componentWillUnmount",value:function(){this.container&&typeof this.container.removeEventListener=="function"&&this.container.removeEventListener("dragover",this.handleEvent),window.document.body.removeEventListener("touchmove",this.handleEvent),this.clearMonitorSubscription(),this.stopScrolling()}},{key:"handleMonitorChange",value:function(){var i=this.props.dragDropManager,a=i.getMonitor().isDragging();!this.dragging&&a?this.dragging=!0:this.dragging&&!a&&(this.dragging=!1,this.stopScrolling())}},{key:"attach",value:function(){this.attached=!0,window.document.body.addEventListener("dragover",this.updateScrolling),window.document.body.addEventListener("touchmove",this.updateScrolling)}},{key:"detach",value:function(){this.attached=!1,window.document.body.removeEventListener("dragover",this.updateScrolling),window.document.body.removeEventListener("touchmove",this.updateScrolling)}},{key:"startScrolling",value:function(){var i=this,a=0,l=function s(){var d=i.scaleX,c=i.scaleY,u=i.container,h=i.props,p=h.strengthMultiplier,f=h.onScrollChange;if(p===0||d+c===0){i.stopScrolling();return}if(a+=1,a%2){var m=u.scrollLeft,S=u.scrollTop,w=u.scrollWidth,v=u.scrollHeight,D=u.clientWidth,C=u.clientHeight,g=d?u.scrollLeft=(0,Mt.intBetween)(0,w-D,m+d*p):m,b=c?u.scrollTop=(0,Mt.intBetween)(0,v-C,S+c*p):S;f(g,b)}i.frame=(0,Zn.default)(s)};l()}},{key:"stopScrolling",value:function(){this.detach(),this.scaleX=0,this.scaleY=0,this.frame&&(Zn.default.cancel(this.frame),this.frame=null)}},{key:"render",value:function(){var i=this.props;i.strengthMultiplier,i.verticalStrength,i.horizontalStrength,i.onScrollChange;var a=al(i,["strengthMultiplier","verticalStrength","horizontalStrength","onScrollChange"]);return St.default.createElement(n,$t({ref:this.wrappedInstance},a))}}]),e}(St.Component);return ct(o,"displayName","Scrolling(".concat((0,nl.default)(n),")")),ct(o,"propTypes",{dragDropManager:st.default.object.isRequired,onScrollChange:st.default.func,verticalStrength:st.default.func,horizontalStrength:st.default.func,strengthMultiplier:st.default.number}),ct(o,"defaultProps",{onScrollChange:Mt.noop,verticalStrength:oo,horizontalStrength:ro,strengthMultiplier:30}),(0,ol.default)(o,n)}function fl(n){var o=io(n);return function(r){return St.default.createElement(rl.DragDropContextConsumer,null,function(e){var t=e.dragDropManager;return t===void 0?null:St.default.createElement(o,$t({},r,{dragDropManager:t}))})}}var pl=ea();const ee=pe(pl);var gl=ta();const te=pe(gl);var vl=na();const ge=pe(vl);var ml=ra();const ve=pe(ml);var Sl=oa();const P=pe(Sl);var yl=ia();const me=pe(yl);var _l=aa();const x=pe(_l);function ao(){var n=this.constructor.getDerivedStateFromProps(this.props,this.state);n!=null&&this.setState(n)}function lo(n){function o(r){var e=this.constructor.getDerivedStateFromProps(n,r);return e??null}this.setState(o.bind(this))}function so(n,o){try{var r=this.props,e=this.state;this.props=n,this.state=o,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,e)}finally{this.props=r,this.state=e}}ao.__suppressDeprecationWarning=!0;lo.__suppressDeprecationWarning=!0;so.__suppressDeprecationWarning=!0;function Rt(n){var o=n.prototype;if(!o||!o.isReactComponent)throw new Error("Can only polyfill class components");if(typeof n.getDerivedStateFromProps!="function"&&typeof o.getSnapshotBeforeUpdate!="function")return n;var r=null,e=null,t=null;if(typeof o.componentWillMount=="function"?r="componentWillMount":typeof o.UNSAFE_componentWillMount=="function"&&(r="UNSAFE_componentWillMount"),typeof o.componentWillReceiveProps=="function"?e="componentWillReceiveProps":typeof o.UNSAFE_componentWillReceiveProps=="function"&&(e="UNSAFE_componentWillReceiveProps"),typeof o.componentWillUpdate=="function"?t="componentWillUpdate":typeof o.UNSAFE_componentWillUpdate=="function"&&(t="UNSAFE_componentWillUpdate"),r!==null||e!==null||t!==null){var i=n.displayName||n.name,a=typeof n.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
1
|
+
import{cl as Ur,r as O,cQ as Pe,eP as it,$ as Vr,iQ as ri,et as wt,g as pe,bP as ne,cO as oi,P as T,be as U,bR as ii,gK as ai,iR as li,iS as si,iT as ci,iU as di,iV as ui,iW as hi,iX as fi,iY as pi,iZ as gi,cL as vi,j as I,cX as ae,aj as mi,q as rt,eB as Ke,N as ye,m as be,bw as Si,ex as yi,bD as qr,bG as Kr,bB as _i,bC as Ci,bF as wi,i_ as xi,g0 as bi,i$ as Ri,j0 as Ti,eD as Ii,f$ as zi,j1 as Di,gD as Pi,eT as Oi,gI as ki,aG as Ni,aS as Ut,c5 as Qe,a5 as He,b4 as Mi,e0 as hn,b as Wt,a1 as Ne,j2 as jn,a3 as Qr,O as Li,f3 as Gn,iA as Ei,A as ht,D as Ai,B as ji,j3 as Gi,aT as Fi,g5 as Xr,F as jt,j4 as Wi,fd as Hi,j5 as $i,dZ as Bi,n as Ui,G as Fn,H as Vi,V as Wn,Q as Hn,en as $n,dR as Zt,fP as qi,a6 as Ki,eA as Ie}from"./index-BJnzhtRd.js";import{r as Qi,b as Xi,i as Bn,c as Yi,d as Un,D as Ji,H as Zi}from"./index-CcXQVpnD.js";import{r as ea,a as ta,b as na,c as ra,d as oa,e as ia,f as aa,g as la,h as sa,i as ca}from"./slicedToArray-CDGik_Tm.js";import{_ as da}from"./actions-j2SGu6Ou.js";import{u as ua,C as at}from"./index.esm-Ckwd_Oui.js";import{p as ha}from"./index-BMDwhPjF.js";import{_ as fa,u as pa}from"./_createAggregator-h86wTnGB.js";import{S as fn}from"./simple-select-wsKOgQkD.js";import{a as ga,b as Vn}from"./index-BLAXOuyV.js";import{a as Yr}from"./team-DvBIHwmh.js";import{u as Vt}from"./blocklet-CpvMNcyR.js";import{T as en}from"./TextField-CffC6XHW.js";import{I as qn}from"./InputAdornment-BZCjodnq.js";import{F as Jr,S as Kn}from"./Select-BjFMRCFC.js";import{A as va}from"./Autocomplete-BBeQ6-hj.js";import{H as ma,D as Sa,F as ya}from"./index-BxngBW5S.js";import{u as _a}from"./app-avatar-kyTZFM62.js";import{S as tn}from"./Skeleton-CWJ5kMp8.js";import{B as nn}from"./ButtonGroup-stQLgH3W.js";import{L as Qn}from"./LoadingButton-D_RPeOOx.js";import{I as Ca}from"./InputLabel-do0oj_cA.js";import"./redux-uxGspPZE.js";import"./useLocalStorage-CQuk9gV7.js";import"./MoreVert-CQDScAiQ.js";import"./Delete-BF5FxXLc.js";import"./status-_kkqAfEb.js";import"./url-evaluation-C1MAR5hw.js";import"./ListSubheader-UNIM44v3.js";import"./ExpandMore-CVyKHY4x.js";import"./getValidReactChildren-B0SBEHgb.js";import"./useThemeProps-BHp4rQcT.js";function wa(n,o){var r=Ur(O.useState(n),2),e=r[0],t=r[1],i=O.useMemo(function(){var a=!n,l=function(){return t(function(u){return u===n?a:n})},s=function(u){return t(u)},d=function(){return t(n)},c=function(){return t(a)};return{toggle:l,set:s,setLeft:d,setRight:c}},[]);return[e,i]}function xa(n){var o=Ur(wa(!!n),2),r=o[0],e=o[1],t=e.toggle,i=e.set,a=O.useMemo(function(){var l=function(){return i(!0)},s=function(){return i(!1)};return{toggle:t,set:function(d){return i(!!d)},setTrue:l,setFalse:s}},[]);return[r,a]}var ke={},Zr="Expected a function",Xn=NaN,ba="[object Symbol]",Ra=/^\s+|\s+$/g,Ta=/^[-+]0x[0-9a-f]+$/i,Ia=/^0b[01]+$/i,za=/^0o[0-7]+$/i,Da=parseInt,Pa=typeof Pe=="object"&&Pe&&Pe.Object===Object&&Pe,Oa=typeof self=="object"&&self&&self.Object===Object&&self,ka=Pa||Oa||Function("return this")(),Na=Object.prototype,Ma=Na.toString,La=Math.max,Ea=Math.min,rn=function(){return ka.Date.now()};function Aa(n,o,r){var e,t,i,a,l,s,d=0,c=!1,u=!1,h=!0;if(typeof n!="function")throw new TypeError(Zr);o=Yn(o)||0,Ht(r)&&(c=!!r.leading,u="maxWait"in r,i=u?La(Yn(r.maxWait)||0,o):i,h="trailing"in r?!!r.trailing:h);function p(b){var R=e,y=t;return e=t=void 0,d=b,a=n.apply(y,R),a}function f(b){return d=b,l=setTimeout(w,o),c?p(b):a}function m(b){var R=b-s,y=b-d,k=o-R;return u?Ea(k,i-y):k}function S(b){var R=b-s,y=b-d;return s===void 0||R>=o||R<0||u&&y>=i}function w(){var b=rn();if(S(b))return v(b);l=setTimeout(w,m(b))}function v(b){return l=void 0,h&&e?p(b):(e=t=void 0,a)}function D(){l!==void 0&&clearTimeout(l),d=0,e=s=t=l=void 0}function C(){return l===void 0?a:v(rn())}function g(){var b=rn(),R=S(b);if(e=arguments,t=this,s=b,R){if(l===void 0)return f(s);if(u)return l=setTimeout(w,o),p(s)}return l===void 0&&(l=setTimeout(w,o)),a}return g.cancel=D,g.flush=C,g}function ja(n,o,r){var e=!0,t=!0;if(typeof n!="function")throw new TypeError(Zr);return Ht(r)&&(e="leading"in r?!!r.leading:e,t="trailing"in r?!!r.trailing:t),Aa(n,o,{leading:e,maxWait:o,trailing:t})}function Ht(n){var o=typeof n;return!!n&&(o=="object"||o=="function")}function Ga(n){return!!n&&typeof n=="object"}function Fa(n){return typeof n=="symbol"||Ga(n)&&Ma.call(n)==ba}function Yn(n){if(typeof n=="number")return n;if(Fa(n))return Xn;if(Ht(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=Ht(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=n.replace(Ra,"");var r=Ia.test(n);return r||za.test(n)?Da(n.slice(2),r?2:8):Ta.test(n)?Xn:+n}var Wa=ja,qt={exports:{}},ft={exports:{}};(function(){var n,o,r,e,t,i;typeof performance<"u"&&performance!==null&&performance.now?ft.exports=function(){return performance.now()}:typeof it<"u"&&it!==null&&it.hrtime?(ft.exports=function(){return(n()-t)/1e6},o=it.hrtime,n=function(){var a;return a=o(),a[0]*1e9+a[1]},e=n(),i=it.uptime()*1e9,t=e-i):Date.now?(ft.exports=function(){return Date.now()-r},r=Date.now()):(ft.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(Pe);var Ha=ft.exports,$a=Ha,Oe=typeof window>"u"?Pe:window,Nt=["moz","webkit"],Je="AnimationFrame",et=Oe["request"+Je],_t=Oe["cancel"+Je]||Oe["cancelRequest"+Je];for(var lt=0;!et&<<Nt.length;lt++)et=Oe[Nt[lt]+"Request"+Je],_t=Oe[Nt[lt]+"Cancel"+Je]||Oe[Nt[lt]+"CancelRequest"+Je];if(!et||!_t){var on=0,Jn=0,Ge=[],Ba=1e3/60;et=function(n){if(Ge.length===0){var o=$a(),r=Math.max(0,Ba-(o-on));on=r+o,setTimeout(function(){var e=Ge.slice(0);Ge.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(on)}catch(i){setTimeout(function(){throw i},0)}},Math.round(r))}return Ge.push({handle:++Jn,callback:n,cancelled:!1}),Jn},_t=function(n){for(var o=0;o<Ge.length;o++)Ge[o].handle===n&&(Ge[o].cancelled=!0)}}qt.exports=function(n){return et.call(Oe,n)};qt.exports.cancel=function(){_t.apply(Oe,arguments)};qt.exports.polyfill=function(n){n||(n=Oe),n.requestAnimationFrame=et,n.cancelAnimationFrame=_t};var Ua=qt.exports,yn={};Object.defineProperty(yn,"__esModule",{value:!0});yn.default=Va;function Va(n){return n.displayName||n.name||(typeof n=="string"&&n.length>0?n:"Unknown")}var xt={};Object.defineProperty(xt,"__esModule",{value:!0});xt.noop=qa;xt.intBetween=Ka;xt.getCoords=Qa;function qa(){}function Ka(n,o,r){return Math.floor(Math.min(o,Math.max(n,r)))}function Qa(n){return n.type==="touchmove"?{x:n.changedTouches[0].clientX,y:n.changedTouches[0].clientY}:{x:n.clientX,y:n.clientY}}Object.defineProperty(ke,"__esModule",{value:!0});var Xa=ke.createHorizontalStrength=to,Ya=ke.createVerticalStrength=no,Ja=ke.createScrollingComponent=io,Za=ke.default=fl;ke.defaultVerticalStrength=ke.defaultHorizontalStrength=void 0;var St=il(O),st=bt(Vr),el=wt,tl=bt(Wa),Zn=bt(Ua),nl=bt(yn),rl=Qi,ol=bt(ri),Mt=xt;function bt(n){return n&&n.__esModule?n:{default:n}}function il(n){if(n&&n.__esModule)return n;var o={};if(n!=null){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var e=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(n,r):{};e.get||e.set?Object.defineProperty(o,r,e):o[r]=n[r]}}return o.default=n,o}function Gt(n){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Gt=function(r){return typeof r}:Gt=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Gt(n)}function $t(){return $t=Object.assign||function(n){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(n[e]=r[e])}return n},$t.apply(this,arguments)}function al(n,o){if(n==null)return{};var r=ll(n,o),e,t;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(t=0;t<i.length;t++)e=i[t],!(o.indexOf(e)>=0)&&Object.prototype.propertyIsEnumerable.call(n,e)&&(r[e]=n[e])}return r}function ll(n,o){if(n==null)return{};var r={},e=Object.keys(n),t,i;for(i=0;i<e.length;i++)t=e[i],!(o.indexOf(t)>=0)&&(r[t]=n[t]);return r}function sl(n,o){if(!(n instanceof o))throw new TypeError("Cannot call a class as a function")}function cl(n,o){for(var r=0;r<o.length;r++){var e=o[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,e.key,e)}}function dl(n,o,r){return o&&cl(n.prototype,o),n}function ul(n,o){return o&&(Gt(o)==="object"||typeof o=="function")?o:pt(n)}function pn(n){return pn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},pn(n)}function hl(n,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(o&&o.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),o&&gn(n,o)}function gn(n,o){return gn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},gn(n,o)}function pt(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function ct(n,o,r){return o in n?Object.defineProperty(n,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[o]=r,n}var eo=150;function to(n){return function(r,e){var t=r.x,i=r.w,a=r.y,l=r.h,s=Math.min(i/2,n),d=e.x>=t&&e.x<=t+i,c=d&&e.y>=a&&e.y<=a+l;if(c){if(e.x<t+s)return(e.x-t-s)/s;if(e.x>t+i-s)return-(t+i-e.x-s)/s}return 0}}function no(n){return function(r,e){var t=r.y,i=r.h,a=r.x,l=r.w,s=Math.min(i/2,n),d=e.y>=t&&e.y<=t+i,c=d&&e.x>=a&&e.x<=a+l;if(c){if(e.y<t+s)return(e.y-t-s)/s;if(e.y>t+i-s)return-(t+i-e.y-s)/s}return 0}}var ro=to(eo);ke.defaultHorizontalStrength=ro;var oo=no(eo);ke.defaultVerticalStrength=oo;function io(n){var o=function(r){hl(e,r);function e(t,i){var a;return sl(this,e),a=ul(this,pn(e).call(this,t,i)),ct(pt(pt(a)),"updateScrolling",(0,tl.default)(function(l){var s=a.container.getBoundingClientRect(),d=s.left,c=s.top,u=s.width,h=s.height,p={x:d,y:c,w:u,h},f=(0,Mt.getCoords)(l),m=a.props,S=m.horizontalStrength,w=m.verticalStrength;a.scaleX=S(p,f),a.scaleY=w(p,f),!a.frame&&(a.scaleX||a.scaleY)&&a.startScrolling()},100,{trailing:!1})),ct(pt(pt(a)),"handleEvent",function(l){a.dragging&&!a.attached&&(a.attach(),a.updateScrolling(l))}),a.wrappedInstance=St.default.createRef(),a.scaleX=0,a.scaleY=0,a.frame=null,a.attached=!1,a.dragging=!1,a}return dl(e,[{key:"componentDidMount",value:function(){var i=this;this.container=(0,el.findDOMNode)(this.wrappedInstance.current),this.container&&typeof this.container.addEventListener=="function"&&this.container.addEventListener("dragover",this.handleEvent),window.document.body.addEventListener("touchmove",this.handleEvent);var a=this.props.dragDropManager;this.clearMonitorSubscription=a.getMonitor().subscribeToStateChange(function(){return i.handleMonitorChange()})}},{key:"componentWillUnmount",value:function(){this.container&&typeof this.container.removeEventListener=="function"&&this.container.removeEventListener("dragover",this.handleEvent),window.document.body.removeEventListener("touchmove",this.handleEvent),this.clearMonitorSubscription(),this.stopScrolling()}},{key:"handleMonitorChange",value:function(){var i=this.props.dragDropManager,a=i.getMonitor().isDragging();!this.dragging&&a?this.dragging=!0:this.dragging&&!a&&(this.dragging=!1,this.stopScrolling())}},{key:"attach",value:function(){this.attached=!0,window.document.body.addEventListener("dragover",this.updateScrolling),window.document.body.addEventListener("touchmove",this.updateScrolling)}},{key:"detach",value:function(){this.attached=!1,window.document.body.removeEventListener("dragover",this.updateScrolling),window.document.body.removeEventListener("touchmove",this.updateScrolling)}},{key:"startScrolling",value:function(){var i=this,a=0,l=function s(){var d=i.scaleX,c=i.scaleY,u=i.container,h=i.props,p=h.strengthMultiplier,f=h.onScrollChange;if(p===0||d+c===0){i.stopScrolling();return}if(a+=1,a%2){var m=u.scrollLeft,S=u.scrollTop,w=u.scrollWidth,v=u.scrollHeight,D=u.clientWidth,C=u.clientHeight,g=d?u.scrollLeft=(0,Mt.intBetween)(0,w-D,m+d*p):m,b=c?u.scrollTop=(0,Mt.intBetween)(0,v-C,S+c*p):S;f(g,b)}i.frame=(0,Zn.default)(s)};l()}},{key:"stopScrolling",value:function(){this.detach(),this.scaleX=0,this.scaleY=0,this.frame&&(Zn.default.cancel(this.frame),this.frame=null)}},{key:"render",value:function(){var i=this.props;i.strengthMultiplier,i.verticalStrength,i.horizontalStrength,i.onScrollChange;var a=al(i,["strengthMultiplier","verticalStrength","horizontalStrength","onScrollChange"]);return St.default.createElement(n,$t({ref:this.wrappedInstance},a))}}]),e}(St.Component);return ct(o,"displayName","Scrolling(".concat((0,nl.default)(n),")")),ct(o,"propTypes",{dragDropManager:st.default.object.isRequired,onScrollChange:st.default.func,verticalStrength:st.default.func,horizontalStrength:st.default.func,strengthMultiplier:st.default.number}),ct(o,"defaultProps",{onScrollChange:Mt.noop,verticalStrength:oo,horizontalStrength:ro,strengthMultiplier:30}),(0,ol.default)(o,n)}function fl(n){var o=io(n);return function(r){return St.default.createElement(rl.DragDropContextConsumer,null,function(e){var t=e.dragDropManager;return t===void 0?null:St.default.createElement(o,$t({},r,{dragDropManager:t}))})}}var pl=ea();const ee=pe(pl);var gl=ta();const te=pe(gl);var vl=na();const ge=pe(vl);var ml=ra();const ve=pe(ml);var Sl=oa();const P=pe(Sl);var yl=ia();const me=pe(yl);var _l=aa();const x=pe(_l);function ao(){var n=this.constructor.getDerivedStateFromProps(this.props,this.state);n!=null&&this.setState(n)}function lo(n){function o(r){var e=this.constructor.getDerivedStateFromProps(n,r);return e??null}this.setState(o.bind(this))}function so(n,o){try{var r=this.props,e=this.state;this.props=n,this.state=o,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,e)}finally{this.props=r,this.state=e}}ao.__suppressDeprecationWarning=!0;lo.__suppressDeprecationWarning=!0;so.__suppressDeprecationWarning=!0;function Rt(n){var o=n.prototype;if(!o||!o.isReactComponent)throw new Error("Can only polyfill class components");if(typeof n.getDerivedStateFromProps!="function"&&typeof o.getSnapshotBeforeUpdate!="function")return n;var r=null,e=null,t=null;if(typeof o.componentWillMount=="function"?r="componentWillMount":typeof o.UNSAFE_componentWillMount=="function"&&(r="UNSAFE_componentWillMount"),typeof o.componentWillReceiveProps=="function"?e="componentWillReceiveProps":typeof o.UNSAFE_componentWillReceiveProps=="function"&&(e="UNSAFE_componentWillReceiveProps"),typeof o.componentWillUpdate=="function"?t="componentWillUpdate":typeof o.UNSAFE_componentWillUpdate=="function"&&(t="UNSAFE_componentWillUpdate"),r!==null||e!==null||t!==null){var i=n.displayName||n.name,a=typeof n.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
2
2
|
|
|
3
3
|
`+i+" uses "+a+" but also contains the following legacy lifecycles:"+(r!==null?`
|
|
4
4
|
`+r:"")+(e!==null?`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as g,bo as U,aT as k,j as e,$ as R,O,A as m,b as J,a4 as w,am as Q,H as L,q as y,N as x,m as B,P as d,a5 as G,a6 as V,V as v,K as E,y as H,az as N,a3 as b,ao as P}from"./index-DYxj4bsg.js";import{S as X,A as K,d as z}from"./index-Bh8rfP9m.js";import"./index-B2tDACFP.js";import{a as Y,b as q,c as W}from"./spaces-BH8l3rDt.js";import{u as S}from"./blocklet-q3h8NbCP.js";import{d as _}from"./DeleteOutline-BlYvTbWy.js";import"./api-C59NHs3o.js";function $(){const[t,a]=g.useState(null),{blocklet:s}=S();return g.useEffect(()=>{a(Y(s))},[s]),{storageEndpoint:t}}const D=g.createContext({}),{Provider:e1,Consumer:h1}=D;function M({children:t}){const[a,s]=g.useState(!1),[c,i]=g.useState(null),{blocklet:r,actions:{refreshBlocklet:f}}=S(),{storageEndpoint:p}=$(),{api:u}=U();k(async()=>{try{if(s(!0),O(p)){i(null);return}const l=await q(p);i(l)}catch(l){console.error(l),m.error(l.message)}finally{s(!1)}},[p]);const o=()=>{i(null),f()},h=async l=>{i(l),await n(l.endpoint),f()},n=async l=>{await u.configBlocklet({input:{did:[r.meta.did],configs:[{key:J.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SPACE_ENDPOINT,value:l}]}}),f()};g.useEffect(()=>{async function l(){if(!c)return;const C=await W(c.endpoint,c.name),Z=w(c,{name:C});i(Z)}l()},[]);const A=!!(p&&c);return e.jsx(e1,{value:{loading:a,spaceGateway:c,deleteSpaceGateway:o,updateSpaceGateway:h,storageEndpoint:p,settingStorageEndpoint:n,hasStorageEndpoint:A},children:t})}M.propTypes={children:R.node.isRequired};M.defaultProps={};function t1(){return g.useContext(D)}function d1({key:t}={key:"sm"}){const a=Q();return L(a.breakpoints.down(t))}var F=function(a){return e.jsxs("svg",{...a,children:[e.jsxs("g",{filter:"url(#a)",children:[e.jsx("path",{d:"M56.97 2a12 12 0 0 0-8.485 3.515l-40.97 40.97A12 12 0 0 0 4 54.971V240c0 6.627 5.373 12 12 12h196c6.627 0 12-5.373 12-12V14c0-6.627-5.373-12-12-12H56.97Z",fill:"#DDD"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m49.192 6.222-40.97 40.97A11 11 0 0 0 5 54.971V240c0 6.075 4.925 11 11 11h196c6.075 0 11-4.925 11-11V14c0-6.075-4.925-11-11-11H56.97a11 11 0 0 0-7.778 3.222Zm-.707-.707A12 12 0 0 1 56.971 2H212c6.627 0 12 5.373 12 12v226c0 6.627-5.373 12-12 12H16c-6.627 0-12-5.373-12-12V54.97a12 12 0 0 1 3.515-8.485l40.97-40.97Z",fill:"#000",fillOpacity:".08"}),e.jsx("mask",{id:"b",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"4",y:"2",width:"220",height:"250",children:e.jsx("path",{d:"M56.97 2a12 12 0 0 0-8.485 3.515l-40.97 40.97A12 12 0 0 0 4 54.971V240c0 6.627 5.373 12 12 12h196c6.627 0 12-5.373 12-12V14c0-6.627-5.373-12-12-12H56.97Z",fill:"#D9D9D9"})}),e.jsxs("g",{mask:"url(#b)",children:[e.jsx("path",{opacity:".5",fill:"url(#c)",d:"M4 2h220v128H4z"}),e.jsx("path",{opacity:".1",fill:"url(#d)",d:"M4 130h220v122H4z"}),e.jsx("path",{d:"M33.045 169h-3.767v-11.636h3.887c1.14 0 2.12.233 2.937.698a4.61 4.61 0 0 1 1.881 1.995c.44.863.659 1.899.659 3.108 0 1.212-.222 2.254-.665 3.125a4.668 4.668 0 0 1-1.909 2.011c-.833.466-1.84.699-3.023.699Zm-2.01-1.534h1.914c.886 0 1.623-.167 2.21-.5a3.152 3.152 0 0 0 1.318-1.46c.292-.64.438-1.421.438-2.341 0-.913-.146-1.688-.438-2.324a3.095 3.095 0 0 0-1.29-1.449c-.572-.33-1.282-.494-2.13-.494h-2.023v8.568Zm11.546-10.102V169h-1.756v-11.636h1.756ZM48.905 169h-3.767v-11.636h3.886c1.14 0 2.12.233 2.938.698a4.609 4.609 0 0 1 1.88 1.995c.44.863.66 1.899.66 3.108 0 1.212-.222 2.254-.665 3.125a4.667 4.667 0 0 1-1.91 2.011c-.833.466-1.84.699-3.022.699Zm-2.011-1.534h1.914c.887 0 1.623-.167 2.21-.5a3.151 3.151 0 0 0 1.319-1.46c.291-.64.437-1.421.437-2.341 0-.913-.146-1.688-.437-2.324a3.095 3.095 0 0 0-1.29-1.449c-.572-.33-1.282-.494-2.13-.494h-2.023v8.568Zm20.372-7.046a1.662 1.662 0 0 0-.75-1.25c-.44-.299-.993-.448-1.66-.448-.477 0-.89.075-1.238.227a1.91 1.91 0 0 0-.813.613c-.189.258-.284.552-.284.881 0 .277.065.515.194.716.132.201.304.369.516.506.216.132.447.244.694.335.246.087.483.159.71.216l1.136.295c.371.091.752.214 1.142.37.39.155.752.36 1.086.613.333.254.602.568.806.944.209.374.313.823.313 1.346 0 .659-.17 1.244-.511 1.756-.338.511-.828.915-1.472 1.21-.64.295-1.415.443-2.324.443-.871 0-1.625-.138-2.261-.415-.637-.276-1.135-.668-1.495-1.176-.36-.511-.558-1.117-.596-1.818h1.761c.034.421.17.771.41 1.051.242.277.55.483.925.62.38.132.794.198 1.245.198.496 0 .937-.077 1.324-.233.39-.159.697-.378.92-.659a1.56 1.56 0 0 0 .335-.994c0-.345-.098-.627-.295-.847a2.191 2.191 0 0 0-.79-.545 7.725 7.725 0 0 0-1.12-.381l-1.374-.375c-.932-.253-1.67-.627-2.216-1.119-.542-.492-.813-1.144-.813-1.955 0-.67.182-1.255.546-1.755.363-.5.856-.888 1.477-1.165.621-.28 1.322-.42 2.102-.42.788 0 1.483.138 2.085.414.607.277 1.084.658 1.432 1.142.349.481.53 1.034.546 1.659h-1.693Zm3.813 11.853v-12h1.66v1.415h.142c.098-.182.24-.393.426-.631.185-.239.443-.447.772-.625.33-.182.766-.273 1.307-.273.705 0 1.334.178 1.887.534.553.356.987.869 1.3 1.54.319.67.478 1.477.478 2.42 0 .944-.157 1.752-.472 2.427-.314.67-.746 1.187-1.295 1.551-.55.36-1.176.539-1.88.539-.53 0-.965-.089-1.302-.267a2.457 2.457 0 0 1-.784-.625 4.667 4.667 0 0 1-.437-.636h-.103v4.631H71.08Zm1.665-7.637c0 .614.09 1.152.267 1.614.178.462.436.824.773 1.085.337.258.75.387 1.239.387.507 0 .931-.135 1.273-.404.34-.273.598-.642.772-1.108.178-.466.267-.99.267-1.574 0-.575-.087-1.092-.261-1.551-.17-.458-.428-.82-.773-1.085-.34-.265-.767-.398-1.278-.398-.493 0-.91.127-1.25.381-.337.254-.593.608-.767 1.062-.175.455-.262.985-.262 1.591Zm10.75 4.557a3.557 3.557 0 0 1-1.5-.307 2.523 2.523 0 0 1-1.062-.903c-.258-.394-.386-.877-.386-1.449 0-.492.094-.898.283-1.216.19-.318.446-.57.768-.756a4.036 4.036 0 0 1 1.08-.42c.397-.095.802-.167 1.215-.216l1.273-.148c.325-.041.562-.108.71-.198.148-.091.222-.239.222-.444v-.039c0-.497-.14-.881-.42-1.154-.277-.273-.69-.409-1.24-.409-.572 0-1.022.127-1.352.381-.325.25-.55.528-.676.835l-1.597-.364c.19-.53.466-.958.83-1.284.368-.329.79-.568 1.267-.716.477-.151.98-.227 1.506-.227.348 0 .718.042 1.108.125.394.08.761.227 1.102.443.345.216.627.525.847.926.22.398.33.915.33 1.552V169h-1.66v-1.193h-.068c-.11.22-.275.435-.495.648-.22.212-.501.388-.846.528s-.758.21-1.239.21Zm.37-1.363c.47 0 .87-.093 1.204-.279.337-.185.593-.428.767-.727.178-.303.267-.627.267-.972v-1.125c-.06.061-.178.118-.352.171-.17.049-.365.093-.585.13-.22.034-.434.067-.642.097l-.523.068c-.33.042-.63.112-.903.21a1.553 1.553 0 0 0-.648.427c-.16.181-.239.424-.239.727 0 .42.156.738.466.954.31.212.707.319 1.188.319Zm9.876 1.346c-.845 0-1.572-.191-2.182-.574a3.796 3.796 0 0 1-1.398-1.596c-.325-.678-.488-1.455-.488-2.33 0-.886.166-1.668.5-2.346a3.832 3.832 0 0 1 1.409-1.597c.606-.383 1.32-.574 2.142-.574.663 0 1.254.123 1.773.369.519.243.937.584 1.255 1.023.322.44.514.953.574 1.54h-1.653c-.091-.409-.3-.761-.625-1.057-.322-.295-.754-.443-1.296-.443a2.11 2.11 0 0 0-1.244.375c-.352.246-.627.598-.824 1.057-.197.454-.295.992-.295 1.613 0 .637.096 1.186.29 1.648.193.462.466.82.818 1.074.356.254.774.381 1.255.381.322 0 .614-.059.875-.177.266-.121.487-.293.665-.517.182-.223.309-.492.38-.806h1.654a3.211 3.211 0 0 1-.55 1.511 3.165 3.165 0 0 1-1.234 1.045c-.511.254-1.111.381-1.8.381Zm9.163 0c-.859 0-1.6-.184-2.221-.551a3.732 3.732 0 0 1-1.432-1.563c-.333-.674-.5-1.464-.5-2.369 0-.894.167-1.682.5-2.363a3.887 3.887 0 0 1 1.409-1.597c.606-.383 1.314-.574 2.125-.574.493 0 .97.082 1.432.244.462.163.877.419 1.244.767.368.349.657.802.87 1.358.212.553.318 1.226.318 2.017v.603H99.71v-1.273h5.273c0-.447-.091-.843-.273-1.187a2.052 2.052 0 0 0-.767-.824c-.326-.201-.708-.302-1.148-.302a2.22 2.22 0 0 0-1.25.353 2.364 2.364 0 0 0-.818.909 2.626 2.626 0 0 0-.284 1.21v.994c0 .584.102 1.08.307 1.489.208.409.498.722.869.938.372.212.805.318 1.301.318a2.7 2.7 0 0 0 .881-.137c.265-.094.494-.234.688-.42.193-.186.341-.415.443-.688l1.608.29c-.129.474-.36.888-.693 1.244-.33.353-.745.627-1.245.824-.496.194-1.062.29-1.699.29Z",fill:"#fff"}),e.jsx("path",{d:"M117.604 47.263 121.523 45h14.267v41.862h-14.267l-15.335-8.854V53.854l1.818-1.05 3.2 1.848-1.818 1.05V76.16l12.993 7.502h10.209V48.2h-10.209l-1.577.91-3.2-1.847Z",fill:"url(#e)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M119.402 76.16V55.701L106.409 48.2H96.2v35.462h10.209l1.582-.913 3.2 1.847-3.924 2.266H93V45h14.267l15.335 8.854v24.154l-1.813 1.046-3.2-1.847 1.813-1.047Z",fill:"url(#f)"}),e.jsxs("g",{clipPath:"url(#g)",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff",children:[e.jsx("path",{d:"m50.928 216.089 1.034 2.852h-2.503l1.028-2.842a4.95 4.95 0 0 0 .107-.338 7.17 7.17 0 0 0 .111-.409c.075.297.15.542.223.737Zm2.28 5.591h.796l-2.775-7.352h-1.043l-2.774 7.352h.795a.338.338 0 0 0 .223-.077.425.425 0 0 0 .127-.179l.615-1.705h3.07l.617 1.705a.399.399 0 0 0 .126.184.339.339 0 0 0 .223.072Zm4.823-.963a2.023 2.023 0 0 1-.67.098h-1.455v-2.453h1.456c.5 0 .871.106 1.11.318.24.208.36.495.36.86 0 .184-.028.355-.083.512a1.005 1.005 0 0 1-.262.399 1.2 1.2 0 0 1-.456.266Zm-2.125-3.128v-2.406h1.237c.498 0 .865.095 1.101.286.236.192.355.497.355.917 0 .369-.125.662-.374.881-.246.215-.623.322-1.13.322h-1.189Zm2.358-3.128a4.106 4.106 0 0 0-1.12-.133h-2.27v7.352h2.507c.391 0 .74-.051 1.048-.154.307-.102.566-.247.776-.435.21-.188.37-.409.48-.665.11-.26.165-.547.165-.861 0-.904-.506-1.462-1.518-1.674.22-.075.41-.169.572-.281a1.79 1.79 0 0 0 .403-.379c.106-.144.186-.297.237-.461.052-.164.078-.335.078-.512a2.1 2.1 0 0 0-.146-.804 1.49 1.49 0 0 0-.441-.609 2.073 2.073 0 0 0-.771-.384Zm7.535.778h-2.212v6.441h-1.028v-6.441h-2.222v-.911H65.8v.911Zm2.439.564h-1.13v1.193h1.13v-1.193Zm-1.13 2.983h1.13v1.193h-1.13v-1.193Z",fillOpacity:".8"}),e.jsx("path",{d:"M28.247 221.771V214h3.894c.99.072 1.765.944 1.765 1.998v3.77c0 1.106-.85 2.003-1.897 2.003h-3.762ZM36.355 214h-1.011v7.783h1.01V214Zm-7.097 6.704v-5.642h2.751c.49 0 .886.419.886.936v3.77c0 .517-.396.936-.886.936h-2.75ZM37.775 214v7.771h3.762c1.047 0 1.897-.897 1.897-2.003v-3.77c0-1.054-.774-1.926-1.765-1.998h-3.894Zm6.946 1.803h1.13v1.193h-1.13v-1.193Zm1.13 2.983h-1.13v1.193h1.13v-1.193Zm-7.065-3.724v5.642h2.75c.49 0 .887-.419.887-.936v-3.77c0-.517-.397-.936-.886-.936h-2.751Z"})]}),e.jsx("circle",{cx:"191.32",cy:"218",r:"10",fill:"url(#h)"}),e.jsx("path",{d:"m192.064 213.333.976-.564h3.554v10.427h-3.286a1 1 0 0 1-.5-.134l-3.588-2.071v-6.016l.453-.262.797.46-.453.262v5.096l3.237 1.868h2.543v-8.833h-2.543l-.393.227-.797-.46Z",fill:"#fff"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M192.512 220.531v-5.096l-3.237-1.869h-2.543v8.833h2.543l.394-.227.797.46-.977.564h-3.554v-10.427h3.554l3.82 2.206v6.016l-.452.261-.797-.461.452-.26Z",fill:"#fff"})]})]}),e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"d",x1:"114",y1:"130",x2:"114",y2:"252",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#101010"}),e.jsx("stop",{offset:"1",stopColor:"#272727"})]}),e.jsxs("linearGradient",{id:"e",x1:"120.989",y1:"45",x2:"120.989",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#fff",stopOpacity:".4"}),e.jsx("stop",{offset:"1",stopColor:"#fff"})]}),e.jsxs("linearGradient",{id:"f",x1:"107.801",y1:"45",x2:"107.801",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#fff"}),e.jsx("stop",{offset:"1",stopColor:"#fff",stopOpacity:".4"})]}),e.jsxs("radialGradient",{id:"h",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(17 -8.76924 6.97565 13.52294 183.166 221)",children:[e.jsx("stop",{stopColor:"#016BED"}),e.jsx("stop",{offset:".699",stopColor:"#4498FB"}),e.jsx("stop",{offset:"1",stopColor:"#9DFFE8"})]}),e.jsx("clipPath",{id:"g",children:e.jsx("path",{fill:"#fff",transform:"translate(28 214)",d:"M0 0h40.32v8H0z"})}),e.jsx("pattern",{id:"c",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:e.jsx("use",{xlinkHref:"#i",transform:"scale(.00455 .00781)"})}),e.jsxs("filter",{id:"a",x:"0",y:"0",width:"228",height:"258",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[e.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),e.jsx("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.jsx("feOffset",{dy:"2"}),e.jsx("feGaussianBlur",{stdDeviation:"2"}),e.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),e.jsx("feColorMatrix",{values:"0 0 0 0 0.0631944 0 0 0 0 0.242785 0 0 0 0 0.403472 0 0 0 0.2 0"}),e.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1410_22507"}),e.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1410_22507",result:"shape"})]}),e.jsx("image",{id:"i",width:"220",height:"128",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAACABAMAAACSOBo+AAAAG1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACUUeIgAAAACXRSTlMSFhkOHAsfCCOMH5MiAAAjjElEQVRo3hTQO3sjRRBG4a+qWzJhVfdIJqzuGXsJe2bkJe0e2UA4shdIJS2X1LBcUpbL/wae5yQnfVHGjp2+V08yKR7OwBDYte8pi5Aq9DObSBouqN9cidZyusonzWtGJO13phLebEn6xKEnlYyXe5hnySc53Ym9Abn7crTse8r7BMeIB8yBOVZK0trMjxT5S/cgc9G63BQqZoF3xSYZYeRk2hoIvEBFA7XMtaaF8TdY1GjiDDqgEswRDlWnRtmYzl5zRUq3sx3I+JL7sBJKXchDGJY9D+SfHAIoA+TuHCyYYYFjkhNB8tO5hhju0ANjdCITLx4/JDL+yyP0ErZR+m3M322bY8OKHzoOcAXLQMBHiIh+X59pv6udCJ7MAV9HARPtTEuFSdAzNVn7uPmkk3TpBGHb8DJZ3p36ScsuJVFQP6CUBXimN3BABZJUiEwBOMsHUisZiXU8k3bVSTrPcHsKEEg8gV/vP7U26vRWhl2UnfEbX3VlVbRHgSwmcy2tWTjsxmIb4YjgbAkmpyEOINs1gCtSC4YsjwnY9l1MJYRz1NMk5NAC3MffnLwiHnNH7IoyER5VEI6S4Um++uKyho0BwmD+1rA90yarpO4ZpjLgs8+BTUfU9w+gkwEi6ftxqyB9Wt6IBstE0E8kxJLeKaVhNA/uEwIslv1JmRwcSz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lhy8xYI1vchhF6qZnM0/oZSUzcd5By2cDzUtH3ng8PHIzAKL25wuSv+gDBsggYWWkvLT27f2dhwRULpny5D5yKI7vD/4iAW9KWHB7JsEZeCE1E/mdgVHZTOci8X+YIanJt7+aBd2k8f2RL45Z2puefelcXjUWbKdMSYwr58dAPaHymSU0o9/zjFt7/VoGmNAwCyvrKe2L1hYJqtd5gh6FGiCAGzqFk6on9pQdSAQzkctDTtXGbDih5iRPVIk9TwCJGwP3tpATkHsNwloUilnNMFce7twgDgrgWhsE8jWW+EBLlTDMn9pmtJOefTJc6Cxld039TN4XiwL4pMtU+8tXJ4g/LghG5APdF7/e3FSi4v8vnEBiIEm+5LlZtsk2LbbbY5hN9JkkJkd5BjQFPoUcwjJdTm0mx0024NmOvVgxASvU9TonFxUqG8cUTy3m5s3i7BqLbFkKcfxLQYhAXfjam0yFFd3PZE9wlXWfHYKlg2cFlTcnwRH6z8DpSfQHidMhElmCMb07li9ceHQHFknk/98f4KJRLpX6xQEXVAnJxlr8Aw6/qb0wu9SNolstScB0izxmMC5DiytBJd9Rcm3RGf42aiddmUTM4d4dgdjiT+vMPX0/RzfZdLoZ4aQqPzhx9plNI3QyvsMZHn2j2wOECoTtkfJt89O+eYUnXB/gFxHxPmOeL9ogAAAABJRU5ErkJggg=="})]})]})};F.defaultProps={width:"228",height:"258",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"};function s1(){const{t}=y();return e.jsx(x,{children:e.jsxs(x,{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",alignContent:"center",children:[e.jsx(F,{style:{width:250,height:250}}),e.jsx(B,{marginTop:"24px",children:t("storage.spaces.connect.providerForStorage")})]})})}s1.propTypes={};function I({spaceGateway:t,onDeleteSpace:a}){const{t:s}=y(),[c,i]=g.useState(!1),[r,f]=g.useState(!1),p=(o,h)=>{o==null||o.stopPropagation(),i(h)},u=async o=>{try{o==null||o.stopPropagation(),f(!0),await a(t),i(!1)}catch(h){console.error(h),m.error(`${s("storage.spaces.gateway.delete.failed")}: ${v(h)}`)}finally{f(!1)}};return e.jsxs(e.Fragment,{children:[e.jsx(G,{size:"small",onClick:o=>p(o,!0),children:e.jsx(_,{})}),e.jsx(V,{title:s("storage.spaces.gateway.delete.title"),open:c,confirmButton:{text:s("common.confirm"),props:{size:"small",variant:"contained",color:"error",loading:r}},cancelButton:{text:s("common.cancel"),props:{size:"small",variant:"outlined"}},onConfirm:u,onCancel:o=>p(o,!1),children:e.jsx(B,{sx:{wordBreak:"break-all"},children:s("common.delConfirmDescription",{data:`${t==null?void 0:t.name}`})})})]})}I.propTypes={onDeleteSpace:d.func,spaceGateway:d.shape({name:d.string.isRequired,url:d.string.isRequired,protected:d.bool}).isRequired};I.defaultProps={onDeleteSpace:()=>{}};function j({spaceGateway:t,onDisconnect:a}){const{t:s}=y(),c=async()=>{try{await a(),m.success(s("storage.spaces.gateway.delete.succeeded",{name:t.name}))}catch(i){console.error(i),m.error(v(i))}};return e.jsx(I,{spaceGateway:t,onDeleteSpace:c})}j.propTypes={spaceGateway:d.shape({did:d.string.isRequired,name:d.string.isRequired,url:d.string.isRequired,endpoint:d.string.isRequired}).isRequired,onDisconnect:d.func};j.defaultProps={onDisconnect:()=>{}};function f1(){const{t}=y(),{spaceGateway:a,settingStorageEndpoint:s}=t1();return e.jsxs(x,{display:"flex",flexDirection:"column",children:[e.jsx(x,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",children:e.jsx(B,{fontSize:"1rem",fontWeight:"bold",children:t("storage.spaces.connected.title")})}),e.jsx(x,{children:e.jsx(X,{sx:{marginTop:2},endpoint:a.endpoint,selected:!0,action:c=>e.jsx(j,{...c,onDisconnect:()=>s(null)})})})]})}function n1({blocklet:t}){var u,o,h;if(O(t))return{};const{appDid:a}=t,s=E.getAppName(t),c=E.getAppDescription(t),i=(h=(o=(u=t==null?void 0:t.site)==null?void 0:u.domainAliases)==null?void 0:o.sort((n,A)=>n.accessibility.accessible&&A.accessibility.accessible?+n.isProtected-+A.isProtected:+A.accessibility.accessible-+n.accessibility.accessible))==null?void 0:h.map(n=>{var C;const A=(C=n==null?void 0:n.domainStatus)!=null&&C.isHttps?"https://":"http://",l=n==null?void 0:n.value;return`${A}${l}`}).filter(Boolean),r=i==null?void 0:i[0],f=J.DID_SPACES.AUTHORIZE.DEFAULT_SCOPE,p=window.location.href;return{appDid:a,appName:s,appDescription:c,appUrl:r,scopes:f,referrer:p,isReady:!!r}}function T({onConnect:t,...a}){const{blocklet:s}=S(),{info:c}=U(),{t:i}=y(),r=n1({blocklet:s}),f=H(c),p={checkFn:N.create({baseURL:b(window.location.origin,P())}).get,webWalletUrl:f,extraParams:{appPid:s.appPid,appDid:r.appDid,appName:r.appName,appDescription:r.appDescription,appUrl:r.appUrl,referrer:r.referrer,scopes:r.scopes,nodeDid:c.did}},u=async(o,h)=>{try{const n=z(o,h);await t(n),m.success(i("storage.spaces.connectedWithName",{name:n.name}))}catch(n){console.error(n),m.error(v(n))}};return e.jsx(K,{...a,options:p,onSuccess:u})}T.propTypes={onConnect:R.func};T.defaultProps={onConnect:()=>{}};export{f1 as C,s1 as D,t1 as a,T as b,M as c,n1 as d,d1 as u};
|
|
1
|
+
import{r as g,bo as U,aT as k,j as e,$ as R,O,A as m,b as J,a4 as w,am as Q,H as L,q as y,N as x,m as B,P as d,a5 as G,a6 as V,V as v,K as E,y as H,az as N,a3 as b,ao as P}from"./index-BJnzhtRd.js";import{S as X,A as K,d as z}from"./index-srZBzsVC.js";import"./index-Cb9RaNpS.js";import{a as Y,b as q,c as W}from"./spaces-DztvnP2G.js";import{u as S}from"./blocklet-CpvMNcyR.js";import{d as _}from"./DeleteOutline-DPxWTBB6.js";import"./api-Di8RsrU-.js";function $(){const[t,a]=g.useState(null),{blocklet:s}=S();return g.useEffect(()=>{a(Y(s))},[s]),{storageEndpoint:t}}const D=g.createContext({}),{Provider:e1,Consumer:h1}=D;function M({children:t}){const[a,s]=g.useState(!1),[c,i]=g.useState(null),{blocklet:r,actions:{refreshBlocklet:f}}=S(),{storageEndpoint:p}=$(),{api:u}=U();k(async()=>{try{if(s(!0),O(p)){i(null);return}const l=await q(p);i(l)}catch(l){console.error(l),m.error(l.message)}finally{s(!1)}},[p]);const o=()=>{i(null),f()},h=async l=>{i(l),await n(l.endpoint),f()},n=async l=>{await u.configBlocklet({input:{did:[r.meta.did],configs:[{key:J.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SPACE_ENDPOINT,value:l}]}}),f()};g.useEffect(()=>{async function l(){if(!c)return;const C=await W(c.endpoint,c.name),Z=w(c,{name:C});i(Z)}l()},[]);const A=!!(p&&c);return e.jsx(e1,{value:{loading:a,spaceGateway:c,deleteSpaceGateway:o,updateSpaceGateway:h,storageEndpoint:p,settingStorageEndpoint:n,hasStorageEndpoint:A},children:t})}M.propTypes={children:R.node.isRequired};M.defaultProps={};function t1(){return g.useContext(D)}function d1({key:t}={key:"sm"}){const a=Q();return L(a.breakpoints.down(t))}var F=function(a){return e.jsxs("svg",{...a,children:[e.jsxs("g",{filter:"url(#a)",children:[e.jsx("path",{d:"M56.97 2a12 12 0 0 0-8.485 3.515l-40.97 40.97A12 12 0 0 0 4 54.971V240c0 6.627 5.373 12 12 12h196c6.627 0 12-5.373 12-12V14c0-6.627-5.373-12-12-12H56.97Z",fill:"#DDD"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m49.192 6.222-40.97 40.97A11 11 0 0 0 5 54.971V240c0 6.075 4.925 11 11 11h196c6.075 0 11-4.925 11-11V14c0-6.075-4.925-11-11-11H56.97a11 11 0 0 0-7.778 3.222Zm-.707-.707A12 12 0 0 1 56.971 2H212c6.627 0 12 5.373 12 12v226c0 6.627-5.373 12-12 12H16c-6.627 0-12-5.373-12-12V54.97a12 12 0 0 1 3.515-8.485l40.97-40.97Z",fill:"#000",fillOpacity:".08"}),e.jsx("mask",{id:"b",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"4",y:"2",width:"220",height:"250",children:e.jsx("path",{d:"M56.97 2a12 12 0 0 0-8.485 3.515l-40.97 40.97A12 12 0 0 0 4 54.971V240c0 6.627 5.373 12 12 12h196c6.627 0 12-5.373 12-12V14c0-6.627-5.373-12-12-12H56.97Z",fill:"#D9D9D9"})}),e.jsxs("g",{mask:"url(#b)",children:[e.jsx("path",{opacity:".5",fill:"url(#c)",d:"M4 2h220v128H4z"}),e.jsx("path",{opacity:".1",fill:"url(#d)",d:"M4 130h220v122H4z"}),e.jsx("path",{d:"M33.045 169h-3.767v-11.636h3.887c1.14 0 2.12.233 2.937.698a4.61 4.61 0 0 1 1.881 1.995c.44.863.659 1.899.659 3.108 0 1.212-.222 2.254-.665 3.125a4.668 4.668 0 0 1-1.909 2.011c-.833.466-1.84.699-3.023.699Zm-2.01-1.534h1.914c.886 0 1.623-.167 2.21-.5a3.152 3.152 0 0 0 1.318-1.46c.292-.64.438-1.421.438-2.341 0-.913-.146-1.688-.438-2.324a3.095 3.095 0 0 0-1.29-1.449c-.572-.33-1.282-.494-2.13-.494h-2.023v8.568Zm11.546-10.102V169h-1.756v-11.636h1.756ZM48.905 169h-3.767v-11.636h3.886c1.14 0 2.12.233 2.938.698a4.609 4.609 0 0 1 1.88 1.995c.44.863.66 1.899.66 3.108 0 1.212-.222 2.254-.665 3.125a4.667 4.667 0 0 1-1.91 2.011c-.833.466-1.84.699-3.022.699Zm-2.011-1.534h1.914c.887 0 1.623-.167 2.21-.5a3.151 3.151 0 0 0 1.319-1.46c.291-.64.437-1.421.437-2.341 0-.913-.146-1.688-.437-2.324a3.095 3.095 0 0 0-1.29-1.449c-.572-.33-1.282-.494-2.13-.494h-2.023v8.568Zm20.372-7.046a1.662 1.662 0 0 0-.75-1.25c-.44-.299-.993-.448-1.66-.448-.477 0-.89.075-1.238.227a1.91 1.91 0 0 0-.813.613c-.189.258-.284.552-.284.881 0 .277.065.515.194.716.132.201.304.369.516.506.216.132.447.244.694.335.246.087.483.159.71.216l1.136.295c.371.091.752.214 1.142.37.39.155.752.36 1.086.613.333.254.602.568.806.944.209.374.313.823.313 1.346 0 .659-.17 1.244-.511 1.756-.338.511-.828.915-1.472 1.21-.64.295-1.415.443-2.324.443-.871 0-1.625-.138-2.261-.415-.637-.276-1.135-.668-1.495-1.176-.36-.511-.558-1.117-.596-1.818h1.761c.034.421.17.771.41 1.051.242.277.55.483.925.62.38.132.794.198 1.245.198.496 0 .937-.077 1.324-.233.39-.159.697-.378.92-.659a1.56 1.56 0 0 0 .335-.994c0-.345-.098-.627-.295-.847a2.191 2.191 0 0 0-.79-.545 7.725 7.725 0 0 0-1.12-.381l-1.374-.375c-.932-.253-1.67-.627-2.216-1.119-.542-.492-.813-1.144-.813-1.955 0-.67.182-1.255.546-1.755.363-.5.856-.888 1.477-1.165.621-.28 1.322-.42 2.102-.42.788 0 1.483.138 2.085.414.607.277 1.084.658 1.432 1.142.349.481.53 1.034.546 1.659h-1.693Zm3.813 11.853v-12h1.66v1.415h.142c.098-.182.24-.393.426-.631.185-.239.443-.447.772-.625.33-.182.766-.273 1.307-.273.705 0 1.334.178 1.887.534.553.356.987.869 1.3 1.54.319.67.478 1.477.478 2.42 0 .944-.157 1.752-.472 2.427-.314.67-.746 1.187-1.295 1.551-.55.36-1.176.539-1.88.539-.53 0-.965-.089-1.302-.267a2.457 2.457 0 0 1-.784-.625 4.667 4.667 0 0 1-.437-.636h-.103v4.631H71.08Zm1.665-7.637c0 .614.09 1.152.267 1.614.178.462.436.824.773 1.085.337.258.75.387 1.239.387.507 0 .931-.135 1.273-.404.34-.273.598-.642.772-1.108.178-.466.267-.99.267-1.574 0-.575-.087-1.092-.261-1.551-.17-.458-.428-.82-.773-1.085-.34-.265-.767-.398-1.278-.398-.493 0-.91.127-1.25.381-.337.254-.593.608-.767 1.062-.175.455-.262.985-.262 1.591Zm10.75 4.557a3.557 3.557 0 0 1-1.5-.307 2.523 2.523 0 0 1-1.062-.903c-.258-.394-.386-.877-.386-1.449 0-.492.094-.898.283-1.216.19-.318.446-.57.768-.756a4.036 4.036 0 0 1 1.08-.42c.397-.095.802-.167 1.215-.216l1.273-.148c.325-.041.562-.108.71-.198.148-.091.222-.239.222-.444v-.039c0-.497-.14-.881-.42-1.154-.277-.273-.69-.409-1.24-.409-.572 0-1.022.127-1.352.381-.325.25-.55.528-.676.835l-1.597-.364c.19-.53.466-.958.83-1.284.368-.329.79-.568 1.267-.716.477-.151.98-.227 1.506-.227.348 0 .718.042 1.108.125.394.08.761.227 1.102.443.345.216.627.525.847.926.22.398.33.915.33 1.552V169h-1.66v-1.193h-.068c-.11.22-.275.435-.495.648-.22.212-.501.388-.846.528s-.758.21-1.239.21Zm.37-1.363c.47 0 .87-.093 1.204-.279.337-.185.593-.428.767-.727.178-.303.267-.627.267-.972v-1.125c-.06.061-.178.118-.352.171-.17.049-.365.093-.585.13-.22.034-.434.067-.642.097l-.523.068c-.33.042-.63.112-.903.21a1.553 1.553 0 0 0-.648.427c-.16.181-.239.424-.239.727 0 .42.156.738.466.954.31.212.707.319 1.188.319Zm9.876 1.346c-.845 0-1.572-.191-2.182-.574a3.796 3.796 0 0 1-1.398-1.596c-.325-.678-.488-1.455-.488-2.33 0-.886.166-1.668.5-2.346a3.832 3.832 0 0 1 1.409-1.597c.606-.383 1.32-.574 2.142-.574.663 0 1.254.123 1.773.369.519.243.937.584 1.255 1.023.322.44.514.953.574 1.54h-1.653c-.091-.409-.3-.761-.625-1.057-.322-.295-.754-.443-1.296-.443a2.11 2.11 0 0 0-1.244.375c-.352.246-.627.598-.824 1.057-.197.454-.295.992-.295 1.613 0 .637.096 1.186.29 1.648.193.462.466.82.818 1.074.356.254.774.381 1.255.381.322 0 .614-.059.875-.177.266-.121.487-.293.665-.517.182-.223.309-.492.38-.806h1.654a3.211 3.211 0 0 1-.55 1.511 3.165 3.165 0 0 1-1.234 1.045c-.511.254-1.111.381-1.8.381Zm9.163 0c-.859 0-1.6-.184-2.221-.551a3.732 3.732 0 0 1-1.432-1.563c-.333-.674-.5-1.464-.5-2.369 0-.894.167-1.682.5-2.363a3.887 3.887 0 0 1 1.409-1.597c.606-.383 1.314-.574 2.125-.574.493 0 .97.082 1.432.244.462.163.877.419 1.244.767.368.349.657.802.87 1.358.212.553.318 1.226.318 2.017v.603H99.71v-1.273h5.273c0-.447-.091-.843-.273-1.187a2.052 2.052 0 0 0-.767-.824c-.326-.201-.708-.302-1.148-.302a2.22 2.22 0 0 0-1.25.353 2.364 2.364 0 0 0-.818.909 2.626 2.626 0 0 0-.284 1.21v.994c0 .584.102 1.08.307 1.489.208.409.498.722.869.938.372.212.805.318 1.301.318a2.7 2.7 0 0 0 .881-.137c.265-.094.494-.234.688-.42.193-.186.341-.415.443-.688l1.608.29c-.129.474-.36.888-.693 1.244-.33.353-.745.627-1.245.824-.496.194-1.062.29-1.699.29Z",fill:"#fff"}),e.jsx("path",{d:"M117.604 47.263 121.523 45h14.267v41.862h-14.267l-15.335-8.854V53.854l1.818-1.05 3.2 1.848-1.818 1.05V76.16l12.993 7.502h10.209V48.2h-10.209l-1.577.91-3.2-1.847Z",fill:"url(#e)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M119.402 76.16V55.701L106.409 48.2H96.2v35.462h10.209l1.582-.913 3.2 1.847-3.924 2.266H93V45h14.267l15.335 8.854v24.154l-1.813 1.046-3.2-1.847 1.813-1.047Z",fill:"url(#f)"}),e.jsxs("g",{clipPath:"url(#g)",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff",children:[e.jsx("path",{d:"m50.928 216.089 1.034 2.852h-2.503l1.028-2.842a4.95 4.95 0 0 0 .107-.338 7.17 7.17 0 0 0 .111-.409c.075.297.15.542.223.737Zm2.28 5.591h.796l-2.775-7.352h-1.043l-2.774 7.352h.795a.338.338 0 0 0 .223-.077.425.425 0 0 0 .127-.179l.615-1.705h3.07l.617 1.705a.399.399 0 0 0 .126.184.339.339 0 0 0 .223.072Zm4.823-.963a2.023 2.023 0 0 1-.67.098h-1.455v-2.453h1.456c.5 0 .871.106 1.11.318.24.208.36.495.36.86 0 .184-.028.355-.083.512a1.005 1.005 0 0 1-.262.399 1.2 1.2 0 0 1-.456.266Zm-2.125-3.128v-2.406h1.237c.498 0 .865.095 1.101.286.236.192.355.497.355.917 0 .369-.125.662-.374.881-.246.215-.623.322-1.13.322h-1.189Zm2.358-3.128a4.106 4.106 0 0 0-1.12-.133h-2.27v7.352h2.507c.391 0 .74-.051 1.048-.154.307-.102.566-.247.776-.435.21-.188.37-.409.48-.665.11-.26.165-.547.165-.861 0-.904-.506-1.462-1.518-1.674.22-.075.41-.169.572-.281a1.79 1.79 0 0 0 .403-.379c.106-.144.186-.297.237-.461.052-.164.078-.335.078-.512a2.1 2.1 0 0 0-.146-.804 1.49 1.49 0 0 0-.441-.609 2.073 2.073 0 0 0-.771-.384Zm7.535.778h-2.212v6.441h-1.028v-6.441h-2.222v-.911H65.8v.911Zm2.439.564h-1.13v1.193h1.13v-1.193Zm-1.13 2.983h1.13v1.193h-1.13v-1.193Z",fillOpacity:".8"}),e.jsx("path",{d:"M28.247 221.771V214h3.894c.99.072 1.765.944 1.765 1.998v3.77c0 1.106-.85 2.003-1.897 2.003h-3.762ZM36.355 214h-1.011v7.783h1.01V214Zm-7.097 6.704v-5.642h2.751c.49 0 .886.419.886.936v3.77c0 .517-.396.936-.886.936h-2.75ZM37.775 214v7.771h3.762c1.047 0 1.897-.897 1.897-2.003v-3.77c0-1.054-.774-1.926-1.765-1.998h-3.894Zm6.946 1.803h1.13v1.193h-1.13v-1.193Zm1.13 2.983h-1.13v1.193h1.13v-1.193Zm-7.065-3.724v5.642h2.75c.49 0 .887-.419.887-.936v-3.77c0-.517-.397-.936-.886-.936h-2.751Z"})]}),e.jsx("circle",{cx:"191.32",cy:"218",r:"10",fill:"url(#h)"}),e.jsx("path",{d:"m192.064 213.333.976-.564h3.554v10.427h-3.286a1 1 0 0 1-.5-.134l-3.588-2.071v-6.016l.453-.262.797.46-.453.262v5.096l3.237 1.868h2.543v-8.833h-2.543l-.393.227-.797-.46Z",fill:"#fff"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M192.512 220.531v-5.096l-3.237-1.869h-2.543v8.833h2.543l.394-.227.797.46-.977.564h-3.554v-10.427h3.554l3.82 2.206v6.016l-.452.261-.797-.461.452-.26Z",fill:"#fff"})]})]}),e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"d",x1:"114",y1:"130",x2:"114",y2:"252",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#101010"}),e.jsx("stop",{offset:"1",stopColor:"#272727"})]}),e.jsxs("linearGradient",{id:"e",x1:"120.989",y1:"45",x2:"120.989",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#fff",stopOpacity:".4"}),e.jsx("stop",{offset:"1",stopColor:"#fff"})]}),e.jsxs("linearGradient",{id:"f",x1:"107.801",y1:"45",x2:"107.801",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#fff"}),e.jsx("stop",{offset:"1",stopColor:"#fff",stopOpacity:".4"})]}),e.jsxs("radialGradient",{id:"h",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(17 -8.76924 6.97565 13.52294 183.166 221)",children:[e.jsx("stop",{stopColor:"#016BED"}),e.jsx("stop",{offset:".699",stopColor:"#4498FB"}),e.jsx("stop",{offset:"1",stopColor:"#9DFFE8"})]}),e.jsx("clipPath",{id:"g",children:e.jsx("path",{fill:"#fff",transform:"translate(28 214)",d:"M0 0h40.32v8H0z"})}),e.jsx("pattern",{id:"c",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:e.jsx("use",{xlinkHref:"#i",transform:"scale(.00455 .00781)"})}),e.jsxs("filter",{id:"a",x:"0",y:"0",width:"228",height:"258",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[e.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),e.jsx("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.jsx("feOffset",{dy:"2"}),e.jsx("feGaussianBlur",{stdDeviation:"2"}),e.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),e.jsx("feColorMatrix",{values:"0 0 0 0 0.0631944 0 0 0 0 0.242785 0 0 0 0 0.403472 0 0 0 0.2 0"}),e.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1410_22507"}),e.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1410_22507",result:"shape"})]}),e.jsx("image",{id:"i",width:"220",height:"128",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAACABAMAAACSOBo+AAAAG1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACUUeIgAAAACXRSTlMSFhkOHAsfCCOMH5MiAAAjjElEQVRo3hTQO3sjRRBG4a+qWzJhVfdIJqzuGXsJe2bkJe0e2UA4shdIJS2X1LBcUpbL/wae5yQnfVHGjp2+V08yKR7OwBDYte8pi5Aq9DObSBouqN9cidZyusonzWtGJO13phLebEn6xKEnlYyXe5hnySc53Ym9Abn7crTse8r7BMeIB8yBOVZK0trMjxT5S/cgc9G63BQqZoF3xSYZYeRk2hoIvEBFA7XMtaaF8TdY1GjiDDqgEswRDlWnRtmYzl5zRUq3sx3I+JL7sBJKXchDGJY9D+SfHAIoA+TuHCyYYYFjkhNB8tO5hhju0ANjdCITLx4/JDL+yyP0ErZR+m3M322bY8OKHzoOcAXLQMBHiIh+X59pv6udCJ7MAV9HARPtTEuFSdAzNVn7uPmkk3TpBGHb8DJZ3p36ScsuJVFQP6CUBXimN3BABZJUiEwBOMsHUisZiXU8k3bVSTrPcHsKEEg8gV/vP7U26vRWhl2UnfEbX3VlVbRHgSwmcy2tWTjsxmIb4YjgbAkmpyEOINs1gCtSC4YsjwnY9l1MJYRz1NMk5NAC3MffnLwiH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X5a9bl1On+cL5YHUjp/eID+XwV2AwZUXHswFw0IhIUlwmaTdQtlKJUpbAArh1IONYy6WQkAc9+ZocJMnELtCFNKLySGLwUIuW1fJLBKOoydII6+sDlhy8xYI1vchhF6qZnM0/oZSUzcd5By2cDzUtH3ng8PHIzAKL25wuSv+gDBsggYWWkvLT27f2dhwRULpny5D5yKI7vD/4iAW9KWHB7JsEZeCE1E/mdgVHZTOci8X+YIanJt7+aBd2k8f2RL45Z2puefelcXjUWbKdMSYwr58dAPaHymSU0o9/zjFt7/VoGmNAwCyvrKe2L1hYJqtd5gh6FGiCAGzqFk6on9pQdSAQzkctDTtXGbDih5iRPVIk9TwCJGwP3tpATkHsNwloUilnNMFce7twgDgrgWhsE8jWW+EBLlTDMn9pmtJOefTJc6Cxld039TN4XiwL4pMtU+8tXJ4g/LghG5APdF7/e3FSi4v8vnEBiIEm+5LlZtsk2LbbbY5hN9JkkJkd5BjQFPoUcwjJdTm0mx0024NmOvVgxASvU9TonFxUqG8cUTy3m5s3i7BqLbFkKcfxLQYhAXfjam0yFFd3PZE9wlXWfHYKlg2cFlTcnwRH6z8DpSfQHidMhElmCMb07li9ceHQHFknk/98f4KJRLpX6xQEXVAnJxlr8Aw6/qb0wu9SNolstScB0izxmMC5DiytBJd9Rcm3RGf42aiddmUTM4d4dgdjiT+vMPX0/RzfZdLoZ4aQqPzhx9plNI3QyvsMZHn2j2wOECoTtkfJt89O+eYUnXB/gFxHxPmOeL9ogAAAABJRU5ErkJggg=="})]})]})};F.defaultProps={width:"228",height:"258",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"};function s1(){const{t}=y();return e.jsx(x,{children:e.jsxs(x,{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",alignContent:"center",children:[e.jsx(F,{style:{width:250,height:250}}),e.jsx(B,{marginTop:"24px",children:t("storage.spaces.connect.providerForStorage")})]})})}s1.propTypes={};function I({spaceGateway:t,onDeleteSpace:a}){const{t:s}=y(),[c,i]=g.useState(!1),[r,f]=g.useState(!1),p=(o,h)=>{o==null||o.stopPropagation(),i(h)},u=async o=>{try{o==null||o.stopPropagation(),f(!0),await a(t),i(!1)}catch(h){console.error(h),m.error(`${s("storage.spaces.gateway.delete.failed")}: ${v(h)}`)}finally{f(!1)}};return e.jsxs(e.Fragment,{children:[e.jsx(G,{size:"small",onClick:o=>p(o,!0),children:e.jsx(_,{})}),e.jsx(V,{title:s("storage.spaces.gateway.delete.title"),open:c,confirmButton:{text:s("common.confirm"),props:{size:"small",variant:"contained",color:"error",loading:r}},cancelButton:{text:s("common.cancel"),props:{size:"small",variant:"outlined"}},onConfirm:u,onCancel:o=>p(o,!1),children:e.jsx(B,{sx:{wordBreak:"break-all"},children:s("common.delConfirmDescription",{data:`${t==null?void 0:t.name}`})})})]})}I.propTypes={onDeleteSpace:d.func,spaceGateway:d.shape({name:d.string.isRequired,url:d.string.isRequired,protected:d.bool}).isRequired};I.defaultProps={onDeleteSpace:()=>{}};function j({spaceGateway:t,onDisconnect:a}){const{t:s}=y(),c=async()=>{try{await a(),m.success(s("storage.spaces.gateway.delete.succeeded",{name:t.name}))}catch(i){console.error(i),m.error(v(i))}};return e.jsx(I,{spaceGateway:t,onDeleteSpace:c})}j.propTypes={spaceGateway:d.shape({did:d.string.isRequired,name:d.string.isRequired,url:d.string.isRequired,endpoint:d.string.isRequired}).isRequired,onDisconnect:d.func};j.defaultProps={onDisconnect:()=>{}};function f1(){const{t}=y(),{spaceGateway:a,settingStorageEndpoint:s}=t1();return e.jsxs(x,{display:"flex",flexDirection:"column",children:[e.jsx(x,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",children:e.jsx(B,{fontSize:"1rem",fontWeight:"bold",children:t("storage.spaces.connected.title")})}),e.jsx(x,{children:e.jsx(X,{sx:{marginTop:2},endpoint:a.endpoint,selected:!0,action:c=>e.jsx(j,{...c,onDisconnect:()=>s(null)})})})]})}function n1({blocklet:t}){var u,o,h;if(O(t))return{};const{appDid:a}=t,s=E.getAppName(t),c=E.getAppDescription(t),i=(h=(o=(u=t==null?void 0:t.site)==null?void 0:u.domainAliases)==null?void 0:o.sort((n,A)=>n.accessibility.accessible&&A.accessibility.accessible?+n.isProtected-+A.isProtected:+A.accessibility.accessible-+n.accessibility.accessible))==null?void 0:h.map(n=>{var C;const A=(C=n==null?void 0:n.domainStatus)!=null&&C.isHttps?"https://":"http://",l=n==null?void 0:n.value;return`${A}${l}`}).filter(Boolean),r=i==null?void 0:i[0],f=J.DID_SPACES.AUTHORIZE.DEFAULT_SCOPE,p=window.location.href;return{appDid:a,appName:s,appDescription:c,appUrl:r,scopes:f,referrer:p,isReady:!!r}}function T({onConnect:t,...a}){const{blocklet:s}=S(),{info:c}=U(),{t:i}=y(),r=n1({blocklet:s}),f=H(c),p={checkFn:N.create({baseURL:b(window.location.origin,P())}).get,webWalletUrl:f,extraParams:{appPid:s.appPid,appDid:r.appDid,appName:r.appName,appDescription:r.appDescription,appUrl:r.appUrl,referrer:r.referrer,scopes:r.scopes,nodeDid:c.did}},u=async(o,h)=>{try{const n=z(o,h);await t(n),m.success(i("storage.spaces.connectedWithName",{name:n.name}))}catch(n){console.error(n),m.error(v(n))}};return e.jsx(K,{...a,options:p,onSuccess:u})}T.propTypes={onConnect:R.func};T.defaultProps={onConnect:()=>{}};export{f1 as C,s1 as D,t1 as a,T as b,M as c,n1 as d,d1 as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{q as h,j as n,U as g,m as j,af as _,P as i}from"./index-
|
|
1
|
+
import{q as h,j as n,U as g,m as j,af as _,P as i}from"./index-BJnzhtRd.js";import{C as v}from"./click-to-copy-BHPvbJ6H.js";import{S as T}from"./shorten-label-DZ9hQKJE.js";import{T as b}from"./TextField-CffC6XHW.js";function s({title:c,description:l,confirmPlaceholder:m,cancel:d,confirm:p,params:f,onCancel:u,onConfirm:C,keyName:r}){const{t}=h(),e={title:()=>n.jsxs("div",{children:[c,n.jsx(T,{sx:{fontSize:"14px"},maxLength:64,children:` (${r})`})]}),description:(a,x)=>{const y=o=>{x({...o,__disableConfirm:o.__disableConfirm})};return n.jsxs("div",{children:[n.jsx(g,{severity:"warning",style:{width:"100%"},children:t("common.notice")}),n.jsx("div",{style:{marginTop:24,marginBottom:24},dangerouslySetInnerHTML:{__html:l}}),n.jsxs("div",{style:{marginBottom:24},children:[t("common.click"),":",n.jsx(v,{"data-cy":"click-copy",children:r})]}),n.jsx(j,{component:"div",children:n.jsx(b,{label:m,autoComplete:"off","data-cy":"delete-confirm-input",variant:"outlined",fullWidth:!0,autoFocus:!0,value:a.inputVal,onChange:o=>{y({...a,inputVal:o.target.value,__disableConfirm:r!==o.target.value})}})})]})},confirm:p,cancel:d,onConfirm:C,onCancel:u,params:{inputVal:"",__disableConfirm:!0,...f}};return n.jsx(_,{title:e.title,description:e.description,confirm:e.confirm,cancel:e.cancel,params:e.params,onConfirm:e.onConfirm,onCancel:e.onCancel})}s.propTypes={title:i.any.isRequired,keyName:i.any.isRequired,description:i.any.isRequired,confirmPlaceholder:i.any.isRequired,cancel:i.string,confirm:i.string,params:i.object,onCancel:i.func,onConfirm:i.func.isRequired};s.defaultProps={onCancel:()=>{},cancel:"",confirm:"Confirm",params:{}};export{s as C};
|