@jaw.id/ui 0.4.10 → 0.4.11
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.
|
@@ -6961,6 +6961,25 @@ var Su = /*#__PURE__*/ J({
|
|
|
6961
6961
|
testnet: !0,
|
|
6962
6962
|
sourceId: Eu
|
|
6963
6963
|
}), Ou = /*#__PURE__*/ J({
|
|
6964
|
+
id: 137,
|
|
6965
|
+
name: "Polygon",
|
|
6966
|
+
blockTime: 2e3,
|
|
6967
|
+
nativeCurrency: {
|
|
6968
|
+
name: "POL",
|
|
6969
|
+
symbol: "POL",
|
|
6970
|
+
decimals: 18
|
|
6971
|
+
},
|
|
6972
|
+
rpcUrls: { default: { http: ["https://polygon-rpc.com"] } },
|
|
6973
|
+
blockExplorers: { default: {
|
|
6974
|
+
name: "PolygonScan",
|
|
6975
|
+
url: "https://polygonscan.com",
|
|
6976
|
+
apiUrl: "https://api.etherscan.io/v2/api"
|
|
6977
|
+
} },
|
|
6978
|
+
contracts: { multicall3: {
|
|
6979
|
+
address: "0xca11bde05977b3631167028862be2a173976ca11",
|
|
6980
|
+
blockCreated: 25770160
|
|
6981
|
+
} }
|
|
6982
|
+
}), ku = /*#__PURE__*/ J({
|
|
6964
6983
|
id: 11155111,
|
|
6965
6984
|
name: "Sepolia",
|
|
6966
6985
|
nativeCurrency: {
|
|
@@ -6985,7 +7004,7 @@ var Su = /*#__PURE__*/ J({
|
|
|
6985
7004
|
}
|
|
6986
7005
|
},
|
|
6987
7006
|
testnet: !0
|
|
6988
|
-
}),
|
|
7007
|
+
}), Au = "https://keys.jaw.id", ju = "https://api.justaname.id", Mu = `${ju}/proxy/v1`, Nu = `${Mu}/rpc`, Pu = `${Nu}/erc20-paymaster`, Fu = `${ju}/wallet/v2/passkeys`, Iu = "0x5803c076563C85799989d42Fc00292A8aE52fa9E", Lu = "JustanAccount", Ru = "0xf1b40E3D5701C04d86F7828f0EB367B9C90901D8", zu = "0xef0100", Bu = "0x888888888888Ec68A58AB8094Cc1AD20Ba3D2402", Y = {
|
|
6989
7008
|
rpc: {
|
|
6990
7009
|
invalidInput: -32e3,
|
|
6991
7010
|
resourceNotFound: -32001,
|
|
@@ -7007,7 +7026,7 @@ var Su = /*#__PURE__*/ J({
|
|
|
7007
7026
|
chainDisconnected: 4901,
|
|
7008
7027
|
unsupportedChain: 4902
|
|
7009
7028
|
}
|
|
7010
|
-
},
|
|
7029
|
+
}, Vu = {
|
|
7011
7030
|
"-32700": {
|
|
7012
7031
|
standard: "JSON RPC 2.0",
|
|
7013
7032
|
message: "Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."
|
|
@@ -7076,67 +7095,67 @@ var Su = /*#__PURE__*/ J({
|
|
|
7076
7095
|
standard: "EIP-3085",
|
|
7077
7096
|
message: "Unrecognized chain ID."
|
|
7078
7097
|
}
|
|
7079
|
-
},
|
|
7080
|
-
function
|
|
7098
|
+
}, Hu = "Unspecified error message.", Uu = "Unspecified server error.";
|
|
7099
|
+
function Wu(e, t = Hu) {
|
|
7081
7100
|
if (e && Number.isInteger(e)) {
|
|
7082
7101
|
let t = e.toString();
|
|
7083
|
-
if (
|
|
7084
|
-
if (
|
|
7102
|
+
if (Ku(Vu, t)) return Vu[t].message;
|
|
7103
|
+
if (Gu(e)) return Uu;
|
|
7085
7104
|
}
|
|
7086
7105
|
return t;
|
|
7087
7106
|
}
|
|
7088
|
-
function
|
|
7107
|
+
function Gu(e) {
|
|
7089
7108
|
return e >= -32099 && e <= -32e3;
|
|
7090
7109
|
}
|
|
7091
|
-
function
|
|
7110
|
+
function Ku(e, t) {
|
|
7092
7111
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
7093
7112
|
}
|
|
7094
7113
|
//#endregion
|
|
7095
7114
|
//#region ../core/dist/errors/errors.js
|
|
7096
|
-
var
|
|
7115
|
+
var qu = {
|
|
7097
7116
|
rpc: {
|
|
7098
|
-
parse: (e) =>
|
|
7099
|
-
invalidRequest: (e) =>
|
|
7100
|
-
invalidParams: (e) =>
|
|
7101
|
-
methodNotFound: (e) =>
|
|
7102
|
-
internal: (e) =>
|
|
7117
|
+
parse: (e) => Ju(Y.rpc.parse, e),
|
|
7118
|
+
invalidRequest: (e) => Ju(Y.rpc.invalidRequest, e),
|
|
7119
|
+
invalidParams: (e) => Ju(Y.rpc.invalidParams, e),
|
|
7120
|
+
methodNotFound: (e) => Ju(Y.rpc.methodNotFound, e),
|
|
7121
|
+
internal: (e) => Ju(Y.rpc.internal, e),
|
|
7103
7122
|
server: (e) => {
|
|
7104
7123
|
if (!e || typeof e != "object" || Array.isArray(e)) throw Error("Ethereum RPC Server errors must provide single object argument.");
|
|
7105
7124
|
let { code: t } = e;
|
|
7106
7125
|
if (!Number.isInteger(t) || t > -32005 || t < -32099) throw Error("\"code\" must be an integer such that: -32099 <= code <= -32005");
|
|
7107
|
-
return
|
|
7126
|
+
return Ju(t, e);
|
|
7108
7127
|
},
|
|
7109
|
-
invalidInput: (e) =>
|
|
7110
|
-
resourceNotFound: (e) =>
|
|
7111
|
-
resourceUnavailable: (e) =>
|
|
7112
|
-
transactionRejected: (e) =>
|
|
7113
|
-
methodNotSupported: (e) =>
|
|
7114
|
-
limitExceeded: (e) =>
|
|
7128
|
+
invalidInput: (e) => Ju(Y.rpc.invalidInput, e),
|
|
7129
|
+
resourceNotFound: (e) => Ju(Y.rpc.resourceNotFound, e),
|
|
7130
|
+
resourceUnavailable: (e) => Ju(Y.rpc.resourceUnavailable, e),
|
|
7131
|
+
transactionRejected: (e) => Ju(Y.rpc.transactionRejected, e),
|
|
7132
|
+
methodNotSupported: (e) => Ju(Y.rpc.methodNotSupported, e),
|
|
7133
|
+
limitExceeded: (e) => Ju(Y.rpc.limitExceeded, e)
|
|
7115
7134
|
},
|
|
7116
7135
|
provider: {
|
|
7117
|
-
userRejectedRequest: (e) =>
|
|
7118
|
-
unauthorized: (e) =>
|
|
7119
|
-
unsupportedMethod: (e) =>
|
|
7120
|
-
disconnected: (e) =>
|
|
7121
|
-
chainDisconnected: (e) =>
|
|
7122
|
-
unsupportedChain: (e) =>
|
|
7136
|
+
userRejectedRequest: (e) => Yu(Y.provider.userRejectedRequest, e),
|
|
7137
|
+
unauthorized: (e) => Yu(Y.provider.unauthorized, e),
|
|
7138
|
+
unsupportedMethod: (e) => Yu(Y.provider.unsupportedMethod, e),
|
|
7139
|
+
disconnected: (e) => Yu(Y.provider.disconnected, e),
|
|
7140
|
+
chainDisconnected: (e) => Yu(Y.provider.chainDisconnected, e),
|
|
7141
|
+
unsupportedChain: (e) => Yu(Y.provider.unsupportedChain, e),
|
|
7123
7142
|
custom: (e) => {
|
|
7124
7143
|
if (!e || typeof e != "object" || Array.isArray(e)) throw Error("Ethereum Provider custom errors must provide single object argument.");
|
|
7125
7144
|
let { code: t, message: n, data: r } = e;
|
|
7126
7145
|
if (!n || typeof n != "string") throw Error("\"message\" must be a nonempty string");
|
|
7127
|
-
return new
|
|
7146
|
+
return new Qu(t, n, r);
|
|
7128
7147
|
}
|
|
7129
7148
|
}
|
|
7130
7149
|
};
|
|
7131
|
-
function qu(e, t) {
|
|
7132
|
-
let [n, r] = Yu(t);
|
|
7133
|
-
return new Xu(e, n || Uu(e), r);
|
|
7134
|
-
}
|
|
7135
7150
|
function Ju(e, t) {
|
|
7136
|
-
let [n, r] =
|
|
7137
|
-
return new Zu(e, n ||
|
|
7151
|
+
let [n, r] = Xu(t);
|
|
7152
|
+
return new Zu(e, n || Wu(e), r);
|
|
7138
7153
|
}
|
|
7139
|
-
function Yu(e) {
|
|
7154
|
+
function Yu(e, t) {
|
|
7155
|
+
let [n, r] = Xu(t);
|
|
7156
|
+
return new Qu(e, n || Wu(e), r);
|
|
7157
|
+
}
|
|
7158
|
+
function Xu(e) {
|
|
7140
7159
|
if (e) {
|
|
7141
7160
|
if (typeof e == "string") return [e];
|
|
7142
7161
|
if (typeof e == "object" && !Array.isArray(e)) {
|
|
@@ -7147,7 +7166,7 @@ function Yu(e) {
|
|
|
7147
7166
|
}
|
|
7148
7167
|
return [];
|
|
7149
7168
|
}
|
|
7150
|
-
var
|
|
7169
|
+
var Zu = class extends Error {
|
|
7151
7170
|
code;
|
|
7152
7171
|
data;
|
|
7153
7172
|
constructor(e, t, n) {
|
|
@@ -7155,21 +7174,21 @@ var Xu = class extends Error {
|
|
|
7155
7174
|
if (!t || typeof t != "string") throw Error("\"message\" must be a nonempty string.");
|
|
7156
7175
|
super(t), this.code = e, n !== void 0 && (this.data = n);
|
|
7157
7176
|
}
|
|
7158
|
-
},
|
|
7177
|
+
}, Qu = class extends Zu {
|
|
7159
7178
|
constructor(e, t, n) {
|
|
7160
|
-
if (
|
|
7179
|
+
if (!$u(e)) throw Error("\"code\" must be an integer such that: 1000 <= code <= 4999");
|
|
7161
7180
|
super(e, t, n);
|
|
7162
7181
|
}
|
|
7163
7182
|
};
|
|
7164
|
-
function
|
|
7183
|
+
function $u(e) {
|
|
7165
7184
|
return Number.isInteger(e) && e >= 1e3 && e <= 4999;
|
|
7166
7185
|
}
|
|
7167
7186
|
//#endregion
|
|
7168
7187
|
//#region ../core/dist/utils/provider.js
|
|
7169
|
-
function
|
|
7188
|
+
function ed(e, t) {
|
|
7170
7189
|
return `${e}/handle?api-key=${t}`;
|
|
7171
7190
|
}
|
|
7172
|
-
async function
|
|
7191
|
+
async function td(e, t) {
|
|
7173
7192
|
let n = {
|
|
7174
7193
|
...e,
|
|
7175
7194
|
jsonrpc: "2.0",
|
|
@@ -7185,36 +7204,36 @@ async function ed(e, t) {
|
|
|
7185
7204
|
}
|
|
7186
7205
|
//#endregion
|
|
7187
7206
|
//#region ../core/dist/utils/type.js
|
|
7188
|
-
function
|
|
7207
|
+
function nd() {
|
|
7189
7208
|
return (e) => e;
|
|
7190
7209
|
}
|
|
7191
|
-
var
|
|
7192
|
-
function
|
|
7210
|
+
var rd = nd();
|
|
7211
|
+
function id(e) {
|
|
7193
7212
|
return Math.floor(e);
|
|
7194
7213
|
}
|
|
7195
|
-
var
|
|
7196
|
-
function
|
|
7214
|
+
var ad = /^[0-9]*$/;
|
|
7215
|
+
function od(e) {
|
|
7197
7216
|
return e.startsWith("0x") || e.startsWith("0X") ? e.slice(2) : e;
|
|
7198
7217
|
}
|
|
7199
|
-
function
|
|
7200
|
-
if (typeof e != "string") throw
|
|
7201
|
-
let n =
|
|
7202
|
-
return n.length % 2 == 1 && (n = "0" + n),
|
|
7203
|
-
}
|
|
7204
|
-
function sd(e) {
|
|
7205
|
-
return nd(`0x${BigInt(e).toString(16)}`);
|
|
7218
|
+
function sd(e, t = !1) {
|
|
7219
|
+
if (typeof e != "string") throw qu.rpc.invalidParams(`"${String(e)}" is not a string`);
|
|
7220
|
+
let n = od(e).toLowerCase();
|
|
7221
|
+
return n.length % 2 == 1 && (n = "0" + n), rd(t ? `0x${n}` : n);
|
|
7206
7222
|
}
|
|
7207
7223
|
function cd(e) {
|
|
7208
|
-
|
|
7224
|
+
return rd(`0x${BigInt(e).toString(16)}`);
|
|
7225
|
+
}
|
|
7226
|
+
function ld(e) {
|
|
7227
|
+
if (typeof e == "number" && Number.isInteger(e)) return id(e);
|
|
7209
7228
|
if (typeof e == "string") {
|
|
7210
|
-
if (
|
|
7211
|
-
if (R(e)) return
|
|
7229
|
+
if (ad.test(e)) return id(Number(e));
|
|
7230
|
+
if (R(e)) return id(Number(BigInt(sd(e, !0))));
|
|
7212
7231
|
}
|
|
7213
|
-
throw
|
|
7232
|
+
throw qu.rpc.invalidParams(`Not an integer: ${String(e)}`);
|
|
7214
7233
|
}
|
|
7215
7234
|
//#endregion
|
|
7216
7235
|
//#region ../../node_modules/viem/_esm/account-abstraction/constants/abis.js
|
|
7217
|
-
var
|
|
7236
|
+
var ud = [
|
|
7218
7237
|
{
|
|
7219
7238
|
inputs: [],
|
|
7220
7239
|
stateMutability: "nonpayable",
|
|
@@ -8201,22 +8220,22 @@ var ld = [
|
|
|
8201
8220
|
stateMutability: "payable",
|
|
8202
8221
|
type: "receive"
|
|
8203
8222
|
}
|
|
8204
|
-
],
|
|
8223
|
+
], dd = "0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108";
|
|
8205
8224
|
//#endregion
|
|
8206
8225
|
//#region ../../node_modules/viem/_esm/account-abstraction/utils/userOperation/getInitCode.js
|
|
8207
|
-
function
|
|
8226
|
+
function fd(e, t = {}) {
|
|
8208
8227
|
let { forHash: n } = t, { authorization: r, factory: i, factoryData: a } = e;
|
|
8209
8228
|
return n && (i === "0x7702" || i === "0x7702000000000000000000000000000000000000") ? r ? st([r.address, a ?? "0x"]) : "0x7702000000000000000000000000000000000000" : i ? st([i, a ?? "0x"]) : "0x";
|
|
8210
8229
|
}
|
|
8211
8230
|
//#endregion
|
|
8212
8231
|
//#region ../../node_modules/viem/_esm/account-abstraction/utils/userOperation/toPackedUserOperation.js
|
|
8213
|
-
var
|
|
8214
|
-
function
|
|
8232
|
+
var pd = "0x22e325a297439656";
|
|
8233
|
+
function md(e, t = {}) {
|
|
8215
8234
|
let { callGasLimit: n, callData: r, maxPriorityFeePerGas: i, maxFeePerGas: a, paymaster: o, paymasterData: s, paymasterPostOpGasLimit: c, paymasterSignature: l, paymasterVerificationGasLimit: u, sender: d, signature: f = "0x", verificationGasLimit: p } = e;
|
|
8216
8235
|
return {
|
|
8217
8236
|
accountGasLimits: st([z(H(p || 0n), { size: 16 }), z(H(n || 0n), { size: 16 })]),
|
|
8218
8237
|
callData: r,
|
|
8219
|
-
initCode:
|
|
8238
|
+
initCode: fd(e, t),
|
|
8220
8239
|
gasFees: st([z(H(i || 0n), { size: 16 }), z(H(a || 0n), { size: 16 })]),
|
|
8221
8240
|
nonce: e.nonce ?? 0n,
|
|
8222
8241
|
paymasterAndData: o ? st([
|
|
@@ -8224,10 +8243,10 @@ function pd(e, t = {}) {
|
|
|
8224
8243
|
z(H(u || 0n), { size: 16 }),
|
|
8225
8244
|
z(H(c || 0n), { size: 16 }),
|
|
8226
8245
|
s || "0x",
|
|
8227
|
-
...l ? t.forHash ? [
|
|
8246
|
+
...l ? t.forHash ? [pd] : [
|
|
8228
8247
|
l,
|
|
8229
8248
|
z(H(Le(l)), { size: 2 }),
|
|
8230
|
-
|
|
8249
|
+
pd
|
|
8231
8250
|
] : []
|
|
8232
8251
|
]) : "0x",
|
|
8233
8252
|
preVerificationGas: e.preVerificationGas ?? 0n,
|
|
@@ -8237,7 +8256,7 @@ function pd(e, t = {}) {
|
|
|
8237
8256
|
}
|
|
8238
8257
|
//#endregion
|
|
8239
8258
|
//#region ../../node_modules/viem/_esm/account-abstraction/utils/userOperation/getUserOperationTypedData.js
|
|
8240
|
-
var
|
|
8259
|
+
var hd = { PackedUserOperation: [
|
|
8241
8260
|
{
|
|
8242
8261
|
type: "address",
|
|
8243
8262
|
name: "sender"
|
|
@@ -8271,10 +8290,10 @@ var md = { PackedUserOperation: [
|
|
|
8271
8290
|
name: "paymasterAndData"
|
|
8272
8291
|
}
|
|
8273
8292
|
] };
|
|
8274
|
-
function
|
|
8275
|
-
let { chainId: t, entryPointAddress: n, userOperation: r } = e, i =
|
|
8293
|
+
function gd(e) {
|
|
8294
|
+
let { chainId: t, entryPointAddress: n, userOperation: r } = e, i = md(r, { forHash: !0 });
|
|
8276
8295
|
return {
|
|
8277
|
-
types:
|
|
8296
|
+
types: hd,
|
|
8278
8297
|
primaryType: "PackedUserOperation",
|
|
8279
8298
|
domain: {
|
|
8280
8299
|
name: "ERC4337",
|
|
@@ -8287,7 +8306,7 @@ function hd(e) {
|
|
|
8287
8306
|
}
|
|
8288
8307
|
//#endregion
|
|
8289
8308
|
//#region ../../node_modules/viem/_esm/account-abstraction/accounts/toSmartAccount.js
|
|
8290
|
-
async function
|
|
8309
|
+
async function _d(e) {
|
|
8291
8310
|
let { extend: t, nonceKeyManager: n = So({ source: {
|
|
8292
8311
|
get() {
|
|
8293
8312
|
return Date.now();
|
|
@@ -8352,7 +8371,7 @@ async function gd(e) {
|
|
|
8352
8371
|
}
|
|
8353
8372
|
//#endregion
|
|
8354
8373
|
//#region ../../node_modules/viem/_esm/experimental/erc7739/utils/wrapTypedDataSignature.js
|
|
8355
|
-
function
|
|
8374
|
+
function vd(e) {
|
|
8356
8375
|
let { domain: t, message: n, primaryType: r, signature: a, types: o } = e, s = R(a) ? a : typeof a == "object" && "r" in a && "s" in a ? al(a) : i(a), c = Bo({
|
|
8357
8376
|
data: t ?? {},
|
|
8358
8377
|
types: { EIP712Domain: Fo({ domain: t }) },
|
|
@@ -8381,7 +8400,7 @@ function _d(e) {
|
|
|
8381
8400
|
}
|
|
8382
8401
|
//#endregion
|
|
8383
8402
|
//#region ../../node_modules/viem/_esm/account-abstraction/errors/bundler.js
|
|
8384
|
-
var
|
|
8403
|
+
var yd = class extends B {
|
|
8385
8404
|
constructor({ cause: e }) {
|
|
8386
8405
|
super("Smart Account is not deployed.", {
|
|
8387
8406
|
cause: e,
|
|
@@ -8394,13 +8413,13 @@ var vd = class extends B {
|
|
|
8394
8413
|
});
|
|
8395
8414
|
}
|
|
8396
8415
|
};
|
|
8397
|
-
Object.defineProperty(
|
|
8416
|
+
Object.defineProperty(yd, "message", {
|
|
8398
8417
|
enumerable: !0,
|
|
8399
8418
|
configurable: !0,
|
|
8400
8419
|
writable: !0,
|
|
8401
8420
|
value: /aa20/
|
|
8402
8421
|
});
|
|
8403
|
-
var
|
|
8422
|
+
var bd = class extends B {
|
|
8404
8423
|
constructor({ cause: e, data: t, message: n } = {}) {
|
|
8405
8424
|
let r = n?.replace("execution reverted: ", "")?.replace("execution reverted", "");
|
|
8406
8425
|
super(`Execution reverted ${r ? `with reason: ${r}` : "for an unknown reason"}.`, {
|
|
@@ -8414,18 +8433,18 @@ var yd = class extends B {
|
|
|
8414
8433
|
}), this.data = t;
|
|
8415
8434
|
}
|
|
8416
8435
|
};
|
|
8417
|
-
Object.defineProperty(
|
|
8436
|
+
Object.defineProperty(bd, "code", {
|
|
8418
8437
|
enumerable: !0,
|
|
8419
8438
|
configurable: !0,
|
|
8420
8439
|
writable: !0,
|
|
8421
8440
|
value: -32521
|
|
8422
|
-
}), Object.defineProperty(
|
|
8441
|
+
}), Object.defineProperty(bd, "message", {
|
|
8423
8442
|
enumerable: !0,
|
|
8424
8443
|
configurable: !0,
|
|
8425
8444
|
writable: !0,
|
|
8426
8445
|
value: /execution reverted/
|
|
8427
8446
|
});
|
|
8428
|
-
var
|
|
8447
|
+
var xd = class extends B {
|
|
8429
8448
|
constructor({ cause: e }) {
|
|
8430
8449
|
super("Failed to send funds to beneficiary.", {
|
|
8431
8450
|
cause: e,
|
|
@@ -8433,13 +8452,13 @@ var bd = class extends B {
|
|
|
8433
8452
|
});
|
|
8434
8453
|
}
|
|
8435
8454
|
};
|
|
8436
|
-
Object.defineProperty(
|
|
8455
|
+
Object.defineProperty(xd, "message", {
|
|
8437
8456
|
enumerable: !0,
|
|
8438
8457
|
configurable: !0,
|
|
8439
8458
|
writable: !0,
|
|
8440
8459
|
value: /aa91/
|
|
8441
8460
|
});
|
|
8442
|
-
var
|
|
8461
|
+
var Sd = class extends B {
|
|
8443
8462
|
constructor({ cause: e }) {
|
|
8444
8463
|
super("Gas value overflowed.", {
|
|
8445
8464
|
cause: e,
|
|
@@ -8448,13 +8467,13 @@ var xd = class extends B {
|
|
|
8448
8467
|
});
|
|
8449
8468
|
}
|
|
8450
8469
|
};
|
|
8451
|
-
Object.defineProperty(
|
|
8470
|
+
Object.defineProperty(Sd, "message", {
|
|
8452
8471
|
enumerable: !0,
|
|
8453
8472
|
configurable: !0,
|
|
8454
8473
|
writable: !0,
|
|
8455
8474
|
value: /aa94/
|
|
8456
8475
|
});
|
|
8457
|
-
var
|
|
8476
|
+
var Cd = class extends B {
|
|
8458
8477
|
constructor({ cause: e }) {
|
|
8459
8478
|
super("The `handleOps` function was called by the Bundler with a gas limit too low.", {
|
|
8460
8479
|
cause: e,
|
|
@@ -8462,13 +8481,13 @@ var Sd = class extends B {
|
|
|
8462
8481
|
});
|
|
8463
8482
|
}
|
|
8464
8483
|
};
|
|
8465
|
-
Object.defineProperty(
|
|
8484
|
+
Object.defineProperty(Cd, "message", {
|
|
8466
8485
|
enumerable: !0,
|
|
8467
8486
|
configurable: !0,
|
|
8468
8487
|
writable: !0,
|
|
8469
8488
|
value: /aa95/
|
|
8470
8489
|
});
|
|
8471
|
-
var
|
|
8490
|
+
var wd = class extends B {
|
|
8472
8491
|
constructor({ cause: e, factory: t, factoryData: n, initCode: r }) {
|
|
8473
8492
|
super("Failed to simulate deployment for Smart Account.", {
|
|
8474
8493
|
cause: e,
|
|
@@ -8485,13 +8504,13 @@ var Cd = class extends B {
|
|
|
8485
8504
|
});
|
|
8486
8505
|
}
|
|
8487
8506
|
};
|
|
8488
|
-
Object.defineProperty(
|
|
8507
|
+
Object.defineProperty(wd, "message", {
|
|
8489
8508
|
enumerable: !0,
|
|
8490
8509
|
configurable: !0,
|
|
8491
8510
|
writable: !0,
|
|
8492
8511
|
value: /aa13/
|
|
8493
8512
|
});
|
|
8494
|
-
var
|
|
8513
|
+
var Td = class extends B {
|
|
8495
8514
|
constructor({ cause: e, factory: t, factoryData: n, initCode: r }) {
|
|
8496
8515
|
super("Smart Account initialization implementation did not create an account.", {
|
|
8497
8516
|
cause: e,
|
|
@@ -8507,13 +8526,13 @@ var wd = class extends B {
|
|
|
8507
8526
|
});
|
|
8508
8527
|
}
|
|
8509
8528
|
};
|
|
8510
|
-
Object.defineProperty(
|
|
8529
|
+
Object.defineProperty(Td, "message", {
|
|
8511
8530
|
enumerable: !0,
|
|
8512
8531
|
configurable: !0,
|
|
8513
8532
|
writable: !0,
|
|
8514
8533
|
value: /aa15/
|
|
8515
8534
|
});
|
|
8516
|
-
var
|
|
8535
|
+
var Ed = class extends B {
|
|
8517
8536
|
constructor({ cause: e, factory: t, factoryData: n, initCode: r, sender: i }) {
|
|
8518
8537
|
super("Smart Account initialization implementation does not return the expected sender.", {
|
|
8519
8538
|
cause: e,
|
|
@@ -8529,13 +8548,13 @@ var Td = class extends B {
|
|
|
8529
8548
|
});
|
|
8530
8549
|
}
|
|
8531
8550
|
};
|
|
8532
|
-
Object.defineProperty(
|
|
8551
|
+
Object.defineProperty(Ed, "message", {
|
|
8533
8552
|
enumerable: !0,
|
|
8534
8553
|
configurable: !0,
|
|
8535
8554
|
writable: !0,
|
|
8536
8555
|
value: /aa14/
|
|
8537
8556
|
});
|
|
8538
|
-
var
|
|
8557
|
+
var Dd = class extends B {
|
|
8539
8558
|
constructor({ cause: e }) {
|
|
8540
8559
|
super("Smart Account does not have sufficient funds to execute the User Operation.", {
|
|
8541
8560
|
cause: e,
|
|
@@ -8548,13 +8567,13 @@ var Ed = class extends B {
|
|
|
8548
8567
|
});
|
|
8549
8568
|
}
|
|
8550
8569
|
};
|
|
8551
|
-
Object.defineProperty(
|
|
8570
|
+
Object.defineProperty(Dd, "message", {
|
|
8552
8571
|
enumerable: !0,
|
|
8553
8572
|
configurable: !0,
|
|
8554
8573
|
writable: !0,
|
|
8555
8574
|
value: /aa21/
|
|
8556
8575
|
});
|
|
8557
|
-
var
|
|
8576
|
+
var Od = class extends B {
|
|
8558
8577
|
constructor({ cause: e }) {
|
|
8559
8578
|
super("Bundler attempted to call an invalid function on the EntryPoint.", {
|
|
8560
8579
|
cause: e,
|
|
@@ -8562,13 +8581,13 @@ var Dd = class extends B {
|
|
|
8562
8581
|
});
|
|
8563
8582
|
}
|
|
8564
8583
|
};
|
|
8565
|
-
Object.defineProperty(
|
|
8584
|
+
Object.defineProperty(Od, "message", {
|
|
8566
8585
|
enumerable: !0,
|
|
8567
8586
|
configurable: !0,
|
|
8568
8587
|
writable: !0,
|
|
8569
8588
|
value: /aa92/
|
|
8570
8589
|
});
|
|
8571
|
-
var
|
|
8590
|
+
var kd = class extends B {
|
|
8572
8591
|
constructor({ cause: e }) {
|
|
8573
8592
|
super("Bundler used an invalid aggregator for handling aggregated User Operations.", {
|
|
8574
8593
|
cause: e,
|
|
@@ -8576,13 +8595,13 @@ var Od = class extends B {
|
|
|
8576
8595
|
});
|
|
8577
8596
|
}
|
|
8578
8597
|
};
|
|
8579
|
-
Object.defineProperty(
|
|
8598
|
+
Object.defineProperty(kd, "message", {
|
|
8580
8599
|
enumerable: !0,
|
|
8581
8600
|
configurable: !0,
|
|
8582
8601
|
writable: !0,
|
|
8583
8602
|
value: /aa96/
|
|
8584
8603
|
});
|
|
8585
|
-
var
|
|
8604
|
+
var Ad = class extends B {
|
|
8586
8605
|
constructor({ cause: e, nonce: t }) {
|
|
8587
8606
|
super("Invalid Smart Account nonce used for User Operation.", {
|
|
8588
8607
|
cause: e,
|
|
@@ -8591,13 +8610,13 @@ var kd = class extends B {
|
|
|
8591
8610
|
});
|
|
8592
8611
|
}
|
|
8593
8612
|
};
|
|
8594
|
-
Object.defineProperty(
|
|
8613
|
+
Object.defineProperty(Ad, "message", {
|
|
8595
8614
|
enumerable: !0,
|
|
8596
8615
|
configurable: !0,
|
|
8597
8616
|
writable: !0,
|
|
8598
8617
|
value: /aa25/
|
|
8599
8618
|
});
|
|
8600
|
-
var
|
|
8619
|
+
var jd = class extends B {
|
|
8601
8620
|
constructor({ cause: e }) {
|
|
8602
8621
|
super("Bundler has not set a beneficiary address.", {
|
|
8603
8622
|
cause: e,
|
|
@@ -8605,13 +8624,13 @@ var Ad = class extends B {
|
|
|
8605
8624
|
});
|
|
8606
8625
|
}
|
|
8607
8626
|
};
|
|
8608
|
-
Object.defineProperty(
|
|
8627
|
+
Object.defineProperty(jd, "message", {
|
|
8609
8628
|
enumerable: !0,
|
|
8610
8629
|
configurable: !0,
|
|
8611
8630
|
writable: !0,
|
|
8612
8631
|
value: /aa90/
|
|
8613
8632
|
});
|
|
8614
|
-
var
|
|
8633
|
+
var Md = class extends B {
|
|
8615
8634
|
constructor({ cause: e }) {
|
|
8616
8635
|
super("Invalid fields set on User Operation.", {
|
|
8617
8636
|
cause: e,
|
|
@@ -8619,13 +8638,13 @@ var jd = class extends B {
|
|
|
8619
8638
|
});
|
|
8620
8639
|
}
|
|
8621
8640
|
};
|
|
8622
|
-
Object.defineProperty(
|
|
8641
|
+
Object.defineProperty(Md, "code", {
|
|
8623
8642
|
enumerable: !0,
|
|
8624
8643
|
configurable: !0,
|
|
8625
8644
|
writable: !0,
|
|
8626
8645
|
value: -32602
|
|
8627
8646
|
});
|
|
8628
|
-
var
|
|
8647
|
+
var Nd = class extends B {
|
|
8629
8648
|
constructor({ cause: e, paymasterAndData: t }) {
|
|
8630
8649
|
super("Paymaster properties provided are invalid.", {
|
|
8631
8650
|
cause: e,
|
|
@@ -8638,13 +8657,13 @@ var Md = class extends B {
|
|
|
8638
8657
|
});
|
|
8639
8658
|
}
|
|
8640
8659
|
};
|
|
8641
|
-
Object.defineProperty(
|
|
8660
|
+
Object.defineProperty(Nd, "message", {
|
|
8642
8661
|
enumerable: !0,
|
|
8643
8662
|
configurable: !0,
|
|
8644
8663
|
writable: !0,
|
|
8645
8664
|
value: /aa93/
|
|
8646
8665
|
});
|
|
8647
|
-
var
|
|
8666
|
+
var Pd = class extends B {
|
|
8648
8667
|
constructor({ cause: e }) {
|
|
8649
8668
|
super("Paymaster deposit for the User Operation is too low.", {
|
|
8650
8669
|
cause: e,
|
|
@@ -8653,18 +8672,18 @@ var Nd = class extends B {
|
|
|
8653
8672
|
});
|
|
8654
8673
|
}
|
|
8655
8674
|
};
|
|
8656
|
-
Object.defineProperty(
|
|
8675
|
+
Object.defineProperty(Pd, "code", {
|
|
8657
8676
|
enumerable: !0,
|
|
8658
8677
|
configurable: !0,
|
|
8659
8678
|
writable: !0,
|
|
8660
8679
|
value: -32508
|
|
8661
|
-
}), Object.defineProperty(
|
|
8680
|
+
}), Object.defineProperty(Pd, "message", {
|
|
8662
8681
|
enumerable: !0,
|
|
8663
8682
|
configurable: !0,
|
|
8664
8683
|
writable: !0,
|
|
8665
8684
|
value: /aa31/
|
|
8666
8685
|
});
|
|
8667
|
-
var
|
|
8686
|
+
var Fd = class extends B {
|
|
8668
8687
|
constructor({ cause: e }) {
|
|
8669
8688
|
super("The `validatePaymasterUserOp` function on the Paymaster reverted.", {
|
|
8670
8689
|
cause: e,
|
|
@@ -8672,13 +8691,13 @@ var Pd = class extends B {
|
|
|
8672
8691
|
});
|
|
8673
8692
|
}
|
|
8674
8693
|
};
|
|
8675
|
-
Object.defineProperty(
|
|
8694
|
+
Object.defineProperty(Fd, "message", {
|
|
8676
8695
|
enumerable: !0,
|
|
8677
8696
|
configurable: !0,
|
|
8678
8697
|
writable: !0,
|
|
8679
8698
|
value: /aa33/
|
|
8680
8699
|
});
|
|
8681
|
-
var
|
|
8700
|
+
var Id = class extends B {
|
|
8682
8701
|
constructor({ cause: e }) {
|
|
8683
8702
|
super("The Paymaster contract has not been deployed.", {
|
|
8684
8703
|
cause: e,
|
|
@@ -8686,13 +8705,13 @@ var Fd = class extends B {
|
|
|
8686
8705
|
});
|
|
8687
8706
|
}
|
|
8688
8707
|
};
|
|
8689
|
-
Object.defineProperty(
|
|
8708
|
+
Object.defineProperty(Id, "message", {
|
|
8690
8709
|
enumerable: !0,
|
|
8691
8710
|
configurable: !0,
|
|
8692
8711
|
writable: !0,
|
|
8693
8712
|
value: /aa30/
|
|
8694
8713
|
});
|
|
8695
|
-
var
|
|
8714
|
+
var Ld = class extends B {
|
|
8696
8715
|
constructor({ cause: e }) {
|
|
8697
8716
|
super("UserOperation rejected because paymaster (or signature aggregator) is throttled/banned.", {
|
|
8698
8717
|
cause: e,
|
|
@@ -8700,13 +8719,13 @@ var Id = class extends B {
|
|
|
8700
8719
|
});
|
|
8701
8720
|
}
|
|
8702
8721
|
};
|
|
8703
|
-
Object.defineProperty(
|
|
8722
|
+
Object.defineProperty(Ld, "code", {
|
|
8704
8723
|
enumerable: !0,
|
|
8705
8724
|
configurable: !0,
|
|
8706
8725
|
writable: !0,
|
|
8707
8726
|
value: -32504
|
|
8708
8727
|
});
|
|
8709
|
-
var
|
|
8728
|
+
var Rd = class extends B {
|
|
8710
8729
|
constructor({ cause: e }) {
|
|
8711
8730
|
super("UserOperation rejected because paymaster (or signature aggregator) is throttled/banned.", {
|
|
8712
8731
|
cause: e,
|
|
@@ -8714,13 +8733,13 @@ var Ld = class extends B {
|
|
|
8714
8733
|
});
|
|
8715
8734
|
}
|
|
8716
8735
|
};
|
|
8717
|
-
Object.defineProperty(
|
|
8736
|
+
Object.defineProperty(Rd, "code", {
|
|
8718
8737
|
enumerable: !0,
|
|
8719
8738
|
configurable: !0,
|
|
8720
8739
|
writable: !0,
|
|
8721
8740
|
value: -32505
|
|
8722
8741
|
});
|
|
8723
|
-
var
|
|
8742
|
+
var zd = class extends B {
|
|
8724
8743
|
constructor({ cause: e }) {
|
|
8725
8744
|
super("Paymaster `postOp` function reverted.", {
|
|
8726
8745
|
cause: e,
|
|
@@ -8728,13 +8747,13 @@ var Rd = class extends B {
|
|
|
8728
8747
|
});
|
|
8729
8748
|
}
|
|
8730
8749
|
};
|
|
8731
|
-
Object.defineProperty(
|
|
8750
|
+
Object.defineProperty(zd, "message", {
|
|
8732
8751
|
enumerable: !0,
|
|
8733
8752
|
configurable: !0,
|
|
8734
8753
|
writable: !0,
|
|
8735
8754
|
value: /aa50/
|
|
8736
8755
|
});
|
|
8737
|
-
var
|
|
8756
|
+
var Bd = class extends B {
|
|
8738
8757
|
constructor({ cause: e, factory: t, factoryData: n, initCode: r }) {
|
|
8739
8758
|
super("Smart Account has already been deployed.", {
|
|
8740
8759
|
cause: e,
|
|
@@ -8748,13 +8767,13 @@ var zd = class extends B {
|
|
|
8748
8767
|
});
|
|
8749
8768
|
}
|
|
8750
8769
|
};
|
|
8751
|
-
Object.defineProperty(
|
|
8770
|
+
Object.defineProperty(Bd, "message", {
|
|
8752
8771
|
enumerable: !0,
|
|
8753
8772
|
configurable: !0,
|
|
8754
8773
|
writable: !0,
|
|
8755
8774
|
value: /aa10/
|
|
8756
8775
|
});
|
|
8757
|
-
var
|
|
8776
|
+
var Vd = class extends B {
|
|
8758
8777
|
constructor({ cause: e }) {
|
|
8759
8778
|
super("UserOperation rejected because account signature check failed (or paymaster signature, if the paymaster uses its data as signature).", {
|
|
8760
8779
|
cause: e,
|
|
@@ -8762,13 +8781,13 @@ var Bd = class extends B {
|
|
|
8762
8781
|
});
|
|
8763
8782
|
}
|
|
8764
8783
|
};
|
|
8765
|
-
Object.defineProperty(
|
|
8784
|
+
Object.defineProperty(Vd, "code", {
|
|
8766
8785
|
enumerable: !0,
|
|
8767
8786
|
configurable: !0,
|
|
8768
8787
|
writable: !0,
|
|
8769
8788
|
value: -32507
|
|
8770
8789
|
});
|
|
8771
|
-
var
|
|
8790
|
+
var Hd = class extends B {
|
|
8772
8791
|
constructor({ cause: e }) {
|
|
8773
8792
|
super("The `validateUserOp` function on the Smart Account reverted.", {
|
|
8774
8793
|
cause: e,
|
|
@@ -8776,13 +8795,13 @@ var Vd = class extends B {
|
|
|
8776
8795
|
});
|
|
8777
8796
|
}
|
|
8778
8797
|
};
|
|
8779
|
-
Object.defineProperty(
|
|
8798
|
+
Object.defineProperty(Hd, "message", {
|
|
8780
8799
|
enumerable: !0,
|
|
8781
8800
|
configurable: !0,
|
|
8782
8801
|
writable: !0,
|
|
8783
8802
|
value: /aa23/
|
|
8784
8803
|
});
|
|
8785
|
-
var
|
|
8804
|
+
var Ud = class extends B {
|
|
8786
8805
|
constructor({ cause: e }) {
|
|
8787
8806
|
super("UserOperation rejected because account specified unsupported signature aggregator.", {
|
|
8788
8807
|
cause: e,
|
|
@@ -8790,13 +8809,13 @@ var Hd = class extends B {
|
|
|
8790
8809
|
});
|
|
8791
8810
|
}
|
|
8792
8811
|
};
|
|
8793
|
-
Object.defineProperty(
|
|
8812
|
+
Object.defineProperty(Ud, "code", {
|
|
8794
8813
|
enumerable: !0,
|
|
8795
8814
|
configurable: !0,
|
|
8796
8815
|
writable: !0,
|
|
8797
8816
|
value: -32506
|
|
8798
8817
|
});
|
|
8799
|
-
var
|
|
8818
|
+
var Wd = class extends B {
|
|
8800
8819
|
constructor({ cause: e }) {
|
|
8801
8820
|
super("User Operation expired.", {
|
|
8802
8821
|
cause: e,
|
|
@@ -8805,13 +8824,13 @@ var Ud = class extends B {
|
|
|
8805
8824
|
});
|
|
8806
8825
|
}
|
|
8807
8826
|
};
|
|
8808
|
-
Object.defineProperty(
|
|
8827
|
+
Object.defineProperty(Wd, "message", {
|
|
8809
8828
|
enumerable: !0,
|
|
8810
8829
|
configurable: !0,
|
|
8811
8830
|
writable: !0,
|
|
8812
8831
|
value: /aa22/
|
|
8813
8832
|
});
|
|
8814
|
-
var
|
|
8833
|
+
var Gd = class extends B {
|
|
8815
8834
|
constructor({ cause: e }) {
|
|
8816
8835
|
super("Paymaster for User Operation expired.", {
|
|
8817
8836
|
cause: e,
|
|
@@ -8820,13 +8839,13 @@ var Wd = class extends B {
|
|
|
8820
8839
|
});
|
|
8821
8840
|
}
|
|
8822
8841
|
};
|
|
8823
|
-
Object.defineProperty(
|
|
8842
|
+
Object.defineProperty(Gd, "message", {
|
|
8824
8843
|
enumerable: !0,
|
|
8825
8844
|
configurable: !0,
|
|
8826
8845
|
writable: !0,
|
|
8827
8846
|
value: /aa32/
|
|
8828
8847
|
});
|
|
8829
|
-
var
|
|
8848
|
+
var Kd = class extends B {
|
|
8830
8849
|
constructor({ cause: e }) {
|
|
8831
8850
|
super("Signature provided for the User Operation is invalid.", {
|
|
8832
8851
|
cause: e,
|
|
@@ -8835,13 +8854,13 @@ var Gd = class extends B {
|
|
|
8835
8854
|
});
|
|
8836
8855
|
}
|
|
8837
8856
|
};
|
|
8838
|
-
Object.defineProperty(
|
|
8857
|
+
Object.defineProperty(Kd, "message", {
|
|
8839
8858
|
enumerable: !0,
|
|
8840
8859
|
configurable: !0,
|
|
8841
8860
|
writable: !0,
|
|
8842
8861
|
value: /aa24/
|
|
8843
8862
|
});
|
|
8844
|
-
var
|
|
8863
|
+
var qd = class extends B {
|
|
8845
8864
|
constructor({ cause: e }) {
|
|
8846
8865
|
super("Signature provided for the User Operation is invalid.", {
|
|
8847
8866
|
cause: e,
|
|
@@ -8850,13 +8869,13 @@ var Kd = class extends B {
|
|
|
8850
8869
|
});
|
|
8851
8870
|
}
|
|
8852
8871
|
};
|
|
8853
|
-
Object.defineProperty(
|
|
8872
|
+
Object.defineProperty(qd, "message", {
|
|
8854
8873
|
enumerable: !0,
|
|
8855
8874
|
configurable: !0,
|
|
8856
8875
|
writable: !0,
|
|
8857
8876
|
value: /aa34/
|
|
8858
8877
|
});
|
|
8859
|
-
var
|
|
8878
|
+
var Jd = class extends B {
|
|
8860
8879
|
constructor({ cause: e }) {
|
|
8861
8880
|
super("User Operation rejected by EntryPoint's `simulateValidation` during account creation or validation.", {
|
|
8862
8881
|
cause: e,
|
|
@@ -8864,13 +8883,13 @@ var qd = class extends B {
|
|
|
8864
8883
|
});
|
|
8865
8884
|
}
|
|
8866
8885
|
};
|
|
8867
|
-
Object.defineProperty(
|
|
8886
|
+
Object.defineProperty(Jd, "code", {
|
|
8868
8887
|
enumerable: !0,
|
|
8869
8888
|
configurable: !0,
|
|
8870
8889
|
writable: !0,
|
|
8871
8890
|
value: -32500
|
|
8872
8891
|
});
|
|
8873
|
-
var
|
|
8892
|
+
var Yd = class extends B {
|
|
8874
8893
|
constructor({ cause: e }) {
|
|
8875
8894
|
super("User Operation rejected by Paymaster's `validatePaymasterUserOp`.", {
|
|
8876
8895
|
cause: e,
|
|
@@ -8878,13 +8897,13 @@ var Jd = class extends B {
|
|
|
8878
8897
|
});
|
|
8879
8898
|
}
|
|
8880
8899
|
};
|
|
8881
|
-
Object.defineProperty(
|
|
8900
|
+
Object.defineProperty(Yd, "code", {
|
|
8882
8901
|
enumerable: !0,
|
|
8883
8902
|
configurable: !0,
|
|
8884
8903
|
writable: !0,
|
|
8885
8904
|
value: -32501
|
|
8886
8905
|
});
|
|
8887
|
-
var
|
|
8906
|
+
var Xd = class extends B {
|
|
8888
8907
|
constructor({ cause: e }) {
|
|
8889
8908
|
super("User Operation rejected with op code validation error.", {
|
|
8890
8909
|
cause: e,
|
|
@@ -8892,13 +8911,13 @@ var Yd = class extends B {
|
|
|
8892
8911
|
});
|
|
8893
8912
|
}
|
|
8894
8913
|
};
|
|
8895
|
-
Object.defineProperty(
|
|
8914
|
+
Object.defineProperty(Xd, "code", {
|
|
8896
8915
|
enumerable: !0,
|
|
8897
8916
|
configurable: !0,
|
|
8898
8917
|
writable: !0,
|
|
8899
8918
|
value: -32502
|
|
8900
8919
|
});
|
|
8901
|
-
var
|
|
8920
|
+
var Zd = class extends B {
|
|
8902
8921
|
constructor({ cause: e }) {
|
|
8903
8922
|
super("UserOperation out of time-range: either wallet or paymaster returned a time-range, and it is already expired (or will expire soon).", {
|
|
8904
8923
|
cause: e,
|
|
@@ -8906,20 +8925,20 @@ var Xd = class extends B {
|
|
|
8906
8925
|
});
|
|
8907
8926
|
}
|
|
8908
8927
|
};
|
|
8909
|
-
Object.defineProperty(
|
|
8928
|
+
Object.defineProperty(Zd, "code", {
|
|
8910
8929
|
enumerable: !0,
|
|
8911
8930
|
configurable: !0,
|
|
8912
8931
|
writable: !0,
|
|
8913
8932
|
value: -32503
|
|
8914
8933
|
});
|
|
8915
|
-
var
|
|
8934
|
+
var Qd = class extends B {
|
|
8916
8935
|
constructor({ cause: e }) {
|
|
8917
8936
|
super(`An error occurred while executing user operation: ${e?.shortMessage}`, {
|
|
8918
8937
|
cause: e,
|
|
8919
8938
|
name: "UnknownBundlerError"
|
|
8920
8939
|
});
|
|
8921
8940
|
}
|
|
8922
|
-
},
|
|
8941
|
+
}, $d = class extends B {
|
|
8923
8942
|
constructor({ cause: e }) {
|
|
8924
8943
|
super("User Operation verification gas limit exceeded.", {
|
|
8925
8944
|
cause: e,
|
|
@@ -8928,13 +8947,13 @@ var Zd = class extends B {
|
|
|
8928
8947
|
});
|
|
8929
8948
|
}
|
|
8930
8949
|
};
|
|
8931
|
-
Object.defineProperty(
|
|
8950
|
+
Object.defineProperty($d, "message", {
|
|
8932
8951
|
enumerable: !0,
|
|
8933
8952
|
configurable: !0,
|
|
8934
8953
|
writable: !0,
|
|
8935
8954
|
value: /aa40/
|
|
8936
8955
|
});
|
|
8937
|
-
var
|
|
8956
|
+
var ef = class extends B {
|
|
8938
8957
|
constructor({ cause: e }) {
|
|
8939
8958
|
super("User Operation verification gas limit is too low.", {
|
|
8940
8959
|
cause: e,
|
|
@@ -8943,7 +8962,7 @@ var $d = class extends B {
|
|
|
8943
8962
|
});
|
|
8944
8963
|
}
|
|
8945
8964
|
};
|
|
8946
|
-
Object.defineProperty(
|
|
8965
|
+
Object.defineProperty(ef, "message", {
|
|
8947
8966
|
enumerable: !0,
|
|
8948
8967
|
configurable: !0,
|
|
8949
8968
|
writable: !0,
|
|
@@ -8951,7 +8970,7 @@ Object.defineProperty($d, "message", {
|
|
|
8951
8970
|
});
|
|
8952
8971
|
//#endregion
|
|
8953
8972
|
//#region ../../node_modules/viem/_esm/account-abstraction/errors/userOperation.js
|
|
8954
|
-
var
|
|
8973
|
+
var tf = class extends B {
|
|
8955
8974
|
constructor(e, { callData: t, callGasLimit: r, docsPath: i, factory: a, factoryData: o, initCode: s, maxFeePerGas: c, maxPriorityFeePerGas: l, nonce: u, paymaster: d, paymasterAndData: f, paymasterData: p, paymasterPostOpGasLimit: m, paymasterVerificationGasLimit: h, preVerificationGas: g, sender: _, signature: v, verificationGasLimit: y }) {
|
|
8956
8975
|
let b = me({
|
|
8957
8976
|
callData: t,
|
|
@@ -8988,110 +9007,110 @@ var ef = class extends B {
|
|
|
8988
9007
|
value: void 0
|
|
8989
9008
|
}), this.cause = e;
|
|
8990
9009
|
}
|
|
8991
|
-
},
|
|
9010
|
+
}, nf = class extends B {
|
|
8992
9011
|
constructor({ hash: e }) {
|
|
8993
9012
|
super(`User Operation receipt with hash "${e}" could not be found. The User Operation may not have been processed yet.`, { name: "UserOperationReceiptNotFoundError" });
|
|
8994
9013
|
}
|
|
8995
|
-
},
|
|
9014
|
+
}, rf = class extends B {
|
|
8996
9015
|
constructor({ hash: e }) {
|
|
8997
9016
|
super(`User Operation with hash "${e}" could not be found.`, { name: "UserOperationNotFoundError" });
|
|
8998
9017
|
}
|
|
8999
|
-
},
|
|
9018
|
+
}, af = class extends B {
|
|
9000
9019
|
constructor({ hash: e }) {
|
|
9001
9020
|
super(`Timed out while waiting for User Operation with hash "${e}" to be confirmed.`, { name: "WaitForUserOperationReceiptTimeoutError" });
|
|
9002
9021
|
}
|
|
9003
|
-
},
|
|
9004
|
-
|
|
9005
|
-
|
|
9006
|
-
|
|
9007
|
-
Id,
|
|
9022
|
+
}, of = [
|
|
9023
|
+
bd,
|
|
9024
|
+
Md,
|
|
9025
|
+
Pd,
|
|
9008
9026
|
Ld,
|
|
9009
|
-
|
|
9010
|
-
|
|
9011
|
-
|
|
9012
|
-
|
|
9027
|
+
Rd,
|
|
9028
|
+
Vd,
|
|
9029
|
+
Ud,
|
|
9030
|
+
Zd,
|
|
9013
9031
|
Jd,
|
|
9014
|
-
Yd
|
|
9032
|
+
Yd,
|
|
9033
|
+
Xd
|
|
9015
9034
|
];
|
|
9016
|
-
function
|
|
9035
|
+
function sf(e, t) {
|
|
9017
9036
|
let n = (e.details || "").toLowerCase();
|
|
9018
|
-
if (
|
|
9019
|
-
if (bd.message.test(n)) return new bd({ cause: e });
|
|
9037
|
+
if (yd.message.test(n)) return new yd({ cause: e });
|
|
9020
9038
|
if (xd.message.test(n)) return new xd({ cause: e });
|
|
9021
9039
|
if (Sd.message.test(n)) return new Sd({ cause: e });
|
|
9022
|
-
if (Cd.message.test(n)) return new Cd({
|
|
9040
|
+
if (Cd.message.test(n)) return new Cd({ cause: e });
|
|
9041
|
+
if (wd.message.test(n)) return new wd({
|
|
9023
9042
|
cause: e,
|
|
9024
9043
|
factory: t.factory,
|
|
9025
9044
|
factoryData: t.factoryData,
|
|
9026
9045
|
initCode: t.initCode
|
|
9027
9046
|
});
|
|
9028
|
-
if (
|
|
9047
|
+
if (Td.message.test(n)) return new Td({
|
|
9029
9048
|
cause: e,
|
|
9030
9049
|
factory: t.factory,
|
|
9031
9050
|
factoryData: t.factoryData,
|
|
9032
9051
|
initCode: t.initCode
|
|
9033
9052
|
});
|
|
9034
|
-
if (
|
|
9053
|
+
if (Ed.message.test(n)) return new Ed({
|
|
9035
9054
|
cause: e,
|
|
9036
9055
|
factory: t.factory,
|
|
9037
9056
|
factoryData: t.factoryData,
|
|
9038
9057
|
initCode: t.initCode,
|
|
9039
9058
|
sender: t.sender
|
|
9040
9059
|
});
|
|
9041
|
-
if (Ed.message.test(n)) return new Ed({ cause: e });
|
|
9042
9060
|
if (Dd.message.test(n)) return new Dd({ cause: e });
|
|
9043
|
-
if (
|
|
9061
|
+
if (Od.message.test(n)) return new Od({ cause: e });
|
|
9062
|
+
if (Ad.message.test(n)) return new Ad({
|
|
9044
9063
|
cause: e,
|
|
9045
9064
|
nonce: t.nonce
|
|
9046
9065
|
});
|
|
9047
|
-
if (
|
|
9048
|
-
if (
|
|
9049
|
-
if (Md.message.test(n)) return new Md({ cause: e });
|
|
9066
|
+
if (kd.message.test(n)) return new kd({ cause: e });
|
|
9067
|
+
if (jd.message.test(n)) return new jd({ cause: e });
|
|
9050
9068
|
if (Nd.message.test(n)) return new Nd({ cause: e });
|
|
9051
9069
|
if (Pd.message.test(n)) return new Pd({ cause: e });
|
|
9052
9070
|
if (Fd.message.test(n)) return new Fd({ cause: e });
|
|
9053
|
-
if (
|
|
9054
|
-
if (
|
|
9055
|
-
if (
|
|
9071
|
+
if (Id.message.test(n)) return new Id({ cause: e });
|
|
9072
|
+
if (zd.message.test(n)) return new zd({ cause: e });
|
|
9073
|
+
if (Hd.message.test(n)) return new Hd({ cause: e });
|
|
9074
|
+
if (Bd.message.test(n)) return new Bd({
|
|
9056
9075
|
cause: e,
|
|
9057
9076
|
factory: t.factory,
|
|
9058
9077
|
factoryData: t.factoryData,
|
|
9059
9078
|
initCode: t.initCode
|
|
9060
9079
|
});
|
|
9061
|
-
if (Ud.message.test(n)) return new Ud({ cause: e });
|
|
9062
9080
|
if (Wd.message.test(n)) return new Wd({ cause: e });
|
|
9063
|
-
if (Kd.message.test(n)) return new Kd({ cause: e });
|
|
9064
9081
|
if (Gd.message.test(n)) return new Gd({ cause: e });
|
|
9065
|
-
if (
|
|
9082
|
+
if (qd.message.test(n)) return new qd({ cause: e });
|
|
9083
|
+
if (Kd.message.test(n)) return new Kd({ cause: e });
|
|
9066
9084
|
if ($d.message.test(n)) return new $d({ cause: e });
|
|
9067
|
-
|
|
9085
|
+
if (ef.message.test(n)) return new ef({ cause: e });
|
|
9086
|
+
let r = e.walk((e) => of.some((t) => t.code === e.code));
|
|
9068
9087
|
if (r) {
|
|
9069
|
-
if (r.code ===
|
|
9088
|
+
if (r.code === bd.code) return new bd({
|
|
9070
9089
|
cause: e,
|
|
9071
9090
|
data: r.data,
|
|
9072
9091
|
message: r.details
|
|
9073
9092
|
});
|
|
9074
|
-
if (r.code ===
|
|
9075
|
-
if (r.code ===
|
|
9076
|
-
if (r.code === Id.code) return new Id({ cause: e });
|
|
9093
|
+
if (r.code === Md.code) return new Md({ cause: e });
|
|
9094
|
+
if (r.code === Pd.code) return new Pd({ cause: e });
|
|
9077
9095
|
if (r.code === Ld.code) return new Ld({ cause: e });
|
|
9078
|
-
if (r.code ===
|
|
9079
|
-
if (r.code ===
|
|
9080
|
-
if (r.code ===
|
|
9081
|
-
if (r.code ===
|
|
9096
|
+
if (r.code === Rd.code) return new Rd({ cause: e });
|
|
9097
|
+
if (r.code === Vd.code) return new Vd({ cause: e });
|
|
9098
|
+
if (r.code === Ud.code) return new Ud({ cause: e });
|
|
9099
|
+
if (r.code === Zd.code) return new Zd({ cause: e });
|
|
9082
9100
|
if (r.code === Jd.code) return new Jd({ cause: e });
|
|
9083
9101
|
if (r.code === Yd.code) return new Yd({ cause: e });
|
|
9102
|
+
if (r.code === Xd.code) return new Xd({ cause: e });
|
|
9084
9103
|
}
|
|
9085
|
-
return new
|
|
9104
|
+
return new Qd({ cause: e });
|
|
9086
9105
|
}
|
|
9087
9106
|
//#endregion
|
|
9088
9107
|
//#region ../../node_modules/viem/_esm/account-abstraction/utils/errors/getUserOperationError.js
|
|
9089
|
-
function
|
|
9090
|
-
return new
|
|
9091
|
-
let n =
|
|
9092
|
-
if (t && n instanceof
|
|
9093
|
-
let e =
|
|
9094
|
-
if (e && r.length > 0) return
|
|
9108
|
+
function cf(e, { calls: t, docsPath: n, ...r }) {
|
|
9109
|
+
return new tf((() => {
|
|
9110
|
+
let n = sf(e, r);
|
|
9111
|
+
if (t && n instanceof bd) {
|
|
9112
|
+
let e = lf(n), r = t?.filter((e) => e.abi);
|
|
9113
|
+
if (e && r.length > 0) return uf({
|
|
9095
9114
|
calls: r,
|
|
9096
9115
|
revertData: e
|
|
9097
9116
|
});
|
|
@@ -9102,7 +9121,7 @@ function sf(e, { calls: t, docsPath: n, ...r }) {
|
|
|
9102
9121
|
...r
|
|
9103
9122
|
});
|
|
9104
9123
|
}
|
|
9105
|
-
function
|
|
9124
|
+
function lf(e) {
|
|
9106
9125
|
let t;
|
|
9107
9126
|
return e.walk((e) => {
|
|
9108
9127
|
let n = e;
|
|
@@ -9113,7 +9132,7 @@ function cf(e) {
|
|
|
9113
9132
|
return !1;
|
|
9114
9133
|
}), t;
|
|
9115
9134
|
}
|
|
9116
|
-
function
|
|
9135
|
+
function uf(e) {
|
|
9117
9136
|
let { calls: t, revertData: n } = e, { abi: r, functionName: i, args: a, to: o } = (() => {
|
|
9118
9137
|
let e = t?.filter((e) => !!e.abi);
|
|
9119
9138
|
if (e.length === 1) return e[0];
|
|
@@ -9147,17 +9166,17 @@ function lf(e) {
|
|
|
9147
9166
|
}
|
|
9148
9167
|
//#endregion
|
|
9149
9168
|
//#region ../../node_modules/viem/_esm/account-abstraction/utils/formatters/userOperationGas.js
|
|
9150
|
-
function
|
|
9169
|
+
function df(e) {
|
|
9151
9170
|
let t = {};
|
|
9152
9171
|
return e.callGasLimit && (t.callGasLimit = BigInt(e.callGasLimit)), e.preVerificationGas && (t.preVerificationGas = BigInt(e.preVerificationGas)), e.verificationGasLimit && (t.verificationGasLimit = BigInt(e.verificationGasLimit)), e.paymasterPostOpGasLimit && (t.paymasterPostOpGasLimit = BigInt(e.paymasterPostOpGasLimit)), e.paymasterVerificationGasLimit && (t.paymasterVerificationGasLimit = BigInt(e.paymasterVerificationGasLimit)), t;
|
|
9153
9172
|
}
|
|
9154
9173
|
//#endregion
|
|
9155
9174
|
//#region ../../node_modules/viem/_esm/account-abstraction/utils/formatters/userOperationRequest.js
|
|
9156
|
-
function
|
|
9175
|
+
function ff(e) {
|
|
9157
9176
|
let t = {};
|
|
9158
|
-
return e.callData !== void 0 && (t.callData = e.callData), e.callGasLimit !== void 0 && (t.callGasLimit = H(e.callGasLimit)), e.factory !== void 0 && (t.factory = e.factory), e.factoryData !== void 0 && (t.factoryData = e.factoryData), e.initCode !== void 0 && (t.initCode = e.initCode), e.maxFeePerGas !== void 0 && (t.maxFeePerGas = H(e.maxFeePerGas)), e.maxPriorityFeePerGas !== void 0 && (t.maxPriorityFeePerGas = H(e.maxPriorityFeePerGas)), e.nonce !== void 0 && (t.nonce = H(e.nonce)), e.paymaster !== void 0 && (t.paymaster = e.paymaster), e.paymasterAndData !== void 0 && (t.paymasterAndData = e.paymasterAndData || "0x"), e.paymasterData !== void 0 && (t.paymasterData = e.paymasterData), e.paymasterPostOpGasLimit !== void 0 && (t.paymasterPostOpGasLimit = H(e.paymasterPostOpGasLimit)), e.paymasterSignature !== void 0 && (t.paymasterSignature = e.paymasterSignature), e.paymasterVerificationGasLimit !== void 0 && (t.paymasterVerificationGasLimit = H(e.paymasterVerificationGasLimit)), e.preVerificationGas !== void 0 && (t.preVerificationGas = H(e.preVerificationGas)), e.sender !== void 0 && (t.sender = e.sender), e.signature !== void 0 && (t.signature = e.signature), e.verificationGasLimit !== void 0 && (t.verificationGasLimit = H(e.verificationGasLimit)), e.authorization !== void 0 && (t.eip7702Auth =
|
|
9177
|
+
return e.callData !== void 0 && (t.callData = e.callData), e.callGasLimit !== void 0 && (t.callGasLimit = H(e.callGasLimit)), e.factory !== void 0 && (t.factory = e.factory), e.factoryData !== void 0 && (t.factoryData = e.factoryData), e.initCode !== void 0 && (t.initCode = e.initCode), e.maxFeePerGas !== void 0 && (t.maxFeePerGas = H(e.maxFeePerGas)), e.maxPriorityFeePerGas !== void 0 && (t.maxPriorityFeePerGas = H(e.maxPriorityFeePerGas)), e.nonce !== void 0 && (t.nonce = H(e.nonce)), e.paymaster !== void 0 && (t.paymaster = e.paymaster), e.paymasterAndData !== void 0 && (t.paymasterAndData = e.paymasterAndData || "0x"), e.paymasterData !== void 0 && (t.paymasterData = e.paymasterData), e.paymasterPostOpGasLimit !== void 0 && (t.paymasterPostOpGasLimit = H(e.paymasterPostOpGasLimit)), e.paymasterSignature !== void 0 && (t.paymasterSignature = e.paymasterSignature), e.paymasterVerificationGasLimit !== void 0 && (t.paymasterVerificationGasLimit = H(e.paymasterVerificationGasLimit)), e.preVerificationGas !== void 0 && (t.preVerificationGas = H(e.preVerificationGas)), e.sender !== void 0 && (t.sender = e.sender), e.signature !== void 0 && (t.signature = e.signature), e.verificationGasLimit !== void 0 && (t.verificationGasLimit = H(e.verificationGasLimit)), e.authorization !== void 0 && (t.eip7702Auth = pf(e.authorization)), t;
|
|
9159
9178
|
}
|
|
9160
|
-
function
|
|
9179
|
+
function pf(e) {
|
|
9161
9180
|
return {
|
|
9162
9181
|
address: e.address,
|
|
9163
9182
|
chainId: H(e.chainId),
|
|
@@ -9169,8 +9188,8 @@ function ff(e) {
|
|
|
9169
9188
|
}
|
|
9170
9189
|
//#endregion
|
|
9171
9190
|
//#region ../../node_modules/viem/_esm/account-abstraction/actions/paymaster/getPaymasterData.js
|
|
9172
|
-
async function
|
|
9173
|
-
let { chainId: n, entryPointAddress: r, context: i, ...a } = t, o =
|
|
9191
|
+
async function mf(e, t) {
|
|
9192
|
+
let { chainId: n, entryPointAddress: r, context: i, ...a } = t, o = ff(a), { paymasterPostOpGasLimit: s, paymasterVerificationGasLimit: c, ...l } = await e.request({
|
|
9174
9193
|
method: "pm_getPaymasterData",
|
|
9175
9194
|
params: [
|
|
9176
9195
|
{
|
|
@@ -9192,8 +9211,8 @@ async function pf(e, t) {
|
|
|
9192
9211
|
}
|
|
9193
9212
|
//#endregion
|
|
9194
9213
|
//#region ../../node_modules/viem/_esm/account-abstraction/actions/paymaster/getPaymasterStubData.js
|
|
9195
|
-
async function
|
|
9196
|
-
let { chainId: n, entryPointAddress: r, context: i, ...a } = t, o =
|
|
9214
|
+
async function hf(e, t) {
|
|
9215
|
+
let { chainId: n, entryPointAddress: r, context: i, ...a } = t, o = ff(a), { paymasterPostOpGasLimit: s, paymasterVerificationGasLimit: c, ...l } = await e.request({
|
|
9197
9216
|
method: "pm_getPaymasterStubData",
|
|
9198
9217
|
params: [
|
|
9199
9218
|
{
|
|
@@ -9215,7 +9234,7 @@ async function mf(e, t) {
|
|
|
9215
9234
|
}
|
|
9216
9235
|
//#endregion
|
|
9217
9236
|
//#region ../../node_modules/viem/_esm/account-abstraction/actions/bundler/prepareUserOperation.js
|
|
9218
|
-
var
|
|
9237
|
+
var gf = [
|
|
9219
9238
|
"factory",
|
|
9220
9239
|
"fees",
|
|
9221
9240
|
"gas",
|
|
@@ -9224,13 +9243,13 @@ var hf = [
|
|
|
9224
9243
|
"signature",
|
|
9225
9244
|
"authorization"
|
|
9226
9245
|
];
|
|
9227
|
-
async function
|
|
9228
|
-
let n = t, { account: r = e.account, dataSuffix: i = typeof e.dataSuffix == "string" ? e.dataSuffix : e.dataSuffix?.value, parameters: a =
|
|
9246
|
+
async function _f(e, t) {
|
|
9247
|
+
let n = t, { account: r = e.account, dataSuffix: i = typeof e.dataSuffix == "string" ? e.dataSuffix : e.dataSuffix?.value, parameters: a = gf, stateOverride: o } = n;
|
|
9229
9248
|
if (!r) throw new $i();
|
|
9230
9249
|
let s = V(r), c = e, l = n.paymaster ?? c?.paymaster, u = typeof l == "string" ? l : void 0, { getPaymasterStubData: d, getPaymasterData: f } = (() => {
|
|
9231
9250
|
if (l === !0) return {
|
|
9232
|
-
getPaymasterStubData: (e) => K(c,
|
|
9233
|
-
getPaymasterData: (e) => K(c,
|
|
9251
|
+
getPaymasterStubData: (e) => K(c, hf, "getPaymasterStubData")(e),
|
|
9252
|
+
getPaymasterData: (e) => K(c, mf, "getPaymasterData")(e)
|
|
9234
9253
|
};
|
|
9235
9254
|
if (typeof l == "object") {
|
|
9236
9255
|
let { getPaymasterStubData: e, getPaymasterData: t } = l;
|
|
@@ -9345,7 +9364,7 @@ async function gf(e, t) {
|
|
|
9345
9364
|
};
|
|
9346
9365
|
}
|
|
9347
9366
|
if (m.callGasLimit === void 0 || m.preVerificationGas === void 0 || m.verificationGasLimit === void 0 || m.paymaster && m.paymasterPostOpGasLimit === void 0 || m.paymaster && m.paymasterVerificationGasLimit === void 0) {
|
|
9348
|
-
let e = await K(c,
|
|
9367
|
+
let e = await K(c, vf, "estimateUserOperationGas")({
|
|
9349
9368
|
account: s,
|
|
9350
9369
|
callGasLimit: 0n,
|
|
9351
9370
|
preVerificationGas: 0n,
|
|
@@ -9383,10 +9402,10 @@ async function gf(e, t) {
|
|
|
9383
9402
|
}
|
|
9384
9403
|
//#endregion
|
|
9385
9404
|
//#region ../../node_modules/viem/_esm/account-abstraction/actions/bundler/estimateUserOperationGas.js
|
|
9386
|
-
async function
|
|
9405
|
+
async function vf(t, n) {
|
|
9387
9406
|
let { account: r = t.account, entryPointAddress: i, stateOverride: a } = n;
|
|
9388
9407
|
if (!r && !n.sender) throw new $i();
|
|
9389
|
-
let o = r ? V(r) : void 0, s = e(a), c = o ? await K(t,
|
|
9408
|
+
let o = r ? V(r) : void 0, s = e(a), c = o ? await K(t, _f, "prepareUserOperation")({
|
|
9390
9409
|
...n,
|
|
9391
9410
|
parameters: [
|
|
9392
9411
|
"authorization",
|
|
@@ -9397,14 +9416,14 @@ async function _f(t, n) {
|
|
|
9397
9416
|
]
|
|
9398
9417
|
}) : n;
|
|
9399
9418
|
try {
|
|
9400
|
-
let e = [
|
|
9401
|
-
return
|
|
9419
|
+
let e = [ff(c), i ?? o?.entryPoint?.address];
|
|
9420
|
+
return df(await t.request({
|
|
9402
9421
|
method: "eth_estimateUserOperationGas",
|
|
9403
9422
|
params: s ? [...e, s] : [...e]
|
|
9404
9423
|
}));
|
|
9405
9424
|
} catch (e) {
|
|
9406
9425
|
let t = n.calls;
|
|
9407
|
-
throw
|
|
9426
|
+
throw cf(e, {
|
|
9408
9427
|
...c,
|
|
9409
9428
|
...t ? { calls: t } : {}
|
|
9410
9429
|
});
|
|
@@ -9412,54 +9431,54 @@ async function _f(t, n) {
|
|
|
9412
9431
|
}
|
|
9413
9432
|
//#endregion
|
|
9414
9433
|
//#region ../../node_modules/viem/_esm/account-abstraction/actions/bundler/getSupportedEntryPoints.js
|
|
9415
|
-
function
|
|
9434
|
+
function yf(e) {
|
|
9416
9435
|
return e.request({ method: "eth_supportedEntryPoints" });
|
|
9417
9436
|
}
|
|
9418
9437
|
//#endregion
|
|
9419
9438
|
//#region ../../node_modules/viem/_esm/account-abstraction/utils/formatters/userOperation.js
|
|
9420
|
-
function
|
|
9439
|
+
function bf(e) {
|
|
9421
9440
|
let t = { ...e };
|
|
9422
9441
|
return e.callGasLimit && (t.callGasLimit = BigInt(e.callGasLimit)), e.maxFeePerGas && (t.maxFeePerGas = BigInt(e.maxFeePerGas)), e.maxPriorityFeePerGas && (t.maxPriorityFeePerGas = BigInt(e.maxPriorityFeePerGas)), e.nonce && (t.nonce = BigInt(e.nonce)), e.paymasterPostOpGasLimit && (t.paymasterPostOpGasLimit = BigInt(e.paymasterPostOpGasLimit)), e.paymasterVerificationGasLimit && (t.paymasterVerificationGasLimit = BigInt(e.paymasterVerificationGasLimit)), e.preVerificationGas && (t.preVerificationGas = BigInt(e.preVerificationGas)), e.verificationGasLimit && (t.verificationGasLimit = BigInt(e.verificationGasLimit)), t;
|
|
9423
9442
|
}
|
|
9424
9443
|
//#endregion
|
|
9425
9444
|
//#region ../../node_modules/viem/_esm/account-abstraction/actions/bundler/getUserOperation.js
|
|
9426
|
-
async function
|
|
9445
|
+
async function xf(e, { hash: t }) {
|
|
9427
9446
|
let n = await e.request({
|
|
9428
9447
|
method: "eth_getUserOperationByHash",
|
|
9429
9448
|
params: [t]
|
|
9430
9449
|
}, { dedupe: !0 });
|
|
9431
|
-
if (!n) throw new
|
|
9450
|
+
if (!n) throw new rf({ hash: t });
|
|
9432
9451
|
let { blockHash: r, blockNumber: i, entryPoint: a, transactionHash: o, userOperation: s } = n;
|
|
9433
9452
|
return {
|
|
9434
9453
|
blockHash: r,
|
|
9435
9454
|
blockNumber: BigInt(i),
|
|
9436
9455
|
entryPoint: a,
|
|
9437
9456
|
transactionHash: o,
|
|
9438
|
-
userOperation:
|
|
9457
|
+
userOperation: bf(s)
|
|
9439
9458
|
};
|
|
9440
9459
|
}
|
|
9441
9460
|
//#endregion
|
|
9442
9461
|
//#region ../../node_modules/viem/_esm/account-abstraction/utils/formatters/userOperationReceipt.js
|
|
9443
|
-
function
|
|
9462
|
+
function Sf(e) {
|
|
9444
9463
|
let t = { ...e };
|
|
9445
9464
|
return e.actualGasCost && (t.actualGasCost = BigInt(e.actualGasCost)), e.actualGasUsed && (t.actualGasUsed = BigInt(e.actualGasUsed)), e.logs && (t.logs = e.logs.map((e) => Pi(e))), e.receipt && (t.receipt = ra(t.receipt)), t;
|
|
9446
9465
|
}
|
|
9447
9466
|
//#endregion
|
|
9448
9467
|
//#region ../../node_modules/viem/_esm/account-abstraction/actions/bundler/getUserOperationReceipt.js
|
|
9449
|
-
async function
|
|
9468
|
+
async function Cf(e, { hash: t }) {
|
|
9450
9469
|
let n = await e.request({
|
|
9451
9470
|
method: "eth_getUserOperationReceipt",
|
|
9452
9471
|
params: [t]
|
|
9453
9472
|
}, { dedupe: !0 });
|
|
9454
|
-
if (!n) throw new
|
|
9455
|
-
return
|
|
9473
|
+
if (!n) throw new nf({ hash: t });
|
|
9474
|
+
return Sf(n);
|
|
9456
9475
|
}
|
|
9457
9476
|
//#endregion
|
|
9458
9477
|
//#region ../../node_modules/viem/_esm/account-abstraction/actions/bundler/sendUserOperation.js
|
|
9459
|
-
async function
|
|
9478
|
+
async function wf(e, t) {
|
|
9460
9479
|
let { account: n = e.account, entryPointAddress: r } = t;
|
|
9461
9480
|
if (!n && !t.sender) throw new $i();
|
|
9462
|
-
let i = n ? V(n) : void 0, a = i ? await K(e,
|
|
9481
|
+
let i = n ? V(n) : void 0, a = i ? await K(e, _f, "prepareUserOperation")(t) : t, o = t.signature || await i?.signUserOperation?.(a), s = ff({
|
|
9463
9482
|
...a,
|
|
9464
9483
|
signature: o
|
|
9465
9484
|
});
|
|
@@ -9470,7 +9489,7 @@ async function Cf(e, t) {
|
|
|
9470
9489
|
}, { retryCount: 0 });
|
|
9471
9490
|
} catch (e) {
|
|
9472
9491
|
let n = t.calls;
|
|
9473
|
-
throw
|
|
9492
|
+
throw cf(e, {
|
|
9474
9493
|
...a,
|
|
9475
9494
|
...n ? { calls: n } : {},
|
|
9476
9495
|
signature: o
|
|
@@ -9479,7 +9498,7 @@ async function Cf(e, t) {
|
|
|
9479
9498
|
}
|
|
9480
9499
|
//#endregion
|
|
9481
9500
|
//#region ../../node_modules/viem/_esm/account-abstraction/actions/bundler/waitForUserOperationReceipt.js
|
|
9482
|
-
function
|
|
9501
|
+
function Tf(e, t) {
|
|
9483
9502
|
let { hash: n, pollingInterval: r = e.pollingInterval, retryCount: i, timeout: a = 12e4 } = t, o = 0, s = Ot([
|
|
9484
9503
|
"waitForUserOperationReceipt",
|
|
9485
9504
|
e.uid,
|
|
@@ -9492,10 +9511,10 @@ function wf(e, t) {
|
|
|
9492
9511
|
}, (t) => {
|
|
9493
9512
|
let s = (e) => {
|
|
9494
9513
|
u(), e(), l();
|
|
9495
|
-
}, c = a ? setTimeout(() => s(() => t.reject(new
|
|
9496
|
-
i && o >= i && (clearTimeout(c), s(() => t.reject(new
|
|
9514
|
+
}, c = a ? setTimeout(() => s(() => t.reject(new af({ hash: n }))), a) : void 0, u = Ui(async () => {
|
|
9515
|
+
i && o >= i && (clearTimeout(c), s(() => t.reject(new af({ hash: n }))));
|
|
9497
9516
|
try {
|
|
9498
|
-
let r = await K(e,
|
|
9517
|
+
let r = await K(e, Cf, "getUserOperationReceipt")({ hash: n });
|
|
9499
9518
|
clearTimeout(c), s(() => t.resolve(r));
|
|
9500
9519
|
} catch (e) {
|
|
9501
9520
|
let n = e;
|
|
@@ -9512,21 +9531,21 @@ function wf(e, t) {
|
|
|
9512
9531
|
}
|
|
9513
9532
|
//#endregion
|
|
9514
9533
|
//#region ../../node_modules/viem/_esm/account-abstraction/clients/decorators/bundler.js
|
|
9515
|
-
function
|
|
9534
|
+
function Ef(e) {
|
|
9516
9535
|
return {
|
|
9517
|
-
estimateUserOperationGas: (t) =>
|
|
9536
|
+
estimateUserOperationGas: (t) => vf(e, t),
|
|
9518
9537
|
getChainId: () => xi(e),
|
|
9519
|
-
getSupportedEntryPoints: () =>
|
|
9520
|
-
getUserOperation: (t) =>
|
|
9521
|
-
getUserOperationReceipt: (t) =>
|
|
9522
|
-
prepareUserOperation: (t) =>
|
|
9523
|
-
sendUserOperation: (t) =>
|
|
9524
|
-
waitForUserOperationReceipt: (t) =>
|
|
9538
|
+
getSupportedEntryPoints: () => yf(e),
|
|
9539
|
+
getUserOperation: (t) => xf(e, t),
|
|
9540
|
+
getUserOperationReceipt: (t) => Cf(e, t),
|
|
9541
|
+
prepareUserOperation: (t) => _f(e, t),
|
|
9542
|
+
sendUserOperation: (t) => wf(e, t),
|
|
9543
|
+
waitForUserOperationReceipt: (t) => Tf(e, t)
|
|
9525
9544
|
};
|
|
9526
9545
|
}
|
|
9527
9546
|
//#endregion
|
|
9528
9547
|
//#region ../../node_modules/viem/_esm/account-abstraction/clients/createBundlerClient.js
|
|
9529
|
-
function
|
|
9548
|
+
function Df(e) {
|
|
9530
9549
|
let { client: t, dataSuffix: n, key: r = "bundler", name: i = "Bundler Client", paymaster: a, paymasterContext: o, transport: s, userOperation: c } = e;
|
|
9531
9550
|
return Object.assign(la({
|
|
9532
9551
|
...e,
|
|
@@ -9541,19 +9560,19 @@ function Ef(e) {
|
|
|
9541
9560
|
paymaster: a,
|
|
9542
9561
|
paymasterContext: o,
|
|
9543
9562
|
userOperation: c
|
|
9544
|
-
}).extend(
|
|
9563
|
+
}).extend(Ef);
|
|
9545
9564
|
}
|
|
9546
9565
|
//#endregion
|
|
9547
9566
|
//#region ../../node_modules/viem/_esm/account-abstraction/clients/decorators/paymaster.js
|
|
9548
|
-
function
|
|
9567
|
+
function Of(e) {
|
|
9549
9568
|
return {
|
|
9550
|
-
getPaymasterData: (t) =>
|
|
9551
|
-
getPaymasterStubData: (t) =>
|
|
9569
|
+
getPaymasterData: (t) => mf(e, t),
|
|
9570
|
+
getPaymasterStubData: (t) => hf(e, t)
|
|
9552
9571
|
};
|
|
9553
9572
|
}
|
|
9554
9573
|
//#endregion
|
|
9555
9574
|
//#region ../../node_modules/viem/_esm/account-abstraction/clients/createPaymasterClient.js
|
|
9556
|
-
function
|
|
9575
|
+
function kf(e) {
|
|
9557
9576
|
let { key: t = "bundler", name: n = "Bundler Client", transport: r } = e;
|
|
9558
9577
|
return la({
|
|
9559
9578
|
...e,
|
|
@@ -9561,19 +9580,19 @@ function Of(e) {
|
|
|
9561
9580
|
name: n,
|
|
9562
9581
|
transport: r,
|
|
9563
9582
|
type: "PaymasterClient"
|
|
9564
|
-
}).extend(
|
|
9583
|
+
}).extend(Of);
|
|
9565
9584
|
}
|
|
9566
9585
|
//#endregion
|
|
9567
9586
|
//#region ../../node_modules/ox/_esm/core/version.js
|
|
9568
|
-
var
|
|
9587
|
+
var Af = "0.1.1";
|
|
9569
9588
|
//#endregion
|
|
9570
9589
|
//#region ../../node_modules/ox/_esm/core/internal/errors.js
|
|
9571
|
-
function
|
|
9572
|
-
return
|
|
9590
|
+
function jf() {
|
|
9591
|
+
return Af;
|
|
9573
9592
|
}
|
|
9574
9593
|
//#endregion
|
|
9575
9594
|
//#region ../../node_modules/ox/_esm/core/Errors.js
|
|
9576
|
-
var
|
|
9595
|
+
var Mf = class e extends Error {
|
|
9577
9596
|
constructor(t, n = {}) {
|
|
9578
9597
|
let r = (() => {
|
|
9579
9598
|
if (n.cause instanceof e) {
|
|
@@ -9624,43 +9643,43 @@ var jf = class e extends Error {
|
|
|
9624
9643
|
enumerable: !0,
|
|
9625
9644
|
configurable: !0,
|
|
9626
9645
|
writable: !0,
|
|
9627
|
-
value: `ox@${
|
|
9646
|
+
value: `ox@${jf()}`
|
|
9628
9647
|
}), this.cause = n.cause, this.details = r, this.docs = a, this.docsPath = i, this.shortMessage = t;
|
|
9629
9648
|
}
|
|
9630
9649
|
walk(e) {
|
|
9631
|
-
return
|
|
9650
|
+
return Nf(this, e);
|
|
9632
9651
|
}
|
|
9633
9652
|
};
|
|
9634
|
-
function
|
|
9635
|
-
return t?.(e) ? e : e && typeof e == "object" && "cause" in e && e.cause ?
|
|
9653
|
+
function Nf(e, t) {
|
|
9654
|
+
return t?.(e) ? e : e && typeof e == "object" && "cause" in e && e.cause ? Nf(e.cause, t) : t ? null : e;
|
|
9636
9655
|
}
|
|
9637
9656
|
//#endregion
|
|
9638
9657
|
//#region ../../node_modules/ox/_esm/core/internal/hex.js
|
|
9639
|
-
function
|
|
9640
|
-
if (
|
|
9641
|
-
givenSize:
|
|
9658
|
+
function Pf(e, t) {
|
|
9659
|
+
if (Yf(e) > t) throw new ep({
|
|
9660
|
+
givenSize: Yf(e),
|
|
9642
9661
|
maxSize: t
|
|
9643
9662
|
});
|
|
9644
9663
|
}
|
|
9645
|
-
function
|
|
9646
|
-
if (typeof t == "number" && t > 0 && t >
|
|
9664
|
+
function Ff(e, t) {
|
|
9665
|
+
if (typeof t == "number" && t > 0 && t > Yf(e) - 1) throw new tp({
|
|
9647
9666
|
offset: t,
|
|
9648
9667
|
position: "start",
|
|
9649
|
-
size:
|
|
9668
|
+
size: Yf(e)
|
|
9650
9669
|
});
|
|
9651
9670
|
}
|
|
9652
|
-
function
|
|
9653
|
-
if (typeof t == "number" && typeof n == "number" &&
|
|
9671
|
+
function If(e, t, n) {
|
|
9672
|
+
if (typeof t == "number" && typeof n == "number" && Yf(e) !== n - t) throw new tp({
|
|
9654
9673
|
offset: n,
|
|
9655
9674
|
position: "end",
|
|
9656
|
-
size:
|
|
9675
|
+
size: Yf(e)
|
|
9657
9676
|
});
|
|
9658
9677
|
}
|
|
9659
|
-
function
|
|
9678
|
+
function Lf(e, t = {}) {
|
|
9660
9679
|
let { dir: n, size: r = 32 } = t;
|
|
9661
9680
|
if (r === 0) return e;
|
|
9662
9681
|
let i = e.replace("0x", "");
|
|
9663
|
-
if (i.length > r * 2) throw new
|
|
9682
|
+
if (i.length > r * 2) throw new np({
|
|
9664
9683
|
size: Math.ceil(i.length / 2),
|
|
9665
9684
|
targetSize: r,
|
|
9666
9685
|
type: "Hex"
|
|
@@ -9669,37 +9688,37 @@ function If(e, t = {}) {
|
|
|
9669
9688
|
}
|
|
9670
9689
|
//#endregion
|
|
9671
9690
|
//#region ../../node_modules/ox/_esm/core/Json.js
|
|
9672
|
-
var
|
|
9673
|
-
function
|
|
9674
|
-
return JSON.stringify(e, (e, n) => typeof t == "function" ? t(e, n) : typeof n == "bigint" ? n.toString() +
|
|
9691
|
+
var Rf = "#__bigint";
|
|
9692
|
+
function zf(e, t, n) {
|
|
9693
|
+
return JSON.stringify(e, (e, n) => typeof t == "function" ? t(e, n) : typeof n == "bigint" ? n.toString() + Rf : n, n);
|
|
9675
9694
|
}
|
|
9676
9695
|
//#endregion
|
|
9677
9696
|
//#region ../../node_modules/ox/_esm/core/Hex.js
|
|
9678
|
-
var
|
|
9679
|
-
function
|
|
9697
|
+
var Bf = /*#__PURE__*/ Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
|
|
9698
|
+
function Vf(e, t = {}) {
|
|
9680
9699
|
let { strict: n = !1 } = t;
|
|
9681
|
-
if (!e || typeof e != "string") throw new
|
|
9682
|
-
if (n && !/^0x[0-9a-fA-F]*$/.test(e) || !e.startsWith("0x")) throw new
|
|
9700
|
+
if (!e || typeof e != "string") throw new Qf(e);
|
|
9701
|
+
if (n && !/^0x[0-9a-fA-F]*$/.test(e) || !e.startsWith("0x")) throw new $f(e);
|
|
9683
9702
|
}
|
|
9684
|
-
function
|
|
9703
|
+
function Hf(...e) {
|
|
9685
9704
|
return `0x${e.reduce((e, t) => e + t.replace("0x", ""), "")}`;
|
|
9686
9705
|
}
|
|
9687
|
-
function
|
|
9688
|
-
return e instanceof Uint8Array ?
|
|
9706
|
+
function Uf(e) {
|
|
9707
|
+
return e instanceof Uint8Array ? Wf(e) : Array.isArray(e) ? Wf(new Uint8Array(e)) : e;
|
|
9689
9708
|
}
|
|
9690
|
-
function
|
|
9709
|
+
function Wf(e, t = {}) {
|
|
9691
9710
|
let n = "";
|
|
9692
|
-
for (let t = 0; t < e.length; t++) n +=
|
|
9711
|
+
for (let t = 0; t < e.length; t++) n += Bf[e[t]];
|
|
9693
9712
|
let r = `0x${n}`;
|
|
9694
|
-
return typeof t.size == "number" ? (
|
|
9713
|
+
return typeof t.size == "number" ? (Pf(r, t.size), qf(r, t.size)) : r;
|
|
9695
9714
|
}
|
|
9696
|
-
function
|
|
9715
|
+
function Gf(e, t = {}) {
|
|
9697
9716
|
let { signed: n, size: r } = t, i = BigInt(e), a;
|
|
9698
9717
|
r ? a = n ? (1n << BigInt(r) * 8n - 1n) - 1n : 2n ** (BigInt(r) * 8n) - 1n : typeof e == "number" && (a = BigInt(2 ** 53 - 1));
|
|
9699
9718
|
let o = typeof a == "bigint" && n ? -a - 1n : 0;
|
|
9700
9719
|
if (a && i > a || i < o) {
|
|
9701
9720
|
let t = typeof e == "bigint" ? "n" : "";
|
|
9702
|
-
throw new
|
|
9721
|
+
throw new Zf({
|
|
9703
9722
|
max: a ? `${a}${t}` : void 0,
|
|
9704
9723
|
min: `${o}${t}`,
|
|
9705
9724
|
signed: n,
|
|
@@ -9708,38 +9727,38 @@ function Wf(e, t = {}) {
|
|
|
9708
9727
|
});
|
|
9709
9728
|
}
|
|
9710
9729
|
let s = `0x${(n && i < 0 ? (1n << BigInt(r * 8)) + BigInt(i) : i).toString(16)}`;
|
|
9711
|
-
return r ?
|
|
9730
|
+
return r ? Kf(s, r) : s;
|
|
9712
9731
|
}
|
|
9713
|
-
function
|
|
9714
|
-
return
|
|
9732
|
+
function Kf(e, t) {
|
|
9733
|
+
return Lf(e, {
|
|
9715
9734
|
dir: "left",
|
|
9716
9735
|
size: t
|
|
9717
9736
|
});
|
|
9718
9737
|
}
|
|
9719
|
-
function
|
|
9720
|
-
return
|
|
9738
|
+
function qf(e, t) {
|
|
9739
|
+
return Lf(e, {
|
|
9721
9740
|
dir: "right",
|
|
9722
9741
|
size: t
|
|
9723
9742
|
});
|
|
9724
9743
|
}
|
|
9725
|
-
function
|
|
9744
|
+
function Jf(e, t, n, r = {}) {
|
|
9726
9745
|
let { strict: i } = r;
|
|
9727
|
-
|
|
9746
|
+
Ff(e, t);
|
|
9728
9747
|
let a = `0x${e.replace("0x", "").slice((t ?? 0) * 2, (n ?? e.length) * 2)}`;
|
|
9729
|
-
return i &&
|
|
9748
|
+
return i && If(a, t, n), a;
|
|
9730
9749
|
}
|
|
9731
|
-
function
|
|
9750
|
+
function Yf(e) {
|
|
9732
9751
|
return Math.ceil((e.length - 2) / 2);
|
|
9733
9752
|
}
|
|
9734
|
-
function
|
|
9753
|
+
function Xf(e, t = {}) {
|
|
9735
9754
|
let { strict: n = !1 } = t;
|
|
9736
9755
|
try {
|
|
9737
|
-
return
|
|
9756
|
+
return Vf(e, { strict: n }), !0;
|
|
9738
9757
|
} catch {
|
|
9739
9758
|
return !1;
|
|
9740
9759
|
}
|
|
9741
9760
|
}
|
|
9742
|
-
var
|
|
9761
|
+
var Zf = class extends Mf {
|
|
9743
9762
|
constructor({ max: e, min: t, signed: n, size: r, value: i }) {
|
|
9744
9763
|
super(`Number \`${i}\` is not in safe${r ? ` ${r * 8}-bit` : ""}${n ? " signed" : " unsigned"} integer range ${e ? `(\`${t}\` to \`${e}\`)` : `(above \`${t}\`)`}`), Object.defineProperty(this, "name", {
|
|
9745
9764
|
enumerable: !0,
|
|
@@ -9748,16 +9767,16 @@ var Xf = class extends jf {
|
|
|
9748
9767
|
value: "Hex.IntegerOutOfRangeError"
|
|
9749
9768
|
});
|
|
9750
9769
|
}
|
|
9751
|
-
},
|
|
9770
|
+
}, Qf = class extends Mf {
|
|
9752
9771
|
constructor(e) {
|
|
9753
|
-
super(`Value \`${typeof e == "object" ?
|
|
9772
|
+
super(`Value \`${typeof e == "object" ? zf(e) : e}\` of type \`${typeof e}\` is an invalid hex type.`, { metaMessages: ["Hex types must be represented as `\"0x${string}\"`."] }), Object.defineProperty(this, "name", {
|
|
9754
9773
|
enumerable: !0,
|
|
9755
9774
|
configurable: !0,
|
|
9756
9775
|
writable: !0,
|
|
9757
9776
|
value: "Hex.InvalidHexTypeError"
|
|
9758
9777
|
});
|
|
9759
9778
|
}
|
|
9760
|
-
},
|
|
9779
|
+
}, $f = class extends Mf {
|
|
9761
9780
|
constructor(e) {
|
|
9762
9781
|
super(`Value \`${e}\` is an invalid hex value.`, { metaMessages: ["Hex values must start with `\"0x\"` and contain only hexadecimal characters (0-9, a-f, A-F)."] }), Object.defineProperty(this, "name", {
|
|
9763
9782
|
enumerable: !0,
|
|
@@ -9766,7 +9785,7 @@ var Xf = class extends jf {
|
|
|
9766
9785
|
value: "Hex.InvalidHexValueError"
|
|
9767
9786
|
});
|
|
9768
9787
|
}
|
|
9769
|
-
},
|
|
9788
|
+
}, ep = class extends Mf {
|
|
9770
9789
|
constructor({ givenSize: e, maxSize: t }) {
|
|
9771
9790
|
super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`), Object.defineProperty(this, "name", {
|
|
9772
9791
|
enumerable: !0,
|
|
@@ -9775,7 +9794,7 @@ var Xf = class extends jf {
|
|
|
9775
9794
|
value: "Hex.SizeOverflowError"
|
|
9776
9795
|
});
|
|
9777
9796
|
}
|
|
9778
|
-
},
|
|
9797
|
+
}, tp = class extends Mf {
|
|
9779
9798
|
constructor({ offset: e, position: t, size: n }) {
|
|
9780
9799
|
super(`Slice ${t === "start" ? "starting" : "ending"} at offset \`${e}\` is out-of-bounds (size: \`${n}\`).`), Object.defineProperty(this, "name", {
|
|
9781
9800
|
enumerable: !0,
|
|
@@ -9784,7 +9803,7 @@ var Xf = class extends jf {
|
|
|
9784
9803
|
value: "Hex.SliceOffsetOutOfBoundsError"
|
|
9785
9804
|
});
|
|
9786
9805
|
}
|
|
9787
|
-
},
|
|
9806
|
+
}, np = class extends Mf {
|
|
9788
9807
|
constructor({ size: e, targetSize: t, type: n }) {
|
|
9789
9808
|
super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`), Object.defineProperty(this, "name", {
|
|
9790
9809
|
enumerable: !0,
|
|
@@ -9796,19 +9815,19 @@ var Xf = class extends jf {
|
|
|
9796
9815
|
};
|
|
9797
9816
|
//#endregion
|
|
9798
9817
|
//#region ../../node_modules/ox/_esm/core/Bytes.js
|
|
9799
|
-
function np(e) {
|
|
9800
|
-
if (!(e instanceof Uint8Array) && (!e || typeof e != "object" || !("BYTES_PER_ELEMENT" in e) || e.BYTES_PER_ELEMENT !== 1 || e.constructor.name !== "Uint8Array")) throw new ip(e);
|
|
9801
|
-
}
|
|
9802
9818
|
function rp(e) {
|
|
9819
|
+
if (!(e instanceof Uint8Array) && (!e || typeof e != "object" || !("BYTES_PER_ELEMENT" in e) || e.BYTES_PER_ELEMENT !== 1 || e.constructor.name !== "Uint8Array")) throw new ap(e);
|
|
9820
|
+
}
|
|
9821
|
+
function ip(e) {
|
|
9803
9822
|
try {
|
|
9804
|
-
return
|
|
9823
|
+
return rp(e), !0;
|
|
9805
9824
|
} catch {
|
|
9806
9825
|
return !1;
|
|
9807
9826
|
}
|
|
9808
9827
|
}
|
|
9809
|
-
var
|
|
9828
|
+
var ap = class extends Mf {
|
|
9810
9829
|
constructor(e) {
|
|
9811
|
-
super(`Value \`${typeof e == "object" ?
|
|
9830
|
+
super(`Value \`${typeof e == "object" ? zf(e) : e}\` of type \`${typeof e}\` is an invalid Bytes value.`, { metaMessages: ["Bytes values must be of type `Bytes`."] }), Object.defineProperty(this, "name", {
|
|
9812
9831
|
enumerable: !0,
|
|
9813
9832
|
configurable: !0,
|
|
9814
9833
|
writable: !0,
|
|
@@ -9818,14 +9837,14 @@ var ip = class extends jf {
|
|
|
9818
9837
|
};
|
|
9819
9838
|
//#endregion
|
|
9820
9839
|
//#region ../../node_modules/ox/_esm/core/Signature.js
|
|
9821
|
-
function
|
|
9822
|
-
if (e.length !== 130 && e.length !== 132) throw new
|
|
9823
|
-
let t = BigInt(
|
|
9840
|
+
function op(e) {
|
|
9841
|
+
if (e.length !== 130 && e.length !== 132) throw new cp({ signature: e });
|
|
9842
|
+
let t = BigInt(Jf(e, 0, 32)), n = BigInt(Jf(e, 32, 64)), r = (() => {
|
|
9824
9843
|
let t = Number(`0x${e.slice(130)}`);
|
|
9825
9844
|
if (!Number.isNaN(t)) try {
|
|
9826
|
-
return
|
|
9845
|
+
return sp(t);
|
|
9827
9846
|
} catch {
|
|
9828
|
-
throw new
|
|
9847
|
+
throw new lp({ value: t });
|
|
9829
9848
|
}
|
|
9830
9849
|
})();
|
|
9831
9850
|
return r === void 0 ? {
|
|
@@ -9837,22 +9856,22 @@ function ap(e) {
|
|
|
9837
9856
|
yParity: r
|
|
9838
9857
|
};
|
|
9839
9858
|
}
|
|
9840
|
-
function
|
|
9859
|
+
function sp(e) {
|
|
9841
9860
|
if (e === 0 || e === 27) return 0;
|
|
9842
9861
|
if (e === 1 || e === 28) return 1;
|
|
9843
9862
|
if (e >= 35) return +(e % 2 == 0);
|
|
9844
|
-
throw new
|
|
9863
|
+
throw new up({ value: e });
|
|
9845
9864
|
}
|
|
9846
|
-
var
|
|
9865
|
+
var cp = class extends Mf {
|
|
9847
9866
|
constructor({ signature: e }) {
|
|
9848
|
-
super(`Value \`${e}\` is an invalid signature size.`, { metaMessages: ["Expected: 64 bytes or 65 bytes.", `Received ${
|
|
9867
|
+
super(`Value \`${e}\` is an invalid signature size.`, { metaMessages: ["Expected: 64 bytes or 65 bytes.", `Received ${Yf(Uf(e))} bytes.`] }), Object.defineProperty(this, "name", {
|
|
9849
9868
|
enumerable: !0,
|
|
9850
9869
|
configurable: !0,
|
|
9851
9870
|
writable: !0,
|
|
9852
9871
|
value: "Signature.InvalidSerializedSizeError"
|
|
9853
9872
|
});
|
|
9854
9873
|
}
|
|
9855
|
-
},
|
|
9874
|
+
}, lp = class extends Mf {
|
|
9856
9875
|
constructor({ value: e }) {
|
|
9857
9876
|
super(`Value \`${e}\` is an invalid y-parity value. Y-parity must be 0 or 1.`), Object.defineProperty(this, "name", {
|
|
9858
9877
|
enumerable: !0,
|
|
@@ -9861,7 +9880,7 @@ var sp = class extends jf {
|
|
|
9861
9880
|
value: "Signature.InvalidYParityError"
|
|
9862
9881
|
});
|
|
9863
9882
|
}
|
|
9864
|
-
},
|
|
9883
|
+
}, up = class extends Mf {
|
|
9865
9884
|
constructor({ value: e }) {
|
|
9866
9885
|
super(`Value \`${e}\` is an invalid v value. v must be 27, 28 or >=35.`), Object.defineProperty(this, "name", {
|
|
9867
9886
|
enumerable: !0,
|
|
@@ -9873,7 +9892,7 @@ var sp = class extends jf {
|
|
|
9873
9892
|
};
|
|
9874
9893
|
//#endregion
|
|
9875
9894
|
//#region ../../node_modules/viem/_esm/experimental/erc7739/utils/hashMessage.js
|
|
9876
|
-
function
|
|
9895
|
+
function dp(e) {
|
|
9877
9896
|
let { message: t, verifierDomain: { salt: n, ...r } } = e;
|
|
9878
9897
|
return Ro({
|
|
9879
9898
|
domain: r,
|
|
@@ -9887,7 +9906,7 @@ function up(e) {
|
|
|
9887
9906
|
}
|
|
9888
9907
|
//#endregion
|
|
9889
9908
|
//#region ../../node_modules/viem/_esm/experimental/erc7739/utils/hashTypedData.js
|
|
9890
|
-
function
|
|
9909
|
+
function fp(e) {
|
|
9891
9910
|
let { domain: t, message: n, primaryType: r, types: i, verifierDomain: a } = e;
|
|
9892
9911
|
return Ro({
|
|
9893
9912
|
domain: t,
|
|
@@ -9929,13 +9948,13 @@ function dp(e) {
|
|
|
9929
9948
|
}
|
|
9930
9949
|
//#endregion
|
|
9931
9950
|
//#region ../core/dist/account/toJustanAccount.js
|
|
9932
|
-
async function
|
|
9951
|
+
async function pp(e) {
|
|
9933
9952
|
let { client: t, owners: n, ownerIndex: r = 0, nonce: i = 0n, entryPoint: a = {
|
|
9934
|
-
abi:
|
|
9935
|
-
address:
|
|
9953
|
+
abi: ud,
|
|
9954
|
+
address: dd,
|
|
9936
9955
|
version: "0.8"
|
|
9937
|
-
}, factoryAddress: o =
|
|
9938
|
-
if (u && (d = await
|
|
9956
|
+
}, factoryAddress: o = Iu, address: s, eip7702Account: c, eip7702Auth: l } = e, u = !!c || !!l, d;
|
|
9957
|
+
if (u && (d = await mp(t, o), l && !je(l.address, d))) throw new B("EIP-7702 authorization delegate address does not match delegation contract address");
|
|
9939
9958
|
let f = n.map((e) => {
|
|
9940
9959
|
if (typeof e == "string") return z(e);
|
|
9941
9960
|
if (e.type === "webAuthn") return e.publicKey;
|
|
@@ -9956,15 +9975,15 @@ async function fp(e) {
|
|
|
9956
9975
|
let m;
|
|
9957
9976
|
return m = s || (u ? c.address : await q(t, {
|
|
9958
9977
|
address: o,
|
|
9959
|
-
abi:
|
|
9978
|
+
abi: bp,
|
|
9960
9979
|
functionName: "getAddress",
|
|
9961
9980
|
args: [f, i]
|
|
9962
|
-
})),
|
|
9981
|
+
})), _d({
|
|
9963
9982
|
client: t,
|
|
9964
9983
|
entryPoint: a,
|
|
9965
9984
|
async decodeCalls(e) {
|
|
9966
9985
|
let t = Vt({
|
|
9967
|
-
abi:
|
|
9986
|
+
abi: yp,
|
|
9968
9987
|
data: e
|
|
9969
9988
|
});
|
|
9970
9989
|
if (t.functionName === "execute") return [{
|
|
@@ -9981,7 +10000,7 @@ async function fp(e) {
|
|
|
9981
10000
|
},
|
|
9982
10001
|
async encodeCalls(e) {
|
|
9983
10002
|
return e.length === 1 ? U({
|
|
9984
|
-
abi:
|
|
10003
|
+
abi: yp,
|
|
9985
10004
|
functionName: "execute",
|
|
9986
10005
|
args: [
|
|
9987
10006
|
e[0].to,
|
|
@@ -9989,7 +10008,7 @@ async function fp(e) {
|
|
|
9989
10008
|
e[0].data ?? "0x"
|
|
9990
10009
|
]
|
|
9991
10010
|
}) : U({
|
|
9992
|
-
abi:
|
|
10011
|
+
abi: yp,
|
|
9993
10012
|
functionName: "executeBatch",
|
|
9994
10013
|
args: [e.map((e) => ({
|
|
9995
10014
|
target: e.to,
|
|
@@ -10008,7 +10027,7 @@ async function fp(e) {
|
|
|
10008
10027
|
} : {
|
|
10009
10028
|
factory: o,
|
|
10010
10029
|
factoryData: U({
|
|
10011
|
-
abi:
|
|
10030
|
+
abi: bp,
|
|
10012
10031
|
functionName: "createAccount",
|
|
10013
10032
|
args: [f, i]
|
|
10014
10033
|
})
|
|
@@ -10018,57 +10037,57 @@ async function fp(e) {
|
|
|
10018
10037
|
return u ? "0xfffffffffffffffffffffffffffffff0000000000000000000000000000000007aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1c" : "0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000170000000000000000000000000000000000000000000000000000000000000001949fc7c88032b9fcb5f6efc7a7b8c63668eae9871b765e23123bb473ff57aa831a7c0d9276168ebcc29f2875a0239cffdf2a9cd1c2007c5c77c071db9264df1d000000000000000000000000000000000000000000000000000000000000002549960de5880e8c687434170f6476605b8fe4aeb9a28632c7995cf3ba831d9763050000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000847b2274797065223a22776562617574686e2e676574222c226368616c6c656e6765223a2273496a396e6164474850596759334b7156384f7a4a666c726275504b474f716d59576f4d57516869467773222c226f726967696e223a2268747470733a2f2f6b6579732e6a61772e6964222c2263726f73734f726967696e223a66616c73657d00000000000000000000000000000000000000000000000000000000";
|
|
10019
10038
|
},
|
|
10020
10039
|
async signMessage(e) {
|
|
10021
|
-
let { message: n } = e, i =
|
|
10040
|
+
let { message: n } = e, i = dp({
|
|
10022
10041
|
message: n,
|
|
10023
10042
|
verifierDomain: {
|
|
10024
|
-
name:
|
|
10043
|
+
name: Lu,
|
|
10025
10044
|
version: "1",
|
|
10026
10045
|
verifyingContract: await this.getAddress(),
|
|
10027
10046
|
chainId: t.chain.id
|
|
10028
10047
|
}
|
|
10029
10048
|
});
|
|
10030
10049
|
if (p.type === "address") throw Error("owner cannot sign");
|
|
10031
|
-
let a = await
|
|
10050
|
+
let a = await hp({
|
|
10032
10051
|
owner: p,
|
|
10033
10052
|
hash: i
|
|
10034
10053
|
});
|
|
10035
|
-
return u ? a :
|
|
10054
|
+
return u ? a : vp({
|
|
10036
10055
|
ownerIndex: r,
|
|
10037
10056
|
signature: a
|
|
10038
10057
|
});
|
|
10039
10058
|
},
|
|
10040
10059
|
async signTypedData(e) {
|
|
10041
|
-
let { domain: n = {}, types: i, primaryType: a, message: o } = e, s = await this.getAddress(), c =
|
|
10060
|
+
let { domain: n = {}, types: i, primaryType: a, message: o } = e, s = await this.getAddress(), c = fp({
|
|
10042
10061
|
domain: n,
|
|
10043
10062
|
types: i,
|
|
10044
10063
|
primaryType: a,
|
|
10045
10064
|
message: o,
|
|
10046
10065
|
verifierDomain: {
|
|
10047
10066
|
chainId: t.chain.id,
|
|
10048
|
-
name:
|
|
10067
|
+
name: Lu,
|
|
10049
10068
|
version: "1",
|
|
10050
10069
|
verifyingContract: s,
|
|
10051
10070
|
salt: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
10052
10071
|
}
|
|
10053
10072
|
});
|
|
10054
10073
|
if (p.type === "address") throw Error("owner cannot sign");
|
|
10055
|
-
let l = await
|
|
10074
|
+
let l = await hp({
|
|
10056
10075
|
owner: p,
|
|
10057
10076
|
hash: c
|
|
10058
10077
|
});
|
|
10059
|
-
return u ? l :
|
|
10078
|
+
return u ? l : vd({
|
|
10060
10079
|
domain: n,
|
|
10061
10080
|
types: i,
|
|
10062
10081
|
primaryType: a,
|
|
10063
10082
|
message: o,
|
|
10064
|
-
signature:
|
|
10083
|
+
signature: vp({
|
|
10065
10084
|
ownerIndex: r,
|
|
10066
10085
|
signature: l
|
|
10067
10086
|
})
|
|
10068
10087
|
});
|
|
10069
10088
|
},
|
|
10070
10089
|
async signUserOperation(e) {
|
|
10071
|
-
let { chainId: n = t.chain.id, ...i } = e, o = await this.getAddress(), s =
|
|
10090
|
+
let { chainId: n = t.chain.id, ...i } = e, o = await this.getAddress(), s = gd({
|
|
10072
10091
|
chainId: n,
|
|
10073
10092
|
entryPointAddress: a.address,
|
|
10074
10093
|
userOperation: {
|
|
@@ -10077,11 +10096,11 @@ async function fp(e) {
|
|
|
10077
10096
|
}
|
|
10078
10097
|
});
|
|
10079
10098
|
if (p.type === "address") throw Error("owner cannot sign");
|
|
10080
|
-
let c = await
|
|
10099
|
+
let c = await gp({
|
|
10081
10100
|
typedData: s,
|
|
10082
10101
|
owner: p
|
|
10083
10102
|
});
|
|
10084
|
-
return u ? c :
|
|
10103
|
+
return u ? c : vp({
|
|
10085
10104
|
ownerIndex: r,
|
|
10086
10105
|
signature: c
|
|
10087
10106
|
});
|
|
@@ -10112,17 +10131,17 @@ async function fp(e) {
|
|
|
10112
10131
|
}
|
|
10113
10132
|
});
|
|
10114
10133
|
}
|
|
10115
|
-
async function
|
|
10134
|
+
async function mp(e, t) {
|
|
10116
10135
|
return await q(e, {
|
|
10117
10136
|
address: t,
|
|
10118
|
-
abi:
|
|
10137
|
+
abi: bp,
|
|
10119
10138
|
functionName: "getImplementation"
|
|
10120
10139
|
});
|
|
10121
10140
|
}
|
|
10122
|
-
async function
|
|
10141
|
+
async function hp({ hash: e, owner: t }) {
|
|
10123
10142
|
if (t.type === "webAuthn") {
|
|
10124
10143
|
let { signature: n, webauthn: r } = await t.sign({ hash: e });
|
|
10125
|
-
return
|
|
10144
|
+
return _p({
|
|
10126
10145
|
signature: n,
|
|
10127
10146
|
webauthn: {
|
|
10128
10147
|
authenticatorData: r.authenticatorData,
|
|
@@ -10136,10 +10155,10 @@ async function mp({ hash: e, owner: t }) {
|
|
|
10136
10155
|
if (t.sign) return t.sign({ hash: e });
|
|
10137
10156
|
throw new B("`owner` does not support raw sign.");
|
|
10138
10157
|
}
|
|
10139
|
-
async function
|
|
10158
|
+
async function gp({ typedData: e, owner: t }) {
|
|
10140
10159
|
if (t.type === "webAuthn") {
|
|
10141
10160
|
let { signature: n, webauthn: r } = await t.signTypedData(e);
|
|
10142
|
-
return
|
|
10161
|
+
return _p({
|
|
10143
10162
|
signature: n,
|
|
10144
10163
|
webauthn: {
|
|
10145
10164
|
authenticatorData: r.authenticatorData,
|
|
@@ -10156,8 +10175,8 @@ async function hp({ typedData: e, owner: t }) {
|
|
|
10156
10175
|
}
|
|
10157
10176
|
throw new B("`owner` does not support signTypedData.");
|
|
10158
10177
|
}
|
|
10159
|
-
function
|
|
10160
|
-
let { r: n, s: r } =
|
|
10178
|
+
function _p({ webauthn: e, signature: t }) {
|
|
10179
|
+
let { r: n, s: r } = op(t), i = mn(H(n), { size: 32 }), a = mn(H(r), { size: 32 });
|
|
10161
10180
|
return $e([{
|
|
10162
10181
|
components: [
|
|
10163
10182
|
{
|
|
@@ -10195,7 +10214,7 @@ function gp({ webauthn: e, signature: t }) {
|
|
|
10195
10214
|
s: a
|
|
10196
10215
|
}]);
|
|
10197
10216
|
}
|
|
10198
|
-
function
|
|
10217
|
+
function vp(e) {
|
|
10199
10218
|
let { ownerIndex: t = 0 } = e;
|
|
10200
10219
|
return $e([{
|
|
10201
10220
|
components: [{
|
|
@@ -10223,7 +10242,7 @@ function _p(e) {
|
|
|
10223
10242
|
})()
|
|
10224
10243
|
}]);
|
|
10225
10244
|
}
|
|
10226
|
-
var
|
|
10245
|
+
var yp = [
|
|
10227
10246
|
{
|
|
10228
10247
|
type: "constructor",
|
|
10229
10248
|
inputs: [{
|
|
@@ -10886,7 +10905,7 @@ var vp = [
|
|
|
10886
10905
|
}
|
|
10887
10906
|
]
|
|
10888
10907
|
}
|
|
10889
|
-
],
|
|
10908
|
+
], bp = [
|
|
10890
10909
|
{
|
|
10891
10910
|
type: "constructor",
|
|
10892
10911
|
inputs: [{
|
|
@@ -10969,13 +10988,13 @@ var vp = [
|
|
|
10969
10988
|
];
|
|
10970
10989
|
//#endregion
|
|
10971
10990
|
//#region ../core/dist/account/delegation.js
|
|
10972
|
-
async function
|
|
10991
|
+
async function xp(e, t, n) {
|
|
10973
10992
|
let r = await qa(e, { address: t });
|
|
10974
|
-
return !r || !r.startsWith("0xef0100") ? !1 : je(`0x${r.slice(
|
|
10993
|
+
return !r || !r.startsWith("0xef0100") ? !1 : je(`0x${r.slice(zu.length)}`, n);
|
|
10975
10994
|
}
|
|
10976
10995
|
//#endregion
|
|
10977
10996
|
//#region ../core/dist/account/paymaster.js
|
|
10978
|
-
async function
|
|
10997
|
+
async function Sp(e, t, n = dd) {
|
|
10979
10998
|
let r = {
|
|
10980
10999
|
sender: t.sender,
|
|
10981
11000
|
nonce: `0x${(t.nonce || 0n).toString(16)}`,
|
|
@@ -11000,7 +11019,7 @@ async function xp(e, t, n = ud) {
|
|
|
11000
11019
|
paymasterPostOpGasLimit: i.paymasterPostOpGasLimit ? BigInt(i.paymasterPostOpGasLimit) : void 0
|
|
11001
11020
|
};
|
|
11002
11021
|
}
|
|
11003
|
-
function
|
|
11022
|
+
function Cp(e, t, n, r) {
|
|
11004
11023
|
return {
|
|
11005
11024
|
async getPaymasterStubData(i) {
|
|
11006
11025
|
let a = i.maxFeePerGas, o = i.maxPriorityFeePerGas;
|
|
@@ -11017,7 +11036,7 @@ function Sp(e, t, n, r) {
|
|
|
11017
11036
|
...r && { context: r }
|
|
11018
11037
|
}), c = !s.paymasterVerificationGasLimit || BigInt(s.paymasterVerificationGasLimit) <= 1n, l = !s.paymasterPostOpGasLimit || BigInt(s.paymasterPostOpGasLimit) <= 1n;
|
|
11019
11038
|
if (c || l) try {
|
|
11020
|
-
let e = await
|
|
11039
|
+
let e = await Sp(t, {
|
|
11021
11040
|
sender: i.sender,
|
|
11022
11041
|
nonce: i.nonce,
|
|
11023
11042
|
callData: i.callData,
|
|
@@ -11062,75 +11081,75 @@ function Sp(e, t, n, r) {
|
|
|
11062
11081
|
}
|
|
11063
11082
|
//#endregion
|
|
11064
11083
|
//#region ../../node_modules/axios/lib/helpers/bind.js
|
|
11065
|
-
function
|
|
11084
|
+
function wp(e, t) {
|
|
11066
11085
|
return function() {
|
|
11067
11086
|
return e.apply(t, arguments);
|
|
11068
11087
|
};
|
|
11069
11088
|
}
|
|
11070
11089
|
//#endregion
|
|
11071
11090
|
//#region ../../node_modules/axios/lib/utils.js
|
|
11072
|
-
var { toString:
|
|
11073
|
-
let n =
|
|
11091
|
+
var { toString: Tp } = Object.prototype, { getPrototypeOf: Ep } = Object, { iterator: Dp, toStringTag: Op } = Symbol, kp = ((e) => (t) => {
|
|
11092
|
+
let n = Tp.call(t);
|
|
11074
11093
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
11075
|
-
})(Object.create(null)),
|
|
11076
|
-
function
|
|
11077
|
-
return e !== null && !
|
|
11094
|
+
})(Object.create(null)), Ap = (e) => (e = e.toLowerCase(), (t) => kp(t) === e), jp = (e) => (t) => typeof t === e, { isArray: Mp } = Array, Np = jp("undefined");
|
|
11095
|
+
function Pp(e) {
|
|
11096
|
+
return e !== null && !Np(e) && e.constructor !== null && !Np(e.constructor) && Rp(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
11078
11097
|
}
|
|
11079
|
-
var
|
|
11080
|
-
function
|
|
11098
|
+
var Fp = Ap("ArrayBuffer");
|
|
11099
|
+
function Ip(e) {
|
|
11081
11100
|
let t;
|
|
11082
|
-
return t = typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(e) : e && e.buffer &&
|
|
11083
|
-
}
|
|
11084
|
-
var
|
|
11085
|
-
if (
|
|
11086
|
-
let t =
|
|
11087
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(
|
|
11088
|
-
},
|
|
11089
|
-
if (!
|
|
11101
|
+
return t = typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(e) : e && e.buffer && Fp(e.buffer), t;
|
|
11102
|
+
}
|
|
11103
|
+
var Lp = jp("string"), Rp = jp("function"), zp = jp("number"), Bp = (e) => typeof e == "object" && !!e, Vp = (e) => e === !0 || e === !1, Hp = (e) => {
|
|
11104
|
+
if (kp(e) !== "object") return !1;
|
|
11105
|
+
let t = Ep(e);
|
|
11106
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Op in e) && !(Dp in e);
|
|
11107
|
+
}, Up = (e) => {
|
|
11108
|
+
if (!Bp(e) || Pp(e)) return !1;
|
|
11090
11109
|
try {
|
|
11091
11110
|
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
11092
11111
|
} catch {
|
|
11093
11112
|
return !1;
|
|
11094
11113
|
}
|
|
11095
|
-
},
|
|
11114
|
+
}, Wp = Ap("Date"), Gp = Ap("File"), Kp = Ap("Blob"), qp = Ap("FileList"), Jp = (e) => Bp(e) && Rp(e.pipe), Yp = (e) => {
|
|
11096
11115
|
let t;
|
|
11097
|
-
return e && (typeof FormData == "function" && e instanceof FormData ||
|
|
11098
|
-
},
|
|
11116
|
+
return e && (typeof FormData == "function" && e instanceof FormData || Rp(e.append) && ((t = kp(e)) === "formdata" || t === "object" && Rp(e.toString) && e.toString() === "[object FormData]"));
|
|
11117
|
+
}, Xp = Ap("URLSearchParams"), [Zp, Qp, $p, em] = [
|
|
11099
11118
|
"ReadableStream",
|
|
11100
11119
|
"Request",
|
|
11101
11120
|
"Response",
|
|
11102
11121
|
"Headers"
|
|
11103
|
-
].map(
|
|
11104
|
-
function
|
|
11122
|
+
].map(Ap), tm = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
11123
|
+
function nm(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
11105
11124
|
if (e == null) return;
|
|
11106
11125
|
let r, i;
|
|
11107
|
-
if (typeof e != "object" && (e = [e]),
|
|
11126
|
+
if (typeof e != "object" && (e = [e]), Mp(e)) for (r = 0, i = e.length; r < i; r++) t.call(null, e[r], r, e);
|
|
11108
11127
|
else {
|
|
11109
|
-
if (
|
|
11128
|
+
if (Pp(e)) return;
|
|
11110
11129
|
let i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), a = i.length, o;
|
|
11111
11130
|
for (r = 0; r < a; r++) o = i[r], t.call(null, e[o], o, e);
|
|
11112
11131
|
}
|
|
11113
11132
|
}
|
|
11114
|
-
function
|
|
11115
|
-
if (
|
|
11133
|
+
function rm(e, t) {
|
|
11134
|
+
if (Pp(e)) return null;
|
|
11116
11135
|
t = t.toLowerCase();
|
|
11117
11136
|
let n = Object.keys(e), r = n.length, i;
|
|
11118
11137
|
for (; r-- > 0;) if (i = n[r], t === i.toLowerCase()) return i;
|
|
11119
11138
|
return null;
|
|
11120
11139
|
}
|
|
11121
|
-
var
|
|
11122
|
-
function
|
|
11123
|
-
let { caseless: e, skipUndefined: t } =
|
|
11140
|
+
var im = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, am = (e) => !Np(e) && e !== im;
|
|
11141
|
+
function om() {
|
|
11142
|
+
let { caseless: e, skipUndefined: t } = am(this) && this || {}, n = {}, r = (r, i) => {
|
|
11124
11143
|
if (i === "__proto__" || i === "constructor" || i === "prototype") return;
|
|
11125
|
-
let a = e &&
|
|
11126
|
-
|
|
11144
|
+
let a = e && rm(n, i) || i;
|
|
11145
|
+
Hp(n[a]) && Hp(r) ? n[a] = om(n[a], r) : Hp(r) ? n[a] = om({}, r) : Mp(r) ? n[a] = r.slice() : (!t || !Np(r)) && (n[a] = r);
|
|
11127
11146
|
};
|
|
11128
|
-
for (let e = 0, t = arguments.length; e < t; e++) arguments[e] &&
|
|
11147
|
+
for (let e = 0, t = arguments.length; e < t; e++) arguments[e] && nm(arguments[e], r);
|
|
11129
11148
|
return n;
|
|
11130
11149
|
}
|
|
11131
|
-
var
|
|
11132
|
-
n &&
|
|
11133
|
-
value:
|
|
11150
|
+
var sm = (e, t, n, { allOwnKeys: r } = {}) => (nm(t, (t, r) => {
|
|
11151
|
+
n && Rp(t) ? Object.defineProperty(e, r, {
|
|
11152
|
+
value: wp(t, n),
|
|
11134
11153
|
writable: !0,
|
|
11135
11154
|
enumerable: !0,
|
|
11136
11155
|
configurable: !0
|
|
@@ -11140,60 +11159,60 @@ var om = (e, t, n, { allOwnKeys: r } = {}) => (tm(t, (t, r) => {
|
|
|
11140
11159
|
enumerable: !0,
|
|
11141
11160
|
configurable: !0
|
|
11142
11161
|
});
|
|
11143
|
-
}, { allOwnKeys: r }), e),
|
|
11162
|
+
}, { allOwnKeys: r }), e), cm = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), lm = (e, t, n, r) => {
|
|
11144
11163
|
e.prototype = Object.create(t.prototype, r), Object.defineProperty(e.prototype, "constructor", {
|
|
11145
11164
|
value: e,
|
|
11146
11165
|
writable: !0,
|
|
11147
11166
|
enumerable: !1,
|
|
11148
11167
|
configurable: !0
|
|
11149
11168
|
}), Object.defineProperty(e, "super", { value: t.prototype }), n && Object.assign(e.prototype, n);
|
|
11150
|
-
},
|
|
11169
|
+
}, um = (e, t, n, r) => {
|
|
11151
11170
|
let i, a, o, s = {};
|
|
11152
11171
|
if (t ||= {}, e == null) return t;
|
|
11153
11172
|
do {
|
|
11154
11173
|
for (i = Object.getOwnPropertyNames(e), a = i.length; a-- > 0;) o = i[a], (!r || r(o, e, t)) && !s[o] && (t[o] = e[o], s[o] = !0);
|
|
11155
|
-
e = n !== !1 &&
|
|
11174
|
+
e = n !== !1 && Ep(e);
|
|
11156
11175
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
11157
11176
|
return t;
|
|
11158
|
-
},
|
|
11177
|
+
}, dm = (e, t, n) => {
|
|
11159
11178
|
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
11160
11179
|
let r = e.indexOf(t, n);
|
|
11161
11180
|
return r !== -1 && r === n;
|
|
11162
|
-
},
|
|
11181
|
+
}, fm = (e) => {
|
|
11163
11182
|
if (!e) return null;
|
|
11164
|
-
if (
|
|
11183
|
+
if (Mp(e)) return e;
|
|
11165
11184
|
let t = e.length;
|
|
11166
|
-
if (!
|
|
11185
|
+
if (!zp(t)) return null;
|
|
11167
11186
|
let n = Array(t);
|
|
11168
11187
|
for (; t-- > 0;) n[t] = e[t];
|
|
11169
11188
|
return n;
|
|
11170
|
-
},
|
|
11171
|
-
let n = (e && e[
|
|
11189
|
+
}, pm = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Ep(Uint8Array)), mm = (e, t) => {
|
|
11190
|
+
let n = (e && e[Dp]).call(e), r;
|
|
11172
11191
|
for (; (r = n.next()) && !r.done;) {
|
|
11173
11192
|
let n = r.value;
|
|
11174
11193
|
t.call(e, n[0], n[1]);
|
|
11175
11194
|
}
|
|
11176
|
-
},
|
|
11195
|
+
}, hm = (e, t) => {
|
|
11177
11196
|
let n, r = [];
|
|
11178
11197
|
for (; (n = e.exec(t)) !== null;) r.push(n);
|
|
11179
11198
|
return r;
|
|
11180
|
-
},
|
|
11199
|
+
}, gm = Ap("HTMLFormElement"), _m = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(e, t, n) {
|
|
11181
11200
|
return t.toUpperCase() + n;
|
|
11182
|
-
}),
|
|
11201
|
+
}), vm = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), ym = Ap("RegExp"), bm = (e, t) => {
|
|
11183
11202
|
let n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
11184
|
-
|
|
11203
|
+
nm(n, (n, i) => {
|
|
11185
11204
|
let a;
|
|
11186
11205
|
(a = t(n, i, e)) !== !1 && (r[i] = a || n);
|
|
11187
11206
|
}), Object.defineProperties(e, r);
|
|
11188
|
-
},
|
|
11189
|
-
|
|
11190
|
-
if (
|
|
11207
|
+
}, xm = (e) => {
|
|
11208
|
+
bm(e, (t, n) => {
|
|
11209
|
+
if (Rp(e) && [
|
|
11191
11210
|
"arguments",
|
|
11192
11211
|
"caller",
|
|
11193
11212
|
"callee"
|
|
11194
11213
|
].indexOf(n) !== -1) return !1;
|
|
11195
11214
|
let r = e[n];
|
|
11196
|
-
if (
|
|
11215
|
+
if (Rp(r)) {
|
|
11197
11216
|
if (t.enumerable = !1, "writable" in t) {
|
|
11198
11217
|
t.writable = !1;
|
|
11199
11218
|
return;
|
|
@@ -11203,96 +11222,96 @@ var om = (e, t, n, { allOwnKeys: r } = {}) => (tm(t, (t, r) => {
|
|
|
11203
11222
|
};
|
|
11204
11223
|
}
|
|
11205
11224
|
});
|
|
11206
|
-
},
|
|
11225
|
+
}, Sm = (e, t) => {
|
|
11207
11226
|
let n = {}, r = (e) => {
|
|
11208
11227
|
e.forEach((e) => {
|
|
11209
11228
|
n[e] = !0;
|
|
11210
11229
|
});
|
|
11211
11230
|
};
|
|
11212
|
-
return
|
|
11213
|
-
},
|
|
11214
|
-
function
|
|
11215
|
-
return !!(e &&
|
|
11231
|
+
return Mp(e) ? r(e) : r(String(e).split(t)), n;
|
|
11232
|
+
}, Cm = () => {}, wm = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
11233
|
+
function Tm(e) {
|
|
11234
|
+
return !!(e && Rp(e.append) && e[Op] === "FormData" && e[Dp]);
|
|
11216
11235
|
}
|
|
11217
|
-
var
|
|
11236
|
+
var Em = (e) => {
|
|
11218
11237
|
let t = Array(10), n = (e, r) => {
|
|
11219
|
-
if (
|
|
11238
|
+
if (Bp(e)) {
|
|
11220
11239
|
if (t.indexOf(e) >= 0) return;
|
|
11221
|
-
if (
|
|
11240
|
+
if (Pp(e)) return e;
|
|
11222
11241
|
if (!("toJSON" in e)) {
|
|
11223
11242
|
t[r] = e;
|
|
11224
|
-
let i =
|
|
11225
|
-
return
|
|
11243
|
+
let i = Mp(e) ? [] : {};
|
|
11244
|
+
return nm(e, (e, t) => {
|
|
11226
11245
|
let a = n(e, r + 1);
|
|
11227
|
-
!
|
|
11246
|
+
!Np(a) && (i[t] = a);
|
|
11228
11247
|
}), t[r] = void 0, i;
|
|
11229
11248
|
}
|
|
11230
11249
|
}
|
|
11231
11250
|
return e;
|
|
11232
11251
|
};
|
|
11233
11252
|
return n(e, 0);
|
|
11234
|
-
},
|
|
11235
|
-
n ===
|
|
11253
|
+
}, Dm = Ap("AsyncFunction"), Om = (e) => e && (Bp(e) || Rp(e)) && Rp(e.then) && Rp(e.catch), km = ((e, t) => e ? setImmediate : t ? ((e, t) => (im.addEventListener("message", ({ source: n, data: r }) => {
|
|
11254
|
+
n === im && r === e && t.length && t.shift()();
|
|
11236
11255
|
}, !1), (n) => {
|
|
11237
|
-
t.push(n),
|
|
11238
|
-
}))(`axios@${Math.random()}`, []) : (e) => setTimeout(e))(typeof setImmediate == "function",
|
|
11239
|
-
isArray:
|
|
11240
|
-
isArrayBuffer:
|
|
11241
|
-
isBuffer:
|
|
11242
|
-
isFormData:
|
|
11243
|
-
isArrayBufferView:
|
|
11244
|
-
isString:
|
|
11245
|
-
isNumber:
|
|
11246
|
-
isBoolean:
|
|
11247
|
-
isObject:
|
|
11248
|
-
isPlainObject:
|
|
11249
|
-
isEmptyObject:
|
|
11250
|
-
isReadableStream:
|
|
11251
|
-
isRequest:
|
|
11252
|
-
isResponse:
|
|
11253
|
-
isHeaders:
|
|
11254
|
-
isUndefined:
|
|
11255
|
-
isDate:
|
|
11256
|
-
isFile:
|
|
11257
|
-
isBlob:
|
|
11258
|
-
isRegExp:
|
|
11259
|
-
isFunction:
|
|
11260
|
-
isStream:
|
|
11261
|
-
isURLSearchParams:
|
|
11262
|
-
isTypedArray:
|
|
11263
|
-
isFileList:
|
|
11264
|
-
forEach:
|
|
11265
|
-
merge:
|
|
11266
|
-
extend:
|
|
11267
|
-
trim:
|
|
11268
|
-
stripBOM:
|
|
11269
|
-
inherits:
|
|
11270
|
-
toFlatObject:
|
|
11271
|
-
kindOf:
|
|
11272
|
-
kindOfTest:
|
|
11273
|
-
endsWith:
|
|
11274
|
-
toArray:
|
|
11275
|
-
forEachEntry:
|
|
11276
|
-
matchAll:
|
|
11277
|
-
isHTMLForm:
|
|
11278
|
-
hasOwnProperty:
|
|
11279
|
-
hasOwnProp:
|
|
11280
|
-
reduceDescriptors:
|
|
11281
|
-
freezeMethods:
|
|
11282
|
-
toObjectSet:
|
|
11283
|
-
toCamelCase:
|
|
11284
|
-
noop:
|
|
11285
|
-
toFiniteNumber:
|
|
11286
|
-
findKey:
|
|
11287
|
-
global:
|
|
11288
|
-
isContextDefined:
|
|
11289
|
-
isSpecCompliantForm:
|
|
11290
|
-
toJSONObject:
|
|
11291
|
-
isAsyncFn:
|
|
11292
|
-
isThenable:
|
|
11293
|
-
setImmediate:
|
|
11294
|
-
asap: typeof queueMicrotask < "u" ? queueMicrotask.bind(
|
|
11295
|
-
isIterable: (e) => e != null &&
|
|
11256
|
+
t.push(n), im.postMessage(e, "*");
|
|
11257
|
+
}))(`axios@${Math.random()}`, []) : (e) => setTimeout(e))(typeof setImmediate == "function", Rp(im.postMessage)), X = {
|
|
11258
|
+
isArray: Mp,
|
|
11259
|
+
isArrayBuffer: Fp,
|
|
11260
|
+
isBuffer: Pp,
|
|
11261
|
+
isFormData: Yp,
|
|
11262
|
+
isArrayBufferView: Ip,
|
|
11263
|
+
isString: Lp,
|
|
11264
|
+
isNumber: zp,
|
|
11265
|
+
isBoolean: Vp,
|
|
11266
|
+
isObject: Bp,
|
|
11267
|
+
isPlainObject: Hp,
|
|
11268
|
+
isEmptyObject: Up,
|
|
11269
|
+
isReadableStream: Zp,
|
|
11270
|
+
isRequest: Qp,
|
|
11271
|
+
isResponse: $p,
|
|
11272
|
+
isHeaders: em,
|
|
11273
|
+
isUndefined: Np,
|
|
11274
|
+
isDate: Wp,
|
|
11275
|
+
isFile: Gp,
|
|
11276
|
+
isBlob: Kp,
|
|
11277
|
+
isRegExp: ym,
|
|
11278
|
+
isFunction: Rp,
|
|
11279
|
+
isStream: Jp,
|
|
11280
|
+
isURLSearchParams: Xp,
|
|
11281
|
+
isTypedArray: pm,
|
|
11282
|
+
isFileList: qp,
|
|
11283
|
+
forEach: nm,
|
|
11284
|
+
merge: om,
|
|
11285
|
+
extend: sm,
|
|
11286
|
+
trim: tm,
|
|
11287
|
+
stripBOM: cm,
|
|
11288
|
+
inherits: lm,
|
|
11289
|
+
toFlatObject: um,
|
|
11290
|
+
kindOf: kp,
|
|
11291
|
+
kindOfTest: Ap,
|
|
11292
|
+
endsWith: dm,
|
|
11293
|
+
toArray: fm,
|
|
11294
|
+
forEachEntry: mm,
|
|
11295
|
+
matchAll: hm,
|
|
11296
|
+
isHTMLForm: gm,
|
|
11297
|
+
hasOwnProperty: vm,
|
|
11298
|
+
hasOwnProp: vm,
|
|
11299
|
+
reduceDescriptors: bm,
|
|
11300
|
+
freezeMethods: xm,
|
|
11301
|
+
toObjectSet: Sm,
|
|
11302
|
+
toCamelCase: _m,
|
|
11303
|
+
noop: Cm,
|
|
11304
|
+
toFiniteNumber: wm,
|
|
11305
|
+
findKey: rm,
|
|
11306
|
+
global: im,
|
|
11307
|
+
isContextDefined: am,
|
|
11308
|
+
isSpecCompliantForm: Tm,
|
|
11309
|
+
toJSONObject: Em,
|
|
11310
|
+
isAsyncFn: Dm,
|
|
11311
|
+
isThenable: Om,
|
|
11312
|
+
setImmediate: km,
|
|
11313
|
+
asap: typeof queueMicrotask < "u" ? queueMicrotask.bind(im) : typeof process < "u" && process.nextTick || km,
|
|
11314
|
+
isIterable: (e) => e != null && Rp(e[Dp])
|
|
11296
11315
|
}, Z = class e extends Error {
|
|
11297
11316
|
static from(t, n, r, i, a, o) {
|
|
11298
11317
|
let s = new e(t.message, n || t.code, r, i, a);
|
|
@@ -11320,24 +11339,24 @@ var Tm = (e) => {
|
|
|
11320
11339
|
Z.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE", Z.ERR_BAD_OPTION = "ERR_BAD_OPTION", Z.ECONNABORTED = "ECONNABORTED", Z.ETIMEDOUT = "ETIMEDOUT", Z.ERR_NETWORK = "ERR_NETWORK", Z.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS", Z.ERR_DEPRECATED = "ERR_DEPRECATED", Z.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE", Z.ERR_BAD_REQUEST = "ERR_BAD_REQUEST", Z.ERR_CANCELED = "ERR_CANCELED", Z.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT", Z.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
11321
11340
|
//#endregion
|
|
11322
11341
|
//#region ../../node_modules/axios/lib/helpers/toFormData.js
|
|
11323
|
-
function
|
|
11342
|
+
function Am(e) {
|
|
11324
11343
|
return X.isPlainObject(e) || X.isArray(e);
|
|
11325
11344
|
}
|
|
11326
|
-
function
|
|
11345
|
+
function jm(e) {
|
|
11327
11346
|
return X.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
11328
11347
|
}
|
|
11329
|
-
function
|
|
11348
|
+
function Mm(e, t, n) {
|
|
11330
11349
|
return e ? e.concat(t).map(function(e, t) {
|
|
11331
|
-
return e =
|
|
11350
|
+
return e = jm(e), !n && t ? "[" + e + "]" : e;
|
|
11332
11351
|
}).join(n ? "." : "") : t;
|
|
11333
11352
|
}
|
|
11334
|
-
function
|
|
11335
|
-
return X.isArray(e) && !e.some(
|
|
11353
|
+
function Nm(e) {
|
|
11354
|
+
return X.isArray(e) && !e.some(Am);
|
|
11336
11355
|
}
|
|
11337
|
-
var
|
|
11356
|
+
var Pm = X.toFlatObject(X, {}, null, function(e) {
|
|
11338
11357
|
return /^is[A-Z]/.test(e);
|
|
11339
11358
|
});
|
|
11340
|
-
function
|
|
11359
|
+
function Fm(e, t, n) {
|
|
11341
11360
|
if (!X.isObject(e)) throw TypeError("target must be an object");
|
|
11342
11361
|
t ||= new FormData(), n = X.toFlatObject(n, {
|
|
11343
11362
|
metaTokens: !0,
|
|
@@ -11359,16 +11378,16 @@ function Pm(e, t, n) {
|
|
|
11359
11378
|
let s = e;
|
|
11360
11379
|
if (e && !i && typeof e == "object") {
|
|
11361
11380
|
if (X.endsWith(n, "{}")) n = r ? n : n.slice(0, -2), e = JSON.stringify(e);
|
|
11362
|
-
else if (X.isArray(e) &&
|
|
11363
|
-
!(X.isUndefined(e) || e === null) && t.append(o === !0 ?
|
|
11381
|
+
else if (X.isArray(e) && Nm(e) || (X.isFileList(e) || X.endsWith(n, "[]")) && (s = X.toArray(e))) return n = jm(n), s.forEach(function(e, r) {
|
|
11382
|
+
!(X.isUndefined(e) || e === null) && t.append(o === !0 ? Mm([n], r, a) : o === null ? n : n + "[]", c(e));
|
|
11364
11383
|
}), !1;
|
|
11365
11384
|
}
|
|
11366
|
-
return
|
|
11385
|
+
return Am(e) ? !0 : (t.append(Mm(i, n, a), c(e)), !1);
|
|
11367
11386
|
}
|
|
11368
|
-
let u = [], d = Object.assign(
|
|
11387
|
+
let u = [], d = Object.assign(Pm, {
|
|
11369
11388
|
defaultVisitor: l,
|
|
11370
11389
|
convertValue: c,
|
|
11371
|
-
isVisitable:
|
|
11390
|
+
isVisitable: Am
|
|
11372
11391
|
});
|
|
11373
11392
|
function f(e, n) {
|
|
11374
11393
|
if (!X.isUndefined(e)) {
|
|
@@ -11383,7 +11402,7 @@ function Pm(e, t, n) {
|
|
|
11383
11402
|
}
|
|
11384
11403
|
//#endregion
|
|
11385
11404
|
//#region ../../node_modules/axios/lib/helpers/AxiosURLSearchParams.js
|
|
11386
|
-
function
|
|
11405
|
+
function Im(e) {
|
|
11387
11406
|
let t = {
|
|
11388
11407
|
"!": "%21",
|
|
11389
11408
|
"'": "%27",
|
|
@@ -11397,29 +11416,29 @@ function Fm(e) {
|
|
|
11397
11416
|
return t[e];
|
|
11398
11417
|
});
|
|
11399
11418
|
}
|
|
11400
|
-
function
|
|
11401
|
-
this._pairs = [], e &&
|
|
11419
|
+
function Lm(e, t) {
|
|
11420
|
+
this._pairs = [], e && Fm(e, this, t);
|
|
11402
11421
|
}
|
|
11403
|
-
var
|
|
11404
|
-
|
|
11422
|
+
var Rm = Lm.prototype;
|
|
11423
|
+
Rm.append = function(e, t) {
|
|
11405
11424
|
this._pairs.push([e, t]);
|
|
11406
|
-
},
|
|
11425
|
+
}, Rm.toString = function(e) {
|
|
11407
11426
|
let t = e ? function(t) {
|
|
11408
|
-
return e.call(this, t,
|
|
11409
|
-
} :
|
|
11427
|
+
return e.call(this, t, Im);
|
|
11428
|
+
} : Im;
|
|
11410
11429
|
return this._pairs.map(function(e) {
|
|
11411
11430
|
return t(e[0]) + "=" + t(e[1]);
|
|
11412
11431
|
}, "").join("&");
|
|
11413
11432
|
};
|
|
11414
11433
|
//#endregion
|
|
11415
11434
|
//#region ../../node_modules/axios/lib/helpers/buildURL.js
|
|
11416
|
-
function
|
|
11435
|
+
function zm(e) {
|
|
11417
11436
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
11418
11437
|
}
|
|
11419
|
-
function
|
|
11438
|
+
function Bm(e, t, n) {
|
|
11420
11439
|
if (!t) return e;
|
|
11421
|
-
let r = n && n.encode ||
|
|
11422
|
-
if (o = a ? a(t, i) : X.isURLSearchParams(t) ? t.toString() : new
|
|
11440
|
+
let r = n && n.encode || zm, i = X.isFunction(n) ? { serialize: n } : n, a = i && i.serialize, o;
|
|
11441
|
+
if (o = a ? a(t, i) : X.isURLSearchParams(t) ? t.toString() : new Lm(t, i).toString(r), o) {
|
|
11423
11442
|
let t = e.indexOf("#");
|
|
11424
11443
|
t !== -1 && (e = e.slice(0, t)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
|
|
11425
11444
|
}
|
|
@@ -11427,7 +11446,7 @@ function zm(e, t, n) {
|
|
|
11427
11446
|
}
|
|
11428
11447
|
//#endregion
|
|
11429
11448
|
//#region ../../node_modules/axios/lib/core/InterceptorManager.js
|
|
11430
|
-
var
|
|
11449
|
+
var Vm = class {
|
|
11431
11450
|
constructor() {
|
|
11432
11451
|
this.handlers = [];
|
|
11433
11452
|
}
|
|
@@ -11450,15 +11469,15 @@ var Bm = class {
|
|
|
11450
11469
|
t !== null && e(t);
|
|
11451
11470
|
});
|
|
11452
11471
|
}
|
|
11453
|
-
},
|
|
11472
|
+
}, Hm = {
|
|
11454
11473
|
silentJSONParsing: !0,
|
|
11455
11474
|
forcedJSONParsing: !0,
|
|
11456
11475
|
clarifyTimeoutError: !1,
|
|
11457
11476
|
legacyInterceptorReqResOrdering: !0
|
|
11458
|
-
},
|
|
11477
|
+
}, Um = {
|
|
11459
11478
|
isBrowser: !0,
|
|
11460
11479
|
classes: {
|
|
11461
|
-
URLSearchParams: typeof URLSearchParams < "u" ? URLSearchParams :
|
|
11480
|
+
URLSearchParams: typeof URLSearchParams < "u" ? URLSearchParams : Lm,
|
|
11462
11481
|
FormData: typeof FormData < "u" ? FormData : null,
|
|
11463
11482
|
Blob: typeof Blob < "u" ? Blob : null
|
|
11464
11483
|
},
|
|
@@ -11470,24 +11489,24 @@ var Bm = class {
|
|
|
11470
11489
|
"url",
|
|
11471
11490
|
"data"
|
|
11472
11491
|
]
|
|
11473
|
-
},
|
|
11474
|
-
hasBrowserEnv: () =>
|
|
11475
|
-
hasStandardBrowserEnv: () =>
|
|
11476
|
-
hasStandardBrowserWebWorkerEnv: () =>
|
|
11477
|
-
navigator: () =>
|
|
11478
|
-
origin: () =>
|
|
11479
|
-
}),
|
|
11492
|
+
}, Wm = /* @__PURE__ */ Tn({
|
|
11493
|
+
hasBrowserEnv: () => Gm,
|
|
11494
|
+
hasStandardBrowserEnv: () => qm,
|
|
11495
|
+
hasStandardBrowserWebWorkerEnv: () => Jm,
|
|
11496
|
+
navigator: () => Km,
|
|
11497
|
+
origin: () => Ym
|
|
11498
|
+
}), Gm = typeof window < "u" && typeof document < "u", Km = typeof navigator == "object" && navigator || void 0, qm = Gm && (!Km || [
|
|
11480
11499
|
"ReactNative",
|
|
11481
11500
|
"NativeScript",
|
|
11482
11501
|
"NS"
|
|
11483
|
-
].indexOf(
|
|
11484
|
-
...
|
|
11485
|
-
...
|
|
11502
|
+
].indexOf(Km.product) < 0), Jm = typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Ym = Gm && window.location.href || "http://localhost", Q = {
|
|
11503
|
+
...Wm,
|
|
11504
|
+
...Um
|
|
11486
11505
|
};
|
|
11487
11506
|
//#endregion
|
|
11488
11507
|
//#region ../../node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
11489
|
-
function
|
|
11490
|
-
return
|
|
11508
|
+
function Xm(e, t) {
|
|
11509
|
+
return Fm(e, new Q.classes.URLSearchParams(), {
|
|
11491
11510
|
visitor: function(e, t, n, r) {
|
|
11492
11511
|
return Q.isNode && X.isBuffer(e) ? (this.append(t, e.toString("base64")), !1) : r.defaultVisitor.apply(this, arguments);
|
|
11493
11512
|
},
|
|
@@ -11496,32 +11515,32 @@ function Ym(e, t) {
|
|
|
11496
11515
|
}
|
|
11497
11516
|
//#endregion
|
|
11498
11517
|
//#region ../../node_modules/axios/lib/helpers/formDataToJSON.js
|
|
11499
|
-
function
|
|
11518
|
+
function Zm(e) {
|
|
11500
11519
|
return X.matchAll(/\w+|\[(\w*)]/g, e).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
|
11501
11520
|
}
|
|
11502
|
-
function
|
|
11521
|
+
function Qm(e) {
|
|
11503
11522
|
let t = {}, n = Object.keys(e), r, i = n.length, a;
|
|
11504
11523
|
for (r = 0; r < i; r++) a = n[r], t[a] = e[a];
|
|
11505
11524
|
return t;
|
|
11506
11525
|
}
|
|
11507
|
-
function
|
|
11526
|
+
function $m(e) {
|
|
11508
11527
|
function t(e, n, r, i) {
|
|
11509
11528
|
let a = e[i++];
|
|
11510
11529
|
if (a === "__proto__") return !0;
|
|
11511
11530
|
let o = Number.isFinite(+a), s = i >= e.length;
|
|
11512
|
-
return a = !a && X.isArray(r) ? r.length : a, s ? (X.hasOwnProp(r, a) ? r[a] = [r[a], n] : r[a] = n, !o) : ((!r[a] || !X.isObject(r[a])) && (r[a] = []), t(e, n, r[a], i) && X.isArray(r[a]) && (r[a] =
|
|
11531
|
+
return a = !a && X.isArray(r) ? r.length : a, s ? (X.hasOwnProp(r, a) ? r[a] = [r[a], n] : r[a] = n, !o) : ((!r[a] || !X.isObject(r[a])) && (r[a] = []), t(e, n, r[a], i) && X.isArray(r[a]) && (r[a] = Qm(r[a])), !o);
|
|
11513
11532
|
}
|
|
11514
11533
|
if (X.isFormData(e) && X.isFunction(e.entries)) {
|
|
11515
11534
|
let n = {};
|
|
11516
11535
|
return X.forEachEntry(e, (e, r) => {
|
|
11517
|
-
t(
|
|
11536
|
+
t(Zm(e), r, n, 0);
|
|
11518
11537
|
}), n;
|
|
11519
11538
|
}
|
|
11520
11539
|
return null;
|
|
11521
11540
|
}
|
|
11522
11541
|
//#endregion
|
|
11523
11542
|
//#region ../../node_modules/axios/lib/defaults/index.js
|
|
11524
|
-
function
|
|
11543
|
+
function eh(e, t, n) {
|
|
11525
11544
|
if (X.isString(e)) try {
|
|
11526
11545
|
return (t || JSON.parse)(e), X.trim(e);
|
|
11527
11546
|
} catch (e) {
|
|
@@ -11529,8 +11548,8 @@ function $m(e, t, n) {
|
|
|
11529
11548
|
}
|
|
11530
11549
|
return (n || JSON.stringify)(e);
|
|
11531
11550
|
}
|
|
11532
|
-
var
|
|
11533
|
-
transitional:
|
|
11551
|
+
var th = {
|
|
11552
|
+
transitional: Hm,
|
|
11534
11553
|
adapter: [
|
|
11535
11554
|
"xhr",
|
|
11536
11555
|
"http",
|
|
@@ -11538,22 +11557,22 @@ var eh = {
|
|
|
11538
11557
|
],
|
|
11539
11558
|
transformRequest: [function(e, t) {
|
|
11540
11559
|
let n = t.getContentType() || "", r = n.indexOf("application/json") > -1, i = X.isObject(e);
|
|
11541
|
-
if (i && X.isHTMLForm(e) && (e = new FormData(e)), X.isFormData(e)) return r ? JSON.stringify(
|
|
11560
|
+
if (i && X.isHTMLForm(e) && (e = new FormData(e)), X.isFormData(e)) return r ? JSON.stringify($m(e)) : e;
|
|
11542
11561
|
if (X.isArrayBuffer(e) || X.isBuffer(e) || X.isStream(e) || X.isFile(e) || X.isBlob(e) || X.isReadableStream(e)) return e;
|
|
11543
11562
|
if (X.isArrayBufferView(e)) return e.buffer;
|
|
11544
11563
|
if (X.isURLSearchParams(e)) return t.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
|
|
11545
11564
|
let a;
|
|
11546
11565
|
if (i) {
|
|
11547
|
-
if (n.indexOf("application/x-www-form-urlencoded") > -1) return
|
|
11566
|
+
if (n.indexOf("application/x-www-form-urlencoded") > -1) return Xm(e, this.formSerializer).toString();
|
|
11548
11567
|
if ((a = X.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
|
|
11549
11568
|
let t = this.env && this.env.FormData;
|
|
11550
|
-
return
|
|
11569
|
+
return Fm(a ? { "files[]": e } : e, t && new t(), this.formSerializer);
|
|
11551
11570
|
}
|
|
11552
11571
|
}
|
|
11553
|
-
return i || r ? (t.setContentType("application/json", !1),
|
|
11572
|
+
return i || r ? (t.setContentType("application/json", !1), eh(e)) : e;
|
|
11554
11573
|
}],
|
|
11555
11574
|
transformResponse: [function(e) {
|
|
11556
|
-
let t = this.transitional ||
|
|
11575
|
+
let t = this.transitional || th.transitional, n = t && t.forcedJSONParsing, r = this.responseType === "json";
|
|
11557
11576
|
if (X.isResponse(e) || X.isReadableStream(e)) return e;
|
|
11558
11577
|
if (e && X.isString(e) && (n && !this.responseType || r)) {
|
|
11559
11578
|
let n = !(t && t.silentJSONParsing) && r;
|
|
@@ -11590,11 +11609,11 @@ X.forEach([
|
|
|
11590
11609
|
"put",
|
|
11591
11610
|
"patch"
|
|
11592
11611
|
], (e) => {
|
|
11593
|
-
|
|
11612
|
+
th.headers[e] = {};
|
|
11594
11613
|
});
|
|
11595
11614
|
//#endregion
|
|
11596
11615
|
//#region ../../node_modules/axios/lib/helpers/parseHeaders.js
|
|
11597
|
-
var
|
|
11616
|
+
var nh = X.toObjectSet([
|
|
11598
11617
|
"age",
|
|
11599
11618
|
"authorization",
|
|
11600
11619
|
"content-length",
|
|
@@ -11612,35 +11631,35 @@ var th = X.toObjectSet([
|
|
|
11612
11631
|
"referer",
|
|
11613
11632
|
"retry-after",
|
|
11614
11633
|
"user-agent"
|
|
11615
|
-
]),
|
|
11634
|
+
]), rh = (e) => {
|
|
11616
11635
|
let t = {}, n, r, i;
|
|
11617
11636
|
return e && e.split("\n").forEach(function(e) {
|
|
11618
|
-
i = e.indexOf(":"), n = e.substring(0, i).trim().toLowerCase(), r = e.substring(i + 1).trim(), !(!n || t[n] &&
|
|
11637
|
+
i = e.indexOf(":"), n = e.substring(0, i).trim().toLowerCase(), r = e.substring(i + 1).trim(), !(!n || t[n] && nh[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
11619
11638
|
}), t;
|
|
11620
|
-
},
|
|
11621
|
-
function ih(e) {
|
|
11622
|
-
return e && String(e).trim().toLowerCase();
|
|
11623
|
-
}
|
|
11639
|
+
}, ih = Symbol("internals");
|
|
11624
11640
|
function ah(e) {
|
|
11625
|
-
return e
|
|
11641
|
+
return e && String(e).trim().toLowerCase();
|
|
11626
11642
|
}
|
|
11627
11643
|
function oh(e) {
|
|
11644
|
+
return e === !1 || e == null ? e : X.isArray(e) ? e.map(oh) : String(e);
|
|
11645
|
+
}
|
|
11646
|
+
function sh(e) {
|
|
11628
11647
|
let t = Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g, r;
|
|
11629
11648
|
for (; r = n.exec(e);) t[r[1]] = r[2];
|
|
11630
11649
|
return t;
|
|
11631
11650
|
}
|
|
11632
|
-
var
|
|
11633
|
-
function
|
|
11651
|
+
var ch = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
11652
|
+
function lh(e, t, n, r, i) {
|
|
11634
11653
|
if (X.isFunction(r)) return r.call(this, t, n);
|
|
11635
11654
|
if (i && (t = n), X.isString(t)) {
|
|
11636
11655
|
if (X.isString(r)) return t.indexOf(r) !== -1;
|
|
11637
11656
|
if (X.isRegExp(r)) return r.test(t);
|
|
11638
11657
|
}
|
|
11639
11658
|
}
|
|
11640
|
-
function
|
|
11659
|
+
function uh(e) {
|
|
11641
11660
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, t, n) => t.toUpperCase() + n);
|
|
11642
11661
|
}
|
|
11643
|
-
function
|
|
11662
|
+
function dh(e, t) {
|
|
11644
11663
|
let n = X.toCamelCase(" " + t);
|
|
11645
11664
|
[
|
|
11646
11665
|
"get",
|
|
@@ -11655,21 +11674,21 @@ function uh(e, t) {
|
|
|
11655
11674
|
});
|
|
11656
11675
|
});
|
|
11657
11676
|
}
|
|
11658
|
-
var
|
|
11677
|
+
var fh = class {
|
|
11659
11678
|
constructor(e) {
|
|
11660
11679
|
e && this.set(e);
|
|
11661
11680
|
}
|
|
11662
11681
|
set(e, t, n) {
|
|
11663
11682
|
let r = this;
|
|
11664
11683
|
function i(e, t, n) {
|
|
11665
|
-
let i =
|
|
11684
|
+
let i = ah(t);
|
|
11666
11685
|
if (!i) throw Error("header name must be a non-empty string");
|
|
11667
11686
|
let a = X.findKey(r, i);
|
|
11668
|
-
(!a || r[a] === void 0 || n === !0 || n === void 0 && r[a] !== !1) && (r[a || t] =
|
|
11687
|
+
(!a || r[a] === void 0 || n === !0 || n === void 0 && r[a] !== !1) && (r[a || t] = oh(e));
|
|
11669
11688
|
}
|
|
11670
11689
|
let a = (e, t) => X.forEach(e, (e, n) => i(e, n, t));
|
|
11671
11690
|
if (X.isPlainObject(e) || e instanceof this.constructor) a(e, t);
|
|
11672
|
-
else if (X.isString(e) && (e = e.trim()) && !
|
|
11691
|
+
else if (X.isString(e) && (e = e.trim()) && !ch(e)) a(rh(e), t);
|
|
11673
11692
|
else if (X.isObject(e) && X.isIterable(e)) {
|
|
11674
11693
|
let n = {}, r, i;
|
|
11675
11694
|
for (let t of e) {
|
|
@@ -11681,12 +11700,12 @@ var dh = class {
|
|
|
11681
11700
|
return this;
|
|
11682
11701
|
}
|
|
11683
11702
|
get(e, t) {
|
|
11684
|
-
if (e =
|
|
11703
|
+
if (e = ah(e), e) {
|
|
11685
11704
|
let n = X.findKey(this, e);
|
|
11686
11705
|
if (n) {
|
|
11687
11706
|
let e = this[n];
|
|
11688
11707
|
if (!t) return e;
|
|
11689
|
-
if (t === !0) return
|
|
11708
|
+
if (t === !0) return sh(e);
|
|
11690
11709
|
if (X.isFunction(t)) return t.call(this, e, n);
|
|
11691
11710
|
if (X.isRegExp(t)) return t.exec(e);
|
|
11692
11711
|
throw TypeError("parser must be boolean|regexp|function");
|
|
@@ -11694,18 +11713,18 @@ var dh = class {
|
|
|
11694
11713
|
}
|
|
11695
11714
|
}
|
|
11696
11715
|
has(e, t) {
|
|
11697
|
-
if (e =
|
|
11716
|
+
if (e = ah(e), e) {
|
|
11698
11717
|
let n = X.findKey(this, e);
|
|
11699
|
-
return !!(n && this[n] !== void 0 && (!t ||
|
|
11718
|
+
return !!(n && this[n] !== void 0 && (!t || lh(this, this[n], n, t)));
|
|
11700
11719
|
}
|
|
11701
11720
|
return !1;
|
|
11702
11721
|
}
|
|
11703
11722
|
delete(e, t) {
|
|
11704
11723
|
let n = this, r = !1;
|
|
11705
11724
|
function i(e) {
|
|
11706
|
-
if (e =
|
|
11725
|
+
if (e = ah(e), e) {
|
|
11707
11726
|
let i = X.findKey(n, e);
|
|
11708
|
-
i && (!t ||
|
|
11727
|
+
i && (!t || lh(n, n[i], i, t)) && (delete n[i], r = !0);
|
|
11709
11728
|
}
|
|
11710
11729
|
}
|
|
11711
11730
|
return X.isArray(e) ? e.forEach(i) : i(e), r;
|
|
@@ -11714,7 +11733,7 @@ var dh = class {
|
|
|
11714
11733
|
let t = Object.keys(this), n = t.length, r = !1;
|
|
11715
11734
|
for (; n--;) {
|
|
11716
11735
|
let i = t[n];
|
|
11717
|
-
(!e ||
|
|
11736
|
+
(!e || lh(this, this[i], i, e, !0)) && (delete this[i], r = !0);
|
|
11718
11737
|
}
|
|
11719
11738
|
return r;
|
|
11720
11739
|
}
|
|
@@ -11723,11 +11742,11 @@ var dh = class {
|
|
|
11723
11742
|
return X.forEach(this, (r, i) => {
|
|
11724
11743
|
let a = X.findKey(n, i);
|
|
11725
11744
|
if (a) {
|
|
11726
|
-
t[a] =
|
|
11745
|
+
t[a] = oh(r), delete t[i];
|
|
11727
11746
|
return;
|
|
11728
11747
|
}
|
|
11729
|
-
let o = e ?
|
|
11730
|
-
o !== i && delete t[i], t[o] =
|
|
11748
|
+
let o = e ? uh(i) : String(i).trim();
|
|
11749
|
+
o !== i && delete t[i], t[o] = oh(r), n[o] = !0;
|
|
11731
11750
|
}), this;
|
|
11732
11751
|
}
|
|
11733
11752
|
concat(...e) {
|
|
@@ -11759,22 +11778,22 @@ var dh = class {
|
|
|
11759
11778
|
return t.forEach((e) => n.set(e)), n;
|
|
11760
11779
|
}
|
|
11761
11780
|
static accessor(e) {
|
|
11762
|
-
let t = (this[
|
|
11781
|
+
let t = (this[ih] = this[ih] = { accessors: {} }).accessors, n = this.prototype;
|
|
11763
11782
|
function r(e) {
|
|
11764
|
-
let r =
|
|
11765
|
-
t[r] || (
|
|
11783
|
+
let r = ah(e);
|
|
11784
|
+
t[r] || (dh(n, e), t[r] = !0);
|
|
11766
11785
|
}
|
|
11767
11786
|
return X.isArray(e) ? e.forEach(r) : r(e), this;
|
|
11768
11787
|
}
|
|
11769
11788
|
};
|
|
11770
|
-
|
|
11789
|
+
fh.accessor([
|
|
11771
11790
|
"Content-Type",
|
|
11772
11791
|
"Content-Length",
|
|
11773
11792
|
"Accept",
|
|
11774
11793
|
"Accept-Encoding",
|
|
11775
11794
|
"User-Agent",
|
|
11776
11795
|
"Authorization"
|
|
11777
|
-
]), X.reduceDescriptors(
|
|
11796
|
+
]), X.reduceDescriptors(fh.prototype, ({ value: e }, t) => {
|
|
11778
11797
|
let n = t[0].toUpperCase() + t.slice(1);
|
|
11779
11798
|
return {
|
|
11780
11799
|
get: () => e,
|
|
@@ -11782,42 +11801,42 @@ dh.accessor([
|
|
|
11782
11801
|
this[n] = e;
|
|
11783
11802
|
}
|
|
11784
11803
|
};
|
|
11785
|
-
}), X.freezeMethods(
|
|
11804
|
+
}), X.freezeMethods(fh);
|
|
11786
11805
|
//#endregion
|
|
11787
11806
|
//#region ../../node_modules/axios/lib/core/transformData.js
|
|
11788
|
-
function
|
|
11789
|
-
let n = this ||
|
|
11807
|
+
function ph(e, t) {
|
|
11808
|
+
let n = this || th, r = t || n, i = fh.from(r.headers), a = r.data;
|
|
11790
11809
|
return X.forEach(e, function(e) {
|
|
11791
11810
|
a = e.call(n, a, i.normalize(), t ? t.status : void 0);
|
|
11792
11811
|
}), i.normalize(), a;
|
|
11793
11812
|
}
|
|
11794
11813
|
//#endregion
|
|
11795
11814
|
//#region ../../node_modules/axios/lib/cancel/isCancel.js
|
|
11796
|
-
function
|
|
11815
|
+
function mh(e) {
|
|
11797
11816
|
return !!(e && e.__CANCEL__);
|
|
11798
11817
|
}
|
|
11799
11818
|
//#endregion
|
|
11800
11819
|
//#region ../../node_modules/axios/lib/cancel/CanceledError.js
|
|
11801
|
-
var
|
|
11820
|
+
var hh = class extends Z {
|
|
11802
11821
|
constructor(e, t, n) {
|
|
11803
11822
|
super(e ?? "canceled", Z.ERR_CANCELED, t, n), this.name = "CanceledError", this.__CANCEL__ = !0;
|
|
11804
11823
|
}
|
|
11805
11824
|
};
|
|
11806
11825
|
//#endregion
|
|
11807
11826
|
//#region ../../node_modules/axios/lib/core/settle.js
|
|
11808
|
-
function
|
|
11827
|
+
function gh(e, t, n) {
|
|
11809
11828
|
let r = n.config.validateStatus;
|
|
11810
11829
|
!n.status || !r || r(n.status) ? e(n) : t(new Z("Request failed with status code " + n.status, [Z.ERR_BAD_REQUEST, Z.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4], n.config, n.request, n));
|
|
11811
11830
|
}
|
|
11812
11831
|
//#endregion
|
|
11813
11832
|
//#region ../../node_modules/axios/lib/helpers/parseProtocol.js
|
|
11814
|
-
function
|
|
11833
|
+
function _h(e) {
|
|
11815
11834
|
let t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
11816
11835
|
return t && t[1] || "";
|
|
11817
11836
|
}
|
|
11818
11837
|
//#endregion
|
|
11819
11838
|
//#region ../../node_modules/axios/lib/helpers/speedometer.js
|
|
11820
|
-
function
|
|
11839
|
+
function vh(e, t) {
|
|
11821
11840
|
e ||= 10;
|
|
11822
11841
|
let n = Array(e), r = Array(e), i = 0, a = 0, o;
|
|
11823
11842
|
return t = t === void 0 ? 1e3 : t, function(s) {
|
|
@@ -11832,7 +11851,7 @@ function _h(e, t) {
|
|
|
11832
11851
|
}
|
|
11833
11852
|
//#endregion
|
|
11834
11853
|
//#region ../../node_modules/axios/lib/helpers/throttle.js
|
|
11835
|
-
function
|
|
11854
|
+
function yh(e, t) {
|
|
11836
11855
|
let n = 0, r = 1e3 / t, i, a, o = (t, r = Date.now()) => {
|
|
11837
11856
|
n = r, i = null, a &&= (clearTimeout(a), null), e(...t);
|
|
11838
11857
|
};
|
|
@@ -11845,9 +11864,9 @@ function vh(e, t) {
|
|
|
11845
11864
|
}
|
|
11846
11865
|
//#endregion
|
|
11847
11866
|
//#region ../../node_modules/axios/lib/helpers/progressEventReducer.js
|
|
11848
|
-
var
|
|
11849
|
-
let r = 0, i =
|
|
11850
|
-
return
|
|
11867
|
+
var bh = (e, t, n = 3) => {
|
|
11868
|
+
let r = 0, i = vh(50, 250);
|
|
11869
|
+
return yh((n) => {
|
|
11851
11870
|
let a = n.loaded, o = n.lengthComputable ? n.total : void 0, s = a - r, c = i(s), l = a <= o;
|
|
11852
11871
|
r = a, e({
|
|
11853
11872
|
loaded: a,
|
|
@@ -11861,14 +11880,14 @@ var yh = (e, t, n = 3) => {
|
|
|
11861
11880
|
[t ? "download" : "upload"]: !0
|
|
11862
11881
|
});
|
|
11863
11882
|
}, n);
|
|
11864
|
-
},
|
|
11883
|
+
}, xh = (e, t) => {
|
|
11865
11884
|
let n = e != null;
|
|
11866
11885
|
return [(r) => t[0]({
|
|
11867
11886
|
lengthComputable: n,
|
|
11868
11887
|
total: e,
|
|
11869
11888
|
loaded: r
|
|
11870
11889
|
}), t[1]];
|
|
11871
|
-
},
|
|
11890
|
+
}, Sh = (e) => (...t) => X.asap(() => e(...t)), Ch = Q.hasStandardBrowserEnv ? ((e, t) => (n) => (n = new URL(n, Q.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(new URL(Q.origin), Q.navigator && /(msie|trident)/i.test(Q.navigator.userAgent)) : () => !0, wh = Q.hasStandardBrowserEnv ? {
|
|
11872
11891
|
write(e, t, n, r, i, a, o) {
|
|
11873
11892
|
if (typeof document > "u") return;
|
|
11874
11893
|
let s = [`${e}=${encodeURIComponent(t)}`];
|
|
@@ -11891,24 +11910,24 @@ var yh = (e, t, n = 3) => {
|
|
|
11891
11910
|
};
|
|
11892
11911
|
//#endregion
|
|
11893
11912
|
//#region ../../node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
11894
|
-
function
|
|
11913
|
+
function Th(e) {
|
|
11895
11914
|
return typeof e == "string" ? /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e) : !1;
|
|
11896
11915
|
}
|
|
11897
11916
|
//#endregion
|
|
11898
11917
|
//#region ../../node_modules/axios/lib/helpers/combineURLs.js
|
|
11899
|
-
function
|
|
11918
|
+
function Eh(e, t) {
|
|
11900
11919
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
11901
11920
|
}
|
|
11902
11921
|
//#endregion
|
|
11903
11922
|
//#region ../../node_modules/axios/lib/core/buildFullPath.js
|
|
11904
|
-
function
|
|
11905
|
-
let r = !
|
|
11906
|
-
return e && (r || n == 0) ?
|
|
11923
|
+
function Dh(e, t, n) {
|
|
11924
|
+
let r = !Th(t);
|
|
11925
|
+
return e && (r || n == 0) ? Eh(e, t) : t;
|
|
11907
11926
|
}
|
|
11908
11927
|
//#endregion
|
|
11909
11928
|
//#region ../../node_modules/axios/lib/core/mergeConfig.js
|
|
11910
|
-
var
|
|
11911
|
-
function
|
|
11929
|
+
var Oh = (e) => e instanceof fh ? { ...e } : e;
|
|
11930
|
+
function kh(e, t) {
|
|
11912
11931
|
t ||= {};
|
|
11913
11932
|
let n = {};
|
|
11914
11933
|
function r(e, t, n, r) {
|
|
@@ -11958,7 +11977,7 @@ function Oh(e, t) {
|
|
|
11958
11977
|
socketPath: o,
|
|
11959
11978
|
responseEncoding: o,
|
|
11960
11979
|
validateStatus: s,
|
|
11961
|
-
headers: (e, t, n) => i(
|
|
11980
|
+
headers: (e, t, n) => i(Oh(e), Oh(t), n, !0)
|
|
11962
11981
|
};
|
|
11963
11982
|
return X.forEach(Object.keys({
|
|
11964
11983
|
...e,
|
|
@@ -11971,9 +11990,9 @@ function Oh(e, t) {
|
|
|
11971
11990
|
}
|
|
11972
11991
|
//#endregion
|
|
11973
11992
|
//#region ../../node_modules/axios/lib/helpers/resolveConfig.js
|
|
11974
|
-
var
|
|
11975
|
-
let t =
|
|
11976
|
-
if (t.headers = o =
|
|
11993
|
+
var Ah = (e) => {
|
|
11994
|
+
let t = kh({}, e), { data: n, withXSRFToken: r, xsrfHeaderName: i, xsrfCookieName: a, headers: o, auth: s } = t;
|
|
11995
|
+
if (t.headers = o = fh.from(o), t.url = Bm(Dh(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), s && o.set("Authorization", "Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))), X.isFormData(n)) {
|
|
11977
11996
|
if (Q.hasStandardBrowserEnv || Q.hasStandardBrowserWebWorkerEnv) o.setContentType(void 0);
|
|
11978
11997
|
else if (X.isFunction(n.getHeaders)) {
|
|
11979
11998
|
let e = n.getHeaders(), t = ["content-type", "content-length"];
|
|
@@ -11982,14 +12001,14 @@ var kh = (e) => {
|
|
|
11982
12001
|
});
|
|
11983
12002
|
}
|
|
11984
12003
|
}
|
|
11985
|
-
if (Q.hasStandardBrowserEnv && (r && X.isFunction(r) && (r = r(t)), r || r !== !1 &&
|
|
11986
|
-
let e = i && a &&
|
|
12004
|
+
if (Q.hasStandardBrowserEnv && (r && X.isFunction(r) && (r = r(t)), r || r !== !1 && Ch(t.url))) {
|
|
12005
|
+
let e = i && a && wh.read(a);
|
|
11987
12006
|
e && o.set(i, e);
|
|
11988
12007
|
}
|
|
11989
12008
|
return t;
|
|
11990
|
-
},
|
|
12009
|
+
}, jh = typeof XMLHttpRequest < "u" && function(e) {
|
|
11991
12010
|
return new Promise(function(t, n) {
|
|
11992
|
-
let r =
|
|
12011
|
+
let r = Ah(e), i = r.data, a = fh.from(r.headers).normalize(), { responseType: o, onUploadProgress: s, onDownloadProgress: c } = r, l, u, d, f, p;
|
|
11993
12012
|
function m() {
|
|
11994
12013
|
f && f(), p && p(), r.cancelToken && r.cancelToken.unsubscribe(l), r.signal && r.signal.removeEventListener("abort", l);
|
|
11995
12014
|
}
|
|
@@ -11997,8 +12016,8 @@ var kh = (e) => {
|
|
|
11997
12016
|
h.open(r.method.toUpperCase(), r.url, !0), h.timeout = r.timeout;
|
|
11998
12017
|
function g() {
|
|
11999
12018
|
if (!h) return;
|
|
12000
|
-
let r =
|
|
12001
|
-
|
|
12019
|
+
let r = fh.from("getAllResponseHeaders" in h && h.getAllResponseHeaders());
|
|
12020
|
+
gh(function(e) {
|
|
12002
12021
|
t(e), m();
|
|
12003
12022
|
}, function(e) {
|
|
12004
12023
|
n(e), m();
|
|
@@ -12019,28 +12038,28 @@ var kh = (e) => {
|
|
|
12019
12038
|
let r = new Z(t && t.message ? t.message : "Network Error", Z.ERR_NETWORK, e, h);
|
|
12020
12039
|
r.event = t || null, n(r), h = null;
|
|
12021
12040
|
}, h.ontimeout = function() {
|
|
12022
|
-
let t = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded", i = r.transitional ||
|
|
12041
|
+
let t = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded", i = r.transitional || Hm;
|
|
12023
12042
|
r.timeoutErrorMessage && (t = r.timeoutErrorMessage), n(new Z(t, i.clarifyTimeoutError ? Z.ETIMEDOUT : Z.ECONNABORTED, e, h)), h = null;
|
|
12024
12043
|
}, i === void 0 && a.setContentType(null), "setRequestHeader" in h && X.forEach(a.toJSON(), function(e, t) {
|
|
12025
12044
|
h.setRequestHeader(t, e);
|
|
12026
|
-
}), X.isUndefined(r.withCredentials) || (h.withCredentials = !!r.withCredentials), o && o !== "json" && (h.responseType = r.responseType), c && ([d, p] =
|
|
12027
|
-
h &&= (n(!t || t.type ? new
|
|
12045
|
+
}), X.isUndefined(r.withCredentials) || (h.withCredentials = !!r.withCredentials), o && o !== "json" && (h.responseType = r.responseType), c && ([d, p] = bh(c, !0), h.addEventListener("progress", d)), s && h.upload && ([u, f] = bh(s), h.upload.addEventListener("progress", u), h.upload.addEventListener("loadend", f)), (r.cancelToken || r.signal) && (l = (t) => {
|
|
12046
|
+
h &&= (n(!t || t.type ? new hh(null, e, h) : t), h.abort(), null);
|
|
12028
12047
|
}, r.cancelToken && r.cancelToken.subscribe(l), r.signal && (r.signal.aborted ? l() : r.signal.addEventListener("abort", l)));
|
|
12029
|
-
let _ =
|
|
12048
|
+
let _ = _h(r.url);
|
|
12030
12049
|
if (_ && Q.protocols.indexOf(_) === -1) {
|
|
12031
12050
|
n(new Z("Unsupported protocol " + _ + ":", Z.ERR_BAD_REQUEST, e));
|
|
12032
12051
|
return;
|
|
12033
12052
|
}
|
|
12034
12053
|
h.send(i || null);
|
|
12035
12054
|
});
|
|
12036
|
-
},
|
|
12055
|
+
}, Mh = (e, t) => {
|
|
12037
12056
|
let { length: n } = e = e ? e.filter(Boolean) : [];
|
|
12038
12057
|
if (t || n) {
|
|
12039
12058
|
let n = new AbortController(), r, i = function(e) {
|
|
12040
12059
|
if (!r) {
|
|
12041
12060
|
r = !0, o();
|
|
12042
12061
|
let t = e instanceof Error ? e : this.reason;
|
|
12043
|
-
n.abort(t instanceof Z ? t : new
|
|
12062
|
+
n.abort(t instanceof Z ? t : new hh(t instanceof Error ? t.message : t));
|
|
12044
12063
|
}
|
|
12045
12064
|
}, a = t && setTimeout(() => {
|
|
12046
12065
|
a = null, i(new Z(`timeout of ${t}ms exceeded`, Z.ETIMEDOUT));
|
|
@@ -12053,7 +12072,7 @@ var kh = (e) => {
|
|
|
12053
12072
|
let { signal: s } = n;
|
|
12054
12073
|
return s.unsubscribe = () => X.asap(o), s;
|
|
12055
12074
|
}
|
|
12056
|
-
},
|
|
12075
|
+
}, Nh = function* (e, t) {
|
|
12057
12076
|
let n = e.byteLength;
|
|
12058
12077
|
if (!t || n < t) {
|
|
12059
12078
|
yield e;
|
|
@@ -12061,9 +12080,9 @@ var kh = (e) => {
|
|
|
12061
12080
|
}
|
|
12062
12081
|
let r = 0, i;
|
|
12063
12082
|
for (; r < n;) i = r + t, yield e.slice(r, i), r = i;
|
|
12064
|
-
},
|
|
12065
|
-
for await (let n of
|
|
12066
|
-
},
|
|
12083
|
+
}, Ph = async function* (e, t) {
|
|
12084
|
+
for await (let n of Fh(e)) yield* Nh(n, t);
|
|
12085
|
+
}, Fh = async function* (e) {
|
|
12067
12086
|
if (e[Symbol.asyncIterator]) {
|
|
12068
12087
|
yield* e;
|
|
12069
12088
|
return;
|
|
@@ -12078,8 +12097,8 @@ var kh = (e) => {
|
|
|
12078
12097
|
} finally {
|
|
12079
12098
|
await t.cancel();
|
|
12080
12099
|
}
|
|
12081
|
-
},
|
|
12082
|
-
let i =
|
|
12100
|
+
}, Ih = (e, t, n, r) => {
|
|
12101
|
+
let i = Ph(e, t), a = 0, o, s = (e) => {
|
|
12083
12102
|
o || (o = !0, r && r(e));
|
|
12084
12103
|
};
|
|
12085
12104
|
return new ReadableStream({
|
|
@@ -12100,29 +12119,29 @@ var kh = (e) => {
|
|
|
12100
12119
|
return s(e), i.return();
|
|
12101
12120
|
}
|
|
12102
12121
|
}, { highWaterMark: 2 });
|
|
12103
|
-
},
|
|
12122
|
+
}, Lh = 64 * 1024, { isFunction: Rh } = X, zh = (({ Request: e, Response: t }) => ({
|
|
12104
12123
|
Request: e,
|
|
12105
12124
|
Response: t
|
|
12106
|
-
}))(X.global), { ReadableStream:
|
|
12125
|
+
}))(X.global), { ReadableStream: Bh, TextEncoder: Vh } = X.global, Hh = (e, ...t) => {
|
|
12107
12126
|
try {
|
|
12108
12127
|
return !!e(...t);
|
|
12109
12128
|
} catch {
|
|
12110
12129
|
return !1;
|
|
12111
12130
|
}
|
|
12112
|
-
},
|
|
12113
|
-
e = X.merge.call({ skipUndefined: !0 },
|
|
12114
|
-
let { fetch: t, Request: n, Response: r } = e, i = t ?
|
|
12131
|
+
}, Uh = (e) => {
|
|
12132
|
+
e = X.merge.call({ skipUndefined: !0 }, zh, e);
|
|
12133
|
+
let { fetch: t, Request: n, Response: r } = e, i = t ? Rh(t) : typeof fetch == "function", a = Rh(n), o = Rh(r);
|
|
12115
12134
|
if (!i) return !1;
|
|
12116
|
-
let s = i &&
|
|
12135
|
+
let s = i && Rh(Bh), c = i && (typeof Vh == "function" ? ((e) => (t) => e.encode(t))(new Vh()) : async (e) => new Uint8Array(await new n(e).arrayBuffer())), l = a && s && Hh(() => {
|
|
12117
12136
|
let e = !1, t = new n(Q.origin, {
|
|
12118
|
-
body: new
|
|
12137
|
+
body: new Bh(),
|
|
12119
12138
|
method: "POST",
|
|
12120
12139
|
get duplex() {
|
|
12121
12140
|
return e = !0, "half";
|
|
12122
12141
|
}
|
|
12123
12142
|
}).headers.has("Content-Type");
|
|
12124
12143
|
return e && !t;
|
|
12125
|
-
}), u = o && s &&
|
|
12144
|
+
}), u = o && s && Hh(() => X.isReadableStream(new r("").body)), d = { stream: u && ((e) => e.body) };
|
|
12126
12145
|
i && [
|
|
12127
12146
|
"text",
|
|
12128
12147
|
"arrayBuffer",
|
|
@@ -12147,9 +12166,9 @@ var kh = (e) => {
|
|
|
12147
12166
|
if (X.isURLSearchParams(e) && (e += ""), X.isString(e)) return (await c(e)).byteLength;
|
|
12148
12167
|
}, p = async (e, t) => X.toFiniteNumber(e.getContentLength()) ?? f(t);
|
|
12149
12168
|
return async (e) => {
|
|
12150
|
-
let { url: i, method: o, data: s, signal: c, cancelToken: f, timeout: m, onDownloadProgress: h, onUploadProgress: g, responseType: _, headers: v, withCredentials: y = "same-origin", fetchOptions: b } =
|
|
12169
|
+
let { url: i, method: o, data: s, signal: c, cancelToken: f, timeout: m, onDownloadProgress: h, onUploadProgress: g, responseType: _, headers: v, withCredentials: y = "same-origin", fetchOptions: b } = Ah(e), x = t || fetch;
|
|
12151
12170
|
_ = _ ? (_ + "").toLowerCase() : "text";
|
|
12152
|
-
let S =
|
|
12171
|
+
let S = Mh([c, f && f.toAbortSignal()], m), C = null, w = S && S.unsubscribe && (() => {
|
|
12153
12172
|
S.unsubscribe();
|
|
12154
12173
|
}), T;
|
|
12155
12174
|
try {
|
|
@@ -12160,8 +12179,8 @@ var kh = (e) => {
|
|
|
12160
12179
|
duplex: "half"
|
|
12161
12180
|
}), t;
|
|
12162
12181
|
if (X.isFormData(s) && (t = e.headers.get("content-type")) && v.setContentType(t), e.body) {
|
|
12163
|
-
let [t, n] =
|
|
12164
|
-
s =
|
|
12182
|
+
let [t, n] = xh(T, bh(Sh(g)));
|
|
12183
|
+
s = Ih(e.body, Lh, t, n);
|
|
12165
12184
|
}
|
|
12166
12185
|
}
|
|
12167
12186
|
X.isString(y) || (y = y ? "include" : "omit");
|
|
@@ -12185,17 +12204,17 @@ var kh = (e) => {
|
|
|
12185
12204
|
].forEach((t) => {
|
|
12186
12205
|
e[t] = f[t];
|
|
12187
12206
|
});
|
|
12188
|
-
let t = X.toFiniteNumber(f.headers.get("content-length")), [n, i] = h &&
|
|
12189
|
-
f = new r(
|
|
12207
|
+
let t = X.toFiniteNumber(f.headers.get("content-length")), [n, i] = h && xh(t, bh(Sh(h), !0)) || [];
|
|
12208
|
+
f = new r(Ih(f.body, Lh, n, () => {
|
|
12190
12209
|
i && i(), w && w();
|
|
12191
12210
|
}), e);
|
|
12192
12211
|
}
|
|
12193
12212
|
_ ||= "text";
|
|
12194
12213
|
let E = await d[X.findKey(d, _) || "text"](f, e);
|
|
12195
12214
|
return !m && w && w(), await new Promise((t, n) => {
|
|
12196
|
-
|
|
12215
|
+
gh(t, n, {
|
|
12197
12216
|
data: E,
|
|
12198
|
-
headers:
|
|
12217
|
+
headers: fh.from(f.headers),
|
|
12199
12218
|
status: f.status,
|
|
12200
12219
|
statusText: f.statusText,
|
|
12201
12220
|
config: e,
|
|
@@ -12206,24 +12225,24 @@ var kh = (e) => {
|
|
|
12206
12225
|
throw w && w(), t && t.name === "TypeError" && /Load failed|fetch/i.test(t.message) ? Object.assign(new Z("Network Error", Z.ERR_NETWORK, e, C, t && t.response), { cause: t.cause || t }) : Z.from(t, t && t.code, e, C, t && t.response);
|
|
12207
12226
|
}
|
|
12208
12227
|
};
|
|
12209
|
-
},
|
|
12228
|
+
}, Wh = /* @__PURE__ */ new Map(), Gh = (e) => {
|
|
12210
12229
|
let t = e && e.env || {}, { fetch: n, Request: r, Response: i } = t, a = [
|
|
12211
12230
|
r,
|
|
12212
12231
|
i,
|
|
12213
12232
|
n
|
|
12214
|
-
], o = a.length, s, c, l =
|
|
12215
|
-
for (; o--;) s = a[o], c = l.get(s), c === void 0 && l.set(s, c = o ? /* @__PURE__ */ new Map() :
|
|
12233
|
+
], o = a.length, s, c, l = Wh;
|
|
12234
|
+
for (; o--;) s = a[o], c = l.get(s), c === void 0 && l.set(s, c = o ? /* @__PURE__ */ new Map() : Uh(t)), l = c;
|
|
12216
12235
|
return c;
|
|
12217
12236
|
};
|
|
12218
|
-
|
|
12237
|
+
Gh();
|
|
12219
12238
|
//#endregion
|
|
12220
12239
|
//#region ../../node_modules/axios/lib/adapters/adapters.js
|
|
12221
|
-
var
|
|
12240
|
+
var Kh = {
|
|
12222
12241
|
http: null,
|
|
12223
|
-
xhr:
|
|
12224
|
-
fetch: { get:
|
|
12242
|
+
xhr: jh,
|
|
12243
|
+
fetch: { get: Gh }
|
|
12225
12244
|
};
|
|
12226
|
-
X.forEach(
|
|
12245
|
+
X.forEach(Kh, (e, t) => {
|
|
12227
12246
|
if (e) {
|
|
12228
12247
|
try {
|
|
12229
12248
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -12231,46 +12250,46 @@ X.forEach(Gh, (e, t) => {
|
|
|
12231
12250
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
12232
12251
|
}
|
|
12233
12252
|
});
|
|
12234
|
-
var
|
|
12235
|
-
function
|
|
12253
|
+
var qh = (e) => `- ${e}`, Jh = (e) => X.isFunction(e) || e === null || e === !1;
|
|
12254
|
+
function Yh(e, t) {
|
|
12236
12255
|
e = X.isArray(e) ? e : [e];
|
|
12237
12256
|
let { length: n } = e, r, i, a = {};
|
|
12238
12257
|
for (let o = 0; o < n; o++) {
|
|
12239
12258
|
r = e[o];
|
|
12240
12259
|
let n;
|
|
12241
|
-
if (i = r, !
|
|
12260
|
+
if (i = r, !Jh(r) && (i = Kh[(n = String(r)).toLowerCase()], i === void 0)) throw new Z(`Unknown adapter '${n}'`);
|
|
12242
12261
|
if (i && (X.isFunction(i) || (i = i.get(t)))) break;
|
|
12243
12262
|
a[n || "#" + o] = i;
|
|
12244
12263
|
}
|
|
12245
12264
|
if (!i) {
|
|
12246
12265
|
let e = Object.entries(a).map(([e, t]) => `adapter ${e} ` + (t === !1 ? "is not supported by the environment" : "is not available in the build"));
|
|
12247
|
-
throw new Z("There is no suitable adapter to dispatch the request " + (n ? e.length > 1 ? "since :\n" + e.map(
|
|
12266
|
+
throw new Z("There is no suitable adapter to dispatch the request " + (n ? e.length > 1 ? "since :\n" + e.map(qh).join("\n") : " " + qh(e[0]) : "as no adapter specified"), "ERR_NOT_SUPPORT");
|
|
12248
12267
|
}
|
|
12249
12268
|
return i;
|
|
12250
12269
|
}
|
|
12251
|
-
var
|
|
12252
|
-
getAdapter:
|
|
12253
|
-
adapters:
|
|
12270
|
+
var Xh = {
|
|
12271
|
+
getAdapter: Yh,
|
|
12272
|
+
adapters: Kh
|
|
12254
12273
|
};
|
|
12255
12274
|
//#endregion
|
|
12256
12275
|
//#region ../../node_modules/axios/lib/core/dispatchRequest.js
|
|
12257
|
-
function Xh(e) {
|
|
12258
|
-
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) throw new mh(null, e);
|
|
12259
|
-
}
|
|
12260
12276
|
function Zh(e) {
|
|
12261
|
-
|
|
12277
|
+
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) throw new hh(null, e);
|
|
12278
|
+
}
|
|
12279
|
+
function Qh(e) {
|
|
12280
|
+
return Zh(e), e.headers = fh.from(e.headers), e.data = ph.call(e, e.transformRequest), [
|
|
12262
12281
|
"post",
|
|
12263
12282
|
"put",
|
|
12264
12283
|
"patch"
|
|
12265
|
-
].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
12266
|
-
return
|
|
12284
|
+
].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Xh.getAdapter(e.adapter || th.adapter, e)(e).then(function(t) {
|
|
12285
|
+
return Zh(e), t.data = ph.call(e, e.transformResponse, t), t.headers = fh.from(t.headers), t;
|
|
12267
12286
|
}, function(t) {
|
|
12268
|
-
return
|
|
12287
|
+
return mh(t) || (Zh(e), t && t.response && (t.response.data = ph.call(e, e.transformResponse, t.response), t.response.headers = fh.from(t.response.headers))), Promise.reject(t);
|
|
12269
12288
|
});
|
|
12270
12289
|
}
|
|
12271
12290
|
//#endregion
|
|
12272
12291
|
//#region ../../node_modules/axios/lib/env/data.js
|
|
12273
|
-
var
|
|
12292
|
+
var $h = "1.13.5", eg = {};
|
|
12274
12293
|
[
|
|
12275
12294
|
"object",
|
|
12276
12295
|
"boolean",
|
|
@@ -12279,23 +12298,23 @@ var Qh = "1.13.5", $h = {};
|
|
|
12279
12298
|
"string",
|
|
12280
12299
|
"symbol"
|
|
12281
12300
|
].forEach((e, t) => {
|
|
12282
|
-
|
|
12301
|
+
eg[e] = function(n) {
|
|
12283
12302
|
return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
12284
12303
|
};
|
|
12285
12304
|
});
|
|
12286
|
-
var
|
|
12287
|
-
|
|
12305
|
+
var tg = {};
|
|
12306
|
+
eg.transitional = function(e, t, n) {
|
|
12288
12307
|
function r(e, t) {
|
|
12289
|
-
return "[Axios v" +
|
|
12308
|
+
return "[Axios v" + $h + "] Transitional option '" + e + "'" + t + (n ? ". " + n : "");
|
|
12290
12309
|
}
|
|
12291
12310
|
return (n, i, a) => {
|
|
12292
12311
|
if (e === !1) throw new Z(r(i, " has been removed" + (t ? " in " + t : "")), Z.ERR_DEPRECATED);
|
|
12293
|
-
return t && !
|
|
12312
|
+
return t && !tg[i] && (tg[i] = !0, console.warn(r(i, " has been deprecated since v" + t + " and will be removed in the near future"))), e ? e(n, i, a) : !0;
|
|
12294
12313
|
};
|
|
12295
|
-
},
|
|
12314
|
+
}, eg.spelling = function(e) {
|
|
12296
12315
|
return (t, n) => (console.warn(`${n} is likely a misspelling of ${e}`), !0);
|
|
12297
12316
|
};
|
|
12298
|
-
function
|
|
12317
|
+
function ng(e, t, n) {
|
|
12299
12318
|
if (typeof e != "object") throw new Z("options must be an object", Z.ERR_BAD_OPTION_VALUE);
|
|
12300
12319
|
let r = Object.keys(e), i = r.length;
|
|
12301
12320
|
for (; i-- > 0;) {
|
|
@@ -12308,14 +12327,14 @@ function tg(e, t, n) {
|
|
|
12308
12327
|
if (n !== !0) throw new Z("Unknown option " + a, Z.ERR_BAD_OPTION);
|
|
12309
12328
|
}
|
|
12310
12329
|
}
|
|
12311
|
-
var
|
|
12312
|
-
assertOptions:
|
|
12313
|
-
validators:
|
|
12314
|
-
},
|
|
12330
|
+
var rg = {
|
|
12331
|
+
assertOptions: ng,
|
|
12332
|
+
validators: eg
|
|
12333
|
+
}, ig = rg.validators, ag = class {
|
|
12315
12334
|
constructor(e) {
|
|
12316
12335
|
this.defaults = e || {}, this.interceptors = {
|
|
12317
|
-
request: new
|
|
12318
|
-
response: new
|
|
12336
|
+
request: new Vm(),
|
|
12337
|
+
response: new Vm()
|
|
12319
12338
|
};
|
|
12320
12339
|
}
|
|
12321
12340
|
async request(e, t) {
|
|
@@ -12334,19 +12353,19 @@ var ng = {
|
|
|
12334
12353
|
}
|
|
12335
12354
|
}
|
|
12336
12355
|
_request(e, t) {
|
|
12337
|
-
typeof e == "string" ? (t ||= {}, t.url = e) : t = e || {}, t =
|
|
12356
|
+
typeof e == "string" ? (t ||= {}, t.url = e) : t = e || {}, t = kh(this.defaults, t);
|
|
12338
12357
|
let { transitional: n, paramsSerializer: r, headers: i } = t;
|
|
12339
|
-
n !== void 0 &&
|
|
12340
|
-
silentJSONParsing:
|
|
12341
|
-
forcedJSONParsing:
|
|
12342
|
-
clarifyTimeoutError:
|
|
12343
|
-
legacyInterceptorReqResOrdering:
|
|
12344
|
-
}, !1), r != null && (X.isFunction(r) ? t.paramsSerializer = { serialize: r } :
|
|
12345
|
-
encode:
|
|
12346
|
-
serialize:
|
|
12347
|
-
}, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls === void 0 ? t.allowAbsoluteUrls = !0 : t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls),
|
|
12348
|
-
baseUrl:
|
|
12349
|
-
withXsrfToken:
|
|
12358
|
+
n !== void 0 && rg.assertOptions(n, {
|
|
12359
|
+
silentJSONParsing: ig.transitional(ig.boolean),
|
|
12360
|
+
forcedJSONParsing: ig.transitional(ig.boolean),
|
|
12361
|
+
clarifyTimeoutError: ig.transitional(ig.boolean),
|
|
12362
|
+
legacyInterceptorReqResOrdering: ig.transitional(ig.boolean)
|
|
12363
|
+
}, !1), r != null && (X.isFunction(r) ? t.paramsSerializer = { serialize: r } : rg.assertOptions(r, {
|
|
12364
|
+
encode: ig.function,
|
|
12365
|
+
serialize: ig.function
|
|
12366
|
+
}, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls === void 0 ? t.allowAbsoluteUrls = !0 : t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls), rg.assertOptions(t, {
|
|
12367
|
+
baseUrl: ig.spelling("baseURL"),
|
|
12368
|
+
withXsrfToken: ig.spelling("withXSRFToken")
|
|
12350
12369
|
}, !0), t.method = (t.method || this.defaults.method || "get").toLowerCase();
|
|
12351
12370
|
let a = i && X.merge(i.common, i[t.method]);
|
|
12352
12371
|
i && X.forEach([
|
|
@@ -12359,12 +12378,12 @@ var ng = {
|
|
|
12359
12378
|
"common"
|
|
12360
12379
|
], (e) => {
|
|
12361
12380
|
delete i[e];
|
|
12362
|
-
}), t.headers =
|
|
12381
|
+
}), t.headers = fh.concat(a, i);
|
|
12363
12382
|
let o = [], s = !0;
|
|
12364
12383
|
this.interceptors.request.forEach(function(e) {
|
|
12365
12384
|
if (typeof e.runWhen == "function" && e.runWhen(t) === !1) return;
|
|
12366
12385
|
s &&= e.synchronous;
|
|
12367
|
-
let n = t.transitional ||
|
|
12386
|
+
let n = t.transitional || Hm;
|
|
12368
12387
|
n && n.legacyInterceptorReqResOrdering ? o.unshift(e.fulfilled, e.rejected) : o.push(e.fulfilled, e.rejected);
|
|
12369
12388
|
});
|
|
12370
12389
|
let c = [];
|
|
@@ -12373,7 +12392,7 @@ var ng = {
|
|
|
12373
12392
|
});
|
|
12374
12393
|
let l, u = 0, d;
|
|
12375
12394
|
if (!s) {
|
|
12376
|
-
let e = [
|
|
12395
|
+
let e = [Qh.bind(this), void 0];
|
|
12377
12396
|
for (e.unshift(...o), e.push(...c), d = e.length, l = Promise.resolve(t); u < d;) l = l.then(e[u++], e[u++]);
|
|
12378
12397
|
return l;
|
|
12379
12398
|
}
|
|
@@ -12389,7 +12408,7 @@ var ng = {
|
|
|
12389
12408
|
}
|
|
12390
12409
|
}
|
|
12391
12410
|
try {
|
|
12392
|
-
l =
|
|
12411
|
+
l = Qh.call(this, f);
|
|
12393
12412
|
} catch (e) {
|
|
12394
12413
|
return Promise.reject(e);
|
|
12395
12414
|
}
|
|
@@ -12397,7 +12416,7 @@ var ng = {
|
|
|
12397
12416
|
return l;
|
|
12398
12417
|
}
|
|
12399
12418
|
getUri(e) {
|
|
12400
|
-
return e =
|
|
12419
|
+
return e = kh(this.defaults, e), Bm(Dh(e.baseURL, e.url, e.allowAbsoluteUrls), e.params, e.paramsSerializer);
|
|
12401
12420
|
}
|
|
12402
12421
|
};
|
|
12403
12422
|
X.forEach([
|
|
@@ -12406,8 +12425,8 @@ X.forEach([
|
|
|
12406
12425
|
"head",
|
|
12407
12426
|
"options"
|
|
12408
12427
|
], function(e) {
|
|
12409
|
-
|
|
12410
|
-
return this.request(
|
|
12428
|
+
ag.prototype[e] = function(t, n) {
|
|
12429
|
+
return this.request(kh(n || {}, {
|
|
12411
12430
|
method: e,
|
|
12412
12431
|
url: t,
|
|
12413
12432
|
data: (n || {}).data
|
|
@@ -12420,7 +12439,7 @@ X.forEach([
|
|
|
12420
12439
|
], function(e) {
|
|
12421
12440
|
function t(t) {
|
|
12422
12441
|
return function(n, r, i) {
|
|
12423
|
-
return this.request(
|
|
12442
|
+
return this.request(kh(i || {}, {
|
|
12424
12443
|
method: e,
|
|
12425
12444
|
headers: t ? { "Content-Type": "multipart/form-data" } : {},
|
|
12426
12445
|
url: n,
|
|
@@ -12428,11 +12447,11 @@ X.forEach([
|
|
|
12428
12447
|
}));
|
|
12429
12448
|
};
|
|
12430
12449
|
}
|
|
12431
|
-
|
|
12450
|
+
ag.prototype[e] = t(), ag.prototype[e + "Form"] = t(!0);
|
|
12432
12451
|
});
|
|
12433
12452
|
//#endregion
|
|
12434
12453
|
//#region ../../node_modules/axios/lib/cancel/CancelToken.js
|
|
12435
|
-
var
|
|
12454
|
+
var og = class e {
|
|
12436
12455
|
constructor(e) {
|
|
12437
12456
|
if (typeof e != "function") throw TypeError("executor must be a function.");
|
|
12438
12457
|
let t;
|
|
@@ -12453,7 +12472,7 @@ var ag = class e {
|
|
|
12453
12472
|
n.unsubscribe(t);
|
|
12454
12473
|
}, r;
|
|
12455
12474
|
}, e(function(e, r, i) {
|
|
12456
|
-
n.reason || (n.reason = new
|
|
12475
|
+
n.reason || (n.reason = new hh(e, r, i), t(n.reason));
|
|
12457
12476
|
});
|
|
12458
12477
|
}
|
|
12459
12478
|
throwIfRequested() {
|
|
@@ -12489,19 +12508,19 @@ var ag = class e {
|
|
|
12489
12508
|
};
|
|
12490
12509
|
//#endregion
|
|
12491
12510
|
//#region ../../node_modules/axios/lib/helpers/spread.js
|
|
12492
|
-
function
|
|
12511
|
+
function sg(e) {
|
|
12493
12512
|
return function(t) {
|
|
12494
12513
|
return e.apply(null, t);
|
|
12495
12514
|
};
|
|
12496
12515
|
}
|
|
12497
12516
|
//#endregion
|
|
12498
12517
|
//#region ../../node_modules/axios/lib/helpers/isAxiosError.js
|
|
12499
|
-
function
|
|
12518
|
+
function cg(e) {
|
|
12500
12519
|
return X.isObject(e) && e.isAxiosError === !0;
|
|
12501
12520
|
}
|
|
12502
12521
|
//#endregion
|
|
12503
12522
|
//#region ../../node_modules/axios/lib/helpers/HttpStatusCode.js
|
|
12504
|
-
var
|
|
12523
|
+
var lg = {
|
|
12505
12524
|
Continue: 100,
|
|
12506
12525
|
SwitchingProtocols: 101,
|
|
12507
12526
|
Processing: 102,
|
|
@@ -12572,41 +12591,41 @@ var cg = {
|
|
|
12572
12591
|
SslHandshakeFailed: 525,
|
|
12573
12592
|
InvalidSslCertificate: 526
|
|
12574
12593
|
};
|
|
12575
|
-
Object.entries(
|
|
12576
|
-
|
|
12594
|
+
Object.entries(lg).forEach(([e, t]) => {
|
|
12595
|
+
lg[t] = e;
|
|
12577
12596
|
});
|
|
12578
12597
|
//#endregion
|
|
12579
12598
|
//#region ../../node_modules/axios/lib/axios.js
|
|
12580
|
-
function
|
|
12581
|
-
let t = new
|
|
12582
|
-
return X.extend(n,
|
|
12583
|
-
return
|
|
12599
|
+
function ug(e) {
|
|
12600
|
+
let t = new ag(e), n = wp(ag.prototype.request, t);
|
|
12601
|
+
return X.extend(n, ag.prototype, t, { allOwnKeys: !0 }), X.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(t) {
|
|
12602
|
+
return ug(kh(e, t));
|
|
12584
12603
|
}, n;
|
|
12585
12604
|
}
|
|
12586
|
-
var $ =
|
|
12587
|
-
$.Axios =
|
|
12605
|
+
var $ = ug(th);
|
|
12606
|
+
$.Axios = ag, $.CanceledError = hh, $.CancelToken = og, $.isCancel = mh, $.VERSION = $h, $.toFormData = Fm, $.AxiosError = Z, $.Cancel = $.CanceledError, $.all = function(e) {
|
|
12588
12607
|
return Promise.all(e);
|
|
12589
|
-
}, $.spread =
|
|
12608
|
+
}, $.spread = sg, $.isAxiosError = cg, $.mergeConfig = kh, $.AxiosHeaders = fh, $.formToJSON = (e) => $m(X.isHTMLForm(e) ? new FormData(e) : e), $.getAdapter = Xh.getAdapter, $.HttpStatusCode = lg, $.default = $;
|
|
12590
12609
|
//#endregion
|
|
12591
12610
|
//#region ../core/dist/api/axiosController.js
|
|
12592
|
-
function
|
|
12593
|
-
return e ? "https://api-staging.justaname.id" :
|
|
12611
|
+
function dg(e = !1) {
|
|
12612
|
+
return e ? "https://api-staging.justaname.id" : ju;
|
|
12594
12613
|
}
|
|
12595
|
-
var
|
|
12614
|
+
var fg = (e = !1, t) => $.create({ baseURL: t ?? dg(e) }), pg = (e) => e.then((e) => {
|
|
12596
12615
|
if (e.data.result.data === null) throw Error(e.data.result.error ?? "Something went wrong");
|
|
12597
12616
|
return e.data.result.data;
|
|
12598
12617
|
}).catch((e) => {
|
|
12599
12618
|
throw e?.response && e?.response?.data?.result && e?.response?.data?.result?.error ? Error(e.response.data.result.error) : e;
|
|
12600
|
-
}),
|
|
12601
|
-
REGISTER_PASSKEY:
|
|
12602
|
-
LOOKUP_PASSKEYS:
|
|
12603
|
-
STORE_PERMISSION:
|
|
12604
|
-
GET_PERMISSION: `${
|
|
12605
|
-
DELETE_PERMISSION: `${
|
|
12606
|
-
LOG_ACCOUNT_ISSUANCE:
|
|
12607
|
-
UPDATE_CALL_STATUS: `${
|
|
12608
|
-
GET_CALLS_HISTORY:
|
|
12609
|
-
},
|
|
12619
|
+
}), mg = "/wallet/v2/passkeys", hg = "/permissions", gg = "/wallet/v2/analytics", _g = "/rpc/calls-history", vg = {
|
|
12620
|
+
REGISTER_PASSKEY: mg,
|
|
12621
|
+
LOOKUP_PASSKEYS: mg,
|
|
12622
|
+
STORE_PERMISSION: hg,
|
|
12623
|
+
GET_PERMISSION: `${hg}/:hash`,
|
|
12624
|
+
DELETE_PERMISSION: `${hg}/:hash`,
|
|
12625
|
+
LOG_ACCOUNT_ISSUANCE: gg,
|
|
12626
|
+
UPDATE_CALL_STATUS: `${_g}/:id`,
|
|
12627
|
+
GET_CALLS_HISTORY: _g
|
|
12628
|
+
}, yg = /* @__PURE__ */ G(((e, t) => {
|
|
12610
12629
|
var n = String.prototype.replace, r = /%20/g, i = {
|
|
12611
12630
|
RFC1738: "RFC1738",
|
|
12612
12631
|
RFC3986: "RFC3986"
|
|
@@ -12624,8 +12643,8 @@ var dg = (e = !1, t) => $.create({ baseURL: t ?? ug(e) }), fg = (e) => e.then((e
|
|
|
12624
12643
|
RFC1738: i.RFC1738,
|
|
12625
12644
|
RFC3986: i.RFC3986
|
|
12626
12645
|
};
|
|
12627
|
-
})),
|
|
12628
|
-
var n =
|
|
12646
|
+
})), bg = /* @__PURE__ */ G(((e, t) => {
|
|
12647
|
+
var n = yg(), r = gr(), i = Object.prototype.hasOwnProperty, a = Array.isArray, o = r(), s = function(e, t) {
|
|
12629
12648
|
return o.set(e, t), e;
|
|
12630
12649
|
}, c = function(e) {
|
|
12631
12650
|
return o.has(e);
|
|
@@ -12766,8 +12785,8 @@ var dg = (e = !1, t) => $.create({ baseURL: t ?? ug(e) }), fg = (e) => e.then((e
|
|
|
12766
12785
|
},
|
|
12767
12786
|
merge: m
|
|
12768
12787
|
};
|
|
12769
|
-
})),
|
|
12770
|
-
var n = gr(), r =
|
|
12788
|
+
})), xg = /* @__PURE__ */ G(((e, t) => {
|
|
12789
|
+
var n = gr(), r = bg(), i = yg(), a = Object.prototype.hasOwnProperty, o = {
|
|
12771
12790
|
brackets: function(e) {
|
|
12772
12791
|
return e + "[]";
|
|
12773
12792
|
},
|
|
@@ -12894,8 +12913,8 @@ var dg = (e = !1, t) => $.create({ baseURL: t ?? ug(e) }), fg = (e) => e.then((e
|
|
|
12894
12913
|
var y = u.join(i.delimiter), b = i.addQueryPrefix === !0 ? "?" : "";
|
|
12895
12914
|
return i.charsetSentinel && (i.charset === "iso-8859-1" ? b += "utf8=%26%2310003%3B&" : b += "utf8=%E2%9C%93&"), y.length > 0 ? b + y : "";
|
|
12896
12915
|
};
|
|
12897
|
-
})),
|
|
12898
|
-
var n =
|
|
12916
|
+
})), Sg = /* @__PURE__ */ G(((e, t) => {
|
|
12917
|
+
var n = bg(), r = Object.prototype.hasOwnProperty, i = Array.isArray, a = {
|
|
12899
12918
|
allowDots: !1,
|
|
12900
12919
|
allowEmptyArrays: !1,
|
|
12901
12920
|
allowPrototypes: !1,
|
|
@@ -13025,37 +13044,37 @@ var dg = (e = !1, t) => $.create({ baseURL: t ?? ug(e) }), fg = (e) => e.then((e
|
|
|
13025
13044
|
}
|
|
13026
13045
|
return r.allowSparse === !0 ? a : n.compact(a);
|
|
13027
13046
|
};
|
|
13028
|
-
})),
|
|
13029
|
-
var n =
|
|
13047
|
+
})), Cg = /* @__PURE__ */ Dn((/* @__PURE__ */ G(((e, t) => {
|
|
13048
|
+
var n = xg(), r = Sg();
|
|
13030
13049
|
t.exports = {
|
|
13031
|
-
formats:
|
|
13050
|
+
formats: yg(),
|
|
13032
13051
|
parse: r,
|
|
13033
13052
|
stringify: n
|
|
13034
13053
|
};
|
|
13035
|
-
})))(), 1),
|
|
13036
|
-
let c =
|
|
13054
|
+
})))(), 1), wg = (e, t, n, r, i, a, o, s) => {
|
|
13055
|
+
let c = vg[e];
|
|
13037
13056
|
i && Object.entries(i).forEach(([e, t]) => {
|
|
13038
13057
|
c = c.replace(`:${e}`, encodeURIComponent(t));
|
|
13039
13058
|
});
|
|
13040
13059
|
let l = t === "GET" ? n : t === "PATCH" && s ? s : void 0;
|
|
13041
|
-
return fg(
|
|
13060
|
+
return pg(fg(a, o).request({
|
|
13042
13061
|
url: c,
|
|
13043
13062
|
method: t,
|
|
13044
13063
|
params: l,
|
|
13045
|
-
paramsSerializer: (e) =>
|
|
13064
|
+
paramsSerializer: (e) => Cg.default.stringify(e, { arrayFormat: "repeat" }),
|
|
13046
13065
|
data: t === "POST" || t === "PATCH" ? n : void 0,
|
|
13047
13066
|
headers: r || {}
|
|
13048
13067
|
}));
|
|
13049
|
-
},
|
|
13050
|
-
function
|
|
13068
|
+
}, Tg = "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", Eg = "0x3232323232323232323232323232323232323232", Dg = "0x32323232";
|
|
13069
|
+
function Og(e) {
|
|
13051
13070
|
return Qt(e);
|
|
13052
13071
|
}
|
|
13053
|
-
async function
|
|
13054
|
-
let l = e.address, u = `0x${i.id.toString(16)}`, d =
|
|
13055
|
-
to:
|
|
13056
|
-
data:
|
|
13057
|
-
}, p = await
|
|
13058
|
-
await
|
|
13072
|
+
async function kg(e, t, n, r, i, a, o, s, c) {
|
|
13073
|
+
let l = e.address, u = `0x${i.id.toString(16)}`, d = Ng(l, n, t, r), f = {
|
|
13074
|
+
to: Ru,
|
|
13075
|
+
data: Rg(d)
|
|
13076
|
+
}, p = await Ig(await e_(e, c ? [c, f] : [f], i, o, s, a), i);
|
|
13077
|
+
await Pg(p, d, u, a);
|
|
13059
13078
|
let m = d.calls.map((e) => ({
|
|
13060
13079
|
target: e.target,
|
|
13061
13080
|
selector: e.selector
|
|
@@ -13077,17 +13096,17 @@ async function Og(e, t, n, r, i, a, o, s, c) {
|
|
|
13077
13096
|
chainId: u
|
|
13078
13097
|
};
|
|
13079
13098
|
}
|
|
13080
|
-
async function
|
|
13099
|
+
async function Ag(e, t, n, r, i, a, o) {
|
|
13081
13100
|
let s = {
|
|
13082
|
-
to:
|
|
13083
|
-
data:
|
|
13101
|
+
to: Ru,
|
|
13102
|
+
data: zg(Mg(await jg(t, r)))
|
|
13084
13103
|
};
|
|
13085
|
-
return await
|
|
13104
|
+
return await e_(e, o ? [o, s] : [s], n, i, a, r), await Fg(t, r);
|
|
13086
13105
|
}
|
|
13087
|
-
async function
|
|
13088
|
-
return await
|
|
13106
|
+
async function jg(e, t) {
|
|
13107
|
+
return await wg("GET_PERMISSION", "GET", {}, { "x-api-key": t }, { hash: e }, void 0, Mu);
|
|
13089
13108
|
}
|
|
13090
|
-
function
|
|
13109
|
+
function Mg(e) {
|
|
13091
13110
|
let t = e.calls.map((e) => ({
|
|
13092
13111
|
target: e.target,
|
|
13093
13112
|
selector: e.selector,
|
|
@@ -13108,7 +13127,7 @@ function jg(e) {
|
|
|
13108
13127
|
spends: n
|
|
13109
13128
|
};
|
|
13110
13129
|
}
|
|
13111
|
-
function
|
|
13130
|
+
function Ng(e, t, n, r) {
|
|
13112
13131
|
return {
|
|
13113
13132
|
account: e,
|
|
13114
13133
|
spender: t,
|
|
@@ -13118,8 +13137,8 @@ function Mg(e, t, n, r) {
|
|
|
13118
13137
|
calls: (r.calls || []).map((e) => {
|
|
13119
13138
|
let t;
|
|
13120
13139
|
if (e.selector) t = e.selector;
|
|
13121
|
-
else if (e.functionSignature) t =
|
|
13122
|
-
else throw
|
|
13140
|
+
else if (e.functionSignature) t = Og(e.functionSignature);
|
|
13141
|
+
else throw qu.rpc.invalidParams({ message: "Either selector or functionSignature must be provided for call permission" });
|
|
13123
13142
|
return {
|
|
13124
13143
|
target: e.target,
|
|
13125
13144
|
selector: t,
|
|
@@ -13127,15 +13146,15 @@ function Mg(e, t, n, r) {
|
|
|
13127
13146
|
};
|
|
13128
13147
|
}),
|
|
13129
13148
|
spends: (r.spends || []).map((e) => ({
|
|
13130
|
-
token: e.token && e.token.trim() !== "" ? e.token :
|
|
13149
|
+
token: e.token && e.token.trim() !== "" ? e.token : Tg,
|
|
13131
13150
|
allowance: BigInt(e.allowance),
|
|
13132
13151
|
unit: e.unit,
|
|
13133
13152
|
multiplier: e.multiplier ?? 1
|
|
13134
13153
|
}))
|
|
13135
13154
|
};
|
|
13136
13155
|
}
|
|
13137
|
-
async function
|
|
13138
|
-
return await
|
|
13156
|
+
async function Pg(e, t, n, r) {
|
|
13157
|
+
return await wg("STORE_PERMISSION", "POST", {
|
|
13139
13158
|
permissionId: e,
|
|
13140
13159
|
account: t.account,
|
|
13141
13160
|
spender: t.spender,
|
|
@@ -13154,16 +13173,16 @@ async function Ng(e, t, n, r) {
|
|
|
13154
13173
|
multiplier: e.multiplier
|
|
13155
13174
|
})),
|
|
13156
13175
|
chainId: n
|
|
13157
|
-
}, { "x-api-key": r }, void 0, void 0,
|
|
13158
|
-
}
|
|
13159
|
-
async function Pg(e, t) {
|
|
13160
|
-
return await Cg("DELETE_PERMISSION", "DELETE", {}, { "x-api-key": t }, { hash: e }, void 0, ju);
|
|
13176
|
+
}, { "x-api-key": r }, void 0, void 0, Mu);
|
|
13161
13177
|
}
|
|
13162
13178
|
async function Fg(e, t) {
|
|
13163
|
-
|
|
13179
|
+
return await wg("DELETE_PERMISSION", "DELETE", {}, { "x-api-key": t }, { hash: e }, void 0, Mu);
|
|
13180
|
+
}
|
|
13181
|
+
async function Ig(e, t) {
|
|
13182
|
+
let n = await Ac(Zg(t), { hash: e });
|
|
13164
13183
|
for (let e of n.logs) if (e.address.toLowerCase() === "0xf1b40e3d5701c04d86f7828f0eb367b9c90901d8") try {
|
|
13165
13184
|
let t = Ai({
|
|
13166
|
-
abi:
|
|
13185
|
+
abi: Wg,
|
|
13167
13186
|
data: e.data,
|
|
13168
13187
|
topics: e.topics
|
|
13169
13188
|
});
|
|
@@ -13171,9 +13190,9 @@ async function Fg(e, t) {
|
|
|
13171
13190
|
} catch {
|
|
13172
13191
|
continue;
|
|
13173
13192
|
}
|
|
13174
|
-
throw
|
|
13193
|
+
throw qu.rpc.internal({ message: "PermissionApproved event not found in transaction receipt" });
|
|
13175
13194
|
}
|
|
13176
|
-
function
|
|
13195
|
+
function Lg(e) {
|
|
13177
13196
|
return {
|
|
13178
13197
|
...e,
|
|
13179
13198
|
spends: e.spends.map((e) => {
|
|
@@ -13181,46 +13200,46 @@ function Ig(e) {
|
|
|
13181
13200
|
return {
|
|
13182
13201
|
token: e.token,
|
|
13183
13202
|
allowance: e.allowance,
|
|
13184
|
-
unit:
|
|
13203
|
+
unit: Ug(t),
|
|
13185
13204
|
multiplier: n
|
|
13186
13205
|
};
|
|
13187
13206
|
})
|
|
13188
13207
|
};
|
|
13189
13208
|
}
|
|
13190
|
-
function
|
|
13209
|
+
function Rg(e) {
|
|
13191
13210
|
return U({
|
|
13192
|
-
abi:
|
|
13211
|
+
abi: Wg,
|
|
13193
13212
|
functionName: "approve",
|
|
13194
|
-
args: [
|
|
13213
|
+
args: [Lg(e)]
|
|
13195
13214
|
});
|
|
13196
13215
|
}
|
|
13197
|
-
function
|
|
13216
|
+
function zg(e) {
|
|
13198
13217
|
return U({
|
|
13199
|
-
abi:
|
|
13218
|
+
abi: Wg,
|
|
13200
13219
|
functionName: "revoke",
|
|
13201
|
-
args: [
|
|
13220
|
+
args: [Lg(e)]
|
|
13202
13221
|
});
|
|
13203
13222
|
}
|
|
13204
|
-
function
|
|
13223
|
+
function Bg(e, t, n, r) {
|
|
13205
13224
|
return {
|
|
13206
|
-
to:
|
|
13207
|
-
data:
|
|
13225
|
+
to: Ru,
|
|
13226
|
+
data: Rg(Ng(e, t, n, r))
|
|
13208
13227
|
};
|
|
13209
13228
|
}
|
|
13210
|
-
function
|
|
13229
|
+
function Vg(e) {
|
|
13211
13230
|
return {
|
|
13212
|
-
to:
|
|
13213
|
-
data:
|
|
13231
|
+
to: Ru,
|
|
13232
|
+
data: zg(Mg(e))
|
|
13214
13233
|
};
|
|
13215
13234
|
}
|
|
13216
|
-
function
|
|
13235
|
+
function Hg(e, t) {
|
|
13217
13236
|
return U({
|
|
13218
|
-
abi:
|
|
13237
|
+
abi: Wg,
|
|
13219
13238
|
functionName: "executeBatch",
|
|
13220
|
-
args: [
|
|
13239
|
+
args: [Lg(e), t]
|
|
13221
13240
|
});
|
|
13222
13241
|
}
|
|
13223
|
-
function
|
|
13242
|
+
function Ug(e) {
|
|
13224
13243
|
return {
|
|
13225
13244
|
minute: 0,
|
|
13226
13245
|
hour: 1,
|
|
@@ -13230,7 +13249,7 @@ function Hg(e) {
|
|
|
13230
13249
|
forever: 5
|
|
13231
13250
|
}[e];
|
|
13232
13251
|
}
|
|
13233
|
-
var
|
|
13252
|
+
var Wg = [
|
|
13234
13253
|
{
|
|
13235
13254
|
name: "PermissionApproved",
|
|
13236
13255
|
type: "event",
|
|
@@ -13621,21 +13640,21 @@ var Ug = [
|
|
|
13621
13640
|
];
|
|
13622
13641
|
//#endregion
|
|
13623
13642
|
//#region ../core/dist/analytics/receiptNotification.js
|
|
13624
|
-
function
|
|
13643
|
+
function Gg(e) {
|
|
13625
13644
|
try {
|
|
13626
13645
|
let { userOpHash: t, transactionHash: n, success: r, apiKey: i } = e;
|
|
13627
|
-
|
|
13646
|
+
wg("UPDATE_CALL_STATUS", "PATCH", {
|
|
13628
13647
|
status: r ? 200 : 500,
|
|
13629
13648
|
transactionHash: n
|
|
13630
|
-
}, void 0, { id: t }, void 0,
|
|
13649
|
+
}, void 0, { id: t }, void 0, Mu, { "api-key": i }).catch(() => {});
|
|
13631
13650
|
} catch {}
|
|
13632
13651
|
}
|
|
13633
13652
|
//#endregion
|
|
13634
13653
|
//#region ../core/dist/analytics/index.js
|
|
13635
|
-
function
|
|
13654
|
+
function Kg(e) {
|
|
13636
13655
|
try {
|
|
13637
13656
|
let { address: t, type: n, apiKey: r } = e;
|
|
13638
|
-
|
|
13657
|
+
wg("LOG_ACCOUNT_ISSUANCE", "POST", {
|
|
13639
13658
|
address: t,
|
|
13640
13659
|
type: n,
|
|
13641
13660
|
timestamp: Date.now()
|
|
@@ -13644,23 +13663,23 @@ function Gg(e) {
|
|
|
13644
13663
|
}
|
|
13645
13664
|
//#endregion
|
|
13646
13665
|
//#region ../core/dist/account/smartAccount.js
|
|
13647
|
-
var
|
|
13648
|
-
MAINNET_CHAINS: () =>
|
|
13649
|
-
SUPPORTED_CHAINS: () =>
|
|
13650
|
-
TESTNET_CHAINS: () =>
|
|
13651
|
-
calculateGas: () =>
|
|
13652
|
-
createSmartAccount: () =>
|
|
13653
|
-
createSmartAccountEip7702: () =>
|
|
13654
|
-
createSmartAccountForAddress: () =>
|
|
13655
|
-
estimateUserOpGas: () =>
|
|
13656
|
-
estimateUserOpGasWithPermission: () =>
|
|
13657
|
-
findOwnerIndex: () =>
|
|
13658
|
-
formatPublicKey: () =>
|
|
13659
|
-
getBundlerClient: () =>
|
|
13660
|
-
sendCalls: () =>
|
|
13661
|
-
sendCallsWithPermission: () =>
|
|
13662
|
-
sendTransaction: () =>
|
|
13663
|
-
}),
|
|
13666
|
+
var qg = /* @__PURE__ */ Tn({
|
|
13667
|
+
MAINNET_CHAINS: () => Jg,
|
|
13668
|
+
SUPPORTED_CHAINS: () => Xg,
|
|
13669
|
+
TESTNET_CHAINS: () => Yg,
|
|
13670
|
+
calculateGas: () => u_,
|
|
13671
|
+
createSmartAccount: () => a_,
|
|
13672
|
+
createSmartAccountEip7702: () => l_,
|
|
13673
|
+
createSmartAccountForAddress: () => c_,
|
|
13674
|
+
estimateUserOpGas: () => r_,
|
|
13675
|
+
estimateUserOpGasWithPermission: () => i_,
|
|
13676
|
+
findOwnerIndex: () => o_,
|
|
13677
|
+
formatPublicKey: () => s_,
|
|
13678
|
+
getBundlerClient: () => Zg,
|
|
13679
|
+
sendCalls: () => t_,
|
|
13680
|
+
sendCallsWithPermission: () => n_,
|
|
13681
|
+
sendTransaction: () => e_
|
|
13682
|
+
}), Jg = [
|
|
13664
13683
|
Cu,
|
|
13665
13684
|
Gl,
|
|
13666
13685
|
Tu,
|
|
@@ -13670,11 +13689,12 @@ var Kg = /* @__PURE__ */ Tn({
|
|
|
13670
13689
|
Jl,
|
|
13671
13690
|
lu,
|
|
13672
13691
|
pu,
|
|
13692
|
+
Ou,
|
|
13673
13693
|
gu,
|
|
13674
13694
|
fu,
|
|
13675
13695
|
mu
|
|
13676
|
-
],
|
|
13677
|
-
|
|
13696
|
+
], Yg = [
|
|
13697
|
+
ku,
|
|
13678
13698
|
ql,
|
|
13679
13699
|
Du,
|
|
13680
13700
|
Bl,
|
|
@@ -13682,34 +13702,34 @@ var Kg = /* @__PURE__ */ Tn({
|
|
|
13682
13702
|
Ul,
|
|
13683
13703
|
vu,
|
|
13684
13704
|
Vl
|
|
13685
|
-
],
|
|
13705
|
+
], Xg = [...Jg, ...Yg], Zg = (e, t, n) => {
|
|
13686
13706
|
let r = Tl({
|
|
13687
|
-
chain:
|
|
13707
|
+
chain: Xg.find((t) => t.id === e.id),
|
|
13688
13708
|
transport: kl(e.rpcUrl)
|
|
13689
13709
|
}), i = t || e.paymaster?.url, a = n || e.paymaster?.context;
|
|
13690
|
-
return
|
|
13710
|
+
return Df(i ? {
|
|
13691
13711
|
client: r,
|
|
13692
|
-
paymaster:
|
|
13712
|
+
paymaster: Cp(r, kf({ transport: kl(i) }), e.id, a),
|
|
13693
13713
|
transport: kl(e.rpcUrl)
|
|
13694
13714
|
} : {
|
|
13695
13715
|
client: r,
|
|
13696
13716
|
transport: kl(e.rpcUrl)
|
|
13697
13717
|
});
|
|
13698
13718
|
};
|
|
13699
|
-
async function
|
|
13719
|
+
async function Qg(e, t, n, r) {
|
|
13700
13720
|
let i = Tl({
|
|
13701
|
-
chain:
|
|
13721
|
+
chain: Xg.find((e) => e.id === r.id),
|
|
13702
13722
|
transport: kl(r.rpcUrl)
|
|
13703
13723
|
}), a = await q(i, {
|
|
13704
|
-
address:
|
|
13705
|
-
abi:
|
|
13724
|
+
address: Iu,
|
|
13725
|
+
abi: bp,
|
|
13706
13726
|
functionName: "getImplementation"
|
|
13707
|
-
}), o = await
|
|
13727
|
+
}), o = await xp(i, t.address, a), s = o ? void 0 : await e.signAuthorization(), c = [...n], l = !1;
|
|
13708
13728
|
try {
|
|
13709
13729
|
let e = U({
|
|
13710
|
-
abi:
|
|
13730
|
+
abi: yp,
|
|
13711
13731
|
functionName: "isOwnerAddress",
|
|
13712
|
-
args: [
|
|
13732
|
+
args: [Ru]
|
|
13713
13733
|
}), { data: n } = await ft(i, {
|
|
13714
13734
|
to: t.address,
|
|
13715
13735
|
data: e,
|
|
@@ -13719,7 +13739,7 @@ async function Zg(e, t, n, r) {
|
|
|
13719
13739
|
}] }
|
|
13720
13740
|
});
|
|
13721
13741
|
n && (l = Ne({
|
|
13722
|
-
abi:
|
|
13742
|
+
abi: yp,
|
|
13723
13743
|
functionName: "isOwnerAddress",
|
|
13724
13744
|
data: n
|
|
13725
13745
|
}));
|
|
@@ -13730,32 +13750,32 @@ async function Zg(e, t, n, r) {
|
|
|
13730
13750
|
to: qe(t.address),
|
|
13731
13751
|
value: 0n,
|
|
13732
13752
|
data: U({
|
|
13733
|
-
abi:
|
|
13753
|
+
abi: yp,
|
|
13734
13754
|
functionName: "addOwnerAddress",
|
|
13735
|
-
args: [
|
|
13755
|
+
args: [Ru]
|
|
13736
13756
|
})
|
|
13737
13757
|
}, ...c]), {
|
|
13738
13758
|
calls: c,
|
|
13739
13759
|
authorization: s
|
|
13740
13760
|
};
|
|
13741
13761
|
}
|
|
13742
|
-
async function
|
|
13762
|
+
async function $g(e, t, n, r) {
|
|
13743
13763
|
let i = t.map((e) => ({
|
|
13744
13764
|
to: qe(e.to),
|
|
13745
13765
|
value: e.value ?? 0n,
|
|
13746
13766
|
data: e.data ?? "0x"
|
|
13747
13767
|
}));
|
|
13748
|
-
return r ?
|
|
13768
|
+
return r ? Qg(e, r, i, n) : { calls: i };
|
|
13749
13769
|
}
|
|
13750
|
-
async function
|
|
13751
|
-
let s =
|
|
13770
|
+
async function e_(e, t, n, r, i, a, o) {
|
|
13771
|
+
let s = Zg(n, r, i), { calls: c, authorization: l } = await $g(e, t, n, o), u = await s.sendUserOperation({
|
|
13752
13772
|
account: e,
|
|
13753
13773
|
calls: c,
|
|
13754
13774
|
...l ? { authorization: l } : {}
|
|
13755
13775
|
}), d = await s.waitForUserOperationReceipt({ hash: u });
|
|
13756
13776
|
if (a) {
|
|
13757
13777
|
let e = d.receipt || d, t = e.status, n = t === "0x1" || t === 1 || t === void 0 && e.transactionHash !== void 0;
|
|
13758
|
-
|
|
13778
|
+
Gg({
|
|
13759
13779
|
userOpHash: u,
|
|
13760
13780
|
transactionHash: e.transactionHash,
|
|
13761
13781
|
success: n,
|
|
@@ -13764,8 +13784,8 @@ async function $g(e, t, n, r, i, a, o) {
|
|
|
13764
13784
|
}
|
|
13765
13785
|
return d.receipt.transactionHash;
|
|
13766
13786
|
}
|
|
13767
|
-
async function
|
|
13768
|
-
let o =
|
|
13787
|
+
async function t_(e, t, n, r, i, a) {
|
|
13788
|
+
let o = Zg(n, r, i), { calls: s, authorization: c } = await $g(e, t, n, a);
|
|
13769
13789
|
return {
|
|
13770
13790
|
id: await o.sendUserOperation({
|
|
13771
13791
|
account: e,
|
|
@@ -13775,8 +13795,8 @@ async function e_(e, t, n, r, i, a) {
|
|
|
13775
13795
|
chainId: n.id
|
|
13776
13796
|
};
|
|
13777
13797
|
}
|
|
13778
|
-
async function
|
|
13779
|
-
let l =
|
|
13798
|
+
async function n_(e, t, n, r, i, a, o, s, c) {
|
|
13799
|
+
let l = Hg(Mg(await jg(r, i)), t.map((e) => ({
|
|
13780
13800
|
target: qe(e.to),
|
|
13781
13801
|
value: e.value ?? 0n,
|
|
13782
13802
|
data: e.data ?? "0x"
|
|
@@ -13786,16 +13806,16 @@ async function t_(e, t, n, r, i, a, o, s, c) {
|
|
|
13786
13806
|
value: c.value ?? 0n,
|
|
13787
13807
|
data: c.data
|
|
13788
13808
|
}), u.push({
|
|
13789
|
-
to: qe(
|
|
13809
|
+
to: qe(Ru),
|
|
13790
13810
|
value: 0n,
|
|
13791
13811
|
data: l
|
|
13792
13812
|
});
|
|
13793
|
-
let { calls: d, authorization: f } = s ? await
|
|
13813
|
+
let { calls: d, authorization: f } = s ? await Qg(e, s, u, n) : {
|
|
13794
13814
|
calls: u,
|
|
13795
13815
|
authorization: void 0
|
|
13796
13816
|
};
|
|
13797
13817
|
return {
|
|
13798
|
-
id: await
|
|
13818
|
+
id: await Zg(n, a, o).sendUserOperation({
|
|
13799
13819
|
account: e,
|
|
13800
13820
|
calls: d,
|
|
13801
13821
|
...f ? { authorization: f } : {}
|
|
@@ -13803,8 +13823,8 @@ async function t_(e, t, n, r, i, a, o, s, c) {
|
|
|
13803
13823
|
chainId: n.id
|
|
13804
13824
|
};
|
|
13805
13825
|
}
|
|
13806
|
-
async function
|
|
13807
|
-
let i = await
|
|
13826
|
+
async function r_(e, t, n, r) {
|
|
13827
|
+
let i = await Zg(n, r).estimateUserOperationGas({
|
|
13808
13828
|
account: e,
|
|
13809
13829
|
calls: t.map((e) => ({
|
|
13810
13830
|
to: e.to,
|
|
@@ -13814,51 +13834,51 @@ async function n_(e, t, n, r) {
|
|
|
13814
13834
|
});
|
|
13815
13835
|
return i.callGasLimit + i.preVerificationGas + i.verificationGasLimit;
|
|
13816
13836
|
}
|
|
13817
|
-
async function
|
|
13818
|
-
let a =
|
|
13837
|
+
async function i_(e, t, n, r, i) {
|
|
13838
|
+
let a = Hg(Mg(await jg(r, i)), t.map((e) => ({
|
|
13819
13839
|
target: qe(e.to),
|
|
13820
13840
|
value: e.value ?? 0n,
|
|
13821
13841
|
data: e.data ?? "0x"
|
|
13822
|
-
}))), o = await
|
|
13842
|
+
}))), o = await Zg(n).estimateUserOperationGas({
|
|
13823
13843
|
account: e,
|
|
13824
13844
|
calls: [{
|
|
13825
|
-
to: qe(
|
|
13845
|
+
to: qe(Ru),
|
|
13826
13846
|
value: 0n,
|
|
13827
13847
|
data: a
|
|
13828
13848
|
}]
|
|
13829
13849
|
});
|
|
13830
13850
|
return o.callGasLimit + o.preVerificationGas + o.verificationGasLimit;
|
|
13831
13851
|
}
|
|
13832
|
-
async function
|
|
13833
|
-
let n = await
|
|
13834
|
-
address: await (await
|
|
13852
|
+
async function a_(e, t) {
|
|
13853
|
+
let n = await o_({
|
|
13854
|
+
address: await (await pp({
|
|
13835
13855
|
client: t,
|
|
13836
|
-
owners: [e,
|
|
13856
|
+
owners: [e, Ru]
|
|
13837
13857
|
})).getAddress(),
|
|
13838
13858
|
client: t,
|
|
13839
13859
|
publicKey: e.type === "webAuthn" ? e.publicKey : z(e.address)
|
|
13840
13860
|
});
|
|
13841
|
-
return await
|
|
13861
|
+
return await pp({
|
|
13842
13862
|
client: t,
|
|
13843
|
-
owners: [e,
|
|
13863
|
+
owners: [e, Ru],
|
|
13844
13864
|
ownerIndex: n
|
|
13845
13865
|
});
|
|
13846
13866
|
}
|
|
13847
|
-
async function
|
|
13867
|
+
async function o_({ address: e, client: t, publicKey: n }) {
|
|
13848
13868
|
if (!await qa(t, { address: e })) return 0;
|
|
13849
13869
|
try {
|
|
13850
13870
|
let r = await q(t, {
|
|
13851
13871
|
address: e,
|
|
13852
|
-
abi:
|
|
13872
|
+
abi: yp,
|
|
13853
13873
|
functionName: "ownerCount"
|
|
13854
13874
|
});
|
|
13855
13875
|
for (let i = 0; i < Number(r); i++) {
|
|
13856
13876
|
let r = await q(t, {
|
|
13857
13877
|
address: e,
|
|
13858
|
-
abi:
|
|
13878
|
+
abi: yp,
|
|
13859
13879
|
functionName: "ownerAtIndex",
|
|
13860
13880
|
args: [BigInt(i)]
|
|
13861
|
-
}), a =
|
|
13881
|
+
}), a = s_(n);
|
|
13862
13882
|
if (r.toLowerCase() === a.toLowerCase()) return i;
|
|
13863
13883
|
}
|
|
13864
13884
|
} catch (e) {
|
|
@@ -13866,39 +13886,39 @@ async function a_({ address: e, client: t, publicKey: n }) {
|
|
|
13866
13886
|
}
|
|
13867
13887
|
return 0;
|
|
13868
13888
|
}
|
|
13869
|
-
function
|
|
13889
|
+
function s_(e) {
|
|
13870
13890
|
return nn(e) ? z(e) : e;
|
|
13871
13891
|
}
|
|
13872
|
-
async function
|
|
13892
|
+
async function c_(e, t, n) {
|
|
13873
13893
|
let r = t.type === "webAuthn" ? t.publicKey : t.address;
|
|
13874
|
-
if (!await qa(n, { address: e })) throw
|
|
13894
|
+
if (!await qa(n, { address: e })) throw qu.rpc.invalidParams(`Account ${e} is not deployed`);
|
|
13875
13895
|
let i = await q(n, {
|
|
13876
13896
|
address: e,
|
|
13877
|
-
abi:
|
|
13897
|
+
abi: yp,
|
|
13878
13898
|
functionName: "ownerCount"
|
|
13879
|
-
}), a =
|
|
13899
|
+
}), a = s_(r);
|
|
13880
13900
|
for (let r = 0; r < Number(i); r++) if ((await q(n, {
|
|
13881
13901
|
address: e,
|
|
13882
|
-
abi:
|
|
13902
|
+
abi: yp,
|
|
13883
13903
|
functionName: "ownerAtIndex",
|
|
13884
13904
|
args: [BigInt(r)]
|
|
13885
|
-
})).toLowerCase() === a.toLowerCase()) return await
|
|
13905
|
+
})).toLowerCase() === a.toLowerCase()) return await pp({
|
|
13886
13906
|
client: n,
|
|
13887
|
-
owners: [t,
|
|
13907
|
+
owners: [t, Ru],
|
|
13888
13908
|
ownerIndex: r,
|
|
13889
13909
|
address: e
|
|
13890
13910
|
});
|
|
13891
|
-
throw
|
|
13911
|
+
throw qu.rpc.invalidParams(`Signer is not an owner on account ${e}`);
|
|
13892
13912
|
}
|
|
13893
|
-
async function
|
|
13894
|
-
return await
|
|
13913
|
+
async function l_(e, t) {
|
|
13914
|
+
return await pp({
|
|
13895
13915
|
client: t,
|
|
13896
|
-
owners: [e,
|
|
13916
|
+
owners: [e, Ru],
|
|
13897
13917
|
eip7702Account: e
|
|
13898
13918
|
});
|
|
13899
13919
|
}
|
|
13900
|
-
async function
|
|
13901
|
-
return Jt(t * await Zr(
|
|
13920
|
+
async function u_(e, t, n) {
|
|
13921
|
+
return Jt(t * await Zr(Zg(e, n)), 18);
|
|
13902
13922
|
}
|
|
13903
13923
|
//#endregion
|
|
13904
|
-
export { Cu as $,
|
|
13924
|
+
export { Cu as $, Wf as A, ld as B, Mg as C, ip as D, Cp as E, zf as F, Bu as G, ed as H, Mf as I, Fu as J, ju as K, kf as L, Yf as M, Jf as N, Hf as O, Xf as P, ku as Q, Df as R, kg as S, wg as T, td as U, cd as V, Y as W, Nu as X, Pu as Y, Ru as Z, Eg as _, Tn as _t, l_ as a, Jo as at, Hg as b, Dn as bt, i_ as c, Ao as ct, n_ as d, xa as dt, kl as et, e_ as f, _r as ft, Dg as g, wn as gt, Gg as h, G as ht, a_ as i, $o as it, Gf as j, Uf as k, Zg as l, J as lt, Kg as m, jn as mt, Xg as n, sc as nt, c_ as o, Ro as ot, qg as p, gr as pt, Au as q, u_ as r, Xo as rt, r_ as s, Io as st, Jg as t, Tl as tt, t_ as u, Ra as ut, Bg as v, kn as vt, Ag as w, jg as x, Vg as y, On as yt, dd as z };
|