@multiversx/sdk-dapp-liquidity 1.0.12 → 1.0.14
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/ConstantsUtil-BinYIDR2.mjs +8 -0
- package/ConstantsUtil-CbnVdQ5P.js +8 -0
- package/add-D-ECcdUh.mjs +19 -0
- package/add-Diz8heiY.js +20 -0
- package/all-wallets-_iOQf3bl.js +11 -0
- package/all-wallets-puIIQy3Y.mjs +10 -0
- package/app-store-BGTKFL27.js +22 -0
- package/app-store-Bsf7w3pv.mjs +21 -0
- package/apple-Cw8e8IGH.mjs +22 -0
- package/apple-DF7n_Yzl.js +23 -0
- package/arrow-bottom-Cp2C4fQv.mjs +12 -0
- package/arrow-bottom-DTvIR3s3.js +13 -0
- package/arrow-bottom-circle-CN6i5mHz.mjs +15 -0
- package/arrow-bottom-circle-CzPwiwWH.js +16 -0
- package/arrow-left-9VFYHQSW.js +13 -0
- package/arrow-left-BDQHoEvX.mjs +12 -0
- package/arrow-right-BxkuSpWU.mjs +12 -0
- package/arrow-right-DBLQ6w92.js +13 -0
- package/arrow-top-BiQd5Aey.js +13 -0
- package/arrow-top-BrLVX4Rj.mjs +12 -0
- package/bank-B7EC6Kdz.mjs +18 -0
- package/bank-CvPn9sfV.js +19 -0
- package/{bignumber-CKZkoo0g.mjs → bignumber-2Z7uapuD.mjs} +6 -6
- package/{bignumber-B8vjg9qn.js → bignumber-D1Wl54dL.js} +6 -6
- package/bin-BXO1kNZh.js +9 -0
- package/bin-CwiYVJ1L.mjs +8 -0
- package/bitcoin-C3kBVar_.mjs +17 -0
- package/bitcoin-DAvQGpeP.js +3251 -0
- package/bitcoin-dNBGbS2B.mjs +3251 -0
- package/bitcoin-k6bvmzMA.js +18 -0
- package/browser-ShRLuKKz.mjs +18 -0
- package/browser-t7nfT7HL.js +19 -0
- package/card-BJg5bdoM.mjs +18 -0
- package/card-hxUDXttT.js +19 -0
- package/checkmark-BpR0Yy93.mjs +15 -0
- package/checkmark-D9AVWgl5.js +16 -0
- package/checkmark-bold-D3Xcby1U.mjs +12 -0
- package/checkmark-bold-De02hde8.js +13 -0
- package/chevron-bottom-DcBf7T5F.js +13 -0
- package/chevron-bottom-DfGpWIz7.mjs +12 -0
- package/chevron-left-BKvYVnUo.js +13 -0
- package/chevron-left-DGSG9WJQ.mjs +12 -0
- package/chevron-right-BLgYIEeO.js +13 -0
- package/chevron-right-C2nsTx_Y.mjs +12 -0
- package/chevron-top-CwFOEFy8.js +13 -0
- package/chevron-top-vk-9DvUU.mjs +12 -0
- package/chrome-store-4H_ie3vA.mjs +65 -0
- package/chrome-store-BWarxVMl.js +66 -0
- package/circle-BtqWJU0_.mjs +8 -0
- package/circle-DYjG6o7-.js +9 -0
- package/clock-Ba5SM-pl.mjs +12 -0
- package/clock-DPzNREdU.js +13 -0
- package/close-CJHKFOyp.mjs +12 -0
- package/close-DDWnJdJe.js +13 -0
- package/coinPlaceholder-Cbba3D1H.mjs +12 -0
- package/coinPlaceholder-DdxQIc2D.js +13 -0
- package/compass-CugCxeSC.js +13 -0
- package/compass-DbN5DkTl.mjs +12 -0
- package/copy-CHSZprYJ.mjs +19 -0
- package/copy-En5h5Uhu.js +20 -0
- package/cursor-DCRkvEhr.mjs +7 -0
- package/cursor-DnEQtrUK.js +8 -0
- package/cursor-transparent-CU8lk-xg.js +17 -0
- package/cursor-transparent-CliETg4d.mjs +16 -0
- package/desktop-BgD7aypB.js +14 -0
- package/desktop-Cg5I32-p.mjs +13 -0
- package/disconnect-CCyMbAdw.js +13 -0
- package/disconnect-Cp2vRWB2.mjs +12 -0
- package/discord-B1d-qeSk.mjs +21 -0
- package/discord-BEB5klec.js +22 -0
- package/email-CorlePKz.js +873 -0
- package/email-Znno7H8_.mjs +878 -0
- package/embedded-wallet-B9ro9Tel.js +549 -0
- package/embedded-wallet-CnTWeseG.mjs +552 -0
- package/ethereum-BRcsRjUU.mjs +14 -0
- package/ethereum-CZ_xe09e.js +15 -0
- package/etherscan-BZKGpKp8.mjs +10 -0
- package/etherscan-DtLi-C3z.js +11 -0
- package/exclamation-triangle-BLNnBLEc.js +9 -0
- package/exclamation-triangle-CFThXxRT.mjs +8 -0
- package/extension-CwUepr-W.mjs +12 -0
- package/extension-DOD67G1k.js +13 -0
- package/external-link-CZkQS5XK.js +13 -0
- package/external-link-ClYNKSPt.mjs +12 -0
- package/facebook-CFjrd4my.mjs +30 -0
- package/facebook-CbE6K6AK.js +31 -0
- package/farcaster-Ba7_C-Vm.js +17 -0
- package/farcaster-DyVJtVS9.mjs +16 -0
- package/filters-CpHaFNjT.mjs +12 -0
- package/filters-w5LC-r6e.js +13 -0
- package/github-CeO70C3E.mjs +22 -0
- package/github-uLFBWAa5.js +23 -0
- package/google-CyOdUlbw.mjs +22 -0
- package/google-ILGK-opP.js +23 -0
- package/help-circle-Dh3dRNoB.mjs +16 -0
- package/help-circle-HUMbz_KN.js +17 -0
- package/id-Cy3Qkrvb.js +17 -0
- package/id-D-Q0uPFM.mjs +16 -0
- package/if-defined-CJ5EZLw2.js +815 -0
- package/if-defined-DjC5UMfF.mjs +815 -0
- package/image-BTGOf8bb.mjs +8 -0
- package/image-WFQO5bWa.js +9 -0
- package/index--O5ypTeK.mjs +70 -0
- package/index--Vg7VI9t.js +173 -0
- package/index-2iRSO1sa.mjs +9964 -0
- package/index-42Rpweo5.mjs +95 -0
- package/index-70kjE43k.mjs +90 -0
- package/index-8VyNYS01.js +273 -0
- package/index-B-dx8l0g.mjs +82 -0
- package/index-BB0nW9RB.mjs +198 -0
- package/index-BBwuv2SS.js +97 -0
- package/index-BIe-kofv.mjs +273 -0
- package/index-BQf6VHil.js +278 -0
- package/index-BWIZXhFv.mjs +630 -0
- package/index-BXkamf-I.js +337 -0
- package/index-BYTxCmKH.js +64 -0
- package/index-BYoOxo0S.js +218 -0
- package/index-Ba0tVdql.js +200 -0
- package/index-BdOAPWyt.mjs +210 -0
- package/index-BirWzf8c.mjs +71 -0
- package/index-BnCJUHtW.mjs +346 -0
- package/index-BuL2FC61.mjs +216 -0
- package/index-BxSUTfaY.js +88 -0
- package/index-C49C5Rxf.js +743 -0
- package/index-CNMDBpW7.js +346 -0
- package/index-CP0CGjqQ.mjs +263 -0
- package/index-CQaHcTZM.mjs +86 -0
- package/index-CRGXQei1.js +178 -0
- package/index-CSykUIfV.mjs +176 -0
- package/index-CWIHaLkQ.mjs +101 -0
- package/index-CZSDJd0P.mjs +1070 -0
- package/index-CZaV8JgR.mjs +49 -0
- package/index-CZjdy6QP.js +101 -0
- package/index-C_lIGGlC.js +632 -0
- package/index-CcgeRPs2.mjs +57 -0
- package/index-CeY_DRuc.js +566 -0
- package/index-ChFNkSxT.js +92 -0
- package/index-CkjZc20w.js +677 -0
- package/index-CtFcWwAd.js +72 -0
- package/index-D0mOfznC.mjs +362 -0
- package/index-DAtWLY21.js +84 -0
- package/index-DEs8H3w2.js +262 -0
- package/index-DLnxotbC.mjs +566 -0
- package/index-DN4fGDgg.mjs +743 -0
- package/index-DT_mc1hV.mjs +335 -0
- package/index-DZEwxUMS.js +59 -0
- package/index-DaRH_4bD.js +9939 -0
- package/index-Daok2ZKn.js +73 -0
- package/index-DomzHmwk.js +210 -0
- package/index-Dx7NyDyv.mjs +101 -0
- package/index-DyGir6_2.mjs +675 -0
- package/index-GglJmM2C.js +2237 -0
- package/index-H5b7UTeJ.mjs +173 -0
- package/index-NNZ1lNuc.mjs +168 -0
- package/index-RJd-gQcv.mjs +2235 -0
- package/index-dnFzVpGy.js +103 -0
- package/index-kwVLu8EV.js +168 -0
- package/index-miQwZPmn.js +51 -0
- package/index-oCj_SpOa.mjs +62 -0
- package/index-pNK-h_x9.js +1069 -0
- package/index-r6Kre1rx.js +362 -0
- package/index-xBD0nXoB.mjs +276 -0
- package/index.js +3 -3
- package/index.mjs +3 -3
- package/info-BKNAiN0k.js +8 -0
- package/info-DQE0s-A4.mjs +7 -0
- package/info-circle-C3uTocjH.js +17 -0
- package/info-circle-CIn6yeQo.mjs +16 -0
- package/lightbulb-CB-BmIop.js +8 -0
- package/lightbulb-Gv7IbnzO.mjs +7 -0
- package/mail-CFYm95wn.mjs +12 -0
- package/mail-GEwk-Fzr.js +13 -0
- package/mobile-CZ7ZBfa5.js +14 -0
- package/mobile-OIbnpFsU.mjs +13 -0
- package/more-C8N_RV55.mjs +15 -0
- package/more-CiQpPZwq.js +16 -0
- package/network-placeholder-CxEcczEx.mjs +18 -0
- package/network-placeholder-DwR8E8hP.js +19 -0
- package/nftPlaceholder-BFexVcGX.js +13 -0
- package/nftPlaceholder-MiYL110I.mjs +12 -0
- package/off-BNiMlpUU.mjs +8 -0
- package/off-iJHSK3Z7.js +9 -0
- package/onramp-Bs8HHFFY.js +1474 -0
- package/onramp-C6fuQfX7.mjs +1480 -0
- package/package.json +11 -11
- package/play-store-B4ssIYUA.js +37 -0
- package/play-store-D6nmQXhX.mjs +36 -0
- package/plus-Bh7z7Oc0.js +18 -0
- package/plus-C8ioZuCD.mjs +17 -0
- package/qr-code-CSVwaBLf.mjs +10 -0
- package/qr-code-YgtXPokK.js +11 -0
- package/react-BWxe90Ar.mjs +6342 -0
- package/react-BzZcQig5.js +6342 -0
- package/react-C_wTMVq_.js +23003 -0
- package/react-M-DnxvZl.mjs +23003 -0
- package/reactjs/components/BridgeForm/BridgeForm.js +2 -1
- package/reactjs/components/BridgeForm/BridgeForm.mjs +2 -1
- package/reactjs/components/Connect/BridgeAccountDisplay.js +3 -2
- package/reactjs/components/Connect/BridgeAccountDisplay.mjs +3 -2
- package/reactjs/components/Connect/CustomConnectButton.js +3 -2
- package/reactjs/components/Connect/CustomConnectButton.mjs +3 -2
- package/reactjs/components/Connect/SwitchChainButton.js +4 -3
- package/reactjs/components/Connect/SwitchChainButton.mjs +4 -3
- package/reactjs/components/DisplayAmount/DisplayAmount.js +1 -1
- package/reactjs/components/DisplayAmount/DisplayAmount.mjs +1 -1
- package/reactjs/components/TokenSelector/components/TokenItem.js +1 -1
- package/reactjs/components/TokenSelector/components/TokenItem.mjs +1 -1
- package/reactjs/hooks/useAccount.d.ts +4 -4
- package/reactjs/hooks/useAccount.js +3 -2
- package/reactjs/hooks/useAccount.mjs +3 -2
- package/reactjs/hooks/useGetChainId.js +1 -1
- package/reactjs/hooks/useGetChainId.mjs +1 -1
- package/reactjs/index.js +3 -3
- package/reactjs/index.mjs +3 -3
- package/reactjs/init/init.js +4 -3
- package/reactjs/init/init.mjs +4 -3
- package/reactjs/init/tests/init.spec.js +2 -2
- package/reactjs/init/tests/init.spec.mjs +2 -2
- package/reactjs/queries/useGetEvmTokensBalances.query.js +3 -2
- package/reactjs/queries/useGetEvmTokensBalances.query.mjs +3 -2
- package/reactjs/reexports.js +3 -3
- package/reactjs/reexports.mjs +3 -3
- package/reactjs/utils/getCleanStringAmount.js +1 -1
- package/reactjs/utils/getCleanStringAmount.mjs +1 -1
- package/reactjs/utils/hasEnoughFunds.js +1 -1
- package/reactjs/utils/hasEnoughFunds.mjs +1 -1
- package/reactjs/utils/isStringFloat.js +1 -1
- package/reactjs/utils/isStringFloat.mjs +1 -1
- package/reactjs/utils/roundAmount.js +1 -1
- package/reactjs/utils/roundAmount.mjs +1 -1
- package/receive-CK0hRQPr.js +212 -0
- package/receive-CQcD6bZf.mjs +212 -0
- package/recycle-horizontal--x5cMoTE.js +14 -0
- package/recycle-horizontal-QI0xtDHK.mjs +13 -0
- package/ref-CqxfRkBm.mjs +41 -0
- package/ref-FGI2cUQB.js +41 -0
- package/refresh-CFNHjhDi.js +13 -0
- package/refresh-CSOC1NUY.mjs +12 -0
- package/reown-logo-BfU5xFX5.js +17 -0
- package/reown-logo-CZAEp1jU.mjs +16 -0
- package/search-Do_rb-9-.mjs +12 -0
- package/search-V9CGMHkm.js +13 -0
- package/send-D-5G7tDL.mjs +1204 -0
- package/send-D4yYsIHV.mjs +19 -0
- package/send-DoiSHLsX.js +1202 -0
- package/send-_jfNFrys.js +20 -0
- package/socials-BL7-97fT.mjs +758 -0
- package/socials-DF0CK9cN.js +756 -0
- package/solana-BQ0Jh8lh.js +18 -0
- package/solana-YAkDp6j_.mjs +17 -0
- package/swapHorizontal-DOIo-Ccx.mjs +12 -0
- package/swapHorizontal-OHKtz4Gu.js +13 -0
- package/swapHorizontalBold-D7QmFj-c.js +13 -0
- package/swapHorizontalBold-DDroA0Af.mjs +12 -0
- package/swapHorizontalMedium-CU_v0kFz.mjs +20 -0
- package/swapHorizontalMedium-D-yMmtml.js +21 -0
- package/swapHorizontalRoundedBold-CHvbmnjw.js +13 -0
- package/swapHorizontalRoundedBold-DXMH0sgK.mjs +12 -0
- package/swapVertical-CH7fTK6w.js +13 -0
- package/swapVertical-HJZ6rFcr.mjs +12 -0
- package/swaps-CETflhdU.js +1952 -0
- package/swaps-DRUV6d3p.mjs +1954 -0
- package/telegram-CsCauOwj.mjs +20 -0
- package/telegram-DKEcF_Tq.js +21 -0
- package/three-dots-B-7hr8Nl.js +10 -0
- package/three-dots-LNZ_fjP7.mjs +9 -0
- package/transactions-BTTsGV2W.mjs +37 -0
- package/transactions-mpNNlClw.js +37 -0
- package/twitch-CCWVT2ij.js +23 -0
- package/twitch-Dg1CCQvd.mjs +22 -0
- package/twitterIcon-BjR09Cj9.mjs +10 -0
- package/twitterIcon-CeEs0iDJ.js +11 -0
- package/verify-B8WZq7kt.mjs +12 -0
- package/verify-filled-BeqC1imk.mjs +12 -0
- package/verify-filled-C-mv3ApD.js +13 -0
- package/verify-yATdPqt-.js +13 -0
- package/w3m-modal-3GziKj7h.js +1254 -0
- package/w3m-modal-81Z5PngE.mjs +1255 -0
- package/wallet-BMXEH23x.js +13 -0
- package/wallet-CNAVQCfm.mjs +12 -0
- package/wallet-placeholder-CQ-7CmVN.mjs +18 -0
- package/wallet-placeholder-CdoQy2e6.js +19 -0
- package/walletconnect-ACr-R1QZ.mjs +38 -0
- package/walletconnect-BWSkiS2F.js +39 -0
- package/warning-circle-CYnuYwpt.js +17 -0
- package/warning-circle-HV2lOiCj.mjs +16 -0
- package/x-CW5dozRj.js +17 -0
- package/x-Cgm2OFpL.mjs +16 -0
- package/x-mark-CR8SpZvu.js +8 -0
- package/x-mark-u0KJjUJ1.mjs +7 -0
- package/index-B4Eq5P3w.mjs +0 -91
- package/index-C4WV9nam.js +0 -329
- package/index-CWMcKi_X.js +0 -107
- package/index-D8E0O3qL.mjs +0 -68744
- package/index-DJ8CdHSw.mjs +0 -107
- package/index-nigVQYBu.js +0 -68665
- package/react-C43nEIqn.js +0 -3133
- package/react-DKUsVej7.js +0 -50
- package/react-Dp0H8q2z.mjs +0 -50
- package/react-wMhOUFOm.mjs +0 -3133
- package/w3m-modal-DLyg7Voy.js +0 -356
- package/w3m-modal-hC-B8qZP.mjs +0 -356
|
@@ -0,0 +1,3251 @@
|
|
|
1
|
+
var _a;
|
|
2
|
+
import require$$0$1, { useRef, useCallback, useEffect, useMemo, useDebugValue } from "react";
|
|
3
|
+
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
4
|
+
function getDefaultExportFromCjs(x2) {
|
|
5
|
+
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
6
|
+
}
|
|
7
|
+
function getAugmentedNamespace(n3) {
|
|
8
|
+
if (n3.__esModule) return n3;
|
|
9
|
+
var f2 = n3.default;
|
|
10
|
+
if (typeof f2 == "function") {
|
|
11
|
+
var a2 = function a3() {
|
|
12
|
+
if (this instanceof a3) {
|
|
13
|
+
return Reflect.construct(f2, arguments, this.constructor);
|
|
14
|
+
}
|
|
15
|
+
return f2.apply(this, arguments);
|
|
16
|
+
};
|
|
17
|
+
a2.prototype = f2.prototype;
|
|
18
|
+
} else a2 = {};
|
|
19
|
+
Object.defineProperty(a2, "__esModule", { value: true });
|
|
20
|
+
Object.keys(n3).forEach(function(k2) {
|
|
21
|
+
var d2 = Object.getOwnPropertyDescriptor(n3, k2);
|
|
22
|
+
Object.defineProperty(a2, k2, d2.get ? d2 : {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: function() {
|
|
25
|
+
return n3[k2];
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
return a2;
|
|
30
|
+
}
|
|
31
|
+
const e$3 = Symbol(), t$2 = Symbol(), r$3 = "a", n$3 = "w";
|
|
32
|
+
let o$4 = (e2, t2) => new Proxy(e2, t2);
|
|
33
|
+
const s$3 = Object.getPrototypeOf, c$3 = /* @__PURE__ */ new WeakMap(), l$2 = (e2) => e2 && (c$3.has(e2) ? c$3.get(e2) : s$3(e2) === Object.prototype || s$3(e2) === Array.prototype), f$2 = (e2) => "object" == typeof e2 && null !== e2, i$4 = (e2) => {
|
|
34
|
+
if (Array.isArray(e2)) return Array.from(e2);
|
|
35
|
+
const t2 = Object.getOwnPropertyDescriptors(e2);
|
|
36
|
+
return Object.values(t2).forEach((e3) => {
|
|
37
|
+
e3.configurable = true;
|
|
38
|
+
}), Object.create(s$3(e2), t2);
|
|
39
|
+
}, u$2 = (e2) => e2[t$2] || e2, a$2 = (s2, c2, f2, p2) => {
|
|
40
|
+
if (!l$2(s2)) return s2;
|
|
41
|
+
let g2 = p2 && p2.get(s2);
|
|
42
|
+
if (!g2) {
|
|
43
|
+
const e2 = u$2(s2);
|
|
44
|
+
g2 = ((e3) => Object.values(Object.getOwnPropertyDescriptors(e3)).some((e4) => !e4.configurable && !e4.writable))(e2) ? [e2, i$4(e2)] : [e2], null == p2 || p2.set(s2, g2);
|
|
45
|
+
}
|
|
46
|
+
const [y3, h2] = g2;
|
|
47
|
+
let w2 = f2 && f2.get(y3);
|
|
48
|
+
return w2 && w2[1].f === !!h2 || (w2 = ((o2, s3) => {
|
|
49
|
+
const c3 = { f: s3 };
|
|
50
|
+
let l2 = false;
|
|
51
|
+
const f3 = (e2, t2) => {
|
|
52
|
+
if (!l2) {
|
|
53
|
+
let s4 = c3[r$3].get(o2);
|
|
54
|
+
if (s4 || (s4 = {}, c3[r$3].set(o2, s4)), e2 === n$3) s4[n$3] = true;
|
|
55
|
+
else {
|
|
56
|
+
let r2 = s4[e2];
|
|
57
|
+
r2 || (r2 = /* @__PURE__ */ new Set(), s4[e2] = r2), r2.add(t2);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}, i2 = { get: (e2, n3) => n3 === t$2 ? o2 : (f3("k", n3), a$2(Reflect.get(e2, n3), c3[r$3], c3.c, c3.t)), has: (t2, n3) => n3 === e$3 ? (l2 = true, c3[r$3].delete(o2), true) : (f3("h", n3), Reflect.has(t2, n3)), getOwnPropertyDescriptor: (e2, t2) => (f3("o", t2), Reflect.getOwnPropertyDescriptor(e2, t2)), ownKeys: (e2) => (f3(n$3), Reflect.ownKeys(e2)) };
|
|
61
|
+
return s3 && (i2.set = i2.deleteProperty = () => false), [i2, c3];
|
|
62
|
+
})(y3, !!h2), w2[1].p = o$4(h2 || y3, w2[0]), f2 && f2.set(y3, w2)), w2[1][r$3] = c2, w2[1].c = f2, w2[1].t = p2, w2[1].p;
|
|
63
|
+
}, p$2 = (e2, t2, r2, o2, s2 = Object.is) => {
|
|
64
|
+
if (s2(e2, t2)) return false;
|
|
65
|
+
if (!f$2(e2) || !f$2(t2)) return true;
|
|
66
|
+
const c2 = r2.get(u$2(e2));
|
|
67
|
+
if (!c2) return true;
|
|
68
|
+
if (o2) {
|
|
69
|
+
const r3 = o2.get(e2);
|
|
70
|
+
if (r3 && r3.n === t2) return r3.g;
|
|
71
|
+
o2.set(e2, { n: t2, g: false });
|
|
72
|
+
}
|
|
73
|
+
let l2 = null;
|
|
74
|
+
try {
|
|
75
|
+
for (const r3 of c2.h || []) if (l2 = Reflect.has(e2, r3) !== Reflect.has(t2, r3), l2) return l2;
|
|
76
|
+
if (true === c2[n$3]) {
|
|
77
|
+
if (l2 = ((e3, t3) => {
|
|
78
|
+
const r3 = Reflect.ownKeys(e3), n3 = Reflect.ownKeys(t3);
|
|
79
|
+
return r3.length !== n3.length || r3.some((e4, t4) => e4 !== n3[t4]);
|
|
80
|
+
})(e2, t2), l2) return l2;
|
|
81
|
+
} else for (const r3 of c2.o || []) if (l2 = !!Reflect.getOwnPropertyDescriptor(e2, r3) != !!Reflect.getOwnPropertyDescriptor(t2, r3), l2) return l2;
|
|
82
|
+
for (const n3 of c2.k || []) if (l2 = p$2(e2[n3], t2[n3], r2, o2, s2), l2) return l2;
|
|
83
|
+
return null === l2 && (l2 = true), l2;
|
|
84
|
+
} finally {
|
|
85
|
+
o2 && o2.set(e2, { n: t2, g: l2 });
|
|
86
|
+
}
|
|
87
|
+
}, y$2 = (e2) => l$2(e2) && e2[t$2] || null, h$2 = (e2, t2 = true) => {
|
|
88
|
+
c$3.set(e2, t2);
|
|
89
|
+
}, w = (e2, t2, r2) => {
|
|
90
|
+
const o2 = [], s2 = /* @__PURE__ */ new WeakSet(), c2 = (e3, l2) => {
|
|
91
|
+
if (s2.has(e3)) return;
|
|
92
|
+
f$2(e3) && s2.add(e3);
|
|
93
|
+
const i2 = f$2(e3) && t2.get(u$2(e3));
|
|
94
|
+
if (i2) {
|
|
95
|
+
var a2, p2;
|
|
96
|
+
if (null == (a2 = i2.h) || a2.forEach((e4) => {
|
|
97
|
+
const t3 = `:has(${String(e4)})`;
|
|
98
|
+
o2.push(l2 ? [...l2, t3] : [t3]);
|
|
99
|
+
}), true === i2[n$3]) {
|
|
100
|
+
const e4 = ":ownKeys";
|
|
101
|
+
o2.push(l2 ? [...l2, e4] : [e4]);
|
|
102
|
+
} else {
|
|
103
|
+
var g2;
|
|
104
|
+
null == (g2 = i2.o) || g2.forEach((e4) => {
|
|
105
|
+
const t3 = `:hasOwn(${String(e4)})`;
|
|
106
|
+
o2.push(l2 ? [...l2, t3] : [t3]);
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
null == (p2 = i2.k) || p2.forEach((t3) => {
|
|
110
|
+
!("value" in (Object.getOwnPropertyDescriptor(e3, t3) || {})) || c2(e3[t3], l2 ? [...l2, t3] : [t3]);
|
|
111
|
+
});
|
|
112
|
+
} else l2 && o2.push(l2);
|
|
113
|
+
};
|
|
114
|
+
return c2(e2), o2;
|
|
115
|
+
};
|
|
116
|
+
const __vite_import_meta_env__$1 = {};
|
|
117
|
+
const isObject = (x2) => typeof x2 === "object" && x2 !== null;
|
|
118
|
+
const proxyStateMap = /* @__PURE__ */ new WeakMap();
|
|
119
|
+
const refSet = /* @__PURE__ */ new WeakSet();
|
|
120
|
+
const buildProxyFunction = (objectIs = Object.is, newProxy = (target, handler) => new Proxy(target, handler), canProxy = (x2) => isObject(x2) && !refSet.has(x2) && (Array.isArray(x2) || !(Symbol.iterator in x2)) && !(x2 instanceof WeakMap) && !(x2 instanceof WeakSet) && !(x2 instanceof Error) && !(x2 instanceof Number) && !(x2 instanceof Date) && !(x2 instanceof String) && !(x2 instanceof RegExp) && !(x2 instanceof ArrayBuffer), defaultHandlePromise = (promise) => {
|
|
121
|
+
switch (promise.status) {
|
|
122
|
+
case "fulfilled":
|
|
123
|
+
return promise.value;
|
|
124
|
+
case "rejected":
|
|
125
|
+
throw promise.reason;
|
|
126
|
+
default:
|
|
127
|
+
throw promise;
|
|
128
|
+
}
|
|
129
|
+
}, snapCache = /* @__PURE__ */ new WeakMap(), createSnapshot = (target, version, handlePromise = defaultHandlePromise) => {
|
|
130
|
+
const cache = snapCache.get(target);
|
|
131
|
+
if ((cache == null ? void 0 : cache[0]) === version) {
|
|
132
|
+
return cache[1];
|
|
133
|
+
}
|
|
134
|
+
const snap = Array.isArray(target) ? [] : Object.create(Object.getPrototypeOf(target));
|
|
135
|
+
h$2(snap, true);
|
|
136
|
+
snapCache.set(target, [version, snap]);
|
|
137
|
+
Reflect.ownKeys(target).forEach((key) => {
|
|
138
|
+
if (Object.getOwnPropertyDescriptor(snap, key)) {
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
const value = Reflect.get(target, key);
|
|
142
|
+
const { enumerable } = Reflect.getOwnPropertyDescriptor(
|
|
143
|
+
target,
|
|
144
|
+
key
|
|
145
|
+
);
|
|
146
|
+
const desc = {
|
|
147
|
+
value,
|
|
148
|
+
enumerable,
|
|
149
|
+
// This is intentional to avoid copying with proxy-compare.
|
|
150
|
+
// It's still non-writable, so it avoids assigning a value.
|
|
151
|
+
configurable: true
|
|
152
|
+
};
|
|
153
|
+
if (refSet.has(value)) {
|
|
154
|
+
h$2(value, false);
|
|
155
|
+
} else if (value instanceof Promise) {
|
|
156
|
+
delete desc.value;
|
|
157
|
+
desc.get = () => handlePromise(value);
|
|
158
|
+
} else if (proxyStateMap.has(value)) {
|
|
159
|
+
const [target2, ensureVersion] = proxyStateMap.get(
|
|
160
|
+
value
|
|
161
|
+
);
|
|
162
|
+
desc.value = createSnapshot(
|
|
163
|
+
target2,
|
|
164
|
+
ensureVersion(),
|
|
165
|
+
handlePromise
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
Object.defineProperty(snap, key, desc);
|
|
169
|
+
});
|
|
170
|
+
return Object.preventExtensions(snap);
|
|
171
|
+
}, proxyCache = /* @__PURE__ */ new WeakMap(), versionHolder = [1, 1], proxyFunction = (initialObject) => {
|
|
172
|
+
if (!isObject(initialObject)) {
|
|
173
|
+
throw new Error("object required");
|
|
174
|
+
}
|
|
175
|
+
const found = proxyCache.get(initialObject);
|
|
176
|
+
if (found) {
|
|
177
|
+
return found;
|
|
178
|
+
}
|
|
179
|
+
let version = versionHolder[0];
|
|
180
|
+
const listeners = /* @__PURE__ */ new Set();
|
|
181
|
+
const notifyUpdate = (op, nextVersion = ++versionHolder[0]) => {
|
|
182
|
+
if (version !== nextVersion) {
|
|
183
|
+
version = nextVersion;
|
|
184
|
+
listeners.forEach((listener) => listener(op, nextVersion));
|
|
185
|
+
}
|
|
186
|
+
};
|
|
187
|
+
let checkVersion = versionHolder[1];
|
|
188
|
+
const ensureVersion = (nextCheckVersion = ++versionHolder[1]) => {
|
|
189
|
+
if (checkVersion !== nextCheckVersion && !listeners.size) {
|
|
190
|
+
checkVersion = nextCheckVersion;
|
|
191
|
+
propProxyStates.forEach(([propProxyState]) => {
|
|
192
|
+
const propVersion = propProxyState[1](nextCheckVersion);
|
|
193
|
+
if (propVersion > version) {
|
|
194
|
+
version = propVersion;
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
return version;
|
|
199
|
+
};
|
|
200
|
+
const createPropListener = (prop) => (op, nextVersion) => {
|
|
201
|
+
const newOp = [...op];
|
|
202
|
+
newOp[1] = [prop, ...newOp[1]];
|
|
203
|
+
notifyUpdate(newOp, nextVersion);
|
|
204
|
+
};
|
|
205
|
+
const propProxyStates = /* @__PURE__ */ new Map();
|
|
206
|
+
const addPropListener = (prop, propProxyState) => {
|
|
207
|
+
if ((__vite_import_meta_env__$1 ? "production" : void 0) !== "production" && propProxyStates.has(prop)) {
|
|
208
|
+
throw new Error("prop listener already exists");
|
|
209
|
+
}
|
|
210
|
+
if (listeners.size) {
|
|
211
|
+
const remove = propProxyState[3](createPropListener(prop));
|
|
212
|
+
propProxyStates.set(prop, [propProxyState, remove]);
|
|
213
|
+
} else {
|
|
214
|
+
propProxyStates.set(prop, [propProxyState]);
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
const removePropListener = (prop) => {
|
|
218
|
+
var _a2;
|
|
219
|
+
const entry = propProxyStates.get(prop);
|
|
220
|
+
if (entry) {
|
|
221
|
+
propProxyStates.delete(prop);
|
|
222
|
+
(_a2 = entry[1]) == null ? void 0 : _a2.call(entry);
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
const addListener = (listener) => {
|
|
226
|
+
listeners.add(listener);
|
|
227
|
+
if (listeners.size === 1) {
|
|
228
|
+
propProxyStates.forEach(([propProxyState, prevRemove], prop) => {
|
|
229
|
+
if ((__vite_import_meta_env__$1 ? "production" : void 0) !== "production" && prevRemove) {
|
|
230
|
+
throw new Error("remove already exists");
|
|
231
|
+
}
|
|
232
|
+
const remove = propProxyState[3](createPropListener(prop));
|
|
233
|
+
propProxyStates.set(prop, [propProxyState, remove]);
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
const removeListener = () => {
|
|
237
|
+
listeners.delete(listener);
|
|
238
|
+
if (listeners.size === 0) {
|
|
239
|
+
propProxyStates.forEach(([propProxyState, remove], prop) => {
|
|
240
|
+
if (remove) {
|
|
241
|
+
remove();
|
|
242
|
+
propProxyStates.set(prop, [propProxyState]);
|
|
243
|
+
}
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
};
|
|
247
|
+
return removeListener;
|
|
248
|
+
};
|
|
249
|
+
const baseObject = Array.isArray(initialObject) ? [] : Object.create(Object.getPrototypeOf(initialObject));
|
|
250
|
+
const handler = {
|
|
251
|
+
deleteProperty(target, prop) {
|
|
252
|
+
const prevValue = Reflect.get(target, prop);
|
|
253
|
+
removePropListener(prop);
|
|
254
|
+
const deleted = Reflect.deleteProperty(target, prop);
|
|
255
|
+
if (deleted) {
|
|
256
|
+
notifyUpdate(["delete", [prop], prevValue]);
|
|
257
|
+
}
|
|
258
|
+
return deleted;
|
|
259
|
+
},
|
|
260
|
+
set(target, prop, value, receiver) {
|
|
261
|
+
const hasPrevValue = Reflect.has(target, prop);
|
|
262
|
+
const prevValue = Reflect.get(target, prop, receiver);
|
|
263
|
+
if (hasPrevValue && (objectIs(prevValue, value) || proxyCache.has(value) && objectIs(prevValue, proxyCache.get(value)))) {
|
|
264
|
+
return true;
|
|
265
|
+
}
|
|
266
|
+
removePropListener(prop);
|
|
267
|
+
if (isObject(value)) {
|
|
268
|
+
value = y$2(value) || value;
|
|
269
|
+
}
|
|
270
|
+
let nextValue = value;
|
|
271
|
+
if (value instanceof Promise) {
|
|
272
|
+
value.then((v2) => {
|
|
273
|
+
value.status = "fulfilled";
|
|
274
|
+
value.value = v2;
|
|
275
|
+
notifyUpdate(["resolve", [prop], v2]);
|
|
276
|
+
}).catch((e2) => {
|
|
277
|
+
value.status = "rejected";
|
|
278
|
+
value.reason = e2;
|
|
279
|
+
notifyUpdate(["reject", [prop], e2]);
|
|
280
|
+
});
|
|
281
|
+
} else {
|
|
282
|
+
if (!proxyStateMap.has(value) && canProxy(value)) {
|
|
283
|
+
nextValue = proxyFunction(value);
|
|
284
|
+
}
|
|
285
|
+
const childProxyState = !refSet.has(nextValue) && proxyStateMap.get(nextValue);
|
|
286
|
+
if (childProxyState) {
|
|
287
|
+
addPropListener(prop, childProxyState);
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
Reflect.set(target, prop, nextValue, receiver);
|
|
291
|
+
notifyUpdate(["set", [prop], value, prevValue]);
|
|
292
|
+
return true;
|
|
293
|
+
}
|
|
294
|
+
};
|
|
295
|
+
const proxyObject = newProxy(baseObject, handler);
|
|
296
|
+
proxyCache.set(initialObject, proxyObject);
|
|
297
|
+
const proxyState = [
|
|
298
|
+
baseObject,
|
|
299
|
+
ensureVersion,
|
|
300
|
+
createSnapshot,
|
|
301
|
+
addListener
|
|
302
|
+
];
|
|
303
|
+
proxyStateMap.set(proxyObject, proxyState);
|
|
304
|
+
Reflect.ownKeys(initialObject).forEach((key) => {
|
|
305
|
+
const desc = Object.getOwnPropertyDescriptor(
|
|
306
|
+
initialObject,
|
|
307
|
+
key
|
|
308
|
+
);
|
|
309
|
+
if ("value" in desc) {
|
|
310
|
+
proxyObject[key] = initialObject[key];
|
|
311
|
+
delete desc.value;
|
|
312
|
+
delete desc.writable;
|
|
313
|
+
}
|
|
314
|
+
Object.defineProperty(baseObject, key, desc);
|
|
315
|
+
});
|
|
316
|
+
return proxyObject;
|
|
317
|
+
}) => [
|
|
318
|
+
// public functions
|
|
319
|
+
proxyFunction,
|
|
320
|
+
// shared state
|
|
321
|
+
proxyStateMap,
|
|
322
|
+
refSet,
|
|
323
|
+
// internal things
|
|
324
|
+
objectIs,
|
|
325
|
+
newProxy,
|
|
326
|
+
canProxy,
|
|
327
|
+
defaultHandlePromise,
|
|
328
|
+
snapCache,
|
|
329
|
+
createSnapshot,
|
|
330
|
+
proxyCache,
|
|
331
|
+
versionHolder
|
|
332
|
+
];
|
|
333
|
+
const [defaultProxyFunction] = buildProxyFunction();
|
|
334
|
+
function proxy(initialObject = {}) {
|
|
335
|
+
return defaultProxyFunction(initialObject);
|
|
336
|
+
}
|
|
337
|
+
function subscribe(proxyObject, callback, notifyInSync) {
|
|
338
|
+
const proxyState = proxyStateMap.get(proxyObject);
|
|
339
|
+
if ((__vite_import_meta_env__$1 ? "production" : void 0) !== "production" && !proxyState) {
|
|
340
|
+
console.warn("Please use proxy object");
|
|
341
|
+
}
|
|
342
|
+
let promise;
|
|
343
|
+
const ops = [];
|
|
344
|
+
const addListener = proxyState[3];
|
|
345
|
+
let isListenerActive = false;
|
|
346
|
+
const listener = (op) => {
|
|
347
|
+
ops.push(op);
|
|
348
|
+
if (!promise) {
|
|
349
|
+
promise = Promise.resolve().then(() => {
|
|
350
|
+
promise = void 0;
|
|
351
|
+
if (isListenerActive) {
|
|
352
|
+
callback(ops.splice(0));
|
|
353
|
+
}
|
|
354
|
+
});
|
|
355
|
+
}
|
|
356
|
+
};
|
|
357
|
+
const removeListener = addListener(listener);
|
|
358
|
+
isListenerActive = true;
|
|
359
|
+
return () => {
|
|
360
|
+
isListenerActive = false;
|
|
361
|
+
removeListener();
|
|
362
|
+
};
|
|
363
|
+
}
|
|
364
|
+
function snapshot(proxyObject, handlePromise) {
|
|
365
|
+
const proxyState = proxyStateMap.get(proxyObject);
|
|
366
|
+
if ((__vite_import_meta_env__$1 ? "production" : void 0) !== "production" && !proxyState) {
|
|
367
|
+
console.warn("Please use proxy object");
|
|
368
|
+
}
|
|
369
|
+
const [target, ensureVersion, createSnapshot] = proxyState;
|
|
370
|
+
return createSnapshot(target, ensureVersion(), handlePromise);
|
|
371
|
+
}
|
|
372
|
+
function ref(obj) {
|
|
373
|
+
refSet.add(obj);
|
|
374
|
+
return obj;
|
|
375
|
+
}
|
|
376
|
+
function subscribeKey(proxyObject, key, callback, notifyInSync) {
|
|
377
|
+
let prevValue = proxyObject[key];
|
|
378
|
+
return subscribe(
|
|
379
|
+
proxyObject,
|
|
380
|
+
() => {
|
|
381
|
+
const nextValue = proxyObject[key];
|
|
382
|
+
if (!Object.is(prevValue, nextValue)) {
|
|
383
|
+
callback(prevValue = nextValue);
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
);
|
|
387
|
+
}
|
|
388
|
+
function proxyMap(entries) {
|
|
389
|
+
const map = proxy({
|
|
390
|
+
data: Array.from([]),
|
|
391
|
+
has(key) {
|
|
392
|
+
return this.data.some((p2) => p2[0] === key);
|
|
393
|
+
},
|
|
394
|
+
set(key, value) {
|
|
395
|
+
const record = this.data.find((p2) => p2[0] === key);
|
|
396
|
+
if (record) {
|
|
397
|
+
record[1] = value;
|
|
398
|
+
} else {
|
|
399
|
+
this.data.push([key, value]);
|
|
400
|
+
}
|
|
401
|
+
return this;
|
|
402
|
+
},
|
|
403
|
+
get(key) {
|
|
404
|
+
var _a2;
|
|
405
|
+
return (_a2 = this.data.find((p2) => p2[0] === key)) == null ? void 0 : _a2[1];
|
|
406
|
+
},
|
|
407
|
+
delete(key) {
|
|
408
|
+
const index = this.data.findIndex((p2) => p2[0] === key);
|
|
409
|
+
if (index === -1) {
|
|
410
|
+
return false;
|
|
411
|
+
}
|
|
412
|
+
this.data.splice(index, 1);
|
|
413
|
+
return true;
|
|
414
|
+
},
|
|
415
|
+
clear() {
|
|
416
|
+
this.data.splice(0);
|
|
417
|
+
},
|
|
418
|
+
get size() {
|
|
419
|
+
return this.data.length;
|
|
420
|
+
},
|
|
421
|
+
toJSON() {
|
|
422
|
+
return new Map(this.data);
|
|
423
|
+
},
|
|
424
|
+
forEach(cb) {
|
|
425
|
+
this.data.forEach((p2) => {
|
|
426
|
+
cb(p2[1], p2[0], this);
|
|
427
|
+
});
|
|
428
|
+
},
|
|
429
|
+
keys() {
|
|
430
|
+
return this.data.map((p2) => p2[0]).values();
|
|
431
|
+
},
|
|
432
|
+
values() {
|
|
433
|
+
return this.data.map((p2) => p2[1]).values();
|
|
434
|
+
},
|
|
435
|
+
entries() {
|
|
436
|
+
return new Map(this.data).entries();
|
|
437
|
+
},
|
|
438
|
+
get [Symbol.toStringTag]() {
|
|
439
|
+
return "Map";
|
|
440
|
+
},
|
|
441
|
+
[Symbol.iterator]() {
|
|
442
|
+
return this.entries();
|
|
443
|
+
}
|
|
444
|
+
});
|
|
445
|
+
Object.defineProperties(map, {
|
|
446
|
+
data: {
|
|
447
|
+
enumerable: false
|
|
448
|
+
},
|
|
449
|
+
size: {
|
|
450
|
+
enumerable: false
|
|
451
|
+
},
|
|
452
|
+
toJSON: {
|
|
453
|
+
enumerable: false
|
|
454
|
+
}
|
|
455
|
+
});
|
|
456
|
+
Object.seal(map);
|
|
457
|
+
return map;
|
|
458
|
+
}
|
|
459
|
+
function getW3mThemeVariables(themeVariables, themeType) {
|
|
460
|
+
if (themeType === "light") {
|
|
461
|
+
return {
|
|
462
|
+
"--w3m-accent": (themeVariables == null ? void 0 : themeVariables["--w3m-accent"]) || "hsla(231, 100%, 70%, 1)",
|
|
463
|
+
"--w3m-background": "#fff"
|
|
464
|
+
};
|
|
465
|
+
}
|
|
466
|
+
return {
|
|
467
|
+
"--w3m-accent": (themeVariables == null ? void 0 : themeVariables["--w3m-accent"]) || "hsla(230, 100%, 67%, 1)",
|
|
468
|
+
"--w3m-background": "#121313"
|
|
469
|
+
};
|
|
470
|
+
}
|
|
471
|
+
function tryStringify(o2) {
|
|
472
|
+
try {
|
|
473
|
+
return JSON.stringify(o2);
|
|
474
|
+
} catch (e2) {
|
|
475
|
+
return '"[Circular]"';
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
var quickFormatUnescaped = format$1;
|
|
479
|
+
function format$1(f2, args, opts) {
|
|
480
|
+
var ss = opts && opts.stringify || tryStringify;
|
|
481
|
+
var offset = 1;
|
|
482
|
+
if (typeof f2 === "object" && f2 !== null) {
|
|
483
|
+
var len = args.length + offset;
|
|
484
|
+
if (len === 1) return f2;
|
|
485
|
+
var objects = new Array(len);
|
|
486
|
+
objects[0] = ss(f2);
|
|
487
|
+
for (var index = 1; index < len; index++) {
|
|
488
|
+
objects[index] = ss(args[index]);
|
|
489
|
+
}
|
|
490
|
+
return objects.join(" ");
|
|
491
|
+
}
|
|
492
|
+
if (typeof f2 !== "string") {
|
|
493
|
+
return f2;
|
|
494
|
+
}
|
|
495
|
+
var argLen = args.length;
|
|
496
|
+
if (argLen === 0) return f2;
|
|
497
|
+
var str = "";
|
|
498
|
+
var a2 = 1 - offset;
|
|
499
|
+
var lastPos = -1;
|
|
500
|
+
var flen = f2 && f2.length || 0;
|
|
501
|
+
for (var i2 = 0; i2 < flen; ) {
|
|
502
|
+
if (f2.charCodeAt(i2) === 37 && i2 + 1 < flen) {
|
|
503
|
+
lastPos = lastPos > -1 ? lastPos : 0;
|
|
504
|
+
switch (f2.charCodeAt(i2 + 1)) {
|
|
505
|
+
case 100:
|
|
506
|
+
case 102:
|
|
507
|
+
if (a2 >= argLen)
|
|
508
|
+
break;
|
|
509
|
+
if (args[a2] == null) break;
|
|
510
|
+
if (lastPos < i2)
|
|
511
|
+
str += f2.slice(lastPos, i2);
|
|
512
|
+
str += Number(args[a2]);
|
|
513
|
+
lastPos = i2 + 2;
|
|
514
|
+
i2++;
|
|
515
|
+
break;
|
|
516
|
+
case 105:
|
|
517
|
+
if (a2 >= argLen)
|
|
518
|
+
break;
|
|
519
|
+
if (args[a2] == null) break;
|
|
520
|
+
if (lastPos < i2)
|
|
521
|
+
str += f2.slice(lastPos, i2);
|
|
522
|
+
str += Math.floor(Number(args[a2]));
|
|
523
|
+
lastPos = i2 + 2;
|
|
524
|
+
i2++;
|
|
525
|
+
break;
|
|
526
|
+
case 79:
|
|
527
|
+
case 111:
|
|
528
|
+
case 106:
|
|
529
|
+
if (a2 >= argLen)
|
|
530
|
+
break;
|
|
531
|
+
if (args[a2] === void 0) break;
|
|
532
|
+
if (lastPos < i2)
|
|
533
|
+
str += f2.slice(lastPos, i2);
|
|
534
|
+
var type = typeof args[a2];
|
|
535
|
+
if (type === "string") {
|
|
536
|
+
str += "'" + args[a2] + "'";
|
|
537
|
+
lastPos = i2 + 2;
|
|
538
|
+
i2++;
|
|
539
|
+
break;
|
|
540
|
+
}
|
|
541
|
+
if (type === "function") {
|
|
542
|
+
str += args[a2].name || "<anonymous>";
|
|
543
|
+
lastPos = i2 + 2;
|
|
544
|
+
i2++;
|
|
545
|
+
break;
|
|
546
|
+
}
|
|
547
|
+
str += ss(args[a2]);
|
|
548
|
+
lastPos = i2 + 2;
|
|
549
|
+
i2++;
|
|
550
|
+
break;
|
|
551
|
+
case 115:
|
|
552
|
+
if (a2 >= argLen)
|
|
553
|
+
break;
|
|
554
|
+
if (lastPos < i2)
|
|
555
|
+
str += f2.slice(lastPos, i2);
|
|
556
|
+
str += String(args[a2]);
|
|
557
|
+
lastPos = i2 + 2;
|
|
558
|
+
i2++;
|
|
559
|
+
break;
|
|
560
|
+
case 37:
|
|
561
|
+
if (lastPos < i2)
|
|
562
|
+
str += f2.slice(lastPos, i2);
|
|
563
|
+
str += "%";
|
|
564
|
+
lastPos = i2 + 2;
|
|
565
|
+
i2++;
|
|
566
|
+
a2--;
|
|
567
|
+
break;
|
|
568
|
+
}
|
|
569
|
+
++a2;
|
|
570
|
+
}
|
|
571
|
+
++i2;
|
|
572
|
+
}
|
|
573
|
+
if (lastPos === -1)
|
|
574
|
+
return f2;
|
|
575
|
+
else if (lastPos < flen) {
|
|
576
|
+
str += f2.slice(lastPos);
|
|
577
|
+
}
|
|
578
|
+
return str;
|
|
579
|
+
}
|
|
580
|
+
const format = quickFormatUnescaped;
|
|
581
|
+
var browser = pino;
|
|
582
|
+
const _console = pfGlobalThisOrFallback().console || {};
|
|
583
|
+
const stdSerializers = {
|
|
584
|
+
mapHttpRequest: mock,
|
|
585
|
+
mapHttpResponse: mock,
|
|
586
|
+
wrapRequestSerializer: passthrough,
|
|
587
|
+
wrapResponseSerializer: passthrough,
|
|
588
|
+
wrapErrorSerializer: passthrough,
|
|
589
|
+
req: mock,
|
|
590
|
+
res: mock,
|
|
591
|
+
err: asErrValue
|
|
592
|
+
};
|
|
593
|
+
function shouldSerialize(serialize, serializers) {
|
|
594
|
+
if (Array.isArray(serialize)) {
|
|
595
|
+
const hasToFilter = serialize.filter(function(k2) {
|
|
596
|
+
return k2 !== "!stdSerializers.err";
|
|
597
|
+
});
|
|
598
|
+
return hasToFilter;
|
|
599
|
+
} else if (serialize === true) {
|
|
600
|
+
return Object.keys(serializers);
|
|
601
|
+
}
|
|
602
|
+
return false;
|
|
603
|
+
}
|
|
604
|
+
function pino(opts) {
|
|
605
|
+
opts = opts || {};
|
|
606
|
+
opts.browser = opts.browser || {};
|
|
607
|
+
const transmit2 = opts.browser.transmit;
|
|
608
|
+
if (transmit2 && typeof transmit2.send !== "function") {
|
|
609
|
+
throw Error("pino: transmit option must have a send function");
|
|
610
|
+
}
|
|
611
|
+
const proto = opts.browser.write || _console;
|
|
612
|
+
if (opts.browser.write) opts.browser.asObject = true;
|
|
613
|
+
const serializers = opts.serializers || {};
|
|
614
|
+
const serialize = shouldSerialize(opts.browser.serialize, serializers);
|
|
615
|
+
let stdErrSerialize = opts.browser.serialize;
|
|
616
|
+
if (Array.isArray(opts.browser.serialize) && opts.browser.serialize.indexOf("!stdSerializers.err") > -1) stdErrSerialize = false;
|
|
617
|
+
const levels = ["error", "fatal", "warn", "info", "debug", "trace"];
|
|
618
|
+
if (typeof proto === "function") {
|
|
619
|
+
proto.error = proto.fatal = proto.warn = proto.info = proto.debug = proto.trace = proto;
|
|
620
|
+
}
|
|
621
|
+
if (opts.enabled === false) opts.level = "silent";
|
|
622
|
+
const level = opts.level || "info";
|
|
623
|
+
const logger = Object.create(proto);
|
|
624
|
+
if (!logger.log) logger.log = noop;
|
|
625
|
+
Object.defineProperty(logger, "levelVal", {
|
|
626
|
+
get: getLevelVal
|
|
627
|
+
});
|
|
628
|
+
Object.defineProperty(logger, "level", {
|
|
629
|
+
get: getLevel,
|
|
630
|
+
set: setLevel
|
|
631
|
+
});
|
|
632
|
+
const setOpts = {
|
|
633
|
+
transmit: transmit2,
|
|
634
|
+
serialize,
|
|
635
|
+
asObject: opts.browser.asObject,
|
|
636
|
+
levels,
|
|
637
|
+
timestamp: getTimeFunction(opts)
|
|
638
|
+
};
|
|
639
|
+
logger.levels = pino.levels;
|
|
640
|
+
logger.level = level;
|
|
641
|
+
logger.setMaxListeners = logger.getMaxListeners = logger.emit = logger.addListener = logger.on = logger.prependListener = logger.once = logger.prependOnceListener = logger.removeListener = logger.removeAllListeners = logger.listeners = logger.listenerCount = logger.eventNames = logger.write = logger.flush = noop;
|
|
642
|
+
logger.serializers = serializers;
|
|
643
|
+
logger._serialize = serialize;
|
|
644
|
+
logger._stdErrSerialize = stdErrSerialize;
|
|
645
|
+
logger.child = child;
|
|
646
|
+
if (transmit2) logger._logEvent = createLogEventShape();
|
|
647
|
+
function getLevelVal() {
|
|
648
|
+
return this.level === "silent" ? Infinity : this.levels.values[this.level];
|
|
649
|
+
}
|
|
650
|
+
function getLevel() {
|
|
651
|
+
return this._level;
|
|
652
|
+
}
|
|
653
|
+
function setLevel(level2) {
|
|
654
|
+
if (level2 !== "silent" && !this.levels.values[level2]) {
|
|
655
|
+
throw Error("unknown level " + level2);
|
|
656
|
+
}
|
|
657
|
+
this._level = level2;
|
|
658
|
+
set(setOpts, logger, "error", "log");
|
|
659
|
+
set(setOpts, logger, "fatal", "error");
|
|
660
|
+
set(setOpts, logger, "warn", "error");
|
|
661
|
+
set(setOpts, logger, "info", "log");
|
|
662
|
+
set(setOpts, logger, "debug", "log");
|
|
663
|
+
set(setOpts, logger, "trace", "log");
|
|
664
|
+
}
|
|
665
|
+
function child(bindings, childOptions) {
|
|
666
|
+
if (!bindings) {
|
|
667
|
+
throw new Error("missing bindings for child Pino");
|
|
668
|
+
}
|
|
669
|
+
childOptions = childOptions || {};
|
|
670
|
+
if (serialize && bindings.serializers) {
|
|
671
|
+
childOptions.serializers = bindings.serializers;
|
|
672
|
+
}
|
|
673
|
+
const childOptionsSerializers = childOptions.serializers;
|
|
674
|
+
if (serialize && childOptionsSerializers) {
|
|
675
|
+
var childSerializers = Object.assign({}, serializers, childOptionsSerializers);
|
|
676
|
+
var childSerialize = opts.browser.serialize === true ? Object.keys(childSerializers) : serialize;
|
|
677
|
+
delete bindings.serializers;
|
|
678
|
+
applySerializers([bindings], childSerialize, childSerializers, this._stdErrSerialize);
|
|
679
|
+
}
|
|
680
|
+
function Child(parent) {
|
|
681
|
+
this._childLevel = (parent._childLevel | 0) + 1;
|
|
682
|
+
this.error = bind(parent, bindings, "error");
|
|
683
|
+
this.fatal = bind(parent, bindings, "fatal");
|
|
684
|
+
this.warn = bind(parent, bindings, "warn");
|
|
685
|
+
this.info = bind(parent, bindings, "info");
|
|
686
|
+
this.debug = bind(parent, bindings, "debug");
|
|
687
|
+
this.trace = bind(parent, bindings, "trace");
|
|
688
|
+
if (childSerializers) {
|
|
689
|
+
this.serializers = childSerializers;
|
|
690
|
+
this._serialize = childSerialize;
|
|
691
|
+
}
|
|
692
|
+
if (transmit2) {
|
|
693
|
+
this._logEvent = createLogEventShape(
|
|
694
|
+
[].concat(parent._logEvent.bindings, bindings)
|
|
695
|
+
);
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
Child.prototype = this;
|
|
699
|
+
return new Child(this);
|
|
700
|
+
}
|
|
701
|
+
return logger;
|
|
702
|
+
}
|
|
703
|
+
pino.levels = {
|
|
704
|
+
values: {
|
|
705
|
+
fatal: 60,
|
|
706
|
+
error: 50,
|
|
707
|
+
warn: 40,
|
|
708
|
+
info: 30,
|
|
709
|
+
debug: 20,
|
|
710
|
+
trace: 10
|
|
711
|
+
},
|
|
712
|
+
labels: {
|
|
713
|
+
10: "trace",
|
|
714
|
+
20: "debug",
|
|
715
|
+
30: "info",
|
|
716
|
+
40: "warn",
|
|
717
|
+
50: "error",
|
|
718
|
+
60: "fatal"
|
|
719
|
+
}
|
|
720
|
+
};
|
|
721
|
+
pino.stdSerializers = stdSerializers;
|
|
722
|
+
pino.stdTimeFunctions = Object.assign({}, { nullTime, epochTime, unixTime, isoTime });
|
|
723
|
+
function set(opts, logger, level, fallback) {
|
|
724
|
+
const proto = Object.getPrototypeOf(logger);
|
|
725
|
+
logger[level] = logger.levelVal > logger.levels.values[level] ? noop : proto[level] ? proto[level] : _console[level] || _console[fallback] || noop;
|
|
726
|
+
wrap(opts, logger, level);
|
|
727
|
+
}
|
|
728
|
+
function wrap(opts, logger, level) {
|
|
729
|
+
if (!opts.transmit && logger[level] === noop) return;
|
|
730
|
+
logger[level] = /* @__PURE__ */ function(write) {
|
|
731
|
+
return function LOG() {
|
|
732
|
+
const ts = opts.timestamp();
|
|
733
|
+
const args = new Array(arguments.length);
|
|
734
|
+
const proto = Object.getPrototypeOf && Object.getPrototypeOf(this) === _console ? _console : this;
|
|
735
|
+
for (var i2 = 0; i2 < args.length; i2++) args[i2] = arguments[i2];
|
|
736
|
+
if (opts.serialize && !opts.asObject) {
|
|
737
|
+
applySerializers(args, this._serialize, this.serializers, this._stdErrSerialize);
|
|
738
|
+
}
|
|
739
|
+
if (opts.asObject) write.call(proto, asObject(this, level, args, ts));
|
|
740
|
+
else write.apply(proto, args);
|
|
741
|
+
if (opts.transmit) {
|
|
742
|
+
const transmitLevel = opts.transmit.level || logger.level;
|
|
743
|
+
const transmitValue = pino.levels.values[transmitLevel];
|
|
744
|
+
const methodValue = pino.levels.values[level];
|
|
745
|
+
if (methodValue < transmitValue) return;
|
|
746
|
+
transmit(this, {
|
|
747
|
+
ts,
|
|
748
|
+
methodLevel: level,
|
|
749
|
+
methodValue,
|
|
750
|
+
transmitValue: pino.levels.values[opts.transmit.level || logger.level],
|
|
751
|
+
send: opts.transmit.send,
|
|
752
|
+
val: logger.levelVal
|
|
753
|
+
}, args);
|
|
754
|
+
}
|
|
755
|
+
};
|
|
756
|
+
}(logger[level]);
|
|
757
|
+
}
|
|
758
|
+
function asObject(logger, level, args, ts) {
|
|
759
|
+
if (logger._serialize) applySerializers(args, logger._serialize, logger.serializers, logger._stdErrSerialize);
|
|
760
|
+
const argsCloned = args.slice();
|
|
761
|
+
let msg = argsCloned[0];
|
|
762
|
+
const o2 = {};
|
|
763
|
+
if (ts) {
|
|
764
|
+
o2.time = ts;
|
|
765
|
+
}
|
|
766
|
+
o2.level = pino.levels.values[level];
|
|
767
|
+
let lvl = (logger._childLevel | 0) + 1;
|
|
768
|
+
if (lvl < 1) lvl = 1;
|
|
769
|
+
if (msg !== null && typeof msg === "object") {
|
|
770
|
+
while (lvl-- && typeof argsCloned[0] === "object") {
|
|
771
|
+
Object.assign(o2, argsCloned.shift());
|
|
772
|
+
}
|
|
773
|
+
msg = argsCloned.length ? format(argsCloned.shift(), argsCloned) : void 0;
|
|
774
|
+
} else if (typeof msg === "string") msg = format(argsCloned.shift(), argsCloned);
|
|
775
|
+
if (msg !== void 0) o2.msg = msg;
|
|
776
|
+
return o2;
|
|
777
|
+
}
|
|
778
|
+
function applySerializers(args, serialize, serializers, stdErrSerialize) {
|
|
779
|
+
for (const i2 in args) {
|
|
780
|
+
if (stdErrSerialize && args[i2] instanceof Error) {
|
|
781
|
+
args[i2] = pino.stdSerializers.err(args[i2]);
|
|
782
|
+
} else if (typeof args[i2] === "object" && !Array.isArray(args[i2])) {
|
|
783
|
+
for (const k2 in args[i2]) {
|
|
784
|
+
if (serialize && serialize.indexOf(k2) > -1 && k2 in serializers) {
|
|
785
|
+
args[i2][k2] = serializers[k2](args[i2][k2]);
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
function bind(parent, bindings, level) {
|
|
792
|
+
return function() {
|
|
793
|
+
const args = new Array(1 + arguments.length);
|
|
794
|
+
args[0] = bindings;
|
|
795
|
+
for (var i2 = 1; i2 < args.length; i2++) {
|
|
796
|
+
args[i2] = arguments[i2 - 1];
|
|
797
|
+
}
|
|
798
|
+
return parent[level].apply(this, args);
|
|
799
|
+
};
|
|
800
|
+
}
|
|
801
|
+
function transmit(logger, opts, args) {
|
|
802
|
+
const send = opts.send;
|
|
803
|
+
const ts = opts.ts;
|
|
804
|
+
const methodLevel = opts.methodLevel;
|
|
805
|
+
const methodValue = opts.methodValue;
|
|
806
|
+
const val = opts.val;
|
|
807
|
+
const bindings = logger._logEvent.bindings;
|
|
808
|
+
applySerializers(
|
|
809
|
+
args,
|
|
810
|
+
logger._serialize || Object.keys(logger.serializers),
|
|
811
|
+
logger.serializers,
|
|
812
|
+
logger._stdErrSerialize === void 0 ? true : logger._stdErrSerialize
|
|
813
|
+
);
|
|
814
|
+
logger._logEvent.ts = ts;
|
|
815
|
+
logger._logEvent.messages = args.filter(function(arg) {
|
|
816
|
+
return bindings.indexOf(arg) === -1;
|
|
817
|
+
});
|
|
818
|
+
logger._logEvent.level.label = methodLevel;
|
|
819
|
+
logger._logEvent.level.value = methodValue;
|
|
820
|
+
send(methodLevel, logger._logEvent, val);
|
|
821
|
+
logger._logEvent = createLogEventShape(bindings);
|
|
822
|
+
}
|
|
823
|
+
function createLogEventShape(bindings) {
|
|
824
|
+
return {
|
|
825
|
+
ts: 0,
|
|
826
|
+
messages: [],
|
|
827
|
+
bindings: bindings || [],
|
|
828
|
+
level: { label: "", value: 0 }
|
|
829
|
+
};
|
|
830
|
+
}
|
|
831
|
+
function asErrValue(err) {
|
|
832
|
+
const obj = {
|
|
833
|
+
type: err.constructor.name,
|
|
834
|
+
msg: err.message,
|
|
835
|
+
stack: err.stack
|
|
836
|
+
};
|
|
837
|
+
for (const key in err) {
|
|
838
|
+
if (obj[key] === void 0) {
|
|
839
|
+
obj[key] = err[key];
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
return obj;
|
|
843
|
+
}
|
|
844
|
+
function getTimeFunction(opts) {
|
|
845
|
+
if (typeof opts.timestamp === "function") {
|
|
846
|
+
return opts.timestamp;
|
|
847
|
+
}
|
|
848
|
+
if (opts.timestamp === false) {
|
|
849
|
+
return nullTime;
|
|
850
|
+
}
|
|
851
|
+
return epochTime;
|
|
852
|
+
}
|
|
853
|
+
function mock() {
|
|
854
|
+
return {};
|
|
855
|
+
}
|
|
856
|
+
function passthrough(a2) {
|
|
857
|
+
return a2;
|
|
858
|
+
}
|
|
859
|
+
function noop() {
|
|
860
|
+
}
|
|
861
|
+
function nullTime() {
|
|
862
|
+
return false;
|
|
863
|
+
}
|
|
864
|
+
function epochTime() {
|
|
865
|
+
return Date.now();
|
|
866
|
+
}
|
|
867
|
+
function unixTime() {
|
|
868
|
+
return Math.round(Date.now() / 1e3);
|
|
869
|
+
}
|
|
870
|
+
function isoTime() {
|
|
871
|
+
return new Date(Date.now()).toISOString();
|
|
872
|
+
}
|
|
873
|
+
function pfGlobalThisOrFallback() {
|
|
874
|
+
function defd(o2) {
|
|
875
|
+
return typeof o2 !== "undefined" && o2;
|
|
876
|
+
}
|
|
877
|
+
try {
|
|
878
|
+
if (typeof globalThis !== "undefined") return globalThis;
|
|
879
|
+
Object.defineProperty(Object.prototype, "globalThis", {
|
|
880
|
+
get: function() {
|
|
881
|
+
delete Object.prototype.globalThis;
|
|
882
|
+
return this.globalThis = this;
|
|
883
|
+
},
|
|
884
|
+
configurable: true
|
|
885
|
+
});
|
|
886
|
+
return globalThis;
|
|
887
|
+
} catch (e2) {
|
|
888
|
+
return defd(self) || defd(window) || defd(this) || {};
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
const Ot = /* @__PURE__ */ getDefaultExportFromCjs(browser);
|
|
892
|
+
function base(ALPHABET2) {
|
|
893
|
+
if (ALPHABET2.length >= 255) {
|
|
894
|
+
throw new TypeError("Alphabet too long");
|
|
895
|
+
}
|
|
896
|
+
const BASE_MAP = new Uint8Array(256);
|
|
897
|
+
for (let j2 = 0; j2 < BASE_MAP.length; j2++) {
|
|
898
|
+
BASE_MAP[j2] = 255;
|
|
899
|
+
}
|
|
900
|
+
for (let i2 = 0; i2 < ALPHABET2.length; i2++) {
|
|
901
|
+
const x2 = ALPHABET2.charAt(i2);
|
|
902
|
+
const xc = x2.charCodeAt(0);
|
|
903
|
+
if (BASE_MAP[xc] !== 255) {
|
|
904
|
+
throw new TypeError(x2 + " is ambiguous");
|
|
905
|
+
}
|
|
906
|
+
BASE_MAP[xc] = i2;
|
|
907
|
+
}
|
|
908
|
+
const BASE = ALPHABET2.length;
|
|
909
|
+
const LEADER = ALPHABET2.charAt(0);
|
|
910
|
+
const FACTOR = Math.log(BASE) / Math.log(256);
|
|
911
|
+
const iFACTOR = Math.log(256) / Math.log(BASE);
|
|
912
|
+
function encode(source) {
|
|
913
|
+
if (source instanceof Uint8Array) ;
|
|
914
|
+
else if (ArrayBuffer.isView(source)) {
|
|
915
|
+
source = new Uint8Array(source.buffer, source.byteOffset, source.byteLength);
|
|
916
|
+
} else if (Array.isArray(source)) {
|
|
917
|
+
source = Uint8Array.from(source);
|
|
918
|
+
}
|
|
919
|
+
if (!(source instanceof Uint8Array)) {
|
|
920
|
+
throw new TypeError("Expected Uint8Array");
|
|
921
|
+
}
|
|
922
|
+
if (source.length === 0) {
|
|
923
|
+
return "";
|
|
924
|
+
}
|
|
925
|
+
let zeroes = 0;
|
|
926
|
+
let length = 0;
|
|
927
|
+
let pbegin = 0;
|
|
928
|
+
const pend = source.length;
|
|
929
|
+
while (pbegin !== pend && source[pbegin] === 0) {
|
|
930
|
+
pbegin++;
|
|
931
|
+
zeroes++;
|
|
932
|
+
}
|
|
933
|
+
const size = (pend - pbegin) * iFACTOR + 1 >>> 0;
|
|
934
|
+
const b58 = new Uint8Array(size);
|
|
935
|
+
while (pbegin !== pend) {
|
|
936
|
+
let carry = source[pbegin];
|
|
937
|
+
let i2 = 0;
|
|
938
|
+
for (let it1 = size - 1; (carry !== 0 || i2 < length) && it1 !== -1; it1--, i2++) {
|
|
939
|
+
carry += 256 * b58[it1] >>> 0;
|
|
940
|
+
b58[it1] = carry % BASE >>> 0;
|
|
941
|
+
carry = carry / BASE >>> 0;
|
|
942
|
+
}
|
|
943
|
+
if (carry !== 0) {
|
|
944
|
+
throw new Error("Non-zero carry");
|
|
945
|
+
}
|
|
946
|
+
length = i2;
|
|
947
|
+
pbegin++;
|
|
948
|
+
}
|
|
949
|
+
let it2 = size - length;
|
|
950
|
+
while (it2 !== size && b58[it2] === 0) {
|
|
951
|
+
it2++;
|
|
952
|
+
}
|
|
953
|
+
let str = LEADER.repeat(zeroes);
|
|
954
|
+
for (; it2 < size; ++it2) {
|
|
955
|
+
str += ALPHABET2.charAt(b58[it2]);
|
|
956
|
+
}
|
|
957
|
+
return str;
|
|
958
|
+
}
|
|
959
|
+
function decodeUnsafe(source) {
|
|
960
|
+
if (typeof source !== "string") {
|
|
961
|
+
throw new TypeError("Expected String");
|
|
962
|
+
}
|
|
963
|
+
if (source.length === 0) {
|
|
964
|
+
return new Uint8Array();
|
|
965
|
+
}
|
|
966
|
+
let psz = 0;
|
|
967
|
+
let zeroes = 0;
|
|
968
|
+
let length = 0;
|
|
969
|
+
while (source[psz] === LEADER) {
|
|
970
|
+
zeroes++;
|
|
971
|
+
psz++;
|
|
972
|
+
}
|
|
973
|
+
const size = (source.length - psz) * FACTOR + 1 >>> 0;
|
|
974
|
+
const b256 = new Uint8Array(size);
|
|
975
|
+
while (psz < source.length) {
|
|
976
|
+
const charCode = source.charCodeAt(psz);
|
|
977
|
+
if (charCode > 255) {
|
|
978
|
+
return;
|
|
979
|
+
}
|
|
980
|
+
let carry = BASE_MAP[charCode];
|
|
981
|
+
if (carry === 255) {
|
|
982
|
+
return;
|
|
983
|
+
}
|
|
984
|
+
let i2 = 0;
|
|
985
|
+
for (let it3 = size - 1; (carry !== 0 || i2 < length) && it3 !== -1; it3--, i2++) {
|
|
986
|
+
carry += BASE * b256[it3] >>> 0;
|
|
987
|
+
b256[it3] = carry % 256 >>> 0;
|
|
988
|
+
carry = carry / 256 >>> 0;
|
|
989
|
+
}
|
|
990
|
+
if (carry !== 0) {
|
|
991
|
+
throw new Error("Non-zero carry");
|
|
992
|
+
}
|
|
993
|
+
length = i2;
|
|
994
|
+
psz++;
|
|
995
|
+
}
|
|
996
|
+
let it4 = size - length;
|
|
997
|
+
while (it4 !== size && b256[it4] === 0) {
|
|
998
|
+
it4++;
|
|
999
|
+
}
|
|
1000
|
+
const vch = new Uint8Array(zeroes + (size - it4));
|
|
1001
|
+
let j2 = zeroes;
|
|
1002
|
+
while (it4 !== size) {
|
|
1003
|
+
vch[j2++] = b256[it4++];
|
|
1004
|
+
}
|
|
1005
|
+
return vch;
|
|
1006
|
+
}
|
|
1007
|
+
function decode(string) {
|
|
1008
|
+
const buffer = decodeUnsafe(string);
|
|
1009
|
+
if (buffer) {
|
|
1010
|
+
return buffer;
|
|
1011
|
+
}
|
|
1012
|
+
throw new Error("Non-base" + BASE + " character");
|
|
1013
|
+
}
|
|
1014
|
+
return {
|
|
1015
|
+
encode,
|
|
1016
|
+
decodeUnsafe,
|
|
1017
|
+
decode
|
|
1018
|
+
};
|
|
1019
|
+
}
|
|
1020
|
+
var ALPHABET = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";
|
|
1021
|
+
const bs58 = base(ALPHABET);
|
|
1022
|
+
var cjs = {};
|
|
1023
|
+
/*! *****************************************************************************
|
|
1024
|
+
Copyright (c) Microsoft Corporation.
|
|
1025
|
+
|
|
1026
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
1027
|
+
purpose with or without fee is hereby granted.
|
|
1028
|
+
|
|
1029
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
1030
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
1031
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
1032
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
1033
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
1034
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
1035
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
1036
|
+
***************************************************************************** */
|
|
1037
|
+
var extendStatics = function(d2, b2) {
|
|
1038
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d3, b3) {
|
|
1039
|
+
d3.__proto__ = b3;
|
|
1040
|
+
} || function(d3, b3) {
|
|
1041
|
+
for (var p2 in b3) if (b3.hasOwnProperty(p2)) d3[p2] = b3[p2];
|
|
1042
|
+
};
|
|
1043
|
+
return extendStatics(d2, b2);
|
|
1044
|
+
};
|
|
1045
|
+
function __extends(d2, b2) {
|
|
1046
|
+
extendStatics(d2, b2);
|
|
1047
|
+
function __() {
|
|
1048
|
+
this.constructor = d2;
|
|
1049
|
+
}
|
|
1050
|
+
d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
|
|
1051
|
+
}
|
|
1052
|
+
var __assign = function() {
|
|
1053
|
+
__assign = Object.assign || function __assign2(t2) {
|
|
1054
|
+
for (var s2, i2 = 1, n3 = arguments.length; i2 < n3; i2++) {
|
|
1055
|
+
s2 = arguments[i2];
|
|
1056
|
+
for (var p2 in s2) if (Object.prototype.hasOwnProperty.call(s2, p2)) t2[p2] = s2[p2];
|
|
1057
|
+
}
|
|
1058
|
+
return t2;
|
|
1059
|
+
};
|
|
1060
|
+
return __assign.apply(this, arguments);
|
|
1061
|
+
};
|
|
1062
|
+
function __rest(s2, e2) {
|
|
1063
|
+
var t2 = {};
|
|
1064
|
+
for (var p2 in s2) if (Object.prototype.hasOwnProperty.call(s2, p2) && e2.indexOf(p2) < 0)
|
|
1065
|
+
t2[p2] = s2[p2];
|
|
1066
|
+
if (s2 != null && typeof Object.getOwnPropertySymbols === "function")
|
|
1067
|
+
for (var i2 = 0, p2 = Object.getOwnPropertySymbols(s2); i2 < p2.length; i2++) {
|
|
1068
|
+
if (e2.indexOf(p2[i2]) < 0 && Object.prototype.propertyIsEnumerable.call(s2, p2[i2]))
|
|
1069
|
+
t2[p2[i2]] = s2[p2[i2]];
|
|
1070
|
+
}
|
|
1071
|
+
return t2;
|
|
1072
|
+
}
|
|
1073
|
+
function __decorate(decorators, target, key, desc) {
|
|
1074
|
+
var c2 = arguments.length, r2 = c2 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d2;
|
|
1075
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
|
|
1076
|
+
else for (var i2 = decorators.length - 1; i2 >= 0; i2--) if (d2 = decorators[i2]) r2 = (c2 < 3 ? d2(r2) : c2 > 3 ? d2(target, key, r2) : d2(target, key)) || r2;
|
|
1077
|
+
return c2 > 3 && r2 && Object.defineProperty(target, key, r2), r2;
|
|
1078
|
+
}
|
|
1079
|
+
function __param(paramIndex, decorator) {
|
|
1080
|
+
return function(target, key) {
|
|
1081
|
+
decorator(target, key, paramIndex);
|
|
1082
|
+
};
|
|
1083
|
+
}
|
|
1084
|
+
function __metadata(metadataKey, metadataValue) {
|
|
1085
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
|
1086
|
+
}
|
|
1087
|
+
function __awaiter(thisArg, _arguments, P2, generator) {
|
|
1088
|
+
function adopt(value) {
|
|
1089
|
+
return value instanceof P2 ? value : new P2(function(resolve) {
|
|
1090
|
+
resolve(value);
|
|
1091
|
+
});
|
|
1092
|
+
}
|
|
1093
|
+
return new (P2 || (P2 = Promise))(function(resolve, reject) {
|
|
1094
|
+
function fulfilled(value) {
|
|
1095
|
+
try {
|
|
1096
|
+
step(generator.next(value));
|
|
1097
|
+
} catch (e2) {
|
|
1098
|
+
reject(e2);
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
function rejected(value) {
|
|
1102
|
+
try {
|
|
1103
|
+
step(generator["throw"](value));
|
|
1104
|
+
} catch (e2) {
|
|
1105
|
+
reject(e2);
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
1108
|
+
function step(result) {
|
|
1109
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
1110
|
+
}
|
|
1111
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
1112
|
+
});
|
|
1113
|
+
}
|
|
1114
|
+
function __generator(thisArg, body) {
|
|
1115
|
+
var _2 = { label: 0, sent: function() {
|
|
1116
|
+
if (t2[0] & 1) throw t2[1];
|
|
1117
|
+
return t2[1];
|
|
1118
|
+
}, trys: [], ops: [] }, f2, y3, t2, g2;
|
|
1119
|
+
return g2 = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g2[Symbol.iterator] = function() {
|
|
1120
|
+
return this;
|
|
1121
|
+
}), g2;
|
|
1122
|
+
function verb(n3) {
|
|
1123
|
+
return function(v2) {
|
|
1124
|
+
return step([n3, v2]);
|
|
1125
|
+
};
|
|
1126
|
+
}
|
|
1127
|
+
function step(op) {
|
|
1128
|
+
if (f2) throw new TypeError("Generator is already executing.");
|
|
1129
|
+
while (_2) try {
|
|
1130
|
+
if (f2 = 1, y3 && (t2 = op[0] & 2 ? y3["return"] : op[0] ? y3["throw"] || ((t2 = y3["return"]) && t2.call(y3), 0) : y3.next) && !(t2 = t2.call(y3, op[1])).done) return t2;
|
|
1131
|
+
if (y3 = 0, t2) op = [op[0] & 2, t2.value];
|
|
1132
|
+
switch (op[0]) {
|
|
1133
|
+
case 0:
|
|
1134
|
+
case 1:
|
|
1135
|
+
t2 = op;
|
|
1136
|
+
break;
|
|
1137
|
+
case 4:
|
|
1138
|
+
_2.label++;
|
|
1139
|
+
return { value: op[1], done: false };
|
|
1140
|
+
case 5:
|
|
1141
|
+
_2.label++;
|
|
1142
|
+
y3 = op[1];
|
|
1143
|
+
op = [0];
|
|
1144
|
+
continue;
|
|
1145
|
+
case 7:
|
|
1146
|
+
op = _2.ops.pop();
|
|
1147
|
+
_2.trys.pop();
|
|
1148
|
+
continue;
|
|
1149
|
+
default:
|
|
1150
|
+
if (!(t2 = _2.trys, t2 = t2.length > 0 && t2[t2.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
1151
|
+
_2 = 0;
|
|
1152
|
+
continue;
|
|
1153
|
+
}
|
|
1154
|
+
if (op[0] === 3 && (!t2 || op[1] > t2[0] && op[1] < t2[3])) {
|
|
1155
|
+
_2.label = op[1];
|
|
1156
|
+
break;
|
|
1157
|
+
}
|
|
1158
|
+
if (op[0] === 6 && _2.label < t2[1]) {
|
|
1159
|
+
_2.label = t2[1];
|
|
1160
|
+
t2 = op;
|
|
1161
|
+
break;
|
|
1162
|
+
}
|
|
1163
|
+
if (t2 && _2.label < t2[2]) {
|
|
1164
|
+
_2.label = t2[2];
|
|
1165
|
+
_2.ops.push(op);
|
|
1166
|
+
break;
|
|
1167
|
+
}
|
|
1168
|
+
if (t2[2]) _2.ops.pop();
|
|
1169
|
+
_2.trys.pop();
|
|
1170
|
+
continue;
|
|
1171
|
+
}
|
|
1172
|
+
op = body.call(thisArg, _2);
|
|
1173
|
+
} catch (e2) {
|
|
1174
|
+
op = [6, e2];
|
|
1175
|
+
y3 = 0;
|
|
1176
|
+
} finally {
|
|
1177
|
+
f2 = t2 = 0;
|
|
1178
|
+
}
|
|
1179
|
+
if (op[0] & 5) throw op[1];
|
|
1180
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
function __createBinding(o2, m2, k2, k22) {
|
|
1184
|
+
if (k22 === void 0) k22 = k2;
|
|
1185
|
+
o2[k22] = m2[k2];
|
|
1186
|
+
}
|
|
1187
|
+
function __exportStar(m2, exports) {
|
|
1188
|
+
for (var p2 in m2) if (p2 !== "default" && !exports.hasOwnProperty(p2)) exports[p2] = m2[p2];
|
|
1189
|
+
}
|
|
1190
|
+
function __values(o2) {
|
|
1191
|
+
var s2 = typeof Symbol === "function" && Symbol.iterator, m2 = s2 && o2[s2], i2 = 0;
|
|
1192
|
+
if (m2) return m2.call(o2);
|
|
1193
|
+
if (o2 && typeof o2.length === "number") return {
|
|
1194
|
+
next: function() {
|
|
1195
|
+
if (o2 && i2 >= o2.length) o2 = void 0;
|
|
1196
|
+
return { value: o2 && o2[i2++], done: !o2 };
|
|
1197
|
+
}
|
|
1198
|
+
};
|
|
1199
|
+
throw new TypeError(s2 ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
1200
|
+
}
|
|
1201
|
+
function __read(o2, n3) {
|
|
1202
|
+
var m2 = typeof Symbol === "function" && o2[Symbol.iterator];
|
|
1203
|
+
if (!m2) return o2;
|
|
1204
|
+
var i2 = m2.call(o2), r2, ar = [], e2;
|
|
1205
|
+
try {
|
|
1206
|
+
while ((n3 === void 0 || n3-- > 0) && !(r2 = i2.next()).done) ar.push(r2.value);
|
|
1207
|
+
} catch (error) {
|
|
1208
|
+
e2 = { error };
|
|
1209
|
+
} finally {
|
|
1210
|
+
try {
|
|
1211
|
+
if (r2 && !r2.done && (m2 = i2["return"])) m2.call(i2);
|
|
1212
|
+
} finally {
|
|
1213
|
+
if (e2) throw e2.error;
|
|
1214
|
+
}
|
|
1215
|
+
}
|
|
1216
|
+
return ar;
|
|
1217
|
+
}
|
|
1218
|
+
function __spread() {
|
|
1219
|
+
for (var ar = [], i2 = 0; i2 < arguments.length; i2++)
|
|
1220
|
+
ar = ar.concat(__read(arguments[i2]));
|
|
1221
|
+
return ar;
|
|
1222
|
+
}
|
|
1223
|
+
function __spreadArrays() {
|
|
1224
|
+
for (var s2 = 0, i2 = 0, il = arguments.length; i2 < il; i2++) s2 += arguments[i2].length;
|
|
1225
|
+
for (var r2 = Array(s2), k2 = 0, i2 = 0; i2 < il; i2++)
|
|
1226
|
+
for (var a2 = arguments[i2], j2 = 0, jl = a2.length; j2 < jl; j2++, k2++)
|
|
1227
|
+
r2[k2] = a2[j2];
|
|
1228
|
+
return r2;
|
|
1229
|
+
}
|
|
1230
|
+
function __await(v2) {
|
|
1231
|
+
return this instanceof __await ? (this.v = v2, this) : new __await(v2);
|
|
1232
|
+
}
|
|
1233
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
1234
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
1235
|
+
var g2 = generator.apply(thisArg, _arguments || []), i2, q = [];
|
|
1236
|
+
return i2 = {}, verb("next"), verb("throw"), verb("return"), i2[Symbol.asyncIterator] = function() {
|
|
1237
|
+
return this;
|
|
1238
|
+
}, i2;
|
|
1239
|
+
function verb(n3) {
|
|
1240
|
+
if (g2[n3]) i2[n3] = function(v2) {
|
|
1241
|
+
return new Promise(function(a2, b2) {
|
|
1242
|
+
q.push([n3, v2, a2, b2]) > 1 || resume(n3, v2);
|
|
1243
|
+
});
|
|
1244
|
+
};
|
|
1245
|
+
}
|
|
1246
|
+
function resume(n3, v2) {
|
|
1247
|
+
try {
|
|
1248
|
+
step(g2[n3](v2));
|
|
1249
|
+
} catch (e2) {
|
|
1250
|
+
settle(q[0][3], e2);
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
function step(r2) {
|
|
1254
|
+
r2.value instanceof __await ? Promise.resolve(r2.value.v).then(fulfill, reject) : settle(q[0][2], r2);
|
|
1255
|
+
}
|
|
1256
|
+
function fulfill(value) {
|
|
1257
|
+
resume("next", value);
|
|
1258
|
+
}
|
|
1259
|
+
function reject(value) {
|
|
1260
|
+
resume("throw", value);
|
|
1261
|
+
}
|
|
1262
|
+
function settle(f2, v2) {
|
|
1263
|
+
if (f2(v2), q.shift(), q.length) resume(q[0][0], q[0][1]);
|
|
1264
|
+
}
|
|
1265
|
+
}
|
|
1266
|
+
function __asyncDelegator(o2) {
|
|
1267
|
+
var i2, p2;
|
|
1268
|
+
return i2 = {}, verb("next"), verb("throw", function(e2) {
|
|
1269
|
+
throw e2;
|
|
1270
|
+
}), verb("return"), i2[Symbol.iterator] = function() {
|
|
1271
|
+
return this;
|
|
1272
|
+
}, i2;
|
|
1273
|
+
function verb(n3, f2) {
|
|
1274
|
+
i2[n3] = o2[n3] ? function(v2) {
|
|
1275
|
+
return (p2 = !p2) ? { value: __await(o2[n3](v2)), done: n3 === "return" } : f2 ? f2(v2) : v2;
|
|
1276
|
+
} : f2;
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1279
|
+
function __asyncValues(o2) {
|
|
1280
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
1281
|
+
var m2 = o2[Symbol.asyncIterator], i2;
|
|
1282
|
+
return m2 ? m2.call(o2) : (o2 = typeof __values === "function" ? __values(o2) : o2[Symbol.iterator](), i2 = {}, verb("next"), verb("throw"), verb("return"), i2[Symbol.asyncIterator] = function() {
|
|
1283
|
+
return this;
|
|
1284
|
+
}, i2);
|
|
1285
|
+
function verb(n3) {
|
|
1286
|
+
i2[n3] = o2[n3] && function(v2) {
|
|
1287
|
+
return new Promise(function(resolve, reject) {
|
|
1288
|
+
v2 = o2[n3](v2), settle(resolve, reject, v2.done, v2.value);
|
|
1289
|
+
});
|
|
1290
|
+
};
|
|
1291
|
+
}
|
|
1292
|
+
function settle(resolve, reject, d2, v2) {
|
|
1293
|
+
Promise.resolve(v2).then(function(v3) {
|
|
1294
|
+
resolve({ value: v3, done: d2 });
|
|
1295
|
+
}, reject);
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
function __makeTemplateObject(cooked, raw) {
|
|
1299
|
+
if (Object.defineProperty) {
|
|
1300
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
1301
|
+
} else {
|
|
1302
|
+
cooked.raw = raw;
|
|
1303
|
+
}
|
|
1304
|
+
return cooked;
|
|
1305
|
+
}
|
|
1306
|
+
function __importStar(mod) {
|
|
1307
|
+
if (mod && mod.__esModule) return mod;
|
|
1308
|
+
var result = {};
|
|
1309
|
+
if (mod != null) {
|
|
1310
|
+
for (var k2 in mod) if (Object.hasOwnProperty.call(mod, k2)) result[k2] = mod[k2];
|
|
1311
|
+
}
|
|
1312
|
+
result.default = mod;
|
|
1313
|
+
return result;
|
|
1314
|
+
}
|
|
1315
|
+
function __importDefault(mod) {
|
|
1316
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
1317
|
+
}
|
|
1318
|
+
function __classPrivateFieldGet(receiver, privateMap) {
|
|
1319
|
+
if (!privateMap.has(receiver)) {
|
|
1320
|
+
throw new TypeError("attempted to get private field on non-instance");
|
|
1321
|
+
}
|
|
1322
|
+
return privateMap.get(receiver);
|
|
1323
|
+
}
|
|
1324
|
+
function __classPrivateFieldSet(receiver, privateMap, value) {
|
|
1325
|
+
if (!privateMap.has(receiver)) {
|
|
1326
|
+
throw new TypeError("attempted to set private field on non-instance");
|
|
1327
|
+
}
|
|
1328
|
+
privateMap.set(receiver, value);
|
|
1329
|
+
return value;
|
|
1330
|
+
}
|
|
1331
|
+
const tslib_es6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1332
|
+
__proto__: null,
|
|
1333
|
+
get __assign() {
|
|
1334
|
+
return __assign;
|
|
1335
|
+
},
|
|
1336
|
+
__asyncDelegator,
|
|
1337
|
+
__asyncGenerator,
|
|
1338
|
+
__asyncValues,
|
|
1339
|
+
__await,
|
|
1340
|
+
__awaiter,
|
|
1341
|
+
__classPrivateFieldGet,
|
|
1342
|
+
__classPrivateFieldSet,
|
|
1343
|
+
__createBinding,
|
|
1344
|
+
__decorate,
|
|
1345
|
+
__exportStar,
|
|
1346
|
+
__extends,
|
|
1347
|
+
__generator,
|
|
1348
|
+
__importDefault,
|
|
1349
|
+
__importStar,
|
|
1350
|
+
__makeTemplateObject,
|
|
1351
|
+
__metadata,
|
|
1352
|
+
__param,
|
|
1353
|
+
__read,
|
|
1354
|
+
__rest,
|
|
1355
|
+
__spread,
|
|
1356
|
+
__spreadArrays,
|
|
1357
|
+
__values
|
|
1358
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
1359
|
+
const require$$0 = /* @__PURE__ */ getAugmentedNamespace(tslib_es6);
|
|
1360
|
+
var crypto = {};
|
|
1361
|
+
var hasRequiredCrypto;
|
|
1362
|
+
function requireCrypto() {
|
|
1363
|
+
if (hasRequiredCrypto) return crypto;
|
|
1364
|
+
hasRequiredCrypto = 1;
|
|
1365
|
+
Object.defineProperty(crypto, "__esModule", { value: true });
|
|
1366
|
+
crypto.isBrowserCryptoAvailable = crypto.getSubtleCrypto = crypto.getBrowerCrypto = void 0;
|
|
1367
|
+
function getBrowerCrypto() {
|
|
1368
|
+
return (commonjsGlobal === null || commonjsGlobal === void 0 ? void 0 : commonjsGlobal.crypto) || (commonjsGlobal === null || commonjsGlobal === void 0 ? void 0 : commonjsGlobal.msCrypto) || {};
|
|
1369
|
+
}
|
|
1370
|
+
crypto.getBrowerCrypto = getBrowerCrypto;
|
|
1371
|
+
function getSubtleCrypto() {
|
|
1372
|
+
const browserCrypto = getBrowerCrypto();
|
|
1373
|
+
return browserCrypto.subtle || browserCrypto.webkitSubtle;
|
|
1374
|
+
}
|
|
1375
|
+
crypto.getSubtleCrypto = getSubtleCrypto;
|
|
1376
|
+
function isBrowserCryptoAvailable() {
|
|
1377
|
+
return !!getBrowerCrypto() && !!getSubtleCrypto();
|
|
1378
|
+
}
|
|
1379
|
+
crypto.isBrowserCryptoAvailable = isBrowserCryptoAvailable;
|
|
1380
|
+
return crypto;
|
|
1381
|
+
}
|
|
1382
|
+
var env = {};
|
|
1383
|
+
var hasRequiredEnv;
|
|
1384
|
+
function requireEnv() {
|
|
1385
|
+
if (hasRequiredEnv) return env;
|
|
1386
|
+
hasRequiredEnv = 1;
|
|
1387
|
+
Object.defineProperty(env, "__esModule", { value: true });
|
|
1388
|
+
env.isBrowser = env.isNode = env.isReactNative = void 0;
|
|
1389
|
+
function isReactNative() {
|
|
1390
|
+
return typeof document === "undefined" && typeof navigator !== "undefined" && navigator.product === "ReactNative";
|
|
1391
|
+
}
|
|
1392
|
+
env.isReactNative = isReactNative;
|
|
1393
|
+
function isNode() {
|
|
1394
|
+
return typeof process !== "undefined" && typeof process.versions !== "undefined" && typeof process.versions.node !== "undefined";
|
|
1395
|
+
}
|
|
1396
|
+
env.isNode = isNode;
|
|
1397
|
+
function isBrowser() {
|
|
1398
|
+
return !isReactNative() && !isNode();
|
|
1399
|
+
}
|
|
1400
|
+
env.isBrowser = isBrowser;
|
|
1401
|
+
return env;
|
|
1402
|
+
}
|
|
1403
|
+
(function(exports) {
|
|
1404
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1405
|
+
const tslib_1 = require$$0;
|
|
1406
|
+
tslib_1.__exportStar(requireCrypto(), exports);
|
|
1407
|
+
tslib_1.__exportStar(requireEnv(), exports);
|
|
1408
|
+
})(cjs);
|
|
1409
|
+
var shim = { exports: {} };
|
|
1410
|
+
var useSyncExternalStoreShim_production_min = {};
|
|
1411
|
+
/**
|
|
1412
|
+
* @license React
|
|
1413
|
+
* use-sync-external-store-shim.production.min.js
|
|
1414
|
+
*
|
|
1415
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1416
|
+
*
|
|
1417
|
+
* This source code is licensed under the MIT license found in the
|
|
1418
|
+
* LICENSE file in the root directory of this source tree.
|
|
1419
|
+
*/
|
|
1420
|
+
var hasRequiredUseSyncExternalStoreShim_production_min;
|
|
1421
|
+
function requireUseSyncExternalStoreShim_production_min() {
|
|
1422
|
+
if (hasRequiredUseSyncExternalStoreShim_production_min) return useSyncExternalStoreShim_production_min;
|
|
1423
|
+
hasRequiredUseSyncExternalStoreShim_production_min = 1;
|
|
1424
|
+
var e2 = require$$0$1;
|
|
1425
|
+
function h2(a2, b2) {
|
|
1426
|
+
return a2 === b2 && (0 !== a2 || 1 / a2 === 1 / b2) || a2 !== a2 && b2 !== b2;
|
|
1427
|
+
}
|
|
1428
|
+
var k2 = "function" === typeof Object.is ? Object.is : h2, l2 = e2.useState, m2 = e2.useEffect, n3 = e2.useLayoutEffect, p2 = e2.useDebugValue;
|
|
1429
|
+
function q(a2, b2) {
|
|
1430
|
+
var d2 = b2(), f2 = l2({ inst: { value: d2, getSnapshot: b2 } }), c2 = f2[0].inst, g2 = f2[1];
|
|
1431
|
+
n3(function() {
|
|
1432
|
+
c2.value = d2;
|
|
1433
|
+
c2.getSnapshot = b2;
|
|
1434
|
+
r2(c2) && g2({ inst: c2 });
|
|
1435
|
+
}, [a2, d2, b2]);
|
|
1436
|
+
m2(function() {
|
|
1437
|
+
r2(c2) && g2({ inst: c2 });
|
|
1438
|
+
return a2(function() {
|
|
1439
|
+
r2(c2) && g2({ inst: c2 });
|
|
1440
|
+
});
|
|
1441
|
+
}, [a2]);
|
|
1442
|
+
p2(d2);
|
|
1443
|
+
return d2;
|
|
1444
|
+
}
|
|
1445
|
+
function r2(a2) {
|
|
1446
|
+
var b2 = a2.getSnapshot;
|
|
1447
|
+
a2 = a2.value;
|
|
1448
|
+
try {
|
|
1449
|
+
var d2 = b2();
|
|
1450
|
+
return !k2(a2, d2);
|
|
1451
|
+
} catch (f2) {
|
|
1452
|
+
return true;
|
|
1453
|
+
}
|
|
1454
|
+
}
|
|
1455
|
+
function t2(a2, b2) {
|
|
1456
|
+
return b2();
|
|
1457
|
+
}
|
|
1458
|
+
var u2 = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? t2 : q;
|
|
1459
|
+
useSyncExternalStoreShim_production_min.useSyncExternalStore = void 0 !== e2.useSyncExternalStore ? e2.useSyncExternalStore : u2;
|
|
1460
|
+
return useSyncExternalStoreShim_production_min;
|
|
1461
|
+
}
|
|
1462
|
+
var useSyncExternalStoreShim_development = {};
|
|
1463
|
+
/**
|
|
1464
|
+
* @license React
|
|
1465
|
+
* use-sync-external-store-shim.development.js
|
|
1466
|
+
*
|
|
1467
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1468
|
+
*
|
|
1469
|
+
* This source code is licensed under the MIT license found in the
|
|
1470
|
+
* LICENSE file in the root directory of this source tree.
|
|
1471
|
+
*/
|
|
1472
|
+
var hasRequiredUseSyncExternalStoreShim_development;
|
|
1473
|
+
function requireUseSyncExternalStoreShim_development() {
|
|
1474
|
+
if (hasRequiredUseSyncExternalStoreShim_development) return useSyncExternalStoreShim_development;
|
|
1475
|
+
hasRequiredUseSyncExternalStoreShim_development = 1;
|
|
1476
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1477
|
+
(function() {
|
|
1478
|
+
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
|
|
1479
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
1480
|
+
}
|
|
1481
|
+
var React = require$$0$1;
|
|
1482
|
+
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
1483
|
+
function error(format2) {
|
|
1484
|
+
{
|
|
1485
|
+
{
|
|
1486
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
1487
|
+
args[_key2 - 1] = arguments[_key2];
|
|
1488
|
+
}
|
|
1489
|
+
printWarning("error", format2, args);
|
|
1490
|
+
}
|
|
1491
|
+
}
|
|
1492
|
+
}
|
|
1493
|
+
function printWarning(level, format2, args) {
|
|
1494
|
+
{
|
|
1495
|
+
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
1496
|
+
var stack = ReactDebugCurrentFrame.getStackAddendum();
|
|
1497
|
+
if (stack !== "") {
|
|
1498
|
+
format2 += "%s";
|
|
1499
|
+
args = args.concat([stack]);
|
|
1500
|
+
}
|
|
1501
|
+
var argsWithFormat = args.map(function(item) {
|
|
1502
|
+
return String(item);
|
|
1503
|
+
});
|
|
1504
|
+
argsWithFormat.unshift("Warning: " + format2);
|
|
1505
|
+
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
1506
|
+
}
|
|
1507
|
+
}
|
|
1508
|
+
function is(x2, y3) {
|
|
1509
|
+
return x2 === y3 && (x2 !== 0 || 1 / x2 === 1 / y3) || x2 !== x2 && y3 !== y3;
|
|
1510
|
+
}
|
|
1511
|
+
var objectIs = typeof Object.is === "function" ? Object.is : is;
|
|
1512
|
+
var useState = React.useState, useEffect2 = React.useEffect, useLayoutEffect = React.useLayoutEffect, useDebugValue2 = React.useDebugValue;
|
|
1513
|
+
var didWarnOld18Alpha = false;
|
|
1514
|
+
var didWarnUncachedGetSnapshot = false;
|
|
1515
|
+
function useSyncExternalStore2(subscribe2, getSnapshot, getServerSnapshot) {
|
|
1516
|
+
{
|
|
1517
|
+
if (!didWarnOld18Alpha) {
|
|
1518
|
+
if (React.startTransition !== void 0) {
|
|
1519
|
+
didWarnOld18Alpha = true;
|
|
1520
|
+
error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.");
|
|
1521
|
+
}
|
|
1522
|
+
}
|
|
1523
|
+
}
|
|
1524
|
+
var value = getSnapshot();
|
|
1525
|
+
{
|
|
1526
|
+
if (!didWarnUncachedGetSnapshot) {
|
|
1527
|
+
var cachedValue = getSnapshot();
|
|
1528
|
+
if (!objectIs(value, cachedValue)) {
|
|
1529
|
+
error("The result of getSnapshot should be cached to avoid an infinite loop");
|
|
1530
|
+
didWarnUncachedGetSnapshot = true;
|
|
1531
|
+
}
|
|
1532
|
+
}
|
|
1533
|
+
}
|
|
1534
|
+
var _useState = useState({
|
|
1535
|
+
inst: {
|
|
1536
|
+
value,
|
|
1537
|
+
getSnapshot
|
|
1538
|
+
}
|
|
1539
|
+
}), inst = _useState[0].inst, forceUpdate = _useState[1];
|
|
1540
|
+
useLayoutEffect(function() {
|
|
1541
|
+
inst.value = value;
|
|
1542
|
+
inst.getSnapshot = getSnapshot;
|
|
1543
|
+
if (checkIfSnapshotChanged(inst)) {
|
|
1544
|
+
forceUpdate({
|
|
1545
|
+
inst
|
|
1546
|
+
});
|
|
1547
|
+
}
|
|
1548
|
+
}, [subscribe2, value, getSnapshot]);
|
|
1549
|
+
useEffect2(function() {
|
|
1550
|
+
if (checkIfSnapshotChanged(inst)) {
|
|
1551
|
+
forceUpdate({
|
|
1552
|
+
inst
|
|
1553
|
+
});
|
|
1554
|
+
}
|
|
1555
|
+
var handleStoreChange = function() {
|
|
1556
|
+
if (checkIfSnapshotChanged(inst)) {
|
|
1557
|
+
forceUpdate({
|
|
1558
|
+
inst
|
|
1559
|
+
});
|
|
1560
|
+
}
|
|
1561
|
+
};
|
|
1562
|
+
return subscribe2(handleStoreChange);
|
|
1563
|
+
}, [subscribe2]);
|
|
1564
|
+
useDebugValue2(value);
|
|
1565
|
+
return value;
|
|
1566
|
+
}
|
|
1567
|
+
function checkIfSnapshotChanged(inst) {
|
|
1568
|
+
var latestGetSnapshot = inst.getSnapshot;
|
|
1569
|
+
var prevValue = inst.value;
|
|
1570
|
+
try {
|
|
1571
|
+
var nextValue = latestGetSnapshot();
|
|
1572
|
+
return !objectIs(prevValue, nextValue);
|
|
1573
|
+
} catch (error2) {
|
|
1574
|
+
return true;
|
|
1575
|
+
}
|
|
1576
|
+
}
|
|
1577
|
+
function useSyncExternalStore$1(subscribe2, getSnapshot, getServerSnapshot) {
|
|
1578
|
+
return getSnapshot();
|
|
1579
|
+
}
|
|
1580
|
+
var canUseDOM = !!(typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined");
|
|
1581
|
+
var isServerEnvironment = !canUseDOM;
|
|
1582
|
+
var shim2 = isServerEnvironment ? useSyncExternalStore$1 : useSyncExternalStore2;
|
|
1583
|
+
var useSyncExternalStore$2 = React.useSyncExternalStore !== void 0 ? React.useSyncExternalStore : shim2;
|
|
1584
|
+
useSyncExternalStoreShim_development.useSyncExternalStore = useSyncExternalStore$2;
|
|
1585
|
+
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
|
|
1586
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
1587
|
+
}
|
|
1588
|
+
})();
|
|
1589
|
+
}
|
|
1590
|
+
return useSyncExternalStoreShim_development;
|
|
1591
|
+
}
|
|
1592
|
+
if (process.env.NODE_ENV === "production") {
|
|
1593
|
+
shim.exports = requireUseSyncExternalStoreShim_production_min();
|
|
1594
|
+
} else {
|
|
1595
|
+
shim.exports = requireUseSyncExternalStoreShim_development();
|
|
1596
|
+
}
|
|
1597
|
+
var shimExports = shim.exports;
|
|
1598
|
+
const useSyncExternalStoreExports = /* @__PURE__ */ getDefaultExportFromCjs(shimExports);
|
|
1599
|
+
const __vite_import_meta_env__ = {};
|
|
1600
|
+
const { use } = require$$0$1;
|
|
1601
|
+
const { useSyncExternalStore } = useSyncExternalStoreExports;
|
|
1602
|
+
const useAffectedDebugValue = (state, affected) => {
|
|
1603
|
+
const pathList = useRef();
|
|
1604
|
+
useEffect(() => {
|
|
1605
|
+
pathList.current = w(state, affected);
|
|
1606
|
+
});
|
|
1607
|
+
useDebugValue(pathList.current);
|
|
1608
|
+
};
|
|
1609
|
+
const targetCache = /* @__PURE__ */ new WeakMap();
|
|
1610
|
+
function useSnapshot(proxyObject, options) {
|
|
1611
|
+
const notifyInSync = void 0;
|
|
1612
|
+
const lastSnapshot = useRef();
|
|
1613
|
+
const lastAffected = useRef();
|
|
1614
|
+
let inRender = true;
|
|
1615
|
+
const currSnapshot = useSyncExternalStore(
|
|
1616
|
+
useCallback(
|
|
1617
|
+
(callback) => {
|
|
1618
|
+
const unsub = subscribe(proxyObject, callback);
|
|
1619
|
+
callback();
|
|
1620
|
+
return unsub;
|
|
1621
|
+
},
|
|
1622
|
+
[proxyObject, notifyInSync]
|
|
1623
|
+
),
|
|
1624
|
+
() => {
|
|
1625
|
+
const nextSnapshot = snapshot(proxyObject, use);
|
|
1626
|
+
try {
|
|
1627
|
+
if (!inRender && lastSnapshot.current && lastAffected.current && !p$2(
|
|
1628
|
+
lastSnapshot.current,
|
|
1629
|
+
nextSnapshot,
|
|
1630
|
+
lastAffected.current,
|
|
1631
|
+
/* @__PURE__ */ new WeakMap()
|
|
1632
|
+
)) {
|
|
1633
|
+
return lastSnapshot.current;
|
|
1634
|
+
}
|
|
1635
|
+
} catch (e2) {
|
|
1636
|
+
}
|
|
1637
|
+
return nextSnapshot;
|
|
1638
|
+
},
|
|
1639
|
+
() => snapshot(proxyObject, use)
|
|
1640
|
+
);
|
|
1641
|
+
inRender = false;
|
|
1642
|
+
const currAffected = /* @__PURE__ */ new WeakMap();
|
|
1643
|
+
useEffect(() => {
|
|
1644
|
+
lastSnapshot.current = currSnapshot;
|
|
1645
|
+
lastAffected.current = currAffected;
|
|
1646
|
+
});
|
|
1647
|
+
if ((__vite_import_meta_env__ ? "production" : void 0) !== "production") {
|
|
1648
|
+
useAffectedDebugValue(currSnapshot, currAffected);
|
|
1649
|
+
}
|
|
1650
|
+
const proxyCache = useMemo(() => /* @__PURE__ */ new WeakMap(), []);
|
|
1651
|
+
return a$2(
|
|
1652
|
+
currSnapshot,
|
|
1653
|
+
currAffected,
|
|
1654
|
+
proxyCache,
|
|
1655
|
+
targetCache
|
|
1656
|
+
);
|
|
1657
|
+
}
|
|
1658
|
+
const ConstantsUtil = {
|
|
1659
|
+
ACCOUNT_TABS: [{ label: "Tokens" }, { label: "NFTs" }, { label: "Activity" }],
|
|
1660
|
+
SECURE_SITE_ORIGIN: (typeof process !== "undefined" && typeof process.env !== "undefined" ? process.env["NEXT_PUBLIC_SECURE_SITE_ORIGIN"] : void 0) || "https://secure.walletconnect.org",
|
|
1661
|
+
VIEW_DIRECTION: {
|
|
1662
|
+
Next: "next",
|
|
1663
|
+
Prev: "prev"
|
|
1664
|
+
},
|
|
1665
|
+
DEFAULT_CONNECT_METHOD_ORDER: ["email", "social", "wallet"],
|
|
1666
|
+
ANIMATION_DURATIONS: {
|
|
1667
|
+
HeaderText: 120,
|
|
1668
|
+
ModalHeight: 150,
|
|
1669
|
+
ViewTransition: 150
|
|
1670
|
+
}
|
|
1671
|
+
};
|
|
1672
|
+
/**
|
|
1673
|
+
* @license
|
|
1674
|
+
* Copyright 2019 Google LLC
|
|
1675
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1676
|
+
*/
|
|
1677
|
+
const t$1 = globalThis, e$2 = t$1.ShadowRoot && (void 0 === t$1.ShadyCSS || t$1.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$2 = Symbol(), o$3 = /* @__PURE__ */ new WeakMap();
|
|
1678
|
+
let n$2 = class n {
|
|
1679
|
+
constructor(t2, e2, o2) {
|
|
1680
|
+
if (this._$cssResult$ = true, o2 !== s$2) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
1681
|
+
this.cssText = t2, this.t = e2;
|
|
1682
|
+
}
|
|
1683
|
+
get styleSheet() {
|
|
1684
|
+
let t2 = this.o;
|
|
1685
|
+
const s2 = this.t;
|
|
1686
|
+
if (e$2 && void 0 === t2) {
|
|
1687
|
+
const e2 = void 0 !== s2 && 1 === s2.length;
|
|
1688
|
+
e2 && (t2 = o$3.get(s2)), void 0 === t2 && ((this.o = t2 = new CSSStyleSheet()).replaceSync(this.cssText), e2 && o$3.set(s2, t2));
|
|
1689
|
+
}
|
|
1690
|
+
return t2;
|
|
1691
|
+
}
|
|
1692
|
+
toString() {
|
|
1693
|
+
return this.cssText;
|
|
1694
|
+
}
|
|
1695
|
+
};
|
|
1696
|
+
const r$2 = (t2) => new n$2("string" == typeof t2 ? t2 : t2 + "", void 0, s$2), i$3 = (t2, ...e2) => {
|
|
1697
|
+
const o2 = 1 === t2.length ? t2[0] : e2.reduce((e3, s2, o3) => e3 + ((t3) => {
|
|
1698
|
+
if (true === t3._$cssResult$) return t3.cssText;
|
|
1699
|
+
if ("number" == typeof t3) return t3;
|
|
1700
|
+
throw Error("Value passed to 'css' function must be a 'css' function result: " + t3 + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
1701
|
+
})(s2) + t2[o3 + 1], t2[0]);
|
|
1702
|
+
return new n$2(o2, t2, s$2);
|
|
1703
|
+
}, S$1 = (s2, o2) => {
|
|
1704
|
+
if (e$2) s2.adoptedStyleSheets = o2.map((t2) => t2 instanceof CSSStyleSheet ? t2 : t2.styleSheet);
|
|
1705
|
+
else for (const e2 of o2) {
|
|
1706
|
+
const o3 = document.createElement("style"), n3 = t$1.litNonce;
|
|
1707
|
+
void 0 !== n3 && o3.setAttribute("nonce", n3), o3.textContent = e2.cssText, s2.appendChild(o3);
|
|
1708
|
+
}
|
|
1709
|
+
}, c$2 = e$2 ? (t2) => t2 : (t2) => t2 instanceof CSSStyleSheet ? ((t3) => {
|
|
1710
|
+
let e2 = "";
|
|
1711
|
+
for (const s2 of t3.cssRules) e2 += s2.cssText;
|
|
1712
|
+
return r$2(e2);
|
|
1713
|
+
})(t2) : t2;
|
|
1714
|
+
/**
|
|
1715
|
+
* @license
|
|
1716
|
+
* Copyright 2017 Google LLC
|
|
1717
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1718
|
+
*/
|
|
1719
|
+
const { is: i$2, defineProperty: e$1, getOwnPropertyDescriptor: h$1, getOwnPropertyNames: r$1, getOwnPropertySymbols: o$2, getPrototypeOf: n$1 } = Object, a$1 = globalThis, c$1 = a$1.trustedTypes, l$1 = c$1 ? c$1.emptyScript : "", p$1 = a$1.reactiveElementPolyfillSupport, d$1 = (t2, s2) => t2, u$1 = { toAttribute(t2, s2) {
|
|
1720
|
+
switch (s2) {
|
|
1721
|
+
case Boolean:
|
|
1722
|
+
t2 = t2 ? l$1 : null;
|
|
1723
|
+
break;
|
|
1724
|
+
case Object:
|
|
1725
|
+
case Array:
|
|
1726
|
+
t2 = null == t2 ? t2 : JSON.stringify(t2);
|
|
1727
|
+
}
|
|
1728
|
+
return t2;
|
|
1729
|
+
}, fromAttribute(t2, s2) {
|
|
1730
|
+
let i2 = t2;
|
|
1731
|
+
switch (s2) {
|
|
1732
|
+
case Boolean:
|
|
1733
|
+
i2 = null !== t2;
|
|
1734
|
+
break;
|
|
1735
|
+
case Number:
|
|
1736
|
+
i2 = null === t2 ? null : Number(t2);
|
|
1737
|
+
break;
|
|
1738
|
+
case Object:
|
|
1739
|
+
case Array:
|
|
1740
|
+
try {
|
|
1741
|
+
i2 = JSON.parse(t2);
|
|
1742
|
+
} catch (t3) {
|
|
1743
|
+
i2 = null;
|
|
1744
|
+
}
|
|
1745
|
+
}
|
|
1746
|
+
return i2;
|
|
1747
|
+
} }, f$1 = (t2, s2) => !i$2(t2, s2), b$1 = { attribute: true, type: String, converter: u$1, reflect: false, useDefault: false, hasChanged: f$1 };
|
|
1748
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), a$1.litPropertyMetadata ?? (a$1.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
1749
|
+
let y$1 = class y extends HTMLElement {
|
|
1750
|
+
static addInitializer(t2) {
|
|
1751
|
+
this._$Ei(), (this.l ?? (this.l = [])).push(t2);
|
|
1752
|
+
}
|
|
1753
|
+
static get observedAttributes() {
|
|
1754
|
+
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
1755
|
+
}
|
|
1756
|
+
static createProperty(t2, s2 = b$1) {
|
|
1757
|
+
if (s2.state && (s2.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t2) && ((s2 = Object.create(s2)).wrapped = true), this.elementProperties.set(t2, s2), !s2.noAccessor) {
|
|
1758
|
+
const i2 = Symbol(), h2 = this.getPropertyDescriptor(t2, i2, s2);
|
|
1759
|
+
void 0 !== h2 && e$1(this.prototype, t2, h2);
|
|
1760
|
+
}
|
|
1761
|
+
}
|
|
1762
|
+
static getPropertyDescriptor(t2, s2, i2) {
|
|
1763
|
+
const { get: e2, set: r2 } = h$1(this.prototype, t2) ?? { get() {
|
|
1764
|
+
return this[s2];
|
|
1765
|
+
}, set(t3) {
|
|
1766
|
+
this[s2] = t3;
|
|
1767
|
+
} };
|
|
1768
|
+
return { get: e2, set(s3) {
|
|
1769
|
+
const h2 = e2 == null ? void 0 : e2.call(this);
|
|
1770
|
+
r2 == null ? void 0 : r2.call(this, s3), this.requestUpdate(t2, h2, i2);
|
|
1771
|
+
}, configurable: true, enumerable: true };
|
|
1772
|
+
}
|
|
1773
|
+
static getPropertyOptions(t2) {
|
|
1774
|
+
return this.elementProperties.get(t2) ?? b$1;
|
|
1775
|
+
}
|
|
1776
|
+
static _$Ei() {
|
|
1777
|
+
if (this.hasOwnProperty(d$1("elementProperties"))) return;
|
|
1778
|
+
const t2 = n$1(this);
|
|
1779
|
+
t2.finalize(), void 0 !== t2.l && (this.l = [...t2.l]), this.elementProperties = new Map(t2.elementProperties);
|
|
1780
|
+
}
|
|
1781
|
+
static finalize() {
|
|
1782
|
+
if (this.hasOwnProperty(d$1("finalized"))) return;
|
|
1783
|
+
if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d$1("properties"))) {
|
|
1784
|
+
const t3 = this.properties, s2 = [...r$1(t3), ...o$2(t3)];
|
|
1785
|
+
for (const i2 of s2) this.createProperty(i2, t3[i2]);
|
|
1786
|
+
}
|
|
1787
|
+
const t2 = this[Symbol.metadata];
|
|
1788
|
+
if (null !== t2) {
|
|
1789
|
+
const s2 = litPropertyMetadata.get(t2);
|
|
1790
|
+
if (void 0 !== s2) for (const [t3, i2] of s2) this.elementProperties.set(t3, i2);
|
|
1791
|
+
}
|
|
1792
|
+
this._$Eh = /* @__PURE__ */ new Map();
|
|
1793
|
+
for (const [t3, s2] of this.elementProperties) {
|
|
1794
|
+
const i2 = this._$Eu(t3, s2);
|
|
1795
|
+
void 0 !== i2 && this._$Eh.set(i2, t3);
|
|
1796
|
+
}
|
|
1797
|
+
this.elementStyles = this.finalizeStyles(this.styles);
|
|
1798
|
+
}
|
|
1799
|
+
static finalizeStyles(s2) {
|
|
1800
|
+
const i2 = [];
|
|
1801
|
+
if (Array.isArray(s2)) {
|
|
1802
|
+
const e2 = new Set(s2.flat(1 / 0).reverse());
|
|
1803
|
+
for (const s3 of e2) i2.unshift(c$2(s3));
|
|
1804
|
+
} else void 0 !== s2 && i2.push(c$2(s2));
|
|
1805
|
+
return i2;
|
|
1806
|
+
}
|
|
1807
|
+
static _$Eu(t2, s2) {
|
|
1808
|
+
const i2 = s2.attribute;
|
|
1809
|
+
return false === i2 ? void 0 : "string" == typeof i2 ? i2 : "string" == typeof t2 ? t2.toLowerCase() : void 0;
|
|
1810
|
+
}
|
|
1811
|
+
constructor() {
|
|
1812
|
+
super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
|
|
1813
|
+
}
|
|
1814
|
+
_$Ev() {
|
|
1815
|
+
var _a2;
|
|
1816
|
+
this._$ES = new Promise((t2) => this.enableUpdating = t2), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (_a2 = this.constructor.l) == null ? void 0 : _a2.forEach((t2) => t2(this));
|
|
1817
|
+
}
|
|
1818
|
+
addController(t2) {
|
|
1819
|
+
var _a2;
|
|
1820
|
+
(this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t2), void 0 !== this.renderRoot && this.isConnected && ((_a2 = t2.hostConnected) == null ? void 0 : _a2.call(t2));
|
|
1821
|
+
}
|
|
1822
|
+
removeController(t2) {
|
|
1823
|
+
var _a2;
|
|
1824
|
+
(_a2 = this._$EO) == null ? void 0 : _a2.delete(t2);
|
|
1825
|
+
}
|
|
1826
|
+
_$E_() {
|
|
1827
|
+
const t2 = /* @__PURE__ */ new Map(), s2 = this.constructor.elementProperties;
|
|
1828
|
+
for (const i2 of s2.keys()) this.hasOwnProperty(i2) && (t2.set(i2, this[i2]), delete this[i2]);
|
|
1829
|
+
t2.size > 0 && (this._$Ep = t2);
|
|
1830
|
+
}
|
|
1831
|
+
createRenderRoot() {
|
|
1832
|
+
const t2 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
1833
|
+
return S$1(t2, this.constructor.elementStyles), t2;
|
|
1834
|
+
}
|
|
1835
|
+
connectedCallback() {
|
|
1836
|
+
var _a2;
|
|
1837
|
+
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(true), (_a2 = this._$EO) == null ? void 0 : _a2.forEach((t2) => {
|
|
1838
|
+
var _a3;
|
|
1839
|
+
return (_a3 = t2.hostConnected) == null ? void 0 : _a3.call(t2);
|
|
1840
|
+
});
|
|
1841
|
+
}
|
|
1842
|
+
enableUpdating(t2) {
|
|
1843
|
+
}
|
|
1844
|
+
disconnectedCallback() {
|
|
1845
|
+
var _a2;
|
|
1846
|
+
(_a2 = this._$EO) == null ? void 0 : _a2.forEach((t2) => {
|
|
1847
|
+
var _a3;
|
|
1848
|
+
return (_a3 = t2.hostDisconnected) == null ? void 0 : _a3.call(t2);
|
|
1849
|
+
});
|
|
1850
|
+
}
|
|
1851
|
+
attributeChangedCallback(t2, s2, i2) {
|
|
1852
|
+
this._$AK(t2, i2);
|
|
1853
|
+
}
|
|
1854
|
+
_$ET(t2, s2) {
|
|
1855
|
+
var _a2;
|
|
1856
|
+
const i2 = this.constructor.elementProperties.get(t2), e2 = this.constructor._$Eu(t2, i2);
|
|
1857
|
+
if (void 0 !== e2 && true === i2.reflect) {
|
|
1858
|
+
const h2 = (void 0 !== ((_a2 = i2.converter) == null ? void 0 : _a2.toAttribute) ? i2.converter : u$1).toAttribute(s2, i2.type);
|
|
1859
|
+
this._$Em = t2, null == h2 ? this.removeAttribute(e2) : this.setAttribute(e2, h2), this._$Em = null;
|
|
1860
|
+
}
|
|
1861
|
+
}
|
|
1862
|
+
_$AK(t2, s2) {
|
|
1863
|
+
var _a2, _b;
|
|
1864
|
+
const i2 = this.constructor, e2 = i2._$Eh.get(t2);
|
|
1865
|
+
if (void 0 !== e2 && this._$Em !== e2) {
|
|
1866
|
+
const t3 = i2.getPropertyOptions(e2), h2 = "function" == typeof t3.converter ? { fromAttribute: t3.converter } : void 0 !== ((_a2 = t3.converter) == null ? void 0 : _a2.fromAttribute) ? t3.converter : u$1;
|
|
1867
|
+
this._$Em = e2, this[e2] = h2.fromAttribute(s2, t3.type) ?? ((_b = this._$Ej) == null ? void 0 : _b.get(e2)) ?? null, this._$Em = null;
|
|
1868
|
+
}
|
|
1869
|
+
}
|
|
1870
|
+
requestUpdate(t2, s2, i2) {
|
|
1871
|
+
var _a2;
|
|
1872
|
+
if (void 0 !== t2) {
|
|
1873
|
+
const e2 = this.constructor, h2 = this[t2];
|
|
1874
|
+
if (i2 ?? (i2 = e2.getPropertyOptions(t2)), !((i2.hasChanged ?? f$1)(h2, s2) || i2.useDefault && i2.reflect && h2 === ((_a2 = this._$Ej) == null ? void 0 : _a2.get(t2)) && !this.hasAttribute(e2._$Eu(t2, i2)))) return;
|
|
1875
|
+
this.C(t2, s2, i2);
|
|
1876
|
+
}
|
|
1877
|
+
false === this.isUpdatePending && (this._$ES = this._$EP());
|
|
1878
|
+
}
|
|
1879
|
+
C(t2, s2, { useDefault: i2, reflect: e2, wrapped: h2 }, r2) {
|
|
1880
|
+
i2 && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t2) && (this._$Ej.set(t2, r2 ?? s2 ?? this[t2]), true !== h2 || void 0 !== r2) || (this._$AL.has(t2) || (this.hasUpdated || i2 || (s2 = void 0), this._$AL.set(t2, s2)), true === e2 && this._$Em !== t2 && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(t2));
|
|
1881
|
+
}
|
|
1882
|
+
async _$EP() {
|
|
1883
|
+
this.isUpdatePending = true;
|
|
1884
|
+
try {
|
|
1885
|
+
await this._$ES;
|
|
1886
|
+
} catch (t3) {
|
|
1887
|
+
Promise.reject(t3);
|
|
1888
|
+
}
|
|
1889
|
+
const t2 = this.scheduleUpdate();
|
|
1890
|
+
return null != t2 && await t2, !this.isUpdatePending;
|
|
1891
|
+
}
|
|
1892
|
+
scheduleUpdate() {
|
|
1893
|
+
return this.performUpdate();
|
|
1894
|
+
}
|
|
1895
|
+
performUpdate() {
|
|
1896
|
+
var _a2;
|
|
1897
|
+
if (!this.isUpdatePending) return;
|
|
1898
|
+
if (!this.hasUpdated) {
|
|
1899
|
+
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
1900
|
+
for (const [t4, s3] of this._$Ep) this[t4] = s3;
|
|
1901
|
+
this._$Ep = void 0;
|
|
1902
|
+
}
|
|
1903
|
+
const t3 = this.constructor.elementProperties;
|
|
1904
|
+
if (t3.size > 0) for (const [s3, i2] of t3) {
|
|
1905
|
+
const { wrapped: t4 } = i2, e2 = this[s3];
|
|
1906
|
+
true !== t4 || this._$AL.has(s3) || void 0 === e2 || this.C(s3, void 0, i2, e2);
|
|
1907
|
+
}
|
|
1908
|
+
}
|
|
1909
|
+
let t2 = false;
|
|
1910
|
+
const s2 = this._$AL;
|
|
1911
|
+
try {
|
|
1912
|
+
t2 = this.shouldUpdate(s2), t2 ? (this.willUpdate(s2), (_a2 = this._$EO) == null ? void 0 : _a2.forEach((t3) => {
|
|
1913
|
+
var _a3;
|
|
1914
|
+
return (_a3 = t3.hostUpdate) == null ? void 0 : _a3.call(t3);
|
|
1915
|
+
}), this.update(s2)) : this._$EM();
|
|
1916
|
+
} catch (s3) {
|
|
1917
|
+
throw t2 = false, this._$EM(), s3;
|
|
1918
|
+
}
|
|
1919
|
+
t2 && this._$AE(s2);
|
|
1920
|
+
}
|
|
1921
|
+
willUpdate(t2) {
|
|
1922
|
+
}
|
|
1923
|
+
_$AE(t2) {
|
|
1924
|
+
var _a2;
|
|
1925
|
+
(_a2 = this._$EO) == null ? void 0 : _a2.forEach((t3) => {
|
|
1926
|
+
var _a3;
|
|
1927
|
+
return (_a3 = t3.hostUpdated) == null ? void 0 : _a3.call(t3);
|
|
1928
|
+
}), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t2)), this.updated(t2);
|
|
1929
|
+
}
|
|
1930
|
+
_$EM() {
|
|
1931
|
+
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false;
|
|
1932
|
+
}
|
|
1933
|
+
get updateComplete() {
|
|
1934
|
+
return this.getUpdateComplete();
|
|
1935
|
+
}
|
|
1936
|
+
getUpdateComplete() {
|
|
1937
|
+
return this._$ES;
|
|
1938
|
+
}
|
|
1939
|
+
shouldUpdate(t2) {
|
|
1940
|
+
return true;
|
|
1941
|
+
}
|
|
1942
|
+
update(t2) {
|
|
1943
|
+
this._$Eq && (this._$Eq = this._$Eq.forEach((t3) => this._$ET(t3, this[t3]))), this._$EM();
|
|
1944
|
+
}
|
|
1945
|
+
updated(t2) {
|
|
1946
|
+
}
|
|
1947
|
+
firstUpdated(t2) {
|
|
1948
|
+
}
|
|
1949
|
+
};
|
|
1950
|
+
y$1.elementStyles = [], y$1.shadowRootOptions = { mode: "open" }, y$1[d$1("elementProperties")] = /* @__PURE__ */ new Map(), y$1[d$1("finalized")] = /* @__PURE__ */ new Map(), p$1 == null ? void 0 : p$1({ ReactiveElement: y$1 }), (a$1.reactiveElementVersions ?? (a$1.reactiveElementVersions = [])).push("2.1.0");
|
|
1951
|
+
/**
|
|
1952
|
+
* @license
|
|
1953
|
+
* Copyright 2017 Google LLC
|
|
1954
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1955
|
+
*/
|
|
1956
|
+
const t = globalThis, i$1 = t.trustedTypes, s$1 = i$1 ? i$1.createPolicy("lit-html", { createHTML: (t2) => t2 }) : void 0, e = "$lit$", h = `lit$${Math.random().toFixed(9).slice(2)}$`, o$1 = "?" + h, n2 = `<${o$1}>`, r = document, l = () => r.createComment(""), c = (t2) => null === t2 || "object" != typeof t2 && "function" != typeof t2, a = Array.isArray, u = (t2) => a(t2) || "function" == typeof (t2 == null ? void 0 : t2[Symbol.iterator]), d = "[ \n\f\r]", f = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, v = /-->/g, _ = />/g, m = RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^
|
|
1957
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), p = /'/g, g = /"/g, $ = /^(?:script|style|textarea|title)$/i, y2 = (t2) => (i2, ...s2) => ({ _$litType$: t2, strings: i2, values: s2 }), x = y2(1), b = y2(2), T = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), A = /* @__PURE__ */ new WeakMap(), C = r.createTreeWalker(r, 129);
|
|
1958
|
+
function P(t2, i2) {
|
|
1959
|
+
if (!a(t2) || !t2.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
1960
|
+
return void 0 !== s$1 ? s$1.createHTML(i2) : i2;
|
|
1961
|
+
}
|
|
1962
|
+
const V = (t2, i2) => {
|
|
1963
|
+
const s2 = t2.length - 1, o2 = [];
|
|
1964
|
+
let r2, l2 = 2 === i2 ? "<svg>" : 3 === i2 ? "<math>" : "", c2 = f;
|
|
1965
|
+
for (let i3 = 0; i3 < s2; i3++) {
|
|
1966
|
+
const s3 = t2[i3];
|
|
1967
|
+
let a2, u2, d2 = -1, y3 = 0;
|
|
1968
|
+
for (; y3 < s3.length && (c2.lastIndex = y3, u2 = c2.exec(s3), null !== u2); ) y3 = c2.lastIndex, c2 === f ? "!--" === u2[1] ? c2 = v : void 0 !== u2[1] ? c2 = _ : void 0 !== u2[2] ? ($.test(u2[2]) && (r2 = RegExp("</" + u2[2], "g")), c2 = m) : void 0 !== u2[3] && (c2 = m) : c2 === m ? ">" === u2[0] ? (c2 = r2 ?? f, d2 = -1) : void 0 === u2[1] ? d2 = -2 : (d2 = c2.lastIndex - u2[2].length, a2 = u2[1], c2 = void 0 === u2[3] ? m : '"' === u2[3] ? g : p) : c2 === g || c2 === p ? c2 = m : c2 === v || c2 === _ ? c2 = f : (c2 = m, r2 = void 0);
|
|
1969
|
+
const x2 = c2 === m && t2[i3 + 1].startsWith("/>") ? " " : "";
|
|
1970
|
+
l2 += c2 === f ? s3 + n2 : d2 >= 0 ? (o2.push(a2), s3.slice(0, d2) + e + s3.slice(d2) + h + x2) : s3 + h + (-2 === d2 ? i3 : x2);
|
|
1971
|
+
}
|
|
1972
|
+
return [P(t2, l2 + (t2[s2] || "<?>") + (2 === i2 ? "</svg>" : 3 === i2 ? "</math>" : "")), o2];
|
|
1973
|
+
};
|
|
1974
|
+
class N {
|
|
1975
|
+
constructor({ strings: t2, _$litType$: s2 }, n3) {
|
|
1976
|
+
let r2;
|
|
1977
|
+
this.parts = [];
|
|
1978
|
+
let c2 = 0, a2 = 0;
|
|
1979
|
+
const u2 = t2.length - 1, d2 = this.parts, [f2, v2] = V(t2, s2);
|
|
1980
|
+
if (this.el = N.createElement(f2, n3), C.currentNode = this.el.content, 2 === s2 || 3 === s2) {
|
|
1981
|
+
const t3 = this.el.content.firstChild;
|
|
1982
|
+
t3.replaceWith(...t3.childNodes);
|
|
1983
|
+
}
|
|
1984
|
+
for (; null !== (r2 = C.nextNode()) && d2.length < u2; ) {
|
|
1985
|
+
if (1 === r2.nodeType) {
|
|
1986
|
+
if (r2.hasAttributes()) for (const t3 of r2.getAttributeNames()) if (t3.endsWith(e)) {
|
|
1987
|
+
const i2 = v2[a2++], s3 = r2.getAttribute(t3).split(h), e2 = /([.?@])?(.*)/.exec(i2);
|
|
1988
|
+
d2.push({ type: 1, index: c2, name: e2[2], strings: s3, ctor: "." === e2[1] ? H : "?" === e2[1] ? I : "@" === e2[1] ? L : k }), r2.removeAttribute(t3);
|
|
1989
|
+
} else t3.startsWith(h) && (d2.push({ type: 6, index: c2 }), r2.removeAttribute(t3));
|
|
1990
|
+
if ($.test(r2.tagName)) {
|
|
1991
|
+
const t3 = r2.textContent.split(h), s3 = t3.length - 1;
|
|
1992
|
+
if (s3 > 0) {
|
|
1993
|
+
r2.textContent = i$1 ? i$1.emptyScript : "";
|
|
1994
|
+
for (let i2 = 0; i2 < s3; i2++) r2.append(t3[i2], l()), C.nextNode(), d2.push({ type: 2, index: ++c2 });
|
|
1995
|
+
r2.append(t3[s3], l());
|
|
1996
|
+
}
|
|
1997
|
+
}
|
|
1998
|
+
} else if (8 === r2.nodeType) if (r2.data === o$1) d2.push({ type: 2, index: c2 });
|
|
1999
|
+
else {
|
|
2000
|
+
let t3 = -1;
|
|
2001
|
+
for (; -1 !== (t3 = r2.data.indexOf(h, t3 + 1)); ) d2.push({ type: 7, index: c2 }), t3 += h.length - 1;
|
|
2002
|
+
}
|
|
2003
|
+
c2++;
|
|
2004
|
+
}
|
|
2005
|
+
}
|
|
2006
|
+
static createElement(t2, i2) {
|
|
2007
|
+
const s2 = r.createElement("template");
|
|
2008
|
+
return s2.innerHTML = t2, s2;
|
|
2009
|
+
}
|
|
2010
|
+
}
|
|
2011
|
+
function S(t2, i2, s2 = t2, e2) {
|
|
2012
|
+
var _a2, _b;
|
|
2013
|
+
if (i2 === T) return i2;
|
|
2014
|
+
let h2 = void 0 !== e2 ? (_a2 = s2._$Co) == null ? void 0 : _a2[e2] : s2._$Cl;
|
|
2015
|
+
const o2 = c(i2) ? void 0 : i2._$litDirective$;
|
|
2016
|
+
return (h2 == null ? void 0 : h2.constructor) !== o2 && ((_b = h2 == null ? void 0 : h2._$AO) == null ? void 0 : _b.call(h2, false), void 0 === o2 ? h2 = void 0 : (h2 = new o2(t2), h2._$AT(t2, s2, e2)), void 0 !== e2 ? (s2._$Co ?? (s2._$Co = []))[e2] = h2 : s2._$Cl = h2), void 0 !== h2 && (i2 = S(t2, h2._$AS(t2, i2.values), h2, e2)), i2;
|
|
2017
|
+
}
|
|
2018
|
+
class M {
|
|
2019
|
+
constructor(t2, i2) {
|
|
2020
|
+
this._$AV = [], this._$AN = void 0, this._$AD = t2, this._$AM = i2;
|
|
2021
|
+
}
|
|
2022
|
+
get parentNode() {
|
|
2023
|
+
return this._$AM.parentNode;
|
|
2024
|
+
}
|
|
2025
|
+
get _$AU() {
|
|
2026
|
+
return this._$AM._$AU;
|
|
2027
|
+
}
|
|
2028
|
+
u(t2) {
|
|
2029
|
+
const { el: { content: i2 }, parts: s2 } = this._$AD, e2 = ((t2 == null ? void 0 : t2.creationScope) ?? r).importNode(i2, true);
|
|
2030
|
+
C.currentNode = e2;
|
|
2031
|
+
let h2 = C.nextNode(), o2 = 0, n3 = 0, l2 = s2[0];
|
|
2032
|
+
for (; void 0 !== l2; ) {
|
|
2033
|
+
if (o2 === l2.index) {
|
|
2034
|
+
let i3;
|
|
2035
|
+
2 === l2.type ? i3 = new R(h2, h2.nextSibling, this, t2) : 1 === l2.type ? i3 = new l2.ctor(h2, l2.name, l2.strings, this, t2) : 6 === l2.type && (i3 = new z(h2, this, t2)), this._$AV.push(i3), l2 = s2[++n3];
|
|
2036
|
+
}
|
|
2037
|
+
o2 !== (l2 == null ? void 0 : l2.index) && (h2 = C.nextNode(), o2++);
|
|
2038
|
+
}
|
|
2039
|
+
return C.currentNode = r, e2;
|
|
2040
|
+
}
|
|
2041
|
+
p(t2) {
|
|
2042
|
+
let i2 = 0;
|
|
2043
|
+
for (const s2 of this._$AV) void 0 !== s2 && (void 0 !== s2.strings ? (s2._$AI(t2, s2, i2), i2 += s2.strings.length - 2) : s2._$AI(t2[i2])), i2++;
|
|
2044
|
+
}
|
|
2045
|
+
}
|
|
2046
|
+
class R {
|
|
2047
|
+
get _$AU() {
|
|
2048
|
+
var _a2;
|
|
2049
|
+
return ((_a2 = this._$AM) == null ? void 0 : _a2._$AU) ?? this._$Cv;
|
|
2050
|
+
}
|
|
2051
|
+
constructor(t2, i2, s2, e2) {
|
|
2052
|
+
this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t2, this._$AB = i2, this._$AM = s2, this.options = e2, this._$Cv = (e2 == null ? void 0 : e2.isConnected) ?? true;
|
|
2053
|
+
}
|
|
2054
|
+
get parentNode() {
|
|
2055
|
+
let t2 = this._$AA.parentNode;
|
|
2056
|
+
const i2 = this._$AM;
|
|
2057
|
+
return void 0 !== i2 && 11 === (t2 == null ? void 0 : t2.nodeType) && (t2 = i2.parentNode), t2;
|
|
2058
|
+
}
|
|
2059
|
+
get startNode() {
|
|
2060
|
+
return this._$AA;
|
|
2061
|
+
}
|
|
2062
|
+
get endNode() {
|
|
2063
|
+
return this._$AB;
|
|
2064
|
+
}
|
|
2065
|
+
_$AI(t2, i2 = this) {
|
|
2066
|
+
t2 = S(this, t2, i2), c(t2) ? t2 === E || null == t2 || "" === t2 ? (this._$AH !== E && this._$AR(), this._$AH = E) : t2 !== this._$AH && t2 !== T && this._(t2) : void 0 !== t2._$litType$ ? this.$(t2) : void 0 !== t2.nodeType ? this.T(t2) : u(t2) ? this.k(t2) : this._(t2);
|
|
2067
|
+
}
|
|
2068
|
+
O(t2) {
|
|
2069
|
+
return this._$AA.parentNode.insertBefore(t2, this._$AB);
|
|
2070
|
+
}
|
|
2071
|
+
T(t2) {
|
|
2072
|
+
this._$AH !== t2 && (this._$AR(), this._$AH = this.O(t2));
|
|
2073
|
+
}
|
|
2074
|
+
_(t2) {
|
|
2075
|
+
this._$AH !== E && c(this._$AH) ? this._$AA.nextSibling.data = t2 : this.T(r.createTextNode(t2)), this._$AH = t2;
|
|
2076
|
+
}
|
|
2077
|
+
$(t2) {
|
|
2078
|
+
var _a2;
|
|
2079
|
+
const { values: i2, _$litType$: s2 } = t2, e2 = "number" == typeof s2 ? this._$AC(t2) : (void 0 === s2.el && (s2.el = N.createElement(P(s2.h, s2.h[0]), this.options)), s2);
|
|
2080
|
+
if (((_a2 = this._$AH) == null ? void 0 : _a2._$AD) === e2) this._$AH.p(i2);
|
|
2081
|
+
else {
|
|
2082
|
+
const t3 = new M(e2, this), s3 = t3.u(this.options);
|
|
2083
|
+
t3.p(i2), this.T(s3), this._$AH = t3;
|
|
2084
|
+
}
|
|
2085
|
+
}
|
|
2086
|
+
_$AC(t2) {
|
|
2087
|
+
let i2 = A.get(t2.strings);
|
|
2088
|
+
return void 0 === i2 && A.set(t2.strings, i2 = new N(t2)), i2;
|
|
2089
|
+
}
|
|
2090
|
+
k(t2) {
|
|
2091
|
+
a(this._$AH) || (this._$AH = [], this._$AR());
|
|
2092
|
+
const i2 = this._$AH;
|
|
2093
|
+
let s2, e2 = 0;
|
|
2094
|
+
for (const h2 of t2) e2 === i2.length ? i2.push(s2 = new R(this.O(l()), this.O(l()), this, this.options)) : s2 = i2[e2], s2._$AI(h2), e2++;
|
|
2095
|
+
e2 < i2.length && (this._$AR(s2 && s2._$AB.nextSibling, e2), i2.length = e2);
|
|
2096
|
+
}
|
|
2097
|
+
_$AR(t2 = this._$AA.nextSibling, i2) {
|
|
2098
|
+
var _a2;
|
|
2099
|
+
for ((_a2 = this._$AP) == null ? void 0 : _a2.call(this, false, true, i2); t2 && t2 !== this._$AB; ) {
|
|
2100
|
+
const i3 = t2.nextSibling;
|
|
2101
|
+
t2.remove(), t2 = i3;
|
|
2102
|
+
}
|
|
2103
|
+
}
|
|
2104
|
+
setConnected(t2) {
|
|
2105
|
+
var _a2;
|
|
2106
|
+
void 0 === this._$AM && (this._$Cv = t2, (_a2 = this._$AP) == null ? void 0 : _a2.call(this, t2));
|
|
2107
|
+
}
|
|
2108
|
+
}
|
|
2109
|
+
class k {
|
|
2110
|
+
get tagName() {
|
|
2111
|
+
return this.element.tagName;
|
|
2112
|
+
}
|
|
2113
|
+
get _$AU() {
|
|
2114
|
+
return this._$AM._$AU;
|
|
2115
|
+
}
|
|
2116
|
+
constructor(t2, i2, s2, e2, h2) {
|
|
2117
|
+
this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t2, this.name = i2, this._$AM = e2, this.options = h2, s2.length > 2 || "" !== s2[0] || "" !== s2[1] ? (this._$AH = Array(s2.length - 1).fill(new String()), this.strings = s2) : this._$AH = E;
|
|
2118
|
+
}
|
|
2119
|
+
_$AI(t2, i2 = this, s2, e2) {
|
|
2120
|
+
const h2 = this.strings;
|
|
2121
|
+
let o2 = false;
|
|
2122
|
+
if (void 0 === h2) t2 = S(this, t2, i2, 0), o2 = !c(t2) || t2 !== this._$AH && t2 !== T, o2 && (this._$AH = t2);
|
|
2123
|
+
else {
|
|
2124
|
+
const e3 = t2;
|
|
2125
|
+
let n3, r2;
|
|
2126
|
+
for (t2 = h2[0], n3 = 0; n3 < h2.length - 1; n3++) r2 = S(this, e3[s2 + n3], i2, n3), r2 === T && (r2 = this._$AH[n3]), o2 || (o2 = !c(r2) || r2 !== this._$AH[n3]), r2 === E ? t2 = E : t2 !== E && (t2 += (r2 ?? "") + h2[n3 + 1]), this._$AH[n3] = r2;
|
|
2127
|
+
}
|
|
2128
|
+
o2 && !e2 && this.j(t2);
|
|
2129
|
+
}
|
|
2130
|
+
j(t2) {
|
|
2131
|
+
t2 === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t2 ?? "");
|
|
2132
|
+
}
|
|
2133
|
+
}
|
|
2134
|
+
class H extends k {
|
|
2135
|
+
constructor() {
|
|
2136
|
+
super(...arguments), this.type = 3;
|
|
2137
|
+
}
|
|
2138
|
+
j(t2) {
|
|
2139
|
+
this.element[this.name] = t2 === E ? void 0 : t2;
|
|
2140
|
+
}
|
|
2141
|
+
}
|
|
2142
|
+
class I extends k {
|
|
2143
|
+
constructor() {
|
|
2144
|
+
super(...arguments), this.type = 4;
|
|
2145
|
+
}
|
|
2146
|
+
j(t2) {
|
|
2147
|
+
this.element.toggleAttribute(this.name, !!t2 && t2 !== E);
|
|
2148
|
+
}
|
|
2149
|
+
}
|
|
2150
|
+
class L extends k {
|
|
2151
|
+
constructor(t2, i2, s2, e2, h2) {
|
|
2152
|
+
super(t2, i2, s2, e2, h2), this.type = 5;
|
|
2153
|
+
}
|
|
2154
|
+
_$AI(t2, i2 = this) {
|
|
2155
|
+
if ((t2 = S(this, t2, i2, 0) ?? E) === T) return;
|
|
2156
|
+
const s2 = this._$AH, e2 = t2 === E && s2 !== E || t2.capture !== s2.capture || t2.once !== s2.once || t2.passive !== s2.passive, h2 = t2 !== E && (s2 === E || e2);
|
|
2157
|
+
e2 && this.element.removeEventListener(this.name, this, s2), h2 && this.element.addEventListener(this.name, this, t2), this._$AH = t2;
|
|
2158
|
+
}
|
|
2159
|
+
handleEvent(t2) {
|
|
2160
|
+
var _a2;
|
|
2161
|
+
"function" == typeof this._$AH ? this._$AH.call(((_a2 = this.options) == null ? void 0 : _a2.host) ?? this.element, t2) : this._$AH.handleEvent(t2);
|
|
2162
|
+
}
|
|
2163
|
+
}
|
|
2164
|
+
class z {
|
|
2165
|
+
constructor(t2, i2, s2) {
|
|
2166
|
+
this.element = t2, this.type = 6, this._$AN = void 0, this._$AM = i2, this.options = s2;
|
|
2167
|
+
}
|
|
2168
|
+
get _$AU() {
|
|
2169
|
+
return this._$AM._$AU;
|
|
2170
|
+
}
|
|
2171
|
+
_$AI(t2) {
|
|
2172
|
+
S(this, t2);
|
|
2173
|
+
}
|
|
2174
|
+
}
|
|
2175
|
+
const j = t.litHtmlPolyfillSupport;
|
|
2176
|
+
j == null ? void 0 : j(N, R), (t.litHtmlVersions ?? (t.litHtmlVersions = [])).push("3.3.0");
|
|
2177
|
+
const B = (t2, i2, s2) => {
|
|
2178
|
+
const e2 = (s2 == null ? void 0 : s2.renderBefore) ?? i2;
|
|
2179
|
+
let h2 = e2._$litPart$;
|
|
2180
|
+
if (void 0 === h2) {
|
|
2181
|
+
const t3 = (s2 == null ? void 0 : s2.renderBefore) ?? null;
|
|
2182
|
+
e2._$litPart$ = h2 = new R(i2.insertBefore(l(), t3), t3, void 0, s2 ?? {});
|
|
2183
|
+
}
|
|
2184
|
+
return h2._$AI(t2), h2;
|
|
2185
|
+
};
|
|
2186
|
+
/**
|
|
2187
|
+
* @license
|
|
2188
|
+
* Copyright 2017 Google LLC
|
|
2189
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2190
|
+
*/
|
|
2191
|
+
const s = globalThis;
|
|
2192
|
+
class i extends y$1 {
|
|
2193
|
+
constructor() {
|
|
2194
|
+
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
2195
|
+
}
|
|
2196
|
+
createRenderRoot() {
|
|
2197
|
+
var _a2;
|
|
2198
|
+
const t2 = super.createRenderRoot();
|
|
2199
|
+
return (_a2 = this.renderOptions).renderBefore ?? (_a2.renderBefore = t2.firstChild), t2;
|
|
2200
|
+
}
|
|
2201
|
+
update(t2) {
|
|
2202
|
+
const r2 = this.render();
|
|
2203
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t2), this._$Do = B(r2, this.renderRoot, this.renderOptions);
|
|
2204
|
+
}
|
|
2205
|
+
connectedCallback() {
|
|
2206
|
+
var _a2;
|
|
2207
|
+
super.connectedCallback(), (_a2 = this._$Do) == null ? void 0 : _a2.setConnected(true);
|
|
2208
|
+
}
|
|
2209
|
+
disconnectedCallback() {
|
|
2210
|
+
var _a2;
|
|
2211
|
+
super.disconnectedCallback(), (_a2 = this._$Do) == null ? void 0 : _a2.setConnected(false);
|
|
2212
|
+
}
|
|
2213
|
+
render() {
|
|
2214
|
+
return T;
|
|
2215
|
+
}
|
|
2216
|
+
}
|
|
2217
|
+
i._$litElement$ = true, i["finalized"] = true, (_a = s.litElementHydrateSupport) == null ? void 0 : _a.call(s, { LitElement: i });
|
|
2218
|
+
const o = s.litElementPolyfillSupport;
|
|
2219
|
+
o == null ? void 0 : o({ LitElement: i });
|
|
2220
|
+
(s.litElementVersions ?? (s.litElementVersions = [])).push("4.2.0");
|
|
2221
|
+
let themeTag = void 0;
|
|
2222
|
+
let darkModeTag = void 0;
|
|
2223
|
+
let lightModeTag = void 0;
|
|
2224
|
+
function initializeTheming(themeVariables, themeMode) {
|
|
2225
|
+
themeTag = document.createElement("style");
|
|
2226
|
+
darkModeTag = document.createElement("style");
|
|
2227
|
+
lightModeTag = document.createElement("style");
|
|
2228
|
+
themeTag.textContent = createRootStyles(themeVariables).core.cssText;
|
|
2229
|
+
darkModeTag.textContent = createRootStyles(themeVariables).dark.cssText;
|
|
2230
|
+
lightModeTag.textContent = createRootStyles(themeVariables).light.cssText;
|
|
2231
|
+
document.head.appendChild(themeTag);
|
|
2232
|
+
document.head.appendChild(darkModeTag);
|
|
2233
|
+
document.head.appendChild(lightModeTag);
|
|
2234
|
+
setColorTheme(themeMode);
|
|
2235
|
+
}
|
|
2236
|
+
function setColorTheme(themeMode) {
|
|
2237
|
+
if (darkModeTag && lightModeTag) {
|
|
2238
|
+
if (themeMode === "light") {
|
|
2239
|
+
darkModeTag.removeAttribute("media");
|
|
2240
|
+
lightModeTag.media = "enabled";
|
|
2241
|
+
} else {
|
|
2242
|
+
lightModeTag.removeAttribute("media");
|
|
2243
|
+
darkModeTag.media = "enabled";
|
|
2244
|
+
}
|
|
2245
|
+
}
|
|
2246
|
+
}
|
|
2247
|
+
function setThemeVariables(themeVariables) {
|
|
2248
|
+
if (themeTag && darkModeTag && lightModeTag) {
|
|
2249
|
+
themeTag.textContent = createRootStyles(themeVariables).core.cssText;
|
|
2250
|
+
darkModeTag.textContent = createRootStyles(themeVariables).dark.cssText;
|
|
2251
|
+
lightModeTag.textContent = createRootStyles(themeVariables).light.cssText;
|
|
2252
|
+
}
|
|
2253
|
+
}
|
|
2254
|
+
function createRootStyles(themeVariables) {
|
|
2255
|
+
return {
|
|
2256
|
+
core: i$3`
|
|
2257
|
+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
|
|
2258
|
+
@keyframes w3m-shake {
|
|
2259
|
+
0% {
|
|
2260
|
+
transform: scale(1) rotate(0deg);
|
|
2261
|
+
}
|
|
2262
|
+
20% {
|
|
2263
|
+
transform: scale(1) rotate(-1deg);
|
|
2264
|
+
}
|
|
2265
|
+
40% {
|
|
2266
|
+
transform: scale(1) rotate(1.5deg);
|
|
2267
|
+
}
|
|
2268
|
+
60% {
|
|
2269
|
+
transform: scale(1) rotate(-1.5deg);
|
|
2270
|
+
}
|
|
2271
|
+
80% {
|
|
2272
|
+
transform: scale(1) rotate(1deg);
|
|
2273
|
+
}
|
|
2274
|
+
100% {
|
|
2275
|
+
transform: scale(1) rotate(0deg);
|
|
2276
|
+
}
|
|
2277
|
+
}
|
|
2278
|
+
@keyframes w3m-iframe-fade-out {
|
|
2279
|
+
0% {
|
|
2280
|
+
opacity: 1;
|
|
2281
|
+
}
|
|
2282
|
+
100% {
|
|
2283
|
+
opacity: 0;
|
|
2284
|
+
}
|
|
2285
|
+
}
|
|
2286
|
+
@keyframes w3m-iframe-zoom-in {
|
|
2287
|
+
0% {
|
|
2288
|
+
transform: translateY(50px);
|
|
2289
|
+
opacity: 0;
|
|
2290
|
+
}
|
|
2291
|
+
100% {
|
|
2292
|
+
transform: translateY(0px);
|
|
2293
|
+
opacity: 1;
|
|
2294
|
+
}
|
|
2295
|
+
}
|
|
2296
|
+
@keyframes w3m-iframe-zoom-in-mobile {
|
|
2297
|
+
0% {
|
|
2298
|
+
transform: scale(0.95);
|
|
2299
|
+
opacity: 0;
|
|
2300
|
+
}
|
|
2301
|
+
100% {
|
|
2302
|
+
transform: scale(1);
|
|
2303
|
+
opacity: 1;
|
|
2304
|
+
}
|
|
2305
|
+
}
|
|
2306
|
+
:root {
|
|
2307
|
+
--w3m-modal-width: 360px;
|
|
2308
|
+
--w3m-color-mix-strength: ${r$2((themeVariables == null ? void 0 : themeVariables["--w3m-color-mix-strength"]) ? `${themeVariables["--w3m-color-mix-strength"]}%` : "0%")};
|
|
2309
|
+
--w3m-font-family: ${r$2((themeVariables == null ? void 0 : themeVariables["--w3m-font-family"]) || "Inter, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;")};
|
|
2310
|
+
--w3m-font-size-master: ${r$2((themeVariables == null ? void 0 : themeVariables["--w3m-font-size-master"]) || "10px")};
|
|
2311
|
+
--w3m-border-radius-master: ${r$2((themeVariables == null ? void 0 : themeVariables["--w3m-border-radius-master"]) || "4px")};
|
|
2312
|
+
--w3m-z-index: ${r$2((themeVariables == null ? void 0 : themeVariables["--w3m-z-index"]) || 999)};
|
|
2313
|
+
|
|
2314
|
+
--wui-font-family: var(--w3m-font-family);
|
|
2315
|
+
|
|
2316
|
+
--wui-font-size-mini: calc(var(--w3m-font-size-master) * 0.8);
|
|
2317
|
+
--wui-font-size-micro: var(--w3m-font-size-master);
|
|
2318
|
+
--wui-font-size-tiny: calc(var(--w3m-font-size-master) * 1.2);
|
|
2319
|
+
--wui-font-size-small: calc(var(--w3m-font-size-master) * 1.4);
|
|
2320
|
+
--wui-font-size-paragraph: calc(var(--w3m-font-size-master) * 1.6);
|
|
2321
|
+
--wui-font-size-medium: calc(var(--w3m-font-size-master) * 1.8);
|
|
2322
|
+
--wui-font-size-large: calc(var(--w3m-font-size-master) * 2);
|
|
2323
|
+
--wui-font-size-title-6: calc(var(--w3m-font-size-master) * 2.2);
|
|
2324
|
+
--wui-font-size-medium-title: calc(var(--w3m-font-size-master) * 2.4);
|
|
2325
|
+
--wui-font-size-2xl: calc(var(--w3m-font-size-master) * 4);
|
|
2326
|
+
|
|
2327
|
+
--wui-border-radius-5xs: var(--w3m-border-radius-master);
|
|
2328
|
+
--wui-border-radius-4xs: calc(var(--w3m-border-radius-master) * 1.5);
|
|
2329
|
+
--wui-border-radius-3xs: calc(var(--w3m-border-radius-master) * 2);
|
|
2330
|
+
--wui-border-radius-xxs: calc(var(--w3m-border-radius-master) * 3);
|
|
2331
|
+
--wui-border-radius-xs: calc(var(--w3m-border-radius-master) * 4);
|
|
2332
|
+
--wui-border-radius-s: calc(var(--w3m-border-radius-master) * 5);
|
|
2333
|
+
--wui-border-radius-m: calc(var(--w3m-border-radius-master) * 7);
|
|
2334
|
+
--wui-border-radius-l: calc(var(--w3m-border-radius-master) * 9);
|
|
2335
|
+
--wui-border-radius-3xl: calc(var(--w3m-border-radius-master) * 20);
|
|
2336
|
+
|
|
2337
|
+
--wui-font-weight-light: 400;
|
|
2338
|
+
--wui-font-weight-regular: 500;
|
|
2339
|
+
--wui-font-weight-medium: 600;
|
|
2340
|
+
--wui-font-weight-bold: 700;
|
|
2341
|
+
|
|
2342
|
+
--wui-letter-spacing-2xl: -1.6px;
|
|
2343
|
+
--wui-letter-spacing-medium-title: -0.96px;
|
|
2344
|
+
--wui-letter-spacing-title-6: -0.88px;
|
|
2345
|
+
--wui-letter-spacing-large: -0.8px;
|
|
2346
|
+
--wui-letter-spacing-medium: -0.72px;
|
|
2347
|
+
--wui-letter-spacing-paragraph: -0.64px;
|
|
2348
|
+
--wui-letter-spacing-small: -0.56px;
|
|
2349
|
+
--wui-letter-spacing-tiny: -0.48px;
|
|
2350
|
+
--wui-letter-spacing-micro: -0.2px;
|
|
2351
|
+
--wui-letter-spacing-mini: -0.16px;
|
|
2352
|
+
|
|
2353
|
+
--wui-spacing-0: 0px;
|
|
2354
|
+
--wui-spacing-4xs: 2px;
|
|
2355
|
+
--wui-spacing-3xs: 4px;
|
|
2356
|
+
--wui-spacing-xxs: 6px;
|
|
2357
|
+
--wui-spacing-2xs: 7px;
|
|
2358
|
+
--wui-spacing-xs: 8px;
|
|
2359
|
+
--wui-spacing-1xs: 10px;
|
|
2360
|
+
--wui-spacing-s: 12px;
|
|
2361
|
+
--wui-spacing-m: 14px;
|
|
2362
|
+
--wui-spacing-l: 16px;
|
|
2363
|
+
--wui-spacing-2l: 18px;
|
|
2364
|
+
--wui-spacing-xl: 20px;
|
|
2365
|
+
--wui-spacing-xxl: 24px;
|
|
2366
|
+
--wui-spacing-2xl: 32px;
|
|
2367
|
+
--wui-spacing-3xl: 40px;
|
|
2368
|
+
--wui-spacing-4xl: 90px;
|
|
2369
|
+
--wui-spacing-5xl: 95px;
|
|
2370
|
+
|
|
2371
|
+
--wui-icon-box-size-xxs: 14px;
|
|
2372
|
+
--wui-icon-box-size-xs: 20px;
|
|
2373
|
+
--wui-icon-box-size-sm: 24px;
|
|
2374
|
+
--wui-icon-box-size-md: 32px;
|
|
2375
|
+
--wui-icon-box-size-mdl: 36px;
|
|
2376
|
+
--wui-icon-box-size-lg: 40px;
|
|
2377
|
+
--wui-icon-box-size-2lg: 48px;
|
|
2378
|
+
--wui-icon-box-size-xl: 64px;
|
|
2379
|
+
|
|
2380
|
+
--wui-icon-size-inherit: inherit;
|
|
2381
|
+
--wui-icon-size-xxs: 10px;
|
|
2382
|
+
--wui-icon-size-xs: 12px;
|
|
2383
|
+
--wui-icon-size-sm: 14px;
|
|
2384
|
+
--wui-icon-size-md: 16px;
|
|
2385
|
+
--wui-icon-size-mdl: 18px;
|
|
2386
|
+
--wui-icon-size-lg: 20px;
|
|
2387
|
+
--wui-icon-size-xl: 24px;
|
|
2388
|
+
--wui-icon-size-xxl: 28px;
|
|
2389
|
+
|
|
2390
|
+
--wui-wallet-image-size-inherit: inherit;
|
|
2391
|
+
--wui-wallet-image-size-sm: 40px;
|
|
2392
|
+
--wui-wallet-image-size-md: 56px;
|
|
2393
|
+
--wui-wallet-image-size-lg: 80px;
|
|
2394
|
+
|
|
2395
|
+
--wui-visual-size-size-inherit: inherit;
|
|
2396
|
+
--wui-visual-size-sm: 40px;
|
|
2397
|
+
--wui-visual-size-md: 55px;
|
|
2398
|
+
--wui-visual-size-lg: 80px;
|
|
2399
|
+
|
|
2400
|
+
--wui-box-size-md: 100px;
|
|
2401
|
+
--wui-box-size-lg: 120px;
|
|
2402
|
+
|
|
2403
|
+
--wui-ease-out-power-2: cubic-bezier(0, 0, 0.22, 1);
|
|
2404
|
+
--wui-ease-out-power-1: cubic-bezier(0, 0, 0.55, 1);
|
|
2405
|
+
|
|
2406
|
+
--wui-ease-in-power-3: cubic-bezier(0.66, 0, 1, 1);
|
|
2407
|
+
--wui-ease-in-power-2: cubic-bezier(0.45, 0, 1, 1);
|
|
2408
|
+
--wui-ease-in-power-1: cubic-bezier(0.3, 0, 1, 1);
|
|
2409
|
+
|
|
2410
|
+
--wui-ease-inout-power-1: cubic-bezier(0.45, 0, 0.55, 1);
|
|
2411
|
+
|
|
2412
|
+
--wui-duration-lg: 200ms;
|
|
2413
|
+
--wui-duration-md: 125ms;
|
|
2414
|
+
--wui-duration-sm: 75ms;
|
|
2415
|
+
|
|
2416
|
+
--wui-path-network-sm: path(
|
|
2417
|
+
'M15.4 2.1a5.21 5.21 0 0 1 5.2 0l11.61 6.7a5.21 5.21 0 0 1 2.61 4.52v13.4c0 1.87-1 3.59-2.6 4.52l-11.61 6.7c-1.62.93-3.6.93-5.22 0l-11.6-6.7a5.21 5.21 0 0 1-2.61-4.51v-13.4c0-1.87 1-3.6 2.6-4.52L15.4 2.1Z'
|
|
2418
|
+
);
|
|
2419
|
+
|
|
2420
|
+
--wui-path-network-md: path(
|
|
2421
|
+
'M43.4605 10.7248L28.0485 1.61089C25.5438 0.129705 22.4562 0.129705 19.9515 1.61088L4.53951 10.7248C2.03626 12.2051 0.5 14.9365 0.5 17.886V36.1139C0.5 39.0635 2.03626 41.7949 4.53951 43.2752L19.9515 52.3891C22.4562 53.8703 25.5438 53.8703 28.0485 52.3891L43.4605 43.2752C45.9637 41.7949 47.5 39.0635 47.5 36.114V17.8861C47.5 14.9365 45.9637 12.2051 43.4605 10.7248Z'
|
|
2422
|
+
);
|
|
2423
|
+
|
|
2424
|
+
--wui-path-network-lg: path(
|
|
2425
|
+
'M78.3244 18.926L50.1808 2.45078C45.7376 -0.150261 40.2624 -0.150262 35.8192 2.45078L7.6756 18.926C3.23322 21.5266 0.5 26.3301 0.5 31.5248V64.4752C0.5 69.6699 3.23322 74.4734 7.6756 77.074L35.8192 93.5492C40.2624 96.1503 45.7376 96.1503 50.1808 93.5492L78.3244 77.074C82.7668 74.4734 85.5 69.6699 85.5 64.4752V31.5248C85.5 26.3301 82.7668 21.5266 78.3244 18.926Z'
|
|
2426
|
+
);
|
|
2427
|
+
|
|
2428
|
+
--wui-width-network-sm: 36px;
|
|
2429
|
+
--wui-width-network-md: 48px;
|
|
2430
|
+
--wui-width-network-lg: 86px;
|
|
2431
|
+
|
|
2432
|
+
--wui-height-network-sm: 40px;
|
|
2433
|
+
--wui-height-network-md: 54px;
|
|
2434
|
+
--wui-height-network-lg: 96px;
|
|
2435
|
+
|
|
2436
|
+
--wui-icon-size-network-xs: 12px;
|
|
2437
|
+
--wui-icon-size-network-sm: 16px;
|
|
2438
|
+
--wui-icon-size-network-md: 24px;
|
|
2439
|
+
--wui-icon-size-network-lg: 42px;
|
|
2440
|
+
|
|
2441
|
+
--wui-color-inherit: inherit;
|
|
2442
|
+
|
|
2443
|
+
--wui-color-inverse-100: #fff;
|
|
2444
|
+
--wui-color-inverse-000: #000;
|
|
2445
|
+
|
|
2446
|
+
--wui-cover: rgba(20, 20, 20, 0.8);
|
|
2447
|
+
|
|
2448
|
+
--wui-color-modal-bg: var(--wui-color-modal-bg-base);
|
|
2449
|
+
|
|
2450
|
+
--wui-color-accent-100: var(--wui-color-accent-base-100);
|
|
2451
|
+
--wui-color-accent-090: var(--wui-color-accent-base-090);
|
|
2452
|
+
--wui-color-accent-080: var(--wui-color-accent-base-080);
|
|
2453
|
+
|
|
2454
|
+
--wui-color-success-100: var(--wui-color-success-base-100);
|
|
2455
|
+
--wui-color-success-125: var(--wui-color-success-base-125);
|
|
2456
|
+
|
|
2457
|
+
--wui-color-warning-100: var(--wui-color-warning-base-100);
|
|
2458
|
+
|
|
2459
|
+
--wui-color-error-100: var(--wui-color-error-base-100);
|
|
2460
|
+
--wui-color-error-125: var(--wui-color-error-base-125);
|
|
2461
|
+
|
|
2462
|
+
--wui-color-blue-100: var(--wui-color-blue-base-100);
|
|
2463
|
+
--wui-color-blue-90: var(--wui-color-blue-base-90);
|
|
2464
|
+
|
|
2465
|
+
--wui-icon-box-bg-error-100: var(--wui-icon-box-bg-error-base-100);
|
|
2466
|
+
--wui-icon-box-bg-blue-100: var(--wui-icon-box-bg-blue-base-100);
|
|
2467
|
+
--wui-icon-box-bg-success-100: var(--wui-icon-box-bg-success-base-100);
|
|
2468
|
+
--wui-icon-box-bg-inverse-100: var(--wui-icon-box-bg-inverse-base-100);
|
|
2469
|
+
|
|
2470
|
+
--wui-all-wallets-bg-100: var(--wui-all-wallets-bg-100);
|
|
2471
|
+
|
|
2472
|
+
--wui-avatar-border: var(--wui-avatar-border-base);
|
|
2473
|
+
|
|
2474
|
+
--wui-thumbnail-border: var(--wui-thumbnail-border-base);
|
|
2475
|
+
|
|
2476
|
+
--wui-wallet-button-bg: var(--wui-wallet-button-bg-base);
|
|
2477
|
+
|
|
2478
|
+
--wui-box-shadow-blue: var(--wui-color-accent-glass-020);
|
|
2479
|
+
}
|
|
2480
|
+
|
|
2481
|
+
@supports (background: color-mix(in srgb, white 50%, black)) {
|
|
2482
|
+
:root {
|
|
2483
|
+
--wui-color-modal-bg: color-mix(
|
|
2484
|
+
in srgb,
|
|
2485
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2486
|
+
var(--wui-color-modal-bg-base)
|
|
2487
|
+
);
|
|
2488
|
+
|
|
2489
|
+
--wui-box-shadow-blue: color-mix(in srgb, var(--wui-color-accent-100) 20%, transparent);
|
|
2490
|
+
|
|
2491
|
+
--wui-color-accent-100: color-mix(
|
|
2492
|
+
in srgb,
|
|
2493
|
+
var(--wui-color-accent-base-100) 100%,
|
|
2494
|
+
transparent
|
|
2495
|
+
);
|
|
2496
|
+
--wui-color-accent-090: color-mix(
|
|
2497
|
+
in srgb,
|
|
2498
|
+
var(--wui-color-accent-base-100) 90%,
|
|
2499
|
+
transparent
|
|
2500
|
+
);
|
|
2501
|
+
--wui-color-accent-080: color-mix(
|
|
2502
|
+
in srgb,
|
|
2503
|
+
var(--wui-color-accent-base-100) 80%,
|
|
2504
|
+
transparent
|
|
2505
|
+
);
|
|
2506
|
+
--wui-color-accent-glass-090: color-mix(
|
|
2507
|
+
in srgb,
|
|
2508
|
+
var(--wui-color-accent-base-100) 90%,
|
|
2509
|
+
transparent
|
|
2510
|
+
);
|
|
2511
|
+
--wui-color-accent-glass-080: color-mix(
|
|
2512
|
+
in srgb,
|
|
2513
|
+
var(--wui-color-accent-base-100) 80%,
|
|
2514
|
+
transparent
|
|
2515
|
+
);
|
|
2516
|
+
--wui-color-accent-glass-020: color-mix(
|
|
2517
|
+
in srgb,
|
|
2518
|
+
var(--wui-color-accent-base-100) 20%,
|
|
2519
|
+
transparent
|
|
2520
|
+
);
|
|
2521
|
+
--wui-color-accent-glass-015: color-mix(
|
|
2522
|
+
in srgb,
|
|
2523
|
+
var(--wui-color-accent-base-100) 15%,
|
|
2524
|
+
transparent
|
|
2525
|
+
);
|
|
2526
|
+
--wui-color-accent-glass-010: color-mix(
|
|
2527
|
+
in srgb,
|
|
2528
|
+
var(--wui-color-accent-base-100) 10%,
|
|
2529
|
+
transparent
|
|
2530
|
+
);
|
|
2531
|
+
--wui-color-accent-glass-005: color-mix(
|
|
2532
|
+
in srgb,
|
|
2533
|
+
var(--wui-color-accent-base-100) 5%,
|
|
2534
|
+
transparent
|
|
2535
|
+
);
|
|
2536
|
+
--wui-color-accent-002: color-mix(
|
|
2537
|
+
in srgb,
|
|
2538
|
+
var(--wui-color-accent-base-100) 2%,
|
|
2539
|
+
transparent
|
|
2540
|
+
);
|
|
2541
|
+
|
|
2542
|
+
--wui-color-fg-100: color-mix(
|
|
2543
|
+
in srgb,
|
|
2544
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2545
|
+
var(--wui-color-fg-100)
|
|
2546
|
+
);
|
|
2547
|
+
--wui-color-fg-125: color-mix(
|
|
2548
|
+
in srgb,
|
|
2549
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2550
|
+
var(--wui-color-fg-125)
|
|
2551
|
+
);
|
|
2552
|
+
--wui-color-fg-150: color-mix(
|
|
2553
|
+
in srgb,
|
|
2554
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2555
|
+
var(--wui-color-fg-150)
|
|
2556
|
+
);
|
|
2557
|
+
--wui-color-fg-175: color-mix(
|
|
2558
|
+
in srgb,
|
|
2559
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2560
|
+
var(--wui-color-fg-175)
|
|
2561
|
+
);
|
|
2562
|
+
--wui-color-fg-200: color-mix(
|
|
2563
|
+
in srgb,
|
|
2564
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2565
|
+
var(--wui-color-fg-200)
|
|
2566
|
+
);
|
|
2567
|
+
--wui-color-fg-225: color-mix(
|
|
2568
|
+
in srgb,
|
|
2569
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2570
|
+
var(--wui-color-fg-225)
|
|
2571
|
+
);
|
|
2572
|
+
--wui-color-fg-250: color-mix(
|
|
2573
|
+
in srgb,
|
|
2574
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2575
|
+
var(--wui-color-fg-250)
|
|
2576
|
+
);
|
|
2577
|
+
--wui-color-fg-275: color-mix(
|
|
2578
|
+
in srgb,
|
|
2579
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2580
|
+
var(--wui-color-fg-275)
|
|
2581
|
+
);
|
|
2582
|
+
--wui-color-fg-300: color-mix(
|
|
2583
|
+
in srgb,
|
|
2584
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2585
|
+
var(--wui-color-fg-300)
|
|
2586
|
+
);
|
|
2587
|
+
--wui-color-fg-325: color-mix(
|
|
2588
|
+
in srgb,
|
|
2589
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2590
|
+
var(--wui-color-fg-325)
|
|
2591
|
+
);
|
|
2592
|
+
--wui-color-fg-350: color-mix(
|
|
2593
|
+
in srgb,
|
|
2594
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2595
|
+
var(--wui-color-fg-350)
|
|
2596
|
+
);
|
|
2597
|
+
|
|
2598
|
+
--wui-color-bg-100: color-mix(
|
|
2599
|
+
in srgb,
|
|
2600
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2601
|
+
var(--wui-color-bg-100)
|
|
2602
|
+
);
|
|
2603
|
+
--wui-color-bg-125: color-mix(
|
|
2604
|
+
in srgb,
|
|
2605
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2606
|
+
var(--wui-color-bg-125)
|
|
2607
|
+
);
|
|
2608
|
+
--wui-color-bg-150: color-mix(
|
|
2609
|
+
in srgb,
|
|
2610
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2611
|
+
var(--wui-color-bg-150)
|
|
2612
|
+
);
|
|
2613
|
+
--wui-color-bg-175: color-mix(
|
|
2614
|
+
in srgb,
|
|
2615
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2616
|
+
var(--wui-color-bg-175)
|
|
2617
|
+
);
|
|
2618
|
+
--wui-color-bg-200: color-mix(
|
|
2619
|
+
in srgb,
|
|
2620
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2621
|
+
var(--wui-color-bg-200)
|
|
2622
|
+
);
|
|
2623
|
+
--wui-color-bg-225: color-mix(
|
|
2624
|
+
in srgb,
|
|
2625
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2626
|
+
var(--wui-color-bg-225)
|
|
2627
|
+
);
|
|
2628
|
+
--wui-color-bg-250: color-mix(
|
|
2629
|
+
in srgb,
|
|
2630
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2631
|
+
var(--wui-color-bg-250)
|
|
2632
|
+
);
|
|
2633
|
+
--wui-color-bg-275: color-mix(
|
|
2634
|
+
in srgb,
|
|
2635
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2636
|
+
var(--wui-color-bg-275)
|
|
2637
|
+
);
|
|
2638
|
+
--wui-color-bg-300: color-mix(
|
|
2639
|
+
in srgb,
|
|
2640
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2641
|
+
var(--wui-color-bg-300)
|
|
2642
|
+
);
|
|
2643
|
+
--wui-color-bg-325: color-mix(
|
|
2644
|
+
in srgb,
|
|
2645
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2646
|
+
var(--wui-color-bg-325)
|
|
2647
|
+
);
|
|
2648
|
+
--wui-color-bg-350: color-mix(
|
|
2649
|
+
in srgb,
|
|
2650
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2651
|
+
var(--wui-color-bg-350)
|
|
2652
|
+
);
|
|
2653
|
+
|
|
2654
|
+
--wui-color-success-100: color-mix(
|
|
2655
|
+
in srgb,
|
|
2656
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2657
|
+
var(--wui-color-success-base-100)
|
|
2658
|
+
);
|
|
2659
|
+
--wui-color-success-125: color-mix(
|
|
2660
|
+
in srgb,
|
|
2661
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2662
|
+
var(--wui-color-success-base-125)
|
|
2663
|
+
);
|
|
2664
|
+
|
|
2665
|
+
--wui-color-warning-100: color-mix(
|
|
2666
|
+
in srgb,
|
|
2667
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2668
|
+
var(--wui-color-warning-base-100)
|
|
2669
|
+
);
|
|
2670
|
+
|
|
2671
|
+
--wui-color-error-100: color-mix(
|
|
2672
|
+
in srgb,
|
|
2673
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2674
|
+
var(--wui-color-error-base-100)
|
|
2675
|
+
);
|
|
2676
|
+
--wui-color-blue-100: color-mix(
|
|
2677
|
+
in srgb,
|
|
2678
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2679
|
+
var(--wui-color-blue-base-100)
|
|
2680
|
+
);
|
|
2681
|
+
--wui-color-blue-90: color-mix(
|
|
2682
|
+
in srgb,
|
|
2683
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2684
|
+
var(--wui-color-blue-base-90)
|
|
2685
|
+
);
|
|
2686
|
+
--wui-color-error-125: color-mix(
|
|
2687
|
+
in srgb,
|
|
2688
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2689
|
+
var(--wui-color-error-base-125)
|
|
2690
|
+
);
|
|
2691
|
+
|
|
2692
|
+
--wui-icon-box-bg-error-100: color-mix(
|
|
2693
|
+
in srgb,
|
|
2694
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2695
|
+
var(--wui-icon-box-bg-error-base-100)
|
|
2696
|
+
);
|
|
2697
|
+
--wui-icon-box-bg-accent-100: color-mix(
|
|
2698
|
+
in srgb,
|
|
2699
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2700
|
+
var(--wui-icon-box-bg-blue-base-100)
|
|
2701
|
+
);
|
|
2702
|
+
--wui-icon-box-bg-success-100: color-mix(
|
|
2703
|
+
in srgb,
|
|
2704
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2705
|
+
var(--wui-icon-box-bg-success-base-100)
|
|
2706
|
+
);
|
|
2707
|
+
--wui-icon-box-bg-inverse-100: color-mix(
|
|
2708
|
+
in srgb,
|
|
2709
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2710
|
+
var(--wui-icon-box-bg-inverse-base-100)
|
|
2711
|
+
);
|
|
2712
|
+
|
|
2713
|
+
--wui-all-wallets-bg-100: color-mix(
|
|
2714
|
+
in srgb,
|
|
2715
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2716
|
+
var(--wui-all-wallets-bg-100)
|
|
2717
|
+
);
|
|
2718
|
+
|
|
2719
|
+
--wui-avatar-border: color-mix(
|
|
2720
|
+
in srgb,
|
|
2721
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2722
|
+
var(--wui-avatar-border-base)
|
|
2723
|
+
);
|
|
2724
|
+
|
|
2725
|
+
--wui-thumbnail-border: color-mix(
|
|
2726
|
+
in srgb,
|
|
2727
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2728
|
+
var(--wui-thumbnail-border-base)
|
|
2729
|
+
);
|
|
2730
|
+
|
|
2731
|
+
--wui-wallet-button-bg: color-mix(
|
|
2732
|
+
in srgb,
|
|
2733
|
+
var(--w3m-color-mix) var(--w3m-color-mix-strength),
|
|
2734
|
+
var(--wui-wallet-button-bg-base)
|
|
2735
|
+
);
|
|
2736
|
+
}
|
|
2737
|
+
}
|
|
2738
|
+
`,
|
|
2739
|
+
light: i$3`
|
|
2740
|
+
:root {
|
|
2741
|
+
--w3m-color-mix: ${r$2((themeVariables == null ? void 0 : themeVariables["--w3m-color-mix"]) || "#fff")};
|
|
2742
|
+
--w3m-accent: ${r$2(getW3mThemeVariables(themeVariables, "dark")["--w3m-accent"])};
|
|
2743
|
+
--w3m-default: #fff;
|
|
2744
|
+
|
|
2745
|
+
--wui-color-modal-bg-base: ${r$2(getW3mThemeVariables(themeVariables, "dark")["--w3m-background"])};
|
|
2746
|
+
--wui-color-accent-base-100: var(--w3m-accent);
|
|
2747
|
+
|
|
2748
|
+
--wui-color-blueberry-100: hsla(230, 100%, 67%, 1);
|
|
2749
|
+
--wui-color-blueberry-090: hsla(231, 76%, 61%, 1);
|
|
2750
|
+
--wui-color-blueberry-080: hsla(230, 59%, 55%, 1);
|
|
2751
|
+
--wui-color-blueberry-050: hsla(231, 100%, 70%, 0.1);
|
|
2752
|
+
|
|
2753
|
+
--wui-color-fg-100: #e4e7e7;
|
|
2754
|
+
--wui-color-fg-125: #d0d5d5;
|
|
2755
|
+
--wui-color-fg-150: #a8b1b1;
|
|
2756
|
+
--wui-color-fg-175: #a8b0b0;
|
|
2757
|
+
--wui-color-fg-200: #949e9e;
|
|
2758
|
+
--wui-color-fg-225: #868f8f;
|
|
2759
|
+
--wui-color-fg-250: #788080;
|
|
2760
|
+
--wui-color-fg-275: #788181;
|
|
2761
|
+
--wui-color-fg-300: #6e7777;
|
|
2762
|
+
--wui-color-fg-325: #9a9a9a;
|
|
2763
|
+
--wui-color-fg-350: #363636;
|
|
2764
|
+
|
|
2765
|
+
--wui-color-bg-100: #141414;
|
|
2766
|
+
--wui-color-bg-125: #191a1a;
|
|
2767
|
+
--wui-color-bg-150: #1e1f1f;
|
|
2768
|
+
--wui-color-bg-175: #222525;
|
|
2769
|
+
--wui-color-bg-200: #272a2a;
|
|
2770
|
+
--wui-color-bg-225: #2c3030;
|
|
2771
|
+
--wui-color-bg-250: #313535;
|
|
2772
|
+
--wui-color-bg-275: #363b3b;
|
|
2773
|
+
--wui-color-bg-300: #3b4040;
|
|
2774
|
+
--wui-color-bg-325: #252525;
|
|
2775
|
+
--wui-color-bg-350: #ffffff;
|
|
2776
|
+
|
|
2777
|
+
--wui-color-success-base-100: #26d962;
|
|
2778
|
+
--wui-color-success-base-125: #30a46b;
|
|
2779
|
+
|
|
2780
|
+
--wui-color-warning-base-100: #f3a13f;
|
|
2781
|
+
|
|
2782
|
+
--wui-color-error-base-100: #f25a67;
|
|
2783
|
+
--wui-color-error-base-125: #df4a34;
|
|
2784
|
+
|
|
2785
|
+
--wui-color-blue-base-100: rgba(102, 125, 255, 1);
|
|
2786
|
+
--wui-color-blue-base-90: rgba(102, 125, 255, 0.9);
|
|
2787
|
+
|
|
2788
|
+
--wui-color-success-glass-001: rgba(38, 217, 98, 0.01);
|
|
2789
|
+
--wui-color-success-glass-002: rgba(38, 217, 98, 0.02);
|
|
2790
|
+
--wui-color-success-glass-005: rgba(38, 217, 98, 0.05);
|
|
2791
|
+
--wui-color-success-glass-010: rgba(38, 217, 98, 0.1);
|
|
2792
|
+
--wui-color-success-glass-015: rgba(38, 217, 98, 0.15);
|
|
2793
|
+
--wui-color-success-glass-020: rgba(38, 217, 98, 0.2);
|
|
2794
|
+
--wui-color-success-glass-025: rgba(38, 217, 98, 0.25);
|
|
2795
|
+
--wui-color-success-glass-030: rgba(38, 217, 98, 0.3);
|
|
2796
|
+
--wui-color-success-glass-060: rgba(38, 217, 98, 0.6);
|
|
2797
|
+
--wui-color-success-glass-080: rgba(38, 217, 98, 0.8);
|
|
2798
|
+
|
|
2799
|
+
--wui-color-success-glass-reown-020: rgba(48, 164, 107, 0.2);
|
|
2800
|
+
|
|
2801
|
+
--wui-color-warning-glass-reown-020: rgba(243, 161, 63, 0.2);
|
|
2802
|
+
|
|
2803
|
+
--wui-color-error-glass-001: rgba(242, 90, 103, 0.01);
|
|
2804
|
+
--wui-color-error-glass-002: rgba(242, 90, 103, 0.02);
|
|
2805
|
+
--wui-color-error-glass-005: rgba(242, 90, 103, 0.05);
|
|
2806
|
+
--wui-color-error-glass-010: rgba(242, 90, 103, 0.1);
|
|
2807
|
+
--wui-color-error-glass-015: rgba(242, 90, 103, 0.15);
|
|
2808
|
+
--wui-color-error-glass-020: rgba(242, 90, 103, 0.2);
|
|
2809
|
+
--wui-color-error-glass-025: rgba(242, 90, 103, 0.25);
|
|
2810
|
+
--wui-color-error-glass-030: rgba(242, 90, 103, 0.3);
|
|
2811
|
+
--wui-color-error-glass-060: rgba(242, 90, 103, 0.6);
|
|
2812
|
+
--wui-color-error-glass-080: rgba(242, 90, 103, 0.8);
|
|
2813
|
+
|
|
2814
|
+
--wui-color-error-glass-reown-020: rgba(223, 74, 52, 0.2);
|
|
2815
|
+
|
|
2816
|
+
--wui-color-gray-glass-001: rgba(255, 255, 255, 0.01);
|
|
2817
|
+
--wui-color-gray-glass-002: rgba(255, 255, 255, 0.02);
|
|
2818
|
+
--wui-color-gray-glass-005: rgba(255, 255, 255, 0.05);
|
|
2819
|
+
--wui-color-gray-glass-010: rgba(255, 255, 255, 0.1);
|
|
2820
|
+
--wui-color-gray-glass-015: rgba(255, 255, 255, 0.15);
|
|
2821
|
+
--wui-color-gray-glass-020: rgba(255, 255, 255, 0.2);
|
|
2822
|
+
--wui-color-gray-glass-025: rgba(255, 255, 255, 0.25);
|
|
2823
|
+
--wui-color-gray-glass-030: rgba(255, 255, 255, 0.3);
|
|
2824
|
+
--wui-color-gray-glass-060: rgba(255, 255, 255, 0.6);
|
|
2825
|
+
--wui-color-gray-glass-080: rgba(255, 255, 255, 0.8);
|
|
2826
|
+
--wui-color-gray-glass-090: rgba(255, 255, 255, 0.9);
|
|
2827
|
+
|
|
2828
|
+
--wui-color-dark-glass-100: rgba(42, 42, 42, 1);
|
|
2829
|
+
|
|
2830
|
+
--wui-icon-box-bg-error-base-100: #3c2426;
|
|
2831
|
+
--wui-icon-box-bg-blue-base-100: #20303f;
|
|
2832
|
+
--wui-icon-box-bg-success-base-100: #1f3a28;
|
|
2833
|
+
--wui-icon-box-bg-inverse-base-100: #243240;
|
|
2834
|
+
|
|
2835
|
+
--wui-all-wallets-bg-100: #222b35;
|
|
2836
|
+
|
|
2837
|
+
--wui-avatar-border-base: #252525;
|
|
2838
|
+
|
|
2839
|
+
--wui-thumbnail-border-base: #252525;
|
|
2840
|
+
|
|
2841
|
+
--wui-wallet-button-bg-base: var(--wui-color-bg-125);
|
|
2842
|
+
|
|
2843
|
+
--w3m-card-embedded-shadow-color: rgb(17 17 18 / 25%);
|
|
2844
|
+
}
|
|
2845
|
+
`,
|
|
2846
|
+
dark: i$3`
|
|
2847
|
+
:root {
|
|
2848
|
+
--w3m-color-mix: ${r$2((themeVariables == null ? void 0 : themeVariables["--w3m-color-mix"]) || "#000")};
|
|
2849
|
+
--w3m-accent: ${r$2(getW3mThemeVariables(themeVariables, "light")["--w3m-accent"])};
|
|
2850
|
+
--w3m-default: #000;
|
|
2851
|
+
|
|
2852
|
+
--wui-color-modal-bg-base: ${r$2(getW3mThemeVariables(themeVariables, "light")["--w3m-background"])};
|
|
2853
|
+
--wui-color-accent-base-100: var(--w3m-accent);
|
|
2854
|
+
|
|
2855
|
+
--wui-color-blueberry-100: hsla(231, 100%, 70%, 1);
|
|
2856
|
+
--wui-color-blueberry-090: hsla(231, 97%, 72%, 1);
|
|
2857
|
+
--wui-color-blueberry-080: hsla(231, 92%, 74%, 1);
|
|
2858
|
+
|
|
2859
|
+
--wui-color-fg-100: #141414;
|
|
2860
|
+
--wui-color-fg-125: #2d3131;
|
|
2861
|
+
--wui-color-fg-150: #474d4d;
|
|
2862
|
+
--wui-color-fg-175: #636d6d;
|
|
2863
|
+
--wui-color-fg-200: #798686;
|
|
2864
|
+
--wui-color-fg-225: #828f8f;
|
|
2865
|
+
--wui-color-fg-250: #8b9797;
|
|
2866
|
+
--wui-color-fg-275: #95a0a0;
|
|
2867
|
+
--wui-color-fg-300: #9ea9a9;
|
|
2868
|
+
--wui-color-fg-325: #9a9a9a;
|
|
2869
|
+
--wui-color-fg-350: #d0d0d0;
|
|
2870
|
+
|
|
2871
|
+
--wui-color-bg-100: #ffffff;
|
|
2872
|
+
--wui-color-bg-125: #f5fafa;
|
|
2873
|
+
--wui-color-bg-150: #f3f8f8;
|
|
2874
|
+
--wui-color-bg-175: #eef4f4;
|
|
2875
|
+
--wui-color-bg-200: #eaf1f1;
|
|
2876
|
+
--wui-color-bg-225: #e5eded;
|
|
2877
|
+
--wui-color-bg-250: #e1e9e9;
|
|
2878
|
+
--wui-color-bg-275: #dce7e7;
|
|
2879
|
+
--wui-color-bg-300: #d8e3e3;
|
|
2880
|
+
--wui-color-bg-325: #f3f3f3;
|
|
2881
|
+
--wui-color-bg-350: #202020;
|
|
2882
|
+
|
|
2883
|
+
--wui-color-success-base-100: #26b562;
|
|
2884
|
+
--wui-color-success-base-125: #30a46b;
|
|
2885
|
+
|
|
2886
|
+
--wui-color-warning-base-100: #f3a13f;
|
|
2887
|
+
|
|
2888
|
+
--wui-color-error-base-100: #f05142;
|
|
2889
|
+
--wui-color-error-base-125: #df4a34;
|
|
2890
|
+
|
|
2891
|
+
--wui-color-blue-base-100: rgba(102, 125, 255, 1);
|
|
2892
|
+
--wui-color-blue-base-90: rgba(102, 125, 255, 0.9);
|
|
2893
|
+
|
|
2894
|
+
--wui-color-success-glass-001: rgba(38, 181, 98, 0.01);
|
|
2895
|
+
--wui-color-success-glass-002: rgba(38, 181, 98, 0.02);
|
|
2896
|
+
--wui-color-success-glass-005: rgba(38, 181, 98, 0.05);
|
|
2897
|
+
--wui-color-success-glass-010: rgba(38, 181, 98, 0.1);
|
|
2898
|
+
--wui-color-success-glass-015: rgba(38, 181, 98, 0.15);
|
|
2899
|
+
--wui-color-success-glass-020: rgba(38, 181, 98, 0.2);
|
|
2900
|
+
--wui-color-success-glass-025: rgba(38, 181, 98, 0.25);
|
|
2901
|
+
--wui-color-success-glass-030: rgba(38, 181, 98, 0.3);
|
|
2902
|
+
--wui-color-success-glass-060: rgba(38, 181, 98, 0.6);
|
|
2903
|
+
--wui-color-success-glass-080: rgba(38, 181, 98, 0.8);
|
|
2904
|
+
|
|
2905
|
+
--wui-color-success-glass-reown-020: rgba(48, 164, 107, 0.2);
|
|
2906
|
+
|
|
2907
|
+
--wui-color-warning-glass-reown-020: rgba(243, 161, 63, 0.2);
|
|
2908
|
+
|
|
2909
|
+
--wui-color-error-glass-001: rgba(240, 81, 66, 0.01);
|
|
2910
|
+
--wui-color-error-glass-002: rgba(240, 81, 66, 0.02);
|
|
2911
|
+
--wui-color-error-glass-005: rgba(240, 81, 66, 0.05);
|
|
2912
|
+
--wui-color-error-glass-010: rgba(240, 81, 66, 0.1);
|
|
2913
|
+
--wui-color-error-glass-015: rgba(240, 81, 66, 0.15);
|
|
2914
|
+
--wui-color-error-glass-020: rgba(240, 81, 66, 0.2);
|
|
2915
|
+
--wui-color-error-glass-025: rgba(240, 81, 66, 0.25);
|
|
2916
|
+
--wui-color-error-glass-030: rgba(240, 81, 66, 0.3);
|
|
2917
|
+
--wui-color-error-glass-060: rgba(240, 81, 66, 0.6);
|
|
2918
|
+
--wui-color-error-glass-080: rgba(240, 81, 66, 0.8);
|
|
2919
|
+
|
|
2920
|
+
--wui-color-error-glass-reown-020: rgba(223, 74, 52, 0.2);
|
|
2921
|
+
|
|
2922
|
+
--wui-icon-box-bg-error-base-100: #f4dfdd;
|
|
2923
|
+
--wui-icon-box-bg-blue-base-100: #d9ecfb;
|
|
2924
|
+
--wui-icon-box-bg-success-base-100: #daf0e4;
|
|
2925
|
+
--wui-icon-box-bg-inverse-base-100: #dcecfc;
|
|
2926
|
+
|
|
2927
|
+
--wui-all-wallets-bg-100: #e8f1fa;
|
|
2928
|
+
|
|
2929
|
+
--wui-avatar-border-base: #f3f4f4;
|
|
2930
|
+
|
|
2931
|
+
--wui-thumbnail-border-base: #eaefef;
|
|
2932
|
+
|
|
2933
|
+
--wui-wallet-button-bg-base: var(--wui-color-bg-125);
|
|
2934
|
+
|
|
2935
|
+
--wui-color-gray-glass-001: rgba(0, 0, 0, 0.01);
|
|
2936
|
+
--wui-color-gray-glass-002: rgba(0, 0, 0, 0.02);
|
|
2937
|
+
--wui-color-gray-glass-005: rgba(0, 0, 0, 0.05);
|
|
2938
|
+
--wui-color-gray-glass-010: rgba(0, 0, 0, 0.1);
|
|
2939
|
+
--wui-color-gray-glass-015: rgba(0, 0, 0, 0.15);
|
|
2940
|
+
--wui-color-gray-glass-020: rgba(0, 0, 0, 0.2);
|
|
2941
|
+
--wui-color-gray-glass-025: rgba(0, 0, 0, 0.25);
|
|
2942
|
+
--wui-color-gray-glass-030: rgba(0, 0, 0, 0.3);
|
|
2943
|
+
--wui-color-gray-glass-060: rgba(0, 0, 0, 0.6);
|
|
2944
|
+
--wui-color-gray-glass-080: rgba(0, 0, 0, 0.8);
|
|
2945
|
+
--wui-color-gray-glass-090: rgba(0, 0, 0, 0.9);
|
|
2946
|
+
|
|
2947
|
+
--wui-color-dark-glass-100: rgba(233, 233, 233, 1);
|
|
2948
|
+
|
|
2949
|
+
--w3m-card-embedded-shadow-color: rgb(224 225 233 / 25%);
|
|
2950
|
+
}
|
|
2951
|
+
`
|
|
2952
|
+
};
|
|
2953
|
+
}
|
|
2954
|
+
const resetStyles = i$3`
|
|
2955
|
+
*,
|
|
2956
|
+
*::after,
|
|
2957
|
+
*::before,
|
|
2958
|
+
:host {
|
|
2959
|
+
margin: 0;
|
|
2960
|
+
padding: 0;
|
|
2961
|
+
box-sizing: border-box;
|
|
2962
|
+
font-style: normal;
|
|
2963
|
+
text-rendering: optimizeSpeed;
|
|
2964
|
+
-webkit-font-smoothing: antialiased;
|
|
2965
|
+
-moz-osx-font-smoothing: grayscale;
|
|
2966
|
+
-webkit-tap-highlight-color: transparent;
|
|
2967
|
+
font-family: var(--wui-font-family);
|
|
2968
|
+
backface-visibility: hidden;
|
|
2969
|
+
}
|
|
2970
|
+
`;
|
|
2971
|
+
const elementStyles = i$3`
|
|
2972
|
+
button,
|
|
2973
|
+
a {
|
|
2974
|
+
cursor: pointer;
|
|
2975
|
+
display: flex;
|
|
2976
|
+
justify-content: center;
|
|
2977
|
+
align-items: center;
|
|
2978
|
+
position: relative;
|
|
2979
|
+
transition:
|
|
2980
|
+
color var(--wui-duration-lg) var(--wui-ease-out-power-1),
|
|
2981
|
+
background-color var(--wui-duration-lg) var(--wui-ease-out-power-1),
|
|
2982
|
+
border var(--wui-duration-lg) var(--wui-ease-out-power-1),
|
|
2983
|
+
border-radius var(--wui-duration-lg) var(--wui-ease-out-power-1),
|
|
2984
|
+
box-shadow var(--wui-duration-lg) var(--wui-ease-out-power-1);
|
|
2985
|
+
will-change: background-color, color, border, box-shadow, border-radius;
|
|
2986
|
+
outline: none;
|
|
2987
|
+
border: none;
|
|
2988
|
+
column-gap: var(--wui-spacing-3xs);
|
|
2989
|
+
background-color: transparent;
|
|
2990
|
+
text-decoration: none;
|
|
2991
|
+
}
|
|
2992
|
+
|
|
2993
|
+
wui-flex {
|
|
2994
|
+
transition: border-radius var(--wui-duration-lg) var(--wui-ease-out-power-1);
|
|
2995
|
+
will-change: border-radius;
|
|
2996
|
+
}
|
|
2997
|
+
|
|
2998
|
+
button:disabled > wui-wallet-image,
|
|
2999
|
+
button:disabled > wui-all-wallets-image,
|
|
3000
|
+
button:disabled > wui-network-image,
|
|
3001
|
+
button:disabled > wui-image,
|
|
3002
|
+
button:disabled > wui-transaction-visual,
|
|
3003
|
+
button:disabled > wui-logo {
|
|
3004
|
+
filter: grayscale(1);
|
|
3005
|
+
}
|
|
3006
|
+
|
|
3007
|
+
@media (hover: hover) and (pointer: fine) {
|
|
3008
|
+
button:hover:enabled {
|
|
3009
|
+
background-color: var(--wui-color-gray-glass-005);
|
|
3010
|
+
}
|
|
3011
|
+
|
|
3012
|
+
button:active:enabled {
|
|
3013
|
+
background-color: var(--wui-color-gray-glass-010);
|
|
3014
|
+
}
|
|
3015
|
+
}
|
|
3016
|
+
|
|
3017
|
+
button:disabled > wui-icon-box {
|
|
3018
|
+
opacity: 0.5;
|
|
3019
|
+
}
|
|
3020
|
+
|
|
3021
|
+
input {
|
|
3022
|
+
border: none;
|
|
3023
|
+
outline: none;
|
|
3024
|
+
appearance: none;
|
|
3025
|
+
}
|
|
3026
|
+
`;
|
|
3027
|
+
const colorStyles = i$3`
|
|
3028
|
+
.wui-color-inherit {
|
|
3029
|
+
color: var(--wui-color-inherit);
|
|
3030
|
+
}
|
|
3031
|
+
|
|
3032
|
+
.wui-color-accent-100 {
|
|
3033
|
+
color: var(--wui-color-accent-100);
|
|
3034
|
+
}
|
|
3035
|
+
|
|
3036
|
+
.wui-color-error-100 {
|
|
3037
|
+
color: var(--wui-color-error-100);
|
|
3038
|
+
}
|
|
3039
|
+
|
|
3040
|
+
.wui-color-blue-100 {
|
|
3041
|
+
color: var(--wui-color-blue-100);
|
|
3042
|
+
}
|
|
3043
|
+
|
|
3044
|
+
.wui-color-blue-90 {
|
|
3045
|
+
color: var(--wui-color-blue-90);
|
|
3046
|
+
}
|
|
3047
|
+
|
|
3048
|
+
.wui-color-error-125 {
|
|
3049
|
+
color: var(--wui-color-error-125);
|
|
3050
|
+
}
|
|
3051
|
+
|
|
3052
|
+
.wui-color-success-100 {
|
|
3053
|
+
color: var(--wui-color-success-100);
|
|
3054
|
+
}
|
|
3055
|
+
|
|
3056
|
+
.wui-color-success-125 {
|
|
3057
|
+
color: var(--wui-color-success-125);
|
|
3058
|
+
}
|
|
3059
|
+
|
|
3060
|
+
.wui-color-inverse-100 {
|
|
3061
|
+
color: var(--wui-color-inverse-100);
|
|
3062
|
+
}
|
|
3063
|
+
|
|
3064
|
+
.wui-color-inverse-000 {
|
|
3065
|
+
color: var(--wui-color-inverse-000);
|
|
3066
|
+
}
|
|
3067
|
+
|
|
3068
|
+
.wui-color-fg-100 {
|
|
3069
|
+
color: var(--wui-color-fg-100);
|
|
3070
|
+
}
|
|
3071
|
+
|
|
3072
|
+
.wui-color-fg-200 {
|
|
3073
|
+
color: var(--wui-color-fg-200);
|
|
3074
|
+
}
|
|
3075
|
+
|
|
3076
|
+
.wui-color-fg-300 {
|
|
3077
|
+
color: var(--wui-color-fg-300);
|
|
3078
|
+
}
|
|
3079
|
+
|
|
3080
|
+
.wui-color-fg-325 {
|
|
3081
|
+
color: var(--wui-color-fg-325);
|
|
3082
|
+
}
|
|
3083
|
+
|
|
3084
|
+
.wui-color-fg-350 {
|
|
3085
|
+
color: var(--wui-color-fg-350);
|
|
3086
|
+
}
|
|
3087
|
+
|
|
3088
|
+
.wui-bg-color-inherit {
|
|
3089
|
+
background-color: var(--wui-color-inherit);
|
|
3090
|
+
}
|
|
3091
|
+
|
|
3092
|
+
.wui-bg-color-blue-100 {
|
|
3093
|
+
background-color: var(--wui-color-accent-100);
|
|
3094
|
+
}
|
|
3095
|
+
|
|
3096
|
+
.wui-bg-color-error-100 {
|
|
3097
|
+
background-color: var(--wui-color-error-100);
|
|
3098
|
+
}
|
|
3099
|
+
|
|
3100
|
+
.wui-bg-color-error-125 {
|
|
3101
|
+
background-color: var(--wui-color-error-125);
|
|
3102
|
+
}
|
|
3103
|
+
|
|
3104
|
+
.wui-bg-color-success-100 {
|
|
3105
|
+
background-color: var(--wui-color-success-100);
|
|
3106
|
+
}
|
|
3107
|
+
|
|
3108
|
+
.wui-bg-color-success-125 {
|
|
3109
|
+
background-color: var(--wui-color-success-100);
|
|
3110
|
+
}
|
|
3111
|
+
|
|
3112
|
+
.wui-bg-color-inverse-100 {
|
|
3113
|
+
background-color: var(--wui-color-inverse-100);
|
|
3114
|
+
}
|
|
3115
|
+
|
|
3116
|
+
.wui-bg-color-inverse-000 {
|
|
3117
|
+
background-color: var(--wui-color-inverse-000);
|
|
3118
|
+
}
|
|
3119
|
+
|
|
3120
|
+
.wui-bg-color-fg-100 {
|
|
3121
|
+
background-color: var(--wui-color-fg-100);
|
|
3122
|
+
}
|
|
3123
|
+
|
|
3124
|
+
.wui-bg-color-fg-200 {
|
|
3125
|
+
background-color: var(--wui-color-fg-200);
|
|
3126
|
+
}
|
|
3127
|
+
|
|
3128
|
+
.wui-bg-color-fg-300 {
|
|
3129
|
+
background-color: var(--wui-color-fg-300);
|
|
3130
|
+
}
|
|
3131
|
+
|
|
3132
|
+
.wui-color-fg-325 {
|
|
3133
|
+
background-color: var(--wui-color-fg-325);
|
|
3134
|
+
}
|
|
3135
|
+
|
|
3136
|
+
.wui-color-fg-350 {
|
|
3137
|
+
background-color: var(--wui-color-fg-350);
|
|
3138
|
+
}
|
|
3139
|
+
`;
|
|
3140
|
+
function defineChain(chain) {
|
|
3141
|
+
return {
|
|
3142
|
+
formatters: void 0,
|
|
3143
|
+
fees: void 0,
|
|
3144
|
+
serializers: void 0,
|
|
3145
|
+
...chain
|
|
3146
|
+
};
|
|
3147
|
+
}
|
|
3148
|
+
const solana = defineChain({
|
|
3149
|
+
id: "5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
|
|
3150
|
+
name: "Solana",
|
|
3151
|
+
network: "solana-mainnet",
|
|
3152
|
+
nativeCurrency: { name: "Solana", symbol: "SOL", decimals: 9 },
|
|
3153
|
+
rpcUrls: {
|
|
3154
|
+
default: { http: ["https://rpc.walletconnect.org/v1"] }
|
|
3155
|
+
},
|
|
3156
|
+
blockExplorers: { default: { name: "Solscan", url: "https://solscan.io" } },
|
|
3157
|
+
testnet: false,
|
|
3158
|
+
chainNamespace: "solana",
|
|
3159
|
+
caipNetworkId: "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
|
|
3160
|
+
deprecatedCaipNetworkId: "solana:4sGjMW1sUnHzSxGspuhpqLDx6wiyjNtZ"
|
|
3161
|
+
});
|
|
3162
|
+
const solanaDevnet = defineChain({
|
|
3163
|
+
id: "EtWTRABZaYq6iMfeYKouRu166VU2xqa1",
|
|
3164
|
+
name: "Solana Devnet",
|
|
3165
|
+
network: "solana-devnet",
|
|
3166
|
+
nativeCurrency: { name: "Solana", symbol: "SOL", decimals: 9 },
|
|
3167
|
+
rpcUrls: {
|
|
3168
|
+
default: { http: ["https://rpc.walletconnect.org/v1"] }
|
|
3169
|
+
},
|
|
3170
|
+
blockExplorers: { default: { name: "Solscan", url: "https://solscan.io" } },
|
|
3171
|
+
testnet: true,
|
|
3172
|
+
chainNamespace: "solana",
|
|
3173
|
+
caipNetworkId: "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",
|
|
3174
|
+
deprecatedCaipNetworkId: "solana:8E9rvCKLFQia2Y35HXjjpWzj8weVo44K"
|
|
3175
|
+
});
|
|
3176
|
+
defineChain({
|
|
3177
|
+
id: "4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z",
|
|
3178
|
+
name: "Solana Testnet",
|
|
3179
|
+
network: "solana-testnet",
|
|
3180
|
+
nativeCurrency: { name: "Solana", symbol: "SOL", decimals: 9 },
|
|
3181
|
+
rpcUrls: {
|
|
3182
|
+
default: { http: ["https://rpc.walletconnect.org/v1"] }
|
|
3183
|
+
},
|
|
3184
|
+
blockExplorers: { default: { name: "Solscan", url: "https://solscan.io" } },
|
|
3185
|
+
testnet: true,
|
|
3186
|
+
chainNamespace: "solana",
|
|
3187
|
+
caipNetworkId: "solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z"
|
|
3188
|
+
});
|
|
3189
|
+
defineChain({
|
|
3190
|
+
id: "000000000019d6689c085ae165831e93",
|
|
3191
|
+
caipNetworkId: "bip122:000000000019d6689c085ae165831e93",
|
|
3192
|
+
chainNamespace: "bip122",
|
|
3193
|
+
name: "Bitcoin",
|
|
3194
|
+
nativeCurrency: {
|
|
3195
|
+
name: "Bitcoin",
|
|
3196
|
+
symbol: "BTC",
|
|
3197
|
+
decimals: 8
|
|
3198
|
+
},
|
|
3199
|
+
rpcUrls: {
|
|
3200
|
+
default: { http: ["https://rpc.walletconnect.org/v1"] }
|
|
3201
|
+
}
|
|
3202
|
+
});
|
|
3203
|
+
defineChain({
|
|
3204
|
+
id: "000000000933ea01ad0ee984209779ba",
|
|
3205
|
+
caipNetworkId: "bip122:000000000933ea01ad0ee984209779ba",
|
|
3206
|
+
chainNamespace: "bip122",
|
|
3207
|
+
name: "Bitcoin Testnet",
|
|
3208
|
+
nativeCurrency: {
|
|
3209
|
+
name: "Bitcoin",
|
|
3210
|
+
symbol: "BTC",
|
|
3211
|
+
decimals: 8
|
|
3212
|
+
},
|
|
3213
|
+
rpcUrls: {
|
|
3214
|
+
default: { http: ["https://rpc.walletconnect.org/v1"] }
|
|
3215
|
+
},
|
|
3216
|
+
testnet: true
|
|
3217
|
+
});
|
|
3218
|
+
export {
|
|
3219
|
+
setColorTheme as A,
|
|
3220
|
+
setThemeVariables as B,
|
|
3221
|
+
ConstantsUtil as C,
|
|
3222
|
+
E,
|
|
3223
|
+
Ot as O,
|
|
3224
|
+
T,
|
|
3225
|
+
subscribeKey as a,
|
|
3226
|
+
b,
|
|
3227
|
+
resetStyles as c,
|
|
3228
|
+
colorStyles as d,
|
|
3229
|
+
elementStyles as e,
|
|
3230
|
+
i as f,
|
|
3231
|
+
getW3mThemeVariables as g,
|
|
3232
|
+
getDefaultExportFromCjs as h,
|
|
3233
|
+
i$3 as i,
|
|
3234
|
+
commonjsGlobal as j,
|
|
3235
|
+
initializeTheming as k,
|
|
3236
|
+
f$1 as l,
|
|
3237
|
+
u$1 as m,
|
|
3238
|
+
snapshot as n,
|
|
3239
|
+
proxyMap as o,
|
|
3240
|
+
proxy as p,
|
|
3241
|
+
getAugmentedNamespace as q,
|
|
3242
|
+
ref as r,
|
|
3243
|
+
subscribe as s,
|
|
3244
|
+
browser as t,
|
|
3245
|
+
useSnapshot as u,
|
|
3246
|
+
bs58 as v,
|
|
3247
|
+
cjs as w,
|
|
3248
|
+
x,
|
|
3249
|
+
solanaDevnet as y,
|
|
3250
|
+
solana as z
|
|
3251
|
+
};
|