@txnlab/use-wallet-solid 3.10.1 → 3.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dev.cjs +63 -19
- package/dist/dev.js +63 -19
- package/dist/dev.jsx +99 -7214
- package/dist/index.cjs +738 -0
- package/dist/index.js +578 -126270
- package/dist/index.jsx +25 -16
- package/package.json +8 -8
- package/dist/chunk/2PXYBV4S.jsx +0 -883
- package/dist/chunk/3J6PRJNJ.mjs +0 -779
- package/dist/chunk/3YPORCKB.mjs +0 -9324
- package/dist/chunk/ASHSTAAQ.mjs +0 -663
- package/dist/chunk/B3UVEMEI.mjs +0 -835
- package/dist/chunk/BCEWTVZW.mjs +0 -16644
- package/dist/chunk/CL7LX3O4.jsx +0 -50
- package/dist/chunk/DTJ3ICHE.mjs +0 -9
- package/dist/chunk/FNEO6DUO.jsx +0 -14
- package/dist/chunk/GZ2UQYCA.jsx +0 -669
- package/dist/chunk/JH7OXUIR.jsx +0 -9903
- package/dist/chunk/NVDRUCO3.mjs +0 -26243
- package/dist/chunk/QI4NUZHP.jsx +0 -5862
- package/dist/chunk/RBDWDJFQ.jsx +0 -17199
- package/dist/chunk/UC3ZO4ZH.jsx +0 -802
- package/dist/chunk/VDTK67K2.jsx +0 -26395
- package/dist/chunk/VJFC7YOA.jsx +0 -2033
- package/dist/chunk/VN53D6CR.mjs +0 -2017
- package/dist/chunk/VQQ4CVTZ.mjs +0 -5782
- package/dist/chunk/ZKJS654W.mjs +0 -42
- package/dist/dist/25NR5LQ4.jsx +0 -31
- package/dist/dist/3QPHXTX5.jsx +0 -5761
- package/dist/dist/5PS5TLM7.mjs +0 -5693
- package/dist/dist/COR5WEDJ.jsx +0 -8960
- package/dist/dist/DHO5MJBE.mjs +0 -2155
- package/dist/dist/DZNWO3EY.mjs +0 -1122
- package/dist/dist/H257YD3M.mjs +0 -17103
- package/dist/dist/MZFJYXGG.mjs +0 -25
- package/dist/dist/NMTOQNMX.jsx +0 -17167
- package/dist/dist/OHC5XXJA.jsx +0 -2203
- package/dist/dist/XMT4I4HQ.jsx +0 -1139
- package/dist/dist/YFXWD6WV.mjs +0 -8864
- package/dist/index.es/OIZOTLR7.mjs +0 -9547
- package/dist/index.es/R4EQEDY3.jsx +0 -9843
- package/dist/index.mjs +0 -7747
- package/dist/lib/H7DSBKBW.mjs +0 -10583
- package/dist/lib/OYOWTODQ.jsx +0 -10641
- package/dist/main.esm/27PE3FUE.jsx +0 -114
- package/dist/main.esm/FGHXFDWN.mjs +0 -112
package/dist/dist/OHC5XXJA.jsx
DELETED
|
@@ -1,2203 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__commonJS
|
|
3
|
-
} from "../chunk/CL7LX3O4.jsx";
|
|
4
|
-
|
|
5
|
-
// ../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/constants/Prefixes.js
|
|
6
|
-
var require_Prefixes = __commonJS({
|
|
7
|
-
"../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/constants/Prefixes.js"(exports) {
|
|
8
|
-
"use strict";
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.ARC0027_PREFIX = void 0;
|
|
11
|
-
exports.ARC0027_PREFIX = "arc0027";
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
// ../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/constants/Suffixes.js
|
|
16
|
-
var require_Suffixes = __commonJS({
|
|
17
|
-
"../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/constants/Suffixes.js"(exports) {
|
|
18
|
-
"use strict";
|
|
19
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.CHANNEL_NAME_SUFFIX = void 0;
|
|
21
|
-
exports.CHANNEL_NAME_SUFFIX = "channel";
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
// ../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/constants/Timeouts.js
|
|
26
|
-
var require_Timeouts = __commonJS({
|
|
27
|
-
"../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/constants/Timeouts.js"(exports) {
|
|
28
|
-
"use strict";
|
|
29
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
exports.UPPER_REQUEST_TIMEOUT = exports.LOWER_REQUEST_TIMEOUT = exports.DEFAULT_REQUEST_TIMEOUT = void 0;
|
|
31
|
-
exports.DEFAULT_REQUEST_TIMEOUT = 18e4;
|
|
32
|
-
exports.LOWER_REQUEST_TIMEOUT = 750;
|
|
33
|
-
exports.UPPER_REQUEST_TIMEOUT = 3e5;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
// ../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/constants/index.js
|
|
38
|
-
var require_constants = __commonJS({
|
|
39
|
-
"../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/constants/index.js"(exports) {
|
|
40
|
-
"use strict";
|
|
41
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
42
|
-
if (k2 === void 0) k2 = k;
|
|
43
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
44
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
45
|
-
desc = { enumerable: true, get: function() {
|
|
46
|
-
return m[k];
|
|
47
|
-
} };
|
|
48
|
-
}
|
|
49
|
-
Object.defineProperty(o, k2, desc);
|
|
50
|
-
} : function(o, m, k, k2) {
|
|
51
|
-
if (k2 === void 0) k2 = k;
|
|
52
|
-
o[k2] = m[k];
|
|
53
|
-
});
|
|
54
|
-
var __exportStar = exports && exports.__exportStar || function(m, exports2) {
|
|
55
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
|
|
56
|
-
};
|
|
57
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58
|
-
__exportStar(require_Prefixes(), exports);
|
|
59
|
-
__exportStar(require_Suffixes(), exports);
|
|
60
|
-
__exportStar(require_Timeouts(), exports);
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
// ../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/commonjs-browser/rng.js
|
|
65
|
-
var require_rng = __commonJS({
|
|
66
|
-
"../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/commonjs-browser/rng.js"(exports) {
|
|
67
|
-
"use strict";
|
|
68
|
-
Object.defineProperty(exports, "__esModule", {
|
|
69
|
-
value: true
|
|
70
|
-
});
|
|
71
|
-
exports.default = rng;
|
|
72
|
-
var getRandomValues;
|
|
73
|
-
var rnds8 = new Uint8Array(16);
|
|
74
|
-
function rng() {
|
|
75
|
-
if (!getRandomValues) {
|
|
76
|
-
getRandomValues = typeof crypto !== "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
|
|
77
|
-
if (!getRandomValues) {
|
|
78
|
-
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
return getRandomValues(rnds8);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
|
|
86
|
-
// ../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/commonjs-browser/regex.js
|
|
87
|
-
var require_regex = __commonJS({
|
|
88
|
-
"../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/commonjs-browser/regex.js"(exports) {
|
|
89
|
-
"use strict";
|
|
90
|
-
Object.defineProperty(exports, "__esModule", {
|
|
91
|
-
value: true
|
|
92
|
-
});
|
|
93
|
-
exports.default = void 0;
|
|
94
|
-
var _default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
95
|
-
exports.default = _default;
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
|
|
99
|
-
// ../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/commonjs-browser/validate.js
|
|
100
|
-
var require_validate = __commonJS({
|
|
101
|
-
"../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/commonjs-browser/validate.js"(exports) {
|
|
102
|
-
"use strict";
|
|
103
|
-
Object.defineProperty(exports, "__esModule", {
|
|
104
|
-
value: true
|
|
105
|
-
});
|
|
106
|
-
exports.default = void 0;
|
|
107
|
-
var _regex = _interopRequireDefault(require_regex());
|
|
108
|
-
function _interopRequireDefault(obj) {
|
|
109
|
-
return obj && obj.__esModule ? obj : { default: obj };
|
|
110
|
-
}
|
|
111
|
-
function validate(uuid) {
|
|
112
|
-
return typeof uuid === "string" && _regex.default.test(uuid);
|
|
113
|
-
}
|
|
114
|
-
var _default = validate;
|
|
115
|
-
exports.default = _default;
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
|
|
119
|
-
// ../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/commonjs-browser/stringify.js
|
|
120
|
-
var require_stringify = __commonJS({
|
|
121
|
-
"../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/commonjs-browser/stringify.js"(exports) {
|
|
122
|
-
"use strict";
|
|
123
|
-
Object.defineProperty(exports, "__esModule", {
|
|
124
|
-
value: true
|
|
125
|
-
});
|
|
126
|
-
exports.default = void 0;
|
|
127
|
-
exports.unsafeStringify = unsafeStringify;
|
|
128
|
-
var _validate = _interopRequireDefault(require_validate());
|
|
129
|
-
function _interopRequireDefault(obj) {
|
|
130
|
-
return obj && obj.__esModule ? obj : { default: obj };
|
|
131
|
-
}
|
|
132
|
-
var byteToHex = [];
|
|
133
|
-
for (let i = 0; i < 256; ++i) {
|
|
134
|
-
byteToHex.push((i + 256).toString(16).slice(1));
|
|
135
|
-
}
|
|
136
|
-
function unsafeStringify(arr, offset = 0) {
|
|
137
|
-
return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
|
|
138
|
-
}
|
|
139
|
-
function stringify(arr, offset = 0) {
|
|
140
|
-
const uuid = unsafeStringify(arr, offset);
|
|
141
|
-
if (!(0, _validate.default)(uuid)) {
|
|
142
|
-
throw TypeError("Stringified UUID is invalid");
|
|
143
|
-
}
|
|
144
|
-
return uuid;
|
|
145
|
-
}
|
|
146
|
-
var _default = stringify;
|
|
147
|
-
exports.default = _default;
|
|
148
|
-
}
|
|
149
|
-
});
|
|
150
|
-
|
|
151
|
-
// ../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/commonjs-browser/v1.js
|
|
152
|
-
var require_v1 = __commonJS({
|
|
153
|
-
"../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/commonjs-browser/v1.js"(exports) {
|
|
154
|
-
"use strict";
|
|
155
|
-
Object.defineProperty(exports, "__esModule", {
|
|
156
|
-
value: true
|
|
157
|
-
});
|
|
158
|
-
exports.default = void 0;
|
|
159
|
-
var _rng = _interopRequireDefault(require_rng());
|
|
160
|
-
var _stringify = require_stringify();
|
|
161
|
-
function _interopRequireDefault(obj) {
|
|
162
|
-
return obj && obj.__esModule ? obj : { default: obj };
|
|
163
|
-
}
|
|
164
|
-
var _nodeId;
|
|
165
|
-
var _clockseq;
|
|
166
|
-
var _lastMSecs = 0;
|
|
167
|
-
var _lastNSecs = 0;
|
|
168
|
-
function v1(options, buf, offset) {
|
|
169
|
-
let i = buf && offset || 0;
|
|
170
|
-
const b = buf || new Array(16);
|
|
171
|
-
options = options || {};
|
|
172
|
-
let node = options.node || _nodeId;
|
|
173
|
-
let clockseq = options.clockseq !== void 0 ? options.clockseq : _clockseq;
|
|
174
|
-
if (node == null || clockseq == null) {
|
|
175
|
-
const seedBytes = options.random || (options.rng || _rng.default)();
|
|
176
|
-
if (node == null) {
|
|
177
|
-
node = _nodeId = [seedBytes[0] | 1, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];
|
|
178
|
-
}
|
|
179
|
-
if (clockseq == null) {
|
|
180
|
-
clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 16383;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
let msecs = options.msecs !== void 0 ? options.msecs : Date.now();
|
|
184
|
-
let nsecs = options.nsecs !== void 0 ? options.nsecs : _lastNSecs + 1;
|
|
185
|
-
const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 1e4;
|
|
186
|
-
if (dt < 0 && options.clockseq === void 0) {
|
|
187
|
-
clockseq = clockseq + 1 & 16383;
|
|
188
|
-
}
|
|
189
|
-
if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === void 0) {
|
|
190
|
-
nsecs = 0;
|
|
191
|
-
}
|
|
192
|
-
if (nsecs >= 1e4) {
|
|
193
|
-
throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
|
|
194
|
-
}
|
|
195
|
-
_lastMSecs = msecs;
|
|
196
|
-
_lastNSecs = nsecs;
|
|
197
|
-
_clockseq = clockseq;
|
|
198
|
-
msecs += 122192928e5;
|
|
199
|
-
const tl = ((msecs & 268435455) * 1e4 + nsecs) % 4294967296;
|
|
200
|
-
b[i++] = tl >>> 24 & 255;
|
|
201
|
-
b[i++] = tl >>> 16 & 255;
|
|
202
|
-
b[i++] = tl >>> 8 & 255;
|
|
203
|
-
b[i++] = tl & 255;
|
|
204
|
-
const tmh = msecs / 4294967296 * 1e4 & 268435455;
|
|
205
|
-
b[i++] = tmh >>> 8 & 255;
|
|
206
|
-
b[i++] = tmh & 255;
|
|
207
|
-
b[i++] = tmh >>> 24 & 15 | 16;
|
|
208
|
-
b[i++] = tmh >>> 16 & 255;
|
|
209
|
-
b[i++] = clockseq >>> 8 | 128;
|
|
210
|
-
b[i++] = clockseq & 255;
|
|
211
|
-
for (let n = 0; n < 6; ++n) {
|
|
212
|
-
b[i + n] = node[n];
|
|
213
|
-
}
|
|
214
|
-
return buf || (0, _stringify.unsafeStringify)(b);
|
|
215
|
-
}
|
|
216
|
-
var _default = v1;
|
|
217
|
-
exports.default = _default;
|
|
218
|
-
}
|
|
219
|
-
});
|
|
220
|
-
|
|
221
|
-
// ../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/commonjs-browser/parse.js
|
|
222
|
-
var require_parse = __commonJS({
|
|
223
|
-
"../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/commonjs-browser/parse.js"(exports) {
|
|
224
|
-
"use strict";
|
|
225
|
-
Object.defineProperty(exports, "__esModule", {
|
|
226
|
-
value: true
|
|
227
|
-
});
|
|
228
|
-
exports.default = void 0;
|
|
229
|
-
var _validate = _interopRequireDefault(require_validate());
|
|
230
|
-
function _interopRequireDefault(obj) {
|
|
231
|
-
return obj && obj.__esModule ? obj : { default: obj };
|
|
232
|
-
}
|
|
233
|
-
function parse(uuid) {
|
|
234
|
-
if (!(0, _validate.default)(uuid)) {
|
|
235
|
-
throw TypeError("Invalid UUID");
|
|
236
|
-
}
|
|
237
|
-
let v;
|
|
238
|
-
const arr = new Uint8Array(16);
|
|
239
|
-
arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
|
|
240
|
-
arr[1] = v >>> 16 & 255;
|
|
241
|
-
arr[2] = v >>> 8 & 255;
|
|
242
|
-
arr[3] = v & 255;
|
|
243
|
-
arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;
|
|
244
|
-
arr[5] = v & 255;
|
|
245
|
-
arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;
|
|
246
|
-
arr[7] = v & 255;
|
|
247
|
-
arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;
|
|
248
|
-
arr[9] = v & 255;
|
|
249
|
-
arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 1099511627776 & 255;
|
|
250
|
-
arr[11] = v / 4294967296 & 255;
|
|
251
|
-
arr[12] = v >>> 24 & 255;
|
|
252
|
-
arr[13] = v >>> 16 & 255;
|
|
253
|
-
arr[14] = v >>> 8 & 255;
|
|
254
|
-
arr[15] = v & 255;
|
|
255
|
-
return arr;
|
|
256
|
-
}
|
|
257
|
-
var _default = parse;
|
|
258
|
-
exports.default = _default;
|
|
259
|
-
}
|
|
260
|
-
});
|
|
261
|
-
|
|
262
|
-
// ../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/commonjs-browser/v35.js
|
|
263
|
-
var require_v35 = __commonJS({
|
|
264
|
-
"../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/commonjs-browser/v35.js"(exports) {
|
|
265
|
-
"use strict";
|
|
266
|
-
Object.defineProperty(exports, "__esModule", {
|
|
267
|
-
value: true
|
|
268
|
-
});
|
|
269
|
-
exports.URL = exports.DNS = void 0;
|
|
270
|
-
exports.default = v35;
|
|
271
|
-
var _stringify = require_stringify();
|
|
272
|
-
var _parse = _interopRequireDefault(require_parse());
|
|
273
|
-
function _interopRequireDefault(obj) {
|
|
274
|
-
return obj && obj.__esModule ? obj : { default: obj };
|
|
275
|
-
}
|
|
276
|
-
function stringToBytes(str) {
|
|
277
|
-
str = unescape(encodeURIComponent(str));
|
|
278
|
-
const bytes = [];
|
|
279
|
-
for (let i = 0; i < str.length; ++i) {
|
|
280
|
-
bytes.push(str.charCodeAt(i));
|
|
281
|
-
}
|
|
282
|
-
return bytes;
|
|
283
|
-
}
|
|
284
|
-
var DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8";
|
|
285
|
-
exports.DNS = DNS;
|
|
286
|
-
var URL = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
|
|
287
|
-
exports.URL = URL;
|
|
288
|
-
function v35(name, version, hashfunc) {
|
|
289
|
-
function generateUUID(value, namespace, buf, offset) {
|
|
290
|
-
var _namespace;
|
|
291
|
-
if (typeof value === "string") {
|
|
292
|
-
value = stringToBytes(value);
|
|
293
|
-
}
|
|
294
|
-
if (typeof namespace === "string") {
|
|
295
|
-
namespace = (0, _parse.default)(namespace);
|
|
296
|
-
}
|
|
297
|
-
if (((_namespace = namespace) === null || _namespace === void 0 ? void 0 : _namespace.length) !== 16) {
|
|
298
|
-
throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
|
|
299
|
-
}
|
|
300
|
-
let bytes = new Uint8Array(16 + value.length);
|
|
301
|
-
bytes.set(namespace);
|
|
302
|
-
bytes.set(value, namespace.length);
|
|
303
|
-
bytes = hashfunc(bytes);
|
|
304
|
-
bytes[6] = bytes[6] & 15 | version;
|
|
305
|
-
bytes[8] = bytes[8] & 63 | 128;
|
|
306
|
-
if (buf) {
|
|
307
|
-
offset = offset || 0;
|
|
308
|
-
for (let i = 0; i < 16; ++i) {
|
|
309
|
-
buf[offset + i] = bytes[i];
|
|
310
|
-
}
|
|
311
|
-
return buf;
|
|
312
|
-
}
|
|
313
|
-
return (0, _stringify.unsafeStringify)(bytes);
|
|
314
|
-
}
|
|
315
|
-
try {
|
|
316
|
-
generateUUID.name = name;
|
|
317
|
-
} catch (err) {
|
|
318
|
-
}
|
|
319
|
-
generateUUID.DNS = DNS;
|
|
320
|
-
generateUUID.URL = URL;
|
|
321
|
-
return generateUUID;
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
});
|
|
325
|
-
|
|
326
|
-
// ../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/commonjs-browser/md5.js
|
|
327
|
-
var require_md5 = __commonJS({
|
|
328
|
-
"../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/commonjs-browser/md5.js"(exports) {
|
|
329
|
-
"use strict";
|
|
330
|
-
Object.defineProperty(exports, "__esModule", {
|
|
331
|
-
value: true
|
|
332
|
-
});
|
|
333
|
-
exports.default = void 0;
|
|
334
|
-
function md5(bytes) {
|
|
335
|
-
if (typeof bytes === "string") {
|
|
336
|
-
const msg = unescape(encodeURIComponent(bytes));
|
|
337
|
-
bytes = new Uint8Array(msg.length);
|
|
338
|
-
for (let i = 0; i < msg.length; ++i) {
|
|
339
|
-
bytes[i] = msg.charCodeAt(i);
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
return md5ToHexEncodedArray(wordsToMd5(bytesToWords(bytes), bytes.length * 8));
|
|
343
|
-
}
|
|
344
|
-
function md5ToHexEncodedArray(input) {
|
|
345
|
-
const output = [];
|
|
346
|
-
const length32 = input.length * 32;
|
|
347
|
-
const hexTab = "0123456789abcdef";
|
|
348
|
-
for (let i = 0; i < length32; i += 8) {
|
|
349
|
-
const x = input[i >> 5] >>> i % 32 & 255;
|
|
350
|
-
const hex = parseInt(hexTab.charAt(x >>> 4 & 15) + hexTab.charAt(x & 15), 16);
|
|
351
|
-
output.push(hex);
|
|
352
|
-
}
|
|
353
|
-
return output;
|
|
354
|
-
}
|
|
355
|
-
function getOutputLength(inputLength8) {
|
|
356
|
-
return (inputLength8 + 64 >>> 9 << 4) + 14 + 1;
|
|
357
|
-
}
|
|
358
|
-
function wordsToMd5(x, len) {
|
|
359
|
-
x[len >> 5] |= 128 << len % 32;
|
|
360
|
-
x[getOutputLength(len) - 1] = len;
|
|
361
|
-
let a = 1732584193;
|
|
362
|
-
let b = -271733879;
|
|
363
|
-
let c = -1732584194;
|
|
364
|
-
let d = 271733878;
|
|
365
|
-
for (let i = 0; i < x.length; i += 16) {
|
|
366
|
-
const olda = a;
|
|
367
|
-
const oldb = b;
|
|
368
|
-
const oldc = c;
|
|
369
|
-
const oldd = d;
|
|
370
|
-
a = md5ff(a, b, c, d, x[i], 7, -680876936);
|
|
371
|
-
d = md5ff(d, a, b, c, x[i + 1], 12, -389564586);
|
|
372
|
-
c = md5ff(c, d, a, b, x[i + 2], 17, 606105819);
|
|
373
|
-
b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330);
|
|
374
|
-
a = md5ff(a, b, c, d, x[i + 4], 7, -176418897);
|
|
375
|
-
d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426);
|
|
376
|
-
c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341);
|
|
377
|
-
b = md5ff(b, c, d, a, x[i + 7], 22, -45705983);
|
|
378
|
-
a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416);
|
|
379
|
-
d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417);
|
|
380
|
-
c = md5ff(c, d, a, b, x[i + 10], 17, -42063);
|
|
381
|
-
b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162);
|
|
382
|
-
a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682);
|
|
383
|
-
d = md5ff(d, a, b, c, x[i + 13], 12, -40341101);
|
|
384
|
-
c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290);
|
|
385
|
-
b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329);
|
|
386
|
-
a = md5gg(a, b, c, d, x[i + 1], 5, -165796510);
|
|
387
|
-
d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632);
|
|
388
|
-
c = md5gg(c, d, a, b, x[i + 11], 14, 643717713);
|
|
389
|
-
b = md5gg(b, c, d, a, x[i], 20, -373897302);
|
|
390
|
-
a = md5gg(a, b, c, d, x[i + 5], 5, -701558691);
|
|
391
|
-
d = md5gg(d, a, b, c, x[i + 10], 9, 38016083);
|
|
392
|
-
c = md5gg(c, d, a, b, x[i + 15], 14, -660478335);
|
|
393
|
-
b = md5gg(b, c, d, a, x[i + 4], 20, -405537848);
|
|
394
|
-
a = md5gg(a, b, c, d, x[i + 9], 5, 568446438);
|
|
395
|
-
d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690);
|
|
396
|
-
c = md5gg(c, d, a, b, x[i + 3], 14, -187363961);
|
|
397
|
-
b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501);
|
|
398
|
-
a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467);
|
|
399
|
-
d = md5gg(d, a, b, c, x[i + 2], 9, -51403784);
|
|
400
|
-
c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473);
|
|
401
|
-
b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734);
|
|
402
|
-
a = md5hh(a, b, c, d, x[i + 5], 4, -378558);
|
|
403
|
-
d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463);
|
|
404
|
-
c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562);
|
|
405
|
-
b = md5hh(b, c, d, a, x[i + 14], 23, -35309556);
|
|
406
|
-
a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060);
|
|
407
|
-
d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353);
|
|
408
|
-
c = md5hh(c, d, a, b, x[i + 7], 16, -155497632);
|
|
409
|
-
b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640);
|
|
410
|
-
a = md5hh(a, b, c, d, x[i + 13], 4, 681279174);
|
|
411
|
-
d = md5hh(d, a, b, c, x[i], 11, -358537222);
|
|
412
|
-
c = md5hh(c, d, a, b, x[i + 3], 16, -722521979);
|
|
413
|
-
b = md5hh(b, c, d, a, x[i + 6], 23, 76029189);
|
|
414
|
-
a = md5hh(a, b, c, d, x[i + 9], 4, -640364487);
|
|
415
|
-
d = md5hh(d, a, b, c, x[i + 12], 11, -421815835);
|
|
416
|
-
c = md5hh(c, d, a, b, x[i + 15], 16, 530742520);
|
|
417
|
-
b = md5hh(b, c, d, a, x[i + 2], 23, -995338651);
|
|
418
|
-
a = md5ii(a, b, c, d, x[i], 6, -198630844);
|
|
419
|
-
d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415);
|
|
420
|
-
c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905);
|
|
421
|
-
b = md5ii(b, c, d, a, x[i + 5], 21, -57434055);
|
|
422
|
-
a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571);
|
|
423
|
-
d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606);
|
|
424
|
-
c = md5ii(c, d, a, b, x[i + 10], 15, -1051523);
|
|
425
|
-
b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799);
|
|
426
|
-
a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359);
|
|
427
|
-
d = md5ii(d, a, b, c, x[i + 15], 10, -30611744);
|
|
428
|
-
c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380);
|
|
429
|
-
b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649);
|
|
430
|
-
a = md5ii(a, b, c, d, x[i + 4], 6, -145523070);
|
|
431
|
-
d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379);
|
|
432
|
-
c = md5ii(c, d, a, b, x[i + 2], 15, 718787259);
|
|
433
|
-
b = md5ii(b, c, d, a, x[i + 9], 21, -343485551);
|
|
434
|
-
a = safeAdd(a, olda);
|
|
435
|
-
b = safeAdd(b, oldb);
|
|
436
|
-
c = safeAdd(c, oldc);
|
|
437
|
-
d = safeAdd(d, oldd);
|
|
438
|
-
}
|
|
439
|
-
return [a, b, c, d];
|
|
440
|
-
}
|
|
441
|
-
function bytesToWords(input) {
|
|
442
|
-
if (input.length === 0) {
|
|
443
|
-
return [];
|
|
444
|
-
}
|
|
445
|
-
const length8 = input.length * 8;
|
|
446
|
-
const output = new Uint32Array(getOutputLength(length8));
|
|
447
|
-
for (let i = 0; i < length8; i += 8) {
|
|
448
|
-
output[i >> 5] |= (input[i / 8] & 255) << i % 32;
|
|
449
|
-
}
|
|
450
|
-
return output;
|
|
451
|
-
}
|
|
452
|
-
function safeAdd(x, y) {
|
|
453
|
-
const lsw = (x & 65535) + (y & 65535);
|
|
454
|
-
const msw = (x >> 16) + (y >> 16) + (lsw >> 16);
|
|
455
|
-
return msw << 16 | lsw & 65535;
|
|
456
|
-
}
|
|
457
|
-
function bitRotateLeft(num, cnt) {
|
|
458
|
-
return num << cnt | num >>> 32 - cnt;
|
|
459
|
-
}
|
|
460
|
-
function md5cmn(q, a, b, x, s, t) {
|
|
461
|
-
return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b);
|
|
462
|
-
}
|
|
463
|
-
function md5ff(a, b, c, d, x, s, t) {
|
|
464
|
-
return md5cmn(b & c | ~b & d, a, b, x, s, t);
|
|
465
|
-
}
|
|
466
|
-
function md5gg(a, b, c, d, x, s, t) {
|
|
467
|
-
return md5cmn(b & d | c & ~d, a, b, x, s, t);
|
|
468
|
-
}
|
|
469
|
-
function md5hh(a, b, c, d, x, s, t) {
|
|
470
|
-
return md5cmn(b ^ c ^ d, a, b, x, s, t);
|
|
471
|
-
}
|
|
472
|
-
function md5ii(a, b, c, d, x, s, t) {
|
|
473
|
-
return md5cmn(c ^ (b | ~d), a, b, x, s, t);
|
|
474
|
-
}
|
|
475
|
-
var _default = md5;
|
|
476
|
-
exports.default = _default;
|
|
477
|
-
}
|
|
478
|
-
});
|
|
479
|
-
|
|
480
|
-
// ../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/commonjs-browser/v3.js
|
|
481
|
-
var require_v3 = __commonJS({
|
|
482
|
-
"../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/commonjs-browser/v3.js"(exports) {
|
|
483
|
-
"use strict";
|
|
484
|
-
Object.defineProperty(exports, "__esModule", {
|
|
485
|
-
value: true
|
|
486
|
-
});
|
|
487
|
-
exports.default = void 0;
|
|
488
|
-
var _v = _interopRequireDefault(require_v35());
|
|
489
|
-
var _md = _interopRequireDefault(require_md5());
|
|
490
|
-
function _interopRequireDefault(obj) {
|
|
491
|
-
return obj && obj.__esModule ? obj : { default: obj };
|
|
492
|
-
}
|
|
493
|
-
var v3 = (0, _v.default)("v3", 48, _md.default);
|
|
494
|
-
var _default = v3;
|
|
495
|
-
exports.default = _default;
|
|
496
|
-
}
|
|
497
|
-
});
|
|
498
|
-
|
|
499
|
-
// ../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/commonjs-browser/native.js
|
|
500
|
-
var require_native = __commonJS({
|
|
501
|
-
"../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/commonjs-browser/native.js"(exports) {
|
|
502
|
-
"use strict";
|
|
503
|
-
Object.defineProperty(exports, "__esModule", {
|
|
504
|
-
value: true
|
|
505
|
-
});
|
|
506
|
-
exports.default = void 0;
|
|
507
|
-
var randomUUID = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
508
|
-
var _default = {
|
|
509
|
-
randomUUID
|
|
510
|
-
};
|
|
511
|
-
exports.default = _default;
|
|
512
|
-
}
|
|
513
|
-
});
|
|
514
|
-
|
|
515
|
-
// ../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/commonjs-browser/v4.js
|
|
516
|
-
var require_v4 = __commonJS({
|
|
517
|
-
"../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/commonjs-browser/v4.js"(exports) {
|
|
518
|
-
"use strict";
|
|
519
|
-
Object.defineProperty(exports, "__esModule", {
|
|
520
|
-
value: true
|
|
521
|
-
});
|
|
522
|
-
exports.default = void 0;
|
|
523
|
-
var _native = _interopRequireDefault(require_native());
|
|
524
|
-
var _rng = _interopRequireDefault(require_rng());
|
|
525
|
-
var _stringify = require_stringify();
|
|
526
|
-
function _interopRequireDefault(obj) {
|
|
527
|
-
return obj && obj.__esModule ? obj : { default: obj };
|
|
528
|
-
}
|
|
529
|
-
function v4(options, buf, offset) {
|
|
530
|
-
if (_native.default.randomUUID && !buf && !options) {
|
|
531
|
-
return _native.default.randomUUID();
|
|
532
|
-
}
|
|
533
|
-
options = options || {};
|
|
534
|
-
const rnds = options.random || (options.rng || _rng.default)();
|
|
535
|
-
rnds[6] = rnds[6] & 15 | 64;
|
|
536
|
-
rnds[8] = rnds[8] & 63 | 128;
|
|
537
|
-
if (buf) {
|
|
538
|
-
offset = offset || 0;
|
|
539
|
-
for (let i = 0; i < 16; ++i) {
|
|
540
|
-
buf[offset + i] = rnds[i];
|
|
541
|
-
}
|
|
542
|
-
return buf;
|
|
543
|
-
}
|
|
544
|
-
return (0, _stringify.unsafeStringify)(rnds);
|
|
545
|
-
}
|
|
546
|
-
var _default = v4;
|
|
547
|
-
exports.default = _default;
|
|
548
|
-
}
|
|
549
|
-
});
|
|
550
|
-
|
|
551
|
-
// ../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/commonjs-browser/sha1.js
|
|
552
|
-
var require_sha1 = __commonJS({
|
|
553
|
-
"../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/commonjs-browser/sha1.js"(exports) {
|
|
554
|
-
"use strict";
|
|
555
|
-
Object.defineProperty(exports, "__esModule", {
|
|
556
|
-
value: true
|
|
557
|
-
});
|
|
558
|
-
exports.default = void 0;
|
|
559
|
-
function f(s, x, y, z) {
|
|
560
|
-
switch (s) {
|
|
561
|
-
case 0:
|
|
562
|
-
return x & y ^ ~x & z;
|
|
563
|
-
case 1:
|
|
564
|
-
return x ^ y ^ z;
|
|
565
|
-
case 2:
|
|
566
|
-
return x & y ^ x & z ^ y & z;
|
|
567
|
-
case 3:
|
|
568
|
-
return x ^ y ^ z;
|
|
569
|
-
}
|
|
570
|
-
}
|
|
571
|
-
function ROTL(x, n) {
|
|
572
|
-
return x << n | x >>> 32 - n;
|
|
573
|
-
}
|
|
574
|
-
function sha1(bytes) {
|
|
575
|
-
const K = [1518500249, 1859775393, 2400959708, 3395469782];
|
|
576
|
-
const H = [1732584193, 4023233417, 2562383102, 271733878, 3285377520];
|
|
577
|
-
if (typeof bytes === "string") {
|
|
578
|
-
const msg = unescape(encodeURIComponent(bytes));
|
|
579
|
-
bytes = [];
|
|
580
|
-
for (let i = 0; i < msg.length; ++i) {
|
|
581
|
-
bytes.push(msg.charCodeAt(i));
|
|
582
|
-
}
|
|
583
|
-
} else if (!Array.isArray(bytes)) {
|
|
584
|
-
bytes = Array.prototype.slice.call(bytes);
|
|
585
|
-
}
|
|
586
|
-
bytes.push(128);
|
|
587
|
-
const l = bytes.length / 4 + 2;
|
|
588
|
-
const N = Math.ceil(l / 16);
|
|
589
|
-
const M = new Array(N);
|
|
590
|
-
for (let i = 0; i < N; ++i) {
|
|
591
|
-
const arr = new Uint32Array(16);
|
|
592
|
-
for (let j = 0; j < 16; ++j) {
|
|
593
|
-
arr[j] = bytes[i * 64 + j * 4] << 24 | bytes[i * 64 + j * 4 + 1] << 16 | bytes[i * 64 + j * 4 + 2] << 8 | bytes[i * 64 + j * 4 + 3];
|
|
594
|
-
}
|
|
595
|
-
M[i] = arr;
|
|
596
|
-
}
|
|
597
|
-
M[N - 1][14] = (bytes.length - 1) * 8 / Math.pow(2, 32);
|
|
598
|
-
M[N - 1][14] = Math.floor(M[N - 1][14]);
|
|
599
|
-
M[N - 1][15] = (bytes.length - 1) * 8 & 4294967295;
|
|
600
|
-
for (let i = 0; i < N; ++i) {
|
|
601
|
-
const W = new Uint32Array(80);
|
|
602
|
-
for (let t = 0; t < 16; ++t) {
|
|
603
|
-
W[t] = M[i][t];
|
|
604
|
-
}
|
|
605
|
-
for (let t = 16; t < 80; ++t) {
|
|
606
|
-
W[t] = ROTL(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1);
|
|
607
|
-
}
|
|
608
|
-
let a = H[0];
|
|
609
|
-
let b = H[1];
|
|
610
|
-
let c = H[2];
|
|
611
|
-
let d = H[3];
|
|
612
|
-
let e = H[4];
|
|
613
|
-
for (let t = 0; t < 80; ++t) {
|
|
614
|
-
const s = Math.floor(t / 20);
|
|
615
|
-
const T = ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[t] >>> 0;
|
|
616
|
-
e = d;
|
|
617
|
-
d = c;
|
|
618
|
-
c = ROTL(b, 30) >>> 0;
|
|
619
|
-
b = a;
|
|
620
|
-
a = T;
|
|
621
|
-
}
|
|
622
|
-
H[0] = H[0] + a >>> 0;
|
|
623
|
-
H[1] = H[1] + b >>> 0;
|
|
624
|
-
H[2] = H[2] + c >>> 0;
|
|
625
|
-
H[3] = H[3] + d >>> 0;
|
|
626
|
-
H[4] = H[4] + e >>> 0;
|
|
627
|
-
}
|
|
628
|
-
return [H[0] >> 24 & 255, H[0] >> 16 & 255, H[0] >> 8 & 255, H[0] & 255, H[1] >> 24 & 255, H[1] >> 16 & 255, H[1] >> 8 & 255, H[1] & 255, H[2] >> 24 & 255, H[2] >> 16 & 255, H[2] >> 8 & 255, H[2] & 255, H[3] >> 24 & 255, H[3] >> 16 & 255, H[3] >> 8 & 255, H[3] & 255, H[4] >> 24 & 255, H[4] >> 16 & 255, H[4] >> 8 & 255, H[4] & 255];
|
|
629
|
-
}
|
|
630
|
-
var _default = sha1;
|
|
631
|
-
exports.default = _default;
|
|
632
|
-
}
|
|
633
|
-
});
|
|
634
|
-
|
|
635
|
-
// ../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/commonjs-browser/v5.js
|
|
636
|
-
var require_v5 = __commonJS({
|
|
637
|
-
"../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/commonjs-browser/v5.js"(exports) {
|
|
638
|
-
"use strict";
|
|
639
|
-
Object.defineProperty(exports, "__esModule", {
|
|
640
|
-
value: true
|
|
641
|
-
});
|
|
642
|
-
exports.default = void 0;
|
|
643
|
-
var _v = _interopRequireDefault(require_v35());
|
|
644
|
-
var _sha = _interopRequireDefault(require_sha1());
|
|
645
|
-
function _interopRequireDefault(obj) {
|
|
646
|
-
return obj && obj.__esModule ? obj : { default: obj };
|
|
647
|
-
}
|
|
648
|
-
var v5 = (0, _v.default)("v5", 80, _sha.default);
|
|
649
|
-
var _default = v5;
|
|
650
|
-
exports.default = _default;
|
|
651
|
-
}
|
|
652
|
-
});
|
|
653
|
-
|
|
654
|
-
// ../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/commonjs-browser/nil.js
|
|
655
|
-
var require_nil = __commonJS({
|
|
656
|
-
"../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/commonjs-browser/nil.js"(exports) {
|
|
657
|
-
"use strict";
|
|
658
|
-
Object.defineProperty(exports, "__esModule", {
|
|
659
|
-
value: true
|
|
660
|
-
});
|
|
661
|
-
exports.default = void 0;
|
|
662
|
-
var _default = "00000000-0000-0000-0000-000000000000";
|
|
663
|
-
exports.default = _default;
|
|
664
|
-
}
|
|
665
|
-
});
|
|
666
|
-
|
|
667
|
-
// ../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/commonjs-browser/version.js
|
|
668
|
-
var require_version = __commonJS({
|
|
669
|
-
"../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/commonjs-browser/version.js"(exports) {
|
|
670
|
-
"use strict";
|
|
671
|
-
Object.defineProperty(exports, "__esModule", {
|
|
672
|
-
value: true
|
|
673
|
-
});
|
|
674
|
-
exports.default = void 0;
|
|
675
|
-
var _validate = _interopRequireDefault(require_validate());
|
|
676
|
-
function _interopRequireDefault(obj) {
|
|
677
|
-
return obj && obj.__esModule ? obj : { default: obj };
|
|
678
|
-
}
|
|
679
|
-
function version(uuid) {
|
|
680
|
-
if (!(0, _validate.default)(uuid)) {
|
|
681
|
-
throw TypeError("Invalid UUID");
|
|
682
|
-
}
|
|
683
|
-
return parseInt(uuid.slice(14, 15), 16);
|
|
684
|
-
}
|
|
685
|
-
var _default = version;
|
|
686
|
-
exports.default = _default;
|
|
687
|
-
}
|
|
688
|
-
});
|
|
689
|
-
|
|
690
|
-
// ../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/commonjs-browser/index.js
|
|
691
|
-
var require_commonjs_browser = __commonJS({
|
|
692
|
-
"../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/commonjs-browser/index.js"(exports) {
|
|
693
|
-
"use strict";
|
|
694
|
-
Object.defineProperty(exports, "__esModule", {
|
|
695
|
-
value: true
|
|
696
|
-
});
|
|
697
|
-
Object.defineProperty(exports, "NIL", {
|
|
698
|
-
enumerable: true,
|
|
699
|
-
get: function get() {
|
|
700
|
-
return _nil.default;
|
|
701
|
-
}
|
|
702
|
-
});
|
|
703
|
-
Object.defineProperty(exports, "parse", {
|
|
704
|
-
enumerable: true,
|
|
705
|
-
get: function get() {
|
|
706
|
-
return _parse.default;
|
|
707
|
-
}
|
|
708
|
-
});
|
|
709
|
-
Object.defineProperty(exports, "stringify", {
|
|
710
|
-
enumerable: true,
|
|
711
|
-
get: function get() {
|
|
712
|
-
return _stringify.default;
|
|
713
|
-
}
|
|
714
|
-
});
|
|
715
|
-
Object.defineProperty(exports, "v1", {
|
|
716
|
-
enumerable: true,
|
|
717
|
-
get: function get() {
|
|
718
|
-
return _v.default;
|
|
719
|
-
}
|
|
720
|
-
});
|
|
721
|
-
Object.defineProperty(exports, "v3", {
|
|
722
|
-
enumerable: true,
|
|
723
|
-
get: function get() {
|
|
724
|
-
return _v2.default;
|
|
725
|
-
}
|
|
726
|
-
});
|
|
727
|
-
Object.defineProperty(exports, "v4", {
|
|
728
|
-
enumerable: true,
|
|
729
|
-
get: function get() {
|
|
730
|
-
return _v3.default;
|
|
731
|
-
}
|
|
732
|
-
});
|
|
733
|
-
Object.defineProperty(exports, "v5", {
|
|
734
|
-
enumerable: true,
|
|
735
|
-
get: function get() {
|
|
736
|
-
return _v4.default;
|
|
737
|
-
}
|
|
738
|
-
});
|
|
739
|
-
Object.defineProperty(exports, "validate", {
|
|
740
|
-
enumerable: true,
|
|
741
|
-
get: function get() {
|
|
742
|
-
return _validate.default;
|
|
743
|
-
}
|
|
744
|
-
});
|
|
745
|
-
Object.defineProperty(exports, "version", {
|
|
746
|
-
enumerable: true,
|
|
747
|
-
get: function get() {
|
|
748
|
-
return _version.default;
|
|
749
|
-
}
|
|
750
|
-
});
|
|
751
|
-
var _v = _interopRequireDefault(require_v1());
|
|
752
|
-
var _v2 = _interopRequireDefault(require_v3());
|
|
753
|
-
var _v3 = _interopRequireDefault(require_v4());
|
|
754
|
-
var _v4 = _interopRequireDefault(require_v5());
|
|
755
|
-
var _nil = _interopRequireDefault(require_nil());
|
|
756
|
-
var _version = _interopRequireDefault(require_version());
|
|
757
|
-
var _validate = _interopRequireDefault(require_validate());
|
|
758
|
-
var _stringify = _interopRequireDefault(require_stringify());
|
|
759
|
-
var _parse = _interopRequireDefault(require_parse());
|
|
760
|
-
function _interopRequireDefault(obj) {
|
|
761
|
-
return obj && obj.__esModule ? obj : { default: obj };
|
|
762
|
-
}
|
|
763
|
-
}
|
|
764
|
-
});
|
|
765
|
-
|
|
766
|
-
// ../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/controllers/Logger.js
|
|
767
|
-
var require_Logger = __commonJS({
|
|
768
|
-
"../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/controllers/Logger.js"(exports) {
|
|
769
|
-
"use strict";
|
|
770
|
-
var __spreadArray = exports && exports.__spreadArray || function(to, from, pack) {
|
|
771
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
772
|
-
if (ar || !(i in from)) {
|
|
773
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
774
|
-
ar[i] = from[i];
|
|
775
|
-
}
|
|
776
|
-
}
|
|
777
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
778
|
-
};
|
|
779
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
780
|
-
var Logger = (
|
|
781
|
-
/** @class */
|
|
782
|
-
function() {
|
|
783
|
-
function Logger2(level) {
|
|
784
|
-
this._level = level;
|
|
785
|
-
}
|
|
786
|
-
Logger2.prototype.canLog = function(allowedLevel) {
|
|
787
|
-
switch (this._level) {
|
|
788
|
-
case "error":
|
|
789
|
-
return allowedLevel === "error";
|
|
790
|
-
case "warn":
|
|
791
|
-
return allowedLevel === "error" || allowedLevel === "warn";
|
|
792
|
-
case "info":
|
|
793
|
-
return allowedLevel === "error" || allowedLevel === "warn" || allowedLevel === "info";
|
|
794
|
-
case "debug":
|
|
795
|
-
return true;
|
|
796
|
-
default:
|
|
797
|
-
return false;
|
|
798
|
-
}
|
|
799
|
-
};
|
|
800
|
-
Logger2.prototype.debug = function(message) {
|
|
801
|
-
var optionalParams = [];
|
|
802
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
803
|
-
optionalParams[_i - 1] = arguments[_i];
|
|
804
|
-
}
|
|
805
|
-
this.canLog("debug") && console.log.apply(console, __spreadArray([message], optionalParams, false));
|
|
806
|
-
};
|
|
807
|
-
Logger2.prototype.error = function(message) {
|
|
808
|
-
var optionalParams = [];
|
|
809
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
810
|
-
optionalParams[_i - 1] = arguments[_i];
|
|
811
|
-
}
|
|
812
|
-
this.canLog("error") && console.error.apply(console, __spreadArray([message], optionalParams, false));
|
|
813
|
-
};
|
|
814
|
-
Logger2.prototype.info = function(message) {
|
|
815
|
-
var optionalParams = [];
|
|
816
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
817
|
-
optionalParams[_i - 1] = arguments[_i];
|
|
818
|
-
}
|
|
819
|
-
this.canLog("info") && console.info.apply(console, __spreadArray([message], optionalParams, false));
|
|
820
|
-
};
|
|
821
|
-
Logger2.prototype.warn = function(message) {
|
|
822
|
-
var optionalParams = [];
|
|
823
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
824
|
-
optionalParams[_i - 1] = arguments[_i];
|
|
825
|
-
}
|
|
826
|
-
this.canLog("warn") && console.warn.apply(console, __spreadArray([message], optionalParams, false));
|
|
827
|
-
};
|
|
828
|
-
return Logger2;
|
|
829
|
-
}()
|
|
830
|
-
);
|
|
831
|
-
exports.default = Logger;
|
|
832
|
-
}
|
|
833
|
-
});
|
|
834
|
-
|
|
835
|
-
// ../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/controllers/BaseController.js
|
|
836
|
-
var require_BaseController = __commonJS({
|
|
837
|
-
"../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/controllers/BaseController.js"(exports) {
|
|
838
|
-
"use strict";
|
|
839
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
840
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
841
|
-
};
|
|
842
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
843
|
-
var Logger_1 = __importDefault(require_Logger());
|
|
844
|
-
var BaseController = (
|
|
845
|
-
/** @class */
|
|
846
|
-
function() {
|
|
847
|
-
function BaseController2(config) {
|
|
848
|
-
this._config = config;
|
|
849
|
-
this._listeners = /* @__PURE__ */ new Map();
|
|
850
|
-
this._logger = new Logger_1.default(config.debug ? "debug" : "error");
|
|
851
|
-
}
|
|
852
|
-
BaseController2.prototype.getConfig = function() {
|
|
853
|
-
return this._config;
|
|
854
|
-
};
|
|
855
|
-
BaseController2.prototype.removeAllListeners = function() {
|
|
856
|
-
this._listeners.forEach(function(_a) {
|
|
857
|
-
var listener = _a.listener, reference = _a.reference;
|
|
858
|
-
return window.removeEventListener(reference, listener);
|
|
859
|
-
});
|
|
860
|
-
this._listeners.clear();
|
|
861
|
-
};
|
|
862
|
-
BaseController2.prototype.removeListener = function(id) {
|
|
863
|
-
var item = this._listeners.get(id) || null;
|
|
864
|
-
if (!item) {
|
|
865
|
-
return;
|
|
866
|
-
}
|
|
867
|
-
window.removeEventListener(item.reference, item.listener);
|
|
868
|
-
this._listeners.delete(id);
|
|
869
|
-
};
|
|
870
|
-
return BaseController2;
|
|
871
|
-
}()
|
|
872
|
-
);
|
|
873
|
-
exports.default = BaseController;
|
|
874
|
-
}
|
|
875
|
-
});
|
|
876
|
-
|
|
877
|
-
// ../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/enums/ARC0027ErrorCodeEnum.js
|
|
878
|
-
var require_ARC0027ErrorCodeEnum = __commonJS({
|
|
879
|
-
"../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/enums/ARC0027ErrorCodeEnum.js"(exports) {
|
|
880
|
-
"use strict";
|
|
881
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
882
|
-
var ARC0027ErrorCodeEnum;
|
|
883
|
-
(function(ARC0027ErrorCodeEnum2) {
|
|
884
|
-
ARC0027ErrorCodeEnum2[ARC0027ErrorCodeEnum2["UnknownError"] = 4e3] = "UnknownError";
|
|
885
|
-
ARC0027ErrorCodeEnum2[ARC0027ErrorCodeEnum2["MethodCanceledError"] = 4001] = "MethodCanceledError";
|
|
886
|
-
ARC0027ErrorCodeEnum2[ARC0027ErrorCodeEnum2["MethodTimedOutError"] = 4002] = "MethodTimedOutError";
|
|
887
|
-
ARC0027ErrorCodeEnum2[ARC0027ErrorCodeEnum2["MethodNotSupportedError"] = 4003] = "MethodNotSupportedError";
|
|
888
|
-
ARC0027ErrorCodeEnum2[ARC0027ErrorCodeEnum2["NetworkNotSupportedError"] = 4004] = "NetworkNotSupportedError";
|
|
889
|
-
ARC0027ErrorCodeEnum2[ARC0027ErrorCodeEnum2["UnauthorizedSignerError"] = 4100] = "UnauthorizedSignerError";
|
|
890
|
-
ARC0027ErrorCodeEnum2[ARC0027ErrorCodeEnum2["InvalidInputError"] = 4200] = "InvalidInputError";
|
|
891
|
-
ARC0027ErrorCodeEnum2[ARC0027ErrorCodeEnum2["InvalidGroupIdError"] = 4201] = "InvalidGroupIdError";
|
|
892
|
-
ARC0027ErrorCodeEnum2[ARC0027ErrorCodeEnum2["FailedToPostSomeTransactionsError"] = 4300] = "FailedToPostSomeTransactionsError";
|
|
893
|
-
})(ARC0027ErrorCodeEnum || (ARC0027ErrorCodeEnum = {}));
|
|
894
|
-
exports.default = ARC0027ErrorCodeEnum;
|
|
895
|
-
}
|
|
896
|
-
});
|
|
897
|
-
|
|
898
|
-
// ../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/enums/ARC0027MessageTypeEnum.js
|
|
899
|
-
var require_ARC0027MessageTypeEnum = __commonJS({
|
|
900
|
-
"../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/enums/ARC0027MessageTypeEnum.js"(exports) {
|
|
901
|
-
"use strict";
|
|
902
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
903
|
-
var ARC0027MessageTypeEnum;
|
|
904
|
-
(function(ARC0027MessageTypeEnum2) {
|
|
905
|
-
ARC0027MessageTypeEnum2["Request"] = "request";
|
|
906
|
-
ARC0027MessageTypeEnum2["Response"] = "response";
|
|
907
|
-
})(ARC0027MessageTypeEnum || (ARC0027MessageTypeEnum = {}));
|
|
908
|
-
exports.default = ARC0027MessageTypeEnum;
|
|
909
|
-
}
|
|
910
|
-
});
|
|
911
|
-
|
|
912
|
-
// ../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/enums/ARC0027MethodEnum.js
|
|
913
|
-
var require_ARC0027MethodEnum = __commonJS({
|
|
914
|
-
"../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/enums/ARC0027MethodEnum.js"(exports) {
|
|
915
|
-
"use strict";
|
|
916
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
917
|
-
var ARC0027MethodEnum;
|
|
918
|
-
(function(ARC0027MethodEnum2) {
|
|
919
|
-
ARC0027MethodEnum2["Disable"] = "disable";
|
|
920
|
-
ARC0027MethodEnum2["Discover"] = "discover";
|
|
921
|
-
ARC0027MethodEnum2["Enable"] = "enable";
|
|
922
|
-
ARC0027MethodEnum2["PostTransactions"] = "post_transactions";
|
|
923
|
-
ARC0027MethodEnum2["SignAndPostTransactions"] = "sign_and_post_transactions";
|
|
924
|
-
ARC0027MethodEnum2["SignMessage"] = "sign_message";
|
|
925
|
-
ARC0027MethodEnum2["SignTransactions"] = "sign_transactions";
|
|
926
|
-
})(ARC0027MethodEnum || (ARC0027MethodEnum = {}));
|
|
927
|
-
exports.default = ARC0027MethodEnum;
|
|
928
|
-
}
|
|
929
|
-
});
|
|
930
|
-
|
|
931
|
-
// ../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/enums/index.js
|
|
932
|
-
var require_enums = __commonJS({
|
|
933
|
-
"../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/enums/index.js"(exports) {
|
|
934
|
-
"use strict";
|
|
935
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
936
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
937
|
-
};
|
|
938
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
939
|
-
exports.ARC0027MethodEnum = exports.ARC0027MessageTypeEnum = exports.ARC0027ErrorCodeEnum = void 0;
|
|
940
|
-
var ARC0027ErrorCodeEnum_1 = require_ARC0027ErrorCodeEnum();
|
|
941
|
-
Object.defineProperty(exports, "ARC0027ErrorCodeEnum", { enumerable: true, get: function() {
|
|
942
|
-
return __importDefault(ARC0027ErrorCodeEnum_1).default;
|
|
943
|
-
} });
|
|
944
|
-
var ARC0027MessageTypeEnum_1 = require_ARC0027MessageTypeEnum();
|
|
945
|
-
Object.defineProperty(exports, "ARC0027MessageTypeEnum", { enumerable: true, get: function() {
|
|
946
|
-
return __importDefault(ARC0027MessageTypeEnum_1).default;
|
|
947
|
-
} });
|
|
948
|
-
var ARC0027MethodEnum_1 = require_ARC0027MethodEnum();
|
|
949
|
-
Object.defineProperty(exports, "ARC0027MethodEnum", { enumerable: true, get: function() {
|
|
950
|
-
return __importDefault(ARC0027MethodEnum_1).default;
|
|
951
|
-
} });
|
|
952
|
-
}
|
|
953
|
-
});
|
|
954
|
-
|
|
955
|
-
// ../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/errors/BaseARC0027Error.js
|
|
956
|
-
var require_BaseARC0027Error = __commonJS({
|
|
957
|
-
"../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/errors/BaseARC0027Error.js"(exports) {
|
|
958
|
-
"use strict";
|
|
959
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
960
|
-
var BaseARC0027Error = (
|
|
961
|
-
/** @class */
|
|
962
|
-
/* @__PURE__ */ function() {
|
|
963
|
-
function BaseARC0027Error2(_a) {
|
|
964
|
-
var message = _a.message, providerId = _a.providerId;
|
|
965
|
-
this.message = message.toLowerCase();
|
|
966
|
-
this.providerId = providerId;
|
|
967
|
-
}
|
|
968
|
-
return BaseARC0027Error2;
|
|
969
|
-
}()
|
|
970
|
-
);
|
|
971
|
-
exports.default = BaseARC0027Error;
|
|
972
|
-
}
|
|
973
|
-
});
|
|
974
|
-
|
|
975
|
-
// ../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/errors/ARC0027FailedToPostSomeTransactionsError.js
|
|
976
|
-
var require_ARC0027FailedToPostSomeTransactionsError = __commonJS({
|
|
977
|
-
"../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/errors/ARC0027FailedToPostSomeTransactionsError.js"(exports) {
|
|
978
|
-
"use strict";
|
|
979
|
-
var __extends = exports && exports.__extends || /* @__PURE__ */ function() {
|
|
980
|
-
var extendStatics = function(d, b) {
|
|
981
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
982
|
-
d2.__proto__ = b2;
|
|
983
|
-
} || function(d2, b2) {
|
|
984
|
-
for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
|
|
985
|
-
};
|
|
986
|
-
return extendStatics(d, b);
|
|
987
|
-
};
|
|
988
|
-
return function(d, b) {
|
|
989
|
-
if (typeof b !== "function" && b !== null)
|
|
990
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
991
|
-
extendStatics(d, b);
|
|
992
|
-
function __() {
|
|
993
|
-
this.constructor = d;
|
|
994
|
-
}
|
|
995
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
996
|
-
};
|
|
997
|
-
}();
|
|
998
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
999
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
1000
|
-
};
|
|
1001
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1002
|
-
var enums_1 = require_enums();
|
|
1003
|
-
var BaseARC0027Error_1 = __importDefault(require_BaseARC0027Error());
|
|
1004
|
-
var ARC0027FailedToPostSomeTransactionsError = (
|
|
1005
|
-
/** @class */
|
|
1006
|
-
function(_super) {
|
|
1007
|
-
__extends(ARC0027FailedToPostSomeTransactionsError2, _super);
|
|
1008
|
-
function ARC0027FailedToPostSomeTransactionsError2(_a) {
|
|
1009
|
-
var message = _a.message, providerId = _a.providerId, successTxnIDs = _a.successTxnIDs;
|
|
1010
|
-
var _this = _super.call(this, {
|
|
1011
|
-
message: message || "failed to post some transactions",
|
|
1012
|
-
providerId
|
|
1013
|
-
}) || this;
|
|
1014
|
-
_this.code = enums_1.ARC0027ErrorCodeEnum.FailedToPostSomeTransactionsError;
|
|
1015
|
-
_this.name = "FailedToPostSomeTransactionsError";
|
|
1016
|
-
_this.data = {
|
|
1017
|
-
successTxnIDs
|
|
1018
|
-
};
|
|
1019
|
-
return _this;
|
|
1020
|
-
}
|
|
1021
|
-
return ARC0027FailedToPostSomeTransactionsError2;
|
|
1022
|
-
}(BaseARC0027Error_1.default)
|
|
1023
|
-
);
|
|
1024
|
-
exports.default = ARC0027FailedToPostSomeTransactionsError;
|
|
1025
|
-
}
|
|
1026
|
-
});
|
|
1027
|
-
|
|
1028
|
-
// ../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/errors/ARC0027InvalidGroupIdError.js
|
|
1029
|
-
var require_ARC0027InvalidGroupIdError = __commonJS({
|
|
1030
|
-
"../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/errors/ARC0027InvalidGroupIdError.js"(exports) {
|
|
1031
|
-
"use strict";
|
|
1032
|
-
var __extends = exports && exports.__extends || /* @__PURE__ */ function() {
|
|
1033
|
-
var extendStatics = function(d, b) {
|
|
1034
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
1035
|
-
d2.__proto__ = b2;
|
|
1036
|
-
} || function(d2, b2) {
|
|
1037
|
-
for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
|
|
1038
|
-
};
|
|
1039
|
-
return extendStatics(d, b);
|
|
1040
|
-
};
|
|
1041
|
-
return function(d, b) {
|
|
1042
|
-
if (typeof b !== "function" && b !== null)
|
|
1043
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
1044
|
-
extendStatics(d, b);
|
|
1045
|
-
function __() {
|
|
1046
|
-
this.constructor = d;
|
|
1047
|
-
}
|
|
1048
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1049
|
-
};
|
|
1050
|
-
}();
|
|
1051
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
1052
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
1053
|
-
};
|
|
1054
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1055
|
-
var enums_1 = require_enums();
|
|
1056
|
-
var BaseARC0027Error_1 = __importDefault(require_BaseARC0027Error());
|
|
1057
|
-
var ARC0027InvalidGroupIdError = (
|
|
1058
|
-
/** @class */
|
|
1059
|
-
function(_super) {
|
|
1060
|
-
__extends(ARC0027InvalidGroupIdError2, _super);
|
|
1061
|
-
function ARC0027InvalidGroupIdError2(_a) {
|
|
1062
|
-
var message = _a.message, providerId = _a.providerId;
|
|
1063
|
-
var _this = _super.call(this, {
|
|
1064
|
-
message: message || "computed group id does not match the assigned id of one or more transactions",
|
|
1065
|
-
providerId
|
|
1066
|
-
}) || this;
|
|
1067
|
-
_this.code = enums_1.ARC0027ErrorCodeEnum.InvalidGroupIdError;
|
|
1068
|
-
_this.name = "InvalidGroupIdError";
|
|
1069
|
-
return _this;
|
|
1070
|
-
}
|
|
1071
|
-
return ARC0027InvalidGroupIdError2;
|
|
1072
|
-
}(BaseARC0027Error_1.default)
|
|
1073
|
-
);
|
|
1074
|
-
exports.default = ARC0027InvalidGroupIdError;
|
|
1075
|
-
}
|
|
1076
|
-
});
|
|
1077
|
-
|
|
1078
|
-
// ../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/errors/ARC0027InvalidInputError.js
|
|
1079
|
-
var require_ARC0027InvalidInputError = __commonJS({
|
|
1080
|
-
"../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/errors/ARC0027InvalidInputError.js"(exports) {
|
|
1081
|
-
"use strict";
|
|
1082
|
-
var __extends = exports && exports.__extends || /* @__PURE__ */ function() {
|
|
1083
|
-
var extendStatics = function(d, b) {
|
|
1084
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
1085
|
-
d2.__proto__ = b2;
|
|
1086
|
-
} || function(d2, b2) {
|
|
1087
|
-
for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
|
|
1088
|
-
};
|
|
1089
|
-
return extendStatics(d, b);
|
|
1090
|
-
};
|
|
1091
|
-
return function(d, b) {
|
|
1092
|
-
if (typeof b !== "function" && b !== null)
|
|
1093
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
1094
|
-
extendStatics(d, b);
|
|
1095
|
-
function __() {
|
|
1096
|
-
this.constructor = d;
|
|
1097
|
-
}
|
|
1098
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1099
|
-
};
|
|
1100
|
-
}();
|
|
1101
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
1102
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
1103
|
-
};
|
|
1104
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1105
|
-
var enums_1 = require_enums();
|
|
1106
|
-
var BaseARC0027Error_1 = __importDefault(require_BaseARC0027Error());
|
|
1107
|
-
var ARC0027InvalidInputError = (
|
|
1108
|
-
/** @class */
|
|
1109
|
-
function(_super) {
|
|
1110
|
-
__extends(ARC0027InvalidInputError2, _super);
|
|
1111
|
-
function ARC0027InvalidInputError2(_a) {
|
|
1112
|
-
var message = _a.message, providerId = _a.providerId;
|
|
1113
|
-
var _this = _super.call(this, {
|
|
1114
|
-
message: message || "invalid input in transaction(s)",
|
|
1115
|
-
providerId
|
|
1116
|
-
}) || this;
|
|
1117
|
-
_this.code = enums_1.ARC0027ErrorCodeEnum.InvalidInputError;
|
|
1118
|
-
_this.name = "InvalidInputError";
|
|
1119
|
-
return _this;
|
|
1120
|
-
}
|
|
1121
|
-
return ARC0027InvalidInputError2;
|
|
1122
|
-
}(BaseARC0027Error_1.default)
|
|
1123
|
-
);
|
|
1124
|
-
exports.default = ARC0027InvalidInputError;
|
|
1125
|
-
}
|
|
1126
|
-
});
|
|
1127
|
-
|
|
1128
|
-
// ../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/errors/ARC0027MethodCanceledError.js
|
|
1129
|
-
var require_ARC0027MethodCanceledError = __commonJS({
|
|
1130
|
-
"../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/errors/ARC0027MethodCanceledError.js"(exports) {
|
|
1131
|
-
"use strict";
|
|
1132
|
-
var __extends = exports && exports.__extends || /* @__PURE__ */ function() {
|
|
1133
|
-
var extendStatics = function(d, b) {
|
|
1134
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
1135
|
-
d2.__proto__ = b2;
|
|
1136
|
-
} || function(d2, b2) {
|
|
1137
|
-
for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
|
|
1138
|
-
};
|
|
1139
|
-
return extendStatics(d, b);
|
|
1140
|
-
};
|
|
1141
|
-
return function(d, b) {
|
|
1142
|
-
if (typeof b !== "function" && b !== null)
|
|
1143
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
1144
|
-
extendStatics(d, b);
|
|
1145
|
-
function __() {
|
|
1146
|
-
this.constructor = d;
|
|
1147
|
-
}
|
|
1148
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1149
|
-
};
|
|
1150
|
-
}();
|
|
1151
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
1152
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
1153
|
-
};
|
|
1154
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1155
|
-
var enums_1 = require_enums();
|
|
1156
|
-
var BaseARC0027Error_1 = __importDefault(require_BaseARC0027Error());
|
|
1157
|
-
var ARC0027MethodCanceledError = (
|
|
1158
|
-
/** @class */
|
|
1159
|
-
function(_super) {
|
|
1160
|
-
__extends(ARC0027MethodCanceledError2, _super);
|
|
1161
|
-
function ARC0027MethodCanceledError2(_a) {
|
|
1162
|
-
var message = _a.message, method = _a.method, providerId = _a.providerId;
|
|
1163
|
-
var _this = _super.call(this, {
|
|
1164
|
-
message: message || 'method "'.concat(method, '" canceled for provider "').concat(providerId, '"'),
|
|
1165
|
-
providerId
|
|
1166
|
-
}) || this;
|
|
1167
|
-
_this.code = enums_1.ARC0027ErrorCodeEnum.MethodCanceledError;
|
|
1168
|
-
_this.name = "MethodCanceledError";
|
|
1169
|
-
_this.data = {
|
|
1170
|
-
method
|
|
1171
|
-
};
|
|
1172
|
-
return _this;
|
|
1173
|
-
}
|
|
1174
|
-
return ARC0027MethodCanceledError2;
|
|
1175
|
-
}(BaseARC0027Error_1.default)
|
|
1176
|
-
);
|
|
1177
|
-
exports.default = ARC0027MethodCanceledError;
|
|
1178
|
-
}
|
|
1179
|
-
});
|
|
1180
|
-
|
|
1181
|
-
// ../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/errors/ARC0027MethodNotSupportedError.js
|
|
1182
|
-
var require_ARC0027MethodNotSupportedError = __commonJS({
|
|
1183
|
-
"../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/errors/ARC0027MethodNotSupportedError.js"(exports) {
|
|
1184
|
-
"use strict";
|
|
1185
|
-
var __extends = exports && exports.__extends || /* @__PURE__ */ function() {
|
|
1186
|
-
var extendStatics = function(d, b) {
|
|
1187
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
1188
|
-
d2.__proto__ = b2;
|
|
1189
|
-
} || function(d2, b2) {
|
|
1190
|
-
for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
|
|
1191
|
-
};
|
|
1192
|
-
return extendStatics(d, b);
|
|
1193
|
-
};
|
|
1194
|
-
return function(d, b) {
|
|
1195
|
-
if (typeof b !== "function" && b !== null)
|
|
1196
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
1197
|
-
extendStatics(d, b);
|
|
1198
|
-
function __() {
|
|
1199
|
-
this.constructor = d;
|
|
1200
|
-
}
|
|
1201
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1202
|
-
};
|
|
1203
|
-
}();
|
|
1204
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
1205
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
1206
|
-
};
|
|
1207
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1208
|
-
var enums_1 = require_enums();
|
|
1209
|
-
var BaseARC0027Error_1 = __importDefault(require_BaseARC0027Error());
|
|
1210
|
-
var ARC0027MethodSupportedError = (
|
|
1211
|
-
/** @class */
|
|
1212
|
-
function(_super) {
|
|
1213
|
-
__extends(ARC0027MethodSupportedError2, _super);
|
|
1214
|
-
function ARC0027MethodSupportedError2(_a) {
|
|
1215
|
-
var message = _a.message, method = _a.method, providerId = _a.providerId;
|
|
1216
|
-
var _this = _super.call(this, {
|
|
1217
|
-
message: message || 'method "'.concat(method, '" not supported for provider "').concat(providerId, '"'),
|
|
1218
|
-
providerId
|
|
1219
|
-
}) || this;
|
|
1220
|
-
_this.code = enums_1.ARC0027ErrorCodeEnum.MethodNotSupportedError;
|
|
1221
|
-
_this.name = "MethodNotSupportedError";
|
|
1222
|
-
_this.data = {
|
|
1223
|
-
method
|
|
1224
|
-
};
|
|
1225
|
-
return _this;
|
|
1226
|
-
}
|
|
1227
|
-
return ARC0027MethodSupportedError2;
|
|
1228
|
-
}(BaseARC0027Error_1.default)
|
|
1229
|
-
);
|
|
1230
|
-
exports.default = ARC0027MethodSupportedError;
|
|
1231
|
-
}
|
|
1232
|
-
});
|
|
1233
|
-
|
|
1234
|
-
// ../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/errors/ARC0027MethodTimedOutError.js
|
|
1235
|
-
var require_ARC0027MethodTimedOutError = __commonJS({
|
|
1236
|
-
"../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/errors/ARC0027MethodTimedOutError.js"(exports) {
|
|
1237
|
-
"use strict";
|
|
1238
|
-
var __extends = exports && exports.__extends || /* @__PURE__ */ function() {
|
|
1239
|
-
var extendStatics = function(d, b) {
|
|
1240
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
1241
|
-
d2.__proto__ = b2;
|
|
1242
|
-
} || function(d2, b2) {
|
|
1243
|
-
for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
|
|
1244
|
-
};
|
|
1245
|
-
return extendStatics(d, b);
|
|
1246
|
-
};
|
|
1247
|
-
return function(d, b) {
|
|
1248
|
-
if (typeof b !== "function" && b !== null)
|
|
1249
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
1250
|
-
extendStatics(d, b);
|
|
1251
|
-
function __() {
|
|
1252
|
-
this.constructor = d;
|
|
1253
|
-
}
|
|
1254
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1255
|
-
};
|
|
1256
|
-
}();
|
|
1257
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
1258
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
1259
|
-
};
|
|
1260
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1261
|
-
var enums_1 = require_enums();
|
|
1262
|
-
var BaseARC0027Error_1 = __importDefault(require_BaseARC0027Error());
|
|
1263
|
-
var ARC0027MethodTimedOutError = (
|
|
1264
|
-
/** @class */
|
|
1265
|
-
function(_super) {
|
|
1266
|
-
__extends(ARC0027MethodTimedOutError2, _super);
|
|
1267
|
-
function ARC0027MethodTimedOutError2(_a) {
|
|
1268
|
-
var message = _a.message, method = _a.method, providerId = _a.providerId;
|
|
1269
|
-
var _this = _super.call(this, {
|
|
1270
|
-
message: message || 'method "'.concat(method, '" timed out'),
|
|
1271
|
-
providerId
|
|
1272
|
-
}) || this;
|
|
1273
|
-
_this.code = enums_1.ARC0027ErrorCodeEnum.MethodTimedOutError;
|
|
1274
|
-
_this.name = "MethodTimedOutError";
|
|
1275
|
-
_this.data = {
|
|
1276
|
-
method
|
|
1277
|
-
};
|
|
1278
|
-
return _this;
|
|
1279
|
-
}
|
|
1280
|
-
return ARC0027MethodTimedOutError2;
|
|
1281
|
-
}(BaseARC0027Error_1.default)
|
|
1282
|
-
);
|
|
1283
|
-
exports.default = ARC0027MethodTimedOutError;
|
|
1284
|
-
}
|
|
1285
|
-
});
|
|
1286
|
-
|
|
1287
|
-
// ../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/errors/ARC0027NetworkNotSupportedError.js
|
|
1288
|
-
var require_ARC0027NetworkNotSupportedError = __commonJS({
|
|
1289
|
-
"../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/errors/ARC0027NetworkNotSupportedError.js"(exports) {
|
|
1290
|
-
"use strict";
|
|
1291
|
-
var __extends = exports && exports.__extends || /* @__PURE__ */ function() {
|
|
1292
|
-
var extendStatics = function(d, b) {
|
|
1293
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
1294
|
-
d2.__proto__ = b2;
|
|
1295
|
-
} || function(d2, b2) {
|
|
1296
|
-
for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
|
|
1297
|
-
};
|
|
1298
|
-
return extendStatics(d, b);
|
|
1299
|
-
};
|
|
1300
|
-
return function(d, b) {
|
|
1301
|
-
if (typeof b !== "function" && b !== null)
|
|
1302
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
1303
|
-
extendStatics(d, b);
|
|
1304
|
-
function __() {
|
|
1305
|
-
this.constructor = d;
|
|
1306
|
-
}
|
|
1307
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1308
|
-
};
|
|
1309
|
-
}();
|
|
1310
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
1311
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
1312
|
-
};
|
|
1313
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1314
|
-
var enums_1 = require_enums();
|
|
1315
|
-
var BaseARC0027Error_1 = __importDefault(require_BaseARC0027Error());
|
|
1316
|
-
var ARC0027NetworkNotSupportedError = (
|
|
1317
|
-
/** @class */
|
|
1318
|
-
function(_super) {
|
|
1319
|
-
__extends(ARC0027NetworkNotSupportedError2, _super);
|
|
1320
|
-
function ARC0027NetworkNotSupportedError2(_a) {
|
|
1321
|
-
var genesisHashes = _a.genesisHashes, message = _a.message, providerId = _a.providerId;
|
|
1322
|
-
var _this = _super.call(this, {
|
|
1323
|
-
message: message || "provider does not support network with genesis hashes [".concat(genesisHashes.map(function(value) {
|
|
1324
|
-
return '"'.concat(value, '"');
|
|
1325
|
-
}).join(","), "]"),
|
|
1326
|
-
providerId
|
|
1327
|
-
}) || this;
|
|
1328
|
-
_this.code = enums_1.ARC0027ErrorCodeEnum.NetworkNotSupportedError;
|
|
1329
|
-
_this.name = "NetworkNotSupportedError";
|
|
1330
|
-
_this.data = {
|
|
1331
|
-
genesisHashes
|
|
1332
|
-
};
|
|
1333
|
-
return _this;
|
|
1334
|
-
}
|
|
1335
|
-
return ARC0027NetworkNotSupportedError2;
|
|
1336
|
-
}(BaseARC0027Error_1.default)
|
|
1337
|
-
);
|
|
1338
|
-
exports.default = ARC0027NetworkNotSupportedError;
|
|
1339
|
-
}
|
|
1340
|
-
});
|
|
1341
|
-
|
|
1342
|
-
// ../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/errors/ARC0027UnauthorizedSignerError.js
|
|
1343
|
-
var require_ARC0027UnauthorizedSignerError = __commonJS({
|
|
1344
|
-
"../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/errors/ARC0027UnauthorizedSignerError.js"(exports) {
|
|
1345
|
-
"use strict";
|
|
1346
|
-
var __extends = exports && exports.__extends || /* @__PURE__ */ function() {
|
|
1347
|
-
var extendStatics = function(d, b) {
|
|
1348
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
1349
|
-
d2.__proto__ = b2;
|
|
1350
|
-
} || function(d2, b2) {
|
|
1351
|
-
for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
|
|
1352
|
-
};
|
|
1353
|
-
return extendStatics(d, b);
|
|
1354
|
-
};
|
|
1355
|
-
return function(d, b) {
|
|
1356
|
-
if (typeof b !== "function" && b !== null)
|
|
1357
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
1358
|
-
extendStatics(d, b);
|
|
1359
|
-
function __() {
|
|
1360
|
-
this.constructor = d;
|
|
1361
|
-
}
|
|
1362
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1363
|
-
};
|
|
1364
|
-
}();
|
|
1365
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
1366
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
1367
|
-
};
|
|
1368
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1369
|
-
var enums_1 = require_enums();
|
|
1370
|
-
var BaseARC0027Error_1 = __importDefault(require_BaseARC0027Error());
|
|
1371
|
-
var ARC0027UnauthorizedSignerError = (
|
|
1372
|
-
/** @class */
|
|
1373
|
-
function(_super) {
|
|
1374
|
-
__extends(ARC0027UnauthorizedSignerError2, _super);
|
|
1375
|
-
function ARC0027UnauthorizedSignerError2(_a) {
|
|
1376
|
-
var message = _a.message, providerId = _a.providerId, signer = _a.signer;
|
|
1377
|
-
var _this = _super.call(this, {
|
|
1378
|
-
message: message || "unauthorized signer".concat(signer ? ' "'.concat(signer, '"') : ""),
|
|
1379
|
-
providerId
|
|
1380
|
-
}) || this;
|
|
1381
|
-
_this.code = enums_1.ARC0027ErrorCodeEnum.UnauthorizedSignerError;
|
|
1382
|
-
_this.name = "UnauthorizedSignerError";
|
|
1383
|
-
_this.data = {
|
|
1384
|
-
signer
|
|
1385
|
-
};
|
|
1386
|
-
return _this;
|
|
1387
|
-
}
|
|
1388
|
-
return ARC0027UnauthorizedSignerError2;
|
|
1389
|
-
}(BaseARC0027Error_1.default)
|
|
1390
|
-
);
|
|
1391
|
-
exports.default = ARC0027UnauthorizedSignerError;
|
|
1392
|
-
}
|
|
1393
|
-
});
|
|
1394
|
-
|
|
1395
|
-
// ../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/errors/ARC0027UnknownError.js
|
|
1396
|
-
var require_ARC0027UnknownError = __commonJS({
|
|
1397
|
-
"../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/errors/ARC0027UnknownError.js"(exports) {
|
|
1398
|
-
"use strict";
|
|
1399
|
-
var __extends = exports && exports.__extends || /* @__PURE__ */ function() {
|
|
1400
|
-
var extendStatics = function(d, b) {
|
|
1401
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
1402
|
-
d2.__proto__ = b2;
|
|
1403
|
-
} || function(d2, b2) {
|
|
1404
|
-
for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
|
|
1405
|
-
};
|
|
1406
|
-
return extendStatics(d, b);
|
|
1407
|
-
};
|
|
1408
|
-
return function(d, b) {
|
|
1409
|
-
if (typeof b !== "function" && b !== null)
|
|
1410
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
1411
|
-
extendStatics(d, b);
|
|
1412
|
-
function __() {
|
|
1413
|
-
this.constructor = d;
|
|
1414
|
-
}
|
|
1415
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1416
|
-
};
|
|
1417
|
-
}();
|
|
1418
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
1419
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
1420
|
-
};
|
|
1421
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1422
|
-
var enums_1 = require_enums();
|
|
1423
|
-
var BaseARC0027Error_1 = __importDefault(require_BaseARC0027Error());
|
|
1424
|
-
var ARC0027UnknownError = (
|
|
1425
|
-
/** @class */
|
|
1426
|
-
function(_super) {
|
|
1427
|
-
__extends(ARC0027UnknownError2, _super);
|
|
1428
|
-
function ARC0027UnknownError2() {
|
|
1429
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
1430
|
-
_this.code = enums_1.ARC0027ErrorCodeEnum.UnknownError;
|
|
1431
|
-
_this.name = "UnknownError";
|
|
1432
|
-
return _this;
|
|
1433
|
-
}
|
|
1434
|
-
return ARC0027UnknownError2;
|
|
1435
|
-
}(BaseARC0027Error_1.default)
|
|
1436
|
-
);
|
|
1437
|
-
exports.default = ARC0027UnknownError;
|
|
1438
|
-
}
|
|
1439
|
-
});
|
|
1440
|
-
|
|
1441
|
-
// ../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/errors/index.js
|
|
1442
|
-
var require_errors = __commonJS({
|
|
1443
|
-
"../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/errors/index.js"(exports) {
|
|
1444
|
-
"use strict";
|
|
1445
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
1446
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
1447
|
-
};
|
|
1448
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1449
|
-
exports.BaseARC0027Error = exports.ARC0027UnknownError = exports.ARC0027UnauthorizedSignerError = exports.ARC0027NetworkNotSupportedError = exports.ARC0027MethodTimedOutError = exports.ARC0027MethodNotSupportedError = exports.ARC0027MethodCanceledError = exports.ARC0027InvalidInputError = exports.ARC0027InvalidGroupIdError = exports.ARC0027FailedToPostSomeTransactionsError = void 0;
|
|
1450
|
-
var ARC0027FailedToPostSomeTransactionsError_1 = require_ARC0027FailedToPostSomeTransactionsError();
|
|
1451
|
-
Object.defineProperty(exports, "ARC0027FailedToPostSomeTransactionsError", { enumerable: true, get: function() {
|
|
1452
|
-
return __importDefault(ARC0027FailedToPostSomeTransactionsError_1).default;
|
|
1453
|
-
} });
|
|
1454
|
-
var ARC0027InvalidGroupIdError_1 = require_ARC0027InvalidGroupIdError();
|
|
1455
|
-
Object.defineProperty(exports, "ARC0027InvalidGroupIdError", { enumerable: true, get: function() {
|
|
1456
|
-
return __importDefault(ARC0027InvalidGroupIdError_1).default;
|
|
1457
|
-
} });
|
|
1458
|
-
var ARC0027InvalidInputError_1 = require_ARC0027InvalidInputError();
|
|
1459
|
-
Object.defineProperty(exports, "ARC0027InvalidInputError", { enumerable: true, get: function() {
|
|
1460
|
-
return __importDefault(ARC0027InvalidInputError_1).default;
|
|
1461
|
-
} });
|
|
1462
|
-
var ARC0027MethodCanceledError_1 = require_ARC0027MethodCanceledError();
|
|
1463
|
-
Object.defineProperty(exports, "ARC0027MethodCanceledError", { enumerable: true, get: function() {
|
|
1464
|
-
return __importDefault(ARC0027MethodCanceledError_1).default;
|
|
1465
|
-
} });
|
|
1466
|
-
var ARC0027MethodNotSupportedError_1 = require_ARC0027MethodNotSupportedError();
|
|
1467
|
-
Object.defineProperty(exports, "ARC0027MethodNotSupportedError", { enumerable: true, get: function() {
|
|
1468
|
-
return __importDefault(ARC0027MethodNotSupportedError_1).default;
|
|
1469
|
-
} });
|
|
1470
|
-
var ARC0027MethodTimedOutError_1 = require_ARC0027MethodTimedOutError();
|
|
1471
|
-
Object.defineProperty(exports, "ARC0027MethodTimedOutError", { enumerable: true, get: function() {
|
|
1472
|
-
return __importDefault(ARC0027MethodTimedOutError_1).default;
|
|
1473
|
-
} });
|
|
1474
|
-
var ARC0027NetworkNotSupportedError_1 = require_ARC0027NetworkNotSupportedError();
|
|
1475
|
-
Object.defineProperty(exports, "ARC0027NetworkNotSupportedError", { enumerable: true, get: function() {
|
|
1476
|
-
return __importDefault(ARC0027NetworkNotSupportedError_1).default;
|
|
1477
|
-
} });
|
|
1478
|
-
var ARC0027UnauthorizedSignerError_1 = require_ARC0027UnauthorizedSignerError();
|
|
1479
|
-
Object.defineProperty(exports, "ARC0027UnauthorizedSignerError", { enumerable: true, get: function() {
|
|
1480
|
-
return __importDefault(ARC0027UnauthorizedSignerError_1).default;
|
|
1481
|
-
} });
|
|
1482
|
-
var ARC0027UnknownError_1 = require_ARC0027UnknownError();
|
|
1483
|
-
Object.defineProperty(exports, "ARC0027UnknownError", { enumerable: true, get: function() {
|
|
1484
|
-
return __importDefault(ARC0027UnknownError_1).default;
|
|
1485
|
-
} });
|
|
1486
|
-
var BaseARC0027Error_1 = require_BaseARC0027Error();
|
|
1487
|
-
Object.defineProperty(exports, "BaseARC0027Error", { enumerable: true, get: function() {
|
|
1488
|
-
return __importDefault(BaseARC0027Error_1).default;
|
|
1489
|
-
} });
|
|
1490
|
-
}
|
|
1491
|
-
});
|
|
1492
|
-
|
|
1493
|
-
// ../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/messages/BaseResponseMessage.js
|
|
1494
|
-
var require_BaseResponseMessage = __commonJS({
|
|
1495
|
-
"../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/messages/BaseResponseMessage.js"(exports) {
|
|
1496
|
-
"use strict";
|
|
1497
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1498
|
-
var BaseResponseMessage = (
|
|
1499
|
-
/** @class */
|
|
1500
|
-
/* @__PURE__ */ function() {
|
|
1501
|
-
function BaseResponseMessage2(_a) {
|
|
1502
|
-
var id = _a.id, reference = _a.reference, requestId = _a.requestId;
|
|
1503
|
-
this.id = id;
|
|
1504
|
-
this.reference = reference;
|
|
1505
|
-
this.requestId = requestId;
|
|
1506
|
-
}
|
|
1507
|
-
return BaseResponseMessage2;
|
|
1508
|
-
}()
|
|
1509
|
-
);
|
|
1510
|
-
exports.default = BaseResponseMessage;
|
|
1511
|
-
}
|
|
1512
|
-
});
|
|
1513
|
-
|
|
1514
|
-
// ../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/messages/RequestMessage.js
|
|
1515
|
-
var require_RequestMessage = __commonJS({
|
|
1516
|
-
"../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/messages/RequestMessage.js"(exports) {
|
|
1517
|
-
"use strict";
|
|
1518
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1519
|
-
var RequestMessage = (
|
|
1520
|
-
/** @class */
|
|
1521
|
-
/* @__PURE__ */ function() {
|
|
1522
|
-
function RequestMessage2(_a) {
|
|
1523
|
-
var id = _a.id, params = _a.params, reference = _a.reference;
|
|
1524
|
-
this.id = id;
|
|
1525
|
-
this.params = params;
|
|
1526
|
-
this.reference = reference;
|
|
1527
|
-
}
|
|
1528
|
-
return RequestMessage2;
|
|
1529
|
-
}()
|
|
1530
|
-
);
|
|
1531
|
-
exports.default = RequestMessage;
|
|
1532
|
-
}
|
|
1533
|
-
});
|
|
1534
|
-
|
|
1535
|
-
// ../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/messages/ResponseMessageWithError.js
|
|
1536
|
-
var require_ResponseMessageWithError = __commonJS({
|
|
1537
|
-
"../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/messages/ResponseMessageWithError.js"(exports) {
|
|
1538
|
-
"use strict";
|
|
1539
|
-
var __extends = exports && exports.__extends || /* @__PURE__ */ function() {
|
|
1540
|
-
var extendStatics = function(d, b) {
|
|
1541
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
1542
|
-
d2.__proto__ = b2;
|
|
1543
|
-
} || function(d2, b2) {
|
|
1544
|
-
for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
|
|
1545
|
-
};
|
|
1546
|
-
return extendStatics(d, b);
|
|
1547
|
-
};
|
|
1548
|
-
return function(d, b) {
|
|
1549
|
-
if (typeof b !== "function" && b !== null)
|
|
1550
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
1551
|
-
extendStatics(d, b);
|
|
1552
|
-
function __() {
|
|
1553
|
-
this.constructor = d;
|
|
1554
|
-
}
|
|
1555
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1556
|
-
};
|
|
1557
|
-
}();
|
|
1558
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
1559
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
1560
|
-
};
|
|
1561
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1562
|
-
var BaseResponseMessage_1 = __importDefault(require_BaseResponseMessage());
|
|
1563
|
-
var ResponseMessageWithError = (
|
|
1564
|
-
/** @class */
|
|
1565
|
-
function(_super) {
|
|
1566
|
-
__extends(ResponseMessageWithError2, _super);
|
|
1567
|
-
function ResponseMessageWithError2(_a) {
|
|
1568
|
-
var error = _a.error, id = _a.id, reference = _a.reference, requestId = _a.requestId;
|
|
1569
|
-
var _this = _super.call(this, { id, reference, requestId }) || this;
|
|
1570
|
-
_this.error = error;
|
|
1571
|
-
return _this;
|
|
1572
|
-
}
|
|
1573
|
-
return ResponseMessageWithError2;
|
|
1574
|
-
}(BaseResponseMessage_1.default)
|
|
1575
|
-
);
|
|
1576
|
-
exports.default = ResponseMessageWithError;
|
|
1577
|
-
}
|
|
1578
|
-
});
|
|
1579
|
-
|
|
1580
|
-
// ../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/messages/ResponseMessageWithResult.js
|
|
1581
|
-
var require_ResponseMessageWithResult = __commonJS({
|
|
1582
|
-
"../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/messages/ResponseMessageWithResult.js"(exports) {
|
|
1583
|
-
"use strict";
|
|
1584
|
-
var __extends = exports && exports.__extends || /* @__PURE__ */ function() {
|
|
1585
|
-
var extendStatics = function(d, b) {
|
|
1586
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
1587
|
-
d2.__proto__ = b2;
|
|
1588
|
-
} || function(d2, b2) {
|
|
1589
|
-
for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
|
|
1590
|
-
};
|
|
1591
|
-
return extendStatics(d, b);
|
|
1592
|
-
};
|
|
1593
|
-
return function(d, b) {
|
|
1594
|
-
if (typeof b !== "function" && b !== null)
|
|
1595
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
1596
|
-
extendStatics(d, b);
|
|
1597
|
-
function __() {
|
|
1598
|
-
this.constructor = d;
|
|
1599
|
-
}
|
|
1600
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1601
|
-
};
|
|
1602
|
-
}();
|
|
1603
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
1604
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
1605
|
-
};
|
|
1606
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1607
|
-
var BaseResponseMessage_1 = __importDefault(require_BaseResponseMessage());
|
|
1608
|
-
var ResponseMessageWithResult = (
|
|
1609
|
-
/** @class */
|
|
1610
|
-
function(_super) {
|
|
1611
|
-
__extends(ResponseMessageWithResult2, _super);
|
|
1612
|
-
function ResponseMessageWithResult2(_a) {
|
|
1613
|
-
var id = _a.id, reference = _a.reference, requestId = _a.requestId, result = _a.result;
|
|
1614
|
-
var _this = _super.call(this, { id, reference, requestId }) || this;
|
|
1615
|
-
_this.result = result;
|
|
1616
|
-
return _this;
|
|
1617
|
-
}
|
|
1618
|
-
return ResponseMessageWithResult2;
|
|
1619
|
-
}(BaseResponseMessage_1.default)
|
|
1620
|
-
);
|
|
1621
|
-
exports.default = ResponseMessageWithResult;
|
|
1622
|
-
}
|
|
1623
|
-
});
|
|
1624
|
-
|
|
1625
|
-
// ../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/messages/index.js
|
|
1626
|
-
var require_messages = __commonJS({
|
|
1627
|
-
"../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/messages/index.js"(exports) {
|
|
1628
|
-
"use strict";
|
|
1629
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
1630
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
1631
|
-
};
|
|
1632
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1633
|
-
exports.ResponseMessageWithResult = exports.ResponseMessageWithError = exports.RequestMessage = exports.BaseResponseMessage = void 0;
|
|
1634
|
-
var BaseResponseMessage_1 = require_BaseResponseMessage();
|
|
1635
|
-
Object.defineProperty(exports, "BaseResponseMessage", { enumerable: true, get: function() {
|
|
1636
|
-
return __importDefault(BaseResponseMessage_1).default;
|
|
1637
|
-
} });
|
|
1638
|
-
var RequestMessage_1 = require_RequestMessage();
|
|
1639
|
-
Object.defineProperty(exports, "RequestMessage", { enumerable: true, get: function() {
|
|
1640
|
-
return __importDefault(RequestMessage_1).default;
|
|
1641
|
-
} });
|
|
1642
|
-
var ResponseMessageWithError_1 = require_ResponseMessageWithError();
|
|
1643
|
-
Object.defineProperty(exports, "ResponseMessageWithError", { enumerable: true, get: function() {
|
|
1644
|
-
return __importDefault(ResponseMessageWithError_1).default;
|
|
1645
|
-
} });
|
|
1646
|
-
var ResponseMessageWithResult_1 = require_ResponseMessageWithResult();
|
|
1647
|
-
Object.defineProperty(exports, "ResponseMessageWithResult", { enumerable: true, get: function() {
|
|
1648
|
-
return __importDefault(ResponseMessageWithResult_1).default;
|
|
1649
|
-
} });
|
|
1650
|
-
}
|
|
1651
|
-
});
|
|
1652
|
-
|
|
1653
|
-
// ../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/utils/createMessageReference.js
|
|
1654
|
-
var require_createMessageReference = __commonJS({
|
|
1655
|
-
"../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/utils/createMessageReference.js"(exports) {
|
|
1656
|
-
"use strict";
|
|
1657
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1658
|
-
var constants_1 = require_constants();
|
|
1659
|
-
function createMessageReference(method, type) {
|
|
1660
|
-
return "".concat(constants_1.ARC0027_PREFIX, ":").concat(method, ":").concat(type);
|
|
1661
|
-
}
|
|
1662
|
-
exports.default = createMessageReference;
|
|
1663
|
-
}
|
|
1664
|
-
});
|
|
1665
|
-
|
|
1666
|
-
// ../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/utils/index.js
|
|
1667
|
-
var require_utils = __commonJS({
|
|
1668
|
-
"../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/utils/index.js"(exports) {
|
|
1669
|
-
"use strict";
|
|
1670
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
1671
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
1672
|
-
};
|
|
1673
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1674
|
-
exports.createMessageReference = void 0;
|
|
1675
|
-
var createMessageReference_1 = require_createMessageReference();
|
|
1676
|
-
Object.defineProperty(exports, "createMessageReference", { enumerable: true, get: function() {
|
|
1677
|
-
return __importDefault(createMessageReference_1).default;
|
|
1678
|
-
} });
|
|
1679
|
-
}
|
|
1680
|
-
});
|
|
1681
|
-
|
|
1682
|
-
// ../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/controllers/AVMWebClient.js
|
|
1683
|
-
var require_AVMWebClient = __commonJS({
|
|
1684
|
-
"../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/controllers/AVMWebClient.js"(exports) {
|
|
1685
|
-
"use strict";
|
|
1686
|
-
var __extends = exports && exports.__extends || /* @__PURE__ */ function() {
|
|
1687
|
-
var extendStatics = function(d, b) {
|
|
1688
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
1689
|
-
d2.__proto__ = b2;
|
|
1690
|
-
} || function(d2, b2) {
|
|
1691
|
-
for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
|
|
1692
|
-
};
|
|
1693
|
-
return extendStatics(d, b);
|
|
1694
|
-
};
|
|
1695
|
-
return function(d, b) {
|
|
1696
|
-
if (typeof b !== "function" && b !== null)
|
|
1697
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
1698
|
-
extendStatics(d, b);
|
|
1699
|
-
function __() {
|
|
1700
|
-
this.constructor = d;
|
|
1701
|
-
}
|
|
1702
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1703
|
-
};
|
|
1704
|
-
}();
|
|
1705
|
-
var __assign = exports && exports.__assign || function() {
|
|
1706
|
-
__assign = Object.assign || function(t) {
|
|
1707
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
1708
|
-
s = arguments[i];
|
|
1709
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
1710
|
-
t[p] = s[p];
|
|
1711
|
-
}
|
|
1712
|
-
return t;
|
|
1713
|
-
};
|
|
1714
|
-
return __assign.apply(this, arguments);
|
|
1715
|
-
};
|
|
1716
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
1717
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
1718
|
-
};
|
|
1719
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1720
|
-
var uuid_1 = require_commonjs_browser();
|
|
1721
|
-
var constants_1 = require_constants();
|
|
1722
|
-
var BaseController_1 = __importDefault(require_BaseController());
|
|
1723
|
-
var enums_1 = require_enums();
|
|
1724
|
-
var errors_1 = require_errors();
|
|
1725
|
-
var messages_1 = require_messages();
|
|
1726
|
-
var utils_1 = require_utils();
|
|
1727
|
-
var AVMWebClient = (
|
|
1728
|
-
/** @class */
|
|
1729
|
-
function(_super) {
|
|
1730
|
-
__extends(AVMWebClient2, _super);
|
|
1731
|
-
function AVMWebClient2(config) {
|
|
1732
|
-
var _this = _super.call(this, config) || this;
|
|
1733
|
-
_this._requestIds = [];
|
|
1734
|
-
return _this;
|
|
1735
|
-
}
|
|
1736
|
-
AVMWebClient2.init = function(_a) {
|
|
1737
|
-
var _b = _a === void 0 ? { debug: false } : _a, debug = _b.debug;
|
|
1738
|
-
return new AVMWebClient2({
|
|
1739
|
-
debug: debug || false
|
|
1740
|
-
});
|
|
1741
|
-
};
|
|
1742
|
-
AVMWebClient2.prototype._addListener = function(method, callback) {
|
|
1743
|
-
var _this = this;
|
|
1744
|
-
var _functionName = "_addListener";
|
|
1745
|
-
var listener = function(event) {
|
|
1746
|
-
var detail;
|
|
1747
|
-
try {
|
|
1748
|
-
detail = JSON.parse(event.detail);
|
|
1749
|
-
} catch (error) {
|
|
1750
|
-
_this._logger.error("".concat(AVMWebClient2.name, "#").concat(_functionName, ":"), error);
|
|
1751
|
-
return;
|
|
1752
|
-
}
|
|
1753
|
-
if (!_this._requestIds.includes(detail.requestId)) {
|
|
1754
|
-
return;
|
|
1755
|
-
}
|
|
1756
|
-
_this._logger.debug("".concat(AVMWebClient2.name, "#").concat(_functionName, ": received response event:"), detail);
|
|
1757
|
-
callback(__assign(__assign({}, detail), { error: detail.error || null, method, result: detail.result || null }));
|
|
1758
|
-
};
|
|
1759
|
-
var listenerID = (0, uuid_1.v4)();
|
|
1760
|
-
var reference = (0, utils_1.createMessageReference)(method, enums_1.ARC0027MessageTypeEnum.Response);
|
|
1761
|
-
window.addEventListener(reference, listener);
|
|
1762
|
-
this._listeners.set(listenerID, {
|
|
1763
|
-
listener,
|
|
1764
|
-
reference
|
|
1765
|
-
});
|
|
1766
|
-
return listenerID;
|
|
1767
|
-
};
|
|
1768
|
-
AVMWebClient2.prototype._sendRequestMessage = function(_a) {
|
|
1769
|
-
var _this = this;
|
|
1770
|
-
var method = _a.method, params = _a.params;
|
|
1771
|
-
var _functionName = "_sendRequestMessage";
|
|
1772
|
-
var id = (0, uuid_1.v4)();
|
|
1773
|
-
var reference = (0, utils_1.createMessageReference)(method, enums_1.ARC0027MessageTypeEnum.Request);
|
|
1774
|
-
try {
|
|
1775
|
-
window.dispatchEvent(new CustomEvent(reference, {
|
|
1776
|
-
detail: new messages_1.RequestMessage({
|
|
1777
|
-
id,
|
|
1778
|
-
params,
|
|
1779
|
-
reference
|
|
1780
|
-
})
|
|
1781
|
-
}));
|
|
1782
|
-
window.setTimeout(function() {
|
|
1783
|
-
_this._requestIds = _this._requestIds.filter(function(value) {
|
|
1784
|
-
return value !== id;
|
|
1785
|
-
});
|
|
1786
|
-
}, constants_1.DEFAULT_REQUEST_TIMEOUT);
|
|
1787
|
-
this._logger.debug("".concat(AVMWebClient2.name, "#").concat(_functionName, ': posted request message "').concat(reference, '" with id "').concat(id, '"'));
|
|
1788
|
-
this._requestIds.push(id);
|
|
1789
|
-
return id;
|
|
1790
|
-
} catch (error) {
|
|
1791
|
-
this._logger.error(error);
|
|
1792
|
-
throw new errors_1.ARC0027UnknownError(error.message);
|
|
1793
|
-
}
|
|
1794
|
-
};
|
|
1795
|
-
AVMWebClient2.prototype.disable = function(params) {
|
|
1796
|
-
return this._sendRequestMessage({
|
|
1797
|
-
method: enums_1.ARC0027MethodEnum.Disable,
|
|
1798
|
-
params
|
|
1799
|
-
});
|
|
1800
|
-
};
|
|
1801
|
-
AVMWebClient2.prototype.discover = function(params) {
|
|
1802
|
-
return this._sendRequestMessage({
|
|
1803
|
-
method: enums_1.ARC0027MethodEnum.Discover,
|
|
1804
|
-
params
|
|
1805
|
-
});
|
|
1806
|
-
};
|
|
1807
|
-
AVMWebClient2.prototype.enable = function(params) {
|
|
1808
|
-
return this._sendRequestMessage({
|
|
1809
|
-
method: enums_1.ARC0027MethodEnum.Enable,
|
|
1810
|
-
params
|
|
1811
|
-
});
|
|
1812
|
-
};
|
|
1813
|
-
AVMWebClient2.prototype.onDisable = function(callback) {
|
|
1814
|
-
return this._addListener(enums_1.ARC0027MethodEnum.Disable, callback);
|
|
1815
|
-
};
|
|
1816
|
-
AVMWebClient2.prototype.onDiscover = function(callback) {
|
|
1817
|
-
return this._addListener(enums_1.ARC0027MethodEnum.Discover, callback);
|
|
1818
|
-
};
|
|
1819
|
-
AVMWebClient2.prototype.onEnable = function(callback) {
|
|
1820
|
-
return this._addListener(enums_1.ARC0027MethodEnum.Enable, callback);
|
|
1821
|
-
};
|
|
1822
|
-
AVMWebClient2.prototype.onPostTransactions = function(callback) {
|
|
1823
|
-
return this._addListener(enums_1.ARC0027MethodEnum.PostTransactions, callback);
|
|
1824
|
-
};
|
|
1825
|
-
AVMWebClient2.prototype.onSignAndPostTransactions = function(callback) {
|
|
1826
|
-
return this._addListener(enums_1.ARC0027MethodEnum.SignAndPostTransactions, callback);
|
|
1827
|
-
};
|
|
1828
|
-
AVMWebClient2.prototype.onSignMessage = function(callback) {
|
|
1829
|
-
return this._addListener(enums_1.ARC0027MethodEnum.SignMessage, callback);
|
|
1830
|
-
};
|
|
1831
|
-
AVMWebClient2.prototype.onSignTransactions = function(callback) {
|
|
1832
|
-
return this._addListener(enums_1.ARC0027MethodEnum.SignTransactions, callback);
|
|
1833
|
-
};
|
|
1834
|
-
AVMWebClient2.prototype.postTransactions = function(params) {
|
|
1835
|
-
return this._sendRequestMessage({
|
|
1836
|
-
method: enums_1.ARC0027MethodEnum.PostTransactions,
|
|
1837
|
-
params
|
|
1838
|
-
});
|
|
1839
|
-
};
|
|
1840
|
-
AVMWebClient2.prototype.signAndPostTransactions = function(params) {
|
|
1841
|
-
return this._sendRequestMessage({
|
|
1842
|
-
method: enums_1.ARC0027MethodEnum.SignAndPostTransactions,
|
|
1843
|
-
params
|
|
1844
|
-
});
|
|
1845
|
-
};
|
|
1846
|
-
AVMWebClient2.prototype.signMessage = function(params) {
|
|
1847
|
-
return this._sendRequestMessage({
|
|
1848
|
-
method: enums_1.ARC0027MethodEnum.SignMessage,
|
|
1849
|
-
params
|
|
1850
|
-
});
|
|
1851
|
-
};
|
|
1852
|
-
AVMWebClient2.prototype.signTransactions = function(params) {
|
|
1853
|
-
return this._sendRequestMessage({
|
|
1854
|
-
method: enums_1.ARC0027MethodEnum.SignTransactions,
|
|
1855
|
-
params
|
|
1856
|
-
});
|
|
1857
|
-
};
|
|
1858
|
-
return AVMWebClient2;
|
|
1859
|
-
}(BaseController_1.default)
|
|
1860
|
-
);
|
|
1861
|
-
exports.default = AVMWebClient;
|
|
1862
|
-
}
|
|
1863
|
-
});
|
|
1864
|
-
|
|
1865
|
-
// ../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/controllers/AVMWebProvider.js
|
|
1866
|
-
var require_AVMWebProvider = __commonJS({
|
|
1867
|
-
"../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/controllers/AVMWebProvider.js"(exports) {
|
|
1868
|
-
"use strict";
|
|
1869
|
-
var __extends = exports && exports.__extends || /* @__PURE__ */ function() {
|
|
1870
|
-
var extendStatics = function(d, b) {
|
|
1871
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
1872
|
-
d2.__proto__ = b2;
|
|
1873
|
-
} || function(d2, b2) {
|
|
1874
|
-
for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
|
|
1875
|
-
};
|
|
1876
|
-
return extendStatics(d, b);
|
|
1877
|
-
};
|
|
1878
|
-
return function(d, b) {
|
|
1879
|
-
if (typeof b !== "function" && b !== null)
|
|
1880
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
1881
|
-
extendStatics(d, b);
|
|
1882
|
-
function __() {
|
|
1883
|
-
this.constructor = d;
|
|
1884
|
-
}
|
|
1885
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1886
|
-
};
|
|
1887
|
-
}();
|
|
1888
|
-
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
1889
|
-
function adopt(value) {
|
|
1890
|
-
return value instanceof P ? value : new P(function(resolve) {
|
|
1891
|
-
resolve(value);
|
|
1892
|
-
});
|
|
1893
|
-
}
|
|
1894
|
-
return new (P || (P = Promise))(function(resolve, reject) {
|
|
1895
|
-
function fulfilled(value) {
|
|
1896
|
-
try {
|
|
1897
|
-
step(generator.next(value));
|
|
1898
|
-
} catch (e) {
|
|
1899
|
-
reject(e);
|
|
1900
|
-
}
|
|
1901
|
-
}
|
|
1902
|
-
function rejected(value) {
|
|
1903
|
-
try {
|
|
1904
|
-
step(generator["throw"](value));
|
|
1905
|
-
} catch (e) {
|
|
1906
|
-
reject(e);
|
|
1907
|
-
}
|
|
1908
|
-
}
|
|
1909
|
-
function step(result) {
|
|
1910
|
-
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
1911
|
-
}
|
|
1912
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
1913
|
-
});
|
|
1914
|
-
};
|
|
1915
|
-
var __generator = exports && exports.__generator || function(thisArg, body) {
|
|
1916
|
-
var _ = { label: 0, sent: function() {
|
|
1917
|
-
if (t[0] & 1) throw t[1];
|
|
1918
|
-
return t[1];
|
|
1919
|
-
}, trys: [], ops: [] }, f, y, t, g;
|
|
1920
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
1921
|
-
return this;
|
|
1922
|
-
}), g;
|
|
1923
|
-
function verb(n) {
|
|
1924
|
-
return function(v) {
|
|
1925
|
-
return step([n, v]);
|
|
1926
|
-
};
|
|
1927
|
-
}
|
|
1928
|
-
function step(op) {
|
|
1929
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
1930
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
1931
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
1932
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
1933
|
-
switch (op[0]) {
|
|
1934
|
-
case 0:
|
|
1935
|
-
case 1:
|
|
1936
|
-
t = op;
|
|
1937
|
-
break;
|
|
1938
|
-
case 4:
|
|
1939
|
-
_.label++;
|
|
1940
|
-
return { value: op[1], done: false };
|
|
1941
|
-
case 5:
|
|
1942
|
-
_.label++;
|
|
1943
|
-
y = op[1];
|
|
1944
|
-
op = [0];
|
|
1945
|
-
continue;
|
|
1946
|
-
case 7:
|
|
1947
|
-
op = _.ops.pop();
|
|
1948
|
-
_.trys.pop();
|
|
1949
|
-
continue;
|
|
1950
|
-
default:
|
|
1951
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
1952
|
-
_ = 0;
|
|
1953
|
-
continue;
|
|
1954
|
-
}
|
|
1955
|
-
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
1956
|
-
_.label = op[1];
|
|
1957
|
-
break;
|
|
1958
|
-
}
|
|
1959
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
1960
|
-
_.label = t[1];
|
|
1961
|
-
t = op;
|
|
1962
|
-
break;
|
|
1963
|
-
}
|
|
1964
|
-
if (t && _.label < t[2]) {
|
|
1965
|
-
_.label = t[2];
|
|
1966
|
-
_.ops.push(op);
|
|
1967
|
-
break;
|
|
1968
|
-
}
|
|
1969
|
-
if (t[2]) _.ops.pop();
|
|
1970
|
-
_.trys.pop();
|
|
1971
|
-
continue;
|
|
1972
|
-
}
|
|
1973
|
-
op = body.call(thisArg, _);
|
|
1974
|
-
} catch (e) {
|
|
1975
|
-
op = [6, e];
|
|
1976
|
-
y = 0;
|
|
1977
|
-
} finally {
|
|
1978
|
-
f = t = 0;
|
|
1979
|
-
}
|
|
1980
|
-
if (op[0] & 5) throw op[1];
|
|
1981
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
1982
|
-
}
|
|
1983
|
-
};
|
|
1984
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
1985
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
1986
|
-
};
|
|
1987
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1988
|
-
var uuid_1 = require_commonjs_browser();
|
|
1989
|
-
var BaseController_1 = __importDefault(require_BaseController());
|
|
1990
|
-
var enums_1 = require_enums();
|
|
1991
|
-
var errors_1 = require_errors();
|
|
1992
|
-
var messages_1 = require_messages();
|
|
1993
|
-
var utils_1 = require_utils();
|
|
1994
|
-
var AVMWebProvider = (
|
|
1995
|
-
/** @class */
|
|
1996
|
-
function(_super) {
|
|
1997
|
-
__extends(AVMWebProvider2, _super);
|
|
1998
|
-
function AVMWebProvider2(config) {
|
|
1999
|
-
return _super.call(this, config) || this;
|
|
2000
|
-
}
|
|
2001
|
-
AVMWebProvider2.prototype._addListener = function(method, callback) {
|
|
2002
|
-
var _this = this;
|
|
2003
|
-
var _functionName = "_addListener";
|
|
2004
|
-
var listener = function(event) {
|
|
2005
|
-
_this._logger.debug("[".concat(_this._config.providerId, "]").concat(AVMWebProvider2.name, "#").concat(_functionName, ": received request event:"), event.detail);
|
|
2006
|
-
return _this._sendResponseMessage({
|
|
2007
|
-
callback,
|
|
2008
|
-
method,
|
|
2009
|
-
requestMessage: event.detail
|
|
2010
|
-
});
|
|
2011
|
-
};
|
|
2012
|
-
var listenerID = (0, uuid_1.v4)();
|
|
2013
|
-
var reference = (0, utils_1.createMessageReference)(method, enums_1.ARC0027MessageTypeEnum.Request);
|
|
2014
|
-
window.addEventListener(reference, listener);
|
|
2015
|
-
this._listeners.set(listenerID, {
|
|
2016
|
-
listener,
|
|
2017
|
-
reference
|
|
2018
|
-
});
|
|
2019
|
-
return listenerID;
|
|
2020
|
-
};
|
|
2021
|
-
AVMWebProvider2.prototype._sendResponseMessage = function(_a) {
|
|
2022
|
-
var _b;
|
|
2023
|
-
var callback = _a.callback, method = _a.method, requestMessage = _a.requestMessage;
|
|
2024
|
-
return __awaiter(this, void 0, void 0, function() {
|
|
2025
|
-
var _functionName, id, reference, result, error_1;
|
|
2026
|
-
return __generator(this, function(_c) {
|
|
2027
|
-
switch (_c.label) {
|
|
2028
|
-
case 0:
|
|
2029
|
-
_functionName = "_sendResponseMessage";
|
|
2030
|
-
if (((_b = requestMessage.params) === null || _b === void 0 ? void 0 : _b.providerId) && requestMessage.params.providerId !== this._config.providerId) {
|
|
2031
|
-
this._logger.debug("[".concat(this._config.providerId, "]").concat(AVMWebProvider2.name, "#").concat(_functionName, ': message "').concat(requestMessage.reference, '" is for provider "').concat(requestMessage.params.providerId, '", skipping'));
|
|
2032
|
-
return [
|
|
2033
|
-
2
|
|
2034
|
-
/*return*/
|
|
2035
|
-
];
|
|
2036
|
-
}
|
|
2037
|
-
id = (0, uuid_1.v4)();
|
|
2038
|
-
reference = (0, utils_1.createMessageReference)(method, enums_1.ARC0027MessageTypeEnum.Response);
|
|
2039
|
-
_c.label = 1;
|
|
2040
|
-
case 1:
|
|
2041
|
-
_c.trys.push([1, 3, , 4]);
|
|
2042
|
-
return [4, callback({
|
|
2043
|
-
id: requestMessage.id,
|
|
2044
|
-
method,
|
|
2045
|
-
params: requestMessage.params
|
|
2046
|
-
})];
|
|
2047
|
-
case 2:
|
|
2048
|
-
result = _c.sent();
|
|
2049
|
-
window.dispatchEvent(new CustomEvent(reference, {
|
|
2050
|
-
detail: JSON.stringify(new messages_1.ResponseMessageWithResult({
|
|
2051
|
-
id,
|
|
2052
|
-
reference,
|
|
2053
|
-
requestId: requestMessage.id,
|
|
2054
|
-
result
|
|
2055
|
-
}))
|
|
2056
|
-
}));
|
|
2057
|
-
this._logger.debug("[".concat(this._config.providerId, "]").concat(AVMWebProvider2.name, "#").concat(_functionName, ': posted response message "').concat(reference, '" with id "').concat(id, '"'));
|
|
2058
|
-
return [
|
|
2059
|
-
2
|
|
2060
|
-
/*return*/
|
|
2061
|
-
];
|
|
2062
|
-
case 3:
|
|
2063
|
-
error_1 = _c.sent();
|
|
2064
|
-
this._logger.error(error_1);
|
|
2065
|
-
if (error_1.code) {
|
|
2066
|
-
window.dispatchEvent(new CustomEvent(reference, {
|
|
2067
|
-
detail: JSON.stringify(new messages_1.ResponseMessageWithError({
|
|
2068
|
-
error: error_1,
|
|
2069
|
-
id,
|
|
2070
|
-
reference,
|
|
2071
|
-
requestId: requestMessage.id
|
|
2072
|
-
}))
|
|
2073
|
-
}));
|
|
2074
|
-
return [
|
|
2075
|
-
2
|
|
2076
|
-
/*return*/
|
|
2077
|
-
];
|
|
2078
|
-
}
|
|
2079
|
-
window.dispatchEvent(new CustomEvent(reference, {
|
|
2080
|
-
detail: JSON.stringify(new messages_1.ResponseMessageWithError({
|
|
2081
|
-
error: new errors_1.ARC0027UnknownError({
|
|
2082
|
-
message: error_1.message,
|
|
2083
|
-
providerId: this._config.providerId
|
|
2084
|
-
}),
|
|
2085
|
-
id,
|
|
2086
|
-
reference,
|
|
2087
|
-
requestId: requestMessage.id
|
|
2088
|
-
}))
|
|
2089
|
-
}));
|
|
2090
|
-
return [
|
|
2091
|
-
2
|
|
2092
|
-
/*return*/
|
|
2093
|
-
];
|
|
2094
|
-
case 4:
|
|
2095
|
-
return [
|
|
2096
|
-
2
|
|
2097
|
-
/*return*/
|
|
2098
|
-
];
|
|
2099
|
-
}
|
|
2100
|
-
});
|
|
2101
|
-
});
|
|
2102
|
-
};
|
|
2103
|
-
AVMWebProvider2.init = function(providerId, _a) {
|
|
2104
|
-
var _b = _a === void 0 ? { debug: false } : _a, debug = _b.debug;
|
|
2105
|
-
return new AVMWebProvider2({
|
|
2106
|
-
debug: debug || false,
|
|
2107
|
-
providerId
|
|
2108
|
-
});
|
|
2109
|
-
};
|
|
2110
|
-
AVMWebProvider2.prototype.onDisable = function(callback) {
|
|
2111
|
-
return this._addListener(enums_1.ARC0027MethodEnum.Disable, callback);
|
|
2112
|
-
};
|
|
2113
|
-
AVMWebProvider2.prototype.onDiscover = function(callback) {
|
|
2114
|
-
return this._addListener(enums_1.ARC0027MethodEnum.Discover, callback);
|
|
2115
|
-
};
|
|
2116
|
-
AVMWebProvider2.prototype.onEnable = function(callback) {
|
|
2117
|
-
return this._addListener(enums_1.ARC0027MethodEnum.Enable, callback);
|
|
2118
|
-
};
|
|
2119
|
-
AVMWebProvider2.prototype.onPostTransactions = function(callback) {
|
|
2120
|
-
return this._addListener(enums_1.ARC0027MethodEnum.PostTransactions, callback);
|
|
2121
|
-
};
|
|
2122
|
-
AVMWebProvider2.prototype.onSignAndPostTransactions = function(callback) {
|
|
2123
|
-
return this._addListener(enums_1.ARC0027MethodEnum.SignAndPostTransactions, callback);
|
|
2124
|
-
};
|
|
2125
|
-
AVMWebProvider2.prototype.onSignMessage = function(callback) {
|
|
2126
|
-
return this._addListener(enums_1.ARC0027MethodEnum.SignMessage, callback);
|
|
2127
|
-
};
|
|
2128
|
-
AVMWebProvider2.prototype.onSignTransactions = function(callback) {
|
|
2129
|
-
return this._addListener(enums_1.ARC0027MethodEnum.SignTransactions, callback);
|
|
2130
|
-
};
|
|
2131
|
-
return AVMWebProvider2;
|
|
2132
|
-
}(BaseController_1.default)
|
|
2133
|
-
);
|
|
2134
|
-
exports.default = AVMWebProvider;
|
|
2135
|
-
}
|
|
2136
|
-
});
|
|
2137
|
-
|
|
2138
|
-
// ../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/controllers/index.js
|
|
2139
|
-
var require_controllers = __commonJS({
|
|
2140
|
-
"../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/controllers/index.js"(exports) {
|
|
2141
|
-
"use strict";
|
|
2142
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
2143
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
2144
|
-
};
|
|
2145
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2146
|
-
exports.Logger = exports.BaseController = exports.AVMWebProvider = exports.AVMWebClient = void 0;
|
|
2147
|
-
var AVMWebClient_1 = require_AVMWebClient();
|
|
2148
|
-
Object.defineProperty(exports, "AVMWebClient", { enumerable: true, get: function() {
|
|
2149
|
-
return __importDefault(AVMWebClient_1).default;
|
|
2150
|
-
} });
|
|
2151
|
-
var AVMWebProvider_1 = require_AVMWebProvider();
|
|
2152
|
-
Object.defineProperty(exports, "AVMWebProvider", { enumerable: true, get: function() {
|
|
2153
|
-
return __importDefault(AVMWebProvider_1).default;
|
|
2154
|
-
} });
|
|
2155
|
-
var BaseController_1 = require_BaseController();
|
|
2156
|
-
Object.defineProperty(exports, "BaseController", { enumerable: true, get: function() {
|
|
2157
|
-
return __importDefault(BaseController_1).default;
|
|
2158
|
-
} });
|
|
2159
|
-
var Logger_1 = require_Logger();
|
|
2160
|
-
Object.defineProperty(exports, "Logger", { enumerable: true, get: function() {
|
|
2161
|
-
return __importDefault(Logger_1).default;
|
|
2162
|
-
} });
|
|
2163
|
-
}
|
|
2164
|
-
});
|
|
2165
|
-
|
|
2166
|
-
// ../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/types/index.js
|
|
2167
|
-
var require_types = __commonJS({
|
|
2168
|
-
"../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/types/index.js"(exports) {
|
|
2169
|
-
"use strict";
|
|
2170
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2171
|
-
}
|
|
2172
|
-
});
|
|
2173
|
-
|
|
2174
|
-
// ../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/index.js
|
|
2175
|
-
var require_dist = __commonJS({
|
|
2176
|
-
"../../node_modules/.pnpm/@agoralabs-sh+avm-web-provider@1.7.0/node_modules/@agoralabs-sh/avm-web-provider/dist/index.js"(exports) {
|
|
2177
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
2178
|
-
if (k2 === void 0) k2 = k;
|
|
2179
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
2180
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
2181
|
-
desc = { enumerable: true, get: function() {
|
|
2182
|
-
return m[k];
|
|
2183
|
-
} };
|
|
2184
|
-
}
|
|
2185
|
-
Object.defineProperty(o, k2, desc);
|
|
2186
|
-
} : function(o, m, k, k2) {
|
|
2187
|
-
if (k2 === void 0) k2 = k;
|
|
2188
|
-
o[k2] = m[k];
|
|
2189
|
-
});
|
|
2190
|
-
var __exportStar = exports && exports.__exportStar || function(m, exports2) {
|
|
2191
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
|
|
2192
|
-
};
|
|
2193
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2194
|
-
__exportStar(require_constants(), exports);
|
|
2195
|
-
__exportStar(require_controllers(), exports);
|
|
2196
|
-
__exportStar(require_enums(), exports);
|
|
2197
|
-
__exportStar(require_errors(), exports);
|
|
2198
|
-
__exportStar(require_messages(), exports);
|
|
2199
|
-
__exportStar(require_types(), exports);
|
|
2200
|
-
__exportStar(require_utils(), exports);
|
|
2201
|
-
}
|
|
2202
|
-
});
|
|
2203
|
-
export default require_dist();
|