mezon-js 2.13.67 → 2.13.69
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/api/api.ts +38873 -0
- package/api.gen.ts +253 -180
- package/client.ts +11 -4
- package/dist/api/api.d.ts +23759 -0
- package/dist/google/protobuf/struct.d.ts +201 -0
- package/dist/google/protobuf/timestamp.d.ts +139 -0
- package/dist/google/protobuf/wrappers.d.ts +238 -0
- package/dist/mezon-js.cjs.js +3169 -209
- package/dist/mezon-js.esm.mjs +3178 -208
- package/google/protobuf/struct.ts +554 -0
- package/google/protobuf/timestamp.ts +223 -0
- package/google/protobuf/wrappers.ts +670 -0
- package/package.json +2 -1
- package/rollup.config.js +5 -1
package/dist/mezon-js.esm.mjs
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
2
5
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
3
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
8
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
9
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
@@ -14,6 +18,25 @@ var __spreadValues = (a, b) => {
|
|
|
14
18
|
}
|
|
15
19
|
return a;
|
|
16
20
|
};
|
|
21
|
+
var __commonJS = (cb, mod2) => function __require() {
|
|
22
|
+
return mod2 || (0, cb[__getOwnPropNames(cb)[0]])((mod2 = { exports: {} }).exports, mod2), mod2.exports;
|
|
23
|
+
};
|
|
24
|
+
var __copyProps = (to, from, except, desc) => {
|
|
25
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
26
|
+
for (let key of __getOwnPropNames(from))
|
|
27
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
28
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
29
|
+
}
|
|
30
|
+
return to;
|
|
31
|
+
};
|
|
32
|
+
var __toESM = (mod2, isNodeMode, target) => (target = mod2 != null ? __create(__getProtoOf(mod2)) : {}, __copyProps(
|
|
33
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
34
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
35
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
36
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
37
|
+
isNodeMode || !mod2 || !mod2.__esModule ? __defProp(target, "default", { value: mod2, enumerable: true }) : target,
|
|
38
|
+
mod2
|
|
39
|
+
));
|
|
17
40
|
var __async = (__this, __arguments, generator) => {
|
|
18
41
|
return new Promise((resolve, reject) => {
|
|
19
42
|
var fulfilled = (value) => {
|
|
@@ -35,6 +58,2228 @@ var __async = (__this, __arguments, generator) => {
|
|
|
35
58
|
});
|
|
36
59
|
};
|
|
37
60
|
|
|
61
|
+
// ../../node_modules/long/src/long.js
|
|
62
|
+
var require_long = __commonJS({
|
|
63
|
+
"../../node_modules/long/src/long.js"(exports2, module2) {
|
|
64
|
+
module2.exports = Long4;
|
|
65
|
+
var wasm = null;
|
|
66
|
+
try {
|
|
67
|
+
wasm = new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([
|
|
68
|
+
0,
|
|
69
|
+
97,
|
|
70
|
+
115,
|
|
71
|
+
109,
|
|
72
|
+
1,
|
|
73
|
+
0,
|
|
74
|
+
0,
|
|
75
|
+
0,
|
|
76
|
+
1,
|
|
77
|
+
13,
|
|
78
|
+
2,
|
|
79
|
+
96,
|
|
80
|
+
0,
|
|
81
|
+
1,
|
|
82
|
+
127,
|
|
83
|
+
96,
|
|
84
|
+
4,
|
|
85
|
+
127,
|
|
86
|
+
127,
|
|
87
|
+
127,
|
|
88
|
+
127,
|
|
89
|
+
1,
|
|
90
|
+
127,
|
|
91
|
+
3,
|
|
92
|
+
7,
|
|
93
|
+
6,
|
|
94
|
+
0,
|
|
95
|
+
1,
|
|
96
|
+
1,
|
|
97
|
+
1,
|
|
98
|
+
1,
|
|
99
|
+
1,
|
|
100
|
+
6,
|
|
101
|
+
6,
|
|
102
|
+
1,
|
|
103
|
+
127,
|
|
104
|
+
1,
|
|
105
|
+
65,
|
|
106
|
+
0,
|
|
107
|
+
11,
|
|
108
|
+
7,
|
|
109
|
+
50,
|
|
110
|
+
6,
|
|
111
|
+
3,
|
|
112
|
+
109,
|
|
113
|
+
117,
|
|
114
|
+
108,
|
|
115
|
+
0,
|
|
116
|
+
1,
|
|
117
|
+
5,
|
|
118
|
+
100,
|
|
119
|
+
105,
|
|
120
|
+
118,
|
|
121
|
+
95,
|
|
122
|
+
115,
|
|
123
|
+
0,
|
|
124
|
+
2,
|
|
125
|
+
5,
|
|
126
|
+
100,
|
|
127
|
+
105,
|
|
128
|
+
118,
|
|
129
|
+
95,
|
|
130
|
+
117,
|
|
131
|
+
0,
|
|
132
|
+
3,
|
|
133
|
+
5,
|
|
134
|
+
114,
|
|
135
|
+
101,
|
|
136
|
+
109,
|
|
137
|
+
95,
|
|
138
|
+
115,
|
|
139
|
+
0,
|
|
140
|
+
4,
|
|
141
|
+
5,
|
|
142
|
+
114,
|
|
143
|
+
101,
|
|
144
|
+
109,
|
|
145
|
+
95,
|
|
146
|
+
117,
|
|
147
|
+
0,
|
|
148
|
+
5,
|
|
149
|
+
8,
|
|
150
|
+
103,
|
|
151
|
+
101,
|
|
152
|
+
116,
|
|
153
|
+
95,
|
|
154
|
+
104,
|
|
155
|
+
105,
|
|
156
|
+
103,
|
|
157
|
+
104,
|
|
158
|
+
0,
|
|
159
|
+
0,
|
|
160
|
+
10,
|
|
161
|
+
191,
|
|
162
|
+
1,
|
|
163
|
+
6,
|
|
164
|
+
4,
|
|
165
|
+
0,
|
|
166
|
+
35,
|
|
167
|
+
0,
|
|
168
|
+
11,
|
|
169
|
+
36,
|
|
170
|
+
1,
|
|
171
|
+
1,
|
|
172
|
+
126,
|
|
173
|
+
32,
|
|
174
|
+
0,
|
|
175
|
+
173,
|
|
176
|
+
32,
|
|
177
|
+
1,
|
|
178
|
+
173,
|
|
179
|
+
66,
|
|
180
|
+
32,
|
|
181
|
+
134,
|
|
182
|
+
132,
|
|
183
|
+
32,
|
|
184
|
+
2,
|
|
185
|
+
173,
|
|
186
|
+
32,
|
|
187
|
+
3,
|
|
188
|
+
173,
|
|
189
|
+
66,
|
|
190
|
+
32,
|
|
191
|
+
134,
|
|
192
|
+
132,
|
|
193
|
+
126,
|
|
194
|
+
34,
|
|
195
|
+
4,
|
|
196
|
+
66,
|
|
197
|
+
32,
|
|
198
|
+
135,
|
|
199
|
+
167,
|
|
200
|
+
36,
|
|
201
|
+
0,
|
|
202
|
+
32,
|
|
203
|
+
4,
|
|
204
|
+
167,
|
|
205
|
+
11,
|
|
206
|
+
36,
|
|
207
|
+
1,
|
|
208
|
+
1,
|
|
209
|
+
126,
|
|
210
|
+
32,
|
|
211
|
+
0,
|
|
212
|
+
173,
|
|
213
|
+
32,
|
|
214
|
+
1,
|
|
215
|
+
173,
|
|
216
|
+
66,
|
|
217
|
+
32,
|
|
218
|
+
134,
|
|
219
|
+
132,
|
|
220
|
+
32,
|
|
221
|
+
2,
|
|
222
|
+
173,
|
|
223
|
+
32,
|
|
224
|
+
3,
|
|
225
|
+
173,
|
|
226
|
+
66,
|
|
227
|
+
32,
|
|
228
|
+
134,
|
|
229
|
+
132,
|
|
230
|
+
127,
|
|
231
|
+
34,
|
|
232
|
+
4,
|
|
233
|
+
66,
|
|
234
|
+
32,
|
|
235
|
+
135,
|
|
236
|
+
167,
|
|
237
|
+
36,
|
|
238
|
+
0,
|
|
239
|
+
32,
|
|
240
|
+
4,
|
|
241
|
+
167,
|
|
242
|
+
11,
|
|
243
|
+
36,
|
|
244
|
+
1,
|
|
245
|
+
1,
|
|
246
|
+
126,
|
|
247
|
+
32,
|
|
248
|
+
0,
|
|
249
|
+
173,
|
|
250
|
+
32,
|
|
251
|
+
1,
|
|
252
|
+
173,
|
|
253
|
+
66,
|
|
254
|
+
32,
|
|
255
|
+
134,
|
|
256
|
+
132,
|
|
257
|
+
32,
|
|
258
|
+
2,
|
|
259
|
+
173,
|
|
260
|
+
32,
|
|
261
|
+
3,
|
|
262
|
+
173,
|
|
263
|
+
66,
|
|
264
|
+
32,
|
|
265
|
+
134,
|
|
266
|
+
132,
|
|
267
|
+
128,
|
|
268
|
+
34,
|
|
269
|
+
4,
|
|
270
|
+
66,
|
|
271
|
+
32,
|
|
272
|
+
135,
|
|
273
|
+
167,
|
|
274
|
+
36,
|
|
275
|
+
0,
|
|
276
|
+
32,
|
|
277
|
+
4,
|
|
278
|
+
167,
|
|
279
|
+
11,
|
|
280
|
+
36,
|
|
281
|
+
1,
|
|
282
|
+
1,
|
|
283
|
+
126,
|
|
284
|
+
32,
|
|
285
|
+
0,
|
|
286
|
+
173,
|
|
287
|
+
32,
|
|
288
|
+
1,
|
|
289
|
+
173,
|
|
290
|
+
66,
|
|
291
|
+
32,
|
|
292
|
+
134,
|
|
293
|
+
132,
|
|
294
|
+
32,
|
|
295
|
+
2,
|
|
296
|
+
173,
|
|
297
|
+
32,
|
|
298
|
+
3,
|
|
299
|
+
173,
|
|
300
|
+
66,
|
|
301
|
+
32,
|
|
302
|
+
134,
|
|
303
|
+
132,
|
|
304
|
+
129,
|
|
305
|
+
34,
|
|
306
|
+
4,
|
|
307
|
+
66,
|
|
308
|
+
32,
|
|
309
|
+
135,
|
|
310
|
+
167,
|
|
311
|
+
36,
|
|
312
|
+
0,
|
|
313
|
+
32,
|
|
314
|
+
4,
|
|
315
|
+
167,
|
|
316
|
+
11,
|
|
317
|
+
36,
|
|
318
|
+
1,
|
|
319
|
+
1,
|
|
320
|
+
126,
|
|
321
|
+
32,
|
|
322
|
+
0,
|
|
323
|
+
173,
|
|
324
|
+
32,
|
|
325
|
+
1,
|
|
326
|
+
173,
|
|
327
|
+
66,
|
|
328
|
+
32,
|
|
329
|
+
134,
|
|
330
|
+
132,
|
|
331
|
+
32,
|
|
332
|
+
2,
|
|
333
|
+
173,
|
|
334
|
+
32,
|
|
335
|
+
3,
|
|
336
|
+
173,
|
|
337
|
+
66,
|
|
338
|
+
32,
|
|
339
|
+
134,
|
|
340
|
+
132,
|
|
341
|
+
130,
|
|
342
|
+
34,
|
|
343
|
+
4,
|
|
344
|
+
66,
|
|
345
|
+
32,
|
|
346
|
+
135,
|
|
347
|
+
167,
|
|
348
|
+
36,
|
|
349
|
+
0,
|
|
350
|
+
32,
|
|
351
|
+
4,
|
|
352
|
+
167,
|
|
353
|
+
11
|
|
354
|
+
])), {}).exports;
|
|
355
|
+
} catch (e) {
|
|
356
|
+
}
|
|
357
|
+
function Long4(low, high, unsigned) {
|
|
358
|
+
this.low = low | 0;
|
|
359
|
+
this.high = high | 0;
|
|
360
|
+
this.unsigned = !!unsigned;
|
|
361
|
+
}
|
|
362
|
+
Long4.prototype.__isLong__;
|
|
363
|
+
Object.defineProperty(Long4.prototype, "__isLong__", { value: true });
|
|
364
|
+
function isLong(obj) {
|
|
365
|
+
return (obj && obj["__isLong__"]) === true;
|
|
366
|
+
}
|
|
367
|
+
Long4.isLong = isLong;
|
|
368
|
+
var INT_CACHE = {};
|
|
369
|
+
var UINT_CACHE = {};
|
|
370
|
+
function fromInt(value, unsigned) {
|
|
371
|
+
var obj, cachedObj, cache;
|
|
372
|
+
if (unsigned) {
|
|
373
|
+
value >>>= 0;
|
|
374
|
+
if (cache = 0 <= value && value < 256) {
|
|
375
|
+
cachedObj = UINT_CACHE[value];
|
|
376
|
+
if (cachedObj)
|
|
377
|
+
return cachedObj;
|
|
378
|
+
}
|
|
379
|
+
obj = fromBits(value, (value | 0) < 0 ? -1 : 0, true);
|
|
380
|
+
if (cache)
|
|
381
|
+
UINT_CACHE[value] = obj;
|
|
382
|
+
return obj;
|
|
383
|
+
} else {
|
|
384
|
+
value |= 0;
|
|
385
|
+
if (cache = -128 <= value && value < 128) {
|
|
386
|
+
cachedObj = INT_CACHE[value];
|
|
387
|
+
if (cachedObj)
|
|
388
|
+
return cachedObj;
|
|
389
|
+
}
|
|
390
|
+
obj = fromBits(value, value < 0 ? -1 : 0, false);
|
|
391
|
+
if (cache)
|
|
392
|
+
INT_CACHE[value] = obj;
|
|
393
|
+
return obj;
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
Long4.fromInt = fromInt;
|
|
397
|
+
function fromNumber(value, unsigned) {
|
|
398
|
+
if (isNaN(value))
|
|
399
|
+
return unsigned ? UZERO : ZERO;
|
|
400
|
+
if (unsigned) {
|
|
401
|
+
if (value < 0)
|
|
402
|
+
return UZERO;
|
|
403
|
+
if (value >= TWO_PWR_64_DBL)
|
|
404
|
+
return MAX_UNSIGNED_VALUE;
|
|
405
|
+
} else {
|
|
406
|
+
if (value <= -TWO_PWR_63_DBL)
|
|
407
|
+
return MIN_VALUE;
|
|
408
|
+
if (value + 1 >= TWO_PWR_63_DBL)
|
|
409
|
+
return MAX_VALUE;
|
|
410
|
+
}
|
|
411
|
+
if (value < 0)
|
|
412
|
+
return fromNumber(-value, unsigned).neg();
|
|
413
|
+
return fromBits(value % TWO_PWR_32_DBL | 0, value / TWO_PWR_32_DBL | 0, unsigned);
|
|
414
|
+
}
|
|
415
|
+
Long4.fromNumber = fromNumber;
|
|
416
|
+
function fromBits(lowBits, highBits, unsigned) {
|
|
417
|
+
return new Long4(lowBits, highBits, unsigned);
|
|
418
|
+
}
|
|
419
|
+
Long4.fromBits = fromBits;
|
|
420
|
+
var pow_dbl = Math.pow;
|
|
421
|
+
function fromString(str, unsigned, radix) {
|
|
422
|
+
if (str.length === 0)
|
|
423
|
+
throw Error("empty string");
|
|
424
|
+
if (str === "NaN" || str === "Infinity" || str === "+Infinity" || str === "-Infinity")
|
|
425
|
+
return ZERO;
|
|
426
|
+
if (typeof unsigned === "number") {
|
|
427
|
+
radix = unsigned, unsigned = false;
|
|
428
|
+
} else {
|
|
429
|
+
unsigned = !!unsigned;
|
|
430
|
+
}
|
|
431
|
+
radix = radix || 10;
|
|
432
|
+
if (radix < 2 || 36 < radix)
|
|
433
|
+
throw RangeError("radix");
|
|
434
|
+
var p;
|
|
435
|
+
if ((p = str.indexOf("-")) > 0)
|
|
436
|
+
throw Error("interior hyphen");
|
|
437
|
+
else if (p === 0) {
|
|
438
|
+
return fromString(str.substring(1), unsigned, radix).neg();
|
|
439
|
+
}
|
|
440
|
+
var radixToPower = fromNumber(pow_dbl(radix, 8));
|
|
441
|
+
var result = ZERO;
|
|
442
|
+
for (var i = 0; i < str.length; i += 8) {
|
|
443
|
+
var size = Math.min(8, str.length - i), value = parseInt(str.substring(i, i + size), radix);
|
|
444
|
+
if (size < 8) {
|
|
445
|
+
var power = fromNumber(pow_dbl(radix, size));
|
|
446
|
+
result = result.mul(power).add(fromNumber(value));
|
|
447
|
+
} else {
|
|
448
|
+
result = result.mul(radixToPower);
|
|
449
|
+
result = result.add(fromNumber(value));
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
result.unsigned = unsigned;
|
|
453
|
+
return result;
|
|
454
|
+
}
|
|
455
|
+
Long4.fromString = fromString;
|
|
456
|
+
function fromValue(val, unsigned) {
|
|
457
|
+
if (typeof val === "number")
|
|
458
|
+
return fromNumber(val, unsigned);
|
|
459
|
+
if (typeof val === "string")
|
|
460
|
+
return fromString(val, unsigned);
|
|
461
|
+
return fromBits(val.low, val.high, typeof unsigned === "boolean" ? unsigned : val.unsigned);
|
|
462
|
+
}
|
|
463
|
+
Long4.fromValue = fromValue;
|
|
464
|
+
var TWO_PWR_16_DBL = 1 << 16;
|
|
465
|
+
var TWO_PWR_24_DBL = 1 << 24;
|
|
466
|
+
var TWO_PWR_32_DBL = TWO_PWR_16_DBL * TWO_PWR_16_DBL;
|
|
467
|
+
var TWO_PWR_64_DBL = TWO_PWR_32_DBL * TWO_PWR_32_DBL;
|
|
468
|
+
var TWO_PWR_63_DBL = TWO_PWR_64_DBL / 2;
|
|
469
|
+
var TWO_PWR_24 = fromInt(TWO_PWR_24_DBL);
|
|
470
|
+
var ZERO = fromInt(0);
|
|
471
|
+
Long4.ZERO = ZERO;
|
|
472
|
+
var UZERO = fromInt(0, true);
|
|
473
|
+
Long4.UZERO = UZERO;
|
|
474
|
+
var ONE = fromInt(1);
|
|
475
|
+
Long4.ONE = ONE;
|
|
476
|
+
var UONE = fromInt(1, true);
|
|
477
|
+
Long4.UONE = UONE;
|
|
478
|
+
var NEG_ONE = fromInt(-1);
|
|
479
|
+
Long4.NEG_ONE = NEG_ONE;
|
|
480
|
+
var MAX_VALUE = fromBits(4294967295 | 0, 2147483647 | 0, false);
|
|
481
|
+
Long4.MAX_VALUE = MAX_VALUE;
|
|
482
|
+
var MAX_UNSIGNED_VALUE = fromBits(4294967295 | 0, 4294967295 | 0, true);
|
|
483
|
+
Long4.MAX_UNSIGNED_VALUE = MAX_UNSIGNED_VALUE;
|
|
484
|
+
var MIN_VALUE = fromBits(0, 2147483648 | 0, false);
|
|
485
|
+
Long4.MIN_VALUE = MIN_VALUE;
|
|
486
|
+
var LongPrototype = Long4.prototype;
|
|
487
|
+
LongPrototype.toInt = function toInt() {
|
|
488
|
+
return this.unsigned ? this.low >>> 0 : this.low;
|
|
489
|
+
};
|
|
490
|
+
LongPrototype.toNumber = function toNumber() {
|
|
491
|
+
if (this.unsigned)
|
|
492
|
+
return (this.high >>> 0) * TWO_PWR_32_DBL + (this.low >>> 0);
|
|
493
|
+
return this.high * TWO_PWR_32_DBL + (this.low >>> 0);
|
|
494
|
+
};
|
|
495
|
+
LongPrototype.toString = function toString(radix) {
|
|
496
|
+
radix = radix || 10;
|
|
497
|
+
if (radix < 2 || 36 < radix)
|
|
498
|
+
throw RangeError("radix");
|
|
499
|
+
if (this.isZero())
|
|
500
|
+
return "0";
|
|
501
|
+
if (this.isNegative()) {
|
|
502
|
+
if (this.eq(MIN_VALUE)) {
|
|
503
|
+
var radixLong = fromNumber(radix), div = this.div(radixLong), rem1 = div.mul(radixLong).sub(this);
|
|
504
|
+
return div.toString(radix) + rem1.toInt().toString(radix);
|
|
505
|
+
} else
|
|
506
|
+
return "-" + this.neg().toString(radix);
|
|
507
|
+
}
|
|
508
|
+
var radixToPower = fromNumber(pow_dbl(radix, 6), this.unsigned), rem = this;
|
|
509
|
+
var result = "";
|
|
510
|
+
while (true) {
|
|
511
|
+
var remDiv = rem.div(radixToPower), intval = rem.sub(remDiv.mul(radixToPower)).toInt() >>> 0, digits = intval.toString(radix);
|
|
512
|
+
rem = remDiv;
|
|
513
|
+
if (rem.isZero())
|
|
514
|
+
return digits + result;
|
|
515
|
+
else {
|
|
516
|
+
while (digits.length < 6)
|
|
517
|
+
digits = "0" + digits;
|
|
518
|
+
result = "" + digits + result;
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
};
|
|
522
|
+
LongPrototype.getHighBits = function getHighBits() {
|
|
523
|
+
return this.high;
|
|
524
|
+
};
|
|
525
|
+
LongPrototype.getHighBitsUnsigned = function getHighBitsUnsigned() {
|
|
526
|
+
return this.high >>> 0;
|
|
527
|
+
};
|
|
528
|
+
LongPrototype.getLowBits = function getLowBits() {
|
|
529
|
+
return this.low;
|
|
530
|
+
};
|
|
531
|
+
LongPrototype.getLowBitsUnsigned = function getLowBitsUnsigned() {
|
|
532
|
+
return this.low >>> 0;
|
|
533
|
+
};
|
|
534
|
+
LongPrototype.getNumBitsAbs = function getNumBitsAbs() {
|
|
535
|
+
if (this.isNegative())
|
|
536
|
+
return this.eq(MIN_VALUE) ? 64 : this.neg().getNumBitsAbs();
|
|
537
|
+
var val = this.high != 0 ? this.high : this.low;
|
|
538
|
+
for (var bit = 31; bit > 0; bit--)
|
|
539
|
+
if ((val & 1 << bit) != 0)
|
|
540
|
+
break;
|
|
541
|
+
return this.high != 0 ? bit + 33 : bit + 1;
|
|
542
|
+
};
|
|
543
|
+
LongPrototype.isZero = function isZero() {
|
|
544
|
+
return this.high === 0 && this.low === 0;
|
|
545
|
+
};
|
|
546
|
+
LongPrototype.eqz = LongPrototype.isZero;
|
|
547
|
+
LongPrototype.isNegative = function isNegative() {
|
|
548
|
+
return !this.unsigned && this.high < 0;
|
|
549
|
+
};
|
|
550
|
+
LongPrototype.isPositive = function isPositive() {
|
|
551
|
+
return this.unsigned || this.high >= 0;
|
|
552
|
+
};
|
|
553
|
+
LongPrototype.isOdd = function isOdd() {
|
|
554
|
+
return (this.low & 1) === 1;
|
|
555
|
+
};
|
|
556
|
+
LongPrototype.isEven = function isEven() {
|
|
557
|
+
return (this.low & 1) === 0;
|
|
558
|
+
};
|
|
559
|
+
LongPrototype.equals = function equals(other) {
|
|
560
|
+
if (!isLong(other))
|
|
561
|
+
other = fromValue(other);
|
|
562
|
+
if (this.unsigned !== other.unsigned && this.high >>> 31 === 1 && other.high >>> 31 === 1)
|
|
563
|
+
return false;
|
|
564
|
+
return this.high === other.high && this.low === other.low;
|
|
565
|
+
};
|
|
566
|
+
LongPrototype.eq = LongPrototype.equals;
|
|
567
|
+
LongPrototype.notEquals = function notEquals(other) {
|
|
568
|
+
return !this.eq(
|
|
569
|
+
/* validates */
|
|
570
|
+
other
|
|
571
|
+
);
|
|
572
|
+
};
|
|
573
|
+
LongPrototype.neq = LongPrototype.notEquals;
|
|
574
|
+
LongPrototype.ne = LongPrototype.notEquals;
|
|
575
|
+
LongPrototype.lessThan = function lessThan(other) {
|
|
576
|
+
return this.comp(
|
|
577
|
+
/* validates */
|
|
578
|
+
other
|
|
579
|
+
) < 0;
|
|
580
|
+
};
|
|
581
|
+
LongPrototype.lt = LongPrototype.lessThan;
|
|
582
|
+
LongPrototype.lessThanOrEqual = function lessThanOrEqual(other) {
|
|
583
|
+
return this.comp(
|
|
584
|
+
/* validates */
|
|
585
|
+
other
|
|
586
|
+
) <= 0;
|
|
587
|
+
};
|
|
588
|
+
LongPrototype.lte = LongPrototype.lessThanOrEqual;
|
|
589
|
+
LongPrototype.le = LongPrototype.lessThanOrEqual;
|
|
590
|
+
LongPrototype.greaterThan = function greaterThan(other) {
|
|
591
|
+
return this.comp(
|
|
592
|
+
/* validates */
|
|
593
|
+
other
|
|
594
|
+
) > 0;
|
|
595
|
+
};
|
|
596
|
+
LongPrototype.gt = LongPrototype.greaterThan;
|
|
597
|
+
LongPrototype.greaterThanOrEqual = function greaterThanOrEqual(other) {
|
|
598
|
+
return this.comp(
|
|
599
|
+
/* validates */
|
|
600
|
+
other
|
|
601
|
+
) >= 0;
|
|
602
|
+
};
|
|
603
|
+
LongPrototype.gte = LongPrototype.greaterThanOrEqual;
|
|
604
|
+
LongPrototype.ge = LongPrototype.greaterThanOrEqual;
|
|
605
|
+
LongPrototype.compare = function compare(other) {
|
|
606
|
+
if (!isLong(other))
|
|
607
|
+
other = fromValue(other);
|
|
608
|
+
if (this.eq(other))
|
|
609
|
+
return 0;
|
|
610
|
+
var thisNeg = this.isNegative(), otherNeg = other.isNegative();
|
|
611
|
+
if (thisNeg && !otherNeg)
|
|
612
|
+
return -1;
|
|
613
|
+
if (!thisNeg && otherNeg)
|
|
614
|
+
return 1;
|
|
615
|
+
if (!this.unsigned)
|
|
616
|
+
return this.sub(other).isNegative() ? -1 : 1;
|
|
617
|
+
return other.high >>> 0 > this.high >>> 0 || other.high === this.high && other.low >>> 0 > this.low >>> 0 ? -1 : 1;
|
|
618
|
+
};
|
|
619
|
+
LongPrototype.comp = LongPrototype.compare;
|
|
620
|
+
LongPrototype.negate = function negate() {
|
|
621
|
+
if (!this.unsigned && this.eq(MIN_VALUE))
|
|
622
|
+
return MIN_VALUE;
|
|
623
|
+
return this.not().add(ONE);
|
|
624
|
+
};
|
|
625
|
+
LongPrototype.neg = LongPrototype.negate;
|
|
626
|
+
LongPrototype.add = function add(addend) {
|
|
627
|
+
if (!isLong(addend))
|
|
628
|
+
addend = fromValue(addend);
|
|
629
|
+
var a48 = this.high >>> 16;
|
|
630
|
+
var a32 = this.high & 65535;
|
|
631
|
+
var a16 = this.low >>> 16;
|
|
632
|
+
var a00 = this.low & 65535;
|
|
633
|
+
var b48 = addend.high >>> 16;
|
|
634
|
+
var b32 = addend.high & 65535;
|
|
635
|
+
var b16 = addend.low >>> 16;
|
|
636
|
+
var b00 = addend.low & 65535;
|
|
637
|
+
var c48 = 0, c32 = 0, c16 = 0, c00 = 0;
|
|
638
|
+
c00 += a00 + b00;
|
|
639
|
+
c16 += c00 >>> 16;
|
|
640
|
+
c00 &= 65535;
|
|
641
|
+
c16 += a16 + b16;
|
|
642
|
+
c32 += c16 >>> 16;
|
|
643
|
+
c16 &= 65535;
|
|
644
|
+
c32 += a32 + b32;
|
|
645
|
+
c48 += c32 >>> 16;
|
|
646
|
+
c32 &= 65535;
|
|
647
|
+
c48 += a48 + b48;
|
|
648
|
+
c48 &= 65535;
|
|
649
|
+
return fromBits(c16 << 16 | c00, c48 << 16 | c32, this.unsigned);
|
|
650
|
+
};
|
|
651
|
+
LongPrototype.subtract = function subtract(subtrahend) {
|
|
652
|
+
if (!isLong(subtrahend))
|
|
653
|
+
subtrahend = fromValue(subtrahend);
|
|
654
|
+
return this.add(subtrahend.neg());
|
|
655
|
+
};
|
|
656
|
+
LongPrototype.sub = LongPrototype.subtract;
|
|
657
|
+
LongPrototype.multiply = function multiply(multiplier) {
|
|
658
|
+
if (this.isZero())
|
|
659
|
+
return ZERO;
|
|
660
|
+
if (!isLong(multiplier))
|
|
661
|
+
multiplier = fromValue(multiplier);
|
|
662
|
+
if (wasm) {
|
|
663
|
+
var low = wasm.mul(
|
|
664
|
+
this.low,
|
|
665
|
+
this.high,
|
|
666
|
+
multiplier.low,
|
|
667
|
+
multiplier.high
|
|
668
|
+
);
|
|
669
|
+
return fromBits(low, wasm.get_high(), this.unsigned);
|
|
670
|
+
}
|
|
671
|
+
if (multiplier.isZero())
|
|
672
|
+
return ZERO;
|
|
673
|
+
if (this.eq(MIN_VALUE))
|
|
674
|
+
return multiplier.isOdd() ? MIN_VALUE : ZERO;
|
|
675
|
+
if (multiplier.eq(MIN_VALUE))
|
|
676
|
+
return this.isOdd() ? MIN_VALUE : ZERO;
|
|
677
|
+
if (this.isNegative()) {
|
|
678
|
+
if (multiplier.isNegative())
|
|
679
|
+
return this.neg().mul(multiplier.neg());
|
|
680
|
+
else
|
|
681
|
+
return this.neg().mul(multiplier).neg();
|
|
682
|
+
} else if (multiplier.isNegative())
|
|
683
|
+
return this.mul(multiplier.neg()).neg();
|
|
684
|
+
if (this.lt(TWO_PWR_24) && multiplier.lt(TWO_PWR_24))
|
|
685
|
+
return fromNumber(this.toNumber() * multiplier.toNumber(), this.unsigned);
|
|
686
|
+
var a48 = this.high >>> 16;
|
|
687
|
+
var a32 = this.high & 65535;
|
|
688
|
+
var a16 = this.low >>> 16;
|
|
689
|
+
var a00 = this.low & 65535;
|
|
690
|
+
var b48 = multiplier.high >>> 16;
|
|
691
|
+
var b32 = multiplier.high & 65535;
|
|
692
|
+
var b16 = multiplier.low >>> 16;
|
|
693
|
+
var b00 = multiplier.low & 65535;
|
|
694
|
+
var c48 = 0, c32 = 0, c16 = 0, c00 = 0;
|
|
695
|
+
c00 += a00 * b00;
|
|
696
|
+
c16 += c00 >>> 16;
|
|
697
|
+
c00 &= 65535;
|
|
698
|
+
c16 += a16 * b00;
|
|
699
|
+
c32 += c16 >>> 16;
|
|
700
|
+
c16 &= 65535;
|
|
701
|
+
c16 += a00 * b16;
|
|
702
|
+
c32 += c16 >>> 16;
|
|
703
|
+
c16 &= 65535;
|
|
704
|
+
c32 += a32 * b00;
|
|
705
|
+
c48 += c32 >>> 16;
|
|
706
|
+
c32 &= 65535;
|
|
707
|
+
c32 += a16 * b16;
|
|
708
|
+
c48 += c32 >>> 16;
|
|
709
|
+
c32 &= 65535;
|
|
710
|
+
c32 += a00 * b32;
|
|
711
|
+
c48 += c32 >>> 16;
|
|
712
|
+
c32 &= 65535;
|
|
713
|
+
c48 += a48 * b00 + a32 * b16 + a16 * b32 + a00 * b48;
|
|
714
|
+
c48 &= 65535;
|
|
715
|
+
return fromBits(c16 << 16 | c00, c48 << 16 | c32, this.unsigned);
|
|
716
|
+
};
|
|
717
|
+
LongPrototype.mul = LongPrototype.multiply;
|
|
718
|
+
LongPrototype.divide = function divide(divisor) {
|
|
719
|
+
if (!isLong(divisor))
|
|
720
|
+
divisor = fromValue(divisor);
|
|
721
|
+
if (divisor.isZero())
|
|
722
|
+
throw Error("division by zero");
|
|
723
|
+
if (wasm) {
|
|
724
|
+
if (!this.unsigned && this.high === -2147483648 && divisor.low === -1 && divisor.high === -1) {
|
|
725
|
+
return this;
|
|
726
|
+
}
|
|
727
|
+
var low = (this.unsigned ? wasm.div_u : wasm.div_s)(
|
|
728
|
+
this.low,
|
|
729
|
+
this.high,
|
|
730
|
+
divisor.low,
|
|
731
|
+
divisor.high
|
|
732
|
+
);
|
|
733
|
+
return fromBits(low, wasm.get_high(), this.unsigned);
|
|
734
|
+
}
|
|
735
|
+
if (this.isZero())
|
|
736
|
+
return this.unsigned ? UZERO : ZERO;
|
|
737
|
+
var approx, rem, res;
|
|
738
|
+
if (!this.unsigned) {
|
|
739
|
+
if (this.eq(MIN_VALUE)) {
|
|
740
|
+
if (divisor.eq(ONE) || divisor.eq(NEG_ONE))
|
|
741
|
+
return MIN_VALUE;
|
|
742
|
+
else if (divisor.eq(MIN_VALUE))
|
|
743
|
+
return ONE;
|
|
744
|
+
else {
|
|
745
|
+
var halfThis = this.shr(1);
|
|
746
|
+
approx = halfThis.div(divisor).shl(1);
|
|
747
|
+
if (approx.eq(ZERO)) {
|
|
748
|
+
return divisor.isNegative() ? ONE : NEG_ONE;
|
|
749
|
+
} else {
|
|
750
|
+
rem = this.sub(divisor.mul(approx));
|
|
751
|
+
res = approx.add(rem.div(divisor));
|
|
752
|
+
return res;
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
} else if (divisor.eq(MIN_VALUE))
|
|
756
|
+
return this.unsigned ? UZERO : ZERO;
|
|
757
|
+
if (this.isNegative()) {
|
|
758
|
+
if (divisor.isNegative())
|
|
759
|
+
return this.neg().div(divisor.neg());
|
|
760
|
+
return this.neg().div(divisor).neg();
|
|
761
|
+
} else if (divisor.isNegative())
|
|
762
|
+
return this.div(divisor.neg()).neg();
|
|
763
|
+
res = ZERO;
|
|
764
|
+
} else {
|
|
765
|
+
if (!divisor.unsigned)
|
|
766
|
+
divisor = divisor.toUnsigned();
|
|
767
|
+
if (divisor.gt(this))
|
|
768
|
+
return UZERO;
|
|
769
|
+
if (divisor.gt(this.shru(1)))
|
|
770
|
+
return UONE;
|
|
771
|
+
res = UZERO;
|
|
772
|
+
}
|
|
773
|
+
rem = this;
|
|
774
|
+
while (rem.gte(divisor)) {
|
|
775
|
+
approx = Math.max(1, Math.floor(rem.toNumber() / divisor.toNumber()));
|
|
776
|
+
var log2 = Math.ceil(Math.log(approx) / Math.LN2), delta = log2 <= 48 ? 1 : pow_dbl(2, log2 - 48), approxRes = fromNumber(approx), approxRem = approxRes.mul(divisor);
|
|
777
|
+
while (approxRem.isNegative() || approxRem.gt(rem)) {
|
|
778
|
+
approx -= delta;
|
|
779
|
+
approxRes = fromNumber(approx, this.unsigned);
|
|
780
|
+
approxRem = approxRes.mul(divisor);
|
|
781
|
+
}
|
|
782
|
+
if (approxRes.isZero())
|
|
783
|
+
approxRes = ONE;
|
|
784
|
+
res = res.add(approxRes);
|
|
785
|
+
rem = rem.sub(approxRem);
|
|
786
|
+
}
|
|
787
|
+
return res;
|
|
788
|
+
};
|
|
789
|
+
LongPrototype.div = LongPrototype.divide;
|
|
790
|
+
LongPrototype.modulo = function modulo(divisor) {
|
|
791
|
+
if (!isLong(divisor))
|
|
792
|
+
divisor = fromValue(divisor);
|
|
793
|
+
if (wasm) {
|
|
794
|
+
var low = (this.unsigned ? wasm.rem_u : wasm.rem_s)(
|
|
795
|
+
this.low,
|
|
796
|
+
this.high,
|
|
797
|
+
divisor.low,
|
|
798
|
+
divisor.high
|
|
799
|
+
);
|
|
800
|
+
return fromBits(low, wasm.get_high(), this.unsigned);
|
|
801
|
+
}
|
|
802
|
+
return this.sub(this.div(divisor).mul(divisor));
|
|
803
|
+
};
|
|
804
|
+
LongPrototype.mod = LongPrototype.modulo;
|
|
805
|
+
LongPrototype.rem = LongPrototype.modulo;
|
|
806
|
+
LongPrototype.not = function not() {
|
|
807
|
+
return fromBits(~this.low, ~this.high, this.unsigned);
|
|
808
|
+
};
|
|
809
|
+
LongPrototype.and = function and(other) {
|
|
810
|
+
if (!isLong(other))
|
|
811
|
+
other = fromValue(other);
|
|
812
|
+
return fromBits(this.low & other.low, this.high & other.high, this.unsigned);
|
|
813
|
+
};
|
|
814
|
+
LongPrototype.or = function or(other) {
|
|
815
|
+
if (!isLong(other))
|
|
816
|
+
other = fromValue(other);
|
|
817
|
+
return fromBits(this.low | other.low, this.high | other.high, this.unsigned);
|
|
818
|
+
};
|
|
819
|
+
LongPrototype.xor = function xor(other) {
|
|
820
|
+
if (!isLong(other))
|
|
821
|
+
other = fromValue(other);
|
|
822
|
+
return fromBits(this.low ^ other.low, this.high ^ other.high, this.unsigned);
|
|
823
|
+
};
|
|
824
|
+
LongPrototype.shiftLeft = function shiftLeft(numBits) {
|
|
825
|
+
if (isLong(numBits))
|
|
826
|
+
numBits = numBits.toInt();
|
|
827
|
+
if ((numBits &= 63) === 0)
|
|
828
|
+
return this;
|
|
829
|
+
else if (numBits < 32)
|
|
830
|
+
return fromBits(this.low << numBits, this.high << numBits | this.low >>> 32 - numBits, this.unsigned);
|
|
831
|
+
else
|
|
832
|
+
return fromBits(0, this.low << numBits - 32, this.unsigned);
|
|
833
|
+
};
|
|
834
|
+
LongPrototype.shl = LongPrototype.shiftLeft;
|
|
835
|
+
LongPrototype.shiftRight = function shiftRight(numBits) {
|
|
836
|
+
if (isLong(numBits))
|
|
837
|
+
numBits = numBits.toInt();
|
|
838
|
+
if ((numBits &= 63) === 0)
|
|
839
|
+
return this;
|
|
840
|
+
else if (numBits < 32)
|
|
841
|
+
return fromBits(this.low >>> numBits | this.high << 32 - numBits, this.high >> numBits, this.unsigned);
|
|
842
|
+
else
|
|
843
|
+
return fromBits(this.high >> numBits - 32, this.high >= 0 ? 0 : -1, this.unsigned);
|
|
844
|
+
};
|
|
845
|
+
LongPrototype.shr = LongPrototype.shiftRight;
|
|
846
|
+
LongPrototype.shiftRightUnsigned = function shiftRightUnsigned(numBits) {
|
|
847
|
+
if (isLong(numBits))
|
|
848
|
+
numBits = numBits.toInt();
|
|
849
|
+
numBits &= 63;
|
|
850
|
+
if (numBits === 0)
|
|
851
|
+
return this;
|
|
852
|
+
else {
|
|
853
|
+
var high = this.high;
|
|
854
|
+
if (numBits < 32) {
|
|
855
|
+
var low = this.low;
|
|
856
|
+
return fromBits(low >>> numBits | high << 32 - numBits, high >>> numBits, this.unsigned);
|
|
857
|
+
} else if (numBits === 32)
|
|
858
|
+
return fromBits(high, 0, this.unsigned);
|
|
859
|
+
else
|
|
860
|
+
return fromBits(high >>> numBits - 32, 0, this.unsigned);
|
|
861
|
+
}
|
|
862
|
+
};
|
|
863
|
+
LongPrototype.shru = LongPrototype.shiftRightUnsigned;
|
|
864
|
+
LongPrototype.shr_u = LongPrototype.shiftRightUnsigned;
|
|
865
|
+
LongPrototype.toSigned = function toSigned() {
|
|
866
|
+
if (!this.unsigned)
|
|
867
|
+
return this;
|
|
868
|
+
return fromBits(this.low, this.high, false);
|
|
869
|
+
};
|
|
870
|
+
LongPrototype.toUnsigned = function toUnsigned() {
|
|
871
|
+
if (this.unsigned)
|
|
872
|
+
return this;
|
|
873
|
+
return fromBits(this.low, this.high, true);
|
|
874
|
+
};
|
|
875
|
+
LongPrototype.toBytes = function toBytes(le) {
|
|
876
|
+
return le ? this.toBytesLE() : this.toBytesBE();
|
|
877
|
+
};
|
|
878
|
+
LongPrototype.toBytesLE = function toBytesLE() {
|
|
879
|
+
var hi = this.high, lo = this.low;
|
|
880
|
+
return [
|
|
881
|
+
lo & 255,
|
|
882
|
+
lo >>> 8 & 255,
|
|
883
|
+
lo >>> 16 & 255,
|
|
884
|
+
lo >>> 24,
|
|
885
|
+
hi & 255,
|
|
886
|
+
hi >>> 8 & 255,
|
|
887
|
+
hi >>> 16 & 255,
|
|
888
|
+
hi >>> 24
|
|
889
|
+
];
|
|
890
|
+
};
|
|
891
|
+
LongPrototype.toBytesBE = function toBytesBE() {
|
|
892
|
+
var hi = this.high, lo = this.low;
|
|
893
|
+
return [
|
|
894
|
+
hi >>> 24,
|
|
895
|
+
hi >>> 16 & 255,
|
|
896
|
+
hi >>> 8 & 255,
|
|
897
|
+
hi & 255,
|
|
898
|
+
lo >>> 24,
|
|
899
|
+
lo >>> 16 & 255,
|
|
900
|
+
lo >>> 8 & 255,
|
|
901
|
+
lo & 255
|
|
902
|
+
];
|
|
903
|
+
};
|
|
904
|
+
Long4.fromBytes = function fromBytes(bytes, unsigned, le) {
|
|
905
|
+
return le ? Long4.fromBytesLE(bytes, unsigned) : Long4.fromBytesBE(bytes, unsigned);
|
|
906
|
+
};
|
|
907
|
+
Long4.fromBytesLE = function fromBytesLE(bytes, unsigned) {
|
|
908
|
+
return new Long4(
|
|
909
|
+
bytes[0] | bytes[1] << 8 | bytes[2] << 16 | bytes[3] << 24,
|
|
910
|
+
bytes[4] | bytes[5] << 8 | bytes[6] << 16 | bytes[7] << 24,
|
|
911
|
+
unsigned
|
|
912
|
+
);
|
|
913
|
+
};
|
|
914
|
+
Long4.fromBytesBE = function fromBytesBE(bytes, unsigned) {
|
|
915
|
+
return new Long4(
|
|
916
|
+
bytes[4] << 24 | bytes[5] << 16 | bytes[6] << 8 | bytes[7],
|
|
917
|
+
bytes[0] << 24 | bytes[1] << 16 | bytes[2] << 8 | bytes[3],
|
|
918
|
+
unsigned
|
|
919
|
+
);
|
|
920
|
+
};
|
|
921
|
+
}
|
|
922
|
+
});
|
|
923
|
+
|
|
924
|
+
// ../../node_modules/@protobufjs/aspromise/index.js
|
|
925
|
+
var require_aspromise = __commonJS({
|
|
926
|
+
"../../node_modules/@protobufjs/aspromise/index.js"(exports2, module2) {
|
|
927
|
+
"use strict";
|
|
928
|
+
module2.exports = asPromise;
|
|
929
|
+
function asPromise(fn, ctx) {
|
|
930
|
+
var params = new Array(arguments.length - 1), offset = 0, index = 2, pending = true;
|
|
931
|
+
while (index < arguments.length)
|
|
932
|
+
params[offset++] = arguments[index++];
|
|
933
|
+
return new Promise(function executor(resolve, reject) {
|
|
934
|
+
params[offset] = function callback(err) {
|
|
935
|
+
if (pending) {
|
|
936
|
+
pending = false;
|
|
937
|
+
if (err)
|
|
938
|
+
reject(err);
|
|
939
|
+
else {
|
|
940
|
+
var params2 = new Array(arguments.length - 1), offset2 = 0;
|
|
941
|
+
while (offset2 < params2.length)
|
|
942
|
+
params2[offset2++] = arguments[offset2];
|
|
943
|
+
resolve.apply(null, params2);
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
};
|
|
947
|
+
try {
|
|
948
|
+
fn.apply(ctx || null, params);
|
|
949
|
+
} catch (err) {
|
|
950
|
+
if (pending) {
|
|
951
|
+
pending = false;
|
|
952
|
+
reject(err);
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
});
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
});
|
|
959
|
+
|
|
960
|
+
// ../../node_modules/@protobufjs/base64/index.js
|
|
961
|
+
var require_base64 = __commonJS({
|
|
962
|
+
"../../node_modules/@protobufjs/base64/index.js"(exports2) {
|
|
963
|
+
"use strict";
|
|
964
|
+
var base64 = exports2;
|
|
965
|
+
base64.length = function length(string) {
|
|
966
|
+
var p = string.length;
|
|
967
|
+
if (!p)
|
|
968
|
+
return 0;
|
|
969
|
+
var n = 0;
|
|
970
|
+
while (--p % 4 > 1 && string.charAt(p) === "=")
|
|
971
|
+
++n;
|
|
972
|
+
return Math.ceil(string.length * 3) / 4 - n;
|
|
973
|
+
};
|
|
974
|
+
var b64 = new Array(64);
|
|
975
|
+
var s64 = new Array(123);
|
|
976
|
+
for (i = 0; i < 64; )
|
|
977
|
+
s64[b64[i] = i < 26 ? i + 65 : i < 52 ? i + 71 : i < 62 ? i - 4 : i - 59 | 43] = i++;
|
|
978
|
+
var i;
|
|
979
|
+
base64.encode = function encode3(buffer, start, end) {
|
|
980
|
+
var parts = null, chunk = [];
|
|
981
|
+
var i2 = 0, j = 0, t;
|
|
982
|
+
while (start < end) {
|
|
983
|
+
var b = buffer[start++];
|
|
984
|
+
switch (j) {
|
|
985
|
+
case 0:
|
|
986
|
+
chunk[i2++] = b64[b >> 2];
|
|
987
|
+
t = (b & 3) << 4;
|
|
988
|
+
j = 1;
|
|
989
|
+
break;
|
|
990
|
+
case 1:
|
|
991
|
+
chunk[i2++] = b64[t | b >> 4];
|
|
992
|
+
t = (b & 15) << 2;
|
|
993
|
+
j = 2;
|
|
994
|
+
break;
|
|
995
|
+
case 2:
|
|
996
|
+
chunk[i2++] = b64[t | b >> 6];
|
|
997
|
+
chunk[i2++] = b64[b & 63];
|
|
998
|
+
j = 0;
|
|
999
|
+
break;
|
|
1000
|
+
}
|
|
1001
|
+
if (i2 > 8191) {
|
|
1002
|
+
(parts || (parts = [])).push(String.fromCharCode.apply(String, chunk));
|
|
1003
|
+
i2 = 0;
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
if (j) {
|
|
1007
|
+
chunk[i2++] = b64[t];
|
|
1008
|
+
chunk[i2++] = 61;
|
|
1009
|
+
if (j === 1)
|
|
1010
|
+
chunk[i2++] = 61;
|
|
1011
|
+
}
|
|
1012
|
+
if (parts) {
|
|
1013
|
+
if (i2)
|
|
1014
|
+
parts.push(String.fromCharCode.apply(String, chunk.slice(0, i2)));
|
|
1015
|
+
return parts.join("");
|
|
1016
|
+
}
|
|
1017
|
+
return String.fromCharCode.apply(String, chunk.slice(0, i2));
|
|
1018
|
+
};
|
|
1019
|
+
var invalidEncoding = "invalid encoding";
|
|
1020
|
+
base64.decode = function decode4(string, buffer, offset) {
|
|
1021
|
+
var start = offset;
|
|
1022
|
+
var j = 0, t;
|
|
1023
|
+
for (var i2 = 0; i2 < string.length; ) {
|
|
1024
|
+
var c = string.charCodeAt(i2++);
|
|
1025
|
+
if (c === 61 && j > 1)
|
|
1026
|
+
break;
|
|
1027
|
+
if ((c = s64[c]) === void 0)
|
|
1028
|
+
throw Error(invalidEncoding);
|
|
1029
|
+
switch (j) {
|
|
1030
|
+
case 0:
|
|
1031
|
+
t = c;
|
|
1032
|
+
j = 1;
|
|
1033
|
+
break;
|
|
1034
|
+
case 1:
|
|
1035
|
+
buffer[offset++] = t << 2 | (c & 48) >> 4;
|
|
1036
|
+
t = c;
|
|
1037
|
+
j = 2;
|
|
1038
|
+
break;
|
|
1039
|
+
case 2:
|
|
1040
|
+
buffer[offset++] = (t & 15) << 4 | (c & 60) >> 2;
|
|
1041
|
+
t = c;
|
|
1042
|
+
j = 3;
|
|
1043
|
+
break;
|
|
1044
|
+
case 3:
|
|
1045
|
+
buffer[offset++] = (t & 3) << 6 | c;
|
|
1046
|
+
j = 0;
|
|
1047
|
+
break;
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
if (j === 1)
|
|
1051
|
+
throw Error(invalidEncoding);
|
|
1052
|
+
return offset - start;
|
|
1053
|
+
};
|
|
1054
|
+
base64.test = function test(string) {
|
|
1055
|
+
return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(string);
|
|
1056
|
+
};
|
|
1057
|
+
}
|
|
1058
|
+
});
|
|
1059
|
+
|
|
1060
|
+
// ../../node_modules/@protobufjs/eventemitter/index.js
|
|
1061
|
+
var require_eventemitter = __commonJS({
|
|
1062
|
+
"../../node_modules/@protobufjs/eventemitter/index.js"(exports2, module2) {
|
|
1063
|
+
"use strict";
|
|
1064
|
+
module2.exports = EventEmitter;
|
|
1065
|
+
function EventEmitter() {
|
|
1066
|
+
this._listeners = {};
|
|
1067
|
+
}
|
|
1068
|
+
EventEmitter.prototype.on = function on(evt, fn, ctx) {
|
|
1069
|
+
(this._listeners[evt] || (this._listeners[evt] = [])).push({
|
|
1070
|
+
fn,
|
|
1071
|
+
ctx: ctx || this
|
|
1072
|
+
});
|
|
1073
|
+
return this;
|
|
1074
|
+
};
|
|
1075
|
+
EventEmitter.prototype.off = function off(evt, fn) {
|
|
1076
|
+
if (evt === void 0)
|
|
1077
|
+
this._listeners = {};
|
|
1078
|
+
else {
|
|
1079
|
+
if (fn === void 0)
|
|
1080
|
+
this._listeners[evt] = [];
|
|
1081
|
+
else {
|
|
1082
|
+
var listeners = this._listeners[evt];
|
|
1083
|
+
for (var i = 0; i < listeners.length; )
|
|
1084
|
+
if (listeners[i].fn === fn)
|
|
1085
|
+
listeners.splice(i, 1);
|
|
1086
|
+
else
|
|
1087
|
+
++i;
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
return this;
|
|
1091
|
+
};
|
|
1092
|
+
EventEmitter.prototype.emit = function emit(evt) {
|
|
1093
|
+
var listeners = this._listeners[evt];
|
|
1094
|
+
if (listeners) {
|
|
1095
|
+
var args = [], i = 1;
|
|
1096
|
+
for (; i < arguments.length; )
|
|
1097
|
+
args.push(arguments[i++]);
|
|
1098
|
+
for (i = 0; i < listeners.length; )
|
|
1099
|
+
listeners[i].fn.apply(listeners[i++].ctx, args);
|
|
1100
|
+
}
|
|
1101
|
+
return this;
|
|
1102
|
+
};
|
|
1103
|
+
}
|
|
1104
|
+
});
|
|
1105
|
+
|
|
1106
|
+
// ../../node_modules/@protobufjs/float/index.js
|
|
1107
|
+
var require_float = __commonJS({
|
|
1108
|
+
"../../node_modules/@protobufjs/float/index.js"(exports2, module2) {
|
|
1109
|
+
"use strict";
|
|
1110
|
+
module2.exports = factory(factory);
|
|
1111
|
+
function factory(exports3) {
|
|
1112
|
+
if (typeof Float32Array !== "undefined") (function() {
|
|
1113
|
+
var f32 = new Float32Array([-0]), f8b = new Uint8Array(f32.buffer), le = f8b[3] === 128;
|
|
1114
|
+
function writeFloat_f32_cpy(val, buf, pos) {
|
|
1115
|
+
f32[0] = val;
|
|
1116
|
+
buf[pos] = f8b[0];
|
|
1117
|
+
buf[pos + 1] = f8b[1];
|
|
1118
|
+
buf[pos + 2] = f8b[2];
|
|
1119
|
+
buf[pos + 3] = f8b[3];
|
|
1120
|
+
}
|
|
1121
|
+
function writeFloat_f32_rev(val, buf, pos) {
|
|
1122
|
+
f32[0] = val;
|
|
1123
|
+
buf[pos] = f8b[3];
|
|
1124
|
+
buf[pos + 1] = f8b[2];
|
|
1125
|
+
buf[pos + 2] = f8b[1];
|
|
1126
|
+
buf[pos + 3] = f8b[0];
|
|
1127
|
+
}
|
|
1128
|
+
exports3.writeFloatLE = le ? writeFloat_f32_cpy : writeFloat_f32_rev;
|
|
1129
|
+
exports3.writeFloatBE = le ? writeFloat_f32_rev : writeFloat_f32_cpy;
|
|
1130
|
+
function readFloat_f32_cpy(buf, pos) {
|
|
1131
|
+
f8b[0] = buf[pos];
|
|
1132
|
+
f8b[1] = buf[pos + 1];
|
|
1133
|
+
f8b[2] = buf[pos + 2];
|
|
1134
|
+
f8b[3] = buf[pos + 3];
|
|
1135
|
+
return f32[0];
|
|
1136
|
+
}
|
|
1137
|
+
function readFloat_f32_rev(buf, pos) {
|
|
1138
|
+
f8b[3] = buf[pos];
|
|
1139
|
+
f8b[2] = buf[pos + 1];
|
|
1140
|
+
f8b[1] = buf[pos + 2];
|
|
1141
|
+
f8b[0] = buf[pos + 3];
|
|
1142
|
+
return f32[0];
|
|
1143
|
+
}
|
|
1144
|
+
exports3.readFloatLE = le ? readFloat_f32_cpy : readFloat_f32_rev;
|
|
1145
|
+
exports3.readFloatBE = le ? readFloat_f32_rev : readFloat_f32_cpy;
|
|
1146
|
+
})();
|
|
1147
|
+
else (function() {
|
|
1148
|
+
function writeFloat_ieee754(writeUint, val, buf, pos) {
|
|
1149
|
+
var sign = val < 0 ? 1 : 0;
|
|
1150
|
+
if (sign)
|
|
1151
|
+
val = -val;
|
|
1152
|
+
if (val === 0)
|
|
1153
|
+
writeUint(1 / val > 0 ? (
|
|
1154
|
+
/* positive */
|
|
1155
|
+
0
|
|
1156
|
+
) : (
|
|
1157
|
+
/* negative 0 */
|
|
1158
|
+
2147483648
|
|
1159
|
+
), buf, pos);
|
|
1160
|
+
else if (isNaN(val))
|
|
1161
|
+
writeUint(2143289344, buf, pos);
|
|
1162
|
+
else if (val > 34028234663852886e22)
|
|
1163
|
+
writeUint((sign << 31 | 2139095040) >>> 0, buf, pos);
|
|
1164
|
+
else if (val < 11754943508222875e-54)
|
|
1165
|
+
writeUint((sign << 31 | Math.round(val / 1401298464324817e-60)) >>> 0, buf, pos);
|
|
1166
|
+
else {
|
|
1167
|
+
var exponent = Math.floor(Math.log(val) / Math.LN2), mantissa = Math.round(val * Math.pow(2, -exponent) * 8388608) & 8388607;
|
|
1168
|
+
writeUint((sign << 31 | exponent + 127 << 23 | mantissa) >>> 0, buf, pos);
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
exports3.writeFloatLE = writeFloat_ieee754.bind(null, writeUintLE);
|
|
1172
|
+
exports3.writeFloatBE = writeFloat_ieee754.bind(null, writeUintBE);
|
|
1173
|
+
function readFloat_ieee754(readUint, buf, pos) {
|
|
1174
|
+
var uint = readUint(buf, pos), sign = (uint >> 31) * 2 + 1, exponent = uint >>> 23 & 255, mantissa = uint & 8388607;
|
|
1175
|
+
return exponent === 255 ? mantissa ? NaN : sign * Infinity : exponent === 0 ? sign * 1401298464324817e-60 * mantissa : sign * Math.pow(2, exponent - 150) * (mantissa + 8388608);
|
|
1176
|
+
}
|
|
1177
|
+
exports3.readFloatLE = readFloat_ieee754.bind(null, readUintLE);
|
|
1178
|
+
exports3.readFloatBE = readFloat_ieee754.bind(null, readUintBE);
|
|
1179
|
+
})();
|
|
1180
|
+
if (typeof Float64Array !== "undefined") (function() {
|
|
1181
|
+
var f64 = new Float64Array([-0]), f8b = new Uint8Array(f64.buffer), le = f8b[7] === 128;
|
|
1182
|
+
function writeDouble_f64_cpy(val, buf, pos) {
|
|
1183
|
+
f64[0] = val;
|
|
1184
|
+
buf[pos] = f8b[0];
|
|
1185
|
+
buf[pos + 1] = f8b[1];
|
|
1186
|
+
buf[pos + 2] = f8b[2];
|
|
1187
|
+
buf[pos + 3] = f8b[3];
|
|
1188
|
+
buf[pos + 4] = f8b[4];
|
|
1189
|
+
buf[pos + 5] = f8b[5];
|
|
1190
|
+
buf[pos + 6] = f8b[6];
|
|
1191
|
+
buf[pos + 7] = f8b[7];
|
|
1192
|
+
}
|
|
1193
|
+
function writeDouble_f64_rev(val, buf, pos) {
|
|
1194
|
+
f64[0] = val;
|
|
1195
|
+
buf[pos] = f8b[7];
|
|
1196
|
+
buf[pos + 1] = f8b[6];
|
|
1197
|
+
buf[pos + 2] = f8b[5];
|
|
1198
|
+
buf[pos + 3] = f8b[4];
|
|
1199
|
+
buf[pos + 4] = f8b[3];
|
|
1200
|
+
buf[pos + 5] = f8b[2];
|
|
1201
|
+
buf[pos + 6] = f8b[1];
|
|
1202
|
+
buf[pos + 7] = f8b[0];
|
|
1203
|
+
}
|
|
1204
|
+
exports3.writeDoubleLE = le ? writeDouble_f64_cpy : writeDouble_f64_rev;
|
|
1205
|
+
exports3.writeDoubleBE = le ? writeDouble_f64_rev : writeDouble_f64_cpy;
|
|
1206
|
+
function readDouble_f64_cpy(buf, pos) {
|
|
1207
|
+
f8b[0] = buf[pos];
|
|
1208
|
+
f8b[1] = buf[pos + 1];
|
|
1209
|
+
f8b[2] = buf[pos + 2];
|
|
1210
|
+
f8b[3] = buf[pos + 3];
|
|
1211
|
+
f8b[4] = buf[pos + 4];
|
|
1212
|
+
f8b[5] = buf[pos + 5];
|
|
1213
|
+
f8b[6] = buf[pos + 6];
|
|
1214
|
+
f8b[7] = buf[pos + 7];
|
|
1215
|
+
return f64[0];
|
|
1216
|
+
}
|
|
1217
|
+
function readDouble_f64_rev(buf, pos) {
|
|
1218
|
+
f8b[7] = buf[pos];
|
|
1219
|
+
f8b[6] = buf[pos + 1];
|
|
1220
|
+
f8b[5] = buf[pos + 2];
|
|
1221
|
+
f8b[4] = buf[pos + 3];
|
|
1222
|
+
f8b[3] = buf[pos + 4];
|
|
1223
|
+
f8b[2] = buf[pos + 5];
|
|
1224
|
+
f8b[1] = buf[pos + 6];
|
|
1225
|
+
f8b[0] = buf[pos + 7];
|
|
1226
|
+
return f64[0];
|
|
1227
|
+
}
|
|
1228
|
+
exports3.readDoubleLE = le ? readDouble_f64_cpy : readDouble_f64_rev;
|
|
1229
|
+
exports3.readDoubleBE = le ? readDouble_f64_rev : readDouble_f64_cpy;
|
|
1230
|
+
})();
|
|
1231
|
+
else (function() {
|
|
1232
|
+
function writeDouble_ieee754(writeUint, off0, off1, val, buf, pos) {
|
|
1233
|
+
var sign = val < 0 ? 1 : 0;
|
|
1234
|
+
if (sign)
|
|
1235
|
+
val = -val;
|
|
1236
|
+
if (val === 0) {
|
|
1237
|
+
writeUint(0, buf, pos + off0);
|
|
1238
|
+
writeUint(1 / val > 0 ? (
|
|
1239
|
+
/* positive */
|
|
1240
|
+
0
|
|
1241
|
+
) : (
|
|
1242
|
+
/* negative 0 */
|
|
1243
|
+
2147483648
|
|
1244
|
+
), buf, pos + off1);
|
|
1245
|
+
} else if (isNaN(val)) {
|
|
1246
|
+
writeUint(0, buf, pos + off0);
|
|
1247
|
+
writeUint(2146959360, buf, pos + off1);
|
|
1248
|
+
} else if (val > 17976931348623157e292) {
|
|
1249
|
+
writeUint(0, buf, pos + off0);
|
|
1250
|
+
writeUint((sign << 31 | 2146435072) >>> 0, buf, pos + off1);
|
|
1251
|
+
} else {
|
|
1252
|
+
var mantissa;
|
|
1253
|
+
if (val < 22250738585072014e-324) {
|
|
1254
|
+
mantissa = val / 5e-324;
|
|
1255
|
+
writeUint(mantissa >>> 0, buf, pos + off0);
|
|
1256
|
+
writeUint((sign << 31 | mantissa / 4294967296) >>> 0, buf, pos + off1);
|
|
1257
|
+
} else {
|
|
1258
|
+
var exponent = Math.floor(Math.log(val) / Math.LN2);
|
|
1259
|
+
if (exponent === 1024)
|
|
1260
|
+
exponent = 1023;
|
|
1261
|
+
mantissa = val * Math.pow(2, -exponent);
|
|
1262
|
+
writeUint(mantissa * 4503599627370496 >>> 0, buf, pos + off0);
|
|
1263
|
+
writeUint((sign << 31 | exponent + 1023 << 20 | mantissa * 1048576 & 1048575) >>> 0, buf, pos + off1);
|
|
1264
|
+
}
|
|
1265
|
+
}
|
|
1266
|
+
}
|
|
1267
|
+
exports3.writeDoubleLE = writeDouble_ieee754.bind(null, writeUintLE, 0, 4);
|
|
1268
|
+
exports3.writeDoubleBE = writeDouble_ieee754.bind(null, writeUintBE, 4, 0);
|
|
1269
|
+
function readDouble_ieee754(readUint, off0, off1, buf, pos) {
|
|
1270
|
+
var lo = readUint(buf, pos + off0), hi = readUint(buf, pos + off1);
|
|
1271
|
+
var sign = (hi >> 31) * 2 + 1, exponent = hi >>> 20 & 2047, mantissa = 4294967296 * (hi & 1048575) + lo;
|
|
1272
|
+
return exponent === 2047 ? mantissa ? NaN : sign * Infinity : exponent === 0 ? sign * 5e-324 * mantissa : sign * Math.pow(2, exponent - 1075) * (mantissa + 4503599627370496);
|
|
1273
|
+
}
|
|
1274
|
+
exports3.readDoubleLE = readDouble_ieee754.bind(null, readUintLE, 0, 4);
|
|
1275
|
+
exports3.readDoubleBE = readDouble_ieee754.bind(null, readUintBE, 4, 0);
|
|
1276
|
+
})();
|
|
1277
|
+
return exports3;
|
|
1278
|
+
}
|
|
1279
|
+
function writeUintLE(val, buf, pos) {
|
|
1280
|
+
buf[pos] = val & 255;
|
|
1281
|
+
buf[pos + 1] = val >>> 8 & 255;
|
|
1282
|
+
buf[pos + 2] = val >>> 16 & 255;
|
|
1283
|
+
buf[pos + 3] = val >>> 24;
|
|
1284
|
+
}
|
|
1285
|
+
function writeUintBE(val, buf, pos) {
|
|
1286
|
+
buf[pos] = val >>> 24;
|
|
1287
|
+
buf[pos + 1] = val >>> 16 & 255;
|
|
1288
|
+
buf[pos + 2] = val >>> 8 & 255;
|
|
1289
|
+
buf[pos + 3] = val & 255;
|
|
1290
|
+
}
|
|
1291
|
+
function readUintLE(buf, pos) {
|
|
1292
|
+
return (buf[pos] | buf[pos + 1] << 8 | buf[pos + 2] << 16 | buf[pos + 3] << 24) >>> 0;
|
|
1293
|
+
}
|
|
1294
|
+
function readUintBE(buf, pos) {
|
|
1295
|
+
return (buf[pos] << 24 | buf[pos + 1] << 16 | buf[pos + 2] << 8 | buf[pos + 3]) >>> 0;
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
});
|
|
1299
|
+
|
|
1300
|
+
// ../../node_modules/@protobufjs/inquire/index.js
|
|
1301
|
+
var require_inquire = __commonJS({
|
|
1302
|
+
"../../node_modules/@protobufjs/inquire/index.js"(exports, module) {
|
|
1303
|
+
"use strict";
|
|
1304
|
+
module.exports = inquire;
|
|
1305
|
+
function inquire(moduleName) {
|
|
1306
|
+
try {
|
|
1307
|
+
var mod = eval("quire".replace(/^/, "re"))(moduleName);
|
|
1308
|
+
if (mod && (mod.length || Object.keys(mod).length))
|
|
1309
|
+
return mod;
|
|
1310
|
+
} catch (e) {
|
|
1311
|
+
}
|
|
1312
|
+
return null;
|
|
1313
|
+
}
|
|
1314
|
+
}
|
|
1315
|
+
});
|
|
1316
|
+
|
|
1317
|
+
// ../../node_modules/@protobufjs/utf8/index.js
|
|
1318
|
+
var require_utf8 = __commonJS({
|
|
1319
|
+
"../../node_modules/@protobufjs/utf8/index.js"(exports2) {
|
|
1320
|
+
"use strict";
|
|
1321
|
+
var utf8 = exports2;
|
|
1322
|
+
utf8.length = function utf8_length(string) {
|
|
1323
|
+
var len = 0, c = 0;
|
|
1324
|
+
for (var i = 0; i < string.length; ++i) {
|
|
1325
|
+
c = string.charCodeAt(i);
|
|
1326
|
+
if (c < 128)
|
|
1327
|
+
len += 1;
|
|
1328
|
+
else if (c < 2048)
|
|
1329
|
+
len += 2;
|
|
1330
|
+
else if ((c & 64512) === 55296 && (string.charCodeAt(i + 1) & 64512) === 56320) {
|
|
1331
|
+
++i;
|
|
1332
|
+
len += 4;
|
|
1333
|
+
} else
|
|
1334
|
+
len += 3;
|
|
1335
|
+
}
|
|
1336
|
+
return len;
|
|
1337
|
+
};
|
|
1338
|
+
utf8.read = function utf8_read(buffer, start, end) {
|
|
1339
|
+
var len = end - start;
|
|
1340
|
+
if (len < 1)
|
|
1341
|
+
return "";
|
|
1342
|
+
var parts = null, chunk = [], i = 0, t;
|
|
1343
|
+
while (start < end) {
|
|
1344
|
+
t = buffer[start++];
|
|
1345
|
+
if (t < 128)
|
|
1346
|
+
chunk[i++] = t;
|
|
1347
|
+
else if (t > 191 && t < 224)
|
|
1348
|
+
chunk[i++] = (t & 31) << 6 | buffer[start++] & 63;
|
|
1349
|
+
else if (t > 239 && t < 365) {
|
|
1350
|
+
t = ((t & 7) << 18 | (buffer[start++] & 63) << 12 | (buffer[start++] & 63) << 6 | buffer[start++] & 63) - 65536;
|
|
1351
|
+
chunk[i++] = 55296 + (t >> 10);
|
|
1352
|
+
chunk[i++] = 56320 + (t & 1023);
|
|
1353
|
+
} else
|
|
1354
|
+
chunk[i++] = (t & 15) << 12 | (buffer[start++] & 63) << 6 | buffer[start++] & 63;
|
|
1355
|
+
if (i > 8191) {
|
|
1356
|
+
(parts || (parts = [])).push(String.fromCharCode.apply(String, chunk));
|
|
1357
|
+
i = 0;
|
|
1358
|
+
}
|
|
1359
|
+
}
|
|
1360
|
+
if (parts) {
|
|
1361
|
+
if (i)
|
|
1362
|
+
parts.push(String.fromCharCode.apply(String, chunk.slice(0, i)));
|
|
1363
|
+
return parts.join("");
|
|
1364
|
+
}
|
|
1365
|
+
return String.fromCharCode.apply(String, chunk.slice(0, i));
|
|
1366
|
+
};
|
|
1367
|
+
utf8.write = function utf8_write(string, buffer, offset) {
|
|
1368
|
+
var start = offset, c1, c2;
|
|
1369
|
+
for (var i = 0; i < string.length; ++i) {
|
|
1370
|
+
c1 = string.charCodeAt(i);
|
|
1371
|
+
if (c1 < 128) {
|
|
1372
|
+
buffer[offset++] = c1;
|
|
1373
|
+
} else if (c1 < 2048) {
|
|
1374
|
+
buffer[offset++] = c1 >> 6 | 192;
|
|
1375
|
+
buffer[offset++] = c1 & 63 | 128;
|
|
1376
|
+
} else if ((c1 & 64512) === 55296 && ((c2 = string.charCodeAt(i + 1)) & 64512) === 56320) {
|
|
1377
|
+
c1 = 65536 + ((c1 & 1023) << 10) + (c2 & 1023);
|
|
1378
|
+
++i;
|
|
1379
|
+
buffer[offset++] = c1 >> 18 | 240;
|
|
1380
|
+
buffer[offset++] = c1 >> 12 & 63 | 128;
|
|
1381
|
+
buffer[offset++] = c1 >> 6 & 63 | 128;
|
|
1382
|
+
buffer[offset++] = c1 & 63 | 128;
|
|
1383
|
+
} else {
|
|
1384
|
+
buffer[offset++] = c1 >> 12 | 224;
|
|
1385
|
+
buffer[offset++] = c1 >> 6 & 63 | 128;
|
|
1386
|
+
buffer[offset++] = c1 & 63 | 128;
|
|
1387
|
+
}
|
|
1388
|
+
}
|
|
1389
|
+
return offset - start;
|
|
1390
|
+
};
|
|
1391
|
+
}
|
|
1392
|
+
});
|
|
1393
|
+
|
|
1394
|
+
// ../../node_modules/@protobufjs/pool/index.js
|
|
1395
|
+
var require_pool = __commonJS({
|
|
1396
|
+
"../../node_modules/@protobufjs/pool/index.js"(exports2, module2) {
|
|
1397
|
+
"use strict";
|
|
1398
|
+
module2.exports = pool;
|
|
1399
|
+
function pool(alloc, slice, size) {
|
|
1400
|
+
var SIZE = size || 8192;
|
|
1401
|
+
var MAX = SIZE >>> 1;
|
|
1402
|
+
var slab = null;
|
|
1403
|
+
var offset = SIZE;
|
|
1404
|
+
return function pool_alloc(size2) {
|
|
1405
|
+
if (size2 < 1 || size2 > MAX)
|
|
1406
|
+
return alloc(size2);
|
|
1407
|
+
if (offset + size2 > SIZE) {
|
|
1408
|
+
slab = alloc(SIZE);
|
|
1409
|
+
offset = 0;
|
|
1410
|
+
}
|
|
1411
|
+
var buf = slice.call(slab, offset, offset += size2);
|
|
1412
|
+
if (offset & 7)
|
|
1413
|
+
offset = (offset | 7) + 1;
|
|
1414
|
+
return buf;
|
|
1415
|
+
};
|
|
1416
|
+
}
|
|
1417
|
+
}
|
|
1418
|
+
});
|
|
1419
|
+
|
|
1420
|
+
// ../../node_modules/protobufjs/src/util/longbits.js
|
|
1421
|
+
var require_longbits = __commonJS({
|
|
1422
|
+
"../../node_modules/protobufjs/src/util/longbits.js"(exports2, module2) {
|
|
1423
|
+
"use strict";
|
|
1424
|
+
module2.exports = LongBits;
|
|
1425
|
+
var util = require_minimal();
|
|
1426
|
+
function LongBits(lo, hi) {
|
|
1427
|
+
this.lo = lo >>> 0;
|
|
1428
|
+
this.hi = hi >>> 0;
|
|
1429
|
+
}
|
|
1430
|
+
var zero = LongBits.zero = new LongBits(0, 0);
|
|
1431
|
+
zero.toNumber = function() {
|
|
1432
|
+
return 0;
|
|
1433
|
+
};
|
|
1434
|
+
zero.zzEncode = zero.zzDecode = function() {
|
|
1435
|
+
return this;
|
|
1436
|
+
};
|
|
1437
|
+
zero.length = function() {
|
|
1438
|
+
return 1;
|
|
1439
|
+
};
|
|
1440
|
+
var zeroHash = LongBits.zeroHash = "\0\0\0\0\0\0\0\0";
|
|
1441
|
+
LongBits.fromNumber = function fromNumber(value) {
|
|
1442
|
+
if (value === 0)
|
|
1443
|
+
return zero;
|
|
1444
|
+
var sign = value < 0;
|
|
1445
|
+
if (sign)
|
|
1446
|
+
value = -value;
|
|
1447
|
+
var lo = value >>> 0, hi = (value - lo) / 4294967296 >>> 0;
|
|
1448
|
+
if (sign) {
|
|
1449
|
+
hi = ~hi >>> 0;
|
|
1450
|
+
lo = ~lo >>> 0;
|
|
1451
|
+
if (++lo > 4294967295) {
|
|
1452
|
+
lo = 0;
|
|
1453
|
+
if (++hi > 4294967295)
|
|
1454
|
+
hi = 0;
|
|
1455
|
+
}
|
|
1456
|
+
}
|
|
1457
|
+
return new LongBits(lo, hi);
|
|
1458
|
+
};
|
|
1459
|
+
LongBits.from = function from(value) {
|
|
1460
|
+
if (typeof value === "number")
|
|
1461
|
+
return LongBits.fromNumber(value);
|
|
1462
|
+
if (util.isString(value)) {
|
|
1463
|
+
if (util.Long)
|
|
1464
|
+
value = util.Long.fromString(value);
|
|
1465
|
+
else
|
|
1466
|
+
return LongBits.fromNumber(parseInt(value, 10));
|
|
1467
|
+
}
|
|
1468
|
+
return value.low || value.high ? new LongBits(value.low >>> 0, value.high >>> 0) : zero;
|
|
1469
|
+
};
|
|
1470
|
+
LongBits.prototype.toNumber = function toNumber(unsigned) {
|
|
1471
|
+
if (!unsigned && this.hi >>> 31) {
|
|
1472
|
+
var lo = ~this.lo + 1 >>> 0, hi = ~this.hi >>> 0;
|
|
1473
|
+
if (!lo)
|
|
1474
|
+
hi = hi + 1 >>> 0;
|
|
1475
|
+
return -(lo + hi * 4294967296);
|
|
1476
|
+
}
|
|
1477
|
+
return this.lo + this.hi * 4294967296;
|
|
1478
|
+
};
|
|
1479
|
+
LongBits.prototype.toLong = function toLong(unsigned) {
|
|
1480
|
+
return util.Long ? new util.Long(this.lo | 0, this.hi | 0, Boolean(unsigned)) : { low: this.lo | 0, high: this.hi | 0, unsigned: Boolean(unsigned) };
|
|
1481
|
+
};
|
|
1482
|
+
var charCodeAt = String.prototype.charCodeAt;
|
|
1483
|
+
LongBits.fromHash = function fromHash(hash) {
|
|
1484
|
+
if (hash === zeroHash)
|
|
1485
|
+
return zero;
|
|
1486
|
+
return new LongBits(
|
|
1487
|
+
(charCodeAt.call(hash, 0) | charCodeAt.call(hash, 1) << 8 | charCodeAt.call(hash, 2) << 16 | charCodeAt.call(hash, 3) << 24) >>> 0,
|
|
1488
|
+
(charCodeAt.call(hash, 4) | charCodeAt.call(hash, 5) << 8 | charCodeAt.call(hash, 6) << 16 | charCodeAt.call(hash, 7) << 24) >>> 0
|
|
1489
|
+
);
|
|
1490
|
+
};
|
|
1491
|
+
LongBits.prototype.toHash = function toHash() {
|
|
1492
|
+
return String.fromCharCode(
|
|
1493
|
+
this.lo & 255,
|
|
1494
|
+
this.lo >>> 8 & 255,
|
|
1495
|
+
this.lo >>> 16 & 255,
|
|
1496
|
+
this.lo >>> 24,
|
|
1497
|
+
this.hi & 255,
|
|
1498
|
+
this.hi >>> 8 & 255,
|
|
1499
|
+
this.hi >>> 16 & 255,
|
|
1500
|
+
this.hi >>> 24
|
|
1501
|
+
);
|
|
1502
|
+
};
|
|
1503
|
+
LongBits.prototype.zzEncode = function zzEncode() {
|
|
1504
|
+
var mask = this.hi >> 31;
|
|
1505
|
+
this.hi = ((this.hi << 1 | this.lo >>> 31) ^ mask) >>> 0;
|
|
1506
|
+
this.lo = (this.lo << 1 ^ mask) >>> 0;
|
|
1507
|
+
return this;
|
|
1508
|
+
};
|
|
1509
|
+
LongBits.prototype.zzDecode = function zzDecode() {
|
|
1510
|
+
var mask = -(this.lo & 1);
|
|
1511
|
+
this.lo = ((this.lo >>> 1 | this.hi << 31) ^ mask) >>> 0;
|
|
1512
|
+
this.hi = (this.hi >>> 1 ^ mask) >>> 0;
|
|
1513
|
+
return this;
|
|
1514
|
+
};
|
|
1515
|
+
LongBits.prototype.length = function length() {
|
|
1516
|
+
var part0 = this.lo, part1 = (this.lo >>> 28 | this.hi << 4) >>> 0, part2 = this.hi >>> 24;
|
|
1517
|
+
return part2 === 0 ? part1 === 0 ? part0 < 16384 ? part0 < 128 ? 1 : 2 : part0 < 2097152 ? 3 : 4 : part1 < 16384 ? part1 < 128 ? 5 : 6 : part1 < 2097152 ? 7 : 8 : part2 < 128 ? 9 : 10;
|
|
1518
|
+
};
|
|
1519
|
+
}
|
|
1520
|
+
});
|
|
1521
|
+
|
|
1522
|
+
// ../../node_modules/protobufjs/src/util/minimal.js
|
|
1523
|
+
var require_minimal = __commonJS({
|
|
1524
|
+
"../../node_modules/protobufjs/src/util/minimal.js"(exports2) {
|
|
1525
|
+
"use strict";
|
|
1526
|
+
var util = exports2;
|
|
1527
|
+
util.asPromise = require_aspromise();
|
|
1528
|
+
util.base64 = require_base64();
|
|
1529
|
+
util.EventEmitter = require_eventemitter();
|
|
1530
|
+
util.float = require_float();
|
|
1531
|
+
util.inquire = require_inquire();
|
|
1532
|
+
util.utf8 = require_utf8();
|
|
1533
|
+
util.pool = require_pool();
|
|
1534
|
+
util.LongBits = require_longbits();
|
|
1535
|
+
util.isNode = Boolean(typeof global !== "undefined" && global && global.process && global.process.versions && global.process.versions.node);
|
|
1536
|
+
util.global = util.isNode && global || typeof window !== "undefined" && window || typeof self !== "undefined" && self || exports2;
|
|
1537
|
+
util.emptyArray = Object.freeze ? Object.freeze([]) : (
|
|
1538
|
+
/* istanbul ignore next */
|
|
1539
|
+
[]
|
|
1540
|
+
);
|
|
1541
|
+
util.emptyObject = Object.freeze ? Object.freeze({}) : (
|
|
1542
|
+
/* istanbul ignore next */
|
|
1543
|
+
{}
|
|
1544
|
+
);
|
|
1545
|
+
util.isInteger = Number.isInteger || /* istanbul ignore next */
|
|
1546
|
+
function isInteger(value) {
|
|
1547
|
+
return typeof value === "number" && isFinite(value) && Math.floor(value) === value;
|
|
1548
|
+
};
|
|
1549
|
+
util.isString = function isString(value) {
|
|
1550
|
+
return typeof value === "string" || value instanceof String;
|
|
1551
|
+
};
|
|
1552
|
+
util.isObject = function isObject(value) {
|
|
1553
|
+
return value && typeof value === "object";
|
|
1554
|
+
};
|
|
1555
|
+
util.isset = /**
|
|
1556
|
+
* Checks if a property on a message is considered to be present.
|
|
1557
|
+
* @param {Object} obj Plain object or message instance
|
|
1558
|
+
* @param {string} prop Property name
|
|
1559
|
+
* @returns {boolean} `true` if considered to be present, otherwise `false`
|
|
1560
|
+
*/
|
|
1561
|
+
util.isSet = function isSet3(obj, prop) {
|
|
1562
|
+
var value = obj[prop];
|
|
1563
|
+
if (value != null && obj.hasOwnProperty(prop))
|
|
1564
|
+
return typeof value !== "object" || (Array.isArray(value) ? value.length : Object.keys(value).length) > 0;
|
|
1565
|
+
return false;
|
|
1566
|
+
};
|
|
1567
|
+
util.Buffer = function() {
|
|
1568
|
+
try {
|
|
1569
|
+
var Buffer2 = util.inquire("buffer").Buffer;
|
|
1570
|
+
return Buffer2.prototype.utf8Write ? Buffer2 : (
|
|
1571
|
+
/* istanbul ignore next */
|
|
1572
|
+
null
|
|
1573
|
+
);
|
|
1574
|
+
} catch (e) {
|
|
1575
|
+
return null;
|
|
1576
|
+
}
|
|
1577
|
+
}();
|
|
1578
|
+
util._Buffer_from = null;
|
|
1579
|
+
util._Buffer_allocUnsafe = null;
|
|
1580
|
+
util.newBuffer = function newBuffer(sizeOrArray) {
|
|
1581
|
+
return typeof sizeOrArray === "number" ? util.Buffer ? util._Buffer_allocUnsafe(sizeOrArray) : new util.Array(sizeOrArray) : util.Buffer ? util._Buffer_from(sizeOrArray) : typeof Uint8Array === "undefined" ? sizeOrArray : new Uint8Array(sizeOrArray);
|
|
1582
|
+
};
|
|
1583
|
+
util.Array = typeof Uint8Array !== "undefined" ? Uint8Array : Array;
|
|
1584
|
+
util.Long = /* istanbul ignore next */
|
|
1585
|
+
util.global.dcodeIO && /* istanbul ignore next */
|
|
1586
|
+
util.global.dcodeIO.Long || /* istanbul ignore next */
|
|
1587
|
+
util.global.Long || util.inquire("long");
|
|
1588
|
+
util.key2Re = /^true|false|0|1$/;
|
|
1589
|
+
util.key32Re = /^-?(?:0|[1-9][0-9]*)$/;
|
|
1590
|
+
util.key64Re = /^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;
|
|
1591
|
+
util.longToHash = function longToHash(value) {
|
|
1592
|
+
return value ? util.LongBits.from(value).toHash() : util.LongBits.zeroHash;
|
|
1593
|
+
};
|
|
1594
|
+
util.longFromHash = function longFromHash(hash, unsigned) {
|
|
1595
|
+
var bits = util.LongBits.fromHash(hash);
|
|
1596
|
+
if (util.Long)
|
|
1597
|
+
return util.Long.fromBits(bits.lo, bits.hi, unsigned);
|
|
1598
|
+
return bits.toNumber(Boolean(unsigned));
|
|
1599
|
+
};
|
|
1600
|
+
function merge(dst, src, ifNotSet) {
|
|
1601
|
+
for (var keys = Object.keys(src), i = 0; i < keys.length; ++i)
|
|
1602
|
+
if (dst[keys[i]] === void 0 || !ifNotSet)
|
|
1603
|
+
dst[keys[i]] = src[keys[i]];
|
|
1604
|
+
return dst;
|
|
1605
|
+
}
|
|
1606
|
+
util.merge = merge;
|
|
1607
|
+
util.lcFirst = function lcFirst(str) {
|
|
1608
|
+
return str.charAt(0).toLowerCase() + str.substring(1);
|
|
1609
|
+
};
|
|
1610
|
+
function newError(name) {
|
|
1611
|
+
function CustomError(message, properties) {
|
|
1612
|
+
if (!(this instanceof CustomError))
|
|
1613
|
+
return new CustomError(message, properties);
|
|
1614
|
+
Object.defineProperty(this, "message", { get: function() {
|
|
1615
|
+
return message;
|
|
1616
|
+
} });
|
|
1617
|
+
if (Error.captureStackTrace)
|
|
1618
|
+
Error.captureStackTrace(this, CustomError);
|
|
1619
|
+
else
|
|
1620
|
+
Object.defineProperty(this, "stack", { value: new Error().stack || "" });
|
|
1621
|
+
if (properties)
|
|
1622
|
+
merge(this, properties);
|
|
1623
|
+
}
|
|
1624
|
+
(CustomError.prototype = Object.create(Error.prototype)).constructor = CustomError;
|
|
1625
|
+
Object.defineProperty(CustomError.prototype, "name", { get: function() {
|
|
1626
|
+
return name;
|
|
1627
|
+
} });
|
|
1628
|
+
CustomError.prototype.toString = function toString() {
|
|
1629
|
+
return this.name + ": " + this.message;
|
|
1630
|
+
};
|
|
1631
|
+
return CustomError;
|
|
1632
|
+
}
|
|
1633
|
+
util.newError = newError;
|
|
1634
|
+
util.ProtocolError = newError("ProtocolError");
|
|
1635
|
+
util.oneOfGetter = function getOneOf(fieldNames) {
|
|
1636
|
+
var fieldMap = {};
|
|
1637
|
+
for (var i = 0; i < fieldNames.length; ++i)
|
|
1638
|
+
fieldMap[fieldNames[i]] = 1;
|
|
1639
|
+
return function() {
|
|
1640
|
+
for (var keys = Object.keys(this), i2 = keys.length - 1; i2 > -1; --i2)
|
|
1641
|
+
if (fieldMap[keys[i2]] === 1 && this[keys[i2]] !== void 0 && this[keys[i2]] !== null)
|
|
1642
|
+
return keys[i2];
|
|
1643
|
+
};
|
|
1644
|
+
};
|
|
1645
|
+
util.oneOfSetter = function setOneOf(fieldNames) {
|
|
1646
|
+
return function(name) {
|
|
1647
|
+
for (var i = 0; i < fieldNames.length; ++i)
|
|
1648
|
+
if (fieldNames[i] !== name)
|
|
1649
|
+
delete this[fieldNames[i]];
|
|
1650
|
+
};
|
|
1651
|
+
};
|
|
1652
|
+
util.toJSONOptions = {
|
|
1653
|
+
longs: String,
|
|
1654
|
+
enums: String,
|
|
1655
|
+
bytes: String,
|
|
1656
|
+
json: true
|
|
1657
|
+
};
|
|
1658
|
+
util._configure = function() {
|
|
1659
|
+
var Buffer2 = util.Buffer;
|
|
1660
|
+
if (!Buffer2) {
|
|
1661
|
+
util._Buffer_from = util._Buffer_allocUnsafe = null;
|
|
1662
|
+
return;
|
|
1663
|
+
}
|
|
1664
|
+
util._Buffer_from = Buffer2.from !== Uint8Array.from && Buffer2.from || /* istanbul ignore next */
|
|
1665
|
+
function Buffer_from(value, encoding) {
|
|
1666
|
+
return new Buffer2(value, encoding);
|
|
1667
|
+
};
|
|
1668
|
+
util._Buffer_allocUnsafe = Buffer2.allocUnsafe || /* istanbul ignore next */
|
|
1669
|
+
function Buffer_allocUnsafe(size) {
|
|
1670
|
+
return new Buffer2(size);
|
|
1671
|
+
};
|
|
1672
|
+
};
|
|
1673
|
+
}
|
|
1674
|
+
});
|
|
1675
|
+
|
|
1676
|
+
// ../../node_modules/protobufjs/src/writer.js
|
|
1677
|
+
var require_writer = __commonJS({
|
|
1678
|
+
"../../node_modules/protobufjs/src/writer.js"(exports2, module2) {
|
|
1679
|
+
"use strict";
|
|
1680
|
+
module2.exports = Writer;
|
|
1681
|
+
var util = require_minimal();
|
|
1682
|
+
var BufferWriter;
|
|
1683
|
+
var LongBits = util.LongBits;
|
|
1684
|
+
var base64 = util.base64;
|
|
1685
|
+
var utf8 = util.utf8;
|
|
1686
|
+
function Op(fn, len, val) {
|
|
1687
|
+
this.fn = fn;
|
|
1688
|
+
this.len = len;
|
|
1689
|
+
this.next = void 0;
|
|
1690
|
+
this.val = val;
|
|
1691
|
+
}
|
|
1692
|
+
function noop() {
|
|
1693
|
+
}
|
|
1694
|
+
function State(writer) {
|
|
1695
|
+
this.head = writer.head;
|
|
1696
|
+
this.tail = writer.tail;
|
|
1697
|
+
this.len = writer.len;
|
|
1698
|
+
this.next = writer.states;
|
|
1699
|
+
}
|
|
1700
|
+
function Writer() {
|
|
1701
|
+
this.len = 0;
|
|
1702
|
+
this.head = new Op(noop, 0, 0);
|
|
1703
|
+
this.tail = this.head;
|
|
1704
|
+
this.states = null;
|
|
1705
|
+
}
|
|
1706
|
+
var create = function create2() {
|
|
1707
|
+
return util.Buffer ? function create_buffer_setup() {
|
|
1708
|
+
return (Writer.create = function create_buffer() {
|
|
1709
|
+
return new BufferWriter();
|
|
1710
|
+
})();
|
|
1711
|
+
} : function create_array() {
|
|
1712
|
+
return new Writer();
|
|
1713
|
+
};
|
|
1714
|
+
};
|
|
1715
|
+
Writer.create = create();
|
|
1716
|
+
Writer.alloc = function alloc(size) {
|
|
1717
|
+
return new util.Array(size);
|
|
1718
|
+
};
|
|
1719
|
+
if (util.Array !== Array)
|
|
1720
|
+
Writer.alloc = util.pool(Writer.alloc, util.Array.prototype.subarray);
|
|
1721
|
+
Writer.prototype._push = function push(fn, len, val) {
|
|
1722
|
+
this.tail = this.tail.next = new Op(fn, len, val);
|
|
1723
|
+
this.len += len;
|
|
1724
|
+
return this;
|
|
1725
|
+
};
|
|
1726
|
+
function writeByte(val, buf, pos) {
|
|
1727
|
+
buf[pos] = val & 255;
|
|
1728
|
+
}
|
|
1729
|
+
function writeVarint32(val, buf, pos) {
|
|
1730
|
+
while (val > 127) {
|
|
1731
|
+
buf[pos++] = val & 127 | 128;
|
|
1732
|
+
val >>>= 7;
|
|
1733
|
+
}
|
|
1734
|
+
buf[pos] = val;
|
|
1735
|
+
}
|
|
1736
|
+
function VarintOp(len, val) {
|
|
1737
|
+
this.len = len;
|
|
1738
|
+
this.next = void 0;
|
|
1739
|
+
this.val = val;
|
|
1740
|
+
}
|
|
1741
|
+
VarintOp.prototype = Object.create(Op.prototype);
|
|
1742
|
+
VarintOp.prototype.fn = writeVarint32;
|
|
1743
|
+
Writer.prototype.uint32 = function write_uint32(value) {
|
|
1744
|
+
this.len += (this.tail = this.tail.next = new VarintOp(
|
|
1745
|
+
(value = value >>> 0) < 128 ? 1 : value < 16384 ? 2 : value < 2097152 ? 3 : value < 268435456 ? 4 : 5,
|
|
1746
|
+
value
|
|
1747
|
+
)).len;
|
|
1748
|
+
return this;
|
|
1749
|
+
};
|
|
1750
|
+
Writer.prototype.int32 = function write_int32(value) {
|
|
1751
|
+
return value < 0 ? this._push(writeVarint64, 10, LongBits.fromNumber(value)) : this.uint32(value);
|
|
1752
|
+
};
|
|
1753
|
+
Writer.prototype.sint32 = function write_sint32(value) {
|
|
1754
|
+
return this.uint32((value << 1 ^ value >> 31) >>> 0);
|
|
1755
|
+
};
|
|
1756
|
+
function writeVarint64(val, buf, pos) {
|
|
1757
|
+
while (val.hi) {
|
|
1758
|
+
buf[pos++] = val.lo & 127 | 128;
|
|
1759
|
+
val.lo = (val.lo >>> 7 | val.hi << 25) >>> 0;
|
|
1760
|
+
val.hi >>>= 7;
|
|
1761
|
+
}
|
|
1762
|
+
while (val.lo > 127) {
|
|
1763
|
+
buf[pos++] = val.lo & 127 | 128;
|
|
1764
|
+
val.lo = val.lo >>> 7;
|
|
1765
|
+
}
|
|
1766
|
+
buf[pos++] = val.lo;
|
|
1767
|
+
}
|
|
1768
|
+
Writer.prototype.uint64 = function write_uint64(value) {
|
|
1769
|
+
var bits = LongBits.from(value);
|
|
1770
|
+
return this._push(writeVarint64, bits.length(), bits);
|
|
1771
|
+
};
|
|
1772
|
+
Writer.prototype.int64 = Writer.prototype.uint64;
|
|
1773
|
+
Writer.prototype.sint64 = function write_sint64(value) {
|
|
1774
|
+
var bits = LongBits.from(value).zzEncode();
|
|
1775
|
+
return this._push(writeVarint64, bits.length(), bits);
|
|
1776
|
+
};
|
|
1777
|
+
Writer.prototype.bool = function write_bool(value) {
|
|
1778
|
+
return this._push(writeByte, 1, value ? 1 : 0);
|
|
1779
|
+
};
|
|
1780
|
+
function writeFixed32(val, buf, pos) {
|
|
1781
|
+
buf[pos] = val & 255;
|
|
1782
|
+
buf[pos + 1] = val >>> 8 & 255;
|
|
1783
|
+
buf[pos + 2] = val >>> 16 & 255;
|
|
1784
|
+
buf[pos + 3] = val >>> 24;
|
|
1785
|
+
}
|
|
1786
|
+
Writer.prototype.fixed32 = function write_fixed32(value) {
|
|
1787
|
+
return this._push(writeFixed32, 4, value >>> 0);
|
|
1788
|
+
};
|
|
1789
|
+
Writer.prototype.sfixed32 = Writer.prototype.fixed32;
|
|
1790
|
+
Writer.prototype.fixed64 = function write_fixed64(value) {
|
|
1791
|
+
var bits = LongBits.from(value);
|
|
1792
|
+
return this._push(writeFixed32, 4, bits.lo)._push(writeFixed32, 4, bits.hi);
|
|
1793
|
+
};
|
|
1794
|
+
Writer.prototype.sfixed64 = Writer.prototype.fixed64;
|
|
1795
|
+
Writer.prototype.float = function write_float(value) {
|
|
1796
|
+
return this._push(util.float.writeFloatLE, 4, value);
|
|
1797
|
+
};
|
|
1798
|
+
Writer.prototype.double = function write_double(value) {
|
|
1799
|
+
return this._push(util.float.writeDoubleLE, 8, value);
|
|
1800
|
+
};
|
|
1801
|
+
var writeBytes = util.Array.prototype.set ? function writeBytes_set(val, buf, pos) {
|
|
1802
|
+
buf.set(val, pos);
|
|
1803
|
+
} : function writeBytes_for(val, buf, pos) {
|
|
1804
|
+
for (var i = 0; i < val.length; ++i)
|
|
1805
|
+
buf[pos + i] = val[i];
|
|
1806
|
+
};
|
|
1807
|
+
Writer.prototype.bytes = function write_bytes(value) {
|
|
1808
|
+
var len = value.length >>> 0;
|
|
1809
|
+
if (!len)
|
|
1810
|
+
return this._push(writeByte, 1, 0);
|
|
1811
|
+
if (util.isString(value)) {
|
|
1812
|
+
var buf = Writer.alloc(len = base64.length(value));
|
|
1813
|
+
base64.decode(value, buf, 0);
|
|
1814
|
+
value = buf;
|
|
1815
|
+
}
|
|
1816
|
+
return this.uint32(len)._push(writeBytes, len, value);
|
|
1817
|
+
};
|
|
1818
|
+
Writer.prototype.string = function write_string(value) {
|
|
1819
|
+
var len = utf8.length(value);
|
|
1820
|
+
return len ? this.uint32(len)._push(utf8.write, len, value) : this._push(writeByte, 1, 0);
|
|
1821
|
+
};
|
|
1822
|
+
Writer.prototype.fork = function fork() {
|
|
1823
|
+
this.states = new State(this);
|
|
1824
|
+
this.head = this.tail = new Op(noop, 0, 0);
|
|
1825
|
+
this.len = 0;
|
|
1826
|
+
return this;
|
|
1827
|
+
};
|
|
1828
|
+
Writer.prototype.reset = function reset() {
|
|
1829
|
+
if (this.states) {
|
|
1830
|
+
this.head = this.states.head;
|
|
1831
|
+
this.tail = this.states.tail;
|
|
1832
|
+
this.len = this.states.len;
|
|
1833
|
+
this.states = this.states.next;
|
|
1834
|
+
} else {
|
|
1835
|
+
this.head = this.tail = new Op(noop, 0, 0);
|
|
1836
|
+
this.len = 0;
|
|
1837
|
+
}
|
|
1838
|
+
return this;
|
|
1839
|
+
};
|
|
1840
|
+
Writer.prototype.ldelim = function ldelim() {
|
|
1841
|
+
var head = this.head, tail = this.tail, len = this.len;
|
|
1842
|
+
this.reset().uint32(len);
|
|
1843
|
+
if (len) {
|
|
1844
|
+
this.tail.next = head.next;
|
|
1845
|
+
this.tail = tail;
|
|
1846
|
+
this.len += len;
|
|
1847
|
+
}
|
|
1848
|
+
return this;
|
|
1849
|
+
};
|
|
1850
|
+
Writer.prototype.finish = function finish() {
|
|
1851
|
+
var head = this.head.next, buf = this.constructor.alloc(this.len), pos = 0;
|
|
1852
|
+
while (head) {
|
|
1853
|
+
head.fn(head.val, buf, pos);
|
|
1854
|
+
pos += head.len;
|
|
1855
|
+
head = head.next;
|
|
1856
|
+
}
|
|
1857
|
+
return buf;
|
|
1858
|
+
};
|
|
1859
|
+
Writer._configure = function(BufferWriter_) {
|
|
1860
|
+
BufferWriter = BufferWriter_;
|
|
1861
|
+
Writer.create = create();
|
|
1862
|
+
BufferWriter._configure();
|
|
1863
|
+
};
|
|
1864
|
+
}
|
|
1865
|
+
});
|
|
1866
|
+
|
|
1867
|
+
// ../../node_modules/protobufjs/src/writer_buffer.js
|
|
1868
|
+
var require_writer_buffer = __commonJS({
|
|
1869
|
+
"../../node_modules/protobufjs/src/writer_buffer.js"(exports2, module2) {
|
|
1870
|
+
"use strict";
|
|
1871
|
+
module2.exports = BufferWriter;
|
|
1872
|
+
var Writer = require_writer();
|
|
1873
|
+
(BufferWriter.prototype = Object.create(Writer.prototype)).constructor = BufferWriter;
|
|
1874
|
+
var util = require_minimal();
|
|
1875
|
+
function BufferWriter() {
|
|
1876
|
+
Writer.call(this);
|
|
1877
|
+
}
|
|
1878
|
+
BufferWriter._configure = function() {
|
|
1879
|
+
BufferWriter.alloc = util._Buffer_allocUnsafe;
|
|
1880
|
+
BufferWriter.writeBytesBuffer = util.Buffer && util.Buffer.prototype instanceof Uint8Array && util.Buffer.prototype.set.name === "set" ? function writeBytesBuffer_set(val, buf, pos) {
|
|
1881
|
+
buf.set(val, pos);
|
|
1882
|
+
} : function writeBytesBuffer_copy(val, buf, pos) {
|
|
1883
|
+
if (val.copy)
|
|
1884
|
+
val.copy(buf, pos, 0, val.length);
|
|
1885
|
+
else for (var i = 0; i < val.length; )
|
|
1886
|
+
buf[pos++] = val[i++];
|
|
1887
|
+
};
|
|
1888
|
+
};
|
|
1889
|
+
BufferWriter.prototype.bytes = function write_bytes_buffer(value) {
|
|
1890
|
+
if (util.isString(value))
|
|
1891
|
+
value = util._Buffer_from(value, "base64");
|
|
1892
|
+
var len = value.length >>> 0;
|
|
1893
|
+
this.uint32(len);
|
|
1894
|
+
if (len)
|
|
1895
|
+
this._push(BufferWriter.writeBytesBuffer, len, value);
|
|
1896
|
+
return this;
|
|
1897
|
+
};
|
|
1898
|
+
function writeStringBuffer(val, buf, pos) {
|
|
1899
|
+
if (val.length < 40)
|
|
1900
|
+
util.utf8.write(val, buf, pos);
|
|
1901
|
+
else if (buf.utf8Write)
|
|
1902
|
+
buf.utf8Write(val, pos);
|
|
1903
|
+
else
|
|
1904
|
+
buf.write(val, pos);
|
|
1905
|
+
}
|
|
1906
|
+
BufferWriter.prototype.string = function write_string_buffer(value) {
|
|
1907
|
+
var len = util.Buffer.byteLength(value);
|
|
1908
|
+
this.uint32(len);
|
|
1909
|
+
if (len)
|
|
1910
|
+
this._push(writeStringBuffer, len, value);
|
|
1911
|
+
return this;
|
|
1912
|
+
};
|
|
1913
|
+
BufferWriter._configure();
|
|
1914
|
+
}
|
|
1915
|
+
});
|
|
1916
|
+
|
|
1917
|
+
// ../../node_modules/protobufjs/src/reader.js
|
|
1918
|
+
var require_reader = __commonJS({
|
|
1919
|
+
"../../node_modules/protobufjs/src/reader.js"(exports2, module2) {
|
|
1920
|
+
"use strict";
|
|
1921
|
+
module2.exports = Reader;
|
|
1922
|
+
var util = require_minimal();
|
|
1923
|
+
var BufferReader;
|
|
1924
|
+
var LongBits = util.LongBits;
|
|
1925
|
+
var utf8 = util.utf8;
|
|
1926
|
+
function indexOutOfRange(reader, writeLength) {
|
|
1927
|
+
return RangeError("index out of range: " + reader.pos + " + " + (writeLength || 1) + " > " + reader.len);
|
|
1928
|
+
}
|
|
1929
|
+
function Reader(buffer) {
|
|
1930
|
+
this.buf = buffer;
|
|
1931
|
+
this.pos = 0;
|
|
1932
|
+
this.len = buffer.length;
|
|
1933
|
+
}
|
|
1934
|
+
var create_array = typeof Uint8Array !== "undefined" ? function create_typed_array(buffer) {
|
|
1935
|
+
if (buffer instanceof Uint8Array || Array.isArray(buffer))
|
|
1936
|
+
return new Reader(buffer);
|
|
1937
|
+
throw Error("illegal buffer");
|
|
1938
|
+
} : function create_array2(buffer) {
|
|
1939
|
+
if (Array.isArray(buffer))
|
|
1940
|
+
return new Reader(buffer);
|
|
1941
|
+
throw Error("illegal buffer");
|
|
1942
|
+
};
|
|
1943
|
+
var create = function create2() {
|
|
1944
|
+
return util.Buffer ? function create_buffer_setup(buffer) {
|
|
1945
|
+
return (Reader.create = function create_buffer(buffer2) {
|
|
1946
|
+
return util.Buffer.isBuffer(buffer2) ? new BufferReader(buffer2) : create_array(buffer2);
|
|
1947
|
+
})(buffer);
|
|
1948
|
+
} : create_array;
|
|
1949
|
+
};
|
|
1950
|
+
Reader.create = create();
|
|
1951
|
+
Reader.prototype._slice = util.Array.prototype.subarray || /* istanbul ignore next */
|
|
1952
|
+
util.Array.prototype.slice;
|
|
1953
|
+
Reader.prototype.uint32 = /* @__PURE__ */ function read_uint32_setup() {
|
|
1954
|
+
var value = 4294967295;
|
|
1955
|
+
return function read_uint32() {
|
|
1956
|
+
value = (this.buf[this.pos] & 127) >>> 0;
|
|
1957
|
+
if (this.buf[this.pos++] < 128) return value;
|
|
1958
|
+
value = (value | (this.buf[this.pos] & 127) << 7) >>> 0;
|
|
1959
|
+
if (this.buf[this.pos++] < 128) return value;
|
|
1960
|
+
value = (value | (this.buf[this.pos] & 127) << 14) >>> 0;
|
|
1961
|
+
if (this.buf[this.pos++] < 128) return value;
|
|
1962
|
+
value = (value | (this.buf[this.pos] & 127) << 21) >>> 0;
|
|
1963
|
+
if (this.buf[this.pos++] < 128) return value;
|
|
1964
|
+
value = (value | (this.buf[this.pos] & 15) << 28) >>> 0;
|
|
1965
|
+
if (this.buf[this.pos++] < 128) return value;
|
|
1966
|
+
if ((this.pos += 5) > this.len) {
|
|
1967
|
+
this.pos = this.len;
|
|
1968
|
+
throw indexOutOfRange(this, 10);
|
|
1969
|
+
}
|
|
1970
|
+
return value;
|
|
1971
|
+
};
|
|
1972
|
+
}();
|
|
1973
|
+
Reader.prototype.int32 = function read_int32() {
|
|
1974
|
+
return this.uint32() | 0;
|
|
1975
|
+
};
|
|
1976
|
+
Reader.prototype.sint32 = function read_sint32() {
|
|
1977
|
+
var value = this.uint32();
|
|
1978
|
+
return value >>> 1 ^ -(value & 1) | 0;
|
|
1979
|
+
};
|
|
1980
|
+
function readLongVarint() {
|
|
1981
|
+
var bits = new LongBits(0, 0);
|
|
1982
|
+
var i = 0;
|
|
1983
|
+
if (this.len - this.pos > 4) {
|
|
1984
|
+
for (; i < 4; ++i) {
|
|
1985
|
+
bits.lo = (bits.lo | (this.buf[this.pos] & 127) << i * 7) >>> 0;
|
|
1986
|
+
if (this.buf[this.pos++] < 128)
|
|
1987
|
+
return bits;
|
|
1988
|
+
}
|
|
1989
|
+
bits.lo = (bits.lo | (this.buf[this.pos] & 127) << 28) >>> 0;
|
|
1990
|
+
bits.hi = (bits.hi | (this.buf[this.pos] & 127) >> 4) >>> 0;
|
|
1991
|
+
if (this.buf[this.pos++] < 128)
|
|
1992
|
+
return bits;
|
|
1993
|
+
i = 0;
|
|
1994
|
+
} else {
|
|
1995
|
+
for (; i < 3; ++i) {
|
|
1996
|
+
if (this.pos >= this.len)
|
|
1997
|
+
throw indexOutOfRange(this);
|
|
1998
|
+
bits.lo = (bits.lo | (this.buf[this.pos] & 127) << i * 7) >>> 0;
|
|
1999
|
+
if (this.buf[this.pos++] < 128)
|
|
2000
|
+
return bits;
|
|
2001
|
+
}
|
|
2002
|
+
bits.lo = (bits.lo | (this.buf[this.pos++] & 127) << i * 7) >>> 0;
|
|
2003
|
+
return bits;
|
|
2004
|
+
}
|
|
2005
|
+
if (this.len - this.pos > 4) {
|
|
2006
|
+
for (; i < 5; ++i) {
|
|
2007
|
+
bits.hi = (bits.hi | (this.buf[this.pos] & 127) << i * 7 + 3) >>> 0;
|
|
2008
|
+
if (this.buf[this.pos++] < 128)
|
|
2009
|
+
return bits;
|
|
2010
|
+
}
|
|
2011
|
+
} else {
|
|
2012
|
+
for (; i < 5; ++i) {
|
|
2013
|
+
if (this.pos >= this.len)
|
|
2014
|
+
throw indexOutOfRange(this);
|
|
2015
|
+
bits.hi = (bits.hi | (this.buf[this.pos] & 127) << i * 7 + 3) >>> 0;
|
|
2016
|
+
if (this.buf[this.pos++] < 128)
|
|
2017
|
+
return bits;
|
|
2018
|
+
}
|
|
2019
|
+
}
|
|
2020
|
+
throw Error("invalid varint encoding");
|
|
2021
|
+
}
|
|
2022
|
+
Reader.prototype.bool = function read_bool() {
|
|
2023
|
+
return this.uint32() !== 0;
|
|
2024
|
+
};
|
|
2025
|
+
function readFixed32_end(buf, end) {
|
|
2026
|
+
return (buf[end - 4] | buf[end - 3] << 8 | buf[end - 2] << 16 | buf[end - 1] << 24) >>> 0;
|
|
2027
|
+
}
|
|
2028
|
+
Reader.prototype.fixed32 = function read_fixed32() {
|
|
2029
|
+
if (this.pos + 4 > this.len)
|
|
2030
|
+
throw indexOutOfRange(this, 4);
|
|
2031
|
+
return readFixed32_end(this.buf, this.pos += 4);
|
|
2032
|
+
};
|
|
2033
|
+
Reader.prototype.sfixed32 = function read_sfixed32() {
|
|
2034
|
+
if (this.pos + 4 > this.len)
|
|
2035
|
+
throw indexOutOfRange(this, 4);
|
|
2036
|
+
return readFixed32_end(this.buf, this.pos += 4) | 0;
|
|
2037
|
+
};
|
|
2038
|
+
function readFixed64() {
|
|
2039
|
+
if (this.pos + 8 > this.len)
|
|
2040
|
+
throw indexOutOfRange(this, 8);
|
|
2041
|
+
return new LongBits(readFixed32_end(this.buf, this.pos += 4), readFixed32_end(this.buf, this.pos += 4));
|
|
2042
|
+
}
|
|
2043
|
+
Reader.prototype.float = function read_float() {
|
|
2044
|
+
if (this.pos + 4 > this.len)
|
|
2045
|
+
throw indexOutOfRange(this, 4);
|
|
2046
|
+
var value = util.float.readFloatLE(this.buf, this.pos);
|
|
2047
|
+
this.pos += 4;
|
|
2048
|
+
return value;
|
|
2049
|
+
};
|
|
2050
|
+
Reader.prototype.double = function read_double() {
|
|
2051
|
+
if (this.pos + 8 > this.len)
|
|
2052
|
+
throw indexOutOfRange(this, 4);
|
|
2053
|
+
var value = util.float.readDoubleLE(this.buf, this.pos);
|
|
2054
|
+
this.pos += 8;
|
|
2055
|
+
return value;
|
|
2056
|
+
};
|
|
2057
|
+
Reader.prototype.bytes = function read_bytes() {
|
|
2058
|
+
var length = this.uint32(), start = this.pos, end = this.pos + length;
|
|
2059
|
+
if (end > this.len)
|
|
2060
|
+
throw indexOutOfRange(this, length);
|
|
2061
|
+
this.pos += length;
|
|
2062
|
+
if (Array.isArray(this.buf))
|
|
2063
|
+
return this.buf.slice(start, end);
|
|
2064
|
+
return start === end ? new this.buf.constructor(0) : this._slice.call(this.buf, start, end);
|
|
2065
|
+
};
|
|
2066
|
+
Reader.prototype.string = function read_string() {
|
|
2067
|
+
var bytes = this.bytes();
|
|
2068
|
+
return utf8.read(bytes, 0, bytes.length);
|
|
2069
|
+
};
|
|
2070
|
+
Reader.prototype.skip = function skip(length) {
|
|
2071
|
+
if (typeof length === "number") {
|
|
2072
|
+
if (this.pos + length > this.len)
|
|
2073
|
+
throw indexOutOfRange(this, length);
|
|
2074
|
+
this.pos += length;
|
|
2075
|
+
} else {
|
|
2076
|
+
do {
|
|
2077
|
+
if (this.pos >= this.len)
|
|
2078
|
+
throw indexOutOfRange(this);
|
|
2079
|
+
} while (this.buf[this.pos++] & 128);
|
|
2080
|
+
}
|
|
2081
|
+
return this;
|
|
2082
|
+
};
|
|
2083
|
+
Reader.prototype.skipType = function(wireType) {
|
|
2084
|
+
switch (wireType) {
|
|
2085
|
+
case 0:
|
|
2086
|
+
this.skip();
|
|
2087
|
+
break;
|
|
2088
|
+
case 1:
|
|
2089
|
+
this.skip(8);
|
|
2090
|
+
break;
|
|
2091
|
+
case 2:
|
|
2092
|
+
this.skip(this.uint32());
|
|
2093
|
+
break;
|
|
2094
|
+
case 3:
|
|
2095
|
+
while ((wireType = this.uint32() & 7) !== 4) {
|
|
2096
|
+
this.skipType(wireType);
|
|
2097
|
+
}
|
|
2098
|
+
break;
|
|
2099
|
+
case 5:
|
|
2100
|
+
this.skip(4);
|
|
2101
|
+
break;
|
|
2102
|
+
/* istanbul ignore next */
|
|
2103
|
+
default:
|
|
2104
|
+
throw Error("invalid wire type " + wireType + " at offset " + this.pos);
|
|
2105
|
+
}
|
|
2106
|
+
return this;
|
|
2107
|
+
};
|
|
2108
|
+
Reader._configure = function(BufferReader_) {
|
|
2109
|
+
BufferReader = BufferReader_;
|
|
2110
|
+
Reader.create = create();
|
|
2111
|
+
BufferReader._configure();
|
|
2112
|
+
var fn = util.Long ? "toLong" : (
|
|
2113
|
+
/* istanbul ignore next */
|
|
2114
|
+
"toNumber"
|
|
2115
|
+
);
|
|
2116
|
+
util.merge(Reader.prototype, {
|
|
2117
|
+
int64: function read_int64() {
|
|
2118
|
+
return readLongVarint.call(this)[fn](false);
|
|
2119
|
+
},
|
|
2120
|
+
uint64: function read_uint64() {
|
|
2121
|
+
return readLongVarint.call(this)[fn](true);
|
|
2122
|
+
},
|
|
2123
|
+
sint64: function read_sint64() {
|
|
2124
|
+
return readLongVarint.call(this).zzDecode()[fn](false);
|
|
2125
|
+
},
|
|
2126
|
+
fixed64: function read_fixed64() {
|
|
2127
|
+
return readFixed64.call(this)[fn](true);
|
|
2128
|
+
},
|
|
2129
|
+
sfixed64: function read_sfixed64() {
|
|
2130
|
+
return readFixed64.call(this)[fn](false);
|
|
2131
|
+
}
|
|
2132
|
+
});
|
|
2133
|
+
};
|
|
2134
|
+
}
|
|
2135
|
+
});
|
|
2136
|
+
|
|
2137
|
+
// ../../node_modules/protobufjs/src/reader_buffer.js
|
|
2138
|
+
var require_reader_buffer = __commonJS({
|
|
2139
|
+
"../../node_modules/protobufjs/src/reader_buffer.js"(exports2, module2) {
|
|
2140
|
+
"use strict";
|
|
2141
|
+
module2.exports = BufferReader;
|
|
2142
|
+
var Reader = require_reader();
|
|
2143
|
+
(BufferReader.prototype = Object.create(Reader.prototype)).constructor = BufferReader;
|
|
2144
|
+
var util = require_minimal();
|
|
2145
|
+
function BufferReader(buffer) {
|
|
2146
|
+
Reader.call(this, buffer);
|
|
2147
|
+
}
|
|
2148
|
+
BufferReader._configure = function() {
|
|
2149
|
+
if (util.Buffer)
|
|
2150
|
+
BufferReader.prototype._slice = util.Buffer.prototype.slice;
|
|
2151
|
+
};
|
|
2152
|
+
BufferReader.prototype.string = function read_string_buffer() {
|
|
2153
|
+
var len = this.uint32();
|
|
2154
|
+
return this.buf.utf8Slice ? this.buf.utf8Slice(this.pos, this.pos = Math.min(this.pos + len, this.len)) : this.buf.toString("utf-8", this.pos, this.pos = Math.min(this.pos + len, this.len));
|
|
2155
|
+
};
|
|
2156
|
+
BufferReader._configure();
|
|
2157
|
+
}
|
|
2158
|
+
});
|
|
2159
|
+
|
|
2160
|
+
// ../../node_modules/protobufjs/src/rpc/service.js
|
|
2161
|
+
var require_service = __commonJS({
|
|
2162
|
+
"../../node_modules/protobufjs/src/rpc/service.js"(exports2, module2) {
|
|
2163
|
+
"use strict";
|
|
2164
|
+
module2.exports = Service;
|
|
2165
|
+
var util = require_minimal();
|
|
2166
|
+
(Service.prototype = Object.create(util.EventEmitter.prototype)).constructor = Service;
|
|
2167
|
+
function Service(rpcImpl, requestDelimited, responseDelimited) {
|
|
2168
|
+
if (typeof rpcImpl !== "function")
|
|
2169
|
+
throw TypeError("rpcImpl must be a function");
|
|
2170
|
+
util.EventEmitter.call(this);
|
|
2171
|
+
this.rpcImpl = rpcImpl;
|
|
2172
|
+
this.requestDelimited = Boolean(requestDelimited);
|
|
2173
|
+
this.responseDelimited = Boolean(responseDelimited);
|
|
2174
|
+
}
|
|
2175
|
+
Service.prototype.rpcCall = function rpcCall(method, requestCtor, responseCtor, request, callback) {
|
|
2176
|
+
if (!request)
|
|
2177
|
+
throw TypeError("request must be specified");
|
|
2178
|
+
var self2 = this;
|
|
2179
|
+
if (!callback)
|
|
2180
|
+
return util.asPromise(rpcCall, self2, method, requestCtor, responseCtor, request);
|
|
2181
|
+
if (!self2.rpcImpl) {
|
|
2182
|
+
setTimeout(function() {
|
|
2183
|
+
callback(Error("already ended"));
|
|
2184
|
+
}, 0);
|
|
2185
|
+
return void 0;
|
|
2186
|
+
}
|
|
2187
|
+
try {
|
|
2188
|
+
return self2.rpcImpl(
|
|
2189
|
+
method,
|
|
2190
|
+
requestCtor[self2.requestDelimited ? "encodeDelimited" : "encode"](request).finish(),
|
|
2191
|
+
function rpcCallback(err, response) {
|
|
2192
|
+
if (err) {
|
|
2193
|
+
self2.emit("error", err, method);
|
|
2194
|
+
return callback(err);
|
|
2195
|
+
}
|
|
2196
|
+
if (response === null) {
|
|
2197
|
+
self2.end(
|
|
2198
|
+
/* endedByRPC */
|
|
2199
|
+
true
|
|
2200
|
+
);
|
|
2201
|
+
return void 0;
|
|
2202
|
+
}
|
|
2203
|
+
if (!(response instanceof responseCtor)) {
|
|
2204
|
+
try {
|
|
2205
|
+
response = responseCtor[self2.responseDelimited ? "decodeDelimited" : "decode"](response);
|
|
2206
|
+
} catch (err2) {
|
|
2207
|
+
self2.emit("error", err2, method);
|
|
2208
|
+
return callback(err2);
|
|
2209
|
+
}
|
|
2210
|
+
}
|
|
2211
|
+
self2.emit("data", response, method);
|
|
2212
|
+
return callback(null, response);
|
|
2213
|
+
}
|
|
2214
|
+
);
|
|
2215
|
+
} catch (err) {
|
|
2216
|
+
self2.emit("error", err, method);
|
|
2217
|
+
setTimeout(function() {
|
|
2218
|
+
callback(err);
|
|
2219
|
+
}, 0);
|
|
2220
|
+
return void 0;
|
|
2221
|
+
}
|
|
2222
|
+
};
|
|
2223
|
+
Service.prototype.end = function end(endedByRPC) {
|
|
2224
|
+
if (this.rpcImpl) {
|
|
2225
|
+
if (!endedByRPC)
|
|
2226
|
+
this.rpcImpl(null, null, null);
|
|
2227
|
+
this.rpcImpl = null;
|
|
2228
|
+
this.emit("end").off();
|
|
2229
|
+
}
|
|
2230
|
+
return this;
|
|
2231
|
+
};
|
|
2232
|
+
}
|
|
2233
|
+
});
|
|
2234
|
+
|
|
2235
|
+
// ../../node_modules/protobufjs/src/rpc.js
|
|
2236
|
+
var require_rpc = __commonJS({
|
|
2237
|
+
"../../node_modules/protobufjs/src/rpc.js"(exports2) {
|
|
2238
|
+
"use strict";
|
|
2239
|
+
var rpc = exports2;
|
|
2240
|
+
rpc.Service = require_service();
|
|
2241
|
+
}
|
|
2242
|
+
});
|
|
2243
|
+
|
|
2244
|
+
// ../../node_modules/protobufjs/src/roots.js
|
|
2245
|
+
var require_roots = __commonJS({
|
|
2246
|
+
"../../node_modules/protobufjs/src/roots.js"(exports2, module2) {
|
|
2247
|
+
"use strict";
|
|
2248
|
+
module2.exports = {};
|
|
2249
|
+
}
|
|
2250
|
+
});
|
|
2251
|
+
|
|
2252
|
+
// ../../node_modules/protobufjs/src/index-minimal.js
|
|
2253
|
+
var require_index_minimal = __commonJS({
|
|
2254
|
+
"../../node_modules/protobufjs/src/index-minimal.js"(exports2) {
|
|
2255
|
+
"use strict";
|
|
2256
|
+
var protobuf = exports2;
|
|
2257
|
+
protobuf.build = "minimal";
|
|
2258
|
+
protobuf.Writer = require_writer();
|
|
2259
|
+
protobuf.BufferWriter = require_writer_buffer();
|
|
2260
|
+
protobuf.Reader = require_reader();
|
|
2261
|
+
protobuf.BufferReader = require_reader_buffer();
|
|
2262
|
+
protobuf.util = require_minimal();
|
|
2263
|
+
protobuf.rpc = require_rpc();
|
|
2264
|
+
protobuf.roots = require_roots();
|
|
2265
|
+
protobuf.configure = configure;
|
|
2266
|
+
function configure() {
|
|
2267
|
+
protobuf.util._configure();
|
|
2268
|
+
protobuf.Writer._configure(protobuf.BufferWriter);
|
|
2269
|
+
protobuf.Reader._configure(protobuf.BufferReader);
|
|
2270
|
+
}
|
|
2271
|
+
configure();
|
|
2272
|
+
}
|
|
2273
|
+
});
|
|
2274
|
+
|
|
2275
|
+
// ../../node_modules/protobufjs/minimal.js
|
|
2276
|
+
var require_minimal2 = __commonJS({
|
|
2277
|
+
"../../node_modules/protobufjs/minimal.js"(exports2, module2) {
|
|
2278
|
+
"use strict";
|
|
2279
|
+
module2.exports = require_index_minimal();
|
|
2280
|
+
}
|
|
2281
|
+
});
|
|
2282
|
+
|
|
38
2283
|
// ../../node_modules/whatwg-fetch/fetch.js
|
|
39
2284
|
var g = typeof globalThis !== "undefined" && globalThis || typeof self !== "undefined" && self || // eslint-disable-next-line no-undef
|
|
40
2285
|
typeof global !== "undefined" && global || {};
|
|
@@ -664,36 +2909,682 @@ function buildFetchOptions(method, options, bodyJson) {
|
|
|
664
2909
|
if (bodyJson) {
|
|
665
2910
|
fetchOptions.body = bodyJson;
|
|
666
2911
|
}
|
|
667
|
-
return fetchOptions;
|
|
2912
|
+
return fetchOptions;
|
|
2913
|
+
}
|
|
2914
|
+
function b64EncodeUnicode(str) {
|
|
2915
|
+
return encode(encodeURIComponent(str).replace(
|
|
2916
|
+
/%([0-9A-F]{2})/g,
|
|
2917
|
+
function toSolidBytes(_match, p1) {
|
|
2918
|
+
return String.fromCharCode(Number("0x" + p1));
|
|
2919
|
+
}
|
|
2920
|
+
));
|
|
2921
|
+
}
|
|
2922
|
+
function b64DecodeUnicode(str) {
|
|
2923
|
+
return decodeURIComponent(decode2(str).split("").map(function(c) {
|
|
2924
|
+
return "%" + ("00" + c.charCodeAt(0).toString(16)).slice(-2);
|
|
2925
|
+
}).join(""));
|
|
2926
|
+
}
|
|
2927
|
+
function safeJSONParse(jsonStr) {
|
|
2928
|
+
try {
|
|
2929
|
+
return JSON.parse(jsonStr);
|
|
2930
|
+
} catch (error) {
|
|
2931
|
+
if (jsonStr !== "") {
|
|
2932
|
+
const fixedJsonStr = jsonStr.replace(/\n/g, "\\n");
|
|
2933
|
+
try {
|
|
2934
|
+
return JSON.parse(fixedJsonStr);
|
|
2935
|
+
} catch (e) {
|
|
2936
|
+
console.error("Error parsing JSON:", jsonStr, error);
|
|
2937
|
+
}
|
|
2938
|
+
}
|
|
2939
|
+
return { t: jsonStr };
|
|
2940
|
+
}
|
|
2941
|
+
}
|
|
2942
|
+
|
|
2943
|
+
// api/api.ts
|
|
2944
|
+
var import_long3 = __toESM(require_long());
|
|
2945
|
+
var import_minimal4 = __toESM(require_minimal2());
|
|
2946
|
+
|
|
2947
|
+
// google/protobuf/struct.ts
|
|
2948
|
+
var import_minimal = __toESM(require_minimal2());
|
|
2949
|
+
|
|
2950
|
+
// google/protobuf/timestamp.ts
|
|
2951
|
+
var import_long = __toESM(require_long());
|
|
2952
|
+
var import_minimal2 = __toESM(require_minimal2());
|
|
2953
|
+
function createBaseTimestamp() {
|
|
2954
|
+
return { seconds: 0, nanos: 0 };
|
|
2955
|
+
}
|
|
2956
|
+
var Timestamp = {
|
|
2957
|
+
encode(message, writer = import_minimal2.default.Writer.create()) {
|
|
2958
|
+
if (message.seconds !== 0) {
|
|
2959
|
+
writer.uint32(8).int64(message.seconds);
|
|
2960
|
+
}
|
|
2961
|
+
if (message.nanos !== 0) {
|
|
2962
|
+
writer.uint32(16).int32(message.nanos);
|
|
2963
|
+
}
|
|
2964
|
+
return writer;
|
|
2965
|
+
},
|
|
2966
|
+
decode(input, length) {
|
|
2967
|
+
const reader = input instanceof import_minimal2.default.Reader ? input : import_minimal2.default.Reader.create(input);
|
|
2968
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2969
|
+
const message = createBaseTimestamp();
|
|
2970
|
+
while (reader.pos < end) {
|
|
2971
|
+
const tag = reader.uint32();
|
|
2972
|
+
switch (tag >>> 3) {
|
|
2973
|
+
case 1:
|
|
2974
|
+
if (tag !== 8) {
|
|
2975
|
+
break;
|
|
2976
|
+
}
|
|
2977
|
+
message.seconds = longToNumber(reader.int64());
|
|
2978
|
+
continue;
|
|
2979
|
+
case 2:
|
|
2980
|
+
if (tag !== 16) {
|
|
2981
|
+
break;
|
|
2982
|
+
}
|
|
2983
|
+
message.nanos = reader.int32();
|
|
2984
|
+
continue;
|
|
2985
|
+
}
|
|
2986
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2987
|
+
break;
|
|
2988
|
+
}
|
|
2989
|
+
reader.skipType(tag & 7);
|
|
2990
|
+
}
|
|
2991
|
+
return message;
|
|
2992
|
+
},
|
|
2993
|
+
fromJSON(object) {
|
|
2994
|
+
return {
|
|
2995
|
+
seconds: isSet(object.seconds) ? globalThis.Number(object.seconds) : 0,
|
|
2996
|
+
nanos: isSet(object.nanos) ? globalThis.Number(object.nanos) : 0
|
|
2997
|
+
};
|
|
2998
|
+
},
|
|
2999
|
+
toJSON(message) {
|
|
3000
|
+
const obj = {};
|
|
3001
|
+
if (message.seconds !== 0) {
|
|
3002
|
+
obj.seconds = Math.round(message.seconds);
|
|
3003
|
+
}
|
|
3004
|
+
if (message.nanos !== 0) {
|
|
3005
|
+
obj.nanos = Math.round(message.nanos);
|
|
3006
|
+
}
|
|
3007
|
+
return obj;
|
|
3008
|
+
},
|
|
3009
|
+
create(base) {
|
|
3010
|
+
return Timestamp.fromPartial(base != null ? base : {});
|
|
3011
|
+
},
|
|
3012
|
+
fromPartial(object) {
|
|
3013
|
+
var _a, _b;
|
|
3014
|
+
const message = createBaseTimestamp();
|
|
3015
|
+
message.seconds = (_a = object.seconds) != null ? _a : 0;
|
|
3016
|
+
message.nanos = (_b = object.nanos) != null ? _b : 0;
|
|
3017
|
+
return message;
|
|
3018
|
+
}
|
|
3019
|
+
};
|
|
3020
|
+
function longToNumber(long) {
|
|
3021
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
3022
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
3023
|
+
}
|
|
3024
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
3025
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
3026
|
+
}
|
|
3027
|
+
return long.toNumber();
|
|
3028
|
+
}
|
|
3029
|
+
if (import_minimal2.default.util.Long !== import_long.default) {
|
|
3030
|
+
import_minimal2.default.util.Long = import_long.default;
|
|
3031
|
+
import_minimal2.default.configure();
|
|
3032
|
+
}
|
|
3033
|
+
function isSet(value) {
|
|
3034
|
+
return value !== null && value !== void 0;
|
|
3035
|
+
}
|
|
3036
|
+
|
|
3037
|
+
// google/protobuf/wrappers.ts
|
|
3038
|
+
var import_long2 = __toESM(require_long());
|
|
3039
|
+
var import_minimal3 = __toESM(require_minimal2());
|
|
3040
|
+
if (import_minimal3.default.util.Long !== import_long2.default) {
|
|
3041
|
+
import_minimal3.default.util.Long = import_long2.default;
|
|
3042
|
+
import_minimal3.default.configure();
|
|
3043
|
+
}
|
|
3044
|
+
|
|
3045
|
+
// api/api.ts
|
|
3046
|
+
function createBaseAccount() {
|
|
3047
|
+
return {
|
|
3048
|
+
user: void 0,
|
|
3049
|
+
email: "",
|
|
3050
|
+
qr_code: "",
|
|
3051
|
+
verify_time: void 0,
|
|
3052
|
+
disable_time: void 0,
|
|
3053
|
+
logo: "",
|
|
3054
|
+
splash_screen: "",
|
|
3055
|
+
encrypt_private_key: "",
|
|
3056
|
+
password_setted: false
|
|
3057
|
+
};
|
|
3058
|
+
}
|
|
3059
|
+
var Account = {
|
|
3060
|
+
encode(message, writer = import_minimal4.default.Writer.create()) {
|
|
3061
|
+
if (message.user !== void 0) {
|
|
3062
|
+
User.encode(message.user, writer.uint32(10).fork()).ldelim();
|
|
3063
|
+
}
|
|
3064
|
+
if (message.email !== "") {
|
|
3065
|
+
writer.uint32(18).string(message.email);
|
|
3066
|
+
}
|
|
3067
|
+
if (message.qr_code !== "") {
|
|
3068
|
+
writer.uint32(26).string(message.qr_code);
|
|
3069
|
+
}
|
|
3070
|
+
if (message.verify_time !== void 0) {
|
|
3071
|
+
Timestamp.encode(toTimestamp(message.verify_time), writer.uint32(34).fork()).ldelim();
|
|
3072
|
+
}
|
|
3073
|
+
if (message.disable_time !== void 0) {
|
|
3074
|
+
Timestamp.encode(toTimestamp(message.disable_time), writer.uint32(42).fork()).ldelim();
|
|
3075
|
+
}
|
|
3076
|
+
if (message.logo !== "") {
|
|
3077
|
+
writer.uint32(50).string(message.logo);
|
|
3078
|
+
}
|
|
3079
|
+
if (message.splash_screen !== "") {
|
|
3080
|
+
writer.uint32(58).string(message.splash_screen);
|
|
3081
|
+
}
|
|
3082
|
+
if (message.encrypt_private_key !== "") {
|
|
3083
|
+
writer.uint32(66).string(message.encrypt_private_key);
|
|
3084
|
+
}
|
|
3085
|
+
if (message.password_setted !== false) {
|
|
3086
|
+
writer.uint32(72).bool(message.password_setted);
|
|
3087
|
+
}
|
|
3088
|
+
return writer;
|
|
3089
|
+
},
|
|
3090
|
+
decode(input, length) {
|
|
3091
|
+
const reader = input instanceof import_minimal4.default.Reader ? input : import_minimal4.default.Reader.create(input);
|
|
3092
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
3093
|
+
const message = createBaseAccount();
|
|
3094
|
+
while (reader.pos < end) {
|
|
3095
|
+
const tag = reader.uint32();
|
|
3096
|
+
switch (tag >>> 3) {
|
|
3097
|
+
case 1:
|
|
3098
|
+
if (tag !== 10) {
|
|
3099
|
+
break;
|
|
3100
|
+
}
|
|
3101
|
+
message.user = User.decode(reader, reader.uint32());
|
|
3102
|
+
continue;
|
|
3103
|
+
case 2:
|
|
3104
|
+
if (tag !== 18) {
|
|
3105
|
+
break;
|
|
3106
|
+
}
|
|
3107
|
+
message.email = reader.string();
|
|
3108
|
+
continue;
|
|
3109
|
+
case 3:
|
|
3110
|
+
if (tag !== 26) {
|
|
3111
|
+
break;
|
|
3112
|
+
}
|
|
3113
|
+
message.qr_code = reader.string();
|
|
3114
|
+
continue;
|
|
3115
|
+
case 4:
|
|
3116
|
+
if (tag !== 34) {
|
|
3117
|
+
break;
|
|
3118
|
+
}
|
|
3119
|
+
message.verify_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
3120
|
+
continue;
|
|
3121
|
+
case 5:
|
|
3122
|
+
if (tag !== 42) {
|
|
3123
|
+
break;
|
|
3124
|
+
}
|
|
3125
|
+
message.disable_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
3126
|
+
continue;
|
|
3127
|
+
case 6:
|
|
3128
|
+
if (tag !== 50) {
|
|
3129
|
+
break;
|
|
3130
|
+
}
|
|
3131
|
+
message.logo = reader.string();
|
|
3132
|
+
continue;
|
|
3133
|
+
case 7:
|
|
3134
|
+
if (tag !== 58) {
|
|
3135
|
+
break;
|
|
3136
|
+
}
|
|
3137
|
+
message.splash_screen = reader.string();
|
|
3138
|
+
continue;
|
|
3139
|
+
case 8:
|
|
3140
|
+
if (tag !== 66) {
|
|
3141
|
+
break;
|
|
3142
|
+
}
|
|
3143
|
+
message.encrypt_private_key = reader.string();
|
|
3144
|
+
continue;
|
|
3145
|
+
case 9:
|
|
3146
|
+
if (tag !== 72) {
|
|
3147
|
+
break;
|
|
3148
|
+
}
|
|
3149
|
+
message.password_setted = reader.bool();
|
|
3150
|
+
continue;
|
|
3151
|
+
}
|
|
3152
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3153
|
+
break;
|
|
3154
|
+
}
|
|
3155
|
+
reader.skipType(tag & 7);
|
|
3156
|
+
}
|
|
3157
|
+
return message;
|
|
3158
|
+
},
|
|
3159
|
+
fromJSON(object) {
|
|
3160
|
+
return {
|
|
3161
|
+
user: isSet2(object.user) ? User.fromJSON(object.user) : void 0,
|
|
3162
|
+
email: isSet2(object.email) ? globalThis.String(object.email) : "",
|
|
3163
|
+
qr_code: isSet2(object.qr_code) ? globalThis.String(object.qr_code) : "",
|
|
3164
|
+
verify_time: isSet2(object.verify_time) ? fromJsonTimestamp(object.verify_time) : void 0,
|
|
3165
|
+
disable_time: isSet2(object.disable_time) ? fromJsonTimestamp(object.disable_time) : void 0,
|
|
3166
|
+
logo: isSet2(object.logo) ? globalThis.String(object.logo) : "",
|
|
3167
|
+
splash_screen: isSet2(object.splash_screen) ? globalThis.String(object.splash_screen) : "",
|
|
3168
|
+
encrypt_private_key: isSet2(object.encrypt_private_key) ? globalThis.String(object.encrypt_private_key) : "",
|
|
3169
|
+
password_setted: isSet2(object.password_setted) ? globalThis.Boolean(object.password_setted) : false
|
|
3170
|
+
};
|
|
3171
|
+
},
|
|
3172
|
+
toJSON(message) {
|
|
3173
|
+
const obj = {};
|
|
3174
|
+
if (message.user !== void 0) {
|
|
3175
|
+
obj.user = User.toJSON(message.user);
|
|
3176
|
+
}
|
|
3177
|
+
if (message.email !== "") {
|
|
3178
|
+
obj.email = message.email;
|
|
3179
|
+
}
|
|
3180
|
+
if (message.qr_code !== "") {
|
|
3181
|
+
obj.qr_code = message.qr_code;
|
|
3182
|
+
}
|
|
3183
|
+
if (message.verify_time !== void 0) {
|
|
3184
|
+
obj.verify_time = message.verify_time.toISOString();
|
|
3185
|
+
}
|
|
3186
|
+
if (message.disable_time !== void 0) {
|
|
3187
|
+
obj.disable_time = message.disable_time.toISOString();
|
|
3188
|
+
}
|
|
3189
|
+
if (message.logo !== "") {
|
|
3190
|
+
obj.logo = message.logo;
|
|
3191
|
+
}
|
|
3192
|
+
if (message.splash_screen !== "") {
|
|
3193
|
+
obj.splash_screen = message.splash_screen;
|
|
3194
|
+
}
|
|
3195
|
+
if (message.encrypt_private_key !== "") {
|
|
3196
|
+
obj.encrypt_private_key = message.encrypt_private_key;
|
|
3197
|
+
}
|
|
3198
|
+
if (message.password_setted !== false) {
|
|
3199
|
+
obj.password_setted = message.password_setted;
|
|
3200
|
+
}
|
|
3201
|
+
return obj;
|
|
3202
|
+
},
|
|
3203
|
+
create(base) {
|
|
3204
|
+
return Account.fromPartial(base != null ? base : {});
|
|
3205
|
+
},
|
|
3206
|
+
fromPartial(object) {
|
|
3207
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
3208
|
+
const message = createBaseAccount();
|
|
3209
|
+
message.user = object.user !== void 0 && object.user !== null ? User.fromPartial(object.user) : void 0;
|
|
3210
|
+
message.email = (_a = object.email) != null ? _a : "";
|
|
3211
|
+
message.qr_code = (_b = object.qr_code) != null ? _b : "";
|
|
3212
|
+
message.verify_time = (_c = object.verify_time) != null ? _c : void 0;
|
|
3213
|
+
message.disable_time = (_d = object.disable_time) != null ? _d : void 0;
|
|
3214
|
+
message.logo = (_e = object.logo) != null ? _e : "";
|
|
3215
|
+
message.splash_screen = (_f = object.splash_screen) != null ? _f : "";
|
|
3216
|
+
message.encrypt_private_key = (_g = object.encrypt_private_key) != null ? _g : "";
|
|
3217
|
+
message.password_setted = (_h = object.password_setted) != null ? _h : false;
|
|
3218
|
+
return message;
|
|
3219
|
+
}
|
|
3220
|
+
};
|
|
3221
|
+
function createBaseUser() {
|
|
3222
|
+
return {
|
|
3223
|
+
id: "",
|
|
3224
|
+
username: "",
|
|
3225
|
+
display_name: "",
|
|
3226
|
+
avatar_url: "",
|
|
3227
|
+
lang_tag: "",
|
|
3228
|
+
location: "",
|
|
3229
|
+
timezone: "",
|
|
3230
|
+
user_status: "",
|
|
3231
|
+
online: false,
|
|
3232
|
+
phone_number: "",
|
|
3233
|
+
edge_count: 0,
|
|
3234
|
+
create_time: void 0,
|
|
3235
|
+
update_time: void 0,
|
|
3236
|
+
about_me: "",
|
|
3237
|
+
join_time: void 0,
|
|
3238
|
+
is_mobile: false,
|
|
3239
|
+
dob: void 0,
|
|
3240
|
+
mezon_id: "",
|
|
3241
|
+
list_nick_names: [],
|
|
3242
|
+
status: ""
|
|
3243
|
+
};
|
|
668
3244
|
}
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
return String.fromCharCode(Number("0x" + p1));
|
|
3245
|
+
var User = {
|
|
3246
|
+
encode(message, writer = import_minimal4.default.Writer.create()) {
|
|
3247
|
+
if (message.id !== "") {
|
|
3248
|
+
writer.uint32(10).string(message.id);
|
|
674
3249
|
}
|
|
675
|
-
|
|
3250
|
+
if (message.username !== "") {
|
|
3251
|
+
writer.uint32(18).string(message.username);
|
|
3252
|
+
}
|
|
3253
|
+
if (message.display_name !== "") {
|
|
3254
|
+
writer.uint32(26).string(message.display_name);
|
|
3255
|
+
}
|
|
3256
|
+
if (message.avatar_url !== "") {
|
|
3257
|
+
writer.uint32(34).string(message.avatar_url);
|
|
3258
|
+
}
|
|
3259
|
+
if (message.lang_tag !== "") {
|
|
3260
|
+
writer.uint32(42).string(message.lang_tag);
|
|
3261
|
+
}
|
|
3262
|
+
if (message.location !== "") {
|
|
3263
|
+
writer.uint32(50).string(message.location);
|
|
3264
|
+
}
|
|
3265
|
+
if (message.timezone !== "") {
|
|
3266
|
+
writer.uint32(58).string(message.timezone);
|
|
3267
|
+
}
|
|
3268
|
+
if (message.user_status !== "") {
|
|
3269
|
+
writer.uint32(66).string(message.user_status);
|
|
3270
|
+
}
|
|
3271
|
+
if (message.online !== false) {
|
|
3272
|
+
writer.uint32(72).bool(message.online);
|
|
3273
|
+
}
|
|
3274
|
+
if (message.phone_number !== "") {
|
|
3275
|
+
writer.uint32(82).string(message.phone_number);
|
|
3276
|
+
}
|
|
3277
|
+
if (message.edge_count !== 0) {
|
|
3278
|
+
writer.uint32(88).int32(message.edge_count);
|
|
3279
|
+
}
|
|
3280
|
+
if (message.create_time !== void 0) {
|
|
3281
|
+
Timestamp.encode(toTimestamp(message.create_time), writer.uint32(98).fork()).ldelim();
|
|
3282
|
+
}
|
|
3283
|
+
if (message.update_time !== void 0) {
|
|
3284
|
+
Timestamp.encode(toTimestamp(message.update_time), writer.uint32(106).fork()).ldelim();
|
|
3285
|
+
}
|
|
3286
|
+
if (message.about_me !== "") {
|
|
3287
|
+
writer.uint32(114).string(message.about_me);
|
|
3288
|
+
}
|
|
3289
|
+
if (message.join_time !== void 0) {
|
|
3290
|
+
Timestamp.encode(toTimestamp(message.join_time), writer.uint32(122).fork()).ldelim();
|
|
3291
|
+
}
|
|
3292
|
+
if (message.is_mobile !== false) {
|
|
3293
|
+
writer.uint32(128).bool(message.is_mobile);
|
|
3294
|
+
}
|
|
3295
|
+
if (message.dob !== void 0) {
|
|
3296
|
+
Timestamp.encode(toTimestamp(message.dob), writer.uint32(138).fork()).ldelim();
|
|
3297
|
+
}
|
|
3298
|
+
if (message.mezon_id !== "") {
|
|
3299
|
+
writer.uint32(146).string(message.mezon_id);
|
|
3300
|
+
}
|
|
3301
|
+
for (const v of message.list_nick_names) {
|
|
3302
|
+
writer.uint32(154).string(v);
|
|
3303
|
+
}
|
|
3304
|
+
if (message.status !== "") {
|
|
3305
|
+
writer.uint32(162).string(message.status);
|
|
3306
|
+
}
|
|
3307
|
+
return writer;
|
|
3308
|
+
},
|
|
3309
|
+
decode(input, length) {
|
|
3310
|
+
const reader = input instanceof import_minimal4.default.Reader ? input : import_minimal4.default.Reader.create(input);
|
|
3311
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
3312
|
+
const message = createBaseUser();
|
|
3313
|
+
while (reader.pos < end) {
|
|
3314
|
+
const tag = reader.uint32();
|
|
3315
|
+
switch (tag >>> 3) {
|
|
3316
|
+
case 1:
|
|
3317
|
+
if (tag !== 10) {
|
|
3318
|
+
break;
|
|
3319
|
+
}
|
|
3320
|
+
message.id = reader.string();
|
|
3321
|
+
continue;
|
|
3322
|
+
case 2:
|
|
3323
|
+
if (tag !== 18) {
|
|
3324
|
+
break;
|
|
3325
|
+
}
|
|
3326
|
+
message.username = reader.string();
|
|
3327
|
+
continue;
|
|
3328
|
+
case 3:
|
|
3329
|
+
if (tag !== 26) {
|
|
3330
|
+
break;
|
|
3331
|
+
}
|
|
3332
|
+
message.display_name = reader.string();
|
|
3333
|
+
continue;
|
|
3334
|
+
case 4:
|
|
3335
|
+
if (tag !== 34) {
|
|
3336
|
+
break;
|
|
3337
|
+
}
|
|
3338
|
+
message.avatar_url = reader.string();
|
|
3339
|
+
continue;
|
|
3340
|
+
case 5:
|
|
3341
|
+
if (tag !== 42) {
|
|
3342
|
+
break;
|
|
3343
|
+
}
|
|
3344
|
+
message.lang_tag = reader.string();
|
|
3345
|
+
continue;
|
|
3346
|
+
case 6:
|
|
3347
|
+
if (tag !== 50) {
|
|
3348
|
+
break;
|
|
3349
|
+
}
|
|
3350
|
+
message.location = reader.string();
|
|
3351
|
+
continue;
|
|
3352
|
+
case 7:
|
|
3353
|
+
if (tag !== 58) {
|
|
3354
|
+
break;
|
|
3355
|
+
}
|
|
3356
|
+
message.timezone = reader.string();
|
|
3357
|
+
continue;
|
|
3358
|
+
case 8:
|
|
3359
|
+
if (tag !== 66) {
|
|
3360
|
+
break;
|
|
3361
|
+
}
|
|
3362
|
+
message.user_status = reader.string();
|
|
3363
|
+
continue;
|
|
3364
|
+
case 9:
|
|
3365
|
+
if (tag !== 72) {
|
|
3366
|
+
break;
|
|
3367
|
+
}
|
|
3368
|
+
message.online = reader.bool();
|
|
3369
|
+
continue;
|
|
3370
|
+
case 10:
|
|
3371
|
+
if (tag !== 82) {
|
|
3372
|
+
break;
|
|
3373
|
+
}
|
|
3374
|
+
message.phone_number = reader.string();
|
|
3375
|
+
continue;
|
|
3376
|
+
case 11:
|
|
3377
|
+
if (tag !== 88) {
|
|
3378
|
+
break;
|
|
3379
|
+
}
|
|
3380
|
+
message.edge_count = reader.int32();
|
|
3381
|
+
continue;
|
|
3382
|
+
case 12:
|
|
3383
|
+
if (tag !== 98) {
|
|
3384
|
+
break;
|
|
3385
|
+
}
|
|
3386
|
+
message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
3387
|
+
continue;
|
|
3388
|
+
case 13:
|
|
3389
|
+
if (tag !== 106) {
|
|
3390
|
+
break;
|
|
3391
|
+
}
|
|
3392
|
+
message.update_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
3393
|
+
continue;
|
|
3394
|
+
case 14:
|
|
3395
|
+
if (tag !== 114) {
|
|
3396
|
+
break;
|
|
3397
|
+
}
|
|
3398
|
+
message.about_me = reader.string();
|
|
3399
|
+
continue;
|
|
3400
|
+
case 15:
|
|
3401
|
+
if (tag !== 122) {
|
|
3402
|
+
break;
|
|
3403
|
+
}
|
|
3404
|
+
message.join_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
3405
|
+
continue;
|
|
3406
|
+
case 16:
|
|
3407
|
+
if (tag !== 128) {
|
|
3408
|
+
break;
|
|
3409
|
+
}
|
|
3410
|
+
message.is_mobile = reader.bool();
|
|
3411
|
+
continue;
|
|
3412
|
+
case 17:
|
|
3413
|
+
if (tag !== 138) {
|
|
3414
|
+
break;
|
|
3415
|
+
}
|
|
3416
|
+
message.dob = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
3417
|
+
continue;
|
|
3418
|
+
case 18:
|
|
3419
|
+
if (tag !== 146) {
|
|
3420
|
+
break;
|
|
3421
|
+
}
|
|
3422
|
+
message.mezon_id = reader.string();
|
|
3423
|
+
continue;
|
|
3424
|
+
case 19:
|
|
3425
|
+
if (tag !== 154) {
|
|
3426
|
+
break;
|
|
3427
|
+
}
|
|
3428
|
+
message.list_nick_names.push(reader.string());
|
|
3429
|
+
continue;
|
|
3430
|
+
case 20:
|
|
3431
|
+
if (tag !== 162) {
|
|
3432
|
+
break;
|
|
3433
|
+
}
|
|
3434
|
+
message.status = reader.string();
|
|
3435
|
+
continue;
|
|
3436
|
+
}
|
|
3437
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3438
|
+
break;
|
|
3439
|
+
}
|
|
3440
|
+
reader.skipType(tag & 7);
|
|
3441
|
+
}
|
|
3442
|
+
return message;
|
|
3443
|
+
},
|
|
3444
|
+
fromJSON(object) {
|
|
3445
|
+
return {
|
|
3446
|
+
id: isSet2(object.id) ? globalThis.String(object.id) : "",
|
|
3447
|
+
username: isSet2(object.username) ? globalThis.String(object.username) : "",
|
|
3448
|
+
display_name: isSet2(object.display_name) ? globalThis.String(object.display_name) : "",
|
|
3449
|
+
avatar_url: isSet2(object.avatar_url) ? globalThis.String(object.avatar_url) : "",
|
|
3450
|
+
lang_tag: isSet2(object.lang_tag) ? globalThis.String(object.lang_tag) : "",
|
|
3451
|
+
location: isSet2(object.location) ? globalThis.String(object.location) : "",
|
|
3452
|
+
timezone: isSet2(object.timezone) ? globalThis.String(object.timezone) : "",
|
|
3453
|
+
user_status: isSet2(object.user_status) ? globalThis.String(object.user_status) : "",
|
|
3454
|
+
online: isSet2(object.online) ? globalThis.Boolean(object.online) : false,
|
|
3455
|
+
phone_number: isSet2(object.phone_number) ? globalThis.String(object.phone_number) : "",
|
|
3456
|
+
edge_count: isSet2(object.edge_count) ? globalThis.Number(object.edge_count) : 0,
|
|
3457
|
+
create_time: isSet2(object.create_time) ? fromJsonTimestamp(object.create_time) : void 0,
|
|
3458
|
+
update_time: isSet2(object.update_time) ? fromJsonTimestamp(object.update_time) : void 0,
|
|
3459
|
+
about_me: isSet2(object.about_me) ? globalThis.String(object.about_me) : "",
|
|
3460
|
+
join_time: isSet2(object.join_time) ? fromJsonTimestamp(object.join_time) : void 0,
|
|
3461
|
+
is_mobile: isSet2(object.is_mobile) ? globalThis.Boolean(object.is_mobile) : false,
|
|
3462
|
+
dob: isSet2(object.dob) ? fromJsonTimestamp(object.dob) : void 0,
|
|
3463
|
+
mezon_id: isSet2(object.mezon_id) ? globalThis.String(object.mezon_id) : "",
|
|
3464
|
+
list_nick_names: globalThis.Array.isArray(object == null ? void 0 : object.list_nick_names) ? object.list_nick_names.map((e) => globalThis.String(e)) : [],
|
|
3465
|
+
status: isSet2(object.status) ? globalThis.String(object.status) : ""
|
|
3466
|
+
};
|
|
3467
|
+
},
|
|
3468
|
+
toJSON(message) {
|
|
3469
|
+
var _a;
|
|
3470
|
+
const obj = {};
|
|
3471
|
+
if (message.id !== "") {
|
|
3472
|
+
obj.id = message.id;
|
|
3473
|
+
}
|
|
3474
|
+
if (message.username !== "") {
|
|
3475
|
+
obj.username = message.username;
|
|
3476
|
+
}
|
|
3477
|
+
if (message.display_name !== "") {
|
|
3478
|
+
obj.display_name = message.display_name;
|
|
3479
|
+
}
|
|
3480
|
+
if (message.avatar_url !== "") {
|
|
3481
|
+
obj.avatar_url = message.avatar_url;
|
|
3482
|
+
}
|
|
3483
|
+
if (message.lang_tag !== "") {
|
|
3484
|
+
obj.lang_tag = message.lang_tag;
|
|
3485
|
+
}
|
|
3486
|
+
if (message.location !== "") {
|
|
3487
|
+
obj.location = message.location;
|
|
3488
|
+
}
|
|
3489
|
+
if (message.timezone !== "") {
|
|
3490
|
+
obj.timezone = message.timezone;
|
|
3491
|
+
}
|
|
3492
|
+
if (message.user_status !== "") {
|
|
3493
|
+
obj.user_status = message.user_status;
|
|
3494
|
+
}
|
|
3495
|
+
if (message.online !== false) {
|
|
3496
|
+
obj.online = message.online;
|
|
3497
|
+
}
|
|
3498
|
+
if (message.phone_number !== "") {
|
|
3499
|
+
obj.phone_number = message.phone_number;
|
|
3500
|
+
}
|
|
3501
|
+
if (message.edge_count !== 0) {
|
|
3502
|
+
obj.edge_count = Math.round(message.edge_count);
|
|
3503
|
+
}
|
|
3504
|
+
if (message.create_time !== void 0) {
|
|
3505
|
+
obj.create_time = message.create_time.toISOString();
|
|
3506
|
+
}
|
|
3507
|
+
if (message.update_time !== void 0) {
|
|
3508
|
+
obj.update_time = message.update_time.toISOString();
|
|
3509
|
+
}
|
|
3510
|
+
if (message.about_me !== "") {
|
|
3511
|
+
obj.about_me = message.about_me;
|
|
3512
|
+
}
|
|
3513
|
+
if (message.join_time !== void 0) {
|
|
3514
|
+
obj.join_time = message.join_time.toISOString();
|
|
3515
|
+
}
|
|
3516
|
+
if (message.is_mobile !== false) {
|
|
3517
|
+
obj.is_mobile = message.is_mobile;
|
|
3518
|
+
}
|
|
3519
|
+
if (message.dob !== void 0) {
|
|
3520
|
+
obj.dob = message.dob.toISOString();
|
|
3521
|
+
}
|
|
3522
|
+
if (message.mezon_id !== "") {
|
|
3523
|
+
obj.mezon_id = message.mezon_id;
|
|
3524
|
+
}
|
|
3525
|
+
if ((_a = message.list_nick_names) == null ? void 0 : _a.length) {
|
|
3526
|
+
obj.list_nick_names = message.list_nick_names;
|
|
3527
|
+
}
|
|
3528
|
+
if (message.status !== "") {
|
|
3529
|
+
obj.status = message.status;
|
|
3530
|
+
}
|
|
3531
|
+
return obj;
|
|
3532
|
+
},
|
|
3533
|
+
create(base) {
|
|
3534
|
+
return User.fromPartial(base != null ? base : {});
|
|
3535
|
+
},
|
|
3536
|
+
fromPartial(object) {
|
|
3537
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
|
|
3538
|
+
const message = createBaseUser();
|
|
3539
|
+
message.id = (_a = object.id) != null ? _a : "";
|
|
3540
|
+
message.username = (_b = object.username) != null ? _b : "";
|
|
3541
|
+
message.display_name = (_c = object.display_name) != null ? _c : "";
|
|
3542
|
+
message.avatar_url = (_d = object.avatar_url) != null ? _d : "";
|
|
3543
|
+
message.lang_tag = (_e = object.lang_tag) != null ? _e : "";
|
|
3544
|
+
message.location = (_f = object.location) != null ? _f : "";
|
|
3545
|
+
message.timezone = (_g = object.timezone) != null ? _g : "";
|
|
3546
|
+
message.user_status = (_h = object.user_status) != null ? _h : "";
|
|
3547
|
+
message.online = (_i = object.online) != null ? _i : false;
|
|
3548
|
+
message.phone_number = (_j = object.phone_number) != null ? _j : "";
|
|
3549
|
+
message.edge_count = (_k = object.edge_count) != null ? _k : 0;
|
|
3550
|
+
message.create_time = (_l = object.create_time) != null ? _l : void 0;
|
|
3551
|
+
message.update_time = (_m = object.update_time) != null ? _m : void 0;
|
|
3552
|
+
message.about_me = (_n = object.about_me) != null ? _n : "";
|
|
3553
|
+
message.join_time = (_o = object.join_time) != null ? _o : void 0;
|
|
3554
|
+
message.is_mobile = (_p = object.is_mobile) != null ? _p : false;
|
|
3555
|
+
message.dob = (_q = object.dob) != null ? _q : void 0;
|
|
3556
|
+
message.mezon_id = (_r = object.mezon_id) != null ? _r : "";
|
|
3557
|
+
message.list_nick_names = ((_s = object.list_nick_names) == null ? void 0 : _s.map((e) => e)) || [];
|
|
3558
|
+
message.status = (_t = object.status) != null ? _t : "";
|
|
3559
|
+
return message;
|
|
3560
|
+
}
|
|
3561
|
+
};
|
|
3562
|
+
function toTimestamp(date) {
|
|
3563
|
+
const seconds = Math.trunc(date.getTime() / 1e3);
|
|
3564
|
+
const nanos = date.getTime() % 1e3 * 1e6;
|
|
3565
|
+
return { seconds, nanos };
|
|
676
3566
|
}
|
|
677
|
-
function
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
3567
|
+
function fromTimestamp(t) {
|
|
3568
|
+
let millis = (t.seconds || 0) * 1e3;
|
|
3569
|
+
millis += (t.nanos || 0) / 1e6;
|
|
3570
|
+
return new globalThis.Date(millis);
|
|
681
3571
|
}
|
|
682
|
-
function
|
|
683
|
-
|
|
684
|
-
return
|
|
685
|
-
}
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
return JSON.parse(fixedJsonStr);
|
|
690
|
-
} catch (e) {
|
|
691
|
-
console.error("Error parsing JSON:", jsonStr, error);
|
|
692
|
-
}
|
|
693
|
-
}
|
|
694
|
-
return { t: jsonStr };
|
|
3572
|
+
function fromJsonTimestamp(o) {
|
|
3573
|
+
if (o instanceof globalThis.Date) {
|
|
3574
|
+
return o;
|
|
3575
|
+
} else if (typeof o === "string") {
|
|
3576
|
+
return new globalThis.Date(o);
|
|
3577
|
+
} else {
|
|
3578
|
+
return fromTimestamp(Timestamp.fromJSON(o));
|
|
695
3579
|
}
|
|
696
3580
|
}
|
|
3581
|
+
if (import_minimal4.default.util.Long !== import_long3.default) {
|
|
3582
|
+
import_minimal4.default.util.Long = import_long3.default;
|
|
3583
|
+
import_minimal4.default.configure();
|
|
3584
|
+
}
|
|
3585
|
+
function isSet2(value) {
|
|
3586
|
+
return value !== null && value !== void 0;
|
|
3587
|
+
}
|
|
697
3588
|
|
|
698
3589
|
// api.gen.ts
|
|
699
3590
|
var MezonApi = class {
|
|
@@ -765,18 +3656,20 @@ var MezonApi = class {
|
|
|
765
3656
|
if (bearerToken) {
|
|
766
3657
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
767
3658
|
}
|
|
3659
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
768
3660
|
return Promise.race([
|
|
769
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
3661
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
770
3662
|
if (response.status == 204) {
|
|
771
|
-
return
|
|
3663
|
+
return {};
|
|
772
3664
|
} else if (response.status >= 200 && response.status < 300) {
|
|
773
|
-
|
|
3665
|
+
const buffer = yield response.arrayBuffer();
|
|
3666
|
+
return Account.decode(new Uint8Array(buffer));
|
|
774
3667
|
} else {
|
|
775
3668
|
throw response;
|
|
776
3669
|
}
|
|
777
|
-
}),
|
|
3670
|
+
})),
|
|
778
3671
|
new Promise(
|
|
779
|
-
(_, reject) => setTimeout(reject
|
|
3672
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
780
3673
|
)
|
|
781
3674
|
]);
|
|
782
3675
|
}
|
|
@@ -1845,18 +4738,20 @@ var MezonApi = class {
|
|
|
1845
4738
|
if (bearerToken) {
|
|
1846
4739
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
1847
4740
|
}
|
|
4741
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
1848
4742
|
return Promise.race([
|
|
1849
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
4743
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
1850
4744
|
if (response.status == 204) {
|
|
1851
|
-
return
|
|
4745
|
+
return {};
|
|
1852
4746
|
} else if (response.status >= 200 && response.status < 300) {
|
|
1853
|
-
|
|
4747
|
+
const buffer = yield response.arrayBuffer();
|
|
4748
|
+
return Account.decode(new Uint8Array(buffer));
|
|
1854
4749
|
} else {
|
|
1855
4750
|
throw response;
|
|
1856
4751
|
}
|
|
1857
|
-
}),
|
|
4752
|
+
})),
|
|
1858
4753
|
new Promise(
|
|
1859
|
-
(_, reject) => setTimeout(reject
|
|
4754
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
1860
4755
|
)
|
|
1861
4756
|
]);
|
|
1862
4757
|
}
|
|
@@ -2119,18 +5014,20 @@ var MezonApi = class {
|
|
|
2119
5014
|
if (bearerToken) {
|
|
2120
5015
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
2121
5016
|
}
|
|
5017
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
2122
5018
|
return Promise.race([
|
|
2123
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
5019
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
2124
5020
|
if (response.status == 204) {
|
|
2125
|
-
return
|
|
5021
|
+
return {};
|
|
2126
5022
|
} else if (response.status >= 200 && response.status < 300) {
|
|
2127
|
-
|
|
5023
|
+
const buffer = yield response.arrayBuffer();
|
|
5024
|
+
return Account.decode(new Uint8Array(buffer));
|
|
2128
5025
|
} else {
|
|
2129
5026
|
throw response;
|
|
2130
5027
|
}
|
|
2131
|
-
}),
|
|
5028
|
+
})),
|
|
2132
5029
|
new Promise(
|
|
2133
|
-
(_, reject) => setTimeout(reject
|
|
5030
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
2134
5031
|
)
|
|
2135
5032
|
]);
|
|
2136
5033
|
}
|
|
@@ -2177,18 +5074,20 @@ var MezonApi = class {
|
|
|
2177
5074
|
if (bearerToken) {
|
|
2178
5075
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
2179
5076
|
}
|
|
5077
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
2180
5078
|
return Promise.race([
|
|
2181
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
5079
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
2182
5080
|
if (response.status == 204) {
|
|
2183
|
-
return
|
|
5081
|
+
return {};
|
|
2184
5082
|
} else if (response.status >= 200 && response.status < 300) {
|
|
2185
|
-
|
|
5083
|
+
const buffer = yield response.arrayBuffer();
|
|
5084
|
+
return Account.decode(new Uint8Array(buffer));
|
|
2186
5085
|
} else {
|
|
2187
5086
|
throw response;
|
|
2188
5087
|
}
|
|
2189
|
-
}),
|
|
5088
|
+
})),
|
|
2190
5089
|
new Promise(
|
|
2191
|
-
(_, reject) => setTimeout(reject
|
|
5090
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
2192
5091
|
)
|
|
2193
5092
|
]);
|
|
2194
5093
|
}
|
|
@@ -2280,18 +5179,20 @@ var MezonApi = class {
|
|
|
2280
5179
|
if (bearerToken) {
|
|
2281
5180
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
2282
5181
|
}
|
|
5182
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
2283
5183
|
return Promise.race([
|
|
2284
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
5184
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
2285
5185
|
if (response.status == 204) {
|
|
2286
|
-
return
|
|
5186
|
+
return {};
|
|
2287
5187
|
} else if (response.status >= 200 && response.status < 300) {
|
|
2288
|
-
|
|
5188
|
+
const buffer = yield response.arrayBuffer();
|
|
5189
|
+
return Account.decode(new Uint8Array(buffer));
|
|
2289
5190
|
} else {
|
|
2290
5191
|
throw response;
|
|
2291
5192
|
}
|
|
2292
|
-
}),
|
|
5193
|
+
})),
|
|
2293
5194
|
new Promise(
|
|
2294
|
-
(_, reject) => setTimeout(reject
|
|
5195
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
2295
5196
|
)
|
|
2296
5197
|
]);
|
|
2297
5198
|
}
|
|
@@ -2311,18 +5212,20 @@ var MezonApi = class {
|
|
|
2311
5212
|
if (bearerToken) {
|
|
2312
5213
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
2313
5214
|
}
|
|
5215
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
2314
5216
|
return Promise.race([
|
|
2315
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
5217
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
2316
5218
|
if (response.status == 204) {
|
|
2317
|
-
return
|
|
5219
|
+
return {};
|
|
2318
5220
|
} else if (response.status >= 200 && response.status < 300) {
|
|
2319
|
-
|
|
5221
|
+
const buffer = yield response.arrayBuffer();
|
|
5222
|
+
return Account.decode(new Uint8Array(buffer));
|
|
2320
5223
|
} else {
|
|
2321
5224
|
throw response;
|
|
2322
5225
|
}
|
|
2323
|
-
}),
|
|
5226
|
+
})),
|
|
2324
5227
|
new Promise(
|
|
2325
|
-
(_, reject) => setTimeout(reject
|
|
5228
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
2326
5229
|
)
|
|
2327
5230
|
]);
|
|
2328
5231
|
}
|
|
@@ -2339,18 +5242,20 @@ var MezonApi = class {
|
|
|
2339
5242
|
if (bearerToken) {
|
|
2340
5243
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
2341
5244
|
}
|
|
5245
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
2342
5246
|
return Promise.race([
|
|
2343
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
5247
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
2344
5248
|
if (response.status == 204) {
|
|
2345
|
-
return
|
|
5249
|
+
return {};
|
|
2346
5250
|
} else if (response.status >= 200 && response.status < 300) {
|
|
2347
|
-
|
|
5251
|
+
const buffer = yield response.arrayBuffer();
|
|
5252
|
+
return Account.decode(new Uint8Array(buffer));
|
|
2348
5253
|
} else {
|
|
2349
5254
|
throw response;
|
|
2350
5255
|
}
|
|
2351
|
-
}),
|
|
5256
|
+
})),
|
|
2352
5257
|
new Promise(
|
|
2353
|
-
(_, reject) => setTimeout(reject
|
|
5258
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
2354
5259
|
)
|
|
2355
5260
|
]);
|
|
2356
5261
|
}
|
|
@@ -2367,18 +5272,20 @@ var MezonApi = class {
|
|
|
2367
5272
|
if (bearerToken) {
|
|
2368
5273
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
2369
5274
|
}
|
|
5275
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
2370
5276
|
return Promise.race([
|
|
2371
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
5277
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
2372
5278
|
if (response.status == 204) {
|
|
2373
|
-
return
|
|
5279
|
+
return {};
|
|
2374
5280
|
} else if (response.status >= 200 && response.status < 300) {
|
|
2375
|
-
|
|
5281
|
+
const buffer = yield response.arrayBuffer();
|
|
5282
|
+
return Account.decode(new Uint8Array(buffer));
|
|
2376
5283
|
} else {
|
|
2377
5284
|
throw response;
|
|
2378
5285
|
}
|
|
2379
|
-
}),
|
|
5286
|
+
})),
|
|
2380
5287
|
new Promise(
|
|
2381
|
-
(_, reject) => setTimeout(reject
|
|
5288
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
2382
5289
|
)
|
|
2383
5290
|
]);
|
|
2384
5291
|
}
|
|
@@ -2626,18 +5533,20 @@ var MezonApi = class {
|
|
|
2626
5533
|
if (bearerToken) {
|
|
2627
5534
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
2628
5535
|
}
|
|
5536
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
2629
5537
|
return Promise.race([
|
|
2630
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
5538
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
2631
5539
|
if (response.status == 204) {
|
|
2632
|
-
return
|
|
5540
|
+
return {};
|
|
2633
5541
|
} else if (response.status >= 200 && response.status < 300) {
|
|
2634
|
-
|
|
5542
|
+
const buffer = yield response.arrayBuffer();
|
|
5543
|
+
return Account.decode(new Uint8Array(buffer));
|
|
2635
5544
|
} else {
|
|
2636
5545
|
throw response;
|
|
2637
5546
|
}
|
|
2638
|
-
}),
|
|
5547
|
+
})),
|
|
2639
5548
|
new Promise(
|
|
2640
|
-
(_, reject) => setTimeout(reject
|
|
5549
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
2641
5550
|
)
|
|
2642
5551
|
]);
|
|
2643
5552
|
}
|
|
@@ -2977,18 +5886,20 @@ var MezonApi = class {
|
|
|
2977
5886
|
if (bearerToken) {
|
|
2978
5887
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
2979
5888
|
}
|
|
5889
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
2980
5890
|
return Promise.race([
|
|
2981
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
5891
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
2982
5892
|
if (response.status == 204) {
|
|
2983
|
-
return
|
|
5893
|
+
return {};
|
|
2984
5894
|
} else if (response.status >= 200 && response.status < 300) {
|
|
2985
|
-
|
|
5895
|
+
const buffer = yield response.arrayBuffer();
|
|
5896
|
+
return Account.decode(new Uint8Array(buffer));
|
|
2986
5897
|
} else {
|
|
2987
5898
|
throw response;
|
|
2988
5899
|
}
|
|
2989
|
-
}),
|
|
5900
|
+
})),
|
|
2990
5901
|
new Promise(
|
|
2991
|
-
(_, reject) => setTimeout(reject
|
|
5902
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
2992
5903
|
)
|
|
2993
5904
|
]);
|
|
2994
5905
|
}
|
|
@@ -3002,18 +5913,20 @@ var MezonApi = class {
|
|
|
3002
5913
|
if (bearerToken) {
|
|
3003
5914
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
3004
5915
|
}
|
|
5916
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
3005
5917
|
return Promise.race([
|
|
3006
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
5918
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
3007
5919
|
if (response.status == 204) {
|
|
3008
|
-
return
|
|
5920
|
+
return {};
|
|
3009
5921
|
} else if (response.status >= 200 && response.status < 300) {
|
|
3010
|
-
|
|
5922
|
+
const buffer = yield response.arrayBuffer();
|
|
5923
|
+
return Account.decode(new Uint8Array(buffer));
|
|
3011
5924
|
} else {
|
|
3012
5925
|
throw response;
|
|
3013
5926
|
}
|
|
3014
|
-
}),
|
|
5927
|
+
})),
|
|
3015
5928
|
new Promise(
|
|
3016
|
-
(_, reject) => setTimeout(reject
|
|
5929
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
3017
5930
|
)
|
|
3018
5931
|
]);
|
|
3019
5932
|
}
|
|
@@ -3090,18 +6003,20 @@ var MezonApi = class {
|
|
|
3090
6003
|
if (bearerToken) {
|
|
3091
6004
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
3092
6005
|
}
|
|
6006
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
3093
6007
|
return Promise.race([
|
|
3094
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
6008
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
3095
6009
|
if (response.status == 204) {
|
|
3096
|
-
return
|
|
6010
|
+
return {};
|
|
3097
6011
|
} else if (response.status >= 200 && response.status < 300) {
|
|
3098
|
-
|
|
6012
|
+
const buffer = yield response.arrayBuffer();
|
|
6013
|
+
return Account.decode(new Uint8Array(buffer));
|
|
3099
6014
|
} else {
|
|
3100
6015
|
throw response;
|
|
3101
6016
|
}
|
|
3102
|
-
}),
|
|
6017
|
+
})),
|
|
3103
6018
|
new Promise(
|
|
3104
|
-
(_, reject) => setTimeout(reject
|
|
6019
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
3105
6020
|
)
|
|
3106
6021
|
]);
|
|
3107
6022
|
}
|
|
@@ -3283,18 +6198,20 @@ var MezonApi = class {
|
|
|
3283
6198
|
if (bearerToken) {
|
|
3284
6199
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
3285
6200
|
}
|
|
6201
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
3286
6202
|
return Promise.race([
|
|
3287
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
6203
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
3288
6204
|
if (response.status == 204) {
|
|
3289
|
-
return
|
|
6205
|
+
return {};
|
|
3290
6206
|
} else if (response.status >= 200 && response.status < 300) {
|
|
3291
|
-
|
|
6207
|
+
const buffer = yield response.arrayBuffer();
|
|
6208
|
+
return Account.decode(new Uint8Array(buffer));
|
|
3292
6209
|
} else {
|
|
3293
6210
|
throw response;
|
|
3294
6211
|
}
|
|
3295
|
-
}),
|
|
6212
|
+
})),
|
|
3296
6213
|
new Promise(
|
|
3297
|
-
(_, reject) => setTimeout(reject
|
|
6214
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
3298
6215
|
)
|
|
3299
6216
|
]);
|
|
3300
6217
|
}
|
|
@@ -3390,18 +6307,20 @@ var MezonApi = class {
|
|
|
3390
6307
|
if (bearerToken) {
|
|
3391
6308
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
3392
6309
|
}
|
|
6310
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
3393
6311
|
return Promise.race([
|
|
3394
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
6312
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
3395
6313
|
if (response.status == 204) {
|
|
3396
|
-
return
|
|
6314
|
+
return {};
|
|
3397
6315
|
} else if (response.status >= 200 && response.status < 300) {
|
|
3398
|
-
|
|
6316
|
+
const buffer = yield response.arrayBuffer();
|
|
6317
|
+
return Account.decode(new Uint8Array(buffer));
|
|
3399
6318
|
} else {
|
|
3400
6319
|
throw response;
|
|
3401
6320
|
}
|
|
3402
|
-
}),
|
|
6321
|
+
})),
|
|
3403
6322
|
new Promise(
|
|
3404
|
-
(_, reject) => setTimeout(reject
|
|
6323
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
3405
6324
|
)
|
|
3406
6325
|
]);
|
|
3407
6326
|
}
|
|
@@ -3449,18 +6368,20 @@ var MezonApi = class {
|
|
|
3449
6368
|
if (bearerToken) {
|
|
3450
6369
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
3451
6370
|
}
|
|
6371
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
3452
6372
|
return Promise.race([
|
|
3453
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
6373
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
3454
6374
|
if (response.status == 204) {
|
|
3455
|
-
return
|
|
6375
|
+
return {};
|
|
3456
6376
|
} else if (response.status >= 200 && response.status < 300) {
|
|
3457
|
-
|
|
6377
|
+
const buffer = yield response.arrayBuffer();
|
|
6378
|
+
return Account.decode(new Uint8Array(buffer));
|
|
3458
6379
|
} else {
|
|
3459
6380
|
throw response;
|
|
3460
6381
|
}
|
|
3461
|
-
}),
|
|
6382
|
+
})),
|
|
3462
6383
|
new Promise(
|
|
3463
|
-
(_, reject) => setTimeout(reject
|
|
6384
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
3464
6385
|
)
|
|
3465
6386
|
]);
|
|
3466
6387
|
}
|
|
@@ -3475,18 +6396,20 @@ var MezonApi = class {
|
|
|
3475
6396
|
if (bearerToken) {
|
|
3476
6397
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
3477
6398
|
}
|
|
6399
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
3478
6400
|
return Promise.race([
|
|
3479
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
6401
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
3480
6402
|
if (response.status == 204) {
|
|
3481
|
-
return
|
|
6403
|
+
return {};
|
|
3482
6404
|
} else if (response.status >= 200 && response.status < 300) {
|
|
3483
|
-
|
|
6405
|
+
const buffer = yield response.arrayBuffer();
|
|
6406
|
+
return Account.decode(new Uint8Array(buffer));
|
|
3484
6407
|
} else {
|
|
3485
6408
|
throw response;
|
|
3486
6409
|
}
|
|
3487
|
-
}),
|
|
6410
|
+
})),
|
|
3488
6411
|
new Promise(
|
|
3489
|
-
(_, reject) => setTimeout(reject
|
|
6412
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
3490
6413
|
)
|
|
3491
6414
|
]);
|
|
3492
6415
|
}
|
|
@@ -3501,18 +6424,20 @@ var MezonApi = class {
|
|
|
3501
6424
|
if (bearerToken) {
|
|
3502
6425
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
3503
6426
|
}
|
|
6427
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
3504
6428
|
return Promise.race([
|
|
3505
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
6429
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
3506
6430
|
if (response.status == 204) {
|
|
3507
|
-
return
|
|
6431
|
+
return {};
|
|
3508
6432
|
} else if (response.status >= 200 && response.status < 300) {
|
|
3509
|
-
|
|
6433
|
+
const buffer = yield response.arrayBuffer();
|
|
6434
|
+
return Account.decode(new Uint8Array(buffer));
|
|
3510
6435
|
} else {
|
|
3511
6436
|
throw response;
|
|
3512
6437
|
}
|
|
3513
|
-
}),
|
|
6438
|
+
})),
|
|
3514
6439
|
new Promise(
|
|
3515
|
-
(_, reject) => setTimeout(reject
|
|
6440
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
3516
6441
|
)
|
|
3517
6442
|
]);
|
|
3518
6443
|
}
|
|
@@ -3732,18 +6657,20 @@ var MezonApi = class {
|
|
|
3732
6657
|
if (bearerToken) {
|
|
3733
6658
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
3734
6659
|
}
|
|
6660
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
3735
6661
|
return Promise.race([
|
|
3736
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
6662
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
3737
6663
|
if (response.status == 204) {
|
|
3738
|
-
return
|
|
6664
|
+
return {};
|
|
3739
6665
|
} else if (response.status >= 200 && response.status < 300) {
|
|
3740
|
-
|
|
6666
|
+
const buffer = yield response.arrayBuffer();
|
|
6667
|
+
return Account.decode(new Uint8Array(buffer));
|
|
3741
6668
|
} else {
|
|
3742
6669
|
throw response;
|
|
3743
6670
|
}
|
|
3744
|
-
}),
|
|
6671
|
+
})),
|
|
3745
6672
|
new Promise(
|
|
3746
|
-
(_, reject) => setTimeout(reject
|
|
6673
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
3747
6674
|
)
|
|
3748
6675
|
]);
|
|
3749
6676
|
}
|
|
@@ -3907,18 +6834,20 @@ var MezonApi = class {
|
|
|
3907
6834
|
if (bearerToken) {
|
|
3908
6835
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
3909
6836
|
}
|
|
6837
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
3910
6838
|
return Promise.race([
|
|
3911
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
6839
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
3912
6840
|
if (response.status == 204) {
|
|
3913
|
-
return
|
|
6841
|
+
return {};
|
|
3914
6842
|
} else if (response.status >= 200 && response.status < 300) {
|
|
3915
|
-
|
|
6843
|
+
const buffer = yield response.arrayBuffer();
|
|
6844
|
+
return Account.decode(new Uint8Array(buffer));
|
|
3916
6845
|
} else {
|
|
3917
6846
|
throw response;
|
|
3918
6847
|
}
|
|
3919
|
-
}),
|
|
6848
|
+
})),
|
|
3920
6849
|
new Promise(
|
|
3921
|
-
(_, reject) => setTimeout(reject
|
|
6850
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
3922
6851
|
)
|
|
3923
6852
|
]);
|
|
3924
6853
|
}
|
|
@@ -4196,18 +7125,20 @@ var MezonApi = class {
|
|
|
4196
7125
|
if (bearerToken) {
|
|
4197
7126
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
4198
7127
|
}
|
|
7128
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
4199
7129
|
return Promise.race([
|
|
4200
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
7130
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
4201
7131
|
if (response.status == 204) {
|
|
4202
|
-
return
|
|
7132
|
+
return {};
|
|
4203
7133
|
} else if (response.status >= 200 && response.status < 300) {
|
|
4204
|
-
|
|
7134
|
+
const buffer = yield response.arrayBuffer();
|
|
7135
|
+
return Account.decode(new Uint8Array(buffer));
|
|
4205
7136
|
} else {
|
|
4206
7137
|
throw response;
|
|
4207
7138
|
}
|
|
4208
|
-
}),
|
|
7139
|
+
})),
|
|
4209
7140
|
new Promise(
|
|
4210
|
-
(_, reject) => setTimeout(reject
|
|
7141
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
4211
7142
|
)
|
|
4212
7143
|
]);
|
|
4213
7144
|
}
|
|
@@ -4224,18 +7155,20 @@ var MezonApi = class {
|
|
|
4224
7155
|
if (bearerToken) {
|
|
4225
7156
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
4226
7157
|
}
|
|
7158
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
4227
7159
|
return Promise.race([
|
|
4228
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
7160
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
4229
7161
|
if (response.status == 204) {
|
|
4230
|
-
return
|
|
7162
|
+
return {};
|
|
4231
7163
|
} else if (response.status >= 200 && response.status < 300) {
|
|
4232
|
-
|
|
7164
|
+
const buffer = yield response.arrayBuffer();
|
|
7165
|
+
return Account.decode(new Uint8Array(buffer));
|
|
4233
7166
|
} else {
|
|
4234
7167
|
throw response;
|
|
4235
7168
|
}
|
|
4236
|
-
}),
|
|
7169
|
+
})),
|
|
4237
7170
|
new Promise(
|
|
4238
|
-
(_, reject) => setTimeout(reject
|
|
7171
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
4239
7172
|
)
|
|
4240
7173
|
]);
|
|
4241
7174
|
}
|
|
@@ -4281,18 +7214,20 @@ var MezonApi = class {
|
|
|
4281
7214
|
if (bearerToken) {
|
|
4282
7215
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
4283
7216
|
}
|
|
7217
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
4284
7218
|
return Promise.race([
|
|
4285
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
7219
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
4286
7220
|
if (response.status == 204) {
|
|
4287
|
-
return
|
|
7221
|
+
return {};
|
|
4288
7222
|
} else if (response.status >= 200 && response.status < 300) {
|
|
4289
|
-
|
|
7223
|
+
const buffer = yield response.arrayBuffer();
|
|
7224
|
+
return Account.decode(new Uint8Array(buffer));
|
|
4290
7225
|
} else {
|
|
4291
7226
|
throw response;
|
|
4292
7227
|
}
|
|
4293
|
-
}),
|
|
7228
|
+
})),
|
|
4294
7229
|
new Promise(
|
|
4295
|
-
(_, reject) => setTimeout(reject
|
|
7230
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
4296
7231
|
)
|
|
4297
7232
|
]);
|
|
4298
7233
|
}
|
|
@@ -4528,18 +7463,20 @@ var MezonApi = class {
|
|
|
4528
7463
|
if (bearerToken) {
|
|
4529
7464
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
4530
7465
|
}
|
|
7466
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
4531
7467
|
return Promise.race([
|
|
4532
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
7468
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
4533
7469
|
if (response.status == 204) {
|
|
4534
|
-
return
|
|
7470
|
+
return {};
|
|
4535
7471
|
} else if (response.status >= 200 && response.status < 300) {
|
|
4536
|
-
|
|
7472
|
+
const buffer = yield response.arrayBuffer();
|
|
7473
|
+
return Account.decode(new Uint8Array(buffer));
|
|
4537
7474
|
} else {
|
|
4538
7475
|
throw response;
|
|
4539
7476
|
}
|
|
4540
|
-
}),
|
|
7477
|
+
})),
|
|
4541
7478
|
new Promise(
|
|
4542
|
-
(_, reject) => setTimeout(reject
|
|
7479
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
4543
7480
|
)
|
|
4544
7481
|
]);
|
|
4545
7482
|
}
|
|
@@ -4706,18 +7643,20 @@ var MezonApi = class {
|
|
|
4706
7643
|
if (bearerToken) {
|
|
4707
7644
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
4708
7645
|
}
|
|
7646
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
4709
7647
|
return Promise.race([
|
|
4710
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
7648
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
4711
7649
|
if (response.status == 204) {
|
|
4712
|
-
return
|
|
7650
|
+
return {};
|
|
4713
7651
|
} else if (response.status >= 200 && response.status < 300) {
|
|
4714
|
-
|
|
7652
|
+
const buffer = yield response.arrayBuffer();
|
|
7653
|
+
return Account.decode(new Uint8Array(buffer));
|
|
4715
7654
|
} else {
|
|
4716
7655
|
throw response;
|
|
4717
7656
|
}
|
|
4718
|
-
}),
|
|
7657
|
+
})),
|
|
4719
7658
|
new Promise(
|
|
4720
|
-
(_, reject) => setTimeout(reject
|
|
7659
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
4721
7660
|
)
|
|
4722
7661
|
]);
|
|
4723
7662
|
}
|
|
@@ -4741,18 +7680,20 @@ var MezonApi = class {
|
|
|
4741
7680
|
if (bearerToken) {
|
|
4742
7681
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
4743
7682
|
}
|
|
7683
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
4744
7684
|
return Promise.race([
|
|
4745
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
7685
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
4746
7686
|
if (response.status == 204) {
|
|
4747
|
-
return
|
|
7687
|
+
return {};
|
|
4748
7688
|
} else if (response.status >= 200 && response.status < 300) {
|
|
4749
|
-
|
|
7689
|
+
const buffer = yield response.arrayBuffer();
|
|
7690
|
+
return Account.decode(new Uint8Array(buffer));
|
|
4750
7691
|
} else {
|
|
4751
7692
|
throw response;
|
|
4752
7693
|
}
|
|
4753
|
-
}),
|
|
7694
|
+
})),
|
|
4754
7695
|
new Promise(
|
|
4755
|
-
(_, reject) => setTimeout(reject
|
|
7696
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
4756
7697
|
)
|
|
4757
7698
|
]);
|
|
4758
7699
|
}
|
|
@@ -4775,18 +7716,20 @@ var MezonApi = class {
|
|
|
4775
7716
|
if (bearerToken) {
|
|
4776
7717
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
4777
7718
|
}
|
|
7719
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
4778
7720
|
return Promise.race([
|
|
4779
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
7721
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
4780
7722
|
if (response.status == 204) {
|
|
4781
|
-
return
|
|
7723
|
+
return {};
|
|
4782
7724
|
} else if (response.status >= 200 && response.status < 300) {
|
|
4783
|
-
|
|
7725
|
+
const buffer = yield response.arrayBuffer();
|
|
7726
|
+
return Account.decode(new Uint8Array(buffer));
|
|
4784
7727
|
} else {
|
|
4785
7728
|
throw response;
|
|
4786
7729
|
}
|
|
4787
|
-
}),
|
|
7730
|
+
})),
|
|
4788
7731
|
new Promise(
|
|
4789
|
-
(_, reject) => setTimeout(reject
|
|
7732
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
4790
7733
|
)
|
|
4791
7734
|
]);
|
|
4792
7735
|
}
|
|
@@ -5068,18 +8011,20 @@ var MezonApi = class {
|
|
|
5068
8011
|
if (bearerToken) {
|
|
5069
8012
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
5070
8013
|
}
|
|
8014
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
5071
8015
|
return Promise.race([
|
|
5072
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
8016
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
5073
8017
|
if (response.status == 204) {
|
|
5074
|
-
return
|
|
8018
|
+
return {};
|
|
5075
8019
|
} else if (response.status >= 200 && response.status < 300) {
|
|
5076
|
-
|
|
8020
|
+
const buffer = yield response.arrayBuffer();
|
|
8021
|
+
return Account.decode(new Uint8Array(buffer));
|
|
5077
8022
|
} else {
|
|
5078
8023
|
throw response;
|
|
5079
8024
|
}
|
|
5080
|
-
}),
|
|
8025
|
+
})),
|
|
5081
8026
|
new Promise(
|
|
5082
|
-
(_, reject) => setTimeout(reject
|
|
8027
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
5083
8028
|
)
|
|
5084
8029
|
]);
|
|
5085
8030
|
}
|
|
@@ -5094,18 +8039,20 @@ var MezonApi = class {
|
|
|
5094
8039
|
if (bearerToken) {
|
|
5095
8040
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
5096
8041
|
}
|
|
8042
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
5097
8043
|
return Promise.race([
|
|
5098
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
8044
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
5099
8045
|
if (response.status == 204) {
|
|
5100
|
-
return
|
|
8046
|
+
return {};
|
|
5101
8047
|
} else if (response.status >= 200 && response.status < 300) {
|
|
5102
|
-
|
|
8048
|
+
const buffer = yield response.arrayBuffer();
|
|
8049
|
+
return Account.decode(new Uint8Array(buffer));
|
|
5103
8050
|
} else {
|
|
5104
8051
|
throw response;
|
|
5105
8052
|
}
|
|
5106
|
-
}),
|
|
8053
|
+
})),
|
|
5107
8054
|
new Promise(
|
|
5108
|
-
(_, reject) => setTimeout(reject
|
|
8055
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
5109
8056
|
)
|
|
5110
8057
|
]);
|
|
5111
8058
|
}
|
|
@@ -5156,18 +8103,20 @@ var MezonApi = class {
|
|
|
5156
8103
|
if (bearerToken) {
|
|
5157
8104
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
5158
8105
|
}
|
|
8106
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
5159
8107
|
return Promise.race([
|
|
5160
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
8108
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
5161
8109
|
if (response.status == 204) {
|
|
5162
|
-
return
|
|
8110
|
+
return {};
|
|
5163
8111
|
} else if (response.status >= 200 && response.status < 300) {
|
|
5164
|
-
|
|
8112
|
+
const buffer = yield response.arrayBuffer();
|
|
8113
|
+
return Account.decode(new Uint8Array(buffer));
|
|
5165
8114
|
} else {
|
|
5166
8115
|
throw response;
|
|
5167
8116
|
}
|
|
5168
|
-
}),
|
|
8117
|
+
})),
|
|
5169
8118
|
new Promise(
|
|
5170
|
-
(_, reject) => setTimeout(reject
|
|
8119
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
5171
8120
|
)
|
|
5172
8121
|
]);
|
|
5173
8122
|
}
|
|
@@ -5181,18 +8130,20 @@ var MezonApi = class {
|
|
|
5181
8130
|
if (bearerToken) {
|
|
5182
8131
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
5183
8132
|
}
|
|
8133
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
5184
8134
|
return Promise.race([
|
|
5185
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
8135
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
5186
8136
|
if (response.status == 204) {
|
|
5187
|
-
return
|
|
8137
|
+
return {};
|
|
5188
8138
|
} else if (response.status >= 200 && response.status < 300) {
|
|
5189
|
-
|
|
8139
|
+
const buffer = yield response.arrayBuffer();
|
|
8140
|
+
return Account.decode(new Uint8Array(buffer));
|
|
5190
8141
|
} else {
|
|
5191
8142
|
throw response;
|
|
5192
8143
|
}
|
|
5193
|
-
}),
|
|
8144
|
+
})),
|
|
5194
8145
|
new Promise(
|
|
5195
|
-
(_, reject) => setTimeout(reject
|
|
8146
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
5196
8147
|
)
|
|
5197
8148
|
]);
|
|
5198
8149
|
}
|
|
@@ -5239,18 +8190,20 @@ var MezonApi = class {
|
|
|
5239
8190
|
if (bearerToken) {
|
|
5240
8191
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
5241
8192
|
}
|
|
8193
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
5242
8194
|
return Promise.race([
|
|
5243
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
8195
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
5244
8196
|
if (response.status == 204) {
|
|
5245
|
-
return
|
|
8197
|
+
return {};
|
|
5246
8198
|
} else if (response.status >= 200 && response.status < 300) {
|
|
5247
|
-
|
|
8199
|
+
const buffer = yield response.arrayBuffer();
|
|
8200
|
+
return Account.decode(new Uint8Array(buffer));
|
|
5248
8201
|
} else {
|
|
5249
8202
|
throw response;
|
|
5250
8203
|
}
|
|
5251
|
-
}),
|
|
8204
|
+
})),
|
|
5252
8205
|
new Promise(
|
|
5253
|
-
(_, reject) => setTimeout(reject
|
|
8206
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
5254
8207
|
)
|
|
5255
8208
|
]);
|
|
5256
8209
|
}
|
|
@@ -5413,18 +8366,20 @@ var MezonApi = class {
|
|
|
5413
8366
|
if (bearerToken) {
|
|
5414
8367
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
5415
8368
|
}
|
|
8369
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
5416
8370
|
return Promise.race([
|
|
5417
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
8371
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
5418
8372
|
if (response.status == 204) {
|
|
5419
|
-
return
|
|
8373
|
+
return {};
|
|
5420
8374
|
} else if (response.status >= 200 && response.status < 300) {
|
|
5421
|
-
|
|
8375
|
+
const buffer = yield response.arrayBuffer();
|
|
8376
|
+
return Account.decode(new Uint8Array(buffer));
|
|
5422
8377
|
} else {
|
|
5423
8378
|
throw response;
|
|
5424
8379
|
}
|
|
5425
|
-
}),
|
|
8380
|
+
})),
|
|
5426
8381
|
new Promise(
|
|
5427
|
-
(_, reject) => setTimeout(reject
|
|
8382
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
5428
8383
|
)
|
|
5429
8384
|
]);
|
|
5430
8385
|
}
|
|
@@ -5638,18 +8593,20 @@ var MezonApi = class {
|
|
|
5638
8593
|
if (bearerToken) {
|
|
5639
8594
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
5640
8595
|
}
|
|
8596
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
5641
8597
|
return Promise.race([
|
|
5642
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
8598
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
5643
8599
|
if (response.status == 204) {
|
|
5644
|
-
return
|
|
8600
|
+
return {};
|
|
5645
8601
|
} else if (response.status >= 200 && response.status < 300) {
|
|
5646
|
-
|
|
8602
|
+
const buffer = yield response.arrayBuffer();
|
|
8603
|
+
return Account.decode(new Uint8Array(buffer));
|
|
5647
8604
|
} else {
|
|
5648
8605
|
throw response;
|
|
5649
8606
|
}
|
|
5650
|
-
}),
|
|
8607
|
+
})),
|
|
5651
8608
|
new Promise(
|
|
5652
|
-
(_, reject) => setTimeout(reject
|
|
8609
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
5653
8610
|
)
|
|
5654
8611
|
]);
|
|
5655
8612
|
}
|
|
@@ -6089,18 +9046,20 @@ var MezonApi = class {
|
|
|
6089
9046
|
if (bearerToken) {
|
|
6090
9047
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
6091
9048
|
}
|
|
9049
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
6092
9050
|
return Promise.race([
|
|
6093
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
9051
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
6094
9052
|
if (response.status == 204) {
|
|
6095
|
-
return
|
|
9053
|
+
return {};
|
|
6096
9054
|
} else if (response.status >= 200 && response.status < 300) {
|
|
6097
|
-
|
|
9055
|
+
const buffer = yield response.arrayBuffer();
|
|
9056
|
+
return Account.decode(new Uint8Array(buffer));
|
|
6098
9057
|
} else {
|
|
6099
9058
|
throw response;
|
|
6100
9059
|
}
|
|
6101
|
-
}),
|
|
9060
|
+
})),
|
|
6102
9061
|
new Promise(
|
|
6103
|
-
(_, reject) => setTimeout(reject
|
|
9062
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
6104
9063
|
)
|
|
6105
9064
|
]);
|
|
6106
9065
|
}
|
|
@@ -6408,18 +9367,20 @@ var MezonApi = class {
|
|
|
6408
9367
|
if (bearerToken) {
|
|
6409
9368
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
6410
9369
|
}
|
|
9370
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
6411
9371
|
return Promise.race([
|
|
6412
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
9372
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
6413
9373
|
if (response.status == 204) {
|
|
6414
|
-
return
|
|
9374
|
+
return {};
|
|
6415
9375
|
} else if (response.status >= 200 && response.status < 300) {
|
|
6416
|
-
|
|
9376
|
+
const buffer = yield response.arrayBuffer();
|
|
9377
|
+
return Account.decode(new Uint8Array(buffer));
|
|
6417
9378
|
} else {
|
|
6418
9379
|
throw response;
|
|
6419
9380
|
}
|
|
6420
|
-
}),
|
|
9381
|
+
})),
|
|
6421
9382
|
new Promise(
|
|
6422
|
-
(_, reject) => setTimeout(reject
|
|
9383
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
6423
9384
|
)
|
|
6424
9385
|
]);
|
|
6425
9386
|
}
|
|
@@ -6930,18 +9891,20 @@ var MezonApi = class {
|
|
|
6930
9891
|
if (bearerToken) {
|
|
6931
9892
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
6932
9893
|
}
|
|
9894
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
6933
9895
|
return Promise.race([
|
|
6934
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
9896
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
6935
9897
|
if (response.status == 204) {
|
|
6936
|
-
return
|
|
9898
|
+
return {};
|
|
6937
9899
|
} else if (response.status >= 200 && response.status < 300) {
|
|
6938
|
-
|
|
9900
|
+
const buffer = yield response.arrayBuffer();
|
|
9901
|
+
return Account.decode(new Uint8Array(buffer));
|
|
6939
9902
|
} else {
|
|
6940
9903
|
throw response;
|
|
6941
9904
|
}
|
|
6942
|
-
}),
|
|
9905
|
+
})),
|
|
6943
9906
|
new Promise(
|
|
6944
|
-
(_, reject) => setTimeout(reject
|
|
9907
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
6945
9908
|
)
|
|
6946
9909
|
]);
|
|
6947
9910
|
}
|
|
@@ -9290,13 +12253,16 @@ var Client = class {
|
|
|
9290
12253
|
lang_tag: gu.user.lang_tag,
|
|
9291
12254
|
location: gu.user.location,
|
|
9292
12255
|
online: gu.user.online,
|
|
9293
|
-
is_mobile: (_a = gu.user) == null ? void 0 : _a.is_mobile,
|
|
12256
|
+
is_mobile: ((_a = gu.user) == null ? void 0 : _a.is_mobile) || false,
|
|
9294
12257
|
timezone: gu.user.timezone,
|
|
9295
12258
|
update_time: gu.user.update_time,
|
|
9296
12259
|
username: gu.user.username,
|
|
9297
12260
|
user_status: gu.user.user_status,
|
|
9298
12261
|
status: gu.user.status,
|
|
9299
|
-
about_me: gu.user.about_me
|
|
12262
|
+
about_me: gu.user.about_me,
|
|
12263
|
+
mezon_id: gu.user.mezon_id,
|
|
12264
|
+
list_nick_names: gu.user.list_nick_names,
|
|
12265
|
+
phone_number: gu.user.phone_number
|
|
9300
12266
|
},
|
|
9301
12267
|
role_id: gu.role_id,
|
|
9302
12268
|
clan_nick: gu.clan_nick,
|
|
@@ -9541,9 +12507,13 @@ var Client = class {
|
|
|
9541
12507
|
timezone: f.user.timezone,
|
|
9542
12508
|
update_time: f.user.update_time,
|
|
9543
12509
|
username: f.user.username,
|
|
9544
|
-
is_mobile: (_a = f.user) == null ? void 0 : _a.is_mobile,
|
|
12510
|
+
is_mobile: ((_a = f.user) == null ? void 0 : _a.is_mobile) || false,
|
|
9545
12511
|
user_status: f.user.user_status,
|
|
9546
|
-
status: f.user.status
|
|
12512
|
+
status: f.user.status,
|
|
12513
|
+
mezon_id: f.user.mezon_id,
|
|
12514
|
+
list_nick_names: f.user.list_nick_names,
|
|
12515
|
+
phone_number: f.user.phone_number,
|
|
12516
|
+
about_me: f.user.about_me
|
|
9547
12517
|
},
|
|
9548
12518
|
state: f.state,
|
|
9549
12519
|
source_id: f.source_id
|