@abtnode/webapp 1.16.29-beta-2eaf40bc → 1.16.29-beta-112566d5
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/{Add-3VAJlzWu.js → Add-LTC9ZPHh.js} +1 -1
- package/dist/assets/{ArrowDropDown-DehQx6JH.js → ArrowDropDown-B9TabCUQ.js} +1 -1
- package/dist/assets/{Autocomplete-Dd8-Wnl0.js → Autocomplete-DA6il_1i.js} +1 -1
- package/dist/assets/{Breadcrumbs-B-3iNfJV.js → Breadcrumbs-Ch6zvYxu.js} +1 -1
- package/dist/assets/{ButtonGroup-4dUIbekw.js → ButtonGroup-reI4zw37.js} +1 -1
- package/dist/assets/{CheckCircle-DQOA10VV.js → CheckCircle-ColTEZil.js} +1 -1
- package/dist/assets/{ChevronLeft-BovE6bSi.js → ChevronLeft-n-Lu674N.js} +1 -1
- package/dist/assets/{ChevronRight-COT0_GJ0.js → ChevronRight-BQAiuHlI.js} +1 -1
- package/dist/assets/{Close-DSOnajKv.js → Close-BHCZ0Bw1.js} +1 -1
- package/dist/assets/Delete-CUte0jEQ.js +1 -0
- package/dist/assets/DeleteOutline-Aff6fJia.js +1 -0
- package/dist/assets/{Done-C6j7V5dY.js → Done-Z8bUrs-4.js} +1 -1
- package/dist/assets/{Edit-UiTtw7ED.js → Edit-CAjWk028.js} +1 -1
- package/dist/assets/{EditIcon-D-Dhs8bv.js → EditIcon-5cOXjWt1.js} +1 -1
- package/dist/assets/{ExpandMore-CBwUEwtf.js → ExpandMore-D_XvdPjT.js} +1 -1
- package/dist/assets/{FilterList-BfkrQFl0.js → FilterList-BY5T-hLB.js} +4 -4
- package/dist/assets/{Google-U8HcYuII.js → Google-8ss7z7oB.js} +1 -1
- package/dist/assets/{Https-DJQ_Uk5c.js → Https-CRlx_3vN.js} +1 -1
- package/dist/assets/{InputAdornment-xbC4GBmg.js → InputAdornment-C1r6p7SP.js} +1 -1
- package/dist/assets/{InputLabel-Dyg2n4KM.js → InputLabel-CExB3j6D.js} +1 -1
- package/dist/assets/{LastPage-g6ViU_79.js → LastPage-BlukH42P.js} +1 -1
- package/dist/assets/{Launch-CstW8TMa.js → Launch-yLPtDPJO.js} +1 -1
- package/dist/assets/{Link-Bz3bTK5Z.js → Link-CYdb8X6z.js} +1 -1
- package/dist/assets/{LoadingButton-yzy8vaq4.js → LoadingButton-Cgv6BHxA.js} +1 -1
- package/dist/assets/{LockIcon-C86uaqg6.js → LockIcon-BrZi13Aj.js} +1 -1
- package/dist/assets/{Loop-D_KRqy9W.js → Loop-BZATCgNU.js} +1 -1
- package/dist/assets/{MoreVert-BB46cKFe.js → MoreVert-NYc6koTI.js} +1 -1
- package/dist/assets/{Pagination-JhNJfD4t.js → Pagination-Bpr_MZG3.js} +1 -1
- package/dist/assets/{Public-BjhCkcv9.js → Public-DJVLXFlr.js} +1 -1
- package/dist/assets/{SchemaReference.es-HI-2_6NF.js → SchemaReference.es-CjPEyQC-.js} +1 -1
- package/dist/assets/{Search-rqHI-c1S.js → Search-Dz7VM7PV.js} +1 -1
- package/dist/assets/{Select-BioDM9Sd.js → Select-Bmr7GD2T.js} +2 -2
- package/dist/assets/{Skeleton-DZ26ugSB.js → Skeleton-OnJKCtYu.js} +5 -5
- package/dist/assets/{Slider-CIc45JJ9.js → Slider-CGhiUOe5.js} +1 -1
- package/dist/assets/{Stepper-BXZWzSgf.js → Stepper-CpM3LrYF.js} +1 -1
- package/dist/assets/TextField-BtpuNQ33.js +1 -0
- package/dist/assets/{ToggleButtonGroup-DRfzhnnx.js → ToggleButtonGroup-BoN6aVCj.js} +1 -1
- package/dist/assets/{ViewList-Cm-dAQhY.js → ViewList-Cw1uswUG.js} +1 -1
- package/dist/assets/actions-634dtGmR.js +11 -0
- package/dist/assets/{actions-Bi_LOjPn.js → actions-DGOwZ57C.js} +1 -1
- package/dist/assets/{agreement-DPo8tjJ3.js → agreement-C6HTWVte.js} +1 -1
- package/dist/assets/api-Bo8RrpVh.js +1 -0
- package/dist/assets/{app-avatar-CF6TIYj9.js → app-avatar-B_rQHqOY.js} +1 -1
- package/dist/assets/{audit-logs-DK4wA_bl.js → audit-logs-BzdTb6u7.js} +1 -1
- package/dist/assets/blocklet-CtCpIFeQ.js +1 -0
- package/dist/assets/{brace-fold.es-DwWLXH4V.js → brace-fold.es-D_r4-J2g.js} +1 -1
- package/dist/assets/{bundle-avatar-B6arcSZZ.js → bundle-avatar-Ci6-oNkL.js} +1 -1
- package/dist/assets/{chart-DVdOH_wE.js → chart-D7fTlbH5.js} +1 -1
- package/dist/assets/{click-to-copy-BwGLfwQv.js → click-to-copy-BwIQhcuz.js} +1 -1
- package/dist/assets/{closebrackets.es-piHSryNk.js → closebrackets.es-BpVvbcYW.js} +1 -1
- package/dist/assets/{codemirror.es-BX7gc_SI.js → codemirror.es-BvooWNLt.js} +1 -1
- package/dist/assets/{comment.es-kfTcaTaN.js → comment.es-BiPY7IRp.js} +1 -1
- package/dist/assets/{config-navigation-BjBcMzix.js → config-navigation-eG4f_Oyq.js} +5 -5
- package/dist/assets/{delete-confirm-B6Tu_cjp.js → delete-confirm-I7gjtI2L.js} +1 -1
- package/dist/assets/detail-BF4hjmdI.js +58 -0
- package/dist/assets/{dialog.es-qczXxs5i.js → dialog.es-B2-FUZME.js} +1 -1
- package/dist/assets/{download-hCU_NL5Y.js → download-rpw9Qgoj.js} +1 -1
- package/dist/assets/{foldgutter.es-CNjZdGfG.js → foldgutter.es-8iFRTP0a.js} +1 -1
- package/dist/assets/getValidReactChildren-9TX6zfai.js +1 -0
- package/dist/assets/{hint.es-BcTOFmVv.js → hint.es-CHvxg9mK.js} +1 -1
- package/dist/assets/{hint.es2-Po_QXCs2.js → hint.es2-hI3iweAO.js} +1 -1
- package/dist/assets/{iframe-D60s0j4M.js → iframe-BqS-rkNh.js} +1 -1
- package/dist/assets/{index-By48hREf.js → index--nbglgQ3.js} +1 -1
- package/dist/assets/{index-rYvrv8TX.js → index-B03uYmVa.js} +1 -1
- package/dist/assets/index-B3KTzQCX.js +21 -0
- package/dist/assets/{index--pVRVvBB.js → index-B46J_78A.js} +1 -1
- package/dist/assets/{index-DS0UcZlk.js → index-BAQzBJFH.js} +3 -3
- package/dist/assets/{index-CfMrG-6m.js → index-BIBIrwyW.js} +1 -1
- package/dist/assets/index-BJ5g3x0B.js +1 -0
- package/dist/assets/{index-p_USl--w.js → index-BMAflILV.js} +1 -1
- package/dist/assets/{index-B_G8iSj9.js → index-BNcA--Hd.js} +1 -1
- package/dist/assets/{index-CJQiOTRD.js → index-BOmHLMq9.js} +1 -1
- package/dist/assets/{index-ClJrGzyV.js → index-BahC2Tvl.js} +1 -1
- package/dist/assets/{index-20iGb6mA.js → index-Binus2lr.js} +1 -1
- package/dist/assets/{index-B6BXxNti.js → index-BkAFfbQ9.js} +8 -8
- package/dist/assets/{index-C2qpMC0j.js → index-BqAzzrC8.js} +1 -1
- package/dist/assets/{index-Dpr1-GCJ.js → index-C1sxwK1q.js} +2 -2
- package/dist/assets/{index-CS1WMiVI.js → index-C3DKd4Ro.js} +17 -17
- package/dist/assets/{index-CHD6Sawv.js → index-C8ojF8vN.js} +1 -1
- package/dist/assets/{index-T3bFNwLt.js → index-CD_6QFg_.js} +1 -1
- package/dist/assets/{index-DWoEF0Xz.js → index-CKd5FqHo.js} +1 -1
- package/dist/assets/{index-D6BTN5bJ.js → index-CUmTKs9Z.js} +10 -10
- package/dist/assets/{index-C2D98lgI.js → index-CX7wbZNb.js} +1 -1
- package/dist/assets/{index-CjpSyZA2.js → index-C_7vG059.js} +1 -1
- package/dist/assets/{index-wtjGA_La.js → index-Ca4ojQR0.js} +5 -5
- package/dist/assets/{index-CYa2z0tY.js → index-CblMKkQZ.js} +1 -1
- package/dist/assets/{index-D79trrES.js → index-CiOtSWYB.js} +1 -1
- package/dist/assets/{index-pZ4wuW0n.js → index-CpP8o0B-.js} +1 -1
- package/dist/assets/{index-CLxOAjUq.js → index-CroucXQb.js} +1 -1
- package/dist/assets/{index-BpaAmbjH.js → index-CvBzQQ4d.js} +7 -7
- package/dist/assets/{index-FuyWc2kY.js → index-CzSKzhki.js} +12 -14
- package/dist/assets/{index-CuSKWisM.js → index-D-L4Ck2v.js} +1 -1
- package/dist/assets/{index-CSHzjJLI.js → index-D5Rsk7dq.js} +1 -1
- package/dist/assets/{index-BOVEdIid.js → index-D5dR4ANx.js} +1 -1
- package/dist/assets/{index-DZMLm25q.js → index-DHoU0zZM.js} +7 -7
- package/dist/assets/{index-BlJ5mRs4.js → index-DKQUFPxk.js} +9 -9
- package/dist/assets/{index-BqZEyDkY.js → index-DkiVDcrH.js} +1 -1
- package/dist/assets/{index-G0ifYRE5.js → index-Dn-_3zh6.js} +1 -1
- package/dist/assets/{index-CjoxtNQO.js → index-Dp_bcKBe.js} +1 -1
- package/dist/assets/index-Dv4oZdvT.js +54 -0
- package/dist/assets/{index-CtJUE_Ce.js → index-Dww51D0I.js} +1 -1
- package/dist/assets/{index-Dv0PfLaH.js → index-G-HOuVIA.js} +1 -1
- package/dist/assets/{index-D7CruCrK.js → index-KlCiTQS2.js} +3 -3
- package/dist/assets/{index-CgFNSj9q.js → index-PpzEIdrF.js} +1 -1
- package/dist/assets/{index-D5mvFHwK.js → index-i7GCH6dr.js} +1 -1
- package/dist/assets/{index-Q8ecyTb-.js → index-iGKrAz05.js} +1 -1
- package/dist/assets/{index.es-BQGldbXt.js → index.es-DYaTMj-N.js} +1 -1
- package/dist/assets/{index.esm-DqRgonGB.js → index.esm-Bm9YBLeo.js} +1 -1
- package/dist/assets/{info-addon.es-CYKOi7kz.js → info-addon.es-Do7YC0D2.js} +1 -1
- package/dist/assets/{info.es-CKNL-yym.js → info.es-CFNCQt9o.js} +1 -1
- package/dist/assets/{install-from-url-DPfj2cnI.js → install-from-url-BjHwxVqE.js} +1 -1
- package/dist/assets/{invitation-BY43eo5D.js → invitation-CeRy7vzg.js} +5 -5
- package/dist/assets/{is-path-prefix-equal-OAOH-qOd.js → is-path-prefix-equal-CQJCYqAH.js} +1 -1
- package/dist/assets/{isEqual-C32HztcX.js → isEqual-BsT1dZPE.js} +1 -1
- package/dist/assets/{item-CDyVRhvg.js → item-ERkcgOMO.js} +1 -1
- package/dist/assets/{javascript.es-BYVV5293.js → javascript.es-CpC9TJXL.js} +1 -1
- package/dist/assets/{jump-to-line.es-jsNifFMh.js → jump-to-line.es-CylECZ7R.js} +1 -1
- package/dist/assets/{jump.es-BzHWkDXH.js → jump.es-DLrluqHg.js} +1 -1
- package/dist/assets/{line-BZys0zer.js → line-C_2Hrpy1.js} +4 -4
- package/dist/assets/{lint.es-BFWMqOv1.js → lint.es-BKML4shq.js} +1 -1
- package/dist/assets/{lint.es2-CUt2AauZ.js → lint.es2-BF1HKCYF.js} +1 -1
- package/dist/assets/{lint.es3-di_bUcOb.js → lint.es3-C2QSNF0z.js} +1 -1
- package/dist/assets/{list-header-d25I2byh.js → list-header-QjKUcFTw.js} +1 -1
- package/dist/assets/{log-DTxt_dGq.js → log-CJHqgb2_.js} +1 -1
- package/dist/assets/{lottie-CVFkVbsZ.js → lottie-D3czc7v1.js} +1 -1
- package/dist/assets/{matchbrackets.es-DVkRqCgH.js → matchbrackets.es-e9aBYOv_.js} +1 -1
- package/dist/assets/{memory-Bv9qf5X_.js → memory-CsXj8UaO.js} +1 -1
- package/dist/assets/{mode.es-CifbNh02.js → mode.es-5cZhDtkZ.js} +1 -1
- package/dist/assets/{mode.es2-cIWGTWZh.js → mode.es2-CodDnKLI.js} +1 -1
- package/dist/assets/{mode.es3-aQZkTGg6.js → mode.es3-BuILqhlX.js} +1 -1
- package/dist/assets/{onlineParser.es-DLUHNAdN.js → onlineParser.es-C6-JEN2E.js} +1 -1
- package/dist/assets/{overview-6t6Ij2OO.js → overview-DAw_INYh.js} +2 -2
- package/dist/assets/{react-Rgfin0TQ.js → react-BzW-kb6J.js} +3 -3
- package/dist/assets/{redux-I4eB06Ek.js → redux-JVkClYgC.js} +1 -1
- package/dist/assets/{resource-dialog-BqDlfetI.js → resource-dialog-D78t25J3.js} +2 -2
- package/dist/assets/{runtime-KPnZVG0c.js → runtime-W4J04CkM.js} +1 -1
- package/dist/assets/{search.es-BBE6mbEs.js → search.es-bB_x3JL4.js} +1 -1
- package/dist/assets/{searchcursor.es-BijniVLl.js → searchcursor.es-DgL4C9GF.js} +1 -1
- package/dist/assets/service-UeJj__8r.js +1 -0
- package/dist/assets/{shorten-label-Io_PRP3C.js → shorten-label-9iEtol8i.js} +1 -1
- package/dist/assets/{show-hint.es-DS-7hlNh.js → show-hint.es-CTIxfu4n.js} +1 -1
- package/dist/assets/{slicedToArray-BXSVsBoG.js → slicedToArray-C-KIkXYs.js} +1 -1
- package/dist/assets/{spaces-DxJMOXk2.js → spaces-BDlrJxSc.js} +1 -1
- package/dist/assets/{sublime.es-7jzC1I8A.js → sublime.es-BIpvOaG_.js} +1 -1
- package/dist/assets/{switch-control-BemP3Qoi.js → switch-control-BiRMcVKp.js} +1 -1
- package/dist/assets/{table-icons-D4d7sHXC.js → table-icons-Bx8jlz8p.js} +9 -9
- package/dist/assets/{tag-DJbcwSVc.js → tag-BsLtzNgc.js} +1 -1
- package/dist/assets/{team-FBszwXwa.js → team-Ct35NqwR.js} +1 -1
- package/dist/assets/toUpper-DV-JI2EJ.js +1 -0
- package/dist/assets/{traffic-IVSZlM0h.js → traffic-BEKDCWfv.js} +5 -5
- package/dist/assets/{url-evaluation-D7EkdGbI.js → url-evaluation-Ctc4DSd9.js} +4 -4
- package/dist/assets/{url-join-Bw5bTuVj.js → url-join-4YCGlq9R.js} +1 -1
- package/dist/assets/use-blocklet-info-for-connect-did-spaces-B1om2dOQ.js +1 -0
- package/dist/assets/{useLocalStorage-HB6kerLO.js → useLocalStorage-02uWRCTE.js} +1 -1
- package/dist/assets/{util-IfcYVLEi.js → util-Bl1tgqEu.js} +1 -1
- package/dist/assets/{wait-container-c5_W7fTC.js → wait-container-CUarPEd7.js} +1 -1
- package/dist/assets/withStyles-mwdAF397.js +1 -0
- package/dist/assets/{wrap-locale-CTfg_3mB.js → wrap-locale-DDhOh8hH.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +1 -1
- package/dist/assets/Delete-B0dIMgAO.js +0 -1
- package/dist/assets/DeleteOutline-BqV9pNFr.js +0 -1
- package/dist/assets/DeleteOutline-C3yNjgmc.js +0 -1
- package/dist/assets/TextField-BKw9m9nx.js +0 -1
- package/dist/assets/actions-DMSeOF_9.js +0 -11
- package/dist/assets/api-DQe-yphm.js +0 -1
- package/dist/assets/blocklet-BJt-raxF.js +0 -1
- package/dist/assets/detail-DXun71hQ.js +0 -58
- package/dist/assets/getValidReactChildren-Bfzg_2yP.js +0 -1
- package/dist/assets/index--tmgIfny.js +0 -1
- package/dist/assets/index-5ep8c_KG.js +0 -54
- package/dist/assets/index-rBCOxvDw.js +0 -21
- package/dist/assets/service-9ctjdI1h.js +0 -1
- package/dist/assets/toUpper-DcVgFeb6.js +0 -1
- package/dist/assets/use-blocklet-info-for-connect-did-spaces-D16GfTTc.js +0 -1
- package/dist/assets/withStyles-C51kZpfM.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as y}from"./index-
|
|
1
|
+
import{g as y}from"./index-C1sxwK1q.js";var c={};function u(e,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=i||{},this._maxRetryTime=i&&i.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var T=u;u.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};u.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};u.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var i=new Date().getTime();if(e&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var t=this._timeouts.shift();if(t===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),t=this._cachedTimeouts.slice(-1);else return!1;var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},t),this._options.unref&&this._timer.unref(),!0};u.prototype.attempt=function(e,i){this._fn=e,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var t=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){t._operationTimeoutCb()},t._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};u.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};u.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};u.prototype.start=u.prototype.try;u.prototype.errors=function(){return this._errors};u.prototype.attempts=function(){return this._attempts};u.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},i=null,t=0,r=0;r<this._errors.length;r++){var n=this._errors[r],o=n.message,a=(e[o]||0)+1;e[o]=a,a>=t&&(i=n,t=a)}return i};(function(e){var i=T;e.operation=function(t){var r=e.timeouts(t);return new i(r,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var n in t)r[n]=t[n];if(r.minTimeout>r.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var o=[],a=0;a<r.retries;a++)o.push(this.createTimeout(a,r));return t&&t.forever&&!o.length&&o.push(this.createTimeout(a,r)),o.sort(function(s,m){return s-m}),o},e.createTimeout=function(t,r){var n=r.randomize?Math.random()+1:1,o=Math.round(n*Math.max(r.minTimeout,1)*Math.pow(r.factor,t));return o=Math.min(o,r.maxTimeout),o},e.wrap=function(t,r,n){if(r instanceof Array&&(n=r,r=null),!n){n=[];for(var o in t)typeof t[o]=="function"&&n.push(o)}for(var a=0;a<n.length;a++){var s=n[a],m=t[s];t[s]=(function(p){var f=e.operation(r),h=Array.prototype.slice.call(arguments,1),l=h.pop();h.push(function(_){f.retry(_)||(_&&(arguments[0]=f.mainError()),l.apply(this,arguments))}),f.attempt(function(){p.apply(t,h)})}).bind(t,m),t[s].options=r}}})(c);var v=c;const R=y(v);export{R as a,v as r};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aK as S,aL as _,j as e,bm as D,r as p,f as O,m as u,aZ as U,a_ as E,U as F,
|
|
1
|
+
import{aK as S,aL as _,j as e,bm as D,r as p,f as O,m as u,aZ as U,a_ as E,U as F,cc as V,B as $,C as k,be as K,a7 as Z,a8 as R,N as G,cd as w,ce as A,cf as L,a9 as I,a6 as P,ax as T,a2 as M,O as H,at as J,n as Q,P as i,o as W,cg as X}from"./index-C1sxwK1q.js";import{f as Y}from"./index-D9k2I5J1.js";import{P as ee}from"./Pagination-Bpr_MZG3.js";import"./LastPage-BlukH42P.js";var x={},te=_;Object.defineProperty(x,"__esModule",{value:!0});var g=x.default=void 0,ie=te(S()),ae=e;g=x.default=(0,ie.default)((0,ae.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");function h({api:a,paging:o,loading:c,notifications:s,updateNotifications:r,teamDid:j}){const{inService:d}=D(),[m,q]=p.useState(!0),[y,b]=p.useState(!1),{t:n,locale:N}=p.useContext(O),z=async()=>{b(!0);const t=s.filter(l=>l.read===!1).map(l=>l.id).join(",");d?await a.readBlockletNotifications({input:{id:t,teamDid:j}}):await a.readNotifications({input:{id:t}}),r(),b(!1)},v=async t=>{d?await a.readBlockletNotifications({input:{id:t,teamDid:j}}):await a.readNotifications({input:{id:t}}),r()},f=m?s:s.filter(t=>t.read===!1),B=s.filter(t=>t.read===!1).length>0,C=t=>e.jsxs("div",{className:"title",children:[t.title," ",e.jsx("span",{className:"time-ago",title:J(t.createdAt,N),children:Y(new Date(t.createdAt),W(N))})]});return e.jsxs(se,{children:[e.jsxs(u,{component:"h2",variant:"h4",className:"page-header",color:"textPrimary",children:[n("notification.title"),e.jsxs(u,{component:"span",className:"notification-actions",children:[e.jsx(U,{control:e.jsx(E,{checked:m,onChange:()=>q(!m),name:"showRead",color:"primary"}),label:n("notification.showRead")}),e.jsx(F,{permission:d?"":"mutate_notification",role:d?V:[],children:B&&e.jsxs($,{disabled:y,onClick:z,className:"",children:[y&&e.jsx(k,{size:16,style:{marginRight:"1em"}}),n("notification.markAllAsRead")]})})]})]}),e.jsx(K,{}),e.jsxs(Z,{className:"notification-list",children:[c&&e.jsx(k,{size:[32,20],style:{opacity:"0.8",zIndex:1e4,position:"fixed",top:30,left:"50%",marginLeft:-16}}),f.length===0&&e.jsx(u,{component:"p",variant:"body1",className:"notification-tip",children:n("notification.empty")}),f.length>0&&f.map(t=>t.action?e.jsxs(R,{component:G,to:t.action,alignItems:"flex-start",disabled:t.read,children:[e.jsx(w,{className:"list-item-avatar",children:e.jsxs(e.Fragment,{children:[e.jsx(A,{children:t.entityType.substr(0,1).toUpperCase()}),e.jsx(L,{className:"notification-tag",status:t.severity})]})}),e.jsx(I,{className:"list-item-text",classes:{secondary:"list-item-secondary-text"},primary:C(t),secondary:t.description}),t.read===!1&&e.jsx(P,{children:e.jsx(T,{title:n("notification.markAsRead"),children:e.jsx(M,{edge:"end","aria-label":"delete",onClick:()=>v(t.id),size:"large",children:e.jsx(g,{})})})})]},t.id):e.jsxs(R,{alignItems:"flex-start",disabled:t.read,children:[e.jsx(w,{className:"list-item-avatar",children:e.jsxs(e.Fragment,{children:[e.jsx(A,{children:t.entityType.substr(0,1).toUpperCase()}),e.jsx(L,{className:"notification-tag",status:t.severity})]})}),e.jsx(I,{className:"list-item-text",classes:{secondary:"list-item-secondary-text"},primary:C(t),secondary:t.description}),t.read===!1&&e.jsx(P,{children:e.jsx(T,{title:n("notification.markAsRead"),children:e.jsx(M,{edge:"end","aria-label":"delete",onClick:()=>v(t.id),size:"large",children:e.jsx(g,{})})})})]},t.id))]}),!!f.length&&o.pageCount>1&&e.jsx(H,{mt:2,display:"flex",justifyContent:"flex-end",children:e.jsx(ee,{disabled:c,count:o.pageCount,page:o.page,onChange:(t,l)=>{r({page:l})}})})]})}const se=Q.div`
|
|
2
2
|
min-height: 60vh;
|
|
3
3
|
|
|
4
4
|
.page-header {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{cy as m,r as p,g as J}from"./index-C1sxwK1q.js";var M={},B={},u={},x={},g={};g.__esModule=!0;g.joinClassNames=void 0;g.joinClassNames=function(){for(var s=[],r=0;r<arguments.length;r++)s[r]=arguments[r];return s.filter(function(d){return d}).join(" ")};(function(s){var r=m&&m.__assign||function(){return r=Object.assign||function(n){for(var o,t=1,a=arguments.length;t<a;t++){o=arguments[t];for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(n[e]=o[e])}return n},r.apply(this,arguments)};s.__esModule=!0;var d=p,i=g,v=function(n){var o=n.className,t=n.maxHeight,a=n.color,e=n.lineSpacing,l=e===void 0?"0.7em":e,c=n.style,f={maxHeight:t,width:"100%",height:"1em",backgroundColor:a,marginTop:l};return d.createElement("div",{className:i.joinClassNames("text-row",o),style:r(r({},f),c)})};s.default=v})(x);var P={};(function(s){var r=m&&m.__assign||function(){return r=Object.assign||function(n){for(var o,t=1,a=arguments.length;t<a;t++){o=arguments[t];for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(n[e]=o[e])}return n},r.apply(this,arguments)};s.__esModule=!0;var d=p,i=g,v=function(n){var o=n.className,t=n.style,a=n.color,e={backgroundColor:a,borderRadius:"500rem",width:"100%",height:"100%"};return d.createElement("div",{className:i.joinClassNames("round-shape",o),style:r(r({},e),t)})};s.default=v})(P);var L={};(function(s){var r=m&&m.__assign||function(){return r=Object.assign||function(n){for(var o,t=1,a=arguments.length;t<a;t++){o=arguments[t];for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(n[e]=o[e])}return n},r.apply(this,arguments)};s.__esModule=!0;var d=p,i=g,v=function(n){var o=n.className,t=n.style,a=n.color,e={backgroundColor:a,width:"100%",height:"100%",marginRight:10};return d.createElement("div",{className:i.joinClassNames("rect-shape",o),style:r(r({},e),t)})};s.default=v})(L);var k={};(function(s){var r=m&&m.__assign||function(){return r=Object.assign||function(a){for(var e,l=1,c=arguments.length;l<c;l++){e=arguments[l];for(var f in e)Object.prototype.hasOwnProperty.call(e,f)&&(a[f]=e[f])}return a},r.apply(this,arguments)};s.__esModule=!0;var d=p,i=x,v=g,n={width:"100%"},o=[97,100,94,90,98,95,98,40],t=function(a){var e=a.rows,l=a.lineSpacing,c=a.color,f=a.style,j=a.className,w=a.widths,_=w===void 0?o:w,h=function(R){return{maxHeight:100/(e*2-1)+"%",width:_[(R+_.length)%_.length]+"%"}};return d.createElement("div",{className:v.joinClassNames("text-block",j),style:r(r({},n),f)},Array.apply(null,Array(e)).map(function(R,N){return d.createElement(i.default,{color:c,style:h(N),lineSpacing:N!==0?l:0,key:N})}))};s.default=t})(k);var A={};(function(s){var r=m&&m.__assign||function(){return r=Object.assign||function(a){for(var e,l=1,c=arguments.length;l<c;l++){e=arguments[l];for(var f in e)Object.prototype.hasOwnProperty.call(e,f)&&(a[f]=e[f])}return a},r.apply(this,arguments)};s.__esModule=!0;var d=p,i=k,v=P,n=g,o={display:"flex"},t=function(a){var e=a.className,l=a.style,c=a.color,f=a.rows;return d.createElement("div",{className:n.joinClassNames("media-block",e),style:r(r({},o),l)},d.createElement(v.default,{color:c,style:{minHeight:55,width:55,minWidth:55,marginRight:10}}),d.createElement(i.default,{color:c,rows:f}))};s.default=t})(A);u.__esModule=!0;u.media=u.text=u.rect=u.round=u.textRow=u.MediaBlock=u.TextBlock=u.RectShape=u.RoundShape=u.TextRow=void 0;var H=x;u.TextRow=H.default;var D=P;u.RoundShape=D.default;var F=L;u.RectShape=F.default;var W=k;u.TextBlock=W.default;var $=A;u.MediaBlock=$.default;u.textRow=H.default;u.round=D.default;u.rect=F.default;u.text=W.default;u.media=$.default;(function(s){var r=m&&m.__assign||function(){return r=Object.assign||function(t){for(var a,e=1,l=arguments.length;e<l;e++){a=arguments[e];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(t[c]=a[c])}return t},r.apply(this,arguments)},d=m&&m.__rest||function(t,a){var e={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&a.indexOf(l)<0&&(e[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,l=Object.getOwnPropertySymbols(t);c<l.length;c++)a.indexOf(l[c])<0&&Object.prototype.propertyIsEnumerable.call(t,l[c])&&(e[l[c]]=t[l[c]]);return e};s.__esModule=!0;var i=p,v=u,n=g,o=function(t){var a=t.delay,e=a===void 0?0:a,l=t.type,c=l===void 0?"text":l,f=t.color,j=f===void 0?"#CDCDCD":f,w=t.rows,_=w===void 0?3:w,h=t.ready,R=t.firstLaunchOnly,N=t.children,C=t.className,G=t.showLoadingAnimation,y=t.customPlaceholder,I=d(t,["delay","type","color","rows","ready","firstLaunchOnly","children","className","showLoadingAnimation","customPlaceholder"]),E=i.useState(h),O=E[0],S=E[1],b=i.useRef(null),V=function(){var T=G?n.joinClassNames("show-loading-animation",C):C;if(y&&i.isValidElement(y)){var q=n.joinClassNames(y.props.className,T);return i.cloneElement(y,{className:q})}else if(y)return y;var z=v[c];return i.createElement(z,r({},I,{color:j,rows:_,className:T}))};return i.useEffect(function(){!R&&O&&!h?e&&e>0?b.current=window.setTimeout(function(){S(!1)},e):S(!1):h&&(b.current&&window.clearTimeout(b.current),O||S(!0))},[R,O,h,e]),i.useEffect(function(){return function(){b.current&&window.clearTimeout(b.current)}},[]),O?N:V()};s.default=o})(B);(function(s){s.__esModule=!0;var r=B;s.default=r.default})(M);const Q=J(M);export{Q as R};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Ft=Object.defineProperty;var zt=(e,t,n)=>t in e?Ft(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var V=(e,t,n)=>(zt(e,typeof t!="symbol"?t+"":t,n),n);import{j as d,
|
|
1
|
+
var Ft=Object.defineProperty;var zt=(e,t,n)=>t in e?Ft(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var V=(e,t,n)=>(zt(e,typeof t!="symbol"?t+"":t,n),n);import{j as d,ce as ie,fX as fe,fY as et,P as u,fZ as Ht,r as T,aO as Dt,ci as Ut,a2 as Bt,dR as Vt,dP as Qt,f_ as Wt,dO as Zt,d7 as A,a7 as Gt,a8 as Jt,f$ as Yt,O as P,g0 as Xt,m as Kt,g1 as en,g2 as tn,B as nn,g3 as on,fK as tt,q as ee,g4 as rn,g5 as sn,cn,g6 as an,s as M,g7 as nt,g8 as ln,c8 as ot,g9 as un,aA as rt,bU as de,bc as fn,co as st,ga as dn}from"./index-C1sxwK1q.js";import{d as pn}from"./ExpandMore-D_XvdPjT.js";/**
|
|
2
2
|
* (c) Iconify
|
|
3
3
|
*
|
|
4
4
|
* For the full copyright and license information, please view the license.txt
|
|
@@ -8,7 +8,7 @@ var Ft=Object.defineProperty;var zt=(e,t,n)=>t in e?Ft(e,t,{enumerable:!0,config
|
|
|
8
8
|
*
|
|
9
9
|
* @license MIT
|
|
10
10
|
* @version 1.0.8
|
|
11
|
-
*/const it=Object.freeze({left:0,top:0,width:16,height:16}),G=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),U=Object.freeze({...it,...G}),pe=Object.freeze({...U,body:"",hidden:!1}),hn=Object.freeze({width:null,height:null}),ct=Object.freeze({...hn,...G});function gn(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return t}const mn=/[\s,]+/;function yn(e,t){t.split(mn).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const at={...ct,preserveAspectRatio:""};function Ee(e){const t={...at},n=(r,o)=>e.getAttribute(r)||o;return t.width=n("width",null),t.height=n("height",null),t.rotate=gn(n("rotate","")),yn(t,n("flip","")),t.preserveAspectRatio=n("preserveAspectRatio",n("preserveaspectratio","")),t}function bn(e,t){for(const n in at)if(e[n]!==t[n])return!0;return!1}const q=/^[a-z0-9]+(-[a-z0-9]+)*$/,B=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),c=o.pop(),l={provider:o.length>0?o[0]:r,prefix:c,name:a};return t&&!W(l)?null:l}const s=o[0],i=s.split("-");if(i.length>1){const a={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!W(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:s};return t&&!W(a,n)?null:a}return null},W=(e,t)=>e?!!((e.provider===""||e.provider.match(q))&&(t&&e.prefix===""||e.prefix.match(q))&&e.name.match(q)):!1;function xn(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function $e(e,t){const n=xn(e,t);for(const r in pe)r in G?r in e&&!(r in n)&&(n[r]=G[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function wn(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=r[i]&&r[i].parent,c=a&&s(a);c&&(o[i]=[a].concat(c))}return o[i]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(s),o}function vn(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(a){s=$e(r[a]||o[a],s)}return i(t),n.forEach(i),$e(e,s)}function lt(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=wn(e);for(const o in r){const s=r[o];s&&(t(o,vn(e,o,s)),n.push(o))}return n}const kn={provider:"",aliases:{},not_found:{},...it};function ce(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function ut(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!ce(e,kn))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(q)||typeof s.body!="string"||!ce(s,pe))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(q)||typeof i!="string"||!n[i]&&!r[i]||!ce(s,pe))return null}return t}const J=Object.create(null);function jn(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function N(e,t){const n=J[e]||(J[e]=Object.create(null));return n[t]||(n[t]=jn(e,t))}function ve(e,t){return ut(t)?lt(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function In(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function Sn(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(J)).forEach(o=>{(typeof o=="string"&&typeof t=="string"?[t]:Object.keys(J[o]||{})).forEach(i=>{const a=N(o,i);n=n.concat(Object.keys(a.icons).map(c=>(o!==""?"@"+o+":":"")+i+":"+c))})}),n}let z=!1;function ft(e){return typeof e=="boolean"&&(z=e),z}function H(e){const t=typeof e=="string"?B(e,!0,z):e;if(t){const n=N(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function dt(e,t){const n=B(e,!0,z);if(!n)return!1;const r=N(n.provider,n.prefix);return In(r,n.name,t)}function _e(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),z&&!t&&!e.prefix){let o=!1;return ut(e)&&(e.prefix="",lt(e,(s,i)=>{i&&dt(s,i)&&(o=!0)})),o}const n=e.prefix;if(!W({provider:t,prefix:n,name:"a"}))return!1;const r=N(t,n);return!!ve(r,e)}function Tn(e){return!!H(e)}function Cn(e){const t=H(e);return t?{...U,...t}:null}function An(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,a=o.name,c=n[s]||(n[s]=Object.create(null)),l=c[i]||(c[i]=N(s,i));let f;a in l.icons?f=t.loaded:i===""||l.missing.has(a)?f=t.missing:f=t.pending;const p={provider:s,prefix:i,name:a};f.push(p)}),t}function pt(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function Pn(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(s=>{const i=s.icons,a=i.pending.length;i.pending=i.pending.filter(c=>{if(c.prefix!==o)return!0;const l=c.name;if(e.icons[l])i.loaded.push({provider:r,prefix:o,name:l});else if(e.missing.has(l))i.missing.push({provider:r,prefix:o,name:l});else return n=!0,!0;return!1}),i.pending.length!==a&&(n||pt([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let Mn=0;function Ln(e,t,n){const r=Mn++,o=pt.bind(null,n,r);if(!t.pending.length)return o;const s={id:r,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}const he=Object.create(null);function qe(e,t){he[e]=t}function ge(e){return he[e]||he[""]}function Nn(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?B(o,t,n):o;s&&r.push(s)}),r}var Rn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function On(e,t,n,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let y=e.resources.slice(0);for(i=[];y.length>1;){const I=Math.floor(Math.random()*y.length);i.push(y[I]),y=y.slice(0,I).concat(y.slice(I+1))}i=i.concat(y)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const a=Date.now();let c="pending",l=0,f,p=null,h=[],g=[];typeof r=="function"&&g.push(r);function m(){p&&(clearTimeout(p),p=null)}function x(){c==="pending"&&(c="aborted"),m(),h.forEach(y=>{y.status==="pending"&&(y.status="aborted")}),h=[]}function v(y,I){I&&(g=[]),typeof y=="function"&&g.push(y)}function k(){return{startTime:a,payload:t,status:c,queriesSent:l,queriesPending:h.length,subscribe:v,abort:x}}function b(){c="failed",g.forEach(y=>{y(void 0,f)})}function w(){h.forEach(y=>{y.status==="pending"&&(y.status="aborted")}),h=[]}function C(y,I,L){const S=I!=="success";switch(h=h.filter(R=>R!==y),c){case"pending":break;case"failed":if(S||!e.dataAfterTimeout)return;break;default:return}if(I==="abort"){f=L,b();return}if(S){f=L,h.length||(i.length?j():b());return}if(m(),w(),!e.random){const R=e.resources.indexOf(y.resource);R!==-1&&R!==e.index&&(e.index=R)}c="completed",g.forEach(R=>{R(L)})}function j(){if(c!=="pending")return;m();const y=i.shift();if(y===void 0){if(h.length){p=setTimeout(()=>{m(),c==="pending"&&(w(),b())},e.timeout);return}b();return}const I={status:"pending",resource:y,callback:(L,S)=>{C(I,L,S)}};h.push(I),l++,p=setTimeout(j,e.rotate),n(y,t,I.callback)}return setTimeout(j),k}function ht(e){const t={...Rn,...e};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function o(a,c,l){const f=On(t,a,c,(p,h)=>{r(),l&&l(p,h)});return n.push(f),f}function s(a){return n.find(c=>a(c))||null}return{query:o,find:s,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:r}}function ke(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const te=Object.create(null),_=["https://api.simplesvg.com","https://api.unisvg.com"],Z=[];for(;_.length>0;)_.length===1||Math.random()>.5?Z.push(_.shift()):Z.push(_.pop());te[""]=ke({resources:["https://api.iconify.design"].concat(Z)});function Fe(e,t){const n=ke(t);return n===null?!1:(te[e]=n,!0)}function ne(e){return te[e]}function En(){return Object.keys(te)}function ze(){}const ae=Object.create(null);function $n(e){if(!ae[e]){const t=ne(e);if(!t)return;const n=ht(t),r={config:t,redundancy:n};ae[e]=r}return ae[e]}function gt(e,t,n){let r,o;if(typeof e=="string"){const s=ge(e);if(!s)return n(void 0,424),ze;o=s.send;const i=$n(e);i&&(r=i.redundancy)}else{const s=ke(e);if(s){r=ht(s);const i=e.resources?e.resources[0]:"",a=ge(i);a&&(o=a.send)}}return!r||!o?(n(void 0,424),ze):r.query(t,o,n)().abort}const He="iconify2",D="iconify",mt=D+"-count",De=D+"-version",yt=36e5,_n=168;function me(e,t){try{return e.getItem(t)}catch{}}function je(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Ue(e,t){try{e.removeItem(t)}catch{}}function ye(e,t){return je(e,mt,t.toString())}function be(e){return parseInt(me(e,mt))||0}const O={local:!0,session:!0},bt={local:new Set,session:new Set};let Ie=!1;function qn(e){Ie=e}let Q=typeof window>"u"?{}:window;function xt(e){const t=e+"Storage";try{if(Q&&Q[t]&&typeof Q[t].length=="number")return Q[t]}catch{}O[e]=!1}function wt(e,t){const n=xt(e);if(!n)return;const r=me(n,De);if(r!==He){if(r){const a=be(n);for(let c=0;c<a;c++)Ue(n,D+c.toString())}je(n,De,He),ye(n,0);return}const o=Math.floor(Date.now()/yt)-_n,s=a=>{const c=D+a.toString(),l=me(n,c);if(typeof l=="string"){try{const f=JSON.parse(l);if(typeof f=="object"&&typeof f.cached=="number"&&f.cached>o&&typeof f.provider=="string"&&typeof f.data=="object"&&typeof f.data.prefix=="string"&&t(f,a))return!0}catch{}Ue(n,c)}};let i=be(n);for(let a=i-1;a>=0;a--)s(a)||(a===i-1?(i--,ye(n,i)):bt[e].add(a))}function vt(){if(!Ie){qn(!0);for(const e in O)wt(e,t=>{const n=t.data,r=t.provider,o=n.prefix,s=N(r,o);if(!ve(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function Fn(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in O)wt(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function zn(e,t){Ie||vt();function n(r){let o;if(!O[r]||!(o=xt(r)))return;const s=bt[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=be(o),!ye(o,i+1))return;const a={cached:Math.floor(Date.now()/yt),provider:e.provider,data:t};return je(o,D+i.toString(),JSON.stringify(a))}t.lastModified&&!Fn(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Be(){}function Hn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Pn(e)}))}function Dn(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=ge(n)))return;s.prepare(n,r,o).forEach(a=>{gt(n,a,c=>{if(typeof c!="object")a.icons.forEach(l=>{e.missing.add(l)});else try{const l=ve(e,c);if(!l.length)return;const f=e.pendingIcons;f&&l.forEach(p=>{f.delete(p)}),zn(e,c)}catch(l){console.error(l)}Hn(e)})})}))}const Se=(e,t)=>{const n=Nn(e,!0,ft()),r=An(n);if(!r.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(r.loaded,r.missing,r.pending,Be)}),()=>{c=!1}}const o=Object.create(null),s=[];let i,a;return r.pending.forEach(c=>{const{provider:l,prefix:f}=c;if(f===a&&l===i)return;i=l,a=f,s.push(N(l,f));const p=o[l]||(o[l]=Object.create(null));p[f]||(p[f]=[])}),r.pending.forEach(c=>{const{provider:l,prefix:f,name:p}=c,h=N(l,f),g=h.pendingIcons||(h.pendingIcons=new Set);g.has(p)||(g.add(p),o[l][f].push(p))}),s.forEach(c=>{const{provider:l,prefix:f}=c;o[l][f].length&&Dn(c,o[l][f])}),t?Ln(t,r,s):Be},Un=e=>new Promise((t,n)=>{const r=typeof e=="string"?B(e,!0):e;if(!r){n(e);return}Se([r||e],o=>{if(o.length&&r){const s=H(r);if(s){t({...U,...s});return}}n(e)})});function Bn(e){try{const t=typeof e=="string"?JSON.parse(e):e;if(typeof t.body=="string")return{...t}}catch{}}function Vn(e,t){const n=typeof e=="string"?B(e,!0,!0):null;if(!n){const s=Bn(e);return{value:e,data:s}}const r=H(n);if(r!==void 0||!n.prefix)return{value:e,name:n,data:r};const o=Se([n],()=>t(e,n,H(n)));return{value:e,name:n,loading:o}}function le(e){return e.hasAttribute("inline")}let kt=!1;try{kt=navigator.vendor.indexOf("Apple")===0}catch{}function Qn(e,t){switch(t){case"svg":case"bg":case"mask":return t}return t!=="style"&&(kt||e.indexOf("<a")===-1)?"svg":e.indexOf("currentColor")===-1?"bg":"mask"}const Wn=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Zn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function xe(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(Wn);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=Zn.test(s);for(;;){if(i){const a=parseFloat(s);isNaN(a)?o.push(s):o.push(Math.ceil(a*t*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}const Gn=e=>e==="unset"||e==="undefined"||e==="none";function jt(e,t){const n={...U,...e},r={...ct,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(m=>{const x=[],v=m.hFlip,k=m.vFlip;let b=m.rotate;v?k?b+=2:(x.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),x.push("scale(-1 1)"),o.top=o.left=0):k&&(x.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),x.push("scale(1 -1)"),o.top=o.left=0);let w;switch(b<0&&(b-=Math.floor(b/4)*4),b=b%4,b){case 1:w=o.height/2+o.top,x.unshift("rotate(90 "+w.toString()+" "+w.toString()+")");break;case 2:x.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:w=o.width/2+o.left,x.unshift("rotate(-90 "+w.toString()+" "+w.toString()+")");break}b%2===1&&(o.left!==o.top&&(w=o.left,o.left=o.top,o.top=w),o.width!==o.height&&(w=o.width,o.width=o.height,o.height=w)),x.length&&(s='<g transform="'+x.join(" ")+'">'+s+"</g>")});const i=r.width,a=r.height,c=o.width,l=o.height;let f,p;i===null?(p=a===null?"1em":a==="auto"?l:a,f=xe(p,c/l)):(f=i==="auto"?c:i,p=a===null?xe(f,l/c):a==="auto"?l:a);const h={},g=(m,x)=>{Gn(x)||(h[m]=x.toString())};return g("width",f),g("height",p),h.viewBox=o.left.toString()+" "+o.top.toString()+" "+c.toString()+" "+l.toString(),{attributes:h,body:s}}const Jn=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Y=Jn();function Yn(e){Y=e}function Xn(){return Y}function Kn(e,t){const n=ne(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function eo(e){return e===404}const to=(e,t,n)=>{const r=[],o=Kn(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},a=0;return n.forEach((c,l)=>{a+=c.length+1,a>=o&&l>0&&(r.push(i),i={type:s,provider:e,prefix:t,icons:[]},a=c.length),i.icons.push(c)}),r.push(i),r};function no(e){if(typeof e=="string"){const t=ne(e);if(t)return t.path}return"/"}const oo=(e,t,n)=>{if(!Y){n("abort",424);return}let r=no(t.provider);switch(t.type){case"icons":{const s=t.prefix,a=t.icons.join(","),c=new URLSearchParams({icons:a});r+=s+".json?"+c.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;Y(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(eo(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},ro={prepare:to,send:oo};function Ve(e,t){switch(e){case"local":case"session":O[e]=t;break;case"all":for(const n in O)O[n]=t;break}}const ue="data-style";let It="";function so(e){It=e}function Qe(e,t){let n=Array.from(e.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(ue));n||(n=document.createElement("style"),n.setAttribute(ue,ue),e.appendChild(n)),n.textContent=":host{display:inline-block;vertical-align:"+(t?"-0.125em":"0")+"}span,svg{display:block}"+It}function St(){qe("",ro),ft(!0);let e;try{e=window}catch{}if(e){if(vt(),e.IconifyPreload!==void 0){const n=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof n=="object"&&n!==null&&(n instanceof Array?n:[n]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!_e(o))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const n=e.IconifyProviders;if(typeof n=="object"&&n!==null)for(const r in n){const o="IconifyProviders["+r+"] is invalid.";try{const s=n[r];if(typeof s!="object"||!s||s.resources===void 0)continue;Fe(r,s)||console.error(o)}catch{console.error(o)}}}}return{enableCache:n=>Ve(n,!0),disableCache:n=>Ve(n,!1),iconExists:Tn,getIcon:Cn,listIcons:Sn,addIcon:dt,addCollection:_e,calculateSize:xe,buildIcon:jt,loadIcons:Se,loadIcon:Un,addAPIProvider:Fe,appendCustomStyle:so,_api:{getAPIConfig:ne,setAPIModule:qe,sendAPIQuery:gt,setFetch:Yn,getFetch:Xn,listAPIProviders:En}}}function Tt(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function io(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function co(e){return"data:image/svg+xml,"+io(e)}function ao(e){return'url("'+co(e)+'")'}const we={"background-color":"currentColor"},Ct={"background-color":"transparent"},We={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Ze={"-webkit-mask":we,mask:we,background:Ct};for(const e in Ze){const t=Ze[e];for(const n in We)t[e+"-"+n]=We[n]}function Ge(e){return e?e+(e.match(/^[-0-9.]+$/)?"px":""):"inherit"}function lo(e,t,n){const r=document.createElement("span");let o=e.body;o.indexOf("<a")!==-1&&(o+="<!-- "+Date.now()+" -->");const s=e.attributes,i=Tt(o,{...s,width:t.width+"",height:t.height+""}),a=ao(i),c=r.style,l={"--svg":a,width:Ge(s.width),height:Ge(s.height),...n?we:Ct};for(const f in l)c.setProperty(f,l[f]);return r}let F;function uo(){try{F=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{F=null}}function fo(e){return F===void 0&&uo(),F?F.createHTML(e):e}function po(e){const t=document.createElement("span"),n=e.attributes;let r="";n.width||(r="width: inherit;"),n.height||(r+="height: inherit;"),r&&(n.style=r);const o=Tt(e.body,n);return t.innerHTML=fo(o),t.firstChild}function Je(e,t){const n=t.icon.data,r=t.customisations,o=jt(n,r);r.preserveAspectRatio&&(o.attributes.preserveAspectRatio=r.preserveAspectRatio);const s=t.renderedMode;let i;switch(s){case"svg":i=po(o);break;default:i=lo(o,{...U,...n},s==="mask")}const a=Array.from(e.childNodes).find(c=>{const l=c.tagName&&c.tagName.toUpperCase();return l==="SPAN"||l==="SVG"});a?i.tagName==="SPAN"&&a.tagName===i.tagName?a.setAttribute("style",i.getAttribute("style")):e.replaceChild(i,a):e.appendChild(i)}function Ye(e,t,n){const r=n&&(n.rendered?n:n.lastRender);return{rendered:!1,inline:t,icon:e,lastRender:r}}function ho(e="iconify-icon"){let t,n;try{t=window.customElements,n=window.HTMLElement}catch{return}if(!t||!n)return;const r=t.get(e);if(r)return r;const o=["icon","mode","inline","width","height","rotate","flip"],s=class extends n{constructor(){super();V(this,"_shadowRoot");V(this,"_state");V(this,"_checkQueued",!1);const c=this._shadowRoot=this.attachShadow({mode:"open"}),l=le(this);Qe(c,l),this._state=Ye({value:""},l),this._queueCheck()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(c){if(c==="inline"){const l=le(this),f=this._state;l!==f.inline&&(f.inline=l,Qe(this._shadowRoot,l))}else this._queueCheck()}get icon(){const c=this.getAttribute("icon");if(c&&c.slice(0,1)==="{")try{return JSON.parse(c)}catch{}return c}set icon(c){typeof c=="object"&&(c=JSON.stringify(c)),this.setAttribute("icon",c)}get inline(){return le(this)}set inline(c){c?this.setAttribute("inline","true"):this.removeAttribute("inline")}restartAnimation(){const c=this._state;if(c.rendered){const l=this._shadowRoot;if(c.renderedMode==="svg")try{l.lastChild.setCurrentTime(0);return}catch{}Je(l,c)}}get status(){const c=this._state;return c.rendered?"rendered":c.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const c=this._state,l=this.getAttribute("icon");if(l!==c.icon.value){this._iconChanged(l);return}if(!c.rendered)return;const f=this.getAttribute("mode"),p=Ee(this);(c.attrMode!==f||bn(c.customisations,p))&&this._renderIcon(c.icon,p,f)}_iconChanged(c){const l=Vn(c,(f,p,h)=>{const g=this._state;if(g.rendered||this.getAttribute("icon")!==f)return;const m={value:f,name:p,data:h};m.data?this._gotIconData(m):g.icon=m});l.data?this._gotIconData(l):this._state=Ye(l,this._state.inline,this._state)}_gotIconData(c){this._checkQueued=!1,this._renderIcon(c,Ee(this),this.getAttribute("mode"))}_renderIcon(c,l,f){const p=Qn(c.data.body,f),h=this._state.inline;Je(this._shadowRoot,this._state={rendered:!0,icon:c,inline:h,customisations:l,attrMode:f,renderedMode:p})}};o.forEach(a=>{a in s.prototype||Object.defineProperty(s.prototype,a,{get:function(){return this.getAttribute(a)},set:function(c){c!==null?this.setAttribute(a,c):this.removeAttribute(a)}})});const i=St();for(const a in i)s[a]=s.prototype[a]=i[a];return t.define(e,s),s}ho()||St();const E=(e,t,n="children")=>e.map(r=>Array.isArray(r[n])?t({...r,[n]:E(r[n],t,n)}):t(r)),At=(e,t="children")=>{const n=[];return E(e,r=>n.push(r),t),n},Te=(e,t,n="children")=>e.map(r=>({...r})).filter(r=>{const o=r[n];if(Array.isArray(o)){const i=Te(o,t,n);r[n]=i!=null&&i.length?i:void 0}const s={filteredChildren:r[n],isLeaf:!(o!=null&&o.length)};return t(r,s)}),Pt=e=>/^https?:\/\//.test(e),go=e=>/^[\w-]+:[\w-]+$/.test(e),mo=e=>{if(!e||!(e!=null&&e.startsWith("/")))return!1;const t=o=>o.endsWith("/")?o:`${o}/`,n=t(window.location.pathname),r=t(new URL(e,window.location.origin).pathname);return n.startsWith(r)},Mt=(e=[])=>{const t=e.map((r,o)=>({path:r,index:o})).filter(r=>mo(r.path));return t!=null&&t.length?t.slice(1).reduce((r,o)=>r.path.length>=o.path.length?r:o,t[0]).index:-1};function Ce({icon:e,size:t,sx:n,...r}){const o=[...Array.isArray(n)?n:[n]];if(t&&o.push({width:t,height:t}),r.variant||o.push({"&.MuiAvatar-root":{color:"inherit",fontWeight:"bold",backgroundColor:"transparent",borderRadius:0},"&.MuiAvatar-root svg":{width:"100%",height:"100%"}}),Pt(e))return d.jsx(ie,{component:"span",...r,src:e,sx:o});if(go(e)){const s=t?.6*t+4:0;return d.jsx(ie,{component:"span",...r,sx:o,children:d.jsx(fe,{icon:e,height:s||void 0})})}return e&&typeof e=="string"?(o.push({"&.MuiAvatar-root":{display:"inline-flex",...t&&{fontSize:t-2}}}),d.jsx(ie,{component:"span",...r,sx:o,children:Array.from(e)[0]})):null}const yo=et();function oe({theme:e,children:t}){const n=e?et(e):yo;return d.jsx(Ht,{theme:n,children:t})}oe.propTypes={children:u.any.isRequired,theme:u.object};oe.defaultProps={theme:null};var Xe,Ke;const X=((Xe=window==null?void 0:window.blocklet)==null?void 0:Xe.groupPrefix)||((Ke=window==null?void 0:window.blocklet)==null?void 0:Ke.prefix)||"/",bo=e=>{const t={...e},n=e==null?void 0:e.background;return typeof n=="string"?t.background={header:n,footer:n,default:n}:n&&typeof n=="object"&&(t.background={header:n.header||n.default,footer:n.footer||n.default,default:n.default}),t},$=(e,t="en")=>{if(!(e!=null&&e.length))return e;const n=(o,s)=>typeof o=="string"?o:typeof o=="object"?o[s]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o,r=(o,s)=>{if(typeof o=="string"){if(Pt(o)){const a=new URL(o);return a.searchParams.set("locale",s),a.href}const i=new URL(o,window.location.origin);return i.searchParams.set("locale",s),i.pathname+i.search}return typeof o=="object"?o[s]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o};return E(e,o=>{var s;return{...o,title:n(o.title,t),link:(s=o.items)!=null&&s.length?o.link:r(o.link,t),_rawLink:o.link}},"items")},xo=e=>E(e,t=>t.role?{...t,role:Array.isArray(t.role)?t.role:[t.role]}:t,"items"),wo=e=>{if(!(e!=null&&e.length))return null;const t=xo(e),n={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[],userCenter:[]};return t.forEach(r=>{var o;r.section?Array.isArray(r.section)?r.section.forEach(s=>{var i;(i=n[s])==null||i.push(r)}):typeof r.section=="string"&&((o=n[r.section])==null||o.push(r)):n.header.push(r)}),n},Ae=e=>{if(!e)return null;const t={...e};return t.theme=bo(t.theme),t.navigation=wo(vo(t.navigation)),t},vo=(e=[])=>Te(e,(t,n)=>{var r;return!!t.link||((r=n.filteredChildren)==null?void 0:r.length)},"items"),Lt=(e,t)=>Te(e,(n,r)=>{var s;const o=!n.role||t&&n.role.includes(t);return r.isLeaf?o:o&&((s=r.filteredChildren)==null?void 0:s.length)},"items"),ko={top:-960,width:960,height:960,body:'<path fill="currentColor" d="M510-600v-210q0-12.75 8.625-21.375T540-840h270q12.75 0 21.375 8.625T840-810v210q0 12.75-8.625 21.375T810-570H540q-12.75 0-21.375-8.625T510-600M120-480v-330q0-12.75 8.625-21.375T150-840h270q12.75 0 21.375 8.625T450-810v330q0 12.75-8.625 21.375T420-450H150q-12.75 0-21.375-8.625T120-480m390 330v-330q0-12.75 8.625-21.375T540-510h270q12.75 0 21.375 8.625T840-480v330q0 12.75-8.625 21.375T810-120H540q-12.75 0-21.375-8.625T510-150m-390 0v-210q0-12.75 8.625-21.375T150-390h270q12.75 0 21.375 8.625T450-360v210q0 12.75-8.625 21.375T420-120H150q-12.75 0-21.375-8.625T120-150m60-360h210v-270H180zm390 330h210v-270H570zm0-450h210v-150H570zM180-180h210v-150H180zm210-150"/>'},jo={width:24,height:24,body:'<path fill="currentColor" d="M15.95 12.3L11.7 8.05q-.15-.15-.212-.325t-.063-.375q0-.2.063-.375t.212-.325l4.25-4.25q.15-.15.325-.212t.375-.063q.2 0 .375.063t.325.212l4.25 4.25q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.25 4.25q-.15.15-.325.213t-.375.062q-.2 0-.375-.062t-.325-.213ZM3 10V4q0-.425.288-.713T4 3h6q.425 0 .713.288T11 4v6q0 .425-.288.713T10 11H4q-.425 0-.713-.288T3 10Zm10 10v-6q0-.425.288-.713T14 13h6q.425 0 .713.288T21 14v6q0 .425-.288.713T20 21h-6q-.425 0-.713-.288T13 20ZM3 20v-6q0-.425.288-.713T4 13h6q.425 0 .713.288T11 14v6q0 .425-.288.713T10 21H4q-.425 0-.713-.288T3 20ZM5 9h4V5H5v4Zm11.675 1.2L19.5 7.375L16.675 4.55L13.85 7.375l2.825 2.825ZM15 19h4v-4h-4v4ZM5 19h4v-4H5v4ZM9 9Zm4.85-1.625ZM9 15Zm6 0Z"/>'};function Pe({session:e,locale:t,size:n}){const r=(window==null?void 0:window.blocklet)||{},o=(r.navigation||[]).filter(c=>c.section==="sessionManager"&&!["/sessionManager"].includes(c.id)).filter(c=>{var l;return!!((c==null?void 0:c.role)||[]).includes(((l=e==null?void 0:e.user)==null?void 0:l.role)||"guest")}).map(c=>{const l=((r==null?void 0:r.componentMountPoints)||[]).find(f=>c.component===f.name);return{...c,component:l}}),s=T.useRef(null),i=Dt({open:!1}),a=Ut((c=!i.open)=>{i.open=c});return o.length===0||!(e!=null&&e.user)?null:d.jsxs(d.Fragment,{children:[d.jsx(Bt,{size:"medium",ref:s,onClick:()=>a(),children:d.jsx(fe,{icon:ko,fontSize:n,style:{transform:"scale(1.08)"}})}),d.jsx(Vt,{open:i.open,onClose:()=>a(!1),anchorEl:s.current,transition:!0,placement:"bottom-end",sx:{zIndex:1600},children:({TransitionProps:c})=>d.jsx(Qt,{onClickAway:l=>{l.preventDefault(),l.stopPropagation(),a(!1)},children:d.jsx(Wt,{...c,timeout:350,children:d.jsxs(Zt,{variant:"outlined",sx:{borderRadius:3,width:350,maxWidth:"90vw",borderColor:A.lineStep,p:2,border:"0 !important",boxShadow:`0px 8px 16px 0px ${A.gray6}, 0px 0px 0px 1px ${A.gray6}`},children:[d.jsx(Gt,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, 100px)",gridAutoRows:"minmax(100px, max-content)",justifyContent:"space-between",maxHeight:350,overflowY:"auto",p:0},children:o.map(l=>{var f;return d.jsx(Jt,{disablePadding:!0,children:d.jsxs(Yt,{href:l.link,sx:{p:1,display:"flex",flexDirection:"column",alignItems:"center",gap:1,width:"100%",height:"100%",borderRadius:2,"&:hover":{backgroundColor:A.surfacePrimarySubtitle}},children:[(f=l==null?void 0:l.component)!=null&&f.did?d.jsx(P,{component:"img",src:`${Xt}/blocklet/logo-bundle/${l.component.did}`,sx:{borderRadius:2,width:50,height:50,objectFit:"contain"}}):d.jsx(fe,{fontSize:50,icon:l.icon||jo,color:A.textSubtitle}),d.jsx(Kt,{sx:{fontSize:"12px",color:A.textBase,textAlign:"center",lineHeight:"normal"},children:en(l.title,t)})]})},l.id)})}),d.jsx(tn,{session:e,children:d.jsx(nn,{variant:"outlined",fullWidth:!0,href:on,sx:{mt:1,borderRadius:2,color:A.textBase,borderColor:A.lineBorderStrong,"&:hover":{color:A.primaryBase,borderColor:A.primaryBase}},children:t==="zh"?"管理":"Manage"})})]})})})})]})}Pe.propTypes={session:u.object.isRequired,locale:u.string,size:u.number};Pe.defaultProps={locale:"en",size:24};const Nt=u.shape({appLogo:u.node,appName:u.string,theme:u.shape({background:u.string}),enableConnect:u.bool,enableLocale:u.bool,navigation:u.arrayOf(u.shape({title:u.oneOfType([u.string,u.object]),link:u.oneOfType([u.string,u.object]),icon:u.string,items:u.arrayOf(u.shape({title:u.oneOfType([u.string,u.object]),link:u.oneOfType([u.string,u.object])}))}))}),Rt=u.shape({showText:u.bool,showRole:u.bool,switchDid:u.bool,switchProfile:u.bool,switchPassport:u.bool,disableLogout:u.bool,onLogin:u.func,onLogout:u.func,onSwitchDid:u.func,onSwitchProfile:u.func,onSwitchPassport:u.func,menu:u.array,menuRender:u.func,dark:u.bool,size:u.number});function re({formattedBlocklet:e,addons:t,sessionManagerProps:n}){var h,g,m,x;const r=T.useContext(tt),{locale:o}=ee()||{},{enableConnect:s=!0,enableLocale:i=!0}=e,a=!!((h=r==null?void 0:r.session)!=null&&h.user);let c=$((g=e==null?void 0:e.navigation)==null?void 0:g.sessionManager,o)||[];c=Lt(c,(x=(m=r==null?void 0:r.session)==null?void 0:m.user)==null?void 0:x.role);const f=(()=>{if(t&&typeof t!="function")return Array.isArray(t)?t:[t];let v=[];if(i&&o&&v.push(d.jsx(rn,{showText:!1},"locale-selector")),s&&r){const k=[];a&&(c?c.slice(0,5):[]).forEach(w=>{k.push({label:w.title,icon:w.icon?d.jsx("iconify-icon",{icon:w.icon,height:24,style:{marginRight:8}}):null,component:"a",href:w.link,key:w.link})}),v.push(d.jsx(Pe,{session:r.session,locale:o},"session-blocklet")),v.push(d.jsx(sn,{session:r.session,locale:o,menu:k,showRole:!0,...n},"session-user"))}return typeof t=="function"&&(v=t(v)||[]),v})();return T.createElement(d.Fragment,null,...Array.isArray(f)?f:[f])}re.propTypes={formattedBlocklet:u.object.isRequired,addons:u.oneOfType([u.func,u.node]),sessionManagerProps:Rt};re.defaultProps={addons:null,sessionManagerProps:{showRole:!0}};const Ot=()=>{const e=cn();T.useEffect(()=>{e.wallet&&an.call("arcHideTopBar","{}")},[e])},Io=e=>{if(!(e!=null&&e.length))return{navItems:[],activeId:null};let t=1;const r=E(e,i=>{var l,f;const a=i.icon?d.jsx(Ce,{icon:i.icon}):null;if(i.items)return{id:`${t++}`,label:i.title,icon:a,children:i.items};let c={};return((l=i.link)!=null&&l.startsWith("http://")||(f=i.link)!=null&&f.startsWith("https://"))&&(c={target:"_blank",rel:"noreferrer"}),{id:`${t++}`,label:d.jsx("a",{href:i.link,...c,children:i.title}),icon:a,link:i.link}},"items"),o=At(r),s=Mt(o.map(i=>i.link));return{navItems:r,activeId:s>=0?o[s].id:null}};function So({meta:e={},addons:t,sessionManagerProps:n={showRole:!0},homeLink:r=X,theme:o,hideNavMenu:s=!1,...i}){var b,w;Ot();const{locale:a}=ee()||{},c=T.useMemo(()=>{const C=Object.assign({},window.blocklet,e);try{return Ae(C)}catch(j){return console.error("Failed to format blocklet info",j,C),C}},[e]);if(!c.appName)return null;const{appLogo:l,appLogoRect:f,theme:p}=c,h=$((b=c==null?void 0:c.navigation)==null?void 0:b.header,a),g=Io(h),{navItems:m,activeId:x}=g,v=typeof t=="function"?C=>t(C,{navigation:g}):t,k=d.jsx(re,{formattedBlocklet:c,addons:v,sessionManagerProps:n});return d.jsx(oe,{theme:o,children:d.jsx(To,{homeLink:r,logo:d.jsx("img",{src:f||l,alt:"logo"}),addons:k,...ot(i,["bordered"]),$bordered:i==null?void 0:i.bordered,$bgcolor:(w=p==null?void 0:p.background)==null?void 0:w.header,children:s||!(m!=null&&m.length)?null:({isMobile:C})=>d.jsx(un,{mode:C?"inline":"horizontal",activeId:x,items:m,className:"header-nav",bgColor:"transparent",textColor:"#777"})})})}const To=M(ln)`
|
|
11
|
+
*/const it=Object.freeze({left:0,top:0,width:16,height:16}),G=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),U=Object.freeze({...it,...G}),pe=Object.freeze({...U,body:"",hidden:!1}),hn=Object.freeze({width:null,height:null}),ct=Object.freeze({...hn,...G});function gn(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return t}const mn=/[\s,]+/;function yn(e,t){t.split(mn).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const at={...ct,preserveAspectRatio:""};function Ee(e){const t={...at},n=(r,o)=>e.getAttribute(r)||o;return t.width=n("width",null),t.height=n("height",null),t.rotate=gn(n("rotate","")),yn(t,n("flip","")),t.preserveAspectRatio=n("preserveAspectRatio",n("preserveaspectratio","")),t}function bn(e,t){for(const n in at)if(e[n]!==t[n])return!0;return!1}const q=/^[a-z0-9]+(-[a-z0-9]+)*$/,B=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),c=o.pop(),l={provider:o.length>0?o[0]:r,prefix:c,name:a};return t&&!W(l)?null:l}const s=o[0],i=s.split("-");if(i.length>1){const a={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!W(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:s};return t&&!W(a,n)?null:a}return null},W=(e,t)=>e?!!((e.provider===""||e.provider.match(q))&&(t&&e.prefix===""||e.prefix.match(q))&&e.name.match(q)):!1;function xn(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function $e(e,t){const n=xn(e,t);for(const r in pe)r in G?r in e&&!(r in n)&&(n[r]=G[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function wn(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=r[i]&&r[i].parent,c=a&&s(a);c&&(o[i]=[a].concat(c))}return o[i]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(s),o}function vn(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(a){s=$e(r[a]||o[a],s)}return i(t),n.forEach(i),$e(e,s)}function lt(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=wn(e);for(const o in r){const s=r[o];s&&(t(o,vn(e,o,s)),n.push(o))}return n}const kn={provider:"",aliases:{},not_found:{},...it};function ce(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function ut(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!ce(e,kn))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(q)||typeof s.body!="string"||!ce(s,pe))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(q)||typeof i!="string"||!n[i]&&!r[i]||!ce(s,pe))return null}return t}const J=Object.create(null);function jn(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function R(e,t){const n=J[e]||(J[e]=Object.create(null));return n[t]||(n[t]=jn(e,t))}function ve(e,t){return ut(t)?lt(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function In(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function Sn(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(J)).forEach(o=>{(typeof o=="string"&&typeof t=="string"?[t]:Object.keys(J[o]||{})).forEach(i=>{const a=R(o,i);n=n.concat(Object.keys(a.icons).map(c=>(o!==""?"@"+o+":":"")+i+":"+c))})}),n}let z=!1;function ft(e){return typeof e=="boolean"&&(z=e),z}function H(e){const t=typeof e=="string"?B(e,!0,z):e;if(t){const n=R(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function dt(e,t){const n=B(e,!0,z);if(!n)return!1;const r=R(n.provider,n.prefix);return In(r,n.name,t)}function _e(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),z&&!t&&!e.prefix){let o=!1;return ut(e)&&(e.prefix="",lt(e,(s,i)=>{i&&dt(s,i)&&(o=!0)})),o}const n=e.prefix;if(!W({provider:t,prefix:n,name:"a"}))return!1;const r=R(t,n);return!!ve(r,e)}function Tn(e){return!!H(e)}function Cn(e){const t=H(e);return t?{...U,...t}:null}function An(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,a=o.name,c=n[s]||(n[s]=Object.create(null)),l=c[i]||(c[i]=R(s,i));let f;a in l.icons?f=t.loaded:i===""||l.missing.has(a)?f=t.missing:f=t.pending;const p={provider:s,prefix:i,name:a};f.push(p)}),t}function pt(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function Pn(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(s=>{const i=s.icons,a=i.pending.length;i.pending=i.pending.filter(c=>{if(c.prefix!==o)return!0;const l=c.name;if(e.icons[l])i.loaded.push({provider:r,prefix:o,name:l});else if(e.missing.has(l))i.missing.push({provider:r,prefix:o,name:l});else return n=!0,!0;return!1}),i.pending.length!==a&&(n||pt([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let Mn=0;function Ln(e,t,n){const r=Mn++,o=pt.bind(null,n,r);if(!t.pending.length)return o;const s={id:r,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}const he=Object.create(null);function qe(e,t){he[e]=t}function ge(e){return he[e]||he[""]}function Rn(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?B(o,t,n):o;s&&r.push(s)}),r}var Nn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function On(e,t,n,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let y=e.resources.slice(0);for(i=[];y.length>1;){const I=Math.floor(Math.random()*y.length);i.push(y[I]),y=y.slice(0,I).concat(y.slice(I+1))}i=i.concat(y)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const a=Date.now();let c="pending",l=0,f,p=null,h=[],g=[];typeof r=="function"&&g.push(r);function m(){p&&(clearTimeout(p),p=null)}function x(){c==="pending"&&(c="aborted"),m(),h.forEach(y=>{y.status==="pending"&&(y.status="aborted")}),h=[]}function v(y,I){I&&(g=[]),typeof y=="function"&&g.push(y)}function k(){return{startTime:a,payload:t,status:c,queriesSent:l,queriesPending:h.length,subscribe:v,abort:x}}function b(){c="failed",g.forEach(y=>{y(void 0,f)})}function w(){h.forEach(y=>{y.status==="pending"&&(y.status="aborted")}),h=[]}function C(y,I,L){const S=I!=="success";switch(h=h.filter(N=>N!==y),c){case"pending":break;case"failed":if(S||!e.dataAfterTimeout)return;break;default:return}if(I==="abort"){f=L,b();return}if(S){f=L,h.length||(i.length?j():b());return}if(m(),w(),!e.random){const N=e.resources.indexOf(y.resource);N!==-1&&N!==e.index&&(e.index=N)}c="completed",g.forEach(N=>{N(L)})}function j(){if(c!=="pending")return;m();const y=i.shift();if(y===void 0){if(h.length){p=setTimeout(()=>{m(),c==="pending"&&(w(),b())},e.timeout);return}b();return}const I={status:"pending",resource:y,callback:(L,S)=>{C(I,L,S)}};h.push(I),l++,p=setTimeout(j,e.rotate),n(y,t,I.callback)}return setTimeout(j),k}function ht(e){const t={...Nn,...e};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function o(a,c,l){const f=On(t,a,c,(p,h)=>{r(),l&&l(p,h)});return n.push(f),f}function s(a){return n.find(c=>a(c))||null}return{query:o,find:s,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:r}}function ke(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const te=Object.create(null),_=["https://api.simplesvg.com","https://api.unisvg.com"],Z=[];for(;_.length>0;)_.length===1||Math.random()>.5?Z.push(_.shift()):Z.push(_.pop());te[""]=ke({resources:["https://api.iconify.design"].concat(Z)});function Fe(e,t){const n=ke(t);return n===null?!1:(te[e]=n,!0)}function ne(e){return te[e]}function En(){return Object.keys(te)}function ze(){}const ae=Object.create(null);function $n(e){if(!ae[e]){const t=ne(e);if(!t)return;const n=ht(t),r={config:t,redundancy:n};ae[e]=r}return ae[e]}function gt(e,t,n){let r,o;if(typeof e=="string"){const s=ge(e);if(!s)return n(void 0,424),ze;o=s.send;const i=$n(e);i&&(r=i.redundancy)}else{const s=ke(e);if(s){r=ht(s);const i=e.resources?e.resources[0]:"",a=ge(i);a&&(o=a.send)}}return!r||!o?(n(void 0,424),ze):r.query(t,o,n)().abort}const He="iconify2",D="iconify",mt=D+"-count",De=D+"-version",yt=36e5,_n=168;function me(e,t){try{return e.getItem(t)}catch{}}function je(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Ue(e,t){try{e.removeItem(t)}catch{}}function ye(e,t){return je(e,mt,t.toString())}function be(e){return parseInt(me(e,mt))||0}const O={local:!0,session:!0},bt={local:new Set,session:new Set};let Ie=!1;function qn(e){Ie=e}let Q=typeof window>"u"?{}:window;function xt(e){const t=e+"Storage";try{if(Q&&Q[t]&&typeof Q[t].length=="number")return Q[t]}catch{}O[e]=!1}function wt(e,t){const n=xt(e);if(!n)return;const r=me(n,De);if(r!==He){if(r){const a=be(n);for(let c=0;c<a;c++)Ue(n,D+c.toString())}je(n,De,He),ye(n,0);return}const o=Math.floor(Date.now()/yt)-_n,s=a=>{const c=D+a.toString(),l=me(n,c);if(typeof l=="string"){try{const f=JSON.parse(l);if(typeof f=="object"&&typeof f.cached=="number"&&f.cached>o&&typeof f.provider=="string"&&typeof f.data=="object"&&typeof f.data.prefix=="string"&&t(f,a))return!0}catch{}Ue(n,c)}};let i=be(n);for(let a=i-1;a>=0;a--)s(a)||(a===i-1?(i--,ye(n,i)):bt[e].add(a))}function vt(){if(!Ie){qn(!0);for(const e in O)wt(e,t=>{const n=t.data,r=t.provider,o=n.prefix,s=R(r,o);if(!ve(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function Fn(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in O)wt(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function zn(e,t){Ie||vt();function n(r){let o;if(!O[r]||!(o=xt(r)))return;const s=bt[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=be(o),!ye(o,i+1))return;const a={cached:Math.floor(Date.now()/yt),provider:e.provider,data:t};return je(o,D+i.toString(),JSON.stringify(a))}t.lastModified&&!Fn(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Be(){}function Hn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Pn(e)}))}function Dn(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=ge(n)))return;s.prepare(n,r,o).forEach(a=>{gt(n,a,c=>{if(typeof c!="object")a.icons.forEach(l=>{e.missing.add(l)});else try{const l=ve(e,c);if(!l.length)return;const f=e.pendingIcons;f&&l.forEach(p=>{f.delete(p)}),zn(e,c)}catch(l){console.error(l)}Hn(e)})})}))}const Se=(e,t)=>{const n=Rn(e,!0,ft()),r=An(n);if(!r.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(r.loaded,r.missing,r.pending,Be)}),()=>{c=!1}}const o=Object.create(null),s=[];let i,a;return r.pending.forEach(c=>{const{provider:l,prefix:f}=c;if(f===a&&l===i)return;i=l,a=f,s.push(R(l,f));const p=o[l]||(o[l]=Object.create(null));p[f]||(p[f]=[])}),r.pending.forEach(c=>{const{provider:l,prefix:f,name:p}=c,h=R(l,f),g=h.pendingIcons||(h.pendingIcons=new Set);g.has(p)||(g.add(p),o[l][f].push(p))}),s.forEach(c=>{const{provider:l,prefix:f}=c;o[l][f].length&&Dn(c,o[l][f])}),t?Ln(t,r,s):Be},Un=e=>new Promise((t,n)=>{const r=typeof e=="string"?B(e,!0):e;if(!r){n(e);return}Se([r||e],o=>{if(o.length&&r){const s=H(r);if(s){t({...U,...s});return}}n(e)})});function Bn(e){try{const t=typeof e=="string"?JSON.parse(e):e;if(typeof t.body=="string")return{...t}}catch{}}function Vn(e,t){const n=typeof e=="string"?B(e,!0,!0):null;if(!n){const s=Bn(e);return{value:e,data:s}}const r=H(n);if(r!==void 0||!n.prefix)return{value:e,name:n,data:r};const o=Se([n],()=>t(e,n,H(n)));return{value:e,name:n,loading:o}}function le(e){return e.hasAttribute("inline")}let kt=!1;try{kt=navigator.vendor.indexOf("Apple")===0}catch{}function Qn(e,t){switch(t){case"svg":case"bg":case"mask":return t}return t!=="style"&&(kt||e.indexOf("<a")===-1)?"svg":e.indexOf("currentColor")===-1?"bg":"mask"}const Wn=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Zn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function xe(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(Wn);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=Zn.test(s);for(;;){if(i){const a=parseFloat(s);isNaN(a)?o.push(s):o.push(Math.ceil(a*t*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}const Gn=e=>e==="unset"||e==="undefined"||e==="none";function jt(e,t){const n={...U,...e},r={...ct,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(m=>{const x=[],v=m.hFlip,k=m.vFlip;let b=m.rotate;v?k?b+=2:(x.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),x.push("scale(-1 1)"),o.top=o.left=0):k&&(x.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),x.push("scale(1 -1)"),o.top=o.left=0);let w;switch(b<0&&(b-=Math.floor(b/4)*4),b=b%4,b){case 1:w=o.height/2+o.top,x.unshift("rotate(90 "+w.toString()+" "+w.toString()+")");break;case 2:x.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:w=o.width/2+o.left,x.unshift("rotate(-90 "+w.toString()+" "+w.toString()+")");break}b%2===1&&(o.left!==o.top&&(w=o.left,o.left=o.top,o.top=w),o.width!==o.height&&(w=o.width,o.width=o.height,o.height=w)),x.length&&(s='<g transform="'+x.join(" ")+'">'+s+"</g>")});const i=r.width,a=r.height,c=o.width,l=o.height;let f,p;i===null?(p=a===null?"1em":a==="auto"?l:a,f=xe(p,c/l)):(f=i==="auto"?c:i,p=a===null?xe(f,l/c):a==="auto"?l:a);const h={},g=(m,x)=>{Gn(x)||(h[m]=x.toString())};return g("width",f),g("height",p),h.viewBox=o.left.toString()+" "+o.top.toString()+" "+c.toString()+" "+l.toString(),{attributes:h,body:s}}const Jn=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Y=Jn();function Yn(e){Y=e}function Xn(){return Y}function Kn(e,t){const n=ne(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function eo(e){return e===404}const to=(e,t,n)=>{const r=[],o=Kn(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},a=0;return n.forEach((c,l)=>{a+=c.length+1,a>=o&&l>0&&(r.push(i),i={type:s,provider:e,prefix:t,icons:[]},a=c.length),i.icons.push(c)}),r.push(i),r};function no(e){if(typeof e=="string"){const t=ne(e);if(t)return t.path}return"/"}const oo=(e,t,n)=>{if(!Y){n("abort",424);return}let r=no(t.provider);switch(t.type){case"icons":{const s=t.prefix,a=t.icons.join(","),c=new URLSearchParams({icons:a});r+=s+".json?"+c.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;Y(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(eo(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},ro={prepare:to,send:oo};function Ve(e,t){switch(e){case"local":case"session":O[e]=t;break;case"all":for(const n in O)O[n]=t;break}}const ue="data-style";let It="";function so(e){It=e}function Qe(e,t){let n=Array.from(e.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(ue));n||(n=document.createElement("style"),n.setAttribute(ue,ue),e.appendChild(n)),n.textContent=":host{display:inline-block;vertical-align:"+(t?"-0.125em":"0")+"}span,svg{display:block}"+It}function St(){qe("",ro),ft(!0);let e;try{e=window}catch{}if(e){if(vt(),e.IconifyPreload!==void 0){const n=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof n=="object"&&n!==null&&(n instanceof Array?n:[n]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!_e(o))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const n=e.IconifyProviders;if(typeof n=="object"&&n!==null)for(const r in n){const o="IconifyProviders["+r+"] is invalid.";try{const s=n[r];if(typeof s!="object"||!s||s.resources===void 0)continue;Fe(r,s)||console.error(o)}catch{console.error(o)}}}}return{enableCache:n=>Ve(n,!0),disableCache:n=>Ve(n,!1),iconExists:Tn,getIcon:Cn,listIcons:Sn,addIcon:dt,addCollection:_e,calculateSize:xe,buildIcon:jt,loadIcons:Se,loadIcon:Un,addAPIProvider:Fe,appendCustomStyle:so,_api:{getAPIConfig:ne,setAPIModule:qe,sendAPIQuery:gt,setFetch:Yn,getFetch:Xn,listAPIProviders:En}}}function Tt(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function io(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function co(e){return"data:image/svg+xml,"+io(e)}function ao(e){return'url("'+co(e)+'")'}const we={"background-color":"currentColor"},Ct={"background-color":"transparent"},We={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Ze={"-webkit-mask":we,mask:we,background:Ct};for(const e in Ze){const t=Ze[e];for(const n in We)t[e+"-"+n]=We[n]}function Ge(e){return e?e+(e.match(/^[-0-9.]+$/)?"px":""):"inherit"}function lo(e,t,n){const r=document.createElement("span");let o=e.body;o.indexOf("<a")!==-1&&(o+="<!-- "+Date.now()+" -->");const s=e.attributes,i=Tt(o,{...s,width:t.width+"",height:t.height+""}),a=ao(i),c=r.style,l={"--svg":a,width:Ge(s.width),height:Ge(s.height),...n?we:Ct};for(const f in l)c.setProperty(f,l[f]);return r}let F;function uo(){try{F=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{F=null}}function fo(e){return F===void 0&&uo(),F?F.createHTML(e):e}function po(e){const t=document.createElement("span"),n=e.attributes;let r="";n.width||(r="width: inherit;"),n.height||(r+="height: inherit;"),r&&(n.style=r);const o=Tt(e.body,n);return t.innerHTML=fo(o),t.firstChild}function Je(e,t){const n=t.icon.data,r=t.customisations,o=jt(n,r);r.preserveAspectRatio&&(o.attributes.preserveAspectRatio=r.preserveAspectRatio);const s=t.renderedMode;let i;switch(s){case"svg":i=po(o);break;default:i=lo(o,{...U,...n},s==="mask")}const a=Array.from(e.childNodes).find(c=>{const l=c.tagName&&c.tagName.toUpperCase();return l==="SPAN"||l==="SVG"});a?i.tagName==="SPAN"&&a.tagName===i.tagName?a.setAttribute("style",i.getAttribute("style")):e.replaceChild(i,a):e.appendChild(i)}function Ye(e,t,n){const r=n&&(n.rendered?n:n.lastRender);return{rendered:!1,inline:t,icon:e,lastRender:r}}function ho(e="iconify-icon"){let t,n;try{t=window.customElements,n=window.HTMLElement}catch{return}if(!t||!n)return;const r=t.get(e);if(r)return r;const o=["icon","mode","inline","width","height","rotate","flip"],s=class extends n{constructor(){super();V(this,"_shadowRoot");V(this,"_state");V(this,"_checkQueued",!1);const c=this._shadowRoot=this.attachShadow({mode:"open"}),l=le(this);Qe(c,l),this._state=Ye({value:""},l),this._queueCheck()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(c){if(c==="inline"){const l=le(this),f=this._state;l!==f.inline&&(f.inline=l,Qe(this._shadowRoot,l))}else this._queueCheck()}get icon(){const c=this.getAttribute("icon");if(c&&c.slice(0,1)==="{")try{return JSON.parse(c)}catch{}return c}set icon(c){typeof c=="object"&&(c=JSON.stringify(c)),this.setAttribute("icon",c)}get inline(){return le(this)}set inline(c){c?this.setAttribute("inline","true"):this.removeAttribute("inline")}restartAnimation(){const c=this._state;if(c.rendered){const l=this._shadowRoot;if(c.renderedMode==="svg")try{l.lastChild.setCurrentTime(0);return}catch{}Je(l,c)}}get status(){const c=this._state;return c.rendered?"rendered":c.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const c=this._state,l=this.getAttribute("icon");if(l!==c.icon.value){this._iconChanged(l);return}if(!c.rendered)return;const f=this.getAttribute("mode"),p=Ee(this);(c.attrMode!==f||bn(c.customisations,p))&&this._renderIcon(c.icon,p,f)}_iconChanged(c){const l=Vn(c,(f,p,h)=>{const g=this._state;if(g.rendered||this.getAttribute("icon")!==f)return;const m={value:f,name:p,data:h};m.data?this._gotIconData(m):g.icon=m});l.data?this._gotIconData(l):this._state=Ye(l,this._state.inline,this._state)}_gotIconData(c){this._checkQueued=!1,this._renderIcon(c,Ee(this),this.getAttribute("mode"))}_renderIcon(c,l,f){const p=Qn(c.data.body,f),h=this._state.inline;Je(this._shadowRoot,this._state={rendered:!0,icon:c,inline:h,customisations:l,attrMode:f,renderedMode:p})}};o.forEach(a=>{a in s.prototype||Object.defineProperty(s.prototype,a,{get:function(){return this.getAttribute(a)},set:function(c){c!==null?this.setAttribute(a,c):this.removeAttribute(a)}})});const i=St();for(const a in i)s[a]=s.prototype[a]=i[a];return t.define(e,s),s}ho()||St();const E=(e,t,n="children")=>e.map(r=>Array.isArray(r[n])?t({...r,[n]:E(r[n],t,n)}):t(r)),At=(e,t="children")=>{const n=[];return E(e,r=>n.push(r),t),n},Te=(e,t,n="children")=>e.map(r=>({...r})).filter(r=>{const o=r[n];if(Array.isArray(o)){const i=Te(o,t,n);r[n]=i!=null&&i.length?i:void 0}const s={filteredChildren:r[n],isLeaf:!(o!=null&&o.length)};return t(r,s)}),Pt=e=>/^https?:\/\//.test(e),go=e=>/^[\w-]+:[\w-]+$/.test(e),mo=e=>{if(!e||!(e!=null&&e.startsWith("/")))return!1;const t=o=>o.endsWith("/")?o:`${o}/`,n=t(window.location.pathname),r=t(new URL(e,window.location.origin).pathname);return n.startsWith(r)},Mt=(e=[])=>{const t=e.map((r,o)=>({path:r,index:o})).filter(r=>mo(r.path));return t!=null&&t.length?t.slice(1).reduce((r,o)=>r.path.length>=o.path.length?r:o,t[0]).index:-1};function Ce({icon:e,size:t,sx:n,...r}){const o=[...Array.isArray(n)?n:[n]];if(t&&o.push({width:t,height:t}),r.variant||o.push({"&.MuiAvatar-root":{color:"inherit",fontWeight:"bold",backgroundColor:"transparent",borderRadius:0},"&.MuiAvatar-root svg":{width:"100%",height:"100%"}}),Pt(e))return d.jsx(ie,{component:"span",...r,src:e,sx:o});if(go(e)){const s=t?.6*t+4:0;return d.jsx(ie,{component:"span",...r,sx:o,children:d.jsx(fe,{icon:e,height:s||void 0})})}return e&&typeof e=="string"?(o.push({"&.MuiAvatar-root":{display:"inline-flex",...t&&{fontSize:t-2}}}),d.jsx(ie,{component:"span",...r,sx:o,children:Array.from(e)[0]})):null}const yo=et();function oe({theme:e,children:t}){const n=e?et(e):yo;return d.jsx(Ht,{theme:n,children:t})}oe.propTypes={children:u.any.isRequired,theme:u.object};oe.defaultProps={theme:null};var Xe,Ke;const X=((Xe=window==null?void 0:window.blocklet)==null?void 0:Xe.groupPrefix)||((Ke=window==null?void 0:window.blocklet)==null?void 0:Ke.prefix)||"/",bo=e=>{const t={...e},n=e==null?void 0:e.background;return typeof n=="string"?t.background={header:n,footer:n,default:n}:n&&typeof n=="object"&&(t.background={header:n.header||n.default,footer:n.footer||n.default,default:n.default}),t},$=(e,t="en")=>{if(!(e!=null&&e.length))return e;const n=(o,s)=>typeof o=="string"?o:typeof o=="object"?o[s]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o,r=(o,s)=>{if(typeof o=="string"){if(Pt(o)){const a=new URL(o);return a.searchParams.set("locale",s),a.href}const i=new URL(o,window.location.origin);return i.searchParams.set("locale",s),i.pathname+i.search}return typeof o=="object"?o[s]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o};return E(e,o=>{var s;return{...o,title:n(o.title,t),link:(s=o.items)!=null&&s.length?o.link:r(o.link,t),_rawLink:o.link}},"items")},xo=e=>E(e,t=>t.role?{...t,role:Array.isArray(t.role)?t.role:[t.role]}:t,"items"),wo=e=>{if(!(e!=null&&e.length))return null;const t=xo(e),n={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[],userCenter:[]};return t.forEach(r=>{var o;r.section?Array.isArray(r.section)?r.section.forEach(s=>{var i;(i=n[s])==null||i.push(r)}):typeof r.section=="string"&&((o=n[r.section])==null||o.push(r)):n.header.push(r)}),n},Ae=e=>{if(!e)return null;const t={...e};return t.theme=bo(t.theme),t.navigation=wo(vo(t.navigation)),t},vo=(e=[])=>Te(e,(t,n)=>{var r;return!!t.link||((r=n.filteredChildren)==null?void 0:r.length)},"items"),Lt=(e,t)=>Te(e,(n,r)=>{var s;const o=!n.role||t&&n.role.includes(t);return r.isLeaf?o:o&&((s=r.filteredChildren)==null?void 0:s.length)},"items"),ko={top:-960,width:960,height:960,body:'<path fill="currentColor" d="M510-600v-210q0-12.75 8.625-21.375T540-840h270q12.75 0 21.375 8.625T840-810v210q0 12.75-8.625 21.375T810-570H540q-12.75 0-21.375-8.625T510-600M120-480v-330q0-12.75 8.625-21.375T150-840h270q12.75 0 21.375 8.625T450-810v330q0 12.75-8.625 21.375T420-450H150q-12.75 0-21.375-8.625T120-480m390 330v-330q0-12.75 8.625-21.375T540-510h270q12.75 0 21.375 8.625T840-480v330q0 12.75-8.625 21.375T810-120H540q-12.75 0-21.375-8.625T510-150m-390 0v-210q0-12.75 8.625-21.375T150-390h270q12.75 0 21.375 8.625T450-360v210q0 12.75-8.625 21.375T420-120H150q-12.75 0-21.375-8.625T120-150m60-360h210v-270H180zm390 330h210v-270H570zm0-450h210v-150H570zM180-180h210v-150H180zm210-150"/>'},jo={width:24,height:24,body:'<path fill="currentColor" d="M15.95 12.3L11.7 8.05q-.15-.15-.212-.325t-.063-.375q0-.2.063-.375t.212-.325l4.25-4.25q.15-.15.325-.212t.375-.063q.2 0 .375.063t.325.212l4.25 4.25q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.25 4.25q-.15.15-.325.213t-.375.062q-.2 0-.375-.062t-.325-.213ZM3 10V4q0-.425.288-.713T4 3h6q.425 0 .713.288T11 4v6q0 .425-.288.713T10 11H4q-.425 0-.713-.288T3 10Zm10 10v-6q0-.425.288-.713T14 13h6q.425 0 .713.288T21 14v6q0 .425-.288.713T20 21h-6q-.425 0-.713-.288T13 20ZM3 20v-6q0-.425.288-.713T4 13h6q.425 0 .713.288T11 14v6q0 .425-.288.713T10 21H4q-.425 0-.713-.288T3 20ZM5 9h4V5H5v4Zm11.675 1.2L19.5 7.375L16.675 4.55L13.85 7.375l2.825 2.825ZM15 19h4v-4h-4v4ZM5 19h4v-4H5v4ZM9 9Zm4.85-1.625ZM9 15Zm6 0Z"/>'};function Pe({session:e,locale:t,size:n}){const r=(window==null?void 0:window.blocklet)||{},o=(r.navigation||[]).filter(c=>c.section==="sessionManager"&&!["/sessionManager"].includes(c.id)).filter(c=>{var l;return!!((c==null?void 0:c.role)||[]).includes(((l=e==null?void 0:e.user)==null?void 0:l.role)||"guest")}).map(c=>{const l=((r==null?void 0:r.componentMountPoints)||[]).find(f=>c.component===f.name);return{...c,component:l}}),s=T.useRef(null),i=Dt({open:!1}),a=Ut((c=!i.open)=>{i.open=c});return o.length===0||!(e!=null&&e.user)?null:d.jsxs(d.Fragment,{children:[d.jsx(Bt,{size:"medium",ref:s,onClick:()=>a(),children:d.jsx(fe,{icon:ko,fontSize:n,style:{transform:"scale(1.08)"}})}),d.jsx(Vt,{open:i.open,onClose:()=>a(!1),anchorEl:s.current,transition:!0,placement:"bottom-end",sx:{zIndex:1600},children:({TransitionProps:c})=>d.jsx(Qt,{onClickAway:l=>{l.preventDefault(),l.stopPropagation(),a(!1)},children:d.jsx(Wt,{...c,timeout:350,children:d.jsxs(Zt,{variant:"outlined",sx:{borderRadius:3,width:350,maxWidth:"90vw",borderColor:A.lineStep,p:2,border:"0 !important",boxShadow:`0px 8px 16px 0px ${A.gray6}, 0px 0px 0px 1px ${A.gray6}`},children:[d.jsx(Gt,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, 100px)",gridAutoRows:"minmax(100px, max-content)",justifyContent:"space-between",maxHeight:350,overflowY:"auto",p:0},children:o.map(l=>{var f;return d.jsx(Jt,{disablePadding:!0,children:d.jsxs(Yt,{href:l.link,sx:{p:1,display:"flex",flexDirection:"column",alignItems:"center",gap:1,width:"100%",height:"100%",borderRadius:2,"&:hover":{backgroundColor:A.surfacePrimarySubtitle}},children:[(f=l==null?void 0:l.component)!=null&&f.did?d.jsx(P,{component:"img",src:`${Xt}/blocklet/logo-bundle/${l.component.did}`,sx:{borderRadius:2,width:50,height:50,objectFit:"contain"}}):d.jsx(fe,{fontSize:50,icon:l.icon||jo,color:A.textSubtitle}),d.jsx(Kt,{sx:{fontSize:"12px",color:A.textBase,textAlign:"center",lineHeight:"normal"},children:en(l.title,t)})]})},l.id)})}),d.jsx(tn,{session:e,children:d.jsx(nn,{variant:"outlined",fullWidth:!0,href:on,sx:{mt:1,borderRadius:2,color:A.textBase,borderColor:A.lineBorderStrong,"&:hover":{color:A.primaryBase,borderColor:A.primaryBase}},children:t==="zh"?"管理":"Manage"})})]})})})})]})}Pe.propTypes={session:u.object.isRequired,locale:u.string,size:u.number};Pe.defaultProps={locale:"en",size:24};const Rt=u.shape({appLogo:u.node,appName:u.string,theme:u.shape({background:u.string}),enableConnect:u.bool,enableLocale:u.bool,navigation:u.arrayOf(u.shape({title:u.oneOfType([u.string,u.object]),link:u.oneOfType([u.string,u.object]),icon:u.string,items:u.arrayOf(u.shape({title:u.oneOfType([u.string,u.object]),link:u.oneOfType([u.string,u.object])}))}))}),Nt=u.shape({showText:u.bool,showRole:u.bool,switchDid:u.bool,switchProfile:u.bool,switchPassport:u.bool,disableLogout:u.bool,onLogin:u.func,onLogout:u.func,onSwitchDid:u.func,onSwitchProfile:u.func,onSwitchPassport:u.func,menu:u.array,menuRender:u.func,dark:u.bool,size:u.number});function re({formattedBlocklet:e,addons:t,sessionManagerProps:n}){var h,g,m,x;const r=T.useContext(tt),{locale:o}=ee()||{},{enableConnect:s=!0,enableLocale:i=!0}=e,a=!!((h=r==null?void 0:r.session)!=null&&h.user);let c=$((g=e==null?void 0:e.navigation)==null?void 0:g.sessionManager,o)||[];c=Lt(c,(x=(m=r==null?void 0:r.session)==null?void 0:m.user)==null?void 0:x.role);const f=(()=>{if(t&&typeof t!="function")return Array.isArray(t)?t:[t];let v=[];if(i&&o&&v.push(d.jsx(rn,{showText:!1},"locale-selector")),s&&r){const k=[];a&&(c?c.slice(0,5):[]).forEach(w=>{k.push({label:w.title,icon:w.icon?d.jsx("iconify-icon",{icon:w.icon,height:24,style:{marginRight:8}}):null,component:"a",href:w.link,key:w.link})}),v.push(d.jsx(Pe,{session:r.session,locale:o},"session-blocklet")),v.push(d.jsx(sn,{session:r.session,locale:o,menu:k,showRole:!0,...n},"session-user"))}return typeof t=="function"&&(v=t(v)||[]),v})();return T.createElement(d.Fragment,null,...Array.isArray(f)?f:[f])}re.propTypes={formattedBlocklet:u.object.isRequired,addons:u.oneOfType([u.func,u.node]),sessionManagerProps:Nt};re.defaultProps={addons:null,sessionManagerProps:{showRole:!0}};const Ot=()=>{const e=cn();T.useEffect(()=>{e.wallet&&an.call("arcHideTopBar","{}")},[e])},Io=e=>{if(!(e!=null&&e.length))return{navItems:[],activeId:null};let t=1;const r=E(e,i=>{var l,f;const a=i.icon?d.jsx(Ce,{icon:i.icon}):null;if(i.items)return{id:`${t++}`,label:i.title,icon:a,children:i.items};let c={};return((l=i.link)!=null&&l.startsWith("http://")||(f=i.link)!=null&&f.startsWith("https://"))&&(c={target:"_blank",rel:"noreferrer"}),{id:`${t++}`,label:d.jsx("a",{href:i.link,...c,children:i.title}),icon:a,link:i.link}},"items"),o=At(r),s=Mt(o.map(i=>i.link));return{navItems:r,activeId:s>=0?o[s].id:null}};function So({meta:e={},addons:t,sessionManagerProps:n={showRole:!0},homeLink:r=X,theme:o,hideNavMenu:s=!1,...i}){var b,w;Ot();const{locale:a}=ee()||{},c=T.useMemo(()=>{const C=Object.assign({},window.blocklet,e);try{return Ae(C)}catch(j){return console.error("Failed to format blocklet info",j,C),C}},[e]);if(!c.appName)return null;const{appLogo:l,appLogoRect:f,theme:p}=c,h=$((b=c==null?void 0:c.navigation)==null?void 0:b.header,a),g=Io(h),{navItems:m,activeId:x}=g,v=typeof t=="function"?C=>t(C,{navigation:g}):t,k=d.jsx(re,{formattedBlocklet:c,addons:v,sessionManagerProps:n});return d.jsx(oe,{theme:o,children:d.jsx(To,{homeLink:r,logo:d.jsx("img",{src:f||l,alt:"logo"}),addons:k,...ot(i,["bordered"]),$bordered:i==null?void 0:i.bordered,$bgcolor:(w=p==null?void 0:p.background)==null?void 0:w.header,children:s||!(m!=null&&m.length)?null:({isMobile:C})=>d.jsx(un,{mode:C?"inline":"horizontal",activeId:x,items:m,className:"header-nav",bgColor:"transparent",textColor:"#777"})})})}const To=M(ln)`
|
|
12
12
|
${({$bgcolor:e})=>`background-color: ${e||"#fff"};`}
|
|
13
13
|
font-family: Inter, Avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif,
|
|
14
14
|
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
@@ -225,7 +225,7 @@ var Ft=Object.defineProperty;var zt=(e,t,n)=>t in e?Ft(e,t,{enumerable:!0,config
|
|
|
225
225
|
${e=>e.theme.breakpoints.down("md")} {
|
|
226
226
|
gap: 12px;
|
|
227
227
|
}
|
|
228
|
-
`;function
|
|
228
|
+
`;function Re({owner:e,year:t,...n}){return d.jsxs(Mo,{...n,children:["Copyright © ",t," ",e]})}Re.propTypes={owner:u.string,year:u.string};Re.defaultProps={owner:"ArcBlock",year:`${new Date().getFullYear()}`};const Mo=M("p")`
|
|
229
229
|
display: flex;
|
|
230
230
|
align-items: center;
|
|
231
231
|
margin: 0;
|
|
@@ -251,7 +251,7 @@ var Ft=Object.defineProperty;var zt=(e,t,n)=>t in e?Ft(e,t,{enumerable:!0,config
|
|
|
251
251
|
margin: 0 auto;
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
|
-
`;function Et({elements:e,data:t,...n}){var r;return d.jsx(
|
|
254
|
+
`;function Et({elements:e,data:t,...n}){var r;return d.jsx(Ro,{...n,children:d.jsxs(st,{children:[d.jsxs(P,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"},justifyContent:"space-between",alignItems:{xs:"center",md:"space-between"},gap:2,pb:3},children:[d.jsx(P,{children:e.brand}),d.jsx(P,{lineHeight:1,children:e.socialMedia})]}),!!((r=t.navigation)!=null&&r.length)&&d.jsx(P,{sx:{mb:6,pt:3,borderTop:1,borderColor:"grey.200"},children:e.navigation}),d.jsxs(se,{sx:{pt:3,borderTop:1,borderColor:"grey.200"},autoCenter:!0,children:[e.copyright,e.links]})]})})}Et.propTypes={elements:u.shape({brand:u.element,navigation:u.element,socialMedia:u.element,copyright:u.element,links:u.element}).isRequired,data:u.object.isRequired};const Ro=M("div")`
|
|
255
255
|
padding: 32px 0 24px 0;
|
|
256
256
|
.footer-brand-name,
|
|
257
257
|
.footer-brand-desc {
|
|
@@ -260,7 +260,7 @@ var Ft=Object.defineProperty;var zt=(e,t,n)=>t in e?Ft(e,t,{enumerable:!0,config
|
|
|
260
260
|
&& .footer-brand-logo {
|
|
261
261
|
margin-right: 0;
|
|
262
262
|
}
|
|
263
|
-
`;function $t({elements:e,data:t,...n}){return d.jsx(
|
|
263
|
+
`;function $t({elements:e,data:t,...n}){return d.jsx(No,{...n,children:d.jsxs(st,{className:"plain-layout-container",children:[!!t.links&&d.jsxs(se,{sx:{width:1},autoCenter:!0,children:[e.copyright,e.links]}),!t.links&&d.jsxs(d.Fragment,{children:[T.cloneElement(e.brand,{name:null,description:null}),e.copyright]})]})})}$t.propTypes={elements:u.shape({brand:u.element,navigation:u.element,socialMedia:u.element,copyright:u.element,links:u.element}).isRequired,data:u.object.isRequired};const No=M("div")`
|
|
264
264
|
padding: 24px 0;
|
|
265
265
|
.plain-layout-container {
|
|
266
266
|
display: flex;
|
|
@@ -269,10 +269,10 @@ var Ft=Object.defineProperty;var zt=(e,t,n)=>t in e?Ft(e,t,{enumerable:!0,config
|
|
|
269
269
|
flex-wrap: wrap;
|
|
270
270
|
gap: 8px;
|
|
271
271
|
}
|
|
272
|
-
`,_t=[{name:"plain",support:(e,t)=>{var n,r;return!((n=t.navigation)!=null&&n.length)&&!((r=t.socialMedia)!=null&&r.length)},component:$t},{name:"standard",support:()=>!0,component:Et}],Oo=_t.reduce((e,t)=>({...e,[t.name]:t}),{});function
|
|
272
|
+
`,_t=[{name:"plain",support:(e,t)=>{var n,r;return!((n=t.navigation)!=null&&n.length)&&!((r=t.socialMedia)!=null&&r.length)},component:$t},{name:"standard",support:()=>!0,component:Et}],Oo=_t.reduce((e,t)=>({...e,[t.name]:t}),{});function Ne(e){var x,v;const{brand:t,navigation:n,socialMedia:r,copyright:o,links:s,layout:i,...a}=e,c=()=>t?d.jsx(Me,{...t}):null,l=()=>n!=null&&n.length?d.jsx(K,{links:n}):null,f=()=>r!=null&&r.length?d.jsx(Le,{items:r}):null,p=()=>{const k=(o==null?void 0:o.owner)||(t==null?void 0:t.name);return k?d.jsx(Re,{owner:k,year:(o==null?void 0:o.year)||void 0}):null},h=()=>s!=null&&s.length?d.jsx(K,{flowLayout:!0,links:s}):null,g={brand:c(),navigation:l(),socialMedia:f(),copyright:p(),links:h()};let m=null;if(i==="auto"?m=_t.find(k=>k.support(g,e)).component:m=(x=Oo[i])==null?void 0:x.component,!m)throw new Error(`layout ${i} is not supported.`);return d.jsxs(P,{position:"relative",...a,children:[d.jsx(m,{elements:g,data:e}),d.jsx(P,{position:"absolute",right:16,bottom:0,fontSize:12,sx:{color:"transparent","::selection":{background:"#000",color:"#fff"}},children:(v=window==null?void 0:window.blocklet)==null?void 0:v.version})]})}Ne.propTypes={brand:u.shape({name:u.node,description:u.string,logo:u.node}),navigation:u.arrayOf(u.shape({label:u.node,link:u.string})),socialMedia:u.arrayOf(u.shape({icon:u.node,link:u.string})),copyright:u.shape({owner:u.string,year:u.oneOfType([u.string,u.number])}),links:u.arrayOf(u.shape({label:u.node,link:u.string})),layout:u.oneOf(["auto","standard","plain"])};Ne.defaultProps={brand:null,navigation:null,copyright:null,socialMedia:null,links:null,layout:"auto"};function Oe({meta:e,theme:t,...n}){var m,x,v,k;const{locale:r}=ee()||{},o=T.useMemo(()=>{const b=Object.assign({},window.blocklet,e);try{return Ae(b)}catch(w){return console.error("Failed to format blocklet info",w,b),b}},[e]);if(!o.appName)return null;const{appLogo:s,appLogoRect:i,appName:a,appDescription:c,description:l,theme:f,copyright:p}=o,h={footerNav:$((m=o==null?void 0:o.navigation)==null?void 0:m.footer,r)||[],socialMedia:$((x=o==null?void 0:o.navigation)==null?void 0:x.social,r)||[],links:$((v=o==null?void 0:o.navigation)==null?void 0:v.bottom,r)||[]},g={brand:{name:a,description:c||l,logo:i||s},navigation:E(h.footerNav,b=>({...b,label:b.title,link:b.link}),"items"),copyright:p,socialMedia:h.socialMedia,links:h.links.map(b=>({...b,label:b.title}))};return d.jsx(oe,{theme:t,children:d.jsx(Eo,{...g,...ot(n,["bordered"]),$bordered:n==null?void 0:n.bordered,$bgcolor:(k=f==null?void 0:f.background)==null?void 0:k.footer})})}Oe.propTypes={meta:Rt,theme:u.object};Oe.defaultProps={meta:{},theme:null};const Eo=M(Ne)`
|
|
273
273
|
${({$bordered:e})=>`border-top: 1px solid ${e?A.strokeSep:"#eee"};`}
|
|
274
274
|
color: ${e=>e.theme.palette.grey[600]};
|
|
275
275
|
${({$bgcolor:e})=>e&&`background-color: ${e};`}
|
|
276
276
|
font-family: Inter, Avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif,
|
|
277
277
|
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
278
|
-
`,zo=nt(Oe,{FallbackComponent:rt});function qt({meta:e,fallbackUrl:t,invalidPathFallback:n,headerAddons:r,sessionManagerProps:o,links:s,...i}){var C;Ot();const a=T.useContext(tt),c=(C=a==null?void 0:a.session)==null?void 0:C.user,l=c==null?void 0:c.role,{locale:f}=ee()||{},p=T.useMemo(()=>{const j=Object.assign({},window.blocklet,e);try{return Ae(j)}catch(y){return console.error("Failed to format blocklet info",y,j),j}},[e]),{localizedNav:h,flattened:g,matchedIndex:m}=T.useMemo(()=>{var L;let j=$((L=p==null?void 0:p.navigation)==null?void 0:L.dashboard,f)||[];j=Lt(j,l),j=E(j,S=>({title:S.title,url:S.link,icon:S.icon?d.jsx("iconify-icon",{height:"100%",width:"100%",icon:S.icon}):null,external:!0,children:S.items}),"items");const y=At(j).filter(S=>!!S.url),I=Mt(y.map(S=>S.url));return I!==-1&&(y[I].active=!0),{localizedNav:j,flattened:y,matchedIndex:I}},[p,f,l]),x=typeof s=="function"?s(h):[...h,...s];if(T.useLayoutEffect(()=>{c&&!(g!=null&&g.length)&&t&&(window.location.href=t)},[t]),T.useLayoutEffect(()=>{c&&(g!=null&&g.length)&&m===-1&&n&&n()},[n,g,m]),!p.appName)return null;const{appLogo:v,appLogoRect:k,appName:b}=p,w=d.jsx(re,{formattedBlocklet:p,addons:r,sessionManagerProps:o});return d.jsx(dn,{title:b,fullWidth:!0,sidebarWidth:128,legacy:!1,links:x,...i,headerProps:{homeLink:X,logo:d.jsx("img",{src:k||v,alt:"logo"}),addons:w,...i.headerProps}})}qt.propTypes={meta:
|
|
278
|
+
`,zo=nt(Oe,{FallbackComponent:rt});function qt({meta:e,fallbackUrl:t,invalidPathFallback:n,headerAddons:r,sessionManagerProps:o,links:s,...i}){var C;Ot();const a=T.useContext(tt),c=(C=a==null?void 0:a.session)==null?void 0:C.user,l=c==null?void 0:c.role,{locale:f}=ee()||{},p=T.useMemo(()=>{const j=Object.assign({},window.blocklet,e);try{return Ae(j)}catch(y){return console.error("Failed to format blocklet info",y,j),j}},[e]),{localizedNav:h,flattened:g,matchedIndex:m}=T.useMemo(()=>{var L;let j=$((L=p==null?void 0:p.navigation)==null?void 0:L.dashboard,f)||[];j=Lt(j,l),j=E(j,S=>({title:S.title,url:S.link,icon:S.icon?d.jsx("iconify-icon",{height:"100%",width:"100%",icon:S.icon}):null,external:!0,children:S.items}),"items");const y=At(j).filter(S=>!!S.url),I=Mt(y.map(S=>S.url));return I!==-1&&(y[I].active=!0),{localizedNav:j,flattened:y,matchedIndex:I}},[p,f,l]),x=typeof s=="function"?s(h):[...h,...s];if(T.useLayoutEffect(()=>{c&&!(g!=null&&g.length)&&t&&(window.location.href=t)},[t]),T.useLayoutEffect(()=>{c&&(g!=null&&g.length)&&m===-1&&n&&n()},[n,g,m]),!p.appName)return null;const{appLogo:v,appLogoRect:k,appName:b}=p,w=d.jsx(re,{formattedBlocklet:p,addons:r,sessionManagerProps:o});return d.jsx(dn,{title:b,fullWidth:!0,sidebarWidth:128,legacy:!1,links:x,...i,headerProps:{homeLink:X,logo:d.jsx("img",{src:k||v,alt:"logo"}),addons:w,...i.headerProps}})}qt.propTypes={meta:Rt,fallbackUrl:u.string,invalidPathFallback:u.func,headerAddons:u.oneOfType([u.func,u.node]),sessionManagerProps:Nt,links:u.oneOfType([u.array,u.func])};qt.defaultProps={meta:{},fallbackUrl:X,invalidPathFallback:null,headerAddons:void 0,sessionManagerProps:{showRole:!0,onLogout:()=>{window.location.href=X}},links:[]};export{qt as D,zo as F,Fo as H};
|