@springmicro/auth 0.1.8 → 0.2.0-alpha.0
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/README.md +20 -15
- package/dist/Index-652aeb8c-BTQ1rBi7.js +2818 -0
- package/dist/Index-c419311f-BOZhAAW3.js +1054 -0
- package/dist/Web3Auth-hACKSouN.js +32769 -0
- package/dist/alphawallet-B7eovdf-.js +26 -0
- package/dist/apexwallet-ysP20G9D.js +93 -0
- package/dist/atoken-BBnNTzcz.js +27 -0
- package/dist/bifrostwallet-CNNBO92h.js +11 -0
- package/dist/binance-DvPgAzCw.js +14 -0
- package/dist/bitget-DZOUrwgy.js +4 -0
- package/dist/bitpie-C_uxmEzw.js +25 -0
- package/dist/bitski-DpzkHNkv.js +4 -0
- package/dist/blockwallet-BL69cqkA.js +8 -0
- package/dist/brave-DnRzMQYW.js +35 -0
- package/dist/ccip-c78d2f16-DLcRlwod.js +165 -0
- package/dist/coin98wallet-CkFdOvXt.js +4 -0
- package/dist/coinbase-CaGNx5if.js +9 -0
- package/dist/core-9rK8tWud.js +7 -0
- package/dist/defiwallet-0AsgJBSy.js +10 -0
- package/dist/detected-CX_JZaUk.js +6 -0
- package/dist/echooo-CmaetT_Z.js +14 -0
- package/dist/enkrypt-BibtwvK7.js +20 -0
- package/dist/exodus-BxzkDWWP.js +4 -0
- package/dist/fordefi-CvKyVwhI.js +6 -0
- package/dist/foxwallet-D7c_LDTf.js +4 -0
- package/dist/frame-CDfNmjUy.js +7 -0
- package/dist/frontier-DqKNSj2z.js +8 -0
- package/dist/huobiwallet-CxSwqa5L.js +14 -0
- package/dist/hyperpay-nmHE3WqM.js +7 -0
- package/dist/icon-2Zqy7pqQ.js +8 -0
- package/dist/icon-CGWI1Ies.js +43 -0
- package/dist/icon-C_O4nprO.js +9 -0
- package/dist/icon-DbgmZCnU.js +9 -0
- package/dist/icon-cAd7RhSC.js +9 -0
- package/dist/icon-duCa3gfT.js +11 -0
- package/dist/imtoken-yENtOTS3.js +17 -0
- package/dist/index-021f6a62-Zz543EDB.js +2583 -0
- package/dist/index-40a497ea-Bn2mC0r7.js +1010 -0
- package/dist/index-BHkXn9Ss.js +4010 -0
- package/dist/index-BaYEABY7.js +7089 -0
- package/dist/index-BtLU53lm.js +6023 -0
- package/dist/index-CynP9H3X.js +6188 -0
- package/dist/index-Dg8m-Szw.js +31 -0
- package/dist/index-Dt6M8ha9.js +161 -0
- package/dist/index-DtJfAdfq.js +5822 -0
- package/dist/index-klU8YB0c.js +1983 -0
- package/dist/index.d.ts +124 -0
- package/dist/index.js +5 -43
- package/dist/index.umd.cjs +1937 -1
- package/dist/infinitywallet-C8J4FUYw.js +42 -0
- package/dist/kayros-AIrUK1za.js +27 -0
- package/dist/lif3wallet-C5D6r8pg.js +41 -0
- package/dist/liquality-nbCtErVq.js +16 -0
- package/dist/mathwallet-CWkivCXo.js +50 -0
- package/dist/meetone-kKmvI8md.js +13 -0
- package/dist/metamask-BN7yiDV1.js +64 -0
- package/dist/mykey-CQZ6UcLH.js +13 -0
- package/dist/number-BXHWhlom.js +1529 -0
- package/dist/okxwallet-CJLVogh2.js +8 -0
- package/dist/oneInch-CciyZ4Pz.js +72 -0
- package/dist/onekey-Dal8kYjU.js +9 -0
- package/dist/opera-DnKg-TJU.js +24 -0
- package/dist/ownbit-BshJUVuW.js +18 -0
- package/dist/phantom-CJ8dIcov.js +35 -0
- package/dist/rabby-D4thTcd6.js +27 -0
- package/dist/rainbow-mXld6yWV.js +69 -0
- package/dist/roninwallet-ZyYrd-D1.js +9 -0
- package/dist/safeheron-Eg1Jb29V.js +23 -0
- package/dist/safepal-DVIKy94N.js +105 -0
- package/dist/sequence-BS2IbtDg.js +70 -0
- package/dist/stablewallet-jyB079Wb.js +20 -0
- package/dist/status-FrAvQjfn.js +4 -0
- package/dist/subwallet-DMvFqKyY.js +25 -0
- package/dist/talisman-Bp8zUXqB.js +16 -0
- package/dist/tallywallet-B4OS9nIr.js +16 -0
- package/dist/tokenary-C7jjcbQa.js +18 -0
- package/dist/tokenpocket-9ZRPmAFA.js +28 -0
- package/dist/tp-V2em5bdl.js +13 -0
- package/dist/transactionRequest-be6a8ea9-CUKWo5mx.js +1117 -0
- package/dist/trust-gPypS1O7.js +11 -0
- package/dist/xdefi-COVIyGz4.js +38 -0
- package/dist/zeal-DxHbDqm0.js +9 -0
- package/dist/zerion-BfW0UElc.js +8 -0
- package/dist/zodiacpilot-CrId6F4w.js +6 -0
- package/package.json +35 -15
- package/src/auth/config.ts +0 -2
- package/src/components/SignUp.tsx +442 -0
- package/src/components/forms/AgreementModal.tsx +88 -0
- package/src/components/forms/CaptchaController.tsx +94 -0
- package/src/components/forms/CaptchaModal.jsx +171 -0
- package/src/components/forms/CaptchaWidget.jsx +146 -0
- package/src/components/forms/PasswordChecker.ts +88 -0
- package/src/components/forms/SendCodeInput.tsx +149 -0
- package/src/components/forms/SignUpFormItem.tsx +704 -0
- package/src/components/forms/util/application-api.ts +155 -0
- package/src/components/forms/util/auth-api.ts +198 -0
- package/src/components/forms/util/auth-util.tsx +346 -0
- package/src/components/forms/util/core.ts +493 -0
- package/src/components/forms/util/invitation-api.ts +132 -0
- package/src/components/forms/util/provider.tsx +603 -0
- package/src/components/forms/util/user-api.ts +303 -0
- package/src/components/provider/AdfsLoginButton.jsx +38 -0
- package/src/components/provider/AlipayLoginButton.jsx +38 -0
- package/src/components/provider/AppleLoginButton.jsx +38 -0
- package/src/components/provider/AzureADB2CLoginButton.jsx +38 -0
- package/src/components/provider/AzureADLoginButton.jsx +38 -0
- package/src/components/provider/BaiduLoginButton.jsx +38 -0
- package/src/components/provider/BilibiliLoginButton.jsx +37 -0
- package/src/components/provider/CasdoorLoginButton.jsx +38 -0
- package/src/components/provider/DingTalkLoginButton.jsx +37 -0
- package/src/components/provider/DouyinLoginButton.jsx +38 -0
- package/src/components/provider/FacebookLoginButton.jsx +37 -0
- package/src/components/provider/GitHubLoginButton.jsx +37 -0
- package/src/components/provider/GitLabLoginButton.jsx +38 -0
- package/src/components/provider/GiteeLoginButton.jsx +34 -0
- package/src/components/provider/GoogleLoginButton.jsx +68 -0
- package/src/components/provider/InfoflowLoginButton.jsx +38 -0
- package/src/components/provider/LarkLoginButton.jsx +38 -0
- package/src/components/provider/LinkedInLoginButton.jsx +37 -0
- package/src/components/provider/LoginButton.jsx +33 -0
- package/src/components/provider/OktaLoginButton.jsx +38 -0
- package/src/components/provider/Provider.jsx +3 -0
- package/src/components/provider/ProviderButton.jsx +327 -0
- package/src/components/provider/QqLoginButton.jsx +31 -0
- package/src/components/provider/SelfLoginButton.jsx +47 -0
- package/src/components/provider/SlackLoginButton.jsx +38 -0
- package/src/components/provider/SteamLoginButton.jsx +38 -0
- package/src/components/provider/WeComLoginButton.jsx +34 -0
- package/src/components/provider/Web3Auth.jsx +365 -0
- package/src/components/provider/WechatLoginButton.jsx +37 -0
- package/src/components/provider/WeiboLoginButton.jsx +34 -0
- package/src/components/util.tsx +173 -0
- package/src/i18n/en/signup.json +48 -0
- package/src/i18n/index.ts +17 -0
- package/src/index.tsx +6 -1
- package/vite.config.ts +33 -25
|
@@ -0,0 +1,1117 @@
|
|
|
1
|
+
const Y = "2.12.0", it = (e) => e, st = (e) => e, J = () => `viem@${Y}`;
|
|
2
|
+
class a extends Error {
|
|
3
|
+
constructor(t, r = {}) {
|
|
4
|
+
var o;
|
|
5
|
+
super(), Object.defineProperty(this, "details", {
|
|
6
|
+
enumerable: !0,
|
|
7
|
+
configurable: !0,
|
|
8
|
+
writable: !0,
|
|
9
|
+
value: void 0
|
|
10
|
+
}), Object.defineProperty(this, "docsPath", {
|
|
11
|
+
enumerable: !0,
|
|
12
|
+
configurable: !0,
|
|
13
|
+
writable: !0,
|
|
14
|
+
value: void 0
|
|
15
|
+
}), Object.defineProperty(this, "metaMessages", {
|
|
16
|
+
enumerable: !0,
|
|
17
|
+
configurable: !0,
|
|
18
|
+
writable: !0,
|
|
19
|
+
value: void 0
|
|
20
|
+
}), Object.defineProperty(this, "shortMessage", {
|
|
21
|
+
enumerable: !0,
|
|
22
|
+
configurable: !0,
|
|
23
|
+
writable: !0,
|
|
24
|
+
value: void 0
|
|
25
|
+
}), Object.defineProperty(this, "name", {
|
|
26
|
+
enumerable: !0,
|
|
27
|
+
configurable: !0,
|
|
28
|
+
writable: !0,
|
|
29
|
+
value: "ViemError"
|
|
30
|
+
}), Object.defineProperty(this, "version", {
|
|
31
|
+
enumerable: !0,
|
|
32
|
+
configurable: !0,
|
|
33
|
+
writable: !0,
|
|
34
|
+
value: J()
|
|
35
|
+
});
|
|
36
|
+
const n = r.cause instanceof a ? r.cause.details : (o = r.cause) != null && o.message ? r.cause.message : r.details, i = r.cause instanceof a && r.cause.docsPath || r.docsPath;
|
|
37
|
+
this.message = [
|
|
38
|
+
t || "An error occurred.",
|
|
39
|
+
"",
|
|
40
|
+
...r.metaMessages ? [...r.metaMessages, ""] : [],
|
|
41
|
+
...i ? [
|
|
42
|
+
`Docs: https://viem.sh${i}${r.docsSlug ? `#${r.docsSlug}` : ""}`
|
|
43
|
+
] : [],
|
|
44
|
+
...n ? [`Details: ${n}`] : [],
|
|
45
|
+
`Version: ${this.version}`
|
|
46
|
+
].join(`
|
|
47
|
+
`), r.cause && (this.cause = r.cause), this.details = n, this.docsPath = i, this.metaMessages = r.metaMessages, this.shortMessage = t;
|
|
48
|
+
}
|
|
49
|
+
walk(t) {
|
|
50
|
+
return B(this, t);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
function B(e, t) {
|
|
54
|
+
return t != null && t(e) ? e : e && typeof e == "object" && "cause" in e ? B(e.cause, t) : t ? null : e;
|
|
55
|
+
}
|
|
56
|
+
class Q extends a {
|
|
57
|
+
constructor({ max: t, min: r, signed: n, size: i, value: o }) {
|
|
58
|
+
super(`Number "${o}" is not in safe ${i ? `${i * 8}-bit ${n ? "signed" : "unsigned"} ` : ""}integer range ${t ? `(${r} to ${t})` : `(above ${r})`}`), Object.defineProperty(this, "name", {
|
|
59
|
+
enumerable: !0,
|
|
60
|
+
configurable: !0,
|
|
61
|
+
writable: !0,
|
|
62
|
+
value: "IntegerOutOfRangeError"
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
class ot extends a {
|
|
67
|
+
constructor(t) {
|
|
68
|
+
super(`Bytes value "${t}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`), Object.defineProperty(this, "name", {
|
|
69
|
+
enumerable: !0,
|
|
70
|
+
configurable: !0,
|
|
71
|
+
writable: !0,
|
|
72
|
+
value: "InvalidBytesBooleanError"
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
class Z extends a {
|
|
77
|
+
constructor({ givenSize: t, maxSize: r }) {
|
|
78
|
+
super(`Size cannot exceed ${r} bytes. Given size: ${t} bytes.`), Object.defineProperty(this, "name", {
|
|
79
|
+
enumerable: !0,
|
|
80
|
+
configurable: !0,
|
|
81
|
+
writable: !0,
|
|
82
|
+
value: "SizeOverflowError"
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
function P(e, { strict: t = !0 } = {}) {
|
|
87
|
+
return !e || typeof e != "string" ? !1 : t ? /^0x[0-9a-fA-F]*$/.test(e) : e.startsWith("0x");
|
|
88
|
+
}
|
|
89
|
+
function b(e) {
|
|
90
|
+
return P(e, { strict: !1 }) ? Math.ceil((e.length - 2) / 2) : e.length;
|
|
91
|
+
}
|
|
92
|
+
function at(e, { dir: t = "left" } = {}) {
|
|
93
|
+
let r = typeof e == "string" ? e.replace("0x", "") : e, n = 0;
|
|
94
|
+
for (let i = 0; i < r.length - 1 && r[t === "left" ? i : r.length - i - 1].toString() === "0"; i++)
|
|
95
|
+
n++;
|
|
96
|
+
return r = t === "left" ? r.slice(n) : r.slice(0, r.length - n), typeof e == "string" ? (r.length === 1 && t === "right" && (r = `${r}0`), `0x${r.length % 2 === 1 ? `0${r}` : r}`) : r;
|
|
97
|
+
}
|
|
98
|
+
class S extends a {
|
|
99
|
+
constructor({ offset: t, position: r, size: n }) {
|
|
100
|
+
super(`Slice ${r === "start" ? "starting" : "ending"} at offset "${t}" is out-of-bounds (size: ${n}).`), Object.defineProperty(this, "name", {
|
|
101
|
+
enumerable: !0,
|
|
102
|
+
configurable: !0,
|
|
103
|
+
writable: !0,
|
|
104
|
+
value: "SliceOffsetOutOfBoundsError"
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
class z extends a {
|
|
109
|
+
constructor({ size: t, targetSize: r, type: n }) {
|
|
110
|
+
super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (${t}) exceeds padding size (${r}).`), Object.defineProperty(this, "name", {
|
|
111
|
+
enumerable: !0,
|
|
112
|
+
configurable: !0,
|
|
113
|
+
writable: !0,
|
|
114
|
+
value: "SizeExceedsPaddingSizeError"
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
class ut extends a {
|
|
119
|
+
constructor({ size: t, targetSize: r, type: n }) {
|
|
120
|
+
super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} is expected to be ${r} ${n} long, but is ${t} ${n} long.`), Object.defineProperty(this, "name", {
|
|
121
|
+
enumerable: !0,
|
|
122
|
+
configurable: !0,
|
|
123
|
+
writable: !0,
|
|
124
|
+
value: "InvalidBytesLengthError"
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
function p(e, { dir: t, size: r = 32 } = {}) {
|
|
129
|
+
return typeof e == "string" ? q(e, { dir: t, size: r }) : ee(e, { dir: t, size: r });
|
|
130
|
+
}
|
|
131
|
+
function q(e, { dir: t, size: r = 32 } = {}) {
|
|
132
|
+
if (r === null)
|
|
133
|
+
return e;
|
|
134
|
+
const n = e.replace("0x", "");
|
|
135
|
+
if (n.length > r * 2)
|
|
136
|
+
throw new z({
|
|
137
|
+
size: Math.ceil(n.length / 2),
|
|
138
|
+
targetSize: r,
|
|
139
|
+
type: "hex"
|
|
140
|
+
});
|
|
141
|
+
return `0x${n[t === "right" ? "padEnd" : "padStart"](r * 2, "0")}`;
|
|
142
|
+
}
|
|
143
|
+
function ee(e, { dir: t, size: r = 32 } = {}) {
|
|
144
|
+
if (r === null)
|
|
145
|
+
return e;
|
|
146
|
+
if (e.length > r)
|
|
147
|
+
throw new z({
|
|
148
|
+
size: e.length,
|
|
149
|
+
targetSize: r,
|
|
150
|
+
type: "bytes"
|
|
151
|
+
});
|
|
152
|
+
const n = new Uint8Array(r);
|
|
153
|
+
for (let i = 0; i < r; i++) {
|
|
154
|
+
const o = t === "right";
|
|
155
|
+
n[o ? i : r - i - 1] = e[o ? i : e.length - i - 1];
|
|
156
|
+
}
|
|
157
|
+
return n;
|
|
158
|
+
}
|
|
159
|
+
const te = /* @__PURE__ */ Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
|
|
160
|
+
function re(e, t = {}) {
|
|
161
|
+
return typeof e == "number" || typeof e == "bigint" ? l(e, t) : typeof e == "string" ? se(e, t) : typeof e == "boolean" ? ne(e, t) : E(e, t);
|
|
162
|
+
}
|
|
163
|
+
function ne(e, t = {}) {
|
|
164
|
+
const r = `0x${Number(e)}`;
|
|
165
|
+
return typeof t.size == "number" ? (g(r, { size: t.size }), p(r, { size: t.size })) : r;
|
|
166
|
+
}
|
|
167
|
+
function E(e, t = {}) {
|
|
168
|
+
let r = "";
|
|
169
|
+
for (let i = 0; i < e.length; i++)
|
|
170
|
+
r += te[e[i]];
|
|
171
|
+
const n = `0x${r}`;
|
|
172
|
+
return typeof t.size == "number" ? (g(n, { size: t.size }), p(n, { dir: "right", size: t.size })) : n;
|
|
173
|
+
}
|
|
174
|
+
function l(e, t = {}) {
|
|
175
|
+
const { signed: r, size: n } = t, i = BigInt(e);
|
|
176
|
+
let o;
|
|
177
|
+
n ? r ? o = (1n << BigInt(n) * 8n - 1n) - 1n : o = 2n ** (BigInt(n) * 8n) - 1n : typeof e == "number" && (o = BigInt(Number.MAX_SAFE_INTEGER));
|
|
178
|
+
const s = typeof o == "bigint" && r ? -o - 1n : 0;
|
|
179
|
+
if (o && i > o || i < s) {
|
|
180
|
+
const c = typeof e == "bigint" ? "n" : "";
|
|
181
|
+
throw new Q({
|
|
182
|
+
max: o ? `${o}${c}` : void 0,
|
|
183
|
+
min: `${s}${c}`,
|
|
184
|
+
signed: r,
|
|
185
|
+
size: n,
|
|
186
|
+
value: `${e}${c}`
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
const u = `0x${(r && i < 0 ? (1n << BigInt(n * 8)) + BigInt(i) : i).toString(16)}`;
|
|
190
|
+
return n ? p(u, { size: n }) : u;
|
|
191
|
+
}
|
|
192
|
+
const ie = /* @__PURE__ */ new TextEncoder();
|
|
193
|
+
function se(e, t = {}) {
|
|
194
|
+
const r = ie.encode(e);
|
|
195
|
+
return E(r, t);
|
|
196
|
+
}
|
|
197
|
+
const oe = /* @__PURE__ */ new TextEncoder();
|
|
198
|
+
function ae(e, t = {}) {
|
|
199
|
+
return typeof e == "number" || typeof e == "bigint" ? ce(e, t) : typeof e == "boolean" ? ue(e, t) : P(e) ? k(e, t) : M(e, t);
|
|
200
|
+
}
|
|
201
|
+
function ue(e, t = {}) {
|
|
202
|
+
const r = new Uint8Array(1);
|
|
203
|
+
return r[0] = Number(e), typeof t.size == "number" ? (g(r, { size: t.size }), p(r, { size: t.size })) : r;
|
|
204
|
+
}
|
|
205
|
+
const f = {
|
|
206
|
+
zero: 48,
|
|
207
|
+
nine: 57,
|
|
208
|
+
A: 65,
|
|
209
|
+
F: 70,
|
|
210
|
+
a: 97,
|
|
211
|
+
f: 102
|
|
212
|
+
};
|
|
213
|
+
function I(e) {
|
|
214
|
+
if (e >= f.zero && e <= f.nine)
|
|
215
|
+
return e - f.zero;
|
|
216
|
+
if (e >= f.A && e <= f.F)
|
|
217
|
+
return e - (f.A - 10);
|
|
218
|
+
if (e >= f.a && e <= f.f)
|
|
219
|
+
return e - (f.a - 10);
|
|
220
|
+
}
|
|
221
|
+
function k(e, t = {}) {
|
|
222
|
+
let r = e;
|
|
223
|
+
t.size && (g(r, { size: t.size }), r = p(r, { dir: "right", size: t.size }));
|
|
224
|
+
let n = r.slice(2);
|
|
225
|
+
n.length % 2 && (n = `0${n}`);
|
|
226
|
+
const i = n.length / 2, o = new Uint8Array(i);
|
|
227
|
+
for (let s = 0, u = 0; s < i; s++) {
|
|
228
|
+
const c = I(n.charCodeAt(u++)), h = I(n.charCodeAt(u++));
|
|
229
|
+
if (c === void 0 || h === void 0)
|
|
230
|
+
throw new a(`Invalid byte sequence ("${n[u - 2]}${n[u - 1]}" in "${n}").`);
|
|
231
|
+
o[s] = c * 16 + h;
|
|
232
|
+
}
|
|
233
|
+
return o;
|
|
234
|
+
}
|
|
235
|
+
function ce(e, t) {
|
|
236
|
+
const r = l(e, t);
|
|
237
|
+
return k(r);
|
|
238
|
+
}
|
|
239
|
+
function M(e, t = {}) {
|
|
240
|
+
const r = oe.encode(e);
|
|
241
|
+
return typeof t.size == "number" ? (g(r, { size: t.size }), p(r, { dir: "right", size: t.size })) : r;
|
|
242
|
+
}
|
|
243
|
+
function g(e, { size: t }) {
|
|
244
|
+
if (b(e) > t)
|
|
245
|
+
throw new Z({
|
|
246
|
+
givenSize: b(e),
|
|
247
|
+
maxSize: t
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
function fe(e, t = {}) {
|
|
251
|
+
const { signed: r } = t;
|
|
252
|
+
t.size && g(e, { size: t.size });
|
|
253
|
+
const n = BigInt(e);
|
|
254
|
+
if (!r)
|
|
255
|
+
return n;
|
|
256
|
+
const i = (e.length - 2) / 2, o = (1n << BigInt(i) * 8n - 1n) - 1n;
|
|
257
|
+
return n <= o ? n : n - BigInt(`0x${"f".padStart(i * 2, "f")}`) - 1n;
|
|
258
|
+
}
|
|
259
|
+
function ct(e, t = {}) {
|
|
260
|
+
return Number(fe(e, t));
|
|
261
|
+
}
|
|
262
|
+
function ft(e, t) {
|
|
263
|
+
return ({ exclude: r, format: n }) => ({
|
|
264
|
+
exclude: r,
|
|
265
|
+
format: (i) => {
|
|
266
|
+
const o = t(i);
|
|
267
|
+
if (r)
|
|
268
|
+
for (const s of r)
|
|
269
|
+
delete o[s];
|
|
270
|
+
return {
|
|
271
|
+
...o,
|
|
272
|
+
...n(i)
|
|
273
|
+
};
|
|
274
|
+
},
|
|
275
|
+
type: e
|
|
276
|
+
});
|
|
277
|
+
}
|
|
278
|
+
class lt extends a {
|
|
279
|
+
constructor({ address: t }) {
|
|
280
|
+
super(`Address "${t}" is invalid.`, {
|
|
281
|
+
metaMessages: [
|
|
282
|
+
"- Address must be a hex value of 20 bytes (40 hex characters).",
|
|
283
|
+
"- Address must match its checksum counterpart."
|
|
284
|
+
]
|
|
285
|
+
}), Object.defineProperty(this, "name", {
|
|
286
|
+
enumerable: !0,
|
|
287
|
+
configurable: !0,
|
|
288
|
+
writable: !0,
|
|
289
|
+
value: "InvalidAddressError"
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
class R extends Map {
|
|
294
|
+
constructor(t) {
|
|
295
|
+
super(), Object.defineProperty(this, "maxSize", {
|
|
296
|
+
enumerable: !0,
|
|
297
|
+
configurable: !0,
|
|
298
|
+
writable: !0,
|
|
299
|
+
value: void 0
|
|
300
|
+
}), this.maxSize = t;
|
|
301
|
+
}
|
|
302
|
+
set(t, r) {
|
|
303
|
+
return super.set(t, r), this.maxSize && this.size > this.maxSize && this.delete(this.keys().next().value), this;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
function T(e) {
|
|
307
|
+
if (!Number.isSafeInteger(e) || e < 0)
|
|
308
|
+
throw new Error(`Wrong positive integer: ${e}`);
|
|
309
|
+
}
|
|
310
|
+
function F(e, ...t) {
|
|
311
|
+
if (!(e instanceof Uint8Array))
|
|
312
|
+
throw new Error("Expected Uint8Array");
|
|
313
|
+
if (t.length > 0 && !t.includes(e.length))
|
|
314
|
+
throw new Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`);
|
|
315
|
+
}
|
|
316
|
+
function L(e, t = !0) {
|
|
317
|
+
if (e.destroyed)
|
|
318
|
+
throw new Error("Hash instance has been destroyed");
|
|
319
|
+
if (t && e.finished)
|
|
320
|
+
throw new Error("Hash#digest() has already been called");
|
|
321
|
+
}
|
|
322
|
+
function le(e, t) {
|
|
323
|
+
F(e);
|
|
324
|
+
const r = t.outputLen;
|
|
325
|
+
if (e.length < r)
|
|
326
|
+
throw new Error(`digestInto() expects output buffer of length at least ${r}`);
|
|
327
|
+
}
|
|
328
|
+
const w = /* @__PURE__ */ BigInt(2 ** 32 - 1), j = /* @__PURE__ */ BigInt(32);
|
|
329
|
+
function he(e, t = !1) {
|
|
330
|
+
return t ? { h: Number(e & w), l: Number(e >> j & w) } : { h: Number(e >> j & w) | 0, l: Number(e & w) | 0 };
|
|
331
|
+
}
|
|
332
|
+
function de(e, t = !1) {
|
|
333
|
+
let r = new Uint32Array(e.length), n = new Uint32Array(e.length);
|
|
334
|
+
for (let i = 0; i < e.length; i++) {
|
|
335
|
+
const { h: o, l: s } = he(e[i], t);
|
|
336
|
+
[r[i], n[i]] = [o, s];
|
|
337
|
+
}
|
|
338
|
+
return [r, n];
|
|
339
|
+
}
|
|
340
|
+
const be = (e, t, r) => e << r | t >>> 32 - r, pe = (e, t, r) => t << r | e >>> 32 - r, ge = (e, t, r) => t << r - 32 | e >>> 64 - r, me = (e, t, r) => e << r - 32 | t >>> 64 - r;
|
|
341
|
+
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
342
|
+
const ye = (e) => e instanceof Uint8Array, we = (e) => new Uint32Array(e.buffer, e.byteOffset, Math.floor(e.byteLength / 4)), ht = (e) => new DataView(e.buffer, e.byteOffset, e.byteLength), dt = (e, t) => e << 32 - t | e >>> t, xe = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
|
|
343
|
+
if (!xe)
|
|
344
|
+
throw new Error("Non little-endian hardware is not supported");
|
|
345
|
+
function Pe(e) {
|
|
346
|
+
if (typeof e != "string")
|
|
347
|
+
throw new Error(`utf8ToBytes expected string, got ${typeof e}`);
|
|
348
|
+
return new Uint8Array(new TextEncoder().encode(e));
|
|
349
|
+
}
|
|
350
|
+
function N(e) {
|
|
351
|
+
if (typeof e == "string" && (e = Pe(e)), !ye(e))
|
|
352
|
+
throw new Error(`expected Uint8Array, got ${typeof e}`);
|
|
353
|
+
return e;
|
|
354
|
+
}
|
|
355
|
+
class ve {
|
|
356
|
+
// Safe version that clones internal state
|
|
357
|
+
clone() {
|
|
358
|
+
return this._cloneInto();
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
function $e(e) {
|
|
362
|
+
const t = (n) => e().update(N(n)).digest(), r = e();
|
|
363
|
+
return t.outputLen = r.outputLen, t.blockLen = r.blockLen, t.create = () => e(), t;
|
|
364
|
+
}
|
|
365
|
+
const [H, V, G] = [[], [], []], Ee = /* @__PURE__ */ BigInt(0), m = /* @__PURE__ */ BigInt(1), Oe = /* @__PURE__ */ BigInt(2), Ie = /* @__PURE__ */ BigInt(7), Te = /* @__PURE__ */ BigInt(256), Le = /* @__PURE__ */ BigInt(113);
|
|
366
|
+
for (let e = 0, t = m, r = 1, n = 0; e < 24; e++) {
|
|
367
|
+
[r, n] = [n, (2 * r + 3 * n) % 5], H.push(2 * (5 * n + r)), V.push((e + 1) * (e + 2) / 2 % 64);
|
|
368
|
+
let i = Ee;
|
|
369
|
+
for (let o = 0; o < 7; o++)
|
|
370
|
+
t = (t << m ^ (t >> Ie) * Le) % Te, t & Oe && (i ^= m << (m << /* @__PURE__ */ BigInt(o)) - m);
|
|
371
|
+
G.push(i);
|
|
372
|
+
}
|
|
373
|
+
const [je, Ae] = /* @__PURE__ */ de(G, !0), A = (e, t, r) => r > 32 ? ge(e, t, r) : be(e, t, r), C = (e, t, r) => r > 32 ? me(e, t, r) : pe(e, t, r);
|
|
374
|
+
function Ce(e, t = 24) {
|
|
375
|
+
const r = new Uint32Array(10);
|
|
376
|
+
for (let n = 24 - t; n < 24; n++) {
|
|
377
|
+
for (let s = 0; s < 10; s++)
|
|
378
|
+
r[s] = e[s] ^ e[s + 10] ^ e[s + 20] ^ e[s + 30] ^ e[s + 40];
|
|
379
|
+
for (let s = 0; s < 10; s += 2) {
|
|
380
|
+
const u = (s + 8) % 10, c = (s + 2) % 10, h = r[c], d = r[c + 1], W = A(h, d, 1) ^ r[u], K = C(h, d, 1) ^ r[u + 1];
|
|
381
|
+
for (let y = 0; y < 50; y += 10)
|
|
382
|
+
e[s + y] ^= W, e[s + y + 1] ^= K;
|
|
383
|
+
}
|
|
384
|
+
let i = e[2], o = e[3];
|
|
385
|
+
for (let s = 0; s < 24; s++) {
|
|
386
|
+
const u = V[s], c = A(i, o, u), h = C(i, o, u), d = H[s];
|
|
387
|
+
i = e[d], o = e[d + 1], e[d] = c, e[d + 1] = h;
|
|
388
|
+
}
|
|
389
|
+
for (let s = 0; s < 50; s += 10) {
|
|
390
|
+
for (let u = 0; u < 10; u++)
|
|
391
|
+
r[u] = e[s + u];
|
|
392
|
+
for (let u = 0; u < 10; u++)
|
|
393
|
+
e[s + u] ^= ~r[(u + 2) % 10] & r[(u + 4) % 10];
|
|
394
|
+
}
|
|
395
|
+
e[0] ^= je[n], e[1] ^= Ae[n];
|
|
396
|
+
}
|
|
397
|
+
r.fill(0);
|
|
398
|
+
}
|
|
399
|
+
class O extends ve {
|
|
400
|
+
// NOTE: we accept arguments in bytes instead of bits here.
|
|
401
|
+
constructor(t, r, n, i = !1, o = 24) {
|
|
402
|
+
if (super(), this.blockLen = t, this.suffix = r, this.outputLen = n, this.enableXOF = i, this.rounds = o, this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, T(n), 0 >= this.blockLen || this.blockLen >= 200)
|
|
403
|
+
throw new Error("Sha3 supports only keccak-f1600 function");
|
|
404
|
+
this.state = new Uint8Array(200), this.state32 = we(this.state);
|
|
405
|
+
}
|
|
406
|
+
keccak() {
|
|
407
|
+
Ce(this.state32, this.rounds), this.posOut = 0, this.pos = 0;
|
|
408
|
+
}
|
|
409
|
+
update(t) {
|
|
410
|
+
L(this);
|
|
411
|
+
const { blockLen: r, state: n } = this;
|
|
412
|
+
t = N(t);
|
|
413
|
+
const i = t.length;
|
|
414
|
+
for (let o = 0; o < i; ) {
|
|
415
|
+
const s = Math.min(r - this.pos, i - o);
|
|
416
|
+
for (let u = 0; u < s; u++)
|
|
417
|
+
n[this.pos++] ^= t[o++];
|
|
418
|
+
this.pos === r && this.keccak();
|
|
419
|
+
}
|
|
420
|
+
return this;
|
|
421
|
+
}
|
|
422
|
+
finish() {
|
|
423
|
+
if (this.finished)
|
|
424
|
+
return;
|
|
425
|
+
this.finished = !0;
|
|
426
|
+
const { state: t, suffix: r, pos: n, blockLen: i } = this;
|
|
427
|
+
t[n] ^= r, r & 128 && n === i - 1 && this.keccak(), t[i - 1] ^= 128, this.keccak();
|
|
428
|
+
}
|
|
429
|
+
writeInto(t) {
|
|
430
|
+
L(this, !1), F(t), this.finish();
|
|
431
|
+
const r = this.state, { blockLen: n } = this;
|
|
432
|
+
for (let i = 0, o = t.length; i < o; ) {
|
|
433
|
+
this.posOut >= n && this.keccak();
|
|
434
|
+
const s = Math.min(n - this.posOut, o - i);
|
|
435
|
+
t.set(r.subarray(this.posOut, this.posOut + s), i), this.posOut += s, i += s;
|
|
436
|
+
}
|
|
437
|
+
return t;
|
|
438
|
+
}
|
|
439
|
+
xofInto(t) {
|
|
440
|
+
if (!this.enableXOF)
|
|
441
|
+
throw new Error("XOF is not possible for this instance");
|
|
442
|
+
return this.writeInto(t);
|
|
443
|
+
}
|
|
444
|
+
xof(t) {
|
|
445
|
+
return T(t), this.xofInto(new Uint8Array(t));
|
|
446
|
+
}
|
|
447
|
+
digestInto(t) {
|
|
448
|
+
if (le(t, this), this.finished)
|
|
449
|
+
throw new Error("digest() was already called");
|
|
450
|
+
return this.writeInto(t), this.destroy(), t;
|
|
451
|
+
}
|
|
452
|
+
digest() {
|
|
453
|
+
return this.digestInto(new Uint8Array(this.outputLen));
|
|
454
|
+
}
|
|
455
|
+
destroy() {
|
|
456
|
+
this.destroyed = !0, this.state.fill(0);
|
|
457
|
+
}
|
|
458
|
+
_cloneInto(t) {
|
|
459
|
+
const { blockLen: r, suffix: n, outputLen: i, rounds: o, enableXOF: s } = this;
|
|
460
|
+
return t || (t = new O(r, n, i, s, o)), t.state32.set(this.state32), t.pos = this.pos, t.posOut = this.posOut, t.finished = this.finished, t.rounds = o, t.suffix = n, t.outputLen = i, t.enableXOF = s, t.destroyed = this.destroyed, t;
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
const Ue = (e, t, r) => $e(() => new O(t, e, r)), Be = /* @__PURE__ */ Ue(1, 136, 256 / 8);
|
|
464
|
+
function Se(e, t) {
|
|
465
|
+
const r = t || "hex", n = Be(P(e, { strict: !1 }) ? ae(e) : e);
|
|
466
|
+
return r === "bytes" ? n : re(n);
|
|
467
|
+
}
|
|
468
|
+
const v = /* @__PURE__ */ new R(8192);
|
|
469
|
+
function ze(e, t) {
|
|
470
|
+
if (v.has(`${e}.${t}`))
|
|
471
|
+
return v.get(`${e}.${t}`);
|
|
472
|
+
const r = e.substring(2).toLowerCase(), n = Se(M(r), "bytes"), i = r.split("");
|
|
473
|
+
for (let s = 0; s < 40; s += 2)
|
|
474
|
+
n[s >> 1] >> 4 >= 8 && i[s] && (i[s] = i[s].toUpperCase()), (n[s >> 1] & 15) >= 8 && i[s + 1] && (i[s + 1] = i[s + 1].toUpperCase());
|
|
475
|
+
const o = `0x${i.join("")}`;
|
|
476
|
+
return v.set(`${e}.${t}`, o), o;
|
|
477
|
+
}
|
|
478
|
+
const ke = /^0x[a-fA-F0-9]{40}$/, $ = /* @__PURE__ */ new R(8192);
|
|
479
|
+
function bt(e, t) {
|
|
480
|
+
const { strict: r = !0 } = t ?? {};
|
|
481
|
+
if ($.has(e))
|
|
482
|
+
return $.get(e);
|
|
483
|
+
const n = ke.test(e) ? e.toLowerCase() === e ? !0 : r ? ze(e) === e : !0 : !1;
|
|
484
|
+
return $.set(e, n), n;
|
|
485
|
+
}
|
|
486
|
+
function pt(e) {
|
|
487
|
+
return typeof e[0] == "string" ? Re(e) : Me(e);
|
|
488
|
+
}
|
|
489
|
+
function Me(e) {
|
|
490
|
+
let t = 0;
|
|
491
|
+
for (const i of e)
|
|
492
|
+
t += i.length;
|
|
493
|
+
const r = new Uint8Array(t);
|
|
494
|
+
let n = 0;
|
|
495
|
+
for (const i of e)
|
|
496
|
+
r.set(i, n), n += i.length;
|
|
497
|
+
return r;
|
|
498
|
+
}
|
|
499
|
+
function Re(e) {
|
|
500
|
+
return `0x${e.reduce((t, r) => t + r.replace("0x", ""), "")}`;
|
|
501
|
+
}
|
|
502
|
+
class U extends a {
|
|
503
|
+
constructor({ offset: t }) {
|
|
504
|
+
super(`Offset \`${t}\` cannot be negative.`), Object.defineProperty(this, "name", {
|
|
505
|
+
enumerable: !0,
|
|
506
|
+
configurable: !0,
|
|
507
|
+
writable: !0,
|
|
508
|
+
value: "NegativeOffsetError"
|
|
509
|
+
});
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
class Fe extends a {
|
|
513
|
+
constructor({ length: t, position: r }) {
|
|
514
|
+
super(`Position \`${r}\` is out of bounds (\`0 < position < ${t}\`).`), Object.defineProperty(this, "name", {
|
|
515
|
+
enumerable: !0,
|
|
516
|
+
configurable: !0,
|
|
517
|
+
writable: !0,
|
|
518
|
+
value: "PositionOutOfBoundsError"
|
|
519
|
+
});
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
class Ne extends a {
|
|
523
|
+
constructor({ count: t, limit: r }) {
|
|
524
|
+
super(`Recursive read limit of \`${r}\` exceeded (recursive read count: \`${t}\`).`), Object.defineProperty(this, "name", {
|
|
525
|
+
enumerable: !0,
|
|
526
|
+
configurable: !0,
|
|
527
|
+
writable: !0,
|
|
528
|
+
value: "RecursiveReadLimitExceededError"
|
|
529
|
+
});
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
const He = {
|
|
533
|
+
bytes: new Uint8Array(),
|
|
534
|
+
dataView: new DataView(new ArrayBuffer(0)),
|
|
535
|
+
position: 0,
|
|
536
|
+
positionReadCount: /* @__PURE__ */ new Map(),
|
|
537
|
+
recursiveReadCount: 0,
|
|
538
|
+
recursiveReadLimit: Number.POSITIVE_INFINITY,
|
|
539
|
+
assertReadLimit() {
|
|
540
|
+
if (this.recursiveReadCount >= this.recursiveReadLimit)
|
|
541
|
+
throw new Ne({
|
|
542
|
+
count: this.recursiveReadCount + 1,
|
|
543
|
+
limit: this.recursiveReadLimit
|
|
544
|
+
});
|
|
545
|
+
},
|
|
546
|
+
assertPosition(e) {
|
|
547
|
+
if (e < 0 || e > this.bytes.length - 1)
|
|
548
|
+
throw new Fe({
|
|
549
|
+
length: this.bytes.length,
|
|
550
|
+
position: e
|
|
551
|
+
});
|
|
552
|
+
},
|
|
553
|
+
decrementPosition(e) {
|
|
554
|
+
if (e < 0)
|
|
555
|
+
throw new U({ offset: e });
|
|
556
|
+
const t = this.position - e;
|
|
557
|
+
this.assertPosition(t), this.position = t;
|
|
558
|
+
},
|
|
559
|
+
getReadCount(e) {
|
|
560
|
+
return this.positionReadCount.get(e || this.position) || 0;
|
|
561
|
+
},
|
|
562
|
+
incrementPosition(e) {
|
|
563
|
+
if (e < 0)
|
|
564
|
+
throw new U({ offset: e });
|
|
565
|
+
const t = this.position + e;
|
|
566
|
+
this.assertPosition(t), this.position = t;
|
|
567
|
+
},
|
|
568
|
+
inspectByte(e) {
|
|
569
|
+
const t = e ?? this.position;
|
|
570
|
+
return this.assertPosition(t), this.bytes[t];
|
|
571
|
+
},
|
|
572
|
+
inspectBytes(e, t) {
|
|
573
|
+
const r = t ?? this.position;
|
|
574
|
+
return this.assertPosition(r + e - 1), this.bytes.subarray(r, r + e);
|
|
575
|
+
},
|
|
576
|
+
inspectUint8(e) {
|
|
577
|
+
const t = e ?? this.position;
|
|
578
|
+
return this.assertPosition(t), this.bytes[t];
|
|
579
|
+
},
|
|
580
|
+
inspectUint16(e) {
|
|
581
|
+
const t = e ?? this.position;
|
|
582
|
+
return this.assertPosition(t + 1), this.dataView.getUint16(t);
|
|
583
|
+
},
|
|
584
|
+
inspectUint24(e) {
|
|
585
|
+
const t = e ?? this.position;
|
|
586
|
+
return this.assertPosition(t + 2), (this.dataView.getUint16(t) << 8) + this.dataView.getUint8(t + 2);
|
|
587
|
+
},
|
|
588
|
+
inspectUint32(e) {
|
|
589
|
+
const t = e ?? this.position;
|
|
590
|
+
return this.assertPosition(t + 3), this.dataView.getUint32(t);
|
|
591
|
+
},
|
|
592
|
+
pushByte(e) {
|
|
593
|
+
this.assertPosition(this.position), this.bytes[this.position] = e, this.position++;
|
|
594
|
+
},
|
|
595
|
+
pushBytes(e) {
|
|
596
|
+
this.assertPosition(this.position + e.length - 1), this.bytes.set(e, this.position), this.position += e.length;
|
|
597
|
+
},
|
|
598
|
+
pushUint8(e) {
|
|
599
|
+
this.assertPosition(this.position), this.bytes[this.position] = e, this.position++;
|
|
600
|
+
},
|
|
601
|
+
pushUint16(e) {
|
|
602
|
+
this.assertPosition(this.position + 1), this.dataView.setUint16(this.position, e), this.position += 2;
|
|
603
|
+
},
|
|
604
|
+
pushUint24(e) {
|
|
605
|
+
this.assertPosition(this.position + 2), this.dataView.setUint16(this.position, e >> 8), this.dataView.setUint8(this.position + 2, e & 255), this.position += 3;
|
|
606
|
+
},
|
|
607
|
+
pushUint32(e) {
|
|
608
|
+
this.assertPosition(this.position + 3), this.dataView.setUint32(this.position, e), this.position += 4;
|
|
609
|
+
},
|
|
610
|
+
readByte() {
|
|
611
|
+
this.assertReadLimit(), this._touch();
|
|
612
|
+
const e = this.inspectByte();
|
|
613
|
+
return this.position++, e;
|
|
614
|
+
},
|
|
615
|
+
readBytes(e, t) {
|
|
616
|
+
this.assertReadLimit(), this._touch();
|
|
617
|
+
const r = this.inspectBytes(e);
|
|
618
|
+
return this.position += t ?? e, r;
|
|
619
|
+
},
|
|
620
|
+
readUint8() {
|
|
621
|
+
this.assertReadLimit(), this._touch();
|
|
622
|
+
const e = this.inspectUint8();
|
|
623
|
+
return this.position += 1, e;
|
|
624
|
+
},
|
|
625
|
+
readUint16() {
|
|
626
|
+
this.assertReadLimit(), this._touch();
|
|
627
|
+
const e = this.inspectUint16();
|
|
628
|
+
return this.position += 2, e;
|
|
629
|
+
},
|
|
630
|
+
readUint24() {
|
|
631
|
+
this.assertReadLimit(), this._touch();
|
|
632
|
+
const e = this.inspectUint24();
|
|
633
|
+
return this.position += 3, e;
|
|
634
|
+
},
|
|
635
|
+
readUint32() {
|
|
636
|
+
this.assertReadLimit(), this._touch();
|
|
637
|
+
const e = this.inspectUint32();
|
|
638
|
+
return this.position += 4, e;
|
|
639
|
+
},
|
|
640
|
+
get remaining() {
|
|
641
|
+
return this.bytes.length - this.position;
|
|
642
|
+
},
|
|
643
|
+
setPosition(e) {
|
|
644
|
+
const t = this.position;
|
|
645
|
+
return this.assertPosition(e), this.position = e, () => this.position = t;
|
|
646
|
+
},
|
|
647
|
+
_touch() {
|
|
648
|
+
if (this.recursiveReadLimit === Number.POSITIVE_INFINITY)
|
|
649
|
+
return;
|
|
650
|
+
const e = this.getReadCount();
|
|
651
|
+
this.positionReadCount.set(this.position, e + 1), e > 0 && this.recursiveReadCount++;
|
|
652
|
+
}
|
|
653
|
+
};
|
|
654
|
+
function gt(e, { recursiveReadLimit: t = 8192 } = {}) {
|
|
655
|
+
const r = Object.create(He);
|
|
656
|
+
return r.bytes = e, r.dataView = new DataView(e.buffer, e.byteOffset, e.byteLength), r.positionReadCount = /* @__PURE__ */ new Map(), r.recursiveReadLimit = t, r;
|
|
657
|
+
}
|
|
658
|
+
const mt = {
|
|
659
|
+
gwei: 9,
|
|
660
|
+
wei: 18
|
|
661
|
+
}, Ve = {
|
|
662
|
+
ether: -9,
|
|
663
|
+
wei: 9
|
|
664
|
+
};
|
|
665
|
+
function Ge(e, t) {
|
|
666
|
+
let r = e.toString();
|
|
667
|
+
const n = r.startsWith("-");
|
|
668
|
+
n && (r = r.slice(1)), r = r.padStart(t, "0");
|
|
669
|
+
let [i, o] = [
|
|
670
|
+
r.slice(0, r.length - t),
|
|
671
|
+
r.slice(r.length - t)
|
|
672
|
+
];
|
|
673
|
+
return o = o.replace(/(0+)$/, ""), `${n ? "-" : ""}${i || "0"}${o ? `.${o}` : ""}`;
|
|
674
|
+
}
|
|
675
|
+
function x(e, t = "wei") {
|
|
676
|
+
return Ge(e, Ve[t]);
|
|
677
|
+
}
|
|
678
|
+
function _e(e) {
|
|
679
|
+
const t = Object.entries(e).map(([n, i]) => i === void 0 || i === !1 ? null : [n, i]).filter(Boolean), r = t.reduce((n, [i]) => Math.max(n, i.length), 0);
|
|
680
|
+
return t.map(([n, i]) => ` ${`${n}:`.padEnd(r + 1)} ${i}`).join(`
|
|
681
|
+
`);
|
|
682
|
+
}
|
|
683
|
+
class yt extends a {
|
|
684
|
+
constructor() {
|
|
685
|
+
super([
|
|
686
|
+
"Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.",
|
|
687
|
+
"Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."
|
|
688
|
+
].join(`
|
|
689
|
+
`)), Object.defineProperty(this, "name", {
|
|
690
|
+
enumerable: !0,
|
|
691
|
+
configurable: !0,
|
|
692
|
+
writable: !0,
|
|
693
|
+
value: "FeeConflictError"
|
|
694
|
+
});
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
class wt extends a {
|
|
698
|
+
constructor({ v: t }) {
|
|
699
|
+
super(`Invalid \`v\` value "${t}". Expected 27 or 28.`), Object.defineProperty(this, "name", {
|
|
700
|
+
enumerable: !0,
|
|
701
|
+
configurable: !0,
|
|
702
|
+
writable: !0,
|
|
703
|
+
value: "InvalidLegacyVError"
|
|
704
|
+
});
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
class xt extends a {
|
|
708
|
+
constructor({ transaction: t }) {
|
|
709
|
+
super("Cannot infer a transaction type from provided transaction.", {
|
|
710
|
+
metaMessages: [
|
|
711
|
+
"Provided Transaction:",
|
|
712
|
+
"{",
|
|
713
|
+
_e(t),
|
|
714
|
+
"}",
|
|
715
|
+
"",
|
|
716
|
+
"To infer the type, either provide:",
|
|
717
|
+
"- a `type` to the Transaction, or",
|
|
718
|
+
"- an EIP-1559 Transaction with `maxFeePerGas`, or",
|
|
719
|
+
"- an EIP-2930 Transaction with `gasPrice` & `accessList`, or",
|
|
720
|
+
"- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or",
|
|
721
|
+
"- a Legacy Transaction with `gasPrice`"
|
|
722
|
+
]
|
|
723
|
+
}), Object.defineProperty(this, "name", {
|
|
724
|
+
enumerable: !0,
|
|
725
|
+
configurable: !0,
|
|
726
|
+
writable: !0,
|
|
727
|
+
value: "InvalidSerializableTransactionError"
|
|
728
|
+
});
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
class Pt extends a {
|
|
732
|
+
constructor({ storageKey: t }) {
|
|
733
|
+
super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${Math.floor((t.length - 2) / 2)} bytes.`), Object.defineProperty(this, "name", {
|
|
734
|
+
enumerable: !0,
|
|
735
|
+
configurable: !0,
|
|
736
|
+
writable: !0,
|
|
737
|
+
value: "InvalidStorageKeySizeError"
|
|
738
|
+
});
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
class vt extends a {
|
|
742
|
+
constructor({ blockNumber: t, chain: r, contract: n }) {
|
|
743
|
+
super(`Chain "${r.name}" does not support contract "${n.name}".`, {
|
|
744
|
+
metaMessages: [
|
|
745
|
+
"This could be due to any of the following:",
|
|
746
|
+
...t && n.blockCreated && n.blockCreated > t ? [
|
|
747
|
+
`- The contract "${n.name}" was not deployed until block ${n.blockCreated} (current block ${t}).`
|
|
748
|
+
] : [
|
|
749
|
+
`- The chain does not have the contract "${n.name}" configured.`
|
|
750
|
+
]
|
|
751
|
+
]
|
|
752
|
+
}), Object.defineProperty(this, "name", {
|
|
753
|
+
enumerable: !0,
|
|
754
|
+
configurable: !0,
|
|
755
|
+
writable: !0,
|
|
756
|
+
value: "ChainDoesNotSupportContract"
|
|
757
|
+
});
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
class $t extends a {
|
|
761
|
+
constructor() {
|
|
762
|
+
super("No chain was provided to the Client."), Object.defineProperty(this, "name", {
|
|
763
|
+
enumerable: !0,
|
|
764
|
+
configurable: !0,
|
|
765
|
+
writable: !0,
|
|
766
|
+
value: "ClientChainNotConfiguredError"
|
|
767
|
+
});
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
class Et extends a {
|
|
771
|
+
constructor({ chainId: t }) {
|
|
772
|
+
super(typeof t == "number" ? `Chain ID "${t}" is invalid.` : "Chain ID is invalid."), Object.defineProperty(this, "name", {
|
|
773
|
+
enumerable: !0,
|
|
774
|
+
configurable: !0,
|
|
775
|
+
writable: !0,
|
|
776
|
+
value: "InvalidChainIdError"
|
|
777
|
+
});
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
class _ extends a {
|
|
781
|
+
constructor({ cause: t, message: r } = {}) {
|
|
782
|
+
var i;
|
|
783
|
+
const n = (i = r == null ? void 0 : r.replace("execution reverted: ", "")) == null ? void 0 : i.replace("execution reverted", "");
|
|
784
|
+
super(`Execution reverted ${n ? `with reason: ${n}` : "for an unknown reason"}.`, {
|
|
785
|
+
cause: t
|
|
786
|
+
}), Object.defineProperty(this, "name", {
|
|
787
|
+
enumerable: !0,
|
|
788
|
+
configurable: !0,
|
|
789
|
+
writable: !0,
|
|
790
|
+
value: "ExecutionRevertedError"
|
|
791
|
+
});
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
Object.defineProperty(_, "code", {
|
|
795
|
+
enumerable: !0,
|
|
796
|
+
configurable: !0,
|
|
797
|
+
writable: !0,
|
|
798
|
+
value: 3
|
|
799
|
+
});
|
|
800
|
+
Object.defineProperty(_, "nodeMessage", {
|
|
801
|
+
enumerable: !0,
|
|
802
|
+
configurable: !0,
|
|
803
|
+
writable: !0,
|
|
804
|
+
value: /execution reverted/
|
|
805
|
+
});
|
|
806
|
+
class De extends a {
|
|
807
|
+
constructor({ cause: t, maxFeePerGas: r } = {}) {
|
|
808
|
+
super(`The fee cap (\`maxFeePerGas\`${r ? ` = ${x(r)} gwei` : ""}) cannot be higher than the maximum allowed value (2^256-1).`, {
|
|
809
|
+
cause: t
|
|
810
|
+
}), Object.defineProperty(this, "name", {
|
|
811
|
+
enumerable: !0,
|
|
812
|
+
configurable: !0,
|
|
813
|
+
writable: !0,
|
|
814
|
+
value: "FeeCapTooHigh"
|
|
815
|
+
});
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
Object.defineProperty(De, "nodeMessage", {
|
|
819
|
+
enumerable: !0,
|
|
820
|
+
configurable: !0,
|
|
821
|
+
writable: !0,
|
|
822
|
+
value: /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
|
|
823
|
+
});
|
|
824
|
+
class Xe extends a {
|
|
825
|
+
constructor({ cause: t, maxFeePerGas: r } = {}) {
|
|
826
|
+
super(`The fee cap (\`maxFeePerGas\`${r ? ` = ${x(r)}` : ""} gwei) cannot be lower than the block base fee.`, {
|
|
827
|
+
cause: t
|
|
828
|
+
}), Object.defineProperty(this, "name", {
|
|
829
|
+
enumerable: !0,
|
|
830
|
+
configurable: !0,
|
|
831
|
+
writable: !0,
|
|
832
|
+
value: "FeeCapTooLow"
|
|
833
|
+
});
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
Object.defineProperty(Xe, "nodeMessage", {
|
|
837
|
+
enumerable: !0,
|
|
838
|
+
configurable: !0,
|
|
839
|
+
writable: !0,
|
|
840
|
+
value: /max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/
|
|
841
|
+
});
|
|
842
|
+
class We extends a {
|
|
843
|
+
constructor({ cause: t, nonce: r } = {}) {
|
|
844
|
+
super(`Nonce provided for the transaction ${r ? `(${r}) ` : ""}is higher than the next one expected.`, { cause: t }), Object.defineProperty(this, "name", {
|
|
845
|
+
enumerable: !0,
|
|
846
|
+
configurable: !0,
|
|
847
|
+
writable: !0,
|
|
848
|
+
value: "NonceTooHighError"
|
|
849
|
+
});
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
Object.defineProperty(We, "nodeMessage", {
|
|
853
|
+
enumerable: !0,
|
|
854
|
+
configurable: !0,
|
|
855
|
+
writable: !0,
|
|
856
|
+
value: /nonce too high/
|
|
857
|
+
});
|
|
858
|
+
class Ke extends a {
|
|
859
|
+
constructor({ cause: t, nonce: r } = {}) {
|
|
860
|
+
super([
|
|
861
|
+
`Nonce provided for the transaction ${r ? `(${r}) ` : ""}is lower than the current nonce of the account.`,
|
|
862
|
+
"Try increasing the nonce or find the latest nonce with `getTransactionCount`."
|
|
863
|
+
].join(`
|
|
864
|
+
`), { cause: t }), Object.defineProperty(this, "name", {
|
|
865
|
+
enumerable: !0,
|
|
866
|
+
configurable: !0,
|
|
867
|
+
writable: !0,
|
|
868
|
+
value: "NonceTooLowError"
|
|
869
|
+
});
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
Object.defineProperty(Ke, "nodeMessage", {
|
|
873
|
+
enumerable: !0,
|
|
874
|
+
configurable: !0,
|
|
875
|
+
writable: !0,
|
|
876
|
+
value: /nonce too low|transaction already imported|already known/
|
|
877
|
+
});
|
|
878
|
+
class Ye extends a {
|
|
879
|
+
constructor({ cause: t, nonce: r } = {}) {
|
|
880
|
+
super(`Nonce provided for the transaction ${r ? `(${r}) ` : ""}exceeds the maximum allowed nonce.`, { cause: t }), Object.defineProperty(this, "name", {
|
|
881
|
+
enumerable: !0,
|
|
882
|
+
configurable: !0,
|
|
883
|
+
writable: !0,
|
|
884
|
+
value: "NonceMaxValueError"
|
|
885
|
+
});
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
Object.defineProperty(Ye, "nodeMessage", {
|
|
889
|
+
enumerable: !0,
|
|
890
|
+
configurable: !0,
|
|
891
|
+
writable: !0,
|
|
892
|
+
value: /nonce has max value/
|
|
893
|
+
});
|
|
894
|
+
class Je extends a {
|
|
895
|
+
constructor({ cause: t } = {}) {
|
|
896
|
+
super([
|
|
897
|
+
"The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."
|
|
898
|
+
].join(`
|
|
899
|
+
`), {
|
|
900
|
+
cause: t,
|
|
901
|
+
metaMessages: [
|
|
902
|
+
"This error could arise when the account does not have enough funds to:",
|
|
903
|
+
" - pay for the total gas fee,",
|
|
904
|
+
" - pay for the value to send.",
|
|
905
|
+
" ",
|
|
906
|
+
"The cost of the transaction is calculated as `gas * gas fee + value`, where:",
|
|
907
|
+
" - `gas` is the amount of gas needed for transaction to execute,",
|
|
908
|
+
" - `gas fee` is the gas fee,",
|
|
909
|
+
" - `value` is the amount of ether to send to the recipient."
|
|
910
|
+
]
|
|
911
|
+
}), Object.defineProperty(this, "name", {
|
|
912
|
+
enumerable: !0,
|
|
913
|
+
configurable: !0,
|
|
914
|
+
writable: !0,
|
|
915
|
+
value: "InsufficientFundsError"
|
|
916
|
+
});
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
Object.defineProperty(Je, "nodeMessage", {
|
|
920
|
+
enumerable: !0,
|
|
921
|
+
configurable: !0,
|
|
922
|
+
writable: !0,
|
|
923
|
+
value: /insufficient funds/
|
|
924
|
+
});
|
|
925
|
+
class Qe extends a {
|
|
926
|
+
constructor({ cause: t, gas: r } = {}) {
|
|
927
|
+
super(`The amount of gas ${r ? `(${r}) ` : ""}provided for the transaction exceeds the limit allowed for the block.`, {
|
|
928
|
+
cause: t
|
|
929
|
+
}), Object.defineProperty(this, "name", {
|
|
930
|
+
enumerable: !0,
|
|
931
|
+
configurable: !0,
|
|
932
|
+
writable: !0,
|
|
933
|
+
value: "IntrinsicGasTooHighError"
|
|
934
|
+
});
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
Object.defineProperty(Qe, "nodeMessage", {
|
|
938
|
+
enumerable: !0,
|
|
939
|
+
configurable: !0,
|
|
940
|
+
writable: !0,
|
|
941
|
+
value: /intrinsic gas too high|gas limit reached/
|
|
942
|
+
});
|
|
943
|
+
class Ze extends a {
|
|
944
|
+
constructor({ cause: t, gas: r } = {}) {
|
|
945
|
+
super(`The amount of gas ${r ? `(${r}) ` : ""}provided for the transaction is too low.`, {
|
|
946
|
+
cause: t
|
|
947
|
+
}), Object.defineProperty(this, "name", {
|
|
948
|
+
enumerable: !0,
|
|
949
|
+
configurable: !0,
|
|
950
|
+
writable: !0,
|
|
951
|
+
value: "IntrinsicGasTooLowError"
|
|
952
|
+
});
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
Object.defineProperty(Ze, "nodeMessage", {
|
|
956
|
+
enumerable: !0,
|
|
957
|
+
configurable: !0,
|
|
958
|
+
writable: !0,
|
|
959
|
+
value: /intrinsic gas too low/
|
|
960
|
+
});
|
|
961
|
+
class qe extends a {
|
|
962
|
+
constructor({ cause: t }) {
|
|
963
|
+
super("The transaction type is not supported for this chain.", {
|
|
964
|
+
cause: t
|
|
965
|
+
}), Object.defineProperty(this, "name", {
|
|
966
|
+
enumerable: !0,
|
|
967
|
+
configurable: !0,
|
|
968
|
+
writable: !0,
|
|
969
|
+
value: "TransactionTypeNotSupportedError"
|
|
970
|
+
});
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
Object.defineProperty(qe, "nodeMessage", {
|
|
974
|
+
enumerable: !0,
|
|
975
|
+
configurable: !0,
|
|
976
|
+
writable: !0,
|
|
977
|
+
value: /transaction type not valid/
|
|
978
|
+
});
|
|
979
|
+
class et extends a {
|
|
980
|
+
constructor({ cause: t, maxPriorityFeePerGas: r, maxFeePerGas: n } = {}) {
|
|
981
|
+
super([
|
|
982
|
+
`The provided tip (\`maxPriorityFeePerGas\`${r ? ` = ${x(r)} gwei` : ""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n ? ` = ${x(n)} gwei` : ""}).`
|
|
983
|
+
].join(`
|
|
984
|
+
`), {
|
|
985
|
+
cause: t
|
|
986
|
+
}), Object.defineProperty(this, "name", {
|
|
987
|
+
enumerable: !0,
|
|
988
|
+
configurable: !0,
|
|
989
|
+
writable: !0,
|
|
990
|
+
value: "TipAboveFeeCapError"
|
|
991
|
+
});
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
Object.defineProperty(et, "nodeMessage", {
|
|
995
|
+
enumerable: !0,
|
|
996
|
+
configurable: !0,
|
|
997
|
+
writable: !0,
|
|
998
|
+
value: /max priority fee per gas higher than max fee per gas|tip higher than fee cap/
|
|
999
|
+
});
|
|
1000
|
+
class Ot extends a {
|
|
1001
|
+
constructor({ cause: t }) {
|
|
1002
|
+
super(`An error occurred while executing: ${t == null ? void 0 : t.shortMessage}`, {
|
|
1003
|
+
cause: t
|
|
1004
|
+
}), Object.defineProperty(this, "name", {
|
|
1005
|
+
enumerable: !0,
|
|
1006
|
+
configurable: !0,
|
|
1007
|
+
writable: !0,
|
|
1008
|
+
value: "UnknownNodeError"
|
|
1009
|
+
});
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
function It(e, t, r, { strict: n } = {}) {
|
|
1013
|
+
return P(e, { strict: !1 }) ? rt(e, t, r, {
|
|
1014
|
+
strict: n
|
|
1015
|
+
}) : tt(e, t, r, {
|
|
1016
|
+
strict: n
|
|
1017
|
+
});
|
|
1018
|
+
}
|
|
1019
|
+
function D(e, t) {
|
|
1020
|
+
if (typeof t == "number" && t > 0 && t > b(e) - 1)
|
|
1021
|
+
throw new S({
|
|
1022
|
+
offset: t,
|
|
1023
|
+
position: "start",
|
|
1024
|
+
size: b(e)
|
|
1025
|
+
});
|
|
1026
|
+
}
|
|
1027
|
+
function X(e, t, r) {
|
|
1028
|
+
if (typeof t == "number" && typeof r == "number" && b(e) !== r - t)
|
|
1029
|
+
throw new S({
|
|
1030
|
+
offset: r,
|
|
1031
|
+
position: "end",
|
|
1032
|
+
size: b(e)
|
|
1033
|
+
});
|
|
1034
|
+
}
|
|
1035
|
+
function tt(e, t, r, { strict: n } = {}) {
|
|
1036
|
+
D(e, t);
|
|
1037
|
+
const i = e.slice(t, r);
|
|
1038
|
+
return n && X(i, t, r), i;
|
|
1039
|
+
}
|
|
1040
|
+
function rt(e, t, r, { strict: n } = {}) {
|
|
1041
|
+
D(e, t);
|
|
1042
|
+
const i = `0x${e.replace("0x", "").slice((t ?? 0) * 2, (r ?? e.length) * 2)}`;
|
|
1043
|
+
return n && X(i, t, r), i;
|
|
1044
|
+
}
|
|
1045
|
+
const nt = {
|
|
1046
|
+
legacy: "0x0",
|
|
1047
|
+
eip2930: "0x1",
|
|
1048
|
+
eip1559: "0x2",
|
|
1049
|
+
eip4844: "0x3"
|
|
1050
|
+
};
|
|
1051
|
+
function Tt(e) {
|
|
1052
|
+
const t = {};
|
|
1053
|
+
return typeof e.accessList < "u" && (t.accessList = e.accessList), typeof e.blobVersionedHashes < "u" && (t.blobVersionedHashes = e.blobVersionedHashes), typeof e.blobs < "u" && (typeof e.blobs[0] != "string" ? t.blobs = e.blobs.map((r) => E(r)) : t.blobs = e.blobs), typeof e.data < "u" && (t.data = e.data), typeof e.from < "u" && (t.from = e.from), typeof e.gas < "u" && (t.gas = l(e.gas)), typeof e.gasPrice < "u" && (t.gasPrice = l(e.gasPrice)), typeof e.maxFeePerBlobGas < "u" && (t.maxFeePerBlobGas = l(e.maxFeePerBlobGas)), typeof e.maxFeePerGas < "u" && (t.maxFeePerGas = l(e.maxFeePerGas)), typeof e.maxPriorityFeePerGas < "u" && (t.maxPriorityFeePerGas = l(e.maxPriorityFeePerGas)), typeof e.nonce < "u" && (t.nonce = l(e.nonce)), typeof e.to < "u" && (t.to = e.to), typeof e.type < "u" && (t.type = nt[e.type]), typeof e.value < "u" && (t.value = l(e.value)), t;
|
|
1054
|
+
}
|
|
1055
|
+
export {
|
|
1056
|
+
Je as $,
|
|
1057
|
+
q as A,
|
|
1058
|
+
a as B,
|
|
1059
|
+
ne as C,
|
|
1060
|
+
se as D,
|
|
1061
|
+
st as E,
|
|
1062
|
+
De as F,
|
|
1063
|
+
Tt as G,
|
|
1064
|
+
ve as H,
|
|
1065
|
+
lt as I,
|
|
1066
|
+
$t as J,
|
|
1067
|
+
vt as K,
|
|
1068
|
+
ze as L,
|
|
1069
|
+
tt as M,
|
|
1070
|
+
Se as N,
|
|
1071
|
+
M as O,
|
|
1072
|
+
yt as P,
|
|
1073
|
+
g as Q,
|
|
1074
|
+
ot as R,
|
|
1075
|
+
_e as S,
|
|
1076
|
+
et as T,
|
|
1077
|
+
Ot as U,
|
|
1078
|
+
x as V,
|
|
1079
|
+
_ as W,
|
|
1080
|
+
Xe as X,
|
|
1081
|
+
We as Y,
|
|
1082
|
+
Ke as Z,
|
|
1083
|
+
Ye as _,
|
|
1084
|
+
ct as a,
|
|
1085
|
+
Qe as a0,
|
|
1086
|
+
Ze as a1,
|
|
1087
|
+
qe as a2,
|
|
1088
|
+
Ge as a3,
|
|
1089
|
+
ut as a4,
|
|
1090
|
+
mt as a5,
|
|
1091
|
+
it as a6,
|
|
1092
|
+
gt as b,
|
|
1093
|
+
Re as c,
|
|
1094
|
+
ft as d,
|
|
1095
|
+
E as e,
|
|
1096
|
+
k as f,
|
|
1097
|
+
wt as g,
|
|
1098
|
+
fe as h,
|
|
1099
|
+
bt as i,
|
|
1100
|
+
at as j,
|
|
1101
|
+
It as k,
|
|
1102
|
+
Et as l,
|
|
1103
|
+
xt as m,
|
|
1104
|
+
Pt as n,
|
|
1105
|
+
P as o,
|
|
1106
|
+
ae as p,
|
|
1107
|
+
ht as q,
|
|
1108
|
+
L as r,
|
|
1109
|
+
b as s,
|
|
1110
|
+
re as t,
|
|
1111
|
+
N as u,
|
|
1112
|
+
le as v,
|
|
1113
|
+
$e as w,
|
|
1114
|
+
dt as x,
|
|
1115
|
+
l as y,
|
|
1116
|
+
pt as z
|
|
1117
|
+
};
|