@autogames/sdk 1.1.1
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 +732 -0
- package/dist/PhArrowCircleDown-Db_5u1DC.js +73 -0
- package/dist/PhArrowClockwise-D5uNEUen.js +73 -0
- package/dist/PhArrowDown-CKkl0Ow8.js +73 -0
- package/dist/PhArrowLeft-5Y_-c8ih.js +73 -0
- package/dist/PhArrowRight-BAENQRa7.js +73 -0
- package/dist/PhArrowSquareOut-DlfAcw2e.js +73 -0
- package/dist/PhArrowUp-8KZkS1Bo.js +73 -0
- package/dist/PhArrowUpRight-DU3GSwzb.js +73 -0
- package/dist/PhArrowsClockwise-CShJ-Teu.js +73 -0
- package/dist/PhArrowsDownUp-BL_LzwqW.js +73 -0
- package/dist/PhArrowsLeftRight-B8vh7AsL.js +73 -0
- package/dist/PhBank-CP_QveNf.js +73 -0
- package/dist/PhBrowser-CCSpUQte.js +73 -0
- package/dist/PhCaretDown-C4u7yn0j.js +73 -0
- package/dist/PhCaretLeft-BSbx9BBc.js +73 -0
- package/dist/PhCaretRight-B1CumbxI.js +73 -0
- package/dist/PhCaretUp-CqiATiNS.js +73 -0
- package/dist/PhCheck-DNkwyplN.js +73 -0
- package/dist/PhCircleHalf-D4fgYYPo.js +73 -0
- package/dist/PhClock-DkIJeKoF.js +73 -0
- package/dist/PhCompass-CwVX0Z1y.js +73 -0
- package/dist/PhCopy-C0BiDhpw.js +73 -0
- package/dist/PhCreditCard-Bv5P9lrI.js +73 -0
- package/dist/PhCurrencyDollar-BCl4tAtz.js +73 -0
- package/dist/PhDesktop-DREPgw1q.js +73 -0
- package/dist/PhDeviceMobile-CM6lQlUa.js +73 -0
- package/dist/PhDotsThree-dmgI5Eht.js +73 -0
- package/dist/PhEnvelope-D7EatbfP.js +73 -0
- package/dist/PhFunnelSimple-Bs-Zsz_A.js +73 -0
- package/dist/PhGlobe-Azwq0DDw.js +73 -0
- package/dist/PhIdentificationCard-BZpHUHrg.js +73 -0
- package/dist/PhImage-CuSFzxM3.js +73 -0
- package/dist/PhInfo-B4SBturW.js +73 -0
- package/dist/PhLightbulb-79sWB45x.js +73 -0
- package/dist/PhMagnifyingGlass-CojwRGSu.js +73 -0
- package/dist/PhPaperPlaneRight-C3krm3eP.js +73 -0
- package/dist/PhPlus-DDYz48cV.js +73 -0
- package/dist/PhPower-CZWV02MF.js +73 -0
- package/dist/PhPuzzlePiece-fazdHBSU.js +73 -0
- package/dist/PhQrCode-BbBdb_ct.js +73 -0
- package/dist/PhQuestion-B6cc25Dw.js +73 -0
- package/dist/PhQuestionMark-TmZ4Sxa8.js +73 -0
- package/dist/PhSealCheck-CdKeNk5K.js +73 -0
- package/dist/PhSignOut-BBNQiKWI.js +73 -0
- package/dist/PhSpinner-BwqRA0He.js +73 -0
- package/dist/PhTrash-CXtQYiKu.js +73 -0
- package/dist/PhUser-DVV5XCqw.js +73 -0
- package/dist/PhVault-B73IPDB0.js +73 -0
- package/dist/PhWarning-BEhs8fc4.js +73 -0
- package/dist/PhWarningCircle-BA0Qvc1c.js +73 -0
- package/dist/PhX-CifUIiFs.js +73 -0
- package/dist/autogames-sdk.esm.js +5 -0
- package/dist/autogames-sdk.js +5247 -0
- package/dist/basic-R2aK52rX.js +4875 -0
- package/dist/bridge-mount-Bhf05oeO.js +89817 -0
- package/dist/ccip-Bg_nydEz.js +145 -0
- package/dist/ccip-CjgrAp_t.js +147 -0
- package/dist/core-CnCeDQAm.js +17712 -0
- package/dist/features-BrlR4_0m.js +268 -0
- package/dist/index-C9RsDt_J.js +8044 -0
- package/dist/index-Chq42DrS.js +2010 -0
- package/dist/index-HQNbtrlg.js +341 -0
- package/dist/index-zA8BVXWW.js +264 -0
- package/dist/main-oRLGGL0R.js +2284 -0
- package/dist/main.d.ts +342 -0
- package/dist/parseSignature-DFDCc7FD.js +131 -0
- package/dist/property-DkPmFHg2.js +587 -0
- package/dist/secp256k1-UpZfvHa8.js +1347 -0
- package/dist/stats-confirm.html +4949 -0
- package/dist/w3m-modal-ClvdQLsb.js +2822 -0
- package/package.json +48 -0
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
function u(e) {
|
|
2
|
+
const t = new Uint8Array(e);
|
|
3
|
+
let n = "";
|
|
4
|
+
for (const r of t)
|
|
5
|
+
n += String.fromCharCode(r);
|
|
6
|
+
return btoa(n).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
|
|
7
|
+
}
|
|
8
|
+
function g(e) {
|
|
9
|
+
const t = e.replace(/-/g, "+").replace(/_/g, "/"), n = (4 - t.length % 4) % 4, a = t.padEnd(t.length + n, "="), r = atob(a), l = new ArrayBuffer(r.length), d = new Uint8Array(l);
|
|
10
|
+
for (let o = 0; o < r.length; o++)
|
|
11
|
+
d[o] = r.charCodeAt(o);
|
|
12
|
+
return l;
|
|
13
|
+
}
|
|
14
|
+
function R() {
|
|
15
|
+
return S.stubThis(globalThis?.PublicKeyCredential !== void 0 && typeof globalThis.PublicKeyCredential == "function");
|
|
16
|
+
}
|
|
17
|
+
const S = {
|
|
18
|
+
stubThis: (e) => e
|
|
19
|
+
};
|
|
20
|
+
function m(e) {
|
|
21
|
+
const { id: t } = e;
|
|
22
|
+
return {
|
|
23
|
+
...e,
|
|
24
|
+
id: g(t),
|
|
25
|
+
/**
|
|
26
|
+
* `descriptor.transports` is an array of our `AuthenticatorTransportFuture` that includes newer
|
|
27
|
+
* transports that TypeScript's DOM lib is ignorant of. Convince TS that our list of transports
|
|
28
|
+
* are fine to pass to WebAuthn since browsers will recognize the new value.
|
|
29
|
+
*/
|
|
30
|
+
transports: e.transports
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
function y(e) {
|
|
34
|
+
return (
|
|
35
|
+
// Consider localhost valid as well since it's okay wrt Secure Contexts
|
|
36
|
+
e === "localhost" || /^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
class i extends Error {
|
|
40
|
+
constructor({ message: t, code: n, cause: a, name: r }) {
|
|
41
|
+
super(t, { cause: a }), Object.defineProperty(this, "code", {
|
|
42
|
+
enumerable: !0,
|
|
43
|
+
configurable: !0,
|
|
44
|
+
writable: !0,
|
|
45
|
+
value: void 0
|
|
46
|
+
}), this.name = r ?? a.name, this.code = n;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
function I({ error: e, options: t }) {
|
|
50
|
+
const { publicKey: n } = t;
|
|
51
|
+
if (!n)
|
|
52
|
+
throw Error("options was missing required publicKey property");
|
|
53
|
+
if (e.name === "AbortError") {
|
|
54
|
+
if (t.signal instanceof AbortSignal)
|
|
55
|
+
return new i({
|
|
56
|
+
message: "Registration ceremony was sent an abort signal",
|
|
57
|
+
code: "ERROR_CEREMONY_ABORTED",
|
|
58
|
+
cause: e
|
|
59
|
+
});
|
|
60
|
+
} else if (e.name === "ConstraintError") {
|
|
61
|
+
if (n.authenticatorSelection?.requireResidentKey === !0)
|
|
62
|
+
return new i({
|
|
63
|
+
message: "Discoverable credentials were required but no available authenticator supported it",
|
|
64
|
+
code: "ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",
|
|
65
|
+
cause: e
|
|
66
|
+
});
|
|
67
|
+
if (
|
|
68
|
+
// @ts-ignore: `mediation` doesn't yet exist on CredentialCreationOptions but it's possible as of Sept 2024
|
|
69
|
+
t.mediation === "conditional" && n.authenticatorSelection?.userVerification === "required"
|
|
70
|
+
)
|
|
71
|
+
return new i({
|
|
72
|
+
message: "User verification was required during automatic registration but it could not be performed",
|
|
73
|
+
code: "ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",
|
|
74
|
+
cause: e
|
|
75
|
+
});
|
|
76
|
+
if (n.authenticatorSelection?.userVerification === "required")
|
|
77
|
+
return new i({
|
|
78
|
+
message: "User verification was required but no available authenticator supported it",
|
|
79
|
+
code: "ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",
|
|
80
|
+
cause: e
|
|
81
|
+
});
|
|
82
|
+
} else {
|
|
83
|
+
if (e.name === "InvalidStateError")
|
|
84
|
+
return new i({
|
|
85
|
+
message: "The authenticator was previously registered",
|
|
86
|
+
code: "ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",
|
|
87
|
+
cause: e
|
|
88
|
+
});
|
|
89
|
+
if (e.name === "NotAllowedError")
|
|
90
|
+
return new i({
|
|
91
|
+
message: e.message,
|
|
92
|
+
code: "ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",
|
|
93
|
+
cause: e
|
|
94
|
+
});
|
|
95
|
+
if (e.name === "NotSupportedError")
|
|
96
|
+
return n.pubKeyCredParams.filter((r) => r.type === "public-key").length === 0 ? new i({
|
|
97
|
+
message: 'No entry in pubKeyCredParams was of type "public-key"',
|
|
98
|
+
code: "ERROR_MALFORMED_PUBKEYCREDPARAMS",
|
|
99
|
+
cause: e
|
|
100
|
+
}) : new i({
|
|
101
|
+
message: "No available authenticator supported any of the specified pubKeyCredParams algorithms",
|
|
102
|
+
code: "ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",
|
|
103
|
+
cause: e
|
|
104
|
+
});
|
|
105
|
+
if (e.name === "SecurityError") {
|
|
106
|
+
const a = globalThis.location.hostname;
|
|
107
|
+
if (y(a)) {
|
|
108
|
+
if (n.rp.id !== a)
|
|
109
|
+
return new i({
|
|
110
|
+
message: `The RP ID "${n.rp.id}" is invalid for this domain`,
|
|
111
|
+
code: "ERROR_INVALID_RP_ID",
|
|
112
|
+
cause: e
|
|
113
|
+
});
|
|
114
|
+
} else return new i({
|
|
115
|
+
message: `${globalThis.location.hostname} is an invalid domain`,
|
|
116
|
+
code: "ERROR_INVALID_DOMAIN",
|
|
117
|
+
cause: e
|
|
118
|
+
});
|
|
119
|
+
} else if (e.name === "TypeError") {
|
|
120
|
+
if (n.user.id.byteLength < 1 || n.user.id.byteLength > 64)
|
|
121
|
+
return new i({
|
|
122
|
+
message: "User ID was not between 1 and 64 characters",
|
|
123
|
+
code: "ERROR_INVALID_USER_ID_LENGTH",
|
|
124
|
+
cause: e
|
|
125
|
+
});
|
|
126
|
+
} else if (e.name === "UnknownError")
|
|
127
|
+
return new i({
|
|
128
|
+
message: "The authenticator was unable to process the specified options, or could not create a new credential",
|
|
129
|
+
code: "ERROR_AUTHENTICATOR_GENERAL_ERROR",
|
|
130
|
+
cause: e
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
return e;
|
|
134
|
+
}
|
|
135
|
+
class T {
|
|
136
|
+
constructor() {
|
|
137
|
+
Object.defineProperty(this, "controller", {
|
|
138
|
+
enumerable: !0,
|
|
139
|
+
configurable: !0,
|
|
140
|
+
writable: !0,
|
|
141
|
+
value: void 0
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
createNewAbortSignal() {
|
|
145
|
+
if (this.controller) {
|
|
146
|
+
const n = new Error("Cancelling existing WebAuthn API call for new one");
|
|
147
|
+
n.name = "AbortError", this.controller.abort(n);
|
|
148
|
+
}
|
|
149
|
+
const t = new AbortController();
|
|
150
|
+
return this.controller = t, t.signal;
|
|
151
|
+
}
|
|
152
|
+
cancelCeremony() {
|
|
153
|
+
if (this.controller) {
|
|
154
|
+
const t = new Error("Manually cancelling existing WebAuthn API call");
|
|
155
|
+
t.name = "AbortError", this.controller.abort(t), this.controller = void 0;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
const O = new T(), P = ["cross-platform", "platform"];
|
|
160
|
+
function _(e) {
|
|
161
|
+
if (e && !(P.indexOf(e) < 0))
|
|
162
|
+
return e;
|
|
163
|
+
}
|
|
164
|
+
async function D(e) {
|
|
165
|
+
!e.optionsJSON && e.challenge && (console.warn("startRegistration() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."), e = { optionsJSON: e });
|
|
166
|
+
const { optionsJSON: t, useAutoRegister: n = !1 } = e;
|
|
167
|
+
if (!R())
|
|
168
|
+
throw new Error("WebAuthn is not supported in this browser");
|
|
169
|
+
const a = {
|
|
170
|
+
...t,
|
|
171
|
+
challenge: g(t.challenge),
|
|
172
|
+
user: {
|
|
173
|
+
...t.user,
|
|
174
|
+
id: g(t.user.id)
|
|
175
|
+
},
|
|
176
|
+
excludeCredentials: t.excludeCredentials?.map(m)
|
|
177
|
+
}, r = {};
|
|
178
|
+
n && (r.mediation = "conditional"), r.publicKey = a, r.signal = O.createNewAbortSignal();
|
|
179
|
+
let l;
|
|
180
|
+
try {
|
|
181
|
+
l = await navigator.credentials.create(r);
|
|
182
|
+
} catch (c) {
|
|
183
|
+
throw I({ error: c, options: r });
|
|
184
|
+
}
|
|
185
|
+
if (!l)
|
|
186
|
+
throw new Error("Registration was not completed");
|
|
187
|
+
const { id: d, rawId: o, response: s, type: w } = l;
|
|
188
|
+
let h;
|
|
189
|
+
typeof s.getTransports == "function" && (h = s.getTransports());
|
|
190
|
+
let p;
|
|
191
|
+
if (typeof s.getPublicKeyAlgorithm == "function")
|
|
192
|
+
try {
|
|
193
|
+
p = s.getPublicKeyAlgorithm();
|
|
194
|
+
} catch (c) {
|
|
195
|
+
A("getPublicKeyAlgorithm()", c);
|
|
196
|
+
}
|
|
197
|
+
let f;
|
|
198
|
+
if (typeof s.getPublicKey == "function")
|
|
199
|
+
try {
|
|
200
|
+
const c = s.getPublicKey();
|
|
201
|
+
c !== null && (f = u(c));
|
|
202
|
+
} catch (c) {
|
|
203
|
+
A("getPublicKey()", c);
|
|
204
|
+
}
|
|
205
|
+
let b;
|
|
206
|
+
if (typeof s.getAuthenticatorData == "function")
|
|
207
|
+
try {
|
|
208
|
+
b = u(s.getAuthenticatorData());
|
|
209
|
+
} catch (c) {
|
|
210
|
+
A("getAuthenticatorData()", c);
|
|
211
|
+
}
|
|
212
|
+
return {
|
|
213
|
+
id: d,
|
|
214
|
+
rawId: u(o),
|
|
215
|
+
response: {
|
|
216
|
+
attestationObject: u(s.attestationObject),
|
|
217
|
+
clientDataJSON: u(s.clientDataJSON),
|
|
218
|
+
transports: h,
|
|
219
|
+
publicKeyAlgorithm: p,
|
|
220
|
+
publicKey: f,
|
|
221
|
+
authenticatorData: b
|
|
222
|
+
},
|
|
223
|
+
type: w,
|
|
224
|
+
clientExtensionResults: l.getClientExtensionResults(),
|
|
225
|
+
authenticatorAttachment: _(l.authenticatorAttachment)
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
function A(e, t) {
|
|
229
|
+
console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them.
|
|
230
|
+
`, t);
|
|
231
|
+
}
|
|
232
|
+
function C() {
|
|
233
|
+
if (!R())
|
|
234
|
+
return E.stubThis(new Promise((t) => t(!1)));
|
|
235
|
+
const e = globalThis.PublicKeyCredential;
|
|
236
|
+
return e?.isConditionalMediationAvailable === void 0 ? E.stubThis(new Promise((t) => t(!1))) : E.stubThis(e.isConditionalMediationAvailable());
|
|
237
|
+
}
|
|
238
|
+
const E = {
|
|
239
|
+
stubThis: (e) => e
|
|
240
|
+
};
|
|
241
|
+
function N({ error: e, options: t }) {
|
|
242
|
+
const { publicKey: n } = t;
|
|
243
|
+
if (!n)
|
|
244
|
+
throw Error("options was missing required publicKey property");
|
|
245
|
+
if (e.name === "AbortError") {
|
|
246
|
+
if (t.signal instanceof AbortSignal)
|
|
247
|
+
return new i({
|
|
248
|
+
message: "Authentication ceremony was sent an abort signal",
|
|
249
|
+
code: "ERROR_CEREMONY_ABORTED",
|
|
250
|
+
cause: e
|
|
251
|
+
});
|
|
252
|
+
} else {
|
|
253
|
+
if (e.name === "NotAllowedError")
|
|
254
|
+
return new i({
|
|
255
|
+
message: e.message,
|
|
256
|
+
code: "ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",
|
|
257
|
+
cause: e
|
|
258
|
+
});
|
|
259
|
+
if (e.name === "SecurityError") {
|
|
260
|
+
const a = globalThis.location.hostname;
|
|
261
|
+
if (y(a)) {
|
|
262
|
+
if (n.rpId !== a)
|
|
263
|
+
return new i({
|
|
264
|
+
message: `The RP ID "${n.rpId}" is invalid for this domain`,
|
|
265
|
+
code: "ERROR_INVALID_RP_ID",
|
|
266
|
+
cause: e
|
|
267
|
+
});
|
|
268
|
+
} else return new i({
|
|
269
|
+
message: `${globalThis.location.hostname} is an invalid domain`,
|
|
270
|
+
code: "ERROR_INVALID_DOMAIN",
|
|
271
|
+
cause: e
|
|
272
|
+
});
|
|
273
|
+
} else if (e.name === "UnknownError")
|
|
274
|
+
return new i({
|
|
275
|
+
message: "The authenticator was unable to process the specified options, or could not create a new assertion signature",
|
|
276
|
+
code: "ERROR_AUTHENTICATOR_GENERAL_ERROR",
|
|
277
|
+
cause: e
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
return e;
|
|
281
|
+
}
|
|
282
|
+
async function v(e) {
|
|
283
|
+
!e.optionsJSON && e.challenge && (console.warn("startAuthentication() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."), e = { optionsJSON: e });
|
|
284
|
+
const { optionsJSON: t, useBrowserAutofill: n = !1, verifyBrowserAutofillInput: a = !0 } = e;
|
|
285
|
+
if (!R())
|
|
286
|
+
throw new Error("WebAuthn is not supported in this browser");
|
|
287
|
+
let r;
|
|
288
|
+
t.allowCredentials?.length !== 0 && (r = t.allowCredentials?.map(m));
|
|
289
|
+
const l = {
|
|
290
|
+
...t,
|
|
291
|
+
challenge: g(t.challenge),
|
|
292
|
+
allowCredentials: r
|
|
293
|
+
}, d = {};
|
|
294
|
+
if (n) {
|
|
295
|
+
if (!await C())
|
|
296
|
+
throw Error("Browser does not support WebAuthn autofill");
|
|
297
|
+
if (document.querySelectorAll("input[autocomplete$='webauthn']").length < 1 && a)
|
|
298
|
+
throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');
|
|
299
|
+
d.mediation = "conditional", l.allowCredentials = [];
|
|
300
|
+
}
|
|
301
|
+
d.publicKey = l, d.signal = O.createNewAbortSignal();
|
|
302
|
+
let o;
|
|
303
|
+
try {
|
|
304
|
+
o = await navigator.credentials.get(d);
|
|
305
|
+
} catch (b) {
|
|
306
|
+
throw N({ error: b, options: d });
|
|
307
|
+
}
|
|
308
|
+
if (!o)
|
|
309
|
+
throw new Error("Authentication was not completed");
|
|
310
|
+
const { id: s, rawId: w, response: h, type: p } = o;
|
|
311
|
+
let f;
|
|
312
|
+
return h.userHandle && (f = u(h.userHandle)), {
|
|
313
|
+
id: s,
|
|
314
|
+
rawId: u(w),
|
|
315
|
+
response: {
|
|
316
|
+
authenticatorData: u(h.authenticatorData),
|
|
317
|
+
clientDataJSON: u(h.clientDataJSON),
|
|
318
|
+
signature: u(h.signature),
|
|
319
|
+
userHandle: f
|
|
320
|
+
},
|
|
321
|
+
type: p,
|
|
322
|
+
clientExtensionResults: o.getClientExtensionResults(),
|
|
323
|
+
authenticatorAttachment: _(o.authenticatorAttachment)
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
function K() {
|
|
327
|
+
return R() ? PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable() : new Promise((e) => e(!1));
|
|
328
|
+
}
|
|
329
|
+
export {
|
|
330
|
+
O as WebAuthnAbortService,
|
|
331
|
+
i as WebAuthnError,
|
|
332
|
+
E as _browserSupportsWebAuthnAutofillInternals,
|
|
333
|
+
S as _browserSupportsWebAuthnInternals,
|
|
334
|
+
g as base64URLStringToBuffer,
|
|
335
|
+
R as browserSupportsWebAuthn,
|
|
336
|
+
C as browserSupportsWebAuthnAutofill,
|
|
337
|
+
u as bufferToBase64URLString,
|
|
338
|
+
K as platformAuthenticatorIsAvailable,
|
|
339
|
+
v as startAuthentication,
|
|
340
|
+
D as startRegistration
|
|
341
|
+
};
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
import { D as s, E as o, F as e, G as t, H as n, J as i, K as c, L as d, M as E, N as u, O as l, P as b, Q as p, R as T, T as g, V as h, ba as m, aL as y, aK as v, a4 as A, ar as F, a5 as S, a6 as R, aM as f, X as C, ab as I, aN as N, a7 as x, a8 as B, a9 as D, C as P, aa as U, ac as w, ad as H, ae as M, af as k, Y as L, Z as z, aO as q, as as V, an as O, ao as G, ap as j, aq as W, av as K, aw as J, ax as Z, bc as Q, au as X, aH as Y, ay as _, aj as $, aP as aa, az as ra, aA as sa, _ as oa, $ as ea, I as ta, a3 as na, a0 as ia, ak as ca, bm as da, a1 as Ea, bj as ua, a as la, al as ba, aQ as pa, b as Ta, c as ga, aR as ha, d as ma, bk as ya, aS as va, bd as Aa, e as Fa, f as Sa, bl as Ra, aT as fa, aU as Ca, at as Ia, aV as Na, aW as xa, aB as Ba, aC as Da, aD as Pa, aX as Ua, aY as wa, aZ as Ha, ag as Ma, a_ as ka, a$ as La, b0 as za, aI as qa, ah as Va, am as Oa, ai as Ga, S as ja, bb as Wa, b1 as Ka, aJ as Ja, aE as Za, be as Qa, bf as Xa, bg as Ya, b2 as _a, aF as $a, b3 as ar, b4 as rr, aG as sr, b5 as or, U as er, g as tr, b6 as nr, b7 as ir, a2 as cr, b8 as dr, bi as Er, b9 as ur, W as lr, bh as br, bL as pr, cI as Tr, bF as gr, bG as hr, c5 as mr, ca as yr, bZ as vr, b_ as Ar, cb as Fr, b$ as Sr, c0 as Rr, bB as fr, bI as Cr, bH as Ir, bN as Nr, bO as xr, bP as Br, h as Dr, i as Pr, l as Ur, j as wr, m as Hr, bn as Mr, bo as kr, bp as Lr, bq as zr, br as qr, t as Vr, u as Or, bs as Gr, bt as jr, bu as Wr, bv as Kr, bw as Jr, bx as Zr, o as Qr, q as Xr, v as Yr, s as _r, A as $r, cj as as, cN as rs, cO as ss, ck as os, cl as es, cn as ts, co as ns, cP as is, by as cs, bC as ds, bM as Es, ci as us, ct as ls, cu as bs, cv as ps, cu as Ts, cJ as gs, cK as hs, B as ms, cA as ys, cz as vs, cB as As, cC as Fs, c1 as Ss, c2 as Rs, c6 as fs, c3 as Cs, c4 as Is, n as Ns, bD as xs, bE as Bs, bQ as Ds, cq as Ps, cg as Us, x as ws, r as Hs, ch as Ms, c7 as ks, cc as Ls, bR as zs, bS as qs, bT as Vs, p as Os, cQ as Gs, bz as js, cR as Ws, bA as Ks, y as Js, k as Zs, cD as Qs, cE as Xs, cp as Ys, cF as _s, cL as $s, cr as ao, cF as ro, bU as so, bV as oo, bW as eo, bX as to, c8 as no, cd as io, cH as co, bJ as Eo, bK as uo, c9 as lo, cs as bo, ct as po, cu as To, cs as go, cv as ho, cu as mo, ce as yo, cG as vo, cf as Ao, cm as Fo, bY as So, q as Ro, v as fo, cM as Co, w as Io, cw as No, cx as xo, cy as Bo, z as Do } from "./bridge-mount-Bhf05oeO.js";
|
|
2
|
+
import { f as Uo, s as wo } from "./core-CnCeDQAm.js";
|
|
3
|
+
import { c as Mo, d as ko, e as Lo, p as zo, p as qo, s as Vo } from "./parseSignature-DFDCc7FD.js";
|
|
4
|
+
import { ccipRequest as Go, ccipRequest as jo, offchainLookup as Wo, offchainLookupAbiItem as Ko, offchainLookupSignature as Jo } from "./ccip-Bg_nydEz.js";
|
|
5
|
+
export {
|
|
6
|
+
s as AbiConstructorNotFoundError,
|
|
7
|
+
o as AbiConstructorParamsNotFoundError,
|
|
8
|
+
e as AbiDecodingDataSizeTooSmallError,
|
|
9
|
+
t as AbiDecodingZeroDataError,
|
|
10
|
+
n as AbiEncodingArrayLengthMismatchError,
|
|
11
|
+
i as AbiEncodingBytesSizeMismatchError,
|
|
12
|
+
c as AbiEncodingLengthMismatchError,
|
|
13
|
+
d as AbiErrorInputsNotFoundError,
|
|
14
|
+
E as AbiErrorNotFoundError,
|
|
15
|
+
u as AbiErrorSignatureNotFoundError,
|
|
16
|
+
l as AbiEventNotFoundError,
|
|
17
|
+
b as AbiEventSignatureEmptyTopicsError,
|
|
18
|
+
p as AbiEventSignatureNotFoundError,
|
|
19
|
+
T as AbiFunctionNotFoundError,
|
|
20
|
+
g as AbiFunctionOutputsNotFoundError,
|
|
21
|
+
h as AbiFunctionSignatureNotFoundError,
|
|
22
|
+
m as AccountStateConflictError,
|
|
23
|
+
y as AtomicReadyWalletRejectedUpgradeError,
|
|
24
|
+
v as AtomicityNotSupportedError,
|
|
25
|
+
A as BaseError,
|
|
26
|
+
F as BaseFeeScalarError,
|
|
27
|
+
S as BlockNotFoundError,
|
|
28
|
+
R as BundleFailedError,
|
|
29
|
+
f as BundleTooLargeError,
|
|
30
|
+
C as BytesSizeMismatchError,
|
|
31
|
+
I as CallExecutionError,
|
|
32
|
+
N as ChainDisconnectedError,
|
|
33
|
+
x as ChainDoesNotSupportContract,
|
|
34
|
+
B as ChainMismatchError,
|
|
35
|
+
D as ChainNotFoundError,
|
|
36
|
+
P as CircularReferenceError,
|
|
37
|
+
U as ClientChainNotConfiguredError,
|
|
38
|
+
w as ContractFunctionExecutionError,
|
|
39
|
+
H as ContractFunctionRevertedError,
|
|
40
|
+
M as ContractFunctionZeroDataError,
|
|
41
|
+
k as CounterfactualDeploymentFailedError,
|
|
42
|
+
L as DecodeLogDataMismatch,
|
|
43
|
+
z as DecodeLogTopicsMismatch,
|
|
44
|
+
q as DuplicateIdError,
|
|
45
|
+
V as Eip1559FeesNotSupportedError,
|
|
46
|
+
O as EnsAvatarInvalidNftUriError,
|
|
47
|
+
G as EnsAvatarUnsupportedNamespaceError,
|
|
48
|
+
j as EnsAvatarUriResolutionError,
|
|
49
|
+
W as EstimateGasExecutionError,
|
|
50
|
+
K as ExecutionRevertedError,
|
|
51
|
+
J as FeeCapTooHighError,
|
|
52
|
+
Z as FeeCapTooLowError,
|
|
53
|
+
Q as FeeConflictError,
|
|
54
|
+
X as FilterTypeNotSupportedError,
|
|
55
|
+
Y as HttpRequestError,
|
|
56
|
+
_ as InsufficientFundsError,
|
|
57
|
+
$ as IntegerOutOfRangeError,
|
|
58
|
+
aa as InternalRpcError,
|
|
59
|
+
ra as IntrinsicGasTooHighError,
|
|
60
|
+
sa as IntrinsicGasTooLowError,
|
|
61
|
+
oa as InvalidAbiDecodingTypeError,
|
|
62
|
+
ea as InvalidAbiEncodingTypeError,
|
|
63
|
+
ta as InvalidAbiTypeParameterError,
|
|
64
|
+
na as InvalidAddressError,
|
|
65
|
+
ia as InvalidArrayError,
|
|
66
|
+
ca as InvalidBytesBooleanError,
|
|
67
|
+
da as InvalidDecimalNumberError,
|
|
68
|
+
Ea as InvalidDefinitionTypeError,
|
|
69
|
+
ua as InvalidDomainError,
|
|
70
|
+
la as InvalidFunctionModifierError,
|
|
71
|
+
ba as InvalidHexBooleanError,
|
|
72
|
+
pa as InvalidInputRpcError,
|
|
73
|
+
Ta as InvalidModifierError,
|
|
74
|
+
ga as InvalidParameterError,
|
|
75
|
+
ha as InvalidParamsRpcError,
|
|
76
|
+
ma as InvalidParenthesisError,
|
|
77
|
+
ya as InvalidPrimaryTypeError,
|
|
78
|
+
va as InvalidRequestRpcError,
|
|
79
|
+
Aa as InvalidSerializableTransactionError,
|
|
80
|
+
Fa as InvalidSignatureError,
|
|
81
|
+
Sa as InvalidStructSignatureError,
|
|
82
|
+
Ra as InvalidStructTypeError,
|
|
83
|
+
fa as JsonRpcVersionUnsupportedError,
|
|
84
|
+
Ca as LimitExceededRpcError,
|
|
85
|
+
Ia as MaxFeePerGasTooLowError,
|
|
86
|
+
Na as MethodNotFoundRpcError,
|
|
87
|
+
xa as MethodNotSupportedRpcError,
|
|
88
|
+
Ba as NonceMaxValueError,
|
|
89
|
+
Da as NonceTooHighError,
|
|
90
|
+
Pa as NonceTooLowError,
|
|
91
|
+
Ua as ParseRpcError,
|
|
92
|
+
wa as ProviderDisconnectedError,
|
|
93
|
+
Ha as ProviderRpcError,
|
|
94
|
+
Ma as RawContractError,
|
|
95
|
+
ka as ResourceNotFoundRpcError,
|
|
96
|
+
La as ResourceUnavailableRpcError,
|
|
97
|
+
za as RpcError,
|
|
98
|
+
qa as RpcRequestError,
|
|
99
|
+
Va as SizeExceedsPaddingSizeError,
|
|
100
|
+
Oa as SizeOverflowError,
|
|
101
|
+
Ga as SliceOffsetOutOfBoundsError,
|
|
102
|
+
ja as SolidityProtectedKeywordError,
|
|
103
|
+
Wa as StateAssignmentConflictError,
|
|
104
|
+
Ka as SwitchChainError,
|
|
105
|
+
Ja as TimeoutError,
|
|
106
|
+
Za as TipAboveFeeCapError,
|
|
107
|
+
Qa as TransactionExecutionError,
|
|
108
|
+
Xa as TransactionNotFoundError,
|
|
109
|
+
Ya as TransactionReceiptNotFoundError,
|
|
110
|
+
_a as TransactionRejectedRpcError,
|
|
111
|
+
$a as TransactionTypeNotSupportedError,
|
|
112
|
+
ar as UnauthorizedProviderError,
|
|
113
|
+
rr as UnknownBundleIdError,
|
|
114
|
+
sr as UnknownNodeError,
|
|
115
|
+
or as UnknownRpcError,
|
|
116
|
+
er as UnknownSignatureError,
|
|
117
|
+
tr as UnknownTypeError,
|
|
118
|
+
nr as UnsupportedChainIdError,
|
|
119
|
+
ir as UnsupportedNonOptionalCapabilityError,
|
|
120
|
+
cr as UnsupportedPackedAbiType,
|
|
121
|
+
dr as UnsupportedProviderMethodError,
|
|
122
|
+
Er as UrlRequiredError,
|
|
123
|
+
ur as UserRejectedRequestError,
|
|
124
|
+
lr as WaitForCallsStatusTimeoutError,
|
|
125
|
+
br as WaitForTransactionReceiptTimeoutError,
|
|
126
|
+
pr as assertCurrentChain,
|
|
127
|
+
Tr as assertRequest,
|
|
128
|
+
gr as blobsToCommitments,
|
|
129
|
+
hr as blobsToProofs,
|
|
130
|
+
mr as boolToBytes,
|
|
131
|
+
yr as boolToHex,
|
|
132
|
+
vr as bytesToBigInt,
|
|
133
|
+
Ar as bytesToBool,
|
|
134
|
+
Fr as bytesToHex,
|
|
135
|
+
Sr as bytesToNumber,
|
|
136
|
+
Rr as bytesToString,
|
|
137
|
+
Go as ccipFetch,
|
|
138
|
+
jo as ccipRequest,
|
|
139
|
+
fr as checksumAddress,
|
|
140
|
+
Cr as commitmentToVersionedHash,
|
|
141
|
+
Ir as commitmentsToVersionedHashes,
|
|
142
|
+
Nr as concat,
|
|
143
|
+
xr as concatBytes,
|
|
144
|
+
Br as concatHex,
|
|
145
|
+
Dr as createClient,
|
|
146
|
+
Mo as createNonceManager,
|
|
147
|
+
Pr as createPublicClient,
|
|
148
|
+
Ur as createTransport,
|
|
149
|
+
wr as createWalletClient,
|
|
150
|
+
Hr as custom,
|
|
151
|
+
Mr as decodeAbiParameters,
|
|
152
|
+
kr as decodeErrorResult,
|
|
153
|
+
Lr as decodeEventLog,
|
|
154
|
+
zr as decodeFunctionData,
|
|
155
|
+
qr as decodeFunctionResult,
|
|
156
|
+
ko as defineChain,
|
|
157
|
+
Vr as deploylessCallViaBytecodeBytecode,
|
|
158
|
+
Or as deploylessCallViaFactoryBytecode,
|
|
159
|
+
Gr as encodeAbiParameters,
|
|
160
|
+
jr as encodeDeployData,
|
|
161
|
+
Wr as encodeErrorResult,
|
|
162
|
+
Kr as encodeEventTopics,
|
|
163
|
+
Jr as encodeFunctionData,
|
|
164
|
+
Zr as encodeFunctionResult,
|
|
165
|
+
Lo as encodePacked,
|
|
166
|
+
Qr as erc20Abi,
|
|
167
|
+
Xr as erc6492SignatureValidatorAbi,
|
|
168
|
+
Yr as erc6492SignatureValidatorByteCode,
|
|
169
|
+
_r as ethAddress,
|
|
170
|
+
$r as etherUnits,
|
|
171
|
+
Uo as fallback,
|
|
172
|
+
as as formatBlock,
|
|
173
|
+
rs as formatEther,
|
|
174
|
+
ss as formatGwei,
|
|
175
|
+
os as formatLog,
|
|
176
|
+
es as formatTransaction,
|
|
177
|
+
ts as formatTransactionReceipt,
|
|
178
|
+
ns as formatTransactionRequest,
|
|
179
|
+
is as formatUnits,
|
|
180
|
+
cs as getAbiItem,
|
|
181
|
+
ds as getAddress,
|
|
182
|
+
Es as getChainContractAddress,
|
|
183
|
+
us as getContractError,
|
|
184
|
+
ls as getEventSelector,
|
|
185
|
+
bs as getEventSignature,
|
|
186
|
+
ps as getFunctionSelector,
|
|
187
|
+
Ts as getFunctionSignature,
|
|
188
|
+
gs as getTransactionType,
|
|
189
|
+
hs as getTypesForEIP712Domain,
|
|
190
|
+
ms as gweiUnits,
|
|
191
|
+
ys as hashDomain,
|
|
192
|
+
vs as hashMessage,
|
|
193
|
+
As as hashStruct,
|
|
194
|
+
Fs as hashTypedData,
|
|
195
|
+
Ss as hexToBigInt,
|
|
196
|
+
Rs as hexToBool,
|
|
197
|
+
fs as hexToBytes,
|
|
198
|
+
Cs as hexToNumber,
|
|
199
|
+
zo as hexToSignature,
|
|
200
|
+
Is as hexToString,
|
|
201
|
+
Ns as http,
|
|
202
|
+
xs as isAddress,
|
|
203
|
+
Bs as isAddressEqual,
|
|
204
|
+
Ds as isHex,
|
|
205
|
+
Ps as keccak256,
|
|
206
|
+
Us as labelhash,
|
|
207
|
+
ws as maxUint256,
|
|
208
|
+
Hs as multicall3Abi,
|
|
209
|
+
Ms as namehash,
|
|
210
|
+
ks as numberToBytes,
|
|
211
|
+
Ls as numberToHex,
|
|
212
|
+
Wo as offchainLookup,
|
|
213
|
+
Ko as offchainLookupAbiItem,
|
|
214
|
+
Jo as offchainLookupSignature,
|
|
215
|
+
zs as pad,
|
|
216
|
+
qs as padBytes,
|
|
217
|
+
Vs as padHex,
|
|
218
|
+
Os as parseAbi,
|
|
219
|
+
Gs as parseEther,
|
|
220
|
+
js as parseEventLogs,
|
|
221
|
+
qo as parseSignature,
|
|
222
|
+
Ws as parseUnits,
|
|
223
|
+
Ks as prepareEncodeFunctionData,
|
|
224
|
+
Js as presignMessagePrefix,
|
|
225
|
+
Zs as publicActions,
|
|
226
|
+
Qs as recoverAddress,
|
|
227
|
+
Xs as recoverPublicKey,
|
|
228
|
+
Ys as rpcTransactionType,
|
|
229
|
+
Vo as serializeErc6492Signature,
|
|
230
|
+
_s as serializeSignature,
|
|
231
|
+
$s as serializeTypedData,
|
|
232
|
+
ao as sha256,
|
|
233
|
+
wo as shouldThrow,
|
|
234
|
+
ro as signatureToHex,
|
|
235
|
+
so as size,
|
|
236
|
+
oo as slice,
|
|
237
|
+
eo as sliceBytes,
|
|
238
|
+
to as sliceHex,
|
|
239
|
+
no as stringToBytes,
|
|
240
|
+
io as stringToHex,
|
|
241
|
+
co as stringify,
|
|
242
|
+
Eo as toBlobSidecars,
|
|
243
|
+
uo as toBlobs,
|
|
244
|
+
lo as toBytes,
|
|
245
|
+
bo as toEventHash,
|
|
246
|
+
po as toEventSelector,
|
|
247
|
+
To as toEventSignature,
|
|
248
|
+
go as toFunctionHash,
|
|
249
|
+
ho as toFunctionSelector,
|
|
250
|
+
mo as toFunctionSignature,
|
|
251
|
+
yo as toHex,
|
|
252
|
+
vo as toPrefixedMessage,
|
|
253
|
+
Ao as toRlp,
|
|
254
|
+
Fo as transactionType,
|
|
255
|
+
So as trim,
|
|
256
|
+
Ro as universalSignatureValidatorAbi,
|
|
257
|
+
fo as universalSignatureValidatorByteCode,
|
|
258
|
+
Co as validateTypedData,
|
|
259
|
+
Io as walletActions,
|
|
260
|
+
No as withCache,
|
|
261
|
+
xo as withRetry,
|
|
262
|
+
Bo as withTimeout,
|
|
263
|
+
Do as zeroAddress
|
|
264
|
+
};
|