@abtnode/webapp 1.16.29-beta-bb5685f8 → 1.16.29-beta-44e63d18
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-C0jlH_zP.js → Add-CtWL6e1q.js} +1 -1
- package/dist/assets/{ArrowDropDown-DrehtX2f.js → ArrowDropDown-DV5W7OwL.js} +1 -1
- package/dist/assets/{Autocomplete-CdIGu-2l.js → Autocomplete-DyU5KK53.js} +1 -1
- package/dist/assets/{Breadcrumbs-Oi4z-7JU.js → Breadcrumbs-BMUTpqOP.js} +1 -1
- package/dist/assets/{ButtonGroup-NvrTYf1s.js → ButtonGroup-CkKt07uc.js} +1 -1
- package/dist/assets/{CheckCircle-uTfAh2GX.js → CheckCircle-CstzeHGf.js} +1 -1
- package/dist/assets/{ChevronLeft-C-HoTf-Q.js → ChevronLeft-ChWv_0Iv.js} +1 -1
- package/dist/assets/{ChevronRight-c5xZzIfK.js → ChevronRight-B2EtVjwt.js} +1 -1
- package/dist/assets/{Close-C5A1sroQ.js → Close-CyRwkk-q.js} +1 -1
- package/dist/assets/Delete-DvKqIX20.js +1 -0
- package/dist/assets/{DeleteOutline-DuzabIUt.js → DeleteOutline-CddvKtlT.js} +1 -1
- package/dist/assets/DeleteOutline-DZhkyDfV.js +1 -0
- package/dist/assets/{Done-MfHSISFV.js → Done-BQwAUEUo.js} +1 -1
- package/dist/assets/{Edit-Cn_G48ZU.js → Edit-CARh1zds.js} +1 -1
- package/dist/assets/{EditIcon-B1ovGBjD.js → EditIcon-C_npOrmv.js} +1 -1
- package/dist/assets/{FilterList-DiA-6Il8.js → FilterList-BvE0UAo0.js} +5 -5
- package/dist/assets/{Google-DQdWmIOC.js → Google-ZjI0DrLI.js} +1 -1
- package/dist/assets/{Https-BRpH0Ae8.js → Https-6N1TcHuj.js} +1 -1
- package/dist/assets/{InputAdornment-CDb1Pg-S.js → InputAdornment-7qAmlR7q.js} +1 -1
- package/dist/assets/{InputLabel-Xa0HFZxn.js → InputLabel-BTEO1M40.js} +1 -1
- package/dist/assets/{LastPage-BtCi2wuv.js → LastPage-GiOUS0-i.js} +1 -1
- package/dist/assets/{Launch-BRBdnw92.js → Launch-BNP89Oc8.js} +1 -1
- package/dist/assets/{Link-B8edwUNQ.js → Link-DPfyUdIn.js} +1 -1
- package/dist/assets/{LoadingButton-UpGMfSHA.js → LoadingButton-DQPvdwNz.js} +1 -1
- package/dist/assets/{LockIcon-Bs5dBhg9.js → LockIcon-DsRpj_gz.js} +1 -1
- package/dist/assets/{Loop-QRcaFYyu.js → Loop-CqukocCd.js} +1 -1
- package/dist/assets/{MoreVert-0x6ZKOOm.js → MoreVert-dIXJT0E2.js} +1 -1
- package/dist/assets/{Pagination-BWwDGBkP.js → Pagination-Xjpbun1V.js} +1 -1
- package/dist/assets/{Public-DBy7o1UF.js → Public-jBeoVLdm.js} +1 -1
- package/dist/assets/{SchemaReference.es-p0gT2gqO.js → SchemaReference.es-DmsnLofb.js} +1 -1
- package/dist/assets/{Search-DwG5nouB.js → Search-CXF_z21D.js} +1 -1
- package/dist/assets/{Select-CjUz8jvK.js → Select-Ck-rwnxI.js} +2 -2
- package/dist/assets/{Skeleton-CDB0GyGY.js → Skeleton-bh5z66KF.js} +5 -5
- package/dist/assets/{Slider-DwYIlYBn.js → Slider-mP-9Rabl.js} +1 -1
- package/dist/assets/{Stepper-antHQYRF.js → Stepper-3wmaNEG9.js} +1 -1
- package/dist/assets/{TextField-WEzwgjP0.js → TextField-Cb0I13kb.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-dJuSsWUY.js → ToggleButtonGroup-GwWpjRQx.js} +1 -1
- package/dist/assets/{ViewList-BAMGdQxk.js → ViewList-Bf6MkAgw.js} +1 -1
- package/dist/assets/{actions-BbcoFZjT.js → actions-D2Nr19i-.js} +1 -1
- package/dist/assets/actions-D4SIeJQs.js +11 -0
- package/dist/assets/{agreement-CiDOtCXU.js → agreement-B52xwcRE.js} +1 -1
- package/dist/assets/api-BkA5hx89.js +1 -0
- package/dist/assets/app-avatar-ClIQjaP-.js +1 -0
- package/dist/assets/ar-DdaiKEoW.js +1 -0
- package/dist/assets/{audit-logs-C-4-t6rX.js → audit-logs-CAczoYFX.js} +1 -1
- package/dist/assets/blocklet-DbOAUQG9.js +1 -0
- package/dist/assets/{brace-fold.es-CGT1cM_X.js → brace-fold.es-D4FLzACD.js} +1 -1
- package/dist/assets/{bundle-avatar-BRoQ90__.js → bundle-avatar-CGsU-HbI.js} +1 -1
- package/dist/assets/{chart-DnmL96Rh.js → chart-og0vxN0J.js} +2 -2
- package/dist/assets/{click-to-copy-Pr-Zbrif.js → click-to-copy-DKenG9LX.js} +1 -1
- package/dist/assets/{closebrackets.es-DsNYy4i3.js → closebrackets.es-B9xGBc1l.js} +1 -1
- package/dist/assets/{codemirror.es-DwAzghgf.js → codemirror.es-DnfFbgQm.js} +1 -1
- package/dist/assets/{comment.es-DhPl6sms.js → comment.es-DcJgW-0Z.js} +1 -1
- package/dist/assets/{config-navigation-DAD-pXS6.js → config-navigation-CrhKH9Mi.js} +1 -1
- package/dist/assets/de-PoTDtu-y.js +1 -0
- package/dist/assets/{delete-confirm-C2q7Vvj-.js → delete-confirm-DX-XHcl9.js} +1 -1
- package/dist/assets/{detail-BTV64Agz.js → detail-ADHPCJ2i.js} +3 -3
- package/dist/assets/{dialog.es-Bbrn4b99.js → dialog.es-9xd4UJpC.js} +1 -1
- package/dist/assets/{download-B9hXOuXD.js → download-Bg-C4aNR.js} +5 -5
- package/dist/assets/es-D79-uip0.js +1 -0
- package/dist/assets/{foldgutter.es-BJubswZD.js → foldgutter.es-C7HbANvK.js} +1 -1
- package/dist/assets/fr-Dgc_te8c.js +1 -0
- package/dist/assets/getValidReactChildren-ClGStIXY.js +1 -0
- package/dist/assets/hi-BndsdrdI.js +1 -0
- package/dist/assets/{hint.es-C-RplnH-.js → hint.es-CG2lL-pn.js} +1 -1
- package/dist/assets/{hint.es2-CNgpWTT8.js → hint.es2-OvG49YiM.js} +1 -1
- package/dist/assets/id-8ozDjIcf.js +1 -0
- package/dist/assets/{iframe-z1F3R-br.js → iframe-xnXRzLO_.js} +1 -1
- package/dist/assets/{index-C_LsHXyQ.js → index-6AreGVDd.js} +1 -1
- package/dist/assets/index-AEn2e-Qa.js +288 -0
- package/dist/assets/{index-3GrPYR-0.js → index-B1TlfhV-.js} +1 -1
- package/dist/assets/{index-GDpPN-gh.js → index-B4dfyqei.js} +1 -1
- package/dist/assets/{index-DOduirD-.js → index-B97h6iDo.js} +1 -1
- package/dist/assets/{index-P3idGO87.js → index-BC3241Rp.js} +1 -1
- package/dist/assets/index-BH4drhf0.js +11 -0
- package/dist/assets/index-BPdt_6z_.js +302 -0
- package/dist/assets/{index-BniMuAse.js → index-BSCYY90A.js} +1 -1
- package/dist/assets/{index-CdfKqS5O.js → index-BWIy-1uj.js} +1 -1
- package/dist/assets/{index-n9PgzTmH.js → index-BijlUenA.js} +1 -1
- package/dist/assets/index-Bj9cH_TN.js +58 -0
- package/dist/assets/index-BkRPFnv6.js +912 -0
- package/dist/assets/{index-BYxffRHK.js → index-Bz7VE6Lo.js} +1 -1
- package/dist/assets/{index-BKYjcIDk.js → index-C9Z58DAP.js} +1 -1
- package/dist/assets/{index-Amewrci5.js → index-CMXoms2z.js} +1 -1
- package/dist/assets/{index-7QaQQyyg.js → index-CTYM657U.js} +1 -1
- package/dist/assets/{index-Ddq4jr_U.js → index-CXlxAjbt.js} +207 -207
- package/dist/assets/index-CYxeq-8x.js +1 -0
- package/dist/assets/{index-BeATEtzy.js → index-Cb6algTF.js} +1 -1
- package/dist/assets/{index-D5kwWkvv.js → index-CbAiaQ3F.js} +9 -9
- package/dist/assets/{index-B-ejgY6o.js → index-Cj_T0gK-.js} +1 -1
- package/dist/assets/index-D2iFVes6.js +9 -0
- package/dist/assets/{index-eBDS1eXE.js → index-D4bAAnjl.js} +1 -1
- package/dist/assets/index-D7vDNazA.js +21 -0
- package/dist/assets/{index-DqaA-1j3.js → index-DLx4dGje.js} +8 -8
- package/dist/assets/{index-DcDo8U3a.js → index-DS3w7X0-.js} +1 -1
- package/dist/assets/{index-Bd27-rFC.js → index-DUQBU3A3.js} +1 -1
- package/dist/assets/{index-DdpOtHIy.js → index-DjIprepw.js} +1 -1
- package/dist/assets/{index-BDKa_BY3.js → index-Dk1ISn-T.js} +13 -13
- package/dist/assets/{index-nRTaNnQw.js → index-Dl1gEDFs.js} +1 -1
- package/dist/assets/{index-C2d2WkHe.js → index-DlMosniW.js} +4 -4
- package/dist/assets/{index-BuCL0HpY.js → index-Dr_hAN7j.js} +1 -1
- package/dist/assets/{index-BNcfbTbf.js → index-DsrFOtgZ.js} +1 -1
- package/dist/assets/{index-9TIeU8eV.js → index-Dw6RXFE7.js} +5 -5
- package/dist/assets/{index-DKWkPDvp.js → index-EsfHMeNl.js} +2 -2
- package/dist/assets/{index-KpJXpdYI.js → index-HICQj4hv.js} +1 -1
- package/dist/assets/{index-D-5tSEIi.js → index-KEDAiU9B.js} +8 -8
- package/dist/assets/{index-CgtLAydP.js → index-WTVw0qkz.js} +1 -1
- package/dist/assets/index-ZG7jWpak.js +1 -0
- package/dist/assets/{index-BJgIXaX1.js → index-g_cLscfb.js} +2 -2
- package/dist/assets/{index-qxGoRIpD.js → index-mnqV3Gg1.js} +1 -1
- package/dist/assets/{index-Dx7GtFO4.js → index-oDvmOv_q.js} +1 -1
- package/dist/assets/{index-HfmVdk5l.js → index-vr3RQzyc.js} +1 -1
- package/dist/assets/{index-DmQo-C54.js → index-yN879Jjz.js} +3 -3
- package/dist/assets/{index.es-mE5_ixZH.js → index.es-B4FMDGXT.js} +1 -1
- package/dist/assets/{index.esm-fGXhVzzq.js → index.esm-BSlWfzeP.js} +1 -1
- package/dist/assets/{info-addon.es-BvVuxhQQ.js → info-addon.es-CmaDZTYX.js} +1 -1
- package/dist/assets/{info.es-MM55o9RA.js → info.es-CqlQtF1J.js} +1 -1
- package/dist/assets/{install-from-url-D0Mot9As.js → install-from-url-D85z_2dU.js} +1 -1
- package/dist/assets/{invitation-DQ7pnJkF.js → invitation-CzzPC7mZ.js} +7 -7
- package/dist/assets/{is-path-prefix-equal-DMaJOeQN.js → is-path-prefix-equal-C8x0wuLM.js} +1 -1
- package/dist/assets/{isEqual-BQFT4gzY.js → isEqual-Bj8gRbdE.js} +1 -1
- package/dist/assets/{item-C7ih-Gxw.js → item-C2-H33Xq.js} +10 -10
- package/dist/assets/ja-CcDxF9sH.js +1 -0
- package/dist/assets/{javascript.es-BiK5ETle.js → javascript.es-Bt0QmNDU.js} +1 -1
- package/dist/assets/{jump-to-line.es-xLmM6XQj.js → jump-to-line.es-ByoMAIJw.js} +1 -1
- package/dist/assets/{jump.es-BK7Mo0mV.js → jump.es-CzKPCQ7C.js} +1 -1
- package/dist/assets/ko-Cru7cB1S.js +1 -0
- package/dist/assets/{line-DRJUtJJ7.js → line-CcgTKGkN.js} +4 -4
- package/dist/assets/{lint.es-CP-Ar6xo.js → lint.es-BcV0qHVh.js} +1 -1
- package/dist/assets/{lint.es2-WhVmGalN.js → lint.es2-B6j7CgmH.js} +1 -1
- package/dist/assets/{lint.es3-DAPaYml5.js → lint.es3-BI3Fnjz7.js} +1 -1
- package/dist/assets/{list-header-Dyo4DcEh.js → list-header-r2MrC8R7.js} +1 -1
- package/dist/assets/{log-Dg18Gkt2.js → log-B2SpWU1b.js} +1 -1
- package/dist/assets/{lottie-Bqw4aFON.js → lottie-DRE-Y506.js} +1 -1
- package/dist/assets/{matchbrackets.es-DVUMeePc.js → matchbrackets.es-CZaojsDe.js} +1 -1
- package/dist/assets/{memory-BLxwSKAa.js → memory-CLeQ9wj3.js} +1 -1
- package/dist/assets/{mode.es-DvtWXSbp.js → mode.es-BKxduziR.js} +1 -1
- package/dist/assets/{mode.es2-yGA392Ce.js → mode.es2-oYgJRmpO.js} +1 -1
- package/dist/assets/{mode.es3-bF1o4S_X.js → mode.es3-C6VF1A5H.js} +1 -1
- package/dist/assets/{onlineParser.es-D8oRG-7l.js → onlineParser.es-DjQRxwyL.js} +1 -1
- package/dist/assets/{overview-e30PAYmB.js → overview-RIv7gMxd.js} +2 -2
- package/dist/assets/pt-VKJn0kQ2.js +1 -0
- package/dist/assets/{react-Dixc1jm3.js → react-CtfovMFE.js} +3 -3
- package/dist/assets/{redux-Cw-bFLc5.js → redux-n2Ud4s7O.js} +1 -1
- package/dist/assets/{resource-dialog-C522yqNu.js → resource-dialog-CCYYxNig.js} +2 -2
- package/dist/assets/ru-D9UjS3E5.js +1 -0
- package/dist/assets/{runtime-D6nwOziK.js → runtime-DMZBU3fd.js} +1 -1
- package/dist/assets/{search.es-Cd0QD07l.js → search.es-ktV_4nJp.js} +1 -1
- package/dist/assets/{searchcursor.es-Bfc4-LPG.js → searchcursor.es-DsxyEmEP.js} +1 -1
- package/dist/assets/service-Q8384W7b.js +1 -0
- package/dist/assets/{shorten-label-DlpxUgCq.js → shorten-label-CrSVX0AE.js} +1 -1
- package/dist/assets/{show-hint.es-CN7yg_JP.js → show-hint.es-Br8tdMLx.js} +1 -1
- package/dist/assets/{slicedToArray-CiZnKyCy.js → slicedToArray-D1x3Qiie.js} +1 -1
- package/dist/assets/{spaces-Ca83-jCl.js → spaces-BE4uA08l.js} +1 -1
- package/dist/assets/{sublime.es-DgFQ3pas.js → sublime.es-CRbP9ior.js} +1 -1
- package/dist/assets/{switch-control-67XrThc4.js → switch-control-CtSMa6CL.js} +1 -1
- package/dist/assets/{table-icons-CRJe_3MP.js → table-icons-DmUMJib8.js} +2 -2
- package/dist/assets/{tag-DAjEEpCa.js → tag-Ch_ov9cM.js} +1 -1
- package/dist/assets/{team-CyhoyJ9a.js → team-Dg-GIRHy.js} +1 -1
- package/dist/assets/th-Bdgg14ky.js +1 -0
- package/dist/assets/toUpper-BB8gVufE.js +1 -0
- package/dist/assets/{traffic-DeHbNL-I.js → traffic-gisgr_Kk.js} +5 -5
- package/dist/assets/{url-evaluation-CbzEvBzd.js → url-evaluation-DS-mv3rc.js} +4 -4
- package/dist/assets/{url-join-DIhz1PVb.js → url-join-CRuOScTr.js} +1 -1
- package/dist/assets/{use-blocklet-info-for-connect-did-spaces-DuQNnaZW.js → use-blocklet-info-for-connect-did-spaces-BbKNcBiN.js} +1 -1
- package/dist/assets/useLocalStorage-D6Mk1Qod.js +1 -0
- package/dist/assets/{util-9vU2zZs2.js → util-Chab15Qm.js} +1 -1
- package/dist/assets/vi-CluOygTN.js +1 -0
- package/dist/assets/{wait-container-oqsX_-iJ.js → wait-container-BPRlQTFB.js} +3 -3
- package/dist/assets/withStyles-D96lNAEp.js +1 -0
- package/dist/assets/wrap-locale-4RphGrjp.js +1 -0
- package/dist/assets/zh-D5LYaM2r.js +2 -0
- package/dist/assets/zh-tw-DWxvyN7A.js +1 -0
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +1 -1
- package/dist/assets/Delete-BqtdSlNQ.js +0 -1
- package/dist/assets/DeleteOutline-DWh2h-xw.js +0 -1
- package/dist/assets/actions-Axwta7IP.js +0 -11
- package/dist/assets/api-DgUgGcaK.js +0 -1
- package/dist/assets/app-avatar-DSkk2bqr.js +0 -1
- package/dist/assets/ar-XdwzyXYH.js +0 -1
- package/dist/assets/blocklet-CbzARbti.js +0 -1
- package/dist/assets/de-BhcSSVI_.js +0 -1
- package/dist/assets/es-CE8qLgeN.js +0 -1
- package/dist/assets/fr-IbaIGGgw.js +0 -1
- package/dist/assets/getValidReactChildren-CqAGVe_y.js +0 -1
- package/dist/assets/hi-LDjl5wGc.js +0 -1
- package/dist/assets/id-DduzF3jK.js +0 -1
- package/dist/assets/index-C6YaOYlB.js +0 -11
- package/dist/assets/index-CSEZ2el2.js +0 -231
- package/dist/assets/index-CSOdd_os.js +0 -1
- package/dist/assets/index-Csvz8Imb.js +0 -9
- package/dist/assets/index-DkP2dxtw.js +0 -302
- package/dist/assets/index-DyoBof3A.js +0 -58
- package/dist/assets/index-WbmzOgUa.js +0 -21
- package/dist/assets/index-_bmSdh1U.js +0 -911
- package/dist/assets/ja-CQab-CnH.js +0 -1
- package/dist/assets/ko-BwMl9-je.js +0 -1
- package/dist/assets/pt-CKVSjj07.js +0 -1
- package/dist/assets/ru-BYWTtj7Q.js +0 -1
- package/dist/assets/service-DgYqociD.js +0 -1
- package/dist/assets/th-TJjvBNbR.js +0 -1
- package/dist/assets/toUpper-CYBV7cHO.js +0 -1
- package/dist/assets/useLocalStorage-BRZrZD2R.js +0 -1
- package/dist/assets/vi-DGeyTUFq.js +0 -1
- package/dist/assets/withStyles-CBM6laCD.js +0 -1
- package/dist/assets/wrap-locale-BFSbv413.js +0 -1
- package/dist/assets/zh-CPeMUIOU.js +0 -2
- package/dist/assets/zh-tw-C76dFi4k.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as j,
|
|
1
|
+
import{g as j,cA as O}from"./index-CXlxAjbt.js";function A(i,t){for(var r=0;r<t.length;r++){const a=t[r];if(typeof a!="string"&&!Array.isArray(a)){for(const e in a)if(e!=="default"&&!(e in i)){const s=Object.getOwnPropertyDescriptor(a,e);s&&Object.defineProperty(i,e,s.get?s:{enumerable:!0,get:()=>a[e]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}var d={default:O,call:function(i,t,r){var a="";typeof t=="function"&&(r=t,t={});var e={data:t===void 0?null:t};if(typeof r=="function"){var s="dscb"+window.dscb++;window[s]=r,e._dscbstub=s}return e=JSON.stringify(e),window._dsbridge?a=_dsbridge.call(i,e):(window._dswk||navigator.userAgent.indexOf("_dsbridge")!=-1)&&(a=prompt("_dsbridge="+i,e)),JSON.parse(a||"{}").data},register:function(i,t,r){var a=r?window._dsaf:window._dsf;window._dsInit||(window._dsInit=!0,setTimeout(function(){d.call("_dsb.dsinit")},0)),typeof t=="object"?a._obs[i]=t:a[i]=t},registerAsyn:function(i,t){this.register(i,t,!0)},hasNativeMethod:function(i,t){return this.call("_dsb.hasNativeMethod",{name:i,type:t||"all"})},disableJavascriptDialogBlock:function(i){this.call("_dsb.disableJavascriptDialogBlock",{disable:i!==!1})}};(function(){if(!window._dsf){var i={_dsf:{_obs:{}},_dsaf:{_obs:{}},dscb:0,dsBridge:d,close:function(){d.call("_dsb.closePage")},_handleMessageFromNative:function(r){var a=JSON.parse(r.data),e={id:r.callbackId,complete:!0},s=this._dsf[r.method],o=this._dsaf[r.method],p=function(u,_){e.data=u.apply(_,a),d.call("_dsb.returnValue",e)},v=function(u,_){a.push(function(w,y){e.data=w,e.complete=y!==!1,d.call("_dsb.returnValue",e)}),u.apply(_,a)};if(s)p(s,this._dsf);else if(o)v(o,this._dsaf);else{var l=r.method.split(".");if(l.length<2)return;var g=l.pop(),b=l.join("."),c=this._dsf._obs,f=c[b]||{},n=f[g];if(n&&typeof n=="function"){p(n,f);return}if(c=this._dsaf._obs,f=c[b]||{},n=f[g],n&&typeof n=="function"){v(n,f);return}}}};for(var t in i)window[t]=i[t];d.register("_hasJavascriptMethod",function(r,a){var e=r.split(".");if(e.length<2)return!!(_dsf[e]||_dsaf[e]);var r=e.pop(),s=e.join("."),o=_dsf._obs[s]||_dsaf._obs[s];return o&&!!o[r]})}})();var h=d;const J=j(h),S=A({__proto__:null,default:J},[h]);export{S as i};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{fi as C,g as P,fj as R}from"./index-CXlxAjbt.js";import{o as F}from"./index-ZG7jWpak.js";var O={},d,k;function $(){if(k)return d;k=1;var g,r,o={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
|
2
|
+
`,r:"\r",t:" "},v;function s(i){throw{name:"SyntaxError",message:i,at:g,text:v}}function t(i){return i&&i!==r&&s("Expected '"+i+"' instead of '"+r+"'"),r=v.charAt(g),g+=1,r}function h(){var i,n="";for(r==="-"&&(n="-",t("-"));r>="0"&&r<="9";)n+=r,t();if(r===".")for(n+=".";t()&&r>="0"&&r<="9";)n+=r;if(r==="e"||r==="E")for(n+=r,t(),(r==="-"||r==="+")&&(n+=r,t());r>="0"&&r<="9";)n+=r,t();return i=Number(n),isFinite(i)||s("Bad number"),i}function p(){var i,n,a="",y;if(r==='"')for(;t();){if(r==='"')return t(),a;if(r==="\\")if(t(),r==="u"){for(y=0,n=0;n<4&&(i=parseInt(t(),16),!!isFinite(i));n+=1)y=y*16+i;a+=String.fromCharCode(y)}else if(typeof o[r]=="string")a+=o[r];else break;else a+=r}s("Bad string")}function f(){for(;r&&r<=" ";)t()}function u(){switch(r){case"t":return t("t"),t("r"),t("u"),t("e"),!0;case"f":return t("f"),t("a"),t("l"),t("s"),t("e"),!1;case"n":return t("n"),t("u"),t("l"),t("l"),null;default:s("Unexpected '"+r+"'")}}function l(){var i=[];if(r==="["){if(t("["),f(),r==="]")return t("]"),i;for(;r;){if(i.push(e()),f(),r==="]")return t("]"),i;t(","),f()}}s("Bad array")}function c(){var i,n={};if(r==="{"){if(t("{"),f(),r==="}")return t("}"),n;for(;r;){if(i=p(),f(),t(":"),Object.prototype.hasOwnProperty.call(n,i)&&s('Duplicate key "'+i+'"'),n[i]=e(),f(),r==="}")return t("}"),n;t(","),f()}}s("Bad object")}function e(){switch(f(),r){case"{":return c();case"[":return l();case'"':return p();case"-":return h();default:return r>="0"&&r<="9"?h():u()}}return d=function(i,n){var a;return v=i,g=0,r=" ",a=e(),f(),r&&s("Syntax error"),typeof n=="function"?function y(w,m){var b,S,j=w[m];if(j&&typeof j=="object")for(b in e)Object.prototype.hasOwnProperty.call(j,b)&&(S=y(j,b),typeof S>"u"?delete j[b]:j[b]=S);return n.call(w,m,j)}({"":a},""):a},d}var J,A;function D(){if(A)return J;A=1;var g=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r,o,v={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},s;function t(p){return g.lastIndex=0,g.test(p)?'"'+p.replace(g,function(f){var u=v[f];return typeof u=="string"?u:"\\u"+("0000"+f.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+p+'"'}function h(p,f){var u,l,c,e,i=r,n,a=f[p];switch(a&&typeof a=="object"&&typeof a.toJSON=="function"&&(a=a.toJSON(p)),typeof s=="function"&&(a=s.call(f,p,a)),typeof a){case"string":return t(a);case"number":return isFinite(a)?String(a):"null";case"boolean":case"null":return String(a);case"object":if(!a)return"null";if(r+=o,n=[],Object.prototype.toString.apply(a)==="[object Array]"){for(e=a.length,u=0;u<e;u+=1)n[u]=h(u,a)||"null";return c=n.length===0?"[]":r?`[
|
|
3
|
+
`+r+n.join(`,
|
|
4
|
+
`+r)+`
|
|
5
|
+
`+i+"]":"["+n.join(",")+"]",r=i,c}if(s&&typeof s=="object")for(e=s.length,u=0;u<e;u+=1)l=s[u],typeof l=="string"&&(c=h(l,a),c&&n.push(t(l)+(r?": ":":")+c));else for(l in a)Object.prototype.hasOwnProperty.call(a,l)&&(c=h(l,a),c&&n.push(t(l)+(r?": ":":")+c));return c=n.length===0?"{}":r?`{
|
|
6
|
+
`+r+n.join(`,
|
|
7
|
+
`+r)+`
|
|
8
|
+
`+i+"}":"{"+n.join(",")+"}",r=i,c}}return J=function(p,f,u){var l;if(r="",o="",typeof u=="number")for(l=0;l<u;l+=1)o+=" ";else typeof u=="string"&&(o=u);if(s=f,f&&typeof f!="function"&&(typeof f!="object"||typeof f.length!="number"))throw new Error("JSON.stringify");return h("",{"":p})},J}var B;function I(){return B||(B=1,O.parse=$(),O.stringify=D()),O}var K={}.toString,T=Array.isArray||function(g){return K.call(g)=="[object Array]"},x=(typeof JSON<"u"?JSON:I()).stringify,U=T,z=F,G=R,E=C,_=E("Array.prototype.join"),N=E("Array.prototype.push"),q=function(r,o){for(var v="",s=0;s<r;s+=1)v+=o;return v},H=function(g,r,o){return o},L=function(r){var o=arguments.length>1?arguments[1]:void 0,v=o&&o.space||"";typeof v=="number"&&(v=q(v," "));var s=!!o&&typeof o.cycles=="boolean"&&o.cycles,t=o&&o.replacer?G(o.replacer):H,h=typeof o=="function"?o:o&&o.cmp,p=h&&function(u){var l=h.length>2&&function(e){return u[e]};return function(c,e){return h({key:c,value:u[c]},{key:e,value:u[e]},l?{__proto__:null,get:l}:void 0)}},f=[];return function u(l,c,e,i){var n=v?`
|
|
9
|
+
`+q(i,v):"",a=v?": ":":";if(e&&e.toJSON&&typeof e.toJSON=="function"&&(e=e.toJSON()),e=t(l,c,e),e!==void 0){if(typeof e!="object"||e===null)return x(e);if(U(e)){for(var b=[],y=0;y<e.length;y++){var w=u(e,y,e[y],i+1)||x(null);N(b,n+v+w)}return"["+_(b,",")+n+"]"}if(f.indexOf(e)!==-1){if(s)return x("__cycle__");throw new TypeError("Converting circular structure to JSON")}else N(f,e);for(var m=z(e).sort(p&&p(e)),b=[],y=0;y<m.length;y++){var c=m[y],S=u(e,c,e[c],i+1);if(S){var j=x(c)+a+S;N(b,n+v+j)}}return f.splice(f.indexOf(e),1),"{"+_(b,",")+n+"}"}}({"":r},"",r,0)};const V=P(L);export{L as j,V as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{hi as W,r as L,hj as z,cn as R,f5 as N,hk as x,hl as P,cl as j,hm as S}from"./index-CXlxAjbt.js";var V=function(r,a){return r===void 0&&(r=[]),a===void 0&&(a=[]),W(r,a)},I=function(r,a,n){var e=L.useRef(),u=L.useRef(0);V(a,e.current)||(e.current=a,u.current+=1),z(r,[u.current],n)},J=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:""),B={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:J?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},E={ctrl:function(r){return r.ctrlKey},shift:function(r){return r.shiftKey},alt:function(r){return r.altKey},meta:function(r){return r.type==="keyup"?B.meta.includes(r.keyCode):r.metaKey}};function G(r){return P(r)||j(r)}function Q(r){var a=Object.keys(E).reduce(function(n,e){return E[e](r)?n+1:n},0);return[16,17,18,91,92].includes(r.keyCode)?a:a+1}function T(r,a,n){var e,u;if(!r.key)return!1;if(j(a))return r.keyCode===a?a:!1;var o=a.split("."),s=0;try{for(var l=x(o),c=l.next();!c.done;c=l.next()){var p=c.value,m=E[p],y=B[p.toLowerCase()];(m&&m(r)||y&&y===r.keyCode)&&s++}}catch(k){e={error:k}}finally{try{c&&!c.done&&(u=l.return)&&u.call(l)}finally{if(e)throw e.error}}return n?s===o.length&&Q(r)===o.length?a:!1:s===o.length?a:!1}function U(r,a){return S(r)?r:G(r)?function(n){return T(n,r,a)}:Array.isArray(r)?function(n){return r.find(function(e){return T(n,e,a)})}:function(){return!!r}}var X=["keydown"];function Z(r,a,n){var e=n||{},u=e.events,o=u===void 0?X:u,s=e.target,l=e.exactMatch,c=l===void 0?!1:l,p=e.useCapture,m=p===void 0?!1:p,y=R(a),k=R(r);I(function(){var b,C,K,t=N(s,window);if(t){var q=function(i){var v,g=U(k.current,c),f=g(i),d=G(f)?f:i.key;if(f)return(v=y.current)===null||v===void 0?void 0:v.call(y,i,d)};try{for(var w=x(o),h=w.next();!h.done;h=w.next()){var H=h.value;(K=t==null?void 0:t.addEventListener)===null||K===void 0||K.call(t,H,q,m)}}catch(i){b={error:i}}finally{try{h&&!h.done&&(C=w.return)&&C.call(w)}finally{if(b)throw b.error}}return function(){var i,v,g;try{for(var f=x(o),d=f.next();!d.done;d=f.next()){var M=d.value;(g=t==null?void 0:t.removeEventListener)===null||g===void 0||g.call(t,M,q,m)}}catch(O){i={error:O}}finally{try{d&&!d.done&&(v=f.return)&&v.call(f)}finally{if(i)throw i.error}}}}},[o],s)}export{Z as u};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import{aj as X,z as $,r as p,a as Z,b as ee,P as x,q as j,u as P,y as te,au as N,M as _,j as t,x as q,av as se,a1 as S,m as v,D as M,aw as oe,U as O,ax as re,B as W,C as z,ay as ne,A as K,K as V,az as ae,aA as ie,aB as le,F as ce,aC as B,i as ue,n as G,aa as de,a4 as pe,a7 as he,a8 as fe,aD as me,a9 as ge,O as xe}from"./index-CXlxAjbt.js";import{_ as D}from"./useLocalStorage-D6Mk1Qod.js";import{c as be,C as ke,A as ye,D as Se,B as je,S as H,a as Pe,b as we}from"./item-C2-H33Xq.js";import{d as Re}from"./ArrowDropDown-DV5W7OwL.js";import{B as ve}from"./Breadcrumbs-BMUTpqOP.js";import"./index-D2iFVes6.js";import"./index-ZG7jWpak.js";import"./index-BijlUenA.js";import"./Search-CXF_z21D.js";import"./index-CYxeq-8x.js";import"./Select-Ck-rwnxI.js";import"./InputAdornment-7qAmlR7q.js";import"./preact.module-B1z5cdvs.js";import"./Add-CtWL6e1q.js";import"./TextField-Cb0I13kb.js";import"./InputLabel-BTEO1M40.js";import"./Launch-BNP89Oc8.js";import"./Done-BQwAUEUo.js";import"./DeleteOutline-DZhkyDfV.js";import"./DeleteOutline-CddvKtlT.js";import"./delete-confirm-DX-XHcl9.js";import"./click-to-copy-DKenG9LX.js";import"./shorten-label-CrSVX0AE.js";import"./blocklet-DbOAUQG9.js";import"./MoreVert-dIXJT0E2.js";import"./ButtonGroup-CkKt07uc.js";import"./getValidReactChildren-ClGStIXY.js";function Ce(e){const n=X(),c=$(),[s,o]=D(`sid:blocklet:purchase:${e}`),[l,u]=p.useState(!1),[h,a]=p.useState(null),d=()=>{const{pathname:r,searchParams:m}=new URL(window.location.href),b=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";m.get("sid")&&(o(""),c(r.replace(b,"/"),{replace:!0}))},i=!!(n.get("assetDid")&&s&&n.get("sid")===s);return Z(ee.BlockletEvents.purchaseChange,r=>{r.did===e&&(a(r.session),["declined","confirmed","error"].includes(r.session.status)&&(u(!0),setTimeout(d,2e3)))}),p.useEffect(()=>{h&&h.id!==s&&o(h.id)},[h]),{hasCompleted:l,hasPurchased:i,session:h,setSession:a,doRedirect:d}}function E({meta:e,onCancel:n,handlePaySuccess:c,storeUrl:s}){const{t:o}=j(),{info:l}=P(),[u,h]=p.useState("both"),[a,d]=p.useState(1),i=te(l),r=N(e,l,s),m=R=>{R!==u&&h(R)},b=()=>{u&&(d(2),u==="verify"&&(window.location.href=r))},k=(R,L)=>{L!=="backdropClick"&&n()},w=()=>{c(r)},f=_.getDisplayName({meta:e});if(u==="purchase"&&a===2)return t.jsx(q,{open:!0,popup:!0,baseUrl:s,action:"acquire-asset",checkFn:se.create({baseURL:S(s,"/store")}).get,onSuccess:w,onClose:n,checkTimeout:60*5e3,extraParams:{factory:e.nftFactory},webWalletUrl:i,disableClose:!0,saveConnect:!1,showDownload:!1,messages:{title:o("store.purchase.auth.title",{name:f}),scan:o("store.purchase.auth.scan"),confirm:o("store.purchase.auth.confirm"),success:t.jsxs(t.Fragment,{children:[t.jsx(v,{gutterBottom:!0,children:o("store.purchase.auth.success")}),t.jsxs(v,{variant:"subtitle2",children:[" ",o("store.purchase.autoLaunch",{name:f})]})]})}});const g=M;return t.jsx(g,{title:o("store.purchase.title",{name:f}),disableEscapeKeyDown:!0,open:!0,fullWidth:!0,onClose:k,children:t.jsx("div",{style:{marginBottom:16},children:t.jsx(ke,{action:u,onNext:b,onSelect:m})})})}E.propTypes={...be,storeUrl:x.string.isRequired,handlePaySuccess:x.func};E.defaultProps={handlePaySuccess:e=>{setTimeout(()=>{window.location.href=e},1e3)}};function U({meta:e,buttonText:n,storeUrl:c,isResource:s}){const{t:o}=j(),l=$(),{info:u}=P(),{api:h}=oe(),a=_.isFreeBlocklet(e)===!1,[d,i]=p.useState(!1),{hasPurchased:r}=Ce(e.did),[m,b]=p.useState(!1),[k]=D("instant-blocklet-install",!1),[w,f]=p.useState(!1),g=p.useMemo(()=>d?o(a?"blocklet.status.purchasing":"blocklet.status.waiting"):"",[d,o,a]),R=p.useMemo(()=>s?o("blocklet.status.resource"):a?n.purchase:n.launch,[a,n,s]),L=y=>{y.preventDefault(),y.stopPropagation();try{if(i(!0),a){b(!0);return}if(k){f(!0);return}if(!a){const C=N(e,u,c);window.location.href=C}}catch(C){K.error(V(C),{autoHideDuration:5e3}),console.error("Blocklet installed failed",C)}finally{i(!1)}},Q=()=>{i(!1),b(!1)},Y=y=>{i(!1),f(!1),l(`/blocklets/${y.appDid}/components`)},J=()=>{i(!1),f(!1)};return t.jsxs(t.Fragment,{children:[t.jsx(ye,{children:t.jsx(O,{permission:"mutate_blocklets",children:y=>t.jsx(re,{title:s?o("launchBlocklet.error.resourceBlocklet"):"",children:t.jsx(W,{onClick:L,size:"small",sx:{cursor:s?"not-allowed":"pointer"},disabled:!!(g||!y),variant:"outlined",color:"primary","data-cy":"install-blocklet",children:g?t.jsxs(t.Fragment,{children:[t.jsx(z,{size:16,style:{marginRight:3}}),g]}):R},e.did)})})}),(r||m)&&t.jsx(E,{method:"launch",meta:e,mode:"both",onCancel:Q,storeUrl:c}),w&&t.jsx(q,{popup:!0,open:!0,forceConnected:!1,className:"launch-from-url-auth",action:"launch-free-blocklet-by-session",checkFn:h.get,checkTimeout:5*60*1e3,onSuccess:Y,extraParams:{title:e.title,blockletMetaUrl:decodeURIComponent(ne(c,e.did).trim())},messages:{title:o("setup.keyPair.title"),scan:o("setup.keyPair.scan"),confirm:o("setup.keyPair.confirm"),success:o("setup.keyPair.success")},onClose:J})]})}U.propTypes={isResource:x.bool,meta:x.object.isRequired,buttonText:x.shape({purchase:x.string.isRequired,launch:x.string.isRequired}).isRequired,storeUrl:x.string.isRequired};U.defaultProps={isResource:!1};const De=(e,n,c)=>{const s=de(n);return S(c,`/blocklets/${e.did}/?server-url=${s}`)},A=({meta:e,attribute:n,value:c})=>e._formatted?e._formatted[n]:c;function T({blocklet:e,endpoint:n}){const{t:c}=j(),s=P();let o=S(s.imgPrefix,"blocklet.png");const l=n;if(l.startsWith("http")&&e.logo)o=S(l,le(e.did,e.logo,e.version));else{let r=(window.env.apiPrefix||"/").replace(/^\/+/,"").replace(/\/+$/,"");r&&(r=`/${r}`),o=S(r,`/blocklet/logo/${e.did}`)}try{const i=new URL(o);i.searchParams.set("v",e.version||+new Date),o=i.href}catch{}const u=(s==null?void 0:s.info.mode)!==ce.NODE_MODES.SERVERLESS,h=i=>i.currentTarget.contains(i.target)?!0:(i.preventDefault(),!1),a={meta:e,buttonText:{purchase:c("common.purchase"),launch:c("common.launch")},storeUrl:l};let d=null;return u&&(d=t.jsx("div",{style:{display:"flex",alignItems:"center"},children:t.jsx(U,{isResource:!(B.hasStartEngine(e)||B.isGatewayBlocklet(e)||B.isPackBlocklet(e)),...a})})),t.jsx(ue,{href:De(e,s.info,n),style:{color:"initial",textDecoration:"none"},onClick:h,target:"_blank",children:t.jsx(Le,{title:A({meta:e,attribute:"title",value:e.title||e.name}),did:e.did,description:A({meta:e,attribute:"description",value:e.description}),cover:e.logo?o:"",version:e.version,button:d})})}T.propTypes={blocklet:x.object.isRequired,endpoint:x.string};T.defaultProps={endpoint:""};function I({storeUrl:e,handleSearchSelect:n,extraFilter:c,...s}){var r;const{locale:o}=j(),l=P(),[u,h]=p.useState({}),a=m=>{h(m)},d=e,i=(r=l==null?void 0:l.info)==null?void 0:r.version;return p.useEffect(()=>{h({})},[d]),t.jsx(ae,{FallbackComponent:ie,resetKeys:[d],children:t.jsx("div",{...s,children:t.jsx(Se,{blockletRender:m=>{const b={...m,endpoint:d};return t.jsx(T,{...b})},baseSearch:!0,endpoint:d,locale:o,onFilterChange:a,onSearchSelect:n,filters:u,extraFilter:c,serverVersion:i})})})}I.propTypes={storeUrl:x.string.isRequired,handleSearchSelect:x.func,extraFilter:x.func};I.defaultProps={handleSearchSelect:null,extraFilter:void 0};const Le=G(je)`
|
|
2
|
+
.ms-highlight {
|
|
3
|
+
color: ${e=>e.theme.palette.primary.main};
|
|
4
|
+
}
|
|
5
|
+
`,Be=pe(()=>({buttonText:{textTransform:"none !important"},iconRoot:{minWidth:24},menuName:{display:"flex",flexDirection:"column",marginRight:"100px","& span":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}})),F=p.forwardRef(({onChange:e,onDelete:n},c)=>{const{info:s}=P(),{t:o}=j(),[l,u]=p.useState(!1),[h,a]=p.useState(!1),[d,i]=p.useState(-1),r=Be(),[m,b]=D(H),k=Math.max(s.blockletRegistryList.findIndex(f=>f.url===m),0),w=f=>{try{u(!0),i(f);const g=s.blockletRegistryList[f];b(g.url),e(g.url),a(!1)}catch(g){console.error(g),K.error(`${o("store.blockletRegistry.changeFailed")} ${V(g)}`)}finally{u(!1)}};return p.useImperativeHandle(c,()=>({setOpen:a})),t.jsxs(t.Fragment,{children:[t.jsx(O,{permission:"mutate_node",children:f=>t.jsx(W,{disabled:!f,classes:{text:r.buttonText},color:"secondary","data-cy":"store-toggle",onClick:()=>{a(!0)},endIcon:t.jsx(Re,{}),children:t.jsx(v,{color:"secondary",children:s.blockletRegistryList[k].name})})}),t.jsx(M,{title:o("store.blockletRegistry.switchRegistry"),disableEscapeKeyDown:!0,disablePortal:!1,fullWidth:!0,open:h,onClose:()=>a(!1),children:t.jsxs(he,{className:r.tabPanel,children:[s.blockletRegistryList.map((f,g)=>t.jsxs(fe,{button:!0,disabled:l,selected:k===g,"data-cy":"store-switch",onClick:()=>{if(!l){if(g===k){a(!1);return}w(g)}},children:[d===g&&l&&t.jsx(me,{className:r.iconRoot,children:t.jsx(z,{size:16})}),t.jsx(ge,{children:t.jsx(Pe,{teamDid:s.did,store:f,onDelete:()=>n(f.url)})})]},f.url)),t.jsx(we,{disabled:l,onAdd:e,teamDid:s.did,blockletRegistryList:s.blockletRegistryList})]})})]})});F.propTypes={onChange:x.func,onDelete:x.func};F.defaultProps={onChange:()=>{},onDelete:()=>{}};const Ee=F;function at(){const{t:e}=j(),{info:n}=P(),[c]=D(H),{blockletRegistryList:s}=n,o=s.find(r=>c===r.url)||s[0],[l,u]=p.useState(o.url),h=n.routing.adminPath,a=S(window.location.origin,h),d=({detailUrl:r})=>{const m=new URL(r);m.searchParams.set("server-url",a);const b=document.createElement("a");b.setAttribute("target","_blank"),b.setAttribute("href",m.href),b.click()},i=p.useRef(null);return t.jsxs(Ue,{children:[t.jsxs(ve,{separator:"›","aria-label":"breadcrumb",className:"page-breadcrumb",children:[t.jsx(v,{color:"textPrimary",children:e("common.store")}),t.jsx(Ee,{ref:i,onChange:r=>u(r),onDelete:r=>{var m;l===r&&u((m=n.blockletRegistryList[0])==null?void 0:m.url)}})]}),t.jsx(xe,{className:"store-header",display:"flex",justifyContent:"space-between",p:0,m:0,children:t.jsx(v,{component:"h2",variant:"h4",className:"page-header",color:"textPrimary",children:e("store.headerDescription")})}),t.jsx(I,{className:"blocklet-list",handleSearchSelect:d,storeUrl:l})]})}const Ue=G.main`
|
|
6
|
+
@media (max-width: ${e=>e.theme.breakpoints.values.sm}px) {
|
|
7
|
+
.store-header {
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
margin-bottom: 32px !important;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.page-header {
|
|
13
|
+
margin-bottom: 16px !important;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
.blocklet-list {
|
|
17
|
+
aside:hover {
|
|
18
|
+
height: calc(100vh - 235px);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
`;export{at as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var zt=Object.defineProperty;var Ht=(e,t,n)=>t in e?zt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var V=(e,t,n)=>(Ht(e,typeof t!="symbol"?t+"":t,n),n);import{P as l,j as d,
|
|
1
|
+
var zt=Object.defineProperty;var Ht=(e,t,n)=>t in e?zt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var V=(e,t,n)=>(Ht(e,typeof t!="symbol"?t+"":t,n),n);import{P as l,j as d,cg as ae,fY as ot,fZ as Dt,r as T,aO as Ut,ck as Bt,a2 as Qt,f_ as qe,dT as Vt,dR as Wt,f$ as Zt,dQ as Gt,d9 as A,a7 as Jt,a8 as Yt,g0 as Xt,O as P,g1 as Kt,m as en,g2 as tn,g3 as nn,B as on,g4 as rn,fL as rt,q as te,g5 as sn,g6 as an,cp as cn,g7 as ln,s as M,g8 as st,g9 as un,ca as it,ga as fn,aA as at,bW as de,b6 as dn,bd as pn,cq as ct,gb as hn}from"./index-CXlxAjbt.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 zt=Object.defineProperty;var Ht=(e,t,n)=>t in e?zt(e,t,{enumerable:!0,config
|
|
|
8
8
|
*
|
|
9
9
|
* @license MIT
|
|
10
10
|
* @version 1.0.8
|
|
11
|
-
*/const lt=Object.freeze({left:0,top:0,width:16,height:16}),J=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),D=Object.freeze({...lt,...J}),pe=Object.freeze({...D,body:"",hidden:!1}),gn=Object.freeze({width:null,height:null}),ut=Object.freeze({...gn,...J});function mn(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 yn=/[\s,]+/;function bn(e,t){t.split(yn).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const ft={...ut,preserveAspectRatio:""};function qe(e){const t={...ft},n=(r,o)=>e.getAttribute(r)||o;return t.width=n("width",null),t.height=n("height",null),t.rotate=mn(n("rotate","")),bn(t,n("flip","")),t.preserveAspectRatio=n("preserveAspectRatio",n("preserveaspectratio","")),t}function xn(e,t){for(const n in ft)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(),u={provider:o.length>0?o[0]:r,prefix:c,name:a};return t&&!Z(u)?null:u}const s=o[0],i=s.split("-");if(i.length>1){const a={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!Z(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:s};return t&&!Z(a,n)?null:a}return null},Z=(e,t)=>e?!!((e.provider===""||e.provider.match(q))&&(t&&e.prefix===""||e.prefix.match(q))&&e.name.match(q)):!1;function wn(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 Fe(e,t){const n=wn(e,t);for(const r in pe)r in J?r in e&&!(r in n)&&(n[r]=J[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function vn(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 kn(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(a){s=Fe(r[a]||o[a],s)}return i(t),n.forEach(i),Fe(e,s)}function dt(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=vn(e);for(const o in r){const s=r[o];s&&(t(o,kn(e,o,s)),n.push(o))}return n}const jn={provider:"",aliases:{},not_found:{},...lt};function ae(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function pt(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!ae(e,jn))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(q)||typeof s.body!="string"||!ae(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]||!ae(s,pe))return null}return t}const Y=Object.create(null);function In(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function N(e,t){const n=Y[e]||(Y[e]=Object.create(null));return n[t]||(n[t]=In(e,t))}function ve(e,t){return pt(t)?dt(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function Sn(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function Tn(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(Y)).forEach(o=>{(typeof o=="string"&&typeof t=="string"?[t]:Object.keys(Y[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 ht(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 gt(e,t){const n=B(e,!0,z);if(!n)return!1;const r=N(n.provider,n.prefix);return Sn(r,n.name,t)}function ze(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),z&&!t&&!e.prefix){let o=!1;return pt(e)&&(e.prefix="",dt(e,(s,i)=>{i&>(s,i)&&(o=!0)})),o}const n=e.prefix;if(!Z({provider:t,prefix:n,name:"a"}))return!1;const r=N(t,n);return!!ve(r,e)}function Cn(e){return!!H(e)}function An(e){const t=H(e);return t?{...D,...t}:null}function Pn(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)),u=c[i]||(c[i]=N(s,i));let f;a in u.icons?f=t.loaded:i===""||u.missing.has(a)?f=t.missing:f=t.pending;const p={provider:s,prefix:i,name:a};f.push(p)}),t}function mt(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function Mn(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 u=c.name;if(e.icons[u])i.loaded.push({provider:r,prefix:o,name:u});else if(e.missing.has(u))i.missing.push({provider:r,prefix:o,name:u});else return n=!0,!0;return!1}),i.pending.length!==a&&(n||mt([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let Ln=0;function Nn(e,t,n){const r=Ln++,o=mt.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 He(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 On={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function En(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",u=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:u,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),u++,p=setTimeout(j,e.rotate),n(y,t,I.callback)}return setTimeout(j),k}function yt(e){const t={...On,...e};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function o(a,c,u){const f=En(t,a,c,(p,h)=>{r(),u&&u(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 ne=Object.create(null),_=["https://api.simplesvg.com","https://api.unisvg.com"],G=[];for(;_.length>0;)_.length===1||Math.random()>.5?G.push(_.shift()):G.push(_.pop());ne[""]=ke({resources:["https://api.iconify.design"].concat(G)});function Ue(e,t){const n=ke(t);return n===null?!1:(ne[e]=n,!0)}function oe(e){return ne[e]}function $n(){return Object.keys(ne)}function De(){}const le=Object.create(null);function _n(e){if(!le[e]){const t=oe(e);if(!t)return;const n=yt(t),r={config:t,redundancy:n};le[e]=r}return le[e]}function bt(e,t,n){let r,o;if(typeof e=="string"){const s=ge(e);if(!s)return n(void 0,424),De;o=s.send;const i=_n(e);i&&(r=i.redundancy)}else{const s=ke(e);if(s){r=yt(s);const i=e.resources?e.resources[0]:"",a=ge(i);a&&(o=a.send)}}return!r||!o?(n(void 0,424),De):r.query(t,o,n)().abort}const Be="iconify2",U="iconify",xt=U+"-count",Qe=U+"-version",wt=36e5,qn=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 Ve(e,t){try{e.removeItem(t)}catch{}}function ye(e,t){return je(e,xt,t.toString())}function be(e){return parseInt(me(e,xt))||0}const O={local:!0,session:!0},vt={local:new Set,session:new Set};let Ie=!1;function Fn(e){Ie=e}let W=typeof window>"u"?{}:window;function kt(e){const t=e+"Storage";try{if(W&&W[t]&&typeof W[t].length=="number")return W[t]}catch{}O[e]=!1}function jt(e,t){const n=kt(e);if(!n)return;const r=me(n,Qe);if(r!==Be){if(r){const a=be(n);for(let c=0;c<a;c++)Ve(n,U+c.toString())}je(n,Qe,Be),ye(n,0);return}const o=Math.floor(Date.now()/wt)-qn,s=a=>{const c=U+a.toString(),u=me(n,c);if(typeof u=="string"){try{const f=JSON.parse(u);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{}Ve(n,c)}};let i=be(n);for(let a=i-1;a>=0;a--)s(a)||(a===i-1?(i--,ye(n,i)):vt[e].add(a))}function It(){if(!Ie){Fn(!0);for(const e in O)jt(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 zn(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in O)jt(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function Hn(e,t){Ie||It();function n(r){let o;if(!O[r]||!(o=kt(r)))return;const s=vt[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()/wt),provider:e.provider,data:t};return je(o,U+i.toString(),JSON.stringify(a))}t.lastModified&&!zn(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function We(){}function Un(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Mn(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=>{bt(n,a,c=>{if(typeof c!="object")a.icons.forEach(u=>{e.missing.add(u)});else try{const u=ve(e,c);if(!u.length)return;const f=e.pendingIcons;f&&u.forEach(p=>{f.delete(p)}),Hn(e,c)}catch(u){console.error(u)}Un(e)})})}))}const Se=(e,t)=>{const n=Rn(e,!0,ht()),r=Pn(n);if(!r.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(r.loaded,r.missing,r.pending,We)}),()=>{c=!1}}const o=Object.create(null),s=[];let i,a;return r.pending.forEach(c=>{const{provider:u,prefix:f}=c;if(f===a&&u===i)return;i=u,a=f,s.push(N(u,f));const p=o[u]||(o[u]=Object.create(null));p[f]||(p[f]=[])}),r.pending.forEach(c=>{const{provider:u,prefix:f,name:p}=c,h=N(u,f),g=h.pendingIcons||(h.pendingIcons=new Set);g.has(p)||(g.add(p),o[u][f].push(p))}),s.forEach(c=>{const{provider:u,prefix:f}=c;o[u][f].length&&Dn(c,o[u][f])}),t?Nn(t,r,s):We},Bn=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({...D,...s});return}}n(e)})});function Qn(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=Qn(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 ue(e){return e.hasAttribute("inline")}let St=!1;try{St=navigator.vendor.indexOf("Apple")===0}catch{}function Wn(e,t){switch(t){case"svg":case"bg":case"mask":return t}return t!=="style"&&(St||e.indexOf("<a")===-1)?"svg":e.indexOf("currentColor")===-1?"bg":"mask"}const Zn=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Gn=/^-?[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(Zn);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=Gn.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 Jn=e=>e==="unset"||e==="undefined"||e==="none";function Tt(e,t){const n={...D,...e},r={...ut,...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,u=o.height;let f,p;i===null?(p=a===null?"1em":a==="auto"?u:a,f=xe(p,c/u)):(f=i==="auto"?c:i,p=a===null?xe(f,u/c):a==="auto"?u:a);const h={},g=(m,x)=>{Jn(x)||(h[m]=x.toString())};return g("width",f),g("height",p),h.viewBox=o.left.toString()+" "+o.top.toString()+" "+c.toString()+" "+u.toString(),{attributes:h,body:s}}const Yn=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let X=Yn();function Xn(e){X=e}function Kn(){return X}function eo(e,t){const n=oe(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 to(e){return e===404}const no=(e,t,n)=>{const r=[],o=eo(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},a=0;return n.forEach((c,u)=>{a+=c.length+1,a>=o&&u>0&&(r.push(i),i={type:s,provider:e,prefix:t,icons:[]},a=c.length),i.icons.push(c)}),r.push(i),r};function oo(e){if(typeof e=="string"){const t=oe(e);if(t)return t.path}return"/"}const ro=(e,t,n)=>{if(!X){n("abort",424);return}let r=oo(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;X(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(to(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)})},so={prepare:no,send:ro};function Ze(e,t){switch(e){case"local":case"session":O[e]=t;break;case"all":for(const n in O)O[n]=t;break}}const fe="data-style";let Ct="";function io(e){Ct=e}function Ge(e,t){let n=Array.from(e.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(fe));n||(n=document.createElement("style"),n.setAttribute(fe,fe),e.appendChild(n)),n.textContent=":host{display:inline-block;vertical-align:"+(t?"-0.125em":"0")+"}span,svg{display:block}"+Ct}function At(){He("",so),ht(!0);let e;try{e=window}catch{}if(e){if(It(),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"||!ze(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;Ue(r,s)||console.error(o)}catch{console.error(o)}}}}return{enableCache:n=>Ze(n,!0),disableCache:n=>Ze(n,!1),iconExists:Cn,getIcon:An,listIcons:Tn,addIcon:gt,addCollection:ze,calculateSize:xe,buildIcon:Tt,loadIcons:Se,loadIcon:Bn,addAPIProvider:Ue,appendCustomStyle:io,_api:{getAPIConfig:oe,setAPIModule:He,sendAPIQuery:bt,setFetch:Xn,getFetch:Kn,listAPIProviders:$n}}}function Pt(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 co(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ao(e){return"data:image/svg+xml,"+co(e)}function lo(e){return'url("'+ao(e)+'")'}const we={"background-color":"currentColor"},Mt={"background-color":"transparent"},Je={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Ye={"-webkit-mask":we,mask:we,background:Mt};for(const e in Ye){const t=Ye[e];for(const n in Je)t[e+"-"+n]=Je[n]}function Xe(e){return e?e+(e.match(/^[-0-9.]+$/)?"px":""):"inherit"}function uo(e,t,n){const r=document.createElement("span");let o=e.body;o.indexOf("<a")!==-1&&(o+="<!-- "+Date.now()+" -->");const s=e.attributes,i=Pt(o,{...s,width:t.width+"",height:t.height+""}),a=lo(i),c=r.style,u={"--svg":a,width:Xe(s.width),height:Xe(s.height),...n?we:Mt};for(const f in u)c.setProperty(f,u[f]);return r}let F;function fo(){try{F=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{F=null}}function po(e){return F===void 0&&fo(),F?F.createHTML(e):e}function ho(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=Pt(e.body,n);return t.innerHTML=po(o),t.firstChild}function Ke(e,t){const n=t.icon.data,r=t.customisations,o=Tt(n,r);r.preserveAspectRatio&&(o.attributes.preserveAspectRatio=r.preserveAspectRatio);const s=t.renderedMode;let i;switch(s){case"svg":i=ho(o);break;default:i=uo(o,{...D,...n},s==="mask")}const a=Array.from(e.childNodes).find(c=>{const u=c.tagName&&c.tagName.toUpperCase();return u==="SPAN"||u==="SVG"});a?i.tagName==="SPAN"&&a.tagName===i.tagName?a.setAttribute("style",i.getAttribute("style")):e.replaceChild(i,a):e.appendChild(i)}function et(e,t,n){const r=n&&(n.rendered?n:n.lastRender);return{rendered:!1,inline:t,icon:e,lastRender:r}}function go(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"}),u=ue(this);Ge(c,u),this._state=et({value:""},u),this._queueCheck()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(c){if(c==="inline"){const u=ue(this),f=this._state;u!==f.inline&&(f.inline=u,Ge(this._shadowRoot,u))}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 ue(this)}set inline(c){c?this.setAttribute("inline","true"):this.removeAttribute("inline")}restartAnimation(){const c=this._state;if(c.rendered){const u=this._shadowRoot;if(c.renderedMode==="svg")try{u.lastChild.setCurrentTime(0);return}catch{}Ke(u,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,u=this.getAttribute("icon");if(u!==c.icon.value){this._iconChanged(u);return}if(!c.rendered)return;const f=this.getAttribute("mode"),p=qe(this);(c.attrMode!==f||xn(c.customisations,p))&&this._renderIcon(c.icon,p,f)}_iconChanged(c){const u=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});u.data?this._gotIconData(u):this._state=et(u,this._state.inline,this._state)}_gotIconData(c){this._checkQueued=!1,this._renderIcon(c,qe(this),this.getAttribute("mode"))}_renderIcon(c,u,f){const p=Wn(c.data.body,f),h=this._state.inline;Ke(this._shadowRoot,this._state={rendered:!0,icon:c,inline:h,customisations:u,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=At();for(const a in i)s[a]=s.prototype[a]=i[a];return t.define(e,s),s}go()||At();const E=(e,t,n="children")=>e.map(r=>Array.isArray(r[n])?t({...r,[n]:E(r[n],t,n)}):t(r)),Lt=(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)}),Nt=e=>/^https?:\/\//.test(e),mo=e=>/^[\w-]+:[\w-]+$/.test(e),yo=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)},Rt=(e=[])=>{const t=e.map((r,o)=>({path:r,index:o})).filter(r=>yo(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 Q({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%"}}),Nt(e))return d.jsx(ce,{as:"span",...r,src:e,sx:o});if(mo(e)){const s=t?.6*t+4:0;return d.jsx(ce,{as:"span",...r,sx:o,children:d.jsx("iconify-icon",{icon:e,height:s||void 0})})}return e&&typeof e=="string"?(o.push({"&.MuiAvatar-root":{display:"inline-flex",...t&&{fontSize:t-2}}}),d.jsx(ce,{as:"span",...r,sx:o,children:Array.from(e)[0]})):null}Q.propTypes={icon:l.string.isRequired,size:l.number,sx:l.oneOfType([l.array,l.func,l.object])};Q.defaultProps={size:null,sx:null};const bo=ot();function re({theme:e,children:t}){const n=e?ot(e):bo;return d.jsx(Ut,{theme:n,children:t})}re.propTypes={children:l.any.isRequired,theme:l.object};re.defaultProps={theme:null};const Ce=l.shape({appLogo:l.node,appName:l.string,theme:l.shape({background:l.string}),enableConnect:l.bool,enableLocale:l.bool,navigation:l.arrayOf(l.shape({title:l.oneOfType([l.string,l.object]),link:l.oneOfType([l.string,l.object]),icon:l.string,items:l.arrayOf(l.shape({title:l.oneOfType([l.string,l.object]),link:l.oneOfType([l.string,l.object])}))}))}),Ae=l.shape({showText:l.bool,showRole:l.bool,switchDid:l.bool,switchProfile:l.bool,switchPassport:l.bool,disableLogout:l.bool,onLogin:l.func,onLogout:l.func,onSwitchDid:l.func,onSwitchProfile:l.func,onSwitchPassport:l.func,menu:l.array,menuRender:l.func,dark:l.bool,size:l.number});var tt,nt;const K=((tt=window==null?void 0:window.blocklet)==null?void 0:tt.groupPrefix)||((nt=window==null?void 0:window.blocklet)==null?void 0:nt.prefix)||"/",xo=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(Nt(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")},wo=e=>E(e,t=>t.role?{...t,role:Array.isArray(t.role)?t.role:[t.role]}:t,"items"),vo=e=>{if(!(e!=null&&e.length))return null;const t=wo(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},Pe=e=>{if(!e)return null;const t={...e};return t.theme=xo(t.theme),t.navigation=vo(ko(t.navigation)),t},ko=(e=[])=>Te(e,(t,n)=>{var r;return!!t.link||((r=n.filteredChildren)==null?void 0:r.length)},"items"),Ot=(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"),jo={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"/>'},Io={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 Me({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 u;return!!((c==null?void 0:c.role)||[]).includes(((u=e==null?void 0:e.user)==null?void 0:u.role)||"guest")}).map(c=>{const u=((r==null?void 0:r.componentMountPoints)||[]).find(f=>c.component===f.name);return{...c,component:u}}),s=T.useRef(null),i=Dt({open:!1}),a=Bt((c=!i.open)=>{i.open=c});return o.length===0||!(e!=null&&e.user)?null:d.jsxs(d.Fragment,{children:[d.jsx(Qt,{size:"medium",ref:s,onClick:()=>a(),children:d.jsx(_e,{icon:jo,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(Wt,{onClickAway:u=>{u.preventDefault(),u.stopPropagation(),a(!1)},children:d.jsx(Zt,{...c,timeout:350,children:d.jsxs(Gt,{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(Jt,{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(u=>{var f;return d.jsx(Yt,{disablePadding:!0,children:d.jsxs(Xt,{href:u.link,sx:{p:1,display:"flex",flexDirection:"column",alignItems:"center",gap:1,width:"100%",height:"100%",borderRadius:2,"&:hover":{backgroundColor:A.surfacePrimarySubtitle}},children:[(f=u==null?void 0:u.component)!=null&&f.did?d.jsx(P,{component:"img",src:`${Kt}/blocklet/logo-bundle/${u.component.did}`,sx:{borderRadius:2,width:50,height:50,objectFit:"contain"}}):d.jsx(_e,{fontSize:50,icon:u.icon||Io,color:A.textSubtitle}),d.jsx(en,{sx:{fontSize:"12px",color:A.textBase,textAlign:"center",lineHeight:"normal"},children:tn(u.title,t)})]})},u.id)})}),d.jsx(nn,{session:e,children:d.jsx(on,{variant:"outlined",fullWidth:!0,href:rn,sx:{mt:1,borderRadius:2,color:A.textBase,borderColor:A.lineBorderStrong,"&:hover":{color:A.primaryBase,borderColor:A.primaryBase}},children:t==="zh"?"管理":"Manage"})})]})})})})]})}Me.propTypes={session:l.object.isRequired,locale:l.string,size:l.number};Me.defaultProps={locale:"en",size:24};function se({formattedBlocklet:e,addons:t,sessionManagerProps:n}){var h,g,m,x;const r=T.useContext(rt),{locale:o}=te()||{},{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=Ot(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(sn,{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(Me,{session:r.session,locale:o},"session-blocklet")),v.push(d.jsx(cn,{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])}se.propTypes={formattedBlocklet:l.object.isRequired,addons:l.oneOfType([l.func,l.node]),sessionManagerProps:Ae};se.defaultProps={addons:null,sessionManagerProps:{showRole:!0}};const Et=()=>{const e=an();T.useEffect(()=>{e.wallet&&ln.call("arcHideTopBar","{}")},[e])},So=e=>{if(!(e!=null&&e.length))return{navItems:[],activeId:null};let t=1;const r=E(e,i=>{var u,f;const a=i.icon?d.jsx(Q,{icon:i.icon}):null;if(i.items)return{id:`${t++}`,label:i.title,icon:a,children:i.items};let c={};return((u=i.link)!=null&&u.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=Lt(r),s=Rt(o.map(i=>i.link));return{navItems:r,activeId:s>=0?o[s].id:null}};function Le({meta:e,addons:t,sessionManagerProps:n,homeLink:r,theme:o,hideNavMenu:s,...i}){var b,w;Et();const{locale:a}=te()||{},c=T.useMemo(()=>{const C=Object.assign({},window.blocklet,e);try{return Pe(C)}catch(j){return console.error("Failed to format blocklet info",j,C),C}},[e]);if(!c.appName)return null;const{appLogo:u,appLogoRect:f,theme:p}=c,h=$((b=c==null?void 0:c.navigation)==null?void 0:b.header,a),g=So(h),{navItems:m,activeId:x}=g,v=typeof t=="function"?C=>t(C,{navigation:g}):t,k=d.jsx(se,{formattedBlocklet:c,addons:v,sessionManagerProps:n});return d.jsx(re,{theme:o,children:d.jsx(To,{homeLink:r,logo:d.jsx("img",{src:f||u,alt:"logo"}),addons:k,...it(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(fn,{mode:C?"inline":"horizontal",activeId:x,items:m,className:"header-nav",bgColor:"transparent",textColor:"#777"})})})}Le.propTypes={meta:Ce,addons:l.oneOfType([l.func,l.node]),sessionManagerProps:Ae,homeLink:l.string,theme:l.object,hideNavMenu:l.bool};Le.defaultProps={meta:{},addons:null,sessionManagerProps:{showRole:!0},homeLink:K,theme:null,hideNavMenu:!1};const To=M(un)`
|
|
11
|
+
*/const lt=Object.freeze({left:0,top:0,width:16,height:16}),J=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),U=Object.freeze({...lt,...J}),pe=Object.freeze({...U,body:"",hidden:!1}),gn=Object.freeze({width:null,height:null}),ut=Object.freeze({...gn,...J});function mn(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 yn=/[\s,]+/;function bn(e,t){t.split(yn).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const ft={...ut,preserveAspectRatio:""};function _e(e){const t={...ft},n=(r,o)=>e.getAttribute(r)||o;return t.width=n("width",null),t.height=n("height",null),t.rotate=mn(n("rotate","")),bn(t,n("flip","")),t.preserveAspectRatio=n("preserveAspectRatio",n("preserveaspectratio","")),t}function xn(e,t){for(const n in ft)if(e[n]!==t[n])return!0;return!1}const _=/^[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 c=o.pop(),a=o.pop(),u={provider:o.length>0?o[0]:r,prefix:a,name:c};return t&&!Z(u)?null:u}const s=o[0],i=s.split("-");if(i.length>1){const c={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!Z(c)?null:c}if(n&&r===""){const c={provider:r,prefix:"",name:s};return t&&!Z(c,n)?null:c}return null},Z=(e,t)=>e?!!((e.provider===""||e.provider.match(_))&&(t&&e.prefix===""||e.prefix.match(_))&&e.name.match(_)):!1;function wn(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 Fe(e,t){const n=wn(e,t);for(const r in pe)r in J?r in e&&!(r in n)&&(n[r]=J[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function vn(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 c=r[i]&&r[i].parent,a=c&&s(c);a&&(o[i]=[c].concat(a))}return o[i]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(s),o}function kn(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(c){s=Fe(r[c]||o[c],s)}return i(t),n.forEach(i),Fe(e,s)}function dt(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=vn(e);for(const o in r){const s=r[o];s&&(t(o,kn(e,o,s)),n.push(o))}return n}const jn={provider:"",aliases:{},not_found:{},...lt};function ce(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function pt(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,jn))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(_)||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(_)||typeof i!="string"||!n[i]&&!r[i]||!ce(s,pe))return null}return t}const Y=Object.create(null);function In(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function N(e,t){const n=Y[e]||(Y[e]=Object.create(null));return n[t]||(n[t]=In(e,t))}function ve(e,t){return pt(t)?dt(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function Sn(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function Tn(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(Y)).forEach(o=>{(typeof o=="string"&&typeof t=="string"?[t]:Object.keys(Y[o]||{})).forEach(i=>{const c=N(o,i);n=n.concat(Object.keys(c.icons).map(a=>(o!==""?"@"+o+":":"")+i+":"+a))})}),n}let z=!1;function ht(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 gt(e,t){const n=B(e,!0,z);if(!n)return!1;const r=N(n.provider,n.prefix);return Sn(r,n.name,t)}function ze(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),z&&!t&&!e.prefix){let o=!1;return pt(e)&&(e.prefix="",dt(e,(s,i)=>{i&>(s,i)&&(o=!0)})),o}const n=e.prefix;if(!Z({provider:t,prefix:n,name:"a"}))return!1;const r=N(t,n);return!!ve(r,e)}function Cn(e){return!!H(e)}function An(e){const t=H(e);return t?{...U,...t}:null}function Pn(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,c=o.name,a=n[s]||(n[s]=Object.create(null)),u=a[i]||(a[i]=N(s,i));let f;c in u.icons?f=t.loaded:i===""||u.missing.has(c)?f=t.missing:f=t.pending;const p={provider:s,prefix:i,name:c};f.push(p)}),t}function mt(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function Mn(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,c=i.pending.length;i.pending=i.pending.filter(a=>{if(a.prefix!==o)return!0;const u=a.name;if(e.icons[u])i.loaded.push({provider:r,prefix:o,name:u});else if(e.missing.has(u))i.missing.push({provider:r,prefix:o,name:u});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||mt([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let Ln=0;function Nn(e,t,n){const r=Ln++,o=mt.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 He(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 On={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function En(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 c=Date.now();let a="pending",u=0,f,p=null,h=[],g=[];typeof r=="function"&&g.push(r);function m(){p&&(clearTimeout(p),p=null)}function x(){a==="pending"&&(a="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:c,payload:t,status:a,queriesSent:u,queriesPending:h.length,subscribe:v,abort:x}}function b(){a="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),a){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)}a="completed",g.forEach(R=>{R(L)})}function j(){if(a!=="pending")return;m();const y=i.shift();if(y===void 0){if(h.length){p=setTimeout(()=>{m(),a==="pending"&&(w(),b())},e.timeout);return}b();return}const I={status:"pending",resource:y,callback:(L,S)=>{C(I,L,S)}};h.push(I),u++,p=setTimeout(j,e.rotate),n(y,t,I.callback)}return setTimeout(j),k}function yt(e){const t={...On,...e};let n=[];function r(){n=n.filter(c=>c().status==="pending")}function o(c,a,u){const f=En(t,c,a,(p,h)=>{r(),u&&u(p,h)});return n.push(f),f}function s(c){return n.find(a=>c(a))||null}return{query:o,find:s,setIndex:c=>{t.index=c},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 ne=Object.create(null),q=["https://api.simplesvg.com","https://api.unisvg.com"],G=[];for(;q.length>0;)q.length===1||Math.random()>.5?G.push(q.shift()):G.push(q.pop());ne[""]=ke({resources:["https://api.iconify.design"].concat(G)});function De(e,t){const n=ke(t);return n===null?!1:(ne[e]=n,!0)}function oe(e){return ne[e]}function $n(){return Object.keys(ne)}function Ue(){}const le=Object.create(null);function qn(e){if(!le[e]){const t=oe(e);if(!t)return;const n=yt(t),r={config:t,redundancy:n};le[e]=r}return le[e]}function bt(e,t,n){let r,o;if(typeof e=="string"){const s=ge(e);if(!s)return n(void 0,424),Ue;o=s.send;const i=qn(e);i&&(r=i.redundancy)}else{const s=ke(e);if(s){r=yt(s);const i=e.resources?e.resources[0]:"",c=ge(i);c&&(o=c.send)}}return!r||!o?(n(void 0,424),Ue):r.query(t,o,n)().abort}const Be="iconify2",D="iconify",xt=D+"-count",Qe=D+"-version",wt=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 Ve(e,t){try{e.removeItem(t)}catch{}}function ye(e,t){return je(e,xt,t.toString())}function be(e){return parseInt(me(e,xt))||0}const O={local:!0,session:!0},vt={local:new Set,session:new Set};let Ie=!1;function Fn(e){Ie=e}let W=typeof window>"u"?{}:window;function kt(e){const t=e+"Storage";try{if(W&&W[t]&&typeof W[t].length=="number")return W[t]}catch{}O[e]=!1}function jt(e,t){const n=kt(e);if(!n)return;const r=me(n,Qe);if(r!==Be){if(r){const c=be(n);for(let a=0;a<c;a++)Ve(n,D+a.toString())}je(n,Qe,Be),ye(n,0);return}const o=Math.floor(Date.now()/wt)-_n,s=c=>{const a=D+c.toString(),u=me(n,a);if(typeof u=="string"){try{const f=JSON.parse(u);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,c))return!0}catch{}Ve(n,a)}};let i=be(n);for(let c=i-1;c>=0;c--)s(c)||(c===i-1?(i--,ye(n,i)):vt[e].add(c))}function It(){if(!Ie){Fn(!0);for(const e in O)jt(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 zn(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in O)jt(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function Hn(e,t){Ie||It();function n(r){let o;if(!O[r]||!(o=kt(r)))return;const s=vt[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=be(o),!ye(o,i+1))return;const c={cached:Math.floor(Date.now()/wt),provider:e.provider,data:t};return je(o,D+i.toString(),JSON.stringify(c))}t.lastModified&&!zn(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function We(){}function Dn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Mn(e)}))}function Un(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(c=>{bt(n,c,a=>{if(typeof a!="object")c.icons.forEach(u=>{e.missing.add(u)});else try{const u=ve(e,a);if(!u.length)return;const f=e.pendingIcons;f&&u.forEach(p=>{f.delete(p)}),Hn(e,a)}catch(u){console.error(u)}Dn(e)})})}))}const Se=(e,t)=>{const n=Rn(e,!0,ht()),r=Pn(n);if(!r.pending.length){let a=!0;return t&&setTimeout(()=>{a&&t(r.loaded,r.missing,r.pending,We)}),()=>{a=!1}}const o=Object.create(null),s=[];let i,c;return r.pending.forEach(a=>{const{provider:u,prefix:f}=a;if(f===c&&u===i)return;i=u,c=f,s.push(N(u,f));const p=o[u]||(o[u]=Object.create(null));p[f]||(p[f]=[])}),r.pending.forEach(a=>{const{provider:u,prefix:f,name:p}=a,h=N(u,f),g=h.pendingIcons||(h.pendingIcons=new Set);g.has(p)||(g.add(p),o[u][f].push(p))}),s.forEach(a=>{const{provider:u,prefix:f}=a;o[u][f].length&&Un(a,o[u][f])}),t?Nn(t,r,s):We},Bn=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 Qn(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=Qn(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 ue(e){return e.hasAttribute("inline")}let St=!1;try{St=navigator.vendor.indexOf("Apple")===0}catch{}function Wn(e,t){switch(t){case"svg":case"bg":case"mask":return t}return t!=="style"&&(St||e.indexOf("<a")===-1)?"svg":e.indexOf("currentColor")===-1?"bg":"mask"}const Zn=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Gn=/^-?[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(Zn);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=Gn.test(s);for(;;){if(i){const c=parseFloat(s);isNaN(c)?o.push(s):o.push(Math.ceil(c*t*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}const Jn=e=>e==="unset"||e==="undefined"||e==="none";function Tt(e,t){const n={...U,...e},r={...ut,...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,c=r.height,a=o.width,u=o.height;let f,p;i===null?(p=c===null?"1em":c==="auto"?u:c,f=xe(p,a/u)):(f=i==="auto"?a:i,p=c===null?xe(f,u/a):c==="auto"?u:c);const h={},g=(m,x)=>{Jn(x)||(h[m]=x.toString())};return g("width",f),g("height",p),h.viewBox=o.left.toString()+" "+o.top.toString()+" "+a.toString()+" "+u.toString(),{attributes:h,body:s}}const Yn=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let X=Yn();function Xn(e){X=e}function Kn(){return X}function eo(e,t){const n=oe(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 to(e){return e===404}const no=(e,t,n)=>{const r=[],o=eo(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},c=0;return n.forEach((a,u)=>{c+=a.length+1,c>=o&&u>0&&(r.push(i),i={type:s,provider:e,prefix:t,icons:[]},c=a.length),i.icons.push(a)}),r.push(i),r};function oo(e){if(typeof e=="string"){const t=oe(e);if(t)return t.path}return"/"}const ro=(e,t,n)=>{if(!X){n("abort",424);return}let r=oo(t.provider);switch(t.type){case"icons":{const s=t.prefix,c=t.icons.join(","),a=new URLSearchParams({icons:c});r+=s+".json?"+a.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;X(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(to(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)})},so={prepare:no,send:ro};function Ze(e,t){switch(e){case"local":case"session":O[e]=t;break;case"all":for(const n in O)O[n]=t;break}}const fe="data-style";let Ct="";function io(e){Ct=e}function Ge(e,t){let n=Array.from(e.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(fe));n||(n=document.createElement("style"),n.setAttribute(fe,fe),e.appendChild(n)),n.textContent=":host{display:inline-block;vertical-align:"+(t?"-0.125em":"0")+"}span,svg{display:block}"+Ct}function At(){He("",so),ht(!0);let e;try{e=window}catch{}if(e){if(It(),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"||!ze(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;De(r,s)||console.error(o)}catch{console.error(o)}}}}return{enableCache:n=>Ze(n,!0),disableCache:n=>Ze(n,!1),iconExists:Cn,getIcon:An,listIcons:Tn,addIcon:gt,addCollection:ze,calculateSize:xe,buildIcon:Tt,loadIcons:Se,loadIcon:Bn,addAPIProvider:De,appendCustomStyle:io,_api:{getAPIConfig:oe,setAPIModule:He,sendAPIQuery:bt,setFetch:Xn,getFetch:Kn,listAPIProviders:$n}}}function Pt(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 ao(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,"+ao(e)}function lo(e){return'url("'+co(e)+'")'}const we={"background-color":"currentColor"},Mt={"background-color":"transparent"},Je={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Ye={"-webkit-mask":we,mask:we,background:Mt};for(const e in Ye){const t=Ye[e];for(const n in Je)t[e+"-"+n]=Je[n]}function Xe(e){return e?e+(e.match(/^[-0-9.]+$/)?"px":""):"inherit"}function uo(e,t,n){const r=document.createElement("span");let o=e.body;o.indexOf("<a")!==-1&&(o+="<!-- "+Date.now()+" -->");const s=e.attributes,i=Pt(o,{...s,width:t.width+"",height:t.height+""}),c=lo(i),a=r.style,u={"--svg":c,width:Xe(s.width),height:Xe(s.height),...n?we:Mt};for(const f in u)a.setProperty(f,u[f]);return r}let F;function fo(){try{F=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{F=null}}function po(e){return F===void 0&&fo(),F?F.createHTML(e):e}function ho(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=Pt(e.body,n);return t.innerHTML=po(o),t.firstChild}function Ke(e,t){const n=t.icon.data,r=t.customisations,o=Tt(n,r);r.preserveAspectRatio&&(o.attributes.preserveAspectRatio=r.preserveAspectRatio);const s=t.renderedMode;let i;switch(s){case"svg":i=ho(o);break;default:i=uo(o,{...U,...n},s==="mask")}const c=Array.from(e.childNodes).find(a=>{const u=a.tagName&&a.tagName.toUpperCase();return u==="SPAN"||u==="SVG"});c?i.tagName==="SPAN"&&c.tagName===i.tagName?c.setAttribute("style",i.getAttribute("style")):e.replaceChild(i,c):e.appendChild(i)}function et(e,t,n){const r=n&&(n.rendered?n:n.lastRender);return{rendered:!1,inline:t,icon:e,lastRender:r}}function go(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 a=this._shadowRoot=this.attachShadow({mode:"open"}),u=ue(this);Ge(a,u),this._state=et({value:""},u),this._queueCheck()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(a){if(a==="inline"){const u=ue(this),f=this._state;u!==f.inline&&(f.inline=u,Ge(this._shadowRoot,u))}else this._queueCheck()}get icon(){const a=this.getAttribute("icon");if(a&&a.slice(0,1)==="{")try{return JSON.parse(a)}catch{}return a}set icon(a){typeof a=="object"&&(a=JSON.stringify(a)),this.setAttribute("icon",a)}get inline(){return ue(this)}set inline(a){a?this.setAttribute("inline","true"):this.removeAttribute("inline")}restartAnimation(){const a=this._state;if(a.rendered){const u=this._shadowRoot;if(a.renderedMode==="svg")try{u.lastChild.setCurrentTime(0);return}catch{}Ke(u,a)}}get status(){const a=this._state;return a.rendered?"rendered":a.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const a=this._state,u=this.getAttribute("icon");if(u!==a.icon.value){this._iconChanged(u);return}if(!a.rendered)return;const f=this.getAttribute("mode"),p=_e(this);(a.attrMode!==f||xn(a.customisations,p))&&this._renderIcon(a.icon,p,f)}_iconChanged(a){const u=Vn(a,(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});u.data?this._gotIconData(u):this._state=et(u,this._state.inline,this._state)}_gotIconData(a){this._checkQueued=!1,this._renderIcon(a,_e(this),this.getAttribute("mode"))}_renderIcon(a,u,f){const p=Wn(a.data.body,f),h=this._state.inline;Ke(this._shadowRoot,this._state={rendered:!0,icon:a,inline:h,customisations:u,attrMode:f,renderedMode:p})}};o.forEach(c=>{c in s.prototype||Object.defineProperty(s.prototype,c,{get:function(){return this.getAttribute(c)},set:function(a){a!==null?this.setAttribute(c,a):this.removeAttribute(c)}})});const i=At();for(const c in i)s[c]=s.prototype[c]=i[c];return t.define(e,s),s}go()||At();const E=(e,t,n="children")=>e.map(r=>Array.isArray(r[n])?t({...r,[n]:E(r[n],t,n)}):t(r)),Lt=(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)}),Nt=e=>/^https?:\/\//.test(e),mo=e=>/^[\w-]+:[\w-]+$/.test(e),yo=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)},Rt=(e=[])=>{const t=e.map((r,o)=>({path:r,index:o})).filter(r=>yo(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 Q({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%"}}),Nt(e))return d.jsx(ae,{as:"span",...r,src:e,sx:o});if(mo(e)){const s=t?.6*t+4:0;return d.jsx(ae,{as:"span",...r,sx:o,children:d.jsx("iconify-icon",{icon:e,height:s||void 0})})}return e&&typeof e=="string"?(o.push({"&.MuiAvatar-root":{display:"inline-flex",...t&&{fontSize:t-2}}}),d.jsx(ae,{as:"span",...r,sx:o,children:Array.from(e)[0]})):null}Q.propTypes={icon:l.string.isRequired,size:l.number,sx:l.oneOfType([l.array,l.func,l.object])};Q.defaultProps={size:null,sx:null};const bo=ot();function re({theme:e,children:t}){const n=e?ot(e):bo;return d.jsx(Dt,{theme:n,children:t})}re.propTypes={children:l.any.isRequired,theme:l.object};re.defaultProps={theme:null};const Ce=l.shape({appLogo:l.node,appName:l.string,theme:l.shape({background:l.string}),enableConnect:l.bool,enableLocale:l.bool,navigation:l.arrayOf(l.shape({title:l.oneOfType([l.string,l.object]),link:l.oneOfType([l.string,l.object]),icon:l.string,items:l.arrayOf(l.shape({title:l.oneOfType([l.string,l.object]),link:l.oneOfType([l.string,l.object])}))}))}),Ae=l.shape({showText:l.bool,showRole:l.bool,switchDid:l.bool,switchProfile:l.bool,switchPassport:l.bool,disableLogout:l.bool,onLogin:l.func,onLogout:l.func,onSwitchDid:l.func,onSwitchProfile:l.func,onSwitchPassport:l.func,menu:l.array,menuRender:l.func,dark:l.bool,size:l.number});var tt,nt;const K=((tt=window==null?void 0:window.blocklet)==null?void 0:tt.groupPrefix)||((nt=window==null?void 0:window.blocklet)==null?void 0:nt.prefix)||"/",xo=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(Nt(o)){const c=new URL(o);return c.searchParams.set("locale",s),c.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")},wo=e=>E(e,t=>t.role?{...t,role:Array.isArray(t.role)?t.role:[t.role]}:t,"items"),vo=e=>{if(!(e!=null&&e.length))return null;const t=wo(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},Pe=e=>{if(!e)return null;const t={...e};return t.theme=xo(t.theme),t.navigation=vo(ko(t.navigation)),t},ko=(e=[])=>Te(e,(t,n)=>{var r;return!!t.link||((r=n.filteredChildren)==null?void 0:r.length)},"items"),Ot=(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"),jo={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"/>'},Io={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 Me({session:e,locale:t,size:n}){const r=(window==null?void 0:window.blocklet)||{},o=(r.navigation||[]).filter(a=>a.section==="sessionManager"&&!["/sessionManager"].includes(a.id)).filter(a=>{var u;return!!((a==null?void 0:a.role)||[]).includes(((u=e==null?void 0:e.user)==null?void 0:u.role)||"guest")}).map(a=>{const u=((r==null?void 0:r.componentMountPoints)||[]).find(f=>a.component===f.name);return{...a,component:u}}),s=T.useRef(null),i=Ut({open:!1}),c=Bt((a=!i.open)=>{i.open=a});return o.length===0||!(e!=null&&e.user)?null:d.jsxs(d.Fragment,{children:[d.jsx(Qt,{size:"medium",ref:s,onClick:()=>c(),children:d.jsx(qe,{icon:jo,fontSize:n,style:{transform:"scale(1.08)"}})}),d.jsx(Vt,{open:i.open,onClose:()=>c(!1),anchorEl:s.current,transition:!0,placement:"bottom-end",sx:{zIndex:1600},children:({TransitionProps:a})=>d.jsx(Wt,{onClickAway:u=>{u.preventDefault(),u.stopPropagation(),c(!1)},children:d.jsx(Zt,{...a,timeout:350,children:d.jsxs(Gt,{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(Jt,{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(u=>{var f;return d.jsx(Yt,{disablePadding:!0,children:d.jsxs(Xt,{href:u.link,sx:{p:1,display:"flex",flexDirection:"column",alignItems:"center",gap:1,width:"100%",height:"100%",borderRadius:2,"&:hover":{backgroundColor:A.surfacePrimarySubtitle}},children:[(f=u==null?void 0:u.component)!=null&&f.did?d.jsx(P,{component:"img",src:`${Kt}/blocklet/logo-bundle/${u.component.did}`,sx:{borderRadius:2,width:50,height:50,objectFit:"contain"}}):d.jsx(qe,{fontSize:50,icon:u.icon||Io,color:A.textSubtitle}),d.jsx(en,{sx:{fontSize:"12px",color:A.textBase,textAlign:"center",lineHeight:"normal"},children:tn(u.title,t)})]})},u.id)})}),d.jsx(nn,{session:e,children:d.jsx(on,{variant:"outlined",fullWidth:!0,href:rn,sx:{mt:1,borderRadius:2,color:A.textBase,borderColor:A.lineBorderStrong,"&:hover":{color:A.primaryBase,borderColor:A.primaryBase}},children:t==="zh"?"管理":"Manage"})})]})})})})]})}Me.propTypes={session:l.object.isRequired,locale:l.string,size:l.number};Me.defaultProps={locale:"en",size:24};function se({formattedBlocklet:e,addons:t,sessionManagerProps:n}){var h,g,m,x;const r=T.useContext(rt),{locale:o}=te()||{},{enableConnect:s=!0,enableLocale:i=!0}=e,c=!!((h=r==null?void 0:r.session)!=null&&h.user);let a=$((g=e==null?void 0:e.navigation)==null?void 0:g.sessionManager,o)||[];a=Ot(a,(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(sn,{showText:!1},"locale-selector")),s&&r){const k=[];c&&(a?a.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(Me,{session:r.session,locale:o},"session-blocklet")),v.push(d.jsx(an,{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])}se.propTypes={formattedBlocklet:l.object.isRequired,addons:l.oneOfType([l.func,l.node]),sessionManagerProps:Ae};se.defaultProps={addons:null,sessionManagerProps:{showRole:!0}};const Et=()=>{const e=cn();T.useEffect(()=>{e.wallet&&ln.call("arcHideTopBar","{}")},[e])},So=e=>{if(!(e!=null&&e.length))return{navItems:[],activeId:null};let t=1;const r=E(e,i=>{var u,f;const c=i.icon?d.jsx(Q,{icon:i.icon}):null;if(i.items)return{id:`${t++}`,label:i.title,icon:c,children:i.items};let a={};return((u=i.link)!=null&&u.startsWith("http://")||(f=i.link)!=null&&f.startsWith("https://"))&&(a={target:"_blank",rel:"noreferrer"}),{id:`${t++}`,label:d.jsx("a",{href:i.link,...a,children:i.title}),icon:c,link:i.link}},"items"),o=Lt(r),s=Rt(o.map(i=>i.link));return{navItems:r,activeId:s>=0?o[s].id:null}};function Le({meta:e,addons:t,sessionManagerProps:n,homeLink:r,theme:o,hideNavMenu:s,...i}){var b,w;Et();const{locale:c}=te()||{},a=T.useMemo(()=>{const C=Object.assign({},window.blocklet,e);try{return Pe(C)}catch(j){return console.error("Failed to format blocklet info",j,C),C}},[e]);if(!a.appName)return null;const{appLogo:u,appLogoRect:f,theme:p}=a,h=$((b=a==null?void 0:a.navigation)==null?void 0:b.header,c),g=So(h),{navItems:m,activeId:x}=g,v=typeof t=="function"?C=>t(C,{navigation:g}):t,k=d.jsx(se,{formattedBlocklet:a,addons:v,sessionManagerProps:n});return d.jsx(re,{theme:o,children:d.jsx(To,{homeLink:r,logo:d.jsx("img",{src:f||u,alt:"logo"}),addons:k,...it(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(fn,{mode:C?"inline":"horizontal",activeId:x,items:m,className:"header-nav",bgColor:"transparent",textColor:"#777"})})})}Le.propTypes={meta:Ce,addons:l.oneOfType([l.func,l.node]),sessionManagerProps:Ae,homeLink:l.string,theme:l.object,hideNavMenu:l.bool};Le.defaultProps={meta:{},addons:null,sessionManagerProps:{showRole:!0},homeLink:K,theme:null,hideNavMenu:!1};const To=M(un)`
|
|
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';
|
|
@@ -41,7 +41,7 @@ var zt=Object.defineProperty;var Ht=(e,t,n)=>t in e?zt(e,t,{enumerable:!0,config
|
|
|
41
41
|
height: 20px;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
`,
|
|
44
|
+
`,_o=st(Le,{FallbackComponent:at});function Ne({name:e,logo:t,description:n,...r}){if(!e&&!t&&!n)return null;const o=T.isValidElement(t)?t:d.jsx("img",{src:t,alt:e});return d.jsxs(Co,{...r,children:[d.jsxs("div",{children:[t&&d.jsx(P,{component:"a",href:"/",className:"footer-brand-logo",children:o}),e&&d.jsx("div",{className:"footer-brand-name",children:e})]}),n&&d.jsx("div",{className:"footer-brand-desc",children:n})]})}Ne.propTypes={name:l.node,logo:l.node,description:l.string};Ne.defaultProps={name:"",logo:"",description:""};const Co=M("div")`
|
|
45
45
|
display: flex;
|
|
46
46
|
flex-direction: column;
|
|
47
47
|
font-size: 14px;
|
|
@@ -86,7 +86,7 @@ var zt=Object.defineProperty;var Ht=(e,t,n)=>t in e?zt(e,t,{enumerable:!0,config
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
`;function ee({links:e,flowLayout:t,...n}){const[r,o]=T.useState(-1);if(!(e!=null&&e.length))return null;const s=e.some(
|
|
89
|
+
`;function ee({links:e,flowLayout:t,...n}){const[r,o]=T.useState(-1);if(!(e!=null&&e.length))return null;const s=e.some(c=>{var a;return(a=c.items)==null?void 0:a.length}),i=({label:c,link:a,icon:u,render:f,props:p})=>{let h=c;return f?h=f({label:c,link:a,props:p}):a&&(h=d.jsx("a",{href:a,"aria-label":`Footer link for ${c}`,...p,children:c})),d.jsxs(d.Fragment,{children:[u&&d.jsx(Q,{icon:u,size:20,sx:{mr:.5}}),h]})};return d.jsx(Ao,{...n,className:de(n.className,{"footer-links--grouped":s,"footer-links--flow":t}),children:d.jsxs("div",{className:"footer-links-inner",children:[t&&e.map((c,a)=>d.jsx("span",{className:"footer-links-item",children:i(c)},a)),!t&&e.map((c,a)=>{const{items:u}=c,f=a===r;return d.jsxs("div",{className:de("footer-links-group",{"footer-links-group--active":f}),onClick:()=>o(r===a?-1:a),children:[d.jsxs("span",{className:"footer-links-item",children:[i(c),!!(u!=null&&u.length)&&d.jsx("span",{className:"footer-links-group-expand-icon",children:d.jsx(dn,{style:{transform:`rotate(${f?180:0}deg)`}})})]}),!!(u!=null&&u.length)&&d.jsx("div",{className:"footer-links-sub",children:u.map((p,h)=>d.jsx("span",{className:"footer-links-item",children:i(p)},h))})]},a)})]})})}ee.propTypes={links:l.arrayOf(l.shape({label:l.string,link:l.string,render:l.func,props:l.object})),flowLayout:l.bool};ee.defaultProps={links:[],flowLayout:!1};const Ao=M("div")`
|
|
90
90
|
overflow: hidden;
|
|
91
91
|
color: ${e=>e.theme.palette.grey[600]};
|
|
92
92
|
.footer-links-inner {
|
|
@@ -251,7 +251,7 @@ var zt=Object.defineProperty;var Ht=(e,t,n)=>t in e?zt(e,t,{enumerable:!0,config
|
|
|
251
251
|
margin: 0 auto;
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
|
-
`;function $t({elements:e,data:t,...n}){var r;return d.jsx(No,{...n,children:d.jsxs(
|
|
254
|
+
`;function $t({elements:e,data:t,...n}){var r;return d.jsx(No,{...n,children:d.jsxs(ct,{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(ie,{sx:{pt:3,borderTop:1,borderColor:"grey.200"},autoCenter:!0,children:[e.copyright,e.links]})]})})}$t.propTypes={elements:l.shape({brand:l.element,navigation:l.element,socialMedia:l.element,copyright:l.element,links:l.element}).isRequired,data:l.object.isRequired};const No=M("div")`
|
|
255
255
|
padding: 32px 0 24px 0;
|
|
256
256
|
.footer-brand-name,
|
|
257
257
|
.footer-brand-desc {
|
|
@@ -260,7 +260,7 @@ var zt=Object.defineProperty;var Ht=(e,t,n)=>t in e?zt(e,t,{enumerable:!0,config
|
|
|
260
260
|
&& .footer-brand-logo {
|
|
261
261
|
margin-right: 0;
|
|
262
262
|
}
|
|
263
|
-
`;function
|
|
263
|
+
`;function qt({elements:e,data:t,...n}){return d.jsx(Ro,{...n,children:d.jsxs(ct,{className:"plain-layout-container",children:[!!t.links&&d.jsxs(ie,{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]})]})})}qt.propTypes={elements:l.shape({brand:l.element,navigation:l.element,socialMedia:l.element,copyright:l.element,links:l.element}).isRequired,data:l.object.isRequired};const Ro=M("div")`
|
|
264
264
|
padding: 24px 0;
|
|
265
265
|
.plain-layout-container {
|
|
266
266
|
display: flex;
|
|
@@ -269,10 +269,10 @@ var zt=Object.defineProperty;var Ht=(e,t,n)=>t in e?zt(e,t,{enumerable:!0,config
|
|
|
269
269
|
flex-wrap: wrap;
|
|
270
270
|
gap: 8px;
|
|
271
271
|
}
|
|
272
|
-
`,
|
|
272
|
+
`,_t=[{name:"plain",support:(e,t)=>{var n,r;return!((n=t.navigation)!=null&&n.length)&&!((r=t.socialMedia)!=null&&r.length)},component:qt},{name:"standard",support:()=>!0,component:$t}],Oo=_t.reduce((e,t)=>({...e,[t.name]:t}),{});function Ee(e){var x,v;const{brand:t,navigation:n,socialMedia:r,copyright:o,links:s,layout:i,...c}=e,a=()=>t?d.jsx(Ne,{...t}):null,u=()=>n!=null&&n.length?d.jsx(ee,{links:n}):null,f=()=>r!=null&&r.length?d.jsx(Re,{items:r}):null,p=()=>{const k=(o==null?void 0:o.owner)||(t==null?void 0:t.name);return k?d.jsx(Oe,{owner:k,year:(o==null?void 0:o.year)||void 0}):null},h=()=>s!=null&&s.length?d.jsx(ee,{flowLayout:!0,links:s}):null,g={brand:a(),navigation:u(),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",...c,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})]})}Ee.propTypes={brand:l.shape({name:l.node,description:l.string,logo:l.node}),navigation:l.arrayOf(l.shape({label:l.node,link:l.string})),socialMedia:l.arrayOf(l.shape({icon:l.node,link:l.string})),copyright:l.shape({owner:l.string,year:l.oneOfType([l.string,l.number])}),links:l.arrayOf(l.shape({label:l.node,link:l.string})),layout:l.oneOf(["auto","standard","plain"])};Ee.defaultProps={brand:null,navigation:null,copyright:null,socialMedia:null,links:null,layout:"auto"};function $e({meta:e,theme:t,...n}){var m,x,v,k;const{locale:r}=te()||{},o=T.useMemo(()=>{const b=Object.assign({},window.blocklet,e);try{return Pe(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:c,appDescription:a,description:u,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:c,description:a||u,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(re,{theme:t,children:d.jsx(Eo,{...g,...it(n,["bordered"]),$bordered:n==null?void 0:n.bordered,$bgcolor:(k=f==null?void 0:f.background)==null?void 0:k.footer})})}$e.propTypes={meta:Ce,theme:l.object};$e.defaultProps={meta:{},theme:null};const Eo=M(Ee)`
|
|
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
|
-
`,Fo=st($e,{FallbackComponent:
|
|
278
|
+
`,Fo=st($e,{FallbackComponent:at});function Ft({meta:e,fallbackUrl:t,invalidPathFallback:n,headerAddons:r,sessionManagerProps:o,links:s,...i}){var C;Et();const c=T.useContext(rt),a=(C=c==null?void 0:c.session)==null?void 0:C.user,u=a==null?void 0:a.role,{locale:f}=te()||{},p=T.useMemo(()=>{const j=Object.assign({},window.blocklet,e);try{return Pe(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=Ot(j,u),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=Lt(j).filter(S=>!!S.url),I=Rt(y.map(S=>S.url));return I!==-1&&(y[I].active=!0),{localizedNav:j,flattened:y,matchedIndex:I}},[p,f,u]),x=typeof s=="function"?s(h):[...h,...s];if(T.useLayoutEffect(()=>{a&&!(g!=null&&g.length)&&t&&(window.location.href=t)},[t]),T.useLayoutEffect(()=>{a&&(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(se,{formattedBlocklet:p,addons:r,sessionManagerProps:o});return d.jsx(hn,{title:b,fullWidth:!0,sidebarWidth:128,legacy:!1,links:x,...i,headerProps:{homeLink:K,logo:d.jsx("img",{src:k||v,alt:"logo"}),addons:w,...i.headerProps}})}Ft.propTypes={meta:Ce,fallbackUrl:l.string,invalidPathFallback:l.func,headerAddons:l.oneOfType([l.func,l.node]),sessionManagerProps:Ae,links:l.oneOfType([l.array,l.func])};Ft.defaultProps={meta:{},fallbackUrl:K,invalidPathFallback:null,headerAddons:void 0,sessionManagerProps:{showRole:!0,onLogout:()=>{window.location.href=K}},links:[]};export{Ft as D,Fo as F,_o as H};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as E,q as j,z as I,j as e,V as W,C as k,
|
|
1
|
+
import{r as E,q as j,z as I,j as e,V as W,C as k,ct as T,O as v,x as L,A as h,F as N,u as R,y as S,am as U,ae as b}from"./index-CXlxAjbt.js";import{w as F}from"./wrap-locale-4RphGrjp.js";function _({SessionContext:t,webWalletUrl:a,onSuccess:c}){var g,u;const{api:o,session:n}=E.useContext(t),{t:s,locale:m}=j(),w=I(),{searchParams:l}=new URL(window.location.href),d=l.get("redirect"),P=async(r,C)=>{c(r,C),await n.refresh(),h.success(s("exchangePassport.success")),setTimeout(()=>{if(d){const i=decodeURIComponent(d);i.startsWith(N.WELLKNOWN_SERVICE_PATH_PREFIX)?w(i,{replace:!0}):window.location=i}else window.location=window.env.pathPrefix||window.env.apiPrefix||"/"},3e3)},f=r=>{h.error(r.message)},x={},p=l.get("componentId");return p&&(x.componentId=p),n.loading?e.jsx(W,{children:e.jsx(k,{})}):e.jsx(T,{did:((g=window==null?void 0:window.blocklet)==null?void 0:g.appPid)||((u=window==null?void 0:window.env)==null?void 0:u.appPid),children:e.jsx(v,{sx:{width:"560px",maxWidth:"100%",height:"100%"},children:e.jsx(L,{className:"connect",action:"exchange-passport",checkFn:o.get,checkTimeout:10*60*1e3,webWalletUrl:a,onSuccess:P,onError:f,locale:m,messages:{title:s("exchangePassport.dialog.title"),scan:s("exchangePassport.dialog.scan"),confirm:s("exchangePassport.dialog.confirm"),success:s("exchangePassport.dialog.success")},extraParams:x,extraContent:null})})})}const y=F(_);function O(){const{info:t}=R(),a=S(t),c=(o,n)=>{o.sessionToken&&b(n(o.sessionToken))};return e.jsx(y,{SessionContext:U,webWalletUrl:a,onSuccess:c})}export{O as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as y}from"./index-
|
|
1
|
+
import{g as y}from"./index-CXlxAjbt.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};
|