@abtnode/blocklet-services 1.16.49-beta-20250829-075052-2563fcb3 → 1.16.49
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/api/index.js +4 -0
- package/api/services/auth/session.js +8 -0
- package/dist/assets/{AdapterDayjs-CsjxEemY.js → AdapterDayjs-DV5yorPZ.js} +1 -1
- package/dist/assets/{Google-a7LsY6gB.js → Google-Bggl6-zg.js} +1 -1
- package/dist/assets/{access-control-BflK_JY_.js → access-control-CuLkWtU3.js} +1 -1
- package/dist/assets/{actions-BEg2ZR9n.js → actions-DAS8NTxZ.js} +1 -1
- package/dist/assets/{add-component-core-Qw040b1L.js → add-component-core-B-Yi66_2.js} +7 -7
- package/dist/assets/add-resource-B6TOAf2c.js +1 -0
- package/dist/assets/{addon-LHky73fl.js → addon-CZc2Epcq.js} +2 -2
- package/dist/assets/{advanced-Cb7kjy9p.js → advanced-Cg5EOtB8.js} +2 -2
- package/dist/assets/{aigne-DyYvTUt7.js → aigne-2eII8VzR.js} +1 -1
- package/dist/assets/api-Cyp6JVXh.js +1 -0
- package/dist/assets/{appearance-DnSAzT5z.js → appearance-CyMAGa_G.js} +1 -1
- package/dist/assets/{arrow-down.svg-BiYMv82Y.js → arrow-down.svg-B5veoO0J.js} +1 -1
- package/dist/assets/{audit-logs-BT6QlPWw.js → audit-logs-K8OlQ5MR.js} +2 -2
- package/dist/assets/authorize-BD5WdYP4.js +1 -0
- package/dist/assets/{base-chart-BX5qTIVB.js → base-chart-OFUhpKS6.js} +1 -1
- package/dist/assets/base32-BJKRqMID.js +1 -0
- package/dist/assets/bind-account-BuyNwLS8.js +1 -0
- package/dist/assets/{branding-BlPEgtEP.js → branding-DHx48Ao4.js} +5 -5
- package/dist/assets/{branding-BFbTimgS.js → branding-DVFAqoqm.js} +2 -2
- package/dist/assets/branding-gAoM7Sxs.js +1 -0
- package/dist/assets/{bundle-avatar-BW3kxeeK.js → bundle-avatar-CnFjpDpd.js} +1 -1
- package/dist/assets/button-C06QLpHi.js +1 -0
- package/dist/assets/{click-to-copy-Dex2pQN3.js → click-to-copy-BoDdgn8d.js} +1 -1
- package/dist/assets/{cloneDeep-MYrdBNTW.js → cloneDeep-CaHOi9J1.js} +1 -1
- package/dist/assets/{collapse-BeOhBsBA.js → collapse-8NywKzkD.js} +1 -1
- package/dist/assets/{complete-pEetXGz2.js → complete-CoxxHtya.js} +2 -2
- package/dist/assets/{component-Bgo6eiyE.js → component-DFxWQ53_.js} +3 -3
- package/dist/assets/{config-DUgUooD7.js → config-9AzYOFjl.js} +1 -1
- package/dist/assets/{config-B_hp0NmN.js → config-FlWkcnSQ.js} +4 -4
- package/dist/assets/{config-_-EQ0Epw.js → config-Z0lZ_fIF.js} +2 -2
- package/dist/assets/{config-navigation-sV4EbIjT.js → config-navigation-BeyD50oL.js} +9 -9
- package/dist/assets/{config-space-XgrkTVb_.js → config-space-B5AcrZrr.js} +1 -1
- package/dist/assets/confirm-BCIsFO05.js +7 -0
- package/dist/assets/{connect-Bo7X4WRA.js → connect-BHVbShaf.js} +1 -1
- package/dist/assets/{connect-BcuVDRIg.js → connect-t0Kr-SCs.js} +1 -1
- package/dist/assets/connect-to-vpq5qHgA.js +1 -0
- package/dist/assets/{content-layout-D0HgAWIj.js → content-layout-C8_nylvn.js} +1 -1
- package/dist/assets/createClass-C3vKjEY6.js +1 -0
- package/dist/assets/{dashboard-DVufxMME.js → dashboard-BYloJNzh.js} +3 -3
- package/dist/assets/{delete-confirm-FEUxkG43.js → delete-confirm-DYLVkKGU.js} +1 -1
- package/dist/assets/{did-address-BsD0Ja6f.js → did-address-DIgY8RPi.js} +1 -1
- package/dist/assets/{domain-BI8RdK7S.js → domain-CG4Pvgwf.js} +1 -1
- package/dist/assets/{domain-action-card-CyD3YPhU.js → domain-action-card-tBq1nB0K.js} +2 -2
- package/dist/assets/domains-AuK4HL7x.js +1 -0
- package/dist/assets/{email-WV1LA3l2.js → email-BYwhwWfZ.js} +3 -3
- package/dist/assets/{empty-spinner-yPLwfnik.js → empty-spinner-8MrwYy6o.js} +1 -1
- package/dist/assets/engine-CBHSi_C7.js +1 -0
- package/dist/assets/{exchange-passport-DnShCQU6.js → exchange-passport-BbMcWacf.js} +1 -1
- package/dist/assets/{form-CCBOl2QK.js → form-BL7Qaoye.js} +2 -2
- package/dist/assets/{form-text-input-DiBXmKHH.js → form-text-input-D4FuGnj9.js} +1 -1
- package/dist/assets/{form-wrapper-O5HR5g9j.js → form-wrapper-CyRbKpkJ.js} +1 -1
- package/dist/assets/{fuel-3tynLMF6.js → fuel-DSiGvW6j.js} +1 -1
- package/dist/assets/gen-access-key-CAbKVCsh.js +1 -0
- package/dist/assets/gen-simple-access-key-C4I7qLvK.js +1 -0
- package/dist/assets/get-safe-url-BpKuBIOs.js +1 -0
- package/dist/assets/hdkey-xzNoWg19.js +62 -0
- package/dist/assets/{home-CVhKAX1W.js → home-BK07LbAB.js} +1 -1
- package/dist/assets/iframe-BfG-m6vp.js +1 -0
- package/dist/assets/index-76cnX1rM.js +1027 -0
- package/dist/assets/{index-BZl53MLv.js → index-B4GUFxTb.js} +1 -1
- package/dist/assets/index-B8uTHiK_.js +271 -0
- package/dist/assets/{index-BKGX_rib.js → index-BYrTg1nU.js} +1 -1
- package/dist/assets/{index-C9gLts8j.js → index-BafKBvSo.js} +1 -1
- package/dist/assets/{index-x4EbwKKT.js → index-BbwCb-a4.js} +1 -1
- package/dist/assets/{index-BaBstino.js → index-BhmjxLth.js} +8 -8
- package/dist/assets/{index-Dmx5B0nd.js → index-BklNyXhF.js} +1 -1
- package/dist/assets/index-CM7xlUUB.js +1 -0
- package/dist/assets/{index-Dn5r8b31.js → index-CQI6xU1T.js} +12 -12
- package/dist/assets/{index-B6yvt28b.js → index-CYtRCAE4.js} +1 -1
- package/dist/assets/{index-CEomSqzf.js → index-Ch35mI2K.js} +1 -1
- package/dist/assets/{index-CNDQB5ss.js → index-ClrTHIwE.js} +2 -2
- package/dist/assets/index-CmVBHGF4.js +1 -0
- package/dist/assets/index-CsQzavE6.js +113 -0
- package/dist/assets/{index-CnSSStmX.js → index-D5gmkKds.js} +1 -1
- package/dist/assets/{index-BFjzQ59j.js → index-DERRGpCu.js} +2 -2
- package/dist/assets/{index-GKGJR9QG.js → index-DTsM42Id.js} +1 -1
- package/dist/assets/{index-Dplza4RE.js → index-DiQSmD0V.js} +5 -5
- package/dist/assets/index-Dmo2B1Mi.js +1 -0
- package/dist/assets/{index-BJUlLPmz.js → index-DotBGgGh.js} +1 -1
- package/dist/assets/{index-nD2momWN.js → index-DwgQRVxq.js} +1 -1
- package/dist/assets/{index-Cgd5ilob.js → index-DydCTQwc.js} +5 -5
- package/dist/assets/{index-D5hnouQx.js → index-DytFyFyX.js} +1 -1
- package/dist/assets/index-FqNrJsto.js +30 -0
- package/dist/assets/{index-DK5WDEEB.js → index-bMqkP3o8.js} +5 -5
- package/dist/assets/index-fLIHlWYe.js +55 -0
- package/dist/assets/index-kOWuhDk_.js +7 -0
- package/dist/assets/{index-BcqwvXCM.js → index-v6G9beJi.js} +4 -4
- package/dist/assets/{index-DTtqYivl.js → index-xFc1EnVb.js} +14 -14
- package/dist/assets/{invitation-BiwN2VrD.js → invitation-BXIvpB2I.js} +3 -3
- package/dist/assets/{invite-sG9nrx1v.js → invite-DmiHASAp.js} +1 -1
- package/dist/assets/{isURL-CUg0M0vI.js → isURL-CoDhaDcU.js} +2 -2
- package/dist/assets/{issue-passport-B6dZ_6Cz.js → issue-passport-8aESSpdE.js} +1 -1
- package/dist/assets/{item-Ce1sOOzq.js → item-sXcqafa_.js} +1 -1
- package/dist/assets/{landing-page-B51Yq79L.js → landing-page-CNcFpjZt.js} +1 -1
- package/dist/assets/{launch-result-message-DsDtH4O2.js → launch-result-message-CYwb6iA9.js} +1 -1
- package/dist/assets/{layout-BqA0nwyI.js → layout-DVgi_qwH.js} +1 -1
- package/dist/assets/list-CWvTOTs_.js +4 -0
- package/dist/assets/list-CoQQ0tVM.js +103 -0
- package/dist/assets/{list-header-zq8j7UNX.js → list-header-DdgW2mjM.js} +1 -1
- package/dist/assets/localization-RDdOhnNh.js +1 -0
- package/dist/assets/{log-CZVtlyyy.js → log-DfGl115l.js} +1 -1
- package/dist/assets/logger-CS1-keNf.js +1 -0
- package/dist/assets/login-Bzjbm_QW.js +1 -0
- package/dist/assets/{login-oauth-callback-CZEaxrWW.js → login-oauth-callback-CoSDK-N4.js} +1 -1
- package/dist/assets/{logo-uploader-DRdS0jgO.js → logo-uploader-DBH_onEh.js} +2 -2
- package/dist/assets/{lost-passport-CYIc-KaX.js → lost-passport-m2bIMpzG.js} +2 -2
- package/dist/assets/{observability-DjWNOFAW.js → observability-4ZKd3ESd.js} +1 -1
- package/dist/assets/{omit-BtX_IVuT.js → omit-CDaIJZJa.js} +1 -1
- package/dist/assets/{open-window-CS9iPYFz.js → open-window-BgNjwEUp.js} +1 -1
- package/dist/assets/{over-due-invoice-payment-Ds6p85Jz.js → over-due-invoice-payment-BF34HWd6.js} +1 -1
- package/dist/assets/{overview-CHSartaV.js → overview-DP_xeRVf.js} +2 -2
- package/dist/assets/{page-header-BBG13dwv.js → page-header-CyNE6Ofr.js} +1 -1
- package/dist/assets/passport-item-DeYT6d6I.js +1 -0
- package/dist/assets/{permission-DUZq76k-.js → permission-CskIWHP7.js} +1 -1
- package/dist/assets/{playground-l0kCaheU.js → playground-DeasY3DH.js} +1 -1
- package/dist/assets/preferences-DqP95Qdx.js +1 -0
- package/dist/assets/profile-embed-BuHEG0_z.js +1 -0
- package/dist/assets/publish-resource-DTaaFKoM.js +1 -0
- package/dist/assets/{react-beautiful-dnd.esm-fd7f1edT.js → react-beautiful-dnd.esm-DlUpjMak.js} +1 -1
- package/dist/assets/{react-stripe.esm-dYmFOSpC.js → react-stripe.esm-CvJuW6o6.js} +1 -1
- package/dist/assets/{required-DVwsbGXM.js → required-McYgDRcp.js} +1 -1
- package/dist/assets/runtime-jctwJS3B.js +1 -0
- package/dist/assets/{sanitize-CQihkQWa.js → sanitize-DtiBKDHb.js} +1 -1
- package/dist/assets/sdk-BwLYswB1.js +1 -0
- package/dist/assets/{section-DLZZkYEF.js → section-DSgkHUgY.js} +1 -1
- package/dist/assets/{security-OOMvokDG.js → security-COkH04W0.js} +3 -3
- package/dist/assets/session-DjNgTb0E.js +1 -0
- package/dist/assets/{setup-FIguiM7u.js → setup-CvtgqqvX.js} +1 -1
- package/dist/assets/{shorten-label-DULtT2aw.js → shorten-label-CphpNRtN.js} +1 -1
- package/dist/assets/{simple-select-z4kANmJU.js → simple-select-B6PbGWwo.js} +1 -1
- package/dist/assets/{spaces-DS5mDb6g.js → spaces-C6y9gYOt.js} +1 -1
- package/dist/assets/{start-BPPbKY2q.js → start-FCzRbcEJ.js} +1 -1
- package/dist/assets/{starting-progress-D36m0Jur.js → starting-progress-BrATamLt.js} +1 -1
- package/dist/assets/status-0NE7x2VB.js +1 -0
- package/dist/assets/{step-actions-BCMkiBJt.js → step-actions-2WqCN3oE.js} +1 -1
- package/dist/assets/{studio-BaKQrp69.js → studio-Dmxj3k9Y.js} +1 -1
- package/dist/assets/{switch-control-Bg_4ck4-.js → switch-control-BBfIxRXQ.js} +1 -1
- package/dist/assets/{table-tips-OHHAUf8b.js → table-tips-l92NoidG.js} +1 -1
- package/dist/assets/team-BMcH79D_.js +146 -0
- package/dist/assets/traffic-BFbGUTqB.js +1 -0
- package/dist/assets/{transfer-BkpY83Tu.js → transfer-Qt1n41TU.js} +1 -1
- package/dist/assets/{unsubscribe-DqQrZxDL.js → unsubscribe-CYaiLf3M.js} +1 -1
- package/dist/assets/{use-app-logo-BZP6g7du.js → use-app-logo-BxJ8CI-y.js} +1 -1
- package/dist/assets/{use-mobile-BhjEPXJE.js → use-mobile-BTugf2DR.js} +1 -1
- package/dist/assets/{use-mobile-Cw5yCFNi.js → use-mobile-BjYFyM2N.js} +1 -1
- package/dist/assets/{use-server-logo-D9Pt2agw.js → use-server-logo-B7LbKzj5.js} +1 -1
- package/dist/assets/{use-window-close-pLTUeUwV.js → use-window-close-CEQ6W4g4.js} +1 -1
- package/dist/assets/{useAsync-CFjPtTuV.js → useAsync-Bsct3MrV.js} +1 -1
- package/dist/assets/{useAsync-BPJmKcmr.js → useAsync-DTyhj7ow.js} +1 -1
- package/dist/assets/{useAsyncRetry-CmiuEIXq.js → useAsyncRetry-CY5KxYnR.js} +1 -1
- package/dist/assets/useLocalStorage-BtwoYumV.js +1 -0
- package/dist/assets/user-center-ChZNFNDS.js +126 -0
- package/dist/assets/user-follower-BQByc9hD.js +32 -0
- package/dist/assets/user-sessions-DuzTtEb_.js +1 -0
- package/dist/assets/{util-DiR6CGkl.js → util-B4gLWAg3.js} +1 -1
- package/dist/assets/{util-BY4Jjo2q.js → util-CykZsp5v.js} +1 -1
- package/dist/assets/{vendor-arcblock-Basg90AF.js → vendor-arcblock-2wJSDChZ.js} +139 -138
- package/dist/assets/{vendor-hooks-XYaYmqUz.js → vendor-hooks-Clg_9bzt.js} +1 -1
- package/dist/assets/{vendor-mui-core-D1KE_LWA.js → vendor-mui-core-BkVXEDpj.js} +1 -1
- package/dist/assets/{vendor-mui-x-35VYXdLE.js → vendor-mui-x-DiiSwpci.js} +1 -1
- package/dist/assets/{vendor-utils-D9t34RpH.js → vendor-utils-RRCPRD-7.js} +1 -1
- package/dist/assets/{vendor-ux-JJc9HQAK.js → vendor-ux-Cm4oSE3n.js} +131 -131
- package/dist/assets/{wait-connect-BDvg0APV.js → wait-connect-iy3js_Il.js} +1 -1
- package/dist/assets/{wizard-C18vdEjN.js → wizard-CjrxVVuX.js} +1 -1
- package/dist/assets/{wizard-components-D34u1nDC.js → wizard-components-DMXOIlUu.js} +3 -3
- package/dist/assets/{wrap-locale-DHRmq-M6.js → wrap-locale-DOQKQj35.js} +1 -1
- package/dist/assets/{zh-CIBse7Eg.js → zh-DygCEiCy.js} +1 -1
- package/dist/index.html +6 -6
- package/dist/service-worker.js +1 -1
- package/package.json +32 -32
- package/dist/assets/add-resource-CeL9CGw6.js +0 -1
- package/dist/assets/api-D0WTSMt7.js +0 -1
- package/dist/assets/authorize-BpAEdQbB.js +0 -1
- package/dist/assets/base32-BM0EGG_G.js +0 -1
- package/dist/assets/bind-account-0FusXwpG.js +0 -1
- package/dist/assets/branding-BwLq7zvy.js +0 -1
- package/dist/assets/button-BXmlC7LN.js +0 -1
- package/dist/assets/confirm-CQUC-h9X.js +0 -7
- package/dist/assets/connect-to-BOwPSqv_.js +0 -1
- package/dist/assets/createClass-BM_-4dO_.js +0 -1
- package/dist/assets/domains-BaakWyOu.js +0 -1
- package/dist/assets/engine-DqjrYbXf.js +0 -1
- package/dist/assets/gen-access-key-CO4-WBwG.js +0 -1
- package/dist/assets/gen-simple-access-key-BLU1CQqE.js +0 -1
- package/dist/assets/get-safe-url-C1cM9KQQ.js +0 -1
- package/dist/assets/iframe-D4EArqkC.js +0 -1
- package/dist/assets/index-4AgxfqNl.js +0 -1
- package/dist/assets/index-BKgMC01o.js +0 -55
- package/dist/assets/index-BzBCYs57.js +0 -271
- package/dist/assets/index-BzSejp52.js +0 -113
- package/dist/assets/index-CH24MDrX.js +0 -1
- package/dist/assets/index-CQnNYj8j.js +0 -62
- package/dist/assets/index-DlGDk6f1.js +0 -1
- package/dist/assets/index-Dl_mo6VP.js +0 -7
- package/dist/assets/index-MzaNcHRo.js +0 -1025
- package/dist/assets/index-VC2a5OwI.js +0 -29
- package/dist/assets/list-DDPm3xxE.js +0 -2
- package/dist/assets/list-DrfXTBKV.js +0 -103
- package/dist/assets/localization-yFQNsuN6.js +0 -1
- package/dist/assets/logger-Bc_B4ezh.js +0 -1
- package/dist/assets/login-CEifKwb3.js +0 -1
- package/dist/assets/passport-item-DJbWiXVs.js +0 -1
- package/dist/assets/preferences-By_IlOup.js +0 -1
- package/dist/assets/profile-embed-CCG9G7wc.js +0 -1
- package/dist/assets/publish-resource-s02z2MdL.js +0 -1
- package/dist/assets/runtime-DbB-M2o6.js +0 -1
- package/dist/assets/sdk-Ol9MhIA2.js +0 -1
- package/dist/assets/session-DGSuFVuR.js +0 -1
- package/dist/assets/status-DXtPmlwi.js +0 -1
- package/dist/assets/team-BmLR1DD5.js +0 -146
- package/dist/assets/traffic-BM5HlXo3.js +0 -1
- package/dist/assets/useLocalStorage-Cgk_vZIQ.js +0 -1
- package/dist/assets/user-center-DsKLVInJ.js +0 -126
- package/dist/assets/user-follower-BBKilW4B.js +0 -32
- package/dist/assets/user-sessions-BiY051eM.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as
|
|
1
|
+
import{j as o,ak as R,av as Ne,D as Pe,J as xe,aU as D1,Q as pe,aj as N1,aV as P1,W as b,at as q,ar as X,an as V1,am as F1,T as fe,a6 as ue,ac as R1,ad as z1,aW as K1,s as Y}from"./vendor-mui-core-BkVXEDpj.js";import{l as Q,r as I1,a as q1,b as G1,c as W1,d as J1,e as X1,f as Y1,g as Q1,h as et,i as tt,j as it,k as rt,m as Ve,n as nt,o as at,p as st,q as ye,s as lt,t as ot,u as ct,v as dt,w as ht,x as pt,M as ft,y as ut}from"./vendor-ux-Cm4oSE3n.js";import{w as gt,B as j,F as mt}from"./vendor-utils-RRCPRD-7.js";import{r as E,g as Fe}from"./vendor-react-Dvs43sk9.js";import{g as xt,a as yt}from"./vendor-hooks-Clg_9bzt.js";function Lt({children:e=null,relative:i="screen"}){let r={};return i==="parent"&&(r={width:"100%",height:"100%"}),o.jsx(bt,{style:r,children:e})}const bt=Q("div")`
|
|
2
2
|
flex: 1;
|
|
3
3
|
width: 100vw;
|
|
4
4
|
height: 100vh;
|
|
@@ -6,7 +6,7 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
6
6
|
display: flex;
|
|
7
7
|
justify-content: center;
|
|
8
8
|
align-items: center;
|
|
9
|
-
`;
|
|
9
|
+
`;function wt({height:e,...i}){return o.jsx(vt,{height:e,...i})}const vt=Q(R)`
|
|
10
10
|
overflow: hidden;
|
|
11
11
|
&:before {
|
|
12
12
|
content: '';
|
|
@@ -19,7 +19,7 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
19
19
|
float: left;
|
|
20
20
|
white-space: nowrap;
|
|
21
21
|
}
|
|
22
|
-
`;function
|
|
22
|
+
`;function Re({children:e,...i}){return o.jsx(R,{sx:{display:"flex",alignItems:"center",gap:1.5,"> *":{m:"0px!important"},".MuiIconButton-root":{width:32,height:32,p:0,border:1,borderColor:"divider"},".MuiIconButton-root svg, .MuiButton-root svg":{fontSize:18,width:"1em!important",height:"1em!important"},".arc-session-user-logged-in > *, .arc-session-user-logged-in svg":{width:"100%!important",height:"100%!important"},".arc-session-user-unlogin svg":{transform:"scale(1)!important"}},...i,children:e})}function ze({logo:e=null,brand:i=null,brandAddon:r=null,description:n=null,children:a=null,addons:l=null,prepend:s=null,align:p="left",maxWidth:h=!1,homeLink:g="/",...d}){const m=E.useRef(null),[c,y]=E.useState("0px"),L={minWidth:c};return E.useEffect(()=>{const{searchParams:v}=new URL(window.location.href);v.get("inviter")&&window.localStorage.setItem("inviter",v.get("inviter")),m.current&&y(`${m.current.offsetWidth}px`)},[]),o.jsx(kt,{...d,children:o.jsxs(Ne,{maxWidth:h,className:"header-container",children:[s,o.jsx("div",{className:"header-brand-wrapper",style:L,children:(()=>{const v=o.jsxs(o.Fragment,{children:[e&&o.jsx("div",{className:"header-logo",ref:m,children:e}),i&&o.jsx(wt,{height:44,sx:{flexShrink:{xs:1}},children:o.jsxs("div",{className:"header-brand",children:[o.jsx("div",{className:"header-brand-title",children:o.jsx("h2",{children:i})}),o.jsx("div",{className:"header-brand-desc",children:n})]})})]});return typeof g=="function"?g(v):o.jsx("a",{href:g,children:v})})()}),o.jsx("div",{className:"header-brand-addon",children:r}),p==="right"&&o.jsx(R,{sx:{display:"inline-block",flexGrow:1}}),a,p==="left"&&o.jsx(R,{sx:{display:"inline-block",flexGrow:1}}),o.jsx(Re,{className:"header-addons",children:l})]})})}const kt=Q(R)`
|
|
23
23
|
position: relative;
|
|
24
24
|
font-size: 14px;
|
|
25
25
|
z-index: ${({theme:e})=>e.zIndex.appBar};
|
|
@@ -115,7 +115,7 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
-
`;function
|
|
118
|
+
`;function x2({prepend:e,children:i=null,...r}){const n=Pe(),a=xe(n.breakpoints.down("md")),[l,s]=E.useState(!1),p=typeof i=="function"?i({isMobile:a,closeMenu:()=>s(!1)}):i,h=xt({changed:!1,value:"",priority:""});return yt(()=>{if(document.documentElement?.style){const g=()=>{h.changed&&(h.value?document.documentElement.style.setProperty("overflow",h.value,h.priority):document.documentElement.style.removeProperty("overflow"),h.value="",h.priority="",h.changed=!1)};return l?(h.changed=!0,h.value=document.documentElement.style.getPropertyValue("overflow"),h.priority=document.documentElement.style.getPropertyPriority("overflow"),document.documentElement.style.setProperty("overflow","revert","important")):g(),g}return()=>{}},[l]),i?o.jsxs($t,{prepend:e||o.jsx(pe,{sx:{color:n.palette.grey[500]},className:"header-menu","aria-label":"header menu button",onClick:()=>s(!l),children:l?o.jsx(N1,{}):o.jsx(P1,{})}),...r,children:[!a&&p,a&&o.jsx(D1,{open:l,onClose:()=>s(!1),ModalProps:{disablePortal:!1,keepMounted:!0,BackdropComponent:void 0},anchor:"top",sx:{top:64,zIndex:n.zIndex.appBar-1},slotProps:{paper:{style:{top:64,bottom:0,boxShadow:"none",backgroundImage:"none",backgroundColor:n.palette.background.paper}}},children:o.jsx(Ct,{children:p})})]}):o.jsx(ze,{prepend:e,...r})}const $t=Q(ze)`
|
|
119
119
|
.header-menu {
|
|
120
120
|
display: none;
|
|
121
121
|
}
|
|
@@ -125,7 +125,7 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
125
125
|
margin-right: 12px;
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
|
-
`,
|
|
128
|
+
`,Ct=Q(Ne)`
|
|
129
129
|
padding-top: 8px;
|
|
130
130
|
padding-bottom: 16px;
|
|
131
131
|
.navmenu {
|
|
@@ -135,19 +135,20 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
135
135
|
border: 0;
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
`,E={"did-space":{start:"#7D3AC5",end:"#9761D1"},"app-space":{start:"#6CC68D",end:"#47B871"},"app-purchase":{start:"#DE7021",end:"#E48D4E"},"app-passport":{start:"#3882C7",end:"#7AB2F6"},"app-kyc":{start:"#3882C7",end:"#7AB2F6"}},z=["#E94E4E","#E41115","#E96B4E","#E5502E","#E98F4E","#E57A2E","#E98F4E","#E5A82E","#DACD5D","#DAC825","#BDD13D","#C8E31C","#AEE94E","#7FD558","#52CC19","#4FC469","#59DE9C","#19CC73","#5ED9D1","#19CCC0","#4ED7E9","#19B7CC","#45ACE8","#1C97DE","#4E68E9","#2E4DE5","#7F4EE9","#682EE5","#BE65E7","#AF40E2","#DF58C2","#E94E8F"];function X(e){const t=e.replace("#",""),i=parseInt(t.slice(0,2),16)/255,l=parseInt(t.slice(2,4),16)/255,s=parseInt(t.slice(4,6),16)/255,o=Math.max(i,l,s),r=Math.min(i,l,s);let h,d;const f=(o+r)/2;if(o===r)h=0,d=0;else{const g=o-r;switch(d=f>.5?g/(2-o-r):g/(o+r),o){case i:h=(l-s)/g+(l<s?6:0);break;case l:h=(s-i)/g+2;break;case s:h=(i-l)/g+4;break}h/=6}return[h,d,f]}function O(e,t,i){let l,s,o;if(t===0)l=i,s=i,o=i;else{const r=(f,g,L)=>{let c=L;return c<0&&(c+=1),c>1&&(c-=1),c<.16666666666666666?f+(g-f)*6*c:c<.5?g:c<.6666666666666666?f+(g-f)*(.6666666666666666-c)*6:f},h=i<.5?i*(1+t):i+t-i*t,d=2*i-h;l=r(d,h,e+1/3),s=r(d,h,e),o=r(d,h,e-1/3)}return`#${[Math.round(l*255),Math.round(s*255),Math.round(o*255)].map(r=>r.toString(16).padStart(2,"0")).join("")}`}function e1(e){if(e){const t=X(e),i=[t[0]];t[1]>.7?i.push(.7):i.push(t[1]),t[2]>.6?i.push(.6):t[2]<.3?i.push(.3):i.push(t[2]);const l=[i[0],i[1],i[2]-.1],s=O(...i);return{start:O(...l),end:s}}return E["app-passport"]}function t1(e){return`#${G1.toHex(D1.Hasher.SHA3.hash224(e)).slice(-6)}`}function q1(e){return e1(t1(e))}const n=(e,t)=>[e,t].join("-"),J1=228,K1=258,Q1=e=>/^(0x)?[0-9a-f]{40}$/i.test(e),Y1=e=>{const t=Uint8Array.from(e.slice(2).match(/.{1,2}/g).map(i=>parseInt(i,16))).slice(0,8).reduce((i,l)=>i+l,0)%z.length;return z[t]},i1=(e,t=5)=>e.length>2*t?`${e.slice(0,t)}..${e.slice(-t)}`:e,l1=(e,t,i)=>e==="did-space"?(l,s,o)=>`<svg
|
|
139
|
-
|
|
140
|
-
|
|
138
|
+
`;var H={},ke;function T(){return ke||(ke=1,function(e){var i=H&&H.__createBinding||(Object.create?function(t,u,x,$){$===void 0&&($=x);var k=Object.getOwnPropertyDescriptor(u,x);(!k||("get"in k?!u.__esModule:k.writable||k.configurable))&&(k={enumerable:!0,get:function(){return u[x]}}),Object.defineProperty(t,$,k)}:function(t,u,x,$){$===void 0&&($=x),t[$]=u[x]}),r=H&&H.__setModuleDefault||(Object.create?function(t,u){Object.defineProperty(t,"default",{enumerable:!0,value:u})}:function(t,u){t.default=u}),n=H&&H.__importStar||function(t){if(t&&t.__esModule)return t;var u={};if(t!=null)for(var x in t)x!=="default"&&Object.prototype.hasOwnProperty.call(t,x)&&i(u,t,x);return r(u,t),u},a=H&&H.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.fromTokenToUnit=e.fromUnitToToken=e.numberToString=e.toHex=e.hexToBytes=e.bytesToHex=e.numberToHex=e.hexToNumber=e.hexToUtf8=e.utf8ToHex=e.toBN=e.isHex=e.isHexStrict=e.isBigNumber=e.isBN=e.stripHexPrefix=e.isHexPrefixed=e.numberToBN=e.rightPad=e.leftPad=e.BN=e.isBase58btc=void 0,e.isUint8Array=le,e.UUID=E1,e.isUUID=H1,e.toUint8Array=oe,e.toBuffer=ve,e.toBase58=j1,e.fromBase58=B1,e.toBase64=T1,e.fromBase64=O1,e.toAddress=te,e.toDid=U1,e.isSameDid=Z1,e.formatTxType=A1;const l=a(I1),s=a(q1),p=a(G1),h=a(W1),g=a(J1),d=a(X1),m=a(Y1),c=a(Q1);e.rightPad=c.default;const y=a(et);e.leftPad=y.default;const L=a(tt()),v=a(it()),w=a(gt());e.BN=w.default;const _=n(rt()),C="did:abt:",M=new w.default(0),B=new w.default(-1),V={encode:t=>`z${L.default.encode(t)}`,decode:t=>L.default.decode(t.slice(1))},ae=t=>{if(typeof t!="string")return!1;if(t[0]==="z")try{return V.decode(t),!0}catch{return!1}return!1};e.isBase58btc=ae;const ee=t=>{if(typeof t=="string"||typeof t=="number"){let u=new w.default(1);const x=String(t).toLowerCase().trim(),$=x.substr(0,2)==="0x"||x.substr(0,3)==="-0x";let k=(0,e.stripHexPrefix)(x);if(k.substr(0,1)==="-"&&(k=(0,e.stripHexPrefix)(k.slice(1)),u=new w.default(-1,10)),k=k===""?"0":k,!k.match(/^-?[0-9]+$/)&&k.match(/^[0-9A-Fa-f]+$/)||k.match(/^[a-fA-F]+$/)||$===!0&&k.match(/^[0-9A-Fa-f]+$/))return new w.default(k,16).mul(u);if((k.match(/^-?[0-9]+$/)||k==="")&&$===!1)return new w.default(k,10).mul(u)}if((0,e.isBN)(t))return new w.default(t.toString(10),10);throw new Error(`[number-to-bn] while converting number ${JSON.stringify(t)} to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance. Note, decimals are not supported.`)};e.numberToBN=ee;const se=t=>{if(typeof t!="string")throw new Error("[is-hex-prefixed] value must be type string");return t.slice(0,2).toLowerCase()==="0x"};e.isHexPrefixed=se;const f1=t=>typeof t=="string"&&(0,e.isHexPrefixed)(t)?t.slice(2):t;e.stripHexPrefix=f1;const u1=t=>t instanceof w.default||t&&t.constructor&&t.constructor.name==="BN";e.isBN=u1;const g1=t=>t&&t.constructor&&t.constructor.name==="BigNumber";e.isBigNumber=g1;const m1=t=>((0,s.default)(t)||(0,p.default)(t))&&/^(-)?0x[0-9a-f]*$/i.test(t);e.isHexStrict=m1;const x1=t=>((0,s.default)(t)||(0,p.default)(t))&&/^(-0x|0x|0X|-0X)?[0-9a-f]*$/i.test(t);e.isHex=x1;const y1=(t,u=10)=>{try{if(typeof t=="number"&&t>0){const x=Number(t).toLocaleString("fullwide",{useGrouping:!1});return new w.default(x,u)}return(0,e.numberToBN)(t)}catch(x){throw new Error(`${x} Given value: "${t}"`)}};e.toBN=y1;const L1=t=>{t=_.encode(t);let u="";t=t.replace(/^(?:\u0000)*/,""),t=t.split("").reverse().join(""),t=t.replace(/^(?:\u0000)*/,""),t=t.split("").reverse().join("");for(let x=0;x<t.length;x++){const k=t.charCodeAt(x).toString(16);u+=k.length<2?`0${k}`:k}return`0x${u}`};e.utf8ToHex=L1;const b1=t=>{if(!(0,e.isHexStrict)(t))throw new Error(`The parameter "${t}" must be a valid HEX string.`);let u="",x=0;t=t.replace(/^0x/i,""),t=t.replace(/^(?:00)*/,""),t=t.split("").reverse().join(""),t=t.replace(/^(?:00)*/,""),t=t.split("").reverse().join("");const $=t.length;for(let k=0;k<$;k+=2)x=parseInt(t.substr(k,2),16),u+=String.fromCharCode(x);return _.decode(u)};e.hexToUtf8=b1;const w1=t=>t?(0,e.toBN)(t).toNumber():0;e.hexToNumber=w1;const v1=t=>{if((0,m.default)(t)||typeof t>"u")return t;if(!isFinite(t)&&!(0,e.isHex)(t))throw new Error(`Given input "${t}" is not a number.`);const u=(0,e.toBN)(t),x=u.toString(16);return u.lt(new w.default(0))?`-0x${x.substr(1)}`:`0x${x}`};e.numberToHex=v1;const k1=t=>{const u=[];for(let x=0;x<t.length;x++)u.push((t[x]>>>4).toString(16)),u.push((t[x]&15).toString(16));return`0x${u.join("")}`};e.bytesToHex=k1;const $1=t=>{if(t=t.toString(16),!(0,e.isHex)(t))throw new Error(`Given value "${t}" is not a valid hex string.`);t=t.replace(/^0x/i,""),t=t.length%2?`0${t}`:t;const u=[];for(let x=0;x<t.length;x+=2)u.push(parseInt(t.substr(x,2),16));return u};e.hexToBytes=$1;const C1=(t,u=!1)=>le(t)||j.isBuffer(t)?u?"bytes":(0,e.bytesToHex)(t):(0,e.isBase58btc)(t)?u?"bytes":(0,e.bytesToHex)(V.decode(t)):(0,l.default)(t)?u?"bool":t?"0x01":"0x00":(0,h.default)(t)&&!(0,e.isBigNumber)(t)&&!(0,e.isBN)(t)?u?"string":(0,e.utf8ToHex)(JSON.stringify(t)):typeof t=="string"?t.indexOf("-0x")===0||t.indexOf("-0X")===0?u?"int256":(0,e.numberToHex)(t):t.indexOf("0x")===0||t.indexOf("0X")===0?u?"bytes":t:u?"string":(0,e.utf8ToHex)(t):u?+t<0?"int256":"uint256":(0,e.numberToHex)(t);e.toHex=C1;const S1=t=>{if(typeof t=="string"){if(!t.match(/^-?[0-9.]+$/))throw new Error(`Invalid value '${t}' while converting to string, should be a number matching (^-?[0-9.]+).`);return t}if(typeof t=="number")return Number.isInteger(t)&&t>0?Number(t).toLocaleString("fullwide",{useGrouping:!1}):String(t);if(typeof t=="object"&&t.toString&&(t.toTwos||t.dividedToIntegerBy))return t.toPrecision?String(t.toPrecision()):t.toString(10);throw new Error(`while converting number to string, invalid number value '${t}' type ${typeof t}.`)};e.numberToString=S1;const _1=(t,u=18,x={})=>{let $=(0,e.toBN)(t);const k=$.lt(M),z=(0,e.toBN)(`1${"0".repeat(u)}`,10),W=z.toString(10).length-1||1,O=x||{};k&&($=$.mul(B));let S=$.mod(z).toString(10);for(;S.length<W;)S=`0${S}`;O.pad||(S=S.match(/^([0-9]*[1-9]|0)(0*)/)[1]);let F=$.div(z).toString(10);O.commify&&(F=F.replace(/\B(?=(\d{3})+(?!\d))/g,","));let ce=`${F}${S==="0"?"":`.${S}`}`;return k&&(ce=`-${ce}`),ce};e.fromUnitToToken=_1;const M1=(t,u=18)=>{let x=(0,e.numberToString)(t);const $=(0,e.toBN)(`1${"0".repeat(u)}`,10),k=$.toString(10).length-1||1,z=x.substring(0,1)==="-";if(z&&(x=x.substring(1)),x===".")throw new Error(`error converting token ${t} to unit, invalid value`);const W=x.split(".");if(W.length>2)throw new Error(`error converting token ${t} to unit, too many decimal points`);let O=W[0],S=W[1];if(O||(O="0"),S||(S="0"),S.length>k)throw new Error(`error converting token ${t} to unit, too many decimal places`);for(;S.length<k;)S+="0";O=new w.default(O),S=new w.default(S);let F=O.mul($).add(S);return z&&(F=F.mul(B)),new w.default(F.toString(10),10)};e.fromTokenToUnit=M1;function le(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}function E1(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const u=Math.random()*16|0;return(t==="x"?u:u&3|8).toString(16)})}function H1(t){return/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(t)}function oe(t){let u=null;if([null,void 0,""].includes(t))u=new Uint8Array;else if(j.isBuffer(t))u=new Uint8Array(t);else if((0,e.isHexStrict)(t))u=new Uint8Array((0,e.hexToBytes)(t));else if(le(t))u=new Uint8Array(t);else if((0,e.isBase58btc)(t))u=new Uint8Array(V.decode(t));else if(typeof t=="string")u=new Uint8Array((0,e.hexToBytes)((0,e.toHex)(t)));else throw new Error(`Unsupported input type ${typeof t} detected for toBuffer, only Uint8Array/Buffer/Hex/Base58 are supported`);return u}function ve(t){return j.from(oe(t))}function j1(t){const u=V.encode(oe(t));return j.from(u).toString("utf-8")}function B1(t){if((0,e.isBase58btc)(t)===!1)throw new Error("fromBase58 expect strict base58 encoded string as input");return j.from(V.decode(t))}function T1(t,u=!0){const x=v.default.encode(ve(t));return u?v.default.escape(x):x}function O1(t){if(typeof t!="string")throw new Error("fromBase64 requires input to be a string");return j.from(v.default.unescape(t),"base64")}function te(t){return t.replace(C,"")}function U1(t){return`${C}${te(t)}`}function Z1(t,u){return te(t).toLowerCase()===te(u).toLowerCase()}function A1(t){return(0,g.default)((0,d.default)(t))}}(H)),H}var St=T(),J={},ie={},$e;function G(){if($e)return ie;$e=1,Object.defineProperty(ie,"__esModule",{value:!0}),ie.encode=i;const e=T();function i(r,n="hex"){return["hex","base16"].includes(n)?(0,e.toHex)(r):n==="base58"?(0,e.toBase58)(r):n==="base64"?(0,e.toBase64)(r):n==="Uint8Array"?(0,e.toUint8Array)(r):n==="buffer"?(0,e.toBuffer)(r):r}return ie}var U={},Ce;function _t(){if(Ce)return U;Ce=1;var e=U&&U.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(U,"__esModule",{value:!0}),U.KeccakHasher=void 0;const i=e(Ve()),r=T(),n=G();class a{constructor(){[224,256,384,512].forEach(s=>{const p=`hash${s}`,h=d=>i.default[`keccak${s}`](d),g=(d,m)=>m===1?h(d):g(h(d),m-1);this[p]=(d,m=1,c="hex")=>{let y=d;try{y=(0,r.toUint8Array)(d)}catch{}const L=g(y,m);return(0,n.encode)(`0x${L}`,c)}})}}return U.KeccakHasher=a,U.default=new a,U}var K={},Se;function Mt(){if(Se)return K;Se=1,Object.defineProperty(K,"__esModule",{value:!0}),K.Sha2Hasher=void 0;const e=T(),i=nt(),r=G(),n={sha224:i.sha224,sha256:i.sha256,sha384:i.sha384,sha512:i.sha512};class a{constructor(){[224,256,384,512].forEach(s=>{const p=`hash${s}`,h=n[`sha${s}`],g=(d,m)=>{let c=d;try{c=(0,e.toUint8Array)(d)}catch{}return m===1?`0x${h().update(c).digest("hex")}`:g(g(c,1),m-1)};this[p]=(d,m=2,c="hex")=>{const y=g(d,m);return(0,r.encode)(y,c)}})}}return K.Sha2Hasher=a,K.default=new a,K}var Z={},_e;function Et(){if(_e)return Z;_e=1;var e=Z&&Z.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(Z,"__esModule",{value:!0}),Z.Sha3Hasher=void 0;const i=e(Ve()),r=T(),n=G();class a{constructor(){[224,256,384,512].forEach(s=>{const p=`hash${s}`,h=i.default[`sha3_${s}`],g=(d,m)=>m===1?h(d):g(h(d),m-1);this[p]=(d,m=1,c="hex")=>{let y=d;try{y=(0,r.toUint8Array)(d)}catch{}const L=g(y,m);return(0,n.encode)(`0x${L}`,c)}})}}return Z.Sha3Hasher=a,Z.default=new a,Z}var A={},I={},Me;function Le(){if(Me)return I;Me=1;var e=I&&I.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(I,"__esModule",{value:!0});const i=e(at());return I.default=i.default.create("genKeyPair","getPublicKey","sign","verify"),I}var Ee;function Ht(){if(Ee)return A;Ee=1;var e=A&&A.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(A,"__esModule",{value:!0}),A.Ed25519Signer=void 0;const i=e(st()),r=e(ye()),n=T(),a=e(Le()),l=G(),s=i.default.sign;class p extends a.default{constructor(){super()}genKeyPair(g="hex",d){const m=d?(0,n.toUint8Array)(d):new Uint8Array((0,r.default)(32));if(m.byteLength!==32)throw new Error("Invalid seed to generate key pair");const c=s.keyPair.fromSeed(m);return c.publicKey=(0,l.encode)(c.publicKey,g),c.secretKey=(0,l.encode)(c.secretKey,g),c}getPublicKey(g,d="hex"){const m=(0,n.toUint8Array)(g),c=s.keyPair.fromSecretKey(m).publicKey;return(0,l.encode)(c,d)}sign(g,d,m="hex"){const c=(0,n.toUint8Array)(d),y=(0,n.toUint8Array)(g),L=s.detached(y,c);return(0,l.encode)(L,m)}verify(g,d,m){const c=(0,n.toUint8Array)(m),y=(0,n.toUint8Array)(g),L=(0,n.toUint8Array)(d);return s.detached.verify(y,L,c)}}return A.Ed25519Signer=p,A.default=new p,A}var D={},N={},He;function Ke(){if(He)return N;He=1;var e=N&&N.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(N,"__esModule",{value:!0}),N.Secp256k1Signer=void 0;const i=e(lt()),r=T(),n=e(ye()),a=e(Le()),l=G(),s=i.default.ec,p=new s("secp256k1");class h extends a.default{constructor(){super(),this.pkHasFormatPrefix=!0,this.pkCompressed=!1}isValidSK(d){if(d.byteLength!==32)return!1;const m=new r.BN(d);return m.cmp(p.curve.n)<0&&!m.isZero()}genKeyPair(d="hex"){let m=null;do m=new Uint8Array((0,n.default)(32));while(!this.isValidSK(m));const c=this.getPublicKey((0,r.toHex)(m));return{secretKey:(0,l.encode)(m,d),publicKey:(0,l.encode)(c,d)}}getPublicKey(d,m="hex"){if(!this.isValidSK((0,r.toUint8Array)(d)))throw new Error("Invalid secret key");let c=p.keyFromPrivate((0,r.toBuffer)(d)).getPublic(this.pkCompressed,"hex");return this.pkHasFormatPrefix===!1&&(c=c.slice(2)),(0,l.encode)(`0x${c}`,m)}sign(d,m,c="hex"){let y=d;try{y=(0,r.toUint8Array)(d)}catch{}const L=p.keyFromPrivate((0,r.toBuffer)(m)).sign((0,r.stripHexPrefix)(y),{canonical:!0}).toDER("hex");return(0,l.encode)(`0x${L}`,c)}verify(d,m,c){let y=d;try{y=(0,r.toUint8Array)(d)}catch{}let L=(0,r.toBuffer)(c);return this.pkHasFormatPrefix===!1&&L[0]!==4&&L.byteLength===64&&(L=j.concat([j.from([4]),L])),p.keyFromPublic(L).verify((0,r.stripHexPrefix)(y),(0,r.stripHexPrefix)((0,r.toHex)(m)))}}return N.Secp256k1Signer=h,N.default=new h,N}var je;function jt(){if(je)return D;je=1;var e=D&&D.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(D,"__esModule",{value:!0}),D.EthereumSigner=void 0;const i=e(ot()),r=e(ct()),n=T(),a=Ke();class l extends a.Secp256k1Signer{constructor(){super(),this.pkHasFormatPrefix=!1}ethHash(p){const h=(0,n.isHexStrict)(p)?p:(0,n.utf8ToHex)(p),g=(0,n.hexToBytes)(h),d=j.from(g),m=`Ethereum Signed Message:
|
|
139
|
+
${g.length}`,c=j.from(m),y=j.concat([c,d]);return r.default.keccak256s(y)}ethSign(p,h){return i.default.sign(p,h)}ethRecover(p,h){return i.default.recover(p,h)}}return D.EthereumSigner=l,D.default=new l,D}var P={},Be;function Bt(){if(Be)return P;Be=1;var e=P&&P.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(P,"__esModule",{value:!0}),P.PasskeySigner=void 0;const i=T(),r=dt(),n=e(Le());class a extends n.default{constructor(){super()}genKeyPair(s="hex",p){throw new Error("Not supported")}getPublicKey(s,p="hex"){throw new Error("Not supported")}sign(s,p,h="hex"){throw new Error("Not supported")}async verify(s,p,h,g){const d=JSON.parse(g);if(!d.authenticatorData||!d.clientDataJSON)throw new Error("extra.authenticatorData or extra.clientDataJSON is required for passkey signature verification");const m=(0,i.toBuffer)((0,i.fromBase64)(d.authenticatorData)),c=await(0,r.toHash)(r.isoBase64URL.toBuffer(d.clientDataJSON));if((0,r.decodeClientDataJSON)(d.clientDataJSON).challenge!==(0,i.toBase64)(s))throw new Error("challenge mismatch for passkey signature");return(0,r.verifySignature)({signature:r.isoBase64URL.toBuffer(typeof p=="string"?p:(0,i.toBase64)(p)),data:r.isoUint8Array.concat([m,c]),credentialPublicKey:h})}}return P.PasskeySigner=a,P.default=new a,P}var Te;function Tt(){return Te||(Te=1,function(e){var i=J&&J.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(e,"__esModule",{value:!0}),e.toTxHash=e.Hashers=e.Signers=e.types=e.Hasher=e.Signer=void 0,e.getSigner=m,e.getHasher=c,e.getRandomBytes=y;const r=i(ye()),n=G(),a=i(_t()),l=i(Mt()),s=i(Et()),p=i(Ht()),h=i(jt()),g=i(Ke()),d=i(Bt());e.Signer={Ed25519:p.default,Secp256k1:g.default,Ethereum:h.default,Passkey:d.default},e.Hasher={SHA2:l.default,SHA3:s.default,Keccak:a.default},e.types={KeyType:{ED25519:0,SECP256K1:1,ETHEREUM:2,PASSKEY:3},HashType:{KECCAK:0,SHA3:1,KECCAK_384:2,SHA3_384:3,KECCAK_512:4,SHA3_512:5,SHA2:6},RoleType:{ROLE_ACCOUNT:0,ROLE_NODE:1,ROLE_DEVICE:2,ROLE_APPLICATION:3,ROLE_SMART_CONTRACT:4,ROLE_BOT:5,ROLE_ASSET:6,ROLE_STAKE:7,ROLE_VALIDATOR:8,ROLE_GROUP:9,ROLE_TX:10,ROLE_TETHER:11,ROLE_SWAP:12,ROLE_DELEGATION:13,ROLE_VC:14,ROLE_BLOCKLET:15,ROLE_STORE:16,ROLE_TOKEN:17,ROLE_FACTORY:18,ROLE_ROLLUP:19,ROLE_STORAGE:20,ROLE_PROFILE:21,ROLE_PASSKEY:22,ROLE_TOKEN_FACTORY:23,ROLE_ANY:63},EncodingType:{BASE16:0,BASE58:1}};function m(v){if(typeof e.Signers[v]>"u")throw new Error(`Unsupported signer type: ${v}`);return e.Signers[v]}function c(v){if(typeof e.Hashers[v]>"u")throw new Error(`Unsupported hash type: ${v}`);return e.Hashers[v]}function y(v=32,w="hex"){return(0,n.encode)((0,r.default)(v),w)}e.Signers=Object.freeze({[e.types.KeyType.ED25519]:e.Signer.Ed25519,[e.types.KeyType.SECP256K1]:e.Signer.Secp256k1,[e.types.KeyType.ETHEREUM]:e.Signer.Ethereum,[e.types.KeyType.PASSKEY]:e.Signer.Passkey}),e.Hashers=Object.freeze({[e.types.HashType.KECCAK]:e.Hasher.Keccak.hash256,[e.types.HashType.KECCAK_384]:e.Hasher.Keccak.hash384,[e.types.HashType.KECCAK_512]:e.Hasher.Keccak.hash512,[e.types.HashType.SHA3]:e.Hasher.SHA3.hash256,[e.types.HashType.SHA3_384]:e.Hasher.SHA3.hash384,[e.types.HashType.SHA3_512]:e.Hasher.SHA3.hash512,[e.types.HashType.SHA2]:e.Hasher.SHA2.hash256});const L=v=>e.Hasher.SHA2.hash256(v,1,"hex").replace(/^0x/,"").toUpperCase();e.toTxHash=L}(J)),J}var Ot=Tt();const ne={"did-space":{start:"#7D3AC5",end:"#9761D1"},"app-space":{start:"#6CC68D",end:"#47B871"},"app-purchase":{start:"#DE7021",end:"#E48D4E"},"app-passport":{start:"#3882C7",end:"#7AB2F6"},"app-kyc":{start:"#3882C7",end:"#7AB2F6"}},ge=["#E94E4E","#E41115","#E96B4E","#E5502E","#E98F4E","#E57A2E","#E98F4E","#E5A82E","#DACD5D","#DAC825","#BDD13D","#C8E31C","#AEE94E","#7FD558","#52CC19","#4FC469","#59DE9C","#19CC73","#5ED9D1","#19CCC0","#4ED7E9","#19B7CC","#45ACE8","#1C97DE","#4E68E9","#2E4DE5","#7F4EE9","#682EE5","#BE65E7","#AF40E2","#DF58C2","#E94E8F"];function Ie(e){const i=e.replace("#",""),r=parseInt(i.slice(0,2),16)/255,n=parseInt(i.slice(2,4),16)/255,a=parseInt(i.slice(4,6),16)/255,l=Math.max(r,n,a),s=Math.min(r,n,a);let p,h;const g=(l+s)/2;if(l===s)p=0,h=0;else{const d=l-s;switch(h=g>.5?d/(2-l-s):d/(l+s),l){case r:p=(n-a)/d+(n<a?6:0);break;case n:p=(a-r)/d+2;break;case a:p=(r-n)/d+4;break}p/=6}return[p,h,g]}function me(e,i,r){let n,a,l;if(i===0)n=r,a=r,l=r;else{const s=(g,d,m)=>{let c=m;return c<0&&(c+=1),c>1&&(c-=1),c<.16666666666666666?g+(d-g)*6*c:c<.5?d:c<.6666666666666666?g+(d-g)*(.6666666666666666-c)*6:g},p=r<.5?r*(1+i):r+i-r*i,h=2*r-p;n=s(h,p,e+1/3),a=s(h,p,e),l=s(h,p,e-1/3)}return`#${[Math.round(n*255),Math.round(a*255),Math.round(l*255)].map(s=>s.toString(16).padStart(2,"0")).join("")}`}function qe(e){if(e){const i=Ie(e),r=[i[0]];i[1]>.7?r.push(.7):r.push(i[1]),i[2]>.6?r.push(.6):i[2]<.3?r.push(.3):r.push(i[2]);const n=[r[0],r[1],r[2]-.1],a=me(...r);return{start:me(...n),end:a}}return ne["app-passport"]}function Ge(e){return`#${St.toHex(Ot.Hasher.SHA3.hash224(e)).slice(-6)}`}function Ut(e){return qe(Ge(e))}const f=(e,i)=>[e,i].join("-"),Zt=228,At=258,Dt=e=>/^(0x)?[0-9a-f]{40}$/i.test(e),Nt=e=>{const i=Uint8Array.from(e.slice(2).match(/.{1,2}/g).map(r=>parseInt(r,16))).slice(0,8).reduce((r,n)=>r+n,0)%ge.length;return ge[i]},We=(e,i=5)=>e.length>2*i?`${e.slice(0,i)}..${e.slice(-i)}`:e,Je=(e,i,r)=>e==="did-space"?(n,a,l)=>`<svg
|
|
140
|
+
width="${a}"
|
|
141
|
+
height="${l}"
|
|
141
142
|
viewBox="0 0 228 258"
|
|
142
143
|
fill="none"
|
|
143
144
|
xmlns="http://www.w3.org/2000/svg"
|
|
144
145
|
xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
145
|
-
<g filter="url(#${
|
|
146
|
+
<g filter="url(#${f(i,"layout-filter")})">
|
|
146
147
|
<path
|
|
147
148
|
d="M56.9706 2C53.788 2 50.7357 3.26428 48.4853 5.51472L7.51472 46.4853C5.26428 48.7357 4 51.788 4 54.9706V240C4 246.627 9.37258 252 16 252H212C218.627 252 224 246.627 224 240V14C224 7.37258 218.627 2 212 2H56.9706Z"
|
|
148
|
-
fill="url(#${
|
|
149
|
+
fill="url(#${f(i,"header-paint")})" />
|
|
149
150
|
<mask
|
|
150
|
-
id="${
|
|
151
|
+
id="${f(i,"layout-mask")}"
|
|
151
152
|
style="mask-type: alpha"
|
|
152
153
|
maskUnits="userSpaceOnUse"
|
|
153
154
|
x="4"
|
|
@@ -158,14 +159,14 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
158
159
|
d="M56.9706 2C53.788 2 50.7357 3.26428 48.4853 5.51472L7.51472 46.4853C5.26428 48.7357 4 51.788 4 54.9706V240C4 246.627 9.37258 252 16 252H212C218.627 252 224 246.627 224 240V14C224 7.37258 218.627 2 212 2H56.9706Z"
|
|
159
160
|
fill="#D9D9D9" />
|
|
160
161
|
</mask>
|
|
161
|
-
<g mask="url(#${
|
|
162
|
+
<g mask="url(#${f(i,"layout-mask")})">
|
|
162
163
|
<rect x="4" y="2" width="220" height="125" fill="none" />
|
|
163
|
-
<rect x="4" y="127" width="220" height="125" fill="url(#${
|
|
164
|
+
<rect x="4" y="127" width="220" height="125" fill="url(#${f(i,"footer-paint")})" />
|
|
164
165
|
</g>
|
|
165
166
|
</g>
|
|
166
167
|
<defs>
|
|
167
168
|
<filter
|
|
168
|
-
id="${
|
|
169
|
+
id="${f(i,"layout-filter")}"
|
|
169
170
|
x="0"
|
|
170
171
|
y="0"
|
|
171
172
|
width="228"
|
|
@@ -186,17 +187,17 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
186
187
|
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1582_53235" result="shape" />
|
|
187
188
|
</filter>
|
|
188
189
|
<linearGradient
|
|
189
|
-
id="${
|
|
190
|
+
id="${f(i,"header-paint")}"
|
|
190
191
|
x1="220.071"
|
|
191
192
|
y1="252"
|
|
192
193
|
x2="-24.022"
|
|
193
194
|
y2="33.2716"
|
|
194
195
|
gradientUnits="userSpaceOnUse">
|
|
195
|
-
<stop stop-color="${
|
|
196
|
-
<stop offset="1" stop-color="${
|
|
196
|
+
<stop stop-color="${r.start}" />
|
|
197
|
+
<stop offset="1" stop-color="${r.end}" />
|
|
197
198
|
</linearGradient>
|
|
198
199
|
<linearGradient
|
|
199
|
-
id="${
|
|
200
|
+
id="${f(i,"footer-paint")}"
|
|
200
201
|
x1="224"
|
|
201
202
|
y1="157.738"
|
|
202
203
|
x2="1.00001"
|
|
@@ -206,17 +207,17 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
206
207
|
<stop offset="1" stop-color="#272727" />
|
|
207
208
|
</linearGradient>
|
|
208
209
|
</defs>
|
|
209
|
-
${
|
|
210
|
-
</svg>`:e==="app-space"?(
|
|
211
|
-
width="${
|
|
212
|
-
height="${
|
|
210
|
+
${n}
|
|
211
|
+
</svg>`:e==="app-space"?(n,a,l)=>`<svg
|
|
212
|
+
width="${a}"
|
|
213
|
+
height="${l}"
|
|
213
214
|
viewBox="0 0 228 258"
|
|
214
215
|
fill="none"
|
|
215
216
|
xmlns="http://www.w3.org/2000/svg"
|
|
216
217
|
xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
217
|
-
<g filter="url(#${
|
|
218
|
+
<g filter="url(#${f(i,"layout-filter")})">
|
|
218
219
|
<mask
|
|
219
|
-
id="${
|
|
220
|
+
id="${f(i,"layout-mask")}"
|
|
220
221
|
style="mask-type: alpha"
|
|
221
222
|
maskUnits="userSpaceOnUse"
|
|
222
223
|
x="4"
|
|
@@ -227,17 +228,17 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
227
228
|
d="M187.029 2C190.212 2 193.264 3.26428 195.515 5.51472L220.485 30.4853C222.736 32.7357 224 35.788 224 38.9706V240C224 246.627 218.627 252 212 252H40.4706C37.288 252 34.2357 250.736 31.9853 248.485L7.51472 224.015C5.26428 221.764 4 218.712 4 215.529V14C4 7.37258 9.37259 2 16 2H187.029Z"
|
|
228
229
|
fill="#7D37D7" />
|
|
229
230
|
</mask>
|
|
230
|
-
<g mask="url(#${
|
|
231
|
+
<g mask="url(#${f(i,"layout-mask")})">
|
|
231
232
|
<path
|
|
232
233
|
d="M187.029 2C190.212 2 193.264 3.26428 195.515 5.51472L220.485 30.4853C222.736 32.7357 224 35.788 224 38.9706V240C224 246.627 218.627 252 212 252H40.4706C37.288 252 34.2357 250.736 31.9853 248.485L7.51472 224.015C5.26428 221.764 4 218.712 4 215.529V14C4 7.37258 9.37259 2 16 2H187.029Z"
|
|
233
|
-
fill="url(#${
|
|
234
|
+
fill="url(#${f(i,"header-paint")})" />
|
|
234
235
|
<rect x="4" y="2" width="220" height="125" fill="none" />
|
|
235
|
-
<path d="M4 127H224V252H4V127Z" fill="url(#${
|
|
236
|
+
<path d="M4 127H224V252H4V127Z" fill="url(#${f(i,"footer-paint")})" />
|
|
236
237
|
</g>
|
|
237
238
|
</g>
|
|
238
239
|
<defs>
|
|
239
240
|
<filter
|
|
240
|
-
id="${
|
|
241
|
+
id="${f(i,"layout-filter")}"
|
|
241
242
|
x="0"
|
|
242
243
|
y="0"
|
|
243
244
|
width="228"
|
|
@@ -258,17 +259,17 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
258
259
|
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1583_54199" result="shape" />
|
|
259
260
|
</filter>
|
|
260
261
|
<linearGradient
|
|
261
|
-
id="${
|
|
262
|
+
id="${f(i,"header-paint")}"
|
|
262
263
|
x1="211.69"
|
|
263
264
|
y1="7.13393"
|
|
264
265
|
x2="51.0187"
|
|
265
266
|
y2="272.342"
|
|
266
267
|
gradientUnits="userSpaceOnUse">
|
|
267
|
-
<stop stop-color="${
|
|
268
|
-
<stop offset="1" stop-color="${
|
|
268
|
+
<stop stop-color="${r.start}" />
|
|
269
|
+
<stop offset="1" stop-color="${r.end}" />
|
|
269
270
|
</linearGradient>
|
|
270
271
|
<linearGradient
|
|
271
|
-
id="${
|
|
272
|
+
id="${f(i,"footer-paint")}"
|
|
272
273
|
x1="224"
|
|
273
274
|
y1="157.738"
|
|
274
275
|
x2="1.00001"
|
|
@@ -278,17 +279,17 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
278
279
|
<stop offset="1" stop-color="#272727" />
|
|
279
280
|
</linearGradient>
|
|
280
281
|
</defs>
|
|
281
|
-
${
|
|
282
|
-
</svg>`:e==="app-purchase"?(
|
|
283
|
-
width="${
|
|
284
|
-
height="${
|
|
282
|
+
${n}
|
|
283
|
+
</svg>`:e==="app-purchase"?(n,a,l)=>`<svg
|
|
284
|
+
width="${a}"
|
|
285
|
+
height="${l}"
|
|
285
286
|
viewBox="0 0 228 258"
|
|
286
287
|
fill="none"
|
|
287
288
|
xmlns="http://www.w3.org/2000/svg"
|
|
288
289
|
xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
289
|
-
<g filter="url(#${
|
|
290
|
+
<g filter="url(#${f(i,"layout-filter")})">
|
|
290
291
|
<mask
|
|
291
|
-
id="${
|
|
292
|
+
id="${f(i,"layout-mask")}"
|
|
292
293
|
style="mask-type: alpha"
|
|
293
294
|
maskUnits="userSpaceOnUse"
|
|
294
295
|
x="4"
|
|
@@ -299,16 +300,16 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
299
300
|
d="M4 14C4 7.37258 9.37258 2 16 2H212C218.627 2 224 7.37258 224 14V240C224 246.627 218.627 252 212 252H16C9.37258 252 4 246.627 4 240V14Z"
|
|
300
301
|
fill="#7D37D7" />
|
|
301
302
|
</mask>
|
|
302
|
-
<g mask="url(#${
|
|
303
|
-
<rect x="4" y="2" width="220" height="250" rx="12" fill="url(#${
|
|
303
|
+
<g mask="url(#${f(i,"layout-mask")})">
|
|
304
|
+
<rect x="4" y="2" width="220" height="250" rx="12" fill="url(#${f(i,"header-paint")})" />
|
|
304
305
|
<rect x="4.5" y="2.5" width="219" height="249" rx="11.5" stroke="black" stroke-opacity="0.08" />
|
|
305
306
|
<rect x="4" y="2" width="220" height="125" fill="none" />
|
|
306
|
-
<rect x="4" y="127" width="220" height="125" fill="url(#${
|
|
307
|
+
<rect x="4" y="127" width="220" height="125" fill="url(#${f(i,"footer-paint")})" />
|
|
307
308
|
</g>
|
|
308
309
|
</g>
|
|
309
310
|
<defs>
|
|
310
311
|
<filter
|
|
311
|
-
id="${
|
|
312
|
+
id="${f(i,"layout-filter")}"
|
|
312
313
|
x="0"
|
|
313
314
|
y="0"
|
|
314
315
|
width="228"
|
|
@@ -329,17 +330,17 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
329
330
|
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1583_54637" result="shape" />
|
|
330
331
|
</filter>
|
|
331
332
|
<linearGradient
|
|
332
|
-
id="${
|
|
333
|
+
id="${f(i,"header-paint")}"
|
|
333
334
|
x1="224"
|
|
334
335
|
y1="252"
|
|
335
336
|
x2="46.7372"
|
|
336
337
|
y2="-25.3178"
|
|
337
338
|
gradientUnits="userSpaceOnUse">
|
|
338
|
-
<stop stop-color="${
|
|
339
|
-
<stop offset="1" stop-color="${
|
|
339
|
+
<stop stop-color="${r.start}" />
|
|
340
|
+
<stop offset="1" stop-color="${r.end}" />
|
|
340
341
|
</linearGradient>
|
|
341
342
|
<linearGradient
|
|
342
|
-
id="${
|
|
343
|
+
id="${f(i,"footer-paint")}"
|
|
343
344
|
x1="224"
|
|
344
345
|
y1="157.738"
|
|
345
346
|
x2="1.00001"
|
|
@@ -349,17 +350,17 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
349
350
|
<stop offset="1" stop-color="#272727" />
|
|
350
351
|
</linearGradient>
|
|
351
352
|
</defs>
|
|
352
|
-
${
|
|
353
|
-
</svg>`:e==="app-passport"?(
|
|
354
|
-
width="${
|
|
355
|
-
height="${
|
|
353
|
+
${n}
|
|
354
|
+
</svg>`:e==="app-passport"?(n,a,l)=>`<svg
|
|
355
|
+
width="${a}"
|
|
356
|
+
height="${l}"
|
|
356
357
|
viewBox="0 0 228 258"
|
|
357
358
|
fill="none"
|
|
358
359
|
xmlns="http://www.w3.org/2000/svg"
|
|
359
360
|
xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
360
|
-
<g filter="url(#${
|
|
361
|
+
<g filter="url(#${f(i,"layout-filter")})">
|
|
361
362
|
<mask
|
|
362
|
-
id="${
|
|
363
|
+
id="${f(i,"layout-mask")}"
|
|
363
364
|
style="mask-type: alpha"
|
|
364
365
|
maskUnits="userSpaceOnUse"
|
|
365
366
|
x="4"
|
|
@@ -372,16 +373,16 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
372
373
|
d="M4 14C4 7.37258 9.37258 2 16 2H212C218.627 2 224 7.37258 224 14V115C224 117.209 222.102 118.917 220.164 119.978C217.683 121.336 216 123.972 216 127C216 130.028 217.683 132.664 220.164 134.022C222.102 135.083 224 136.791 224 139V240C224 246.627 218.627 252 212 252H16C9.37258 252 4 246.627 4 240V139C4 136.791 5.89809 135.083 7.83588 134.022C10.3173 132.664 12 130.028 12 127C12 123.972 10.3173 121.336 7.83589 119.978C5.89809 118.917 4 117.209 4 115V14Z"
|
|
373
374
|
fill="#7D37D7" />
|
|
374
375
|
</mask>
|
|
375
|
-
<g mask="url(#${
|
|
376
|
-
<rect x="4" y="2" width="220" height="250" rx="12" fill="url(#${
|
|
376
|
+
<g mask="url(#${f(i,"layout-mask")})">
|
|
377
|
+
<rect x="4" y="2" width="220" height="250" rx="12" fill="url(#${f(i,"header-paint")})" />
|
|
377
378
|
<rect x="4.5" y="2.5" width="219" height="249" rx="11.5" stroke="black" stroke-opacity="0.08" />
|
|
378
379
|
<rect x="4" y="2" width="220" height="125" fill="none" />
|
|
379
|
-
<rect x="4" y="127" width="220" height="125" fill="url(#${
|
|
380
|
+
<rect x="4" y="127" width="220" height="125" fill="url(#${f(i,"footer-paint")})" />
|
|
380
381
|
</g>
|
|
381
382
|
</g>
|
|
382
383
|
<defs>
|
|
383
384
|
<filter
|
|
384
|
-
id="${
|
|
385
|
+
id="${f(i,"layout-filter")}"
|
|
385
386
|
x="0"
|
|
386
387
|
y="0"
|
|
387
388
|
width="228"
|
|
@@ -402,17 +403,17 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
402
403
|
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1583_54471" result="shape" />
|
|
403
404
|
</filter>
|
|
404
405
|
<linearGradient
|
|
405
|
-
id="${
|
|
406
|
+
id="${f(i,"header-paint")}"
|
|
406
407
|
x1="224"
|
|
407
408
|
y1="252"
|
|
408
409
|
x2="46.7372"
|
|
409
410
|
y2="-25.3178"
|
|
410
411
|
gradientUnits="userSpaceOnUse">
|
|
411
|
-
<stop stop-color="${
|
|
412
|
-
<stop offset="1" stop-color="${
|
|
412
|
+
<stop stop-color="${r.start}" />
|
|
413
|
+
<stop offset="1" stop-color="${r.end}" />
|
|
413
414
|
</linearGradient>
|
|
414
415
|
<linearGradient
|
|
415
|
-
id="${
|
|
416
|
+
id="${f(i,"footer-paint")}"
|
|
416
417
|
x1="224"
|
|
417
418
|
y1="157.738"
|
|
418
419
|
x2="1.00001"
|
|
@@ -422,15 +423,15 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
422
423
|
<stop offset="1" stop-color="#272727" />
|
|
423
424
|
</linearGradient>
|
|
424
425
|
</defs>
|
|
425
|
-
${
|
|
426
|
-
</svg>`:e==="app-kyc"?(
|
|
426
|
+
${n}
|
|
427
|
+
</svg>`:e==="app-kyc"?(n,a,l)=>`<svg width="${a}" height="${l}" viewBox="0 0 228 258" fill="none" xmlns="http://www.w3.org/2000/svg"
|
|
427
428
|
xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
428
|
-
<g clip-path="url(#${
|
|
429
|
-
<g clip-path="url(#${
|
|
429
|
+
<g clip-path="url(#${f(i,"border-top")})">
|
|
430
|
+
<g clip-path="url(#${f(i,"border-bottom")})">
|
|
430
431
|
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
431
432
|
d="M224 2H4V127H224V2ZM102 12C99.7909 12 98 13.7909 98 16C98 18.2091 99.7909 20 102 20H126C128.209 20 130 18.2091 130 16C130 13.7909 128.209 12 126 12H102Z"
|
|
432
|
-
style="fill:${
|
|
433
|
-
<g clip-path="url(#${
|
|
433
|
+
style="fill:${r.start};fill-opacity:1;" />
|
|
434
|
+
<g clip-path="url(#${f(i,"header-icon")})">
|
|
434
435
|
<path
|
|
435
436
|
d="M96.5 61C96.5 59.5413 97.0795 58.1424 98.1109 57.1109C99.1424 56.0795 100.541 55.5 102 55.5H104.5C105.952 55.4992 107.345 54.924 108.375 53.9L110.125 52.15C110.636 51.636 111.244 51.2281 111.913 50.9498C112.582 50.6714 113.3 50.5281 114.025 50.5281C114.75 50.5281 115.468 50.6714 116.137 50.9498C116.806 51.2281 117.414 51.636 117.925 52.15L119.675 53.9C120.705 54.925 122.1 55.5 123.55 55.5H126.05C127.509 55.5 128.908 56.0795 129.939 57.1109C130.971 58.1424 131.55 59.5413 131.55 61V63.5C131.55 64.95 132.125 66.345 133.15 67.375L134.9 69.125C135.414 69.6361 135.822 70.2438 136.1 70.9131C136.379 71.5824 136.522 72.3001 136.522 73.025C136.522 73.7499 136.379 74.4676 136.1 75.1369C135.822 75.8062 135.414 76.4139 134.9 76.925L133.15 78.675C132.126 79.7048 131.551 81.0977 131.55 82.55V85.05C131.55 86.5087 130.971 87.9076 129.939 88.9391C128.908 89.9705 127.509 90.55 126.05 90.55H123.55C122.098 90.5508 120.705 91.126 119.675 92.15L117.925 93.9C117.414 94.414 116.806 94.8219 116.137 95.1002C115.468 95.3786 114.75 95.5219 114.025 95.5219C113.3 95.5219 112.582 95.3786 111.913 95.1002C111.244 94.8219 110.636 94.414 110.125 93.9L108.375 92.15C107.345 91.126 105.952 90.5508 104.5 90.55H102C100.541 90.55 99.1424 89.9705 98.1109 88.9391C97.0795 87.9076 96.5 86.5087 96.5 85.05V82.55C96.4992 81.0977 95.924 79.7048 94.9 78.675L93.15 76.925C92.636 76.4139 92.2281 75.8062 91.9498 75.1369C91.6714 74.4676 91.5281 73.7499 91.5281 73.025C91.5281 72.3001 91.6714 71.5824 91.9498 70.9131C92.2281 70.2438 92.636 69.6361 93.15 69.125L94.9 67.375C95.924 66.3452 96.4992 64.9522 96.5 63.5V61Z"
|
|
436
437
|
stroke="white" style="stroke:white;stroke-opacity:1;" stroke-width="3" stroke-linecap="round"
|
|
@@ -439,39 +440,39 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
439
440
|
stroke-linecap="round" stroke-linejoin="round" />
|
|
440
441
|
</g>
|
|
441
442
|
</g>
|
|
442
|
-
<rect width="220" height="125" transform="translate(4 126)" fill="url(#${
|
|
443
|
-
${
|
|
443
|
+
<rect width="220" height="125" transform="translate(4 126)" fill="url(#${f(i,"body-paint")})" style="" />
|
|
444
|
+
${n}
|
|
444
445
|
</g>
|
|
445
446
|
<defs>
|
|
446
|
-
<linearGradient id="${
|
|
447
|
+
<linearGradient id="${f(i,"body-paint")}" x1="220" y1="30.7377" x2="-2.99999" y2="30.7377"
|
|
447
448
|
gradientUnits="userSpaceOnUse">
|
|
448
449
|
<stop stop-color="#101010"
|
|
449
450
|
style="stop-color:#101010;stop-color:color(display-p3 0.0625 0.0625 0.0625);stop-opacity:1;" />
|
|
450
451
|
<stop offset="1" stop-color="#272727"
|
|
451
452
|
style="stop-color:#272727;stop-color:color(display-p3 0.1542 0.1542 0.1542);stop-opacity:1;" />
|
|
452
453
|
</linearGradient>
|
|
453
|
-
<clipPath id="${
|
|
454
|
+
<clipPath id="${f(i,"border-top")}">
|
|
454
455
|
<rect x="4" y="2" width="220" height="250" rx="8" fill="white" style="fill:white;fill-opacity:1;" />
|
|
455
456
|
</clipPath>
|
|
456
|
-
<clipPath id="${
|
|
457
|
+
<clipPath id="${f(i,"border-bottom")}">
|
|
457
458
|
<rect width="220" height="125" fill="white" style="fill:white;fill-opacity:1;" transform="translate(4 2)" />
|
|
458
459
|
</clipPath>
|
|
459
|
-
<clipPath id="${
|
|
460
|
+
<clipPath id="${f(i,"header-icon")}">
|
|
460
461
|
<rect width="60" height="60" fill="white" style="fill:white;fill-opacity:1;" transform="translate(84 43)" />
|
|
461
462
|
</clipPath>
|
|
462
463
|
</defs>
|
|
463
|
-
</svg>`:()=>"",
|
|
464
|
+
</svg>`:()=>"",Xe=(e,i,r)=>{const n=f(i,"header");if(e==="did-space")return`<g id="${n}" transform="translate(90, 42)" width="48" height="47" viewBox="0 0 48 47" fill="none">
|
|
464
465
|
<path
|
|
465
466
|
d="M27.5999 2.53821L31.9962 0H47.9999V46.9586H31.9962L14.7939 37.0269L14.7939 9.93175L16.8325 8.75477L20.4222 10.8272L18.3836 12.0042V34.9544L32.9581 43.369H44.4103V3.58962H32.9581L31.1896 4.61068L27.5999 2.53821Z"
|
|
466
|
-
fill="url(#${
|
|
467
|
+
fill="url(#${f(i,"space-gradient1")})" />
|
|
467
468
|
<path
|
|
468
469
|
fill-rule="evenodd"
|
|
469
470
|
clip-rule="evenodd"
|
|
470
471
|
d="M29.6164 34.9544V12.0042L15.0419 3.58962H3.58962V43.369H15.0419L16.8159 42.3448L20.4055 44.4173L16.0037 46.9586H0V0H16.0037L33.206 9.93175V37.0269L31.1729 38.2007L27.5833 36.1282L29.6164 34.9544Z"
|
|
471
|
-
fill="url(#${
|
|
472
|
+
fill="url(#${f(i,"space-gradient2")})" />
|
|
472
473
|
<defs>
|
|
473
474
|
<linearGradient
|
|
474
|
-
id="${
|
|
475
|
+
id="${f(i,"space-gradient1")}"
|
|
475
476
|
x1="31.3969"
|
|
476
477
|
y1="0"
|
|
477
478
|
x2="31.3969"
|
|
@@ -481,7 +482,7 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
481
482
|
<stop offset="1" stop-color="white" />
|
|
482
483
|
</linearGradient>
|
|
483
484
|
<linearGradient
|
|
484
|
-
id="${
|
|
485
|
+
id="${f(i,"space-gradient2")}"
|
|
485
486
|
x1="16.603"
|
|
486
487
|
y1="0"
|
|
487
488
|
x2="16.603"
|
|
@@ -491,7 +492,7 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
491
492
|
<stop offset="1" stop-color="white" stop-opacity="0.4" />
|
|
492
493
|
</linearGradient>
|
|
493
494
|
</defs>
|
|
494
|
-
</g>`;if(e==="app-purchase")return`<g id="${
|
|
495
|
+
</g>`;if(e==="app-purchase")return`<g id="${n}" transform="translate(90, 42)" width="47" height="48" viewBox="0 0 47 48" fill="none">
|
|
495
496
|
<path
|
|
496
497
|
opacity="0.6"
|
|
497
498
|
fill-rule="evenodd"
|
|
@@ -508,7 +509,7 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
508
509
|
clip-rule="evenodd"
|
|
509
510
|
d="M15.9236 25.8547V19.5111H22.2671V25.8547H15.9236ZM28.3539 19.5111H30.2908V21.448C30.2908 23.8817 28.3179 25.8547 25.8842 25.8547H23.9473V23.9177C23.9473 21.484 25.9202 19.5111 28.3539 19.5111ZM15.9236 33.8523H22.2671V27.5088H15.9236V33.8523ZM23.9473 33.8523V27.5088H30.2908V33.8523H23.9473Z"
|
|
510
511
|
fill="white" />
|
|
511
|
-
</g>`;if(e==="app-space")return`<g id="${
|
|
512
|
+
</g>`;if(e==="app-space")return`<g id="${n}" transform="translate(90, 42)" width="48" height="48" viewBox="0 0 48 48" fill="none">
|
|
512
513
|
<path
|
|
513
514
|
fill-rule="evenodd"
|
|
514
515
|
clip-rule="evenodd"
|
|
@@ -519,39 +520,39 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
519
520
|
clip-rule="evenodd"
|
|
520
521
|
d="M37.6141 18.623L23.7901 10.6417L9.96606 18.623V34.5856L23.7901 42.5669L37.6141 34.5856V18.623ZM11.4061 19.4544L23.7901 12.3045L36.1741 19.4544V33.7542L23.7901 40.9041L11.4061 33.7542V19.4544ZM21.4098 17.2848C21.4981 16.9757 21.7806 16.7626 22.1021 16.7626H25.478C25.7995 16.7626 26.082 16.9757 26.1703 17.2848L26.8128 19.5335L28.4022 20.4511L30.6709 19.8832C30.9827 19.8051 31.3085 19.9432 31.4693 20.2216L33.1572 23.1453C33.318 23.4237 33.2747 23.7749 33.0511 24.0059L31.4249 25.6867V27.5219L33.0511 29.2027C33.2747 29.4337 33.318 29.7849 33.1572 30.0633L31.4693 32.987C31.3085 33.2654 30.9827 33.4035 30.6709 33.3254L28.4022 32.7575L26.8128 33.6751L26.1703 35.9238C26.082 36.2329 25.7995 36.446 25.478 36.446H22.1021C21.7806 36.446 21.4981 36.2329 21.4098 35.9238L20.7673 33.6751L19.1779 32.7575L16.9093 33.3254C16.5974 33.4035 16.2716 33.2654 16.1109 32.987L14.4229 30.0633C14.2622 29.7849 14.3055 29.4337 14.529 29.2027L16.1552 27.5219V25.6867L14.529 24.0059C14.3055 23.7749 14.2622 23.4237 14.4229 23.1453L16.1109 20.2216C16.2716 19.9432 16.5974 19.8051 16.9093 19.8832L19.1779 20.4511L20.7673 19.5335L21.4098 17.2848ZM21.7396 20.6349C21.9014 20.5415 22.0205 20.3888 22.0719 20.2092L22.6452 18.2026H24.9349L25.5083 20.2092C25.5596 20.3888 25.6787 20.5415 25.8406 20.6349L27.9345 21.8438C28.0963 21.9373 28.2881 21.9641 28.4693 21.9187L30.4937 21.4119L31.6386 23.3949L30.1875 24.8947C30.0576 25.029 29.9849 25.2085 29.9849 25.3954V27.8132C29.9849 28.0001 30.0576 28.1796 30.1875 28.3139L31.6386 29.8137L30.4937 31.7967L28.4693 31.2899C28.2881 31.2445 28.0963 31.2713 27.9345 31.3648L25.8406 32.5737C25.6787 32.6671 25.5596 32.8198 25.5083 32.9994L24.9349 35.006H22.6452L22.0719 32.9994C22.0205 32.8198 21.9014 32.6671 21.7396 32.5737L19.6457 31.3648C19.4839 31.2713 19.2921 31.2445 19.1108 31.2899L17.0864 31.7967L15.9415 29.8137L17.3926 28.3139C17.5226 28.1796 17.5952 28.0001 17.5952 27.8132V25.3954C17.5952 25.2085 17.5226 25.029 17.3926 24.8947L15.9415 23.3949L17.0864 21.4119L19.1108 21.9187C19.2921 21.9641 19.4839 21.9373 19.6457 21.8438L21.7396 20.6349ZM23.7901 31.2306C21.2351 31.2306 19.1638 29.1593 19.1638 26.6043C19.1638 24.0493 21.2351 21.9781 23.7901 21.9781C26.3451 21.9781 28.4163 24.0493 28.4163 26.6043C28.4163 29.1593 26.3451 31.2306 23.7901 31.2306ZM26.9763 26.6043C26.9763 28.364 25.5498 29.7906 23.7901 29.7906C22.0303 29.7906 20.6038 28.364 20.6038 26.6043C20.6038 24.8446 22.0303 23.418 23.7901 23.418C25.5498 23.418 26.9763 24.8446 26.9763 26.6043Z"
|
|
521
522
|
fill="white" />
|
|
522
|
-
</g>`;if(e==="app-passport"){const
|
|
523
|
+
</g>`;if(e==="app-passport"){const a=f(i,"passport-avatar-mask");return r.icon?`<g id="${n}" transform="translate(0, 30)" width="228" height="70" viewBox="0 0 228 70">
|
|
523
524
|
<defs>
|
|
524
|
-
<clipPath id="${
|
|
525
|
+
<clipPath id="${a}">
|
|
525
526
|
<circle cx="114" cy="20" r="20" fill="#FFFFFF" />
|
|
526
527
|
</clipPath>
|
|
527
528
|
</defs>
|
|
528
|
-
<image xlink:href="${
|
|
529
|
-
<text x="50%" y="55" width="228" font-size="14" fill="#FFFFFF" text-anchor="middle" dominant-baseline="middle" font-family="Helvetica, Arial, sans-serif">${
|
|
530
|
-
</g>`:`<g id="${
|
|
529
|
+
<image xlink:href="${r.icon}" x="94" y="0" width="40" height="40" clip-path="url(#${a})" />
|
|
530
|
+
<text x="50%" y="55" width="228" font-size="14" fill="#FFFFFF" text-anchor="middle" dominant-baseline="middle" font-family="Helvetica, Arial, sans-serif">${r.name}</text>
|
|
531
|
+
</g>`:`<g id="${n}" transform="translate(0, 30)" width="228" height="70" viewBox="0 0 228 70">
|
|
531
532
|
<circle cx="114" cy="15" r="20" fill="#D9D9D9"/>
|
|
532
|
-
<text x="50%" y="55" width="228" font-size="14" fill="#FFFFFF" text-anchor="middle" dominant-baseline="middle" font-family="Helvetica, Arial, sans-serif">${
|
|
533
|
-
</g>`}return e==="app-kyc"?`<g id="${
|
|
534
|
-
<circle cx="12" cy="12" r="12" fill="url(#${
|
|
533
|
+
<text x="50%" y="55" width="228" font-size="14" fill="#FFFFFF" text-anchor="middle" dominant-baseline="middle" font-family="Helvetica, Arial, sans-serif">${r.name}</text>
|
|
534
|
+
</g>`}return e==="app-kyc"?`<g id="${f(i,"holder")}" transform="translate(24, 151)" width="180" height="24">
|
|
535
|
+
<circle cx="12" cy="12" r="12" fill="url(#${f(i,"holder-image")})" />
|
|
535
536
|
<foreignObject x="32" y="0" width="156" height="24">
|
|
536
537
|
<div
|
|
537
538
|
xmlns="http://www.w3.org/1999/xhtml"
|
|
538
539
|
style="font-size: 18px; line-height: 24px; color: #FFFFFF; text-overflow: ellipsis; overflow: hidden; white-space: nowrap;"
|
|
539
540
|
>
|
|
540
|
-
${
|
|
541
|
+
${r.name}
|
|
541
542
|
</div>
|
|
542
543
|
</foreignObject>
|
|
543
544
|
<defs>
|
|
544
|
-
<pattern id="${
|
|
545
|
+
<pattern id="${f(i,"holder-image")}" width="24" height="24" patternUnits="userSpaceOnUse">
|
|
545
546
|
<image
|
|
546
|
-
xlink:href="${
|
|
547
|
+
xlink:href="${r.icon}"
|
|
547
548
|
x="0"
|
|
548
549
|
y="0"
|
|
549
550
|
width="24"
|
|
550
551
|
height="24" />
|
|
551
552
|
</pattern>
|
|
552
553
|
</defs>
|
|
553
|
-
</g>`:""},
|
|
554
|
-
<g id="${
|
|
554
|
+
</g>`:""},Ye=(e,i,r,n=12)=>{const a=r==="app-kyc"?188:151;return r==="app-kyc"?`<g id="${f(i,"issuer")}" transform="translate(24, ${a})" width="180" height="14">
|
|
555
|
+
<g id="${f(i,"issuer-badge")}">
|
|
555
556
|
<path
|
|
556
557
|
d="M11.3727 8.65674L12.5195 10.6436C12.5667 10.7254 12.5933 10.8174 12.5972 10.9118C12.601 11.0061 12.5818 11.1 12.5414 11.1854C12.501 11.2707 12.4404 11.345 12.365 11.4018C12.2895 11.4586 12.2014 11.4963 12.1083 11.5116L12.0423 11.518L11.977 11.5174L10.2661 11.4066L9.506 12.9442C9.46474 13.0275 9.4042 13.0997 9.32941 13.1549C9.25463 13.21 9.16775 13.2465 9.07602 13.2614C8.98428 13.2762 8.89033 13.2689 8.80198 13.2402C8.71362 13.2114 8.6334 13.1619 8.568 13.0959L8.52017 13.0411L8.47817 12.9769L7.33017 10.9895C8.13831 10.939 8.92378 10.7021 9.6251 10.2974C10.3264 9.89269 10.9246 9.33115 11.3727 8.65674Z"
|
|
557
558
|
style="fill:white;fill-opacity:1;" />
|
|
@@ -565,23 +566,23 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
565
566
|
<foreignObject x="18" y="-2" width="156" height="18">
|
|
566
567
|
<div
|
|
567
568
|
xmlns="http://www.w3.org/1999/xhtml"
|
|
568
|
-
style="font-size: ${
|
|
569
|
+
style="font-size: ${n}px; line-height: 18px; color: #D1D1D1; text-overflow: ellipsis; overflow: hidden; white-space: nowrap;"
|
|
569
570
|
>
|
|
570
571
|
${e.name}
|
|
571
572
|
</div>
|
|
572
573
|
</foreignObject>
|
|
573
|
-
</g>`:e.icon?`<g id="${
|
|
574
|
-
<rect x="0" y="0" width="14" height="14" rx="2" fill="url(#${
|
|
574
|
+
</g>`:e.icon?`<g id="${f(i,"issuer")}" transform="translate(24, ${a})" width="180" height="14">
|
|
575
|
+
<rect x="0" y="0" width="14" height="14" rx="2" fill="url(#${f(i,"issuer-image")})" />
|
|
575
576
|
<foreignObject x="20" y="-2" width="156" height="18">
|
|
576
577
|
<div
|
|
577
578
|
xmlns="http://www.w3.org/1999/xhtml"
|
|
578
|
-
style="font-size: ${
|
|
579
|
+
style="font-size: ${n}px; line-height: 18px; color: #D1D1D1; text-overflow: ellipsis; overflow: hidden; white-space: nowrap;"
|
|
579
580
|
>
|
|
580
581
|
${e.name}
|
|
581
582
|
</div>
|
|
582
583
|
</foreignObject>
|
|
583
584
|
<defs>
|
|
584
|
-
<pattern id="${
|
|
585
|
+
<pattern id="${f(i,"issuer-image")}" width="14" height="14" patternUnits="userSpaceOnUse">
|
|
585
586
|
<image
|
|
586
587
|
xlink:href="${e.icon}"
|
|
587
588
|
x="0"
|
|
@@ -590,18 +591,18 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
590
591
|
height="14" />
|
|
591
592
|
</pattern>
|
|
592
593
|
</defs>
|
|
593
|
-
</g>`:`<g id="${
|
|
594
|
+
</g>`:`<g id="${f(i,"issuer")}" transform="translate(24, ${a})" width="180" height="14">
|
|
594
595
|
<rect x="0" y="0" width="14" height="14" rx="2" fill="#6D6D6D"/>
|
|
595
596
|
<foreignObject x="0" y="-2" width="176" height="18">
|
|
596
597
|
<div
|
|
597
598
|
xmlns="http://www.w3.org/1999/xhtml"
|
|
598
|
-
style="font-size: ${
|
|
599
|
+
style="font-size: ${n}px; line-height: 18px; color: #D1D1D1; text-overflow: ellipsis; overflow: hidden; white-space: nowrap;"
|
|
599
600
|
>
|
|
600
601
|
${e.name}
|
|
601
602
|
</div>
|
|
602
603
|
</foreignObject>
|
|
603
|
-
</g>`},
|
|
604
|
-
<g id="${
|
|
604
|
+
</g>`},Qe=(e,i,r,n=12)=>{const a=r==="app-kyc"?211:181;return r==="app-kyc"&&e.key==="email"?`<g id="${f(i,"extra")}" transform="translate(24, ${a})" width="180" height="15">
|
|
605
|
+
<g id="${f(i,"extra-badge")}">
|
|
605
606
|
<path
|
|
606
607
|
d="M12.8333 4.89545V10.4167C12.8334 10.8631 12.6628 11.2926 12.3566 11.6173C12.0504 11.9421 11.6316 12.1376 11.186 12.1638L11.0833 12.1667H2.91666C2.47029 12.1667 2.04078 11.9962 1.71601 11.6899C1.39124 11.3837 1.19577 10.965 1.16958 10.5194L1.16666 10.4167V4.89545L6.67625 8.5687L6.74391 8.6072C6.82366 8.64616 6.91124 8.66641 7 8.66641C7.08875 8.66641 7.17634 8.64616 7.25608 8.6072L7.32375 8.5687L12.8333 4.89545Z"
|
|
607
608
|
style="fill:white;fill-opacity:1;" />
|
|
@@ -612,7 +613,7 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
612
613
|
<text
|
|
613
614
|
x="18"
|
|
614
615
|
y="8"
|
|
615
|
-
font-size="${
|
|
616
|
+
font-size="${n}"
|
|
616
617
|
font-family="Helvetica, Arial, sans-serif"
|
|
617
618
|
fill="#D1D1D1"
|
|
618
619
|
text-anchor="start"
|
|
@@ -620,11 +621,11 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
620
621
|
dominant-baseline="middle">
|
|
621
622
|
${e.value}
|
|
622
623
|
</text>
|
|
623
|
-
</g>`:`<g id="${
|
|
624
|
+
</g>`:`<g id="${f(i,"extra")}" transform="translate(24, ${a})" width="180" height="14">
|
|
624
625
|
<text
|
|
625
626
|
x="0"
|
|
626
627
|
y="8"
|
|
627
|
-
font-size="${
|
|
628
|
+
font-size="${n}"
|
|
628
629
|
font-family="Helvetica, Arial, sans-serif"
|
|
629
630
|
fill="#D1D1D1"
|
|
630
631
|
text-anchor="start"
|
|
@@ -634,7 +635,7 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
634
635
|
<tspan
|
|
635
636
|
dx="${e.key.length?4:0}"
|
|
636
637
|
dy="0"
|
|
637
|
-
font-size="${
|
|
638
|
+
font-size="${n}"
|
|
638
639
|
font-family="Helvetica, Arial, sans-serif"
|
|
639
640
|
fill="#FFFFFF"
|
|
640
641
|
text-anchor="start"
|
|
@@ -643,48 +644,48 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
643
644
|
${e.value}
|
|
644
645
|
</tspan>
|
|
645
646
|
</text>
|
|
646
|
-
</g>`},
|
|
647
|
+
</g>`},e1=(e,i,r=10)=>{const n=e.replace("did:abt:",""),a=Dt(n),l=a?Nt(n):ht(n).color,s=`<g id="${f(i,"did-prefix")}" transform="translate(24, 210)" height="14">
|
|
647
648
|
<text
|
|
648
649
|
x="0"
|
|
649
650
|
y="8"
|
|
650
|
-
font-size="${
|
|
651
|
+
font-size="${r}"
|
|
651
652
|
font-family="Helvetica, Arial, sans-serif"
|
|
652
|
-
fill="${
|
|
653
|
+
fill="${l}"
|
|
653
654
|
text-anchor="start"
|
|
654
655
|
alignment-baseline="middle"
|
|
655
656
|
dominant-baseline="middle">
|
|
656
657
|
DID:<tspan
|
|
657
658
|
dx="0"
|
|
658
659
|
dy="0"
|
|
659
|
-
font-size="${
|
|
660
|
+
font-size="${r}"
|
|
660
661
|
font-family="Helvetica, Arial, sans-serif"
|
|
661
662
|
fill="#D1D1D1"
|
|
662
663
|
text-anchor="start"
|
|
663
664
|
alignment-baseline="middle"
|
|
664
665
|
dominant-baseline="middle">ABT:</tspan>
|
|
665
666
|
</text>
|
|
666
|
-
</g>`;let
|
|
667
|
+
</g>`;let p="";a===!1&&(p=pt(n).replace("<svg ",`<g id="${f(i,"did-motif")}" transform="translate(67, 211) scale(0.12, 0.12)" width="12" height="12" `).replace("</svg>","</g>"));const h=`<g id="${f(i,"did-suffix")}" transform="translate(${a?67:80}, 210)" height="14">
|
|
667
668
|
<text
|
|
668
669
|
x="0"
|
|
669
670
|
y="8"
|
|
670
|
-
font-size="${
|
|
671
|
+
font-size="${r}"
|
|
671
672
|
font-family="monospace, Arial, sans-serif"
|
|
672
673
|
fill="#D1D1D1"
|
|
673
674
|
text-anchor="start"
|
|
674
675
|
alignment-baseline="middle"
|
|
675
676
|
dominant-baseline="middle">
|
|
676
|
-
${
|
|
677
|
+
${We(n)}
|
|
677
678
|
</text>
|
|
678
|
-
</g>`;return[
|
|
679
|
+
</g>`;return[s,p,h].filter(Boolean).join("")},t1=e=>`<g id="${f(e,"verifiable-badge")}" transform="translate(189, 206)" width="22" height="22" viewBox="0 0 22 22" fill="none">
|
|
679
680
|
<path
|
|
680
681
|
fill-rule="evenodd"
|
|
681
682
|
clip-rule="evenodd"
|
|
682
683
|
d="M9.32218 0.226122L10.6305 0.0488281L10.6849 0.437063L9.84501 0.550946L9.90971 1.03495L10.6267 0.937887L10.6797 1.32612L9.96277 1.42318L10.0715 2.22942L9.60301 2.29283L9.32218 0.226122ZM7.90771 0.615652L7.46254 0.776122L8.17301 2.74448L8.61818 2.584L7.90771 0.615652ZM4.86783 2.18153L5.50065 1.77259C5.87336 1.53189 6.26289 1.46459 6.53595 1.88259C6.71202 2.15212 6.68901 2.3969 6.55052 2.60097L7.39783 3.04471L6.95265 3.32553L6.20681 2.91365L5.99371 3.04989L6.40265 3.68271L6.00536 3.94153L4.86783 2.18153ZM5.98983 2.60342C6.19948 2.474 6.24865 2.30706 6.14254 2.13365C6.03642 1.96024 5.88371 1.97448 5.67148 2.10906L5.4683 2.23848L5.78665 2.73153L5.98983 2.60342ZM3.72771 3.16506L2.85289 4.14083L4.40971 5.53848L5.30654 4.52906L5.01148 4.27024L4.43042 4.9173L4.07195 4.59248L4.54689 4.06189L4.25183 3.80306L3.7756 4.33495L3.46371 4.04765L4.02277 3.42389L3.72771 3.16506ZM1.27018 6.79765L1.49795 6.35118L2.48018 6.57118C2.5982 6.59558 2.70984 6.62299 2.82194 6.65053L2.82197 6.65053L2.82199 6.65054C2.9299 6.67704 3.03825 6.70365 3.15313 6.72777V6.71612C3.06117 6.63161 2.97134 6.55416 2.88178 6.47695L2.88178 6.47694L2.88177 6.47694L2.88177 6.47693C2.79991 6.40636 2.71829 6.33598 2.63548 6.26059L1.87971 5.598L2.09971 5.16706L3.67465 6.68118L3.41583 7.18718L1.27018 6.79765ZM12.0668 13.0321V8.62819L9.27011 7.0135H7.07252V14.6468H9.27011L9.61052 14.4503L10.2993 14.848L9.45467 15.3356H6.3837V6.32468H9.45467L12.7556 8.2305V13.4298L12.3655 13.6551L11.6767 13.2574L12.0668 13.0321ZM11.6799 6.81176L12.5235 6.3247H15.5945V15.3356H12.7914C12.6159 15.3356 12.4435 15.2894 12.2914 15.2017L9.22253 13.4298V8.23051L9.61372 8.00466L10.3025 8.40235L9.91135 8.6282V13.0321L12.7081 14.6468H14.9057V7.01351H12.7081L12.3687 7.20944L11.6799 6.81176ZM3.02371 13.5788C2.87489 13.0612 2.35465 12.7364 1.68042 12.9318C0.997126 13.1311 0.765479 13.6642 0.915596 14.1832C0.949598 14.3085 1.01116 14.4247 1.09579 14.5232C1.18042 14.6217 1.28599 14.7001 1.40477 14.7526L1.62089 14.4174C1.54869 14.3853 1.48413 14.3383 1.43148 14.2794C1.37883 14.2205 1.33929 14.1511 1.31548 14.0758C1.23007 13.7807 1.42418 13.5115 1.83313 13.3925C2.24207 13.2734 2.55007 13.4222 2.6303 13.7005C2.64794 13.7684 2.65199 13.8392 2.64222 13.9087C2.63245 13.9782 2.60905 14.0451 2.57336 14.1055L2.9383 14.266C2.99751 14.1629 3.03556 14.049 3.05022 13.931C3.06489 13.813 3.05588 13.6933 3.02371 13.5788ZM3.50642 14.9351L3.90889 15.5821C4.14571 15.9626 4.20654 16.3586 3.77948 16.6174C3.50841 16.7817 3.2655 16.7593 3.06364 16.6238L2.59795 17.478L2.31583 17.0238L2.74969 16.2773L2.6083 16.0506L1.96124 16.4518L1.71148 16.0467L3.50642 14.9351ZM3.06124 16.0635C3.19065 16.2771 3.3563 16.334 3.5336 16.2253C3.71089 16.1166 3.69795 15.9665 3.56595 15.7491L3.43654 15.542L2.93183 15.8552L3.06124 16.0635ZM5.8863 17.8404L4.91571 16.9345L3.47536 18.4861L4.46795 19.4114L4.74877 19.1086L4.10171 18.5094L4.4343 18.1522L4.96101 18.644L5.23407 18.3502L4.70736 17.8585L4.99465 17.5531L5.61324 18.1315L5.8863 17.8404ZM6.62136 18.3761L7.15065 18.6531C7.72265 18.9507 7.94265 19.4295 7.60748 20.0766C7.2723 20.7237 6.7443 20.8285 6.1956 20.5425L5.64301 20.2539L6.62136 18.3761ZM6.32501 20.1711C6.64207 20.3367 6.93842 20.2927 7.17266 19.8449C7.40689 19.3972 7.26454 19.1448 6.94748 18.9792L6.86595 18.9365L6.24477 20.1284L6.32501 20.1711ZM10.2061 19.6871L8.91195 19.4114L8.47324 21.4678L9.79971 21.7499L9.88383 21.3617L9.02324 21.1818L9.12418 20.7055L9.82948 20.8557L9.9123 20.4674L9.2083 20.3173L9.29501 19.898L10.1232 20.0753L10.2061 19.6871ZM11.1119 19.7647L11.6011 19.7337L12.2171 20.7482L12.4552 21.1986H12.4682C12.4606 21.152 12.452 21.1022 12.443 21.0501L12.443 21.0501C12.4093 20.8548 12.3704 20.6292 12.3582 20.4351L12.3116 19.6897L12.7658 19.6612L12.8952 21.7706L12.4061 21.8017L11.7901 20.7845L11.5519 20.3367H11.539C11.5471 20.3861 11.5559 20.4378 11.5651 20.491L11.5651 20.4913C11.5986 20.6862 11.6355 20.9012 11.6477 21.0964L11.6956 21.8457L11.2414 21.8741L11.1119 19.7647ZM13.6704 19.8812L14.2191 19.6871L14.7924 21.3034L15.2428 21.1442L14.6721 19.5279L15.2234 19.3351L15.0939 18.9572L13.541 19.5033L13.6704 19.8812ZM15.8031 18.5431L16.2095 18.292L17.3224 20.0882L16.9161 20.3393L15.8031 18.5431ZM17.7132 17.0458L17.303 17.4444L18.2956 19.4244L18.6489 19.084L18.3941 18.6348L18.8557 18.1822L19.2985 18.4525L19.6622 18.1005L17.7132 17.0458ZM18.5275 17.9818L18.3551 17.8766C18.2405 17.8103 18.1169 17.7327 17.9943 17.6557C17.9135 17.605 17.8331 17.5546 17.7559 17.5078L17.7469 17.5168L17.7557 17.5312C17.8724 17.7228 18.0005 17.9331 18.1028 18.1212L18.2027 18.2974L18.5275 17.9818ZM18.5932 16.0066L18.8417 15.5989L20.3041 16.4906L20.7389 15.7788L21.0805 15.9872L20.3972 17.1079L18.5932 16.0066ZM21.1038 14.4304L21.3381 14.7888C21.5849 14.64 21.7682 14.4055 21.8531 14.1301C21.9994 13.6474 21.7936 13.2799 21.4584 13.1777C21.1737 13.0897 20.9602 13.1945 20.7855 13.4106L20.603 13.6371C20.4788 13.7924 20.3843 13.9075 20.2691 13.8726C20.1539 13.8377 20.119 13.7173 20.1669 13.5594C20.2163 13.4062 20.3174 13.275 20.4529 13.188L20.2355 12.8697C20.0129 12.992 19.8467 13.1963 19.7722 13.4391C19.6492 13.8622 19.8252 14.244 20.1604 14.3449C20.2839 14.3807 20.4155 14.3768 20.5367 14.3339C20.6579 14.2909 20.7625 14.2111 20.8359 14.1055L21.0275 13.8726L21.0309 13.8685C21.1558 13.7168 21.2382 13.6167 21.3575 13.6539C21.4778 13.6914 21.5244 13.8066 21.4662 13.9981C21.3986 14.1796 21.2707 14.3322 21.1038 14.4304ZM12.4255 0.0967106L11.9544 0.0617694L11.7991 2.14789L12.2715 2.18283L12.4255 0.0967106ZM14.2592 0.430593L14.8015 0.593652L14.8248 2.79365L14.3459 2.64871L14.3668 2.12973L13.7601 1.9465L13.4879 2.39377L13.0259 2.254L14.2592 0.430593ZM14.3899 1.55518L14.3822 1.74864L13.9585 1.62052L14.0574 1.45812C14.166 1.28796 14.2813 1.08628 14.3877 0.900319L14.3877 0.900299L14.4107 0.86024H14.4223C14.4189 0.944179 14.4136 1.03189 14.4082 1.12017L14.4082 1.12021C14.3991 1.26873 14.3899 1.41883 14.3899 1.55518ZM17.2008 1.74024L16.5964 1.352L15.4757 3.12236L16.1305 3.53906C16.5136 3.78236 16.9199 3.81471 17.1477 3.45495C17.2142 3.36233 17.2452 3.24887 17.235 3.1353C17.2248 3.02172 17.1741 2.91561 17.0921 2.83636L17.0998 2.826C17.193 2.83723 17.2874 2.82105 17.3716 2.77945C17.4557 2.73785 17.5258 2.67263 17.5735 2.59177C17.7883 2.25789 17.567 1.97318 17.2008 1.74024ZM16.7737 3.17671C16.6728 3.33459 16.511 3.34236 16.2936 3.20518L16.0645 3.06283L16.3544 2.6073L16.5822 2.74836C16.8022 2.88812 16.8747 3.01883 16.7737 3.17671ZM17.1464 2.39506C17.0649 2.52448 16.9264 2.55812 16.7336 2.42871L16.5408 2.30965L16.7996 1.91106L16.9898 2.03142C17.1762 2.14918 17.2279 2.26565 17.1464 2.39506ZM18.9918 3.13271L19.3115 3.48083L18.064 4.62871L18.6243 5.23565L18.3318 5.50483L17.4518 4.54977L18.9918 3.13271ZM21.2928 6.38612L20.6729 5.23177L18.8262 6.22177L19.4603 7.40459L19.8149 7.21695L19.4034 6.45083L19.8278 6.22306L20.1643 6.85071L20.5137 6.66306L20.1772 6.03542L20.5474 5.83612L20.9434 6.57377L21.2928 6.38612Z"
|
|
683
|
-
fill="url(#${
|
|
684
|
+
fill="url(#${f(e,"badge-gradient")})"
|
|
684
685
|
/>
|
|
685
686
|
<defs>
|
|
686
687
|
<radialGradient
|
|
687
|
-
id="${
|
|
688
|
+
id="${f(e,"badge-gradient")}"
|
|
688
689
|
cx="0"
|
|
689
690
|
cy="0"
|
|
690
691
|
r="1"
|
|
@@ -696,7 +697,7 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
696
697
|
<stop offset="1" stop-color="#94F0BA" />
|
|
697
698
|
</radialGradient>
|
|
698
699
|
</defs>
|
|
699
|
-
</g>`,
|
|
700
|
+
</g>`,i1=(e,i,r)=>{const n=f(r,"chain-badge"),a=i?189:162;return e==="ethereum"?`<g id="${n}" transform="translate(${a}, 205)" width="24" height="24" viewBox="0 0 24 24">
|
|
700
701
|
<defs>
|
|
701
702
|
<style>
|
|
702
703
|
.cls-1,
|
|
@@ -778,7 +779,7 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
778
779
|
</g>
|
|
779
780
|
<path class="cls-3" d="M15,12.09l-3,1.82L9,12.09,12,7Zm-3,2.4L9,12.68,12,17l3-4.32Z" />
|
|
780
781
|
</g>
|
|
781
|
-
</g>`:e==="arcblock"?`<g id="${
|
|
782
|
+
</g>`:e==="arcblock"?`<g id="${n}" transform="translate(${a}, 205)" width="24" height="24" viewBox="0 0 24 24">
|
|
782
783
|
<defs>
|
|
783
784
|
<style>
|
|
784
785
|
.cls-1 {
|
|
@@ -881,25 +882,25 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
881
882
|
/>
|
|
882
883
|
</g>
|
|
883
884
|
</g>
|
|
884
|
-
</g>`:""},
|
|
885
|
-
<rect x="60" y="0" width="95" height="30" stroke="${
|
|
885
|
+
</g>`:""},r1=(e,i,r)=>{const n=e?t1(r):"",a=i1(i,!e,r);return[n,a].filter(Boolean).join("")},n1=(e,i,r)=>{const n={success:"#34BE74",error:"#F16E6E",info:"#0775F8",warning:"#DE9E37"};if(e){const a=f(r,"tag-distort");return`<g id="${f(r,"tag")}" transform="translate(112,-36) rotate(45)">
|
|
886
|
+
<rect x="60" y="0" width="95" height="30" stroke="${n[i]}" stroke-width="2" />
|
|
886
887
|
<text
|
|
887
888
|
x="104"
|
|
888
889
|
y="12"
|
|
889
890
|
font-size="14"
|
|
890
891
|
font-weight="bold"
|
|
891
892
|
font-family="Helvetica, Arial, sans-serif"
|
|
892
|
-
fill="${
|
|
893
|
+
fill="${n[i]}"
|
|
893
894
|
text-anchor="middle"
|
|
894
895
|
alignment-baseline="middle"
|
|
895
|
-
dominant-baseline="middle" filter="url(#${
|
|
896
|
+
dominant-baseline="middle" filter="url(#${a})">${e.toUpperCase()}</text>
|
|
896
897
|
<defs>
|
|
897
|
-
<filter id="${
|
|
898
|
+
<filter id="${a}">
|
|
898
899
|
<feTurbulence baseFrequency="0.01 0.01" numOctaves="1" result="noise" />
|
|
899
900
|
<feDisplacementMap in="SourceGraphic" in2="noise" scale="10" xChannelSelector="R" yChannelSelector="R" />
|
|
900
901
|
</filter>
|
|
901
902
|
</defs>
|
|
902
|
-
</g>`}return""},
|
|
903
|
+
</g>`}return""},a1=(e=8)=>[...Array(e)].map(()=>Math.random().toString(36)[2]).join(""),Pt=e=>{const i=e.id||a1(8),r=e.width||Zt,n=e.height||At,a=e.color||ne[e.variant]||ne["app-passport"],l=Je(e.variant,i,a),s=Xe(e.variant,i,e.header),p=Ye(e.issuer,i,e.variant),h=Qe(e.extra,i,e.variant),g=r1(e.verifiable,e.chain,i),d=e.variant!=="app-kyc"?e1(e.did,i):"",m=n1(e.tag,e.tagVariant,i);return l([s,p,h,g,d,m].filter(Boolean).join(""),r,n)},y2=Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_COLORS:ne,MOTIF_COLORS:ge,formatDid:We,getBadgesSvg:r1,getChainBadge:i1,getDidSvg:e1,getExtraSvg:Qe,getHeaderSvg:Xe,getIssuerSvg:Ye,getLayoutSvg:Je,getNftBGColor:qe,getNftBGColorFromDid:Ut,getPassportColorFromDid:Ge,getSvg:Pt,getTagSvg:n1,getVerifiableBadge:t1,hslToRgb:me,nanoid:a1,rgbToHsl:Ie},Symbol.toStringTag,{value:"Module"})),s1=E.createContext(),{Provider:Vt}=s1,Oe=(e,i,r=window.location.pathname.replace(/\/$/,"/"))=>e?i?e===r:new RegExp(e).test(r):!1;function Ft({children:e,steps:i,mode:r="history"}){const[n,a]=E.useState("");!n&&i.length&&a(i[0].key);const l=i.map(c=>c.children?[{key:c.key,hasChild:!0},c.children.map(y=>({parentKey:c.key,key:y.key}))]:{key:c.key}).flat(1/0),s=l.filter(c=>!c.hasChild),p=c=>{let y;const L=l.findIndex(w=>w.key===n?(y=w.parentKey,!0):!1);if(y===c)return"current";const v=l.findIndex(w=>w.key===c);if(v!==-1){if(v===L)return"current";if(v<L)return"before"}return"after"};function h(c){a(c)}function g(c){if(typeof c=="function"){const y=c(s.findIndex(L=>L.key===n));a(s[y].key)}else a(s[c].key)}const d=s.findIndex(c=>c.key===n);E.useEffect(()=>{if(r==="history"){let c="";i.some(y=>y.children&&y.children.length?y.children.some(L=>Oe(L.path,L.exact)?(c=L.key,!0):!1):Oe(y.path,y.exact)?(c=y.key,!0):!1),c&&a(c)}return()=>{}},[i,r]);const m={steps:i,totalStepsCount:s.length,getStepStatus:p,setActiveStepByKey:h,setActiveStepByIndex:g,activeStep:d,canBackToStep:c=>r==="memory"&&d!==0&&c<d};return o.jsx(Vt,{value:m,children:e})}function l1(){return E.use(s1)}Ft.propTypes={children:b.any.isRequired,steps:b.array.isRequired,mode:b.string};var de,Ue;function Rt(){if(Ue)return de;Ue=1;var e=Object.prototype.hasOwnProperty,i=Object.prototype.toString;function r(n){if(n==null)return!0;if(typeof n=="boolean")return!1;if(typeof n=="number")return n===0;if(typeof n=="string"||typeof n=="function"||Array.isArray(n))return n.length===0;if(n instanceof Error)return n.message==="";if(n.toString==i)switch(n.toString()){case"[object File]":case"[object Map]":case"[object Set]":return n.size===0;case"[object Object]":{for(var a in n)if(e.call(n,a))return!1;return!0}}return!1}return de=r,de}var zt=Rt();const Kt=Fe(zt);var re={exports:{}},It=re.exports,Ze;function qt(){return Ze||(Ze=1,function(e){(function(i,r,n){e.exports?e.exports=n():r[i]=n()})("urljoin",It,function(){function i(r){var n=[];if(r.length===0)return"";if(typeof r[0]!="string")throw new TypeError("Url must be a string. Received "+r[0]);if(r[0].match(/^[^/:]+:\/*$/)&&r.length>1){var a=r.shift();r[0]=a+r[0]}r[0].match(/^file:\/\/\//)?r[0]=r[0].replace(/^([^/:]+):\/*/,"$1:///"):r[0]=r[0].replace(/^([^/:]+):\/*/,"$1://");for(var l=0;l<r.length;l++){var s=r[l];if(typeof s!="string")throw new TypeError("Url must be a string. Received "+s);s!==""&&(l>0&&(s=s.replace(/^[\/]+/,"")),l<r.length-1?s=s.replace(/[\/]+$/,""):s=s.replace(/[\/]+$/,"/"),n.push(s))}var p=n.join("/");p=p.replace(/\/(\?|&|#[^!])/g,"$1");var h=p.split("?");return p=h.shift()+(h.length>0?"?":"")+h.join("&"),p}return function(){var r;return typeof arguments[0]=="object"?r=arguments[0]:r=[].slice.call(arguments),i(r)}})}(re)),re.exports}var Gt=qt();const Wt=Fe(Gt),Jt="/.well-known/service/static/assets/blocklet-default-logo-Bspnu_ws.png",he={en:{optional:"Optional",defaultNavSubTitle:"Launching"},zh:{optional:"可选",defaultNavSubTitle:"启动"}},Xt=e=>he[e]?he[e]:he.en,Yt=e=>e==="zh"?"启动":"Launching",Ae=e=>e?.title||e?.name||"";function be({blockletMeta:e={},subTitle:i="",logoUrl:r="",locale:n="",navLogo:a="",loading:l=!1}){const s=xe(m=>m.breakpoints.down("md")),p=s?18:48,h=E.useRef(null),[g,d]=E.useState("");return E.useEffect(()=>{h.current&&h.current.offsetHeight>34&&(g===""?d("middle"):g==="middle"&&d("small"))},[g]),o.jsxs(i2,{className:g==="small"?"center-mode":"",children:[s?o.jsx("div",{className:"app-icon",children:a}):o.jsxs("div",{className:"app-icon",children:[l&&o.jsx(Qt,{blockletSize:p,isMobile:s}),!l&&o.jsx(o1,{blockletSize:p,logoUrl:r})]}),o.jsxs("div",{className:"header-title",children:[s&&i&&o.jsx("div",{className:"header-title-sub",children:i}),o.jsxs("div",{className:"app-name-content",children:[!s&&o.jsx("div",{className:"launching-context",children:i||Yt(n)}),o.jsx("div",{className:`header-title-name ${g==="middle"||g==="small"?"middle-size":""}`,ref:h,children:o.jsx(c1,{logoUrl:r,isMobile:s,blockletMeta:e,blockletSize:p,loading:l})})]})]})]})}be.propTypes={blockletMeta:b.object,subTitle:b.any,logoUrl:b.string,locale:b.string,navLogo:b.any,loading:b.bool};function Qt({blockletSize:e,isMobile:i}){return i?o.jsx(X,{variant:"rectangular",width:100,height:16,alt:"icon",style:{marginTop:4}}):o.jsx(X,{variant:"rectangular",width:e,height:e})}function o1({logoUrl:e,blockletSize:i}){return o.jsx(ft,{width:i,height:i,src:e,alt:"blocklet icon",fallback:Jt,style:{verticalAlign:"text-bottom"}},`layout-app-icon-${e}`)}function c1({isMobile:e,logoUrl:i,blockletMeta:r={},blockletSize:n,loading:a}){const l=Ae(r);return a?o.jsx(X,{variant:"rectangular",width:100,height:16,alt:"icon",style:{marginTop:4}}):Kt(r)?o.jsx(X,{variant:"rectangular",animation:!1,width:100,height:16,alt:"icon",style:{marginTop:4}}):e?o.jsxs(e2,{children:[o.jsx(o1,{blockletSize:n,logoUrl:i}),o.jsx("span",{className:"ellipsis-title",children:Ae(r)})]}):o.jsx(t2,{className:"app-link",target:"_blank",href:Wt(r?.registryUrl||"",`/blocklets/${r?.did}`),title:l,children:l})}const e2=q.div`
|
|
903
904
|
.ellipsis-title {
|
|
904
905
|
flex: 1;
|
|
905
906
|
position: absolute;
|
|
@@ -916,7 +917,7 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
916
917
|
width: calc(100% - 26px);
|
|
917
918
|
}
|
|
918
919
|
}
|
|
919
|
-
`;
|
|
920
|
+
`;c1.propTypes={blockletMeta:b.object};const t2=q.a`
|
|
920
921
|
color: ${e=>e.theme.palette.text.primary};
|
|
921
922
|
text-decoration: none;
|
|
922
923
|
overflow: hidden;
|
|
@@ -948,7 +949,7 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
948
949
|
overflow: hidden;
|
|
949
950
|
text-overflow: ellipsis;
|
|
950
951
|
}
|
|
951
|
-
`,
|
|
952
|
+
`,i2=q.div`
|
|
952
953
|
display: flex;
|
|
953
954
|
justify-content: flex-start;
|
|
954
955
|
align-items: flex-start;
|
|
@@ -1057,7 +1058,7 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
1057
1058
|
}
|
|
1058
1059
|
}
|
|
1059
1060
|
}
|
|
1060
|
-
`;function
|
|
1061
|
+
`;function d1({blockletMeta:e,logoUrl:i="",locale:r="",useOfSkeleton:n=!1,subTitle:a="",loading:l=!1,extraNav:s=null,sx:p={}}){const{steps:h,activeStep:g,setActiveStepByKey:d,setActiveStepByIndex:m,getStepStatus:c,canBackToStep:y}=l1(),L=n?l:!1,v=(w,_)=>{const C=["step-block"],M=c(w.key);switch(M){case"current":C.push("step-active");break;case"before":C.push("step-checked");break}switch(w.showChild){case"activated":M==="after"&&C.push("hide-step-child");break;case"activating":(M==="after"||M==="before")&&C.push("hide-step-child");break;case"always":C.push("always-step-child");break}return w.optional===!0&&g<_&&C.push("step-optional"),C.join(" ")};return o.jsxs(r2,{sx:p,children:[o.jsx(be,{blockletMeta:e,loading:l,logoUrl:i,locale:r,subTitle:a}),o.jsx(n2,{className:`${L?"hide-child-step-desc":""}`,children:h.map((w,_)=>{const C=!L&&y(_);return o.jsxs("div",{className:v(w,_),children:[o.jsx("div",{className:"step-icon",children:o.jsx(V1,{style:{fontSize:16}})}),o.jsx("div",{className:"step-line"}),o.jsxs("div",{className:"step-content",title:w.name,children:[o.jsx("span",{className:`step-content-name ${C?" step-clickable":""}`,onClick:()=>{if(C){if(w.key){d(w.key);return}m(_)}},children:L?o.jsx(X,{variant:"text",width:100}):w.name}),w.description&&o.jsx("div",{className:"step-desc",children:w.description}),w.children&&w.children.length&&o.jsx("div",{className:"step-children",children:w.children.map(M=>{let B="";switch(c(M.key)){case"before":B="step-child-block-checked";break;case"current":B="step-child-block-active";break}return o.jsx("div",{className:`step-child-block ${B}`,children:M.name},M.key)})})]})]},w.key)})}),s&&o.jsxs("div",{className:"extra-nav",children:[s.tooltipText?o.jsx(F1,{title:s.tooltipText,children:o.jsx(pe,{variant:s.buttonProps?.variant||"text",onClick:()=>{s.link&&window.open(s.link,"_blank")},startIcon:s.icon,className:"extra-nav-button",size:"small",...s.buttonProps,children:s.text})}):o.jsx(pe,{variant:s.buttonProps?.variant||"text",onClick:()=>{s.link&&window.open(s.link,"_blank")},startIcon:s.icon,size:"small",className:"extra-nav-button",...s.buttonProps,children:s.text}),s.description&&o.jsx(fe,{variant:"caption",sx:{color:"text.secondary",mt:.5},component:"p",className:"extra-nav-description",children:s.description})]})]})}const r2=q(R)`
|
|
1061
1062
|
overflow-y: auto;
|
|
1062
1063
|
display: flex;
|
|
1063
1064
|
flex-direction: column;
|
|
@@ -1105,7 +1106,7 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
1105
1106
|
.extra-nav-button {
|
|
1106
1107
|
cursor: pointer;
|
|
1107
1108
|
}
|
|
1108
|
-
`,
|
|
1109
|
+
`,n2=q(R)`
|
|
1109
1110
|
display: flex;
|
|
1110
1111
|
flex-direction: column;
|
|
1111
1112
|
margin-top: 60px;
|
|
@@ -1308,7 +1309,7 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
1308
1309
|
height: 24px;
|
|
1309
1310
|
}
|
|
1310
1311
|
}
|
|
1311
|
-
`;
|
|
1312
|
+
`;d1.propTypes={blockletMeta:b.object.isRequired,logoUrl:b.string,locale:b.string,useOfSkeleton:b.bool,subTitle:b.string,loading:b.bool,extraNav:b.object,sx:b.any};function h1({value:e,size:i=10,style:r={},...n}){return o.jsxs(a2,{style:{width:i,height:i,...r},...n,children:[o.jsx(ue,{variant:"determinate",role:"progressbar",value:100,size:i,"aria-label":"decorative progress bar",thickness:10,sx:{color:"grey.300"}}),o.jsx(ue,{variant:"determinate",value:e,role:"progressbar",size:i,thickness:10,"aria-label":"main progress bar"})]})}h1.propTypes={value:b.number.isRequired,size:b.number,style:b.object};const a2=q.span`
|
|
1312
1313
|
display: inline-block;
|
|
1313
1314
|
position: relative;
|
|
1314
1315
|
> * {
|
|
@@ -1318,14 +1319,14 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
1318
1319
|
width: 100%;
|
|
1319
1320
|
height: 100%;
|
|
1320
1321
|
}
|
|
1321
|
-
`,
|
|
1322
|
+
`,we="72px",s2=Y("div")`
|
|
1322
1323
|
box-sizing: border-box;
|
|
1323
1324
|
display: flex;
|
|
1324
1325
|
overflow: hidden;
|
|
1325
1326
|
width: 100%;
|
|
1326
1327
|
height: 100%;
|
|
1327
|
-
padding-top: ${
|
|
1328
|
-
`,
|
|
1328
|
+
padding-top: ${we};
|
|
1329
|
+
`,l2=Y("div")`
|
|
1329
1330
|
display: flex;
|
|
1330
1331
|
min-width: 900px;
|
|
1331
1332
|
max-width: ${e=>e.contentMaxWidth};
|
|
@@ -1336,11 +1337,11 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
1336
1337
|
height: ${e=>e.height||"80%"};
|
|
1337
1338
|
|
|
1338
1339
|
@media (max-height: 1200px) {
|
|
1339
|
-
margin-top: ${
|
|
1340
|
+
margin-top: ${we};
|
|
1340
1341
|
height: 100%;
|
|
1341
1342
|
max-height: 100%;
|
|
1342
1343
|
}
|
|
1343
|
-
`;function
|
|
1344
|
+
`;function o2({blockletMeta:e={},loading:i=!1,children:r,logoUrl:n="",locale:a="en",header:l=null,headerEndAddons:s=null,pcWidth:p="80%",navLogo:h="",useOfSkeleton:g=!0,navSubTitle:d="",contentMaxWidth:m="1245px",theme:c=null,themeOverrides:y=null,extraNav:L=null,...v}){const w=Pe(),_=xe(se=>se.breakpoints.down("md")),{activeStep:C,totalStepsCount:M}=l1(),B=e||{},V=_?s2:l2,ae=Xt(a);h&&!E.isValidElement(h)&&mt(h)&&(_?h=h.mobile:h=o.jsx(h2,{children:h.desktop}));const ee=ut(w,c||{});return o.jsx(R1,{injectFirst:!0,children:o.jsx(z1,{theme:ee,children:o.jsx(K1,{theme:ee,children:o.jsxs(d2,{...v,children:[o.jsxs(c2,{maxWidth:m,width:p,className:"ll-header",children:[l&&l,!l&&o.jsxs(o.Fragment,{children:[_&&o.jsx("div",{className:"left",children:o.jsx(be,{blockletMeta:B,navLogo:h,subTitle:o.jsxs("span",{children:[`${d||ae.defaultNavSubTitle} ${C+1}/${M}`,o.jsx(h1,{value:(C+1)/M*100,style:{marginLeft:3}}),L&&o.jsx(fe,{variant:"caption",className:"extra-nav-text",onClick:()=>{L.link&&window.open(L.link,"_blank")},sx:{ml:1,color:"primary.main",cursor:"pointer","&:hover":{opacity:.8}},children:L.appText||L.text})]}),logoUrl:n,locale:a,loading:i})}),h&&!_&&o.jsx("div",{className:"left",children:h}),s&&o.jsx(Re,{className:"right",children:s})]})]}),o.jsxs(V,{contentMaxWidth:m,className:"ll-container",children:[o.jsx(d1,{sx:{display:{xs:"none",md:"block"}},locale:a,blockletMeta:B,logoUrl:n,useOfSkeleton:g,subTitle:d,loading:i,extraNav:L}),o.jsx(fe,{component:"div",className:"layout-content",children:o.jsx(E.Suspense,{fallback:o.jsx(Lt,{relative:"parent",children:o.jsx(ue,{style:{marginTop:36}})}),children:r})})]})]})})})})}o2.propTypes={loading:b.bool,blockletMeta:b.object,children:b.object.isRequired,logoUrl:b.string,locale:b.oneOf(["en","zh"]),header:b.any,headerEndAddons:b.any,pcWidth:b.any,pcHeight:b.any,contentMaxWidth:b.string,navLogo:b.oneOfType([b.node,b.object]),useOfSkeleton:b.bool,stepTip:b.string,navSubTitle:b.string,theme:b.object,themeOverrides:b.object,extraNav:b.object};const De=navigator.userAgent.toLocaleLowerCase();let p1="";De.includes("iphone os")&&De.includes("crios")&&(p1="height: calc(100vh - 60px);");const c2=Y("header")`
|
|
1344
1345
|
width: ${e=>e.width||"80%"};
|
|
1345
1346
|
min-width: 900px;
|
|
1346
1347
|
box-sizing: border-box;
|
|
@@ -1359,7 +1360,7 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
1359
1360
|
${e=>e.theme.breakpoints.down("md")} {
|
|
1360
1361
|
min-width: 360px;
|
|
1361
1362
|
width: 100%;
|
|
1362
|
-
height: ${
|
|
1363
|
+
height: ${we};
|
|
1363
1364
|
justify-content: space-between;
|
|
1364
1365
|
background-color: ${({theme:e})=>e.palette.mode==="dark"?e.palette.background.default:e.palette.grey[100]};
|
|
1365
1366
|
}
|
|
@@ -1369,14 +1370,14 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
1369
1370
|
display: flex;
|
|
1370
1371
|
align-items: center;
|
|
1371
1372
|
}
|
|
1372
|
-
`,
|
|
1373
|
+
`,d2=Y("div")`
|
|
1373
1374
|
display: flex;
|
|
1374
1375
|
flex-direction: column;
|
|
1375
1376
|
justify-content: center;
|
|
1376
1377
|
align-items: center;
|
|
1377
1378
|
letter-spacing: normal;
|
|
1378
1379
|
background: ${({theme:e})=>e.palette.mode==="dark"?e.palette.background.default:e.palette.grey[100]};
|
|
1379
|
-
${
|
|
1380
|
+
${p1}
|
|
1380
1381
|
|
|
1381
1382
|
header:empty {
|
|
1382
1383
|
display: none;
|
|
@@ -1413,7 +1414,7 @@ import{j as a,ak as k,av as q,D as J,J as N,aU as C1,Q as U,aj as k1,aV as $1,W
|
|
|
1413
1414
|
padding: 16px;
|
|
1414
1415
|
}
|
|
1415
1416
|
}
|
|
1416
|
-
`,
|
|
1417
|
+
`,h2=Y("div")`
|
|
1417
1418
|
display: block;
|
|
1418
1419
|
margin-top: 4px;
|
|
1419
|
-
`;export{
|
|
1420
|
+
`;export{Ge as A,qe as F,o2 as L,Ft as P,l1 as T,Pt as U,ne as d,y2 as e,Ut as g,Wt as j,Lt as o,Re as s,x2 as z};
|