@abtnode/webapp 1.16.49-beta-20250823-082650-626c1473 → 1.16.49-beta-20250826-112154-8ca981fa
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/blocklet.js +1 -1
- package/blocklet.yml +1 -1
- package/dist/assets/{AdapterDayjs-CCV2cZO2.js → AdapterDayjs-DSbst3Pb.js} +1 -1
- package/dist/assets/{Add-CyNDL_k-.js → Add-B4h6-Y3a.js} +1 -1
- package/dist/assets/ArrowDropDown-DPp-6zTe.js +1 -0
- package/dist/assets/{Autocomplete-CiCUwFEx.js → Autocomplete-D4qgHPQo.js} +1 -1
- package/dist/assets/{Breadcrumbs-DRGS42Bm.js → Breadcrumbs-wr7_Z9Jk.js} +1 -1
- package/dist/assets/{ButtonGroup-CtdH1HDV.js → ButtonGroup-CruDWUf6.js} +1 -1
- package/dist/assets/{CSSTransition-Fx_rKfN5.js → CSSTransition-DHyzDS3S.js} +1 -1
- package/dist/assets/{CallMerge-eGwHUOxa.js → CallMerge-DDIAfXuh.js} +1 -1
- package/dist/assets/{CardContent-Bm199lLV.js → CardContent-BkHIw2EY.js} +1 -1
- package/dist/assets/{ChevronLeft-ccVGGgwe.js → ChevronLeft-LMOWtQoh.js} +1 -1
- package/dist/assets/{ChevronRight-DkWBbhkk.js → ChevronRight-CYwtPaao.js} +1 -1
- package/dist/assets/{Clear-CiwnL4KG.js → Clear-BM1FBBZl.js} +1 -1
- package/dist/assets/{DeleteOutline-BZsf5LEb.js → DeleteOutline-lLsPbsy_.js} +1 -1
- package/dist/assets/{Done-Ce1yOCQQ.js → Done-D68dtThT.js} +1 -1
- package/dist/assets/{Edit-_KT4-UwT.js → Edit-6kwCK506.js} +1 -1
- package/dist/assets/{ErrorOutline-D_eF69j1.js → ErrorOutline-d8mvVfQG.js} +1 -1
- package/dist/assets/{FilterList-DrLayevh.js → FilterList-DBRn3RJ7.js} +1 -1
- package/dist/assets/{Google-D6kQ3L4a.js → Google-Ch0Lcmyw.js} +1 -1
- package/dist/assets/{HelpOutline-Co_HF89w.js → HelpOutline-CB_V8VHj.js} +1 -1
- package/dist/assets/{Launch-DhM4Sbq_.js → Launch-DQ9Pd0Tu.js} +1 -1
- package/dist/assets/{Link-BLLpsHXK.js → Link-C3jBvdRj.js} +1 -1
- package/dist/assets/{ListItemButton-B85clGhN.js → ListItemButton-KhUkLUks.js} +1 -1
- package/dist/assets/{ListSubheader-DC_9Utyi.js → ListSubheader-CiWrOXPy.js} +1 -1
- package/dist/assets/{LoadingButton-yIi_Wg1h.js → LoadingButton-C5AY54l3.js} +1 -1
- package/dist/assets/{MoreVert-BNRNVzHq.js → MoreVert-LvQsHRvP.js} +1 -1
- package/dist/assets/{OpenInNew-_jBuUUU8.js → OpenInNew-CjwanXX3.js} +1 -1
- package/dist/assets/{Refresh-BQ3py77i.js → Refresh-KmLBerHN.js} +1 -1
- package/dist/assets/{Search-CgNd44j3.js → Search-B3y3I7Bx.js} +1 -1
- package/dist/assets/{Slider-CChimiAQ.js → Slider-D5zhDFVl.js} +1 -1
- package/dist/assets/{Stepper-WISRB160.js → Stepper-DrtkVXGn.js} +1 -1
- package/dist/assets/{Switch-Dls1St8M.js → Switch-jMKoPPEj.js} +1 -1
- package/dist/assets/{TableSearch-Cq2ZjGX2.js → TableSearch-CgxNYXXT.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-BhST-iqI.js → ToggleButtonGroup-B7LsHyld.js} +1 -1
- package/dist/assets/{Verified-DcrboFo1.js → Verified-8xtM8E7f.js} +1 -1
- package/dist/assets/{VerifiedUser-cJQh0v4d.js → VerifiedUser-Bk2y4NnA.js} +1 -1
- package/dist/assets/{ViewList-B39g1Cm0.js → ViewList-B3wMEZt_.js} +1 -1
- package/dist/assets/{_createAggregator-BUGIwGBj.js → _createAggregator-BGx_hyA1.js} +1 -1
- package/dist/assets/{actions-AVKWKD8N.js → actions-B6hLI_nf.js} +1 -1
- package/dist/assets/{actions-B9LGsj6w.js → actions-CddJqvRX.js} +1 -1
- package/dist/assets/{agreement-CYwIMY9D.js → agreement-DeuZfmwL.js} +1 -1
- package/dist/assets/api-DYXM52h1.js +1 -0
- package/dist/assets/{appearance-CLKNV9dN.js → appearance-D0kdBw02.js} +1 -1
- package/dist/assets/{audit-logs-BlKGgNve.js → audit-logs-BL9lOS0g.js} +1 -1
- package/dist/assets/{base-chart-BpZuHtvk.js → base-chart-DXDl7cwx.js} +1 -1
- package/dist/assets/{blocklet-Cmt2sJrg.js → blocklet-kdF0d0Qp.js} +1 -1
- package/dist/assets/{chain-DBWSeogE.js → chain-B5MJhwl_.js} +1 -1
- package/dist/assets/{click-to-copy-BHQeGc5Q.js → click-to-copy-DlZXoRgA.js} +1 -1
- package/dist/assets/client-BnO8CaDE.js +1 -0
- package/dist/assets/cloneDeep-BSii9efD.js +1 -0
- package/dist/assets/{collapse-BSEnOmME.js → collapse-3YhIjFRC.js} +1 -1
- package/dist/assets/{config-navigation-B2egvfB5.js → config-navigation-CG3U8Oaq.js} +3 -3
- package/dist/assets/{connect-to-BrpViwa1.js → connect-to-Bz01gbxV.js} +1 -1
- package/dist/assets/{cssMode-C4CfOom7.js → cssMode-BNQLUhin.js} +1 -1
- package/dist/assets/{delete-confirm-5zZBH8yO.js → delete-confirm-Dz660yTH.js} +1 -1
- package/dist/assets/{depsEqual-Chu35bsJ.js → depsEqual-BU0Zfzov.js} +1 -1
- package/dist/assets/{detail-BIG3Wy4a.js → detail-wjh8SSmq.js} +3 -3
- package/dist/assets/{domains-B4KoZUjQ.js → domains-DF82JmAx.js} +1 -1
- package/dist/assets/{download-DdxRq_ET.js → download-uZ39PIN3.js} +1 -1
- package/dist/assets/{edit.svg-Duh18hDj.js → edit.svg-DHEgt4T5.js} +1 -1
- package/dist/assets/emotion-cache.browser.esm-KBOD-kTR.js +1 -0
- package/dist/assets/engine-CrVL_aCe.js +1 -0
- package/dist/assets/{freemarker2-B1QPgZkR.js → freemarker2-CJqpFP2F.js} +1 -1
- package/dist/assets/{get-safe-url-BFNXt7rK.js → get-safe-url-BjjSte_r.js} +1 -1
- package/dist/assets/getValidReactChildren-3HCtT0J7.js +1 -0
- package/dist/assets/{graphqlMode-BYxsQfbo.js → graphqlMode-CmZymNXr.js} +2 -2
- package/dist/assets/{handlebars-CF1niWLC.js → handlebars-Spod6KlQ.js} +1 -1
- package/dist/assets/{html-DSDdVfgm.js → html-2zt8tD_A.js} +1 -1
- package/dist/assets/{html-title-FdukYTkz.js → html-title-BISVxbaC.js} +1 -1
- package/dist/assets/{htmlMode-KKRgY6T9.js → htmlMode-16TfNklg.js} +1 -1
- package/dist/assets/{iframe-BBW8YmnC.js → iframe-BQna3Pt_.js} +1 -1
- package/dist/assets/{index-CYNcoZTi.js → index--1yW1BOK.js} +1 -1
- package/dist/assets/{index-MkEIzeFu.js → index-6vVbUeRC.js} +1 -1
- package/dist/assets/{index-Cel1YaQM.js → index-89kUV6fB.js} +1 -1
- package/dist/assets/{index-CEjBwN0B.js → index-98kYGR7t.js} +1 -1
- package/dist/assets/{index-DLpsm2mN.js → index-B0bm6qHZ.js} +1 -1
- package/dist/assets/{index-VvQ0okvj.js → index-BA3wdHPl.js} +2 -2
- package/dist/assets/{index-_ubYroa3.js → index-BF03k2Ax.js} +3 -3
- package/dist/assets/{index-JmWSLUGC.js → index-BG9IsOhp.js} +1 -1
- package/dist/assets/{index-mwTV4nae.js → index-BHMLUWGw.js} +1 -1
- package/dist/assets/{index-Zkn_nLyD.js → index-BJXZRP2y.js} +1 -1
- package/dist/assets/{index-fWrig1cJ.js → index-BPtoIMoq.js} +1 -1
- package/dist/assets/{index-TyxE76Ec.js → index-BV21Rw9W.js} +1 -1
- package/dist/assets/{index-jaPiqxwU.js → index-BfUqHZWc.js} +1 -1
- package/dist/assets/{index-DC4dv6bl.js → index-BqK0_Y7D.js} +1 -1
- package/dist/assets/{index-BOED20oN.js → index-BxkNxMyK.js} +1 -1
- package/dist/assets/{index-BqeIoJWi.js → index-Bz8yCBy3.js} +1 -1
- package/dist/assets/{index-CWP-CUtR.js → index-C-HhEzKZ.js} +24 -24
- package/dist/assets/{index-CZ4vDw6v.js → index-C4WLTDtv.js} +1 -1
- package/dist/assets/{index-DnwZiXgX.js → index-CHEaph75.js} +1 -1
- package/dist/assets/{index-ByEnjz7_.js → index-CKNShJuT.js} +1 -1
- package/dist/assets/{index-BZbJRgwL.js → index-CV8nRA8u.js} +1 -1
- package/dist/assets/{index-X_edenPh.js → index-CWczD9fZ.js} +1 -1
- package/dist/assets/{index-SMQr0-z0.js → index-CYPMnPt9.js} +1 -1
- package/dist/assets/{index-CPobCYA2.js → index-CZOJtrkJ.js} +2 -2
- package/dist/assets/{index-B2aAXlh7.js → index-CfmHj4Fr.js} +1 -1
- package/dist/assets/{index-vG_fevo9.js → index-ChkX2WWr.js} +1 -1
- package/dist/assets/{index-ChiaZhgT.js → index-CmzNfXzP.js} +1 -1
- package/dist/assets/{index-DZRPUI-P.js → index-Codg30Dx.js} +1 -1
- package/dist/assets/{index-BiQgvI4J.js → index-CqGVnG0M.js} +1 -1
- package/dist/assets/{index-D7GSic7V.js → index-D302CC2f.js} +3 -3
- package/dist/assets/{index-BW7huu6e.js → index-DIfZboDN.js} +1 -1
- package/dist/assets/index-DYnIi7EK.js +1 -0
- package/dist/assets/{index-CxEItqDK.js → index-DYz2td3Y.js} +1 -1
- package/dist/assets/{index-C_JR3eYj.js → index-DhdKMm-r.js} +3 -3
- package/dist/assets/{index-yUwivyV4.js → index-DiElCa61.js} +1 -1
- package/dist/assets/{index-Dc39Ep1O.js → index-Dnqtpp1_.js} +1 -1
- package/dist/assets/{index-OYUoLiKD.js → index-JRz2LnLe.js} +1 -1
- package/dist/assets/{index-DoQLBKcD.js → index-LyatycMz.js} +1 -1
- package/dist/assets/{index-VK5O0-Jy.js → index-QXgvuFbn.js} +1 -1
- package/dist/assets/{index-DrMxR7ux.js → index-Re9OtYRi.js} +1 -1
- package/dist/assets/{index-DJ6r2HtS.js → index-Vc1ekAsE.js} +1 -1
- package/dist/assets/{index-YZaa-4Bx.js → index-hFi2ujLY.js} +1 -1
- package/dist/assets/{index-yarj_VFw.js → index-mspSv8aA.js} +1 -1
- package/dist/assets/{index-DYPBcENw.js → index-o8tAgHD5.js} +9 -9
- package/dist/assets/{index-Clrosnuk.js → index-qEAxLPUq.js} +1 -1
- package/dist/assets/{index.esm-CxItsQTJ.js → index.esm-FBjE3h2W.js} +1 -1
- package/dist/assets/{install-from-url-380qd7gt.js → install-from-url-Dj8KHNoU.js} +1 -1
- package/dist/assets/{invitation-DGCfHqGj.js → invitation-D02TgN19.js} +1 -1
- package/dist/assets/{is-path-prefix-equal-m3gGIcl9.js → is-path-prefix-equal-Cgt3NVqw.js} +1 -1
- package/dist/assets/{item-DD_3E6bF.js → item-DsfvuKyA.js} +1 -1
- package/dist/assets/{javascript-CjrPNChY.js → javascript-i5l_OpZv.js} +1 -1
- package/dist/assets/{jsonMode-DXiVGLkr.js → jsonMode-B_y9Y7f4.js} +1 -1
- package/dist/assets/{liquid-D-VmpCyh.js → liquid-DFAbUkgZ.js} +1 -1
- package/dist/assets/{list-header-BCf9pfpu.js → list-header-CGBrwwxP.js} +1 -1
- package/dist/assets/{log-DZjV_8Yh.js → log-ChluFqz7.js} +1 -1
- package/dist/assets/{lottie-react.esm-DiR7wRdT.js → lottie-react.esm-D9g4e0uS.js} +1 -1
- package/dist/assets/{mdx-DAOZ4lMY.js → mdx-D2o3TsGM.js} +1 -1
- package/dist/assets/{memory-BpAl3sVA.js → memory-SxjYPx-h.js} +1 -1
- package/dist/assets/{metric-Dby59eDK.js → metric-CCiJIosR.js} +1 -1
- package/dist/assets/omit-C9V__aYC.js +1 -0
- package/dist/assets/{overview-CcowRwok.js → overview-CriGA2W0.js} +1 -1
- package/dist/assets/{permission-BthIDENf.js → permission-DG4nnLwd.js} +1 -1
- package/dist/assets/{preference-kBYeEwSF.js → preference-AAH5ysUn.js} +3 -3
- package/dist/assets/{python-CdbhBWHz.js → python-CPuFjGso.js} +1 -1
- package/dist/assets/{raf-schd.esm-Dcqswq4F.js → raf-schd.esm-DHvy-PNC.js} +1 -1
- package/dist/assets/{razor-D3uR_CWd.js → razor-50RsUVHI.js} +1 -1
- package/dist/assets/{rotate-session-key-DMSWrzBB.js → rotate-session-key-Cr770JiY.js} +1 -1
- package/dist/assets/{runtime-Bc6mIoVO.js → runtime-uqXKMFBQ.js} +1 -1
- package/dist/assets/schema-HTPq5Xtv.js +1 -0
- package/dist/assets/sdk-C_SRrWJ9.js +1 -0
- package/dist/assets/{service-BwSP32Mz.js → service-CKtPzZF9.js} +1 -1
- package/dist/assets/{shorten-label-B3maSdfu.js → shorten-label-2HLZz3fu.js} +1 -1
- package/dist/assets/{simple-select-DGVn7OCp.js → simple-select-Cld5PcRw.js} +1 -1
- package/dist/assets/{spaces-CRL9ftNo.js → spaces-BuiVc0de.js} +1 -1
- package/dist/assets/{status-CmwFl99i.js → status-BeRo7Q4z.js} +1 -1
- package/dist/assets/{status-B6NUazE3.js → status-C8HQh9dt.js} +1 -1
- package/dist/assets/{switch-control-CQve8WjK.js → switch-control-4POtc8f3.js} +1 -1
- package/dist/assets/{table-icons-BFn_1E3e.js → table-icons-B8R9UES0.js} +1 -1
- package/dist/assets/{team-ejN4nnN3.js → team-n2xFz2t1.js} +1 -1
- package/dist/assets/{toLower-Bvxl8_28.js → toLower-ex_Cy3wy.js} +1 -1
- package/dist/assets/toUpper-Cen4nN2p.js +1 -0
- package/dist/assets/{traffic-BPJ-UAIv.js → traffic-BCka21nM.js} +1 -1
- package/dist/assets/{tsMode-BE9xerv4.js → tsMode-DYWrw_-3.js} +1 -1
- package/dist/assets/{typescript-Bl04Dq2P.js → typescript-TnEuq3h_.js} +1 -1
- package/dist/assets/{url-evaluation-CfntFDAB.js → url-evaluation-DiHmEbVj.js} +1 -1
- package/dist/assets/{url-join-Cbq6GdOd.js → url-join-U9ZbETkY.js} +1 -1
- package/dist/assets/{use-mobile-BSN4bEuW.js → use-mobile-CsTrq8vs.js} +1 -1
- package/dist/assets/{use-mobile-B2yfhcBW.js → use-mobile-T1XgZgYV.js} +1 -1
- package/dist/assets/{useAsync-Bp9zfZcB.js → useAsync-By8N2vZe.js} +1 -1
- package/dist/assets/{useAsyncRetry-B4rCQJf1.js → useAsyncRetry-9br707vK.js} +1 -1
- package/dist/assets/{useLocalStorage-Bp5NtICI.js → useLocalStorage-BdRSQq24.js} +1 -1
- package/dist/assets/{useThemeProps-BBt9_Zlf.js → useThemeProps-qTAusu8D.js} +1 -1
- package/dist/assets/{util-Cx9tbwYF.js → util-BRdkBqvw.js} +1 -1
- package/dist/assets/{wait-container-DuYkXev1.js → wait-container-CieQbYCo.js} +1 -1
- package/dist/assets/{without-wallet-BYcJEzBd.js → without-wallet-D1BnAwMz.js} +1 -1
- package/dist/assets/{wrap-locale-BrkbOfQd.js → wrap-locale-3dv9PAUx.js} +1 -1
- package/dist/assets/{xml-DA354x40.js → xml-Cd7ZqbC-.js} +1 -1
- package/dist/assets/{yaml-BVTWBbvI.js → yaml-Dr98nGaa.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +1 -1
- package/dist/assets/ArrowDropDown-DBKeGP2I.js +0 -1
- package/dist/assets/api-a-vwp3t3.js +0 -1
- package/dist/assets/client-BhxOC8vI.js +0 -1
- package/dist/assets/cloneDeep-DUzeWN1z.js +0 -1
- package/dist/assets/emotion-cache.browser.esm-Ce-Ac5Zj.js +0 -1
- package/dist/assets/engine-B5ww7WNt.js +0 -1
- package/dist/assets/getValidReactChildren-DBpCDunv.js +0 -1
- package/dist/assets/index-BpKbArXc.js +0 -1
- package/dist/assets/omit-C6T47lE8.js +0 -1
- package/dist/assets/schema-H7H3MB1A.js +0 -1
- package/dist/assets/sdk-CR-wTgx6.js +0 -1
- package/dist/assets/toUpper-j3cZVPNT.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aG as Kt,j as Q,bd as Gt,s as Ht,r as zt,_ as Wt,fn as we,dd as Zt,g9 as Yt}from"./index-CPobCYA2.js";const Xt=Kt(Q.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm-1 4 6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2zm-1 7h5.5L14 6.5z"}));var En,$n;function jt(){if($n)return En;$n=1;function n(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const a=e[t],f=typeof a;(f==="object"||f==="function")&&!Object.isFrozen(a)&&n(a)}),e}class r{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function o(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function c(e,...t){const a=Object.create(null);for(const f in e)a[f]=e[f];return t.forEach(function(f){for(const F in f)a[F]=f[F]}),a}const w="</span>",$=e=>!!e.scope,A=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const a=e.split(".");return[`${t}${a.shift()}`,...a.map((f,F)=>`${f}${"_".repeat(F+1)}`)].join(" ")}return`${t}${e}`};class _{constructor(t,a){this.buffer="",this.classPrefix=a.classPrefix,t.walk(this)}addText(t){this.buffer+=o(t)}openNode(t){if(!$(t))return;const a=A(t.scope,{prefix:this.classPrefix});this.span(a)}closeNode(t){$(t)&&(this.buffer+=w)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const h=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class b{constructor(){this.rootNode=h(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const a=h({scope:t});this.add(a),this.stack.push(a)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,a){return typeof a=="string"?t.addText(a):a.children&&(t.openNode(a),a.children.forEach(f=>this._walk(t,f)),t.closeNode(a)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(a=>typeof a=="string")?t.children=[t.children.join("")]:t.children.forEach(a=>{b._collapse(a)}))}}class S extends b{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,a){const f=t.root;a&&(f.scope=`language:${a}`),this.add(f)}toHTML(){return new _(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function R(e){return e?typeof e=="string"?e:e.source:null}function N(e){return O("(?=",e,")")}function y(e){return O("(?:",e,")*")}function U(e){return O("(?:",e,")?")}function O(...e){return e.map(a=>R(a)).join("")}function P(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function B(...e){return"("+(P(e).capture?"":"?:")+e.map(f=>R(f)).join("|")+")"}function H(e){return new RegExp(e.toString()+"|").exec("").length-1}function Z(e,t){const a=e&&e.exec(t);return a&&a.index===0}const se=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function M(e,{joinWith:t}){let a=0;return e.map(f=>{a+=1;const F=a;let K=R(f),u="";for(;K.length>0;){const l=se.exec(K);if(!l){u+=K;break}u+=K.substring(0,l.index),K=K.substring(l.index+l[0].length),l[0][0]==="\\"&&l[1]?u+="\\"+String(Number(l[1])+F):(u+=l[0],l[0]==="("&&a++)}return u}).map(f=>`(${f})`).join(t)}const V=/\b\B/,ce="[a-zA-Z]\\w*",te="[a-zA-Z_]\\w*",ae="\\b\\d+(\\.\\d+)?",de="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Ne="\\b(0b[01]+)",Ee="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",he=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=O(t,/.*\b/,e.binary,/\b.*/)),c({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(a,f)=>{a.index!==0&&f.ignoreMatch()}},e)},re={begin:"\\\\[\\s\\S]",relevance:0},Ae={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[re]},be={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[re]},fe={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},I=function(e,t,a={}){const f=c({scope:"comment",begin:e,end:t,contains:[]},a);f.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const F=B("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return f.contains.push({begin:O(/[ ]+/,"(",F,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),f},Y=I("//","$"),ee=I("/\\*","\\*/"),q=I("#","$"),X={scope:"number",begin:ae,relevance:0},_e={scope:"number",begin:de,relevance:0},qe={scope:"number",begin:Ne,relevance:0},Be={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[re,{begin:/\[/,end:/\]/,relevance:0,contains:[re]}]},ve={scope:"title",begin:ce,relevance:0},Je={scope:"title",begin:te,relevance:0},$e={begin:"\\.\\s*"+te,relevance:0};var Oe=Object.freeze({__proto__:null,APOS_STRING_MODE:Ae,BACKSLASH_ESCAPE:re,BINARY_NUMBER_MODE:qe,BINARY_NUMBER_RE:Ne,COMMENT:I,C_BLOCK_COMMENT_MODE:ee,C_LINE_COMMENT_MODE:Y,C_NUMBER_MODE:_e,C_NUMBER_RE:de,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(t,a)=>{a.data._beginMatch=t[1]},"on:end":(t,a)=>{a.data._beginMatch!==t[1]&&a.ignoreMatch()}})},HASH_COMMENT_MODE:q,IDENT_RE:ce,MATCH_NOTHING_RE:V,METHOD_GUARD:$e,NUMBER_MODE:X,NUMBER_RE:ae,PHRASAL_WORDS_MODE:fe,QUOTE_STRING_MODE:be,REGEXP_MODE:Be,RE_STARTERS_RE:Ee,SHEBANG:he,TITLE_MODE:ve,UNDERSCORE_IDENT_RE:te,UNDERSCORE_TITLE_MODE:Je});function Qe(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function en(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function nn(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=Qe,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function tn(e,t){Array.isArray(e.illegal)&&(e.illegal=B(...e.illegal))}function sn(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function L(e,t){e.relevance===void 0&&(e.relevance=1)}const Ie=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const a=Object.assign({},e);Object.keys(e).forEach(f=>{delete e[f]}),e.keywords=a.keywords,e.begin=O(a.beforeMatch,N(a.begin)),e.starts={relevance:0,contains:[Object.assign(a,{endsParent:!0})]},e.relevance=0,delete a.beforeMatch},Re=["of","and","for","in","not","or","if","then","parent","list","value"],an="keyword";function mn(e,t,a=an){const f=Object.create(null);return typeof e=="string"?F(a,e.split(" ")):Array.isArray(e)?F(a,e):Object.keys(e).forEach(function(K){Object.assign(f,mn(e[K],t,K))}),f;function F(K,u){t&&(u=u.map(l=>l.toLowerCase())),u.forEach(function(l){const E=l.split("|");f[E[0]]=[K,dt(E[0],E[1])]})}}function dt(e,t){return t?Number(t):Et(e)?0:1}function Et(e){return Re.includes(e.toLowerCase())}const An={},Te=e=>{console.error(e)},Rn=(e,...t)=>{console.log(`WARN: ${e}`,...t)},Me=(e,t)=>{An[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),An[`${e}/${t}`]=!0)},Ue=new Error;function Tn(e,t,{key:a}){let f=0;const F=e[a],K={},u={};for(let l=1;l<=t.length;l++)u[l+f]=F[l],K[l+f]=!0,f+=H(t[l-1]);e[a]=u,e[a]._emit=K,e[a]._multi=!0}function bt(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw Te("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Ue;if(typeof e.beginScope!="object"||e.beginScope===null)throw Te("beginScope must be object"),Ue;Tn(e,e.begin,{key:"beginScope"}),e.begin=M(e.begin,{joinWith:""})}}function ft(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw Te("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Ue;if(typeof e.endScope!="object"||e.endScope===null)throw Te("endScope must be object"),Ue;Tn(e,e.end,{key:"endScope"}),e.end=M(e.end,{joinWith:""})}}function _t(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function pt(e){_t(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),bt(e),ft(e)}function Nt(e){function t(u,l){return new RegExp(R(u),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(l?"g":""))}class a{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(l,E){E.position=this.position++,this.matchIndexes[this.matchAt]=E,this.regexes.push([E,l]),this.matchAt+=H(l)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const l=this.regexes.map(E=>E[1]);this.matcherRe=t(M(l,{joinWith:"|"}),!0),this.lastIndex=0}exec(l){this.matcherRe.lastIndex=this.lastIndex;const E=this.matcherRe.exec(l);if(!E)return null;const W=E.findIndex((De,cn)=>cn>0&&De!==void 0),G=this.matchIndexes[W];return E.splice(0,W),Object.assign(E,G)}}class f{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(l){if(this.multiRegexes[l])return this.multiRegexes[l];const E=new a;return this.rules.slice(l).forEach(([W,G])=>E.addRule(W,G)),E.compile(),this.multiRegexes[l]=E,E}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(l,E){this.rules.push([l,E]),E.type==="begin"&&this.count++}exec(l){const E=this.getMatcher(this.regexIndex);E.lastIndex=this.lastIndex;let W=E.exec(l);if(this.resumingScanAtSamePosition()&&!(W&&W.index===this.lastIndex)){const G=this.getMatcher(0);G.lastIndex=this.lastIndex+1,W=G.exec(l)}return W&&(this.regexIndex+=W.position+1,this.regexIndex===this.count&&this.considerAll()),W}}function F(u){const l=new f;return u.contains.forEach(E=>l.addRule(E.begin,{rule:E,type:"begin"})),u.terminatorEnd&&l.addRule(u.terminatorEnd,{type:"end"}),u.illegal&&l.addRule(u.illegal,{type:"illegal"}),l}function K(u,l){const E=u;if(u.isCompiled)return E;[en,sn,pt,Ie].forEach(G=>G(u,l)),e.compilerExtensions.forEach(G=>G(u,l)),u.__beforeBegin=null,[nn,tn,L].forEach(G=>G(u,l)),u.isCompiled=!0;let W=null;return typeof u.keywords=="object"&&u.keywords.$pattern&&(u.keywords=Object.assign({},u.keywords),W=u.keywords.$pattern,delete u.keywords.$pattern),W=W||/\w+/,u.keywords&&(u.keywords=mn(u.keywords,e.case_insensitive)),E.keywordPatternRe=t(W,!0),l&&(u.begin||(u.begin=/\B|\b/),E.beginRe=t(E.begin),!u.end&&!u.endsWithParent&&(u.end=/\B|\b/),u.end&&(E.endRe=t(E.end)),E.terminatorEnd=R(E.end)||"",u.endsWithParent&&l.terminatorEnd&&(E.terminatorEnd+=(u.end?"|":"")+l.terminatorEnd)),u.illegal&&(E.illegalRe=t(u.illegal)),u.contains||(u.contains=[]),u.contains=[].concat(...u.contains.map(function(G){return ht(G==="self"?u:G)})),u.contains.forEach(function(G){K(G,E)}),u.starts&&K(u.starts,l),E.matcher=F(E),E}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=c(e.classNameAliases||{}),K(e)}function yn(e){return e?e.endsWithParent||yn(e.starts):!1}function ht(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return c(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:yn(e)?c(e,{starts:e.starts?c(e.starts):null}):Object.isFrozen(e)?c(e):e}var St="11.11.1";class mt extends Error{constructor(t,a){super(t),this.name="HTMLInjectionError",this.html=a}}const rn=o,On=c,In=Symbol("nomatch"),At=7,Mn=function(e){const t=Object.create(null),a=Object.create(null),f=[];let F=!0;const K="Could not find the language '{}', did you forget to load/include a language module?",u={disableAutodetect:!0,name:"Plain text",contains:[]};let l={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:S};function E(s){return l.noHighlightRe.test(s)}function W(s){let d=s.className+" ";d+=s.parentNode?s.parentNode.className:"";const T=l.languageDetectRe.exec(d);if(T){const D=Se(T[1]);return D||(Rn(K.replace("{}",T[1])),Rn("Falling back to no-highlight mode for this block.",s)),D?T[1]:"no-highlight"}return d.split(/\s+/).find(D=>E(D)||Se(D))}function G(s,d,T){let D="",z="";typeof d=="object"?(D=s,T=d.ignoreIllegals,z=d.language):(Me("10.7.0","highlight(lang, code, ...args) has been deprecated."),Me("10.7.0",`Please use highlight(code, options) instead.
|
|
1
|
+
import{aG as Kt,j as Q,bd as Gt,s as Ht,r as zt,_ as Wt,fn as we,dd as Zt,g9 as Yt}from"./index-CZOJtrkJ.js";const Xt=Kt(Q.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm-1 4 6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2zm-1 7h5.5L14 6.5z"}));var En,$n;function jt(){if($n)return En;$n=1;function n(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const a=e[t],f=typeof a;(f==="object"||f==="function")&&!Object.isFrozen(a)&&n(a)}),e}class r{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function o(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function c(e,...t){const a=Object.create(null);for(const f in e)a[f]=e[f];return t.forEach(function(f){for(const F in f)a[F]=f[F]}),a}const w="</span>",$=e=>!!e.scope,A=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const a=e.split(".");return[`${t}${a.shift()}`,...a.map((f,F)=>`${f}${"_".repeat(F+1)}`)].join(" ")}return`${t}${e}`};class _{constructor(t,a){this.buffer="",this.classPrefix=a.classPrefix,t.walk(this)}addText(t){this.buffer+=o(t)}openNode(t){if(!$(t))return;const a=A(t.scope,{prefix:this.classPrefix});this.span(a)}closeNode(t){$(t)&&(this.buffer+=w)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const h=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class b{constructor(){this.rootNode=h(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const a=h({scope:t});this.add(a),this.stack.push(a)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,a){return typeof a=="string"?t.addText(a):a.children&&(t.openNode(a),a.children.forEach(f=>this._walk(t,f)),t.closeNode(a)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(a=>typeof a=="string")?t.children=[t.children.join("")]:t.children.forEach(a=>{b._collapse(a)}))}}class S extends b{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,a){const f=t.root;a&&(f.scope=`language:${a}`),this.add(f)}toHTML(){return new _(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function R(e){return e?typeof e=="string"?e:e.source:null}function N(e){return O("(?=",e,")")}function y(e){return O("(?:",e,")*")}function U(e){return O("(?:",e,")?")}function O(...e){return e.map(a=>R(a)).join("")}function P(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function B(...e){return"("+(P(e).capture?"":"?:")+e.map(f=>R(f)).join("|")+")"}function H(e){return new RegExp(e.toString()+"|").exec("").length-1}function Z(e,t){const a=e&&e.exec(t);return a&&a.index===0}const se=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function M(e,{joinWith:t}){let a=0;return e.map(f=>{a+=1;const F=a;let K=R(f),u="";for(;K.length>0;){const l=se.exec(K);if(!l){u+=K;break}u+=K.substring(0,l.index),K=K.substring(l.index+l[0].length),l[0][0]==="\\"&&l[1]?u+="\\"+String(Number(l[1])+F):(u+=l[0],l[0]==="("&&a++)}return u}).map(f=>`(${f})`).join(t)}const V=/\b\B/,ce="[a-zA-Z]\\w*",te="[a-zA-Z_]\\w*",ae="\\b\\d+(\\.\\d+)?",de="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Ne="\\b(0b[01]+)",Ee="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",he=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=O(t,/.*\b/,e.binary,/\b.*/)),c({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(a,f)=>{a.index!==0&&f.ignoreMatch()}},e)},re={begin:"\\\\[\\s\\S]",relevance:0},Ae={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[re]},be={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[re]},fe={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},I=function(e,t,a={}){const f=c({scope:"comment",begin:e,end:t,contains:[]},a);f.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const F=B("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return f.contains.push({begin:O(/[ ]+/,"(",F,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),f},Y=I("//","$"),ee=I("/\\*","\\*/"),q=I("#","$"),X={scope:"number",begin:ae,relevance:0},_e={scope:"number",begin:de,relevance:0},qe={scope:"number",begin:Ne,relevance:0},Be={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[re,{begin:/\[/,end:/\]/,relevance:0,contains:[re]}]},ve={scope:"title",begin:ce,relevance:0},Je={scope:"title",begin:te,relevance:0},$e={begin:"\\.\\s*"+te,relevance:0};var Oe=Object.freeze({__proto__:null,APOS_STRING_MODE:Ae,BACKSLASH_ESCAPE:re,BINARY_NUMBER_MODE:qe,BINARY_NUMBER_RE:Ne,COMMENT:I,C_BLOCK_COMMENT_MODE:ee,C_LINE_COMMENT_MODE:Y,C_NUMBER_MODE:_e,C_NUMBER_RE:de,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(t,a)=>{a.data._beginMatch=t[1]},"on:end":(t,a)=>{a.data._beginMatch!==t[1]&&a.ignoreMatch()}})},HASH_COMMENT_MODE:q,IDENT_RE:ce,MATCH_NOTHING_RE:V,METHOD_GUARD:$e,NUMBER_MODE:X,NUMBER_RE:ae,PHRASAL_WORDS_MODE:fe,QUOTE_STRING_MODE:be,REGEXP_MODE:Be,RE_STARTERS_RE:Ee,SHEBANG:he,TITLE_MODE:ve,UNDERSCORE_IDENT_RE:te,UNDERSCORE_TITLE_MODE:Je});function Qe(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function en(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function nn(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=Qe,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function tn(e,t){Array.isArray(e.illegal)&&(e.illegal=B(...e.illegal))}function sn(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function L(e,t){e.relevance===void 0&&(e.relevance=1)}const Ie=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const a=Object.assign({},e);Object.keys(e).forEach(f=>{delete e[f]}),e.keywords=a.keywords,e.begin=O(a.beforeMatch,N(a.begin)),e.starts={relevance:0,contains:[Object.assign(a,{endsParent:!0})]},e.relevance=0,delete a.beforeMatch},Re=["of","and","for","in","not","or","if","then","parent","list","value"],an="keyword";function mn(e,t,a=an){const f=Object.create(null);return typeof e=="string"?F(a,e.split(" ")):Array.isArray(e)?F(a,e):Object.keys(e).forEach(function(K){Object.assign(f,mn(e[K],t,K))}),f;function F(K,u){t&&(u=u.map(l=>l.toLowerCase())),u.forEach(function(l){const E=l.split("|");f[E[0]]=[K,dt(E[0],E[1])]})}}function dt(e,t){return t?Number(t):Et(e)?0:1}function Et(e){return Re.includes(e.toLowerCase())}const An={},Te=e=>{console.error(e)},Rn=(e,...t)=>{console.log(`WARN: ${e}`,...t)},Me=(e,t)=>{An[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),An[`${e}/${t}`]=!0)},Ue=new Error;function Tn(e,t,{key:a}){let f=0;const F=e[a],K={},u={};for(let l=1;l<=t.length;l++)u[l+f]=F[l],K[l+f]=!0,f+=H(t[l-1]);e[a]=u,e[a]._emit=K,e[a]._multi=!0}function bt(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw Te("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Ue;if(typeof e.beginScope!="object"||e.beginScope===null)throw Te("beginScope must be object"),Ue;Tn(e,e.begin,{key:"beginScope"}),e.begin=M(e.begin,{joinWith:""})}}function ft(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw Te("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Ue;if(typeof e.endScope!="object"||e.endScope===null)throw Te("endScope must be object"),Ue;Tn(e,e.end,{key:"endScope"}),e.end=M(e.end,{joinWith:""})}}function _t(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function pt(e){_t(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),bt(e),ft(e)}function Nt(e){function t(u,l){return new RegExp(R(u),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(l?"g":""))}class a{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(l,E){E.position=this.position++,this.matchIndexes[this.matchAt]=E,this.regexes.push([E,l]),this.matchAt+=H(l)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const l=this.regexes.map(E=>E[1]);this.matcherRe=t(M(l,{joinWith:"|"}),!0),this.lastIndex=0}exec(l){this.matcherRe.lastIndex=this.lastIndex;const E=this.matcherRe.exec(l);if(!E)return null;const W=E.findIndex((De,cn)=>cn>0&&De!==void 0),G=this.matchIndexes[W];return E.splice(0,W),Object.assign(E,G)}}class f{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(l){if(this.multiRegexes[l])return this.multiRegexes[l];const E=new a;return this.rules.slice(l).forEach(([W,G])=>E.addRule(W,G)),E.compile(),this.multiRegexes[l]=E,E}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(l,E){this.rules.push([l,E]),E.type==="begin"&&this.count++}exec(l){const E=this.getMatcher(this.regexIndex);E.lastIndex=this.lastIndex;let W=E.exec(l);if(this.resumingScanAtSamePosition()&&!(W&&W.index===this.lastIndex)){const G=this.getMatcher(0);G.lastIndex=this.lastIndex+1,W=G.exec(l)}return W&&(this.regexIndex+=W.position+1,this.regexIndex===this.count&&this.considerAll()),W}}function F(u){const l=new f;return u.contains.forEach(E=>l.addRule(E.begin,{rule:E,type:"begin"})),u.terminatorEnd&&l.addRule(u.terminatorEnd,{type:"end"}),u.illegal&&l.addRule(u.illegal,{type:"illegal"}),l}function K(u,l){const E=u;if(u.isCompiled)return E;[en,sn,pt,Ie].forEach(G=>G(u,l)),e.compilerExtensions.forEach(G=>G(u,l)),u.__beforeBegin=null,[nn,tn,L].forEach(G=>G(u,l)),u.isCompiled=!0;let W=null;return typeof u.keywords=="object"&&u.keywords.$pattern&&(u.keywords=Object.assign({},u.keywords),W=u.keywords.$pattern,delete u.keywords.$pattern),W=W||/\w+/,u.keywords&&(u.keywords=mn(u.keywords,e.case_insensitive)),E.keywordPatternRe=t(W,!0),l&&(u.begin||(u.begin=/\B|\b/),E.beginRe=t(E.begin),!u.end&&!u.endsWithParent&&(u.end=/\B|\b/),u.end&&(E.endRe=t(E.end)),E.terminatorEnd=R(E.end)||"",u.endsWithParent&&l.terminatorEnd&&(E.terminatorEnd+=(u.end?"|":"")+l.terminatorEnd)),u.illegal&&(E.illegalRe=t(u.illegal)),u.contains||(u.contains=[]),u.contains=[].concat(...u.contains.map(function(G){return ht(G==="self"?u:G)})),u.contains.forEach(function(G){K(G,E)}),u.starts&&K(u.starts,l),E.matcher=F(E),E}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=c(e.classNameAliases||{}),K(e)}function yn(e){return e?e.endsWithParent||yn(e.starts):!1}function ht(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return c(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:yn(e)?c(e,{starts:e.starts?c(e.starts):null}):Object.isFrozen(e)?c(e):e}var St="11.11.1";class mt extends Error{constructor(t,a){super(t),this.name="HTMLInjectionError",this.html=a}}const rn=o,On=c,In=Symbol("nomatch"),At=7,Mn=function(e){const t=Object.create(null),a=Object.create(null),f=[];let F=!0;const K="Could not find the language '{}', did you forget to load/include a language module?",u={disableAutodetect:!0,name:"Plain text",contains:[]};let l={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:S};function E(s){return l.noHighlightRe.test(s)}function W(s){let d=s.className+" ";d+=s.parentNode?s.parentNode.className:"";const T=l.languageDetectRe.exec(d);if(T){const D=Se(T[1]);return D||(Rn(K.replace("{}",T[1])),Rn("Falling back to no-highlight mode for this block.",s)),D?T[1]:"no-highlight"}return d.split(/\s+/).find(D=>E(D)||Se(D))}function G(s,d,T){let D="",z="";typeof d=="object"?(D=s,T=d.ignoreIllegals,z=d.language):(Me("10.7.0","highlight(lang, code, ...args) has been deprecated."),Me("10.7.0",`Please use highlight(code, options) instead.
|
|
2
2
|
https://github.com/highlightjs/highlight.js/issues/2277`),z=s,D=d),T===void 0&&(T=!0);const oe={code:D,language:z};Fe("before:highlight",oe);const me=oe.result?oe.result:De(oe.language,oe.code,T);return me.code=oe.code,Fe("after:highlight",me),me}function De(s,d,T,D){const z=Object.create(null);function oe(i,g){return i.keywords[g]}function me(){if(!p.keywords){j.addText(k);return}let i=0;p.keywordPatternRe.lastIndex=0;let g=p.keywordPatternRe.exec(k),m="";for(;g;){m+=k.substring(i,g.index);const C=ue.case_insensitive?g[0].toLowerCase():g[0],J=oe(p,C);if(J){const[pe,Pt]=J;if(j.addText(m),m="",z[C]=(z[C]||0)+1,z[C]<=At&&(He+=Pt),pe.startsWith("_"))m+=g[0];else{const Ft=ue.classNameAliases[pe]||pe;le(g[0],Ft)}}else m+=g[0];i=p.keywordPatternRe.lastIndex,g=p.keywordPatternRe.exec(k)}m+=k.substring(i),j.addText(m)}function Ke(){if(k==="")return;let i=null;if(typeof p.subLanguage=="string"){if(!t[p.subLanguage]){j.addText(k);return}i=De(p.subLanguage,k,!0,Bn[p.subLanguage]),Bn[p.subLanguage]=i._top}else i=on(k,p.subLanguage.length?p.subLanguage:null);p.relevance>0&&(He+=i.relevance),j.__addSublanguage(i._emitter,i.language)}function ie(){p.subLanguage!=null?Ke():me(),k=""}function le(i,g){i!==""&&(j.startScope(g),j.addText(i),j.endScope())}function xn(i,g){let m=1;const C=g.length-1;for(;m<=C;){if(!i._emit[m]){m++;continue}const J=ue.classNameAliases[i[m]]||i[m],pe=g[m];J?le(pe,J):(k=pe,me(),k=""),m++}}function vn(i,g){return i.scope&&typeof i.scope=="string"&&j.openNode(ue.classNameAliases[i.scope]||i.scope),i.beginScope&&(i.beginScope._wrap?(le(k,ue.classNameAliases[i.beginScope._wrap]||i.beginScope._wrap),k=""):i.beginScope._multi&&(xn(i.beginScope,g),k="")),p=Object.create(i,{parent:{value:p}}),p}function Dn(i,g,m){let C=Z(i.endRe,m);if(C){if(i["on:end"]){const J=new r(i);i["on:end"](g,J),J.isMatchIgnored&&(C=!1)}if(C){for(;i.endsParent&&i.parent;)i=i.parent;return i}}if(i.endsWithParent)return Dn(i.parent,g,m)}function Dt(i){return p.matcher.regexIndex===0?(k+=i[0],1):(dn=!0,0)}function kt(i){const g=i[0],m=i.rule,C=new r(m),J=[m.__beforeBegin,m["on:begin"]];for(const pe of J)if(pe&&(pe(i,C),C.isMatchIgnored))return Dt(g);return m.skip?k+=g:(m.excludeBegin&&(k+=g),ie(),!m.returnBegin&&!m.excludeBegin&&(k=g)),vn(m,i),m.returnBegin?0:g.length}function Bt(i){const g=i[0],m=d.substring(i.index),C=Dn(p,i,m);if(!C)return In;const J=p;p.endScope&&p.endScope._wrap?(ie(),le(g,p.endScope._wrap)):p.endScope&&p.endScope._multi?(ie(),xn(p.endScope,i)):J.skip?k+=g:(J.returnEnd||J.excludeEnd||(k+=g),ie(),J.excludeEnd&&(k=g));do p.scope&&j.closeNode(),!p.skip&&!p.subLanguage&&(He+=p.relevance),p=p.parent;while(p!==C.parent);return C.starts&&vn(C.starts,i),J.returnEnd?0:g.length}function $t(){const i=[];for(let g=p;g!==ue;g=g.parent)g.scope&&i.unshift(g.scope);i.forEach(g=>j.openNode(g))}let Ge={};function kn(i,g){const m=g&&g[0];if(k+=i,m==null)return ie(),0;if(Ge.type==="begin"&&g.type==="end"&&Ge.index===g.index&&m===""){if(k+=d.slice(g.index,g.index+1),!F){const C=new Error(`0 width match regex (${s})`);throw C.languageName=s,C.badRule=Ge.rule,C}return 1}if(Ge=g,g.type==="begin")return kt(g);if(g.type==="illegal"&&!T){const C=new Error('Illegal lexeme "'+m+'" for mode "'+(p.scope||"<unnamed>")+'"');throw C.mode=p,C}else if(g.type==="end"){const C=Bt(g);if(C!==In)return C}if(g.type==="illegal"&&m==="")return k+=`
|
|
3
3
|
`,1;if(gn>1e5&&gn>g.index*3)throw new Error("potential infinite loop, way more iterations than matches");return k+=m,m.length}const ue=Se(s);if(!ue)throw Te(K.replace("{}",s)),new Error('Unknown language: "'+s+'"');const Ut=Nt(ue);let un="",p=D||Ut;const Bn={},j=new l.__emitter(l);$t();let k="",He=0,ye=0,gn=0,dn=!1;try{if(ue.__emitTokens)ue.__emitTokens(d,j);else{for(p.matcher.considerAll();;){gn++,dn?dn=!1:p.matcher.considerAll(),p.matcher.lastIndex=ye;const i=p.matcher.exec(d);if(!i)break;const g=d.substring(ye,i.index),m=kn(g,i);ye=i.index+m}kn(d.substring(ye))}return j.finalize(),un=j.toHTML(),{language:s,value:un,relevance:He,illegal:!1,_emitter:j,_top:p}}catch(i){if(i.message&&i.message.includes("Illegal"))return{language:s,value:rn(d),illegal:!0,relevance:0,_illegalBy:{message:i.message,index:ye,context:d.slice(ye-100,ye+100),mode:i.mode,resultSoFar:un},_emitter:j};if(F)return{language:s,value:rn(d),illegal:!1,relevance:0,errorRaised:i,_emitter:j,_top:p};throw i}}function cn(s){const d={value:rn(s),illegal:!1,relevance:0,_top:u,_emitter:new l.__emitter(l)};return d._emitter.addText(s),d}function on(s,d){d=d||l.languages||Object.keys(t);const T=cn(s),D=d.filter(Se).filter(Ln).map(ie=>De(ie,s,!1));D.unshift(T);const z=D.sort((ie,le)=>{if(ie.relevance!==le.relevance)return le.relevance-ie.relevance;if(ie.language&&le.language){if(Se(ie.language).supersetOf===le.language)return 1;if(Se(le.language).supersetOf===ie.language)return-1}return 0}),[oe,me]=z,Ke=oe;return Ke.secondBest=me,Ke}function Rt(s,d,T){const D=d&&a[d]||T;s.classList.add("hljs"),s.classList.add(`language-${D}`)}function ln(s){let d=null;const T=W(s);if(E(T))return;if(Fe("before:highlightElement",{el:s,language:T}),s.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",s);return}if(s.children.length>0&&(l.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(s)),l.throwUnescapedHTML))throw new mt("One of your code blocks includes unescaped HTML.",s.innerHTML);d=s;const D=d.textContent,z=T?G(D,{language:T,ignoreIllegals:!0}):on(D);s.innerHTML=z.value,s.dataset.highlighted="yes",Rt(s,T,z.language),s.result={language:z.language,re:z.relevance,relevance:z.relevance},z.secondBest&&(s.secondBest={language:z.secondBest.language,relevance:z.secondBest.relevance}),Fe("after:highlightElement",{el:s,result:z,text:D})}function Tt(s){l=On(l,s)}const yt=()=>{Pe(),Me("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Ot(){Pe(),Me("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Cn=!1;function Pe(){function s(){Pe()}if(document.readyState==="loading"){Cn||window.addEventListener("DOMContentLoaded",s,!1),Cn=!0;return}document.querySelectorAll(l.cssSelector).forEach(ln)}function It(s,d){let T=null;try{T=d(e)}catch(D){if(Te("Language definition for '{}' could not be registered.".replace("{}",s)),F)Te(D);else throw D;T=u}T.name||(T.name=s),t[s]=T,T.rawDefinition=d.bind(null,e),T.aliases&&wn(T.aliases,{languageName:s})}function Mt(s){delete t[s];for(const d of Object.keys(a))a[d]===s&&delete a[d]}function Ct(){return Object.keys(t)}function Se(s){return s=(s||"").toLowerCase(),t[s]||t[a[s]]}function wn(s,{languageName:d}){typeof s=="string"&&(s=[s]),s.forEach(T=>{a[T.toLowerCase()]=d})}function Ln(s){const d=Se(s);return d&&!d.disableAutodetect}function wt(s){s["before:highlightBlock"]&&!s["before:highlightElement"]&&(s["before:highlightElement"]=d=>{s["before:highlightBlock"](Object.assign({block:d.el},d))}),s["after:highlightBlock"]&&!s["after:highlightElement"]&&(s["after:highlightElement"]=d=>{s["after:highlightBlock"](Object.assign({block:d.el},d))})}function Lt(s){wt(s),f.push(s)}function xt(s){const d=f.indexOf(s);d!==-1&&f.splice(d,1)}function Fe(s,d){const T=s;f.forEach(function(D){D[T]&&D[T](d)})}function vt(s){return Me("10.7.0","highlightBlock will be removed entirely in v12.0"),Me("10.7.0","Please use highlightElement now."),ln(s)}Object.assign(e,{highlight:G,highlightAuto:on,highlightAll:Pe,highlightElement:ln,highlightBlock:vt,configure:Tt,initHighlighting:yt,initHighlightingOnLoad:Ot,registerLanguage:It,unregisterLanguage:Mt,listLanguages:Ct,getLanguage:Se,registerAliases:wn,autoDetection:Ln,inherit:On,addPlugin:Lt,removePlugin:xt}),e.debugMode=function(){F=!1},e.safeMode=function(){F=!0},e.versionString=St,e.regex={concat:O,lookahead:N,either:B,optional:U,anyNumberOfTimes:y};for(const s in Oe)typeof Oe[s]=="object"&&n(Oe[s]);return Object.assign(e,Oe),e},Ce=Mn({});return Ce.newInstance=()=>Mn({}),En=Ce,Ce.HighlightJS=Ce,Ce.default=Ce,En}var Vt=jt();const v=Gt(Vt),Un="[A-Za-z$_][0-9A-Za-z$_]*",qt=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Jt=["true","false","null","undefined","NaN","Infinity"],Hn=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],zn=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Wn=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Qt=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],es=[].concat(Wn,Hn,zn);function pn(n){const r=n.regex,o=(I,{after:Y})=>{const ee="</"+I[0].slice(1);return I.input.indexOf(ee,Y)!==-1},c=Un,w={begin:"<>",end:"</>"},$=/<[A-Za-z0-9\\._:-]+\s*\/>/,A={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(I,Y)=>{const ee=I[0].length+I.index,q=I.input[ee];if(q==="<"||q===","){Y.ignoreMatch();return}q===">"&&(o(I,{after:ee})||Y.ignoreMatch());let X;const _e=I.input.substring(ee);if(X=_e.match(/^\s*=/)){Y.ignoreMatch();return}if((X=_e.match(/^\s+extends\s+/))&&X.index===0){Y.ignoreMatch();return}}},_={$pattern:Un,keyword:qt,literal:Jt,built_in:es,"variable.language":Qt},h="[0-9](_?[0-9])*",b=`\\.(${h})`,S="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",R={className:"number",variants:[{begin:`(\\b(${S})((${b})|\\.)?|(${b}))[eE][+-]?(${h})\\b`},{begin:`\\b(${S})\\b((${b})\\b|\\.)?|(${b})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},N={className:"subst",begin:"\\$\\{",end:"\\}",keywords:_,contains:[]},y={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,N],subLanguage:"xml"}},U={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,N],subLanguage:"css"}},O={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,N],subLanguage:"graphql"}},P={className:"string",begin:"`",end:"`",contains:[n.BACKSLASH_ESCAPE,N]},H={className:"comment",variants:[n.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:c+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),n.C_BLOCK_COMMENT_MODE,n.C_LINE_COMMENT_MODE]},Z=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,y,U,O,P,{match:/\$\d+/},R];N.contains=Z.concat({begin:/\{/,end:/\}/,keywords:_,contains:["self"].concat(Z)});const se=[].concat(H,N.contains),M=se.concat([{begin:/(\s*)\(/,end:/\)/,keywords:_,contains:["self"].concat(se)}]),V={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:_,contains:M},ce={variants:[{match:[/class/,/\s+/,c,/\s+/,/extends/,/\s+/,r.concat(c,"(",r.concat(/\./,c),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,c],scope:{1:"keyword",3:"title.class"}}]},te={relevance:0,match:r.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Hn,...zn]}},ae={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},de={variants:[{match:[/function/,/\s+/,c,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[V],illegal:/%/},Ne={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Ee(I){return r.concat("(?!",I.join("|"),")")}const he={match:r.concat(/\b/,Ee([...Wn,"super","import"].map(I=>`${I}\\s*\\(`)),c,r.lookahead(/\s*\(/)),className:"title.function",relevance:0},re={begin:r.concat(/\./,r.lookahead(r.concat(c,/(?![0-9A-Za-z$_(])/))),end:c,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Ae={match:[/get|set/,/\s+/,c,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},V]},be="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+n.UNDERSCORE_IDENT_RE+")\\s*=>",fe={match:[/const|var|let/,/\s+/,c,/\s*/,/=\s*/,/(async\s*)?/,r.lookahead(be)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[V]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:_,exports:{PARAMS_CONTAINS:M,CLASS_REFERENCE:te},illegal:/#(?![$_A-z])/,contains:[n.SHEBANG({label:"shebang",binary:"node",relevance:5}),ae,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,y,U,O,P,H,{match:/\$\d+/},R,te,{scope:"attr",match:c+r.lookahead(":"),relevance:0},fe,{begin:"("+n.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[H,n.REGEXP_MODE,{className:"function",begin:be,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:n.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:_,contains:M}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:w.begin,end:w.end},{match:$},{begin:A.begin,"on:begin":A.isTrulyOpeningTag,end:A.end}],subLanguage:"xml",contains:[{begin:A.begin,end:A.end,skip:!0,contains:["self"]}]}]},de,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+n.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[V,n.inherit(n.TITLE_MODE,{begin:c,className:"title.function"})]},{match:/\.\.\./,relevance:0},re,{match:"\\$"+c,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[V]},he,Ne,ce,Ae,{match:/\$[(.]/}]}}const je="[A-Za-z$_][0-9A-Za-z$_]*",Zn=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Yn=["true","false","null","undefined","NaN","Infinity"],Xn=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],jn=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Vn=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],qn=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Jn=[].concat(Vn,Xn,jn);function ns(n){const r=n.regex,o=(I,{after:Y})=>{const ee="</"+I[0].slice(1);return I.input.indexOf(ee,Y)!==-1},c=je,w={begin:"<>",end:"</>"},$=/<[A-Za-z0-9\\._:-]+\s*\/>/,A={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(I,Y)=>{const ee=I[0].length+I.index,q=I.input[ee];if(q==="<"||q===","){Y.ignoreMatch();return}q===">"&&(o(I,{after:ee})||Y.ignoreMatch());let X;const _e=I.input.substring(ee);if(X=_e.match(/^\s*=/)){Y.ignoreMatch();return}if((X=_e.match(/^\s+extends\s+/))&&X.index===0){Y.ignoreMatch();return}}},_={$pattern:je,keyword:Zn,literal:Yn,built_in:Jn,"variable.language":qn},h="[0-9](_?[0-9])*",b=`\\.(${h})`,S="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",R={className:"number",variants:[{begin:`(\\b(${S})((${b})|\\.)?|(${b}))[eE][+-]?(${h})\\b`},{begin:`\\b(${S})\\b((${b})\\b|\\.)?|(${b})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},N={className:"subst",begin:"\\$\\{",end:"\\}",keywords:_,contains:[]},y={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,N],subLanguage:"xml"}},U={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,N],subLanguage:"css"}},O={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,N],subLanguage:"graphql"}},P={className:"string",begin:"`",end:"`",contains:[n.BACKSLASH_ESCAPE,N]},H={className:"comment",variants:[n.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:c+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),n.C_BLOCK_COMMENT_MODE,n.C_LINE_COMMENT_MODE]},Z=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,y,U,O,P,{match:/\$\d+/},R];N.contains=Z.concat({begin:/\{/,end:/\}/,keywords:_,contains:["self"].concat(Z)});const se=[].concat(H,N.contains),M=se.concat([{begin:/(\s*)\(/,end:/\)/,keywords:_,contains:["self"].concat(se)}]),V={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:_,contains:M},ce={variants:[{match:[/class/,/\s+/,c,/\s+/,/extends/,/\s+/,r.concat(c,"(",r.concat(/\./,c),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,c],scope:{1:"keyword",3:"title.class"}}]},te={relevance:0,match:r.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Xn,...jn]}},ae={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},de={variants:[{match:[/function/,/\s+/,c,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[V],illegal:/%/},Ne={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Ee(I){return r.concat("(?!",I.join("|"),")")}const he={match:r.concat(/\b/,Ee([...Vn,"super","import"].map(I=>`${I}\\s*\\(`)),c,r.lookahead(/\s*\(/)),className:"title.function",relevance:0},re={begin:r.concat(/\./,r.lookahead(r.concat(c,/(?![0-9A-Za-z$_(])/))),end:c,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Ae={match:[/get|set/,/\s+/,c,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},V]},be="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+n.UNDERSCORE_IDENT_RE+")\\s*=>",fe={match:[/const|var|let/,/\s+/,c,/\s*/,/=\s*/,/(async\s*)?/,r.lookahead(be)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[V]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:_,exports:{PARAMS_CONTAINS:M,CLASS_REFERENCE:te},illegal:/#(?![$_A-z])/,contains:[n.SHEBANG({label:"shebang",binary:"node",relevance:5}),ae,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,y,U,O,P,H,{match:/\$\d+/},R,te,{scope:"attr",match:c+r.lookahead(":"),relevance:0},fe,{begin:"("+n.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[H,n.REGEXP_MODE,{className:"function",begin:be,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:n.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:_,contains:M}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:w.begin,end:w.end},{match:$},{begin:A.begin,"on:begin":A.isTrulyOpeningTag,end:A.end}],subLanguage:"xml",contains:[{begin:A.begin,end:A.end,skip:!0,contains:["self"]}]}]},de,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+n.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[V,n.inherit(n.TITLE_MODE,{begin:c,className:"title.function"})]},{match:/\.\.\./,relevance:0},re,{match:"\\$"+c,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[V]},he,Ne,ce,Ae,{match:/\$[(.]/}]}}function Nn(n){const r=n.regex,o=ns(n),c=je,w=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],$={begin:[/namespace/,/\s+/,n.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},A={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:w},contains:[o.exports.CLASS_REFERENCE]},_={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},h=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],b={$pattern:je,keyword:Zn.concat(h),literal:Yn,built_in:Jn.concat(w),"variable.language":qn},S={className:"meta",begin:"@"+c},R=(O,P,B)=>{const H=O.contains.findIndex(Z=>Z.label===P);if(H===-1)throw new Error("can not find mode to replace");O.contains.splice(H,1,B)};Object.assign(o.keywords,b),o.exports.PARAMS_CONTAINS.push(S);const N=o.contains.find(O=>O.scope==="attr"),y=Object.assign({},N,{match:r.concat(c,r.lookahead(/\s*\?:/))});o.exports.PARAMS_CONTAINS.push([o.exports.CLASS_REFERENCE,N,y]),o.contains=o.contains.concat([S,$,A,y]),R(o,"shebang",n.SHEBANG()),R(o,"use_strict",_);const U=o.contains.find(O=>O.label==="func.def");return U.relevance=0,Object.assign(o,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),o}function ts(n){const r={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},o={match:/[{}[\],:]/,className:"punctuation",relevance:0},c=["true","false","null"],w={scope:"literal",beginKeywords:c.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:c},contains:[r,o,n.QUOTE_STRING_MODE,w,n.C_NUMBER_MODE,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}function ss(n){const r=n.regex,o="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",c="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",A={$pattern:o,keyword:["after","alias","and","case","catch","cond","defstruct","defguard","do","else","end","fn","for","if","import","in","not","or","quote","raise","receive","require","reraise","rescue","try","unless","unquote","unquote_splicing","use","when","with|0"],literal:["false","nil","true"]},_={className:"subst",begin:/#\{/,end:/\}/,keywords:A},h={className:"number",begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[0-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)",relevance:0},S={match:/\\[\s\S]/,scope:"char.escape",relevance:0},R=`[/|([{<"']`,N=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin:/</,end:/>/}],y=M=>({scope:"char.escape",begin:r.concat(/\\/,M),relevance:0}),U={className:"string",begin:"~[a-z](?="+R+")",contains:N.map(M=>n.inherit(M,{contains:[y(M.end),S,_]}))},O={className:"string",begin:"~[A-Z](?="+R+")",contains:N.map(M=>n.inherit(M,{contains:[y(M.end)]}))},P={className:"regex",variants:[{begin:"~r(?="+R+")",contains:N.map(M=>n.inherit(M,{end:r.concat(M.end,/[uismxfU]{0,7}/),contains:[y(M.end),S,_]}))},{begin:"~R(?="+R+")",contains:N.map(M=>n.inherit(M,{end:r.concat(M.end,/[uismxfU]{0,7}/),contains:[y(M.end)]}))}]},B={className:"string",contains:[n.BACKSLASH_ESCAPE,_],variants:[{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},H={className:"function",beginKeywords:"def defp defmacro defmacrop",end:/\B\b/,contains:[n.inherit(n.TITLE_MODE,{begin:o,endsParent:!0})]},Z=n.inherit(H,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),se=[B,P,O,U,n.HASH_COMMENT_MODE,Z,H,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[B,{begin:c}],relevance:0},{className:"symbol",begin:o+":(?!:)",relevance:0},{className:"title.class",begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},h,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"}];return _.contains=se,{name:"Elixir",aliases:["ex","exs"],keywords:A,contains:se}}var Le="[0-9](_*[0-9])*",ze=`\\.(${Le})`,We="[0-9a-fA-F](_*[0-9a-fA-F])*",Pn={className:"number",variants:[{begin:`(\\b(${Le})((${ze})|\\.)?|(${ze}))[eE][+-]?(${Le})[fFdD]?\\b`},{begin:`\\b(${Le})((${ze})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${ze})[fFdD]?\\b`},{begin:`\\b(${Le})[fFdD]\\b`},{begin:`\\b0[xX]((${We})\\.?|(${We})?\\.(${We}))[pP][+-]?(${Le})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${We})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function Qn(n,r,o){return o===-1?"":n.replace(r,c=>Qn(n,r,o-1))}function as(n){const r=n.regex,o="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",c=o+Qn("(?:<"+o+"~~~(?:\\s*,\\s*"+o+"~~~)*>)?",/~~~/g,2),h={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},b={className:"meta",begin:"@"+o,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},S={className:"params",begin:/\(/,end:/\)/,keywords:h,relevance:0,contains:[n.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:h,illegal:/<\/|#/,contains:[n.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[n.BACKSLASH_ESCAPE]},n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,o],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[r.concat(/(?!else)/,o),/\s+/,o,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,o],className:{1:"keyword",3:"title.class"},contains:[S,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+c+"\\s+)",n.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:h,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:h,relevance:0,contains:[b,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,Pn,n.C_BLOCK_COMMENT_MODE]},n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},Pn,b]}}function et(n){return n?typeof n=="string"?n:n.source:null}function ke(n){return x("(?=",n,")")}function x(...n){return n.map(o=>et(o)).join("")}function is(n){const r=n[n.length-1];return typeof r=="object"&&r.constructor===Object?(n.splice(n.length-1,1),r):{}}function ne(...n){return"("+(is(n).capture?"":"?:")+n.map(c=>et(c)).join("|")+")"}const hn=n=>x(/\b/,n,/\w$/.test(n)?/\b/:/\B/),rs=["Protocol","Type"].map(hn),Fn=["init","self"].map(hn),cs=["Any","Self"],bn=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],Kn=["false","nil","true"],os=["assignment","associativity","higherThan","left","lowerThan","none","right"],ls=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],Gn=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],nt=ne(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),tt=ne(nt,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),fn=x(nt,tt,"*"),st=ne(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),Ve=ne(st,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),ge=x(st,Ve,"*"),Ze=x(/[A-Z]/,Ve,"*"),us=["attached","autoclosure",x(/convention\(/,ne("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",x(/objc\(/,ge,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],gs=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function ds(n){const r={match:/\s+/,relevance:0},o=n.COMMENT("/\\*","\\*/",{contains:["self"]}),c=[n.C_LINE_COMMENT_MODE,o],w={match:[/\./,ne(...rs,...Fn)],className:{2:"keyword"}},$={match:x(/\./,ne(...bn)),relevance:0},A=bn.filter(L=>typeof L=="string").concat(["_|0"]),_=bn.filter(L=>typeof L!="string").concat(cs).map(hn),h={variants:[{className:"keyword",match:ne(..._,...Fn)}]},b={$pattern:ne(/\b\w+/,/#\w+/),keyword:A.concat(ls),literal:Kn},S=[w,$,h],R={match:x(/\./,ne(...Gn)),relevance:0},N={className:"built_in",match:x(/\b/,ne(...Gn),/(?=\()/)},y=[R,N],U={match:/->/,relevance:0},O={className:"operator",relevance:0,variants:[{match:fn},{match:`\\.(\\.|${tt})+`}]},P=[U,O],B="([0-9]_*)+",H="([0-9a-fA-F]_*)+",Z={className:"number",relevance:0,variants:[{match:`\\b(${B})(\\.(${B}))?([eE][+-]?(${B}))?\\b`},{match:`\\b0x(${H})(\\.(${H}))?([pP][+-]?(${B}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},se=(L="")=>({className:"subst",variants:[{match:x(/\\/,L,/[0\\tnr"']/)},{match:x(/\\/,L,/u\{[0-9a-fA-F]{1,8}\}/)}]}),M=(L="")=>({className:"subst",match:x(/\\/,L,/[\t ]*(?:[\r\n]|\r\n)/)}),V=(L="")=>({className:"subst",label:"interpol",begin:x(/\\/,L,/\(/),end:/\)/}),ce=(L="")=>({begin:x(L,/"""/),end:x(/"""/,L),contains:[se(L),M(L),V(L)]}),te=(L="")=>({begin:x(L,/"/),end:x(/"/,L),contains:[se(L),V(L)]}),ae={className:"string",variants:[ce(),ce("#"),ce("##"),ce("###"),te(),te("#"),te("##"),te("###")]},de=[n.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[n.BACKSLASH_ESCAPE]}],Ne={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:de},Ee=L=>{const Ie=x(L,/\//),Re=x(/\//,L);return{begin:Ie,end:Re,contains:[...de,{scope:"comment",begin:`#(?!.*${Re})`,end:/$/}]}},he={scope:"regexp",variants:[Ee("###"),Ee("##"),Ee("#"),Ne]},re={match:x(/`/,ge,/`/)},Ae={className:"variable",match:/\$\d+/},be={className:"variable",match:`\\$${Ve}+`},fe=[re,Ae,be],I={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:gs,contains:[...P,Z,ae]}]}},Y={scope:"keyword",match:x(/@/,ne(...us),ke(ne(/\(/,/\s+/)))},ee={scope:"meta",match:x(/@/,ge)},q=[I,Y,ee],X={match:ke(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:x(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,Ve,"+")},{className:"type",match:Ze,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:x(/\s+&\s+/,ke(Ze)),relevance:0}]},_e={begin:/</,end:/>/,keywords:b,contains:[...c,...S,...q,U,X]};X.contains.push(_e);const qe={match:x(ge,/\s*:/),keywords:"_|0",relevance:0},Be={begin:/\(/,end:/\)/,relevance:0,keywords:b,contains:["self",qe,...c,he,...S,...y,...P,Z,ae,...fe,...q,X]},ve={begin:/</,end:/>/,keywords:"repeat each",contains:[...c,X]},Je={begin:ne(ke(x(ge,/\s*:/)),ke(x(ge,/\s+/,ge,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:ge}]},$e={begin:/\(/,end:/\)/,keywords:b,contains:[Je,...c,...S,...P,Z,ae,...q,X,Be],endsParent:!0,illegal:/["']/},Sn={match:[/(func|macro)/,/\s+/,ne(re.match,ge,fn)],className:{1:"keyword",3:"title.function"},contains:[ve,$e,r],illegal:[/\[/,/%/]},Oe={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[ve,$e,r],illegal:/\[|%/},Qe={match:[/operator/,/\s+/,fn],className:{1:"keyword",3:"title"}},en={begin:[/precedencegroup/,/\s+/,Ze],className:{1:"keyword",3:"title"},contains:[X],keywords:[...os,...Kn],end:/}/},nn={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},tn={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},sn={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,ge,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:b,contains:[ve,...S,{begin:/:/,end:/\{/,keywords:b,contains:[{scope:"title.class.inherited",match:Ze},...S],relevance:0}]};for(const L of ae.variants){const Ie=L.contains.find(an=>an.label==="interpol");Ie.keywords=b;const Re=[...S,...y,...P,Z,ae,...fe];Ie.contains=[...Re,{begin:/\(/,end:/\)/,contains:["self",...Re]}]}return{name:"Swift",keywords:b,contains:[...c,Sn,Oe,nn,tn,sn,Qe,en,{beginKeywords:"import",end:/$/,contains:[...c],relevance:0},he,...S,...y,...P,Z,ae,...fe,...q,X,Be]}}function at(n){const r={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},o=/[a-zA-Z@][a-zA-Z0-9_]*/,_={"variable.language":["this","super"],$pattern:o,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},h={$pattern:o,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:_,illegal:"</",contains:[r,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.C_NUMBER_MODE,n.QUOTE_STRING_MODE,n.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[n.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},n.inherit(n.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+h.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:h,contains:[n.UNDERSCORE_TITLE_MODE]},{begin:"\\."+n.UNDERSCORE_IDENT_RE,relevance:0}]}}var xe="[0-9](_*[0-9])*",Ye=`\\.(${xe})`,Xe="[0-9a-fA-F](_*[0-9a-fA-F])*",Es={className:"number",variants:[{begin:`(\\b(${xe})((${Ye})|\\.)?|(${Ye}))[eE][+-]?(${xe})[fFdD]?\\b`},{begin:`\\b(${xe})((${Ye})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Ye})[fFdD]?\\b`},{begin:`\\b(${xe})[fFdD]\\b`},{begin:`\\b0[xX]((${Xe})\\.?|(${Xe})?\\.(${Xe}))[pP][+-]?(${xe})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Xe})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function it(n){const r={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},o={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},c={className:"symbol",begin:n.UNDERSCORE_IDENT_RE+"@"},w={className:"subst",begin:/\$\{/,end:/\}/,contains:[n.C_NUMBER_MODE]},$={className:"variable",begin:"\\$"+n.UNDERSCORE_IDENT_RE},A={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[$,w]},{begin:"'",end:"'",illegal:/\n/,contains:[n.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[n.BACKSLASH_ESCAPE,$,w]}]};w.contains.push(A);const _={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+n.UNDERSCORE_IDENT_RE+")?"},h={className:"meta",begin:"@"+n.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[n.inherit(A,{className:"string"}),"self"]}]},b=Es,S=n.COMMENT("/\\*","\\*/",{contains:[n.C_BLOCK_COMMENT_MODE]}),R={variants:[{className:"type",begin:n.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},N=R;return N.variants[1].contains=[R],R.variants[1].contains=[N],{name:"Kotlin",aliases:["kt","kts"],keywords:r,contains:[n.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),n.C_LINE_COMMENT_MODE,S,o,c,_,h,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:r,relevance:5,contains:[{begin:n.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[n.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:r,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[R,n.C_LINE_COMMENT_MODE,S],relevance:0},n.C_LINE_COMMENT_MODE,S,_,h,A,n.C_NUMBER_MODE]},S]},{begin:[/class|interface|trait/,/\s+/,n.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},n.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},_,h]},A,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
|
|
4
4
|
`},b]}}function rt(n){const r=["package","import","option","optional","required","repeated","group","oneof"],o=["double","float","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","bool","string","bytes"],c={match:[/(message|enum|service)\s+/,n.IDENT_RE],scope:{1:"keyword",2:"title.class"}};return{name:"Protocol Buffers",aliases:["proto"],keywords:{keyword:r,type:o,literal:["true","false"]},contains:[n.QUOTE_STRING_MODE,n.NUMBER_MODE,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,c,{className:"function",beginKeywords:"rpc",end:/[{;]/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}function ct(n){const r=n.regex,o=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),c=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],_={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:c,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},h={className:"meta",begin:/^(>>>|\.\.\.) /},b={className:"subst",begin:/\{/,end:/\}/,keywords:_,illegal:/#/},S={begin:/\{\{/,relevance:0},R={className:"string",contains:[n.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[n.BACKSLASH_ESCAPE,h],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[n.BACKSLASH_ESCAPE,h],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[n.BACKSLASH_ESCAPE,h,S,b]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[n.BACKSLASH_ESCAPE,h,S,b]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[n.BACKSLASH_ESCAPE,S,b]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[n.BACKSLASH_ESCAPE,S,b]},n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},N="[0-9](_?[0-9])*",y=`(\\b(${N}))?\\.(${N})|\\b(${N})\\.`,U=`\\b|${c.join("|")}`,O={className:"number",relevance:0,variants:[{begin:`(\\b(${N})|(${y}))[eE][+-]?(${N})[jJ]?(?=${U})`},{begin:`(${y})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${U})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${U})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${U})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${U})`},{begin:`\\b(${N})[jJ](?=${U})`}]},P={className:"comment",begin:r.lookahead(/# type:/),end:/$/,keywords:_,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},B={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:_,contains:["self",h,O,R,n.HASH_COMMENT_MODE]}]};return b.contains=[R,O,h],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:_,illegal:/(<\/|\?)|=>/,contains:[h,O,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},R,P,n.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,o],scope:{1:"keyword",3:"title.function"},contains:[B]},{variants:[{match:[/\bclass/,/\s+/,o,/\s*/,/\(\s*/,o,/\s*\)/]},{match:[/\bclass/,/\s+/,o]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[O,B,R]}]}}function ot(n){const r="true false yes no null",o="[\\w#;/?:@&=+$,.~*'()[\\]]+",c={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},w={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},$={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},A={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[n.BACKSLASH_ESCAPE,w]},_=n.inherit(A,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),N={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},y={end:",",endsWithParent:!0,excludeEnd:!0,keywords:r,relevance:0},U={begin:/\{/,end:/\}/,contains:[y],illegal:"\\n",relevance:0},O={begin:"\\[",end:"\\]",contains:[y],illegal:"\\n",relevance:0},P=[c,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+o},{className:"type",begin:"!<"+o+">"},{className:"type",begin:"!"+o},{className:"type",begin:"!!"+o},{className:"meta",begin:"&"+n.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+n.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},n.HASH_COMMENT_MODE,{beginKeywords:r,keywords:{literal:r}},N,{className:"number",begin:n.C_NUMBER_RE+"\\b",relevance:0},U,O,$,A],B=[...P];return B.pop(),B.push(_),y.contains=B,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:P}}function lt(n){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function ut(n){const r=n.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:r.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:r.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function gt(n){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function bs(n){const r=n.regex,o={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},c={begin:"^[-\\*]{3,}",end:"$"},w={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},$={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},A={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},_=/[A-Za-z][A-Za-z0-9+.-]*/,h={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:r.concat(/\[.+?\]\(/,_,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},b={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},S={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},R=n.inherit(b,{contains:[]}),N=n.inherit(S,{contains:[]});b.contains.push(N),S.contains.push(R);let y=[o,h];return[b,S,R,N].forEach(B=>{B.contains=B.contains.concat(y)}),y=y.concat(b,S),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:y},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:y}]}]},o,$,b,S,{className:"quote",begin:"^>\\s+",contains:y,end:"$"},w,c,h,A,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}const fs=Ht("div")`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-B0bm6qHZ.js","./index-BojVbZw0.js","./index-Re9OtYRi.js","./metric-CCiJIosR.js","./click-to-copy-DlZXoRgA.js","./index-CmzNfXzP.js","./useLocalStorage-BdRSQq24.js","./index-Vc1ekAsE.js","./FilterList-DBRn3RJ7.js","./CSSTransition-DHyzDS3S.js","./emotion-cache.browser.esm-KBOD-kTR.js","./index-98kYGR7t.js","./redux-DfszZyTl.js","./typeof-QjJsDpFa.js","./depsEqual-BU0Zfzov.js","./index-BHMLUWGw.js","./TableSearch-CgxNYXXT.js","./Search-B3y3I7Bx.js","./Clear-BM1FBBZl.js","./MoreVert-LvQsHRvP.js","./status-C8HQh9dt.js","./url-evaluation-DiHmEbVj.js","./actions-B6hLI_nf.js","./get-safe-url-BjjSte_r.js","./ButtonGroup-CruDWUf6.js","./getValidReactChildren-3HCtT0J7.js","./permission-DG4nnLwd.js","./install-from-url-Dj8KHNoU.js","./without-wallet-D1BnAwMz.js","./index-BG9IsOhp.js","./cloneDeep-BSii9efD.js","./Autocomplete-D4qgHPQo.js","./ListSubheader-CiWrOXPy.js","./ListItemButton-KhUkLUks.js","./Stepper-DrtkVXGn.js","./Launch-DQ9Pd0Tu.js","./Add-B4h6-Y3a.js","./index-QXgvuFbn.js","./schema-HTPq5Xtv.js","./index-Codg30Dx.js","./toLower-ex_Cy3wy.js","./index-89kUV6fB.js","./url-join-U9ZbETkY.js","./wait-container-CieQbYCo.js","./use-mobile-CsTrq8vs.js","./DeleteOutline-lLsPbsy_.js","./spaces-BuiVc0de.js","./api-DYXM52h1.js","./index-BxkNxMyK.js","./item-DsfvuKyA.js","./Verified-8xtM8E7f.js","./ChevronLeft-LMOWtQoh.js","./ChevronRight-CYwtPaao.js","./blocklet-kdF0d0Qp.js","./VerifiedUser-Bk2y4NnA.js","./Done-D68dtThT.js","./delete-confirm-Dz660yTH.js","./item-G0iZE90Q.css","./engine-CrVL_aCe.js","./ArrowDropDown-DPp-6zTe.js","./Breadcrumbs-wr7_Z9Jk.js","./index-ChkX2WWr.js","./html-title-BISVxbaC.js","./index.esm-FBjE3h2W.js","./switch-control-4POtc8f3.js","./Switch-jMKoPPEj.js","./Link-C3jBvdRj.js","./logo-BKA11TRi.js","./Refresh-KmLBerHN.js","./LoadingButton-C5AY54l3.js","./rotate-session-key-Cr770JiY.js","./is-path-prefix-equal-Cgt3NVqw.js","./Edit-6kwCK506.js","./CallMerge-DDIAfXuh.js","./CardContent-BkHIw2EY.js","./Slider-D5zhDFVl.js","./visuallyHidden-Dan1xhjv.js","./index-BqK0_Y7D.js","./download-uZ39PIN3.js","./index-C4WLTDtv.js","./audit-logs-BL9lOS0g.js","./index-CqGVnG0M.js","./decode-DPztD6kB.js","./index-gnjjKJuC.css","./shorten-label-2HLZz3fu.js","./team-n2xFz2t1.js","./index-DYz2td3Y.js","./ViewList-B3wMEZt_.js","./use-mobile-T1XgZgYV.js","./client-BnO8CaDE.js","./AdapterDayjs-DSbst3Pb.js","./useThemeProps-qTAusu8D.js","./ErrorOutline-d8mvVfQG.js","./index-CfmHj4Fr.js","./sdk-C_SRrWJ9.js","./actions-CddJqvRX.js","./index-CWczD9fZ.js","./Google-Ch0Lcmyw.js","./edit.svg-DHEgt4T5.js","./list-header-CGBrwwxP.js","./chain-B5MJhwl_.js","./ToggleButtonGroup-B7LsHyld.js","./index-CYPMnPt9.js","./index-ZgkIHsf0.css","./useAsyncRetry-9br707vK.js","./useAsync-By8N2vZe.js","./detail-wjh8SSmq.js","./index-BfUqHZWc.js","./index-BPtoIMoq.js","./invitation-D02TgN19.js","./wrap-locale-3dv9PAUx.js","./index-BF03k2Ax.js","./index-hFi2ujLY.js","./index-DIfZboDN.js","./agreement-DeuZfmwL.js","./index--1yW1BOK.js","./index-JRz2LnLe.js","./index-Dnqtpp1_.js","./traffic-BCka21nM.js","./iframe-BQna3Pt_.js","./index-DBii9-f-.js","./base-chart-DXDl7cwx.js","./index-DiElCa61.js","./index-DRYJ0xIl.js","./memory-SxjYPx-h.js","./index-LyatycMz.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
function _mergeNamespaces(be,Se){for(var Ce=0;Ce<Se.length;Ce++){const Te=Se[Ce];if(typeof Te!="string"&&!Array.isArray(Te)){for(const Re in Te)if(Re!=="default"&&!(Re in be)){const Le=Object.getOwnPropertyDescriptor(Te,Re);Le&&Object.defineProperty(be,Re,Le.get?Le:{enumerable:!0,get:()=>Te[Re]})}}}return Object.freeze(Object.defineProperty(be,Symbol.toStringTag,{value:"Module"}))}(function(){const Se=document.createElement("link").relList;if(Se&&Se.supports&&Se.supports("modulepreload"))return;for(const Re of document.querySelectorAll('link[rel="modulepreload"]'))Te(Re);new MutationObserver(Re=>{for(const Le of Re)if(Le.type==="childList")for(const Oe of Le.addedNodes)Oe.tagName==="LINK"&&Oe.rel==="modulepreload"&&Te(Oe)}).observe(document,{childList:!0,subtree:!0});function Ce(Re){const Le={};return Re.integrity&&(Le.integrity=Re.integrity),Re.referrerPolicy&&(Le.referrerPolicy=Re.referrerPolicy),Re.crossOrigin==="use-credentials"?Le.credentials="include":Re.crossOrigin==="anonymous"?Le.credentials="omit":Le.credentials="same-origin",Le}function Te(Re){if(Re.ep)return;Re.ep=!0;const Le=Ce(Re);fetch(Re.href,Le)}})();var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs$1(be){return be&&be.__esModule&&Object.prototype.hasOwnProperty.call(be,"default")?be.default:be}function getAugmentedNamespace(be){if(Object.prototype.hasOwnProperty.call(be,"__esModule"))return be;var Se=be.default;if(typeof Se=="function"){var Ce=function Te(){var Re=!1;try{Re=this instanceof Te}catch{}return Re?Reflect.construct(Se,arguments,this.constructor):Se.apply(this,arguments)};Ce.prototype=Se.prototype}else Ce={};return Object.defineProperty(Ce,"__esModule",{value:!0}),Object.keys(be).forEach(function(Te){var Re=Object.getOwnPropertyDescriptor(be,Te);Object.defineProperty(Ce,Te,Re.get?Re:{enumerable:!0,get:function(){return be[Te]}})}),Ce}var jsxRuntime={exports:{}},reactJsxRuntime_production={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.production.js
|
|
@@ -2892,4 +2892,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2892
2892
|
padding-top: 16px;
|
|
2893
2893
|
${be=>be.scrollable?"":"overflow: hidden"};
|
|
2894
2894
|
}
|
|
2895
|
-
`;function GlobalSubscriber(){const{t:be}=T$8(),{session:Se}=useSessionContext$1(),{info:Ce,refresh:Te}=useNodeContext();return useSubscription(constantExports.TeamEvents.userUpdated,({teamDid:Re,user:Le})=>{Re===Ce.did&&Le&&!Le.approved&&Se&&Se.user&&Se.user.did===Le.did&&(H$6.warning(be("session.blockAccess"),{autoHideDuration:10*1e3}),Se.logout())}),useSubscription(constantExports$1.EVENTS.NOTIFICATION_CREATE,Re=>{Re.entityType==="node"&&Te({silent:!0})}),useSubscription(constantExports$1.EVENTS.NODE_UPDATED,()=>{Te({silent:!0})}),null}const authorize=({user:be,launchType:Se,nftId:Ce})=>{if(!be)return!1;if(Se==="serverless"){if(!Ce)throw new Error("nftId is required");return be?.controller?.nftId===Ce}return(be.permissions||[]).includes("mutate_blocklets")},isServerlessBlockletInstalled=be=>be.isGetBlocklet&&be.runtimeBlocklet?.controller?.consumedAt,getRestoredAccessUrl=async be=>{const Se=getBlockletUrls({blocklet:be});let Ce="";return Ce=Se.find(Te=>{try{const{hostname:Re}=new URL(Te);return urlEvaluationExports.isSlpDomain(Re)}catch(Re){return console.error(Re),!1}}),Ce||(Ce=await getAccessibleUrl(Se)),Ce},LaunchBlockletContext=reactExports.createContext({}),{Provider:Provider$1,Consumer:Consumer$1}=LaunchBlockletContext;function LaunchBlockletProvider({children:be}){const{session:Se}=useSessionContext$1(),{t:Ce}=T$8(),{api:Te,info:Re}=useNodeContext(),[Le]=useSearchParams(),Oe=Le.get("launchType"),je=Le.get("fromLauncher"),Pe=Le.get("blocklet_meta_url")||"",Fe=Le.get("nftId")||"",qe=Le.get("from")||"",Ve=Le.get("launcherSessionId")||"",ze=Le.get("launcherUrl")||"",Ge=qe==="url",Je=qe==="empty",Ye=Ge||Je?"":new URL(Pe).origin,[Ze,Qe]=reactExports.useState({meta:null,appDid:Le.get("appDid")||null,sessionId:Le.get("sessionId")||null,isFree:!0,isExternal:!1,isInstalling:!1,isInstalled:!1,isRunning:!1,launcherSession:null,registryUrl:""}),rt=(wt,vt)=>Qe(st=>({...st,appDid:wt,sessionId:vt})),tt=authorize({user:Se.user,launchType:Oe,nftId:Fe}),[it,ot]=reactExports.useState(null),[ft,pt]=reactExports.useState(!0),$t=reactExports.useMemo(()=>Re?getServerUrl(Re):"",[Re]),zt=async wt=>{if(!wt)throw new Error("appDid should not be empty");const{blocklet:vt}=await Te.getBlocklet({input:{did:wt,attachConfig:!1}});if(!vt)return null;const st=constantExports.BlockletStatus[vt.status],ht=!!Fe,bt=st<constantExports.BlockletStatus.installed,Ct=st===constantExports.BlockletStatus.installed,It=st===constantExports.BlockletStatus.running;return Qe(qt=>({...qt,isInstalled:Ct,isRunning:It,isExternal:ht,isInstalling:bt})),{isInstalled:Ct,isRunning:It,isExternal:ht,isInstalling:bt}},Bt=async()=>{if(pt(!0),Je){Qe(wt=>({...wt,meta:{title:Le.get("title")||"",description:Le.get("description")||""}})),pt(!1);return}try{if(!Pe&&!Je)throw new Error(Ce("common.invalidParam"));const[{meta:wt,isFree:vt,registryUrl:st},{launcherSession:ht,error:bt}]=await Promise.all([Te.getBlockletMetaFromUrl({input:{url:Pe,checkPrice:!0}}),Ve?Te.getLauncherSession({input:{launcherSessionId:Ve,launcherUrl:ze}}):Promise.resolve({})]);if(Ve&&!ht)throw new Error(`Launch session invalid: ${bt}`);if(!wt)throw new Error(Ce("LaunchBlockletBlocklet.error.loadMetaFailed"));let Ct={};tt&&Ze.appDid&&(Ct=await zt(Ze.appDid)),Qe(It=>({...It,...Ct,meta:wt,isFree:vt,registryUrl:st,launcherSession:ht}))}catch(wt){console.error(wt),ot(wt.message)}finally{pt(!1)}};reactExports.useEffect(()=>{Se?.user?.role===constantExports$1.SERVER_ROLES.EXTERNAL_BLOCKLET_CONTROLLER&&Se?.user?.controller?.nftId!==Fe&&Se.logout(),Bt()},[]),reactExports.useEffect(()=>{ft||!Ze.meta||(tt?Ze.appDid&&zt(Ze.appDid).catch(wt=>{H$6.error(wt.message)}):(Qe(wt=>({...wt,isInstalled:!1,isRunning:!1,isExternal:!1})),ot(null)))},[tt]);const nn={meta:Ze.meta,isFree:Ze.isFree,appDid:Ze.appDid,sessionId:Ze.sessionId,isInstalling:Ze.isInstalling,isInstalled:Ze.isInstalled,isExternal:Ze.isExternal,isRunning:Ze.isRunning,serverUrl:$t,storeUrl:Ze.registryUrl||Ye,blockletMetaUrl:Pe,fromLauncher:je,loading:ft,error:it,api:Te,getBlocklet:zt,setAppDid:rt,launcherUrl:ze,launcherSession:Ze.launcherSession,launcherSessionId:Ve,launchType:Oe};return jsxRuntimeExports.jsx(Provider$1,{value:nn,children:be})}function useLaunchBlockletContext(){return reactExports.useContext(LaunchBlockletContext)}var useAsyncExports=requireUseAsync();const useAsync=getDefaultExportFromCjs$1(useAsyncExports);function useQuery(){return new URLSearchParams(useLocation().search)}const BlockletAppContext=reactExports.createContext(),{Provider,Consumer}=BlockletAppContext;function BlockletAppProvider({children:be}){const Ce=useQuery().get("blocklet_meta_url"),Te=useAsync(async()=>{const{data:Le}=await axios.get(Ce);return Le});if(Te.loading)return jsxRuntimeExports.jsx(o$d,{children:jsxRuntimeExports.jsx(CircularProgress,{})});const Re={meta:Te.value,error:Te.error};return jsxRuntimeExports.jsx(Provider,{value:Re,children:be})}BlockletAppProvider.propTypes={children:o$f.any.isRequired};function useBlockletAppContext(){return reactExports.useContext(BlockletAppContext)}const Dashboard=reactExports.lazy(()=>__vitePreload(()=>import("./index-DLpsm2mN.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)),BlockletList=reactExports.lazy(()=>__vitePreload(()=>import("./index-ChiaZhgT.js"),__vite__mapDeps([5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,2,31,32,33,34,35,36,37,38]),import.meta.url)),BlockletRestore=reactExports.lazy(()=>__vitePreload(()=>import("./index-DZRPUI-P.js"),__vite__mapDeps([39,40,41,42,43,44,23,6,35,45,46,47,19,15]),import.meta.url)),BlockletStore=reactExports.lazy(()=>__vitePreload(()=>import("./index-BOED20oN.js"),__vite__mapDeps([48,6,49,50,51,52,17,15,53,31,32,54,36,35,55,45,56,4,19,23,24,25,57,58,26,59,60]),import.meta.url)),Settings=reactExports.lazy(()=>__vitePreload(()=>import("./index-vG_fevo9.js"),__vite__mapDeps([61,62,59,63,64,65,26,7,8,9,10,11,12,13,14,15,16,17,18,19,66,21,56,4,2,67,6,68,69,70,36,20,71,52,72,73,74,75,76]),import.meta.url)),LogPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-DC4dv6bl.js"),__vite__mapDeps([77,78,24,25,6]),import.meta.url)),TeamPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-CZ4vDw6v.js"),__vite__mapDeps([79,62,80,15,16,17,18,6,81,82,83,84,85,53,21,86,36,87,7,8,9,10,11,12,13,14,19,88,89,26,4,90,91,76,2,50,45,92,93,94,95,96,44,37,24,25,97,30,98,99,100,101,72,102,103,1,56,104,105]),import.meta.url)),BlockletDetail=reactExports.lazy(()=>__vitePreload(()=>import("./detail-BIG3Wy4a.js"),__vite__mapDeps([106,62,20,21,22,6,19,23,24,25,26,53,107,85,60]),import.meta.url)),EULAPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-TyxE76Ec.js"),[],import.meta.url)),Notifications=reactExports.lazy(()=>__vitePreload(()=>import("./index-MkEIzeFu.js"),[],import.meta.url)),IssuePassport=reactExports.lazy(()=>__vitePreload(()=>import("./index-fWrig1cJ.js"),__vite__mapDeps([108,109,107,93,10,94,110,23]),import.meta.url)),LostPassport=reactExports.lazy(()=>__vitePreload(()=>import("./index-_ubYroa3.js"),__vite__mapDeps([111,87,55,93,10,110,23,34]),import.meta.url)),ExchangePassport=reactExports.lazy(()=>__vitePreload(()=>import("./index-YZaa-4Bx.js"),__vite__mapDeps([112,110,23]),import.meta.url)),BlockletLauncher=reactExports.lazy(()=>__vitePreload(()=>import("./index-BW7huu6e.js"),__vite__mapDeps([113,41,42,43,44,104,105,114,81,82,83,23,28,29,47,38,6,67,58]),import.meta.url)),NotFoundPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-CYNcoZTi.js"),__vite__mapDeps([115,107]),import.meta.url)),Invite=reactExports.lazy(()=>__vitePreload(()=>import("./index-OYUoLiKD.js"),__vite__mapDeps([116,109,107,93,10,94,110]),import.meta.url)),Console=reactExports.lazy(()=>__vitePreload(()=>import("./index-VvQ0okvj.js"),[],import.meta.url)),AnalyticsPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-Dc39Ep1O.js"),__vite__mapDeps([117,62,118,119,51,52,120,13,121,122,90,91,9,76,7,8,10,11,12,14,15,16,17,18,19,123,124,74,6,101,25]),import.meta.url)),GenKeyPair=reactExports.lazy(()=>__vitePreload(()=>import("./index-DoQLBKcD.js"),__vite__mapDeps([125,107]),import.meta.url));function useSharedContext(){const be=useNodeContext(),{session:Se}=useSessionContext$1(),{wallet:Ce}=d$f(),Te=Se.user&&Se.user.did;return reactExports.useEffect(()=>{const Re=getWsClient();return Te?Re.connect():Re.isConnected()&&Re.disconnect(),()=>{Re.isConnected()&&Re.disconnect()}},[Te]),reactExports.useEffect(()=>{if(Ce)return()=>{};const Re=()=>{document.visibilityState==="visible"&&Se.refresh()};return document.addEventListener("visibilitychange",Re),()=>{document.removeEventListener("visibilitychange",Re)}},[]),{node:be,session:Se}}function ProtectedApp(){const{t:be}=T$8(),{node:Se,session:Ce}=useSharedContext(),Te=useLocation();reactExports.useEffect(()=>{window.tracker&&typeof window.tracker.pageView=="function"&&window.tracker.pageView(`${Te.pathname}${Te.search}`)},[Te]),reactExports.useEffect(()=>{Ce?.user?.role===constantExports$1.SERVER_ROLES.EXTERNAL_BLOCKLET_CONTROLLER&&Ce.logout()},[Ce?.user?.role]);const Re=jsxRuntimeExports.jsx(CircularProgress,{});if(Se.loading||Ce.loading)return jsxRuntimeExports.jsx(o$d,{children:Re});if(!Se.info.initialized)return getAuthMethodExports.getServerAuthMethod(Se.info)==="nft"?jsxRuntimeExports.jsx(NodeVerifyOwner,{action:"verify-owner"}):jsxRuntimeExports.jsx(o$d,{children:jsxRuntimeExports.jsx(NodeConnectOwner,{})});if(Se.info.upgradeSessionId)return jsxRuntimeExports.jsx(o$d,{children:jsxRuntimeExports.jsx(MaintainProgress,{})});if(!Ce.user)return jsxRuntimeExports.jsx(NodeLogin,{loadingEle:Re});const Le=jsxRuntimeExports.jsx(o$d,{children:jsxRuntimeExports.jsx(CircularProgress,{})});return jsxRuntimeExports.jsx(BlockletsProvider,{children:jsxRuntimeExports.jsxs(NotificationProvider,{children:[jsxRuntimeExports.jsx(Health,{}),jsxRuntimeExports.jsx(CheckNodeStatus,{}),jsxRuntimeExports.jsx(GlobalSubscriber,{}),jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:Le,children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:"/dashboard",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:"Dashboard",children:jsxRuntimeExports.jsx(Dashboard,{})})}),jsxRuntimeExports.jsx(Route,{path:"/blocklets",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:be("common.blocklets"),children:jsxRuntimeExports.jsx(BlockletList,{})})}),jsxRuntimeExports.jsx(Route,{path:"/blocklets/:did/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:"Blocklets",children:jsxRuntimeExports.jsx(BlockletDetail,{})})}),jsxRuntimeExports.jsx(Route,{path:"/settings/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:be("common.setting"),children:jsxRuntimeExports.jsx(Settings,{})})}),jsxRuntimeExports.jsx(Route,{path:"/eula",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:be("setup.steps.eula"),children:jsxRuntimeExports.jsx(EULAPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/store",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:be("common.store"),children:jsxRuntimeExports.jsx(BlockletStore,{})})}),jsxRuntimeExports.jsx(Route,{path:"/console",element:jsxRuntimeExports.jsx(DashboardRoute,{title:`GraphQL ${be("common.console")}`,scrollable:!1,fullWidth:!0,children:jsxRuntimeExports.jsx(Console,{})})}),jsxRuntimeExports.jsx(Route,{path:"/notifications",element:jsxRuntimeExports.jsx(DashboardRoute,{title:be("common.notifications"),children:jsxRuntimeExports.jsx(Notifications,{})})}),jsxRuntimeExports.jsx(Route,{path:"/team/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:be("common.team"),children:jsxRuntimeExports.jsx(TeamPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/logs/:name?",element:jsxRuntimeExports.jsx(DashboardRoute,{scrollable:!1,fullWidth:!0,title:be("common.logs"),children:jsxRuntimeExports.jsx(LogPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/analytics/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:be("common.analytics"),children:jsxRuntimeExports.jsx(AnalyticsPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/",element:jsxRuntimeExports.jsx(Navigate,{to:"/dashboard",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/team",element:jsxRuntimeExports.jsx(Navigate,{to:"/team/members",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/analytics",element:jsxRuntimeExports.jsx(Navigate,{to:"/analytics/traffic",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/router",element:jsxRuntimeExports.jsx(Navigate,{to:"/router/rules",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/settings",element:jsxRuntimeExports.jsx(Navigate,{to:"/settings/basic",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/marketplace",element:jsxRuntimeExports.jsx(Navigate,{to:"/store",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/marketplace/:did",element:jsxRuntimeExports.jsx(Navigate,{to:"/store/:did",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"*",element:jsxRuntimeExports.jsx(NotFoundPage,{})})]})})]})})}function UnprotectedWrapper({children:be}){const{node:Se,session:Ce}=useSharedContext();return Se.loading||!Ce.initialized&&Ce.loading?jsxRuntimeExports.jsx(o$d,{children:jsxRuntimeExports.jsx(CircularProgress,{})}):Se.info.upgradeSessionId?jsxRuntimeExports.jsx(o$d,{children:jsxRuntimeExports.jsx(MaintainProgress,{})}):be}function App(){const{changeLocale:be}=T$8(),Se=useQuery();reactExports.useEffect(()=>{const Te=Se.get("locale");Te&&["zh","en"].includes(Te)&&be(Te)},[]);const Ce=jsxRuntimeExports.jsx(o$d,{children:jsxRuntimeExports.jsx(CircularProgress,{})});return jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:Ce,children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/issue-passport`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(IssuePassport,{})})}),jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/lost-passport`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(LostPassport,{})})}),jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/exchange-passport`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(ExchangePassport,{})})}),jsxRuntimeExports.jsx(Route,{path:"/accept-server",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(NodeVerifyOwner,{action:"accept-server"})})}),jsxRuntimeExports.jsx(Route,{path:"/gen-key-pair/",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(GenKeyPair,{})})}),jsxRuntimeExports.jsx(Route,{path:"/launch-blocklet/*",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(LaunchBlockletProvider,{children:jsxRuntimeExports.jsx(BlockletLauncher,{})})})}),jsxRuntimeExports.jsx(Route,{path:"/blocklets/restore/*",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(BlockletAppProvider,{children:jsxRuntimeExports.jsx(BlockletRestore,{})})})}),jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/invite`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(Invite,{})})}),jsxRuntimeExports.jsx(Route,{path:"/*",element:jsxRuntimeExports.jsx(ProtectedApp,{})})]})})}function AppWrapper(){const be=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";return jsxRuntimeExports.jsx(BrowserRouter,{history:history$1,basename:be,children:jsxRuntimeExports.jsx(Root,{children:jsxRuntimeExports.jsx(App,{})})})}const root=clientExports.createRoot(document.getElementById("root"));root.render(jsxRuntimeExports.jsx(AppWrapper,{}));const prefix=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";register(`${prefix}/service-worker.js`.replace(/\/+/g,"/"),{registrationOptions:{scope:prefix},registered(){console.info("Service worker has been registered.")},ready(){console.info("Service worker is active.")},cached(){console.info("Content has been cached for offline use.")},updatefound(){console.info("New content is downloading.")},updated(){console.info("New content is available; please refresh.")},offline(){console.info("No internet connection found. App is running in offline mode.")},error(be){console.error("Error during service worker registration:",be)}});export{$$4 as $,useNavigate as A,useSearchParams as B,CircularProgress as C,DialogContentText as D,constantExports$1 as E,useMediaQuery as F,Grid$1 as G,H$6 as H,libExports$7 as I,utilExports as J,Link$1 as K,Link as L,BlockletAppAvatar as M,Box as N,isEmpty as O,et as P,FormControl as Q,InputLabel as R,Select as S,Typography as T,MenuItem as U,Checkbox as V,WrappedDidAddress as W,Alert as X,formatError as Y,o$d as Z,CheckIcon$2 as _,useSubscription as a,Menu as a$,propTypesExports as a0,api as a1,merge as a2,cloneDeep as a3,IconButton as a4,R$3 as a5,ListItemSecondaryAction as a6,List as a7,ListItem as a8,ListItemText as a9,getBlockletMetaUrl as aA,ErrorBoundary as aB,k$1 as aC,formatRegistryLogoPath as aD,Icon as aE,ListItemIcon as aF,createSvgIcon as aG,ensureDomainAliases as aH,getIp as aI,normalizePathPrefix as aJ,sortBy as aK,stringSortHandlerAsc as aL,getAccessUrl as aM,history$1 as aN,semver as aO,useReactive as aP,useAsyncEffect as aQ,InfoOutlinedIcon as aR,sleep as aS,checkInputByType as aT,FormControlLabel as aU,Stack$1 as aV,useAsync as aW,axios as aX,shouldCheckDomainStatus as aY,formatMountPoint as aZ,urlPathFriendly as a_,getServerUrl as aa,useBlockletAppContext as ab,getAuthMethodExports as ac,ConfirmDialog as ad,getRestoredAccessUrl as ae,setSessionToken as af,isEqual as ag,isServerlessBlockletInstalled as ah,Debug as ai,getWsClient as aj,useQuery as ak,getPathPrefix as al,Global as am,Routes as an,Route as ao,Navigate as ap,HeaderAddon as aq,SessionContext as ar,css as as,$$5 as at,formatToDatetime as au,alpha$1 as av,getLaunchAgreementUrl as aw,axios$2 as ax,useSessionContext$1 as ay,Tooltip as az,constantExports as b,composeClasses as b$,checkIsWildcardDomain as b0,Popover as b1,Card as b2,formatToDate as b3,sortDomains as b4,M$9 as b5,Collapse as b6,CheckCircle as b7,styled as b8,isUrl as b9,isInstalling as bA,Badge as bB,createAppPassportSvg as bC,NavLink as bD,__vitePreload as bE,SetCache as bF,arrayIncludes$1 as bG,arrayIncludesWith as bH,cacheHas as bI,baseUniq as bJ,baseFlatten as bK,baseRest as bL,last as bM,arrayFilter as bN,isArrayLikeObject as bO,t$a as bP,isDownloading as bQ,getBlockletUrl as bR,getBlockletUrlParams as bS,ButtonBase as bT,memoTheme as bU,emphasize as bV,generateUtilityClasses$1 as bW,generateUtilityClass$1 as bX,useDefaultProps as bY,useSlotProps as bZ,clsx$1 as b_,__awaiter as ba,__generator as bb,__spread as bc,getDefaultExportFromCjs$1 as bd,U$3 as be,dayjs$1 as bf,Divider as bg,isCertificateMatch as bh,FormHelperText as bi,FormGroup as bj,o$a as bk,NodeContext as bl,useParams as bm,useNodeContext$1 as bn,uniqBy as bo,libExports$3 as bp,B$4 as bq,a$7 as br,l$h as bs,BlockletAvatar as bt,ClickAwayListener as bu,f$9 as bv,createPassportSvg as bw,getWalletType as bx,useCreation as by,BlockletAdminRoles as bz,createCompounder as c,en$2 as c$,__read as c0,toSlotDomain as c1,omit as c2,fixBlocklet as c3,isProtectedRole as c4,baseOrderBy as c5,isArray$1 as c6,rootShouldForwardProp as c7,useFormControl as c8,createChainedFunction$1 as c9,Container$3 as cA,K$3 as cB,getLauncherBaseURL as cC,SvgIcon as cD,Buffer$1 as cE,parseURL as cF,withHttps as cG,useLaunchBlockletContext as cH,z$3 as cI,authorize as cJ,ArrowForwardIcon as cK,isNewStoreUrl as cL,getAccessibleUrl as cM,getBlockletLogoUrl as cN,t as cO,M$7 as cP,__spreadArrays as cQ,__assign as cR,h$5 as cS,useLocation as cT,l$7 as cU,useMount as cV,e$d as cW,formatDateTime as cX,getExplorerLink as cY,patchJsxToLocale as cZ,flat as c_,useSlot as ca,capitalize$1 as cb,SwitchBase as cc,createSimplePaletteValueFilter as cd,useControlled as ce,useForkRef as cf,useId as cg,getBlockletUrls as ch,defaultCheckAccessible as ci,urlEvaluationExports as cj,memoize as ck,ButtonGroupContext as cl,ButtonGroupButtonContext as cm,useNotificationContext as cn,utilExports$1 as co,NotificationList as cp,useRequest as cq,useMemoizedFn as cr,isNumber$3 as cs,useLatest as ct,dayjs as cu,d$f as cv,Avatar as cw,isFromWallet as cx,usePassportId as cy,isFunction$2 as cz,useBlockletsContext as d,afterRead as d$,Q$3 as d0,getSessionToken as d1,LinearProgress as d2,SvgLogo as d3,isNumber$1 as d4,useEnhancedEffect$1 as d5,debounce$2 as d6,ownerWindow as d7,useRtl as d8,KeyboardArrowLeft as d9,requireReactDom as dA,isObject$3 as dB,require$$0$2 as dC,require$$3$2 as dD,requireConstant$1 as dE,$e as dF,noop$1 as dG,Button as dH,Paper as dI,MenuList as dJ,Popper as dK,_inheritsLoose$1 as dL,ReactDOM as dM,_objectWithoutPropertiesLoose$1 as dN,TransitionGroup as dO,ENTERED as dP,ENTERING as dQ,EXITING as dR,TransitionGroupContext as dS,Transition as dT,config$1 as dU,popperGenerator as dV,eventListeners as dW,popperOffsets$1 as dX,computeStyles$1 as dY,applyStyles$1 as dZ,afterMain as d_,KeyboardArrowRight as da,useEventCallback$1 as db,ownerDocument as dc,l$p as dd,getCommonHtmlTitle as de,HelmetExport as df,requireReact as dg,i$d as dh,oe$2 as di,ne$2 as dj,InfoIcon$2 as dk,upperFirst as dl,camelCase as dm,Skeleton as dn,R$4 as dp,isArrayLike as dq,baseIteratee as dr,keys as ds,toInteger as dt,baseFindIndex as du,commonjsGlobal as dv,getAugmentedNamespace as dw,emotionUtils_browser_esm as dx,requireJsxRuntime as dy,requirePropTypes as dz,useAsyncRetry as e,mergeThemeOptions as e$,afterWrite as e0,arrow$1 as e1,auto as e2,basePlacements as e3,beforeMain as e4,beforeRead as e5,beforeWrite as e6,bottom as e7,clippingParents as e8,createPopper as e9,requireLib$9 as eA,requireLib$7 as eB,requireConstant$2 as eC,requireUrlPathFriendly as eD,b$8 as eE,data$t as eF,global$2 as eG,hoistStatics as eH,isEqual$3 as eI,usePreviousProps as eJ,setRef as eK,ClearIcon as eL,ArrowDropDownIcon as eM,Chip as eN,filledInputClasses as eO,inputBaseClasses as eP,outlinedInputClasses as eQ,inputClasses as eR,ListContext as eS,getListItemButtonUtilityClass as eT,listItemButtonClasses as eU,emotionReact_browser_esm as eV,emotionCache_browser_esm as eW,cloneDeep$1 as eX,forceReflow as eY,_extends$2 as eZ,toString$2 as e_,createPopper$1 as ea,detectOverflow as eb,end as ec,flip$1 as ed,hide$1 as ee,left as ef,main as eg,modifierPhases as eh,offset$1 as ei,placements as ej,popper as ek,preventOverflow$1 as el,read as em,reference as en,right as eo,start as ep,top as eq,variationPlacements as er,viewport as es,write as et,requireReactIs as eu,emotionStyled_browser_esm as ev,emotionSerialize_esm as ew,emotionSheet_esm as ex,process$1 as ey,requireLib$8 as ez,useTheme as f,requireBrowser$f as f$,StyledEngineProvider as f0,ThemeProvider as f1,ThemeProvider$3 as f2,s$2 as f3,CloseIcon as f4,isString$1 as f5,createTheme as f6,createAxios as f7,pick as f8,omitBy as f9,requireNormalizePathPrefix as fA,debounce as fB,useInterval as fC,formatTime as fD,CloseFullscreenIcon as fE,S$8 as fF,TablePagination as fG,parseAvatar as fH,__rest as fI,useEffectWithTarget$1 as fJ,__values as fK,tmp as fL,useUpdate as fM,K$5 as fN,I$5 as fO,p$a as fP,ee$1 as fQ,requireUtil$8 as fR,requireObjectKeys$1 as fS,requireShams$1 as fT,requireCallBound as fU,requireEsObjectAtoms as fV,requireDefineDataProperty as fW,requireHasPropertyDescriptors as fX,requireCallBind as fY,requireCallBound$1 as fZ,requireSafeBuffer$1 as f_,MenuIcon as fa,useDebounceFn as fb,Dialog as fc,OutlinedInput as fd,data as fe,Drawer as ff,parseQuery as fg,parseFilename as fh,stringifyParsedURL as fi,Grow as fj,Wt as fk,InputAdornment as fl,tooltipClasses as fm,e$a as fn,requireEngine as fo,__spreadArray as fp,useEventListener as fq,ae$4 as fr,getTargetElement as fs,clamp as ft,extractEventHandlers as fu,isFocusVisible as fv,isHostComponent as fw,lighten as fx,darken as fy,slotShouldForwardProp as fz,g$e as g,isServerless as g$,requireElliptic as g0,requireCryptoBrowserify as g1,requireRipemd160 as g2,requireLib$6 as g3,requireUtil as g4,shouldForwardProp as g5,resolveComponentProps as g6,l as g7,getInviteLink as g8,copy as g9,useTimeout as gA,Fade as gB,FocusTrap as gC,DialogActions as gD,dialogClasses as gE,DialogContent as gF,localizedFormatPlugin as gG,n$8 as gH,purify as gI,Buffer$1$1 as gJ,Q$2 as gK,requireJsonStableStringify as gL,requireSemver as gM,requireBrowser$5 as gN,require$$0$1 as gO,requireIsAbsoluteUrl as gP,requireDist$2 as gQ,requireBrowser$3 as gR,require$$3 as gS,resolveProps as gT,useThemeProps as gU,defaultTheme$1 as gV,THEME_ID as gW,isIndex as gX,useTheme$4 as gY,objectAssign as gZ,__extends as g_,e$c as ga,getIssuePassportLink as gb,uniqBy$1 as gc,isNodeOwner as gd,isSelf as ge,Q$1 as gf,createPassportSvgExports as gg,getBlockletAccessibleUrl as gh,A$1 as gi,createPassportSvg$1 as gj,requireMs as gk,E$2 as gl,trim as gm,BlockletSDK as gn,getBlockletSDK as go,MoreHorizIcon as gp,identity$1 as gq,arrayEach as gr,baseEach as gs,arrayMap as gt,baseMap as gu,baseForOwn as gv,isPlainObject$2 as gw,require$$1$6 as gx,throttle$2 as gy,isUndefined$1 as gz,get$1 as h,f$3 as h$,isFunction$1 as h0,omit$1 as h1,TableContext as h2,Tablelvl2Context as h3,d$g as h4,useUnmount as h5,isDidDomainOrIpEchoDomain as h6,ExpandLess as h7,validateDomain as h8,requireDist as h9,isBrowser$1 as hA,root$1 as hB,isNil$1 as hC,require$$3$1 as hD,requireHoistNonReactStatics_cjs as hE,_assertThisInitialized$1 as hF,reactDomExports as hG,loadIcon as hH,withoutLeadingSlash as hI,fetchSvgAsPng as hJ,blobToFile as hK,withoutTrailingSlash as hL,At as hM,t$f as hN,i as hO,R$7 as hP,browserExports$1 as hQ,highlightExports as hR,funcExports as hS,data$y as hT,useSnackbar as hU,common$3 as hV,green as hW,amber as hX,SnackbarContent as hY,t$1 as hZ,Y as h_,requireAxios as ha,trim$1 as hb,requirePRetry as hc,TableCell as hd,xe$1 as he,getSystemDomains as hf,copyArray as hg,baseIndexOf as hh,ke as hi,useAppLogo as hj,getTransferAppLink as hk,requireBn as hl,require$$2 as hm,uniq as hn,updateWindowEnv as ho,M$3 as hp,isNil as hq,requireBase32 as hr,jt as hs,withTrailingSlash as ht,data$B as hu,keyframes as hv,requireAssertString as hw,isEmail as hx,isURL as hy,createUseStorageState as hz,filesize as i,orange as i$,b as i0,g$9 as i1,withErrorBoundary as i2,z$2 as i3,M$4 as i4,De as i5,G as i6,xe as i7,useBlockletLogo as i8,isPlainObject$1 as i9,require$$4 as iA,flatten as iB,trimEnd as iC,DialogTitle as iD,base32Exports as iE,flatExports as iF,Et as iG,AxiosError as iH,require$$0$8 as iI,require$$2$3 as iJ,require$$1$5 as iK,require$$5 as iL,require$$6$2 as iM,require$$7 as iN,require$$0$7 as iO,requireBs58 as iP,requireBase64Url as iQ,requireUtf8 as iR,requireSha3$4 as iS,requireHash$2 as iT,requireNaclFast as iU,requireBrowser$h as iV,requireAccount as iW,requireHash as iX,requireHelpers as iY,I$9 as iZ,isNull as i_,Toolbar as ia,_setPrototypeOf as ib,isString$3 as ic,FormLabel as id,RelativeTime as ie,isIncludeActivity as ig,isUserActor as ih,ActorAvatar as ii,SendComponentAvatar as ij,Activity as ik,NotificationContent$1 as il,AvatarGroup as im,requireCjs as io,useTheme$2 as ip,baseAssignValue as iq,isValidClusterSize as ir,extractStatusUrlFromNextWorkflow as is,pWaitFor as it,hasRequiredSteps as iu,getStoreList as iv,commonjsRequire as iw,require_interface as ix,requireHasown as iy,requireBrowser as iz,jsxRuntimeExports as j,purple as j0,useStore as j1,createStore as j2,create$1 as j3,t$g as j4,clientExports as j5,gt as j6,retry as j7,isNetworkError as j8,requirePTimeout as j9,n$5 as ja,Modal as jb,GlobalStyles$2 as jc,useSize as jd,prettyMs as k,formatLocale as l,T$8 as m,useSessionContext as n,o$f as o,p$3 as p,useSetState as q,reactExports as r,styled$3 as s,TextField as t,useNodeContext as u,n$4 as v,lo as w,getWebWalletUrl as x,joinURL as y,withQuery as z};
|
|
2895
|
+
`;function GlobalSubscriber(){const{t:be}=T$8(),{session:Se}=useSessionContext$1(),{info:Ce,refresh:Te}=useNodeContext();return useSubscription(constantExports.TeamEvents.userUpdated,({teamDid:Re,user:Le})=>{Re===Ce.did&&Le&&!Le.approved&&Se&&Se.user&&Se.user.did===Le.did&&(H$6.warning(be("session.blockAccess"),{autoHideDuration:10*1e3}),Se.logout())}),useSubscription(constantExports$1.EVENTS.NOTIFICATION_CREATE,Re=>{Re.entityType==="node"&&Te({silent:!0})}),useSubscription(constantExports$1.EVENTS.NODE_UPDATED,()=>{Te({silent:!0})}),null}const authorize=({user:be,launchType:Se,nftId:Ce})=>{if(!be)return!1;if(Se==="serverless"){if(!Ce)throw new Error("nftId is required");return be?.controller?.nftId===Ce}return(be.permissions||[]).includes("mutate_blocklets")},isServerlessBlockletInstalled=be=>be.isGetBlocklet&&be.runtimeBlocklet?.controller?.consumedAt,getRestoredAccessUrl=async be=>{const Se=getBlockletUrls({blocklet:be});let Ce="";return Ce=Se.find(Te=>{try{const{hostname:Re}=new URL(Te);return urlEvaluationExports.isSlpDomain(Re)}catch(Re){return console.error(Re),!1}}),Ce||(Ce=await getAccessibleUrl(Se)),Ce},LaunchBlockletContext=reactExports.createContext({}),{Provider:Provider$1,Consumer:Consumer$1}=LaunchBlockletContext;function LaunchBlockletProvider({children:be}){const{session:Se}=useSessionContext$1(),{t:Ce}=T$8(),{api:Te,info:Re}=useNodeContext(),[Le]=useSearchParams(),Oe=Le.get("launchType"),je=Le.get("fromLauncher"),Pe=Le.get("blocklet_meta_url")||"",Fe=Le.get("nftId")||"",qe=Le.get("from")||"",Ve=Le.get("launcherSessionId")||"",ze=Le.get("launcherUrl")||"",Ge=qe==="url",Je=qe==="empty",Ye=Ge||Je?"":new URL(Pe).origin,[Ze,Qe]=reactExports.useState({meta:null,appDid:Le.get("appDid")||null,sessionId:Le.get("sessionId")||null,isFree:!0,isExternal:!1,isInstalling:!1,isInstalled:!1,isRunning:!1,launcherSession:null,registryUrl:""}),rt=(wt,vt)=>Qe(st=>({...st,appDid:wt,sessionId:vt})),tt=authorize({user:Se.user,launchType:Oe,nftId:Fe}),[it,ot]=reactExports.useState(null),[ft,pt]=reactExports.useState(!0),$t=reactExports.useMemo(()=>Re?getServerUrl(Re):"",[Re]),zt=async wt=>{if(!wt)throw new Error("appDid should not be empty");const{blocklet:vt}=await Te.getBlocklet({input:{did:wt,attachConfig:!1}});if(!vt)return null;const st=constantExports.BlockletStatus[vt.status],ht=!!Fe,bt=st<constantExports.BlockletStatus.installed,Ct=st===constantExports.BlockletStatus.installed,It=st===constantExports.BlockletStatus.running;return Qe(qt=>({...qt,isInstalled:Ct,isRunning:It,isExternal:ht,isInstalling:bt})),{isInstalled:Ct,isRunning:It,isExternal:ht,isInstalling:bt}},Bt=async()=>{if(pt(!0),Je){Qe(wt=>({...wt,meta:{title:Le.get("title")||"",description:Le.get("description")||""}})),pt(!1);return}try{if(!Pe&&!Je)throw new Error(Ce("common.invalidParam"));const[{meta:wt,isFree:vt,registryUrl:st},{launcherSession:ht,error:bt}]=await Promise.all([Te.getBlockletMetaFromUrl({input:{url:Pe,checkPrice:!0}}),Ve?Te.getLauncherSession({input:{launcherSessionId:Ve,launcherUrl:ze}}):Promise.resolve({})]);if(Ve&&!ht)throw new Error(`Launch session invalid: ${bt}`);if(!wt)throw new Error(Ce("LaunchBlockletBlocklet.error.loadMetaFailed"));let Ct={};tt&&Ze.appDid&&(Ct=await zt(Ze.appDid)),Qe(It=>({...It,...Ct,meta:wt,isFree:vt,registryUrl:st,launcherSession:ht}))}catch(wt){console.error(wt),ot(wt.message)}finally{pt(!1)}};reactExports.useEffect(()=>{Se?.user?.role===constantExports$1.SERVER_ROLES.EXTERNAL_BLOCKLET_CONTROLLER&&Se?.user?.controller?.nftId!==Fe&&Se.logout(),Bt()},[]),reactExports.useEffect(()=>{ft||!Ze.meta||(tt?Ze.appDid&&zt(Ze.appDid).catch(wt=>{H$6.error(wt.message)}):(Qe(wt=>({...wt,isInstalled:!1,isRunning:!1,isExternal:!1})),ot(null)))},[tt]);const nn={meta:Ze.meta,isFree:Ze.isFree,appDid:Ze.appDid,sessionId:Ze.sessionId,isInstalling:Ze.isInstalling,isInstalled:Ze.isInstalled,isExternal:Ze.isExternal,isRunning:Ze.isRunning,serverUrl:$t,storeUrl:Ze.registryUrl||Ye,blockletMetaUrl:Pe,fromLauncher:je,loading:ft,error:it,api:Te,getBlocklet:zt,setAppDid:rt,launcherUrl:ze,launcherSession:Ze.launcherSession,launcherSessionId:Ve,launchType:Oe};return jsxRuntimeExports.jsx(Provider$1,{value:nn,children:be})}function useLaunchBlockletContext(){return reactExports.useContext(LaunchBlockletContext)}var useAsyncExports=requireUseAsync();const useAsync=getDefaultExportFromCjs$1(useAsyncExports);function useQuery(){return new URLSearchParams(useLocation().search)}const BlockletAppContext=reactExports.createContext(),{Provider,Consumer}=BlockletAppContext;function BlockletAppProvider({children:be}){const Ce=useQuery().get("blocklet_meta_url"),Te=useAsync(async()=>{const{data:Le}=await axios.get(Ce);return Le});if(Te.loading)return jsxRuntimeExports.jsx(o$d,{children:jsxRuntimeExports.jsx(CircularProgress,{})});const Re={meta:Te.value,error:Te.error};return jsxRuntimeExports.jsx(Provider,{value:Re,children:be})}BlockletAppProvider.propTypes={children:o$f.any.isRequired};function useBlockletAppContext(){return reactExports.useContext(BlockletAppContext)}const Dashboard=reactExports.lazy(()=>__vitePreload(()=>import("./index-B0bm6qHZ.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)),BlockletList=reactExports.lazy(()=>__vitePreload(()=>import("./index-CmzNfXzP.js"),__vite__mapDeps([5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,2,31,32,33,34,35,36,37,38]),import.meta.url)),BlockletRestore=reactExports.lazy(()=>__vitePreload(()=>import("./index-Codg30Dx.js"),__vite__mapDeps([39,40,41,42,43,44,23,6,35,45,46,47,19,15]),import.meta.url)),BlockletStore=reactExports.lazy(()=>__vitePreload(()=>import("./index-BxkNxMyK.js"),__vite__mapDeps([48,6,49,50,51,52,17,15,53,31,32,54,36,35,55,45,56,4,19,23,24,25,57,58,26,59,60]),import.meta.url)),Settings=reactExports.lazy(()=>__vitePreload(()=>import("./index-ChkX2WWr.js"),__vite__mapDeps([61,62,59,63,64,65,26,7,8,9,10,11,12,13,14,15,16,17,18,19,66,21,56,4,2,67,6,68,69,70,36,20,71,52,72,73,74,75,76]),import.meta.url)),LogPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-BqK0_Y7D.js"),__vite__mapDeps([77,78,24,25,6]),import.meta.url)),TeamPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-C4WLTDtv.js"),__vite__mapDeps([79,62,80,15,16,17,18,6,81,82,83,84,85,53,21,86,36,87,7,8,9,10,11,12,13,14,19,88,89,26,4,90,91,76,2,50,45,92,93,94,95,96,44,37,24,25,97,30,98,99,100,101,72,102,103,1,56,104,105]),import.meta.url)),BlockletDetail=reactExports.lazy(()=>__vitePreload(()=>import("./detail-wjh8SSmq.js"),__vite__mapDeps([106,62,20,21,22,6,19,23,24,25,26,53,107,85,60]),import.meta.url)),EULAPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-BV21Rw9W.js"),[],import.meta.url)),Notifications=reactExports.lazy(()=>__vitePreload(()=>import("./index-6vVbUeRC.js"),[],import.meta.url)),IssuePassport=reactExports.lazy(()=>__vitePreload(()=>import("./index-BPtoIMoq.js"),__vite__mapDeps([108,109,107,93,10,94,110,23]),import.meta.url)),LostPassport=reactExports.lazy(()=>__vitePreload(()=>import("./index-BF03k2Ax.js"),__vite__mapDeps([111,87,55,93,10,110,23,34]),import.meta.url)),ExchangePassport=reactExports.lazy(()=>__vitePreload(()=>import("./index-hFi2ujLY.js"),__vite__mapDeps([112,110,23]),import.meta.url)),BlockletLauncher=reactExports.lazy(()=>__vitePreload(()=>import("./index-DIfZboDN.js"),__vite__mapDeps([113,41,42,43,44,104,105,114,81,82,83,23,28,29,47,38,6,67,58]),import.meta.url)),NotFoundPage=reactExports.lazy(()=>__vitePreload(()=>import("./index--1yW1BOK.js"),__vite__mapDeps([115,107]),import.meta.url)),Invite=reactExports.lazy(()=>__vitePreload(()=>import("./index-JRz2LnLe.js"),__vite__mapDeps([116,109,107,93,10,94,110]),import.meta.url)),Console=reactExports.lazy(()=>__vitePreload(()=>import("./index-BA3wdHPl.js"),[],import.meta.url)),AnalyticsPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-Dnqtpp1_.js"),__vite__mapDeps([117,62,118,119,51,52,120,13,121,122,90,91,9,76,7,8,10,11,12,14,15,16,17,18,19,123,124,74,6,101,25]),import.meta.url)),GenKeyPair=reactExports.lazy(()=>__vitePreload(()=>import("./index-LyatycMz.js"),__vite__mapDeps([125,107]),import.meta.url));function useSharedContext(){const be=useNodeContext(),{session:Se}=useSessionContext$1(),{wallet:Ce}=d$f(),Te=Se.user&&Se.user.did;return reactExports.useEffect(()=>{const Re=getWsClient();return Te?Re.connect():Re.isConnected()&&Re.disconnect(),()=>{Re.isConnected()&&Re.disconnect()}},[Te]),reactExports.useEffect(()=>{if(Ce)return()=>{};const Re=()=>{document.visibilityState==="visible"&&Se.refresh()};return document.addEventListener("visibilitychange",Re),()=>{document.removeEventListener("visibilitychange",Re)}},[]),{node:be,session:Se}}function ProtectedApp(){const{t:be}=T$8(),{node:Se,session:Ce}=useSharedContext(),Te=useLocation();reactExports.useEffect(()=>{window.tracker&&typeof window.tracker.pageView=="function"&&window.tracker.pageView(`${Te.pathname}${Te.search}`)},[Te]),reactExports.useEffect(()=>{Ce?.user?.role===constantExports$1.SERVER_ROLES.EXTERNAL_BLOCKLET_CONTROLLER&&Ce.logout()},[Ce?.user?.role]);const Re=jsxRuntimeExports.jsx(CircularProgress,{});if(Se.loading||Ce.loading)return jsxRuntimeExports.jsx(o$d,{children:Re});if(!Se.info.initialized)return getAuthMethodExports.getServerAuthMethod(Se.info)==="nft"?jsxRuntimeExports.jsx(NodeVerifyOwner,{action:"verify-owner"}):jsxRuntimeExports.jsx(o$d,{children:jsxRuntimeExports.jsx(NodeConnectOwner,{})});if(Se.info.upgradeSessionId)return jsxRuntimeExports.jsx(o$d,{children:jsxRuntimeExports.jsx(MaintainProgress,{})});if(!Ce.user)return jsxRuntimeExports.jsx(NodeLogin,{loadingEle:Re});const Le=jsxRuntimeExports.jsx(o$d,{children:jsxRuntimeExports.jsx(CircularProgress,{})});return jsxRuntimeExports.jsx(BlockletsProvider,{children:jsxRuntimeExports.jsxs(NotificationProvider,{children:[jsxRuntimeExports.jsx(Health,{}),jsxRuntimeExports.jsx(CheckNodeStatus,{}),jsxRuntimeExports.jsx(GlobalSubscriber,{}),jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:Le,children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:"/dashboard",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:"Dashboard",children:jsxRuntimeExports.jsx(Dashboard,{})})}),jsxRuntimeExports.jsx(Route,{path:"/blocklets",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:be("common.blocklets"),children:jsxRuntimeExports.jsx(BlockletList,{})})}),jsxRuntimeExports.jsx(Route,{path:"/blocklets/:did/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:"Blocklets",children:jsxRuntimeExports.jsx(BlockletDetail,{})})}),jsxRuntimeExports.jsx(Route,{path:"/settings/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:be("common.setting"),children:jsxRuntimeExports.jsx(Settings,{})})}),jsxRuntimeExports.jsx(Route,{path:"/eula",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:be("setup.steps.eula"),children:jsxRuntimeExports.jsx(EULAPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/store",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:be("common.store"),children:jsxRuntimeExports.jsx(BlockletStore,{})})}),jsxRuntimeExports.jsx(Route,{path:"/console",element:jsxRuntimeExports.jsx(DashboardRoute,{title:`GraphQL ${be("common.console")}`,scrollable:!1,fullWidth:!0,children:jsxRuntimeExports.jsx(Console,{})})}),jsxRuntimeExports.jsx(Route,{path:"/notifications",element:jsxRuntimeExports.jsx(DashboardRoute,{title:be("common.notifications"),children:jsxRuntimeExports.jsx(Notifications,{})})}),jsxRuntimeExports.jsx(Route,{path:"/team/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:be("common.team"),children:jsxRuntimeExports.jsx(TeamPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/logs/:name?",element:jsxRuntimeExports.jsx(DashboardRoute,{scrollable:!1,fullWidth:!0,title:be("common.logs"),children:jsxRuntimeExports.jsx(LogPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/analytics/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:be("common.analytics"),children:jsxRuntimeExports.jsx(AnalyticsPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/",element:jsxRuntimeExports.jsx(Navigate,{to:"/dashboard",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/team",element:jsxRuntimeExports.jsx(Navigate,{to:"/team/members",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/analytics",element:jsxRuntimeExports.jsx(Navigate,{to:"/analytics/traffic",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/router",element:jsxRuntimeExports.jsx(Navigate,{to:"/router/rules",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/settings",element:jsxRuntimeExports.jsx(Navigate,{to:"/settings/basic",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/marketplace",element:jsxRuntimeExports.jsx(Navigate,{to:"/store",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/marketplace/:did",element:jsxRuntimeExports.jsx(Navigate,{to:"/store/:did",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"*",element:jsxRuntimeExports.jsx(NotFoundPage,{})})]})})]})})}function UnprotectedWrapper({children:be}){const{node:Se,session:Ce}=useSharedContext();return Se.loading||!Ce.initialized&&Ce.loading?jsxRuntimeExports.jsx(o$d,{children:jsxRuntimeExports.jsx(CircularProgress,{})}):Se.info.upgradeSessionId?jsxRuntimeExports.jsx(o$d,{children:jsxRuntimeExports.jsx(MaintainProgress,{})}):be}function App(){const{changeLocale:be}=T$8(),Se=useQuery();reactExports.useEffect(()=>{const Te=Se.get("locale");Te&&["zh","en"].includes(Te)&&be(Te)},[]);const Ce=jsxRuntimeExports.jsx(o$d,{children:jsxRuntimeExports.jsx(CircularProgress,{})});return jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:Ce,children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/issue-passport`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(IssuePassport,{})})}),jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/lost-passport`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(LostPassport,{})})}),jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/exchange-passport`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(ExchangePassport,{})})}),jsxRuntimeExports.jsx(Route,{path:"/accept-server",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(NodeVerifyOwner,{action:"accept-server"})})}),jsxRuntimeExports.jsx(Route,{path:"/gen-key-pair/",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(GenKeyPair,{})})}),jsxRuntimeExports.jsx(Route,{path:"/launch-blocklet/*",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(LaunchBlockletProvider,{children:jsxRuntimeExports.jsx(BlockletLauncher,{})})})}),jsxRuntimeExports.jsx(Route,{path:"/blocklets/restore/*",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(BlockletAppProvider,{children:jsxRuntimeExports.jsx(BlockletRestore,{})})})}),jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/invite`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(Invite,{})})}),jsxRuntimeExports.jsx(Route,{path:"/*",element:jsxRuntimeExports.jsx(ProtectedApp,{})})]})})}function AppWrapper(){const be=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";return jsxRuntimeExports.jsx(BrowserRouter,{history:history$1,basename:be,children:jsxRuntimeExports.jsx(Root,{children:jsxRuntimeExports.jsx(App,{})})})}const root=clientExports.createRoot(document.getElementById("root"));root.render(jsxRuntimeExports.jsx(AppWrapper,{}));const prefix=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";register(`${prefix}/service-worker.js`.replace(/\/+/g,"/"),{registrationOptions:{scope:prefix},registered(){console.info("Service worker has been registered.")},ready(){console.info("Service worker is active.")},cached(){console.info("Content has been cached for offline use.")},updatefound(){console.info("New content is downloading.")},updated(){console.info("New content is available; please refresh.")},offline(){console.info("No internet connection found. App is running in offline mode.")},error(be){console.error("Error during service worker registration:",be)}});export{$$4 as $,useNavigate as A,useSearchParams as B,CircularProgress as C,DialogContentText as D,constantExports$1 as E,useMediaQuery as F,Grid$1 as G,H$6 as H,libExports$7 as I,utilExports as J,Link$1 as K,Link as L,BlockletAppAvatar as M,Box as N,isEmpty as O,et as P,FormControl as Q,InputLabel as R,Select as S,Typography as T,MenuItem as U,Checkbox as V,WrappedDidAddress as W,Alert as X,formatError as Y,o$d as Z,CheckIcon$2 as _,useSubscription as a,Menu as a$,propTypesExports as a0,api as a1,merge as a2,cloneDeep as a3,IconButton as a4,R$3 as a5,ListItemSecondaryAction as a6,List as a7,ListItem as a8,ListItemText as a9,getBlockletMetaUrl as aA,ErrorBoundary as aB,k$1 as aC,formatRegistryLogoPath as aD,Icon as aE,ListItemIcon as aF,createSvgIcon as aG,ensureDomainAliases as aH,getIp as aI,normalizePathPrefix as aJ,sortBy as aK,stringSortHandlerAsc as aL,getAccessUrl as aM,history$1 as aN,semver as aO,useReactive as aP,useAsyncEffect as aQ,InfoOutlinedIcon as aR,sleep as aS,checkInputByType as aT,FormControlLabel as aU,Stack$1 as aV,useAsync as aW,axios as aX,shouldCheckDomainStatus as aY,formatMountPoint as aZ,urlPathFriendly as a_,getServerUrl as aa,useBlockletAppContext as ab,getAuthMethodExports as ac,ConfirmDialog as ad,getRestoredAccessUrl as ae,setSessionToken as af,isEqual as ag,isServerlessBlockletInstalled as ah,Debug as ai,getWsClient as aj,useQuery as ak,getPathPrefix as al,Global as am,Routes as an,Route as ao,Navigate as ap,HeaderAddon as aq,SessionContext as ar,css as as,$$5 as at,formatToDatetime as au,alpha$1 as av,getLaunchAgreementUrl as aw,axios$2 as ax,useSessionContext$1 as ay,Tooltip as az,constantExports as b,composeClasses as b$,checkIsWildcardDomain as b0,Popover as b1,Card as b2,formatToDate as b3,sortDomains as b4,M$9 as b5,Collapse as b6,CheckCircle as b7,styled as b8,isUrl as b9,isInstalling as bA,Badge as bB,createAppPassportSvg as bC,NavLink as bD,__vitePreload as bE,SetCache as bF,arrayIncludes$1 as bG,arrayIncludesWith as bH,cacheHas as bI,baseUniq as bJ,baseFlatten as bK,baseRest as bL,last as bM,arrayFilter as bN,isArrayLikeObject as bO,t$a as bP,isDownloading as bQ,getBlockletUrl as bR,getBlockletUrlParams as bS,ButtonBase as bT,memoTheme as bU,emphasize as bV,generateUtilityClasses$1 as bW,generateUtilityClass$1 as bX,useDefaultProps as bY,useSlotProps as bZ,clsx$1 as b_,__awaiter as ba,__generator as bb,__spread as bc,getDefaultExportFromCjs$1 as bd,U$3 as be,dayjs$1 as bf,Divider as bg,isCertificateMatch as bh,FormHelperText as bi,FormGroup as bj,o$a as bk,NodeContext as bl,useParams as bm,useNodeContext$1 as bn,uniqBy as bo,libExports$3 as bp,B$4 as bq,a$7 as br,l$h as bs,BlockletAvatar as bt,ClickAwayListener as bu,f$9 as bv,createPassportSvg as bw,getWalletType as bx,useCreation as by,BlockletAdminRoles as bz,createCompounder as c,en$2 as c$,__read as c0,toSlotDomain as c1,omit as c2,fixBlocklet as c3,isProtectedRole as c4,baseOrderBy as c5,isArray$1 as c6,rootShouldForwardProp as c7,useFormControl as c8,createChainedFunction$1 as c9,Container$3 as cA,K$3 as cB,getLauncherBaseURL as cC,SvgIcon as cD,Buffer$1 as cE,parseURL as cF,withHttps as cG,useLaunchBlockletContext as cH,z$3 as cI,authorize as cJ,ArrowForwardIcon as cK,isNewStoreUrl as cL,getAccessibleUrl as cM,getBlockletLogoUrl as cN,t as cO,M$7 as cP,__spreadArrays as cQ,__assign as cR,h$5 as cS,useLocation as cT,l$7 as cU,useMount as cV,e$d as cW,formatDateTime as cX,getExplorerLink as cY,patchJsxToLocale as cZ,flat as c_,useSlot as ca,capitalize$1 as cb,SwitchBase as cc,createSimplePaletteValueFilter as cd,useControlled as ce,useForkRef as cf,useId as cg,getBlockletUrls as ch,defaultCheckAccessible as ci,urlEvaluationExports as cj,memoize as ck,ButtonGroupContext as cl,ButtonGroupButtonContext as cm,useNotificationContext as cn,utilExports$1 as co,NotificationList as cp,useRequest as cq,useMemoizedFn as cr,isNumber$3 as cs,useLatest as ct,dayjs as cu,d$f as cv,Avatar as cw,isFromWallet as cx,usePassportId as cy,isFunction$2 as cz,useBlockletsContext as d,afterRead as d$,Q$3 as d0,getSessionToken as d1,LinearProgress as d2,SvgLogo as d3,isNumber$1 as d4,useEnhancedEffect$1 as d5,debounce$2 as d6,ownerWindow as d7,useRtl as d8,KeyboardArrowLeft as d9,requireReactDom as dA,isObject$3 as dB,require$$0$2 as dC,require$$3$2 as dD,requireConstant$1 as dE,$e as dF,noop$1 as dG,Button as dH,Paper as dI,MenuList as dJ,Popper as dK,_inheritsLoose$1 as dL,ReactDOM as dM,_objectWithoutPropertiesLoose$1 as dN,TransitionGroup as dO,ENTERED as dP,ENTERING as dQ,EXITING as dR,TransitionGroupContext as dS,Transition as dT,config$1 as dU,popperGenerator as dV,eventListeners as dW,popperOffsets$1 as dX,computeStyles$1 as dY,applyStyles$1 as dZ,afterMain as d_,KeyboardArrowRight as da,useEventCallback$1 as db,ownerDocument as dc,l$p as dd,getCommonHtmlTitle as de,HelmetExport as df,requireReact as dg,i$d as dh,oe$2 as di,ne$2 as dj,InfoIcon$2 as dk,upperFirst as dl,camelCase as dm,Skeleton as dn,R$4 as dp,isArrayLike as dq,baseIteratee as dr,keys as ds,toInteger as dt,baseFindIndex as du,commonjsGlobal as dv,getAugmentedNamespace as dw,emotionUtils_browser_esm as dx,requireJsxRuntime as dy,requirePropTypes as dz,useAsyncRetry as e,mergeThemeOptions as e$,afterWrite as e0,arrow$1 as e1,auto as e2,basePlacements as e3,beforeMain as e4,beforeRead as e5,beforeWrite as e6,bottom as e7,clippingParents as e8,createPopper as e9,requireLib$9 as eA,requireLib$7 as eB,requireConstant$2 as eC,requireUrlPathFriendly as eD,b$8 as eE,data$t as eF,global$2 as eG,hoistStatics as eH,isEqual$3 as eI,usePreviousProps as eJ,setRef as eK,ClearIcon as eL,ArrowDropDownIcon as eM,Chip as eN,filledInputClasses as eO,inputBaseClasses as eP,outlinedInputClasses as eQ,inputClasses as eR,ListContext as eS,getListItemButtonUtilityClass as eT,listItemButtonClasses as eU,emotionReact_browser_esm as eV,emotionCache_browser_esm as eW,cloneDeep$1 as eX,forceReflow as eY,_extends$2 as eZ,toString$2 as e_,createPopper$1 as ea,detectOverflow as eb,end as ec,flip$1 as ed,hide$1 as ee,left as ef,main as eg,modifierPhases as eh,offset$1 as ei,placements as ej,popper as ek,preventOverflow$1 as el,read as em,reference as en,right as eo,start as ep,top as eq,variationPlacements as er,viewport as es,write as et,requireReactIs as eu,emotionStyled_browser_esm as ev,emotionSerialize_esm as ew,emotionSheet_esm as ex,process$1 as ey,requireLib$8 as ez,useTheme as f,requireBrowser$f as f$,StyledEngineProvider as f0,ThemeProvider as f1,ThemeProvider$3 as f2,s$2 as f3,CloseIcon as f4,isString$1 as f5,createTheme as f6,createAxios as f7,pick as f8,omitBy as f9,requireNormalizePathPrefix as fA,debounce as fB,useInterval as fC,formatTime as fD,CloseFullscreenIcon as fE,S$8 as fF,TablePagination as fG,parseAvatar as fH,__rest as fI,useEffectWithTarget$1 as fJ,__values as fK,tmp as fL,useUpdate as fM,K$5 as fN,I$5 as fO,p$a as fP,ee$1 as fQ,requireUtil$8 as fR,requireObjectKeys$1 as fS,requireShams$1 as fT,requireCallBound as fU,requireEsObjectAtoms as fV,requireDefineDataProperty as fW,requireHasPropertyDescriptors as fX,requireCallBind as fY,requireCallBound$1 as fZ,requireSafeBuffer$1 as f_,MenuIcon as fa,useDebounceFn as fb,Dialog as fc,OutlinedInput as fd,data as fe,Drawer as ff,parseQuery as fg,parseFilename as fh,stringifyParsedURL as fi,Grow as fj,Wt as fk,InputAdornment as fl,tooltipClasses as fm,e$a as fn,requireEngine as fo,__spreadArray as fp,useEventListener as fq,ae$4 as fr,getTargetElement as fs,clamp as ft,extractEventHandlers as fu,isFocusVisible as fv,isHostComponent as fw,lighten as fx,darken as fy,slotShouldForwardProp as fz,g$e as g,isServerless as g$,requireElliptic as g0,requireCryptoBrowserify as g1,requireRipemd160 as g2,requireLib$6 as g3,requireUtil as g4,shouldForwardProp as g5,resolveComponentProps as g6,l as g7,getInviteLink as g8,copy as g9,useTimeout as gA,Fade as gB,FocusTrap as gC,DialogActions as gD,dialogClasses as gE,DialogContent as gF,localizedFormatPlugin as gG,n$8 as gH,purify as gI,Buffer$1$1 as gJ,Q$2 as gK,requireJsonStableStringify as gL,requireSemver as gM,requireBrowser$5 as gN,require$$0$1 as gO,requireIsAbsoluteUrl as gP,requireDist$2 as gQ,requireBrowser$3 as gR,require$$3 as gS,resolveProps as gT,useThemeProps as gU,defaultTheme$1 as gV,THEME_ID as gW,isIndex as gX,useTheme$4 as gY,objectAssign as gZ,__extends as g_,e$c as ga,getIssuePassportLink as gb,uniqBy$1 as gc,isNodeOwner as gd,isSelf as ge,Q$1 as gf,createPassportSvgExports as gg,getBlockletAccessibleUrl as gh,A$1 as gi,createPassportSvg$1 as gj,requireMs as gk,E$2 as gl,trim as gm,BlockletSDK as gn,getBlockletSDK as go,MoreHorizIcon as gp,identity$1 as gq,arrayEach as gr,baseEach as gs,arrayMap as gt,baseMap as gu,baseForOwn as gv,isPlainObject$2 as gw,require$$1$6 as gx,throttle$2 as gy,isUndefined$1 as gz,get$1 as h,f$3 as h$,isFunction$1 as h0,omit$1 as h1,TableContext as h2,Tablelvl2Context as h3,d$g as h4,useUnmount as h5,isDidDomainOrIpEchoDomain as h6,ExpandLess as h7,validateDomain as h8,requireDist as h9,isBrowser$1 as hA,root$1 as hB,isNil$1 as hC,require$$3$1 as hD,requireHoistNonReactStatics_cjs as hE,_assertThisInitialized$1 as hF,reactDomExports as hG,loadIcon as hH,withoutLeadingSlash as hI,fetchSvgAsPng as hJ,blobToFile as hK,withoutTrailingSlash as hL,At as hM,t$f as hN,i as hO,R$7 as hP,browserExports$1 as hQ,highlightExports as hR,funcExports as hS,data$y as hT,useSnackbar as hU,common$3 as hV,green as hW,amber as hX,SnackbarContent as hY,t$1 as hZ,Y as h_,requireAxios as ha,trim$1 as hb,requirePRetry as hc,TableCell as hd,xe$1 as he,getSystemDomains as hf,copyArray as hg,baseIndexOf as hh,ke as hi,useAppLogo as hj,getTransferAppLink as hk,requireBn as hl,require$$2 as hm,uniq as hn,updateWindowEnv as ho,M$3 as hp,isNil as hq,requireBase32 as hr,jt as hs,withTrailingSlash as ht,data$B as hu,keyframes as hv,requireAssertString as hw,isEmail as hx,isURL as hy,createUseStorageState as hz,filesize as i,orange as i$,b as i0,g$9 as i1,withErrorBoundary as i2,z$2 as i3,M$4 as i4,De as i5,G as i6,xe as i7,useBlockletLogo as i8,isPlainObject$1 as i9,require$$4 as iA,flatten as iB,trimEnd as iC,DialogTitle as iD,base32Exports as iE,flatExports as iF,Et as iG,AxiosError as iH,require$$0$8 as iI,require$$2$3 as iJ,require$$1$5 as iK,require$$5 as iL,require$$6$2 as iM,require$$7 as iN,require$$0$7 as iO,requireBs58 as iP,requireBase64Url as iQ,requireUtf8 as iR,requireSha3$4 as iS,requireHash$2 as iT,requireNaclFast as iU,requireBrowser$h as iV,requireAccount as iW,requireHash as iX,requireHelpers as iY,I$9 as iZ,isNull as i_,Toolbar as ia,_setPrototypeOf as ib,isString$3 as ic,FormLabel as id,RelativeTime as ie,isIncludeActivity as ig,isUserActor as ih,ActorAvatar as ii,SendComponentAvatar as ij,Activity as ik,NotificationContent$1 as il,AvatarGroup as im,requireCjs as io,useTheme$2 as ip,baseAssignValue as iq,isValidClusterSize as ir,extractStatusUrlFromNextWorkflow as is,pWaitFor as it,hasRequiredSteps as iu,getStoreList as iv,commonjsRequire as iw,require_interface as ix,requireHasown as iy,requireBrowser as iz,jsxRuntimeExports as j,purple as j0,useStore as j1,createStore as j2,create$1 as j3,t$g as j4,clientExports as j5,gt as j6,retry as j7,isNetworkError as j8,requirePTimeout as j9,n$5 as ja,Modal as jb,GlobalStyles$2 as jc,useSize as jd,prettyMs as k,formatLocale as l,T$8 as m,useSessionContext as n,o$f as o,p$3 as p,useSetState as q,reactExports as r,styled$3 as s,TextField as t,useNodeContext as u,n$4 as v,lo as w,getWebWalletUrl as x,joinURL as y,withQuery as z};
|